@loicngr/kobo 1.4.4 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/README.md +2 -2
- package/dist/mcp-server/kobo-tasks-handlers.js +12 -1
- package/dist/mcp-server/kobo-tasks-server.js +14 -2
- package/dist/server/db/index.js +5 -0
- package/dist/server/db/migrations.js +9 -0
- package/dist/server/db/schema.js +2 -0
- package/dist/server/index.js +17 -18
- package/dist/server/routes/dev-server.js +1 -0
- package/dist/server/routes/git.js +1 -0
- package/dist/server/routes/images.js +3 -0
- package/dist/server/routes/notion.js +1 -0
- package/dist/server/routes/settings.js +1 -0
- package/dist/server/routes/workspaces.js +128 -31
- package/dist/server/services/agent-manager.js +32 -8
- package/dist/server/services/dev-server-service.js +7 -2
- package/dist/server/services/image-service.js +2 -1
- package/dist/server/services/notion-service.js +3 -16
- package/dist/server/services/pr-watcher-service.js +2 -0
- package/dist/server/services/settings-service.js +17 -6
- package/dist/server/services/setup-script-service.js +1 -0
- package/dist/server/services/websocket-service.js +8 -9
- package/dist/server/services/workspace-service.js +33 -2
- package/dist/server/services/worktree-service.js +4 -2
- package/dist/server/utils/git-ops.js +19 -5
- package/dist/server/utils/process-tracker.js +7 -0
- package/package.json +1 -1
- package/src/client/dist/spa/assets/ActivityFeed-CLqD89Cm.css +1 -0
- package/src/client/dist/spa/assets/ActivityFeed-DTH_Ij7C.js +68 -0
- package/src/client/dist/spa/assets/CreatePage-BB7McDfT.js +2 -0
- package/src/client/dist/spa/assets/CreatePage-DAZADSsw.css +1 -0
- package/src/client/dist/spa/assets/DiffViewer-DpdWjInq.css +1 -0
- package/src/client/dist/spa/assets/DiffViewer-DsVIBuje.js +2 -0
- package/src/client/dist/spa/assets/MainLayout-BVmmyrJW.js +2 -0
- package/src/client/dist/spa/assets/MainLayout-POre8X3k.css +1 -0
- package/src/client/dist/spa/assets/QBadge-C_R3Tjb9.js +1 -0
- package/src/client/dist/spa/assets/QExpansionItem-BPtEjGYj.js +1 -0
- package/src/client/dist/spa/assets/QPage-BX_DOfKi.js +1 -0
- package/src/client/dist/spa/assets/QSeparator-y-UWrZSp.js +1 -0
- package/src/client/dist/spa/assets/QSpinnerDots-vpiOHlmN.js +1 -0
- package/src/client/dist/spa/assets/QTooltip-D5Om2o3Y.js +1 -0
- package/src/client/dist/spa/assets/SettingsPage-BKDbZp9_.js +1 -0
- package/src/client/dist/spa/assets/SettingsPage-Dv9gCOw8.css +1 -0
- package/src/client/dist/spa/assets/WorkspacePage-Cxt0YZv0.css +1 -0
- package/src/client/dist/spa/assets/WorkspacePage-g-Y3BuoI.js +2 -0
- package/src/client/dist/spa/assets/_plugin-vue_export-helper-BZV6EEeb.js +1 -0
- package/src/client/dist/spa/assets/{cssMode-Dsa4Lydc.js → cssMode-CbCp8SFU.js} +1 -1
- package/src/client/dist/spa/assets/{editor.api-qmVdKoc0.js → editor.api-Bm9nrcuM.js} +1 -1
- package/src/client/dist/spa/assets/{editor.main-D2fZAQLs.js → editor.main-DCE1BHWQ.js} +3 -3
- package/src/client/dist/spa/assets/{freemarker2-e-FYsZTq.js → freemarker2-BEroNSFG.js} +1 -1
- package/src/client/dist/spa/assets/{handlebars-CAwfoT2m.js → handlebars-C8QC92C9.js} +1 -1
- package/src/client/dist/spa/assets/{html-BTRUpMfA.js → html-Dh4rYZTt.js} +1 -1
- package/src/client/dist/spa/assets/{htmlMode-mzgQeoHf.js → htmlMode-BUP5qnTw.js} +1 -1
- package/src/client/dist/spa/assets/i18n-CvzmE5dV.js +1 -0
- package/src/client/dist/spa/assets/index-BRIQl1ry.js +5 -0
- package/src/client/dist/spa/assets/{javascript-DDeQuxhB.js → javascript-C3VBJatM.js} +1 -1
- package/src/client/dist/spa/assets/{jsonMode-Ch5vu2Iw.js → jsonMode-fNrYYkV5.js} +1 -1
- package/src/client/dist/spa/assets/{liquid-qVj3a9kh.js → liquid-BnBhHusK.js} +1 -1
- package/src/client/dist/spa/assets/{mdx-Cb_a7RXe.js → mdx-CTu1vGiw.js} +1 -1
- package/src/client/dist/spa/assets/{monaco.contribution-Rz70-mfd.js → monaco.contribution-Byxe-pOH.js} +2 -2
- package/src/client/dist/spa/assets/nodes-THUz-Chh.js +1 -0
- package/src/client/dist/spa/assets/{python-Cz0peIkX.js → python-CBrfgeGm.js} +1 -1
- package/src/client/dist/spa/assets/{razor-CU8Xe-4p.js → razor-CaMsFgrW.js} +1 -1
- package/src/client/dist/spa/assets/settings-CYWSNYAA.js +1 -0
- package/src/client/dist/spa/assets/{tsMode-CP1svEaN.js → tsMode-CrwxLvLR.js} +1 -1
- package/src/client/dist/spa/assets/{typescript-aPJGGIsI.js → typescript-BOH3igZy.js} +1 -1
- package/src/client/dist/spa/assets/use-checkbox-ts4I7GAt.js +1 -0
- package/src/client/dist/spa/assets/use-quasar-CIVlxSZ-.js +1 -0
- package/src/client/dist/spa/assets/{xml-CZM1zQhV.js → xml-BtA9_-M9.js} +1 -1
- package/src/client/dist/spa/assets/{yaml-B8qPirw0.js → yaml-vYOBELrg.js} +1 -1
- package/src/client/dist/spa/index.html +3 -3
- package/src/mcp-server/kobo-tasks-handlers.ts +21 -5
- package/src/mcp-server/kobo-tasks-server.ts +14 -2
- package/src/client/dist/spa/assets/ActivityFeed-Bx7maW4r.css +0 -1
- package/src/client/dist/spa/assets/ActivityFeed-DoQIjq5C.js +0 -60
- package/src/client/dist/spa/assets/CreatePage-6J0aDFtf.js +0 -2
- package/src/client/dist/spa/assets/CreatePage-DOr3puTt.css +0 -1
- package/src/client/dist/spa/assets/DiffViewer-7dck6mJc.css +0 -1
- package/src/client/dist/spa/assets/DiffViewer-dvGJaxu-.js +0 -2
- package/src/client/dist/spa/assets/MainLayout-DGzPKBi9.js +0 -2
- package/src/client/dist/spa/assets/MainLayout-gjAr74zR.css +0 -1
- package/src/client/dist/spa/assets/QBadge-Y5QfSDtm.js +0 -1
- package/src/client/dist/spa/assets/QBtn-D_bkYnrl.js +0 -1
- package/src/client/dist/spa/assets/QExpansionItem-D5gm2xc8.js +0 -1
- package/src/client/dist/spa/assets/QPage-Bg3Rohl6.js +0 -1
- package/src/client/dist/spa/assets/QSeparator-MRAsTeNf.js +0 -1
- package/src/client/dist/spa/assets/QSpinnerDots-Bu0GloxK.js +0 -1
- package/src/client/dist/spa/assets/QTooltip-Cuj49WIu.js +0 -1
- package/src/client/dist/spa/assets/SettingsPage-BNA4jJYf.css +0 -1
- package/src/client/dist/spa/assets/SettingsPage-BOkWnRl2.js +0 -1
- package/src/client/dist/spa/assets/WorkspacePage-9gRnhdjv.js +0 -2
- package/src/client/dist/spa/assets/WorkspacePage-CFC48jKO.css +0 -1
- package/src/client/dist/spa/assets/_plugin-vue_export-helper-Bo392ayB.js +0 -1
- package/src/client/dist/spa/assets/i18n-B1eQvEGk.js +0 -1
- package/src/client/dist/spa/assets/index-C0u2YcnZ.js +0 -5
- package/src/client/dist/spa/assets/nodes-Bo-5xQjA.js +0 -1
- package/src/client/dist/spa/assets/position-engine-CDz__T_5.js +0 -1
- package/src/client/dist/spa/assets/use-checkbox-B8W131xl.js +0 -1
- package/src/client/dist/spa/assets/use-quasar-sc8fDqi0.js +0 -1
- /package/src/client/dist/spa/assets/{formatters-CXx5Gzsp.js → formatters-B3FG1fMI.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,G as t,J as n,K as r,S as i,T as a,V as o,W as s,X as c,Y as l,Z as u,et as ee,l as d,q as f,tt as p}from"./runtime-core.esm-bundler-BLPLlWMG.js";import{U as m}from"./QBtn-D_bkYnrl.js";var h=u(!1),g;function _(e,t){let n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||``,version:n[4]||n[2]||`0`,platform:t[0]||``}}function v(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}var y=`ontouchstart`in window||window.navigator.maxTouchPoints>0;function b(e){let t=e.toLowerCase(),n=_(t,v(t)),r={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};n.browser&&(r[n.browser]=!0,r.version=n.version,r.versionNumber=parseInt(n.version,10)),n.platform&&(r[n.platform]=!0);let i=r.android||r.ios||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r[`windows phone`];if(i===!0||t.indexOf(`mobile`)!==-1?r.mobile=!0:r.desktop=!0,r[`windows phone`]&&(r.winphone=!0,delete r[`windows phone`]),r.edga||r.edgios||r.edg?(r.edge=!0,n.browser=`edge`):r.crios?(r.chrome=!0,n.browser=`chrome`):r.fxios&&(r.firefox=!0,n.browser=`firefox`),(r.ipod||r.ipad||r.iphone)&&(r.ios=!0),r.vivaldi&&=(n.browser=`vivaldi`,!0),(r.chrome||r.opr||r.safari||r.vivaldi||r.mobile===!0&&r.ios!==!0&&i!==!0)&&(r.webkit=!0),r.opr&&(n.browser=`opera`,r.opera=!0),r.safari&&(r.blackberry||r.bb?(n.browser=`blackberry`,r.blackberry=!0):r.playbook?(n.browser=`playbook`,r.playbook=!0):r.android?(n.browser=`android`,r.android=!0):r.kindle?(n.browser=`kindle`,r.kindle=!0):r.silk&&=(n.browser=`silk`,!0)),r.name=n.browser,r.platform=n.platform,t.indexOf(`electron`)!==-1)r.electron=!0;else if(document.location.href.indexOf(`-extension://`)!==-1)r.bex=!0;else{if(window.Capacitor===void 0?(window._cordovaNative!==void 0||window.cordova!==void 0)&&(r.cordova=!0,r.nativeMobile=!0,r.nativeMobileWrapper=`cordova`):(r.capacitor=!0,r.nativeMobile=!0,r.nativeMobileWrapper=`capacitor`),h.value===!0&&(g={is:{...r}}),y===!0&&r.mac===!0&&(r.desktop===!0&&r.safari===!0||r.nativeMobile===!0&&r.android!==!0&&r.ios!==!0&&r.ipad!==!0)){delete r.mac,delete r.desktop;let e=Math.min(window.innerHeight,window.innerWidth)>414?`ipad`:`iphone`;Object.assign(r,{mobile:!0,ios:!0,platform:e,[e]:!0})}r.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete r.desktop,r.mobile=!0)}return r}var x=navigator.userAgent||navigator.vendor||window.opera,S={has:{touch:!1,webStorage:!1},within:{iframe:!1}},C={userAgent:x,is:b(x),has:{touch:y},within:{iframe:window.self!==window.top}},w={install(e){let{$q:t}=e;h.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,C),h.value=!1}),t.platform=c(this)):t.platform=this}};{let e;m(C.has,`webStorage`,()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(w,C),h.value===!0&&(Object.assign(w,g,S),g=null)}var T={},E=!1;function D(){E=!0}var O,k=e=>O=e,A=Symbol();function j(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var M;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(M||={});var N=typeof window<`u`,P=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function te(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function F(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){B(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function I(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function L(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=document.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var R=typeof navigator==`object`?navigator:{userAgent:``},z=/Macintosh/.test(R.userAgent)&&/AppleWebKit/.test(R.userAgent)&&!/Safari/.test(R.userAgent),B=N?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!z?V:`msSaveOrOpenBlob`in R?ne:re:()=>{};function V(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?L(r):I(r.href)?F(e,t,n):(r.target=`_blank`,L(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){L(r)},0))}function ne(e,t=`download`,n){if(typeof e==`string`)if(I(e))F(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){L(t)})}else navigator.msSaveOrOpenBlob(te(e,n),t)}function re(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return F(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(P.HTMLElement))||`safari`in P,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||z)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:ie}=Object;function ae(){let e=s(!0),t=e.run(()=>u({})),r=[],i=[],a=n({install(e){k(a),a._a=e,e.provide(A,a),e.config.globalProperties.$pinia=a,i.forEach(e=>r.push(e)),i=[]},use(e){return this._a?r.push(e):i.push(e),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return a}var H=()=>{};function U(e,n,r,i=H){e.push(n);let a=()=>{let t=e.indexOf(n);t>-1&&(e.splice(t,1),i())};return!r&&t()&&l(a),a}function W(e,...t){e.slice().forEach(e=>{e(...t)})}var oe=e=>e(),G=Symbol(),K=Symbol();function q(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let i=t[n],a=e[n];j(a)&&j(i)&&e.hasOwnProperty(n)&&!f(i)&&!r(i)?e[n]=q(a,i):e[n]=i}return e}var se=Symbol();function ce(e){return!j(e)||!e.hasOwnProperty(se)}var{assign:J}=Object;function le(e){return!!(f(e)&&e.effect)}function ue(e,t,r,i){let{state:a,actions:o,getters:s}=t,c=r.state.value[e],l;function u(){return c||(r.state.value[e]=a?a():{}),J(p(r.state.value[e]),o,Object.keys(s||{}).reduce((t,i)=>(t[i]=n(d(()=>{k(r);let t=r._s.get(e);return s[i].call(t,t)})),t),{}))}return l=Y(e,u,t,r,i,!0),l}function Y(e,t,n={},i,l,d){let p,m=J({actions:{}},n),h={deep:!0},g,_,v=[],y=[],b=i.state.value[e];!d&&!b&&(i.state.value[e]={}),u({});let x;function S(t){let n;g=_=!1,typeof t==`function`?(t(i.state.value[e]),n={type:M.patchFunction,storeId:e,events:void 0}):(q(i.state.value[e],t),n={type:M.patchObject,payload:t,storeId:e,events:void 0});let r=x=Symbol();a().then(()=>{x===r&&(g=!0)}),_=!0,W(v,n,i.state.value[e])}let C=d?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{J(e,t)})}:H;function w(){p.stop(),v=[],y=[],i._s.delete(e)}let T=(t,n=``)=>{if(G in t)return t[K]=n,t;let r=function(){k(i);let n=Array.from(arguments),a=[],o=[];function s(e){a.push(e)}function c(e){o.push(e)}W(y,{args:n,name:r[K],store:E,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:E,n)}catch(e){throw W(o,e),e}return l instanceof Promise?l.then(e=>(W(a,e),e)).catch(e=>(W(o,e),Promise.reject(e))):(W(a,l),l)};return r[G]=!0,r[K]=n,r},E=c({_p:i,$id:e,$onAction:U.bind(null,y),$patch:S,$reset:C,$subscribe(t,n={}){let r=U(v,t,n.detached,()=>a()),a=p.run(()=>o(()=>i.state.value[e],r=>{(n.flush===`sync`?_:g)&&t({storeId:e,type:M.direct,events:void 0},r)},J({},h,n)));return r},$dispose:w});i._s.set(e,E);let D=(i._a&&i._a.runWithContext||oe)(()=>i._e.run(()=>(p=s()).run(()=>t({action:T}))));for(let t in D){let n=D[t];f(n)&&!le(n)||r(n)?d||(b&&ce(n)&&(f(n)?n.value=b[t]:q(n,b[t])),i.state.value[e][t]=n):typeof n==`function`&&(D[t]=T(n,t),m.actions[t]=n)}return J(E,D),J(ee(E),D),Object.defineProperty(E,`$state`,{get:()=>i.state.value[e],set:e=>{S(t=>{J(t,e)})}}),i._p.forEach(e=>{J(E,p.run(()=>e({store:E,app:i._a,pinia:i,options:m})))}),b&&d&&n.hydrate&&n.hydrate(E.$state,b),g=!0,_=!0,E}function X(t,n,r){let a,o,s=typeof n==`function`;typeof t==`string`?(a=t,o=s?r:n):(o=t,a=t.id);function c(t,r){let c=i();return t||=c?e(A,null):null,t&&k(t),t=O,t._s.has(a)||(s?Y(a,n,o,t):ue(a,o,t)),t._s.get(a)}return c.$id=a,c}function Z(e){return btoa(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}var de=X(`settings`,{state:()=>({global:{defaultModel:`auto`,dangerouslySkipPermissions:!0,prPromptTemplate:``,gitConventions:``},projects:[],loading:!1,showVerboseSystemMessages:localStorage.getItem(`kobo:showVerboseSystemMessages`)===`true`}),getters:{getProjectByPath:e=>t=>e.projects.find(e=>e.path===t)??null,projectPaths:e=>e.projects.map(e=>e.path)},actions:{async fetchSettings(){this.loading=!0;try{let e=await fetch(`/api/settings`);if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();this.global=t.global,this.projects=t.projects}catch(e){console.error(`[settings store] fetchSettings failed:`,e)}finally{this.loading=!1}},async updateGlobal(e){try{let t=await fetch(`/api/settings/global`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)throw Error(`HTTP ${t.status}`);this.global=await t.json()}catch(e){throw console.error(`[settings store] updateGlobal failed:`,e),e}},async upsertProject(e,t){try{let n=Z(e),r=await fetch(`/api/settings/projects/${n}`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!r.ok)throw Error(`HTTP ${r.status}`);let i=await r.json(),a=this.projects.findIndex(t=>t.path===e);a>=0?this.projects[a]=i:this.projects.push(i)}catch(e){throw console.error(`[settings store] upsertProject failed:`,e),e}},toggleVerboseSystemMessages(){this.showVerboseSystemMessages=!this.showVerboseSystemMessages,localStorage.setItem(`kobo:showVerboseSystemMessages`,String(this.showVerboseSystemMessages))},async deleteProject(e){try{let t=Z(e),n=await fetch(`/api/settings/projects/${t}`,{method:`DELETE`});if(!n.ok)throw Error(`HTTP ${n.status}`);this.projects=this.projects.filter(t=>t.path!==e)}catch(e){throw console.error(`[settings store] deleteProject failed:`,e),e}}}}),Q=[],$=[],fe=1,pe=document.body;function me(e,t){let n=document.createElement(`div`);if(n.id=t===void 0?e:`q-portal--${t}--${fe++}`,T.globalNodes!==void 0){let e=T.globalNodes.class;e!==void 0&&(n.className=e)}return pe.appendChild(n),Q.push(n),$.push(t),n}function he(e){let t=Q.indexOf(e);Q.splice(t,1),$.splice(t,1),e.remove()}export{X as a,E as c,h as d,ae as i,w as l,he as n,D as o,de as r,T as s,me as t,C as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,M as t,O as n,T as r,V as i,Z as a,j as o,l as s,o as c,x as l,y as u}from"./runtime-core.esm-bundler-BLPLlWMG.js";import{A as d,B as f,E as p,I as m,N as h,U as g,c as _,k as v,m as y,o as b,p as x,s as S}from"./QBtn-D_bkYnrl.js";import{l as ee,n as te,t as ne,u as re}from"./nodes-Bo-5xQjA.js";function C(){if(window.getSelection!==void 0){let e=window.getSelection();e.empty===void 0?e.removeAllRanges!==void 0&&(e.removeAllRanges(),ee.is.mobile!==!0&&e.addRange(document.createRange())):e.empty()}else document.selection!==void 0&&document.selection.empty()}var w={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},ie={...w,contextMenu:Boolean};function ae({showing:e,avoidEmit:t,configureAnchorEl:s}){let{props:c,proxy:l,emit:f}=u(),h=a(null),g=null;function _(e){return h.value===null?!1:e===void 0||e.touches===void 0||e.touches.length<=1}let y={};s===void 0&&(Object.assign(y,{hide(e){l.hide(e)},toggle(e){l.toggle(e),e.qAnchorHandled=!0},toggleKey(e){p(e,13)===!0&&y.toggle(e)},contextClick(e){l.hide(e),m(e),r(()=>{l.show(e),e.qAnchorHandled=!0})},prevent:m,mobileTouch(e){if(y.mobileCleanup(e),_(e)!==!0)return;l.hide(e),h.value.classList.add(`non-selectable`);let t=e.target;v(y,`anchor`,[[t,`touchmove`,`mobileCleanup`,`passive`],[t,`touchend`,`mobileCleanup`,`passive`],[t,`touchcancel`,`mobileCleanup`,`passive`],[h.value,`contextmenu`,`prevent`,`notPassive`]]),g=setTimeout(()=>{g=null,l.show(e),e.qAnchorHandled=!0},300)},mobileCleanup(t){h.value.classList.remove(`non-selectable`),g!==null&&(clearTimeout(g),g=null),e.value===!0&&t!==void 0&&C()}}),s=function(e=c.contextMenu){if(c.noParentEvent===!0||h.value===null)return;let t;t=e===!0?l.$q.platform.is.mobile===!0?[[h.value,`touchstart`,`mobileTouch`,`passive`]]:[[h.value,`mousedown`,`hide`,`passive`],[h.value,`contextmenu`,`contextClick`,`notPassive`]]:[[h.value,`click`,`toggle`,`passive`],[h.value,`keyup`,`toggleKey`,`passive`]],v(y,`anchor`,t)});function b(){d(y,`anchor`)}function x(e){for(h.value=e;h.value.classList.contains(`q-anchor--skip`);)h.value=h.value.parentNode;s()}function S(){if(c.target===!1||c.target===``||l.$el.parentNode===null)h.value=null;else if(c.target===!0)x(l.$el.parentNode);else{let e=c.target;if(typeof c.target==`string`)try{e=document.querySelector(c.target)}catch{e=void 0}e==null?(h.value=null,console.error(`Anchor: target "${c.target}" not found`)):(h.value=e.$el||e,s())}}return i(()=>c.contextMenu,e=>{h.value!==null&&(b(),s(e))}),i(()=>c.target,()=>{h.value!==null&&b(),S()}),i(()=>c.noParentEvent,e=>{h.value!==null&&(e===!0?b():s())}),o(()=>{S(),t!==!0&&c.modelValue===!0&&h.value===null&&f(`update:modelValue`,!1)}),n(()=>{g!==null&&clearTimeout(g),b()}),{anchorEl:h,canShow:_,anchorEvents:y}}function oe(e,t){let r=a(null),o;function s(e,t){let n=`${t===void 0?`remove`:`add`}EventListener`,r=t===void 0?o:t;e!==window&&e[n](`scroll`,r,h.passive),window[n](`scroll`,r,h.passive),o=t}function c(){r.value!==null&&(s(r.value),r.value=null)}return n(i(()=>e.noParentEvent,()=>{r.value!==null&&(c(),t())})),{localScrollTarget:r,unconfigureScrollTarget:c,changeScrollEvent:s}}var se={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},ce=[`beforeShow`,`show`,`beforeHide`,`hide`];function le({showing:e,canShow:t,hideOnRouteChange:n,handleShow:a,handleHide:s,processOnMount:c}){let l=u(),{props:d,emit:f,proxy:p}=l,m;function h(t){e.value===!0?v(t):g(t)}function g(e){if(d.disable===!0||e?.qAnchorHandled===!0||t!==void 0&&t(e)!==!0)return;let n=d[`onUpdate:modelValue`]!==void 0;n===!0&&(f(`update:modelValue`,!0),m=e,r(()=>{m===e&&(m=void 0)})),(d.modelValue===null||n===!1)&&_(e)}function _(t){e.value!==!0&&(e.value=!0,f(`beforeShow`,t),a===void 0?f(`show`,t):a(t))}function v(e){if(d.disable===!0)return;let t=d[`onUpdate:modelValue`]!==void 0;t===!0&&(f(`update:modelValue`,!1),m=e,r(()=>{m===e&&(m=void 0)})),(d.modelValue===null||t===!1)&&y(e)}function y(t){e.value!==!1&&(e.value=!1,f(`beforeHide`,t),s===void 0?f(`hide`,t):s(t))}function b(t){d.disable===!0&&t===!0?d[`onUpdate:modelValue`]!==void 0&&f(`update:modelValue`,!1):t===!0!==e.value&&(t===!0?_:y)(m)}i(()=>d.modelValue,b),n!==void 0&&S(l)===!0&&i(()=>p.$route.fullPath,()=>{n.value===!0&&e.value===!0&&v()}),c===!0&&o(()=>{b(d.modelValue)});let x={show:g,hide:v,toggle:h};return Object.assign(p,x),x}var T=[],E=[];function D(e){E=E.filter(t=>t!==e)}function ue(e){D(e),E.push(e)}function O(e){D(e),E.length===0&&T.length!==0&&(T[T.length-1](),T=[])}function de(e){E.length===0?e():T.push(e)}function fe(e){T=T.filter(t=>t!==e)}var k=[];function pe(e,t){do{if(e.$options.name===`QMenu`){if(e.hide(t),e.$props.separateClosePopup===!0)return b(e)}else if(e.__qPortal===!0){let n=b(e);return n?.$options.name===`QPopupProxy`?(e.hide(t),n):e}e=b(e)}while(e!=null)}var A=f({name:`QPortal`,setup(e,{slots:t}){return()=>t.default()}});function j(e){for(e=e.parent;e!=null;){if(e.type.name===`QGlobalDialog`)return!0;if(e.type.name===`QDialog`||e.type.name===`QMenu`)return!1;e=e.parent}return!1}function M(e,n,r,i){let o=a(!1),s=a(!1),u=null,d={},f=i===`dialog`&&j(e);function p(t){if(t===!0){O(d),s.value=!0;return}s.value=!1,o.value===!1&&(f===!1&&u===null&&(u=ne(!1,i)),o.value=!0,k.push(e.proxy),ue(d))}function m(t){if(s.value=!1,t!==!0)return;O(d),o.value=!1;let n=k.indexOf(e.proxy);n!==-1&&k.splice(n,1),u!==null&&(te(u),u=null)}return t(()=>{m(!0)}),e.proxy.__qPortal=!0,g(e.proxy,`contentEl`,()=>n.value),{showPortal:p,hidePortal:m,portalIsActive:o,portalIsAccessible:s,renderPortal:()=>f===!0?r():o.value===!0?[l(c,{to:u},l(A,r))]:void 0}}var N={transitionShow:{type:String,default:`fade`},transitionHide:{type:String,default:`fade`},transitionDuration:{type:[String,Number],default:300}};function P(e,t=()=>{},n=()=>{}){return{transitionProps:s(()=>{let r=`q-transition--${e.transitionShow||t()}`,i=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${r}-enter-from`,enterActiveClass:`${r}-enter-active`,enterToClass:`${r}-enter-to`,leaveFromClass:`${i}-leave-from`,leaveActiveClass:`${i}-leave-active`,leaveToClass:`${i}-leave-to`}}),transitionStyle:s(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function F(){let t,i=u();function a(){t=void 0}return e(a),n(a),{removeTick:a,registerTick(e){t=e,r(()=>{t===e&&(_(i)===!1&&t(),t=void 0)})}}}function I(){let t=null,r=u();function i(){t!==null&&(clearTimeout(t),t=null)}return e(i),n(i),{removeTimeout:i,registerTimeout(e,n){i(),_(r)===!1&&(t=setTimeout(()=>{t=null,e()},n))}}}var L=[Element,String],R=[null,document,document.body,document.scrollingElement,document.documentElement];function z(e,t){let n=y(t);if(n===void 0){if(e==null)return window;n=e.closest(`.scroll,.scroll-y,.overflow-auto`)}return R.includes(n)?window:n}function B(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function me(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}var V;function H(){if(V!==void 0)return V;let e=document.createElement(`p`),t=document.createElement(`div`);x(e,{width:`100%`,height:`200px`}),x(t,{position:`absolute`,top:`0px`,left:`0px`,visibility:`hidden`,width:`200px`,height:`150px`,overflow:`hidden`}),t.appendChild(e),document.body.appendChild(t);let n=e.offsetWidth;t.style.overflow=`scroll`;let r=e.offsetWidth;return n===r&&(r=t.clientWidth),t.remove(),V=n-r,V}function he(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains(`scroll`)||e.classList.contains(`overflow-auto`)||[`auto`,`scroll`].includes(window.getComputedStyle(e)[`overflow-y`])):e.scrollWidth>e.clientWidth&&(e.classList.contains(`scroll`)||e.classList.contains(`overflow-auto`)||[`auto`,`scroll`].includes(window.getComputedStyle(e)[`overflow-x`]))}var U=null,{notPassiveCapture:W}=h,G=[];function K(e){U!==null&&(clearTimeout(U),U=null);let t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains(`no-pointer-events`)===!0)return;let n=k.length-1;for(;n>=0;){let e=k[n].$;if(e.type.name===`QTooltip`){n--;continue}if(e.type.name!==`QDialog`)break;if(e.props.seamless!==!0)return;n--}for(let n=G.length-1;n>=0;n--){let r=G[n];if((r.anchorEl.value===null||r.anchorEl.value.contains(t)===!1)&&(t===document.body||r.innerRef.value!==null&&r.innerRef.value.contains(t)===!1))e.qClickOutside=!0,r.onClickOutside(e);else return}}function ge(e){G.push(e),G.length===1&&(document.addEventListener(`mousedown`,K,W),document.addEventListener(`touchstart`,K,W))}function _e(e){let t=G.findIndex(t=>t===e);t!==-1&&(G.splice(t,1),G.length===0&&(U!==null&&(clearTimeout(U),U=null),document.removeEventListener(`mousedown`,K,W),document.removeEventListener(`touchstart`,K,W)))}var q,J;function Y(e){let t=e.split(` `);return t.length===2?[`top`,`center`,`bottom`].includes(t[0])===!0?[`left`,`middle`,`right`,`start`,`end`].includes(t[1])===!0?!0:(console.error(`Anchor/Self position must end with one of left/middle/right/start/end`),!1):(console.error(`Anchor/Self position must start with one of top/center/bottom`),!1):!1}function ve(e){return e?!(e.length!==2||typeof e[0]!=`number`||typeof e[1]!=`number`):!0}var X={"start#ltr":`left`,"start#rtl":`right`,"end#ltr":`right`,"end#rtl":`left`};[`left`,`middle`,`right`].forEach(e=>{X[`${e}#ltr`]=e,X[`${e}#rtl`]=e});function ye(e,t){let n=e.split(` `);return{vertical:n[0],horizontal:X[`${n[1]}#${t===!0?`rtl`:`ltr`}`]}}function be(e,t){let{top:n,left:r,right:i,bottom:a,width:o,height:s}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],r-=t[0],a+=t[1],i+=t[0],o+=t[0],s+=t[1]),{top:n,bottom:a,height:s,left:r,right:i,width:o,middle:r+(i-r)/2,center:n+(a-n)/2}}function xe(e,t,n){let{top:r,left:i}=e.getBoundingClientRect();return r+=t.top,i+=t.left,n!==void 0&&(r+=n[1],i+=n[0]),{top:r,bottom:r+1,height:1,left:i,right:i+1,width:1,middle:i,center:r}}function Se(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Z(e,t,n,r){return{top:e[n.vertical]-t[r.vertical],left:e[n.horizontal]-t[r.horizontal]}}function Q(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Q(e,t+1)},10);return}let{targetEl:n,offset:r,anchorEl:i,anchorOrigin:a,selfOrigin:o,absoluteOffset:s,fit:c,cover:l,maxHeight:u,maxWidth:d}=e;if(re.is.ios===!0&&window.visualViewport!==void 0){let e=document.body.style,{offsetLeft:t,offsetTop:n}=window.visualViewport;t!==q&&(e.setProperty(`--q-pe-left`,t+`px`),q=t),n!==J&&(e.setProperty(`--q-pe-top`,n+`px`),J=n)}let{scrollLeft:f,scrollTop:p}=n,m=s===void 0?be(i,l===!0?[0,0]:r):xe(i,s,r);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:d,maxHeight:u,visibility:`visible`});let{offsetWidth:h,offsetHeight:g}=n,{elWidth:_,elHeight:v}=c===!0||l===!0?{elWidth:Math.max(m.width,h),elHeight:l===!0?Math.max(m.height,g):g}:{elWidth:h,elHeight:g},y={maxWidth:d,maxHeight:u};(c===!0||l===!0)&&(y.minWidth=m.width+`px`,l===!0&&(y.minHeight=m.height+`px`)),Object.assign(n.style,y);let b=Se(_,v),x=Z(m,b,a,o);if(s===void 0||r===void 0)$(x,m,b,a,o);else{let{top:e,left:t}=x;$(x,m,b,a,o);let n=!1;if(x.top!==e){n=!0;let e=2*r[1];m.center=m.top-=e,m.bottom-=e+2}if(x.left!==t){n=!0;let e=2*r[0];m.middle=m.left-=e,m.right-=e+2}n===!0&&(x=Z(m,b,a,o),$(x,m,b,a,o))}y={top:x.top+`px`,left:x.left+`px`},x.maxHeight!==void 0&&(y.maxHeight=x.maxHeight+`px`,m.height>x.maxHeight&&(y.minHeight=y.maxHeight)),x.maxWidth!==void 0&&(y.maxWidth=x.maxWidth+`px`,m.width>x.maxWidth&&(y.minWidth=y.maxWidth)),Object.assign(n.style,y),n.scrollTop!==p&&(n.scrollTop=p),n.scrollLeft!==f&&(n.scrollLeft=f)}function $(e,t,n,r,i){let a=n.bottom,o=n.right,s=H(),c=window.innerHeight-s,l=document.body.clientWidth;if(e.top<0||e.top+a>c)if(i.vertical===`center`)e.top=t[r.vertical]>c/2?Math.max(0,c-a):0,e.maxHeight=Math.min(a,c);else if(t[r.vertical]>c/2){let n=Math.min(c,r.vertical===`center`?t.center:r.vertical===i.vertical?t.bottom:t.top);e.maxHeight=Math.min(a,n),e.top=Math.max(0,n-a)}else e.top=Math.max(0,r.vertical===`center`?t.center:r.vertical===i.vertical?t.top:t.bottom),e.maxHeight=Math.min(a,c-e.top);if(e.left<0||e.left+o>l)if(e.maxWidth=Math.min(o,l),i.horizontal===`middle`)e.left=t[r.horizontal]>l/2?Math.max(0,l-o):0;else if(t[r.horizontal]>l/2){let n=Math.min(l,r.horizontal===`middle`?t.middle:r.horizontal===i.horizontal?t.right:t.left);e.maxWidth=Math.min(o,n),e.left=Math.max(0,n-e.maxWidth)}else e.left=Math.max(0,r.horizontal===`middle`?t.middle:r.horizontal===i.horizontal?t.left:t.right),e.maxWidth=Math.min(o,l-e.left)}export{se as C,w as D,ie as E,C as O,ce as S,ae as T,M as _,ge as a,fe as b,z as c,he as d,L as f,N as g,P as h,Y as i,H as l,F as m,Q as n,_e as o,I as p,ve as r,me as s,ye as t,B as u,pe as v,oe as w,le as x,de as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,C as t,E as n,F as r,O as i,T as a,U as o,V as s,Z as c,et as l,i as u,j as d,l as f,x as p,y as m}from"./runtime-core.esm-bundler-BLPLlWMG.js";import{A as h,B as g,E as _,F as v,L as y,M as b,N as x,O as S,P as C,S as w,T,V as E,W as D,a as O,b as k,d as A,k as j,v as M,w as N,y as P,z as F}from"./QBtn-D_bkYnrl.js";import{d as I,u as L}from"./nodes-Bo-5xQjA.js";import{d as R,h as ee,u as te}from"./index-C0u2YcnZ.js";import{O as ne,m as re,p as z}from"./position-engine-CDz__T_5.js";import{i as B,n as V,o as H,r as U}from"./QSeparator-MRAsTeNf.js";import{g as W,h as ie}from"./use-quasar-sc8fDqi0.js";var G={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},ae=Object.keys(G);G.all=!0;function K(e){let t={};for(let n of ae)e[n]===!0&&(t[n]=!0);return Object.keys(t).length===0?G:(t.horizontal===!0?t.left=t.right=!0:t.left===!0&&t.right===!0&&(t.horizontal=!0),t.vertical===!0?t.up=t.down=!0:t.up===!0&&t.down===!0&&(t.vertical=!0),t.horizontal===!0&&t.vertical===!0&&(t.all=!0),t)}var q=[`INPUT`,`TEXTAREA`];function J(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler==`function`&&q.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}var oe=0,se=[`click`,`keydown`],Y={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${oe++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function ce(e,n,r,a){let s=t(ee,R);if(s===R)return console.error(`QTab/QRouteTab component needs to be child of QTabs`),R;let{proxy:l}=m(),u=c(null),h=c(null),g=c(null),v=f(()=>e.disable===!0||e.ripple===!1?!1:Object.assign({keyCodes:[13,32],early:!0},e.ripple===!0?{}:e.ripple)),y=f(()=>s.currentModel.value===e.name),b=f(()=>`q-tab relative-position self-stretch flex flex-center text-center`+(y.value===!0?` q-tab--active`+(s.tabProps.value.activeClass?` `+s.tabProps.value.activeClass:``)+(s.tabProps.value.activeColor?` text-${s.tabProps.value.activeColor}`:``)+(s.tabProps.value.activeBgColor?` bg-${s.tabProps.value.activeBgColor}`:``):` q-tab--inactive`)+(e.icon&&e.label&&s.tabProps.value.inlineLabel===!1?` q-tab--full`:``)+(e.noCaps===!0||s.tabProps.value.noCaps===!0?` q-tab--no-caps`:``)+(e.disable===!0?` disabled`:` q-focusable q-hoverable cursor-pointer`)+(a===void 0?``:a.linkClass.value)),x=f(()=>`q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable `+(s.tabProps.value.inlineLabel===!0?`row no-wrap q-tab__content--inline`:`column`)+(e.contentClass===void 0?``:` ${e.contentClass}`)),C=f(()=>e.disable===!0||s.hasFocus.value===!0||y.value===!1&&s.hasActiveTab.value===!0?-1:e.tabindex||0);function w(t,n){if(n!==!0&&t?.qAvoidFocus!==!0&&u.value?.focus(),e.disable===!0){a?.hasRouterLink.value===!0&&F(t);return}if(a===void 0){s.updateModel({name:e.name}),r(`click`,t);return}if(a.hasRouterLink.value===!0){let n=(n={})=>{let r,i=n.to===void 0||te(n.to,e.to)===!0?s.avoidRouteWatcher=W():null;return a.navigateToRouterLink(t,{...n,returnRouterError:!0}).catch(e=>{r=e}).then(t=>{if(i===s.avoidRouteWatcher&&(s.avoidRouteWatcher=!1,r===void 0&&(t===void 0||t.message?.startsWith(`Avoided redundant navigation`)===!0)&&s.updateModel({name:e.name})),n.returnRouterError===!0)return r===void 0?t:Promise.reject(r)})};r(`click`,t,n),t.defaultPrevented!==!0&&n();return}r(`click`,t)}function T(e){_(e,[13,32])?w(e,!0):S(e)!==!0&&e.keyCode>=35&&e.keyCode<=40&&e.altKey!==!0&&e.metaKey!==!0&&s.onKbdNavigate(e.keyCode,l.$el)===!0&&F(e),r(`keydown`,e)}function E(){let t=s.tabProps.value.narrowIndicator,r=[],i=p(`div`,{ref:g,class:[`q-tab__indicator`,s.tabProps.value.indicatorClass]});e.icon!==void 0&&r.push(p(M,{class:`q-tab__icon`,name:e.icon})),e.label!==void 0&&r.push(p(`div`,{class:`q-tab__label`},e.label)),e.alert!==!1&&r.push(e.alertIcon===void 0?p(`div`,{class:`q-tab__alert`+(e.alert===!0?``:` text-${e.alert}`)}):p(M,{class:`q-tab__alert-icon`,color:e.alert===!0?void 0:e.alert,name:e.alertIcon})),t===!0&&r.push(i);let a=[p(`div`,{class:`q-focus-helper`,tabindex:-1,ref:u}),p(`div`,{class:x.value},k(n.default,r))];return t===!1&&a.push(i),a}let D={name:f(()=>e.name),rootRef:h,tabIndicatorRef:g,routeData:a};i(()=>{s.unregisterTab(D)}),d(()=>{s.registerTab(D)});function O(t,n){return o(p(t,{ref:h,class:b.value,tabindex:C.value,role:`tab`,"aria-selected":y.value===!0?`true`:`false`,"aria-disabled":e.disable===!0?`true`:void 0,onClick:w,onKeydown:T,...n},E()),[[A,v.value]])}return{renderTab:O,$tabs:s}}var le=g({name:`QTab`,props:Y,emits:se,setup(e,{slots:t,emit:n}){let{renderTab:r}=ce(e,t,n);return()=>r(`div`)}});function ue(){let e=c(!I.value);return e.value===!1&&d(()=>{e.value=!0}),{isHydrated:e}}var X=typeof ResizeObserver<`u`,de=X===!0?{}:{style:`display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;`,url:`about:blank`},fe=g({name:`QResizeObserver`,props:{debounce:{type:[String,Number],default:100}},emits:[`resize`],setup(e,{emit:t}){let n=null,r,o={width:-1,height:-1};function s(t){t===!0||e.debounce===0||e.debounce===`0`?c():n===null&&(n=setTimeout(c,e.debounce))}function c(){if(n!==null&&(clearTimeout(n),n=null),r){let{offsetWidth:e,offsetHeight:n}=r;(e!==o.width||n!==o.height)&&(o={width:e,height:n},t(`resize`,o))}}let{proxy:l}=m();if(l.trigger=s,X===!0){let e,t=n=>{r=l.$el.parentNode,r?(e=new ResizeObserver(s),e.observe(r),c()):n!==!0&&a(()=>{t(!0)})};return d(()=>{t()}),i(()=>{n!==null&&clearTimeout(n),e!==void 0&&(e.disconnect===void 0?r&&e.unobserve(r):e.disconnect())}),C}else{let{isHydrated:e}=ue(),t;function o(){n!==null&&(clearTimeout(n),n=null),t!==void 0&&(t.removeEventListener!==void 0&&t.removeEventListener(`resize`,s,x.passive),t=void 0)}function u(){o(),r?.contentDocument&&(t=r.contentDocument.defaultView,t.addEventListener(`resize`,s,x.passive),c())}return d(()=>{a(()=>{r=l.$el,r&&u()})}),i(o),()=>{if(e.value===!0)return p(`object`,{class:`q--avoid-card-border`,style:de.style,tabindex:-1,type:`text/html`,data:de.url,"aria-hidden":`true`,onLoad:u})}}}});function pe(e,t,n){let r=n===!0?[`left`,`right`]:[`top`,`bottom`];return`absolute-${t===!0?r[0]:r[1]}${e?` text-${e}`:``}`}var me=[`left`,`center`,`right`,`justify`],he=g({name:`QTabs`,props:{modelValue:[Number,String],align:{type:String,default:`center`,validator:e=>me.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(t,{slots:a,emit:o}){let{proxy:l}=m(),{$q:u}=l,{registerTick:d}=re(),{registerTick:h}=re(),{registerTick:g}=re(),{registerTimeout:_,removeTimeout:v}=z(),{registerTimeout:y,removeTimeout:b}=z(),x=c(null),S=c(null),C=c(t.modelValue),T=c(!1),E=c(!0),D=c(!1),O=c(!1),k=[],A=c(0),j=c(!1),N=null,P=null,F,I=f(()=>({activeClass:t.activeClass,activeColor:t.activeColor,activeBgColor:t.activeBgColor,indicatorClass:pe(t.indicatorColor,t.switchIndicator,t.vertical),narrowIndicator:t.narrowIndicator,inlineLabel:t.inlineLabel,noCaps:t.noCaps})),L=f(()=>{let e=A.value,t=C.value;for(let n=0;n<e;n++)if(k[n].name.value===t)return!0;return!1}),R=f(()=>`q-tabs__content--align-${T.value===!0?`left`:O.value===!0?`justify`:t.align}`),te=f(()=>`q-tabs row no-wrap items-center q-tabs--${T.value===!0?``:`not-`}scrollable q-tabs--${t.vertical===!0?`vertical`:`horizontal`} q-tabs__arrows--${t.outsideArrows===!0?`outside`:`inside`} q-tabs--mobile-with${t.mobileArrows===!0?``:`out`}-arrows`+(t.dense===!0?` q-tabs--dense`:``)+(t.shrink===!0?` col-shrink`:``)+(t.stretch===!0?` self-stretch`:``)),ne=f(()=>`q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position `+R.value+(t.contentClass===void 0?``:` ${t.contentClass}`)),B=f(()=>t.vertical===!0?{container:`height`,content:`offsetHeight`,scroll:`scrollHeight`}:{container:`width`,content:`offsetWidth`,scroll:`scrollWidth`}),V=f(()=>t.vertical!==!0&&u.lang.rtl===!0),H=f(()=>ie===!1&&V.value===!0);s(V,q),s(()=>t.modelValue,e=>{U({name:e,setCurrent:!0,skipEmit:!0})}),s(()=>t.outsideArrows,W);function U({name:e,setCurrent:n,skipEmit:r}){C.value!==e&&(r!==!0&&t[`onUpdate:modelValue`]!==void 0&&o(`update:modelValue`,e),(n===!0||t[`onUpdate:modelValue`]===void 0)&&(ae(C.value,e),C.value=e))}function W(){d(()=>{x.value&&G({width:x.value.offsetWidth,height:x.value.offsetHeight})})}function G(e){if(B.value===void 0||S.value===null)return;let n=e[B.value.container],r=Math.min(S.value[B.value.scroll],Array.prototype.reduce.call(S.value.children,(e,t)=>e+(t[B.value.content]||0),0)),i=n>0&&r>n;T.value=i,i===!0&&h(q),O.value=n<parseInt(t.breakpoint,10)}function ae(e,n){let r=e!=null&&e!==``?k.find(t=>t.name.value===e):null,i=n!=null&&n!==``?k.find(e=>e.name.value===n):null;if($===!0)$=!1;else if(r&&i){let e=r.tabIndicatorRef.value,n=i.tabIndicatorRef.value;N!==null&&(clearTimeout(N),N=null),e.style.transition=`none`,e.style.transform=`none`,n.style.transition=`none`,n.style.transform=`none`;let a=e.getBoundingClientRect(),o=n.getBoundingClientRect();n.style.transform=t.vertical===!0?`translate3d(0,${a.top-o.top}px,0) scale3d(1,${o.height?a.height/o.height:1},1)`:`translate3d(${a.left-o.left}px,0,0) scale3d(${o.width?a.width/o.width:1},1,1)`,g(()=>{N=setTimeout(()=>{N=null,n.style.transition=`transform .25s cubic-bezier(.4, 0, .2, 1)`,n.style.transform=`none`},70)})}i&&T.value===!0&&K(i.rootRef.value)}function K(e){let{left:n,width:r,top:i,height:a}=S.value.getBoundingClientRect(),o=e.getBoundingClientRect(),s=t.vertical===!0?o.top-i:o.left-n;if(s<0){S.value[t.vertical===!0?`scrollTop`:`scrollLeft`]+=Math.floor(s),q();return}s+=t.vertical===!0?o.height-a:o.width-r,s>0&&(S.value[t.vertical===!0?`scrollTop`:`scrollLeft`]+=Math.ceil(s),q())}function q(){let e=S.value;if(e===null)return;let n=e.getBoundingClientRect(),r=t.vertical===!0?e.scrollTop:Math.abs(e.scrollLeft);V.value===!0?(E.value=Math.ceil(r+n.width)<e.scrollWidth-1,D.value=r>0):(E.value=r>0,D.value=t.vertical===!0?Math.ceil(r+n.height)<e.scrollHeight:Math.ceil(r+n.width)<e.scrollWidth)}function J(e){P!==null&&clearInterval(P),P=setInterval(()=>{ue(e)===!0&&Y()},5)}function oe(){J(H.value===!0?2**53-1:0)}function se(){J(H.value===!0?0:2**53-1)}function Y(){P!==null&&(clearInterval(P),P=null)}function ce(e,n){let r=Array.prototype.filter.call(S.value.children,e=>e===n||e.matches&&e.matches(`.q-tab.q-focusable`)===!0),i=r.length;if(i===0)return;if(e===36)return K(r[0]),r[0].focus(),!0;if(e===35)return K(r[i-1]),r[i-1].focus(),!0;let a=e===(t.vertical===!0?38:37),o=e===(t.vertical===!0?40:39),s=a===!0?-1:o===!0?1:void 0;if(s!==void 0){let e=V.value===!0?-1:1,t=r.indexOf(n)+s*e;return t>=0&&t<i&&(K(r[t]),r[t].focus({preventScroll:!0})),!0}}let le=f(()=>H.value===!0?{get:e=>Math.abs(e.scrollLeft),set:(e,t)=>{e.scrollLeft=-t}}:t.vertical===!0?{get:e=>e.scrollTop,set:(e,t)=>{e.scrollTop=t}}:{get:e=>e.scrollLeft,set:(e,t)=>{e.scrollLeft=t}});function ue(e){let t=S.value,{get:n,set:r}=le.value,i=!1,a=n(t),o=e<a?-1:1;return a+=o*5,a<0?(i=!0,a=0):(o===-1&&a<=e||o===1&&a>=e)&&(i=!0,a=e),r(t,a),q(),i}function X(e,t){for(let n in e)if(e[n]!==t[n])return!1;return!0}function de(){let e=null,t={matchedLen:0,queryDiff:9999,hrefLen:0},n=k.filter(e=>e.routeData?.hasRouterLink.value===!0),{hash:r,query:i}=l.$route,a=Object.keys(i).length;for(let o of n){let n=o.routeData.exact.value===!0;if(o.routeData[n===!0?`linkIsExactActive`:`linkIsActive`].value!==!0)continue;let{hash:s,query:c,matched:l,href:u}=o.routeData.resolvedLink.value,d=Object.keys(c).length;if(n===!0){if(s!==r||d!==a||X(i,c)===!1)continue;e=o.name.value;break}if(s!==``&&s!==r||d!==0&&X(c,i)===!1)continue;let f={matchedLen:l.length,queryDiff:a-d,hrefLen:u.length-s.length};if(f.matchedLen>t.matchedLen){e=o.name.value,t=f;continue}else if(f.matchedLen!==t.matchedLen)continue;if(f.queryDiff<t.queryDiff)e=o.name.value,t=f;else if(f.queryDiff!==t.queryDiff)continue;f.hrefLen>t.hrefLen&&(e=o.name.value,t=f)}if(e===null&&k.some(e=>e.routeData===void 0&&e.name.value===C.value)===!0){$=!1;return}U({name:e,setCurrent:!0})}function me(e){if(v(),j.value!==!0&&x.value!==null&&e.target&&typeof e.target.closest==`function`){let t=e.target.closest(`.q-tab`);t&&x.value.contains(t)===!0&&(j.value=!0,T.value===!0&&K(t))}}function he(){_(()=>{j.value=!1},30)}function Z(){Q.avoidRouteWatcher===!1?y(de):b()}function ge(){if(F===void 0){let e=s(()=>l.$route.fullPath,Z);F=()=>{e(),F=void 0}}}function _e(e){k.push(e),A.value++,W(),e.routeData===void 0||l.$route===void 0?y(()=>{if(T.value===!0){let e=C.value,t=e!=null&&e!==``?k.find(t=>t.name.value===e):null;t&&K(t.rootRef.value)}}):(ge(),e.routeData.hasRouterLink.value===!0&&Z())}function ve(e){k.splice(k.indexOf(e),1),A.value--,W(),F!==void 0&&e.routeData!==void 0&&(k.every(e=>e.routeData===void 0)===!0&&F(),Z())}let Q={currentModel:C,tabProps:I,hasFocus:j,hasActiveTab:L,registerTab:_e,unregisterTab:ve,verifyRouteModel:Z,updateModel:U,onKbdNavigate:ce,avoidRouteWatcher:!1};r(ee,Q);function ye(){N!==null&&clearTimeout(N),Y(),F?.()}let be,$;return i(ye),e(()=>{be=F!==void 0,ye()}),n(()=>{be===!0&&(ge(),$=!0,Z()),W()}),()=>p(`div`,{ref:x,class:te.value,role:`tablist`,onFocusin:me,onFocusout:he},[p(fe,{onResize:G}),p(`div`,{ref:S,class:ne.value,onScroll:q},w(a.default)),p(M,{class:`q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon`+(E.value===!0?``:` q-tabs__arrow--faded`),name:t.leftIcon||u.iconSet.tabs[t.vertical===!0?`up`:`left`],onMousedownPassive:oe,onTouchstartPassive:oe,onMouseupPassive:Y,onMouseleavePassive:Y,onTouchendPassive:Y}),p(M,{class:`q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon`+(D.value===!0?``:` q-tabs__arrow--faded`),name:t.rightIcon||u.iconSet.tabs[t.vertical===!0?`down`:`right`],onMousedownPassive:se,onTouchstartPassive:se,onMouseupPassive:Y,onMouseleavePassive:Y,onTouchendPassive:Y})])}});function Z(e){let t=[.06,6,50];return typeof e==`string`&&e.length&&e.split(`:`).forEach((e,n)=>{let r=parseFloat(e);r&&(t[n]=r)}),t}var ge=E({name:`touch-swipe`,beforeMount(e,{value:t,arg:n,modifiers:r}){if(r.mouse!==!0&&L.has.touch!==!0)return;let i=r.mouseCapture===!0?`Capture`:``,a={handler:t,sensitivity:Z(n),direction:K(r),noop:C,mouseStart(e){J(e,a)&&b(e)&&(j(a,`temp`,[[document,`mousemove`,`move`,`notPassive${i}`],[document,`mouseup`,`end`,`notPassiveCapture`]]),a.start(e,!0))},touchStart(e){if(J(e,a)){let t=e.target;j(a,`temp`,[[t,`touchmove`,`move`,`notPassiveCapture`],[t,`touchcancel`,`end`,`notPassiveCapture`],[t,`touchend`,`end`,`notPassiveCapture`]]),a.start(e)}},start(t,n){L.is.firefox===!0&&y(e,!0);let r=v(t);a.event={x:r.left,y:r.top,time:Date.now(),mouse:n===!0,dir:!1}},move(e){if(a.event===void 0)return;if(a.event.dir!==!1){F(e);return}let t=Date.now()-a.event.time;if(t===0)return;let n=v(e),r=n.left-a.event.x,i=Math.abs(r),o=n.top-a.event.y,s=Math.abs(o);if(a.event.mouse!==!0){if(i<a.sensitivity[1]&&s<a.sensitivity[1]){a.end(e);return}}else if(window.getSelection().toString()!==``){a.end(e);return}else if(i<a.sensitivity[2]&&s<a.sensitivity[2])return;let c=i/t,l=s/t;a.direction.vertical===!0&&i<s&&i<100&&l>a.sensitivity[0]&&(a.event.dir=o<0?`up`:`down`),a.direction.horizontal===!0&&i>s&&s<100&&c>a.sensitivity[0]&&(a.event.dir=r<0?`left`:`right`),a.direction.up===!0&&i<s&&o<0&&i<100&&l>a.sensitivity[0]&&(a.event.dir=`up`),a.direction.down===!0&&i<s&&o>0&&i<100&&l>a.sensitivity[0]&&(a.event.dir=`down`),a.direction.left===!0&&i>s&&r<0&&s<100&&c>a.sensitivity[0]&&(a.event.dir=`left`),a.direction.right===!0&&i>s&&r>0&&s<100&&c>a.sensitivity[0]&&(a.event.dir=`right`),a.event.dir===!1?a.end(e):(F(e),a.event.mouse===!0&&(document.body.classList.add(`no-pointer-events--children`),document.body.classList.add(`non-selectable`),ne(),a.styleCleanup=e=>{a.styleCleanup=void 0,document.body.classList.remove(`non-selectable`);let t=()=>{document.body.classList.remove(`no-pointer-events--children`)};e===!0?setTimeout(t,50):t()}),a.handler({evt:e,touch:a.event.mouse!==!0,mouse:a.event.mouse,direction:a.event.dir,duration:t,distance:{x:i,y:s}}))},end(t){a.event!==void 0&&(h(a,`temp`),L.is.firefox===!0&&y(e,!1),a.styleCleanup?.(!0),t!==void 0&&a.event.dir!==!1&&F(t),a.event=void 0)}};e.__qtouchswipe=a,r.mouse===!0&&j(a,`main`,[[e,`mousedown`,`mouseStart`,`passive${r.mouseCapture===!0||r.mousecapture===!0?`Capture`:``}`]]),L.has.touch===!0&&j(a,`main`,[[e,`touchstart`,`touchStart`,`passive${r.capture===!0?`Capture`:``}`],[e,`touchmove`,`noop`,`notPassiveCapture`]])},updated(e,t){let n=e.__qtouchswipe;n!==void 0&&(t.oldValue!==t.value&&(typeof t.value!=`function`&&n.end(),n.handler=t.value),n.direction=K(t.modifiers))},beforeUnmount(e){let t=e.__qtouchswipe;t!==void 0&&(h(t,`main`),h(t,`temp`),L.is.firefox===!0&&y(e,!1),t.styleCleanup?.(),delete e.__qtouchswipe)}});function _e(){let e=Object.create(null);return{getCache:(t,n)=>e[t]===void 0?e[t]=typeof n==`function`?n():n:e[t],setCache(t,n){e[t]=n},hasCache(t){return Object.hasOwnProperty.call(e,t)},clearCache(t){t===void 0?e=Object.create(null):delete e[t]}}}var ve={name:{required:!0},disable:Boolean},Q={setup(e,{slots:t}){return()=>p(`div`,{class:`q-panel scroll`,role:`tabpanel`},w(t.default))}},ye={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},be=[`update:modelValue`,`beforeTransition`,`transition`];function $(){let{props:e,emit:t,proxy:n}=m(),{getCache:r}=_e(),{registerTimeout:i}=z(),a,o,l=c(null),d={value:null};function h(t){let r=e.vertical===!0?`up`:`left`;N((n.$q.lang.rtl===!0?-1:1)*(t.direction===r?1:-1))}let g=f(()=>[[ge,h,void 0,{horizontal:e.vertical!==!0,vertical:e.vertical,mouse:!0}]]),_=f(()=>e.transitionPrev||`slide-${e.vertical===!0?`down`:`right`}`),v=f(()=>e.transitionNext||`slide-${e.vertical===!0?`up`:`left`}`),y=f(()=>`--q-transition-duration: ${e.transitionDuration}ms`),b=f(()=>typeof e.modelValue==`string`||typeof e.modelValue==`number`?e.modelValue:String(e.modelValue)),x=f(()=>({include:e.keepAliveInclude,exclude:e.keepAliveExclude,max:e.keepAliveMax})),S=f(()=>e.keepAliveInclude!==void 0||e.keepAliveExclude!==void 0);s(()=>e.modelValue,(n,r)=>{let a=k(n)===!0?A(n):-1;o!==!0&&M(a===-1?0:a<A(r)?-1:1),d.value!==a&&(d.value=a,t(`beforeTransition`,n,r),i(()=>{t(`transition`,n,r)},e.transitionDuration))});function C(){N(1)}function T(){N(-1)}function E(e){t(`update:modelValue`,e)}function k(e){return e!=null&&e!==``}function A(e){return a.findIndex(t=>t.props.name===e&&t.props.disable!==``&&t.props.disable!==!0)}function j(){return a.filter(e=>e.props.disable!==``&&e.props.disable!==!0)}function M(t){let n=t!==0&&e.animated===!0&&d.value!==-1?`q-transition--`+(t===-1?_.value:v.value):null;l.value!==n&&(l.value=n)}function N(n,r=d.value){let i=r+n;for(;i!==-1&&i<a.length;){let e=a[i];if(e!==void 0&&e.props.disable!==``&&e.props.disable!==!0){M(n),o=!0,t(`update:modelValue`,e.props.name),setTimeout(()=>{o=!1});return}i+=n}e.infinite===!0&&a.length!==0&&r!==-1&&r!==a.length&&N(n,n===-1?a.length:-1)}function P(){let t=A(e.modelValue);return d.value!==t&&(d.value=t),!0}function F(){let t=k(e.modelValue)===!0&&P()&&a[d.value];return e.keepAlive===!0?[p(u,x.value,[p(S.value===!0?r(b.value,()=>({...Q,name:b.value})):Q,{key:b.value,style:y.value},()=>t)])]:[p(`div`,{class:`q-panel scroll`,style:y.value,key:b.value,role:`tabpanel`},[t])]}function I(){if(a.length!==0)return e.animated===!0?[p(D,{name:l.value},F)]:F()}function L(e){return a=O(w(e.default,[])).filter(e=>e.props!==null&&e.props.slot===void 0&&k(e.props.name)===!0),a.length}function R(){return a}return Object.assign(n,{next:C,previous:T,goTo:E}),{panelIndex:d,panelDirectives:g,updatePanelsList:L,updatePanelIndex:P,getPanelContent:I,getEnabledPanels:j,getPanels:R,isValidPanelName:k,keepAliveProps:x,needsUniqueKeepAliveWrapper:S,goToPanelByOffset:N,goToPanel:E,nextPanel:C,previousPanel:T}}var xe=g({name:`QTabPanel`,props:ve,setup(e,{slots:t}){return()=>p(`div`,{class:`q-tab-panel`,role:`tabpanel`},w(t.default))}}),Se=g({name:`QTabPanels`,props:{...ye,...U},emits:be,setup(e,{slots:t}){let n=V(e,m().proxy.$q),{updatePanelsList:r,getPanelContent:i,panelDirectives:a}=$(),o=f(()=>`q-tab-panels q-panel-parent`+(n.value===!0?` q-tab-panels--dark q-dark`:``));return()=>(r(t),P(`div`,{class:o.value},i(),`pan`,e.swipeable,()=>a.value))}});function Ce(e,t){let n=c(null),r=f(()=>e.disable===!0?null:p(`span`,{ref:n,class:`no-outline`,tabindex:-1}));function i(e){let r=t.value;e?.qAvoidFocus!==!0&&(e?.type.indexOf(`key`)===0?document.activeElement!==r&&r?.contains(document.activeElement)===!0&&r.focus():n.value!==null&&(e===void 0||r?.contains(e.target)===!0)&&n.value.focus())}return{refocusTargetEl:r,refocusTarget:i}}var we={xs:30,sm:35,md:40,lg:50,xl:60},Te={...U,...T,...H,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e===`tf`||e===`ft`},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Ee=[`update:modelValue`];function De(e,t){let{props:n,slots:r,emit:i,proxy:a}=m(),{$q:o}=a,s=V(n,o),u=c(null),{refocusTargetEl:d,refocusTarget:h}=Ce(n,u),g=N(n,we),_=f(()=>n.val!==void 0&&Array.isArray(n.modelValue)),v=f(()=>{let e=l(n.val);return _.value===!0?n.modelValue.findIndex(t=>l(t)===e):-1}),y=f(()=>_.value===!0?v.value!==-1:l(n.modelValue)===l(n.trueValue)),b=f(()=>_.value===!0?v.value===-1:l(n.modelValue)===l(n.falseValue)),x=f(()=>y.value===!1&&b.value===!1),S=f(()=>n.disable===!0?-1:n.tabindex||0),C=f(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?` disabled`:``)+(s.value===!0?` q-${e}--dark`:``)+(n.dense===!0?` q-${e}--dense`:``)+(n.leftLabel===!0?` reverse`:``)),T=f(()=>`q-${e}__inner relative-position non-selectable q-${e}__inner--${y.value===!0?`truthy`:b.value===!0?`falsy`:`indet`}${n.color!==void 0&&(n.keepColor===!0||(e===`toggle`?y.value===!0:b.value!==!0))?` text-${n.color}`:``}`),E=B(f(()=>{let e={type:`checkbox`};return n.name!==void 0&&Object.assign(e,{".checked":y.value,"^checked":y.value===!0?`checked`:void 0,name:n.name,value:_.value===!0?n.val:n.trueValue}),e})),D=f(()=>{let t={tabindex:S.value,role:e===`toggle`?`switch`:`checkbox`,"aria-label":n.label,"aria-checked":x.value===!0?`mixed`:y.value===!0?`true`:`false`};return n.disable===!0&&(t[`aria-disabled`]=`true`),t});function O(e){e!==void 0&&(F(e),h(e)),n.disable!==!0&&i(`update:modelValue`,A(),e)}function A(){if(_.value===!0){if(y.value===!0){let e=n.modelValue.slice();return e.splice(v.value,1),e}return n.modelValue.concat([n.val])}if(y.value===!0){if(n.toggleOrder!==`ft`||n.toggleIndeterminate===!1)return n.falseValue}else if(b.value===!0){if(n.toggleOrder===`ft`||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder===`ft`?n.falseValue:n.trueValue;return n.indeterminateValue}function j(e){(e.keyCode===13||e.keyCode===32)&&F(e)}function M(e){(e.keyCode===13||e.keyCode===32)&&O(e)}let P=t(y,x);return Object.assign(a,{toggle:O}),()=>{let t=P();n.disable!==!0&&E(t,`unshift`,` q-${e}__native absolute q-ma-none q-pa-none`);let i=[p(`div`,{class:T.value,style:g.value,"aria-hidden":`true`},t)];d.value!==null&&i.push(d.value);let a=n.label===void 0?w(r.default):k(r.default,[n.label]);return a!==void 0&&i.push(p(`div`,{class:`q-${e}__label q-anchor--skip`},a)),p(`div`,{ref:u,class:C.value,...D.value,onClick:O,onKeydown:j,onKeyup:M},i)}}export{xe as a,le as c,Se as i,K as l,Ee as n,he as o,Te as r,fe as s,De as t,J as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,C as t,E as n,O as r,T as i,V as a,Z as o,j as s,k as c,l,x as u,y as d}from"./runtime-core.esm-bundler-BLPLlWMG.js";import{B as f,E as p,I as m,N as h,O as g,R as _,S as v,U as y,W as b,f as x,h as S,j as C,v as w,z as T}from"./QBtn-D_bkYnrl.js";import{d as E,u as D}from"./nodes-Bo-5xQjA.js";import{_ as O,f as k,g as A}from"./index-C0u2YcnZ.js";import{C as j,S as M,_ as N,b as P,d as ee,g as F,h as te,m as ne,p as re,s as I,u as L,x as R,y as ie}from"./position-engine-CDz__T_5.js";import{a as ae,n as z,o as oe,r as B}from"./QSeparator-MRAsTeNf.js";function V(e,t,n){let i;function a(){i!==void 0&&(A.remove(i),i=void 0)}return r(()=>{e.value===!0&&a()}),{removeFromHistory:a,addToHistory(){i={condition:()=>n.value===!0,handler:t},A.add(i)}}}var H=0,U,W,G,K=!1,se,ce,q,J=null;function le(e){ue(e)&&T(e)}function ue(e){if(e.target===document.body||e.target.classList.contains(`q-layout__backdrop`))return!0;let t=C(e),n=e.shiftKey&&!e.deltaX,r=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),i=n||r?e.deltaY:e.deltaX;for(let e=0;e<t.length;e++){let n=t[e];if(ee(n,r))return r?i<0&&n.scrollTop===0?!0:i>0&&n.scrollTop+n.clientHeight===n.scrollHeight:i<0&&n.scrollLeft===0?!0:i>0&&n.scrollLeft+n.clientWidth===n.scrollWidth}return!0}function de(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function fe(e){K!==!0&&(K=!0,requestAnimationFrame(()=>{K=!1;let{height:t}=e.target,{clientHeight:n,scrollTop:r}=document.scrollingElement;(G===void 0||t!==window.innerHeight)&&(G=n-t,document.scrollingElement.scrollTop=r),r>G&&(document.scrollingElement.scrollTop-=Math.ceil((r-G)/8))}))}function pe(e){let t=document.body,n=window.visualViewport!==void 0;if(e===`add`){let{overflowY:e,overflowX:r}=window.getComputedStyle(t);U=I(window),W=L(window),se=t.style.left,ce=t.style.top,q=window.location.href,t.style.left=`-${U}px`,t.style.top=`-${W}px`,r!==`hidden`&&(r===`scroll`||t.scrollWidth>window.innerWidth)&&t.classList.add(`q-body--force-scrollbar-x`),e!==`hidden`&&(e===`scroll`||t.scrollHeight>window.innerHeight)&&t.classList.add(`q-body--force-scrollbar-y`),t.classList.add(`q-body--prevent-scroll`),document.qScrollPrevented=!0,D.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener(`resize`,fe,h.passiveCapture),window.visualViewport.addEventListener(`scroll`,fe,h.passiveCapture),window.scrollTo(0,0)):window.addEventListener(`scroll`,de,h.passiveCapture))}D.is.desktop===!0&&D.is.mac===!0&&window[`${e}EventListener`](`wheel`,le,h.notPassive),e===`remove`&&(D.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener(`resize`,fe,h.passiveCapture),window.visualViewport.removeEventListener(`scroll`,fe,h.passiveCapture)):window.removeEventListener(`scroll`,de,h.passiveCapture)),t.classList.remove(`q-body--prevent-scroll`),t.classList.remove(`q-body--force-scrollbar-x`),t.classList.remove(`q-body--force-scrollbar-y`),document.qScrollPrevented=!1,t.style.left=se,t.style.top=ce,window.location.href===q&&window.scrollTo(U,W),G=void 0)}function me(e){let t=`add`;if(e===!0){if(H++,J!==null){clearTimeout(J),J=null;return}if(H>1)return}else{if(H===0||(H--,H>0))return;if(t=`remove`,D.is.ios===!0&&D.is.nativeMobile===!0){J!==null&&clearTimeout(J),J=setTimeout(()=>{pe(t),J=null},100);return}}pe(t)}function he(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,me(t))}}}function ge(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function _e(e,t,n){if(n<=t)return t;let r=n-t+1,i=t+(e-t)%r;return i<t&&(i=r+i),i===0?0:i}var ve,ye=0,Y=Array(256);for(let e=0;e<256;e++)Y[e]=(e+256).toString(16).substring(1);var be=(()=>{let e=typeof crypto<`u`?crypto:typeof window<`u`?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{let n=new Uint8Array(t);return e.getRandomValues(n),n}}return e=>{let t=[];for(let n=e;n>0;n--)t.push(Math.floor(Math.random()*256));return t}})(),xe=4096;function Se(){(ve===void 0||ye+16>xe)&&(ye=0,ve=be(xe));let e=Array.prototype.slice.call(ve,ye,ye+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Y[e[0]]+Y[e[1]]+Y[e[2]]+Y[e[3]]+`-`+Y[e[4]]+Y[e[5]]+`-`+Y[e[6]]+Y[e[7]]+`-`+Y[e[8]]+Y[e[9]]+`-`+Y[e[10]]+Y[e[11]]+Y[e[12]]+Y[e[13]]+Y[e[14]]+Y[e[15]]}var Ce=!1;{let e=document.createElement(`div`);e.setAttribute(`dir`,`rtl`),Object.assign(e.style,{width:`1px`,height:`1px`,overflow:`auto`});let t=document.createElement(`div`);Object.assign(t.style,{width:`1000px`,height:`1px`}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,Ce=e.scrollLeft>=0,e.remove()}function we(e){return e??null}function Te(e,t){return e??(t===!0?`f_${Se()}`:null)}function Ee({getValue:e,required:t=!0}={}){if(E.value===!0){let n=o(e===void 0?null:we(e()));return t===!0&&n.value===null&&s(()=>{n.value=`f_${Se()}`}),e!==void 0&&a(e,e=>{n.value=Te(e,t)}),n}return e===void 0?o(`f_${Se()}`):l(()=>Te(e(),t))}var De=/^on[A-Z]/;function Oe(){let{attrs:e,vnode:t}=d(),n={listeners:o({}),attributes:o({})};function r(){let r={},i={};for(let t in e)t!==`class`&&t!==`style`&&De.test(t)===!1&&(r[t]=e[t]);for(let e in t.props)De.test(e)===!0&&(i[e]=t.props[e]);n.attributes.value=r,n.listeners.value=i}return c(r),r(),n}function ke({validate:e,resetValidation:n,requiresQForm:i}){let o=t(k,!1);if(o!==!1){let{props:t,proxy:i}=d();Object.assign(i,{validate:e,resetValidation:n}),a(()=>t.disable,e=>{e===!0?(typeof n==`function`&&n(),o.unbindComponent(i)):o.bindComponent(i)}),s(()=>{t.disable!==!0&&o.bindComponent(i)}),r(()=>{t.disable!==!0&&o.unbindComponent(i)})}else i===!0&&console.error(`Parent QForm not found on useFormChild()!`)}var Ae=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,je=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Me=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Ne=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,Pe=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,Fe={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>Ae.test(e),hexaColor:e=>je.test(e),hexOrHexaColor:e=>Me.test(e),rgbColor:e=>Ne.test(e),rgbaColor:e=>Pe.test(e),rgbOrRgbaColor:e=>Ne.test(e)||Pe.test(e),hexOrRgbColor:e=>Ae.test(e)||Ne.test(e),hexaOrRgbaColor:e=>je.test(e)||Pe.test(e),anyColor:e=>Me.test(e)||Ne.test(e)||Pe.test(e)},Ie=[!0,!1,`ondemand`],Le={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Ie.includes(e)}};function Re(e,t){let{props:n,proxy:i}=d(),s=o(!1),c=o(null),u=o(!1);ke({validate:x,resetValidation:b});let f=0,p,m=l(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),h=l(()=>n.disable!==!0&&m.value===!0&&t.value===!1),g=l(()=>n.error===!0||s.value===!0),_=l(()=>typeof n.errorMessage==`string`&&n.errorMessage.length!==0?n.errorMessage:c.value);a(()=>n.modelValue,()=>{u.value=!0,h.value===!0&&n.lazyRules===!1&&S()});function v(){n.lazyRules!==`ondemand`&&h.value===!0&&u.value===!0&&S()}a(()=>n.reactiveRules,e=>{e===!0?p===void 0&&(p=a(()=>n.rules,v,{immediate:!0,deep:!0})):p!==void 0&&(p(),p=void 0)},{immediate:!0}),a(()=>n.lazyRules,v),a(e,e=>{e===!0?u.value=!0:h.value===!0&&n.lazyRules!==`ondemand`&&S()});function b(){f++,t.value=!1,u.value=!1,s.value=!1,c.value=null,S.cancel()}function x(e=n.modelValue){if(n.disable===!0||m.value===!1)return!0;let r=++f,i=t.value===!0?()=>{}:()=>{u.value=!0},a=(e,n)=>{e===!0&&i(),s.value=e,c.value=n||null,t.value=!1},o=[];for(let t=0;t<n.rules.length;t++){let r=n.rules[t],i;if(typeof r==`function`?i=r(e,Fe):typeof r==`string`&&Fe[r]!==void 0&&(i=Fe[r](e)),i===!1||typeof i==`string`)return a(!0,i),!1;i!==!0&&i!==void 0&&o.push(i)}return o.length===0?(a(!1),!0):(t.value=!0,Promise.all(o).then(e=>{if(e===void 0||Array.isArray(e)===!1||e.length===0)return r===f&&a(!1),!0;let t=e.find(e=>e===!1||typeof e==`string`);return r===f&&a(t!==void 0,t),t===void 0},e=>(r===f&&(console.error(e),a(!0)),!1)))}let S=O(x,0);return r(()=>{p?.(),S.cancel()}),Object.assign(i,{resetValidation:b,validate:x}),y(i,`hasError`,()=>g.value),{isDirtyModel:u,hasRules:m,hasError:g,errorMessage:_,validate:x,resetValidation:b}}function ze(e){return e!=null&&String(e).length!==0}var Be={...B,...Le,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String]},Ve=[`update:modelValue`,`clear`,`focus`,`blur`];function He({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){let{props:r,proxy:i}=d(),a=z(r,i.$q),s=Ee({required:e,getValue:()=>r.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?l(()=>r.tag):{value:`label`},isDark:a,editable:l(()=>r.disable!==!0&&r.readonly!==!0),innerLoading:o(!1),focused:o(!1),hasPopupOpen:!1,splitAttrs:Oe(),targetUid:s,rootRef:o(null),targetRef:o(null),controlRef:o(null)}}function Ue(t){let{props:a,emit:o,slots:c,attrs:f,proxy:p}=d(),{$q:h}=p,g=null;t.hasValue===void 0&&(t.hasValue=l(()=>ze(a.modelValue))),t.emitValue===void 0&&(t.emitValue=e=>{o(`update:modelValue`,e)}),t.controlEvents===void 0&&(t.controlEvents={onFocusin:I,onFocusout:L}),Object.assign(t,{clearValue:R,onControlFocusin:I,onControlFocusout:L,focus:ne}),t.computedCounter===void 0&&(t.computedCounter=l(()=>{if(a.counter!==!1){let e=typeof a.modelValue==`string`||typeof a.modelValue==`number`?String(a.modelValue).length:Array.isArray(a.modelValue)===!0?a.modelValue.length:0,t=a.maxlength===void 0?a.maxValues:a.maxlength;return e+(t===void 0?``:` / `+t)}}));let{isDirtyModel:_,hasRules:y,hasError:x,errorMessage:C,resetValidation:E}=Re(t.focused,t.innerLoading),D=t.floatingLabel===void 0?l(()=>a.stackLabel===!0||t.focused.value===!0||t.hasValue.value===!0):l(()=>a.stackLabel===!0||t.focused.value===!0||t.floatingLabel.value===!0),O=l(()=>a.bottomSlots===!0||a.hint!==void 0||y.value===!0||a.counter===!0||a.error!==null),k=l(()=>a.filled===!0?`filled`:a.outlined===!0?`outlined`:a.borderless===!0?`borderless`:a.standout?`standout`:`standard`),A=l(()=>`q-field row no-wrap items-start q-field--${k.value}`+(t.fieldClass===void 0?``:` ${t.fieldClass.value}`)+(a.rounded===!0?` q-field--rounded`:``)+(a.square===!0?` q-field--square`:``)+(D.value===!0?` q-field--float`:``)+(M.value===!0?` q-field--labeled`:``)+(a.dense===!0?` q-field--dense`:``)+(a.itemAligned===!0?` q-field--item-aligned q-item-type`:``)+(t.isDark.value===!0?` q-field--dark`:``)+(t.getControl===void 0?` q-field--auto-height`:``)+(t.focused.value===!0?` q-field--focused`:``)+(x.value===!0?` q-field--error`:``)+(x.value===!0||t.focused.value===!0?` q-field--highlighted`:``)+(a.hideBottomSpace!==!0&&O.value===!0?` q-field--with-bottom`:``)+(a.disable===!0?` q-field--disabled`:a.readonly===!0?` q-field--readonly`:``)),j=l(()=>`q-field__control relative-position row no-wrap`+(a.bgColor===void 0?``:` bg-${a.bgColor}`)+(x.value===!0?` text-negative`:typeof a.standout==`string`&&a.standout.length!==0&&t.focused.value===!0?` ${a.standout}`:a.color===void 0?``:` text-${a.color}`)),M=l(()=>a.labelSlot===!0||a.label!==void 0),N=l(()=>`q-field__label no-pointer-events absolute ellipsis`+(a.labelColor!==void 0&&x.value!==!0?` text-${a.labelColor}`:``)),ee=l(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:D.value,modelValue:a.modelValue,emitValue:t.emitValue})),F=l(()=>{let e={};return t.targetUid.value&&(e.for=t.targetUid.value),a.disable===!0&&(e[`aria-disabled`]=`true`),e});function te(){let e=document.activeElement,n=t.targetRef?.value;n&&(e===null||e.id!==t.targetUid.value)&&(n.hasAttribute(`tabindex`)!==!0&&(n=n.querySelector(`[tabindex]`)),n!==e&&n?.focus({preventScroll:!0}))}function ne(){ie(te)}function re(){P(te);let e=document.activeElement;e!==null&&t.rootRef.value.contains(e)&&e.blur()}function I(e){g!==null&&(clearTimeout(g),g=null),t.editable.value===!0&&t.focused.value===!1&&(t.focused.value=!0,o(`focus`,e))}function L(e,n){g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,!(document.hasFocus()===!0&&(t.hasPopupOpen===!0||t.controlRef===void 0||t.controlRef.value===null||t.controlRef.value.contains(document.activeElement)!==!1))&&(t.focused.value===!0&&(t.focused.value=!1,o(`blur`,e)),n?.())})}function R(e){T(e),h.platform.is.mobile===!0?t.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur():(t.targetRef?.value||t.rootRef.value).focus(),a.type===`file`&&(t.inputRef.value.value=null),o(`update:modelValue`,null),t.changeEvent===!0&&o(`change`,null),o(`clear`,a.modelValue),i(()=>{let e=_.value;E(),_.value=e})}function ae(e){[13,32].includes(e.keyCode)&&R(e)}function z(){let e=[];return c.prepend!==void 0&&e.push(u(`div`,{class:`q-field__prepend q-field__marginal row no-wrap items-center`,key:`prepend`,onClick:m},c.prepend())),e.push(u(`div`,{class:`q-field__control-container col relative-position row no-wrap q-anchor--skip`},oe())),x.value===!0&&a.noErrorIcon===!1&&e.push(V(`error`,[u(w,{name:h.iconSet.field.error,color:`negative`})])),a.loading===!0||t.innerLoading.value===!0?e.push(V(`inner-loading-append`,c.loading===void 0?[u(S,{color:a.color})]:c.loading())):a.clearable===!0&&t.hasValue.value===!0&&t.editable.value===!0&&e.push(V(`inner-clearable-append`,[u(w,{class:`q-field__focusable-action`,name:a.clearIcon||h.iconSet.field.clear,tabindex:0,role:`button`,"aria-hidden":`false`,"aria-label":h.lang.label.clear,onKeyup:ae,onClick:R})])),c.append!==void 0&&e.push(u(`div`,{class:`q-field__append q-field__marginal row no-wrap items-center`,key:`append`,onClick:m},c.append())),t.getInnerAppend!==void 0&&e.push(V(`inner-append`,t.getInnerAppend())),t.getControlChild!==void 0&&e.push(t.getControlChild()),e}function oe(){let e=[];return a.prefix!==void 0&&a.prefix!==null&&e.push(u(`div`,{class:`q-field__prefix no-pointer-events row items-center`},a.prefix)),t.getShadowControl!==void 0&&t.hasShadow.value===!0&&e.push(t.getShadowControl()),M.value===!0&&e.push(u(`div`,{class:N.value},v(c.label,a.label))),t.getControl===void 0?c.rawControl===void 0?c.control!==void 0&&e.push(u(`div`,{ref:t.targetRef,class:`q-field__native row`,tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":a.autofocus===!0||void 0},c.control(ee.value))):e.push(c.rawControl()):e.push(t.getControl()),a.suffix!==void 0&&a.suffix!==null&&e.push(u(`div`,{class:`q-field__suffix no-pointer-events row items-center`},a.suffix)),e.concat(v(c.default))}function B(){let e,n;x.value===!0?C.value===null?(e=v(c.error),n=`q--slot-error`):(e=[u(`div`,{role:`alert`},C.value)],n=`q--slot-error-${C.value}`):(a.hideHint!==!0||t.focused.value===!0)&&(a.hint===void 0?(e=v(c.hint),n=`q--slot-hint`):(e=[u(`div`,a.hint)],n=`q--slot-hint-${a.hint}`));let r=a.counter===!0||c.counter!==void 0;if(a.hideBottomSpace===!0&&r===!1&&e===void 0)return;let i=u(`div`,{key:n,class:`q-field__messages col`},e);return u(`div`,{class:`q-field__bottom row items-start q-field__bottom--`+(a.hideBottomSpace===!0?`stale`:`animated`),onClick:m},[a.hideBottomSpace===!0?i:u(b,{name:`q-transition--field-message`},()=>i),r===!0?u(`div`,{class:`q-field__counter`},c.counter===void 0?t.computedCounter.value:c.counter()):null])}function V(e,t){return t===null?null:u(`div`,{key:e,class:`q-field__append q-field__marginal row no-wrap items-center q-anchor--skip`},t)}let H=!1;return e(()=>{H=!0}),n(()=>{H===!0&&a.autofocus===!0&&p.focus()}),a.autofocus===!0&&s(()=>{p.focus()}),r(()=>{g!==null&&clearTimeout(g)}),Object.assign(p,{focus:ne,blur:re}),function(){let e=t.getControl===void 0&&c.control===void 0?{...t.splitAttrs.attributes.value,"data-autofocus":a.autofocus===!0||void 0,...F.value}:F.value;return u(t.tag.value,{ref:t.rootRef,class:[A.value,f.class],style:f.style,...e},[c.before===void 0?null:u(`div`,{class:`q-field__before q-field__marginal row no-wrap items-center`,onClick:m},c.before()),u(`div`,{class:`q-field__inner relative-position col self-stretch`},[u(`div`,{ref:t.controlRef,class:j.value,tabindex:-1,...t.controlEvents},z()),O.value===!0?B():null]),c.after===void 0?null:u(`div`,{class:`q-field__after q-field__marginal row no-wrap items-center`,onClick:m},c.after())])}}var We={date:`####/##/##`,datetime:`####/##/## ##:##`,time:`##:##`,fulltime:`##:##:##`,phone:`(###) ### - ####`,card:`#### #### #### ####`},{tokenMap:Ge,tokenKeys:Ke}=qe({"#":{pattern:`[\\d]`,negate:`[^\\d]`},S:{pattern:`[a-zA-Z]`,negate:`[^a-zA-Z]`},N:{pattern:`[0-9a-zA-Z]`,negate:`[^0-9a-zA-Z]`},A:{pattern:`[a-zA-Z]`,negate:`[^a-zA-Z]`,transform:e=>e.toLocaleUpperCase()},a:{pattern:`[a-zA-Z]`,negate:`[^a-zA-Z]`,transform:e=>e.toLocaleLowerCase()},X:{pattern:`[0-9a-zA-Z]`,negate:`[^0-9a-zA-Z]`,transform:e=>e.toLocaleUpperCase()},x:{pattern:`[0-9a-zA-Z]`,negate:`[^0-9a-zA-Z]`,transform:e=>e.toLocaleLowerCase()}});function qe(e){let t=Object.keys(e),n={};return t.forEach(t=>{let r=e[t];n[t]={...r,regex:new RegExp(r.pattern)}}),{tokenMap:n,tokenKeys:t}}function Je(e){return RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+e.join(``)+`])|(.)`,`g`)}var Ye=/[.*+?^${}()|[\]\\]/g,Xe=Je(Ke),X=``,Ze={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean,maskTokens:Object};function Qe(e,t,n,r){let s,c,u,d,f,p,m=l(()=>{if(e.maskTokens===void 0||e.maskTokens===null)return{tokenMap:Ge,tokenRegexMask:Xe};let{tokenMap:t}=qe(e.maskTokens),n={...Ge,...t};return{tokenMap:n,tokenRegexMask:Je(Object.keys(n))}}),h=o(null),_=o(y());function v(){return e.autogrow===!0||[`textarea`,`text`,`search`,`url`,`tel`,`password`].includes(e.type)}a(()=>e.type+e.autogrow,x),a(()=>e.mask,n=>{if(n!==void 0)S(_.value,!0);else{let n=k(_.value);x(),e.modelValue!==n&&t(`update:modelValue`,n)}}),a(()=>e.fillMask+e.reverseFillMask,()=>{h.value===!0&&S(_.value,!0)}),a(()=>e.unmaskedValue,()=>{h.value===!0&&S(_.value)});function y(){if(x(),h.value===!0){let t=D(k(e.modelValue));return e.fillMask===!1?t:A(t)}return e.modelValue}function b(e){if(e<s.length)return s.slice(-e);let t=``,n=s,r=n.indexOf(X);if(r!==-1){for(let r=e-n.length;r>0;r--)t+=X;n=n.slice(0,r)+t+n.slice(r)}return n}function x(){if(h.value=e.mask!==void 0&&e.mask.length!==0&&v(),h.value===!1){d=void 0,s=``,c=``;return}let t=We[e.mask]===void 0?e.mask:We[e.mask],n=typeof e.fillMask==`string`&&e.fillMask.length!==0?e.fillMask.slice(0,1):`_`,r=n.replace(Ye,`\\$&`),i=[],a=[],o=[],l=e.reverseFillMask===!0,f=``,p=``;t.replace(m.value.tokenRegexMask,(e,t,n,r,s)=>{if(r!==void 0){let e=m.value.tokenMap[r];o.push(e),p=e.negate,l===!0&&(a.push(`(?:`+p+`+)?(`+e.pattern+`+)?(?:`+p+`+)?(`+e.pattern+`+)?`),l=!1),a.push(`(?:`+p+`+)?(`+e.pattern+`)?`)}else if(n!==void 0)f=`\\`+(n===`\\`?``:n),o.push(n),i.push(`([^`+f+`]+)?`+f+`?`);else{let e=t===void 0?s:t;f=e===`\\`?`\\\\\\\\`:e.replace(Ye,`\\\\$&`),o.push(e),i.push(`([^`+f+`]+)?`+f+`?`)}});let g=RegExp(`^`+i.join(``)+`(`+(f===``?`.`:`[^`+f+`]`)+`+)?`+(f===``?``:`[`+f+`]*`)+`$`),_=a.length-1,y=a.map((t,n)=>n===0&&e.reverseFillMask===!0?RegExp(`^`+r+`*`+t):RegExp(n===_?`^`+t+`(`+(p===``?`.`:p)+`+)?`+(e.reverseFillMask===!0?`$`:r+`*`):`^`+t));u=o,d=t=>{let n=g.exec(e.reverseFillMask===!0?t:t.slice(0,o.length+1));n!==null&&(t=n.slice(1).join(``));let r=[],i=y.length;for(let e=0,n=t;e<i;e++){let t=y[e].exec(n);if(t===null)break;n=n.slice(t.shift().length),r.push(...t)}return r.length===0?t:r.join(``)},s=o.map(e=>typeof e==`string`?e:X).join(``),c=s.split(X).join(n)}function S(t,a,o){let l=r.value,u=l.selectionEnd,d=l.value.length-u,p=k(t);a===!0&&x();let m=D(p,a),h=e.fillMask===!1?m:A(m),g=_.value!==h;l.value!==h&&(l.value=h),g===!0&&(_.value=h),document.activeElement===l&&i(()=>{if(h===c){let t=e.reverseFillMask===!0?c.length:0;l.setSelectionRange(t,t,`forward`);return}if(o===`insertFromPaste`&&e.reverseFillMask!==!0){let e=l.selectionEnd,t=u-1;for(let n=f;n<=t&&n<e;n++)s[n]!==X&&t++;w.right(l,t);return}if([`deleteContentBackward`,`deleteContentForward`].indexOf(o)!==-1){let t=e.reverseFillMask===!0?u===0?h.length>m.length?1:0:Math.max(0,h.length-(h===c?0:Math.min(m.length,d)+1))+1:u;l.setSelectionRange(t,t,`forward`);return}if(e.reverseFillMask===!0)if(g===!0){let e=Math.max(0,h.length-(h===c?0:Math.min(m.length,d+1)));e===1&&u===1?l.setSelectionRange(e,e,`forward`):w.rightReverse(l,e)}else{let e=h.length-d;l.setSelectionRange(e,e,`backward`)}else if(g===!0){let e=Math.max(0,s.indexOf(X),Math.min(m.length,u)-1);w.right(l,e)}else{let e=u-1;w.right(l,e)}});let v=e.unmaskedValue===!0?k(h):h;String(e.modelValue)!==v&&(e.modelValue!==null||v!==``)&&n(v,!0)}function C(e,t,n){let r=D(k(e.value));t=Math.max(0,s.indexOf(X),Math.min(r.length,t)),f=t,e.setSelectionRange(t,n,`forward`)}let w={left(e,t){let n=s.slice(t-1).indexOf(X)===-1,r=Math.max(0,t-1);for(;r>=0;r--)if(s[r]===X){t=r,n===!0&&t++;break}if(r<0&&s[t]!==void 0&&s[t]!==X)return w.right(e,0);t>=0&&e.setSelectionRange(t,t,`backward`)},right(e,t){let n=e.value.length,r=Math.min(n,t+1);for(;r<=n;r++)if(s[r]===X){t=r;break}else s[r-1]===X&&(t=r);if(r>n&&s[t-1]!==void 0&&s[t-1]!==X)return w.left(e,n);e.setSelectionRange(t,t,`forward`)},leftReverse(e,t){let n=b(e.value.length),r=Math.max(0,t-1);for(;r>=0;r--)if(n[r-1]===X){t=r;break}else if(n[r]===X&&(t=r,r===0))break;if(r<0&&n[t]!==void 0&&n[t]!==X)return w.rightReverse(e,0);t>=0&&e.setSelectionRange(t,t,`backward`)},rightReverse(e,t){let n=e.value.length,r=b(n),i=r.slice(0,t+1).indexOf(X)===-1,a=Math.min(n,t+1);for(;a<=n;a++)if(r[a-1]===X){t=a,t>0&&i===!0&&t--;break}if(a>n&&r[t-1]!==void 0&&r[t-1]!==X)return w.leftReverse(e,n);e.setSelectionRange(t,t,`forward`)}};function T(e){t(`click`,e),p=void 0}function E(n){if(t(`keydown`,n),g(n)===!0||n.altKey===!0)return;let i=r.value,a=i.selectionStart,o=i.selectionEnd;if(n.shiftKey||(p=void 0),n.keyCode===37||n.keyCode===39){n.shiftKey&&p===void 0&&(p=i.selectionDirection===`forward`?a:o);let t=w[(n.keyCode===39?`right`:`left`)+(e.reverseFillMask===!0?`Reverse`:``)];if(n.preventDefault(),t(i,p===a?o:a),n.shiftKey){let e=i.selectionStart;i.setSelectionRange(Math.min(p,e),Math.max(p,e),`forward`)}}else n.keyCode===8&&e.reverseFillMask!==!0&&a===o?(w.left(i,a),i.setSelectionRange(i.selectionStart,o,`backward`)):n.keyCode===46&&e.reverseFillMask===!0&&a===o&&(w.rightReverse(i,o),i.setSelectionRange(a,i.selectionEnd,`forward`))}function D(t,n){if(t==null||t===``)return``;if(e.reverseFillMask===!0)return O(t,n);let r=u,i=0,a=``;for(let e=0;e<r.length;e++){let o=t[i],s=r[e];if(typeof s==`string`)a+=s,n===!0&&o===s&&i++;else if(o!==void 0&&s.regex.test(o))a+=s.transform===void 0?o:s.transform(o),i++;else return a}return a}function O(e,t){let n=u,r=s.indexOf(X),i=e.length-1,a=``;for(let o=n.length-1;o>=0&&i!==-1;o--){let s=n[o],c=e[i];if(typeof s==`string`)a=s+a,t===!0&&c===s&&i--;else if(c!==void 0&&s.regex.test(c))do a=(s.transform===void 0?c:s.transform(c))+a,i--,c=e[i];while(r===o&&c!==void 0&&s.regex.test(c));else return a}return a}function k(e){return typeof e!=`string`||d===void 0?typeof e==`number`?d(String(e)):e:d(e)}function A(t){return c.length-t.length<=0?t:e.reverseFillMask===!0&&t.length!==0?c.slice(0,-t.length)+t:t+c.slice(t.length)}return{innerValue:_,hasMask:h,moveCursorForPaste:C,updateMaskValue:S,onMaskedKeydown:E,onMaskedClick:T}}function $e(e,t){function n(){let t=e.modelValue;try{let e=`DataTransfer`in window?new DataTransfer:`ClipboardEvent`in window?new ClipboardEvent(``).clipboardData:void 0;return Object(t)===t&&(`length`in t?Array.from(t):[t]).forEach(t=>{e.items.add(t)}),{files:e.files}}catch{return{files:void 0}}}return l(t===!0?()=>{if(e.type===`file`)return n()}:n)}var et=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,tt=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,nt=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,rt=/[a-z0-9_ -]$/i;function it(e){return function(t){if(t.type===`compositionend`||t.type===`change`){if(t.target.qComposing!==!0)return;t.target.qComposing=!1,e(t)}else t.type===`compositionupdate`&&t.target.qComposing!==!0&&typeof t.data==`string`&&(D.is.firefox===!0?rt.test(t.data)===!1:et.test(t.data)===!0||tt.test(t.data)===!0||nt.test(t.data)===!0)&&(t.target.qComposing=!0)}}var at=f({name:`QInput`,inheritAttrs:!1,props:{...Be,...Ze,...oe,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:`text`},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Ve,`paste`,`change`,`keydown`,`click`,`animationend`],setup(e,{emit:t,attrs:n}){let{proxy:c}=d(),{$q:f}=c,p={},m=NaN,h,g,v=null,b,x=o(null),S=ae(e),{innerValue:C,hasMask:w,moveCursorForPaste:T,updateMaskValue:E,onMaskedKeydown:D,onMaskedClick:O}=Qe(e,t,R,x),k=$e(e,!0),A=l(()=>ze(C.value)),j=it(I),M=He({changeEvent:!0}),N=l(()=>e.type===`textarea`||e.autogrow===!0),P=l(()=>N.value===!0||[`text`,`search`,`url`,`tel`,`password`].includes(e.type)),ee=l(()=>{let t={...M.splitAttrs.listeners.value,onInput:I,onPaste:re,onChange:oe,onBlur:B,onFocus:_};return t.onCompositionstart=t.onCompositionupdate=t.onCompositionend=j,w.value===!0&&(t.onKeydown=D,t.onClick=O),e.autogrow===!0&&(t.onAnimationend=L),t}),F=l(()=>{let t={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type===`textarea`?6:void 0,"aria-label":e.label,name:S.value,...M.splitAttrs.attributes.value,id:M.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return N.value===!1&&(t.type=e.type),e.autogrow===!0&&(t.rows=1),t});a(()=>e.type,()=>{x.value&&(x.value.value=e.modelValue)}),a(()=>e.modelValue,t=>{if(w.value===!0){if(g===!0&&(g=!1,String(t)===m))return;E(t)}else C.value!==t&&(C.value=t,e.type===`number`&&p.hasOwnProperty(`value`)===!0&&(h===!0?h=!1:delete p.value));e.autogrow===!0&&i(z)}),a(()=>e.autogrow,e=>{e===!0?i(z):x.value!==null&&n.rows>0&&(x.value.style.height=`auto`)}),a(()=>e.dense,()=>{e.autogrow===!0&&i(z)});function te(){ie(()=>{let e=document.activeElement;x.value!==null&&x.value!==e&&(e===null||e.id!==M.targetUid.value)&&x.value.focus({preventScroll:!0})})}function ne(){x.value?.select()}function re(n){if(w.value===!0&&e.reverseFillMask!==!0){let e=n.target;T(e,e.selectionStart,e.selectionEnd)}t(`paste`,n)}function I(n){if(!n||!n.target)return;if(e.type===`file`){t(`update:modelValue`,n.target.files);return}let r=n.target.value;if(n.target.qComposing===!0){p.value=r;return}if(w.value===!0)E(r,!1,n.inputType);else if(R(r),P.value===!0&&n.target===document.activeElement){let{selectionStart:e,selectionEnd:t}=n.target;e!==void 0&&t!==void 0&&i(()=>{n.target===document.activeElement&&r.indexOf(n.target.value)===0&&n.target.setSelectionRange(e,t)})}e.autogrow===!0&&z()}function L(e){t(`animationend`,e),z()}function R(n,r){b=()=>{v=null,e.type!==`number`&&p.hasOwnProperty(`value`)===!0&&delete p.value,e.modelValue!==n&&m!==n&&(m=n,r===!0&&(g=!0),t(`update:modelValue`,n),i(()=>{m===n&&(m=NaN)})),b=void 0},e.type===`number`&&(h=!0,p.value=n),e.debounce===void 0?b():(v!==null&&clearTimeout(v),p.value=n,v=setTimeout(b,e.debounce))}function z(){requestAnimationFrame(()=>{let e=x.value;if(e!==null){let t=e.parentNode.style,{scrollTop:n}=e,{overflowY:r,maxHeight:i}=f.platform.is.firefox===!0?{}:window.getComputedStyle(e),a=r!==void 0&&r!==`scroll`;a===!0&&(e.style.overflowY=`hidden`),t.marginBottom=e.scrollHeight-1+`px`,e.style.height=`1px`,e.style.height=e.scrollHeight+`px`,a===!0&&(e.style.overflowY=parseInt(i,10)<e.scrollHeight?`auto`:`hidden`),t.marginBottom=``,e.scrollTop=n}})}function oe(e){j(e),v!==null&&(clearTimeout(v),v=null),b?.(),t(`change`,e.target.value)}function B(t){t!==void 0&&_(t),v!==null&&(clearTimeout(v),v=null),b?.(),h=!1,g=!1,delete p.value,e.type!==`file`&&setTimeout(()=>{x.value!==null&&(x.value.value=C.value===void 0?``:C.value)})}function V(){return p.hasOwnProperty(`value`)===!0?p.value:C.value===void 0?``:C.value}r(()=>{B()}),s(()=>{e.autogrow===!0&&z()}),Object.assign(M,{innerValue:C,fieldClass:l(()=>`q-${N.value===!0?`textarea`:`input`}`+(e.autogrow===!0?` q-textarea--autogrow`:``)),hasShadow:l(()=>e.type!==`file`&&typeof e.shadowText==`string`&&e.shadowText.length!==0),inputRef:x,emitValue:R,hasValue:A,floatingLabel:l(()=>A.value===!0&&(e.type!==`number`||isNaN(C.value)===!1)||ze(e.displayValue)),getControl:()=>u(N.value===!0?`textarea`:`input`,{ref:x,class:[`q-field__native q-placeholder`,e.inputClass],style:e.inputStyle,...F.value,...ee.value,...e.type===`file`?k.value:{value:V()}}),getShadowControl:()=>u(`div`,{class:`q-field__native q-field__shadow absolute-bottom no-pointer-events`+(N.value===!0?``:` text-no-wrap`)},[u(`span`,{class:`invisible`},V()),u(`span`,e.shadowText)])});let H=Ue(M);return Object.assign(c,{focus:te,select:ne,getNativeElement:()=>x.value}),y(c,`nativeEl`,()=>x.value),H}}),Z=[],Q;function ot(e){Q=e.keyCode===27}function st(){Q===!0&&(Q=!1)}function ct(e){Q===!0&&(Q=!1,p(e,27)===!0&&Z[Z.length-1](e))}function lt(e){window[e](`keydown`,ot),window[e](`blur`,st),window[e](`keyup`,ct),Q=!1}function ut(e){D.is.desktop===!0&&(Z.push(e),Z.length===1&<(`addEventListener`))}function dt(e){let t=Z.indexOf(e);t!==-1&&(Z.splice(t,1),Z.length===0&<(`removeEventListener`))}var $=[];function ft(e){$[$.length-1](e)}function pt(e){D.is.desktop===!0&&($.push(e),$.length===1&&document.body.addEventListener(`focusin`,ft))}function mt(e){let t=$.indexOf(e);t!==-1&&($.splice(t,1),$.length===0&&document.body.removeEventListener(`focusin`,ft))}var ht=0,gt={standard:`fixed-full flex-center`,top:`fixed-top justify-center`,bottom:`fixed-bottom justify-center`,right:`fixed-right items-center`,left:`fixed-left items-center`},_t={standard:[`scale`,`scale`],top:[`slide-down`,`slide-up`],bottom:[`slide-up`,`slide-down`],right:[`slide-left`,`slide-right`],left:[`slide-right`,`slide-left`]},vt=f({name:`QDialog`,inheritAttrs:!1,props:{...j,...F,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:`standard`,validator:e=>[`standard`,`top`,`bottom`,`left`,`right`].includes(e)}},emits:[...M,`shake`,`click`,`escapeKey`],setup(e,{slots:t,emit:n,attrs:i}){let s=d(),c=o(null),f=o(!1),p=o(!1),m=null,h=null,g,_,y=l(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:S}=he(),{registerTimeout:C}=re(),{registerTick:w,removeTick:T}=ne(),{transitionProps:E,transitionStyle:D}=te(e,()=>_t[e.position][0],()=>_t[e.position][1]),O=l(()=>D.value+(e.backdropFilter===void 0?``:`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`)),{showPortal:k,hidePortal:A,portalIsAccessible:j,renderPortal:M}=N(s,c,J,`dialog`),{hide:P}=R({showing:f,hideOnRouteChange:y,handleShow:oe,handleHide:B,processOnMount:!0}),{addToHistory:ee,removeFromHistory:F}=V(f,P,y),I=l(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?`maximized`:`minimized`} q-dialog__inner--${e.position} ${gt[e.position]}`+(p.value===!0?` q-dialog__inner--animating`:``)+(e.fullWidth===!0?` q-dialog__inner--fullwidth`:``)+(e.fullHeight===!0?` q-dialog__inner--fullheight`:``)+(e.square===!0?` q-dialog__inner--square`:``)),L=l(()=>f.value===!0&&e.seamless!==!0),ae=l(()=>e.autoClose===!0?{onClick:se}:{}),z=l(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${L.value===!0?`modal`:`seamless`}`,i.class]);a(()=>e.maximized,e=>{f.value===!0&&K(e)}),a(L,e=>{S(e),e===!0?(pt(q),ut(W)):(mt(q),dt(W))});function oe(t){ee(),h=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,K(e.maximized),k(),p.value=!0,e.noFocus===!0?T():(document.activeElement?.blur(),w(H)),C(()=>{if(s.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){let{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:n}=window,r=window.visualViewport===void 0?n:window.visualViewport.height;e>0&&t>r/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-r,t>=n?1/0:Math.ceil(document.scrollingElement.scrollTop+t-r/2))),document.activeElement.scrollIntoView()}_=!0,c.value.click(),_=!1}k(!0),p.value=!1,n(`show`,t)},e.transitionDuration)}function B(t){T(),F(),G(!0),p.value=!0,A(),h!==null&&(((t?.type.indexOf(`key`)===0?h.closest(`[tabindex]:not([tabindex^="-"])`):void 0)||h).focus(),h=null),C(()=>{A(!0),p.value=!1,n(`hide`,t)},e.transitionDuration)}function H(e){ie(()=>{let t=c.value;if(t!==null){if(e!==void 0){let n=t.querySelector(e);if(n!==null){n.focus({preventScroll:!0});return}}t.contains(document.activeElement)!==!0&&(t=t.querySelector(`[autofocus][tabindex], [data-autofocus][tabindex]`)||t.querySelector(`[autofocus] [tabindex], [data-autofocus] [tabindex]`)||t.querySelector(`[autofocus], [data-autofocus]`)||t,t.focus({preventScroll:!0}))}})}function U(e){e&&typeof e.focus==`function`?e.focus({preventScroll:!0}):H(),n(`shake`);let t=c.value;t!==null&&(t.classList.remove(`q-animate--scale`),t.classList.add(`q-animate--scale`),m!==null&&clearTimeout(m),m=setTimeout(()=>{m=null,c.value!==null&&(t.classList.remove(`q-animate--scale`),H())},170))}function W(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&U():(n(`escapeKey`),P()))}function G(t){m!==null&&(clearTimeout(m),m=null),(t===!0||f.value===!0)&&(K(!1),e.seamless!==!0&&(S(!1),mt(q),dt(W))),t!==!0&&(h=null)}function K(e){e===!0?g!==!0&&(ht<1&&document.body.classList.add(`q-body--dialog`),ht++,g=!0):g===!0&&(ht<2&&document.body.classList.remove(`q-body--dialog`),ht--,g=!1)}function se(e){_!==!0&&(P(e),n(`click`,e))}function ce(t){e.persistent!==!0&&e.noBackdropDismiss!==!0?P(t):e.noShake!==!0&&U()}function q(t){e.allowFocusOutside!==!0&&j.value===!0&&x(c.value,t.target)!==!0&&H(`[tabindex]:not([tabindex="-1"])`)}Object.assign(s.proxy,{focus:H,shake:U,__updateRefocusTarget(e){h=e||null}}),r(G);function J(){return u(`div`,{role:`dialog`,"aria-modal":L.value===!0?`true`:`false`,...i,class:z.value},[u(b,{name:`q-transition--fade`,appear:!0},()=>L.value===!0?u(`div`,{class:`q-dialog__backdrop fixed-full`,style:O.value,"aria-hidden":`true`,tabindex:-1,onClick:ce}):null),u(b,E.value,()=>f.value===!0?u(`div`,{ref:c,class:I.value,style:D.value,tabindex:-1,...ae.value},v(t.default)):null)])}return M}});function yt(){return t(`_q_`)}export{ge as _,ut as a,V as b,it as c,Ve as d,Be as f,Se as g,Ce as h,mt as i,ze as l,Ee as m,vt as n,dt as o,He as p,pt as r,at as s,yt as t,Ue as u,_e as v,he as y};
|
|
File without changes
|