@embedpdf/snippet 2.9.1 → 2.10.0

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.
Files changed (39) hide show
  1. package/dist/browser-BISJ9naB-CTnAqLvp.js +1 -0
  2. package/dist/components/annotation-sidebar/dynamic-sidebar.d.ts.map +1 -1
  3. package/dist/components/annotation-sidebar/property-schema.d.ts +11 -8
  4. package/dist/components/annotation-sidebar/property-schema.d.ts.map +1 -1
  5. package/dist/components/annotation-sidebar.d.ts.map +1 -1
  6. package/dist/components/app.d.ts +3 -0
  7. package/dist/components/app.d.ts.map +1 -1
  8. package/dist/components/icons/form-checkbox.d.ts +4 -0
  9. package/dist/components/icons/form-checkbox.d.ts.map +1 -0
  10. package/dist/components/icons/form-listbox.d.ts +4 -0
  11. package/dist/components/icons/form-listbox.d.ts.map +1 -0
  12. package/dist/components/icons/form-radio.d.ts +4 -0
  13. package/dist/components/icons/form-radio.d.ts.map +1 -0
  14. package/dist/components/icons/form-select.d.ts +4 -0
  15. package/dist/components/icons/form-select.d.ts.map +1 -0
  16. package/dist/components/icons/form-textfield.d.ts +4 -0
  17. package/dist/components/icons/form-textfield.d.ts.map +1 -0
  18. package/dist/components/icons/index.d.ts.map +1 -1
  19. package/dist/components/icons/widget-edit.d.ts +4 -0
  20. package/dist/components/icons/widget-edit.d.ts.map +1 -0
  21. package/dist/components/mode-select-button.d.ts.map +1 -1
  22. package/dist/components/ui/checkbox.d.ts +2 -1
  23. package/dist/components/ui/checkbox.d.ts.map +1 -1
  24. package/dist/components/widget-edit-sidebar.d.ts +7 -0
  25. package/dist/components/widget-edit-sidebar.d.ts.map +1 -0
  26. package/dist/config/commands.d.ts.map +1 -1
  27. package/dist/config/translations.d.ts.map +1 -1
  28. package/dist/config/ui-schema.d.ts.map +1 -1
  29. package/dist/direct-engine-Bwl2FHok.js +1 -0
  30. package/dist/embedpdf-CMCGWj6g.js +3 -0
  31. package/dist/embedpdf.js +1 -1
  32. package/dist/i-140.pdf +0 -0
  33. package/dist/pdfium.wasm +0 -0
  34. package/dist/worker-engine-CTSs4NHF.js +1 -0
  35. package/package.json +31 -30
  36. package/dist/browser-BISJ9naB-Do5Ppf0u.js +0 -1
  37. package/dist/direct-engine-C05qd3GS.js +0 -1
  38. package/dist/embedpdf-CvD-utXp.js +0 -3
  39. package/dist/worker-engine-CmPhyK3p.js +0 -1
@@ -0,0 +1 @@
1
+ import{N as e,T as t,Q as r,P as n,S as i}from"./embedpdf-CMCGWj6g.js";const o="TaskQueue",a="Queue";var u=(e=>(e[e.CRITICAL=3]="CRITICAL",e[e.HIGH=2]="HIGH",e[e.MEDIUM=1]="MEDIUM",e[e.LOW=0]="LOW",e))(u||{});class s{constructor(t={}){this.queue=[],this.running=0,this.resultTasks=new Map,this.idleListeners=new Set;const{concurrency:r=1,comparator:n,ranker:i,onIdle:o,maxQueueSize:a,autoStart:u=!0,logger:s}=t;this.logger=s??new e,this.opts={concurrency:Math.max(1,r),comparator:n,ranker:i,onIdle:o??(()=>{}),maxQueueSize:a??Number.POSITIVE_INFINITY,autoStart:u}}setComparator(e){this.opts.comparator=e}setRanker(e){this.opts.ranker=e}size(){return this.queue.length}inFlight(){return this.running}isIdle(){return 0===this.queue.length&&0===this.running}async drain(){this.isIdle()||await new Promise(e=>{const t=()=>{this.isIdle()&&(this.offIdle(t),e())};this.onIdle(t)})}notifyIdle(){this.isIdle()&&([...this.idleListeners].forEach(e=>e()),this.idleListeners.clear(),this.opts.onIdle())}onIdle(e){this.idleListeners.add(e)}offIdle(e){this.idleListeners.delete(e)}enqueue(e,r={}){const n=this.generateId(),i=r.priority??1,u=new t;if(this.queue.length>=this.opts.maxQueueSize){const e=new Error("Queue is full (maxQueueSize reached).");return u.reject(e),u}this.resultTasks.set(n,u);const s={id:n,priority:i,meta:r.meta??e.meta,executeFactory:e.execute};this.queue.push(s),this.logger.debug(o,a,`Task enqueued: ${n} | Priority: ${i} | Running: ${this.running} | Queued: ${this.queue.length}`);const c=u.abort.bind(u);return u.abort=e=>{this.logger.debug(o,a,`Task aborted: ${n}`),this.cancel(n),c(e)},this.opts.autoStart&&this.process(!0===r.fifo),u}cancel(e){const t=this.queue.length;this.queue=this.queue.filter(t=>t.id!==e||(t.cancelled=!0,!1)),this.resultTasks.delete(e),t!==this.queue.length&&(this.logger.debug(o,a,`Task cancelled and removed: ${e}`),this.kick())}kick(){queueMicrotask(()=>this.process())}async process(e=!1){for(this.logger.debug(o,a,`process() called | Running: ${this.running} | Concurrency: ${this.opts.concurrency} | Queued: ${this.queue.length}`);this.running<this.opts.concurrency&&this.queue.length>0;){this.logger.debug(o,a,`Starting new task | Running: ${this.running} | Queued: ${this.queue.length}`),e||this.sortQueue();const t=this.queue.shift();if(t.cancelled){this.logger.debug(o,a,`Skipping cancelled task: ${t.id}`);continue}const r=this.resultTasks.get(t.id);r&&(this.running++,(async()=>{let e=null;try{if(e=t.executeFactory(),!e)throw new Error("Task factory returned null/undefined");e.wait(e=>{0===r.state.stage&&r.resolve(e)},e=>{0===r.state.stage&&("abort"===e.type?r.abort(e.reason):r.reject(e.reason))}),e.onProgress(e=>{r.progress(e)}),await e.toPromise()}catch(e){0===r.state.stage&&r.reject(e)}finally{this.resultTasks.delete(t.id),this.running--,this.logger.debug(o,a,`Task completed: ${t.id} | Running: ${this.running} | Queued: ${this.queue.length}`),this.isIdle()?this.notifyIdle():this.queue.length>0&&this.kick()}})().catch(e=>{this.logger.error(o,a,"Unhandled error in task execution wrapper:",e),this.running=Math.max(0,this.running-1),this.isIdle()?this.notifyIdle():this.queue.length>0&&this.kick()}))}}sortQueue(){const{comparator:e,ranker:t}=this.opts;if(e)return void this.queue.sort(e);const r=new Map,n=e=>t?(r.has(e.id)||r.set(e.id,t(e)),r.get(e.id)):this.defaultRank(e);this.queue.sort((e,t)=>{if(e.priority!==t.priority)return t.priority-e.priority;const r=n(e),i=n(t);return r!==i?i-r:this.extractTime(e.id)-this.extractTime(t.id)})}defaultRank(e){return 0}generateId(){return"undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`}extractTime(e){const t=Number(e.split("-")[0]);return Number.isFinite(t)?t:0}}const c="PdfEngine",d="Orchestrator";class h{constructor(t,r){this.executor=t,this.logger=r.logger??new e,this.options={imageConverter:r.imageConverter,fetcher:r.fetcher??("undefined"!=typeof fetch?(e,t)=>fetch(e,t):void 0),logger:this.logger},this.workerQueue=new s({concurrency:1,autoStart:!0,logger:this.logger}),this.logger.debug(c,d,"PdfEngine orchestrator created")}chunkArray(e,t){const r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r}isSupport(e){const n=new t;return n.resolve([r.Create,r.Read,r.Update,r.Delete]),n}destroy(){var e,r;const i=new t;try{this.executor.destroy(),null==(r=(e=this.options.imageConverter).destroy)||r.call(e),i.resolve(!0)}catch(e){i.reject({code:n.Unknown,message:String(e)})}return i}openDocumentUrl(e,r){const i=new t;return(async()=>{try{if(!this.options.fetcher)throw new Error("Fetcher is not set");const t=await this.options.fetcher(e.url,null==r?void 0:r.requestOptions),n=await t.arrayBuffer(),o={id:e.id,content:n};this.openDocumentBuffer(o,{password:null==r?void 0:r.password,normalizeRotation:null==r?void 0:r.normalizeRotation}).wait(e=>i.resolve(e),e=>i.fail(e))}catch(e){i.reject({code:n.Unknown,message:String(e)})}})(),i}openDocumentBuffer(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.openDocumentBuffer(e,t),meta:{docId:e.id,operation:"openDocumentBuffer"}},{priority:u.CRITICAL})}getMetadata(e){return this.workerQueue.enqueue({execute:()=>this.executor.getMetadata(e),meta:{docId:e.id,operation:"getMetadata"}},{priority:u.MEDIUM})}setMetadata(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.setMetadata(e,t),meta:{docId:e.id,operation:"setMetadata"}},{priority:u.MEDIUM})}getDocPermissions(e){return this.workerQueue.enqueue({execute:()=>this.executor.getDocPermissions(e),meta:{docId:e.id,operation:"getDocPermissions"}},{priority:u.MEDIUM})}getDocUserPermissions(e){return this.workerQueue.enqueue({execute:()=>this.executor.getDocUserPermissions(e),meta:{docId:e.id,operation:"getDocUserPermissions"}},{priority:u.MEDIUM})}getSignatures(e){return this.workerQueue.enqueue({execute:()=>this.executor.getSignatures(e),meta:{docId:e.id,operation:"getSignatures"}},{priority:u.MEDIUM})}getBookmarks(e){return this.workerQueue.enqueue({execute:()=>this.executor.getBookmarks(e),meta:{docId:e.id,operation:"getBookmarks"}},{priority:u.MEDIUM})}setBookmarks(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.setBookmarks(e,t),meta:{docId:e.id,operation:"setBookmarks"}},{priority:u.MEDIUM})}deleteBookmarks(e){return this.workerQueue.enqueue({execute:()=>this.executor.deleteBookmarks(e),meta:{docId:e.id,operation:"deleteBookmarks"}},{priority:u.MEDIUM})}renderPage(e,t,r){return this.renderWithEncoding(()=>this.executor.renderPageRaw(e,t,r),r,e.id,t.index,u.CRITICAL)}renderPageRect(e,t,r,n){return this.renderWithEncoding(()=>this.executor.renderPageRect(e,t,r,n),n,e.id,t.index,u.HIGH)}renderPageRaw(e,t,r){return this.workerQueue.enqueue({execute:()=>this.executor.renderPageRaw(e,t,r),meta:{docId:e.id,pageIndex:t.index,operation:"renderPageRaw"}},{priority:u.HIGH})}renderPageRectRaw(e,t,r,n){return this.workerQueue.enqueue({execute:()=>this.executor.renderPageRect(e,t,r,n),meta:{docId:e.id,pageIndex:t.index,operation:"renderPageRectRaw"}},{priority:u.HIGH})}renderThumbnail(e,t,r){return this.renderWithEncoding(()=>this.executor.renderThumbnailRaw(e,t,r),r,e.id,t.index,u.MEDIUM)}renderPageAnnotation(e,t,r,n){return this.renderWithEncoding(()=>this.executor.renderPageAnnotationRaw(e,t,r,n),n,e.id,t.index,u.MEDIUM)}renderPageAnnotations(e,r,n){const i=new t,o=this.workerQueue.enqueue({execute:()=>this.executor.renderPageAnnotationsRaw(e,r,n),meta:{docId:e.id,pageIndex:r.index,operation:"renderPageAnnotationsRaw"}},{priority:u.MEDIUM}),a=i.abort.bind(i);return i.abort=e=>{o.abort(e),a(e)},o.wait(e=>{0===i.state.stage&&this.encodeAppearanceMap(e,n,i)},e=>{0===i.state.stage&&i.fail(e)}),i}renderPageAnnotationsRaw(e,t,r){return this.workerQueue.enqueue({execute:()=>this.executor.renderPageAnnotationsRaw(e,t,r),meta:{docId:e.id,pageIndex:t.index,operation:"renderPageAnnotationsRaw"}},{priority:u.MEDIUM})}renderWithEncoding(e,r,n,i,o=u.CRITICAL){const a=new t,s=this.workerQueue.enqueue({execute:()=>e(),meta:{docId:n,pageIndex:i,operation:"render"}},{priority:o}),c=a.abort.bind(a);return a.abort=e=>{s.abort(e),c(e)},s.wait(e=>{0===a.state.stage&&this.encodeImage(e,r,a)},e=>{0===a.state.stage&&a.fail(e)}),a}encodeImage(e,t,r){const i=(null==t?void 0:t.imageType)??"image/webp",o=null==t?void 0:t.quality,a={data:new Uint8ClampedArray(e.data),width:e.width,height:e.height};this.options.imageConverter(()=>a,i,o).then(e=>r.resolve(e)).catch(e=>r.reject({code:n.Unknown,message:String(e)}))}encodeAppearanceMap(e,t,r){const i=(null==t?void 0:t.imageType)??"image/webp",o=null==t?void 0:t.imageQuality,a=e=>{const t={data:new Uint8ClampedArray(e.data),width:e.width,height:e.height};return this.options.imageConverter(()=>t,i,o)},u=[],s={},c=["normal","rollover","down"];for(const[t,r]of Object.entries(e)){const e={};s[t]=e;for(const t of c){const n=r[t];n&&u.push(a(n.data).then(r=>{e[t]={data:r,rect:n.rect}}))}}Promise.all(u).then(()=>{0===r.state.stage&&r.resolve(s)}).catch(e=>{0===r.state.stage&&r.reject({code:n.Unknown,message:String(e)})})}getPageAnnotations(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageAnnotations(e,t),meta:{docId:e.id,pageIndex:t.index,operation:"getPageAnnotations"}},{priority:u.MEDIUM})}createPageAnnotation(e,t,r,n){return this.workerQueue.enqueue({execute:()=>this.executor.createPageAnnotation(e,t,r,n),meta:{docId:e.id,pageIndex:t.index,operation:"createPageAnnotation"}},{priority:u.MEDIUM})}updatePageAnnotation(e,t,r,n){return this.workerQueue.enqueue({execute:()=>this.executor.updatePageAnnotation(e,t,r,n),meta:{docId:e.id,pageIndex:t.index,operation:"updatePageAnnotation"}},{priority:u.MEDIUM})}removePageAnnotation(e,t,r){return this.workerQueue.enqueue({execute:()=>this.executor.removePageAnnotation(e,t,r),meta:{docId:e.id,pageIndex:t.index,operation:"removePageAnnotation"}},{priority:u.MEDIUM})}getAllAnnotations(e){const t=this.chunkArray(e.pages,500);this.logger.debug(c,d,`getAllAnnotations: ${e.pages.length} pages in ${t.length} chunks`);const r=new i({aggregate:e=>Object.assign({},...e)});return t.forEach((t,n)=>{const i=this.workerQueue.enqueue({execute:()=>this.executor.getAnnotationsBatch(e,t),meta:{docId:e.id,operation:"getAnnotationsBatch",chunkSize:t.length}},{priority:u.LOW});i.onProgress(e=>{r.progress({page:e.pageIndex,result:e.result})}),r.addChild(i,n)}),r.finalize(),r}getPageTextRects(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageTextRects(e,t),meta:{docId:e.id,pageIndex:t.index,operation:"getPageTextRects"}},{priority:u.MEDIUM})}searchAllPages(e,t,r){const n=Array.isArray(null==r?void 0:r.flags)?r.flags.reduce((e,t)=>e|t,0):(null==r?void 0:r.flags)??0,o=this.chunkArray(e.pages,25);this.logger.debug(c,d,`searchAllPages: ${e.pages.length} pages in ${o.length} chunks`);const a=new i({aggregate:e=>{const t=e.flatMap(e=>Object.values(e).flat());return{results:t,total:t.length}}});return o.forEach((r,i)=>{const o=this.workerQueue.enqueue({execute:()=>this.executor.searchBatch(e,r,t,n),meta:{docId:e.id,operation:"searchBatch",chunkSize:r.length}},{priority:u.LOW});o.onProgress(e=>{a.progress({page:e.pageIndex,results:e.result})}),a.addChild(o,i)}),a.finalize(),a}getAttachments(e){return this.workerQueue.enqueue({execute:()=>this.executor.getAttachments(e),meta:{docId:e.id,operation:"getAttachments"}},{priority:u.MEDIUM})}addAttachment(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.addAttachment(e,t),meta:{docId:e.id,operation:"addAttachment"}},{priority:u.MEDIUM})}removeAttachment(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.removeAttachment(e,t),meta:{docId:e.id,operation:"removeAttachment"}},{priority:u.MEDIUM})}readAttachmentContent(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.readAttachmentContent(e,t),meta:{docId:e.id,operation:"readAttachmentContent"}},{priority:u.MEDIUM})}getDocumentJavaScriptActions(e){return this.workerQueue.enqueue({execute:()=>this.executor.getDocumentJavaScriptActions(e),meta:{docId:e.id,operation:"getDocumentJavaScriptActions"}},{priority:u.MEDIUM})}getPageAnnoWidgets(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageAnnoWidgets(e,t),meta:{docId:e.id,pageIndex:t.index,operation:"getPageAnnoWidgets"}},{priority:u.MEDIUM})}getPageWidgetJavaScriptActions(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageWidgetJavaScriptActions(e,t),meta:{docId:e.id,pageIndex:t.index,operation:"getPageWidgetJavaScriptActions"}},{priority:u.MEDIUM})}setFormFieldValue(e,t,r,n){return this.workerQueue.enqueue({execute:()=>this.executor.setFormFieldValue(e,t,r,n),meta:{docId:e.id,pageIndex:t.index,operation:"setFormFieldValue"}},{priority:u.MEDIUM})}setFormFieldState(e,t,r,n){return this.workerQueue.enqueue({execute:()=>this.executor.setFormFieldState(e,t,r,n),meta:{docId:e.id,pageIndex:t.index,operation:"setFormFieldState"}},{priority:u.MEDIUM})}renameWidgetField(e,t,r,n){return this.workerQueue.enqueue({execute:()=>this.executor.renameWidgetField(e,t,r,n),meta:{docId:e.id,pageIndex:t.index,operation:"renameWidgetField"}},{priority:u.MEDIUM})}shareWidgetField(e,t,r,n,i){return this.workerQueue.enqueue({execute:()=>this.executor.shareWidgetField(e,t,r,n,i),meta:{docId:e.id,pageIndex:t.index,operation:"shareWidgetField"}},{priority:u.MEDIUM})}regenerateWidgetAppearances(e,t,r){return this.workerQueue.enqueue({execute:()=>this.executor.regenerateWidgetAppearances(e,t,r),meta:{docId:e.id,pageIndex:t.index,operation:"regenerateWidgetAppearances"}},{priority:u.MEDIUM})}flattenPage(e,t,r){return this.workerQueue.enqueue({execute:()=>this.executor.flattenPage(e,t,r),meta:{docId:e.id,pageIndex:t.index,operation:"flattenPage"}},{priority:u.MEDIUM})}extractPages(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.extractPages(e,t),meta:{docId:e.id,pageIndexes:t,operation:"extractPages"}},{priority:u.MEDIUM})}extractText(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.extractText(e,t),meta:{docId:e.id,pageIndexes:t,operation:"extractText"}},{priority:u.MEDIUM})}redactTextInRects(e,t,r,n){return this.workerQueue.enqueue({execute:()=>this.executor.redactTextInRects(e,t,r,n),meta:{docId:e.id,pageIndex:t.index,operation:"redactTextInRects"}},{priority:u.MEDIUM})}applyRedaction(e,t,r){return this.workerQueue.enqueue({execute:()=>this.executor.applyRedaction(e,t,r),meta:{docId:e.id,pageIndex:t.index,operation:"applyRedaction"}},{priority:u.MEDIUM})}applyAllRedactions(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.applyAllRedactions(e,t),meta:{docId:e.id,pageIndex:t.index,operation:"applyAllRedactions"}},{priority:u.MEDIUM})}flattenAnnotation(e,t,r){return this.workerQueue.enqueue({execute:()=>this.executor.flattenAnnotation(e,t,r),meta:{docId:e.id,pageIndex:t.index,operation:"flattenAnnotation"}},{priority:u.MEDIUM})}getTextSlices(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getTextSlices(e,t),meta:{docId:e.id,slices:t,operation:"getTextSlices"}},{priority:u.MEDIUM})}getPageGlyphs(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageGlyphs(e,t),meta:{docId:e.id,pageIndex:t.index,operation:"getPageGlyphs"}},{priority:u.MEDIUM})}getPageGeometry(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageGeometry(e,t),meta:{docId:e.id,pageIndex:t.index,operation:"getPageGeometry"}},{priority:u.MEDIUM})}getPageTextRuns(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.getPageTextRuns(e,t),meta:{docId:e.id,pageIndex:t.index,operation:"getPageTextRuns"}},{priority:u.MEDIUM})}merge(e){return this.workerQueue.enqueue({execute:()=>this.executor.merge(e),meta:{docId:e.map(e=>e.id).join(","),operation:"merge"}},{priority:u.MEDIUM})}mergePages(e){return this.workerQueue.enqueue({execute:()=>this.executor.mergePages(e),meta:{docId:e.map(e=>e.docId).join(","),operation:"mergePages"}},{priority:u.MEDIUM})}preparePrintDocument(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.preparePrintDocument(e,t),meta:{docId:e.id,operation:"preparePrintDocument"}},{priority:u.MEDIUM})}saveAsCopy(e){return this.workerQueue.enqueue({execute:()=>this.executor.saveAsCopy(e),meta:{docId:e.id,operation:"saveAsCopy"}},{priority:u.MEDIUM})}closeDocument(e){return this.workerQueue.enqueue({execute:()=>this.executor.closeDocument(e),meta:{docId:e.id,operation:"closeDocument"}},{priority:u.MEDIUM})}closeAllDocuments(){return this.workerQueue.enqueue({execute:()=>this.executor.closeAllDocuments(),meta:{operation:"closeAllDocuments"}},{priority:u.MEDIUM})}setDocumentEncryption(e,t,r,n){return this.workerQueue.enqueue({execute:()=>this.executor.setDocumentEncryption(e,t,r,n),meta:{docId:e.id,operation:"setDocumentEncryption"}},{priority:u.MEDIUM})}removeEncryption(e){return this.workerQueue.enqueue({execute:()=>this.executor.removeEncryption(e),meta:{docId:e.id,operation:"removeEncryption"}},{priority:u.MEDIUM})}unlockOwnerPermissions(e,t){return this.workerQueue.enqueue({execute:()=>this.executor.unlockOwnerPermissions(e,t),meta:{docId:e.id,operation:"unlockOwnerPermissions"}},{priority:u.MEDIUM})}isEncrypted(e){return this.workerQueue.enqueue({execute:()=>this.executor.isEncrypted(e),meta:{docId:e.id,operation:"isEncrypted"}},{priority:u.MEDIUM})}isOwnerUnlocked(e){return this.workerQueue.enqueue({execute:()=>this.executor.isOwnerUnlocked(e),meta:{docId:e.id,operation:"isOwnerUnlocked"}},{priority:u.MEDIUM})}}class g extends Error{constructor(e){super(e),this.name="ImageConverterError"}}const p=(e,t="image/webp",r)=>{if("undefined"==typeof document)return Promise.reject(new g("document is not available. This converter requires a browser environment."));const n=e(),i=new ImageData(n.data,n.width,n.height);return new Promise((e,n)=>{const o=document.createElement("canvas");o.width=i.width,o.height=i.height,o.getContext("2d").putImageData(i,0,0),o.toBlob(t=>{t?e(t):n(new g("Canvas toBlob returned null"))},t,r)})};function l(e){const t=async(t,r="image/webp",n)=>{try{const i=t(),o=new Uint8ClampedArray(i.data);return await e.encode({data:o,width:i.width,height:i.height},r,n)}catch(e){return console.warn("Worker encoding failed, falling back to main-thread Canvas:",e),p(t,r,n)}};return t.destroy=()=>e.destroy(),t}export{h as P,p as b,l as c};
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/annotation-sidebar/dynamic-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAY,MAAM,QAAQ,CAAC;AAGrC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAWhF,UAAU,mBAAmB;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,oEAAoE;IACpE,UAAU,EAAE,cAAc,GAAG,IAAI,CAAC;IAClC,sCAAsC;IACtC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAaD,wBAAgB,cAAc,CAAC,EAC7B,UAAU,EACV,WAAW,EACX,UAAU,EACV,YAAY,GACb,EAAE,mBAAmB,wBAqIrB"}
1
+ {"version":3,"file":"dynamic-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/annotation-sidebar/dynamic-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAY,MAAM,QAAQ,CAAC;AAGrC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAWhF,UAAU,mBAAmB;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,oEAAoE;IACpE,UAAU,EAAE,cAAc,GAAG,IAAI,CAAC;IAClC,sCAAsC;IACtC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAeD,wBAAgB,cAAc,CAAC,EAC7B,UAAU,EACV,WAAW,EACX,UAAU,EACV,YAAY,GACb,EAAE,mBAAmB,wBAgIrB"}
@@ -1,4 +1,3 @@
1
- import { PdfAnnotationSubtype } from '@embedpdf/models';
2
1
  /**
3
2
  * Configuration for a single editable property in the sidebar.
4
3
  */
@@ -32,16 +31,20 @@ export interface PropertyConfig {
32
31
  */
33
32
  export declare const PROPERTY_CONFIGS: Record<string, PropertyConfig>;
34
33
  /**
35
- * Maps annotation types to their ordered list of editable properties.
34
+ * Maps tool IDs to their ordered list of editable properties.
36
35
  * The order determines the display order in the sidebar.
36
+ *
37
+ * Keyed by tool ID (matching AnnotationTool.id) rather than annotation subtype,
38
+ * so tools sharing the same subtype (e.g. ink vs inkHighlighter, line vs lineArrow,
39
+ * or different widget field types) can define distinct property lists.
37
40
  */
38
- export declare const ANNOTATION_PROPERTIES: Partial<Record<PdfAnnotationSubtype, string[]>>;
41
+ export declare const TOOL_PROPERTIES: Record<string, string[]>;
39
42
  /**
40
- * Computes the intersection of editable properties for the given annotation types.
41
- * Returns properties in the order they appear in the first type's property list.
43
+ * Computes the intersection of editable properties for the given tool IDs.
44
+ * Returns properties in the order they appear in the first tool's property list.
42
45
  *
43
- * @param types - Array of annotation subtypes to compute intersection for
44
- * @returns Array of property keys that are shared by ALL given types
46
+ * @param toolIds - Array of tool IDs to compute intersection for
47
+ * @returns Array of property keys that are shared by ALL given tools
45
48
  */
46
- export declare function getSharedProperties(types: PdfAnnotationSubtype[]): string[];
49
+ export declare function getSharedProperties(toolIds: string[]): string[];
47
50
  //# sourceMappingURL=property-schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"property-schema.d.ts","sourceRoot":"","sources":["../../../src/components/annotation-sidebar/property-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gDAAgD;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,uCAAuC;IACvC,IAAI,EACA,OAAO,GACP,sBAAsB,GACtB,SAAS,GACT,QAAQ,GACR,aAAa,GACb,aAAa,GACb,YAAY,GACZ,UAAU,GACV,WAAW,GACX,WAAW,GACX,eAAe,GACf,WAAW,GACX,MAAM,GACN,UAAU,CAAC;IACf,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mGAAmG;IACnG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAkG3D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,MAAM,CAAC,oBAAoB,EAAE,MAAM,EAAE,CAAC,CAoFjF,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,CAe3E"}
1
+ {"version":3,"file":"property-schema.d.ts","sourceRoot":"","sources":["../../../src/components/annotation-sidebar/property-schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gDAAgD;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,uCAAuC;IACvC,IAAI,EACA,OAAO,GACP,sBAAsB,GACtB,SAAS,GACT,QAAQ,GACR,aAAa,GACb,aAAa,GACb,YAAY,GACZ,UAAU,GACV,WAAW,GACX,WAAW,GACX,eAAe,GACf,WAAW,GACX,MAAM,GACN,UAAU,CAAC;IACf,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mGAAmG;IACnG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAkG3D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAsEpD,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAc/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"annotation-sidebar.d.ts","sourceRoot":"","sources":["../../src/components/annotation-sidebar.tsx"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAkC3B,wBAAgB,iBAAiB,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,wBAoEvE"}
1
+ {"version":3,"file":"annotation-sidebar.d.ts","sourceRoot":"","sources":["../../src/components/annotation-sidebar.tsx"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAS3B,wBAAgB,iBAAiB,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,wBAqDvE"}
@@ -26,6 +26,7 @@ import { CapturePluginConfig } from '@embedpdf/plugin-capture/preact';
26
26
  import { HistoryPluginConfig } from '@embedpdf/plugin-history/preact';
27
27
  import { RedactionPluginConfig } from '@embedpdf/plugin-redaction/preact';
28
28
  import { AttachmentPluginConfig } from '@embedpdf/plugin-attachment/preact';
29
+ import { FormPluginConfig } from '@embedpdf/plugin-form/preact';
29
30
  import { ThemeConfig } from '@/config/theme';
30
31
  import { IconsConfig } from '@/config/icon-registry';
31
32
  import { TabBarVisibility } from '@/components/tab-bar';
@@ -91,6 +92,8 @@ export interface PDFViewerConfig {
91
92
  i18n?: Partial<I18nPluginConfig>;
92
93
  /** UI schema options (schema, disabledCategories) */
93
94
  ui?: Partial<UIPluginConfig>;
95
+ /** Form options (withForms, withAnnotations) */
96
+ form?: Partial<FormPluginConfig>;
94
97
  /** Viewport options (viewportGap, scrollEndDelay) */
95
98
  viewport?: Partial<ViewportPluginConfig>;
96
99
  /** Scroll options (defaultStrategy, defaultPageGap, defaultBufferSize) */
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/components/app.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAY,MAAM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AAS,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,EAAE,cAAc,iBA0LpE"}
@@ -0,0 +1,4 @@
1
+ import { h } from 'preact';
2
+ import { IconProps } from './types';
3
+ export declare const FormCheckboxIcon: ({ size, strokeWidth, primaryColor, className, title, }: IconProps) => h.JSX.Element;
4
+ //# sourceMappingURL=form-checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/icons/form-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,gBAAgB,GAAI,wDAM9B,SAAS,kBAkBX,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { h } from 'preact';
2
+ import { IconProps } from './types';
3
+ export declare const FormListboxIcon: ({ size, strokeWidth, primaryColor, className, title, }: IconProps) => h.JSX.Element;
4
+ //# sourceMappingURL=form-listbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-listbox.d.ts","sourceRoot":"","sources":["../../../src/components/icons/form-listbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,eAAe,GAAI,wDAM7B,SAAS,kBAuBX,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { h } from 'preact';
2
+ import { IconProps } from './types';
3
+ export declare const FormRadioIcon: ({ size, strokeWidth, primaryColor, className, title, }: IconProps) => h.JSX.Element;
4
+ //# sourceMappingURL=form-radio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-radio.d.ts","sourceRoot":"","sources":["../../../src/components/icons/form-radio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,aAAa,GAAI,wDAM3B,SAAS,kBAkBX,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { h } from 'preact';
2
+ import { IconProps } from './types';
3
+ export declare const FormSelectIcon: ({ size, strokeWidth, primaryColor, className, title, }: IconProps) => h.JSX.Element;
4
+ //# sourceMappingURL=form-select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-select.d.ts","sourceRoot":"","sources":["../../../src/components/icons/form-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,cAAc,GAAI,wDAM5B,SAAS,kBAkBX,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { h } from 'preact';
2
+ import { IconProps } from './types';
3
+ export declare const FormTextfieldIcon: ({ size, strokeWidth, primaryColor, className, title, }: IconProps) => h.JSX.Element;
4
+ //# sourceMappingURL=form-textfield.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-textfield.d.ts","sourceRoot":"","sources":["../../../src/components/icons/form-textfield.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,iBAAiB,GAAI,wDAM/B,SAAS,kBAsBX,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.tsx"],"names":[],"mappings":"AAgEA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAyBxC,MAAM,MAAM,KAAK,GAAG;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAwFnB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.tsx"],"names":[],"mappings":"AAgEA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA+BxC,MAAM,MAAM,KAAK,GAAG;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KA8FnB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { h } from 'preact';
2
+ import { IconProps } from './types';
3
+ export declare const WidgetEditIcon: ({ size, strokeWidth, primaryColor, className, title, }: IconProps) => h.JSX.Element;
4
+ //# sourceMappingURL=widget-edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-edit.d.ts","sourceRoot":"","sources":["../../../src/components/icons/widget-edit.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,cAAc,GAAI,wDAM5B,SAAS,kBAmBX,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"mode-select-button.d.ts","sourceRoot":"","sources":["../../src/components/mode-select-button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,UAAU,qBAAqB;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,qBAAqB,wBAuDhF"}
1
+ {"version":3,"file":"mode-select-button.d.ts","sourceRoot":"","sources":["../../src/components/mode-select-button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,UAAU,qBAAqB;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,qBAAqB,wBAwDhF"}
@@ -3,7 +3,8 @@ interface CheckboxProps {
3
3
  label: string;
4
4
  checked: boolean;
5
5
  onChange: (v: boolean) => void;
6
+ disabled?: boolean;
6
7
  }
7
- export declare const Checkbox: ({ label, checked, onChange }: CheckboxProps) => h.JSX.Element;
8
+ export declare const Checkbox: ({ label, checked, onChange, disabled }: CheckboxProps) => h.JSX.Element;
8
9
  export {};
9
10
  //# sourceMappingURL=checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAChC;AAED,eAAO,MAAM,QAAQ,GAAI,8BAA8B,aAAa,kBAyBnE,CAAC"}
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,GAAI,wCAAwC,aAAa,kBA2B7E,CAAC"}
@@ -0,0 +1,7 @@
1
+ /** @jsxImportSource preact */
2
+ import { h } from 'preact';
3
+ export interface WidgetEditSidebarProps {
4
+ documentId: string;
5
+ }
6
+ export declare const WidgetEditSidebar: ({ documentId }: WidgetEditSidebarProps) => h.JSX.Element | null;
7
+ //# sourceMappingURL=widget-edit-sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-edit-sidebar.d.ts","sourceRoot":"","sources":["../../src/components/widget-edit-sidebar.tsx"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAmB3B,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;CACpB;AAqBD,eAAO,MAAM,iBAAiB,GAAI,gBAAgB,sBAAsB,yBA4GvE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/config/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAwB3D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAiChC,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,CA+kEnD,CAAC"}
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/config/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAyB3D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAgChC,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,CAyxEnD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../src/config/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,eAAO,MAAM,mBAAmB,EAAE,MAsVjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MAuVhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAuV/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MAuVhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAuVjC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,MAiV3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAmVjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAkVlC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,KAAK,CAShD,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../src/config/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,eAAO,MAAM,mBAAmB,EAAE,MA8VjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MA+VhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MA+V/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MA+VhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MA+VjC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,MAyV3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MA2VjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MA0VlC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,KAAK,CAShD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ui-schema.d.ts","sourceRoot":"","sources":["../../src/config/ui-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,QAiiD5B,CAAC"}
1
+ {"version":3,"file":"ui-schema.d.ts","sourceRoot":"","sources":["../../src/config/ui-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,QAwqD5B,CAAC"}