PageSourceSearch

https://tabstyr.com/assets/IdeaPage-Ctwuek5C.js

js tabstyr.com collected 2026-10-02 01:45:17 UTC 5,972 bytes, 1 lines download raw bytes

1import{A as e,C as t,D as n,E as r,F as i,I as a,N as o,O as s,P as c,R as l,S as u,_ as d,a as f,b as p,c as m,d as h,g,h as _,j as v,k as y,l as b,m as x,o as S,s as C,u as w,v as T,w as E,x as D}from"./index-Dnd8D-us.js";var O=[`aria-label`,`aria-expanded`,`aria-controls`],k=[`id`,`aria-label`,`aria-activedescendant`],A=[`id`,`aria-selected`,`onClick`,`onMouseenter`],j={key:0,class:`tick`,"aria-hidden":`true`},ee=S(E({__name:`SelectBox`,props:{modelValue:{},options:{},label:{}},emits:[`update:modelValue`],setup(t,{emit:o}){let f=t,m=o,h=e(),_=c(!1),v=c(null),b=c(0);function x(){if(_.value=!_.value,_.value){let e=f.options.indexOf(f.modelValue);b.value=e>=0?e:0}}function S(e){m(`update:modelValue`,e),_.value=!1}function C(e){if(!_.value&&(e.key===`Enter`||e.key===` `||e.key===`ArrowDown`)){e.preventDefault(),x();return}if(_.value){if(e.key===`Escape`){_.value=!1;return}e.key===`ArrowDown`&&(e.preventDefault(),b.value=Math.min(f.options.length-1,b.value+1)),e.key===`ArrowUp`&&(e.preventDefault(),b.value=Math.max(0,b.value-1)),(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),S(f.options[b.value]))}}function w(e){v.value&&!v.value.contains(e.target)&&(_.value=!1)}let E=d(()=>f.modelValue||f.options[0]);return n(()=>document.addEventListener(`click`,w)),r(()=>document.removeEventListener(`click`,w)),(e,n)=>(s(),D(`div`,{ref_key:`root`,ref:v,class:`selectbox`},[T(`button`,{type:`button`,class:`trigger`,"aria-label":t.label,"aria-expanded":_.value,"aria-haspopup":`listbox`,"aria-controls":`${i(h)}-list`,onClick:x,onKeydown:C},[T(`span`,null,l(E.value),1),(s(),D(`svg`,{class:a([`chev`,{open:_.value}]),viewBox:`0 0 24 24`,"aria-hidden":`true`},[...n[0]||=[T(`path`,{d:`M6 9l6 6 6-6`},null,-1)]],2))],40,O),_.value?(s(),D(`ul`,{key:0,id:`${i(h)}-list`,class:`menu`,role:`listbox`,"aria-label":t.label,"aria-activedescendant":`${i(h)}-opt-${b.value}`},[(s(!0),D(g,null,y(t.options,(e,n)=>(s(),D(`li`,{id:`${i(h)}-opt-${n}`,key:e,role:`option`,"aria-selected":e===t.modelValue,class:a({active:n===b.value,selected:e===t.modelValue}),onClick:t=>S(e),onMouseenter:e=>b.value=n},[u(l(e)+` `,1),e===t.modelValue?(s(),D(`span`,j,`✓`)):p(``,!0)],42,A))),128))],8,k)):p(``,!0)],512))}}),[[`__scopeId`,`data-v-2d7d7d5b`]]),te={class:`idea`},ne={class:`bar`},re={class:`container bar-inner`},M=[`href`],N={class:`bar-right`},P=[`href`],F={class:`container body`},I={class:`eyebrow`},L={class:`title`},R={class:`gradient-text`},z={class:`lead`},B={class:`card glass`},V={key:0,class:`result`,role:`status`,"aria-live":`polite`},H={key:1,class:`notice`},U={class:`field`},W={class:`label`},G={class:`field`},K={class:`label`},q=[`placeholder`],J={class:`field`},Y={class:`label`},ie={class:`opt`},ae={class:`actions`},X=[`disabled`],oe={key:0,class:`err`,role:`alert`},Z=S(E({__name:`IdeaPage`,setup(e){let{t:a,tm:g}=w(),y=d(()=>b(m.value,``)),S=new URLSearchParams(window.location.search).get(`src`)||void 0,E=d(()=>g(`ideaPage.categories`)),O=c(E.value[0]);v(E,e=>{e.includes(O.value)||(O.value=e[0])});let k=c(``),A=c(``),j=c(``),Z=c(`idle`),se=c(null);c(!1),n(async()=>{}),r(()=>{});let Q=d(()=>!h.includes(`YOUR_FORM_ID`)),$=d(()=>Q.value&&k.value.trim().length>0&&Z.value!==`sending`&&!0);async function ce(){if(!(!$.value||j.value)){Z.value=`sending`;try{let e=await fetch(h,{method:`POST`,headers:{Accept:`application/json`},body:JSON.stringify({category:O.value,message:k.value.trim(),email:A.value.trim()||void 0,source:S,_subject:S===`uninstall`?`TabStyr uninstall feedback — ${O.value}`:`TabStyr idea — ${O.value}`,_gotcha:j.value})});if(!e.ok)throw Error(`HTTP ${e.status}`);Z.value=`done`,k.value=``,A.value=``}catch{Z.value=`error`}}}return(e,n)=>(s(),D(`div`,te,[n[9]||=T(`div`,{class:`orb`,"aria-hidden":`true`},null,-1),T(`header`,ne,[T(`div`,re,[T(`a`,{href:y.value,class:`brand`},[t(C,{size:24}),n[5]||=u(),n[6]||=T(`span`,null,`TabStyr`,-1)],8,M),T(`div`,N,[t(f),T(`a`,{href:y.value,class:`back`},l(i(a)(`ideaPage.back`)),9,P)])])]),T(`main`,F,[T(`span`,I,l(i(a)(`ideaPage.eyebrow`)),1),T(`h1`,L,[u(l(i(a)(`ideaPage.titleLead`))+` `,1),T(`span`,R,l(i(a)(`ideaPage.titleAccent`)),1),u(` `+l(i(a)(`ideaPage.titleTail`)),1)]),T(`p`,z,l(i(a)(`ideaPage.lead`)),1),T(`div`,B,[Z.value===`done`?(s(),D(`div`,V,[n[7]||=T(`div`,{class:`check`,"aria-hidden":`true`},`✓`,-1),T(`h2`,null,l(i(a)(`ideaPage.thankYou`)),1),T(`p`,null,l(i(a)(`ideaPage.successBody`)),1),T(`button`,{type:`button`,class:`btn btn-secondary`,onClick:n[0]||=e=>Z.value=`idle`},l(i(a)(`ideaPage.sendAnother`)),1)])):Q.value?(s(),D(`form`,{key:2,class:`form`,onSubmit:_(ce,[`prevent`])},[T(`div`,U,[T(`span`,W,l(i(a)(`ideaPage.typeLabel`)),1),t(ee,{modelValue:O.value,"onUpdate:modelValue":n[1]||=e=>
1O.value=e,options:E.value,label:i(a)(`ideaPage.ideaTypeAria`)},null,8,[`modelValue`,`options`,`label`])]),T(`label`,G,[T(`span`,K,[u(l(i(a)(`ideaPage.ideaLabel`))+` `,1),n[8]||=T(`span`,{class:`req`},`*`,-1)]),o(T(`textarea`,{"onUpdate:modelValue":n[2]||=e=>k.value=e,class:`control`,rows:`5`,required:``,maxlength:`2000`,placeholder:i(a)(`ideaPage.placeholder`)},null,8,q),[[x,k.value]])]),T(`label`,J,[T(`span`,Y,[u(l(i(a)(`ideaPage.emailLabel`))+` `,1),T(`span`,ie,l(i(a)(`ideaPage.emailOpt`)),1)]),o(T(`input`,{"onUpdate:modelValue":n[3]||=e=>A.value=e,type:`email`,class:`control`,placeholder:`[email protected]`,autocomplete:`email`},null,512),[[x,A.value]])]),o(T(`input`,{"onUpdate:modelValue":n[4]||=e=>j.value=e,name:`_gotcha`,class:`gotcha`,tabindex:`-1`,autocomplete:`off`,"aria-hidden":`true`},null,512),[[x,j.value]]),i(``)?(s(),D(`div`,{key:0,ref_key:`captchaEl`,ref:se,class:`captcha`},null,512)):p(``,!0),T(`div`,ae,[T(`button`,{type:`submit`,class:`btn btn-primary`,disabled:!$.value},l(Z.value===`sending`?i(a)(`ideaPage.sending`):i(a)(`ideaPage.send`)),9,X),Z.value===`error`?(s(),D(`p`,oe,l(i(a)(`ideaPage.error`)),1)):p(``,!0)])],32)):(s(),D(`p`,H,l(i(a)(`ideaPage.notConfigured`)),1))])])]))}}),[[`__scopeId`,`data-v-617ca987`]]);export{Z as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.