fuli-context 0.27.7 → 0.27.8

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.
@@ -1,2 +1,2 @@
1
- import{A as e,An as t,Bn as n,Et as r,V as i,an as a,gt as o,k as s,lr as c,pr as l,t as u,u as d,z as f}from"./_plugin-vue_export-helper-DOpmHs7b.js";import{t as p}from"./console-Dp1fQitF.js";import{m}from"./useApi-CROJJdhE-BIop9iqG.js";import{t as h}from"./button-Cs53dKiI.js";import{t as g}from"./UiIcon-D0jh280g.js";import{t as _}from"./version-DkZhCyrF.js";import"./ui-CulTQq10.js";var v=`https://github.com/JevonsCode/fuli/issues`,y=`…`,b=[[/[A-Za-z]:[\\/]+Users[\\/]+[^\\/\s"'<>]+/gi,`~`],[/\/(?:Users|home)\/[^/\s"'<>]+/g,`~`],[/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g,y],[/(\bhttps?:\/\/[^\s?#"'<>]*)\?[^\s#"'<>]*/gi,`$1`],[/(?<![A-Za-z0-9_+=-])(?:[A-Fa-f0-9]{32,}|(?=[A-Za-z0-9_+=-]*\d)(?=[A-Za-z0-9_+=-]*[A-Za-z])[A-Za-z0-9_+-]{40,}={0,2})(?![A-Za-z0-9_+=-])/g,y]];function x(e){return b.reduce((e,[t,n])=>e.replace(t,n),e)}function S(e){let t=(e,t)=>t?.trim()?[d(`problem.prompt.${e}`,{text:x(t.trim())})]:[],n=e.serviceReady==null?null:d(e.serviceReady?`problem.prompt.ready`:`problem.prompt.notReady`);return[d(`problem.prompt.intro`),``,...t(`what`,e.what),...t(`where`,e.page),...t(`error`,e.error),...t(`version`,e.version),...t(`service`,n),``,d(`problem.prompt.steps`),d(`problem.prompt.step1`,{issues:v}),d(`problem.prompt.step2`),d(`problem.prompt.step3`),d(`problem.prompt.step4`)].join(`
1
+ import{A as e,An as t,Bn as n,Et as r,V as i,an as a,gt as o,k as s,lr as c,pr as l,t as u,u as d,z as f}from"./_plugin-vue_export-helper-DOpmHs7b.js";import{t as p}from"./console-Dp1fQitF.js";import{m}from"./useApi-CROJJdhE-BIop9iqG.js";import{t as h}from"./button-Cs53dKiI.js";import{t as g}from"./UiIcon-D0jh280g.js";import{t as _}from"./version-Bbyzi5SM.js";import"./ui-CulTQq10.js";var v=`https://github.com/JevonsCode/fuli/issues`,y=`…`,b=[[/[A-Za-z]:[\\/]+Users[\\/]+[^\\/\s"'<>]+/gi,`~`],[/\/(?:Users|home)\/[^/\s"'<>]+/g,`~`],[/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g,y],[/(\bhttps?:\/\/[^\s?#"'<>]*)\?[^\s#"'<>]*/gi,`$1`],[/(?<![A-Za-z0-9_+=-])(?:[A-Fa-f0-9]{32,}|(?=[A-Za-z0-9_+=-]*\d)(?=[A-Za-z0-9_+=-]*[A-Za-z])[A-Za-z0-9_+-]{40,}={0,2})(?![A-Za-z0-9_+=-])/g,y]];function x(e){return b.reduce((e,[t,n])=>e.replace(t,n),e)}function S(e){let t=(e,t)=>t?.trim()?[d(`problem.prompt.${e}`,{text:x(t.trim())})]:[],n=e.serviceReady==null?null:d(e.serviceReady?`problem.prompt.ready`:`problem.prompt.notReady`);return[d(`problem.prompt.intro`),``,...t(`what`,e.what),...t(`where`,e.page),...t(`error`,e.error),...t(`version`,e.version),...t(`service`,n),``,d(`problem.prompt.steps`),d(`problem.prompt.step1`,{issues:v}),d(`problem.prompt.step2`),d(`problem.prompt.step3`),d(`problem.prompt.step4`)].join(`
2
2
  `)}var C={class:`copy-fix-labels`},w={class:`sr-only`,role:`status`},T=u(i({__name:`CopyFixPrompt`,props:{what:{},error:{default:null},size:{default:`sm`}},setup(i){let u=i,v=m(),y=p(),b=t(`idle`),x;async function T(){let e=S({what:u.what,error:u.error,page:v.fullPath,version:_,serviceReady:y.runtimeStatus===`ready`});try{await navigator.clipboard.writeText(e),b.value=`copied`}catch{b.value=`failed`}clearTimeout(x),x=setTimeout(()=>{b.value=`idle`},2600)}return o(()=>clearTimeout(x)),(t,o)=>(r(),e(n(h),{variant:`outline`,size:i.size,class:`copy-fix`,"data-copy-fix-prompt":``,onClick:T},{default:a(()=>[f(n(g),{name:b.value===`copied`?`check`:`copy`,size:15,"aria-hidden":`true`},null,8,[`name`]),s(`span`,C,[s(`span`,{class:c({"is-shown":b.value===`idle`})},l(n(d)(`problem.copy`)),3),s(`span`,{class:c({"is-shown":b.value===`copied`})},l(n(d)(`problem.copied`)),3),s(`span`,{class:c({"is-shown":b.value===`failed`})},l(n(d)(`problem.copyFailed`)),3)]),s(`span`,w,l(b.value===`idle`?``:n(d)(`problem.${b.value===`copied`?`copied`:`copyFailed`}`)),1)]),_:1},8,[`size`]))}}),[[`__scopeId`,`data-v-dc3955d7`]]);export{T as t};