PageSourceSearch

https://app.startinfinity.com/dist/5185.19f75c198ae110c9e66a.js

js startinfinity.com collected 2026-09-25 18:41:10 UTC 4,600 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkinfinity=self.webpackChunkinfinity||[]).push([[5185],{15691(_,U,e){e.r(U),e.d(U,{default:()=>q});var t=e(20641),u=e(50953),H=e(73943),M=e(86429),m=e(73018),K=e(37594),X=e(43686),j=e(43984),A=e(45442),F=e(97443),S=e(54970),L=e(95237);const P=(0,t.pM)({__name:"EditorToolbarImageButton",props:{editor:{},run:{},allowedToUpload:{type:Boolean,default:!1},hide:{},uploadSettings:{}},setup(c){const v=c,x=(0,t.WQ)(S.s),l=(0,t.EW)(()=>x?.value??v.uploadSettings),i=()=>f=>{const r=f.filter(o=>!o.error&&o.attachment).map(o=>o.attachment);r.length!==0&&v.run(v.editor,{attachments:r})};return(f,r)=>((0,t.uX)(),(0,t.Wv)(L.A,{accept:"image/*","upload-settings":l.value,"when-done":i,onHide:c.hide},null,8,["upload-settings","onHide"]))}});var Q=e(35511),V=e(21052),z=e(79828),N=e(11239),y=e(16407),G=e(42084),C=e(9034),Z=e(87717),$=e(87716),D=e(48537),J=e(30681),O=e(34890);const Y={class:"editor tw-flex tw-flex-col-reverse desktop:tw-flex-col"},w=(0,t.pM)({__name:"TextEditor",props:{value:{default:""},autofocus:{type:[String,Number,Boolean,null],default:!1},placeholder:{default:""},extensions:{default:()=>[]},canUpload:{type:[Boolean,null],default:null},workspaceId:{default:void 0},reference:{default:void 0},toolbarActions:{default:()=>[]},toolbarClass:{default:""},onCreate:{type:[Function,null],default:null},onUpdate:{type:[Function,null],default:null},onSelectionUpdate:{type:[Function,null],default:null}},emits:["reposition","input","change","update:focused"],setup(c,{emit:v}){const x=()=>Promise.all([e.e(3871),e.e(4342)]).then(e.bind(e,94342)),l=c,i=v,f=(0,H.Pj)(),r=(0,t.WQ)(S.s),o=(0,u.KR)(null),b=(0,u.KR)(null),p=(0,u.KR)(""),n=(0,u.KR)(""),g=(0,u.KR)(!1),I=(0,u.KR)(null),T=(0,t.EW)(()=>l.canUpload??!!f.getters["board/isBoardMember"]),B=(0,t.EW)(()=>[{key:"upload-image",icon:"ic-upload-image",title:(0,y.t)("Image"),availableInSlash:!0,slashTitle:(0,y.t)("Upload Image"),description:(0,y.t)("Upload and insert an image from your device."),searchTerms:["image","photo","upload","picture"],
1component:P,contextMenuProps:{className:"mobile-fixed",mobileScreen:!0},isVisible:({allowedToUpload:s})=>!!s,isActive:()=>!1,run:(s,d)=>{if(!d?.attachments?.length)return;const h=(0,F.Us)(s,d);d.attachments.forEach(a=>{h.setImage({src:a.path})}),h.run()}},...l.toolbarActions]),R=(0,t.EW)(()=>p.value!==n.value&&p.value+"<p></p>"!==n.value);(0,t.wB)(()=>l.reference?.id,()=>{E()}),(0,t.wB)(()=>r?.value?.referenceableId,()=>{E()}),(0,t.wB)(()=>l.value,s=>{n.value!==s&&o.value&&(o.value.commands.setContent(s,{emitUpdate:!1}),o.value&&(p.value=n.value=o.value.getHTML()))},{immediate:!0}),(0,t.sV)(async()=>{await E()}),(0,t.hi)(()=>{W()});async function E(){W();const{Emoji:s}=await x(),d=G.xl.value,h={editorProps:{clipboardTextParser:C.v,clipboardTextSerializer:C.m},autofocus:l.autofocus,extensions:[j.A,X.LN.configure({className:"tw-bg-blue tw-bg-opacity-20"}),J.A.configure({onClick:a=>I.value?.open(a)}),K.A,(0,Q.G)({placeholder:l.placeholder,withSlashCommands:d}),M.A.configure({lowlight:Z.A}),D.Ay.configure({getReference:l.reference,getUploadSettings:(()=>{const a=r?.value;return!T.value||!a?null:()=>a})(),filesystemUrl:f.getters["vars/get"]("filesystem.default.url")}),$.A,s,m.XI.configure({resizable:!0}),m.Hj,m.A0,m.nA,z.I,N.A.configure({enabled:d,allowedToUpload:T.value,uploadSettings:r?.value,toolbarActions:B.value}),...l.extensions],onCreate:a=>l.onCreate?.(a),onSelectionUpdate:a=>l.onSelectionUpdate?.(a),onUpdate:({editor:a})=>{i("reposition"),n.value=a.getHTML(),R.value&&(i("input",n.value),l.onUpdate?.({editor:a}))},onFocus:()=>{g.value=!0,i("update:focused",!0)},onBlur:()=>{g.value=!1,i("update:focused",!1),b.value?.closeAllContextModals(),R.value&&(p.value=n.value,i("change",n.value))},content:l.value};o.value=new A.KE(h),p.value=n.value=o.value.getHTML()}function W(){o.value&&(o.value.destroy(),o.value=null),g.value&&(g.value=!1,i("update:focused",!1))}return(s,d)=>((0,t.uX)(),(0,t.CE)("div",Y,[o.value?((0,t.uX)(),(0,t.Wv)(V.A,{key:0,ref_key:"editorToolbarRef",ref:b,"allowed-to-upload":T.value,editor:o.value,"toolbar-class":c.toolbarClass,"toolbar-actions":B.value},null,8,["allowed-to-upload","editor","toolbar-class","toolbar-actions"])):(0,t.Q3)("v-if",!0),o.value?((0,t.uX)(),(0,t.Wv)(O.A,{key:1,ref_key:"linkClickHandler",ref:I,editor:o.value},null,8,["editor"])):(0,t.Q3)("v-if",!0),o.value?((0,t.uX)(),(0,t.Wv)((0,u.R1)(A.$Z),{key:2,ref:"editorRef",editor:o.value,class:"editor__content scrollable"},null,8,["editor"])):(0,t.Q3)("v-if",!0)]))}});var k=e(66262);const q=(0,k.A)(w,[["__scopeId","data-v-a846ce24"]])}}]);

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.