@acedatacloud/nexior 3.324.11 → 3.324.13
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-DfrtcExn.js → ApiCodeButton-CpeNaAkI.js} +1 -1
- package/dist/assets/{Artifacts-CHOc9b9t.js → Artifacts-CJ80iRVO.js} +1 -1
- package/dist/assets/{AskUserQuestionCard-CHwY5Qf0.js → AskUserQuestionCard-GxIqAayK.js} +1 -1
- package/dist/assets/{Auth-mQF6SS4S.js → Auth-BJlw0vp3.js} +1 -1
- package/dist/assets/{Bare-DY2ngT2Z.js → Bare-DZkk0Rdb.js} +1 -1
- package/dist/assets/{BotPlaceholder-B9Bu8d4S.js → BotPlaceholder-CrjLYhFl.js} +1 -1
- package/dist/assets/{BottomFooter-Bx3kkBsx.js → BottomFooter-BTw6rVro.js} +1 -1
- package/dist/assets/{Callback-C3GdEB7A.js → Callback-DRqUKXaL.js} +1 -1
- package/dist/assets/{CodeSnippet-CTmqxLoJ.js → CodeSnippet-C6hp7tVY.js} +1 -1
- package/dist/assets/{Console-CooCQ0U2.js → Console-BMn8s_0r.js} +1 -1
- package/dist/assets/{Consumption-CLn15KE8.js → Consumption-DJj6VQzU.js} +1 -1
- package/dist/assets/{Conversation-BmkSkc3H.js → Conversation-BVhep8oi.js} +1 -1
- package/dist/assets/{Conversation-CnQaIhXP.js → Conversation-CdyZXx0Q.js} +1 -1
- package/dist/assets/{CopyToClipboard-Df7-hwD8.js → CopyToClipboard-CBWexZE6.js} +1 -1
- package/dist/assets/{Detail-Dq3qs6j8.js → Detail-DA1cIpru.js} +2 -2
- package/dist/assets/{Extra-Bb4EXkYX.js → Extra-CDqJIGSB.js} +1 -1
- package/dist/assets/{FilePreview-C-9AWHeN.js → FilePreview-DKhO__EB.js} +1 -1
- package/dist/assets/{Hailuo-BMHqjhPk.js → Hailuo-e296oyDI.js} +1 -1
- package/dist/assets/{History-DMjflS_J.js → History-x_TdzXxA.js} +1 -1
- package/dist/assets/{ImagePreview-DlFUDfL0.js → ImagePreview-C1vFEr21.js} +1 -1
- package/dist/assets/{ImageWrapper-WwV9lQTA.js → ImageWrapper-gqsYQX_P.js} +1 -1
- package/dist/assets/{Index-DQBZ3v9K.js → Index-B72bXjX-.js} +1 -1
- package/dist/assets/{Index-CPqsbWL1.js → Index-BUa_TbvH.js} +1 -1
- package/dist/assets/{Index-PZLgHFLf.js → Index-BYAXppud.js} +1 -1
- package/dist/assets/{Index-CwzhU-kT.js → Index-BYUzvIFC.js} +1 -1
- package/dist/assets/{Index-BUXP9fCY.js → Index-BeyywQk0.js} +1 -1
- package/dist/assets/{Index-D4dnjcp8.js → Index-BjHvDcl9.js} +1 -1
- package/dist/assets/{Index-n54ciDv5.js → Index-Bm2ObqmT.js} +1 -1
- package/dist/assets/{Index-BDm8imOA.js → Index-ByhwRRzB.js} +1 -1
- package/dist/assets/{Index-BdhjYgmE.js → Index-C2oPBaZd.js} +1 -1
- package/dist/assets/{Index-DCWYsI8G.js → Index-C91E19Dr.js} +1 -1
- package/dist/assets/{Index-BttSQwfv.js → Index-CIR7DAZp.js} +1 -1
- package/dist/assets/{Index-CG3uQm67.js → Index-CYLb-4vM.js} +1 -1
- package/dist/assets/{Index-DfrRwfA8.js → Index-ChsWh7Co.js} +1 -1
- package/dist/assets/{Index-DWeu8P1A.js → Index-CiFcnhIv.js} +1 -1
- package/dist/assets/{Index-r0xBwC1i.js → Index-CoWypaa1.js} +1 -1
- package/dist/assets/{Index-BmspBTn1.js → Index-D0i8Zdvz.js} +1 -1
- package/dist/assets/{Index-BovRP9S0.js → Index-D7d21QkN.js} +1 -1
- package/dist/assets/{Index-C9-79ri6.js → Index-DE54UecO.js} +1 -1
- package/dist/assets/{Index-DJEblOOa.js → Index-DGXqG_ZW.js} +1 -1
- package/dist/assets/{Index-BBPh-pCI.js → Index-DOMi1NyI.js} +1 -1
- package/dist/assets/{Index-CzImoTWf.js → Index-DSr1NiDR.js} +1 -1
- package/dist/assets/{Index-DIOS1peT.js → Index-DYm8ERPz.js} +1 -1
- package/dist/assets/{Index-5DlPXUDT.js → Index-DdbZyY3N.js} +1 -1
- package/dist/assets/{Index-M6HztxTt.js → Index-DkIjCFHf.js} +1 -1
- package/dist/assets/{Index-Bs0JjTDe.js → Index-IFmjIYGW.js} +1 -1
- package/dist/assets/{Index-BfsTQXaB.js → Index-JhheOeQZ.js} +1 -1
- package/dist/assets/{Index-3uCPKrkv.js → Index-epeftCpk.js} +1 -1
- package/dist/assets/{Index-DFLzLqYl.js → Index-tOPQYRuU.js} +1 -1
- package/dist/assets/{Invitees-i5TJ18Pn.js → Invitees-Dj1ZwPFU.js} +1 -1
- package/dist/assets/{List-BbCvAHmh.js → List-BIUAQaSB.js} +1 -1
- package/dist/assets/{List-Dny3Bkm2.js → List-DGfpN88A.js} +1 -1
- package/dist/assets/{List-BHs246kU.js → List-OtRuVhok.js} +1 -1
- package/dist/assets/{LocalTools-B2cGhGSz.js → LocalTools-DFAiVUEx.js} +1 -1
- package/dist/assets/{LocalTools-foDbq5zn.js → LocalTools-DZFR8tlo.js} +1 -1
- package/dist/assets/{Main-B06rW3vd.js → Main-Cm98INb7.js} +1 -1
- package/dist/assets/{Message-CChbkmbn.js → Message-BiFNuQwx.js} +1 -1
- package/dist/assets/{Model-CduYMF7h.js → Model-INQOdQ2K.js} +1 -1
- package/dist/assets/Navigator-DEDBdk2Y.css +1 -0
- package/dist/assets/{Navigator-CNhCH_jE.js → Navigator-Dzzs-cqR.js} +3 -3
- package/dist/assets/{NoTasks-DKZkZgHz.js → NoTasks-_7u_3e2f.js} +1 -1
- package/dist/assets/{NotFound-DnzxsJqj.js → NotFound-CWGCvQqh.js} +1 -1
- package/dist/assets/{Pagination-88cp2ePe.js → Pagination-CrXJyUJg.js} +1 -1
- package/dist/assets/{Pay-KyCRum1R.js → Pay-CTVHjcDS.js} +1 -1
- package/dist/assets/{Player-BY1bebN6.js → Player-AZHv9IHc.js} +1 -1
- package/dist/assets/{PromptTextarea-DaeJGUPF.js → PromptTextarea-ByS6UWyz.js} +1 -1
- package/dist/assets/{RealtimeCall-ByFiH3G3.js → RealtimeCall-C0mV3tGW.js} +1 -1
- package/dist/assets/{ScheduledTasks-DQ9iFaKy.js → ScheduledTasks-CS3Fdc4v.js} +2 -2
- package/dist/assets/ScheduledTasks-D10cYRUU.css +1 -0
- package/dist/assets/{Status-DafXOMiD.js → Status-CuIn-8XE.js} +1 -1
- package/dist/assets/{Subscribe-DITwTlkE.js → Subscribe-BKTT3HTb.js} +1 -1
- package/dist/assets/{TabSwitcher-BWSRtjmo.js → TabSwitcher-UmOUXAIu.js} +1 -1
- package/dist/assets/{Tts-BLvvUF_Z.js → Tts-C4hnVqGe.js} +1 -1
- package/dist/assets/{VideoPlayer-BMyLIOSA.js → VideoPlayer-CvMznxAr.js} +1 -1
- package/dist/assets/{VideoPreview-DaqTny1j.js → VideoPreview-dYljJkMZ.js} +1 -1
- package/dist/assets/{alert-DjkZBemV.js → alert-DaAPPj3w.js} +1 -1
- package/dist/assets/{avatar-D1p-hXj5.js → avatar-C4S9aYQN.js} +1 -1
- package/dist/assets/{basic-eL91UxCn.js → basic-CN8wI4GZ.js} +1 -1
- package/dist/assets/{chat-CK9A79S2.js → chat-GvNS6gLA.js} +1 -1
- package/dist/assets/{codingBridge-RpeCaQtt.js → codingBridge-CbBkrtwx.js} +1 -1
- package/dist/assets/{codingBridgeNotify-D5SG8e51.js → codingBridgeNotify-Bl9_z6mg.js} +2 -2
- package/dist/assets/{collapse-BFpiwp6B.js → collapse-6nbyUyER.js} +1 -1
- package/dist/assets/{constants-Cg3t_gUM.js → constants-_JKYsJLm.js} +1 -1
- package/dist/assets/{createTaskActions-B7ldRk1a.js → createTaskActions-LRcAdLnk.js} +1 -1
- package/dist/assets/{date-picker-DutPJw-p.js → date-picker-C88k_m33.js} +1 -1
- package/dist/assets/{digitalhuman-B6VKKrcV.js → digitalhuman-Bqu0aoZb.js} +1 -1
- package/dist/assets/{drawer-BA6U-NPQ.js → drawer-Dz0U_ZgX.js} +1 -1
- package/dist/assets/{dropdown-DHOSzrJe.js → dropdown-Cygrh-By.js} +1 -1
- package/dist/assets/{dropdown-_H5M-YlG.js → dropdown-DVT9WPMr.js} +1 -1
- package/dist/assets/{esm-Cf_dAm0Q.js → esm-C2wza9kG.js} +1 -1
- package/dist/assets/{esm-D1SPOlNr.js → esm-C9RpBc-b.js} +1 -1
- package/dist/assets/{esm-_UGVmFEv.js → esm-CCBHTwsW.js} +1 -1
- package/dist/assets/{esm-Cu9HiGJ_.js → esm-Ci-0gMYW.js} +2 -2
- package/dist/assets/{esm-B91-nqF7.js → esm-CjHvY2JG.js} +2 -2
- package/dist/assets/{esm-D7xszVeU.js → esm-GdIQ50mH.js} +3 -3
- package/dist/assets/esm-IIJrHzc0.js +1 -0
- package/dist/assets/{fish-BSQt3tRQ.js → fish-DecaGgwl.js} +1 -1
- package/dist/assets/{flux-BMPmoYJZ.js → flux-CSov8wFS.js} +1 -1
- package/dist/assets/{grokvideo-DJjajJ4h.js → grokvideo-DH2V7gGw.js} +1 -1
- package/dist/assets/{hailuo-BEdCsX9k.js → hailuo-B4wpt58t.js} +1 -1
- package/dist/assets/{headshots-BTxBEve_.js → headshots-DSdYmrMG.js} +1 -1
- package/dist/assets/{i18n-xR5MU3Bu.js → i18n-CwfIBu51.js} +1 -1
- package/dist/assets/{image-MYSG28sC.js → image-BPnyyzKu.js} +1 -1
- package/dist/assets/{index-BQljQu6p.js → index-CVwKPuSr.js} +4 -4
- package/dist/assets/{index.browser.esm-BassTlSW.js → index.browser.esm-ymYRSPXy.js} +1 -1
- package/dist/assets/{index.es-J5SOqrQb.js → index.es-y7sbCPuq.js} +1 -1
- package/dist/assets/{input-number-DtD1I_w0.js → input-number-B9msRYeP.js} +1 -1
- package/dist/assets/{kling-nrEV3Uqp.js → kling-DInHzuQi.js} +1 -1
- package/dist/assets/{luma-NWvJyhHS.js → luma-C_Epu9Qh.js} +1 -1
- package/dist/assets/{maestro-DEe4dnNm.js → maestro-DE9SFq6a.js} +1 -1
- package/dist/assets/{midjourney-Bp-7pIQU.js → midjourney-C-U183CV.js} +1 -1
- package/dist/assets/{mobileLocalExec-BZuYbgnr.js → mobileLocalExec-C49mwHT6.js} +2 -2
- package/dist/assets/{nanobanana-DIMrIycb.js → nanobanana-ClRMSmUx.js} +1 -1
- package/dist/assets/{openaiimage-BpWpvt_I.js → openaiimage-BUB1Dwkw.js} +1 -1
- package/dist/assets/{pagination-CWRAydQk.js → pagination-l6bRvbek.js} +1 -1
- package/dist/assets/{pika-Dl4G8lvy.js → pika-t5oQkYr5.js} +1 -1
- package/dist/assets/{pixverse-DAlmaoX5.js → pixverse-iE5TeOnK.js} +1 -1
- package/dist/assets/{popover-CSPWn9tn.js → popover-DYRRMAAs.js} +1 -1
- package/dist/assets/{producer-eINgFIfZ.js → producer-C4VrD6FH.js} +1 -1
- package/dist/assets/{qrart-Bh-jIria.js → qrart-DhPJwfdd.js} +1 -1
- package/dist/assets/{realtime-DIg1xDXO.js → realtime-BCb0JNYC.js} +1 -1
- package/dist/assets/{row-DDtrSrID.js → row-cq5o0tEf.js} +1 -1
- package/dist/assets/{seedance-B7Sh-MPE.js → seedance-AW1lJbnp.js} +1 -1
- package/dist/assets/{seedream-DKMuBjut.js → seedream-BDpHIHeR.js} +1 -1
- package/dist/assets/{select-BY2eu3MD.js → select-Cc1fuZD1.js} +1 -1
- package/dist/assets/{serp-Dq25QB0k.js → serp-CmLHAxOT.js} +1 -1
- package/dist/assets/site-DN7_Ixff.js +1 -0
- package/dist/assets/site-Q-hHgzIJ.js +1 -0
- package/dist/assets/{slider-2xYV3Pz3.js → slider-C50xr5x_.js} +1 -1
- package/dist/assets/{solana-wallets-C90qlTyH.js → solana-wallets-BS8kElaa.js} +2 -2
- package/dist/assets/{solana-wallets-vue-Cv6PKtb1.js → solana-wallets-vue-BVePoGZq.js} +1 -1
- package/dist/assets/{sora-BO7Je6kl.js → sora-C5MDdTK1.js} +1 -1
- package/dist/assets/{suno-C5myviI0.js → suno-CqQVCtnb.js} +1 -1
- package/dist/assets/{switch-oF9I_27U.js → switch-Qb-okalW.js} +1 -1
- package/dist/assets/{table-fyenK1l_.js → table-RJwZLD9P.js} +1 -1
- package/dist/assets/{tabs-PCGi3toG.js → tabs-BSQeskbZ.js} +1 -1
- package/dist/assets/{time-picker-CurzyHUO.js → time-picker-BK5pVnrr.js} +1 -1
- package/dist/assets/{tooltip-Bssea6DW.js → tooltip-B94uJp4z.js} +1 -1
- package/dist/assets/{upload-JDDS1sCG.js → upload-ctqtyO2K.js} +1 -1
- package/dist/assets/{veo-CEeke_FF.js → veo-DBfnvTbJ.js} +1 -1
- package/dist/assets/{wan-C41dW8pY.js → wan-DxA-bSey.js} +1 -1
- package/dist/assets/{web-CRpF--jj.js → web-BlF80otS.js} +1 -1
- package/dist/assets/{web-DEnHheqG.js → web-Bz8mO8DY.js} +1 -1
- package/dist/assets/{web-X2h0zRng.js → web-DyxvW3FE.js} +1 -1
- package/dist/assets/{web-BdzrnvOO.js → web-Dz8pctuX.js} +1 -1
- package/dist/assets/{web-C4bC1PPn.js → web-HAutCg6I.js} +1 -1
- package/dist/assets/{webextrator-Bi61_aG4.js → webextrator-DO-Tjtnx.js} +1 -1
- package/dist/index.html +3 -3
- package/package.json +1 -1
- package/dist/assets/Navigator-CtCJ5cKT.css +0 -1
- package/dist/assets/ScheduledTasks-Cd78GIAb.css +0 -1
- package/dist/assets/esm-BE0AyLxV.js +0 -1
- package/dist/assets/site-Bkefb09h.js +0 -1
- package/dist/assets/site-CRVh_WD3.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{H as e,ft as t,k as n,z as r}from"./vendor-chart-Dw-P17PN.js";import{A as i,D as a,O as o,k as s}from"./index-
|
|
1
|
+
import{H as e,ft as t,k as n,z as r}from"./vendor-chart-Dw-P17PN.js";import{A as i,D as a,O as o,k as s}from"./index-CVwKPuSr.js";function c(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e){if(Array.isArray(e))return c(e)}function u(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function f(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?p(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t){if(e==null)return{};var n,r,i=g(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function g(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function _(e){return l(e)||d(e)||x(e)||f()}function v(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function y(e){var t=v(e,`string`);return typeof t==`symbol`?t:t+``}function b(e){"@babel/helpers - typeof";return b=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},b(e)}function x(e,t){if(e){if(typeof e==`string`)return c(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function S(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?u({},e,t):{}}function C(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip===`horizontal`||e.flip===`both`,"fa-flip-vertical":e.flip===`vertical`||e.flip===`both`},u(u(u(u(u(u(u(u(u(u(t,`fa-${e.size}`,e.size!==null),`fa-rotate-${e.rotation}`,e.rotation!==null),`fa-rotate-by`,e.rotateBy),`fa-pull-${e.pull}`,e.pull!==null),`fa-swap-opacity`,e.swapOpacity),`fa-bounce`,e.bounce),`fa-shake`,e.shake),`fa-beat`,e.beat),`fa-fade`,e.fade),`fa-beat-fade`,e.beatFade),u(u(u(u(t,`fa-flash`,e.flash),`fa-spin-pulse`,e.spinPulse),`fa-spin-reverse`,e.spinReverse),`fa-width-auto`,e.widthAuto));return Object.keys(n).map(function(e){return n[e]?e:null}).filter(function(e){return e})}var w=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},T={exports:{}};(function(e){(function(t){var n=function(e,t,r){if(!l(t)||d(t)||f(t)||p(t)||c(t))return t;var i,a=0,o=0;if(u(t))for(i=[],o=t.length;a<o;a++)i.push(n(e,t[a],r));else for(var s in i={},t)Object.prototype.hasOwnProperty.call(t,s)&&(i[e(s,r)]=n(e,t[s],r));return i},r=function(e,t){t||={};var n=t.separator||`_`,r=t.split||/(?=[A-Z])/;return e.split(r).join(n)},i=function(e){return m(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():``}),e.substr(0,1).toLowerCase()+e.substr(1))},a=function(e){var t=i(e);return t.substr(0,1).toUpperCase()+t.substr(1)},o=function(e,t){return r(e,t).toLowerCase()},s=Object.prototype.toString,c=function(e){return typeof e==`function`},l=function(e){return e===Object(e)},u=function(e){return s.call(e)==`[object Array]`},d=function(e){return s.call(e)==`[object Date]`},f=function(e){return s.call(e)==`[object RegExp]`},p=function(e){return s.call(e)==`[object Boolean]`},m=function(e){return e-=0,e===e},h=function(e,t){var n=t&&`process`in t?t.process:t;return typeof n==`function`?function(t,r){return n(t,e,r)}:e},g={camelize:i,decamelize:o,pascalize:a,depascalize:o,camelizeKeys:function(e,t){return n(h(i,t),e)},decamelizeKeys:function(e,t){return n(h(o,t),e,t)},pascalizeKeys:function(e,t){return n(h(a,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=g:t.humps=g})(w)})(T);var E=T.exports,D=[`gradientFill`],O=[`class`,`style`],k=[`type`,`stops`,`id`];function A(e){return e.split(`;`).map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n=t.indexOf(`:`),r=E.camelize(t.slice(0,n));return e[r]=t.slice(n+1).trim(),e},{})}function j(e){return e.split(/\s+/).reduce(function(e,t){return e[t]=!0,e},{})}function M(t,n){return e(`stop`,m({key:`${n}-${t.offset}`,offset:t.offset,"stop-color":t.color},t.opacity!==void 0&&{"stop-opacity":t.opacity}))}function N(e){if(typeof e==`string`)return e;var t=(e.children||[]).map(N);return e.tag===`path`&&e.attributes&&`fill`in e.attributes?m(m({},e),{},{attributes:m(m({},e.attributes),{},{fill:void 0}),children:t}):m(m({},e),{},{children:t})}function P(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t==`string`)return t;var i=n.gradientFill,a=i===void 0?null:i,o=h(n,D),s=a||`fill`in r?N(t):t,c=(s.children||[]).map(function(e){return P(e,{},{})}),l=Object.keys(s.attributes||{}).reduce(function(e,t){var n=s.attributes[t];switch(t){case`class`:e.class=j(n);break;case`style`:e.style=A(n);break;default:e.attrs[t]=n}return e},{attrs:{},class:{},style:{}});r.class;var u=r.style,d=u===void 0?{}:u,f=h(r,O);if(a&&a.id&&(a.type===`linear`||a.type===`radial`)){var p=a.type,g=a.stops,v=g===void 0?[]:g,y=a.id,b=h(a,k),x=e(p===`linear`?`linearGradient`:`radialGradient`,m(m({},b),{},{id:y}),v.map(M));return e(s.tag,m(m(m(m({},o),{},{class:l.class,style:m(m({},l.style),d)},l.attrs),f),{},{fill:`url(#${y})`}),[x].concat(_(c)))}return e(t.tag,m(m(m({},o),{},{class:l.class,style:m(m({},l.style),d)},l.attrs),f),c)}var F=!1;try{F=!0}catch{}function I(){if(!F&&console&&typeof console.error==`function`){var e;(e=console).error.apply(e,arguments)}}function L(e){if(e&&b(e)===`object`&&e.prefix&&e.iconName&&e.icon)return e;if(s.icon)return s.icon(e);if(e===null)return null;if(b(e)===`object`&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e==`string`)return{prefix:`fas`,iconName:e}}var R=r({name:`FontAwesomeIcon`,props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(e){return[!0,!1,`horizontal`,`vertical`,`both`].indexOf(e)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(e){return[`right`,`left`].indexOf(e)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(e){return[90,180,270].indexOf(Number.parseInt(e,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(e){return[`2xs`,`xs`,`sm`,`lg`,`xl`,`2xl`,`1x`,`2x`,`3x`,`4x`,`5x`,`6x`,`7x`,`8x`,`9x`,`10x`].indexOf(e)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1},gradientFill:{type:Object,default:null,validator:function(e){return typeof e.id!=`string`||!e.id?(console.warn(`FontAwesomeIcon: gradientFill.id must be a non-empty string`),!1):e.type!==`linear`&&e.type!==`radial`?(console.warn(`FontAwesomeIcon: gradientFill.type must be "linear" or "radial"`),!1):!0}}},setup:function(e,r){var i=r.attrs,a=n(function(){return L(e.icon)}),c=n(function(){return S(`classes`,C(e))}),l=n(function(){return S(`transform`,typeof e.transform==`string`?s.transform(e.transform):e.transform)}),u=n(function(){return S(`mask`,L(e.mask))}),d=n(function(){var t=m(m(m(m({},c.value),l.value),u.value),{},{symbol:e.symbol,maskId:e.maskId});return t.title=e.title,t.titleId=e.titleId,o(a.value,t)});t(d,function(e){if(!e)return I(`Could not find one or more icon(s)`,a.value,u.value)},{immediate:!0}),e.gradientFill&&e.symbol&&I(`gradientFill is not supported when symbol is true and will be ignored`);var f=n(function(){return d.value?P(d.value.abstract[0],{gradientFill:e.symbol?null:e.gradientFill},i):null});return function(){return f.value}}});r({name:`FontAwesomeLayers`,props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,r){var i=r.slots,o=a.familyPrefix,s=n(function(){return[`${o}-layers`].concat(_(t.fixedWidth?[`${o}-fw`]:[]))});return function(){return e(`div`,{class:s.value},i.default?i.default():[])}}}),r({name:`FontAwesomeLayersText`,props:{value:{type:[String,Number],default:``},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(e){return[`bottom-left`,`bottom-right`,`top-left`,`top-right`].indexOf(e)>-1}}},setup:function(e,t){var r=t.attrs,o=a.familyPrefix,c=n(function(){return S(`classes`,[].concat(_(e.counter?[`${o}-layers-counter`]:[]),_(e.position?[`${o}-layers-${e.position}`]:[])))}),l=n(function(){return S(`transform`,typeof e.transform==`string`?s.transform(e.transform):e.transform)}),u=n(function(){var t=i(e.value.toString(),m(m({},l.value),c.value)).abstract;return e.counter&&(t[0].attributes.class=t[0].attributes.class.replace(`fa-layers-text`,``)),t[0]}),d=n(function(){return P(u.value,{},r)});return function(){return d.value}}});export{R as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,Gt as t,L as n,M as r,Mt as i,N as a,P as o,Q as s,S as c,St as ee,Wt as te,et as ne,ft as l,ht as u,it as d,j as f,k as p,mt as m,tt as h,wt as re,z as g}from"./vendor-chart-Dw-P17PN.js";import{a as _,c as ie,t as v}from"./install-Cn-SLM3u.js";import{d as y,n as b,r as x,s as S,u as C}from"./runtime-BTM7t9of.js";import{Ct as w,H as ae,L as oe,gt as T,h as se,i as ce,n as le,nt as E,r as D,v as O,wt as k,yt as A}from"./use-deprecated-B-uvyrTL.js";import{t as j}from"./use-aria-Blx9d5nt.js";import{n as M,r as N,t as P}from"./event-BGnHezxC.js";import{t as F}from"./repeat-click-Ctd9gEKr.js";import{Ti as ue}from"./index-
|
|
1
|
+
import{C as e,Gt as t,L as n,M as r,Mt as i,N as a,P as o,Q as s,S as c,St as ee,Wt as te,et as ne,ft as l,ht as u,it as d,j as f,k as p,mt as m,tt as h,wt as re,z as g}from"./vendor-chart-Dw-P17PN.js";import{a as _,c as ie,t as v}from"./install-Cn-SLM3u.js";import{d as y,n as b,r as x,s as S,u as C}from"./runtime-BTM7t9of.js";import{Ct as w,H as ae,L as oe,gt as T,h as se,i as ce,n as le,nt as E,r as D,v as O,wt as k,yt as A}from"./use-deprecated-B-uvyrTL.js";import{t as j}from"./use-aria-Blx9d5nt.js";import{n as M,r as N,t as P}from"./event-BGnHezxC.js";import{t as F}from"./repeat-click-Ctd9gEKr.js";import{Ti as ue}from"./index-CVwKPuSr.js";var I=b({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:2**53-1},min:{type:Number,default:-(2**53-1)},modelValue:{type:[Number,null]},readonly:Boolean,disabled:Boolean,size:T,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:``,values:[``,`right`]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||S(e)||[`min`,`max`].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...j([`ariaLabel`]),inputmode:{type:x(String),default:void 0}}),L={[P]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[M]:e=>S(e)||y(e),[N]:e=>S(e)||y(e)},R=v(_(g({...g({name:`ElInputNumber`}),props:I,emits:L,setup(g,{expose:_,emit:v}){let b=g,{t:x}=A(),T=ie(`input-number`),j=re(),I=ee({currentValue:b.modelValue,userInput:null}),{formItem:L}=ce(),R=p(()=>S(b.modelValue)&&b.modelValue<=b.min),z=p(()=>S(b.modelValue)&&b.modelValue>=b.max),B=p(()=>{let e=K(b.step);return C(b.precision)?Math.max(K(b.modelValue),e):(e>b.precision&&w(`InputNumber`,`precision should not be less than the decimal places of step`),b.precision)}),V=p(()=>b.controls&&b.controlsPosition===`right`),H=D(),U=le(),W=p(()=>{if(I.userInput!==null)return I.userInput;let e=I.currentValue;if(y(e))return``;if(S(e)){if(Number.isNaN(e))return``;C(b.precision)||(e=e.toFixed(b.precision))}return e}),G=(e,t)=>{if(C(t)&&(t=B.value),t===0)return Math.round(e);let n=String(e),r=n.indexOf(`.`);if(r===-1||!n.replace(`.`,``).split(``)[r+t])return e;let i=n.length;return n.charAt(i-1)===`5`&&(n=`${n.slice(0,Math.max(0,i-1))}6`),Number.parseFloat(Number(n).toFixed(t))},K=e=>{if(y(e))return 0;let t=e.toString(),n=t.indexOf(`.`),r=0;return n!==-1&&(r=t.length-n-1),r},q=(e,t=1)=>S(e)?e>=2**53-1&&t===1?(w(`InputNumber`,`The value has reached the maximum safe integer limit.`),e):e<=-(2**53-1)&&t===-1?(w(`InputNumber`,`The value has reached the minimum safe integer limit.`),e):G(e+b.step*t):I.currentValue,J=()=>{b.readonly||U.value||z.value||(Z(q(Number(W.value)||0)),v(M,I.currentValue),$())},Y=()=>{b.readonly||U.value||R.value||(Z(q(Number(W.value)||0,-1)),v(M,I.currentValue),$())},X=(e,t)=>{let{max:n,min:r,step:i,precision:a,stepStrictly:o,valueOnClear:s}=b;n<r&&k(`InputNumber`,`min should not be greater than max.`);let c=Number(e);if(y(e)||Number.isNaN(c))return null;if(e===``){if(s===null)return null;c=te(s)?{min:r,max:n}[s]:s}return o&&(c=G(Math.round(c/i)*i,a),c!==e&&t&&v(`update:modelValue`,c)),C(a)||(c=G(c,a)),(c>n||c<r)&&(c=c>n?n:r,t&&v(`update:modelValue`,c)),c},Z=(e,t=!0)=>{var n;let r=I.currentValue,i=X(e);if(!t){v(N,i);return}r===i&&e||(I.userInput=null,v(N,i),r!==i&&v(P,i,r),b.validateEvent&&((n=L?.validate)==null||n.call(L,`change`).catch(e=>w(e))),I.currentValue=i)},Q=e=>{I.userInput=e;let t=e===``?null:Number(e);v(M,t),Z(t,!1)},de=e=>{let t=e===``?``:Number(e);(S(t)&&!Number.isNaN(t)||e===``)&&Z(t),$(),I.userInput=null},fe=()=>{var e,t;(t=(e=j.value)?.focus)==null||t.call(e)},pe=()=>{var e,t;(t=(e=j.value)?.blur)==null||t.call(e)},me=e=>{v(`focus`,e)},he=e=>{var t;I.userInput=null,I.currentValue===null&&j.value?.input&&(j.value.input.value=``),v(`blur`,e),b.validateEvent&&((t=L?.validate)==null||t.call(L,`blur`).catch(e=>w(e)))},$=()=>{I.currentValue!==b.modelValue&&(I.currentValue=b.modelValue)},ge=e=>{document.activeElement===e.target&&e.preventDefault()};return l(()=>b.modelValue,(e,t)=>{let n=X(e,!0);I.userInput===null&&n!==t&&(I.currentValue=n)},{immediate:!0}),s(()=>{let{min:e,max:t,modelValue:n}=b,r=j.value?.input;if(r.setAttribute(`role`,`spinbutton`),Number.isFinite(t)?r.setAttribute(`aria-valuemax`,String(t)):r.removeAttribute(`aria-valuemax`),Number.isFinite(e)?r.setAttribute(`aria-valuemin`,String(e)):r.removeAttribute(`aria-valuemin`),r.setAttribute(`aria-valuenow`,I.currentValue||I.currentValue===0?String(I.currentValue):``),r.setAttribute(`aria-disabled`,String(U.value)),!S(n)&&n!=null){let e=Number(n);Number.isNaN(e)&&(e=null),v(N,e)}r.addEventListener(`wheel`,ge,{passive:!1})}),ne(()=>{(j.value?.input)?.setAttribute(`aria-valuenow`,`${I.currentValue??``}`)}),_({focus:fe,blur:pe}),(s,ee)=>(h(),a(`div`,{class:t([i(T).b(),i(T).m(i(H)),i(T).is(`disabled`,i(U)),i(T).is(`without-controls`,!s.controls),i(T).is(`controls-right`,i(V))]),onDragstart:e(()=>{},[`prevent`])},[s.controls?u((h(),a(`span`,{key:0,role:`button`,"aria-label":i(x)(`el.inputNumber.decrease`),class:t([i(T).e(`decrease`),i(T).is(`disabled`,i(R))]),onKeydown:c(Y,[`enter`])},[d(s.$slots,`decrease-icon`,{},()=>[n(i(E),null,{default:m(()=>[i(V)?(h(),f(i(se),{key:0})):(h(),f(i(oe),{key:1}))]),_:1})])],42,[`aria-label`,`onKeydown`])),[[i(F),Y]]):r(`v-if`,!0),s.controls?u((h(),a(`span`,{key:1,role:`button`,"aria-label":i(x)(`el.inputNumber.increase`),class:t([i(T).e(`increase`),i(T).is(`disabled`,i(z))]),onKeydown:c(J,[`enter`])},[d(s.$slots,`increase-icon`,{},()=>[n(i(E),null,{default:m(()=>[i(V)?(h(),f(i(O),{key:0})):(h(),f(i(ae),{key:1}))]),_:1})])],42,[`aria-label`,`onKeydown`])),[[i(F),J]]):r(`v-if`,!0),n(i(ue),{id:s.id,ref_key:`input`,ref:j,type:`number`,step:s.step,"model-value":i(W),placeholder:s.placeholder,readonly:s.readonly,disabled:i(U),size:i(H),max:s.max,min:s.min,name:s.name,"aria-label":s.ariaLabel,"validate-event":!1,inputmode:s.inputmode,onKeydown:[c(e(J,[`prevent`]),[`up`]),c(e(Y,[`prevent`]),[`down`])],onBlur:he,onFocus:me,onInput:Q,onChange:de},o({_:2},[s.$slots.prefix?{name:`prefix`,fn:m(()=>[d(s.$slots,`prefix`)])}:void 0,s.$slots.suffix?{name:`suffix`,fn:m(()=>[d(s.$slots,`suffix`)])}:void 0]),1032,[`id`,`step`,`model-value`,`placeholder`,`readonly`,`disabled`,`size`,`max`,`min`,`name`,`aria-label`,`inputmode`,`onKeydown`])],42,[`onDragstart`]))}}),[[`__file`,`input-number.vue`]]));export{R as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ei as e}from"./constants-
|
|
1
|
+
import{ei as e}from"./constants-_JKYsJLm.js";import{Dr as t,Ln as n}from"./index-CVwKPuSr.js";import{t as r}from"./createTaskActions-LRcAdLnk.js";var i=r({serviceId:e,operator:n,buildFilter:(e,t)=>({userId:e?.user?.id,createdAtMin:t.createdAtMin,createdAtMax:t.createdAtMax,type:e?.kling?.taskType})}),a=({commit:e},t)=>{e(`setMotionConfig`,t)},o=({commit:e},t)=>{e(`setTaskType`,t)},s={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},setMotionConfig:(e,t)=>{e.motionConfig=t},setTalkingPhotoConfig:(e,t)=>{e.talkingPhotoConfig=t},setTaskType:(e,t)=>{e.taskType=t,e.tasks=void 0},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:{...i,setMotionConfig:a,setTaskType:o}};export{s as default,s as kling};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{si as e}from"./constants-
|
|
1
|
+
import{si as e}from"./constants-_JKYsJLm.js";import{kr as t,zn as n}from"./index-CVwKPuSr.js";import{t as r}from"./createTaskActions-LRcAdLnk.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 luma};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fr as e}from"./constants-
|
|
1
|
+
import{Fr as e}from"./constants-_JKYsJLm.js";import{Pn as t,wr as n}from"./index-CVwKPuSr.js";import{t as r}from"./createTaskActions-LRcAdLnk.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 maestro};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{vi as e}from"./constants-
|
|
1
|
+
import{vi as e}from"./constants-_JKYsJLm.js";import{Gr as t,Hn as n,Vn as r,Zn as i,er as a,jr as o}from"./index-CVwKPuSr.js";import{t as s}from"./merge-BfSAGNo7.js";var c={namespaced:!0,state:o,mutations:{setApplication:(e,t)=>{e.application=t},setApplications:(e,t)=>{e.applications=t},setConfig:(e,t)=>{e.config=t},setTasksItems:(e,t)=>{e.tasks={...e.tasks,items:t}},setTasksTotal:(e,t)=>{e.tasks={...e.tasks,total:t}},setCredential:(e,t)=>{e.credential=t},setService:(e,t)=>{e.service=t},setTasks:(e,t)=>{e.tasks=t},resetAll:e=>{Object.assign(e,o())}},actions:{setService:async({commit:e},t)=>{console.debug(`set service`,t),e(`setService`,t)},getService:async({commit:r,state:i})=>{i.status.getService=t.Request;try{let{data:a}=await n.get(e);return i.status.getService=t.Success,r(`setService`,a),a}catch{i.status.getService=t.Error,r(`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)},setMode:({commit:e},t)=>{e(`setMode`,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:n,state:r})=>{console.debug(`start to get applications for chat`),r.status.getApplications=t.Request;let i=r.application;console.debug(`current application`,i);try{let{data:i}=await a.getAll({user_id:`me`,service_id:e,affiliation:[`owner`,`granted`]});return r.status.getApplications=t.Success,n(`setApplications`,i.items),i.items}catch(e){console.error(`get applications failed`,e),r.status.getApplications=t.Error,n(`setApplications`,void 0),n(`setApplication`,void 0)}},setTasks:({commit:e},t)=>{e(`setTasks`,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;console.debug(`current credential`,d);let f=d?.token;if(!f)return u(`no token`);i.tasks({userId:n?.user?.id,createdAtMin:o,createdAtMax:c},{token:f}).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))}),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:i}=await r.create({application_id:n?.id,host:window.location.origin});return console.debug(`created credential success`,i),e(`setCredential`,i),console.debug(`end createCredential`),i}}};export{c as default,c as midjourney};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/esm-
|
|
2
|
-
import{n as e}from"./i18n-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/esm-CjHvY2JG.js","assets/index-CVwKPuSr.js","assets/rolldown-runtime--c01j_DQ.js","assets/preload-helper-zJ_50EbN.js","assets/i18n-CwfIBu51.js","assets/vendor-chart-Dw-P17PN.js","assets/vendor-axios-Ck2ffRoh.js","assets/use-deprecated-B-uvyrTL.js","assets/install-Cn-SLM3u.js","assets/en-CpRrS3Ur.js","assets/runtime-BTM7t9of.js","assets/vendor-vue-CCKiwo0U.js","assets/vendor-dayjs-C9ICuEWn.js","assets/event-BGnHezxC.js","assets/use-aria-Blx9d5nt.js","assets/aria-8oQuUBWy.js","assets/scroll-iopg7oiN.js","assets/vnode-tCZAUc1D.js","assets/vendor-vue-router-Cnr45FPb.js","assets/constants-_JKYsJLm.js","assets/index-BZYGM2eC.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e}from"./i18n-CwfIBu51.js";import{t}from"./preload-helper-zJ_50EbN.js";import{Ni as n,ji as r}from"./index-CVwKPuSr.js";var i=n(`ComputerUse`),a=`nexior.android.cu.enabled`,o=`nexior.android.cu.grants`,s=[{name:`computer.screenshot`,description:`Capture the user's phone screen. Returns raw pixel dimensions; the image is attached for you to see the current UI before acting. Coordinates for click/scroll are in this same raw pixel space.`,input_schema:{type:`object`,properties:{}},source:`builtin`,mutates:!0},{name:`computer.click`,description:`Tap the screen at raw-pixel (x, y) on the user's phone.`,input_schema:{type:`object`,properties:{x:{type:`number`},y:{type:`number`},button:{type:`string`,enum:[`left`,`right`,`middle`]}},required:[`x`,`y`]},source:`builtin`,mutates:!0},{name:`computer.move`,description:`No-op on Android (phones have no hover pointer); accepted so the loop doesn't stall.`,input_schema:{type:`object`,properties:{x:{type:`number`},y:{type:`number`}},required:[`x`,`y`]},source:`builtin`,mutates:!0},{name:`computer.type`,description:`Type text into the currently focused input field on the user's phone.`,input_schema:{type:`object`,properties:{text:{type:`string`}},required:[`text`]},source:`builtin`,mutates:!0},{name:`computer.key`,description:`Press a system key on the user's phone. Supported: ['back'], ['home'], ['recents'], ['notifications'].`,input_schema:{type:`object`,properties:{keys:{type:`array`,items:{type:`string`}}},required:[`keys`]},source:`builtin`,mutates:!0},{name:`computer.scroll`,description:`Scroll the phone screen (optionally centered on x,y). Positive scrollY = content moves up (fling down), positive scrollX = right.`,input_schema:{type:`object`,properties:{x:{type:`number`},y:{type:`number`},scrollX:{type:`number`},scrollY:{type:`number`}},required:[]},source:`builtin`,mutates:!0},{name:`computer.dump_ui`,description:`List the tappable/editable UI elements currently on screen using the accessibility tree — each with its visible label and a precise center coordinate. Call this after a screenshot to get EXACT tap targets instead of guessing pixel coordinates from the image. Then prefer computer.tap_text to act on a listed label.`,input_schema:{type:`object`,properties:{}},source:`builtin`,mutates:!1},{name:`computer.tap_text`,description:`Tap a UI element by its visible text or content-description (uses the accessibility tree for a precise, reliable tap). STRONGLY PREFER this over computer.click for buttons, tabs, icons, list items and app-drawer icons — it hits the real element instead of a guessed pixel. Give the exact or partial label, e.g. 'Clock' or 'Add alarm'.`,input_schema:{type:`object`,properties:{text:{type:`string`}},required:[`text`]},source:`builtin`,mutates:!0},{name:`computer.observe`,description:`BEST way to see and act: returns a screenshot with a numbered box drawn on every tappable element, plus a legend mapping each number to its label. Prefer this over computer.screenshot when you intend to tap something — then call computer.tap_mark with the number of the element you want. Removes all coordinate guessing.`,input_schema:{type:`object`,properties:{}},source:`builtin`,mutates:!0},{name:`computer.tap_mark`,description:`Tap the numbered element from the most recent computer.observe (Set-of-Mark). Pass the mark number shown on the annotated screenshot. This is the most reliable way to tap.`,input_schema:{type:`object`,properties:{mark:{type:`integer`}},required:[`mark`]},source:`builtin`,mutates:!0}];function c(){try{return localStorage.getItem(a)===`1`}catch{return!1}}function l(e){try{localStorage.setItem(a,e?`1`:`0`)}catch{}}function u(){try{let e=localStorage.getItem(o),t=e?JSON.parse(e):[];return Array.isArray(t)?t.filter(e=>typeof e==`string`):[]}catch(e){return console.warn(`[ComputerUse] failed to parse grants from localStorage`,e),[]}}function d(e){try{localStorage.setItem(o,JSON.stringify([...new Set(e)]))}catch{}}async function f(t){if(u().includes(t))return!0;if(typeof document<`u`&&document.visibilityState===`hidden`)return!1;let n=e.global.t,r=t.replace(/^computer\./,``);try{let{choice:e}=await i.confirmConsent({title:n(`common.settings.cuConsentTitle`),message:n(`common.settings.cuConsentMessage`,{action:r}),onceLabel:n(`common.settings.cuConsentAllow`),alwaysLabel:n(`common.settings.cuConsentAlways`),denyLabel:n(`common.settings.cuConsentDeny`)});return e===`always`?(d([...u(),t]),!0):e===`once`}catch{return!1}}async function p(){try{return!!(await i.status()).accessibility}catch{return!1}}var m=!1;async function h(){if(!m){m=!0;try{let{LocalNotifications:e}=await t(async()=>{let{LocalNotifications:e}=await import(`./esm-CjHvY2JG.js`);return{LocalNotifications:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]));await e.requestPermissions()}catch{}}}function g(e){return{mac:!1,fullDisk:!1,screen:e?`granted`:`denied`,mic:`denied`,accessibility:e}}var _={available:!0,async listTools(){return c()?s:[]},async invoke(e){return v(e.name,e.input??{})},async getConfig(){return{roots:[],mcp:[],computerUse:c()}},async saveConfig(e){let t=!!e.computerUse;l(t);try{t?await i.resetStop():(d([]),await i.stopSession())}catch{}return!0},async pickFolder(){return null},perm:{async status(){return g(await p())},async openPane(e){if(e===`accessibility`){try{await i.openAccessibilitySettings()}catch{}return!0}return!1},async askMedia(){return!1}},grants:{async list(){return u()},async revoke(e){return d(u().filter(t=>t!==e)),!0},async clear(){return d([]),!0},async grantToolWide(e){let t=[...u(),e];return d(t),{grants:[...new Set(t)],ok:!0}}},async builtinTools(){return[]},async computerTools(){return s.map(e=>({name:e.name,description:e.description}))},async preauthorizeComputerUse(e){l(!0);let t=e&&e.length?e:s.map(e=>e.name);d([...u(),...t]);try{await i.resetStop(),await h(),await i.openAccessibilitySettings()}catch{}let n=await p();return{grants:u(),perm:g(n),computerUse:!0}},onComputerUseDisabled(e){let t,n=!1;return i.addListener(`computerUseDisabled`,()=>{l(!1),d([]),e()}).then(e=>{t=e,n&&t.remove?.()}).catch(()=>{}),()=>{n=!0,t?.remove?.()}}};async function v(e,t){if(!e.startsWith(`computer.`))return{output:`unknown tool: ${e}`,is_error:!0};if(!await f(e))return{output:`denied: "${e}" is not pre-authorized. Ask the user to allow it when prompted (foreground), or pre-authorize it in Settings → Local Tools.`,is_error:!0};try{await i.startSession()}catch(e){console.warn(`[ComputerUse] startSession failed; loop may be throttled if backgrounded`,e)}try{switch(e){case`computer.screenshot`:{let e=await i.screenshot();return{output:JSON.stringify({width:e.width,height:e.height}),image:e.image}}case`computer.dump_ui`:return{output:(await i.dumpUi()).tree||`[]`};case`computer.observe`:{let e=await i.observe(),t=[];try{t=JSON.parse(e.marks||`[]`)}catch{t=[]}return{output:JSON.stringify({width:e.width,height:e.height,marks:t}),image:e.image}}case`computer.tap_mark`:{let e=Number(t.mark);return!Number.isInteger(e)||e<1?{output:`tap_mark requires a positive integer mark from the last observe`,is_error:!0}:{output:(await i.tapMark({mark:e})).note??`ok`}}case`computer.tap_text`:{let e=String(t.text??``).trim();return e?{output:(await i.tapText({text:e})).note??`ok`}:{output:`tap_text requires non-empty text`,is_error:!0}}case`computer.click`:return{output:(await i.click({x:Number(t.x),y:Number(t.y),button:typeof t.button==`string`?t.button:void 0})).note??`ok`};case`computer.move`:return{output:(await i.move({x:Number(t.x),y:Number(t.y)})).note??`ok`};case`computer.type`:return{output:(await i.type({text:String(t.text??``)})).note??`ok`};case`computer.key`:{let e=Array.isArray(t.keys)?t.keys.map(String):[];return{output:(await i.key({keys:e})).note??`ok`}}case`computer.scroll`:return{output:(await i.scroll({x:t.x==null?void 0:Number(t.x),y:t.y==null?void 0:Number(t.y),scrollX:t.scrollX==null?void 0:Number(t.scrollX),scrollY:t.scrollY==null?void 0:Number(t.scrollY)})).note??`ok`};default:return{output:`unknown tool: ${e}`,is_error:!0}}}catch(e){return{output:e instanceof Error?e.message:String(e),is_error:!0}}}function y(){typeof window>`u`||r.getPlatform()===`android`&&(window.localExec||(window.localExec=_,console.debug(`[ComputerUse] Android local-exec bridge installed`)))}export{y as installMobileLocalExec};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Bn as e}from"./constants-
|
|
1
|
+
import{Bn as e}from"./constants-_JKYsJLm.js";import{Sn as t,gr as n}from"./index-CVwKPuSr.js";import{t as r}from"./createTaskActions-LRcAdLnk.js";var i=r({serviceId:e,operator:t,paginated:!0,type:`images`}),a={items:void 0,total:void 0,active:void 0},o={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||a,active:t}},setTasksItems:(e,t)=>{e.tasks={...e.tasks||a,items:t}},setTasksTotal:(e,t)=>{e.tasks={...e.tasks||a,total:t}},resetAll:e=>{Object.assign(e,n())}},actions:i};export{o as default,o as nanobanana};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{An as e}from"./constants-
|
|
1
|
+
import{An as e}from"./constants-_JKYsJLm.js";import{hr as t,xn as n}from"./index-CVwKPuSr.js";import{t as r}from"./createTaskActions-LRcAdLnk.js";var i=r({serviceId:e,operator:n,paginated:!0}),a={items:void 0,total:void 0,active:void 0},o={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||a,active:t}},setTasksItems:(e,t)=>{e.tasks={...e.tasks||a,items:t}},setTasksTotal:(e,t)=>{e.tasks={...e.tasks||a,total:t}},resetAll:e=>{Object.assign(e,t())}},actions:i};export{o as default,o as openaiimage};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./rolldown-runtime--c01j_DQ.js";import{A as e,Gt as t,H as n,I as r,Jt as i,K as a,L as o,M as s,N as c,T as l,at as u,ht as d,it as f,j as p,mt as m,rt as h,tt as g,wt as _,x as v,z as y}from"./vendor-chart-Dw-P17PN.js";import{I as b,nt as x}from"./use-deprecated-B-uvyrTL.js";import{t as S}from"./tooltip-
|
|
1
|
+
import"./rolldown-runtime--c01j_DQ.js";import{A as e,Gt as t,H as n,I as r,Jt as i,K as a,L as o,M as s,N as c,T as l,at as u,ht as d,it as f,j as p,mt as m,rt as h,tt as g,wt as _,x as v,z as y}from"./vendor-chart-Dw-P17PN.js";import{I as b,nt as x}from"./use-deprecated-B-uvyrTL.js";import{t as S}from"./tooltip-B94uJp4z.js";import{t as C}from"./image-BPnyyzKu.js";import{t as w}from"./checkbox-ChInsWN4.js";import{Wi as T}from"./constants-_JKYsJLm.js";import{ci as ee,gi as te,ii as ne,j as E}from"./index-CVwKPuSr.js";import{t as D}from"./index.es-y7sbCPuq.js";import{t as re}from"./CodeSnippet-C6hp7tVY.js";var O=y({name:`InfoIcon`,components:{FontAwesomeIcon:D,ElTooltip:S},props:{content:{type:String,required:!0}}});function ie(e,t,n,r,i,a){let s=u(`font-awesome-icon`),c=u(`el-tooltip`);return g(),p(c,{effect:`dark`,content:e.content,placement:`top`},{default:m(()=>[o(s,{icon:`fa-solid fa-info`,class:`icon icon-rotate inline-block w-[20px] h-[20px] border-[3px] border-solid border-[var(--el-text-color-placeholder)] rounded-full text-[10px] p-[5px] scale-[0.4] cursor-pointer text-[var(--el-text-color-placeholder)] -mr-[5px]`})]),_:1},8,[`content`])}var ae=E(O,[[`render`,ie]]),oe=Object.prototype.toString,k=Array.isArray||function(e){return oe.call(e)===`[object Array]`};function A(e){return typeof e==`function`}function se(e){return k(e)?`array`:typeof e}function j(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,`\\$&`)}function M(e,t){return typeof e==`object`&&!!e&&t in e}function ce(e,t){return e!=null&&typeof e!=`object`&&e.hasOwnProperty&&e.hasOwnProperty(t)}var le=RegExp.prototype.test;function N(e,t){return le.call(e,t)}var P=/\S/;function F(e){return!N(P,e)}var I={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`,"`":```,"=":`=`};function L(e){return String(e).replace(/[&<>"'`=\/]/g,function(e){return I[e]})}var R=/\s*/,z=/\s+/,B=/\s*=/,V=/\s*\}/,H=/#|\^|\/|>|\{|&|=|!/;function U(e,t){if(!e)return[];var n=!1,r=[],i=[],a=[],o=!1,s=!1,c=``,l=0;function u(){if(o&&!s)for(;a.length;)delete i[a.pop()];else a=[];o=!1,s=!1}var d,f,p;function m(e){if(typeof e==`string`&&(e=e.split(z,2)),!k(e)||e.length!==2)throw Error(`Invalid tags: `+e);d=RegExp(j(e[0])+`\\s*`),f=RegExp(`\\s*`+j(e[1])),p=RegExp(`\\s*`+j(`}`+e[1]))}m(t||J.tags);for(var h=new G(e),g,_,v,y,b,x;!h.eos();){if(g=h.pos,v=h.scanUntil(d),v)for(var S=0,C=v.length;S<C;++S)y=v.charAt(S),F(y)?(a.push(i.length),c+=y):(s=!0,n=!0,c+=` `),i.push([`text`,y,g,g+1]),g+=1,y===`
|
|
2
2
|
`&&(u(),c=``,l=0,n=!1);if(!h.scan(d))break;if(o=!0,_=h.scan(H)||`name`,h.scan(R),_===`=`?(v=h.scanUntil(B),h.scan(B),h.scanUntil(f)):_===`{`?(v=h.scanUntil(p),h.scan(V),h.scanUntil(f),_=`&`):v=h.scanUntil(f),!h.scan(f))throw Error(`Unclosed tag at `+h.pos);if(b=_==`>`?[_,v,g,h.pos,c,l,n]:[_,v,g,h.pos],l++,i.push(b),_===`#`||_===`^`)r.push(b);else if(_===`/`){if(x=r.pop(),!x)throw Error(`Unopened section "`+v+`" at `+g);if(x[1]!==v)throw Error(`Unclosed section "`+x[1]+`" at `+g)}else _===`name`||_===`{`||_===`&`?s=!0:_===`=`&&m(v)}if(u(),x=r.pop(),x)throw Error(`Unclosed section "`+x[1]+`" at `+h.pos);return ue(W(i))}function W(e){for(var t=[],n,r,i=0,a=e.length;i<a;++i)n=e[i],n&&(n[0]===`text`&&r&&r[0]===`text`?(r[1]+=n[1],r[3]=n[3]):(t.push(n),r=n));return t}function ue(e){for(var t=[],n=t,r=[],i,a,o=0,s=e.length;o<s;++o)switch(i=e[o],i[0]){case`#`:case`^`:n.push(i),r.push(i),n=i[4]=[];break;case`/`:a=r.pop(),a[5]=i[2],n=r.length>0?r[r.length-1][4]:t;break;default:n.push(i)}return t}function G(e){this.string=e,this.tail=e,this.pos=0}G.prototype.eos=function(){return this.tail===``},G.prototype.scan=function(e){var t=this.tail.match(e);if(!t||t.index!==0)return``;var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},G.prototype.scanUntil=function(e){var t=this.tail.search(e),n;switch(t){case-1:n=this.tail,this.tail=``;break;case 0:n=``;break;default:n=this.tail.substring(0,t),this.tail=this.tail.substring(t)}return this.pos+=n.length,n};function K(e,t){this.view=e,this.cache={".":this.view},this.parent=t}K.prototype.push=function(e){return new K(e,this)},K.prototype.lookup=function(e){var t=this.cache,n;if(t.hasOwnProperty(e))n=t[e];else{for(var r=this,i,a,o,s=!1;r;){if(e.indexOf(`.`)>0)for(i=r.view,a=e.split(`.`),o=0;i!=null&&o<a.length;)o===a.length-1&&(s=M(i,a[o])||ce(i,a[o])),i=i[a[o++]];else i=r.view[e],s=M(r.view,e);if(s){n=i;break}r=r.parent}t[e]=n}return A(n)&&(n=n.call(this.view)),n};function q(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}q.prototype.clearCache=function(){this.templateCache!==void 0&&this.templateCache.clear()},q.prototype.parse=function(e,t){var n=this.templateCache,r=e+`:`+(t||J.tags).join(`:`),i=n!==void 0,a=i?n.get(r):void 0;return a??(a=U(e,t),i&&n.set(r,a)),a},q.prototype.render=function(e,t,n,r){var i=this.getConfigTags(r),a=this.parse(e,i),o=t instanceof K?t:new K(t,void 0);return this.renderTokens(a,o,n,e,r)},q.prototype.renderTokens=function(e,t,n,r,i){for(var a=``,o,s,c,l=0,u=e.length;l<u;++l)c=void 0,o=e[l],s=o[0],s===`#`?c=this.renderSection(o,t,n,r,i):s===`^`?c=this.renderInverted(o,t,n,r,i):s===`>`?c=this.renderPartial(o,t,n,i):s===`&`?c=this.unescapedValue(o,t):s===`name`?c=this.escapedValue(o,t,i):s===`text`&&(c=this.rawValue(o)),c!==void 0&&(a+=c);return a},q.prototype.renderSection=function(e,t,n,r,i){var a=this,o=``,s=t.lookup(e[1]);function c(e){return a.render(e,t,n,i)}if(s){if(k(s))for(var l=0,u=s.length;l<u;++l)o+=this.renderTokens(e[4],t.push(s[l]),n,r,i);else if(typeof s==`object`||typeof s==`string`||typeof s==`number`)o+=this.renderTokens(e[4],t.push(s),n,r,i);else if(A(s)){if(typeof r!=`string`)throw Error(`Cannot use higher-order sections without the original template`);s=s.call(t.view,r.slice(e[3],e[5]),c),s!=null&&(o+=s)}else o+=this.renderTokens(e[4],t,n,r,i);return o}},q.prototype.renderInverted=function(e,t,n,r,i){var a=t.lookup(e[1]);if(!a||k(a)&&a.length===0)return this.renderTokens(e[4],t,n,r,i)},q.prototype.indentPartial=function(e,t,n){for(var r=t.replace(/[^ \t]/g,``),i=e.split(`
|
|
3
3
|
`),a=0;a<i.length;a++)i[a].length&&(a>0||!n)&&(i[a]=r+i[a]);return i.join(`
|
|
4
4
|
`)},q.prototype.renderPartial=function(e,t,n,r){if(n){var i=this.getConfigTags(r),a=A(n)?n(e[1]):n[e[1]];if(a!=null){var o=e[6],s=e[5],c=e[4],l=a;s==0&&c&&(l=this.indentPartial(a,c,o));var u=this.parse(l,i);return this.renderTokens(u,t,n,l,r)}}},q.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(n!=null)return n},q.prototype.escapedValue=function(e,t,n){var r=this.getConfigEscape(n)||J.escape,i=t.lookup(e[1]);if(i!=null)return typeof i==`number`&&r===J.escape?String(i):r(i)},q.prototype.rawValue=function(e){return e[1]},q.prototype.getConfigTags=function(e){if(k(e))return e;if(e&&typeof e==`object`)return e.tags},q.prototype.getConfigEscape=function(e){if(e&&typeof e==`object`&&!k(e))return e.escape};var J={name:`mustache.js`,version:`4.2.0`,tags:[`{{`,`}}`],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){Y.templateCache=e},get templateCache(){return Y.templateCache}},Y=new q;J.clearCache=function(){return Y.clearCache()},J.parse=function(e,t){return Y.parse(e,t)},J.render=function(e,t,n,r){if(typeof e!=`string`)throw TypeError(`Invalid template! Template should be a "string" but "`+se(e)+`" was given as the first argument for mustache#render(template, view, partials)`);return Y.render(e,t,n,r)},J.escape=L,J.Scanner=G,J.Context=K,J.Writer=q;var de={shell:`curl -X {{{method}}} '{{{url}}}' \\
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ai as e}from"./constants-
|
|
1
|
+
import{ai as e}from"./constants-_JKYsJLm.js";import{Or as t,Rn as n}from"./index-CVwKPuSr.js";import{t as r}from"./createTaskActions-LRcAdLnk.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,type:`videos`})};export{i as default,i as pika};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{sr as e}from"./constants-
|
|
1
|
+
import{sr as e}from"./constants-_JKYsJLm.js";import{Mn as t,Sr as n}from"./index-CVwKPuSr.js";import{t as r}from"./createTaskActions-LRcAdLnk.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 pixverse};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as e,Gt as t,I as n,Jt as r,M as i,Mt as a,N as o,it as s,j as c,k as l,mt as u,tt as d,wt as f,z as p}from"./vendor-chart-Dw-P17PN.js";import{a as m,c as h,n as g,t as _}from"./install-Cn-SLM3u.js";import{i as v,n as y}from"./runtime-BTM7t9of.js";import{it as b}from"./use-deprecated-B-uvyrTL.js";import{a as x,i as S,t as C}from"./tooltip-
|
|
1
|
+
import{G as e,Gt as t,I as n,Jt as r,M as i,Mt as a,N as o,it as s,j as c,k as l,mt as u,tt as d,wt as f,z as p}from"./vendor-chart-Dw-P17PN.js";import{a as m,c as h,n as g,t as _}from"./install-Cn-SLM3u.js";import{i as v,n as y}from"./runtime-BTM7t9of.js";import{it as b}from"./use-deprecated-B-uvyrTL.js";import{a as x,i as S,t as C}from"./tooltip-B94uJp4z.js";import{l as w}from"./dropdown-Cygrh-By.js";var T=y({trigger:S.trigger,triggerKeys:S.triggerKeys,placement:w.placement,disabled:S.disabled,visible:x.visible,transition:x.transition,popperOptions:w.popperOptions,tabindex:w.tabindex,content:x.content,popperStyle:x.popperStyle,popperClass:x.popperClass,enterable:{...x.enterable,default:!0},effect:{...x.effect,default:`light`},teleported:x.teleported,appendTo:x.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),E={"update:visible":e=>v(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},D=`onUpdate:visible`,O=m(p({...p({name:`ElPopover`}),props:T,emits:E,setup(p,{expose:m,emit:g}){let _=p,v=l(()=>_[D]),y=h(`popover`),x=f(),S=l(()=>a(x)?.popperRef),w=l(()=>[{width:b(_.width)},_.popperStyle]),T=l(()=>[y.b(),_.popperClass,{[y.m(`plain`)]:!!_.content}]),E=l(()=>_.transition===`${y.namespace.value}-fade-in-linear`),O=()=>{var e;(e=x.value)==null||e.hide()},k=()=>{g(`before-enter`)},A=()=>{g(`before-leave`)},j=()=>{g(`after-enter`)},M=()=>{g(`update:visible`,!1),g(`after-leave`)};return m({popperRef:S,hide:O}),(l,f)=>(d(),c(a(C),e({ref_key:`tooltipRef`,ref:x},l.$attrs,{trigger:l.trigger,"trigger-keys":l.triggerKeys,placement:l.placement,disabled:l.disabled,visible:l.visible,transition:l.transition,"popper-options":l.popperOptions,tabindex:l.tabindex,content:l.content,offset:l.offset,"show-after":l.showAfter,"hide-after":l.hideAfter,"auto-close":l.autoClose,"show-arrow":l.showArrow,"aria-label":l.title,effect:l.effect,enterable:l.enterable,"popper-class":a(T),"popper-style":a(w),teleported:l.teleported,"append-to":l.appendTo,persistent:l.persistent,"gpu-acceleration":a(E),"onUpdate:visible":a(v),onBeforeShow:k,onBeforeHide:A,onShow:j,onHide:M}),{content:u(()=>[l.title?(d(),o(`div`,{key:0,class:t(a(y).e(`title`)),role:`title`},r(l.title),3)):i(`v-if`,!0),s(l.$slots,`default`,{},()=>[n(r(l.content),1)])]),default:u(()=>[l.$slots.reference?s(l.$slots,`reference`,{key:0}):i(`v-if`,!0)]),_:3},16,[`trigger`,`trigger-keys`,`placement`,`disabled`,`visible`,`transition`,`popper-options`,`tabindex`,`content`,`offset`,`show-after`,`hide-after`,`auto-close`,`show-arrow`,`aria-label`,`effect`,`enterable`,`popper-class`,`popper-style`,`teleported`,`append-to`,`persistent`,`gpu-acceleration`,`onUpdate:visible`]))}}),[[`__file`,`popover.vue`]]),k=(e,t)=>{let n=(t.arg||t.value)?.popperRef;n&&(n.triggerRef=e)},A=_(O,{directive:g({mounted(e,t){k(e,t)},updated(e,t){k(e,t)}},`popover`)});export{A as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Un as e}from"./constants-
|
|
1
|
+
import{Un as e}from"./constants-_JKYsJLm.js";import{Cn as t,Gr as n,Hn as r,Vn as i,er as a,vr as o}from"./index-CVwKPuSr.js";import{t as s}from"./merge-BfSAGNo7.js";var c={namespaced:!0,state:o,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},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}},actions:{setService:async({commit:e},t)=>{console.debug(`set service`,t),e(`setService`,t)},getService:async({commit:t,state:i})=>{i.status.getService=n.Request;try{let{data:a}=await r.get(e);return i.status.getService=n.Success,t(`setService`,a),a}catch{i.status.getService=n.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 producer`),r.status.getApplications=n.Request;let i=r.application;console.debug(`current application`,i);try{let{data:i}=await a.getAll({user_id:`me`,service_id:e,affiliation:[`owner`,`granted`]});return r.status.getApplications=n.Success,t(`setApplications`,i.items),i.items}catch(e){console.error(`get applications failed`,e),r.status.getApplications=n.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:n,rootState:r},{offset:i,limit:a,createdAtMin:o,createdAtMax:c})=>new Promise((l,u)=>{console.debug(`start to get tasks`,i,a,c,o);let d=n.credential?.token;if(!d)return u(`no token`);t.tasks({userId:r?.user?.id,createdAtMin:o,createdAtMax:c,type:`audios`},{token:d}).then(t=>{console.debug(`get producer tasks success`,t.data.items);let r=n?.tasks?.items||[];console.debug(`existing items`,r);let i=t.data.items||[];console.debug(`new items`,i),e(`setTasksItems`,s(r,i)),e(`setTasksTotal`,t.data.count),l(t.data.items)}).catch(e=>u(e))}),setAudio:({commit:e},t)=>{e(`setAudio`,t)},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 i.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 producer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{pi as e}from"./constants-
|
|
1
|
+
import{pi as e}from"./constants-_JKYsJLm.js";import{Ar as t,Bn as n}from"./index-CVwKPuSr.js";import{t as r}from"./createTaskActions-LRcAdLnk.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 qrart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Si as e}from"./constants-
|
|
1
|
+
import{Si as e}from"./constants-_JKYsJLm.js";import{Gr as t,Gt as n,Hn as r,Vn as i,er as a}from"./index-CVwKPuSr.js";var o={namespaced:!0,state:()=>({service:void 0,applications:void 0,application:void 0,credential:void 0,status:{getService:t.None,getApplications:t.None,getCredential:t.None}}),mutations:{setService(e,t){e.service=t},setApplications(e,t){e.applications=t},setApplication(e,t){e.application=t},setCredential(e,t){e.credential=t}},actions:{getService:async({commit:n,state:i})=>{i.status.getService=t.Request;try{let{data:a}=await r.get(e);return i.status.getService=t.Success,n(`setService`,a),a}catch{i.status.getService=t.Error,n(`setService`,void 0)}},getApplications:async({commit:n,state:r})=>{r.status.getApplications=t.Request;try{let{data:i}=await a.getAll({user_id:`me`,service_id:e,affiliation:[`owner`,`granted`]});return r.status.getApplications=t.Success,n(`setApplications`,i.items),i.items}catch{r.status.getApplications=t.Error,n(`setApplications`,void 0)}},createCredential:async({commit:e,state:n})=>{let r=n.application;if(r){n.status.getCredential=t.Request;try{let{data:a}=await i.create({application_id:r?.id,host:window.location.origin});return n.status.getCredential=t.Success,e(`setCredential`,a),a}catch{n.status.getCredential=t.Error;return}}},setApplication:async({commit:e,dispatch:t,rootState:n},r)=>{if(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?e(`setCredential`,void 0):await t(`createCredential`)},init:async({dispatch:e,state:t,rootState:r})=>{await e(`getService`);let[i]=await Promise.all([e(`getApplications`),e(`getApplications`,null,{root:!0})]),a=n([...r?.applications??[],...i??[]],t.application);return a&&await e(`setApplication`,a),t.credential}}};export{o as default,o as realtime};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Gt as e,Mt as t,U as n,Vt as r,it as i,j as a,k as o,mt as s,nt as c,qt as l,st as u,tt as d,z as f}from"./vendor-chart-Dw-P17PN.js";import{a as p,c as m,t as h}from"./install-Cn-SLM3u.js";import{n as g,r as _,s as v}from"./runtime-BTM7t9of.js";import{Ai as y}from"./index-
|
|
1
|
+
import{Gt as e,Mt as t,U as n,Vt as r,it as i,j as a,k as o,mt as s,nt as c,qt as l,st as u,tt as d,z as f}from"./vendor-chart-Dw-P17PN.js";import{a as p,c as m,t as h}from"./install-Cn-SLM3u.js";import{n as g,r as _,s as v}from"./runtime-BTM7t9of.js";import{Ai as y}from"./index-CVwKPuSr.js";var b=g({tag:{type:String,default:`div`},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:_([Number,Object]),default:()=>y({})},sm:{type:_([Number,Object]),default:()=>y({})},md:{type:_([Number,Object]),default:()=>y({})},lg:{type:_([Number,Object]),default:()=>y({})},xl:{type:_([Number,Object]),default:()=>y({})}}),x=Symbol(`rowContextKey`),S=h(p(f({...f({name:`ElCol`}),props:b,setup(c){let f=c,{gutter:p}=n(x,{gutter:o(()=>0)}),h=m(`col`),g=o(()=>{let e={};return p.value&&(e.paddingLeft=e.paddingRight=`${p.value/2}px`),e}),_=o(()=>{let e=[];return[`span`,`offset`,`pull`,`push`].forEach(t=>{let n=f[t];v(n)&&(t===`span`?e.push(h.b(`${f[t]}`)):n>0&&e.push(h.b(`${t}-${f[t]}`)))}),[`xs`,`sm`,`md`,`lg`,`xl`].forEach(t=>{v(f[t])?e.push(h.b(`${t}-${f[t]}`)):r(f[t])&&Object.entries(f[t]).forEach(([n,r])=>{e.push(n===`span`?h.b(`${t}-${r}`):h.b(`${t}-${n}-${r}`))})}),p.value&&e.push(h.is(`guttered`)),[h.b(),e]});return(n,r)=>(d(),a(u(n.tag),{class:e(t(_)),style:l(t(g))},{default:s(()=>[i(n.$slots,`default`)]),_:3},8,[`class`,`style`]))}}),[[`__file`,`col.vue`]])),C=g({tag:{type:String,default:`div`},gutter:{type:Number,default:0},justify:{type:String,values:[`start`,`center`,`end`,`space-around`,`space-between`,`space-evenly`],default:`start`},align:{type:String,values:[`top`,`middle`,`bottom`]}}),w=h(p(f({...f({name:`ElRow`}),props:C,setup(n){let r=n,f=m(`row`);c(x,{gutter:o(()=>r.gutter)});let p=o(()=>{let e={};return r.gutter&&(e.marginRight=e.marginLeft=`-${r.gutter/2}px`),e}),h=o(()=>[f.b(),f.is(`justify-${r.justify}`,r.justify!==`start`),f.is(`align-${r.align}`,!!r.align)]);return(n,r)=>(d(),a(u(n.tag),{class:e(t(h)),style:l(t(p))},{default:s(()=>[i(n.$slots,`default`)]),_:3},8,[`class`,`style`]))}}),[[`__file`,`row.vue`]]));export{S as n,w as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{in as e}from"./constants-
|
|
1
|
+
import{in as e}from"./constants-_JKYsJLm.js";import{pr as t,yn as n}from"./index-CVwKPuSr.js";import{t as r}from"./createTaskActions-LRcAdLnk.js";var i=r({serviceId:e,operator:n,paginated:!0,type:`videos`}),a={items:void 0,total:void 0,active:void 0},o={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||a,active:t}},setTasksItems:(e,t)=>{e.tasks={...e.tasks||a,items:t}},setTasksTotal:(e,t)=>{e.tasks={...e.tasks||a,total:t}},resetAll:e=>{Object.assign(e,t())}},actions:i};export{o as default,o as seedance};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_n as e}from"./constants-
|
|
1
|
+
import{_n as e}from"./constants-_JKYsJLm.js";import{Gr as t,Hn as n,Vn as r,bn as i,er as a,mr as o}from"./index-CVwKPuSr.js";import{t as s}from"./merge-BfSAGNo7.js";var c={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:i}=await r.create({application_id:n?.id,host:window.location.origin});return console.debug(`created credential success`,i),e(`setCredential`,i),console.debug(`end createCredential`),i},setService:async({commit:e},t)=>{console.debug(`set service`,t),e(`setService`,t)},getService:async({commit:r,state:i})=>{i.status.getService=t.Request;try{let{data:a}=await n.get(e);return i.status.getService=t.Success,r(`setService`,a),a}catch{i.status.getService=t.Error,r(`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)},setApplications:async({commit:e},t)=>{console.debug(`set applications`,t),e(`setApplications`,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`))},getApplications:async({commit:n,state:r})=>{console.debug(`start to get applications for seedream`),r.status.getApplications=t.Request;try{let{data:i}=await a.getAll({user_id:`me`,service_id:e,affiliation:[`owner`,`granted`]});return r.status.getApplications=t.Success,n(`setApplications`,i.items),i.items}catch(e){console.error(`get applications failed`,e),r.status.getApplications=t.Error,n(`setApplications`,void 0),n(`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:n,rootState:r},{offset:a,limit:o,createdAtMin:c,createdAtMax:l})=>(n.status.getTasks=t.Request,new Promise((u,d)=>{console.debug(`start to get tasks`,a,o);let f=n.credential;console.debug(`current credential`,f);let p=f?.token;if(!p)return n.status.getTasks=t.Error,d(`no token`);i.tasks({userId:r?.user?.id,offset:a,limit:o,createdAtMin:c,createdAtMax:l,type:`images`},{token:p}).then(r=>{console.debug(`get images tasks success`,r.data.items);let i=n?.tasks?.items||[];console.debug(`existing items`,i);let a=r.data.items||[];console.debug(`new items`,a),e(`setTasksItems`,s(i,a)),e(`setTasksTotal`,r.data.count),n.status.getTasks=t.Success,u(r.data.items)}).catch(e=>(n.status.getTasks=t.Error,d(e)))}))},l={items:void 0,total:void 0,active:void 0},u={namespaced:!0,state:o,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||l,active:t}},setTasksItems:(e,t)=>{e.tasks={...e.tasks||l,items:t}},setTasksTotal:(e,t)=>{e.tasks={...e.tasks||l,total:t}},resetAll:e=>{Object.assign(e,o())}},actions:c};export{u as default,u as seedream};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,B as t,Bt as n,C as r,Dt as i,Et as a,Gt as o,Ht as s,I as c,Jt as l,K as u,L as d,M as f,Mt as p,N as m,Q as h,Rt as g,S as _,St as v,T as ee,U as y,Vt as b,W as te,Wt as x,Y as S,Yt as C,at as w,b as ne,ft as T,ht as E,it as D,j as O,k,kt as re,mt as A,nt as ie,ot as ae,pt as oe,qt as j,rt as M,st as N,tt as P,wt as F,x as se,z as I}from"./vendor-chart-Dw-P17PN.js";import{a as L,c as R,i as ce,t as le}from"./install-Cn-SLM3u.js";import{n as ue,r as z,s as de,u as fe}from"./runtime-BTM7t9of.js";import{At as B,C as pe,Ct as me,Ft as he,Pt as ge,Vt as V,a as _e,c as ve,ft as ye,gt as be,h as xe,i as Se,kt as Ce,m as H,nt as U,p as we,pt as Te,r as Ee,wt as De,yt as Oe}from"./use-deprecated-B-uvyrTL.js";import{n as ke,t as Ae}from"./debounce-BpbMwTHv.js";import{t as je}from"./use-aria-Blx9d5nt.js";import{t as W}from"./castArray-CUoqaFnF.js";import{t as G}from"./isEqual-D9IIL8AA.js";import{t as Me}from"./_baseIteratee-DKAzH8CI.js";import{a as Ne,s as Pe,t as Fe}from"./tooltip-Bssea6DW.js";import{r as K,t as Ie}from"./event-BGnHezxC.js";import{r as Le}from"./scroll-iopg7oiN.js";import{n as Re,t as q}from"./scrollbar-BDzFmdGy.js";import{n as ze}from"./vnode-tCZAUc1D.js";import{t as J}from"./click-outside-CPwvCpQu.js";import{n as Be}from"./strings-C8VQZVfQ.js";import{Di as Ve,Ei as He,Si as Ue,hi as We,mi as Ge}from"./index-BQljQu6p.js";var Ke=1/0,qe=17976931348623157e292;function Je(e){return e?(e=ke(e),e===Ke||e===-Ke?(e<0?-1:1)*qe:e===e?e:0):e===0?e:0}function Ye(e){var t=Je(e),n=t%1;return t===t?n?t-n:t:0}function Xe(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var Ze=Math.max,Y=Math.min;function Qe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=r-1;return n!==void 0&&(i=Ye(n),i=n<0?Ze(r+i,0):Y(i,r-1)),Xe(e,Me(t,3),i,!0)}function $e(){let e=a(),t=F(0),n=k(()=>({minWidth:`${Math.max(t.value,11)}px`}));return B(e,()=>{t.value=e.value?.getBoundingClientRect().width??0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}var et=Symbol(`ElSelectGroup`),X=Symbol(`ElSelect`),Z=`ElOption`,tt=ue({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function nt(e,n){let r=y(X);r||De(Z,`usage: <el-select><el-option /></el-select/>`);let a=y(et,{disabled:!1}),o=k(()=>f(W(r.props.modelValue),e.value)),s=k(()=>{if(r.props.multiple){let e=W(r.props.modelValue??[]);return!o.value&&e.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),c=k(()=>e.label??(b(e.value)?``:e.value)),l=k(()=>e.value||e.label||``),u=k(()=>e.disabled||n.groupDisabled||s.value),d=t(),f=(t=[],n)=>{if(b(e.value)){let e=r.props.valueKey;return t&&t.some(t=>i(V(t,e))===V(n,e))}else return t&&t.includes(n)};return T(()=>c.value,()=>{!e.created&&!r.props.remote&&r.setSelected()}),T(()=>e.value,(t,n)=>{let{remote:i,valueKey:a}=r.props;if((i?t!==n:!G(t,n))&&(r.onOptionDestroy(n,d.proxy),r.onOptionCreate(d.proxy)),!e.created&&!i){if(a&&b(t)&&b(n)&&t[a]===n[a])return;r.setSelected()}}),T(()=>a.disabled,()=>{n.groupDisabled=a.disabled},{immediate:!0}),{select:r,currentLabel:c,currentValue:l,itemSelected:o,isDisabled:u,hoverItem:()=>{!e.disabled&&!a.disabled&&(r.states.hoveringIndex=r.optionsArray.indexOf(d.proxy))},updateOption:t=>{n.visible=new RegExp(Be(t),`i`).test(String(c.value))||e.created}}}var Q=I({name:Z,componentName:Z,props:tt,setup(e){let n=R(`select`),r=ve(),i=k(()=>[n.be(`dropdown`,`item`),n.is(`disabled`,p(c)),n.is(`selected`,p(s)),n.is(`hovering`,p(h))]),a=v({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:s,isDisabled:c,select:l,hoverItem:d,updateOption:f}=nt(e,a),{visible:m,hover:h}=re(a),g=t().proxy;l.onOptionCreate(g),S(()=>{let e=g.value,{selected:t}=l.states,n=t.some(e=>e.value===g.value);u(()=>{l.states.cachedOptions.get(e)===g&&!n&&l.states.cachedOptions.delete(e)}),l.onOptionDestroy(e,g)});function _(){c.value||l.handleOptionSelect(g)}return{ns:n,id:r,containerKls:i,currentLabel:o,itemSelected:s,isDisabled:c,select:l,visible:m,hover:h,states:a,hoverItem:d,updateOption:f,selectOptionClick:_}}});function rt(t,n){return E((P(),m(`li`,{id:t.id,class:o(t.containerKls),role:`option`,"aria-disabled":t.isDisabled||void 0,"aria-selected":t.itemSelected,onMousemove:t.hoverItem,onClick:r(t.selectOptionClick,[`stop`])},[D(t.$slots,`default`,{},()=>[e(`span`,null,l(t.currentLabel),1)])],42,[`id`,`aria-disabled`,`aria-selected`,`onMousemove`,`onClick`])),[[se,t.visible]])}var it=L(Q,[[`render`,rt],[`__file`,`option.vue`]]),at=I({name:`ElSelectDropdown`,componentName:`ElSelectDropdown`,setup(){let e=y(X),t=R(`select`),n=k(()=>e.props.popperClass),r=k(()=>e.props.multiple),i=k(()=>e.props.fitInputWidth),a=F(``);function o(){a.value=`${e.selectRef?.offsetWidth}px`}return h(()=>{o(),B(e.selectRef,o)}),{ns:t,minWidth:a,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function ot(e,t,n,r,i,a){return P(),m(`div`,{class:o([e.ns.b(`dropdown`),e.ns.is(`multiple`,e.isMultiple),e.popperClass]),style:j({[e.isFitInputWidth?`width`:`minWidth`]:e.minWidth})},[e.$slots.header?(P(),m(`div`,{key:0,class:o(e.ns.be(`dropdown`,`header`))},[D(e.$slots,`header`)],2)):f(`v-if`,!0),D(e.$slots,`default`),e.$slots.footer?(P(),m(`div`,{key:1,class:o(e.ns.be(`dropdown`,`footer`))},[D(e.$slots,`footer`)],2)):f(`v-if`,!0)],6)}var $=L(at,[[`render`,ot],[`__file`,`select-dropdown.vue`]]),st=(e,t)=>{let{t:r}=Oe(),i=ve(),a=R(`select`),o=R(`input`),c=v({inputValue:``,options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:``,hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=F(),d=F(),f=F(),p=F(),m=F(),_=F(),ee=F(),y=F(),te=F(),x=F(),S=F(),C=F(!1),w=F(),{form:ne,formItem:E}=Se(),{inputId:D}=_e(e,{formItemContext:E}),{valueOnClear:O,isEmptyValue:re}=ye(e),{isComposing:A,handleCompositionStart:ie,handleCompositionUpdate:ae,handleCompositionEnd:j}=He({afterComposition:e=>Xe(e)}),M=k(()=>e.disabled||!!ne?.disabled),{wrapperRef:N,isFocused:P,handleBlur:se}=Ve(m,{disabled:M,afterFocus(){e.automaticDropdown&&!C.value&&(C.value=!0,c.menuVisibleOnFocus=!0)},beforeBlur(e){return f.value?.isFocusInsideContent(e)||p.value?.isFocusInsideContent(e)},afterBlur(){var t;C.value=!1,c.menuVisibleOnFocus=!1,e.validateEvent&&((t=E?.validate)==null||t.call(E,`blur`).catch(e=>me(e)))}}),I=k(()=>g(e.modelValue)?e.modelValue.length>0:!re(e.modelValue)),L=k(()=>ne?.statusIcon??!1),ce=k(()=>e.clearable&&!M.value&&c.inputHovering&&I.value),le=k(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?``:e.suffixIcon),ue=k(()=>a.is(`reverse`,!!(le.value&&C.value))),z=k(()=>E?.validateState||``),pe=k(()=>z.value&&we[z.value]),be=k(()=>e.remote?300:0),xe=k(()=>e.remote&&!c.inputValue&&c.options.size===0),Ce=k(()=>e.loading?e.loadingText||r(`el.select.loading`):e.filterable&&c.inputValue&&c.options.size>0&&H.value===0?e.noMatchText||r(`el.select.noMatch`):c.options.size===0?e.noDataText||r(`el.select.noData`):null),H=k(()=>U.value.filter(e=>e.visible).length),U=k(()=>{let e=Array.from(c.options.values()),t=[];return c.optionValues.forEach(n=>{let r=e.findIndex(e=>e.value===n);r>-1&&t.push(e[r])}),t.length>=e.length?t:e}),Te=k(()=>Array.from(c.cachedOptions.values())),De=k(()=>{let t=U.value.filter(e=>!e.created).some(e=>e.currentLabel===c.inputValue);return e.filterable&&e.allowCreate&&c.inputValue!==``&&!t}),ke=()=>{e.filterable&&n(e.filterMethod)||e.filterable&&e.remote&&n(e.remoteMethod)||U.value.forEach(e=>{var t;(t=e.updateOption)==null||t.call(e,c.inputValue)})},je=Ee(),Me=k(()=>[`small`].includes(je.value)?`small`:`default`),Ne=k({get(){return C.value&&!xe.value},set(e){C.value=e}}),Pe=k(()=>{if(e.multiple&&!fe(e.modelValue))return W(e.modelValue).length===0&&!c.inputValue;let t=g(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||fe(t)?!c.inputValue:!0}),Fe=k(()=>{let t=e.placeholder??r(`el.select.placeholder`);return e.multiple||!I.value?t:c.selectedLabel}),Re=k(()=>he?null:`mouseenter`);T(()=>e.modelValue,(t,n)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(c.inputValue=``,q(``)),J(),!G(t,n)&&e.validateEvent&&E?.validate(`change`).catch(e=>me(e))},{flush:`post`,deep:!0}),T(()=>C.value,e=>{e?q(c.inputValue):(c.inputValue=``,c.previousQuery=null,c.isBeforeHide=!0),t(`visible-change`,e)}),T(()=>c.options.entries(),()=>{ge&&(J(),e.defaultFirstOption&&(e.filterable||e.remote)&&H.value&&ze())},{flush:`post`}),T([()=>c.hoveringIndex,U],([e])=>{de(e)&&e>-1?w.value=U.value[e]||{}:w.value={},U.value.forEach(e=>{e.hover=w.value===e})}),oe(()=>{c.isBeforeHide||ke()});let q=t=>{c.previousQuery===t||A.value||(c.previousQuery=t,e.filterable&&n(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&n(e.remoteMethod)&&e.remoteMethod(t),e.defaultFirstOption&&(e.filterable||e.remote)&&H.value?u(ze):u(We))},ze=()=>{let e=U.value.filter(e=>e.visible&&!e.disabled&&!e.states.groupDisabled),t=e.find(e=>e.created),n=e[0];c.hoveringIndex=nt(U.value.map(e=>e.value),t||n)},J=()=>{if(e.multiple)c.selectedLabel=``;else{let t=Be(g(e.modelValue)?e.modelValue[0]:e.modelValue);c.selectedLabel=t.currentLabel,c.selected=[t];return}let t=[];fe(e.modelValue)||W(e.modelValue).forEach(e=>{t.push(Be(e))}),c.selected=t},Be=t=>{let n,r=s(t);for(let i=c.cachedOptions.size-1;i>=0;i--){let a=Te.value[i];if(r?V(a.value,e.valueKey)===V(t,e.valueKey):a.value===t){n={value:t,currentLabel:a.currentLabel,get isDisabled(){return a.isDisabled}};break}}return n||{value:t,currentLabel:r?t.label:t??``}},We=()=>{c.hoveringIndex=U.value.findIndex(e=>c.selected.some(t=>pt(t)===pt(e)))},Ge=()=>{c.selectionWidth=Number.parseFloat(window.getComputedStyle(d.value).width)},Ke=()=>{c.collapseItemWidth=x.value.getBoundingClientRect().width},qe=()=>{var e,t;(t=(e=f.value)?.updatePopper)==null||t.call(e)},Je=()=>{var e,t;(t=(e=p.value)?.updatePopper)==null||t.call(e)},Ye=()=>{c.inputValue.length>0&&!C.value&&(C.value=!0),q(c.inputValue)},Xe=t=>{if(c.inputValue=t.target.value,e.remote)Ze();else return Ye()},Ze=Ae(()=>{Ye()},be.value),Y=n=>{G(e.modelValue,n)||t(Ie,n)},$e=e=>Qe(e,e=>{let t=c.cachedOptions.get(e);return t&&!t.disabled&&!t.states.groupDisabled}),et=n=>{if(e.multiple&&n.code!==Ue.delete&&n.target.value.length<=0){let n=W(e.modelValue).slice(),r=$e(n);if(r<0)return;let i=n[r];n.splice(r,1),t(K,n),Y(n),t(`remove-tag`,i)}},X=(n,r)=>{let i=c.selected.indexOf(r);if(i>-1&&!M.value){let n=W(e.modelValue).slice();n.splice(i,1),t(K,n),Y(n),t(`remove-tag`,r.value)}n.stopPropagation(),$()},Z=n=>{n.stopPropagation();let r=e.multiple?[]:O.value;if(e.multiple)for(let e of c.selected)e.isDisabled&&r.push(e.value);t(K,r),Y(r),c.hoveringIndex=-1,C.value=!1,t(`clear`),$()},tt=n=>{if(e.multiple){let r=W(e.modelValue??[]).slice(),i=nt(r,n);i>-1?r.splice(i,1):(e.multipleLimit<=0||r.length<e.multipleLimit)&&r.push(n.value),t(K,r),Y(r),n.created&&q(``),e.filterable&&!e.reserveKeyword&&(c.inputValue=``)}else t(K,n.value),Y(n.value),C.value=!1;$(),!C.value&&u(()=>{Q(n)})},nt=(t,n)=>fe(n)?-1:b(n.value)?t.findIndex(t=>G(V(t,e.valueKey),pt(n))):t.indexOf(n.value),Q=e=>{var t,n;let r=g(e)?e[0]:e,i=null;if(r?.value){let e=U.value.filter(e=>e.value===r.value);e.length>0&&(i=e[0].$el)}if(f.value&&i){let e=((t=f.value?.popperRef?.contentRef)?.querySelector)?.call(t,`.${a.be(`dropdown`,`wrap`)}`);e&&Le(e,i)}(n=S.value)==null||n.handleScroll()},rt=e=>{c.options.set(e.value,e),c.cachedOptions.set(e.value,e)},it=(e,t)=>{c.options.get(e)===t&&c.options.delete(e)},at=k(()=>f.value?.popperRef?.contentRef),ot=()=>{c.isBeforeHide=!1,u(()=>{var e;(e=S.value)==null||e.update(),Q(c.selected)})},$=()=>{var e;(e=m.value)==null||e.focus()},st=()=>{var e;if(C.value){C.value=!1,u(()=>m.value?.blur());return}(e=m.value)==null||e.blur()},ct=e=>{Z(e)},lt=e=>{if(C.value=!1,P.value){let t=new FocusEvent(`focus`,e);u(()=>se(t))}},ut=()=>{c.inputValue.length>0?c.inputValue=``:C.value=!1},dt=()=>{M.value||(he&&(c.inputHovering=!0),c.menuVisibleOnFocus?c.menuVisibleOnFocus=!1:C.value=!C.value)},ft=()=>{if(!C.value)dt();else{let e=U.value[c.hoveringIndex];e&&!e.isDisabled&&tt(e)}},pt=t=>b(t.value)?V(t.value,e.valueKey):t.value,mt=k(()=>U.value.filter(e=>e.visible).every(e=>e.isDisabled)),ht=k(()=>e.multiple?e.collapseTags?c.selected.slice(0,e.maxCollapseTags):c.selected:[]),gt=k(()=>e.multiple&&e.collapseTags?c.selected.slice(e.maxCollapseTags):[]),_t=e=>{if(!C.value){C.value=!0;return}if(!(c.options.size===0||H.value===0||A.value)&&!mt.value){e===`next`?(c.hoveringIndex++,c.hoveringIndex===c.options.size&&(c.hoveringIndex=0)):e===`prev`&&(c.hoveringIndex--,c.hoveringIndex<0&&(c.hoveringIndex=c.options.size-1));let t=U.value[c.hoveringIndex];(t.isDisabled||!t.visible)&&_t(e),u(()=>Q(w.value))}},vt=()=>{if(!d.value)return 0;let e=window.getComputedStyle(d.value);return Number.parseFloat(e.gap||`6px`)},yt=k(()=>{let t=vt();return{maxWidth:`${x.value&&e.maxCollapseTags===1?c.selectionWidth-c.collapseItemWidth-t:c.selectionWidth}px`}}),bt=k(()=>({maxWidth:`${c.selectionWidth}px`}));return B(d,Ge),B(y,qe),B(N,qe),B(te,Je),B(x,Ke),h(()=>{J()}),{inputId:D,contentId:i,nsSelect:a,nsInput:o,states:c,isFocused:P,expanded:C,optionsArray:U,hoverOption:w,selectSize:je,filteredOptionsCount:H,updateTooltip:qe,updateTagTooltip:Je,debouncedOnInputChange:Ze,onInput:Xe,deletePrevTag:et,deleteTag:X,deleteSelected:Z,handleOptionSelect:tt,scrollToOption:Q,hasModelValue:I,shouldShowPlaceholder:Pe,currentPlaceholder:Fe,mouseEnterEventName:Re,needStatusIcon:L,showClose:ce,iconComponent:le,iconReverse:ue,validateState:z,validateIcon:pe,showNewOption:De,updateOptions:ke,collapseTagSize:Me,setSelected:J,selectDisabled:M,emptyText:Ce,handleCompositionStart:ie,handleCompositionUpdate:ae,handleCompositionEnd:j,onOptionCreate:rt,onOptionDestroy:it,handleMenuEnter:ot,focus:$,blur:st,handleClearClick:ct,handleClickOutside:lt,handleEsc:ut,toggleMenu:dt,selectOption:ft,getValueKey:pt,navigateOptions:_t,dropdownMenuVisible:Ne,showTagList:ht,collapseTagList:gt,popupScroll:e=>{t(`popup-scroll`,e)},tagStyle:yt,collapseTagStyle:bt,popperRef:at,inputRef:m,tooltipRef:f,tagTooltipRef:p,prefixRef:_,suffixRef:ee,selectRef:l,wrapperRef:N,selectionRef:d,scrollbarRef:S,menuRef:y,tagMenuRef:te,collapseItemRef:x}},ct=I({name:`ElOptions`,setup(e,{slots:t}){let r=y(X),i=[];return()=>{let e=t.default?.call(t),a=[];function o(e){g(e)&&e.forEach(e=>{let t=(e?.type||{})?.name;t===`ElOptionGroup`?o(!x(e.children)&&!g(e.children)&&n(e.children?.default)?e.children?.default():e.children):t===`ElOption`?a.push(e.props?.value):g(e.children)&&o(e.children)})}return e.length&&o(e[0]?.children),G(a,i)||(i=a,r&&(r.states.optionValues=a)),e}}}),lt=ue({name:String,id:String,modelValue:{type:z([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:`off`},automaticDropdown:Boolean,size:be,effect:{type:z(String),default:`light`},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:``},popperOptions:{type:z(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:`value`},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Ne.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:H,default:pe},fitInputWidth:Boolean,suffixIcon:{type:H,default:xe},tagType:{...We.type,default:`info`},tagEffect:{...We.effect,default:`light`},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:z(String),values:Pe,default:`bottom-start`},fallbackPlacements:{type:z(Array),default:[`bottom-start`,`top-start`,`right`,`left`]},tabindex:{type:[String,Number],default:0},appendTo:Ne.appendTo,...Te,...je([`ariaLabel`])});Re.scroll;var ut=`ElSelect`,dt=I({name:ut,componentName:ut,components:{ElSelectMenu:$,ElOption:it,ElOptions:ct,ElTag:Ge,ElScrollbar:q,ElTooltip:Fe,ElIcon:U},directives:{ClickOutside:J},props:lt,emits:[K,Ie,`remove-tag`,`clear`,`visible-change`,`focus`,`blur`,`popup-scroll`],setup(e,{emit:n,slots:r}){let i=t();i.appContext.config.warnHandler=(...e)=>{!e[0]||e[0].includes(`Slot "default" invoked outside of the render function`)||console.warn(...e)};let a=k(()=>{let{modelValue:t,multiple:n}=e,r=n?[]:void 0;return g(t)?n?t:r:n?r:t}),o=v({...re(e),modelValue:a}),s=st(o,n),{calculatorRef:c,inputStyle:l}=$e(),u=e=>e.reduce((e,t)=>(e.push(t),t.children&&t.children.length>0&&e.push(...u(t.children)),e),[]),d=e=>{ze(e||[]).forEach(e=>{if(b(e)&&(e.type.name===`ElOption`||e.type.name===`ElTree`)){let t=e.type.name;if(t===`ElTree`)u(e.props?.data||[]).forEach(e=>{e.currentLabel=e.label||(b(e.value)?``:e.value),s.onOptionCreate(e)});else if(t===`ElOption`){let t={...e.props};t.currentLabel=t.label||(b(t.value)?``:t.value),s.onOptionCreate(t)}}})};T(()=>r.default?.call(r),t=>{e.persistent||d(t)},{immediate:!0}),ie(X,v({props:o,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));let f=k(()=>e.multiple?s.states.selected.map(e=>e.currentLabel):s.states.selectedLabel);return S(()=>{i.appContext.config.warnHandler=void 0}),{...s,modelValue:a,selectedLabel:f,calculatorRef:c,inputStyle:l}}});function ft(t,n){let i=w(`el-tag`),a=w(`el-tooltip`),s=w(`el-icon`),u=w(`el-option`),p=w(`el-options`),h=w(`el-scrollbar`),g=w(`el-select-menu`),v=ae(`click-outside`);return E((P(),m(`div`,{ref:`selectRef`,class:o([t.nsSelect.b(),t.nsSelect.m(t.selectSize)]),[C(t.mouseEnterEventName)]:e=>t.states.inputHovering=!0,onMouseleave:e=>t.states.inputHovering=!1},[d(a,{ref:`tooltipRef`,visible:t.dropdownMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e(`popper`),t.popperClass],"popper-options":t.popperOptions,"fallback-placements":t.fallbackPlacements,effect:t.effect,pure:``,trigger:`click`,transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:t.persistent,"append-to":t.appendTo,"show-arrow":t.showArrow,offset:t.offset,onBeforeShow:t.handleMenuEnter,onHide:e=>t.states.isBeforeHide=!1},{default:A(()=>[e(`div`,{ref:`wrapperRef`,class:o([t.nsSelect.e(`wrapper`),t.nsSelect.is(`focused`,t.isFocused),t.nsSelect.is(`hovering`,t.states.inputHovering),t.nsSelect.is(`filterable`,t.filterable),t.nsSelect.is(`disabled`,t.selectDisabled)]),onClick:r(t.toggleMenu,[`prevent`])},[t.$slots.prefix?(P(),m(`div`,{key:0,ref:`prefixRef`,class:o(t.nsSelect.e(`prefix`))},[D(t.$slots,`prefix`)],2)):f(`v-if`,!0),e(`div`,{ref:`selectionRef`,class:o([t.nsSelect.e(`selection`),t.nsSelect.is(`near`,t.multiple&&!t.$slots.prefix&&!!t.states.selected.length)])},[t.multiple?D(t.$slots,`tag`,{key:0,data:t.states.selected,deleteTag:t.deleteTag,selectDisabled:t.selectDisabled},()=>[(P(!0),m(ee,null,M(t.showTagList,n=>(P(),m(`div`,{key:t.getValueKey(n),class:o(t.nsSelect.e(`selected-item`))},[d(i,{closable:!t.selectDisabled&&!n.isDisabled,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":``,style:j(t.tagStyle),onClose:e=>t.deleteTag(e,n)},{default:A(()=>[e(`span`,{class:o(t.nsSelect.e(`tags-text`))},[D(t.$slots,`label`,{label:n.currentLabel,value:n.value},()=>[c(l(n.currentLabel),1)])],2)]),_:2},1032,[`closable`,`size`,`type`,`effect`,`style`,`onClose`])],2))),128)),t.collapseTags&&t.states.selected.length>t.maxCollapseTags?(P(),O(a,{key:0,ref:`tagTooltipRef`,disabled:t.dropdownMenuVisible||!t.collapseTagsTooltip,"fallback-placements":[`bottom`,`top`,`right`,`left`],effect:t.effect,placement:`bottom`,"popper-class":t.popperClass,teleported:t.teleported},{default:A(()=>[e(`div`,{ref:`collapseItemRef`,class:o(t.nsSelect.e(`selected-item`))},[d(i,{closable:!1,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":``,style:j(t.collapseTagStyle)},{default:A(()=>[e(`span`,{class:o(t.nsSelect.e(`tags-text`))},` + `+l(t.states.selected.length-t.maxCollapseTags),3)]),_:1},8,[`size`,`type`,`effect`,`style`])],2)]),content:A(()=>[e(`div`,{ref:`tagMenuRef`,class:o(t.nsSelect.e(`selection`))},[(P(!0),m(ee,null,M(t.collapseTagList,n=>(P(),m(`div`,{key:t.getValueKey(n),class:o(t.nsSelect.e(`selected-item`))},[d(i,{class:`in-tooltip`,closable:!t.selectDisabled&&!n.isDisabled,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":``,onClose:e=>t.deleteTag(e,n)},{default:A(()=>[e(`span`,{class:o(t.nsSelect.e(`tags-text`))},[D(t.$slots,`label`,{label:n.currentLabel,value:n.value},()=>[c(l(n.currentLabel),1)])],2)]),_:2},1032,[`closable`,`size`,`type`,`effect`,`onClose`])],2))),128))],2)]),_:3},8,[`disabled`,`effect`,`popper-class`,`teleported`])):f(`v-if`,!0)]):f(`v-if`,!0),e(`div`,{class:o([t.nsSelect.e(`selected-item`),t.nsSelect.e(`input-wrapper`),t.nsSelect.is(`hidden`,!t.filterable)])},[E(e(`input`,{id:t.inputId,ref:`inputRef`,"onUpdate:modelValue":e=>t.states.inputValue=e,type:`text`,name:t.name,class:o([t.nsSelect.e(`input`),t.nsSelect.is(t.selectSize)]),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:j(t.inputStyle),tabindex:t.tabindex,role:`combobox`,readonly:!t.filterable,spellcheck:`false`,"aria-activedescendant":t.hoverOption?.id||``,"aria-controls":t.contentId,"aria-expanded":t.dropdownMenuVisible,"aria-label":t.ariaLabel,"aria-autocomplete":`none`,"aria-haspopup":`listbox`,onKeydown:[_(r(e=>t.navigateOptions(`next`),[`stop`,`prevent`]),[`down`]),_(r(e=>t.navigateOptions(`prev`),[`stop`,`prevent`]),[`up`]),_(r(t.handleEsc,[`stop`,`prevent`]),[`esc`]),_(r(t.selectOption,[`stop`,`prevent`]),[`enter`]),_(r(t.deletePrevTag,[`stop`]),[`delete`])],onCompositionstart:t.handleCompositionStart,onCompositionupdate:t.handleCompositionUpdate,onCompositionend:t.handleCompositionEnd,onInput:t.onInput,onClick:r(t.toggleMenu,[`stop`])},null,46,[`id`,`onUpdate:modelValue`,`name`,`disabled`,`autocomplete`,`tabindex`,`readonly`,`aria-activedescendant`,`aria-controls`,`aria-expanded`,`aria-label`,`onKeydown`,`onCompositionstart`,`onCompositionupdate`,`onCompositionend`,`onInput`,`onClick`]),[[ne,t.states.inputValue]]),t.filterable?(P(),m(`span`,{key:0,ref:`calculatorRef`,"aria-hidden":`true`,class:o(t.nsSelect.e(`input-calculator`)),textContent:l(t.states.inputValue)},null,10,[`textContent`])):f(`v-if`,!0)],2),t.shouldShowPlaceholder?(P(),m(`div`,{key:1,class:o([t.nsSelect.e(`selected-item`),t.nsSelect.e(`placeholder`),t.nsSelect.is(`transparent`,!t.hasModelValue||t.expanded&&!t.states.inputValue)])},[t.hasModelValue?D(t.$slots,`label`,{key:0,label:t.currentPlaceholder,value:t.modelValue},()=>[e(`span`,null,l(t.currentPlaceholder),1)]):(P(),m(`span`,{key:1},l(t.currentPlaceholder),1))],2)):f(`v-if`,!0)],2),e(`div`,{ref:`suffixRef`,class:o(t.nsSelect.e(`suffix`))},[t.iconComponent&&!t.showClose?(P(),O(s,{key:0,class:o([t.nsSelect.e(`caret`),t.nsSelect.e(`icon`),t.iconReverse])},{default:A(()=>[(P(),O(N(t.iconComponent)))]),_:1},8,[`class`])):f(`v-if`,!0),t.showClose&&t.clearIcon?(P(),O(s,{key:1,class:o([t.nsSelect.e(`caret`),t.nsSelect.e(`icon`),t.nsSelect.e(`clear`)]),onClick:t.handleClearClick},{default:A(()=>[(P(),O(N(t.clearIcon)))]),_:1},8,[`class`,`onClick`])):f(`v-if`,!0),t.validateState&&t.validateIcon&&t.needStatusIcon?(P(),O(s,{key:2,class:o([t.nsInput.e(`icon`),t.nsInput.e(`validateIcon`),t.nsInput.is(`loading`,t.validateState===`validating`)])},{default:A(()=>[(P(),O(N(t.validateIcon)))]),_:1},8,[`class`])):f(`v-if`,!0)],2)],10,[`onClick`])]),content:A(()=>[d(g,{ref:`menuRef`},{default:A(()=>[t.$slots.header?(P(),m(`div`,{key:0,class:o(t.nsSelect.be(`dropdown`,`header`)),onClick:r(()=>{},[`stop`])},[D(t.$slots,`header`)],10,[`onClick`])):f(`v-if`,!0),E(d(h,{id:t.contentId,ref:`scrollbarRef`,tag:`ul`,"wrap-class":t.nsSelect.be(`dropdown`,`wrap`),"view-class":t.nsSelect.be(`dropdown`,`list`),class:o([t.nsSelect.is(`empty`,t.filteredOptionsCount===0)]),role:`listbox`,"aria-label":t.ariaLabel,"aria-orientation":`vertical`,onScroll:t.popupScroll},{default:A(()=>[t.showNewOption?(P(),O(u,{key:0,value:t.states.inputValue,created:!0},null,8,[`value`])):f(`v-if`,!0),d(p,null,{default:A(()=>[D(t.$slots,`default`)]),_:3})]),_:3},8,[`id`,`wrap-class`,`view-class`,`class`,`aria-label`,`onScroll`]),[[se,t.states.options.size>0&&!t.loading]]),t.$slots.loading&&t.loading?(P(),m(`div`,{key:1,class:o(t.nsSelect.be(`dropdown`,`loading`))},[D(t.$slots,`loading`)],2)):t.loading||t.filteredOptionsCount===0?(P(),m(`div`,{key:2,class:o(t.nsSelect.be(`dropdown`,`empty`))},[D(t.$slots,`empty`,{},()=>[e(`span`,null,l(t.emptyText),1)])],2)):f(`v-if`,!0),t.$slots.footer?(P(),m(`div`,{key:3,class:o(t.nsSelect.be(`dropdown`,`footer`)),onClick:r(()=>{},[`stop`])},[D(t.$slots,`footer`)],10,[`onClick`])):f(`v-if`,!0)]),_:3},512)]),_:3},8,[`visible`,`placement`,`teleported`,`popper-class`,`popper-options`,`fallback-placements`,`effect`,`transition`,`persistent`,`append-to`,`show-arrow`,`offset`,`onBeforeShow`,`onHide`])],16,[`onMouseleave`])),[[v,t.handleClickOutside,t.popperRef]])}var pt=L(dt,[[`render`,ft],[`__file`,`select.vue`]]),mt=I({name:`ElOptionGroup`,componentName:`ElOptionGroup`,props:{label:String,disabled:Boolean},setup(e){let n=R(`select`),r=F(),i=t(),a=F([]);ie(et,v({...re(e)}));let o=k(()=>a.value.some(e=>e.visible===!0)),s=e=>e.type.name===`ElOption`&&!!e.component?.proxy,c=e=>{let t=W(e),n=[];return t.forEach(e=>{te(e)&&(s(e)?n.push(e.component.proxy):g(e.children)&&e.children.length?n.push(...c(e.children)):e.component?.subTree&&n.push(...c(e.component.subTree)))}),n},l=()=>{a.value=c(i.subTree)};return h(()=>{l()}),Ce(r,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:r,visible:o,ns:n}}});function ht(t,n,r,i,a,s){return E((P(),m(`ul`,{ref:`groupRef`,class:o(t.ns.be(`group`,`wrap`))},[e(`li`,{class:o(t.ns.be(`group`,`title`))},l(t.label),3),e(`li`,null,[e(`ul`,{class:o(t.ns.b(`group`))},[D(t.$slots,`default`)],2)])],2)),[[se,t.visible]])}var gt=L(mt,[[`render`,ht],[`__file`,`option-group.vue`]]),_t=le(pt,{Option:it,OptionGroup:gt}),vt=ce(it),yt=ce(gt);export{Xe as i,yt as n,_t as r,vt as t};
|
|
1
|
+
import{A as e,B as t,Bt as n,C as r,Dt as i,Et as a,Gt as o,Ht as s,I as c,Jt as l,K as u,L as d,M as f,Mt as p,N as m,Q as h,Rt as g,S as _,St as v,T as ee,U as y,Vt as b,W as te,Wt as x,Y as S,Yt as C,at as w,b as ne,ft as T,ht as E,it as D,j as O,k,kt as re,mt as A,nt as ie,ot as ae,pt as oe,qt as j,rt as M,st as N,tt as P,wt as F,x as se,z as I}from"./vendor-chart-Dw-P17PN.js";import{a as L,c as R,i as ce,t as le}from"./install-Cn-SLM3u.js";import{n as ue,r as z,s as de,u as fe}from"./runtime-BTM7t9of.js";import{At as B,C as pe,Ct as me,Ft as he,Pt as ge,Vt as V,a as _e,c as ve,ft as ye,gt as be,h as xe,i as Se,kt as Ce,m as H,nt as U,p as we,pt as Te,r as Ee,wt as De,yt as Oe}from"./use-deprecated-B-uvyrTL.js";import{n as ke,t as Ae}from"./debounce-BpbMwTHv.js";import{t as je}from"./use-aria-Blx9d5nt.js";import{t as W}from"./castArray-CUoqaFnF.js";import{t as G}from"./isEqual-D9IIL8AA.js";import{t as Me}from"./_baseIteratee-DKAzH8CI.js";import{a as Ne,s as Pe,t as Fe}from"./tooltip-B94uJp4z.js";import{r as K,t as Ie}from"./event-BGnHezxC.js";import{r as Le}from"./scroll-iopg7oiN.js";import{n as Re,t as q}from"./scrollbar-BDzFmdGy.js";import{n as ze}from"./vnode-tCZAUc1D.js";import{t as J}from"./click-outside-CPwvCpQu.js";import{n as Be}from"./strings-C8VQZVfQ.js";import{Di as Ve,Ei as He,Si as Ue,hi as We,mi as Ge}from"./index-CVwKPuSr.js";var Ke=1/0,qe=17976931348623157e292;function Je(e){return e?(e=ke(e),e===Ke||e===-Ke?(e<0?-1:1)*qe:e===e?e:0):e===0?e:0}function Ye(e){var t=Je(e),n=t%1;return t===t?n?t-n:t:0}function Xe(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var Ze=Math.max,Y=Math.min;function Qe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=r-1;return n!==void 0&&(i=Ye(n),i=n<0?Ze(r+i,0):Y(i,r-1)),Xe(e,Me(t,3),i,!0)}function $e(){let e=a(),t=F(0),n=k(()=>({minWidth:`${Math.max(t.value,11)}px`}));return B(e,()=>{t.value=e.value?.getBoundingClientRect().width??0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}var et=Symbol(`ElSelectGroup`),X=Symbol(`ElSelect`),Z=`ElOption`,tt=ue({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function nt(e,n){let r=y(X);r||De(Z,`usage: <el-select><el-option /></el-select/>`);let a=y(et,{disabled:!1}),o=k(()=>f(W(r.props.modelValue),e.value)),s=k(()=>{if(r.props.multiple){let e=W(r.props.modelValue??[]);return!o.value&&e.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),c=k(()=>e.label??(b(e.value)?``:e.value)),l=k(()=>e.value||e.label||``),u=k(()=>e.disabled||n.groupDisabled||s.value),d=t(),f=(t=[],n)=>{if(b(e.value)){let e=r.props.valueKey;return t&&t.some(t=>i(V(t,e))===V(n,e))}else return t&&t.includes(n)};return T(()=>c.value,()=>{!e.created&&!r.props.remote&&r.setSelected()}),T(()=>e.value,(t,n)=>{let{remote:i,valueKey:a}=r.props;if((i?t!==n:!G(t,n))&&(r.onOptionDestroy(n,d.proxy),r.onOptionCreate(d.proxy)),!e.created&&!i){if(a&&b(t)&&b(n)&&t[a]===n[a])return;r.setSelected()}}),T(()=>a.disabled,()=>{n.groupDisabled=a.disabled},{immediate:!0}),{select:r,currentLabel:c,currentValue:l,itemSelected:o,isDisabled:u,hoverItem:()=>{!e.disabled&&!a.disabled&&(r.states.hoveringIndex=r.optionsArray.indexOf(d.proxy))},updateOption:t=>{n.visible=new RegExp(Be(t),`i`).test(String(c.value))||e.created}}}var Q=I({name:Z,componentName:Z,props:tt,setup(e){let n=R(`select`),r=ve(),i=k(()=>[n.be(`dropdown`,`item`),n.is(`disabled`,p(c)),n.is(`selected`,p(s)),n.is(`hovering`,p(h))]),a=v({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:s,isDisabled:c,select:l,hoverItem:d,updateOption:f}=nt(e,a),{visible:m,hover:h}=re(a),g=t().proxy;l.onOptionCreate(g),S(()=>{let e=g.value,{selected:t}=l.states,n=t.some(e=>e.value===g.value);u(()=>{l.states.cachedOptions.get(e)===g&&!n&&l.states.cachedOptions.delete(e)}),l.onOptionDestroy(e,g)});function _(){c.value||l.handleOptionSelect(g)}return{ns:n,id:r,containerKls:i,currentLabel:o,itemSelected:s,isDisabled:c,select:l,visible:m,hover:h,states:a,hoverItem:d,updateOption:f,selectOptionClick:_}}});function rt(t,n){return E((P(),m(`li`,{id:t.id,class:o(t.containerKls),role:`option`,"aria-disabled":t.isDisabled||void 0,"aria-selected":t.itemSelected,onMousemove:t.hoverItem,onClick:r(t.selectOptionClick,[`stop`])},[D(t.$slots,`default`,{},()=>[e(`span`,null,l(t.currentLabel),1)])],42,[`id`,`aria-disabled`,`aria-selected`,`onMousemove`,`onClick`])),[[se,t.visible]])}var it=L(Q,[[`render`,rt],[`__file`,`option.vue`]]),at=I({name:`ElSelectDropdown`,componentName:`ElSelectDropdown`,setup(){let e=y(X),t=R(`select`),n=k(()=>e.props.popperClass),r=k(()=>e.props.multiple),i=k(()=>e.props.fitInputWidth),a=F(``);function o(){a.value=`${e.selectRef?.offsetWidth}px`}return h(()=>{o(),B(e.selectRef,o)}),{ns:t,minWidth:a,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function ot(e,t,n,r,i,a){return P(),m(`div`,{class:o([e.ns.b(`dropdown`),e.ns.is(`multiple`,e.isMultiple),e.popperClass]),style:j({[e.isFitInputWidth?`width`:`minWidth`]:e.minWidth})},[e.$slots.header?(P(),m(`div`,{key:0,class:o(e.ns.be(`dropdown`,`header`))},[D(e.$slots,`header`)],2)):f(`v-if`,!0),D(e.$slots,`default`),e.$slots.footer?(P(),m(`div`,{key:1,class:o(e.ns.be(`dropdown`,`footer`))},[D(e.$slots,`footer`)],2)):f(`v-if`,!0)],6)}var $=L(at,[[`render`,ot],[`__file`,`select-dropdown.vue`]]),st=(e,t)=>{let{t:r}=Oe(),i=ve(),a=R(`select`),o=R(`input`),c=v({inputValue:``,options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:``,hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=F(),d=F(),f=F(),p=F(),m=F(),_=F(),ee=F(),y=F(),te=F(),x=F(),S=F(),C=F(!1),w=F(),{form:ne,formItem:E}=Se(),{inputId:D}=_e(e,{formItemContext:E}),{valueOnClear:O,isEmptyValue:re}=ye(e),{isComposing:A,handleCompositionStart:ie,handleCompositionUpdate:ae,handleCompositionEnd:j}=He({afterComposition:e=>Xe(e)}),M=k(()=>e.disabled||!!ne?.disabled),{wrapperRef:N,isFocused:P,handleBlur:se}=Ve(m,{disabled:M,afterFocus(){e.automaticDropdown&&!C.value&&(C.value=!0,c.menuVisibleOnFocus=!0)},beforeBlur(e){return f.value?.isFocusInsideContent(e)||p.value?.isFocusInsideContent(e)},afterBlur(){var t;C.value=!1,c.menuVisibleOnFocus=!1,e.validateEvent&&((t=E?.validate)==null||t.call(E,`blur`).catch(e=>me(e)))}}),I=k(()=>g(e.modelValue)?e.modelValue.length>0:!re(e.modelValue)),L=k(()=>ne?.statusIcon??!1),ce=k(()=>e.clearable&&!M.value&&c.inputHovering&&I.value),le=k(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?``:e.suffixIcon),ue=k(()=>a.is(`reverse`,!!(le.value&&C.value))),z=k(()=>E?.validateState||``),pe=k(()=>z.value&&we[z.value]),be=k(()=>e.remote?300:0),xe=k(()=>e.remote&&!c.inputValue&&c.options.size===0),Ce=k(()=>e.loading?e.loadingText||r(`el.select.loading`):e.filterable&&c.inputValue&&c.options.size>0&&H.value===0?e.noMatchText||r(`el.select.noMatch`):c.options.size===0?e.noDataText||r(`el.select.noData`):null),H=k(()=>U.value.filter(e=>e.visible).length),U=k(()=>{let e=Array.from(c.options.values()),t=[];return c.optionValues.forEach(n=>{let r=e.findIndex(e=>e.value===n);r>-1&&t.push(e[r])}),t.length>=e.length?t:e}),Te=k(()=>Array.from(c.cachedOptions.values())),De=k(()=>{let t=U.value.filter(e=>!e.created).some(e=>e.currentLabel===c.inputValue);return e.filterable&&e.allowCreate&&c.inputValue!==``&&!t}),ke=()=>{e.filterable&&n(e.filterMethod)||e.filterable&&e.remote&&n(e.remoteMethod)||U.value.forEach(e=>{var t;(t=e.updateOption)==null||t.call(e,c.inputValue)})},je=Ee(),Me=k(()=>[`small`].includes(je.value)?`small`:`default`),Ne=k({get(){return C.value&&!xe.value},set(e){C.value=e}}),Pe=k(()=>{if(e.multiple&&!fe(e.modelValue))return W(e.modelValue).length===0&&!c.inputValue;let t=g(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||fe(t)?!c.inputValue:!0}),Fe=k(()=>{let t=e.placeholder??r(`el.select.placeholder`);return e.multiple||!I.value?t:c.selectedLabel}),Re=k(()=>he?null:`mouseenter`);T(()=>e.modelValue,(t,n)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(c.inputValue=``,q(``)),J(),!G(t,n)&&e.validateEvent&&E?.validate(`change`).catch(e=>me(e))},{flush:`post`,deep:!0}),T(()=>C.value,e=>{e?q(c.inputValue):(c.inputValue=``,c.previousQuery=null,c.isBeforeHide=!0),t(`visible-change`,e)}),T(()=>c.options.entries(),()=>{ge&&(J(),e.defaultFirstOption&&(e.filterable||e.remote)&&H.value&&ze())},{flush:`post`}),T([()=>c.hoveringIndex,U],([e])=>{de(e)&&e>-1?w.value=U.value[e]||{}:w.value={},U.value.forEach(e=>{e.hover=w.value===e})}),oe(()=>{c.isBeforeHide||ke()});let q=t=>{c.previousQuery===t||A.value||(c.previousQuery=t,e.filterable&&n(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&n(e.remoteMethod)&&e.remoteMethod(t),e.defaultFirstOption&&(e.filterable||e.remote)&&H.value?u(ze):u(We))},ze=()=>{let e=U.value.filter(e=>e.visible&&!e.disabled&&!e.states.groupDisabled),t=e.find(e=>e.created),n=e[0];c.hoveringIndex=nt(U.value.map(e=>e.value),t||n)},J=()=>{if(e.multiple)c.selectedLabel=``;else{let t=Be(g(e.modelValue)?e.modelValue[0]:e.modelValue);c.selectedLabel=t.currentLabel,c.selected=[t];return}let t=[];fe(e.modelValue)||W(e.modelValue).forEach(e=>{t.push(Be(e))}),c.selected=t},Be=t=>{let n,r=s(t);for(let i=c.cachedOptions.size-1;i>=0;i--){let a=Te.value[i];if(r?V(a.value,e.valueKey)===V(t,e.valueKey):a.value===t){n={value:t,currentLabel:a.currentLabel,get isDisabled(){return a.isDisabled}};break}}return n||{value:t,currentLabel:r?t.label:t??``}},We=()=>{c.hoveringIndex=U.value.findIndex(e=>c.selected.some(t=>pt(t)===pt(e)))},Ge=()=>{c.selectionWidth=Number.parseFloat(window.getComputedStyle(d.value).width)},Ke=()=>{c.collapseItemWidth=x.value.getBoundingClientRect().width},qe=()=>{var e,t;(t=(e=f.value)?.updatePopper)==null||t.call(e)},Je=()=>{var e,t;(t=(e=p.value)?.updatePopper)==null||t.call(e)},Ye=()=>{c.inputValue.length>0&&!C.value&&(C.value=!0),q(c.inputValue)},Xe=t=>{if(c.inputValue=t.target.value,e.remote)Ze();else return Ye()},Ze=Ae(()=>{Ye()},be.value),Y=n=>{G(e.modelValue,n)||t(Ie,n)},$e=e=>Qe(e,e=>{let t=c.cachedOptions.get(e);return t&&!t.disabled&&!t.states.groupDisabled}),et=n=>{if(e.multiple&&n.code!==Ue.delete&&n.target.value.length<=0){let n=W(e.modelValue).slice(),r=$e(n);if(r<0)return;let i=n[r];n.splice(r,1),t(K,n),Y(n),t(`remove-tag`,i)}},X=(n,r)=>{let i=c.selected.indexOf(r);if(i>-1&&!M.value){let n=W(e.modelValue).slice();n.splice(i,1),t(K,n),Y(n),t(`remove-tag`,r.value)}n.stopPropagation(),$()},Z=n=>{n.stopPropagation();let r=e.multiple?[]:O.value;if(e.multiple)for(let e of c.selected)e.isDisabled&&r.push(e.value);t(K,r),Y(r),c.hoveringIndex=-1,C.value=!1,t(`clear`),$()},tt=n=>{if(e.multiple){let r=W(e.modelValue??[]).slice(),i=nt(r,n);i>-1?r.splice(i,1):(e.multipleLimit<=0||r.length<e.multipleLimit)&&r.push(n.value),t(K,r),Y(r),n.created&&q(``),e.filterable&&!e.reserveKeyword&&(c.inputValue=``)}else t(K,n.value),Y(n.value),C.value=!1;$(),!C.value&&u(()=>{Q(n)})},nt=(t,n)=>fe(n)?-1:b(n.value)?t.findIndex(t=>G(V(t,e.valueKey),pt(n))):t.indexOf(n.value),Q=e=>{var t,n;let r=g(e)?e[0]:e,i=null;if(r?.value){let e=U.value.filter(e=>e.value===r.value);e.length>0&&(i=e[0].$el)}if(f.value&&i){let e=((t=f.value?.popperRef?.contentRef)?.querySelector)?.call(t,`.${a.be(`dropdown`,`wrap`)}`);e&&Le(e,i)}(n=S.value)==null||n.handleScroll()},rt=e=>{c.options.set(e.value,e),c.cachedOptions.set(e.value,e)},it=(e,t)=>{c.options.get(e)===t&&c.options.delete(e)},at=k(()=>f.value?.popperRef?.contentRef),ot=()=>{c.isBeforeHide=!1,u(()=>{var e;(e=S.value)==null||e.update(),Q(c.selected)})},$=()=>{var e;(e=m.value)==null||e.focus()},st=()=>{var e;if(C.value){C.value=!1,u(()=>m.value?.blur());return}(e=m.value)==null||e.blur()},ct=e=>{Z(e)},lt=e=>{if(C.value=!1,P.value){let t=new FocusEvent(`focus`,e);u(()=>se(t))}},ut=()=>{c.inputValue.length>0?c.inputValue=``:C.value=!1},dt=()=>{M.value||(he&&(c.inputHovering=!0),c.menuVisibleOnFocus?c.menuVisibleOnFocus=!1:C.value=!C.value)},ft=()=>{if(!C.value)dt();else{let e=U.value[c.hoveringIndex];e&&!e.isDisabled&&tt(e)}},pt=t=>b(t.value)?V(t.value,e.valueKey):t.value,mt=k(()=>U.value.filter(e=>e.visible).every(e=>e.isDisabled)),ht=k(()=>e.multiple?e.collapseTags?c.selected.slice(0,e.maxCollapseTags):c.selected:[]),gt=k(()=>e.multiple&&e.collapseTags?c.selected.slice(e.maxCollapseTags):[]),_t=e=>{if(!C.value){C.value=!0;return}if(!(c.options.size===0||H.value===0||A.value)&&!mt.value){e===`next`?(c.hoveringIndex++,c.hoveringIndex===c.options.size&&(c.hoveringIndex=0)):e===`prev`&&(c.hoveringIndex--,c.hoveringIndex<0&&(c.hoveringIndex=c.options.size-1));let t=U.value[c.hoveringIndex];(t.isDisabled||!t.visible)&&_t(e),u(()=>Q(w.value))}},vt=()=>{if(!d.value)return 0;let e=window.getComputedStyle(d.value);return Number.parseFloat(e.gap||`6px`)},yt=k(()=>{let t=vt();return{maxWidth:`${x.value&&e.maxCollapseTags===1?c.selectionWidth-c.collapseItemWidth-t:c.selectionWidth}px`}}),bt=k(()=>({maxWidth:`${c.selectionWidth}px`}));return B(d,Ge),B(y,qe),B(N,qe),B(te,Je),B(x,Ke),h(()=>{J()}),{inputId:D,contentId:i,nsSelect:a,nsInput:o,states:c,isFocused:P,expanded:C,optionsArray:U,hoverOption:w,selectSize:je,filteredOptionsCount:H,updateTooltip:qe,updateTagTooltip:Je,debouncedOnInputChange:Ze,onInput:Xe,deletePrevTag:et,deleteTag:X,deleteSelected:Z,handleOptionSelect:tt,scrollToOption:Q,hasModelValue:I,shouldShowPlaceholder:Pe,currentPlaceholder:Fe,mouseEnterEventName:Re,needStatusIcon:L,showClose:ce,iconComponent:le,iconReverse:ue,validateState:z,validateIcon:pe,showNewOption:De,updateOptions:ke,collapseTagSize:Me,setSelected:J,selectDisabled:M,emptyText:Ce,handleCompositionStart:ie,handleCompositionUpdate:ae,handleCompositionEnd:j,onOptionCreate:rt,onOptionDestroy:it,handleMenuEnter:ot,focus:$,blur:st,handleClearClick:ct,handleClickOutside:lt,handleEsc:ut,toggleMenu:dt,selectOption:ft,getValueKey:pt,navigateOptions:_t,dropdownMenuVisible:Ne,showTagList:ht,collapseTagList:gt,popupScroll:e=>{t(`popup-scroll`,e)},tagStyle:yt,collapseTagStyle:bt,popperRef:at,inputRef:m,tooltipRef:f,tagTooltipRef:p,prefixRef:_,suffixRef:ee,selectRef:l,wrapperRef:N,selectionRef:d,scrollbarRef:S,menuRef:y,tagMenuRef:te,collapseItemRef:x}},ct=I({name:`ElOptions`,setup(e,{slots:t}){let r=y(X),i=[];return()=>{let e=t.default?.call(t),a=[];function o(e){g(e)&&e.forEach(e=>{let t=(e?.type||{})?.name;t===`ElOptionGroup`?o(!x(e.children)&&!g(e.children)&&n(e.children?.default)?e.children?.default():e.children):t===`ElOption`?a.push(e.props?.value):g(e.children)&&o(e.children)})}return e.length&&o(e[0]?.children),G(a,i)||(i=a,r&&(r.states.optionValues=a)),e}}}),lt=ue({name:String,id:String,modelValue:{type:z([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:`off`},automaticDropdown:Boolean,size:be,effect:{type:z(String),default:`light`},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:``},popperOptions:{type:z(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:`value`},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Ne.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:H,default:pe},fitInputWidth:Boolean,suffixIcon:{type:H,default:xe},tagType:{...We.type,default:`info`},tagEffect:{...We.effect,default:`light`},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:z(String),values:Pe,default:`bottom-start`},fallbackPlacements:{type:z(Array),default:[`bottom-start`,`top-start`,`right`,`left`]},tabindex:{type:[String,Number],default:0},appendTo:Ne.appendTo,...Te,...je([`ariaLabel`])});Re.scroll;var ut=`ElSelect`,dt=I({name:ut,componentName:ut,components:{ElSelectMenu:$,ElOption:it,ElOptions:ct,ElTag:Ge,ElScrollbar:q,ElTooltip:Fe,ElIcon:U},directives:{ClickOutside:J},props:lt,emits:[K,Ie,`remove-tag`,`clear`,`visible-change`,`focus`,`blur`,`popup-scroll`],setup(e,{emit:n,slots:r}){let i=t();i.appContext.config.warnHandler=(...e)=>{!e[0]||e[0].includes(`Slot "default" invoked outside of the render function`)||console.warn(...e)};let a=k(()=>{let{modelValue:t,multiple:n}=e,r=n?[]:void 0;return g(t)?n?t:r:n?r:t}),o=v({...re(e),modelValue:a}),s=st(o,n),{calculatorRef:c,inputStyle:l}=$e(),u=e=>e.reduce((e,t)=>(e.push(t),t.children&&t.children.length>0&&e.push(...u(t.children)),e),[]),d=e=>{ze(e||[]).forEach(e=>{if(b(e)&&(e.type.name===`ElOption`||e.type.name===`ElTree`)){let t=e.type.name;if(t===`ElTree`)u(e.props?.data||[]).forEach(e=>{e.currentLabel=e.label||(b(e.value)?``:e.value),s.onOptionCreate(e)});else if(t===`ElOption`){let t={...e.props};t.currentLabel=t.label||(b(t.value)?``:t.value),s.onOptionCreate(t)}}})};T(()=>r.default?.call(r),t=>{e.persistent||d(t)},{immediate:!0}),ie(X,v({props:o,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));let f=k(()=>e.multiple?s.states.selected.map(e=>e.currentLabel):s.states.selectedLabel);return S(()=>{i.appContext.config.warnHandler=void 0}),{...s,modelValue:a,selectedLabel:f,calculatorRef:c,inputStyle:l}}});function ft(t,n){let i=w(`el-tag`),a=w(`el-tooltip`),s=w(`el-icon`),u=w(`el-option`),p=w(`el-options`),h=w(`el-scrollbar`),g=w(`el-select-menu`),v=ae(`click-outside`);return E((P(),m(`div`,{ref:`selectRef`,class:o([t.nsSelect.b(),t.nsSelect.m(t.selectSize)]),[C(t.mouseEnterEventName)]:e=>t.states.inputHovering=!0,onMouseleave:e=>t.states.inputHovering=!1},[d(a,{ref:`tooltipRef`,visible:t.dropdownMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e(`popper`),t.popperClass],"popper-options":t.popperOptions,"fallback-placements":t.fallbackPlacements,effect:t.effect,pure:``,trigger:`click`,transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:t.persistent,"append-to":t.appendTo,"show-arrow":t.showArrow,offset:t.offset,onBeforeShow:t.handleMenuEnter,onHide:e=>t.states.isBeforeHide=!1},{default:A(()=>[e(`div`,{ref:`wrapperRef`,class:o([t.nsSelect.e(`wrapper`),t.nsSelect.is(`focused`,t.isFocused),t.nsSelect.is(`hovering`,t.states.inputHovering),t.nsSelect.is(`filterable`,t.filterable),t.nsSelect.is(`disabled`,t.selectDisabled)]),onClick:r(t.toggleMenu,[`prevent`])},[t.$slots.prefix?(P(),m(`div`,{key:0,ref:`prefixRef`,class:o(t.nsSelect.e(`prefix`))},[D(t.$slots,`prefix`)],2)):f(`v-if`,!0),e(`div`,{ref:`selectionRef`,class:o([t.nsSelect.e(`selection`),t.nsSelect.is(`near`,t.multiple&&!t.$slots.prefix&&!!t.states.selected.length)])},[t.multiple?D(t.$slots,`tag`,{key:0,data:t.states.selected,deleteTag:t.deleteTag,selectDisabled:t.selectDisabled},()=>[(P(!0),m(ee,null,M(t.showTagList,n=>(P(),m(`div`,{key:t.getValueKey(n),class:o(t.nsSelect.e(`selected-item`))},[d(i,{closable:!t.selectDisabled&&!n.isDisabled,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":``,style:j(t.tagStyle),onClose:e=>t.deleteTag(e,n)},{default:A(()=>[e(`span`,{class:o(t.nsSelect.e(`tags-text`))},[D(t.$slots,`label`,{label:n.currentLabel,value:n.value},()=>[c(l(n.currentLabel),1)])],2)]),_:2},1032,[`closable`,`size`,`type`,`effect`,`style`,`onClose`])],2))),128)),t.collapseTags&&t.states.selected.length>t.maxCollapseTags?(P(),O(a,{key:0,ref:`tagTooltipRef`,disabled:t.dropdownMenuVisible||!t.collapseTagsTooltip,"fallback-placements":[`bottom`,`top`,`right`,`left`],effect:t.effect,placement:`bottom`,"popper-class":t.popperClass,teleported:t.teleported},{default:A(()=>[e(`div`,{ref:`collapseItemRef`,class:o(t.nsSelect.e(`selected-item`))},[d(i,{closable:!1,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":``,style:j(t.collapseTagStyle)},{default:A(()=>[e(`span`,{class:o(t.nsSelect.e(`tags-text`))},` + `+l(t.states.selected.length-t.maxCollapseTags),3)]),_:1},8,[`size`,`type`,`effect`,`style`])],2)]),content:A(()=>[e(`div`,{ref:`tagMenuRef`,class:o(t.nsSelect.e(`selection`))},[(P(!0),m(ee,null,M(t.collapseTagList,n=>(P(),m(`div`,{key:t.getValueKey(n),class:o(t.nsSelect.e(`selected-item`))},[d(i,{class:`in-tooltip`,closable:!t.selectDisabled&&!n.isDisabled,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":``,onClose:e=>t.deleteTag(e,n)},{default:A(()=>[e(`span`,{class:o(t.nsSelect.e(`tags-text`))},[D(t.$slots,`label`,{label:n.currentLabel,value:n.value},()=>[c(l(n.currentLabel),1)])],2)]),_:2},1032,[`closable`,`size`,`type`,`effect`,`onClose`])],2))),128))],2)]),_:3},8,[`disabled`,`effect`,`popper-class`,`teleported`])):f(`v-if`,!0)]):f(`v-if`,!0),e(`div`,{class:o([t.nsSelect.e(`selected-item`),t.nsSelect.e(`input-wrapper`),t.nsSelect.is(`hidden`,!t.filterable)])},[E(e(`input`,{id:t.inputId,ref:`inputRef`,"onUpdate:modelValue":e=>t.states.inputValue=e,type:`text`,name:t.name,class:o([t.nsSelect.e(`input`),t.nsSelect.is(t.selectSize)]),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:j(t.inputStyle),tabindex:t.tabindex,role:`combobox`,readonly:!t.filterable,spellcheck:`false`,"aria-activedescendant":t.hoverOption?.id||``,"aria-controls":t.contentId,"aria-expanded":t.dropdownMenuVisible,"aria-label":t.ariaLabel,"aria-autocomplete":`none`,"aria-haspopup":`listbox`,onKeydown:[_(r(e=>t.navigateOptions(`next`),[`stop`,`prevent`]),[`down`]),_(r(e=>t.navigateOptions(`prev`),[`stop`,`prevent`]),[`up`]),_(r(t.handleEsc,[`stop`,`prevent`]),[`esc`]),_(r(t.selectOption,[`stop`,`prevent`]),[`enter`]),_(r(t.deletePrevTag,[`stop`]),[`delete`])],onCompositionstart:t.handleCompositionStart,onCompositionupdate:t.handleCompositionUpdate,onCompositionend:t.handleCompositionEnd,onInput:t.onInput,onClick:r(t.toggleMenu,[`stop`])},null,46,[`id`,`onUpdate:modelValue`,`name`,`disabled`,`autocomplete`,`tabindex`,`readonly`,`aria-activedescendant`,`aria-controls`,`aria-expanded`,`aria-label`,`onKeydown`,`onCompositionstart`,`onCompositionupdate`,`onCompositionend`,`onInput`,`onClick`]),[[ne,t.states.inputValue]]),t.filterable?(P(),m(`span`,{key:0,ref:`calculatorRef`,"aria-hidden":`true`,class:o(t.nsSelect.e(`input-calculator`)),textContent:l(t.states.inputValue)},null,10,[`textContent`])):f(`v-if`,!0)],2),t.shouldShowPlaceholder?(P(),m(`div`,{key:1,class:o([t.nsSelect.e(`selected-item`),t.nsSelect.e(`placeholder`),t.nsSelect.is(`transparent`,!t.hasModelValue||t.expanded&&!t.states.inputValue)])},[t.hasModelValue?D(t.$slots,`label`,{key:0,label:t.currentPlaceholder,value:t.modelValue},()=>[e(`span`,null,l(t.currentPlaceholder),1)]):(P(),m(`span`,{key:1},l(t.currentPlaceholder),1))],2)):f(`v-if`,!0)],2),e(`div`,{ref:`suffixRef`,class:o(t.nsSelect.e(`suffix`))},[t.iconComponent&&!t.showClose?(P(),O(s,{key:0,class:o([t.nsSelect.e(`caret`),t.nsSelect.e(`icon`),t.iconReverse])},{default:A(()=>[(P(),O(N(t.iconComponent)))]),_:1},8,[`class`])):f(`v-if`,!0),t.showClose&&t.clearIcon?(P(),O(s,{key:1,class:o([t.nsSelect.e(`caret`),t.nsSelect.e(`icon`),t.nsSelect.e(`clear`)]),onClick:t.handleClearClick},{default:A(()=>[(P(),O(N(t.clearIcon)))]),_:1},8,[`class`,`onClick`])):f(`v-if`,!0),t.validateState&&t.validateIcon&&t.needStatusIcon?(P(),O(s,{key:2,class:o([t.nsInput.e(`icon`),t.nsInput.e(`validateIcon`),t.nsInput.is(`loading`,t.validateState===`validating`)])},{default:A(()=>[(P(),O(N(t.validateIcon)))]),_:1},8,[`class`])):f(`v-if`,!0)],2)],10,[`onClick`])]),content:A(()=>[d(g,{ref:`menuRef`},{default:A(()=>[t.$slots.header?(P(),m(`div`,{key:0,class:o(t.nsSelect.be(`dropdown`,`header`)),onClick:r(()=>{},[`stop`])},[D(t.$slots,`header`)],10,[`onClick`])):f(`v-if`,!0),E(d(h,{id:t.contentId,ref:`scrollbarRef`,tag:`ul`,"wrap-class":t.nsSelect.be(`dropdown`,`wrap`),"view-class":t.nsSelect.be(`dropdown`,`list`),class:o([t.nsSelect.is(`empty`,t.filteredOptionsCount===0)]),role:`listbox`,"aria-label":t.ariaLabel,"aria-orientation":`vertical`,onScroll:t.popupScroll},{default:A(()=>[t.showNewOption?(P(),O(u,{key:0,value:t.states.inputValue,created:!0},null,8,[`value`])):f(`v-if`,!0),d(p,null,{default:A(()=>[D(t.$slots,`default`)]),_:3})]),_:3},8,[`id`,`wrap-class`,`view-class`,`class`,`aria-label`,`onScroll`]),[[se,t.states.options.size>0&&!t.loading]]),t.$slots.loading&&t.loading?(P(),m(`div`,{key:1,class:o(t.nsSelect.be(`dropdown`,`loading`))},[D(t.$slots,`loading`)],2)):t.loading||t.filteredOptionsCount===0?(P(),m(`div`,{key:2,class:o(t.nsSelect.be(`dropdown`,`empty`))},[D(t.$slots,`empty`,{},()=>[e(`span`,null,l(t.emptyText),1)])],2)):f(`v-if`,!0),t.$slots.footer?(P(),m(`div`,{key:3,class:o(t.nsSelect.be(`dropdown`,`footer`)),onClick:r(()=>{},[`stop`])},[D(t.$slots,`footer`)],10,[`onClick`])):f(`v-if`,!0)]),_:3},512)]),_:3},8,[`visible`,`placement`,`teleported`,`popper-class`,`popper-options`,`fallback-placements`,`effect`,`transition`,`persistent`,`append-to`,`show-arrow`,`offset`,`onBeforeShow`,`onHide`])],16,[`onMouseleave`])),[[v,t.handleClickOutside,t.popperRef]])}var pt=L(dt,[[`render`,ft],[`__file`,`select.vue`]]),mt=I({name:`ElOptionGroup`,componentName:`ElOptionGroup`,props:{label:String,disabled:Boolean},setup(e){let n=R(`select`),r=F(),i=t(),a=F([]);ie(et,v({...re(e)}));let o=k(()=>a.value.some(e=>e.visible===!0)),s=e=>e.type.name===`ElOption`&&!!e.component?.proxy,c=e=>{let t=W(e),n=[];return t.forEach(e=>{te(e)&&(s(e)?n.push(e.component.proxy):g(e.children)&&e.children.length?n.push(...c(e.children)):e.component?.subTree&&n.push(...c(e.component.subTree)))}),n},l=()=>{a.value=c(i.subTree)};return h(()=>{l()}),Ce(r,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:r,visible:o,ns:n}}});function ht(t,n,r,i,a,s){return E((P(),m(`ul`,{ref:`groupRef`,class:o(t.ns.be(`group`,`wrap`))},[e(`li`,{class:o(t.ns.be(`group`,`title`))},l(t.label),3),e(`li`,null,[e(`ul`,{class:o(t.ns.b(`group`))},[D(t.$slots,`default`)],2)])],2)),[[se,t.visible]])}var gt=L(mt,[[`render`,ht],[`__file`,`option-group.vue`]]),_t=le(pt,{Option:it,OptionGroup:gt}),vt=ce(it),yt=ce(gt);export{Xe as i,yt as n,_t as r,vt as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{xt as e}from"./constants-
|
|
1
|
+
import{xt as e}from"./constants-_JKYsJLm.js";import{Gr as t,Hn as n,Vn as r,_n as i,dr as a,er as o}from"./index-CVwKPuSr.js";var s={namespaced:!0,state:a,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},setResults:(e,t)=>{e.results=t},resetAll:e=>{Object.assign(e,a())}},actions:{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:i}=await r.create({application_id:n?.id,host:window.location.origin});return console.debug(`created credential success`,i),e(`setCredential`,i),console.debug(`end createCredential`),i},setService:async({commit:e},t)=>{console.debug(`set service`,t),e(`setService`,t)},getService:async({commit:r,state:i})=>{i.status.getService=t.Request;try{let{data:a}=await n.get(e);return i.status.getService=t.Success,r(`setService`,a),a}catch{i.status.getService=t.Error,r(`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)},setApplications:async({commit:e},t)=>{console.debug(`set applications`,t),e(`setApplications`,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`))},getApplications:async({commit:n,state:r})=>{console.debug(`start to get applications for serp`),r.status.getApplications=t.Request;try{let{data:i}=await o.getAll({user_id:`me`,service_id:e,affiliation:[`owner`,`granted`]});return r.status.getApplications=t.Success,n(`setApplications`,i.items),i.items}catch(e){console.error(`get applications failed`,e),r.status.getApplications=t.Error,n(`setApplications`,void 0),n(`setApplication`,void 0)}},search:async({commit:e,state:n})=>{let r=n.credential?.token;if(!r){console.error(`no token specified`);return}let a=n.config;if(!a?.query){console.error(`no query specified`);return}n.status.search=t.Request;try{let{data:o}=await i.search({query:a.query,type:a.type,number:a.number,page:a.page,country:a.country,language:a.language,range:a.range},{token:r});n.status.search=t.Success,e(`setResults`,o)}catch(r){console.error(`search failed`,r),n.status.search=t.Error,e(`setResults`,void 0)}}}};export{s as default,s as serp};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"field.title":{message:`Site Title`,description:`Displayed as the title in the editing box`},"field.origin":{message:`Site Domain`,description:`Displayed as the title in the editing box`},"field.description":{message:`Site Description`,description:`Displayed as the title in the editing box`},"field.keywords":{message:`Site Keywords`,description:`Displayed as the title in the editing box`},"field.logo":{message:`Site Logo`,description:`Displayed as the title in the editing box`},"field.favicon":{message:`Site Favicon`,description:`Displayed as the title in the editing box`},"field.primaryColor":{message:`Primary Color`,description:`Displayed as the title in the editing box`},"field.qr":{message:`QR Code`,description:`Displayed as the title in the editing box`},"field.url":{message:`Link`,description:`Displayed as the title in the editing box`},"field.admins":{message:`Site Admin IDs`,description:`Displayed as the title in the editing box`},"field.markupRatio":{message:`Markup`,description:`Site settings: uniform markup percentage applied to all recharge packages on this site`},"message.markupRatioTip":{message:`Apply a uniform markup to every recharge package on this site (0%–500%). 0% sells at the platform's official price; the markup is your margin and affiliate commission rates are unchanged.`,description:`Help text for the markup ratio setting`},"message.markupExample":{message:`For example, if the official price is $20 and you enter 10, your price is $22.`,description:`Fixed example under the markup setting`},"field.distributionDefaultInviterId":{message:`Default Inviter ID`,description:`Displayed as the title in the editing box`},"field.distributionForceInviterId":{message:`Forced Inviter ID`,description:`Displayed as the title in the editing box`},"field.authEnabledProviders":{message:`Enabled Login Methods`,description:`Settings / Login Methods tab title — checkboxes for which authentication providers the site offers on its login page.`},"field.authDefaultProvider":{message:`Default Login Method`,description:`Settings / Login Methods tab title — which login provider is pre-selected when the login page first opens.`},"field.authProvider_email":{message:`Email`,description:`Login provider display name: email (email + password or verification code).`},"field.authProvider_phone":{message:`Phone`,description:`Login provider display name: phone number (SMS verification code).`},"field.authProvider_google":{message:`Google`,description:`Login provider display name: Google OAuth.`},"field.authProvider_github":{message:`GitHub`,description:`Login provider display name: GitHub OAuth.`},"field.authProvider_apple":{message:`Apple`,description:`Login provider display name: Sign in with Apple.`},"field.authProvider_wechat":{message:`WeChat`,description:`Login provider display name: WeChat OAuth.`},"field.featuresChat":{message:`Chat`,description:`Displayed as the title in the editing box`},"field.featuresVeo":{message:`Veo`,description:`Displayed as the title in the editing box`},"field.featuresSora":{message:`Sora`,description:`Displayed as the title in the editing box`},"field.featuresGrok":{message:`Grok`,description:`Displayed as the title in the editing box`},"field.featuresGrokvideo":{message:`Grok Video`,description:`Displayed as the title in the editing box`},"field.featuresMaestro":{message:`Maestro`,description:`Displayed as the title in the editing box`},"field.featuresDigitalhuman":{message:`Digital Human`,description:`Displayed as the title in the editing box`},"field.featuresDeepseek":{message:`Deepseek`,description:`Displayed as the title in the editing box`},"field.featuresChatgpt":{message:`ChatGPT`,description:`Displayed as the title in the editing box`},"field.featuresMidjourney":{message:`Midjourney`,description:`Displayed as the title in the editing box`},"field.featuresChatdoc":{message:`Chatdoc`,description:`Displayed as the title in the editing box`},"field.featuresQrart":{message:`Qrart`,description:`Displayed as the title in the editing box`},"field.featuresLuma":{message:`Luma`,description:`Displayed as the title in the editing box`},"field.featuresPixverse":{message:`Pixverse`,description:`Displayed as the title in the editing box`},"field.featuresPika":{message:`Pika`,description:`Displayed as the title in the editing box`},"field.featuresKling":{message:`Kling`,description:`Displayed as the title in the editing box`},"field.featuresHailuo":{message:`Hailuo`,description:`Displayed as the title in the editing box`},"field.featuresHeadshots":{message:`AI ID Photo`,description:`Displayed as the title in the editing box`},"field.featuresSuno":{message:`Suno`,description:`Displayed as the title in the editing box`},"field.featuresFlux":{message:`Flux`,description:`Displayed as the title in the editing box`},"field.featuresNanobanana":{message:`Nano Banana`,description:`Displayed as the title in the editing box`},"field.featuresOpenaiimage":{message:`OpenAI Image`,description:`Displayed as the title in the editing box`},"field.featuresSeedream":{message:`SeeDream`,description:`Displayed as the title in the editing box`},"field.featuresSeedance":{message:`SeeDance`,description:`Displayed as the title in the editing box`},"field.featuresWan":{message:`Wan`,description:`Displayed as the title in the editing box`},"field.featuresProducer":{message:`Producer`,description:`Displayed as the title in the editing box`},"field.featuresKimi":{message:`Kimi`,description:`Displayed as the title in the editing box`},"field.featuresSerp":{message:`SERP`,description:`Displayed as the title in the editing box`},"field.featuresFish":{message:`Fish Audio`,description:`Displayed as the title in the editing box`},"field.featuresCodingBridge":{message:`Coding Bridge`,description:`Displayed as the title in the editing box`},"field.featuresWebextrator":{message:`WebExtrator`,description:`Displayed as the title in the editing box`},"field.featuresSupport":{message:`Customer Support`,description:`Displayed as the title in the editing box`},"field.featuresI18n":{message:`Multilingual Support`,description:`Displayed as the title in the editing box`},"title.basicConfig":{message:`Basic Configuration`,description:`Displayed as the title in the editing box`},"title.seoConfig":{message:`SEO Configuration`,description:`Displayed as the title in the editing box`},"title.editAdmins":{message:`Edit Admins`,description:`Displayed as the title in the editing box`},"title.featuresConfig":{message:`Features Configuration`,description:`Displayed as the title in the editing box`},"title.editTitle":{message:`Edit Title`,description:`Displayed as the title in the editing box`},"title.editOrigin":{message:`Edit Domain`,description:`Displayed as the title in the editing box`},"title.editKeywords":{message:`Edit Keywords`,description:`Displayed as the title in the editing box`},"title.editLogo":{message:`Edit Logo`,description:`Displayed as the title in the editing box`},"title.editFavicon":{message:`Edit Favicon`,description:`Displayed as the title in the editing box`},"title.editDescription":{message:`Edit Description`,description:`Displayed as the title in the editing box`},"title.distributionConfig":{message:`Distribution Configuration`,description:`Displayed as the title in the editing box`},"title.editDistributionDefaultInviterId":{message:`Edit Default Inviter`,description:`Displayed as the title in the editing box`},"title.editDistributionForceInviterId":{message:`Edit Forced Inviter`,description:`Displayed as the title in the edit box`},"title.editQR":{message:`Edit QR Code`,description:`Displayed as the title in the edit box`},"title.editUrl":{message:`Edit Link`,description:`Displayed as the title in the edit box`},"placeholder.title":{message:`Enter Site Title`,description:`Displayed as the title in the edit box`},"placeholder.origin":{message:`Enter Site Domain`,description:`Displayed as the title in the edit box`},"placeholder.editUrl":{message:`Enter Link`,description:`Displayed as the title in the edit box`},"placeholder.description":{message:`Enter Site Description`,description:`Displayed as the title in the edit box`},"placeholder.keywords":{message:`Enter Site Keywords`,description:`Displayed as the title in the edit box`},"placeholder.editDistributionDefaultInviterId":{message:`Enter Default Inviter ID`,description:`Displayed as the title in the edit box`},"placeholder.editDistributionForceInviterId":{message:`Enter Forced Inviter ID`,description:`Displayed as the title in the edit box`},"placeholder.authDefaultProvider":{message:`Select default login method`,description:`Placeholder for the default-login-method dropdown in the Login Methods tab.`},"message.uploadImageExceed":{message:`Image Upload Exceeds Limit`,description:`Prompt for exceeding image upload limit`},"message.uploadImageError":{message:`Image Upload Error`,description:`Prompt for image upload error`},"imageCropper.dropHere":{message:`Drag image here or click to upload`,description:`Empty state prompt for image cropper`},"imageCropper.formatHint":{message:`Supports JPG / PNG / WebP, max 20 MB`,description:`Allowed file formats for image cropper`},"imageCropper.zoomIn":{message:`Zoom In`,description:`Zoom in button for image cropper`},"imageCropper.zoomOut":{message:`Zoom Out`,description:`Zoom out button for image cropper`},"imageCropper.rotateLeft":{message:`Rotate Left`,description:`Counterclockwise rotate button for image cropper`},"imageCropper.rotateRight":{message:`Rotate Right`,description:`Clockwise rotate button for image cropper`},"imageCropper.flipHorizontal":{message:`Flip Horizontal`,description:`Horizontal flip button for image cropper`},"imageCropper.replace":{message:`Re-select Image`,description:`Replace image button for image cropper`},"imageCropper.invalidType":{message:`Please select an image file.`,description:`Error for unsupported format in image cropper`},"imageCropper.noImage":{message:`Please select an image first.`,description:`Error for no image selected in image cropper`},"imageCropper.canvasError":{message:`Unable to generate cropped image.`,description:`Canvas error for image cropper`},"imageCropper.uploadFailed":{message:`Image upload failed.`,description:`Error for failed upload in image cropper`},"message.editLogoTip":{message:`Recommended Size: 200*60px`,description:`Tip for uploading images`},"message.editQRTip":{message:`Recommended Size: 200*200px`,description:`Tip for uploading images`},"message.editFaviconTip":{message:`Recommended Size: 32*32px`,description:`Tip for uploading images`},"message.editUrl":{message:`Enter Link`,description:`Prompt for entering a link`},"message.atLeastOneAdmin":{message:`At Least One Admin Must Remain`,description:`Prompt for retaining at least one admin`},"message.distributionDefaultInviterIdTip":{message:`User ID of the default inviter. If the distribution link does not carry the inviter_id parameter, this user ID will be used as the inviter by default.`,description:`Tip for default inviter ID`},"message.distributionForceInviterIdTip":{message:`User ID of the forced inviter. If this ID is set, it will be used as the inviter regardless of whether the distribution link carries the inviter_id parameter.`,description:`Tip for forced inviter ID`},"message.authEnabledProvidersTip":{message:`Pick which authentication methods this site's login page offers. At least one method must remain enabled, otherwise no one will be able to sign in.`,description:`Helper text under the Enabled Login Methods row in the Login Methods tab.`},"message.authDefaultProviderTip":{message:`The login method that is pre-selected when a user opens the login page. Must be one of the enabled methods above.`,description:`Helper text under the Default Login Method row in the Login Methods tab.`},"message.authProvidersAtLeastOne":{message:`At least one login method must remain enabled.`,description:`Warning toast when the user tries to disable every login method at once.`},"message.originTip":{message:`Site domain, site configuration is bound to the domain, and the site domain cannot be changed.`,description:`Tip for site domain`},"message.titleTip":{message:`Site title, displayed in the browser tab.`,description:`Tip for site title`},"message.descriptionTip":{message:`Site description, located in the site metadata, used for site SEO optimization.`,description:`Tip for site description`},"message.logoTip":{message:`Site Logo, displayed at the top of the site menu when the menu bar is expanded.`,description:`Tip for site logo`},"message.faviconTip":{message:`Site Favicon, displayed in the browser tab.`,description:`Tip for site favicon`},"message.primaryColorTip":{message:`Primary brand colour for the site. Applies to buttons, links, highlights, and accent gradients across the entire UI.`,description:`Tip for the per-site primary colour picker`},"message.adminsTip":{message:`Site admin IDs, by default, the user who first creates the site will become an admin. Only site admins can manage the site.`,description:`Tip for site admins`},"message.adminsTip2":{message:`You can add or remove admin IDs here. You can view user IDs at https://auth.acedata.cloud`,description:`Tip for site admins`},"message.keywordsTip":{message:`Site keywords, located in the site metadata, used for site SEO optimization.`,description:`Tip for site keywords`},"message.keywordsTip2":{message:`You can add or remove site keywords here. The more precise the keywords, the more beneficial for SEO optimization.`,description:`Tip for site keywords`},"message.featuresChat":{message:`Enable or disable the Chat feature module.`,description:`Description of the Chat feature`},"message.featuresGrok":{message:`Enable or disable the Grok feature module.`,description:`Description of the Grok feature`},"message.featuresGrokvideo":{message:`Enable or disable the Grok Video feature module.`,description:`Description of the Grok Video feature`},"message.featuresMaestro":{message:`Enable or disable the Maestro feature module.`,description:`Description of the Maestro feature`},"message.featuresDigitalhuman":{message:`Enable or disable the Digital Human feature module.`,description:`Description of the Digital Human feature`},"message.featuresDeepseek":{message:`Enable or disable the Deepseek feature module.`,description:`Description of the Deepseek feature`},"message.featuresChatgpt":{message:`Enable or disable the ChatGPT feature module.`,description:`Description of the ChatGPT feature`},"message.featuresMidjourney":{message:`Enable or disable the Midjourney feature module.`,description:`Description of the Midjourney feature`},"message.featuresChatdoc":{message:`Enable or disable the Chatdoc feature module.`,description:`Description of the Chatdoc feature`},"message.featuresQrart":{message:`Enable or disable the Qrart feature module.`,description:`Description of the Qrart feature`},"message.featuresVeo":{message:`Enable or disable the Veo feature module.`,description:`Description of the Veo feature`},"message.featuresSora":{message:`Enable or disable the Sora feature module.`,description:`Description of the Sora feature`},"message.featuresSuno":{message:`Enable or disable the Suno feature module.`,description:`Description of the Suno feature`},"message.featuresPixverse":{message:`Enable or disable the Pixverse feature module.`,description:`Description of the Pixverse feature`},"message.featuresFlux":{message:`Enable or disable the FLux feature module.`,description:`Description of the FLux feature`},"message.featuresNanobanana":{message:`Enable or disable the Nano Banana feature module.`,description:`Description of the Nano Banana feature`},"message.featuresOpenaiimage":{message:`Enable or disable the OpenAI image feature module.`,description:`Description of the OpenAI image feature`},"message.featuresSeedream":{message:`Enable or disable the SeeDream feature module.`,description:`Description of the SeeDream feature`},"message.featuresSeedance":{message:`Enable or disable the SeeDance feature module.`,description:`Description of the SeeDance feature`},"message.featuresWan":{message:`Enable or disable the Wan feature module.`,description:`Description of the Wan feature`},"message.featuresProducer":{message:`Enable or disable the Producer feature module.`,description:`Description of the Producer feature`},"message.featuresKimi":{message:`Enable or disable the Kimi feature module.`,description:`Description of the Kimi feature`},"message.featuresSerp":{message:`Enable or disable the SERP feature module.`,description:`Description of the SERP feature`},"message.featuresFish":{message:`Enable or disable the Fish Audio feature module.`,description:`Description of the Fish Audio feature`},"message.featuresCodingBridge":{message:`Enable or disable the Coding Bridge feature module.`,description:`Description of the Coding Bridge feature`},"message.featuresWebextrator":{message:`Enable or disable the WebExtrator feature module.`,description:`Description of the WebExtrator feature`},"message.featuresLuma":{message:`Enable or disable the Luma feature module.`,description:`Description of the Luma feature`},"message.featuresPika":{message:`Enable or disable the Pika feature module.`,description:`Description of the Pika feature`},"message.featuresKling":{message:`Enable or disable the Kling feature module.`,description:`Description of the Kling feature`},"message.featuresHailuo":{message:`Enable or disable the Hailuo feature module.`,description:`Description of the Hailuo feature`},"message.featuresHeadshots":{message:`Enable or disable the AI ID photo feature module.`,description:`Description of the AI ID photo feature`},"message.featuresSupport":{message:`Enable or disable customer support.`,description:`Description of the Support feature`},"message.featuresI18n":{message:`Enable or disable multilingual support. When disabled, users can only use the default language.`,description:`Description of multilingual support`},"button.upload":{message:`Upload`,description:`Upload`},"button.resetPrimaryColor":{message:`Reset to default`,description:`Reset the per-site primary colour back to the platform default`},"button.enabled":{message:`Enabled`,description:`Toggle text indicating it is enabled`},"button.disabled":{message:`Disabled`,description:`Toggle text indicating it is disabled`},"field.featuresGemini":{message:`Gemini`,description:`Displayed as the title in the editing box`},"message.featuresGemini":{message:`Enable or disable the Gemini feature module.`,description:`Description of the Gemini feature`},"field.featuresClaude":{message:`Claude`,description:`Displayed as the title in the editing box`},"message.featuresClaude":{message:`Enable or disable the Claude feature module.`,description:`Description of the Claude feature`},"placeholder.admins":{message:`Enter admin user ID`,description:`Placeholder in the admin editing box in site settings`},"message.userNotFound":{message:`User not found`,description:`Shown when the user lookup endpoint returns 404 in the picker preview.`},"message.editUserHint":{message:`Type a full UUID, username, email or phone to look up a user.`,description:`Tip below the lookup input in the inviter / admin user picker dialog.`},"message.editUsersEmpty":{message:`No admins yet.`,description:`Empty-state text shown when the admins list has no users.`},"message.userAlreadyAdded":{message:`Already added`,description:`Disabled-state label on the Add button when the resolved user is already in the admin list.`},"title.addUser":{message:`Add user`,description:`Divider title in the admins picker, between the existing-admins list and the lookup input.`},"button.addUser":{message:`Add`,description:`Button label to add the resolved user to the admins list.`},"autoTranslate.tooltipOn":{message:`Auto-translation ON — content shows in visitor's language`,description:`Tooltip on the auto-translate toggle when it is ON`},"autoTranslate.tooltipOff":{message:`Literal storage — click to enable auto-translation`,description:`Tooltip on the auto-translate toggle when it is OFF`},"autoTranslate.tooltipDisabledNotSaved":{message:`Save the row before enabling auto-translation`,description:`Tooltip shown when the toggle is disabled because the row has no id yet (create-dialog state)`},"autoTranslate.confirmEnable":{message:`This content will be translated into 17 languages within ~1 hour. Continue?`,description:`Body text of the confirm dialog shown before enabling auto-translation`},"autoTranslate.confirmDisable":{message:`Disabling removes all 18 languages of translation, keeping only the current value. Continue?`,description:`Body text of the confirm dialog shown before disabling auto-translation`},"autoTranslate.empty":{message:`Enter some content before enabling auto-translation`,description:`Warning shown when the user tries to enable auto-translation on an empty field`},"autoTranslate.error":{message:`Failed to toggle auto-translation, please retry`,description:`Fallback error toast when the enable/disable HTTP call fails with no detail`},"services.title":{message:`Per-service pricing & display`},"services.tip":{message:`Hide, rename, re-price or reorder individual services. A blank markup inherits the site-wide default. Deleting a row reverts the service to its catalog defaults.`},"services.addButton":{message:`Add override`},"services.empty":{message:`No overrides yet — every service uses its catalog defaults.`},"services.field.service":{message:`Service`},"services.field.visible":{message:`Visible`},"services.field.displayTitle":{message:`Display name`},"services.field.displaySummary":{message:`Display summary`,description:`Per-service override: custom summary shown on this site's homepage card`},"services.field.sortOrder":{message:`Sort`},"services.field.action":{message:`Actions`},"services.status.visible":{message:`Shown`},"services.status.hidden":{message:`Hidden`},"services.status.inherit":{message:`Inherit`},"services.dialog.create":{message:`Add service override`},"services.dialog.edit":{message:`Edit service override`},"services.placeholder.service":{message:`Pick a service from the catalog`},"services.placeholder.markup":{message:`Blank inherits`},"services.placeholder.displayTitle":{message:`Leave blank to use the catalog title`},"services.placeholder.displaySummary":{message:`Leave blank to use the catalog description`},"services.tip.visible":{message:`When off, the service is hidden on this site's homepage (users who already have it keep access).`},"services.tip.markup":{message:`Enter a percentage markup: 10 means +10%, up to 500. Leave blank to inherit the site default.`},"services.tip.sortOrder":{message:`Lower numbers come first.`},"services.preview.sampleLabel":{message:`Sample base price`},"services.preview.inherit":{message:`(inheriting the site default markup {percent})`},"services.message.alreadyOverridden":{message:`Already added`},"services.message.serviceRequired":{message:`Please pick a service first`},"services.message.saved":{message:`Saved`},"services.message.deleted":{message:`Deleted`},"services.message.deleteConfirm":{message:`Delete the override for “{name}”? The service reverts to its catalog defaults.`},"services.message.saveFailed":{message:`Save failed, please try again`},"services.message.deleteFailed":{message:`Delete failed, please try again`},"services.message.fetchFailed":{message:`Failed to load service overrides`}};export{e as default};
|