PageSourceSearch

https://www.siniat.pl/etex/js/assets/js/4477.6aa2d6f1944c9405380d.mjs

js siniat.pl collected 2026-10-07 23:24:50 UTC 9,416 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebpack=self.webpackChunkwebpack||[]).push([[4477],{54477:function(t,e,a){a.r(e),a.d(e,{default:function(){return f}});var n=a(70392),i=a.n(n),s=a(47277),o=a.n(s),r=a(42799),d=a(10886),c=a(79234),l=a(83491);class h{}class u extends h{constructor(t){super(),this.data=t}handleWatermarking(t){const e=new d.cn(t,this,this.onFormCompletedCallback,this.onWatermarkingSkippedCallback);i().publish(d.er.watermarkingInputRequested,e)}handleAuthenticationRequest(t){const e=new d.C_(this,t);i().publish(d.er.authenticationRequested,e)}onFormCompletedCallback(t,e){const a=new d.OP(this.data.documentList,this.data.documentPacks,this.data.dataSheetInfos,this.data.entityName,this.data.skippedAuthentication,!1,t,e);i().publish(d.er.documentPackageCreationRequested,a)}onWatermarkingSkippedCallback(t){const e=new d.OP(t.data.documentList,t.data.documentPacks,t.data.dataSheetInfos,t.data.entityName,t.data.skippedAuthentication,!0,null,null);i().publish(d.er.documentPackageCreationRequested,e)}authRequestDeniedCallback(t){const e=t.documentPackRequest.data;i().publish(d.er.documentPackageCreationRequested,new d.OP(e.documentList,e.documentPacks,e.dataSheetInfos,e.entityName,!0,!1))}}class b extends h{constructor(t){super(),this.data=t}handleWatermarking(t){const e=new d.cn(t,this,this.onFormCompletedCallback,this.onWatermarkingSkippedCallback);i().publish(d.er.watermarkingInputRequested,e)}handleAuthenticationRequest(t){const e=new d.C_(this,t);i().publish(d.er.authenticationRequested,e)}onFormCompletedCallback(t,e){const a=new d.iF(this.data.documentPackId,!1,!1,t,e);i().publish(d.er.documentPackageDownloadRequested,a)}onWatermarkingSkippedCallback(t){const e=new d.iF(t.data.documentPackId,t.data.skippedAuthentication,!0,null,null);i().publish(d.er.documentPackageDownloadRequested,e)}authRequestDeniedCallback(t){i().publish(d.er.documentPackageDownloadRequested,new d.iF(this.data.documentPackId,!0,!1))}}var p=a(8136),m=a(80841),k=a(32979);class g{constructor(){this.clientStorageSupported="undefined"!=typeof Storage,this.jobList=new Array,this.jobListLocalStorageKeyName="JOB_LIST",this.isJobListUpdating=!1,this.restoreJobList()}register(t){return null!==t&&null!==t.jobId&&(this.jobList.push(t),this.persistJobList(),!0)}update(t){const e=this.jobList.findIndex((e=>e.jobId===t.jobId));this.jobList[e]=t,this.persistJobList()}remove(t){this.jobList.forEach(((e,a)=>{e.jobId===t&&this.jobList.splice(a,1)})),this.persistJobList()}refresh(t){if(this.isJobListUpdating||this.jobList.length<=0)return!1;this.isJobListUpdating=!0;[...this.jobList].filter((t=>!(t.failed&&t.ready))).forEach((e=>{t(e)})),this.isJobListUpdating=!1}canStartNewJob(){return null!=this.jobList&&this.jobList.length<3}restoreJobList(){if(this.clientStorageSupported){const t=window.localStorage.getItem(this.jobListLocalStorageKeyName);null!==t?(this.jobList=JSON.parse(t),this.checkForExpiredJobs()):this.jobList=new Array}}persistJobList(){if(this.clientStorageSupported){const t=JSON.stringify(this.jobList);window.localStorage.setItem(this.jobListLocalStorageKeyName,t)}}checkForExpiredJobs(){const t=new Date;let e=!1;this.jobList.forEach(((a,n)=>{null!==a.notAfter&&t>=new Date(a.notAfter)&&(this.jobList.splice(n,1),e=!0)})),e&&this.persistJobList()}}var w=a(5685);class f extends r.o{constructor(t){super(t),this.toasterContainerSelector="[data-js='download-job-container']",this.hideJobSelector="[data-js='hide-job']",this.classIsActive="is-active",this.downloadDeliveryLink="[data-js='document-pack-delivery-url']",this.jobIdAttributeName="data-js-job-id",this.watermarkingLinkSelector="[data-js='watermark-form-trigger']",this.GATED_DOWNLOAD_CLASS=".js-gated-download",this.init()}init(){this.jobManager=new g,this.refreshJobList(),this.initializeToasterUpdater(!0),this.initializeToasterEvents(),this.initializeGatedDownloadEvents(),(0,w.G)(),i().subscribe(d.er.documentPackageDownloadRequested,((t,e)=>{this.createExistingDocumentPackHandler(e)})),i().subscribe(d.er.documentPackageCreationRequested,((t,e)=>{this.createCustomDocumentPackHandler(e)})),i().subscribe(d.er.exportJobRequested,((t,e)=>{this.exportRequestedEventHandler(e)})),i().subscribe(d.er.createPdfDocumentRequested,((t,e)=>{this.createPdfDocumentEventHandler(e)}))}createCustomDocumentPackHandler(t){const e=new c.o(`${this.parm.createCustomDocumentPack}`,t,!1);t.encodedPreFilledWatermarkLines&&(e.headers={"x-encoded-prefilled-watermarking":t.encodedPreFilledWatermarkLines}),this.canStartNewJob()&&this.ajaxWrapper.doFetch(e).then((t=>t.clone().text().then((t=>{var e=new l.E(t).getComponentUpdate("job-info");const a=e.content,n=e.json;let i=new u(n);this.shouldRegisterJob(i)&&this.registerJob(n,a)})))),i().publish(d.er.documentPackageCreationRequestedHandled,null)}createExistingDocumentPackHandler(t){const e=new c.o(`${this.parm.createExistingDocumentPack}`,t,!1);this.canStartNewJob()&&this.ajaxWrapper.doFetch(e).then((e=>e.clone().text().then((e=>{var a=new l.E(e).getComponentUpdate("job-info");const n=a.content,i=a.json;let s=new b(i);this.shouldRegisterJob(s,t.eventCategory)&&this.registerJob(i,n)})))),i().publish(d.er.documentPackageDownloadRequestHandled,null)}shouldRegisterJob(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t.data.failed?(i().publish(d.er.failedRequest,null),!1):t.data.needsAuthentication?(t.handleAuthenticationRequest((t=>t.documentPackRequest.authRequestDeniedCallback(t))),p.ZP.onSingleCalculationInteraction({eventAction:"content_locked",eventLabel:"calculator"===e?"download calculations":"N/A"}),!1):(t.data.emptyResult&&i().publish(d.er.emptyResultReceived,null),!t.data.needsWatermarkingInput||(t.handleWatermarking(this.parm.watermarkPopupUrl),!1))}exportRequestedEventHandler(t){this.registerJob(t.job,t.toasterElement)}createPdfDocumentEventHandler(t){const e=new c.o(`${this.parm.createPdfDocumentExport}`,t,!1);this.canStartNewJob()&&this.ajaxWrapper.doFetch(e).then((t=>t.clone().text().then((t=>{var e=new l.E(t).getComponentUpdate("job-info");const a=e.content,n=e.json;this.registerJob(n,a)})))),i().publish(d.er.createPdfDocumentRequestHandled,null)}bindEvents(){o()(document).on("click",this.watermarkingLinkSelector,(t=>{const e=o()(t.target).closest("[data-js-watermark-form][data-asset-id]"),a=e.attr("data-js-watermark-form"),n=e.attr("data-asset-id");i().publish(d.er.watermarkingSingleDocumentInputRequested,new d.Fi(a,n)),t.stopPropagation(),t.preventDefault()}))}initializeGatedDownloadEvents(){document.addEventListener("click",(t=>{var e=t.target;if(null!=e){var a=e.closest(this.GATED_DOWNLOAD_CLASS);if(a){let e=a.dataset.entityId;if(!e)return;if("URLSearchParams"in window){var n=new URLSearchParams(window.location.search);n.set("download-id",e);var i=window.location.pathname+"?"+n.toString();history.replaceState(null,"",i)}let s=m.r.getInstance().get(k.default.DIALOG_ID);s&&s.show(t)}}}))}checkJobEntry(t,e){let a=!1;if(!e.ready||t){var n=e;if("export"==e.type&&n&&null!=n.externalJobStatusUrl){const t=new c.o(n.externalJobStatusUrl,null,!1);this.ajaxWrapper.doFetch(t).then((t=>a=this.checkJobEntryCallback(a,t)))}else if("zip"==e.type){var i=e;const t={jobId:i.jobId,fileName:i.fileName,fileCount:i.fileCount,thumbnailUrl:i.thumbnailUrl},n=new c.o(this.parm.statusUrlZip,t,!1);n.method="POST",this.ajaxWrapper.doFetch(n).then((t=>a=this.checkJobEntryCallback(a,t)))}else if("pdf"==e.type){const t={jobId:e.jobId,fileName:e.fileName},n=new c.o(this.parm.statusUrlPdf,t,!1);n.method="POST",this.ajaxWrapper.doFetch(n).then((t=>a=this.checkJobEntryCallback(a,t)))}}return a}checkJobEntryCallback(t,e){return e.clone().text().then((e=>{const a=new l.E(e).getComponentUpdate("job-info"),n=a.json,i=a.content;this.jobManager.update(n),this.addOrUpdateToaster(n,i),t=!0})),t}initializeToasterUpdater(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];setInterval((()=>{this.refreshJobList(t),t=!1}),3e3)}initializeToasterEvents(){o()(this.element).on("click",`${this.downloadDeliveryLink}, ${this.hideJobSelector}`,(t=>{const e=o()(t.target).closest(`[${this.jobIdAttributeName}]`).attr(this.jobIdAttributeName),a=o()(this.element).find(`[${this.jobIdAttributeName}='${e}']`);a&&(a.removeClass(this.classIsActive),a.remove()),this.jobManager.remove(e)}))}addOrUpdateToaster(t,e){const a=o()(this.element).find(`[${this.jobIdAttributeName}='${t.jobId}']`);null!==a&&a.length>0?(t.ready||t.failed)&&(a[0].outerHTML=e):o()(this.element).find(this.toasterContainerSelector).append(e)}
1refreshJobList(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!1;this.jobManager.refresh((a=>{if(a.failed&&!a.ready)a.ready=!0,this.jobManager.update(a),e=!0;else{const n=this.checkJobEntry(t,a);e=e||n}})),e&&this.initializeToasterEvents()}canStartNewJob(){const t=this.jobManager.canStartNewJob();return t||i().publish(d.er.downloadLimitationReached),t}registerJob(t,e){this.jobManager.register(t)&&(o()(this.toasterContainerSelector).append(e),this.refreshJobList(!1))}}},5685:function(t,e,a){a.d(e,{G:function(){return o}});var n=a(70392),i=a.n(n),s=a(10886);function o(){document.addEventListener("click",(function(t){const e=t.target.closest('[data-js="watermark-form-trigger"]');if(!e)return;const a=e.getAttribute("data-js-watermark-form"),n=e.getAttribute("data-asset-id");i().publish(s.er.watermarkingSingleDocumentInputRequested,new s.Fi(a,n)),t.stopPropagation(),t.preventDefault()}))}}}]);

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.