@loicngr/kobo 1.10.2 → 1.10.3
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/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/dist/server/services/pr-watcher-service.js +22 -17
- package/dist/server/services/settings-service.js +106 -1
- package/package.json +1 -1
- package/src/client/dist/spa/assets/{ActivityFeed-98LfDiwH.js → ActivityFeed-Bn4IG1gM.js} +3 -3
- package/src/client/dist/spa/assets/{ChangelogPage-EA4LPGWB.js → ChangelogPage-OyS0LqjP.js} +1 -1
- package/src/client/dist/spa/assets/{ClosePopup-BxYvEnmx.js → ClosePopup-B1wf7Gh3.js} +1 -1
- package/src/client/dist/spa/assets/{CreatePage-Cg0BbQwp.js → CreatePage-CkOwo6Jn.js} +2 -2
- package/src/client/dist/spa/assets/{DiffViewer-CLp2N6Zh.js → DiffViewer-DUy5tfI3.js} +3 -3
- package/src/client/dist/spa/assets/{HealthPage-5F4m82-8.js → HealthPage-QMan-G3D.js} +1 -1
- package/src/client/dist/spa/assets/{MainLayout-Dfc_DsIt.js → MainLayout-CkVcmDeg.js} +3 -3
- package/src/client/dist/spa/assets/{QBtnToggle-Br3smB6b.js → QBtnToggle-BKi1Jbys.js} +1 -1
- package/src/client/dist/spa/assets/{QChip-Bc7L8LKe.js → QChip-1uTELmCE.js} +1 -1
- package/src/client/dist/spa/assets/{QExpansionItem-BHyDyRL4.js → QExpansionItem-BJZyoT79.js} +1 -1
- package/src/client/dist/spa/assets/QScrollArea-ehpkh2GE.js +1 -0
- package/src/client/dist/spa/assets/QSelect-CKc3IVuT.js +36 -0
- package/src/client/dist/spa/assets/QTooltip-86biX27D.js +1 -0
- package/src/client/dist/spa/assets/{SearchPage-BYM38aZA.js → SearchPage-V8OnALqt.js} +1 -1
- package/src/client/dist/spa/assets/SettingsPage-CazPsJnl.js +16 -0
- package/src/client/dist/spa/assets/SettingsPage-DGAGBtQ2.css +1 -0
- package/src/client/dist/spa/assets/{TouchPan-IMQRiAGn.js → TouchPan-EYoNwghH.js} +1 -1
- package/src/client/dist/spa/assets/WorkspacePage-q6R6SPuh.js +4 -0
- package/src/client/dist/spa/assets/{build-path-tree-Cgbihluh.js → build-path-tree-BAxSTjwb.js} +1 -1
- package/src/client/dist/spa/assets/{cssMode-57i-GAo-.js → cssMode-CG3m7iQl.js} +1 -1
- package/src/client/dist/spa/assets/documents-Dz8sHeyR.js +1 -0
- package/src/client/dist/spa/assets/{editor.api2-CNFQDxW4.js → editor.api2-DqJsxy06.js} +1 -1
- package/src/client/dist/spa/assets/{editor.main-CJJlXa_x.js → editor.main-r2oDGbHA.js} +2 -2
- package/src/client/dist/spa/assets/{expand-template-CN8wfDhv.js → expand-template-DP5gf1ro.js} +1 -1
- package/src/client/dist/spa/assets/{formatters-9eR6rvkm.js → formatters-EQwGVQQS.js} +1 -1
- package/src/client/dist/spa/assets/{freemarker2-qbKTPHxB.js → freemarker2-C6Dcsusp.js} +1 -1
- package/src/client/dist/spa/assets/{handlebars-DV81bryH.js → handlebars-BYzVrRyn.js} +1 -1
- package/src/client/dist/spa/assets/{html-i5i_Ua1s.js → html-Yuf2QU9u.js} +1 -1
- package/src/client/dist/spa/assets/{htmlMode-Du1z3aXL.js → htmlMode-BJJsbkSn.js} +1 -1
- package/src/client/dist/spa/assets/i18n-CPaxvFKM.js +1 -0
- package/src/client/dist/spa/assets/{index-B7ivRaq9.js → index-CC1iOXc-.js} +12 -12
- package/src/client/dist/spa/assets/{javascript-DgQZF_pf.js → javascript-Ch3ueiOd.js} +1 -1
- package/src/client/dist/spa/assets/{jsonMode-6XLEI_p0.js → jsonMode-xEENY1ms.js} +1 -1
- package/src/client/dist/spa/assets/{kobo-commands-CplA4Y0q.js → kobo-commands-CbIH5Wgu.js} +1 -1
- package/src/client/dist/spa/assets/{layout-BbHOhk37.js → layout-EwsT5w-M.js} +1 -1
- package/src/client/dist/spa/assets/{liquid-54MmW5iG.js → liquid-Bh89yiMp.js} +1 -1
- package/src/client/dist/spa/assets/{lspLanguageFeatures-xU1LF4fY.js → lspLanguageFeatures-CNi35cTh.js} +1 -1
- package/src/client/dist/spa/assets/{mdx-BbX1cCc8.js → mdx-Pk_6m6B2.js} +1 -1
- package/src/client/dist/spa/assets/{monaco.contribution-CNHTTcDF.js → monaco.contribution-DyjS5cak.js} +2 -2
- package/src/client/dist/spa/assets/network-auth-B4eYLa1I.js +1 -0
- package/src/client/dist/spa/assets/{project-color-PpNx-yz4.js → project-color-8ANVbJax.js} +1 -1
- package/src/client/dist/spa/assets/{python-BL4EBjGI.js → python-7GmD1T0-.js} +1 -1
- package/src/client/dist/spa/assets/{razor-BdIRjBrX.js → razor-CTW-7qAs.js} +1 -1
- package/src/client/dist/spa/assets/{render-chat-markdown-CYeqc8cI.js → render-chat-markdown-iOBona09.js} +1 -1
- package/src/client/dist/spa/assets/{tsMode-BoQuq_mo.js → tsMode-BMCTiDkj.js} +1 -1
- package/src/client/dist/spa/assets/{typescript-TXE1oBSg.js → typescript-CBNlJ2bB.js} +1 -1
- package/src/client/dist/spa/assets/{use-onboarding-Ch0swQ7p.js → use-onboarding-C7pg8RV8.js} +1 -1
- package/src/client/dist/spa/assets/{use-quasar--cg_cUkd.js → use-quasar-by40ecAs.js} +1 -1
- package/src/client/dist/spa/assets/{workers-Clrb2kWw.js → workers-CrZaPx7e.js} +1 -1
- package/src/client/dist/spa/assets/{xml-36_1aaai.js → xml-CkKKuUBJ.js} +1 -1
- package/src/client/dist/spa/assets/{yaml-CTVfk9Oc.js → yaml-B6VtPgSa.js} +1 -1
- package/src/client/dist/spa/index.html +1 -1
- package/src/client/dist/spa/sounds/7eme-compagnie-03.mp3 +0 -0
- package/src/client/dist/spa/sounds/aller-ftg.mp3 +0 -0
- package/src/client/dist/spa/sounds/arrete-de-mentir.mp3 +0 -0
- package/src/client/dist/spa/sounds/arretez-les-messages.mp3 +0 -0
- package/src/client/dist/spa/sounds/bah-alors-on-est-nul.mp3 +0 -0
- package/src/client/dist/spa/sounds/gta-v-death.mp3 +0 -0
- package/src/client/dist/spa/sounds/nan-tu-degages.mp3 +0 -0
- package/src/client/dist/spa/sounds/nan-wallah-pardon.mp3 +0 -0
- package/src/client/dist/spa/sounds/ouais-cest-greg.mp3 +0 -0
- package/src/client/dist/spa/sounds/pas-ca-zinedine.mp3 +0 -0
- package/src/client/dist/spa/sounds/ta-gueule.mp3 +0 -0
- package/src/client/dist/spa/sounds/tu-vas-la-fermer.mp3 +0 -0
- package/src/client/dist/spa/assets/QScrollArea-CncsSfK0.js +0 -1
- package/src/client/dist/spa/assets/QSelect-DXXOwpf6.js +0 -36
- package/src/client/dist/spa/assets/QTooltip-C6Vpr1qf.js +0 -1
- package/src/client/dist/spa/assets/SettingsPage-DendQ8y4.js +0 -16
- package/src/client/dist/spa/assets/SettingsPage-NDsw0Jvo.css +0 -1
- package/src/client/dist/spa/assets/WorkspacePage-BghKaAab.js +0 -4
- package/src/client/dist/spa/assets/documents-CdYfTEAV.js +0 -1
- package/src/client/dist/spa/assets/i18n-DA8dnYBE.js +0 -1
- package/src/client/dist/spa/assets/network-auth-CdzNfMI-.js +0 -1
package/src/client/dist/spa/assets/{use-onboarding-Ch0swQ7p.js → use-onboarding-C7pg8RV8.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{K as e,s as t}from"./index-CC1iOXc-.js";var n={},r;function i(e={}){n={animate:!0,allowClose:!0,overlayClickBehavior:`close`,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:[`next`,`previous`,`close`],disableButtons:[],overlayColor:`#000`,...e}}function a(e){return e?n[e]:n}function o(e){r=e}function s(){return r}var c={};function l(e,t){c[e]=t}function u(e){var t;(t=c[e])==null||t.call(c)}function d(){c={}}function f(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function p(e){let t=`a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])`;return e.flatMap(e=>{let n=e.matches(t),r=Array.from(e.querySelectorAll(t));return[...n?[e]:[],...r]}).filter(e=>getComputedStyle(e).pointerEvents!==`none`&&_(e))}function m(e){if(!e||g(e))return;let t=a(`smoothScroll`),n=e.offsetHeight>window.innerHeight;e.scrollIntoView({behavior:!t||h(e)?`auto`:`smooth`,inline:`center`,block:n?`start`:`center`})}function h(e){if(!e||!e.parentElement)return;let t=e.parentElement;return t.scrollHeight>t.clientHeight}function g(e){let t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function _(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}var v={};function y(e,t){v[e]=t}function b(e){return e?v[e]:v}function x(){v={}}function S(e,t,n,r){let i=b(`__activeStagePosition`),a=i||n.getBoundingClientRect(),o=r.getBoundingClientRect();i={x:f(e,a.x,o.x-a.x,t),y:f(e,a.y,o.y-a.y,t),width:f(e,a.width,o.width-a.width,t),height:f(e,a.height,o.height-a.height,t)},E(i),y(`__activeStagePosition`,i)}function C(e){if(!e)return;let t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};y(`__activeStagePosition`,n),E(n)}function w(){let e=b(`__activeStagePosition`),t=b(`__overlaySvg`);if(!e)return;if(!t){console.warn(`No stage svg found.`);return}let n=window.innerWidth,r=window.innerHeight;t.setAttribute(`viewBox`,`0 0 ${n} ${r}`)}function T(e){let t=D(e);document.body.appendChild(t),L(t,e=>{e.target.tagName===`path`&&u(`overlayClick`)}),y(`__overlaySvg`,t)}function E(e){let t=b(`__overlaySvg`);if(!t){T(e);return}let n=t.firstElementChild;if(n?.tagName!==`path`)throw Error(`no path element found in stage svg`);n.setAttribute(`d`,O(e))}function D(e){let t=window.innerWidth,n=window.innerHeight,r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);r.classList.add(`driver-overlay`,`driver-overlay-animated`),r.setAttribute(`viewBox`,`0 0 ${t} ${n}`),r.setAttribute(`xmlSpace`,`preserve`),r.setAttribute(`xmlnsXlink`,`http://www.w3.org/1999/xlink`),r.setAttribute(`version`,`1.1`),r.setAttribute(`preserveAspectRatio`,`xMinYMin slice`),r.style.fillRule=`evenodd`,r.style.clipRule=`evenodd`,r.style.strokeLinejoin=`round`,r.style.strokeMiterlimit=`2`,r.style.zIndex=`10000`,r.style.position=`fixed`,r.style.top=`0`,r.style.left=`0`,r.style.width=`100%`,r.style.height=`100%`;let i=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return i.setAttribute(`d`,O(e)),i.style.fill=a(`overlayColor`)||`rgb(0,0,0)`,i.style.opacity=`${a(`overlayOpacity`)}`,i.style.pointerEvents=`auto`,i.style.cursor=`auto`,r.appendChild(i),r}function O(e){let t=window.innerWidth,n=window.innerHeight,r=a(`stagePadding`)||0,i=a(`stageRadius`)||0,o=e.width+r*2,s=e.height+r*2,c=Math.min(i,o/2,s/2),l=Math.floor(Math.max(c,0)),u=e.x-r+l,d=e.y-r,f=o-l*2,p=s-l*2;return`M${t},0L0,0L0,${n}L${t},${n}L${t},0Z
|
|
2
2
|
M${u},${d} h${f} a${l},${l} 0 0 1 ${l},${l} v${p} a${l},${l} 0 0 1 -${l},${l} h-${f} a${l},${l} 0 0 1 -${l},-${l} v-${p} a${l},${l} 0 0 1 ${l},-${l} z`}function ee(){let e=b(`__overlaySvg`);e&&e.remove()}function k(){let e=document.getElementById(`driver-dummy-element`);if(e)return e;let t=document.createElement(`div`);return t.id=`driver-dummy-element`,t.style.width=`0`,t.style.height=`0`,t.style.pointerEvents=`none`,t.style.opacity=`0`,t.style.position=`fixed`,t.style.top=`50%`,t.style.left=`50%`,document.body.appendChild(t),t}function A(e){let{element:t}=e,n=typeof t==`function`?t():typeof t==`string`?document.querySelector(t):t;n||=k(),M(n,e)}function j(){let e=b(`__activeElement`),t=b(`__activeStep`);e&&(C(e),w(),G(e,t))}function M(e,t){let n=Date.now(),r=b(`__activeStep`),i=b(`__activeElement`)||e,o=!i||i===e,c=e.id===`driver-dummy-element`,l=i.id===`driver-dummy-element`,u=a(`animate`),d=t.onHighlightStarted||a(`onHighlightStarted`),f=t?.onHighlighted||a(`onHighlighted`),p=r?.onDeselected||a(`onDeselected`),h=a(),g=b();!o&&p&&p(l?void 0:i,r,{config:h,state:g,driver:s()}),d&&d(c?void 0:e,t,{config:h,state:g,driver:s()});let _=!o&&u,v=!1;B(),y(`previousStep`,r),y(`previousElement`,i),y(`activeStep`,t),y(`activeElement`,e);let x=()=>{if(b(`__transitionCallback`)!==x)return;let o=Date.now()-n,l=400-o<=400/2;t.popover&&l&&!v&&_&&(V(e,t),v=!0),a(`animate`)&&o<400?S(o,400,i,e):(C(e),f&&f(c?void 0:e,t,{config:a(),state:b(),driver:s()}),y(`__transitionCallback`,void 0),y(`__previousStep`,r),y(`__previousElement`,i),y(`__activeStep`,t),y(`__activeElement`,e)),window.requestAnimationFrame(x)};y(`__transitionCallback`,x),window.requestAnimationFrame(x),m(e),!_&&t.popover&&V(e,t),i.classList.remove(`driver-active-element`,`driver-no-interaction`),i.removeAttribute(`aria-haspopup`),i.removeAttribute(`aria-expanded`),i.removeAttribute(`aria-controls`),(t.disableActiveInteraction??a(`disableActiveInteraction`))&&e.classList.add(`driver-no-interaction`),e.classList.add(`driver-active-element`),e.setAttribute(`aria-haspopup`,`dialog`),e.setAttribute(`aria-expanded`,`true`),e.setAttribute(`aria-controls`,`driver-popover-content`)}function N(){var e;(e=document.getElementById(`driver-dummy-element`))==null||e.remove(),document.querySelectorAll(`.driver-active-element`).forEach(e=>{e.classList.remove(`driver-active-element`,`driver-no-interaction`),e.removeAttribute(`aria-haspopup`),e.removeAttribute(`aria-expanded`),e.removeAttribute(`aria-controls`)})}function P(){let e=b(`__resizeTimeout`);e&&window.cancelAnimationFrame(e),y(`__resizeTimeout`,window.requestAnimationFrame(j))}function F(e){if(!b(`isInitialized`)||!(e.key===`Tab`||e.keyCode===9))return;let t=b(`__activeElement`),n=b(`popover`)?.wrapper,r=p([...n?[n]:[],...t?[t]:[]]),i=r[0],a=r[r.length-1];e.preventDefault(),e.shiftKey?(r[r.indexOf(document.activeElement)-1]||a)?.focus():(r[r.indexOf(document.activeElement)+1]||i)?.focus()}function I(e){var t;((t=a(`allowKeyboardControl`))==null||t)&&(e.key===`Escape`?u(`escapePress`):e.key===`ArrowRight`?u(`arrowRightPress`):e.key===`ArrowLeft`&&u(`arrowLeftPress`))}function L(e,t,n){let r=(t,r)=>{let i=t.target;e.contains(i)&&((!n||n(i))&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()),r?.(t))};document.addEventListener(`pointerdown`,r,!0),document.addEventListener(`mousedown`,r,!0),document.addEventListener(`pointerup`,r,!0),document.addEventListener(`mouseup`,r,!0),document.addEventListener(`click`,e=>{r(e,t)},!0)}function R(){window.addEventListener(`keyup`,I,!1),window.addEventListener(`keydown`,F,!1),window.addEventListener(`resize`,P),window.addEventListener(`scroll`,P)}function z(){window.removeEventListener(`keyup`,I),window.removeEventListener(`resize`,P),window.removeEventListener(`scroll`,P)}function B(){let e=b(`popover`);e&&(e.wrapper.style.display=`none`)}function V(e,t){let n=b(`popover`);n&&document.body.removeChild(n.wrapper),n=q(),document.body.appendChild(n.wrapper);let{title:r,description:i,showButtons:o,disableButtons:c,showProgress:l,nextBtnText:d=a(`nextBtnText`)||`Next →`,prevBtnText:f=a(`prevBtnText`)||`← Previous`,progressText:h=a(`progressText`)||`{current} of {total}`}=t.popover||{};n.nextButton.innerHTML=d,n.previousButton.innerHTML=f,n.progress.innerHTML=h,r?(n.title.innerHTML=r,n.title.style.display=`block`):n.title.style.display=`none`,i?(n.description.innerHTML=i,n.description.style.display=`block`):n.description.style.display=`none`;let g=o||a(`showButtons`),_=l||a(`showProgress`)||!1,v=g?.includes(`next`)||g?.includes(`previous`)||_;n.closeButton.style.display=g.includes(`close`)?`block`:`none`,v?(n.footer.style.display=`flex`,n.progress.style.display=_?`block`:`none`,n.nextButton.style.display=g.includes(`next`)?`block`:`none`,n.previousButton.style.display=g.includes(`previous`)?`block`:`none`):n.footer.style.display=`none`;let x=c||a(`disableButtons`)||[];x!=null&&x.includes(`next`)&&(n.nextButton.disabled=!0,n.nextButton.classList.add(`driver-popover-btn-disabled`)),x!=null&&x.includes(`previous`)&&(n.previousButton.disabled=!0,n.previousButton.classList.add(`driver-popover-btn-disabled`)),x!=null&&x.includes(`close`)&&(n.closeButton.disabled=!0,n.closeButton.classList.add(`driver-popover-btn-disabled`));let S=n.wrapper;S.style.display=`block`,S.style.left=``,S.style.top=``,S.style.bottom=``,S.style.right=``,S.id=`driver-popover-content`,S.setAttribute(`role`,`dialog`),S.setAttribute(`aria-labelledby`,`driver-popover-title`),S.setAttribute(`aria-describedby`,`driver-popover-description`);let C=n.arrow;C.className=`driver-popover-arrow`,S.className=`driver-popover ${t.popover?.popoverClass||a(`popoverClass`)||``}`.trim(),L(n.wrapper,n=>{let r=n.target,i=t.popover?.onNextClick||a(`onNextClick`),o=t.popover?.onPrevClick||a(`onPrevClick`),c=t.popover?.onCloseClick||a(`onCloseClick`);if(r.closest(`.driver-popover-next-btn`))return i?i(e,t,{config:a(),state:b(),driver:s()}):u(`nextClick`);if(r.closest(`.driver-popover-prev-btn`))return o?o(e,t,{config:a(),state:b(),driver:s()}):u(`prevClick`);if(r.closest(`.driver-popover-close-btn`))return c?c(e,t,{config:a(),state:b(),driver:s()}):u(`closeClick`)},e=>!(n!=null&&n.description.contains(e))&&!(n!=null&&n.title.contains(e))&&typeof e.className==`string`&&e.className.includes(`driver-popover`)),y(`popover`,n);let w=t.popover?.onPopoverRender||a(`onPopoverRender`);w&&w(n,{config:a(),state:b(),driver:s()}),G(e,t),m(S);let T=p([S,...e.classList.contains(`driver-dummy-element`)?[]:[e]]);T.length>0&&T[0].focus()}function H(){let e=b(`popover`);if(!(e!=null&&e.wrapper))return;let t=e.wrapper.getBoundingClientRect(),n=a(`stagePadding`)||0,r=a(`popoverOffset`)||0;return{width:t.width+n+r,height:t.height+n+r,realWidth:t.width,realHeight:t.height}}function U(e,t){let{elementDimensions:n,popoverDimensions:r,popoverPadding:i,popoverArrowDimensions:a}=t;return e===`start`?Math.max(Math.min(n.top-i,window.innerHeight-r.realHeight-a.width),a.width):e===`end`?Math.max(Math.min(n.top-r?.realHeight+n.height+i,window.innerHeight-r?.realHeight-a.width),a.width):e===`center`?Math.max(Math.min(n.top+n.height/2-r?.realHeight/2,window.innerHeight-r?.realHeight-a.width),a.width):0}function W(e,t){let{elementDimensions:n,popoverDimensions:r,popoverPadding:i,popoverArrowDimensions:a}=t;return e===`start`?Math.max(Math.min(n.left-i,window.innerWidth-r.realWidth-a.width),a.width):e===`end`?Math.max(Math.min(n.left-r?.realWidth+n.width+i,window.innerWidth-r?.realWidth-a.width),a.width):e===`center`?Math.max(Math.min(n.left+n.width/2-r?.realWidth/2,window.innerWidth-r?.realWidth-a.width),a.width):0}function G(e,t){let n=b(`popover`);if(!n)return;let{align:r=`start`,side:i=`left`}=t?.popover||{},o=r,s=e.id===`driver-dummy-element`?`over`:i,c=a(`stagePadding`)||0,l=H(),u=n.arrow.getBoundingClientRect(),d=e.getBoundingClientRect(),f=d.top-l.height,p=f>=0,m=window.innerHeight-(d.bottom+l.height),h=m>=0,g=d.left-l.width,_=g>=0,v=window.innerWidth-(d.right+l.width),y=v>=0,x=!p&&!h&&!_&&!y,S=s;if(s===`top`&&p?y=_=h=!1:s===`bottom`&&h?y=_=p=!1:s===`left`&&_?y=p=h=!1:s===`right`&&y&&(_=p=h=!1),s===`over`){let e=window.innerWidth/2-l.realWidth/2,t=window.innerHeight/2-l.realHeight/2;n.wrapper.style.left=`${e}px`,n.wrapper.style.right=`auto`,n.wrapper.style.top=`${t}px`,n.wrapper.style.bottom=`auto`}else if(x){let e=window.innerWidth/2-l?.realWidth/2;n.wrapper.style.left=`${e}px`,n.wrapper.style.right=`auto`,n.wrapper.style.bottom=`10px`,n.wrapper.style.top=`auto`}else if(_){let e=Math.min(g,window.innerWidth-l?.realWidth-u.width),t=U(o,{elementDimensions:d,popoverDimensions:l,popoverPadding:c,popoverArrowDimensions:u});n.wrapper.style.left=`${e}px`,n.wrapper.style.top=`${t}px`,n.wrapper.style.bottom=`auto`,n.wrapper.style.right=`auto`,S=`left`}else if(y){let e=Math.min(v,window.innerWidth-l?.realWidth-u.width),t=U(o,{elementDimensions:d,popoverDimensions:l,popoverPadding:c,popoverArrowDimensions:u});n.wrapper.style.right=`${e}px`,n.wrapper.style.top=`${t}px`,n.wrapper.style.bottom=`auto`,n.wrapper.style.left=`auto`,S=`right`}else if(p){let e=Math.min(f,window.innerHeight-l.realHeight-u.width),t=W(o,{elementDimensions:d,popoverDimensions:l,popoverPadding:c,popoverArrowDimensions:u});n.wrapper.style.top=`${e}px`,n.wrapper.style.left=`${t}px`,n.wrapper.style.bottom=`auto`,n.wrapper.style.right=`auto`,S=`top`}else if(h){let e=Math.min(m,window.innerHeight-l?.realHeight-u.width),t=W(o,{elementDimensions:d,popoverDimensions:l,popoverPadding:c,popoverArrowDimensions:u});n.wrapper.style.left=`${t}px`,n.wrapper.style.bottom=`${e}px`,n.wrapper.style.top=`auto`,n.wrapper.style.right=`auto`,S=`bottom`}x?n.arrow.classList.add(`driver-popover-arrow-none`):K(o,S,e)}function K(e,t,n){let r=b(`popover`);if(!r)return;let i=n.getBoundingClientRect(),o=H(),s=r.arrow,c=o.width,l=window.innerWidth,u=i.width,d=i.left,f=o.height,p=window.innerHeight,m=i.top,h=i.height;s.className=`driver-popover-arrow`;let g=t,_=e;if(t===`top`?(d+u<=0?(g=`right`,_=`end`):d+u-c<=0&&(g=`top`,_=`start`),d>=l?(g=`left`,_=`end`):d+c>=l&&(g=`top`,_=`end`)):t===`bottom`?(d+u<=0?(g=`right`,_=`start`):d+u-c<=0&&(g=`bottom`,_=`start`),d>=l?(g=`left`,_=`start`):d+c>=l&&(g=`bottom`,_=`end`)):t===`left`?(m+h<=0?(g=`bottom`,_=`end`):m+h-f<=0&&(g=`left`,_=`start`),m>=p?(g=`top`,_=`end`):m+f>=p&&(g=`left`,_=`end`)):t===`right`&&(m+h<=0?(g=`bottom`,_=`start`):m+h-f<=0&&(g=`right`,_=`start`),m>=p?(g=`top`,_=`start`):m+f>=p&&(g=`right`,_=`end`)),!g)s.classList.add(`driver-popover-arrow-none`);else{s.classList.add(`driver-popover-arrow-side-${g}`),s.classList.add(`driver-popover-arrow-align-${_}`);let e=n.getBoundingClientRect(),i=s.getBoundingClientRect(),o=a(`stagePadding`)||0,c=e.left-o<window.innerWidth&&e.right+o>0&&e.top-o<window.innerHeight&&e.bottom+o>0;t===`bottom`&&c&&(i.x>e.x&&i.x+i.width<e.x+e.width?r.wrapper.style.transform=`translateY(0)`:(s.classList.remove(`driver-popover-arrow-align-${_}`),s.classList.add(`driver-popover-arrow-none`),r.wrapper.style.transform=`translateY(-${o/2}px)`))}}function q(){let e=document.createElement(`div`);e.classList.add(`driver-popover`);let t=document.createElement(`div`);t.classList.add(`driver-popover-arrow`);let n=document.createElement(`header`);n.id=`driver-popover-title`,n.classList.add(`driver-popover-title`),n.style.display=`none`,n.innerText=`Popover Title`;let r=document.createElement(`div`);r.id=`driver-popover-description`,r.classList.add(`driver-popover-description`),r.style.display=`none`,r.innerText=`Popover description is here`;let i=document.createElement(`button`);i.type=`button`,i.classList.add(`driver-popover-close-btn`),i.setAttribute(`aria-label`,`Close`),i.innerHTML=`×`;let a=document.createElement(`footer`);a.classList.add(`driver-popover-footer`);let o=document.createElement(`span`);o.classList.add(`driver-popover-progress-text`),o.innerText=``;let s=document.createElement(`span`);s.classList.add(`driver-popover-navigation-btns`);let c=document.createElement(`button`);c.type=`button`,c.classList.add(`driver-popover-prev-btn`),c.innerHTML=`← Previous`;let l=document.createElement(`button`);return l.type=`button`,l.classList.add(`driver-popover-next-btn`),l.innerHTML=`Next →`,s.appendChild(c),s.appendChild(l),a.appendChild(o),a.appendChild(s),e.appendChild(i),e.appendChild(t),e.appendChild(n),e.appendChild(r),e.appendChild(a),{wrapper:e,arrow:t,title:n,description:r,footer:a,previousButton:c,nextButton:l,closeButton:i,footerButtons:s,progress:o}}function J(){var e;let t=b(`popover`);t&&((e=t.wrapper.parentElement)==null||e.removeChild(t.wrapper))}function Y(e={}){i(e);function t(){a(`allowClose`)&&g()}function n(){let e=a(`overlayClickBehavior`);if(a(`allowClose`)&&e===`close`){g();return}if(typeof e==`function`){let t=b(`__activeStep`);e(b(`__activeElement`),t,{config:a(),state:b(),driver:s()});return}e===`nextStep`&&r()}function r(){let e=b(`activeIndex`),t=a(`steps`)||[];if(e===void 0)return;let n=e+1;t[n]?h(n):g()}function c(){let e=b(`activeIndex`),t=a(`steps`)||[];if(e===void 0)return;let n=e-1;t[n]?h(n):g()}function u(e){(a(`steps`)||[])[e]?h(e):g()}function f(){if(b(`__transitionCallback`))return;let e=b(`activeIndex`),t=b(`__activeStep`),n=b(`__activeElement`);if(e===void 0||t===void 0||b(`activeIndex`)===void 0)return;let r=t.popover?.onPrevClick||a(`onPrevClick`);if(r)return r(n,t,{config:a(),state:b(),driver:s()});c()}function p(){if(b(`__transitionCallback`))return;let e=b(`activeIndex`),t=b(`__activeStep`),n=b(`__activeElement`);if(e===void 0||t===void 0)return;let i=t.popover?.onNextClick||a(`onNextClick`);if(i)return i(n,t,{config:a(),state:b(),driver:s()});r()}function m(){b(`isInitialized`)||(y(`isInitialized`,!0),document.body.classList.add(`driver-active`,a(`animate`)?`driver-fade`:`driver-simple`),R(),l(`overlayClick`,n),l(`escapePress`,t),l(`arrowLeftPress`,f),l(`arrowRightPress`,p))}function h(e=0){let t=a(`steps`);if(!t){console.error(`No steps to drive through`),g();return}if(!t[e]){g();return}y(`__activeOnDestroyed`,document.activeElement),y(`activeIndex`,e);let n=t[e],r=t[e+1],i=t[e-1],o=n.popover?.doneBtnText||a(`doneBtnText`)||`Done`,s=a(`allowClose`),c=n.popover?.showProgress===void 0?a(`showProgress`):n.popover?.showProgress,l=(n.popover?.progressText||a(`progressText`)||`{{current}} of {{total}}`).replace(`{{current}}`,`${e+1}`).replace(`{{total}}`,`${t.length}`),u=n.popover?.showButtons||a(`showButtons`),d=[`next`,`previous`,...s?[`close`]:[]].filter(e=>!(u!=null&&u.length)||u.includes(e)),f=n.popover?.onNextClick||a(`onNextClick`),p=n.popover?.onPrevClick||a(`onPrevClick`),m=n.popover?.onCloseClick||a(`onCloseClick`);A({...n,popover:{showButtons:d,nextBtnText:r?void 0:o,disableButtons:[...i?[]:[`previous`]],showProgress:c,progressText:l,onNextClick:f||(()=>{r?h(e+1):g()}),onPrevClick:p||(()=>{h(e-1)}),onCloseClick:m||(()=>{g()}),...n?.popover||{}}})}function g(e=!0){let t=b(`__activeElement`),n=b(`__activeStep`),r=b(`__activeOnDestroyed`),i=a(`onDestroyStarted`);if(e&&i){i(!t||t?.id===`driver-dummy-element`?void 0:t,n,{config:a(),state:b(),driver:s()});return}let o=n?.onDeselected||a(`onDeselected`),c=a(`onDestroyed`);if(document.body.classList.remove(`driver-active`,`driver-fade`,`driver-simple`),z(),J(),N(),ee(),d(),x(),t&&n){let e=t.id===`driver-dummy-element`;o&&o(e?void 0:t,n,{config:a(),state:b(),driver:s()}),c&&c(e?void 0:t,n,{config:a(),state:b(),driver:s()})}r&&r.focus()}let _={isActive:()=>b(`isInitialized`)||!1,refresh:P,drive:(e=0)=>{m(),h(e)},setConfig:i,setSteps:e=>{x(),i({...a(),steps:e})},getConfig:a,getState:b,getActiveIndex:()=>b(`activeIndex`),isFirstStep:()=>b(`activeIndex`)===0,isLastStep:()=>{let e=a(`steps`)||[],t=b(`activeIndex`);return t!==void 0&&t===e.length-1},getActiveStep:()=>b(`activeStep`),getActiveElement:()=>b(`activeElement`),getPreviousElement:()=>b(`previousElement`),getPreviousStep:()=>b(`previousStep`),moveNext:r,movePrevious:c,moveTo:u,hasNextStep:()=>{let e=a(`steps`)||[],t=b(`activeIndex`);return t!==void 0&&!!e[t+1]},hasPreviousStep:()=>{let e=a(`steps`)||[],t=b(`activeIndex`);return t!==void 0&&!!e[t-1]},highlight:e=>{m(),A({...e,popover:e.popover?{showButtons:[],showProgress:!1,progressText:``,...e.popover}:void 0})},destroy:()=>{g(!1)}};return o(_),_}var X=`kobo:onboarding-done`;function Z(){return localStorage.getItem(X)===`1`}function te(){localStorage.setItem(X,`1`)}var Q=[`general`,`agents`,`skills`,`prompts`,`scripts`,`notion`,`voice`,`notifications`,`worktrees`,`projects`,`templates`,`export`];function $(e,t=2e3){return new Promise(n=>{let r=Date.now(),i=()=>{let a=document.querySelector(e);a&&(a.offsetWidth>0||a.offsetHeight>0)||Date.now()-r>t?n():requestAnimationFrame(i)};i()})}function ne(){let{t:n}=e(),r=t(),i;async function a(e){document.querySelector(`[data-tour="settings-nav-${e}"]`)?.click(),await $(`[data-tour="settings-card-${e}"]`)}function o(){let e=e=>({title:n(`onboarding.${e}.title`),description:n(`onboarding.${e}.description`)}),t=[{element:`[data-tour="workspace-list"]`,popover:e(`list`)},{element:`[data-tour="create-workspace"]`,popover:e(`create`)},{element:`[data-tour="search"]`,popover:e(`search`)},{element:`[data-tour="health"]`,popover:e(`health`)},{element:`[data-tour="changelog"]`,popover:e(`changelog`)},{element:`[data-tour="settings"]`,popover:{...e(`settings`),onNextClick:async()=>{await r.push(`/settings`),await a(`general`),i?.moveNext()}}}],o=Q.map((t,n)=>{let o=Q[n-1],s=Q[n+1];return{element:`[data-tour="settings-card-${t}"]`,popover:{...e(`settings-${t}`),onPrevClick:async()=>{o?await a(o):(await r.push(`/`),await $(`[data-tour="workspace-list"]`)),i?.movePrevious()},...s?{onNextClick:async()=>{await a(s),i?.moveNext()}}:{}}}}),s=Q.indexOf(`worktrees`);if(s!==-1){let t=Q[s+1],n={element:`[data-tour="settings-card-worktrees-purge"]`,popover:{...e(`settings-worktrees-purge`),onPrevClick:()=>i?.movePrevious(),...t?{onNextClick:async()=>{await a(t),i?.moveNext()}}:{}}},r=o[s];r?.popover&&(r.popover={...r.popover,onNextClick:()=>i?.moveNext()}),o.splice(s+1,0,n)}return[...t,...o]}async function s(){r.currentRoute.value.path!==`/`&&(await r.push(`/`),await $(`[data-tour="workspace-list"]`)),i=Y({showProgress:!0,progressText:`{{current}} / {{total}}`,overlayColor:`#000000`,popoverClass:`kobo-onboarding-popover`,nextBtnText:n(`onboarding.next`),prevBtnText:n(`onboarding.prev`),doneBtnText:n(`onboarding.done`),onDestroyStarted:()=>{(!i?.hasNextStep()||window.confirm(n(`onboarding.exitConfirm`)))&&i?.destroy()},steps:o()}),i.drive()}function c(){Z()||(te(),setTimeout(()=>void s(),500))}return{startTour:s,maybeStartOnFirstVisit:c}}export{ne as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,C as t,D as n,T as r,p as i}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{M as a,N as o,b as s,c,n as l,r as u,s as d}from"./QIcon-C6E-oEjI.js";import{
|
|
1
|
+
import{$ as e,C as t,D as n,T as r,p as i}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{M as a,N as o,b as s,c,n as l,r as u,s as d}from"./QIcon-C6E-oEjI.js";import{U as f,W as p}from"./index-CC1iOXc-.js";var m=o({name:`QItem`,props:{...u,...p,tag:{type:String,default:`div`},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:[`click`,`keyup`],setup(n,{slots:o,emit:u}){let{proxy:{$q:d}}=t(),p=l(n,d),{hasLink:m,linkAttrs:h,linkClass:g,linkTag:_,navigateOnClick:v}=f(),y=e(null),b=e(null),x=i(()=>n.clickable||m.value||n.tag===`label`),S=i(()=>!n.disable&&x.value),C=i(()=>`q-item q-item-type row no-wrap`+(n.dense?` q-item--dense`:``)+(p.value?` q-item--dark`:``)+(m.value&&n.active===null?g.value:n.active?` q-item--active${n.activeClass===void 0?``:` ${n.activeClass}`}`:``)+(n.disable?` disabled`:``)+(S.value?` q-item--clickable q-link cursor-pointer `+(n.manualFocus?`q-manual-focusable`:`q-focusable q-hoverable`)+(n.focused?` q-manual-focusable--focused`:``):``)),w=i(()=>n.insetLevel===void 0?null:{[`padding`+(d.lang.rtl?`Right`:`Left`)]:16+n.insetLevel*56+`px`});function T(e){S.value&&(b.value!==null&&!e.qAvoidFocus&&(!e.qKeyEvent&&document.activeElement===y.value?b.value.focus():document.activeElement===b.value&&y.value.focus()),v(e))}function E(e){if(S.value&&s(e,[13,32])){a(e),e.qKeyEvent=!0;let t=new MouseEvent(`click`,e);t.qKeyEvent=!0,y.value.dispatchEvent(t)}u(`keyup`,e)}function D(e){S.value&&e.keyCode===32&&a(e)}function O(){let e=c(o.default,[]);return S.value&&e.unshift(r(`div`,{class:`q-focus-helper`,tabindex:-1,ref:b})),e}return()=>{let e={ref:y,class:C.value,style:w.value,role:m.value?void 0:S.value?`button`:`listitem`,onClick:T,onKeydown:D,onKeyup:E};return S.value?(e.tabindex=n.tabindex||`0`,Object.assign(e,h.value)):x.value&&(e[`aria-disabled`]=`true`),r(_.value,e,O())}}}),h=o({name:`QItemSection`,props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){let n=i(()=>`q-item__section column q-item__section--${e.avatar||e.side||e.thumbnail?`side`:`main`}`+(e.top?` q-item__section--top justify-start`:` justify-center`)+(e.avatar?` q-item__section--avatar`:``)+(e.thumbnail?` q-item__section--thumbnail`:``)+(e.noWrap?` q-item__section--nowrap`:``));return()=>r(`div`,{class:n.value},d(t.default))}});function g(){return n(`_q_`)}export{h as n,m as r,g as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e}from"./editor.api2-
|
|
1
|
+
import{p as e}from"./editor.api2-DqJsxy06.js";function t(e,t){let n=globalThis.MonacoEnvironment;if(n?.createTrustedTypesPolicy)try{return n.createTrustedTypesPolicy(e,t)}catch(e){console.error(e);return}try{return globalThis.trustedTypes?.createPolicy(e,t)}catch(e){console.error(e);return}}var n=typeof self==`object`&&self.constructor&&self.constructor.name===`DedicatedWorkerGlobalScope`&&globalThis.workerttPolicy!==void 0?globalThis.workerttPolicy:t(`defaultWorkerFactory`,{createScriptURL:e=>e});function r(e){let t=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker==`function`)return r.getWorker(`workerMain.js`,t);if(typeof r.getWorkerUrl==`function`){let e=r.getWorkerUrl(`workerMain.js`,t);return new Worker(n?n.createScriptURL(e):e,{name:t,type:`module`})}}if(e.createWorker)return e.createWorker();throw Error(`You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker`)}function i(t){let n=Promise.resolve(r({label:t.label??`monaco-editor-worker`,moduleId:t.moduleId,createWorker:t.createWorker})).then(e=>(e.postMessage(`ignore`),e.postMessage(t.createData),e));return e.createWebWorker({worker:n,host:t.host,keepIdleModels:t.keepIdleModels})}export{i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e}from"./editor.api2-
|
|
1
|
+
import{h as e}from"./editor.api2-DqJsxy06.js";var t={comments:{blockComment:[`<!--`,`-->`]},brackets:[[`<`,`>`]],autoClosingPairs:[{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],surroundingPairs:[{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],onEnterRules:[{beforeText:RegExp(`<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),action:{indentAction:e.IndentAction.Indent}}]},n={defaultToken:``,tokenPostfix:`.xml`,ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,``],{include:`@whitespace`},[/(<)(@qualifiedName)/,[{token:`delimiter`},{token:`tag`,next:`@tag`}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:`delimiter`},{token:`tag`},``,{token:`delimiter`}]],[/(<\?)(@qualifiedName)/,[{token:`delimiter`},{token:`metatag`,next:`@tag`}]],[/(<\!)(@qualifiedName)/,[{token:`delimiter`},{token:`metatag`,next:`@tag`}]],[/<\!\[CDATA\[/,{token:`delimiter.cdata`,next:`@cdata`}],[/&\w+;/,`string.escape`]],cdata:[[/[^\]]+/,``],[/\]\]>/,{token:`delimiter.cdata`,next:`@pop`}],[/\]/,``]],tag:[[/[ \t\r\n]+/,``],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,[`attribute.name`,``,`attribute.value`]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,[`attribute.name`,``,`attribute.value`]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,[`attribute.name`,``,`attribute.value`]],[/@qualifiedName/,`attribute.name`],[/\?>/,{token:`delimiter`,next:`@pop`}],[/(\/)(>)/,[{token:`tag`},{token:`delimiter`,next:`@pop`}]],[/>/,{token:`delimiter`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,``],[/<!--/,{token:`comment`,next:`@comment`}]],comment:[[/[^<\-]+/,`comment.content`],[/-->/,{token:`comment`,next:`@pop`}],[/<!--/,`comment.content.invalid`],[/[<\-]/,`comment.content`]]}};export{t as conf,n as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e}from"./editor.api2-
|
|
1
|
+
import{h as e}from"./editor.api2-DqJsxy06.js";var t={comments:{lineComment:`#`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},n={tokenPostfix:`.yaml`,brackets:[{token:`delimiter.bracket`,open:`{`,close:`}`},{token:`delimiter.square`,open:`[`,close:`]`}],keywords:[`true`,`True`,`TRUE`,`false`,`False`,`FALSE`,`null`,`Null`,`Null`,`~`],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:`@whitespace`},{include:`@comment`},[/%[^ ]+.*$/,`meta.directive`],[/---/,`operators.directivesEnd`],[/\.{3}/,`operators.documentEnd`],[/[-?:](?= )/,`operators`],{include:`@anchor`},{include:`@tagHandle`},{include:`@flowCollections`},{include:`@blockStyle`},[/@numberInteger(?![ \t]*\S+)/,`number`],[/@numberFloat(?![ \t]*\S+)/,`number.float`],[/@numberOctal(?![ \t]*\S+)/,`number.octal`],[/@numberHex(?![ \t]*\S+)/,`number.hex`],[/@numberInfinity(?![ \t]*\S+)/,`number.infinity`],[/@numberNaN(?![ \t]*\S+)/,`number.nan`],[/@numberDate(?![ \t]*\S+)/,`number.date`],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,[`type`,`white`,`operators`,`white`]],{include:`@flowScalars`},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],object:[{include:`@whitespace`},{include:`@comment`},[/\}/,`@brackets`,`@pop`],[/,/,`delimiter.comma`],[/:(?= )/,`operators`],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,`type`],{include:`@flowCollections`},{include:`@flowScalars`},{include:`@tagHandle`},{include:`@anchor`},{include:`@flowNumber`},[/[^\},]+/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],array:[{include:`@whitespace`},{include:`@comment`},[/\]/,`@brackets`,`@pop`],[/,/,`delimiter.comma`],{include:`@flowCollections`},{include:`@flowScalars`},{include:`@tagHandle`},{include:`@anchor`},{include:`@flowNumber`},[/[^\],]+/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],multiString:[[/^( +).+$/,`string`,`@multiStringContinued.$1`]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":`string`,"@default":{token:`@rematch`,next:`@popall`}}}]],whitespace:[[/[ \t\r\n]+/,`white`]],comment:[[/#.*$/,`comment`]],flowCollections:[[/\[/,`@brackets`,`@array`],[/\{/,`@brackets`,`@object`]],flowScalars:[[/"([^"\\]|\\.)*$/,`string.invalid`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/'[^']*'/,`string`],[/"/,`string`,`@doubleQuotedString`]],doubleQuotedString:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]],blockStyle:[[/[>|][0-9]*[+-]?$/,`operators`,`@multiString`]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,`number`],[/@numberFloat(?=[ \t]*[,\]\}])/,`number.float`],[/@numberOctal(?=[ \t]*[,\]\}])/,`number.octal`],[/@numberHex(?=[ \t]*[,\]\}])/,`number.hex`],[/@numberInfinity(?=[ \t]*[,\]\}])/,`number.infinity`],[/@numberNaN(?=[ \t]*[,\]\}])/,`number.nan`],[/@numberDate(?=[ \t]*[,\]\}])/,`number.date`]],tagHandle:[[/\![^ ]*/,`tag`]],anchor:[[/[&*][^ ]+/,`namespace`]]}};export{t as conf,n as language};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><title>Kōbō</title><link rel=icon type=image/svg+xml href=/favicon.svg><meta charset=utf-8><meta name=description content="Kōbō — multi-workspace agent manager for Claude Code"><meta name=format-detection content="telephone=no"><meta name=msapplication-tap-highlight content=no><meta name=viewport content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width,height=device-height"> <script type="module" crossorigin src="/assets/index-
|
|
1
|
+
<!DOCTYPE html><html><head><title>Kōbō</title><link rel=icon type=image/svg+xml href=/favicon.svg><meta charset=utf-8><meta name=description content="Kōbō — multi-workspace agent manager for Claude Code"><meta name=format-detection content="telephone=no"><meta name=msapplication-tap-highlight content=no><meta name=viewport content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width,height=device-height"> <script type="module" crossorigin src="/assets/index-CC1iOXc-.js"></script>
|
|
2
2
|
<link rel="modulepreload" crossorigin href="/assets/chunk-QTnfLwEv.js">
|
|
3
3
|
<link rel="modulepreload" crossorigin href="/assets/vue.runtime.esm-bundler-JZnIeD9D.js">
|
|
4
4
|
<link rel="modulepreload" crossorigin href="/assets/QIcon-C6E-oEjI.js">
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,C as n,G as r,M as i,P as a,T as o,U as s,p as c}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{N as l,a as u,n as d,r as f}from"./QIcon-C6E-oEjI.js";import{u as p}from"./QSeparator-DWTCQxsa.js";import{$ as m,Q as h}from"./index-B7ivRaq9.js";import{d as g,f as _}from"./QTooltip-C6Vpr1qf.js";import{n as v,r as y}from"./documents-CdYfTEAV.js";import{t as b}from"./TouchPan-IMQRiAGn.js";var x=l({props:[`store`,`barStyle`,`verticalBarStyle`,`horizontalBarStyle`],setup(e){return()=>[o(`div`,{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":`true`,onMousedown:e.store.onVerticalMousedown}),o(`div`,{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":`true`,onMousedown:e.store.onHorizontalMousedown}),r(o(`div`,{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":`true`}),e.store.thumbVertDir),r(o(`div`,{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":`true`}),e.store.thumbHorizDir)]}}),S=[`vertical`,`horizontal`],C={vertical:{offset:`offsetY`,scroll:`scrollTop`,dir:`down`,dist:`y`},horizontal:{offset:`offsetX`,scroll:`scrollLeft`,dir:`right`,dist:`x`}},w={prevent:!0,mouse:!0,mouseAllDir:!0},T=e=>e>=250?50:Math.ceil(e/5),E=l({name:`QScrollArea`,props:{...f,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:()=>[0,0]},horizontalOffset:{type:Array,default:()=>[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(r,{slots:l,emit:f}){let E=e(!1),D=e(!1),O=e(!1),k={vertical:e(0),horizontal:e(0)},A={vertical:{ref:e(null),position:e(0),size:e(0)},horizontal:{ref:e(null),position:e(0),size:e(0)}},{proxy:j}=n(),M=d(r,j.$q),N=null,P,F=e(null),I=c(()=>`q-scrollarea`+(M.value?` q-scrollarea--dark`:``));Object.assign(k,{verticalInner:c(()=>k.vertical.value-r.verticalOffset[0]-r.verticalOffset[1]),horizontalInner:c(()=>k.horizontal.value-r.horizontalOffset[0]-r.horizontalOffset[1])}),A.vertical.percentage=c(()=>{let e=A.vertical.size.value-k.vertical.value;if(e<=0)return 0;let t=_(A.vertical.position.value/e,0,1);return Math.round(t*1e4)/1e4}),A.vertical.thumbHidden=c(()=>!(r.visible===null?O.value:r.visible)&&!E.value&&!D.value||A.vertical.size.value<=k.vertical.value+1),A.vertical.thumbStart=c(()=>r.verticalOffset[0]+A.vertical.percentage.value*(k.verticalInner.value-A.vertical.thumbSize.value)),A.vertical.thumbSize=c(()=>Math.round(_(k.verticalInner.value*k.verticalInner.value/A.vertical.size.value,T(k.verticalInner.value),k.verticalInner.value))),A.vertical.style=c(()=>({...r.thumbStyle,...r.verticalThumbStyle,top:`${A.vertical.thumbStart.value}px`,height:`${A.vertical.thumbSize.value}px`,right:`${r.horizontalOffset[1]}px`})),A.vertical.thumbClass=c(()=>`q-scrollarea__thumb q-scrollarea__thumb--v absolute-right`+(A.vertical.thumbHidden.value?` q-scrollarea__thumb--invisible`:``)),A.vertical.barClass=c(()=>`q-scrollarea__bar q-scrollarea__bar--v absolute-right`+(A.vertical.thumbHidden.value?` q-scrollarea__bar--invisible`:``)),A.horizontal.percentage=c(()=>{let e=A.horizontal.size.value-k.horizontal.value;if(e<=0)return 0;let t=_(J(A.horizontal.position.value)/e,0,1);return Math.round(t*1e4)/1e4}),A.horizontal.thumbHidden=c(()=>!(r.visible===null?O.value:r.visible)&&!E.value&&!D.value||A.horizontal.size.value<=k.horizontal.value+1),A.horizontal.thumbStart=c(()=>r.horizontalOffset[+!!j.$q.lang.rtl]+A.horizontal.percentage.value*(k.horizontalInner.value-A.horizontal.thumbSize.value)),A.horizontal.thumbSize=c(()=>Math.round(_(k.horizontalInner.value*k.horizontalInner.value/A.horizontal.size.value,T(k.horizontalInner.value),k.horizontalInner.value))),A.horizontal.style=c(()=>({...r.thumbStyle,...r.horizontalThumbStyle,[j.$q.lang.rtl?`right`:`left`]:`${A.horizontal.thumbStart.value}px`,width:`${A.horizontal.thumbSize.value}px`,bottom:`${r.verticalOffset[1]}px`})),A.horizontal.thumbClass=c(()=>`q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom`+(A.horizontal.thumbHidden.value?` q-scrollarea__thumb--invisible`:``)),A.horizontal.barClass=c(()=>`q-scrollarea__bar q-scrollarea__bar--h absolute-bottom`+(A.horizontal.thumbHidden.value?` q-scrollarea__bar--invisible`:``));let L=c(()=>A.vertical.thumbHidden.value&&A.horizontal.thumbHidden.value?r.contentStyle:r.contentActiveStyle);function R(){let e={};return S.forEach(t=>{let n=A[t];Object.assign(e,{[t+`Position`]:n.position.value,[t+`Percentage`]:n.percentage.value,[t+`Size`]:n.size.value,[t+`ContainerSize`]:k[t].value,[t+`ContainerInnerSize`]:k[t+`Inner`].value})}),e}let z=p(()=>{let e=R();e.ref=j,f(`scroll`,e)},0);function B(e,t,n){if(!S.includes(e)){console.error(`[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)`);return}(e===`vertical`?m:h)(F.value,t,n)}function V({height:e,width:t}){let n=!1;k.vertical.value!==e&&(k.vertical.value=e,n=!0),k.horizontal.value!==t&&(k.horizontal.value=t,n=!0),n&&K()}function H({position:e}){let t=!1;A.vertical.position.value!==e.top&&(A.vertical.position.value=e.top,t=!0),A.horizontal.position.value!==e.left&&(A.horizontal.position.value=e.left,t=!0),t&&K()}function U({height:e,width:t}){A.horizontal.size.value!==t&&(A.horizontal.size.value=t,K()),A.vertical.size.value!==e&&(A.vertical.size.value=e,K())}function W(e,t){let n=A[t];if(e.isFirst){if(n.thumbHidden.value)return;P=t===`horizontal`?J(n.position.value):n.position.value,D.value=!0}else if(!D.value)return;e.isFinal&&(D.value=!1);let r=C[t],i=(n.size.value-k[t].value)/(k[t+`Inner`].value-n.thumbSize.value),a=e.distance[r.dist],o=(e.direction===r.dir?1:-1)*(t===`horizontal`&&j.$q.lang.rtl?-1:1),s=P+o*a*i;q(t===`horizontal`?Y(s):s,t)}function G(e,t){let n=A[t];if(!n.thumbHidden.value){let i=t===`horizontal`&&j.$q.lang.rtl,a=t===`vertical`?r.verticalOffset[0]:r.horizontalOffset[+!!i],o=(i?k.horizontal.value-e.offsetX:e[C[t].offset])-a,s=n.thumbStart.value-a;if(o<s||o>s+n.thumbSize.value){let e=_((o-n.thumbSize.value/2)/(k[t+`Inner`].value-n.thumbSize.value),0,1);q(i?Y(e*Math.max(0,n.size.value-k[t].value)):e*Math.max(0,n.size.value-k[t].value),t)}n.ref.value!==null&&n.ref.value.dispatchEvent(new MouseEvent(e.type,e))}}function K(){E.value=!0,N!==null&&clearTimeout(N),N=setTimeout(()=>{N=null,E.value=!1},r.delay),r.onScroll!==void 0&&z()}function q(e,t){F.value[C[t].scroll]=e}function J(e,t=j.$q.lang.rtl){return t?g?Math.max(0,A.horizontal.size.value-k.horizontal.value)-e:-e:e}function Y(e,t=j.$q.lang.rtl){return t?g?Math.max(0,A.horizontal.size.value-k.horizontal.value)-e:-e:e}let X=null;function Z(){X!==null&&clearTimeout(X),X=setTimeout(()=>{X=null,O.value=!0},j.$q.platform.is.ios?50:0)}function Q(){X!==null&&(clearTimeout(X),X=null),O.value=!1}let $=null;s(()=>j.$q.lang.rtl,(e,t)=>{F.value!==null&&h(F.value,Y(J(A.horizontal.position.value,t),e))}),a(()=>{$={top:A.vertical.position.value,left:A.horizontal.position.value}}),t(()=>{if($===null)return;let e=F.value;e!==null&&(h(e,$.left),m(e,$.top))}),i(z.cancel),Object.assign(j,{getScrollTarget:()=>F.value,getScroll:R,getScrollPosition:()=>({top:A.vertical.position.value,left:A.horizontal.position.value}),getScrollPercentage:()=>({top:A.vertical.percentage.value,left:A.horizontal.percentage.value}),setScrollPosition:B,setScrollPercentage(e,t,n){let r=t*(A[e].size.value-k[e].value);B(e,e===`horizontal`?Y(r):r,n)}});let ee={scroll:A,thumbVertDir:[[b,e=>{W(e,`vertical`)},void 0,{vertical:!0,...w}]],thumbHorizDir:[[b,e=>{W(e,`horizontal`)},void 0,{horizontal:!0,...w}]],onVerticalMousedown(e){G(e,`vertical`)},onHorizontalMousedown(e){G(e,`horizontal`)}};return()=>o(`div`,{class:I.value,onMouseenter:Z,onMouseleave:Q},[o(`div`,{ref:F,class:`q-scrollarea__container scroll relative-position fit hide-scrollbar`,tabindex:r.tabindex===void 0?void 0:r.tabindex},[o(`div`,{class:`q-scrollarea__content absolute`,style:L.value},u(l.default,[o(y,{debounce:0,onResize:U})])),o(v,{axis:`both`,onScroll:H})]),o(y,{debounce:0,onResize:V}),o(x,{store:ee,barStyle:r.barStyle,verticalBarStyle:r.verticalBarStyle,horizontalBarStyle:r.horizontalBarStyle})])}});export{E as t};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,C as n,L as r,M as i,N as a,P as o,T as s,U as c,j as l,k as u,n as d,p as f}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{D as p,M as m,N as h,O as g,S as _,a as v,b as y,j as b,k as x,n as S,r as C,s as w,t as T}from"./QIcon-C6E-oEjI.js";import{o as E,u as D}from"./QSeparator-DWTCQxsa.js";import{a as O,c as k,d as A,l as j,n as ee,o as M,s as te,u as N}from"./QInput-BF8x4RTv.js";import{G as P,H as F,J as I,U as ne,V as re,W as L,Z as ie,ct as ae,dt as R,et as z,ft as oe,lt as se,nt as ce,ot as le,st as B,tt as ue,ut as de,vt as V}from"./index-B7ivRaq9.js";import{n as fe,r as pe}from"./use-quasar--cg_cUkd.js";import{a as me,c as he,d as ge,i as _e,l as ve,n as H,o as U,p as ye,r as be,s as xe,u as Se}from"./QTooltip-C6Vpr1qf.js";import{t as Ce}from"./QChip-Bc7L8LKe.js";var we=h({name:`QItemLabel`,props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){let n=f(()=>Number.parseInt(e.lines,10)),r=f(()=>`q-item__label`+(e.overline?` q-item__label--overline text-overline`:``)+(e.caption?` q-item__label--caption text-caption`:``)+(e.header?` q-item__label--header`:``)+(n.value===1?` ellipsis`:``)),i=f(()=>e.lines!==void 0&&n.value>1?{overflow:`hidden`,display:`-webkit-box`,"-webkit-box-orient":`vertical`,"-webkit-line-clamp":n.value}:null);return()=>s(`div`,{style:i.value,class:r.value},w(t.default))}}),Te=h({name:`QMenu`,inheritAttrs:!1,props:{...Se,...de,...C,...B,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:me},self:{type:String,validator:me},offset:{type:Array,validator:_e},scrollTarget:ie,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...se,`click`,`escapeKey`],setup(t,{slots:r,emit:a,attrs:o}){let l=null,u,p,h,_=n(),{proxy:v}=_,{$q:y}=v,b=e(null),x=e(!1),C=f(()=>!t.persistent&&!t.noRouteDismiss),T=S(t,y),{registerTick:D,removeTick:O}=R(),{registerTimeout:k}=oe(),{transitionProps:A,transitionStyle:j}=le(t),{localScrollTarget:ee,changeScrollEvent:M,unconfigureScrollTarget:te}=he(t,Ee),{anchorEl:N,canShow:re}=ve({showing:x}),{hide:ie}=ae({showing:x,canShow:re,handleShow:Se,handleHide:Ce,handleRouteChange:we,hideOnRouteChange:C,processOnMount:!0}),{showPortal:se,hidePortal:B,renderPortal:de}=ue(_,b,ke,`menu`),V={anchorEl:N,innerRef:b,onClickOutside(e){if(!t.persistent&&x.value)return ie(e),(e.type===`touchstart`||e.target.classList.contains(`q-dialog__backdrop`))&&m(e),!0}},fe=f(()=>H(t.anchor||(t.cover?`center middle`:`bottom start`),y.lang.rtl)),pe=f(()=>t.cover?fe.value:H(t.self||`top start`,y.lang.rtl)),me=f(()=>(t.square?` q-menu--square`:``)+(T.value?` q-menu--dark q-dark`:``)),ge=f(()=>t.autoClose?{onClick:De}:{}),_e=f(()=>x.value&&!t.persistent);c(_e,e=>{e?(L(Oe),U(V)):(P(Oe),xe(V))});function ye(){E(()=>{let e=b.value;e&&!e.contains(document.activeElement)&&(e=e.querySelector(`[autofocus][tabindex], [data-autofocus][tabindex]`)||e.querySelector(`[autofocus] [tabindex], [data-autofocus] [tabindex]`)||e.querySelector(`[autofocus], [data-autofocus]`)||e,e.focus({preventScroll:!0}))})}function Se(e){if(l=t.noRefocus?null:document.activeElement,F(W),se(),Ee(),u=void 0,e!==void 0&&(t.touchPosition||t.contextMenu)){let t=g(e);if(t.left!==void 0){let{top:e,left:n}=N.value.getBoundingClientRect();u={left:t.left-n,top:t.top-e}}}p===void 0&&(p=c(()=>y.screen.width+`|`+y.screen.height+`|`+t.self+`|`+t.anchor+`|`+y.lang.rtl,G)),t.noFocus||document.activeElement.blur(),D(()=>{G(),t.noFocus||ye()}),k(()=>{y.platform.is.ios&&(h=t.autoClose,b.value.click()),G(),se(!0),a(`show`,e)},t.transitionDuration)}function Ce(e){if(O(),B(),Te(!0),l!==null&&(e===void 0||!e.qClickOutside)){let t=(e?.type.indexOf(`key`)===0?l.closest(`[tabindex]:not([tabindex^="-"])`):void 0)||l;l=null,E(()=>{t.isConnected&&t.focus()})}k(()=>{B(!0),a(`hide`,e)},t.transitionDuration)}function we(){l=null}function Te(e){u=void 0,p!==void 0&&(p(),p=void 0),(e||x.value)&&(ne(W),te(),xe(V),P(Oe)),e||(l=null)}function Ee(){(N.value!==null||t.scrollTarget!==void 0)&&(ee.value=I(N.value,t.scrollTarget),M(ee.value,G))}function De(e){h?h=!1:(ce(v,e),a(`click`,e))}function W(e){_e.value&&!t.noFocus&&!z(b.value,e.target)&&ye()}function Oe(e){t.noEscDismiss||(a(`escapeKey`),ie(e))}function G(){be({targetEl:b.value,offset:t.offset,anchorEl:N.value,anchorOrigin:fe.value,selfOrigin:pe.value,absoluteOffset:u,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function ke(){return s(d,A.value,()=>x.value?s(`div`,{role:`menu`,...o,ref:b,tabindex:-1,class:[`q-menu q-position-engine scroll`+me.value,o.class],style:[o.style,j.value],...ge.value},w(r.default)):null)}return i(()=>{Te()}),Object.assign(v,{focus:ye,updatePosition:G}),de}}),Ee=`You are reviewing code changes on workspace "{{workspace_name}}" in project {{project_name}}.
|
|
2
|
-
|
|
3
|
-
Branch: {{branch_name}} (base: {{source_branch}})
|
|
4
|
-
Base commit: {{base_commit}}
|
|
5
|
-
|
|
6
|
-
If a code-review skill is available in this environment, invoke it to drive this audit. Otherwise follow the manual checklist below.
|
|
7
|
-
|
|
8
|
-
## Scope
|
|
9
|
-
|
|
10
|
-
Review ALL changes — both committed and uncommitted in the working tree:
|
|
11
|
-
- \`git diff {{base_commit}}..HEAD\` — committed changes on this branch
|
|
12
|
-
- \`git status\` and \`git diff\` — uncommitted changes (staged + unstaged)
|
|
13
|
-
|
|
14
|
-
## Diff summary
|
|
15
|
-
{{diff_stats}}
|
|
16
|
-
|
|
17
|
-
## Commits
|
|
18
|
-
{{commits}}
|
|
19
|
-
|
|
20
|
-
## Additional instructions
|
|
21
|
-
{{additional_instructions}}
|
|
22
|
-
|
|
23
|
-
## Output
|
|
24
|
-
|
|
25
|
-
If no review skill is available, structure your reply as:
|
|
26
|
-
1. Summary — what changed and why
|
|
27
|
-
2. Issues — bugs, regressions, security or perf concerns (with file:line)
|
|
28
|
-
3. Suggestions — refactor / improvement opportunities
|
|
29
|
-
4. Tests — coverage gaps
|
|
30
|
-
5. Verdict — ship / fix-then-ship / blocked
|
|
31
|
-
`,De="Code review gate — BEFORE marking the task done, run whichever code-review skill is configured in this environment. Brief it with: what you just implemented, the task title, and the commit SHA (via `git rev-parse HEAD`). Ask specifically whether the change matches the task scope, whether edge cases are handled, and whether the commit is clean. If no review skill is available, do a manual self-review against the same criteria.",W=`You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke any implementation, planning, or release skill (your environment may have several). Your ONLY job is to curate the Kōbō task list via MCP tools.`,Oe=`QA pass for workspace "{{workspace_name}}" in project {{project_name}}.
|
|
32
|
-
|
|
33
|
-
Branch: {{branch_name}}
|
|
34
|
-
Staging URL: {{staging_url}}
|
|
35
|
-
|
|
36
|
-
If a QA skill is configured in this environment, invoke it on {{staging_url}}. Otherwise, manually exercise the staging URL against the workspace's acceptance criteria and report findings.`,G=`Brainstorm the implementation approach. Explore the codebase to understand the existing structure. Ask clarifying questions if needed. When you have a clear, user-approved plan, save it as a plan file in the project.`,ke="You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke `superpowers:executing-plans` or any implementation skill. Your ONLY job is to curate the Kōbō task list via MCP tools.",Ae="You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke `/ship`, `/autoplan`, `/land-and-deploy`, or any implementation skill. Your ONLY job is to curate the Kōbō task list via MCP tools.",je="You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke `superpowers:executing-plans`, `/ship`, `/autoplan`, `/land-and-deploy`, or any other implementation, planning, or release skill. Your ONLY job is to curate the Kōbō task list via MCP tools.";function Me(e,t){return e===`custom`?(t??``).trim()||`You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke any implementation, planning, or release skill (your environment may have several). Your ONLY job is to curate the Kōbō task list via MCP tools.`:e===`superpowers+gstack`?je:e===`gstack`?Ae:ke}var Ne=h({name:`QField`,inheritAttrs:!1,props:{...N,tag:{type:String,default:`label`}},emits:j,setup(){return k(A({tagProp:!0}))}}),K=1e3,Pe=[`start`,`center`,`end`,`start-force`,`center-force`,`end-force`],Fe=Array.prototype.filter,Ie=window.getComputedStyle(document.body).overflowAnchor===void 0?p:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;let n=e.children||[];Fe.call(n,e=>e.dataset&&e.dataset.qVsAnchor!==void 0).forEach(e=>{delete e.dataset.qVsAnchor});let r=n[t];r?.dataset&&(r.dataset.qVsAnchor=``)}))};function q(e,t){return e+t}function Le(e,t,n,r,i,a,o,s){let c=e===window?document.scrollingElement||document.documentElement:e,l=i?`offsetWidth`:`offsetHeight`,u={scrollStart:0,scrollViewSize:-o-s,scrollMaxSize:0,offsetStart:-o,offsetEnd:-s};if(i?(e===window?(u.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,u.scrollViewSize+=document.documentElement.clientWidth):(u.scrollStart=c.scrollLeft,u.scrollViewSize+=c.clientWidth),u.scrollMaxSize=c.scrollWidth,a&&(u.scrollStart=(ge?u.scrollMaxSize-u.scrollViewSize:0)-u.scrollStart)):(e===window?(u.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,u.scrollViewSize+=document.documentElement.clientHeight):(u.scrollStart=c.scrollTop,u.scrollViewSize+=c.clientHeight),u.scrollMaxSize=c.scrollHeight),n!==null)for(let e=n.previousElementSibling;e!==null;e=e.previousElementSibling)e.classList.contains(`q-virtual-scroll--skip`)||(u.offsetStart+=e[l]);if(r!==null)for(let e=r.nextElementSibling;e!==null;e=e.nextElementSibling)e.classList.contains(`q-virtual-scroll--skip`)||(u.offsetEnd+=e[l]);if(t!==e){let n=c.getBoundingClientRect(),r=t.getBoundingClientRect();i?(u.offsetStart+=r.left-n.left,u.offsetEnd-=r.width):(u.offsetStart+=r.top-n.top,u.offsetEnd-=r.height),e!==window&&(u.offsetStart+=u.scrollStart),u.offsetEnd+=u.scrollMaxSize-u.offsetStart}return u}function J(e,t,n,r){t===`end`&&(t=(e===window?document.body:e)[n?`scrollWidth`:`scrollHeight`]),e===window?n?(r&&(t=(ge?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):n?(r&&(t=(ge?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Y(e,t,n,r){if(n>=r)return 0;let i=t.length,a=Math.floor(n/K),o=Math.floor((r-1)/K)+1,s=e.slice(a,o).reduce(q,0);return n%K!==0&&(s-=t.slice(a*K,n).reduce(q,0)),r%K!==0&&r!==i&&(s-=t.slice(r,o*K).reduce(q,0)),s}var X={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]};function Re({virtualScrollLength:r,getVirtualScrollTarget:a,getVirtualScrollEl:d,virtualScrollItemSizeComputed:p}){let{props:m,emit:h,proxy:g}=n(),{$q:_}=g,v,y,b,x=[],S,C=e(0),w=e(0),T=e({}),E=e(null),O=e(null),k=e(null),A=e({from:0,to:0}),j=f(()=>m.tableColspan===void 0?100:m.tableColspan);p===void 0&&(p=f(()=>m.virtualScrollItemSize));let ee=f(()=>p.value+`;`+m.virtualScrollHorizontal);c(f(()=>ee.value+`;`+m.virtualScrollSliceRatioBefore+`;`+m.virtualScrollSliceRatioAfter),()=>{L()}),c(ee,M);function M(){re(y,!0)}function te(e){re(e===void 0?y:e)}function N(e,t){let n=a();if(n==null||n.nodeType===8)return;let i=Le(n,d(),E.value,O.value,m.virtualScrollHorizontal,_.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd);b!==i.scrollViewSize&&L(i.scrollViewSize),F(n,i,Math.min(r.value-1,Math.max(0,Number.parseInt(e,10)||0)),0,Pe.includes(t)?t:y!==-1&&e>y?`end`:`start`)}function P(){let e=a();if(e==null||e.nodeType===8)return;let t=Le(e,d(),E.value,O.value,m.virtualScrollHorizontal,_.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd),n=r.value-1,i=t.scrollMaxSize-t.offsetStart-t.offsetEnd-w.value;if(v===t.scrollStart)return;if(t.scrollMaxSize<=0){F(e,t,0,0);return}b!==t.scrollViewSize&&L(t.scrollViewSize),I(A.value.from);let o=Math.floor(t.scrollMaxSize-Math.max(t.scrollViewSize,t.offsetEnd)-Math.min(S[n],t.scrollViewSize/2));if(o>0&&Math.ceil(t.scrollStart)>=o){F(e,t,n,t.scrollMaxSize-t.offsetEnd-x.reduce(q,0));return}let s=0,c=t.scrollStart-t.offsetStart,l=c;if(c<=i&&c+t.scrollViewSize>=C.value)c-=C.value,s=A.value.from,l=c;else for(let e=0;c>=x[e]&&s<n;e++)c-=x[e],s+=K;for(;c>0&&s<n;)c-=S[s],c>-t.scrollViewSize?(s++,l=c):l=S[s]+c;F(e,t,s,l)}function F(e,t,n,i,a){let o=typeof a==`string`&&a.includes(`-force`),s=o?a.replace(`-force`,``):a,c=s===void 0?`start`:s,l=Math.max(0,n-T.value[c]),u=l+T.value.total;u>r.value&&(u=r.value,l=Math.max(0,u-T.value.total)),v=t.scrollStart;let d=l!==A.value.from||u!==A.value.to;if(!d&&s===void 0){ae(n);return}let{activeElement:f}=document,p=k.value;d&&p!==null&&p!==f&&p.contains(f)&&(p.addEventListener(`focusout`,ne),setTimeout(()=>{p?.removeEventListener(`focusout`,ne)},0)),Ie(p,n-l);let h=s===void 0?0:S.slice(l,n).reduce(q,0);if(d){let e=u>=A.value.from&&l<=A.value.to?A.value.to:u;A.value={from:l,to:e},C.value=Y(x,S,0,l),w.value=Y(x,S,u,r.value),requestAnimationFrame(()=>{A.value.to!==u&&v===t.scrollStart&&(A.value={from:A.value.from,to:u},w.value=Y(x,S,u,r.value))})}requestAnimationFrame(()=>{if(v!==t.scrollStart)return;d&&I(l);let r=S.slice(l,n).reduce(q,0),a=r+t.offsetStart+C.value,c=a+S[n],u=a+i;if(s!==void 0){let e=r-h,i=t.scrollStart+e;u=!o&&i<a&&c<i+t.scrollViewSize?i:s===`end`?c-t.scrollViewSize:a-(s===`start`?0:Math.round((t.scrollViewSize-S[n])/2))}v=u,J(e,u,m.virtualScrollHorizontal,_.lang.rtl),ae(n)})}function I(e){let t=k.value;if(t){let n=Fe.call(t.children,e=>e.classList&&!e.classList.contains(`q-virtual-scroll--skip`)),r=n.length,i=m.virtualScrollHorizontal?e=>e.getBoundingClientRect().width:e=>e.offsetHeight,a=e,o,s;for(let e=0;e<r;){for(o=i(n[e]),e++;e<r&&n[e].classList.contains(`q-virtual-scroll--with-prev`);)o+=i(n[e]),e++;s=o-S[a],s!==0&&(S[a]+=s,x[Math.floor(a/K)]+=s),a++}}}function ne(){k.value?.focus()}function re(e,t){let n=Number(p.value);(t||!Array.isArray(S))&&(S=[]);let i=S.length;S.length=r.value;for(let e=r.value-1;e>=i;e--)S[e]=n;let a=Math.floor((r.value-1)/K);x=[];for(let e=0;e<=a;e++){let t=0,n=Math.min((e+1)*K,r.value);for(let r=e*K;r<n;r++)t+=S[r];x.push(t)}y=-1,v=void 0,C.value=Y(x,S,0,A.value.from),w.value=Y(x,S,A.value.to,r.value),e>=0?(I(A.value.from),u(()=>{N(e)})):R()}function L(e){if(e===void 0&&typeof window<`u`){let t=a();t!=null&&t.nodeType!==8&&(e=Le(t,d(),E.value,O.value,m.virtualScrollHorizontal,_.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd).scrollViewSize)}b=e;let t=Number.parseFloat(m.virtualScrollSliceRatioBefore)||0,n=Number.parseFloat(m.virtualScrollSliceRatioAfter)||0,r=1+t+n,i=e===void 0||e<=0?1:Math.ceil(e/p.value),o=Math.max(1,i,Math.ceil((m.virtualScrollSliceSize>0?m.virtualScrollSliceSize:10)/r));T.value={total:Math.ceil(o*r),start:Math.ceil(o*t),center:Math.ceil(o*(.5+t)),end:Math.ceil(o*(1+t)),view:i}}function ie(e,t){let n=m.virtualScrollHorizontal?`width`:`height`,r={[`--q-virtual-scroll-item-`+n]:p.value+`px`};return[e===`tbody`?s(e,{class:`q-virtual-scroll__padding`,key:`before`,ref:E},[s(`tr`,[s(`td`,{style:{[n]:`${C.value}px`,...r},colspan:j.value})])]):s(e,{class:`q-virtual-scroll__padding`,key:`before`,ref:E,style:{[n]:`${C.value}px`,...r}}),s(e,{class:`q-virtual-scroll__content`,key:`content`,ref:k,tabindex:-1},t.flat()),e===`tbody`?s(e,{class:`q-virtual-scroll__padding`,key:`after`,ref:O},[s(`tr`,[s(`td`,{style:{[n]:`${w.value}px`,...r},colspan:j.value})])]):s(e,{class:`q-virtual-scroll__padding`,key:`after`,ref:O,style:{[n]:`${w.value}px`,...r}})]}function ae(e){y!==e&&(m.onVirtualScroll!==void 0&&h(`virtualScroll`,{index:e,from:A.value.from,to:A.value.to-1,direction:e<y?`decrease`:`increase`,ref:g}),y=e)}L();let R=D(P,_.platform.is.ios?120:35);l(()=>{L()});let z=!1;return o(()=>{z=!0}),t(()=>{if(!z)return;let e=a();v!==void 0&&e!=null&&e.nodeType!==8?J(e,v,m.virtualScrollHorizontal,_.lang.rtl):N(y)}),i(()=>{R.cancel()}),Object.assign(g,{scrollTo:N,reset:M,refresh:te}),{virtualScrollSliceRange:A,virtualScrollSliceSizeComputed:T,setVirtualScrollSize:L,onVirtualScrollEvt:R,localResetVirtualScroll:re,padVirtualScroll:ie,scrollTo:N,reset:M,refresh:te}}var ze=e=>[`add`,`add-unique`,`toggle`].includes(e),Be=".*+?^${}()|[]\\",Ve=Object.keys(N);function He(e,t){if(typeof e==`function`)return e;let n=e===void 0?t:e;return e=>typeof e==`object`&&e&&n in e?e[n]:e}var Ue=h({name:`QSelect`,inheritAttrs:!1,props:{...X,...M,...N,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:ze},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>[`default`,`menu`,`dialog`].includes(e),default:`default`},virtualScrollItemSize:X.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...j,`add`,`remove`,`inputValue`,`keyup`,`keypress`,`keydown`,`popupShow`,`popupHide`,`filterAbort`],setup(t,{slots:o,emit:l}){let{proxy:d}=n(),{$q:p}=d,h=e(!1),g=e(!1),S=e(-1),C=e(``),w=e(!1),E=e(!1),D=null,j=null,M,N,P,F=null,I,ne,L,ie,ae=e(null),R=e(null),z=e(null),oe=e(null),se=e(null),ce=O(t),le=ee(lt),B=f(()=>Array.isArray(t.options)?t.options.length:0),{virtualScrollSliceRange:ue,virtualScrollSliceSizeComputed:de,localResetVirtualScroll:me,padVirtualScroll:he,onVirtualScrollEvt:ge,scrollTo:_e,setVirtualScrollSize:ve}=Re({virtualScrollLength:B,getVirtualScrollTarget:at,getVirtualScrollEl:it,virtualScrollItemSizeComputed:f(()=>t.virtualScrollItemSize===void 0?t.optionsDense?24:48:t.virtualScrollItemSize)}),H=A(),U=f(()=>{let e=t.mapOptions&&!t.multiple,n=t.modelValue!==void 0&&(t.modelValue!==null||e)?t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions&&Array.isArray(t.options)){let r=t.mapOptions&&M!==void 0?M:[],i=n.map(e=>Ze(e,r));return t.modelValue===null&&e?i.filter(e=>e!==null):i}return n}),be=f(()=>{let e={};return Ve.forEach(n=>{let r=t[n];r!==void 0&&(e[n]=r)}),e}),xe=f(()=>t.optionsDark===null?H.isDark.value:t.optionsDark),Se=f(()=>te(U.value)),Ee=f(()=>{let e=`q-field__input q-placeholder col`;return t.hideSelected||U.value.length===0?[e,t.inputClass]:(e+=` q-field__input--padding`,t.inputClass===void 0?e:[e,t.inputClass])}),De=f(()=>(t.virtualScrollHorizontal?`q-virtual-scroll--horizontal`:``)+(t.popupContentClass?` `+t.popupContentClass:``)),W=f(()=>B.value===0),Oe=f(()=>U.value.map(e=>Y.value(e)).join(`, `)),G=f(()=>t.displayValue===void 0?Oe.value:t.displayValue),ke=f(()=>t.optionsHtml?()=>!0:e=>e?.html===!0),Ae=f(()=>t.displayValueHtml||t.displayValue===void 0&&(t.optionsHtml||U.value.some(ke.value))),je=f(()=>H.focused.value?t.tabindex:-1),Me=f(()=>{let e={tabindex:t.tabindex,role:`combobox`,"aria-label":t.label,"aria-readonly":t.readonly?`true`:`false`,"aria-autocomplete":t.useInput?`list`:`none`,"aria-expanded":h.value?`true`:`false`,"aria-controls":`${H.targetUid.value}_lb`};return S.value>=0&&(e[`aria-activedescendant`]=`${H.targetUid.value}_${S.value}`),e}),K=f(()=>({id:`${H.targetUid.value}_lb`,role:`listbox`,"aria-multiselectable":t.multiple?`true`:`false`})),Pe=f(()=>U.value.map((e,t)=>({index:t,opt:e,html:ke.value(e),selected:!0,removeAtIndex:qe,toggleOption:Z,tabindex:je.value}))),Fe=f(()=>{if(B.value===0)return[];let{from:e,to:n}=ue.value;return t.options.slice(e,n).map((n,r)=>{let i=X.value(n)===!0,a=Qe(n),o=e+r,s={clickable:!0,active:a,activeClass:Le.value,manualFocus:!0,focused:!1,disable:i,tabindex:-1,dense:t.optionsDense,dark:xe.value,role:`option`,"aria-selected":a?`true`:`false`,id:`${H.targetUid.value}_${o}`,onClick:()=>{Z(n)}};return i||(S.value===o&&(s.focused=!0),p.platform.is.desktop&&(s.onMousemove=()=>{h.value&&Ye(o)})),{index:o,opt:n,html:ke.value(n),label:Y.value(n),selected:s.active,focused:s.focused,toggleOption:Z,setOptionIndex:Ye,itemProps:s}})}),Ie=f(()=>t.dropdownIcon===void 0?p.iconSet.arrow.dropdown:t.dropdownIcon),q=f(()=>!t.optionsCover&&!t.outlined&&!t.standout&&!t.borderless&&!t.rounded),Le=f(()=>t.optionsSelectedClass===void 0?t.color===void 0?``:`text-${t.color}`:t.optionsSelectedClass),J=f(()=>He(t.optionValue,`value`)),Y=f(()=>He(t.optionLabel,`label`)),X=f(()=>He(t.optionDisable,`disable`)),Ue=f(()=>U.value.map(J.value)),We=f(()=>{let e={onInput:lt,onChange:le,onKeydown:rt,onKeyup:tt,onKeypress:nt,onFocus:$e,onClick(e){N&&b(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=le,e});c(U,e=>{M=e,t.useInput&&t.fillInput&&!t.multiple&&!H.innerLoading.value&&(!g.value&&!h.value||!Se.value)&&(P||$(),(g.value||h.value)&&ft(``))},{immediate:!0}),c(()=>t.fillInput,$),c(h,wt),c(B,Tt);function Ge(e){return t.emitValue?J.value(e):e}function Ke(e){if(e!==-1&&e<U.value.length)if(t.multiple){let n=[...t.modelValue];l(`remove`,{index:e,value:n.splice(e,1)[0]}),l(`update:modelValue`,n)}else l(`update:modelValue`,null)}function qe(e){Ke(e),H.focus()}function Je(e,n){let r=Ge(e);if(!t.multiple){t.fillInput&&dt(Y.value(e),!0,!0),l(`update:modelValue`,r);return}if(U.value.length===0){l(`add`,{index:0,value:r}),l(`update:modelValue`,t.multiple?[r]:r);return}if(n&&Qe(e)||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;let i=[...t.modelValue];l(`add`,{index:i.length,value:r}),i.push(r),l(`update:modelValue`,i)}function Z(e,n){if(!H.editable.value||e===void 0||X.value(e)===!0)return;let r=J.value(e);if(!t.multiple){n||(dt(t.fillInput?Y.value(e):``,!0,!0),Q()),R.value?.focus(),(U.value.length===0||!V(J.value(U.value[0]),r))&&l(`update:modelValue`,t.emitValue?r:e);return}if((!N||w.value)&&H.focus(),$e(),U.value.length===0){let n=t.emitValue?r:e;l(`add`,{index:0,value:n}),l(`update:modelValue`,t.multiple?[n]:n);return}let i=[...t.modelValue],a=Ue.value.findIndex(e=>V(e,r));if(a!==-1)l(`remove`,{index:a,value:i.splice(a,1)[0]});else{if(t.maxValues!==void 0&&i.length>=t.maxValues)return;let n=t.emitValue?r:e;l(`add`,{index:i.length,value:n}),i.push(n)}l(`update:modelValue`,i)}function Ye(e){if(!p.platform.is.desktop)return;let t=e!==-1&&e<B.value?e:-1;S.value!==t&&(S.value=t)}function Xe(e=1,n){if(h.value){let r=S.value;do r=ye(r+e,-1,B.value-1);while(r!==-1&&r!==S.value&&X.value(t.options[r])===!0);S.value!==r&&(Ye(r),_e(r),!n&&t.useInput&&t.fillInput&&ut(r>=0?Y.value(t.options[r]):I,!0))}}function Ze(e,n){let r=t=>V(J.value(t),e);return t.options.find(r)||n.find(r)||e}function Qe(e){let t=J.value(e);return Ue.value.find(e=>V(e,t))!==void 0}function $e(e){t.useInput&&R.value!==null&&(e===void 0||R.value===e.target&&e.target.value===Oe.value)&&R.value.select()}function et(e){y(e,27)&&h.value&&(b(e),Q(),$()),l(`keyup`,e)}function tt(e){let{value:n}=e.target;if(e.keyCode!==void 0){et(e);return}if(e.target.value=``,D!==null&&(clearTimeout(D),D=null),j!==null&&(clearTimeout(j),j=null),$(),typeof n==`string`&&n.length!==0){let e=n.toLocaleLowerCase(),r=n=>{let r=t.options.find(t=>String(n.value(t)).toLocaleLowerCase()===e);return r===void 0?!1:(U.value.includes(r)?Q():Z(r),!0)},i=e=>{!r(J)&&!e&&!r(Y)&&ft(n,!0,()=>i(!0))};i()}else H.clearValue(e)}function nt(e){l(`keypress`,e)}function rt(e){if(l(`keydown`,e),_(e))return;let n=C.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),r=!e.shiftKey&&!t.disableTabSelection&&!t.multiple&&(S.value!==-1||n);if(e.keyCode===27){x(e);return}if(e.keyCode===9&&!r){St();return}if(e.target===void 0||e.target.id!==H.targetUid.value||!H.editable.value)return;if(e.keyCode===40&&!H.innerLoading.value&&!h.value){m(e),Ct();return}if(e.keyCode===8&&(t.useChips||t.clearable)&&!t.hideSelected&&C.value.length===0){t.multiple&&Array.isArray(t.modelValue)?Ke(t.modelValue.length-1):!t.multiple&&t.modelValue!==null&&l(`update:modelValue`,null);return}(e.keyCode===35||e.keyCode===36)&&(typeof C.value!=`string`||C.value.length===0)&&(m(e),S.value=-1,Xe(e.keyCode===36?1:-1,t.multiple)),(e.keyCode===33||e.keyCode===34)&&de.value!==void 0&&(m(e),S.value=Math.max(-1,Math.min(B.value,S.value+(e.keyCode===33?-1:1)*de.value.view)),Xe(e.keyCode===33?1:-1,t.multiple)),(e.keyCode===38||e.keyCode===40)&&(m(e),Xe(e.keyCode===38?-1:1,t.multiple));let i=B.value;if((L===void 0||ie<Date.now())&&(L=``),i>0&&!t.useInput&&e.key!==void 0&&e.key.length===1&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&(e.keyCode!==32||L.length!==0)){h.value||Ct(e);let n=e.key.toLocaleLowerCase(),r=L.length===1&&L[0]===n;ie=Date.now()+1500,r||(m(e),L+=n);let a=RegExp(`^`+[...L].map(e=>Be.includes(e)?`\\`+e:e).join(`.*`),`i`),o=S.value;if(r||o<0||!a.test(Y.value(t.options[o])))do o=ye(o+1,-1,i-1);while(o!==S.value&&(X.value(t.options[o])===!0||!a.test(Y.value(t.options[o]))));S.value!==o&&u(()=>{Ye(o),_e(o),o>=0&&t.useInput&&t.fillInput&&ut(Y.value(t.options[o]),!0)});return}if(!(e.keyCode!==13&&(e.keyCode!==32||t.useInput||L!==``)&&(e.keyCode!==9||!r))){if(e.keyCode!==9&&m(e),S.value!==-1&&S.value<i){Z(t.options[S.value]);return}if(n){let e=(e,n)=>{if(n){if(!ze(n))return}else n=t.newValueMode;dt(``,!t.multiple,!0),e!=null&&((n===`toggle`?Z:Je)(e,n===`add-unique`),t.multiple||(R.value?.focus(),Q()))};if(t.onNewValue===void 0?e(C.value):l(`newValue`,C.value,e),!t.multiple)return}h.value?St():H.innerLoading.value||Ct()}}function it(){return N?se.value:z.value!==null&&z.value.contentEl!==null?z.value.contentEl:void 0}function at(){return it()}function ot(){return t.hideSelected?[]:o[`selected-item`]===void 0?o.selected===void 0?t.useChips?Pe.value.map((e,n)=>s(Ce,{key:`option-`+n,removable:H.editable.value&&X.value(e.opt)!==!0,dense:!0,textColor:t.color,tabindex:je.value,onRemove(){e.removeAtIndex(n)}},()=>s(`span`,{class:`ellipsis`,[e.html?`innerHTML`:`textContent`]:Y.value(e.opt)}))):[s(`span`,{class:`ellipsis`,[Ae.value?`innerHTML`:`textContent`]:G.value})]:[o.selected()].flat():Pe.value.map(e=>o[`selected-item`](e))}function st(){if(W.value)return o[`no-option`]===void 0?void 0:o[`no-option`]({inputValue:C.value});let e=o.option===void 0?e=>s(pe,{key:e.index,...e.itemProps},()=>s(fe,()=>s(we,()=>s(`span`,{[e.html?`innerHTML`:`textContent`]:e.label})))):o.option,t=he(`div`,Fe.value.map(e));return o[`before-options`]!==void 0&&(t=[o[`before-options`](),...t].flat()),v(o[`after-options`],t)}function ct(e,n){let r=n?{...Me.value,...H.splitAttrs.attributes.value}:void 0,i={ref:n?R:void 0,key:`i_t`,class:Ee.value,style:t.inputStyle,value:C.value===void 0?``:C.value,type:`search`,...r,id:n?H.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":e===!0||t.autofocus||void 0,disabled:t.disable,readonly:t.readonly,...We.value};return!e&&N&&(Array.isArray(i.class)?i.class=[...i.class,`no-pointer-events`]:i.class+=` no-pointer-events`),s(`input`,i)}function lt(e){D!==null&&(clearTimeout(D),D=null),j!==null&&(clearTimeout(j),j=null),!e?.target?.qComposing&&(ut(e.target.value||``),P=!0,I=C.value,!H.focused.value&&(!N||w.value)&&H.focus(),t.onFilter!==void 0&&(D=setTimeout(()=>{D=null,ft(C.value)},t.inputDebounce)))}function ut(e,n){C.value!==e&&(C.value=e,n||t.inputDebounce===0||t.inputDebounce===`0`?l(`inputValue`,e):j=setTimeout(()=>{j=null,l(`inputValue`,e)},t.inputDebounce))}function dt(e,n,r){P=r!==!0,t.useInput&&(ut(e,!0),(n||P)&&(I=e),n||ft(e))}function ft(e,n,r){if(t.onFilter===void 0||!n&&!H.focused.value)return;H.innerLoading.value?l(`filterAbort`):(H.innerLoading.value=!0,E.value=!0),e!==``&&!t.multiple&&U.value.length!==0&&!P&&e===Y.value(U.value[0])&&(e=``);let i=setTimeout(()=>{h.value&&=!1},10);F!==null&&clearTimeout(F),F=i,l(`filter`,e,(e,t)=>{(n||H.focused.value)&&F===i&&(clearTimeout(F),typeof e==`function`&&e(),E.value=!1,u(()=>{H.innerLoading.value=!1,H.editable.value&&(n?h.value&&Q():h.value?wt(!0):h.value=!0),typeof t==`function`&&u(()=>{t(d)}),typeof r==`function`&&u(()=>{r(d)})}))},()=>{H.focused.value&&F===i&&(clearTimeout(F),H.innerLoading.value=!1,E.value=!1),h.value&&=!1})}function pt(){return s(Te,{ref:z,class:De.value,style:t.popupContentStyle,modelValue:h.value,fit:!t.menuShrink,cover:t.optionsCover&&!W.value&&!t.useInput,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:xe.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:q.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...K.value,onScrollPassive:ge,onBeforeShow:Dt,onBeforeHide:mt,onShow:ht},st)}function mt(e){Ot(e),St()}function ht(){ve()}function gt(e){b(e),R.value?.focus(),w.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function _t(e){b(e),u(()=>{w.value=!1})}function vt(){let e=[s(Ne,{class:`col-auto ${H.fieldClass.value}`,...be.value,for:H.targetUid.value,dark:xe.value,square:!0,loading:E.value,itemAligned:!1,filled:!0,stackLabel:C.value.length!==0,...H.splitAttrs.listeners.value,onFocus:gt,onBlur:_t},{...o,rawControl:()=>H.getControl(!0),before:void 0,after:void 0})];return h.value&&e.push(s(`div`,{ref:se,class:De.value+` scroll`,style:t.popupContentStyle,...K.value,onClick:x,onScrollPassive:ge},st())),s(re,{ref:oe,modelValue:g.value,position:t.useInput?`top`:void 0,transitionShow:ne,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Dt,onBeforeHide:yt,onHide:bt,onShow:xt},()=>s(`div`,{class:`q-select__dialog`+(xe.value?` q-select__dialog--dark q-dark`:``)+(w.value?` q-select__dialog--focused`:``)},e))}function yt(e){Ot(e),oe.value!==null&&oe.value.__updateRefocusTarget(H.rootRef.value.querySelector(`.q-field__native > [tabindex]:last-child`)),H.focused.value=!1}function bt(e){Q(),H.focused.value||l(`blur`,e),$()}function xt(){let e=document.activeElement;(e===null||e.id!==H.targetUid.value)&&R.value!==null&&R.value!==e&&R.value.focus(),ve()}function St(){g.value||(S.value=-1,h.value&&=!1,H.focused.value||(F!==null&&(clearTimeout(F),F=null),H.innerLoading.value&&(l(`filterAbort`),H.innerLoading.value=!1,E.value=!1)))}function Ct(e){H.editable.value&&(N?(H.onControlFocusin(e),g.value=!0,u(()=>{H.focus()})):H.focus(),t.onFilter===void 0?(!W.value||o[`no-option`]!==void 0)&&(h.value=!0):ft(C.value))}function Q(){g.value=!1,St()}function $(){t.useInput&&dt(!t.multiple&&t.fillInput&&U.value.length!==0&&Y.value(U.value[0])||``,!0,!0)}function wt(e){let n=-1;if(e){if(U.value.length!==0){let e=J.value(U.value[0]);n=t.options.findIndex(t=>V(J.value(t),e))}me(n)}Ye(n)}function Tt(e,t){h.value&&!H.innerLoading.value&&(me(-1,!0),u(()=>{h.value&&!H.innerLoading.value&&(e>t?me():wt(!0))}))}function Et(){g.value||z.value?.updatePosition()}function Dt(e){e!==void 0&&b(e),l(`popupShow`,e),H.hasPopupOpen=!0,H.onControlFocusin(e)}function Ot(e){e!==void 0&&b(e),l(`popupHide`,e),H.hasPopupOpen=!1,H.onControlFocusout(e)}function kt(){N=!p.platform.is.mobile&&t.behavior!==`dialog`?!1:t.behavior!==`menu`&&(t.useInput?o[`no-option`]!==void 0||t.onFilter!==void 0||!W.value:!0),ne=p.platform.is.ios&&N&&t.useInput?`fade`:t.transitionShow}return a(kt),r(Et),kt(),i(()=>{D!==null&&clearTimeout(D),j!==null&&clearTimeout(j)}),Object.assign(d,{showPopup:Ct,hidePopup:Q,removeAtIndex:Ke,add:Je,toggleOption:Z,getOptionIndex:()=>S.value,setOptionIndex:Ye,moveOptionSelection:Xe,filter:ft,updateMenuPosition:Et,updateInputValue:dt,isOptionSelected:Qe,getEmittingOptionValue:Ge,isOptionDisabled:(...e)=>X.value(...e)===!0,getOptionValue:(...e)=>J.value(...e),getOptionLabel:(...e)=>Y.value(...e)}),Object.assign(H,{innerValue:U,fieldClass:f(()=>`q-select q-field--auto-height q-select--with${t.useInput?``:`out`}-input q-select--with${t.useChips?``:`out`}-chips q-select--${t.multiple?`multiple`:`single`}`),inputRef:ae,targetRef:R,hasValue:Se,showPopup:Ct,floatingLabel:f(()=>!t.hideSelected&&Se.value||typeof C.value==`number`||C.value.length!==0||te(t.displayValue)),getControlChild:()=>{if(H.editable.value&&(g.value||!W.value||o[`no-option`]!==void 0))return N?vt():pt();H.hasPopupOpen&&=!1},controlEvents:{onFocusin(e){H.onControlFocusin(e)},onFocusout(e){H.onControlFocusout(e,()=>{$(),St()})},onClick(e){if(x(e),!N&&h.value){St(),R.value?.focus();return}Ct(e)}},getControl:e=>{let n=ot(),r=e===!0||!g.value||!N;if(t.useInput)n.push(ct(e,r));else if(H.editable.value){let i=r?Me.value:void 0;n.push(s(`input`,{ref:r?R:void 0,key:`d_t`,class:`q-select__focus-target`,id:r?H.targetUid.value:void 0,value:G.value,readonly:!0,"data-autofocus":e===!0||t.autofocus||void 0,...i,onKeydown:rt,onKeyup:et,onKeypress:nt})),r&&typeof t.autocomplete==`string`&&t.autocomplete.length!==0&&n.push(s(`input`,{class:`q-select__autocomplete-input`,autocomplete:t.autocomplete,tabindex:-1,onKeyup:tt}))}if(ce.value!==void 0&&!t.disable&&Ue.value.length!==0){let e=Ue.value.map(e=>s(`option`,{value:e,selected:!0}));n.push(s(`select`,{class:`hidden`,name:ce.value,multiple:t.multiple},e))}return s(`div`,{class:`q-field__native row items-center`,...t.useInput||!r?void 0:H.splitAttrs.attributes.value,...H.splitAttrs.listeners.value},n)},getInnerAppend:()=>!t.loading&&!E.value&&!t.hideDropdownIcon?[s(T,{class:`q-select__dropdown-icon`+(h.value?` rotate-180`:``),name:Ie.value})]:null}),k(H)}});export{Oe as a,Te as c,G as i,we as l,W as n,Ee as o,De as r,Me as s,Ue as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,C as t,F as n,M as r,T as i,U as a,k as o,n as s,p as c}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{C as l,E as u,M as d,N as f,b as p,k as m,s as h,w as g}from"./QIcon-C6E-oEjI.js";import{d as _,f as v,n as y}from"./QSeparator-DWTCQxsa.js";import{G as b,J as x,W as S,Y as C,Z as w,at as T,ct as ee,dt as te,ft as ne,lt as E,ot as re,st as D,tt as ie,ut as ae}from"./index-B7ivRaq9.js";var O=f({name:`QSlideTransition`,props:{appear:Boolean,duration:{type:Number,default:300}},emits:[`show`,`hide`],setup(e,{slots:t,emit:n}){let a=!1,o,c,l=null,u=null,d,f;function p(){o?.(),o=null,a=!1,l!==null&&(clearTimeout(l),l=null),u!==null&&(clearTimeout(u),u=null),c?.removeEventListener(`transitionend`,d),d=null}function m(t,n,r){n!==void 0&&(t.style.height=`${n}px`),t.style.transition=`height ${e.duration}ms cubic-bezier(.25, .8, .50, 1)`,a=!0,o=r}function h(e,t){e.style.overflowY=null,e.style.height=null,e.style.transition=null,p(),t!==f&&n(t)}function g(t,n){let r=0;c=t,a?(p(),r=t.offsetHeight===t.scrollHeight?0:void 0):(f=`hide`,t.style.overflowY=`hidden`),m(t,r,n),l=setTimeout(()=>{l=null,t.style.height=`${t.scrollHeight}px`,d=e=>{u=null,(Object(e)!==e||e.target===t)&&h(t,`show`)},t.addEventListener(`transitionend`,d),u=setTimeout(d,e.duration*1.1)},100)}function _(t,n){let r;c=t,a?p():(f=`show`,t.style.overflowY=`hidden`,r=t.scrollHeight),m(t,r,n),l=setTimeout(()=>{l=null,t.style.height=0,d=e=>{u=null,(Object(e)!==e||e.target===t)&&h(t,`hide`)},t.addEventListener(`transitionend`,d),u=setTimeout(d,e.duration*1.1)},100)}return r(()=>{a&&p()}),()=>i(s,{css:!1,appear:e.appear,onEnter:g,onLeave:_},t.default)}});function k(){if(window.getSelection!==void 0){let e=window.getSelection();e.empty===void 0?e.removeAllRanges!==void 0&&(e.removeAllRanges(),_.is.mobile||e.addRange(document.createRange())):e.empty()}else document.selection!==void 0&&document.selection.empty()}function oe(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function se(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 A=!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.append(e),e.append(t),e.scrollLeft=-1e3,A=e.scrollLeft>=0,e.remove()}var j={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},M={...j,contextMenu:Boolean};function N({showing:i,avoidEmit:s,configureAnchorEl:c}){let{props:u,proxy:d,emit:f}=t(),h=e(null),_=null;function v(e){return h.value===null?!1:e===void 0||e.touches===void 0||e.touches.length<=1}let y={};c===void 0&&(Object.assign(y,{hide(e){d.hide(e)},toggle(e){d.toggle(e),e.qAnchorHandled=!0},toggleKey(e){p(e,13)&&y.toggle(e)},contextClick(e){d.hide(e),m(e),o(()=>{d.show(e),e.qAnchorHandled=!0})},prevent:m,mobileTouch(e){if(y.mobileCleanup(e),!v(e))return;d.hide(e),h.value.classList.add(`non-selectable`);let t=e.target;l(y,`anchor`,[[t,`touchmove`,`mobileCleanup`,`passive`],[t,`touchend`,`mobileCleanup`,`passive`],[t,`touchcancel`,`mobileCleanup`,`passive`],[h.value,`contextmenu`,`prevent`,`notPassive`]]),_=setTimeout(()=>{_=null,d.show(e),e.qAnchorHandled=!0},300)},mobileCleanup(e){h.value.classList.remove(`non-selectable`),_!==null&&(clearTimeout(_),_=null),i.value&&e!==void 0&&k()}}),c=function(e=u.contextMenu){u.noParentEvent||h.value===null||l(y,`anchor`,e?d.$q.platform.is.mobile?[[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`]])});function b(){g(y,`anchor`)}function x(e){for(h.value=e;h.value.classList.contains(`q-anchor--skip`);)h.value=h.value.parentNode;c()}function S(){if(u.target===!1||u.target===``||d.$el.parentNode===null)h.value=null;else if(u.target===!0)x(d.$el.parentNode);else{let e=u.target;if(typeof u.target==`string`)try{e=document.querySelector(u.target)}catch{e=void 0}e==null?(h.value=null,console.error(`Anchor: target "${u.target}" not found`)):(h.value=e.$el||e,c())}}return a(()=>u.contextMenu,e=>{h.value!==null&&(b(),c(e))}),a(()=>u.target,()=>{h.value!==null&&b(),S()}),a(()=>u.noParentEvent,e=>{h.value!==null&&(e?b():c())}),n(()=>{S(),!s&&u.modelValue&&h.value===null&&f(`update:modelValue`,!1)}),r(()=>{_!==null&&clearTimeout(_),b()}),{anchorEl:h,canShow:v,anchorEvents:y}}function ce(t,n){let i=e(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,u.passive),window[n](`scroll`,r,u.passive),o=t}function c(){i.value!==null&&(s(i.value),i.value=null)}return r(a(()=>t.noParentEvent,()=>{i.value!==null&&(c(),n())})),{localScrollTarget:i,unconfigureScrollTarget:c,changeScrollEvent:s}}var P=null,{notPassiveCapture:F}=u,I=[];function L(e){P!==null&&(clearTimeout(P),P=null);let t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains(`no-pointer-events`))return;let n=null,r=!1;for(let e=T.length-1;e>=0;e--){let t=T[e].$,i=t.type.name;if(i!==`QTooltip`){if(i===`QDialog`){if(t.props.seamless!==!0){if(r===!1)return;n=new Set(T.slice(e+1).map(e=>e.contentEl));break}continue}r=!0}}for(let r=I.length-1;r>=0;r--){let i=I[r];if(n!==null&&!n.has(i.innerRef.value))return;if((i.anchorEl.value===null||!i.anchorEl.value.contains(t))&&(t===document.body||i.innerRef.value!==null&&!i.innerRef.value.contains(t)))e.qClickOutside=!0,i.onClickOutside(e);else return}}function le(e){I.push(e),I.length===1&&(document.addEventListener(`mousedown`,L,F),document.addEventListener(`touchstart`,L,F))}function R(e){let t=I.indexOf(e);t!==-1&&(I.splice(t,1),I.length===0&&(P!==null&&(clearTimeout(P),P=null),document.removeEventListener(`mousedown`,L,F),document.removeEventListener(`touchstart`,L,F)))}var z,B,V=[`top`,`center`,`bottom`],ue=[`left`,`middle`,`right`,`start`,`end`];function H(e){let t=e.split(` `);return t.length===2?V.includes(t[0])?ue.includes(t[1])?!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 U(e){return e?!(e.length!==2||typeof e[0]!=`number`||typeof e[1]!=`number`):!0}var W={"start#ltr":`left`,"start#rtl":`right`,"end#ltr":`right`,"end#rtl":`left`};[`left`,`middle`,`right`].forEach(e=>{W[`${e}#ltr`]=e,W[`${e}#rtl`]=e});function G(e,t){let n=e.split(` `);return{vertical:n[0],horizontal:W[`${n[1]}#${t?`rtl`:`ltr`}`]}}function K(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 q(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 de(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function J(e,t,n,r){return{top:e[n.vertical]-t[r.vertical],left:e[n.horizontal]-t[r.horizontal]}}function Y(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Y(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(v.is.ios&&window.visualViewport!==void 0){let e=document.body.style,{offsetLeft:t,offsetTop:n}=window.visualViewport;t!==z&&(e.setProperty(`--q-pe-left`,t+`px`),z=t),n!==B&&(e.setProperty(`--q-pe-top`,n+`px`),B=n)}let{scrollLeft:f,scrollTop:p}=n,m=s===void 0?K(i,l?[0,0]:r):q(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:y}=c||l?{elWidth:Math.max(m.width,h),elHeight:l?Math.max(m.height,g):g}:{elWidth:h,elHeight:g},b={maxWidth:d,maxHeight:u};(c||l)&&(b.minWidth=m.width+`px`,l&&(b.minHeight=m.height+`px`)),Object.assign(n.style,b);let x=de(_,y),S=J(m,x,a,o);if(s===void 0||r===void 0)X(S,m,x,a,o);else{let{top:e,left:t}=S;X(S,m,x,a,o);let n=!1;if(S.top!==e){n=!0;let e=2*r[1];m.center=m.top-=e,m.bottom-=e+2}if(S.left!==t){n=!0;let e=2*r[0];m.middle=m.left-=e,m.right-=e+2}n&&(S=J(m,x,a,o),X(S,m,x,a,o))}b={top:S.top+`px`,left:S.left+`px`},S.maxHeight!==void 0&&(b.maxHeight=S.maxHeight+`px`,m.height>S.maxHeight&&(b.minHeight=b.maxHeight)),S.maxWidth!==void 0&&(b.maxWidth=S.maxWidth+`px`,m.width>S.maxWidth&&(b.minWidth=b.maxWidth)),Object.assign(n.style,b),n.scrollTop!==p&&(n.scrollTop=p),n.scrollLeft!==f&&(n.scrollLeft=f)}function X(e,t,n,r,i){let a=n.bottom,o=n.right,s=C(),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)}var fe=0,Z=f({name:`QTooltip`,inheritAttrs:!1,props:{...j,...ae,...D,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...D.transitionShow,default:`jump-down`},transitionHide:{...D.transitionHide,default:`jump-up`},anchor:{type:String,default:`bottom middle`,validator:H},self:{type:String,default:`top middle`,validator:H},offset:{type:Array,default:()=>[14,14],validator:U},scrollTarget:w,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...E],setup(n,{slots:o,emit:u,attrs:f}){let p,m,_,v=!1,C,w=t(),{proxy:{$q:T}}=w,E=e(null),D=e(!1),ae=y(),O=c(()=>f.id||ae.value),oe=c(()=>G(n.anchor,T.lang.rtl)),se=c(()=>G(n.self,T.lang.rtl)),A=c(()=>!n.persistent),{registerTick:j,removeTick:M}=te(),{registerTimeout:P}=ne(),{transitionProps:F,transitionStyle:I}=re(n),{localScrollTarget:L,changeScrollEvent:z,unconfigureScrollTarget:B}=ce(n,be),{anchorEl:V,canShow:ue,anchorEvents:H}=N({showing:D,configureAnchorEl:_e}),{show:U,hide:W}=ee({showing:D,canShow:ue,handleShow:J,handleHide:X,hideOnRouteChange:A,processOnMount:!0});Object.assign(H,{delayShow:pe,delayHide:me,onFocusin:he});let{showPortal:K,hidePortal:q,renderPortal:de}=ie(w,E,Se,`tooltip`);if(T.platform.is.mobile){let e={anchorEl:V,innerRef:E,onClickOutside(e){return W(e),e.target.classList.contains(`q-dialog__backdrop`)&&d(e),!0}};a(c(()=>n.modelValue===null&&!n.persistent&&D.value),t=>{(t?le:R)(e)}),r(()=>{R(e)})}else a(()=>(n.modelValue===null||n[`onUpdate:modelValue`])&&D.value===!0&&n.persistent!==!0,e=>{(e===!0?S:b)(ge)});function J(e){K(),ve(),j(()=>{if(m?.disconnect(),E.value===null){m=void 0;return}m=new MutationObserver(()=>Q()),m.observe(E.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),Q(),be()}),p===void 0&&(p=a(()=>T.screen.width+`|`+T.screen.height+`|`+n.self+`|`+n.anchor+`|`+T.lang.rtl,Q)),P(()=>{K(!0),u(`show`,e)},n.transitionDuration)}function X(e){M(),q(),Z(),P(()=>{q(!0),u(`hide`,e)},n.transitionDuration)}function Z(){m!==void 0&&(m.disconnect(),m=void 0),p!==void 0&&(p(),p=void 0),B(),b(ge),g(H,`tooltipTemp`),ye(),$(!1)}function Q(){Y({targetEl:E.value,offset:n.offset,anchorEl:V.value,anchorOrigin:oe.value,selfOrigin:se.value,maxHeight:n.maxHeight,maxWidth:n.maxWidth})}function pe(e){if(T.platform.is.mobile){_!==void 0&&(clearTimeout(_),_=void 0),k(),$(!0);let e=V.value;l(H,`tooltipTemp`,[`touchmove`,`touchcancel`,`touchend`,`click`].map(t=>[e,t,`delayHide`,`passiveCapture`]))}P(()=>{U(e)},n.delay)}function me(e){T.platform.is.mobile&&(g(H,`tooltipTemp`),k(),_=setTimeout(()=>{_=void 0,$(!1)},10)),P(()=>{W(e)},n.hideDelay)}function he(e){let t=e.target;if(t){try{if(t.matches(`:focus-visible`)===!1)return}catch{}pe(e)}}function ge(e){W(e)}function _e(){n.noParentEvent||V.value===null||l(H,`anchor`,T.platform.is.mobile?[[V.value,`touchstart`,`delayShow`,`passive`]]:[[V.value,`mouseenter`,`delayShow`,`passive`],[V.value,`mouseleave`,`delayHide`,`passive`],[V.value,`focusin`,`onFocusin`,`passive`],[V.value,`focusout`,`delayHide`,`passive`]])}function $(e){v!==e&&(v=e,fe+=e?1:-1,document.body.classList.toggle(`non-selectable`,fe>0),!e&&_!==void 0&&(clearTimeout(_),_=void 0))}function ve(){let e=V.value,t=O.value;if(e===null||t===void 0)return;let n=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(Boolean);C={el:e,id:t,added:!n.includes(t)},C.added&&(n.push(t),e.setAttribute(`aria-describedby`,n.join(` `)))}function ye(){if(C?.added===!0){let{el:e,id:t}=C,n=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(e=>e!==``&&e!==t);n.length===0?e.removeAttribute(`aria-describedby`):e.setAttribute(`aria-describedby`,n.join(` `))}C=void 0}function be(){if(V.value!==null||n.scrollTarget!==void 0){L.value=x(V.value,n.scrollTarget);let e=n.noParentEvent?Q:W;z(L.value,e)}}function xe(){return D.value?i(`div`,{...f,id:O.value,ref:E,class:[`q-tooltip q-tooltip--style q-position-engine no-pointer-events`,f.class],style:[f.style,I.value],role:`tooltip`},h(o.default)):null}function Se(){return i(s,F.value,xe)}return r(Z),Object.assign(w.proxy,{updatePosition:Q}),de}});export{H as a,ce as c,A as d,oe as f,O as h,U as i,N as l,k as m,G as n,le as o,se as p,Y as r,R as s,Z as t,M as u};
|