1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7838],{99975:(z,M,m)=>{m.d(M,{Y:()=>L});var s=m(36895),n=m(55062),b=m(47423),C=m(89383),x=m(29026);class v{constructor(t){this.rawFile=t;const e=t instanceof HTMLInputElement?t.value:t;this["_createFrom"+("string"==typeof e?"FakePath":"Object")](e)}_createFromFakePath(t){this.lastModifiedDate=void 0,this.size=void 0,this.type=`like/${t.slice(t.lastIndexOf(".")+1).toLowerCase()}`,this.name=t.slice(t.lastIndexOf("/")+t.lastIndexOf("\\")+2)}_createFromObject(t){this.size=t.size,this.type=t.type,this.name=t.name}}class S{constructor(t,e,i){this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.uploader=t,this.some=e,this.options=i,this.file=new v(e),this._file=e,t.options&&(this.method=t.options.method||"POST",this.alias=t.options.itemAlias||"file"),this.url=t.options.url}upload(){try{this.uploader.uploadItem(this)}catch(t){this.uploader._onCompleteItem(this,"",0,{}),this.uploader._onErrorItem(this,"",0,{})}}cancel(){this.uploader.cancelItem(this)}remove(){this.uploader.removeFromQueue(this)}onBeforeUpload(){}onBuildForm(t){return{form:t}}onProgress(t){return{progress:t}}onSuccess(t,e,i){return{response:t,status:e,headers:i}}onError(t,e,i){return{response:t,status:e,headers:i}}onCancel(t,e,i){return{response:t,status:e,headers:i}}onComplete(t,e,i){return{response:t,status:e,headers:i}}_onBeforeUpload(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}_onBuildForm(t){this.onBuildForm(t)}_onProgress(t){this.progress=t,this.onProgress(t)}_onSuccess(t,e,i){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(t,e,i)}_onError(t,e,i){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(t,e,i)}_onCancel(t,e,i){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(t,e,i)}_onComplete(t,e,i){this.onComplete(t,e,i),this.uploader.options.removeAfterUpload&&this.remove()}_prepareToUploading(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}let P=(()=>{class a{static getMimeClass(e){var i,o,r;let l="application";return null!=e&&e.type&&-1!==this.mime_psd.indexOf(e.type)||null!=e&&null!==(i=e.type)&&void 0!==i&&i.match("image.*")?l="image":null!=e&&null!==(o=e.type)&&void 0!==o&&o.match("video.*")?l="video":null!=e&&null!==(r=e.type)&&void 0!==r&&r.match("audio.*")?l="audio":"application/pdf"===(null==e?void 0:e.type)?l="pdf":null!=e&&e.type&&-1!==this.mime_compress.indexOf(e.type)?l="compress":null!=e&&e.type&&-1!==this.mime_doc.indexOf(e.type)?l="doc":null!=e&&e.type&&-1!==this.mime_xsl.indexOf(e.type)?l="xls":null!=e&&e.type&&-1!==this.mime_ppt.indexOf(e.type)&&(l="ppt"),"application"===l&&null!=e&&e.name&&(l=this.fileTypeDetection(e.name)),l}static fileTypeDetection(e){const i={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},o=e.split(".");if(o.length<2)return"application";const r=o[o.length-1].toLowerCase();return void 0===i[r]?"application":i[r]}}return a.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],a.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],a.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],a.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],a.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"],a})();class y{constructor(t){this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:e=>e._file,formatDataFunctionIsAsync:!1,url:""},this.setOptions(t),this.response=new n.vpe}setOptions(t){var e,i,o,r;this.options=Object.assign(this.options,t),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,null===(e=this.options.filters)||void 0===e||e.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&(null===(i=this.options.filters)||void 0===i||i.unshift({name:"fileSize",fn:this._fileSizeFilter})),this.options.allowedFileType&&(null===(o=this.options.filters)||void 0===o||o.unshift({name:"fileType",fn:this._fileTypeFilter})),this.options.allowedMimeType&&(null===(r=this.options.filters)||void 0===r||r.unshift({name:"mimeType",fn:this._mimeTypeFilter}));for(let l=0;l<this.queue.length;l++)this.queue[l].url=this.options.url}addToQueue(t,e,i){let o=e;const r=[];for(const g of t)r.push(g);const l=this._getFilters(i),_=this.queue.length,f=[];r.map(g=>{o||(o=this.options);const A=new v(g);if(this._isValidFile(A,l,o)){const O=new S(this,g,o);
1f.push(O),this.queue.push(O),this._onAfterAddingFile(O)}else"number"==typeof this._failFilterIndex&&this._failFilterIndex>=0&&this._onWhenAddingFileFailed(A,l[this._failFilterIndex],o)}),this.queue.length!==_&&(this._onAfterAddingAll(f),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}removeFromQueue(t){const e=this.getIndexOfItem(t),i=this.queue[e];i.isUploading&&i.cancel(),this.queue.splice(e,1),this.progress=this._getTotalProgress()}clearQueue(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}uploadItem(t){const e=this.getIndexOfItem(t),i=this.queue[e],o=this.options.isHTML5?"_xhrTransport":"_iframeTransport";i._prepareToUploading(),!this.isUploading&&(this.isUploading=!0,this[o](i))}cancelItem(t){const e=this.getIndexOfItem(t),i=this.queue[e];i&&i.isUploading&&(this.options.isHTML5?i._xhr:i._form).abort()}uploadAll(){const t=this.getNotUploadedItems().filter(e=>!e.isUploading);t.length&&(t.map(e=>e._prepareToUploading()),t[0].upload())}cancelAll(){this.getNotUploadedItems().map(e=>e.cancel())}isFile(t){return function T(a){return File&&a instanceof File}(t)}isFileLikeObject(t){return t instanceof v}getIndexOfItem(t){return"number"==typeof t?t:this.queue.indexOf(t)}getNotUploadedItems(){return this.queue.filter(t=>!t.isUploaded)}getReadyItems(){return this.queue.filter(t=>t.isReady&&!t.isUploading).sort((t,e)=>t.index-e.index)}onAfterAddingAll(t){return{fileItems:t}}onBuildItemForm(t,e){return{fileItem:t,form:e}}onAfterAddingFile(t){return{fileItem:t}}onWhenAddingFileFailed(t,e,i){return{item:t,filter:e,options:i}}onBeforeUploadItem(t){return{fileItem:t}}onProgressItem(t,e){return{fileItem:t,progress:e}}onProgressAll(t){return{progress:t}}onSuccessItem(t,e,i,o){return{item:t,response:e,status:i,headers:o}}onErrorItem(t,e,i,o){return{item:t,response:e,status:i,headers:o}}onCancelItem(t,e,i,o){return{item:t,response:e,status:i,headers:o}}onCompleteItem(t,e,i,o){return{item:t,response:e,status:i,headers:o}}onCompleteAll(){}_mimeTypeFilter(t){var e;return!(null!=t&&t.type&&this.options.allowedMimeType&&-1===(null===(e=this.options.allowedMimeType)||void 0===e?void 0:e.indexOf(t.type)))}_fileSizeFilter(t){return!(this.options.maxFileSize&&t.size>this.options.maxFileSize)}_fileTypeFilter(t){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(P.getMimeClass(t)))}_onErrorItem(t,e,i,o){t._onError(e,i,o),this.onErrorItem(t,e,i,o)}_onCompleteItem(t,e,i,o){t._onComplete(e,i,o),this.onCompleteItem(t,e,i,o);const r=this.getReadyItems()[0];this.isUploading=!1,r?r.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}_headersGetter(t){return e=>e?t[e.toLowerCase()]||void 0:t}_xhrTransport(t){const e=this,i=t._xhr=new XMLHttpRequest;let o;if(this._onBeforeUploadItem(t),"number"!=typeof t._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)this.options.formatDataFunction&&(o=this.options.formatDataFunction(t));else{o=new FormData,this._onBuildItemForm(t,o);const r=()=>o.append(t.alias,t._file,t.file.name);this.options.parametersBeforeFiles||r(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(l=>{var _,f;let g=null===(_=this.options.additionalParameter)||void 0===_?void 0:_[l];"string"==typeof g&&g.indexOf("{{file_name}}")>=0&&null!==(f=t.file)&&void 0!==f&&f.name&&(g=g.replace("{{file_name}}",t.file.name)),o.append(l,g)}),r&&this.options.parametersBeforeFiles&&r()}if(i.upload.onprogress=r=>{const l=Math.round(r.lengthComputable?100*r.loaded/r.total:0);this._onProgressItem(t,l)},i.onload=()=>{const r=this._parseHeaders(i.getAllResponseHeaders()),l=this._transformResponse(i.response,r);this[`_on${this._isSuccessCode(i.status)?"Success":"Error"}Item`](t,l,i.status,r),this._onCompleteItem(t,l,i.status,r)},i.onerror=()=>{const r=this._parseHeaders(i.getAllResponseHeaders()),l=this._transformResponse(i.response,r);this._onErrorItem(t,l,i.status,r),this._onCompleteItem(t,l,i.status,r)},i.onabort=()=>{const r=this._parseHeaders(i.getAllResponseHeaders()),l=this._transformResponse(i.response,r);this._onCancelItem(t,l,i.status,r),this._onCompleteItem(t,l,i.status,r)},t.method&&t.url&&i.open(t.method,t.url,!0),i.withCredentials=t.withCredentials,this.options.headers)for(const r of this.options.headers)i.setRequestHeader(r.name,r.value);if(t.headers.length)for(const r of t.headers)i.setRequestHeader(r.name,r.value);this.authToken&&this.authTokenHeader&&i.setRequestHeader(this.authTokenHeader,this.authToken),i.onreadystatechange=function(){i.readyState==XMLHttpRequest.DONE&&e.response.emit(i.responseText)},this.options.formatDataFunctionIsAsync?o.then(r=>i.send(JSON.stringify(r))):i.send(o),this._render()}_getTotalProgress(t=0){if(this.options.removeAfterUpload)return t;const e=this.getNotUploadedItems().length,o=100/this.queue.length;return Math.round((e?this.queue.length-e:this.queue.length)*o+t*o/100)}_getFilters(t){var e,i;if(!t)return(null===(i=this.options)||void 0===i?void 0:i.filters)||[];if(Array.isArray(t))return t;if("string"==typeof t){var o;const r=t.match(/[^\s,]+/g);return(null===(o=this.options)||void 0===o?void 0:o.filters)||[].filter(l=>
1-1!==(null==r?void 0:r.indexOf(l.name)))}return(null===(e=this.options)||void 0===e?void 0:e.filters)||[]}_render(){}_queueLimitFilter(){return void 0===this.options.queueLimit||this.queue.length<this.options.queueLimit}_isValidFile(t,e,i){return this._failFilterIndex=-1,!e.length||e.every(o=>("number"==typeof this._failFilterIndex&&this._failFilterIndex++,o.fn.call(this,t,i)))}_isSuccessCode(t){return t>=200&&t<300||304===t}_transformResponse(t,e){return t}_parseHeaders(t){const e={};let i,o,r;return t&&t.split("\n").map(l=>{r=l.indexOf(":"),i=l.slice(0,r).trim().toLowerCase(),o=l.slice(r+1).trim(),i&&(e[i]=e[i]?e[i]+", "+o:o)}),e}_onWhenAddingFileFailed(t,e,i){this.onWhenAddingFileFailed(t,e,i)}_onAfterAddingFile(t){this.onAfterAddingFile(t)}_onAfterAddingAll(t){this.onAfterAddingAll(t)}_onBeforeUploadItem(t){t._onBeforeUpload(),this.onBeforeUploadItem(t)}_onBuildItemForm(t,e){t._onBuildForm(e),this.onBuildItemForm(t,e)}_onProgressItem(t,e){const i=this._getTotalProgress(e);this.progress=i,t._onProgress(e),this.onProgressItem(t,e),this.onProgressAll(i),this._render()}_onSuccessItem(t,e,i,o){t._onSuccess(e,i,o),this.onSuccessItem(t,e,i,o)}_onCancelItem(t,e,i,o){t._onCancel(e,i,o),this.onCancelItem(t,e,i,o)}}let w=(()=>{class a{constructor(e){this.fileOver=new n.vpe,this.onFileDrop=new n.vpe,this.element=e}getOptions(){var e;return null===(e=this.uploader)||void 0===e?void 0:e.options}getFilters(){return""}onDrop(e){const i=this._getTransfer(e);if(!i)return;const o=this.getOptions(),r=this.getFilters();var l;this._preventAndStop(e),o&&(null===(l=this.uploader)||void 0===l||l.addToQueue(i.files,o,r)),this.fileOver.emit(!1),this.onFileDrop.emit(i.files)}onDragOver(e){const i=this._getTransfer(e);this._haveFiles(i.types)&&(i.dropEffect="copy",this._preventAndStop(e),this.fileOver.emit(!0))}onDragLeave(e){this.element&&e.currentTarget===this.element[0]||(this._preventAndStop(e),this.fileOver.emit(!1))}_getTransfer(e){return e.dataTransfer?e.dataTransfer:e.originalEvent.dataTransfer}_preventAndStop(e){e.preventDefault(),e.stopPropagation()}_haveFiles(e){return!!e&&(e.indexOf?-1!==e.indexOf("Files"):!!e.contains&&e.contains("Files"))}}return a.\u0275fac=function(e){return new(e||a)(n.Y36(n.SBq))},a.\u0275dir=n.lG2({type:a,selectors:[["","ng2FileDrop",""]],hostBindings:function(e,i){1&e&&n.NdJ("drop",function(r){return i.onDrop(r)})("dragover",function(r){return i.onDragOver(r)})("dragleave",function(r){return i.onDragLeave(r)})},inputs:{uploader:"uploader"},outputs:{fileOver:"fileOver",onFileDrop:"onFileDrop"}}),a})(),I=(()=>{class a{constructor(e){this.onFileSelected=new n.vpe,this.element=e}getOptions(){var e;return null===(e=this.uploader)||void 0===e?void 0:e.options}getFilters(){return""}isEmptyAfterSelection(){return!!this.element.nativeElement.attributes.multiple}onChange(){var e;const i=this.element.nativeElement.files,o=this.getOptions(),r=this.getFilters();null===(e=this.uploader)||void 0===e||e.addToQueue(i,o,r),this.onFileSelected.emit(i),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}return a.\u0275fac=function(e){return new(e||a)(n.Y36(n.SBq))},a.\u0275dir=n.lG2({type:a,selectors:[["","ng2FileSelect",""]],hostBindings:function(e,i){1&e&&n.NdJ("change",function(){return i.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}}),a})(),U=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[s.ez]}),a})();var E=m(4317),F=m(90603),p=m(64998);function h(a,t){if(1&a){const e=n.EpF();n.TgZ(0,"div",7)(1,"p",8),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"p",9),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"div",10),n._uU(8),n.ALo(9,"translate"),n.TgZ(10,"input",11,12),n.NdJ("click",function(o){n.CHM(e);const r=n.oxw();return n.KtG(r.onFileClick(o))}),n.ALo(12,"translate"),n.qZA(),n._UZ(13,"br"),n.qZA()()}if(2&a){const e=n.oxw();n.Q6J("uploader",e.uploader),n.xp6(2),n.Oqu(n.lcZ(3,7,"COMPONENTS.COMMON.FILEUPLOAD.DROPFILES")),n.xp6(3),n.Oqu(n.lcZ(6,9,"COMPONENTS.COMMON.FILEUPLOAD.OR")),n.xp6(3),n.hij(" ",n.lcZ(9,11,"COMPONENTS.COMMON.FILEUPLOAD.SELECTFILES")," "),n.xp6(2),n.s9C("title",n.lcZ(12,13,"COMPONENTS.COMMON.FILEUPLOAD.SELECTFILES")),n.Q6J("uploader",e.uploader)("accept",e.allowedExtensions)}}function c(a,t){if(1&a&&(n.TgZ(0,"p",13),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&a){const e=n.oxw();n.xp6(1),n.lnq(" ",n.lcZ(2,3,"COMPONENTS.COMMON.FILEUPLOAD.UPLOAD")," ",e.allowedExtensionsDisplay," ",n.lcZ(3,5,"COMPONENTS.COMMON.FILEUPLOAD.FILESONLY")," ")}}function u(a,t){if(1&a){const e=n.EpF();n.TgZ(0,"div")(1,"button",10),n._uU(2),n.ALo(3,"translate"),n.TgZ(4,"input",14,12),n.NdJ("
1click",function(o){n.CHM(e);const r=n.oxw();return n.KtG(r.onFileClick(o))}),n.ALo(6,"translate"),n.qZA(),n._UZ(7,"br"),n.qZA()()}if(2&a){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,3,"COMPONENTS.COMMON.FILEUPLOAD.SELECTFILES")," "),n.xp6(2),n.s9C("title",n.lcZ(6,5,"COMPONENTS.COMMON.FILEUPLOAD.SELECTFILES")),n.Q6J("uploader",e.uploader)}}function d(a,t){if(1&a&&(n.TgZ(0,"div")(1,"span",15),n._uU(2),n.qZA()()),2&a){const e=n.oxw();n.xp6(2),n.hij(" ",e.errorMessage," ")}}function D(a,t){if(1&a&&(n._UZ(0,"img",19),n.ALo(1,"safe")),2&a){const e=n.oxw().$implicit;n.Q6J("src",n.xi3(1,1,e.data,"resourceUrl"),n.LSH)}}function N(a,t){1&a&&n._UZ(0,"img",20)}function k(a,t){if(1&a){const e=n.EpF();n.TgZ(0,"div"),n.YNc(1,D,2,4,"img",16),n.YNc(2,N,1,0,"img",17),n.TgZ(3,"span",18),n.NdJ("click",function(){const r=n.CHM(e).$implicit,l=n.oxw();return n.KtG(l.removeItem(r))}),n.qZA()()}if(2&a){const e=t.$implicit;n.xp6(1),n.Q6J("ngIf","pdf"!==e.extension&&e.data),n.xp6(1),n.Q6J("ngIf","pdf"===e.extension)}}let L=(()=>{var a;class t{constructor(i,o,r,l){this.modalCtrl=i,this.platform=o,this.translateService=r,this.config=l,this.errorUploading=!1,this.uploadFiles=new n.vpe,this.allowedExtensions=this.config.config.fileUpload.allowedExtensions.join(","),this.allowedExtensionsDisplay=this.allowedExtensions.replace(/\./g," "),this.isMobileDevice=b.dV.isNativePlatform()||this.platform.is("ios")||this.platform.is("android")}set configureFor(i){i&&(this.configID=i)}ngOnInit(){const i={url:"",itemAlias:"cmxFileData",allowedMimeType:this.config.config.fileUpload.allowedMimeTypes,maxFileSize:this.config.config.fileUpload.maxFileSize};this.maxNoFiles=this.setMaxNoFiles(),this.maxNoFiles>1&&Object.assign(i,{queueLimit:this.maxNoFiles}),this.uploader=new y(i),this.uploader.onAfterAddingFile=o=>{this.uploader.queue=this.uploader.queue.slice(Math.max(this.uploader.queue.length-this.maxNoFiles,0)),this.errorUploading=!1,this.loadFile(o),this.determineExtension(o)},this.uploader.onWhenAddingFileFailed=(o,r)=>{let l;switch(this.errorUploading=!0,r.name){case"fileSize":l=[String(this.translateService.instant("COMPONENTS.COMMON.FILEUPLOAD.ERROR.MAXFILESIZE.PRE"))," ",Math.floor(this.config.config.fileUpload.maxFileSize/1048576).toString(),String(this.translateService.instant("COMPONENTS.COMMON.FILEUPLOAD.ERROR.MAXFILESIZE.POST"))],this.errorMessage=l.join("");break;case"mimeType":this.errorMessage=String(this.translateService.instant("COMPONENTS.COMMON.FILEUPLOAD.ERROR.MIMETYPE"));break;case"queueLimit":l=[String(this.translateService.instant("COMPONENTS.COMMON.FILEUPLOAD.ERROR.MAXFILES.PRE")),this.maxNoFiles.toString(),String(this.translateService.instant("COMPONENTS.COMMON.FILEUPLOAD.ERROR.MAXFILES.POST"))],this.errorMessage=l.join("");break;default:this.errorMessage=String(this.translateService.instant("COMPONENTS.COMMON.FILEUPLOAD.ERROR.UNKNOWN"))}}}onFileClick(i){i.target.value=""}setMaxNoFiles(){let i=this.maxNoFiles=this.config.config.fileUpload.maxFiles;return Object.keys(this.config.config).forEach(o=>{o===this.configID&&this.config.config[o].maxFiles&&(i=this.config.config[o].maxFiles)}),i}determineExtension(i){const o=i.file.name.split(".");i.extension=o[o.length-1].toLowerCase()}loadFile(i){this.createReader(i).readAsDataURL(i._file)}createReader(i){const o=new FileReader;return o.onload=()=>{i.data=o.result},o}clearPreview(){const i=document.getElementById("output");for(;i.firstChild;)i.removeChild(i.firstChild)}removeItem(i){i.remove(),this.errorUploading=!1}}return(a=t).\u0275fac=function(i){return new(i||a)(n.Y36(F.IN),n.Y36(F.t4),n.Y36(C.sK),n.Y36(E._))},a.\u0275cmp=n.Xpm({type:a,selectors:[["nve-file-upload"]],inputs:{configureFor:"configureFor"},outputs:{uploadFiles:"uploadFiles"},standalone:!0,features:[n.jDz],decls:9,vars:5,consts:[[1,"clearfix"],[1,"file-upload"],["ng2FileDrop","","name","cmxFileData","class","my-drop-zone",3,"uploader",4,"ngIf"],["class","accept",4,"ngIf"],[4,"ngIf"],[1,"preview-img"],[4,"ngFor","ngForOf"],["ng2FileDrop","","name","cmxFileData",1,"my-drop-zone",3,"uploader"],[1,"drop-head"],[1,"drop-sub-head"],[1,"file-input"],["type","file","ng2FileSelect","","id","avatar",3,"title","uploader","accept","click"],["fileInput",""],[1,"accept"],["type","file","ng2FileSelect","","id","avatar","accept","image/*,application/pdf;capture=camera","multiple","",3,"uploader","title","click"],[1,"validation-form-error","small-padding-top"],[3,"src",4,"ngIf"],["src","assets/images/no-preview-available.jpg",4,"ngIf"],[1,"ion-close-circled",3,"click"],[3,"src"],["src","assets/images/no-preview-available.jpg"]],template:function(i,o){1&i&&(n.TgZ(0,"div",0)(1,"div")(2,"div",1),n.YNc(3,h,14,15,"div",2),n.YNc(4,c,4,7,"p",3),n.YNc(5,u,8,7,"div",4),n.YNc(6,d,3,1,"div",4),n.TgZ(7,"div",5),n.YNc(8,k,4,2,"div",6),n.qZA()()()()),2&i&&(n.xp6(3),n.Q6J("ngIf",!o.isMobileDevice),n.xp6(1),n.Q6J("ngIf",!o.isMobileDevice),n.xp6(1),n.Q6J("ngIf",o.isMobileDevice),n.xp6(1),n.Q6J("ngIf",o.errorUploading),n.xp6(2),n.Q6J("ngForOf",o.uploader.queue))},dependencies:[C.aw,C.X$,s.ez,s.sg,s.O5,U,w,I,x.D,p.Q],styles:[".nve[_ng
1content-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-checked[_ngcontent-%COMP%]{border-color:#d2c9c7}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{top:3px;left:3px;width:12px;height:12px}.nve[_ngcontent-%COMP%] .radio-md[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{border-color:#d2c9c7;background:#ffffff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%]{border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-icon[_ngcontent-%COMP%]{width:20px;height:20px;border-width:1px;border-style:solid;border-radius:1px;border-color:#d2c9c7;background-color:#fff}.nve[_ngcontent-%COMP%] .checkbox-md[_ngcontent-%COMP%] .checkbox-checked[_ngcontent-%COMP%] .checkbox-inner[_ngcontent-%COMP%]{top:0;left:7px;width:5px;height:14px}.nve[_ngcontent-%COMP%] .checkbox-md.checkbox-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-checkbox-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none;background:#ccc}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] .radio-md.radio-disabled[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%], .nve[_ngcontent-%COMP%] .item-md.item-radio-disabled[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] .radio-icon[_ngcontent-%COMP%]{background:#cccccc}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.nve[_ngcontent-%COMP%] ion-radio.radio-disabled[_ngcontent-%COMP%]::part(container){background:#cccccc}.nve[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1em;font-weight:400;color:#000}.file-upload[_ngcontent-%COMP%]{font-size:20px;padding:30px 30px 0}.file-upload[_ngcontent-%COMP%] .nv-file-over[_ngcontent-%COMP%]{border:dotted 3px red}.file-upload[_ngcontent-%COMP%] .my-drop-zone[_ngcontent-%COMP%]{border:dotted 3px #93b4c9;height:200px;background:#f6f8fb;display:flex;justify-content:center;align-items:center;flex-direction:column}.file-upload[_ngcontent-%COMP%] .my-drop-zone[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:10px;margin:0;font-weight:700}.file-upload[_ngcontent-%COMP%] .my-drop-zone[_ngcontent-%COMP%] .drop-head[_ngcontent-%COMP%]{color:#427596}.file-upload[_ngcontent-%COMP%] .my-drop-zone[_ngcontent-%COMP%] .drop-sub-head[_ngcontent-%COMP%]{font-size:18px;color:#8da3ba}.file-upload[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{padding:20px}.file-upload[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:200px;height:200px}.file-upload[_ngcontent-%COMP%] .button[_ngcontent-%COMP%], .file-upload[_ngcontent-%COMP%] .btn-upload[_ngcontent-%COMP%], .file-upload[_ngcontent-%COMP%] .file-input[_ngcontent-%COMP%]{padding:10px 20px;background-color:#007cc8;color:#fff;font-size:20px}.file-upload[_ngcontent-%COMP%] .file-input[_ngcontent-%COMP%]{position:relative;margin:10px;border-radius:5px}.file-upload[_ngcontent-%COMP%] .file-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;border:1px solid black}.file-upload[_ngcontent-%COMP%] .btn-upload[_ngcontent-%COMP%]{font-size:14px}.file-upload[_ngcontent-%COMP%] .preview-img[_ngcontent-%COMP%]{padding-top:10px}.file-upload[_ngcontent-%COMP%] .preview-img[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline-block!important;margin-top:10px;height:100px;width:100px;position:relative;border:1px solid #ccc}.file-upload[_ngcontent-%COMP%] .preview-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%}.file-upload[_ngcontent-%COMP%] .preview-img[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;top:0px;right:0px}.file-upload[_ngcontent-%COMP%] .accept[_ngcontent-%COMP%]{font-size:16px;margin-top:.5em;font-style:italic}@media (min-width: 320px) and (max-width: 1279px){.file-upload[_ngcontent-%COMP%]{padding-left:0;left:0px}}"]}),t})()},42150:(z,M,m)=>{m.d(M,{P:()=>F});var s=m(55062),n=m(9129),b=m(17914),C=m(8085),x=m(89383),v=m(36895);const S=function(p){return{"display-inline-block":p}};function P(p,h){if(1&p&&(s.TgZ(0,"h1",10),s._uU(1),s.qZA()),2&p){const c=s.oxw();s.Q6J("ngClass",s.VKq(3,S,null!=c.linkName&&c._activeSection==c.linkShowTab)),s.uIk("aria-label",c.pageTitle),s.xp6(1),s.hij(" ",c.pageTitle," ")}}function T(p,h){if(1&p){const c=s.EpF();
1s.TgZ(0,"a",11),s.NdJ("click",function(){s.CHM(c);const d=s.oxw();return s.KtG(d.navigate())}),s._uU(1),s.qZA()}if(2&p){const c=s.oxw();s.xp6(1),s.Oqu(c.linkName)}}function y(p,h){if(1&p&&(s.TgZ(0,"li",12),s.ALo(1,"translate"),s.TgZ(2,"span"),s._uU(3),s.ALo(4,"translate"),s.qZA()()),2&p){const c=h.$implicit,u=s.oxw();s.ekj("hide",!c.displayBreadCrumb)("active",c.sectionID==u.activeSection||c.isSectionComplete),s.uIk("aria-label",s.lcZ(1,6,c.sectionTitle)),s.xp6(3),s.Oqu(s.lcZ(4,8,c.sectionTitle))}}function w(p,h){if(1&p&&(s.TgZ(0,"h1",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&p){const c=s.oxw().$implicit;s.xp6(1),s.hij(" ",s.lcZ(2,1,c.sectionTitle)," ")}}function I(p,h){if(1&p&&(s.TgZ(0,"div"),s.YNc(1,w,3,3,"h1",13),s.qZA()),2&p){const c=h.$implicit,u=s.oxw();s.xp6(1),s.Q6J("ngIf",c.sectionID==u.activeSection)}}let U=(()=>{var p;class h{constructor(u,d,D){this.loginService=u,this.navUtility=d,this._translateService=D,this.displayBreadCrumb=!0}set activeSection(u){if(this.breadCrumbData&&this.breadCrumbData.length>0)for(let d of this.breadCrumbData)if(d.getSectionID()===u){this.displayBreadCrumb=!!d.getDisplayBreadCrumb();break}this._activeSection=u}get activeSection(){return this._activeSection}navigate(){"startService"===this.fromPage?(this.loginService.genericLoginModalRedirectionName=this.linkDestination,this.navUtility.navigate(C.$.login,!0)):"registration"===this.fromPage&&this.navUtility.navigate(this.linkDestination,!1)}}return(p=h).\u0275fac=function(u){return new(u||p)(s.Y36(n.r),s.Y36(b.H),s.Y36(x.sK))},p.\u0275cmp=s.Xpm({type:p,selectors:[["nve-breadcrumb"]],inputs:{pageTitle:"pageTitle",breadCrumbData:"breadCrumbData",linkName:"linkName",linkDestination:"linkDestination",linkShowTab:"linkShowTab",fromPage:"fromPage",activeSection:"activeSection"},decls:12,vars:6,consts:[[1,"clearfix"],[1,"col-xs-12","only-mobile","margin-bottom-15"],["class","heading","tabindex","0",3,"ngClass",4,"ngIf"],[3,"click",4,"ngIf"],[1,"col-sm-12"],[1,"step-by-step"],[1,"stepContainer","statusBar"],["class","step contentWidth33","tabindex","0",3,"hide","active",4,"ngFor","ngForOf"],[1,"col-xs-12"],[4,"ngFor","ngForOf"],["tabindex","0",1,"heading",3,"ngClass"],[3,"click"],["tabindex","0",1,"step","contentWidth33"],["class","h3 visible-xs visible-sm only-mobile margin-left-15",4,"ngIf"],[1,"h3","visible-xs","visible-sm","only-mobile","margin-left-15"]],template:function(u,d){1&u&&(s.TgZ(0,"div",0)(1,"div",1),s.YNc(2,P,2,5,"h1",2),s.YNc(3,T,2,1,"a",3),s.qZA()(),s.TgZ(4,"div",0)(5,"div",4)(6,"div",5)(7,"ul",6),s.YNc(8,y,5,10,"li",7),s.qZA()()()(),s.TgZ(9,"div",0)(10,"div",8),s.YNc(11,I,2,1,"div",9),s.qZA()()),2&u&&(s.xp6(2),s.Q6J("ngIf",void 0!==d.pageTitle&&""!==d.pageTitle),s.xp6(1),s.Q6J("ngIf",null!=d.linkName&&d._activeSection==d.linkShowTab),s.xp6(4),s.ekj("hide",!d.displayBreadCrumb),s.xp6(1),s.Q6J("ngForOf",d.breadCrumbData),s.xp6(3),s.Q6J("ngForOf",d.breadCrumbData))},dependencies:[v.mk,v.sg,v.O5,x.X$],encapsulation:2}),h})();const E=["*"];let F=(()=>{var p;class h{}return(p=h).\u0275fac=function(u){return new(u||p)},p.\u0275cmp=s.Xpm({type:p,selectors:[["nve-wizard"]],inputs:{pageTitle:"pageTitle",breadCrumbData:"breadCrumbData",activeSection:"activeSection",linkName:"linkName",linkDestination:"linkDestination",linkShowTab:"linkShowTab",fromPage:"fromPage"},ngContentSelectors:E,decls:4,vars:7,consts:[[1,"status-bar-step","no-padding-row-mobile",3,"breadCrumbData","activeSection","pageTitle","linkName","linkDestination","linkShowTab","fromPage"],[1,"page-content"],[1,"content-wrapper"]],template:function(u,d){1&u&&(s.F$t(),s._UZ(0,"nve-breadcrumb",0),s.TgZ(1,"div",1)(2,"div",2),s.Hsn(3),s.qZA()()),2&u&&s.Q6J("breadCrumbData",d.breadCrumbData)("activeSection",d.activeSection)("pageTitle",d.pageTitle)("linkName",d.linkName)("linkDestination",d.linkDestination)("linkShowTab",d.linkShowTab)("fromPage",d.fromPage)},dependencies:[U],encapsulation:2}),h})()},64134:(z,M,m)=>{m.d(M,{$G:()=>x,$T:()=>w,Ab:()=>H,Bh:()=>Z,DC:()=>i,Ec:()=>r,Ft:()=>R,G1:()=>f,GL:()=>v,Gd:()=>g,Ho:()=>F,Ht:()=>N,IS:()=>W,Ii:()=>A,KH:()=>o,Lc:()=>S,Nv:()=>
1B,Ob:()=>e,Ou:()=>q,To:()=>l,UB:()=>k,UQ:()=>b,Vh:()=>y,Wr:()=>I,Wv:()=>U,XG:()=>n,XL:()=>a,Yd:()=>_,a3:()=>u,ax:()=>t,dj:()=>O,ds:()=>E,fg:()=>p,iZ:()=>d,oj:()=>L,sg:()=>c,tW:()=>T,v1:()=>h,vK:()=>C,vQ:()=>P,vU:()=>s,w1:()=>D});const s="coolshare-support-confirm",n="coolshare-support-review",b="coolshare-support-step1",C="dri-donate-step1",x="dri-donate-review",v="dri-donate-confirm",S="supplier-inquiry-step1",P="supplier-inquiry-review",T="supplier-inquiry-confirm",y="report-scam-step1",w="report-scam-step2",I="report-scam-review",U="report-scam-confirm",E="tou-sign-up-step1",F="tou-sign-up-review",p="tou-sign-up-confirm",h="streetlight-step1",c="streetlight-review",u="streetlight-confirm",d="rengen-subscribe-step1",D="rengen-subscribe-review",N="rengen-subscribe-confirm",k="is2-step1",L="is2-step2",a="is2-step3",t="is2-review",e="is2-confirm",i="install-survey-step1",o="install-survey-step2",r="install-survey-review",l="install-survey-confirm",_="green-energy-step1",f="green-energy-review",g="green-energy-confirm",A="esap-step1",O="esap-step2",R="esap-step3",Z="esap-review",q="esap-confirm",B="evccr-step1",H="evccr-review",W="evccr-confirm"}}]);
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.