PageSourceSearch

https://fromsmash.com/6535.bde39ab813c003b5.js

js fromsmash.com collected 2026-09-24 08:43:22 UTC 186,204 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkstaticsmashapp=self.webpackChunkstaticsmashapp||[]).push([[6535],{46535:(W,w,m)=>{m.r(w),m.d(w,{PrepareModule:()=>Ci});var l=m(61142),_=m(56106),S=m(75118),A=m(47975),y=m(69105),k=m(70332),F=m(48429),d=m(44849),h=m(60625),u=m(25580),e=m(58527),C=m(20154),j=m(85621),B=m(85687),x=m(46891),G=m(7738),g=m(43315),p=m(30532),ge=m(69486),T=m(5007),O=m(96542);let _e=(()=>{var n;class a{constructor(t){this.ref=t}ngOnInit(){}closeModal(){this.ref.close()}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(T.ce))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-modal-forbidden-email"]],inputs:{domain:"domain"},decls:18,vars:9,consts:[[1,"modal"],[1,"header"],[1,"smash-logo"],[1,"icon-smash_icologo_chip"],["translate","",1,"title","title-big"],[1,"body"],[1,"section"],[1,"footer"],[1,"btn-new","red",3,"click"]],template:function(t,i){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.nrm(3,"i",3),e.k0s(),e.j41(4,"div",4),e.EFF(5,"UPLOADER_FORBIDDEN_TITLE"),e.k0s()(),e.j41(6,"div",5)(7,"div",6)(8,"p"),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"p"),e.EFF(12),e.nI1(13,"translate"),e.k0s()()(),e.j41(14,"div",7)(15,"button",8),e.bIt("click",function(){return i.closeModal()}),e.EFF(16),e.nI1(17,"translate"),e.k0s()()()),2&t&&(e.R7$(9),e.SpI(" ",e.bMT(10,3,"UPLOADER_FORBIDDEN_TEXT1")," "),e.R7$(3),e.SpI(" ",e.bMT(13,5,"UPLOADER_FORBIDDEN_TEXT2")," "),e.R7$(4),e.JRh(e.bMT(17,7,"UPLOADER_FORBIDDEN_CLOSE")))},dependencies:[O.Mm,O.D9]}),a})(),ue=(()=>{var n;class a{constructor(t){this.ref=t}ngOnInit(){}closeModal(){this.ref.close()}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(T.ce))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-modal-forbidden-subscription"]],decls:19,vars:12,consts:[[1,"modal"],[1,"header"],[1,"smash-logo"],[1,"icon-smash_icologo_chip"],[1,"title","title-big"],[1,"body"],[1,"section"],[1,"footer"],[1,"btn-new","red",3,"click"]],template:function(t,i){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.nrm(3,"i",3),e.k0s(),e.j41(4,"div",4),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",5)(8,"div",6)(9,"p"),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"p"),e.EFF(13),e.nI1(14,"translate"),e.k0s()()(),e.j41(15,"div",7)(16,"button",8),e.bIt("click",function(){return i.closeModal()}),e.EFF(17),e.nI1(18,"translate"),e.k0s()()()),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,4,"UPLOADER_FORBIDDEN_SUBSCRIPTION_TITLE")," "),e.R7$(5),e.SpI(" ",e.bMT(11,6,"UPLOADER_FORBIDDEN_SUBSCRIPTION_TEXT1")," "),e.R7$(3),e.SpI(" ",e.bMT(14,8,"UPLOADER_FORBIDDEN_SUBSCRIPTION_TEXT2")," "),e.R7$(4),e.JRh(e.bMT(18,10,"UPLOADER_FORBIDDEN_SUBSCRIPTION_CLOSE")))},dependencies:[O.D9]}),a})();var E=m(71100),te=m(38375);function fe(n,a){1&n&&(e.j41(0,"div",15)(1,"span",7),e.EFF(2,"UPLOADER_CONFIG_SMASH_SUBTITLE_PASSWORD_ERROR"),e.k0s()())}let he=(()=>{var n;class a{constructor(t,i,r){this.fb=t,this.store$=i,this.ref=r,this.onCloseModalPasswordRequired=new e.bkB,this.subscriptions=[],this.hidePassword=!0,this.submitted=!1,this.transferPassword$=this.store$.pipe((0,E.Lt)(p.tM))}ngOnInit(){this.buildPasswordForm()}buildPasswordForm(){this.passwordForm=this.fb.group({password:["",[_.k0.required,_.k0.minLength(4)]]})}get f(){return this.passwordForm.controls}resetComponent(){this.passwordForm.reset(),this.submitted=!1}closeModal(){this.ref.close()}onSubmit(){this.submitted=!0,this.passwordForm.valid&&(this.store$.dispatch(g.Zd.SetTransferPassword({password:this.passwordForm.value.password})),this.closeModal())}togglePassword(){this.hidePassword=!this.hidePassword}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(_.ok),e.rXU(E.il),e.rXU(T.ce))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-modal-password-required"]],outputs:{onCloseModalPasswordRequired:"onCloseModalPasswordRequired"},decls:20,vars:6,consts:[[1,"modal"],[1,"header"],[1,"smash-logo"],[1,"icon-smash_icologo_chip"],["translate","",1,"title","title-big"],[1,"body"],[1,"section"],["translate",""],[1,"form-section",3,"formGroup"],[1,"form-input"],["type","text","borderStyle","full","formControlName","password",3,"placeholder","error"],["error","",4,"ngIf"],[1,"footer"],["translate","",1,"btn-new","white",3,"click"],["type","submit","translate","",1,"btn-new","red",3,"click"],["error",""]],template:function(t,i){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.nrm(3,"i",3),e.k0s(),e.j41(4,"div",4),e.EFF(5,"UPLOADER_PASSWORD_REQUIRED_TIT
1LE"),e.k0s()(),e.j41(6,"div",5)(7,"div",6)(8,"p",7),e.EFF(9,"UPLOADER_PASSWORD_REQUIRED_TEXT1"),e.k0s(),e.j41(10,"form",8)(11,"div",9)(12,"app-smash-fake-password",10),e.nI1(13,"translate"),e.DNE(14,fe,3,0,"div",11),e.k0s()()()()(),e.j41(15,"div",12)(16,"button",13),e.bIt("click",function(){return i.closeModal()}),e.EFF(17,"PREMIUM_ADMIN_MEMBER_MODAL_ADD_GROUP_BUTTON_LABEL_CANCEL"),e.k0s(),e.j41(18,"button",14),e.bIt("click",function(){return i.onSubmit()}),e.EFF(19,"UPLOADER_PASSWORD_REQUIRED_SAVE"),e.k0s()()()),2&t&&(e.R7$(10),e.Y8G("formGroup",i.passwordForm),e.R7$(2),e.FS9("placeholder",e.bMT(13,4,"UPLOADER_INPUT_PLACHOLDER_PASSWORD")),e.Y8G("error",i.submitted&&i.f.password.errors),e.R7$(2),e.Y8G("ngIf",i.submitted&&i.f.password.errors))},dependencies:[l.bT,O.Mm,_.qT,_.BC,_.cb,_.j4,_.JD,te.m,O.D9]}),a})();var ne=m(1061),$=m(45256),ie=m(61207),be=m(7877),Ce=m(86311),ve=m(55711),q=m(23821),Me=m(70445),V=m(27639),Y=m(6663),Oe=m(33095),N=m(2598),ee=m(51901),Pe=m(17849);const xe=n=>({animate:n}),Ee=n=>({"no-border":n}),oe=n=>({count:n});function Ie(n,a){if(1&n&&(e.j41(0,"span",15),e.EFF(1),e.nI1(2,"bytes"),e.k0s()),2&n){const o=e.XpG(3);e.R7$(),e.SpI("(",e.i5U(2,1,o.totalToUpload,2),")")}}function Re(n,a){if(1&n){const o=e.RV6();e.j41(0,"div",17),e.bIt("click",function(i){const r=e.eBV(o).openFileSelector;return e.Njj(r(i))}),e.j41(1,"span"),e.EFF(2,"+"),e.k0s()()}}function ye(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"app-smash-file-drop",16),e.bIt("fileDrop",function(i){e.eBV(o);const r=e.XpG(3);return e.Njj(r.dropped(i))})("entryReadError",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.onEntryReadError())}),e.DNE(2,Re,3,0,"ng-template"),e.k0s(),e.bVm()}}function Te(n,a){if(1&n){const o=e.RV6();e.j41(0,"div",19)(1,"div",20),e.bIt("click",function(){e.eBV(o);const i=e.XpG(4);return e.Njj(i.openSelectFiles("files"))}),e.j41(2,"span",21),e.EFF(3,"+"),e.k0s(),e.j41(4,"div",22),e.EFF(5,"UPLOADER_OPTION_FILES"),e.k0s()(),e.nrm(6,"div",23),e.j41(7,"div",20),e.bIt("click",function(){e.eBV(o);const i=e.XpG(4);return e.Njj(i.openSelectFiles("folder"))}),e.j41(8,"span",21),e.EFF(9,"+"),e.k0s(),e.j41(10,"div",22),e.EFF(11,"UPLOADER_OPTION_DIRECTORY "),e.k0s()()()}}function Se(n,a){if(1&n){const o=e.RV6();e.j41(0,"div",17),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.toggleDropdownAddFiles())}),e.j41(1,"span"),e.EFF(2,"+"),e.k0s()(),e.DNE(3,Te,12,0,"div",18)}if(2&n){const o=e.XpG(3);e.R7$(3),e.Y8G("ngIf",o.addFilesDropdownToggled)}}function ke(n,a){1&n&&(e.j41(0,"span",27),e.EFF(1,"UPLOADER_ERROR_READING_FILE_DETAILS_FILE_NOT_FOUND_ERROR"),e.k0s())}function Fe(n,a){1&n&&(e.j41(0,"span",27),e.EFF(1,"UPLOADER_ERROR_READING_FILE_DETAILS_SECURITY_ERROR"),e.k0s())}function De(n,a){1&n&&(e.j41(0,"span",27),e.EFF(1,"UPLOADER_ERROR_READING_FILE_DETAILS_NOT_READABLE_ERROR"),e.k0s())}function we(n,a){if(1&n&&(e.j41(0,"div",24),e.qex(1,25),e.DNE(2,ke,2,0,"span",26)(3,Fe,2,0,"span",26)(4,De,2,0,"span",26),e.bVm(),e.k0s()),2&n){const o=e.XpG(3);e.R7$(),e.Y8G("ngSwitch",null==o.fileDescriptions[0]?null:o.fileDescriptions[0].errors[0]),e.R7$(),e.Y8G("ngSwitchCase","NotFoundError"),e.R7$(),e.Y8G("ngSwitchCase","SecurityError"),e.R7$(),e.Y8G("ngSwitchCase","NotReadableError")}}function $e(n,a){if(1&n&&(e.j41(0,"div",40),e.EFF(1),e.k0s()),2&n){const o=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",o.cleanName," ")}}function Le(n,a){1&n&&(e.qex(0),e.j41(1,"span",41),e.EFF(2,"UPLOADER_FILES_IMPORT_ERROR"),e.k0s(),e.bVm())}function Ae(n,a){if(1&n&&(e.j41(0,"span",44),e.EFF(1,"UPLOADER_FILES_COUNT"),e.k0s()),2&n){const o=e.XpG(3).$implicit;e.Y8G("translateParams",e.eq3(1,oe,o.fileNumber))}}function Ue(n,a){if(1&n&&(e.j41(0,"span",45),e.EFF(1),e.nI1(2,"bytes"),e.k0s()),2&n){const o=e.XpG(3).$implicit;e.R7$(),e.JRh(e.i5U(2,1,o.size,2))}}function ze(n,a){if(1&n&&(e.DNE(0,Ae,2,3,"span",42),e.j41(1,"span",23),e.EFF(2,"-"),e.k0s(),e.DNE(3,Ue,3,4,"span",43)),2&n){const o=e.XpG(2).$implicit;e.Y8G("ngIf",o.fileNumber),e.R7$(3),e.Y8G("ngIf",o.size)}}function Ne(n,a){if(1&n&&(e.qex(0),e.j41(1,"div",35)(2,"div",36),e.nrm(3,"i",37),e.j41(4,"span",38),e.EFF(5),e.k0s()(),e.DNE(6,$e,2,1,"ng-template",null,2,e.C5r),e.j41(8,"div",39),e.DNE(9,Le,3,0,"ng-container",12)(10,ze,4,2,"ng-template",null,3,e.C5r),e.k0s()(),e.bVm()),2&n){const o=e.sdS(7),t=e.sdS(11),i=e.XpG().$implicit,r=e.XpG(4);e.R7$(4),e.Y8G("tooltip",o)("options",r.tooltipFileOptions),e.R7$(),e.JRh(i.cleanName),e.R7$(4),e.Y8G("ngIf",(null==i||null==i.errors?null:i.errors.length)>0)("ngIfElse",t)}}function je(n,a){if(1&n&&(e.j41(0,"div",40),e.EFF(1),e.k0s()),2&n){const o=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",o.cleanName," ")}}function Be(n,a){1&n&&(e.qex(0),e.j41(1,"span",41),e.EFF(2,"UPLOADER_FILES_IMPORT_ERROR"),e.k0s(),e.bVm())}function Ge(n,a){if(1&n&&(e.j41(0,"span",45),e.EFF(1),e.nI1(2,"bytes"),e.k0s()),2&n){const o=e.XpG(3).$implicit;e.R7$(),e.JRh(e.i5U(2,1,o.size,2))}}function Ve(n,a){if(1&n&&(e.DNE(0,Ge,3,4,"span",43),e.j41(1,"span",23),e.EFF(2,"-"),e.k0s(),e.j41(3,"span",47),e.EFF(4),e.k0s()),2&n){const o=e.XpG(2).$implicit;e.Y8G("ngIf",o.size),e.R7$(4),e.SpI(".",o.extension,"")}}function Ye(n,a){if(1&n&&(e.j41(0,"div",35)(1,"div",36),e.nrm(2,"i",46),e.j41(3,"span",38),e.EFF(4),e.k0s(),e.DNE(5,je,2,1,"ng-template",null,2,e.C5r),e.k0s(),e.j41(7,"div",39),e.DNE(8,Be,3,0,"ng-container",12)(9,Ve,5,2,"ng-template",null,3,e.C5r),e.k0s()()),2&n){const o=e.sdS(6),t=e.sdS(10),i=e.XpG().$implicit,r=e.XpG(4);e.R7$(3),e.Y8G("tooltip",o)("options",r.tooltipFileOptions),e.R7$(),e.JRh(i.cleanName),e.R7$(4),e.Y8G("ngIf",(null==i||null==i.errors?null:i.errors.length)>0)("ngIfElse",t)}}function Xe(n,a){if(1&n){const o=e.RV6();e.j41(0,"li",33),e.DNE(1,Ne,12,5,"ng-container",12)(2,Ye,11,5,"ng-template",null,1,e.C5r),e.j41(4,"span",34),e.bIt("click",function(){const i=e.eBV(o).$implicit,r=e.XpG(4);return e.Njj(r.onRemoveFile(i))}),e.k0s()()}if(2&n){const o=a.$implicit,t=e.sdS(3);e.R7$(),e.Y8G("ngIf","Folder"===o.type)("ngIfElse",t)}}function Ze(n,a){if(1&n&&(e.j41(0,"div",28)(1,"ul",29)(2,"ng-scrollbar",30)(3,"cdk-virtual-scroll-viewport",31),e.DNE(4,Xe,5,2,"li",32),e.k0s()()()()),2&n){const o=e.XpG(3);e.R7$(4),e.Y8G("cdkVirtualForOf",o.fileDescriptions)}}function Je(n,a){if(1&n){const o=e.RV6();e.j41(0,"div",7)(1,"div",8)(2,"span",9),e.EFF(3,"UPLOADER_FILES_COUNT"),e.k0s(),e.DNE(4,Ie,3,4,"span",10),e.k0s(),e.j41(5,"div",11),e.bIt("clickOutside",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.closeDropdownAddFiles())}),e.DNE(6,ye,3,0,"ng-container",12)(7,Se,4,1,"ng-template",null,0,e.C5r),e.k0s()(),e.j41(9,"div"),e.DNE(10,we,5,4,"div",13)(11,Ze,5,1,"div",14),e.k0s()}if(2&n){const o=e.sdS(8),t=e.XpG(2);e.Y8G("ngClass",e.eq3(7,Ee,t.errorsDetected)),e.R7$(2),e.Y8G("translateParams",e.eq3(9,oe,t.files.length)),e.R7$(2),e.Y8G("ngIf",t.totalToUpload),e.R7$(2),e.Y8G("ngIf",t.isSafari)("ngIfElse",o),e.R7$(4),e.Y8G("ngIf",(null==t.fileDescriptions?null:t.fileDescriptions.length)&&t.errorsDetected),e.R7$(),e.Y8G("ngIf",null==t.fileDescriptions?null:t.fileDescriptions.length)}}function He(n,a){if(1&n){const o=e.RV6();e.j41(0,"div",5),e.nI1(1,"async"),e.j41(2,"app-smash-file-drop",6),e.bIt("fileDrop",function(i){e.eBV(o);const r=e.XpG();return e.Njj(r.dropped(i))})("entryReadError",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.onEntryReadError())}),e.DNE(3,Je,12,11,"ng-template"),e.k0s()()}if(2&n){const o=e.XpG();e.Y8G("ngClass",e.eq3(4,xe,e.bMT(1,2,o.isUploadAnimating$))),e.R7$(2),e.Y8G("directory",o.isDirectory)}}let Ke=(()=>{var n;class a{constructor(t,i){this.store$=t,this.rawFileStoreService=i,this.addFilesDropdownToggled=!1,this.fileDescriptions=[],this.fileDescriptionsDic=new Map,this.tooltipFileOptions={placement:"top",showDelay:300},this.hadEntryReadError=!1,this.transfer$=this.store$.select(p.Ax),this.uploadStatus$=this.store$.select(p.OU),this.identity$=this.store$.select(C.Jd),this.updateAndResumeUploadLoading$=this.store$.select(p.De),this.modalSizePremiumDisplayed$=this.store$.select(p.T1),this.isUploadAnimating$=(0,V.z)([this.uploadStatus$,this.updateAndResumeUploadLoading$,this.modalSizePremiumDisplayed$]).pipe((0,Y.T)(([r,s,c])=>!c&&((0,$.xB)(r)||s)))}ngOnInit(){this.isSafari=(0,Me.n)()}ngOnChanges(t){t.files&&this.updateFileList(this.files)}onEntryReadError(){this.hadEntryReadError=!0}dropped(t){var i=this;return(0,u.A)(function*(){const r=i.hadEntryReadError;i.hadEntryReadError=!1;const s=yield i.identity$.pipe((0,x.$)(b=>!!b)).toPromise(),c=yield i.rawFileStoreService.setFiles(t,s);r&&i.rawFileStoreService.reportRelativePathTooLongError(),i.updateFileList(c),i.closeDropdownAddFiles()})()}onRemoveFile(t){"Folder"===t.type?this.rawFileStoreService.removeFolder(t.name):this.rawFileStoreService.removeFile(t.name),this.fileDescriptionsDic.delete(t.name),this.fileDescriptions=this.sortFileDescriptions(Array.from(this.fileDescriptionsDic.values())
1)}toggleDropdownAddFiles(){this.addFilesDropdownToggled=!this.addFilesDropdownToggled}closeDropdownAddFiles(){this.addFilesDropdownToggled=!1}openSelectFiles(t){this.isDirectory="folder"===t,setTimeout(()=>this.smashFileDrop.openFileSelector(),0)}updateFileList(t){const i=t.filter(r=>!this.fileDescriptionsDic.has(r.rootFolder)&&!this.fileDescriptionsDic.has(r.relativePath));if(i.length){for(const r of i){const s=r.rootFolder?r.rootFolder:r.relativePath,c=this.fileDescriptionsDic.get(s);if(c)this.fileDescriptionsDic.set(s,{...c,fileNumber:c.fileNumber+1,size:c.size+r.size,errors:r.error?[...c.errors,r.error]:[...c.errors]});else{const b={name:s,cleanName:(0,Oe.z0)(s),size:r.size,fileNumber:1,type:r.rootFolder?"Folder":"File",extension:r.extension,errors:r.error?[r.error]:[]};this.fileDescriptionsDic.set(s,b)}}this.fileDescriptions=this.sortFileDescriptions(Array.from(this.fileDescriptionsDic.values()))}}sortFileDescriptions(t){return t.sort((i,r)=>{var s,c;const b=((null==r||null===(s=r.errors)||void 0===s?void 0:s.length)>0?1:0)-((null==i||null===(c=i.errors)||void 0===c?void 0:c.length)>0?1:0);if(0!==b)return b;const P=f=>"Folder"===f.type?-1:1;return P(i)-P(r)})}get errorsDetected(){return this.fileDescriptions.some(t=>{var i;return(null==t||null===(i=t.errors)||void 0===i?void 0:i.length)>0})}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(E.il),e.rXU(ie.h))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-upload-files-box"]],viewQuery:function(t,i){if(1&t&&e.GBs(q.f,5),2&t){let r;e.mGM(r=e.lsd())&&(i.smashFileDrop=r.first)}},inputs:{files:"files",totalToUpload:"totalToUpload"},features:[e.OA$],decls:1,vars:1,consts:[["notSafari",""],["isFile",""],["fileNameTooltipTemplate",""],["noError",""],["class","upload-files-box",3,"ngClass",4,"ngIf"],[1,"upload-files-box",3,"ngClass"],["dropDisabled","true",1,"file-drop",3,"fileDrop","entryReadError","directory"],[1,"upload-files-box-header",3,"ngClass"],[1,"left-header"],["translate","",1,"left-header-text-total-count",3,"translateParams"],["class","left-header-text-total-size",4,"ngIf"],[1,"right-header",3,"clickOutside"],[4,"ngIf","ngIfElse"],["class","file-import-container-error","translate","",4,"ngIf"],["class","files-list-container",4,"ngIf"],[1,"left-header-text-total-size"],["dropDisabled","true","directory","true",1,"add-files-dropdown-item-container",3,"fileDrop","entryReadError"],[1,"upload-files-box-add-button",3,"click"],["class","add-files-dropdown",4,"ngIf"],[1,"add-files-dropdown"],[1,"add-files-dropdown-item",3,"click"],[1,"add-files-dropdown-item-plus"],["translate","",1,"add-files-dropdown-item-text"],[1,"separator"],["translate","",1,"file-import-container-error"],[3,"ngSwitch"],["translate","",4,"ngSwitchCase"],["translate",""],[1,"files-list-container"],[1,"files-list"],["externalViewport","",1,"scroll-files"],["scrollViewport","","itemSize","49",1,"virtual-scroll-height"],["class","files-list-item",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"files-list-item"],[1,"files-list-item-icon-delete","icon-smash_close",3,"click"],[1,"meta-container"],[1,"title"],[1,"title-icon","icon-smash_folder"],["content-type","template","theme","light",1,"title-name",3,"tooltip","options"],[1,"description"],[1,"tooltip-content"],["translate","",1,"error-import"],["class","file-number","translate","",3,"translateParams",4,"ngIf"],["class","size",4,"ngIf"],["translate","",1,"file-number",3,"translateParams"],[1,"size"],[1,"title-icon","icon-smash_file"],[1,"extension"]],template:function(t,i){1&t&&e.DNE(0,He,4,6,"div",4),2&t&&e.Y8G("ngIf",i.files)},dependencies:[l.YU,l.bT,l.ux,l.e1,O.Mm,q.f,N.Yh,N.Gl,ee.yg,ee.E$,ee.d6,l.Jj,Pe.c],styles:[".upload-files-box[_ngcontent-%COMP%]   .files-list-item[_ngcontent-%COMP%], .upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   div.title[_ngcontent-%COMP%]{display:flex;flex-direction:row}.mobile-card[_ngcontent-%COMP%]{display:flex;flex-direction:column}.full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.button-link-blue[_ngcontent-%COMP%]{color:#4285f4;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-blue[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.button-link-red[_ngcontent-%COMP%]{color:#ea5159;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-red[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.btn-new[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;margin:0 .5rem}.btn-new[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}.btn-v3[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;padding:.9rem 1.6rem;border-radius:2rem}.btn-v3[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}@media only screen and (min-device-width: 320px) and (max-device-width: 480px){.btn-v3[_ngcontent-%COMP%]{border-radius:3rem}}.btn[_ngcontent-%COMP%]{border-radius:.3rem;cursor:pointer;height:4rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:0 1.5rem;width:100%;justify-content:center;align-items:center;display:flex}.btn[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.btn-rounded[_ngcontent-%COMP%]{border-radius:20px;cursor:pointer;height:3.8rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:2rem 1.9rem;justify-content:center;align-items:center;display:flex}.btn-rounded[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.primary[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid none;color:#fafafa}.green[_ngcontent-%COMP%]{background-color:#10a375;border:1px solid #10A375;color:#fff}.green[_ngcontent-%COMP%]:hover:not([disabled]){color:#e4fff7}.red[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid #ea5159;color:#fff}.red[_ngcontent-%COMP%]:hover:not([disabled]){color:#f7ccce}.red-light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;color:#7f7f7f}.red-light[_ngcontent-%COMP%]:hover{color:#ea5159;border:solid 1px #ea5159}.white-outline[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #fff;color:#fff}.white-outline[_ngcontent-%COMP%]:hover{color:#7f7f7f;border:solid 1px #7F7F7F}.dark[_ngcontent-%COMP%]{background-color:#333;border:1px solid #333;color:#fff}.dark[_ngcontent-%COMP%]:hover:not([disabled]){color:#ccc}.light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #bfbfbf;color:#bfbfbf}.light[_ngcontent-%COMP%]:hover{border-color:#0009;color:#0009}.white[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #D6DBE0;color:#333}.dark-filaire[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #333;color:#333}.auto[_ngcontent-%COMP%]{width:auto}.button-mobile[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:5rem;border-radius:1.3rem;width:100%;font-size:1.7rem;margin-bottom:1.2rem;font-weight:600}.button-mobile.red[_ngcontent-%COMP%]{background-color:#ea5159;color:#fafafa;font-weight:900}.button-mobile.transparent[_ngcontent-%COMP%]{background-color:transparent;color:#333;font-weight:900;border:none;height:5rem}.upload-files-box[_ngcontent-%COMP%]{border-radius:.5rem;background:#fff;overflow:hidden}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]{height:4.8rem;font-size:16px;font-weight:700}.mobile-card[_ngcontent-%COMP%]{align-items:center;justify-content:center;border-radius:1.3rem;background:#fff;width:100%;height:-moz-fit-content;height:fit-content;margin-bottom:2rem;overflow:hidden;position:relative;transition:.25s ease-in-out;left:0rem;padding:2rem;min-height:10rem}.mobile-card[_ngcontent-%COMP%]   .mobile-card-no-content-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.mobile-card[_ngcontent-%COMP%]   .mobile-card-no-content-container-message[_ngcontent-%COMP%]{color:#888;font-weight:400;font-size:1.5rem;text-align:center}  ng-scrollbar.scroll-files.ng-scrollbar{box-sizing:inherit!important}.upload-files-box[_ngcontent-%COMP%]{width:26rem;height:100%;vertical-align:top;overflow:visible;text-align:left;position:relative;transition:.25s ease-in-out;right:0rem;top:0;z-index:10}@media (max-width: 959px){.upload-files-box[_ngcontent-%COMP%]{width:unset;height:25rem}}.upload-files-box.animate[_ngcontent-%COMP%]{right:-24rem}@media (max-width: 959px){.upload-files-box.animate[_ngcontent-%COMP%]{right:0rem;top:-20rem}}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]{color:#333}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]{margin:0 2rem;padding:1.4rem 0 1rem;border-bottom:solid 1px #ccc;display:flex;justify-content:space-between}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]   .left-header-text-total-count[_ngcontent-%COMP%]{color:#333;font-weight:900;font-size:1.6rem}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]   .left-header-text-total-size[_ngcontent-%COMP%]{color:#888;font-size:1.2rem;font-weight:400}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]   .left-header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:inline-block;margin-right:6px}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]   .right-header[_ngcontent-%COMP%]{position:relative;height:10rem}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]   .upload-files-box-add-button[_ngcontent-%COMP%]{cursor:pointer;background:#ea5159;border-radius:50%;color:#fff;font-size:2rem;display:flex;justify-content:center;align-items:center;height:2.6rem;width:2.6rem;font-weight:100;border:solid 3px #EA5159;position:absolute;top:-2px;left:-25px}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]   .add-files-dropdown[_ngcontent-%COMP%]{position:absolute;bottom:-1.3rem;right:0;display:flex;flex-direction:column;justify-content:center;align-items:center;height:8rem;width:22rem;background-color:#fafafa;z-index:2;border:1px solid #ccc;border-radius:.3rem}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]   .add-files-dropdown-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;height:100%;padding:0 1rem;width:100%;cursor:pointer}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]   .add-files-dropdown-item[_ngcontent-%COMP%]:hover{background-color:#ccc}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]   .add-files-dropdown-item-text[_ngcontent-%COMP%], .upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]   .add-files-dropdown-item-plus[_ngcontent-%COMP%]{color:#333;font-size:1.4rem;font-weight:400;padding-left:1rem}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header[_ngcontent-%COMP%]   .add-files-dropdown[_ngcontent-%COMP%]   .separator[_ng
1content-%COMP%]{width:100%;margin:auto;border-bottom:.1rem solid #ccc}.upload-files-box[_ngcontent-%COMP%]   .upload-files-box-header.no-border[_ngcontent-%COMP%]{border-bottom:none}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]{margin:0 0 10px 20px;position:relative}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   .virtual-scroll-height[_ngcontent-%COMP%], .upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   ng-scrollbar[_ngcontent-%COMP%]{height:39rem;overflow:hidden}@media (max-width: 959px){.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   .virtual-scroll-height[_ngcontent-%COMP%], .upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   ng-scrollbar[_ngcontent-%COMP%]{height:20rem}}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;color:#333;line-height:3.2rem;overflow:auto;border-bottom:1px solid #ccc;margin-right:17px}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:first-child){margin-top:-1px}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{border:none}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .meta-container[_ngcontent-%COMP%]{width:20rem;display:flex;flex-direction:column;padding:8px 9px 3px 0;line-height:17px}@media (max-width: 959px){.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .meta-container[_ngcontent-%COMP%]{width:unset}}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .meta-container[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-left:2.3rem}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .meta-container[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:not(:first-child){padding-left:.4rem}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .meta-container[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .file-number[_ngcontent-%COMP%], .upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .meta-container[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .size[_ngcontent-%COMP%], .upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .meta-container[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .extension[_ngcontent-%COMP%], .upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .meta-container[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .separator[_ng
1content-%COMP%]{color:#888;font-weight:400;font-size:1rem}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .meta-container[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   .error-import[_ngcontent-%COMP%]{color:#ea5159;font-weight:400;font-size:1rem}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .trash-container[_ngcontent-%COMP%]{position:relative;width:32px;overflow:hidden}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .trash-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:absolute;top:1.4rem;left:0}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   div.title[_ngcontent-%COMP%]{align-items:flex-end}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   div.title[_ngcontent-%COMP%]   .title-icon[_ngcontent-%COMP%]{font-size:2.1rem}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   div.title[_ngcontent-%COMP%]   .icon-file[_ngcontent-%COMP%]{font-size:1.6rem;padding-right:.5rem}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   div.title[_ngcontent-%COMP%]   .title-name[_ng
1content-%COMP%]{margin-left:.5rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#333;font-weight:400;font-size:1.2rem}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   div.size[_ngcontent-%COMP%]{color:#888;font-weight:400;font-size:1rem}.upload-files-box[_ngcontent-%COMP%]   .files-list-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   div.remove[_ngcontent-%COMP%]{cursor:pointer;text-align:center;width:9%;outline:0}.upload-files-box[_ngcontent-%COMP%]   .file-import-container-error[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.1rem;background-color:orange;height:9rem;padding:.5rem 1rem;color:#333}.upload-files-box[_ngcontent-%COMP%]   .files-list[_ngcontent-%COMP%]{position:relative;padding-right:3px}.upload-files-box[_ngcontent-%COMP%]   .files-list[_ngcontent-%COMP%]   .fixed-height-with-errors[_ngcontent-%COMP%]{height:29rem}.upload-files-box[_ngcontent-%COMP%]   .files-list-item[_ngcontent-%COMP%]{justify-content:space-between;height:5rem}.upload-files-box[_ngcontent-%COMP%]   .files-list-item-icon-delete[_ngcontent-%COMP%]{display:flex;align-items:center;opacity:1;color:#888;cursor:pointer;font-size:1.2rem;padding-right:6px}.upload-files-box[_ngcontent-%COMP%]   .files-list-item-icon-delete.margin-added[_ngcontent-%COMP%]{padding-right:1.3rem}.tooltip-content[_ngcontent-%COMP%]{background-color:#fafafa;color:#333;font-size:1.3rem;font-family:Roboto,sans-serif;text-align:left}"]}),a})();var X=m(97184),Qe=m(10785),U=m.n(Qe),D=m(51718),We=m(64785),I=m(1936),qe=m(97144),et=m(8330),Z=m(581);function tt(n,a){if(1&n&&(e.j41(0,"div",19),e.EFF(1),e.k0s()),2&n){const o=e.XpG();e.R7$(),e.JRh(o.timerFormat)}}function nt(n,a){1&n&&(e.j41(0,"div",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"MODAL_2GO_TIMER_OVER")))}function it(n,a){1&n&&(e.qex(0),e.EFF(1),e.nI1(2,"translate"),e.bVm()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"MODAL_2GO_BUTTON_GET_LINK_FREE")))}function ot(n,a){1&n&&(e.EFF(0),e.nI1(1,"translate")),2&n&&e.JRh(e.bMT(1,1,"MODAL_2GO_BUTTON_SEND_FILES_FREE"))}let rt=(()=>{var n;class a{constructor(t,i,r,s){this.store=t,this.ref=i,this.translateService=r,this.gtmService=s,this.subscriptions=[],this.store.dispatch(X.Vg.CreateEventScitylana({event:{event:"modalSizePremiumView",url:(0,j.Yn)(),referer:document.referrer,date:(new Date).toISOString(),clientName:qe.c.clientName,clientVersion:et.rE}})),this.status$=this.store.select(p.OU),this.uploadFormMode$=this.store.select(p.RJ),this.timer=U().duration(this.ref.data.queue,"seconds"),this.start=U()(),this.timerFormat=`${Math.floor(this.timer.asHours())}h ${this.timer.minutes()}min ${this.timer.seconds()}s`,this.interval=setInterval(()=>{this.updatedTime=U()();const c=this.updatedTime.diff(this.start);this.timer=U().duration(this.ref.data.queue,"seconds"),this.timer=this.timer.subtract(Math.floor(c/1e3),"second"),this.timerFormat=`${Math.floor(this.timer.asHours())}h ${this.timer.minutes()}min ${this.timer.seconds()}s`,this.timer.asMilliseconds()<=0&&this.clearTimer()},1e3),this.subscriptions=[]}ngOnDestroy(){this.clearTimer(),this.subscriptions.map(t=>t.unsubscribe()),this.subscriptions=[]}clearTimer(){clearInterval(this.interval),this.timerFormat=null}onUploadAnonymous(){this.trackEvent(I.h.eventGTM.CLICK_FREE_UPLOAD_MODAL_SIZE_PREMIUM),this.store.dispatch(g.Fb.UpdateAndResumeUpload()),this.closeModal()}onCloseModal(){this.trackEvent(I.h.eventGTM.CLOSE_MODAL_SIZE_PREMIUM),this.store.dispatch(g.Fb.CancelUpload()),this.closeModal()}trackEvent(t){this.gtmService.pushTag({event:t,transfer_size:this.ref.data.transferSize})}closeModal(){this.store.dispatch(g.Zd.HideModalSizePremium()),this.clearTimer(),this.ref.close()}goSubscribe(t,i){this.trackEvent(I.h.eventGTM.CLICK_SUBSCRIBE_MODAL_SIZE_PREMIUM),window.open(this.translateService.instant(i),"_blank","noopener"),t.preventDefault(),t.stopPropagation()}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(E.il),e.rXU(T.ce),e.rXU(O.c$),e.rXU(Z.A))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-modal-size-premium"]],decls:34,vars:27,consts:[["emailLabel",""],[1,"modal"],[1,"header"],[1,"smash-logo"],[1,"icon-smash_icologo_chip"],[1,"title","title-big"],[1,"subtitle"],[1,"body"],[1,"timer-block"],[1,"timer-label"],["class","timer",4,"ngIf"],["class","timer over",4,"ngIf"],["id","modal-size-premium-button-freemium",1,"btn-new","cta-send",3,"click","disabled"],[4,"ngIf","ngIfElse"],["id","modal-size-premium-link-pricing",1,"cta-upgrade",3,"click"],[1,"cta-upgrade-title"],[1,"cta-upgrade-subtitle"],[1,"footer"],[1,"cta-close",3,"click"],[1,"timer"],[1,"timer","over"]],template:function(t,i){if(1&t){const r=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.nrm(3,"i",4),e.k0s(),e.j41(4,"div",5),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"p",6),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",7)(11,"div",8)(12,"div",9),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.DNE(15,tt,2,1,"div",10)(16,nt,3,3,"div",11),e.k0s(),e.j41(17,"button",12),e.nI1(18,"async"),e.bIt("click",function(){return e.eBV(r),e.Njj(i.onUploadAnonymous())}),e.DNE(19,it,3,3,"ng-container",13),e.nI1(20,"async"),e.DNE(21,ot,2,3,"ng-template",null,0,e.C5r),e.k0s(),e.j41(23,"a",14),e.bIt("click",function(c){return e.eBV(r),e.Njj(i.goSubscribe(c,"MODAL_2GO_BUTTON_SUBSCRIBE_LINK"))}),e.j41(24,"span",15),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"span",16),e.EFF(28),e.nI1(29,"translate"),e.k0s()()(),e.j41(30,"div",17)(31,"a",18),e.bIt("click",function(){return e.eBV(r),e.Njj(i.onCloseModal())}),e.EFF(32),e.nI1(33,"translate"),e.k0s()()()}if(2&t){const r=e.sdS(22);e.R7$(5),e.JRh(e.bMT(6,11,"MODAL_2GO_QUEUE_TITLE")),e.R7$(3),e.JRh(e.bMT(9,13,"MODAL_2GO_QUEUE_SUBTITLE")),e.R7$(5),e.JRh(e.bMT(14,15,"MODAL_2GO_REMAINING_TIME_LABEL")),e.R7$(2),e.Y8G("ngIf",(null==i.timer?null:i.timer.asMilliseconds())>0),e.R7$(),e.Y8G("ngIf",(null==i.timer?null:i.timer.asMilliseconds())<=0),e.R7$(),e.Y8G("disabled","Resumable"!==e.bMT(18,17,i.status$)),e.R7$(2),e.Y8G("ngIf","Link"===e.bMT(20,19,i.uploadFormMode$))("ngIfElse",r),e.R7$(6),e.JRh(e.bMT(26,21,"MODAL_2GO_BUTTON_SUBSCRIBE")),e.R7$(3),e.JRh(e.bMT(29,23,"MODAL_2GO_UPGRADE_SUBTITLE")),e.R7$(4),e.JRh(e.bMT(33,25,"MODAL_2GO_BUTTON_CLOSE"))}},dependencies:[l.bT,l.Jj,O.D9],styles:[".full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.modal[_ngcontent-%COMP%]{background:#fff}.modal[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .title.title-big[_ng
1content-%COMP%]{line-height:2.5rem;margin-top:1.5rem}.modal[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{margin-top:.8rem;color:#333;font-size:1.4rem;line-height:2rem}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]{flex-direction:column;justify-content:flex-start;align-items:stretch;padding:0 4rem 2rem}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .timer-block[_ngcontent-%COMP%]{text-align:center;margin:2.5rem 0 3rem}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .timer-block[_ngcontent-%COMP%]   .timer-label[_ngcontent-%COMP%]{color:#333;font-size:1.4rem;line-height:2rem}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .timer-block[_ngcontent-%COMP%]   .timer[_ngcontent-%COMP%]{color:#000;font-weight:400;font-size:3.6rem;line-height:4.2rem;margin-top:.5rem}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .timer-block[_ngcontent-%COMP%]   .timer.over[_ngcontent-%COMP%]{color:#ea5159;font-size:2.4rem;line-height:4.2rem}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .cta-send[_ngcontent-%COMP%]{width:100%;margin:0;padding:1.4rem 1rem;background:#ea5159;color:#fff;border:solid 1px #ea5159}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .cta-send[_ngcontent-%COMP%]:disabled{cursor:not-allowed;color:#888;background:#fff;border:solid 1px #ccc}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .cta-upgrade[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;margin-top:1.5rem;padding:1.2rem 0;border:solid 1px #ea5159;border-radius:.5rem;cursor:pointer;text-decoration:none}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .cta-upgrade[_ngcontent-%COMP%]   .cta-upgrade-title[_ngcontent-%COMP%]{color:#ea5159;font-size:1.8rem;line-height:2.2rem;font-weight:700}.modal[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]   .cta-upgrade[_ngcontent-%COMP%]   .cta-upgrade-subtitle[_ngcontent-%COMP%]{color:#ea5159;font-size:1.3rem;line-height:1.8rem}.modal[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]{justify-content:center;border-top:none;background-color:#fff}.modal[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .cta-close[_ngcontent-%COMP%]{color:#333;font-size:1.5rem;cursor:pointer}.modal[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .cta-close[_ngcontent-%COMP%]:hover{text-decoration:underline;color:#000}"]}),a})();var at=m(56029),st=m(87277),lt=m(59793),ct=m(74181),re=m(59549),J=m(18471),dt=m(7891),mt=m(83803);const pt=(n,a)=>({"icon-smash_less":n,"icon-smash_plus":a});function gt(n,a){1&n&&(e.j41(0,"div",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"UPLOADER_EMAIL_FORM_ALERT_MESSAGE_INCORRECT_EMAIL")))}function _t(n,a){1&n&&(e.j41(0,"div",4),e.nrm(1,"app-smash-input",14),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&n&&(e.R7$(),e.FS9("placeholder",e.bMT(2,2,"UPLOADER_EMAIL_FORM_PLACEHOLDER_SENDER")),e.FS9("tooltipContent",e.bMT(3,4,"UPLOADER_EMAIL_FORM_DESCRIPTION")))}function ut(n,a){if(1&n){const o=e.RV6();e.j41(0,"div",15)(1,"app-smash-input-tag",16),e.nI1(2,"async"),e.bIt("updateSuggestList",function(i){e.eBV(o);const r=e.XpG();return e.Njj(r.onSuggestListUpdated(i))}),e.k0s()()}if(2&n){const o=e.XpG();e.R7$(),e.Y8G("suggestList",e.bMT(2,2,o.contacts$))("error",o.submitted&&o.f.receivers.errors)}}let ft=(()=>{var n;class a{constructor(t,i){this.router=t,this.store$=i,this.emailFormSubmitted=new e.bkB,this.submitted=!1,this.senderInputDetailsToggled=!1,this.subscriptions=[],this.transfer$=this.store$.select(p.Ax),this.commonParameters$=this.store$.select(p.x6),this.emailParameters$=this.store$.select(p.i),this.contacts$=this.store$.select(C.kK)}get f(){return this.emailForm.controls}get senderEmailControls(){return this.emailForm.get("sender.email")}ngOnInit(){this.buildEmailForm(),this.loadFormData(),this.handleFormChanges()}onSubmit(t){if(this.submitted=!0,this.emailForm.valid){const{title:i,description:r,sender:s,receivers:c,customUrl:b}=this.emailForm.value,P={title:i,description:(0,re.vP)(r),delivery:{type:"Email",sender:s,receivers:c},customUrl:b};this.emailFormSubmitted.emit({event:t,params:P}
1),this.store$.dispatch(X.Xw.SetUserContacts({userContacts:c}))}}requiredEmailList(t){var i;const r=new RegExp(I.h.regexpEmail);let s={};return(null==t||null===(i=t.value)||void 0===i?void 0:i.length)>=1?t.value.forEach(c=>{!1===r.test(c)&&(s={status:"Invalid"})}):s={status:"Invalid"},s}onSuggestListUpdated(t){this.store$.dispatch(X.Xw.updateUserContacts({userContacts:t}))}goBack(){this.router.navigateByUrl("")}toggleSenderInput(){this.senderInputDetailsToggled=!this.senderInputDetailsToggled}buildEmailForm(){this.emailForm=new _.gE({description:new _.MJ(""),title:new _.MJ(""),sender:new _.gE({name:new _.MJ(""),email:new _.MJ("",[_.k0.required,_.k0.pattern(I.h.regexpEmail)])})}),this.isDropboxId||this.emailForm.addControl("receivers",new _.MJ("",[_.k0.required,this.requiredEmailList]))}loadFormData(){this.commonParameters$.pipe((0,x.$)()).subscribe(t=>{this.emailForm.patchValue({...t})}),this.emailParameters$.pipe((0,x.$)()).subscribe(t=>{var i;this.emailForm.patchValue({...t,...t.delivery}),null!=t&&null!==(i=t.delivery)&&void 0!==i&&null!==(i=i.sender)&&void 0!==i&&i.name&&this.toggleSenderInput()})}handleFormChanges(){this.subscriptions.push(this.emailForm.valueChanges.subscribe(t=>{this.store$.dispatch(g.Zd.SetTransferSender({sender:t.sender})),this.store$.dispatch(g.Zd.SetEmailTitle({title:t.title})),this.store$.dispatch(g.Zd.SetEmailDescription({description:(0,re.vP)(t.description)})),t.receivers&&this.store$.dispatch(g.Zd.SetEmailReceivers({receivers:t.receivers}))}))}ngOnDestroy(){this.subscriptions.map(t=>t.unsubscribe()),this.subscriptions.length=0}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(S.Ix),e.rXU(E.il))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-email-form"]],inputs:{identity:"identity",dropbox:"dropbox",isDropboxId:"isDropboxId"},outputs:{emailFormSubmitted:"emailFormSubmitted"},decls:17,vars:18,consts:[[1,"email-form-container",3,"ngSubmit","formGroup"],[1,"email-form"],["id","mainDiv",1,"email-form-inner-container"],["formGroupName","sender",1,"sender-inputs"],[1,"input-container"],["type","email","formControlName","email",3,"placeholder","error"],["error","",4,"ngIf"],[1,"icon-toggle-sender-details",3,"click","ngClass"],["class","input-container",4,"ngIf"],["class","input-contacts",4,"ngIf"],["type","text","formControlName","title",3,"placeholder"],["formControlName","description",3,"placeholder"],["type","submit",3,"click"],["error",""],["type","text","formControlName","name",3,"placeholder","tooltipContent"],[1,"input-contacts"],["formControlName","receivers",3,"updateSuggestList","suggestList","error"]],template:function(t,i){1&t&&(e.j41(0,"form",0),e.bIt("ngSubmit",function(s){return i.onSubmit(s)}),e.j41(1,"ng-scrollbar",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"app-smash-input",5),e.nI1(6,"translate"),e.DNE(7,gt,3,3,"div",6),e.k0s()(),e.j41(8,"div",7),e.bIt("click",function(){return i.toggleSenderInput()}),e.k0s(),e.DNE(9,_t,4,6,"div",8),e.k0s(),e.DNE(10,ut,3,4,"div",9),e.j41(11,"div",4),e.nrm(12,"app-smash-input",10),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"app-smash-input-message",11),e.nI1(15,"translate"),e.k0s()(),e.j41(16,"button",12),e.bIt("click",function(s){return i.onSubmit(s),!1}),e.k0s()()),2&t&&(e.Y8G("formGroup",i.emailForm),e.R7$(5),e.FS9("placeholder",e.bMT(6,9,"UPLOADER_EMAIL_FORM_PLACEHOLDER_YOUR_EMAIL")),e.Y8G("error",i.submitted&&i.senderEmailControls.errors),e.R7$(2),e.Y8G("ngIf",i.submitted&&i.senderEmailControls.errors),e.R7$(),e.Y8G("ngClass",e.l_i(15,pt,i.senderInputDetailsToggled,!i.senderInputDetailsToggled)),e.R7$(),e.Y8G("ngIf",i.senderInputDetailsToggled),e.R7$(),e.Y8G("ngIf",!i.isDropboxId),e.R7$(2),e.FS9("placeholder",e.bMT(13,11,"UPLOADER_EMAIL_FORM_PLACEHOLDER_SUBJECT")),e.R7$(2),e.FS9("placeholder",e.bMT(15,13,"UPLOADER_EMAIL_FORM_PLACEHOLDER_MESSAGE")))},dependencies:[l.YU,l.bT,_.qT,_.BC,_.cb,_.j4,_.JD,_.$R,N.Yh,J.S,dt.t,mt.y,l.Jj,O.D9],styles:[".button-link-blue[_ngcontent-%COMP%]{color:#4285f4;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-blue[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.button-link-red[_ngcontent-%COMP%]{color:#ea5159;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-red[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.btn-new[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;margin:0 .5rem}.btn-new[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}.btn-v3[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;padding:.9rem 1.6rem;border-radius:2rem}.btn-v3[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}@media only screen and (min-device-width: 320px) and (max-device-width: 480px){.btn-v3[_ngcontent-%COMP%]{border-radius:3rem}}.btn[_ngcontent-%COMP%]{border-radius:.3rem;cursor:pointer;height:4rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:0 1.5rem;width:100%;justify-content:center;align-items:center;display:flex}.btn[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.btn-rounded[_ngcontent-%COMP%]{border-radius:20px;cursor:pointer;height:3.8rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:2rem 1.9rem;justify-content:center;align-items:center;display:flex}.btn-rounded[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.primary[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid none;color:#fafafa}.green[_ngcontent-%COMP%]{background-color:#10a375;border:1px solid #10A375;color:#fff}.green[_ngcontent-%COMP%]:hover:not([disabled]){color:#e4fff7}.red[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid #ea5159;color:#fff}.red[_ngcontent-%COMP%]:hover:not([disabled]){color:#f7ccce}.red-light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;color:#7f7f7f}.red-light[_ngcontent-%COMP%]:hover{color:#ea5159;border:solid 1px #ea5159}.white-outline[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #fff;color:#fff}.white-outline[_ngcontent-%COMP%]:hover{color:#7f7f7f;border:solid 1px #7F7F7F}.dark[_ngcontent-%COMP%]{background-color:#333;border:1px solid #333;color:#fff}.dark[_ngcontent-%COMP%]:hover:not([disabled]){color:#ccc}.light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #bfbfbf;color:#bfbfbf}.light[_ngcontent-%COMP%]:hover{border-color:#0009;color:#0009}.white[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #D6DBE0;color:#333}.dark-filaire[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #333;color:#333}.auto[_ngcontent-%COMP%]{width:auto}.button-mobile[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:5rem;border-radius:1.3rem;width:100%;font-size:1.7rem;margin-bottom:1.2rem;font-weight:600}.button-mobile.red[_ngcontent-%COMP%]{background-color:#ea5159;color:#fafafa;font-weight:900}.button-mobile.transparent[_ngcontent-%COMP%]{background-color:transparent;color:#333;font-weight:900;border:none;height:5rem}.email-optional-input-container[_ngcontent-%COMP%], .email-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.email-form-container[_ngcontent-%COMP%]{padding:1rem .3rem 0rem 2rem;height:33rem}  ng-scrollbar.email-form.ng-scrollbar{box-sizing:inherit!important}  app-smash-input-message .message-container{position:absolute;width:110%;padding-right:2rem}@media (max-width: 959px){  app-smash-input-message .message-container{padding-right:5rem}}.email-form-inner-container[_ngcontent-%COMP%]{padding-right:1.7rem}.email-receivers-input[_ngcontent-%COMP%]{border-bottom:solid 1px #ccc}
1.email-receivers-input[invalid][_ngcontent-%COMP%]{border-bottom:solid 1px #ea5159!important;color:#ea5159}.sender-inputs[_ngcontent-%COMP%]{position:relative}.icon-toggle-sender-details[_ngcontent-%COMP%]{position:absolute;right:1rem;font-size:1.8rem;cursor:pointer;top:11px}.input-contacts[_ngcontent-%COMP%]{margin-bottom:1rem;min-height:4rem}"]}),a})();var ae=m(31629),se=m(68365);const ht=n=>({domain:n}),bt=n=>({hidden:n});function Ct(n,a){1&n&&(e.j41(0,"div",11),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"UPLOADER_LINK_FORM_ALERT_MESSAGE_INCORRECT_EMAIL")))}function vt(n,a){if(1&n&&(e.j41(0,"div",12)(1,"label",13)(2,"div",14),e.EFF(3,"UPLOADER_CONFIG_SMASH_SUBTITLE_DOWNLOAD_ACCESS_TRACKING"),e.k0s(),e.j41(4,"div",15),e.nrm(5,"app-smash-checkbox",16),e.k0s()()()),2&n){e.XpG();const o=e.sdS(27);e.R7$(),e.Y8G("appSmashTooltip",o)("autoPlacement",!0)}}function Mt(n,a){1&n&&(e.j41(0,"div",17),e.EFF(1,"UPLOADER_LINK_INVALID"),e.k0s())}function Ot(n,a){1&n&&(e.j41(0,"div",17),e.EFF(1," UPLOADER_LINK_ALREADY_EXISTS "),e.k0s())}function Pt(n,a){1&n&&(e.j41(0,"div",17),e.EFF(1,"UPLOADER_LINK_DISABLED"),e.k0s())}function xt(n,a){1&n&&(e.j41(0,"div",18)(1,"div"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"UPLOADER_CONFIG_SMASH_SUBTITLE_DOWNLOAD_ACCESS_TRACKING_HELP")))}let Et=(()=>{var n;class a{constructor(t,i){var r;this.store$=t,this.router=i,this.linkFormSubmitted=new e.bkB,this.submitted=!1,this.errorMessageLinkAlreadyExists=I.h.errorStatus.uploader.linkAlreadyExists,this.showMessageDisabled=!1,this.subscriptions=[],this.uploadError$=this.store$.select(p.KG),this.transfer$=this.store$.select(p.Ax),this.commonParameters$=this.store$.select(p.x6),this.linkParameters$=this.store$.select(p.w$),this.uploadStatus$=this.store$.select(p.OU),this.linkForm=new _.gE({title:new _.MJ(""),sender:new _.gE({email:new _.MJ("",[_.k0.required,_.k0.pattern(I.h.regexpEmail)])}),customUrl:new _.MJ("",_.k0.pattern(I.h.regexpCustomUrl)),accessTracking:new _.MJ((null===(r=this.transferSettings)||void 0===r||null===(r=r.accessTracking)||void 0===r?void 0:r.default)===I.h.accessTracking.Email)})}ngOnInit(){this.loadFormData(),this.handleFormChanges()}get f(){return this.linkForm.controls}get senderEmailControls(){return this.linkForm.get("sender.email")}onSubmit(t){if(this.submitted=!0,this.linkForm.valid){const{title:i,sender:r,customUrl:s,accessTracking:c}=this.linkForm.value,b={title:i,customUrl:s,delivery:{type:"Link",sender:r},accessTracking:c?"Email":"None"};this.store$.dispatch(g.Zd.SetTransferAccessTracking({accessTracking:c?"Email":"None"})),this.linkFormSubmitted.emit({event:t,params:b})}}goBack(){this.router.navigateByUrl("")}onTitleChange(t){const i=this._slugify(t);this.linkForm.controls.customUrl.setValue(i,{emitEvent:!1}),this.store$.dispatch(g.Zd.SetLinkCustomUrl({customUrl:i}))}_slugify(t){const i="\xe0\xe1\xe2\xe4\xe6\xe3\xe5\u0101\u0103\u0105\xe7\u0107\u010d\u0111\u010f\xe8\xe9\xea\xeb\u0113\u0117\u0119\u011b\u011f\u01f5\u1e27\xee\xef\xed\u012b\u012f\xec\u0142\u1e3f\xf1\u0144\u01f9\u0148\xf4\xf6\xf2\xf3\u0153\xf8\u014d\xf5\u0151\u1e55\u0155\u0159\xdf\u015b\u0161\u015f\u0219\u0165\u021b\xfb\xfc\xf9\xfa\u016b\u01d8\u016f\u0171\u0173\u1e83\u1e8d\xff\xfd\u017e\u017a\u017c\xb7/,:;",s=new RegExp(i.split("").join("|"),"g");return t?t.toString().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").replace(s,c=>"aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz-----".charAt(i.indexOf(c))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,""):null}inputClick(t){t.target.offsetParent.className.indexOf("disabled")>-1&&(this.showMessageDisabled=!0),t.preventDefault(),t.stopPropagation()}loadFormData(){this.commonParameters$.pipe((0,x.$)()).subscribe(t=>{this.linkForm.patchValue({...t})}),this.linkParameters$.pipe((0,x.$)()).subscribe(t=>{var i;let r=(null===(i=this.transferSettings)||void 0===i||null===(i=i.accessTracking)||void 0===i?void 0:i.default)===I.h.accessTracking.Email;t.accessTracking&&(r=t.accessTracking===I.h.accessTracking.Email),this.linkForm.patchValue({...t,...t.delivery,accessTracking:r})})}handleFormChanges(){this.subscriptions.push(this.linkForm.valueChanges.subscribe(t=>
1{this.store$.dispatch(g.Zd.SetTransferSender({sender:t.sender})),this.store$.dispatch(g.Zd.SetLinkTitle({title:t.title})),this.store$.dispatch(g.Zd.SetLinkCustomUrl({customUrl:t.customUrl})),this.store$.dispatch(g.Zd.SetTransferAccessTracking({accessTracking:t.accessTracking?"Email":"None"}))}))}get isAccessTrackingEnabled(){var t;return null===(t=this.transferSettings)||void 0===t||null===(t=t.accessTracking)||void 0===t?void 0:t.active}ngOnDestroy(){this.subscriptions.map(t=>t.unsubscribe()),this.subscriptions.length=0}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(E.il),e.rXU(S.Ix))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-link-form"]],inputs:{identity:"identity",domain:"domain",transferSettings:"transferSettings"},outputs:{linkFormSubmitted:"linkFormSubmitted"},decls:28,vars:49,consts:[["newTooltipTemplate",""],[1,"link-form-container",3,"ngSubmit","formGroup"],[1,"input-container",3,"click"],["type","text","formControlName","title",3,"valueChange","placeholder","tooltipContent","disabled"],["type","text","prefix","fromsmash.com/","formControlName","customUrl",3,"error","tooltipContent","disabled"],["formGroupName","sender",1,"input-container",3,"ngClass"],["type","email","formControlName","email",3,"placeholder","error","tooltipContent","readonly","disabled"],["error","",4,"ngIf"],["class","input-container checkbox",4,"ngIf"],["class","error-message-link-already-exists","translate","",4,"ngIf"],["type","submit",3,"click"],["error",""],[1,"input-container","checkbox"],["placement","right","contentType","template","offset","45","theme","light","width","200",3,"appSmashTooltip","autoPlacement"],["translate",""],[1,"parameter-input","checkbox"],["formControlName","accessTracking"],["translate","",1,"error-message-link-already-exists"],[1,"tooltip-content"]],template:function(t,i){if(1&t){const r=e.RV6();e.j41(0,"form",1),e.bIt("ngSubmit",function(c){return e.eBV(r),e.Njj(i.onSubmit(c))}),e.j41(1,"div",2),e.bIt("click",function(c){return e.eBV(r),e.Njj(i.inputClick(c))}),e.j41(2,"app-smash-input",3),e.nI1(3,"translate"),e.nI1(4,"translate"),e.nI1(5,"async"),e.nI1(6,"async"),e.nI1(7,"async"),e.bIt("valueChange",function(c){return e.eBV(r),e.Njj(i.onTitleChange(c))}),e.k0s()(),e.j41(8,"div",2),e.bIt("click",function(c){return e.eBV(r),e.Njj(i.inputClick(c))}),e.nrm(9,"app-smash-input",4),e.nI1(10,"translate"),e.nI1(11,"async"),e.nI1(12,"async"),e.nI1(13,"async"),e.nI1(14,"async"),e.k0s(),e.j41(15,"div",5)(16,"app-smash-input",6),e.nI1(17,"translate"),e.nI1(18,"translate"),e.DNE(19,Ct,3,3,"div",7),e.k0s()(),e.DNE(20,vt,6,2,"div",8)(21,Mt,2,0,"div",9)(22,Ot,2,0,"div",9),e.nI1(23,"async"),e.DNE(24,Pt,2,0,"div",9),e.j41(25,"button",10),e.bIt("click",function(c){return e.eBV(r),i.onSubmit(c),e.Njj(!1)}),e.k0s()(),e.DNE(26,xt,4,3,"ng-template",null,0,e.C5r)}if(2&t){let r,s;e.Y8G("formGroup",i.linkForm),e.R7$(2),e.FS9("placeholder",e.bMT(3,18,"UPLOADER_LINK_FORM_PLACEHOLDER_TITLE")),e.FS9("tooltipContent",e.bMT(4,20,"UPLOADER_LINK_FORM_LINK_TITLE_TOOLTIP")),e.Y8G("disabled","Starting"===e.bMT(5,22,i.uploadStatus$)||"Queued"===e.bMT(6,24,i.uploadStatus$)||"Resumable"===e.bMT(7,26,i.uploadStatus$)),e.R7$(7),e.FS9("tooltipContent",e.i5U(10,28,"UPLOADER_LINK_FORM_LINK_CUSTOM_URL_TOOLTIP",e.eq3(45,ht,i.domain.domain))),e.Y8G("error",i.submitted&&i.f.customUrl.errors||"CustomUrlAlreadyInUseError"===(null==(r=e.bMT(11,31,i.uploadError$))?null:r.name))("disabled","Starting"===e.bMT(12,33,i.uploadStatus$)||"Queued"===e.bMT(13,35,i.uploadStatus$)||"Resumable"===e.bMT(14,37,i.uploadStatus$)),e.R7$(6),e.Y8G("ngClass",e.eq3(47,bt,!(null==i.identity||!i.identity.username))),e.R7$(),e.FS9("placeholder",e.bMT(17,39,"UPLOADER_LINK_FORM_PLACEHOLDER_YOUR_EMAIL")),e.FS9("tooltipContent",e.bMT(18,41,"UPLOADER_LINK_FORM_RECEIVE_COPY_LINK_TOOLTIP")),e.Y8G("error",i.submitted&&i.senderEmailControls.errors)("readonly",!(null==i.identity||!i.identity.username))("disabled",!!i.identity.username),e.R7$(3),e.Y8G("ngIf",i.submitted&&i.senderEmailControls.errors),e.R7$(),e.Y8G("ngIf",i.isAccessTrackingEnabled),e.R7$(),e.Y8G("ngIf",i.f.customUrl.errors),e.R7$(),e.Y8G("ngIf","CustomUrlAlreadyInUseError"===(null==(s=e.bMT(23,43,i.uploadError$))?null:s.name)),e.R7$(2),e.Y8G("ngIf",i.showMessageDisabled)}},dependencies:[l.YU,l.bT,O.Mm,ae.V,_.qT,_.BC,_.cb,_.j4,_.JD,_.$R,J.S,se.r,l.Jj,O.D9],styles:[".input-container.checkbox[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;flex-direction:row}.link-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.link-form-container[_ngcontent-%COMP%]{padding:1rem 2rem 0rem}.error-message-link-already-exists[_ngcontent-%COMP%]{color:#ea5159;font-size:1.3rem;padding:0 1rem}.hidden[_ngcontent-%COMP%]{display:none}.input-container.checkbox[_ngcontent-%COMP%]{padding:1rem}.input-container.checkbox[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between;align-items:center;cursor:pointer;font-style:italic}.input-container.checkbox[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background:#00758c;color:#fff;border-radius:.2rem;font-size:1rem;padding:.1rem .5rem;margin-right:.5rem}.tooltip-content[_ngcontent-%COMP%]{background-color:#fafafa;color:#333;font-size:1.3rem;font-family:Roboto,sans-serif;text-align:left}"]}),a})();var It=m(73471),v=m(40262),L=m(78374);let le=(()=>{var n;class a{constructor(t,i,r){this.router=t,this.dialog=i,this.ref=r}ngOnInit(){}signIn(){this.router.navigate(["/signin"]),this.closeModal(),this.dialog.closeAll()}closeModal(){this.ref.close()}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(S.Ix),e.rXU(T.o3),e.rXU(T.ce))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-modal-customization-forbidden"]
1],decls:20,vars:15,consts:[[1,"modal"],[1,"header"],[1,"smash-logo"],[1,"icon-smash_icologo_chip"],[1,"title","title-big"],[1,"body"],[1,"section"],["id","modal-customization-forbidden-link-pricing","target","_blank",1,"pricing-link",3,"href"],[1,"footer"],[1,"btn-new","red",3,"click"]],template:function(t,i){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.nrm(3,"i",3),e.k0s(),e.j41(4,"div",4),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",5)(8,"div",6)(9,"p"),e.EFF(10),e.nI1(11,"translate"),e.j41(12,"a",7),e.nI1(13,"translate"),e.EFF(14),e.nI1(15,"translate"),e.k0s()()()(),e.j41(16,"div",8)(17,"button",9),e.bIt("click",function(){return i.signIn()}),e.EFF(18),e.nI1(19,"translate"),e.k0s()()()),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,5,"UPLOADER_MODAL_CUSTOMIZATION_PREMIUM_REQUIRED_TITLE")," "),e.R7$(5),e.SpI(" ",e.bMT(11,7,"UPLOADER_MODAL_CUSTOMIZATION_PREMIUM_REQUIRED_EXPLANATION")," "),e.R7$(2),e.FS9("href",e.bMT(13,9,"UPLOADER_MODAL_CUSTOMIZATION_PREMIUM_REQUIRED_EXPLANATION_RED_LINK_FROMSMASH_URL"),e.B4B),e.R7$(2),e.SpI(" ",e.bMT(15,11,"UPLOADER_MODAL_CUSTOMIZATION_PREMIUM_REQUIRED_EXPLANATION_RED_LINK_FROMSMASH_LABEL")," "),e.R7$(4),e.JRh(e.bMT(19,13,"UPLOADER_MODAL_CUSTOMIZATION_PREMIUM_REQUIRED_BUTTON_LABEL_SIGNIN")))},dependencies:[O.D9],styles:[".pricing-link[_ngcontent-%COMP%]{text-decoration:underline}.pricing-link[_ngcontent-%COMP%]:hover{color:#000}"]}),a})();var H=m(8509);function Rt(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"div",3)(2,"h1"),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7)(9,"input",8),e.bIt("change",function(i){e.eBV(o);const r=e.XpG();return r.addBackgroundImageToCustomization(i.target.files),e.Njj(r.value=null)}),e.k0s(),e.nrm(10,"div",9),e.j41(11,"span",10),e.EFF(12,"PREMIUM_CUSTOMIZATION_MODAL_RECEIVER_IMAGE"),e.k0s()(),e.j41(13,"div",11),e.bIt("click",function(i){e.eBV(o);const r=e.XpG();return e.Njj(r.displaySelectionVideo(i))}),e.nrm(14,"div",12),e.j41(15,"span",10),e.EFF(16,"PREMIUM_CUSTOMIZATION_MODAL_RECEIVER_VIDEO"),e.k0s()()()()(),e.bVm()}2&n&&(e.R7$(3),e.JRh(e.bMT(4,1,"PREMIUM_CUSTOMIZATION_MODAL_RECEIVER_ADD_IMAGE_VIDEO")))}function yt(n,a){if(1&n){const o=e.RV6();e.j41(0,"div",3)(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.k0s()(),e.j41(4,"div",4)(5,"div",13)(6,"span",14),e.EFF(7,"PREMIUM_CUSTOMIZATION_MODAL_RECEIVER_COPY_VIDEO_LINK"),e.k0s()(),e.j41(8,"div",15)(9,"div",16)(10,"div",17)(11,"app-smash-input",18),e.nI1(12,"translate"),e.mxI("ngModelChange",function(i){e.eBV(o);const r=e.XpG();return e.DH7(r.url,i)||(r.url=i),e.Njj(i)}),e.k0s()()()()(),e.j41(13,"div",19)(14,"button",20),e.bIt("click",function(i){e.eBV(o);const r=e.XpG();return e.Njj(r.hideSelectionVideo(i))}),e.EFF(15,"PREMIUM_ADMIN_MEMBER_MODAL_ADD_MEMBER_BUTTON_LABEL_CANCEL"),e.k0s(),e.j41(16,"button",21),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.addBackgroundVideo(i.url))}),e.EFF(17,"PREMIUM_CUSTOMIZATION_MODAL_RECEIVER_BUTTON_LABEL_SAVE"),e.k0s()()}if(2&n){const o=e.XpG();e.R7$(2),e.JRh(e.bMT(3,4,"PREMIUM_CUSTOMIZATION_MODAL_RECEIVER_ADD_VIDEO")),e.R7$(9),e.FS9("placeholder",e.bMT(12,6,"PREMIUM_CUSTOMIZATION_MODAL_RECEIVER_INPUT_VIDEO_URL_PLACEHOLDER")),e.R50("ngModel",o.url),e.Y8G("error",o.error)}}let Tt=(()=>{var n;class a{constructor(t,i){this.ref=t,this.store$=i,this.selectionVideo=!1,this.error=!1,this.url=null,this.onAddedImage=new e.bkB,this.onAddedVideo=new e.bkB,this.onCloseModal=new e.bkB}displaySelectionVideo(t){this.selectionVideo=!0,t.preventDefault(),t.stopPropagation()}hideSelectionVideo(t){this.selectionVideo=!1,this.url=null,t.preventDefault(),t.stopPropagation()}addBackgroundImageToCustomization(t){this.store$.dispatch(g.Zd.addBackgroundImageToAttach({image:[t[0]]})),this.closeModal()}closeModal(){this.ref.close()}addBackgroundVideo(t){let i,r;t?t.match(H.d0)?(i=t.match(H.d0),r={id:Date.now(),sourceUrl:t,sourceId:i[1],type:"Youtube"},this.store$.dispatch(g.Zd.addBackgroundVideoToAttach({video:r})),this.url=null,this.closeModal()):t.match(H.Qh)?(i=t.match(H.Qh),r={id:Date.now(),url:t,sourceUrl:t,sourceId:i[1],type:"Vimeo"}
1,this.store$.dispatch(g.Zd.addBackgroundVideoToAttach({video:r})),this.url=null,this.selectionVideo=!1,this.closeModal()):this.error=!0:this.error=!0}regexpVimeo(t){throw new Error("Method not implemented.")}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(T.ce),e.rXU(E.il))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-modal-customization-receiver-add-background"]],outputs:{onAddedImage:"onAddedImage",onAddedVideo:"onAddedVideo",onCloseModal:"onCloseModal"},decls:4,vars:2,consts:[["videoSelected",""],[1,"modal"],[4,"ngIf","ngIfElse"],[1,"header"],[1,"body"],[1,"section","media-selection-section"],[1,"section-row"],[1,"section-column"],["type","file",1,"image-input",3,"change"],[1,"icon-smash_image","icon"],["translate","",1,"subtitle"],[1,"section-column",3,"click"],[1,"icon-smash_videos","icon"],[1,"description"],["translate","",1,"text"],[1,"section"],[1,"form-section"],[1,"form-input"],["type","text","borderStyle","full",3,"ngModelChange","placeholder","ngModel","error"],[1,"footer"],["type","submit","translate","",1,"btn-new","white",3,"click"],["translate","",1,"btn-new","red",3,"click"]],template:function(t,i){if(1&t&&(e.j41(0,"div",1),e.DNE(1,Rt,17,3,"ng-container",2)(2,yt,18,8,"ng-template",null,0,e.C5r),e.k0s()),2&t){const r=e.sdS(3);e.R7$(),e.Y8G("ngIf",!i.selectionVideo)("ngIfElse",r)}},dependencies:[l.bT,O.Mm,_.BC,_.vS,J.S,O.D9],styles:[".section.media-selection-section[_ngcontent-%COMP%]{padding:2rem 9rem}.image-input[_ngcontent-%COMP%]{position:absolute;top:-3rem;left:-1rem;opacity:0;width:4.5rem;height:10rem;cursor:pointer;z-index:1}.icon[_ngcontent-%COMP%]{font-size:40px}"]}),a})();var St=m(60423),kt=m(53177),ce=m(28009);const K=n=>({selected:n}),Q=n=>({displayed:n});function Ft(n,a){1&n&&(e.j41(0,"div",28),e.nrm(1,"i",29),e.k0s())}function Dt(n,a){1&n&&(e.j41(0,"div",30),e.nrm(1,"i",31),e.k0s())}function wt(n,a){if(1&n){const o=e.RV6();e.j41(0,"li",24),e.bIt("click",function(){const i=e.eBV(o).$implicit,r=e.XpG(3);return e.Njj(r.onSelectBackground(i))}),e.j41(1,"div",25),e.DNE(2,Ft,2,0,"div",26)(3,Dt,2,0,"div",27),e.k0s()()}if(2&n){const o=a.$implicit,t=e.XpG(3);e.FS9("appBackgroundImage",o.thumbnail),e.Y8G("ngClass",e.eq3(4,K,t.isBackgroundSelected(o))),e.R7$(2),e.Y8G("ngIf",t.isBackgroundSelected(o)),e.R7$(),e.Y8G("ngIf","Youtube"===o.type||"Vimeo"===o.type)}}function $t(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"ng-scrollbar")(2,"ul",20)(3,"li",21),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.onAddBackground())}),e.j41(4,"div",22)(5,"span"),e.EFF(6),e.nI1(7,"translate"),e.k0s()()(),e.DNE(8,wt,4,6,"li",23),e.k0s()(),e.bVm()}if(2&n){const o=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.eq3(5,Q,"backgrounds"===o.selectedSection)),e.R7$(4),e.JRh(e.bMT(7,3,"UPLOADER_CUSTOMIZATION_MODAL_RECEIVER_ADD_BACKGROUND_LOGO")),e.R7$(2),e.Y8G("ngForOf",o.backgrounds)}}function Lt(n,a){if(1&n){const o=e.RV6();e.j41(0,"ul",20)(1,"li",21),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.onAddBackground())}),e.j41(2,"div",22)(3,"span"),e.EFF(4),e.nI1(5,"translate"),e.k0s()()()()}if(2&n){const o=e.XpG(2);e.Y8G("ngClass",e.eq3(4,Q,"backgrounds"===o.selectedSection)),e.R7$(4),e.JRh(e.bMT(5,2,"UPLOADER_CUSTOMIZATION_MODAL_RECEIVER_ADD_BACKGROUND_LOGO"))}}function At(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,$t,9,7,"ng-container",19)(2,Lt,6,6,"ng-template",null,0,e.C5r),e.k0s()),2&n){const o=e.sdS(3),t=e.XpG();e.R7$(),e.Y8G("ngIf",t.backgrounds)("ngIfElse",o)}}function Ut(n,a){1&n&&(e.j41(0,"div",28),e.nrm(1,"i",29),e.k0s())}function zt(n,a){if(1&n){const o=e.RV6();e.j41(0,"li",24),e.bIt("click",function(){const i=e.eBV(o).$implicit,r=e.XpG(3);return e.Njj(r.onSelectLogo(i))}),e.nrm(1,"div",22),e.j41(2,"div",25),e.DNE(3,Ut,2,0,"div",26),e.k0s()()}if(2&n){const o=a.$implicit,t=e.XpG(3);e.FS9("appBackgroundImage",o.thumbnail),e.Y8G("ngClass",e.eq3(3,K,t.isLogoSelected(o))),e.R7$(3),e.Y8G("ngIf",t.isLogoSelected(o))}}function Nt(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"ng-scrollbar")(2,"ul",32)(3,"li",33)(4,"div",34),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.lockFreemium())}),e.j41(5,"input",35),e.bIt("change",function(i){e.eBV(o);const r=e.XpG(2);return r.createLogo(i.target.files),e.Njj(r.value=null)}),e.k0s(),e.j41(6,"span"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()(),e.DNE(9,zt,4,5,"li",23),e.k0s()(),e.bVm()}if(2&n){const o=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.eq3(5,Q,"logos"===o.selectedSection)),e.R7$(5),e.JRh(e.bMT(8,3,"UPLOADER_CUSTOMIZATION_MODAL_RECEIVER_ADD_IMAGE")),e.R7$(2),e.Y8G("ngForOf",o.logos)}}function jt(n,a){if(1&n){const o=e.RV6();e.j41(0,"ul",32)(1,"li",33)(2,"div",22)(3,"input",36),e.bIt("change",function(i){e.eBV(o);const r=e.XpG(2);return r.createLogo(i.target.files),e.Njj(r.value=null)})("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.lockFreemium())}),e.k0s(),e.j41(4,"span"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()()}if(2&n){const o=e.XpG(2);e.Y8G("ngClass",e.eq3(4,Q,"logos"===o.selectedSection)),e.R7$(5),e.JRh(e.bMT(6,2,"UPLOADER_CUSTOMIZATION_MODAL_RECEIVER_ADD_IMAGE"))}}function Bt(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,Nt,10,7,"ng-container",19)(2,jt,7,6,"ng-template",null,1,e.C5r),e.k0s()),2&n){const o=e.sdS(3),t=e.XpG();e.R7$(),e.Y8G("ngIf",t.logos)("ngIfElse",o)}}function Gt(n,a){1&n&&(e.j41(0,"div",37),e.nrm(1,"app-smash-loading-spinner"),e.k0s())}function Vt(n,a){if(1&n&&(e.j41(0,"div",38),e.nrm(1,"app-smash-previewer-customization",39),e.nI1(2,"async"),e.nI1(3,"async"),e.k0s()),2&n){let o;const t=e.XpG();e.R7$(),e.Y8G("customization",t.customizationEdited)("customizationLoading",e.bMT(2,3,t.customizationMediaLoading$))("url",null==(o=e.bMT(3,5,t.domain$))?null:o.domain)}}let Yt=(()=>{var n;class a{constructor(t,i,r,s){this.store$=t,this.ref=i,this.dialog=r,this.gtmService=s,this.subscriptions=[],this.modalBackgroun
1dOpened=!1,this.freemiumModalOpened=!1,this.selectedSection="backgrounds",this.modalLogoOpened=!1,this.backgroundIsLoading=!1,this.isCustomizationEdited=!1,this.previewCustomizationReady=!0,this.domain$=this.store$.select(C.C4),this.account$=this.store$.select(C.Jd).pipe((0,L.s)(1)),this.account$.subscribe(c=>this.account=c),this.isFreemium$=this.store$.select(C.jh).pipe((0,L.s)(1)),this.isFreemium$.subscribe(c=>this.isFreemium=c),this.customizationEdited$=this.store$.select(p.X$),this.logos$=this.store$.select(p.So),this.backgrounds$=this.store$.select(p.TX),this.customizationMediaLoading$=this.store$.select(p.yQ),this.subscriptions.push(this.customizationEdited$.subscribe(c=>this.customizationEdited=Object.assign({},c)),this.store$.select(p.sr).subscribe(c=>this.customizationLoading=c),this.logos$.subscribe(c=>this.logos=c),this.backgrounds$.subscribe(c=>this.backgrounds=c))}back(){this.store$.dispatch(g.Zd.ResetCustomisationEdited()),this.closeModal(),this.selectedBackground=null,this.selectedLogo=null}onSwitchBackgroundSection(){this.selectedSection="backgrounds"}onSwitchLogoSection(){this.selectedSection="logos"}onSelectBackground(t){this.previewCustomizationReady=!1,setTimeout(()=>{this.selectedBackground=t,this.customizationEdited.background=t,this.isCustomizationEdited=!0,this.previewCustomizationReady=!0},0)}onSelectLogo(t){this.previewCustomizationReady=!1,setTimeout(()=>{this.selectedLogo=t,this.customizationEdited.logo=t,this.isCustomizationEdited=!0,this.previewCustomizationReady=!0},0)}onAddBackground(){this.isFreemium?this.lockFreemium():(this.openModalAddBackground(),this.isCustomizationEdited=!0)}onAddLogo(){this.isFreemium?this.lockFreemium():(this.openModalAddBackground(),this.isCustomizationEdited=!0)}closeModalBackground(){}lockFreemium(){return!this.isFreemium||(this.dialog.open(le,{closeButton:!1,enableClose:!0,size:"sm"}),this.gtmService.pushTag({event:I.h.eventGTM.CLICK_ADD_BACKGROUND_LOGO_FREEMIUM}),!1)}closeFreemiumModal(){this.freemiumModalOpened=!1}isBackgroundSelected(t){var i;return(null===(i=this.customizationEdited)||void 0===i||null===(i=i.background)||void 0===i?void 0:i.id)===t.id}isLogoSelected(t){var i;return(null===(i=this.customizationEdited)||void 0===i||null===(i=i.logo)||void 0===i?void 0:i.id)===t.id}createLogo(t){this.store$.dispatch(g.Zd.addLogoToAttach({image:[t[0]]})),this.isCustomizationEdited=!0}closeModal(){this.ref.close()}save(){this.store$.dispatch(g.Zd.SetTransferCustomization({logo:this.customizationEdited.logo,background:this.customizationEdited.background})),this.closeModal()}openModalAddBackground(){this.isFreemium?this.dialog.open(le,{closeButton:!1,enableClose:!0,size:"sm"}):this.dialog.open(Tt,{id:"addBackGround",closeButton:!0,enableClose:!0,size:"sm"})}ngOnDestroy(){this.subscriptions.map(t=>t.unsubscribe()),this.subscriptions=[]}resolveSrcUrlString(t){return null!=t&&t.startsWith("http")?`url(${t})`:`url(//${t})`}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(E.il),e.rXU(T.ce),e.rXU(T.o3),e.rXU(Z.A))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-modal-customization-receiver"]],decls:38,vars:32,consts:[["noBackgrounds",""],["noLogos",""],[1,"modal-container"],[1,"modal-container-body"],[1,"customization-design-container"],[1,"customization-design-left-box"],[1,"customization-design-left-box-header"],[1,"customization-design-left-box-header-back",3,"click"],[1,"icon-smash_back","back-icon"],[1,"customization-design-left-box-header-button",3,"click"],[1,"customization-design-left-box-text-content"],[1,"customization-design-left-box-content"],[1,"button-group"],[3,"click","ngClass"],[1,"customization-design-left-box-thumbnails-container"],[4,"ngIf"],[1,"customization-design-right-box"],["class","customization-design-right-box-loader",4,"ngIf"],["class","preview-customization-container",4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"customization-design-left-box-thumbnails-list",3,"ngClass"],[1,"customization-design-left-box-thumbnails-list-item",3,"click"],[1,"customization-design-left-box-thumbnails-list-item-content"],["class","customization-design-left-box-thumbn
1ails-list-item",3,"ngClass","appBackgroundImage","click",4,"ngFor","ngForOf"],[1,"customization-design-left-box-thumbnails-list-item",3,"click","ngClass","appBackgroundImage"],[1,"customization-design-left-box-thumbnails-list-item-overlay"],["class","customization-design-left-box-thumbnails-list-item-overlay-checked",4,"ngIf"],["class","customization-design-left-box-thumbnails-list-item-overlay-media-icon",4,"ngIf"],[1,"customization-design-left-box-thumbnails-list-item-overlay-checked"],[1,"icon-smash_check"],[1,"customization-design-left-box-thumbnails-list-item-overlay-media-icon"],[1,"icon-smash_videos"],[1,"customization-design-left-box-thumbnails-list","items",3,"ngClass"],[1,"customization-design-left-box-thumbnails-list-item","item"],[1,"customization-design-left-box-thumbnails-list-item-content",3,"click"],["type","file",1,"customization-design-left-box-logo-input",3,"change"],["type","file",1,"customization-design-left-box-logo-input",3,"change","click"],[1,"customization-design-right-box-loader"],[1,"preview-customization-container"],["customizationAim","receiver","displayType","fullscreen","componentSource","modal-customization-receiver",3,"customization","customizationLoading","url"]],template:function(t,i){1&t&&(e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7),e.bIt("click",function(){return i.ref.close()}),e.nrm(6,"div",8),e.j41(7,"div"),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div")(11,"span",9),e.bIt("click",function(){return i.save()}),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"span",9),e.bIt("click",function(){return i.ref.close()}),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"div",10)(18,"h1"),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"p"),e.EFF(22),e.nI1(23,"translate"),e.k0s()(),e.j41(24,"div",11)(25,"div",12)(26,"button",13),e.bIt("click",function(){return i.onSwitchBackgroundSection()}),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.j41(29,"button",13),e.bIt("click",function(){return i.onSwitchLogoSection()}),e.EFF(30),e.nI1(31,"translate"),e.k0s()()(),e.j41(32,"div",14),e.DNE(33,At,4,2,"div",15)(34,Bt,4,2,"div",15),e.k0s()(),e.j41(35,"div",16),e.DNE(36,Gt,2,0,"div",17)(37,Vt,4,7,"div",18),e.k0s()()()()),2&t&&(e.R7$(4),e.Y8G("@animateHeader",i.customizationEdited?"out":"in"),e.R7$(4),e.JRh(e.bMT(9,14,"UPLOADER_CUSTOMIZATION_MODAL_RECEIVER_BUTTON_LABEL_BACK")),e.R7$(4),e.JRh(e.bMT(13,16,"UPLOADER_CUSTOMIZATION_MODAL_RECEIVER_BUTTON_LABEL_SAVE")),e.R7$(3),e.JRh(e.bMT(16,18,"UPLOADER_CUSTOMIZATION_MODAL_RECEIVER_BUTTON_LABEL_CANCEL")),e.R7$(4),e.JRh(e.bMT(20,20,"UPLOADER_CUSTOMIZATION_MODAL_RECEIVER_TITLE")),e.R7$(3),e.JRh(e.bMT(23,22,"UPLOADER_CUSTOMIZATION_MODAL_RECEIVER_TEXT")),e.R7$(4),e.Y8G("ngClass",e.eq3(28,K,"backgrounds"===i.selectedSection)),e.R7$(),e.JRh(e.bMT(28,24,"UPLOADER_CUSTOMIZATION_MODAL_RECEIVER_TAB_BACKGROUND")),e.R7$(2),e.Y8G("ngClass",e.eq3(30,K,"logos"===i.selectedSection)),e.R7$(),e.SpI("",e.bMT(31,26,"UPLOADER_CUSTOMIZATION_MODAL_RECEIVER_TAB_LOGO")," "),e.R7$(3),e.Y8G("ngIf","backgrounds"===i.selectedSection),e.R7$(),e.Y8G("ngIf","logos"===i.selectedSection),e.R7$(2),e.Y8G("ngIf",i.customizationLoading),e.R7$(),e.Y8G("ngIf",i.previewCustomizationReady))},dependencies:[l.YU,l.Sq,l.bT,St.f,kt.D,N.Yh,ce.u,l.Jj,O.D9],styles:[".customization-design-container[_ngcontent-%COMP%]{display:flex;flex-direction:row}.full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.button-link-blue[_ngcontent-%COMP%]{color:#4285f4;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-blue[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.button-link-red[_ngcontent-%COMP%]{color:#ea5159;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-red[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.btn-new[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;margin:0 .5rem}.btn-new[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}.btn-v3[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;padding:.9rem 1.6rem;border-radius:2rem}.btn-v3[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}@media only screen and (min-device-width: 320px) and (max-device-width: 480px){.btn-v3[_ngcontent-%COMP%]{border-radius:3rem}}.btn[_ngcontent-%COMP%]{border-radius:.3rem;cursor:pointer;height:4rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:0 1.5rem;width:100%;justify-content:center;align-items:center;display:flex}.btn[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.btn-rounded[_ngcontent-%COMP%]{border-radius:20px;cursor:pointer;height:3.8rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:2rem 1.9rem;justify-content:center;align-items:center;display:flex}.btn-rounded[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.primary[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid none;color:#fafafa}.green[_ngcontent-%COMP%]{background-color:#10a375;border:1px solid #10A375;color:#fff}.green[_ngcontent-%COMP%]:hover:not([disabled]){color:#e4fff7}.red[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid #ea5159;color:#fff}.red[_ngcontent-%COMP%]:hover:not([disabled]){color:#f7ccce}.red-light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;color:#7f7f7f}.red-light[_ngcontent-%COMP%]:hover{color:#ea5159;border:solid 1px #ea5159}.white-outline[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #fff;color:#fff}.white-outline[_ngcontent-%COMP%]:hover{color:#7f7f7f;border:solid 1px #7F7F7F}.dark[_ngcontent-%COMP%]{background-color:#333;border:1px solid #333;color:#fff}.dark[_ngcontent-%COMP%]:hover:not([disabled]){color:#ccc}.light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #bfbfbf;color:#bfbfbf}.light[_ngcontent-%COMP%]:hover{border-color:#0009;color:#0009}.white[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #D6DBE0;color:#333}.dark-filaire[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #333;color:#333}.auto[_ngcontent-%COMP%]{width:auto}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box[_ngcontent-%COMP%]   .button-group[_ngcontent-%COMP%]{border-radius:.3rem;background:#fafafa;color:#333;width:100px;height:35px}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box[_ngcontent-%COMP%]   .button-group[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}.button-mobile[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:5rem;border-radius:1.3rem;width:100%;font-size:1.7rem;margin-bottom:1.2rem;font-weight:600}.button-mobile.red[_ngcontent-%COMP%]{background-color:#ea5159;color:#fafafa;font-weight:900}.button-mobile.transparent[_ngcontent-%COMP%]{background-color:transparent;color:#333;font-weight:900;border:none;height:5rem}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbn
1ails-list-item[_ngcontent-%COMP%]:first-child, .customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box[_ngcontent-%COMP%]   .button-group[_ngcontent-%COMP%]{border:.1rem solid #ccc}ng-scrollbar[_ngcontent-%COMP%]{overflow:hidden}.modal-container[_ngcontent-%COMP%]{width:100vw;height:100vh;padding:2rem;position:fixed;top:0;left:0;background-color:#191922c9;display:flex;flex-direction:column;align-items:center;justify-content:center}.modal-container-body[_ngcontent-%COMP%]{z-index:1200;height:90vh;width:90vw;align-items:center;display:flex;justify-content:center}.customization-design-container[_ngcontent-%COMP%]{height:100%;width:100%;border:1px solid #ccc;background:#fafafa;border-radius:3px}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:300px;min-height:420px;padding:15px 10px;overflow:hidden}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-header[_ngcontent-%COMP%]{height:40px;line-height:40px;position:relative;display:flex;width:450px;justify-content:space-between}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-header-button[_ngcontent-%COMP%]{font-weight:700;padding-right:10px;outline:0;transition:all .5s ease;cursor:pointer}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-header-button[_ngcontent-%COMP%]:hover{opacity:.8}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-header-button[_ngcontent-%COMP%]:last-child{font-weight:400}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-text-content[_ngcontent-%COMP%]{margin:40px 0 30px;word-break:break-all}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-text-content[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-weight:700;margin-bottom:15px}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box[_ngcontent-%COMP%]   .button-group[_ngcontent-%COMP%]{width:100%;margin-bottom:15px;display:flex;align-items:center}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box[_ngcontent-%COMP%]   .button-group[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background:#fafafa;width:50%;height:100%;text-transform:uppercase;font-size:10px;letter-spacing:.1em;transition:all .5s ease;cursor:pointer}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box[_ngcontent-%COMP%]   .button-group[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:first-child{border-right:1px solid #ccc}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box[_ngcontent-%COMP%]   .button-group[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover, .customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box[_ngcontent-%COMP%]   .button-group[_ngcontent-%COMP%]   button.selected[_ngcontent-%COMP%]{background-color:#f2f2f2}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-container[_ngcontent-%COMP%]{flex-grow:2}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:100%}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-left:-10px;margin-top:-10px}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item[_ngcontent-%COMP%]{flex:1 0 75px;margin-left:10px;margin-top:10px}@media (min-width: 170px){.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item[_ngcontent-%COMP%]{max-width:calc(50% - 10px)}}@media (min-width: 255px){.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item[_ngcontent-%COMP%]{max-width:calc(33.3333333333% - 10px)}}@media (min-width: 225px){.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbn
1ails-list-item[_ngcontent-%COMP%]{min-width:calc(33.3333333333% - 10px)}}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item[_ngcontent-%COMP%]{border-radius:.3rem;display:block;position:relative;background-size:cover;background-position:center;background-color:#0000;min-width:75px;max-width:75px;min-height:75px;max-height:75px;padding:5px;transition:all .5s ease;cursor:pointer}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item[_ngcontent-%COMP%]:first-child{background-color:#f2f2f2}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item[_ngcontent-%COMP%]:first-child:hover{border:solid 1px #333}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item[_ngcontent-%COMP%]:first-child:hover   span[_ngcontent-%COMP%]{color:#333}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item[_ngcontent-%COMP%]:hover   .customization-design-left-box-thumbnails-list-item-overlay[_ngcontent-%COMP%]{background-color:#00000080}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item[_ngcontent-%COMP%]:hover   .customization-design-left-box-thumbnails-list-item-overlay-delete[_ngcontent-%COMP%]{opacity:1}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item.selected[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item-overlay[_ngcontent-%COMP%]{background-color:#00000080}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item-content[_ngcontent-%COMP%]{color:#ccc;position:relative;height:100%;font-size:1.2rem;text-align:center;display:flex;align-items:center}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item-content[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin:0 auto;transition:all .5s ease}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item-content-media-icon[_ngcontent-%COMP%]{text-align:left;color:#fafafa;position:absolute;bottom:0;font-size:20px}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item-overlay[_ngcontent-%COMP%]{border-radius:.3rem;position:absolute;top:0;bottom:0;left:0;right:0;transition:all .5s ease;background-color:#0000;overflow:hidden;display:flex;align-items:center}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item-overlay-checked[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;color:#fafafa;font-size:2.5rem}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item-overlay-delete[_ngcontent-%COMP%]{z-index:3000;opacity:0;position:absolute;top:.5rem;right:.5rem;height:15px;width:15px;color:#ccc;font-size:13px;outline:0;transition-timing-function:ease;transition-duration:.2s}.customization-design-container[_ngcontent-%COMP%]   .customization-design-left-box-thumbnails-list-item-overlay-media-icon[_ngcontent-%COMP%]{text-align:left;color:#fafafa;position:absolute;bottom:0;left:.5rem;font-size:20px}.customization-design-container[_ngcontent-%COMP%]   .customization-design-right-box[_ngcontent-%COMP%]{position:relative;width:calc(100% - 300px);overflow:hidden;border-left:1px solid #ccc;flex-direction:column;display:flex;justify-content:center;align-items:center}.customization-design-container[_ngcontent-%COMP%]   .customization-design-right-box-loader[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:200;padding:8px;display:flex;justify-content:center;align-items:center}.customization-design-container[_ngcontent-%COMP%]   .customization-design-right-box-preview[_ngcontent-%COMP%]{width:100%;position:relative;display:flex;flex-direction:column;justify-content:center;background-size:cover;background-repeat:no-repeat}.customization-design-container[_ngcontent-%COMP%]   .customization-design-right-box-preview-media[_ngcontent-%COMP%]{position:inherit}.customization-design-container[_ngcontent-%COMP%]   .customization-design-right-box-preview-logo-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;position:relative;z-index:100}.customization-design-container[_ngcontent-%COMP%]   .customization-design-right-box-preview-logo[_ngcontent-%COMP%]     app-smash-spinner .tint-spinner-wrapper{width:80%;height:80%}.customization-design-container[_ngcontent-%COMP%]   .customization-design-right-box-preview-wrapper-container[_ngcontent-%COMP%]{position:absolute;bottom:-90px}.customization-design-container[_ngcontent-%COMP%]   .customization-design-right-box-preview-wrapper-container[_ngcontent-%COMP%]     app-smash-tooltip .smash-tooltip{color:#333;font-size:1.1rem;padding:15px 10px}.customization-design-container[_ngcontent-%COMP%]   .customization-design-right-box-preview-wrapper-container[_ngcontent-%COMP%]     app-smash-tooltip .smash-tooltip p{line-height:1.8rem}.customization-design-container[_ngcontent-%COMP%]   .customization-design-right-box-preview-wrapper-container[_ngcontent-%COMP%]     app-smash-tooltip .smash-tooltip p:first-child{margin-bottom:2%}.customization-design-container[_ngcontent-%COMP%]   .customization-design-right-box-preview-wrapper-container[_ngcontent-%COMP%]     app-smash-tooltip .smash-tooltip p:nth-child(2){font-weight:700}.customization-design-container[_ngcontent-%COMP%]   .customization-design-right-box-preview-cover-countdown[_ngcontent-%COMP%]{border-radius:.3rem;background:#fafafa;height:35px;align-self:center;position:absolute;bottom:-6px;color:#333}.preview-customization-container[_ngcontent-%COMP%]{padding:2.5rem;width:100%}.customization-design-left-box-logo-input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;opacity:0;width:100%;height:100%;cursor:pointer}"],data:{animation:[(0,v.hZ)("animateHeader",[(0,v.wk)("in",(0,v.iF)({transform:"translateX({{startPosition}})"}),{params:{startPosition:"0px"}}),(0,v.wk)("out",(0,v.iF)({transform:"translateX({{endPosition}})"}),{params:{endPosition:"-300px"}}),(0,v.kY)("in => out",(0,v.i0)("0.4s ease-in-out")),(0,v.kY)("out => in",(0,v.i0)("0.4s linear"))]),(0,v.hZ)("loader",[(0,v.wk)("in",(0,v.iF)({opacity:"{{startOpacity}}"}),{params:{startOpacity:"0.9"}}),(0,v.wk)("out",(0,v.iF)({opacity:"{{endOpacity}}"}),{params:{endOpacity:"0"}}),(0,v.kY)("in => out",(0,v.i0)("0.4s ease-in-out")),(0,v.kY)("out => in",(0,v.i0)("0.4s linear"))])]}}),a})(),Xt=(()=>{var n;class a{constructor(t,i,r){this.router=t,this.dialog=i,this.ref=r}ngOnInit(){}signIn(){this.router.navigate(["/signin"]),this.closeModal(),this.dialog.closeAll()}closeModal(){this.ref.close()}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(S.Ix),e.rXU(T.o3),e.rXU(T.ce))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-modal-promotion-forbidden"]
1],decls:20,vars:15,consts:[[1,"modal"],[1,"header"],[1,"smash-logo"],[1,"icon-smash_icologo_chip"],[1,"title","title-big"],[1,"body"],[1,"section"],["id","modal-promotion-forbidden-link-pricing","target","_blank",1,"pricing-link",3,"href"],[1,"footer"],[1,"btn-new","red",3,"click"]],template:function(t,i){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.nrm(3,"i",3),e.k0s(),e.j41(4,"div",4),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",5)(8,"div",6)(9,"p"),e.EFF(10),e.nI1(11,"translate"),e.j41(12,"a",7),e.nI1(13,"translate"),e.EFF(14),e.nI1(15,"translate"),e.k0s()()()(),e.j41(16,"div",8)(17,"button",9),e.bIt("click",function(){return i.signIn()}),e.EFF(18),e.nI1(19,"translate"),e.k0s()()()),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,5,"UPLOADER_MODAL_PROMOTION_PREMIUM_REQUIRED_TITLE")," "),e.R7$(5),e.SpI(" ",e.bMT(11,7,"UPLOADER_MODAL_PROMOTION_PREMIUM_REQUIRED_EXPLANATION")," "),e.R7$(2),e.FS9("href",e.bMT(13,9,"UPLOADER_MODAL_PROMOTION_PREMIUM_REQUIRED_EXPLANATION_RED_LINK_FROMSMASH_URL"),e.B4B),e.R7$(2),e.SpI(" ",e.bMT(15,11,"UPLOADER_MODAL_PROMOTION_PREMIUM_REQUIRED_EXPLANATION_RED_LINK_FROMSMASH_LABEL")," "),e.R7$(4),e.JRh(e.bMT(19,13,"UPLOADER_MODAL_CUSTOMIZATION_PREMIUM_REQUIRED_BUTTON_LABEL_SIGNIN")))},dependencies:[O.D9],styles:[".pricing-link[_ngcontent-%COMP%]{text-decoration:underline}.pricing-link[_ngcontent-%COMP%]:hover{color:#000}"]}),a})();var de=m(21141);function Zt(n,a){1&n&&(e.j41(0,"div",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"PREMIUM_PROMOTION_ERROR_MESSAGE")," "))}function Jt(n,a){if(1&n){const o=e.RV6();e.j41(0,"button",21),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.onAddPromotion())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPLOADER_PROMOTION_MODAL_INSERT_YOUR_CONTENT")," "))}function Ht(n,a){if(1&n){const o=e.RV6();e.j41(0,"div",26),e.bIt("click",function(i){e.eBV(o);const r=e.XpG(2);return e.Njj(r.onReplay(i))}),e.nrm(1,"span",27),e.k0s()}}function Kt(n,a){1&n&&(e.j41(0,"div",28),e.nrm(1,"i",29),e.k0s())}function Qt(n,a){if(1&n){const o=e.RV6();e.j41(0,"li",22),e.bIt("click",function(){const i=e.eBV(o).$implicit,r=e.XpG();return e.Njj(r.onSelectPromotion(i))}),e.j41(1,"div"),e.nrm(2,"input",23),e.j41(3,"label"),e.EFF(4),e.DNE(5,Ht,2,0,"div",24),e.k0s()(),e.DNE(6,Kt,2,0,"div",25),e.k0s()}if(2&n){const o=a.$implicit,t=e.XpG();e.R7$(2),e.FS9("value",o.id),e.Y8G("checked",t.selected&&o.id===t.selected.id),e.R7$(2),e.SpI(" ",o.title," "),e.R7$(),e.Y8G("ngIf",t.selected&&o.id===t.selected.id),e.R7$(),e.Y8G("ngIf",t.isSelected(o))}}function Wt(n,a){if(1&n&&(e.qex(0),e.nrm(1,"app-smash-promotion",30),e.nI1(2,"async"),e.bVm()),2&n){const o=e.XpG();e.R7$(),e.Y8G("inputIndexSelected",o.selectedMedia?o.selectedMedia.index:null)("replay",o.replay)("promotion",e.bMT(2,3,o.selectedPromotion$))}}function qt(n,a){1&n&&(e.j41(0,"div",31),e.nrm(1,"div",32),e.k0s())}function en(n,a){1&n&&(e.j41(0,"div",33)(1,"div",34),e.nrm(2,"div",32),e.k0s()())}let tn=(()=>{var n;class a{constructor(t,i,r,s){this.store=t,this.ref=i,this.dialog=r,this.gtmService=s,this.replay=!1,this.freemiumModalOpened=!1,this.isLoading=!1,this.state="loadingNotStarted",this.isSaveLoading=!1,this.hasItemSelected=!1,this.actionsExpanded=!1,this.hasError=!1,this.subscriptions=[],this.promotions$=this.store.pipe((0,E.Lt)(p.CB)),this.selectedPromotion$=this.store.pipe((0,E.Lt)(p.iA)),this.subscriptions.push(this.store.select(p.iA).subscribe(c=>{this.selected=c,c&&(this.onReplay(),this.medias=c.medias,this.medias&&this.medias.length&&this.selectMedia(this.medias[0]))})),this.isFreemium$=this.store.pipe((0,E.Lt)(C.jh))}ngOnDestroy(){this.subscriptions.map(t=>t.unsubscribe()),this.subscriptions=[]}onAddPromotion(){this.dialog.open(Xt,{closeButton:!1,enableClose:!0,size:"sm"}),this.gtmService.pushTag({event:I.h.eventGTM.CLICK_ADD_PROMOTION_FREEMIUM})}closeFreemiumModal(){this.freemiumModalOpened=!1}onSelectPromotion(t){this.hasItemSelected=!0,this.store.dispatch(g.Zd.loadPromotion({promotion:t})),this.store.dispatch(g.Zd.selectRandomExternalPromotionSuccess({promotion:t})),this.store.dispatch(g.Zd.SetTransferPromotion({promotion:t}))}onReplay(t=null){t&&t.stopPropagation(),this.replay=!1,this.replay=!0,clearTimeout(this.timer),this.timer=setTimeout(()=>{this.replay=!1},3e3)}selectMedia(t){if(!t)return null;{const i=this.medias.findIndex(t.id?r=>t.id===r.id:r=>t.object_id===r.object_id);this.selectedMedia={...t,index:i}}}isMediaSelected(t){if(this.selectedMedia)return t.id===this.selectedMedia.id}get indexSelected(){return this.selectedMedia?this.selectedMedia.index:null}onToggleActionList(t){t.stopPropagation(),this.actionsExpanded=!this.actionsExpanded}isSelected(t){return t.selected}onPreview(t){this.selectedMedia=t}resolveSrcUrlString(t){return`url(${t})`}clickout(){this.actionsExpanded=!1}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(E.il),e.rXU(T.ce),e.rXU(T.o3),e.rXU(Z.A))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-modal-promotion"]],hostBindings:function(t,i){1&t&&e.bIt("click",function(){return i.clickout()},!1,e.EBC)},decls:34,vars:21,consts:[["promotionLoading",""],[1,"modal-container"],[1,"modal-container-body"],[1,"design-container"],[1,"design-left-box"],[1,"design-left-box-selection"],[1,"design-left-box-header"],[1,"design-left-box-header-content"],[1,"design-left-box-header-back",3,"click"],[1,"icon-smash_back","back-icon"],["class","design-left-box-error",4,"ngIf"],[1,"design-left-box-text-content"],[3,"click",4,"ngIf"],[1,"design-left-box-list-container"],[1,"design-left-box-list-content"],["class","design-left-box-list-content-item",3,"click",4,"ngFor","ngForOf"],[1,"design-right-box"],[1,"design-right-box-content"],[4,"ngIf","ngIfElse"],["class","overlay",4,"ngIf"],[1,"design-left-box-error"],[3,"click"],[1,"design-left-box-list-content-item",3,"click"],["type","checkbox","disabled","","name","selectedPromotion",3,"value","checked"],["class","replay-icon",3,"click",4,"ngIf"],["class","design-left-box-list-content-item-icon",4,"ngIf"],[1,"replay-icon",3,"click"],[1,"icon-smash_player"],[1,"design-left-box-list-content-item-icon"],[1,"icons8-replay"],["componentSource","modal
1-promotion",1,"design-right-box-preview-container",3,"inputIndexSelected","replay","promotion"],[1,"loading-spinner-container"],[1,"loading-spinner-grey"],[1,"overlay"],[1,"spinner-update"]],template:function(t,i){if(1&t){const r=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",7)(7,"div",8),e.bIt("click",function(){return e.eBV(r),e.Njj(i.ref.close())}),e.nrm(8,"div",9),e.j41(9,"div"),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()(),e.DNE(12,Zt,3,3,"div",10),e.j41(13,"div",11)(14,"h1"),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"p"),e.EFF(18),e.nI1(19,"translate"),e.k0s()(),e.DNE(20,Jt,3,3,"button",12),e.nI1(21,"async"),e.j41(22,"div",13)(23,"ng-scrollbar")(24,"ul",14),e.DNE(25,Qt,7,5,"li",15),e.nI1(26,"async"),e.k0s()()()()(),e.j41(27,"div",16)(28,"div",17),e.DNE(29,Wt,3,5,"ng-container",18),e.nI1(30,"async"),e.DNE(31,qt,2,0,"ng-template",null,0,e.C5r),e.k0s(),e.DNE(33,en,3,0,"div",19),e.k0s()()()()}if(2&t){const r=e.sdS(32);e.R7$(10),e.JRh(e.bMT(11,9,"UPLOADER_PROMOTION_MODAL_RECEIVER_BUTTON_LABEL_BACK")),e.R7$(2),e.Y8G("ngIf",i.hasError),e.R7$(3),e.JRh(e.bMT(16,11,"UPLOADER_PROMOTION_MODAL_RECEIVER_TITLE")),e.R7$(3),e.JRh(e.bMT(19,13,"UPLOADER_PROMOTION_MODAL_RECEIVER_TEXT")),e.R7$(2),e.Y8G("ngIf",e.bMT(21,15,i.isFreemium$)),e.R7$(5),e.Y8G("ngForOf",e.bMT(26,17,i.promotions$)),e.R7$(4),e.Y8G("ngIf",!!e.bMT(30,19,i.selectedPromotion$))("ngIfElse",r),e.R7$(4),e.Y8G("ngIf",i.isLoading)}},dependencies:[l.Sq,l.bT,N.Yh,de.H,l.Jj,O.D9],styles:["[_nghost-%COMP%]{width:100%;height:100%}  app-smash-promotion .design-right-box-content{width:80%;height:80%}"],data:{animation:[(0,v.hZ)("animateHeader",[(0,v.wk)("in",(0,v.iF)({transform:"translateX({{startPosition}})"}),{params:{startPosition:"0px"}}),(0,v.wk)("out",(0,v.iF)({transform:"translateX({{endPosition}})"}),{params:{endPosition:"-355px"}}),(0,v.kY)("in => out",(0,v.i0)("0.4s ease-in-out")),(0,v.kY)("out => in",(0,v.i0)("0.4s linear"))]),(0,v.hZ)("loader",[(0,v.wk)("in",(0,v.iF)({opacity:"{{startOpacity}}",transform:"translateX({{onPosition}})"}),{params:{startOpacity:"0.9",onPosition:"0%"}}),(0,v.wk)("out",(0,v.iF)({opacity:"{{endOpacity}}",transform:"translateX({{offPosition}})"}),{params:{endOpacity:"0",offPosition:"100%"}}),(0,v.kY)("in => out",(0,v.i0)("0.4s ease-in-out")),(0,v.kY)("out => in",(0,v.i0)("0.4s linear"))])]}}),a})();const me=n=>({count:n});function nn(n,a){if(1&n&&(e.j41(0,"span",16),e.EFF(1,"UPLOADER_CONFIG_SMASH_SUBTITLE_VALIDITY_DURATION_ERROR_PREMIUM_VAR"),e.k0s()),2&n){const o=e.XpG(4);e.Y8G("translateParams",e.eq3(1,me,o.transferSettings.availabilityDuration.max))}}function on(n,a){if(1&n&&(e.j41(0,"span",16),e.EFF(1,"UPLOADER_CONFIG_SMASH_SUBTITLE_VALIDITY_DURATION_ERROR_FREEMIUM"),e.k0s()),2&n){const o=e.XpG(4);e.Y8G("translateParams",e.eq3(1,me,o.transferSettings.availabilityDuration.max))}}function rn(n,a){if(1&n&&(e.j41(0,"div",14),e.DNE(1,nn,2,3,"span",15),e.nI1(2,"async"),e.DNE(3,on,2,3,"span",15),e.nI1(4,"async"),e.k0s()),2&n){const o=e.XpG(3);e.R7$(),e.Y8G("ngIf",o.f.availabilityDuration.value>o.transferSettings.availabilityDuration.max&&e.bMT(2,2,o.isPremium$)),e.R7$(2),e.Y8G("ngIf",o.f.availabilityDuration.value>o.transferSettings.availabilityDuration.max&&!e.bMT(4,4,o.isPremium$))}}function an(n,a){if(1&n&&(e.j41(0,"div",8)(1,"div",9)(2,"div",10),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.DNE(5,rn,5,6,"div",11),e.k0s(),e.j41(6,"div",12),e.nrm(7,"app-smash-input",13),e.k0s()()),2&n){const o=e.XpG(2);e.R7$(3),e.SpI(" ",e.bMT(4,4,"UPLOADER_CONFIG_SMASH_SUBTITLE_VALIDITY_DURATION")," "),e.R7$(2),e.Y8G("ngIf",o.f.availabilityDuration.errors),e.R7$(2),e.Y8G("error",o.f.availabilityDuration.errors)("max",o.transferSettings.availabilityDuration.max)}}function sn(n,a){1&n&&(e.j41(0,"div",14)(1,"span",19),e.EFF(2,"UPLOADER_CONFIG_SMASH_SUBTITLE_PASSWORD_ERROR"),e.k0s()())}function ln(n,a){if(1&n&&(e.j41(0,"div",8)(1,"div",9)(2,"div",10),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.DNE(5,sn,3,0,"div",11),e.k0s(),e.j41(6,"div",17),e.nrm(7,"app-smash-fake-password",18),e.nI1(8,"translate"),e.k0s()()),2&n){const o=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,4,"UPLOADER_CONFIG_SMASH_SUBTITLE_PASSWORD")),e.R7$(2),e.Y8G("ngIf",o.f.password.errors),e.R7$(2),e.FS9("placeholder",e.bMT(8,6,"UPLOADER_CONFIG_SMASH_SUBTITLE_PASSWORD_PLACEHOLDER")),e.Y8G("error",o.f.password.errors)}}function cn(n,a){1&n&&(e.j41(0,"div",8)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.j41(4,"div",20),e.nrm(5,"app-smash-checkbox",21),e.k0s()()()),2&n&&(e.R7$(2),e.SpI("",e.bMT(3,1,"UPLOADER_CONFIG_SMASH_SUBTITLE_SENDER_NOTIFICATION")," "))}function dn(n,a){1&n&&(e.j41(0,"div",8)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.j41(4,"div",20),e.nrm(5,"app-smash-checkbox",22),e.k0s()()()),2&n&&(e.R7$(2),e.SpI("",e.bMT(3,1,"UPLOADER_CONFIG_SMASH_SUBTITLE_LINK_NOTIFICATION")," "))}function mn(n,a){1&n&&(e.j41(0,"div",8)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.j41(4,"div",20),e.nrm(5,"app-smash-checkbox",23),e.k0s()()()),2&n&&(e.R7$(2),e.SpI("",e.bMT(3,1,"UPLOADER_CONFIG_SMASH_SUBTITLE_DOWNLOAD_NOTIFICATION")," "))}function pn(n,a){1&n&&(e.j41(0,"div",8)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.j41(4,"div",20),e.nrm(5,"app-smash-checkbox",24),e.k0s()()()),2&n&&(e.R7$(2),e.SpI("",e.bMT(3,1,"UPLOADER_CONFIG_SMASH_SUBTITLE_NO_DOWNLOAD_NOTIFICATION")," "))}function gn(n,a){1&n&&(e.j41(0,"div",8)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.j41(4,"div",20),e.nrm(5,"app-smash-checkbox",25),e.k0s()()()),2&n&&(e.R7$(2),e.SpI("",e.bMT(3,1,"UPLOADER_CONFIG_SMASH_SUBTITLE_PREVIEW")," "))}function _n(n,a){if(1&n&&(e.j41(0,"div",8)(1,"label",26)(2,"div",19),e.EFF(3,"UPLOADER_CONFIG_SMASH_SUBTITLE_DESIGN_FREEMIUM"),e.k0s(),e.nrm(4,"div",27),e.k0s()()),2&n){e.XpG(2);const o=e.sdS(4);e.R7$(),e.Y8G("appSmashTooltip",o)("autoPlacement",!0)}}function un(n,a){if(1&n&&(e.j41(0,"div",8)(1,"label",26)(2,"div",19),e.EFF(3,"UPLOADER_CONFIG_SMASH_SUBTITLE_PROMOTION_FREEMIUM"),e.k0s(),e.nrm(4,"div",27),e.k0s()()),2&n){e.XpG(2);const o=e.sdS(6);e.R7$(),e.Y8G("appSmashTooltip",o)("autoPlacement",!0)}}function fn(n,a){1&n&&(e.j41(0,"div",36),e.nrm(1,"i",37),e.k0s())}function hn(n,a){if(1&n){const o=e.RV6();e.j41(0,"div",31)(1,"div",32),e.EFF(2,"UPLOADER_CONFIG_SMASH_SUBTITLE_DESIGN_PREMIUM"),e.k0s(),e.j41(3,"div",33),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.openModalCustomization())}),e.nrm(4,"app-smash-previewer-customization",34),e.nI1(5,"async"),e.DNE(6,fn,2,0,"div",35),e.k0s()()}if(2&n){let o;const t=e.XpG(3);e.R7$(4),e.Y8G("customization",t.customizationSelected)("customizationLoading",t.customizationLoading)("url",null==(o=e.bMT(5,4,t.domain$))?null:o.domain),e.R7$(2),e.Y8G("ngIf",!!t.customizationSelected)}}function bn(n,a){1&n&&(e.j41(0,"div",36),e.nrm(1,"i",37),e.k0s())}function Cn(n,a){if(1&n){const o=e.RV6();e.j41(0,"div",38)(1,"div",32),e.EFF(2,"UPLOADER_CONFIG_SMASH_SUBTITLE_PROMOTION_PREMIUM"),e.k0s(),e.j41(3,"div",33),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.openModalPromotion())}
1),e.nrm(4,"app-smash-promotion",39),e.DNE(5,bn,2,0,"div",35),e.k0s()()}if(2&n){const o=e.XpG(3);e.R7$(4),e.Y8G("preview",!0)("replay",!1)("promotion",o.promotionSelected)("promotionLoading",o.promotionLoading),e.R7$(),e.Y8G("ngIf",!!o.promotionSelected)}}function vn(n,a){if(1&n&&(e.j41(0,"div",28),e.DNE(1,hn,7,6,"div",29)(2,Cn,6,5,"div",30),e.k0s()),2&n){const o=e.XpG(2);e.R7$(),e.Y8G("ngIf",o.isUpdateCustomizationActive&&(o.customizationSelected||o.customizationLoading)),e.R7$(),e.Y8G("ngIf",o.isUpdatePromotionActive&&(o.promotionSelected||o.promotionLoading))}}function Mn(n,a){if(1&n&&(e.j41(0,"div",4)(1,"ng-scrollbar")(2,"form",5),e.DNE(3,an,8,6,"div",6)(4,ln,9,8,"div",6)(5,cn,6,3,"div",6)(6,dn,6,3,"div",6)(7,mn,6,3,"div",6)(8,pn,6,3,"div",6)(9,gn,6,3,"div",6)(10,_n,5,2,"div",6),e.nI1(11,"async"),e.DNE(12,un,5,2,"div",6),e.nI1(13,"async"),e.DNE(14,vn,3,2,"div",7),e.nI1(15,"async"),e.k0s()()()),2&n){const o=e.XpG();e.R7$(2),e.Y8G("formGroup",o.parametersForm),e.R7$(),e.Y8G("ngIf",o.isUpdateAvailabilityDurationActive),e.R7$(),e.Y8G("ngIf",o.isUpdatePasswordActive),e.R7$(),e.Y8G("ngIf","Email"===o.uploadFormMode&&o.isDisplaySenderNotificationActive),e.R7$(),e.Y8G("ngIf","Link"===o.uploadFormMode&&o.isDisplayLinkNotificationActive),e.R7$(),e.Y8G("ngIf",o.isDisplayDownloadNotificationActive),e.R7$(),e.Y8G("ngIf",o.isDisplayNoDownloadNotificationActive),e.R7$(),e.Y8G("ngIf",o.isUpdatePreviewActive),e.R7$(),e.Y8G("ngIf",!e.bMT(11,11,o.isPremium$)),e.R7$(2),e.Y8G("ngIf",!e.bMT(13,13,o.isPremium$)),e.R7$(2),e.Y8G("ngIf",e.bMT(15,15,o.isPremium$)&&(o.isUpdateCustomizationActive||o.isUpdatePromotionActive))}}function On(n,a){1&n&&(e.j41(0,"div",40)(1,"div"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"UPLOADER_CONFIG_SMASH_SUBTITLE_DESIGN_HELP")))}function Pn(n,a){1&n&&(e.j41(0,"div",40)(1,"div"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"UPLOADER_CONFIG_SMASH_SUBTITLE_PROMOTION_HELP")))}let xn=(()=>{var n;class a{constructor(t,i,r){this.fb=t,this.store$=i,this.dialog=r,this.subscriptions=[],this.translations={Full:"UPLOADER_CONFIG_SMASH_PREVIEW_NOTIFICATION_ENABLED",All:"UPLOADER_CONFIG_SMASH_PREVIEW_NOTIFICATION_ENABLED",None:"UPLOADER_CONFIG_SMASH_PREVIEW_NOTIFICATION_DISABLED"},this.isPremium$=this.store$.pipe((0,E.Lt)(C.uW)),this.domain$=this.store$.pipe((0,E.Lt)(C.C4)),this.transferPassword$=this.store$.pipe((0,E.Lt)(p.tM))}ngOnInit(){this.buildParametersForm(),this.initUploaderParams(),this.listenToFormChanges(),this.subscribeToPasswordChanges()}subscribeToPasswordChanges(){this.subscriptions.push(this.transferPassword$.subscribe(t=>{var i;t&&(null===(i=this.parametersForm)||void 0===i||null===(i=i.controls.password)||void 0===i||i.setValue(t,{emitEvent:!1}),this.publishFormStatuses())}))}buildParametersForm(){var t,i,r,s,c;const{password:b,availabilityDuration:P,preview:f}=this.transferCommonParameters,M=this.transferSettings.availabilityDuration.default.toString().length>3,z={default:M?this.transferSettings.availabilityDuration.default/I.h.oneDayInSecond:this.transferSettings.availabilityDuration.default,min:M?this.transferSettings.availabilityDuration.min/I.h.oneDayInSecond:this.transferSettings.availabilityDuration.min,max:M?this.transferSettings.availabilityDuration.max/I.h.oneDayInSecond:this.transferSettings.availabilityDuration.max};this.parametersForm=this.fb.group({password:[b||"",(0,It.e)(this.transferSettings.password)],availabilityDuration:[P>0?P/I.h.oneDayInSecond:z.default,[_.k0.min(z.min),_.k0.max(z.max),_.k0.required]],preview:[f?"Full"===f:this.transferSettings.preview.default===I.h.previewStatus.Full],senderNotification:[null===(t=this.transferSettings.notification)||void 0===t||null===(t=t.sender)||void 0===t?void 0:t.enabled],receiverNotification:[null===(i=this.transferSettings.notification)||void 0===i||null===(i=i.receiver)||void 0===i?void 0:i.enabled],linkNotification:[null===(r=this.transferSettings.notification)||void 0===r||null===(r=r.link)||void 0===r?void 0:r.enabled],downloadNotification:[null===(s=this.transferSettings.notification)||void 0===s||null===(s=s.download)||void 0===s?void 0:s.enabled],noDownloadNotification:[null===(c=this.transferSettings.notification)||void 0===c||null===(c=c.noDownload)||void 0===c?void 0:c.enabled]})}get f(){return this.parametersForm.controls}initUploaderParams(){const{password:t,availabilityDuration:i,preview:r,senderNotification:s,receiverNotification:c,linkNotification:b,downloadNotification:P,noDownloadNotification:f}=this.parametersForm.value;
1t&&this.store$.dispatch(g.Zd.SetTransferPassword({password:t})),this.store$.dispatch(g.Zd.SetTransferAvailability({availability:i})),this.store$.dispatch(g.Zd.SetTransferPreviewType({preview:r?"Full":"None"})),this.store$.dispatch(g.Zd.SetTransferNotification({notification:{sender:{enabled:s},receiver:{enabled:c},link:{enabled:b},download:{enabled:P},noDownload:{enabled:f}}}))}listenToFormChanges(){this.subscriptions.push(this.parametersForm.valueChanges.subscribe(t=>{const{password:i,availabilityDuration:r,preview:s,senderNotification:c,receiverNotification:b,linkNotification:P,downloadNotification:f,noDownloadNotification:R}=t;this.store$.dispatch(g.Zd.SetTransferPassword({password:i})),this.store$.dispatch(g.Zd.SetTransferAvailability({availability:r})),this.store$.dispatch(g.Zd.SetTransferPreviewType({preview:s?"Full":"None"})),this.store$.dispatch(g.Zd.SetTransferNotification({notification:{sender:{enabled:c},receiver:{enabled:b},link:{enabled:P},download:{enabled:f},noDownload:{enabled:R}}}))})),this.publishFormStatuses(),this.subscriptions.push(this.parametersForm.statusChanges.subscribe(()=>this.publishFormStatuses()))}publishFormStatuses(){this.parametersForm&&(this.store$.dispatch(g.Zd.setConfigFormStatus({configFormStatus:this.parametersForm.status})),this.store$.dispatch(g.Zd.setConfigPasswordStatus({configPasswordStatus:this.parametersForm.controls.password.status})))}openModalCustomization(){this.customizationSelected&&this.dialog.open(Yt,{closeButton:!1,enableClose:!1,height:"80vh",width:"80vw"})}openModalPromotion(){this.promotionSelected&&this.dialog.open(tn,{closeButton:!1,enableClose:!1,height:"80vh",width:"80vw"})}get isUpdateCustomizationActive(){var t;return null===(t=this.transferSettings)||void 0===t||null===(t=t.customization)||void 0===t?void 0:t.active}get isUpdatePromotionActive(){var t;return null===(t=this.transferSettings)||void 0===t||null===(t=t.promotion)||void 0===t?void 0:t.active}get isUpdateAvailabilityDurationActive(){var t;return null===(t=this.transferSettings)||void 0===t||null===(t=t.availabilityDuration)||void 0===t?void 0:t.active}get isUpdatePasswordActive(){var t;return null===(t=this.transferSettings)||void 0===t||null===(t=t.password)||void 0===t?void 0:t.active}get isUpdatePreviewActive(){var t;return null===(t=this.transferSettings)||void 0===t||null===(t=t.preview)||void 0===t?void 0:t.active}get isDisplaySenderNotificationActive(){var t;return null===(t=this.transferSettings)||void 0===t||null===(t=t.notification)||void 0===t||null===(t=t.sender)||void 0===t?void 0:t.active}get isDisplayLinkNotificationActive(){var t;return null===(t=this.transferSettings)||void 0===t||null===(t=t.notification)||void 0===t||null===(t=t.link)||void 0===t?void 0:t.active}get isDisplayDownloadNotificationActive(){var t;return null===(t=this.transferSettings)||void 0===t||null===(t=t.notification)||void 0===t||null===(t=t.download)||void 0===t?void 0:t.active}get isDisplayNoDownloadNotificationActive(){var t;return null===(t=this.transferSettings)||void 0===t||null===(t=t.notification)||void 0===t||null===(t=t.noDownload)||void 0===t?void 0:t.active}get previewOptions(){var t;return null===(t=this.transferSettings)||void 0===t||null===(t=t.preview)||void 0===t?void 0:t.options}ngOnDestroy(){this.subscriptions.map(t=>t.unsubscribe()),this.subscriptions.length=0}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(_.ok),e.rXU(E.il),e.rXU(T.o3))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-config-send-parameters"]],inputs:{uploadFormMode:"uploadFormMode",drawerExpanded:"drawerExpanded",promotions:"promotions",promotionSelected:"promotionSelected",promotionLoading:"promotionLoading",customizationSelected:"customizationSelected",customizationLoading:"customizationLoading",transferSettings:"transferSettings",transferCommonParameters:"transferCommonParameters"},decls:7,vars:1,consts:[["designFreemiumTooltip",""],["promotionFreemiumTooltip",""],["translate","",1,"header"],["class","content",4,"ngIf"],[1,"content"],[1,"inner-content",3,"formGroup"],["class","parameter-row",4,"ngIf"],["class","main-design-container",4,"ngIf"],[1,"parameter-row"],[1,"parameter-title"],[1,"label"],["class","parameter-error input-error",4,"ngIf"],[1,"parameter-input","availability-container"],["borderStyle","full","type","number","suffix","SUFFIX_DAYS","formControlName","availabilityDuration",3,"error","max"],[1,"parameter-error","input-error"],["translate","",3,"translateParams",4,"ngIf"],["translate","",3,"translateParams"],[1,"parameter-input","password-container"],["type","text","borderStyle","full","formControlName","password",3,"error","placeholder"],["translate",""],[1,"parameter-input","checkbox"],["formControlName","senderNotification"],["formControlName","linkNotification"],["formControlName","downloadNotification"],["formControlName","noDownloadNotification"],["formControlName","preview"],["placement","right","contentType","template","offset","45","theme","light","width","200",1,"premium-feature",3,"appSmashTooltip","autoPlacement"],[1,"input-suffix","input-icon","icon-smash_lock"],[1,"main-design-container"],["class","customization-container",4,"ngIf"],["class","promotion-container",4,"ngIf"],[1,"customization-container"],["translate","",1,"design-title"],[1,"design-thumbn
1ail",3,"click"],["customizationAim","preview-customization-player-mini","displayType","miniScreen",3,"customization","customizationLoading","url"],["class","design-edit-button-container",4,"ngIf"],[1,"design-edit-button-container"],[1,"design-edit-button","icon-smash_edit"],[1,"promotion-container"],[1,"promotion",3,"preview","replay","promotion","promotionLoading"],[1,"tooltip-content"]],template:function(t,i){1&t&&(e.j41(0,"div",2),e.EFF(1,"UPLOADER_CONFIG_SMASH_TITLE"),e.k0s(),e.DNE(2,Mn,16,17,"div",3)(3,On,4,3,"ng-template",null,0,e.C5r)(5,Pn,4,3,"ng-template",null,1,e.C5r)),2&t&&(e.R7$(2),e.Y8G("ngIf",!0===i.drawerExpanded))},dependencies:[l.bT,O.Mm,ae.V,_.qT,_.BC,_.cb,_.j4,_.JD,N.Yh,J.S,se.r,te.m,ce.u,de.H,l.Jj,O.D9],styles:[".header[_ngcontent-%COMP%]{height:4.8rem;font-size:16px;font-weight:700}.mobile-card[_ngcontent-%COMP%]{align-items:center;justify-content:center;border-radius:1.3rem;background:#fff;width:100%;height:-moz-fit-content;height:fit-content;margin-bottom:2rem;overflow:hidden;position:relative;transition:.25s ease-in-out;left:0rem;padding:2rem;min-height:10rem}.mobile-card[_ngcontent-%COMP%]   .mobile-card-no-content-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.mobile-card[_ngcontent-%COMP%]   .mobile-card-no-content-container-message[_ngcontent-%COMP%]{color:#888;font-weight:400;font-size:1.5rem;text-align:center}.button-link-blue[_ngcontent-%COMP%]{color:#4285f4;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-blue[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.button-link-red[_ngcontent-%COMP%]{color:#ea5159;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-red[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.btn-new[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;margin:0 .5rem}.btn-new[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}.btn-v3[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;padding:.9rem 1.6rem;border-radius:2rem}.btn-v3[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}@media only screen and (min-device-width: 320px) and (max-device-width: 480px){.btn-v3[_ngcontent-%COMP%]{border-radius:3rem}}.btn[_ngcontent-%COMP%]{border-radius:.3rem;cursor:pointer;height:4rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:0 1.5rem;width:100%;justify-content:center;align-items:center;display:flex}.btn[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.btn-rounded[_ngcontent-%COMP%]{border-radius:20px;cursor:pointer;height:3.8rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:2rem 1.9rem;justify-content:center;align-items:center;display:flex}.btn-rounded[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.primary[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid none;color:#fafafa}.green[_ngcontent-%COMP%]{background-color:#10a375;border:1px solid #10A375;color:#fff}.green[_ngcontent-%COMP%]:hover:not([disabled]){color:#e4fff7}.red[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid #ea5159;color:#fff}.red[_ngcontent-%COMP%]:hover:not([disabled]){color:#f7ccce}.red-light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;color:#7f7f7f}.red-light[_ngcontent-%COMP%]:hover{color:#ea5159;border:solid 1px #ea5159}.white-outline[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #fff;color:#fff}.white-outline[_ngcontent-%COMP%]:hover{color:#7f7f7f;border:solid 1px #7F7F7F}.dark[_ngcontent-%COMP%]{background-color:#333;border:1px solid #333;color:#fff}.dark[_ngcontent-%COMP%]:hover:not([disabled]){color:#ccc}.light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #bfbfbf;color:#bfbfbf}.light[_ngcontent-%COMP%]:hover{border-color:#0009;color:#0009}.white[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #D6DBE0;color:#333}.dark-filaire[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #333;color:#333}.auto[_ngcontent-%COMP%]{width:auto}.button-mobile[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:5rem;border-radius:1.3rem;width:100%;font-size:1.7rem;margin-bottom:1.2rem;font-weight:600}.button-mobile.red[_ngcontent-%COMP%]{background-color:#ea5159;color:#fafafa;font-weight:900}.button-mobile.transparent[_ngcontent-%COMP%]{background-color:transparent;color:#333;font-weight:900;border:none;height:5rem}.main-design-container[_ngcontent-%COMP%], .parameter-row[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], .parameter-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.customization-container[_ngcontent-%COMP%], .promotion-container[_ngcontent-%COMP%], .mobile-card[_ngcontent-%COMP%]{display:flex;flex-direction:column}.full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}
1.design-thumbnail[_ngcontent-%COMP%]{border:.1rem solid #ccc}.input-error[_ngcontent-%COMP%]{color:#ea5159;font-size:1.3rem}.header[_ngcontent-%COMP%]{padding:1.4rem 2rem;border-bottom:.1rem solid #ccc}.content[_ngcontent-%COMP%]{overflow:hidden;padding:0rem .4rem 0rem 2rem;height:33.3rem}.inner-content[_ngcontent-%COMP%]{padding-right:1.7rem}.parameter-row[_ngcontent-%COMP%]{position:relative;width:100%;justify-content:space-between;align-items:center;padding:1rem 0}.parameter-row[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{width:100%;justify-content:inherit;align-items:center;cursor:pointer}.parameter-row[_ngcontent-%COMP%]   label.premium-feature[_ngcontent-%COMP%]{cursor:default;opacity:.5}.parameter-row[_ngcontent-%COMP%]   label.premium-feature[_ngcontent-%COMP%]   .input-icon[_ngcontent-%COMP%]{padding:0 .4rem}.parameter-row[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background:#00758c;color:#fff;border-radius:.2rem;font-size:1rem;padding:.1rem .5rem;margin-right:.5rem}.parameter-row[_ngcontent-%COMP%]   .parameter-title[_ngcontent-%COMP%]{font-size:1.4rem}.parameter-error[_ngcontent-%COMP%]{max-width:18rem;font-size:1.3rem}.parameter-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:.1rem solid #ccc}.availability-container[_ngcontent-%COMP%]{width:8.5rem;height:4rem}.password-container[_ngcontent-%COMP%]{width:14rem;height:4rem}.main-design-container[_ngcontent-%COMP%]{justify-content:space-between;padding:1rem 0}.design-title[_ngcontent-%COMP%]{font-size:1.4rem}.design-thumbnail[_ngcontent-%COMP%]{position:relative;border-radius:.3rem;overflow:hidden;height:100%}.customization-container[_ngcontent-%COMP%], .promotion-container[_ngcontent-%COMP%]{width:15rem;cursor:pointer;min-height:10.5rem}.design-edit-button-container[_ngcontent-%COMP%]{position:absolute;top:0;right:0;height:4rem;width:4rem;background-color:#fff;clip-path:polygon(0 0,100% 0,100% 100%);z-index:2}.design-edit-button[_ngcontent-%COMP%]{position:absolute;top:0;right:0;display:flex;font-size:1.5rem;padding:.3rem;color:#888}"]}),a})();var En=m(64267),In=m(81215);const Rn=["verificationCode"],yn=n=>({username:n});function Tn(n,a){1&n&&(e.j41(0,"div",10),e.EFF(1,"UPLOADER_EMAIL_VALIDATION_VERIFICATION_CODE_ERROR"),e.k0s())}let Sn=(()=>{var n;class a{constructor(t){this.store$=t,this.subscriptions=[],this.submitted=!1,this.validateEmailVerificationCodeResponse$=this.store$.select(p.ge),this.validateEmailVerificationCodeLoading$=this.store$.select(p.$M),this.validateEmailVerificationCodeLoaded$=this.store$.select(p.Wk),this.validateEmailVerificationCodeError$=this.store$.select(p.lE),this.verifyEmailLoading$=this.store$.select(p.g8),this.verifyEmailLoaded$=this.store$.select(p.Nf),this.verifyEmailError$=this.store$.select(p.ID),this.sendEmailVerificationLoading$=this.store$.select(p.AL),this.sendEmailVerificationLoaded$=this.store$.select(p.YD),this.sendEmailVerificationError$=this.store$.select(p.MS),this.verificationCodeFormDisplayed$=this.store$.select(p.eP),this.transferEmailParameters$=this.store$.select(p.i),this.transferLinkParameters$=this.store$.select(p.w$),this.uploadFormMode$=this.store$.select(p.RJ),this.subscriptions.push(this.validateEmailVerificationCodeResponse$.subscribe(i=>{i&&this.verificationCodeComponent.reset()}),this.validateEmailVerificationCodeError$.subscribe(i=>{i&&this.verificationCodeComponent.reset()}))}ngAfterViewInit(){this.verificationCodeComponent&&setTimeout(()=>{this.verificationCodeComponent.focus()},0)}submit(){this.submitted=!0,this.verificationCodeComponent.valid||this.verificationCodeComponent.focus()}onVerificationChange(t){var i=this;return(0,u.A)(function*(){const r=yield i.uploadFormMode$.pipe((0,L.s)(1)).toPromise(),s=yield i.transferLinkParameters$.pipe((0,L.s)(1)).toPromise(),c=yield i.transferEmailParameters$.pipe((0,L.s)(1)).toPromise();i.store$.dispatch(g.Zd.ValidateEmailVerificationCode({username:"link"===r?s.delivery.sender.email:c.delivery.sender.email,code:t}))})()}handleSendAgain(){var t=this;return(0,u.A)(function*(){const i=yield t.uploadFormMode$.pipe((0,L.s)(1)).toPromise(),r=yield t.transferLinkParameters$.pipe((0,L.s)(1)).toPromise(),s=yield t.transferEmailParameters$.pipe((0,L.s)(1)).toPromise();
1t.store$.dispatch(g.Zd.SendEmailVerificationCode({username:"link"===i?r.delivery.sender.email:s.delivery.sender.email}))})()}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(E.il))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-email-validation"]],viewQuery:function(t,i){if(1&t&&e.GBs(Rn,5),2&t){let r;e.mGM(r=e.lsd())&&(i.verificationCodeComponent=r.first)}},decls:25,vars:30,consts:[["verificationCode",""],["translate","",1,"header"],[1,"content"],[1,"description",3,"innerHtml"],[1,"email-validation-input-container"],[3,"valueChange","isVerificationPending","isVerificationFailed","isVerificationLoaded"],["class","verification-code-error","translate","",4,"ngIf"],[1,"send-again-container"],["translate","",1,"send-again-question-label"],["translate","",1,"send-again-button",3,"click"],["translate","",1,"verification-code-error"]],template:function(t,i){if(1&t){const r=e.RV6();e.j41(0,"div",1),e.EFF(1,"UPLOADER_EMAIL_VALIDATION_TITLE"),e.k0s(),e.j41(2,"div",2),e.nrm(3,"div",3),e.nI1(4,"async"),e.nI1(5,"async"),e.nI1(6,"async"),e.nI1(7,"translate"),e.nI1(8,"safeHtml"),e.j41(9,"div",4)(10,"app-smash-verification-code",5,0),e.nI1(12,"async"),e.nI1(13,"async"),e.nI1(14,"async"),e.nI1(15,"async"),e.bIt("valueChange",function(c){return e.eBV(r),e.Njj(i.onVerificationChange(c))}),e.k0s()(),e.DNE(16,Tn,2,0,"div",6),e.nI1(17,"async"),e.nI1(18,"async"),e.j41(19,"div",7)(20,"span",8),e.EFF(21,"UPLOADER_EMAIL_VALIDATION_SEND_AGAIN_QUESTION"),e.k0s(),e.EFF(22," \xa0"),e.j41(23,"span",9),e.bIt("click",function(){return e.eBV(r),e.Njj(i.handleSendAgain())}),e.EFF(24,"UPLOADER_EMAIL_VALIDATION_SEND_AGAIN_BUTTON_LABEL"),e.k0s()()()}if(2&t){let r;e.R7$(3),e.Y8G("innerHtml",e.bMT(8,14,e.i5U(7,11,"UPLOADER_EMAIL_VALIDATION_DESCRIPTION",e.eq3(28,yn,"Email"===e.bMT(4,5,i.uploadFormMode$)?null==(r=e.bMT(5,7,i.transferEmailParameters$))||null==r.delivery||null==r.delivery.sender?null:r.delivery.sender.email:null==(r=e.bMT(6,9,i.transferLinkParameters$))||null==r.delivery||null==r.delivery.sender?null:r.delivery.sender.email))),e.npT),e.R7$(7),e.Y8G("isVerificationPending",e.bMT(12,16,i.validateEmailVerificationCodeLoading$))("isVerificationFailed",!!e.bMT(13,18,i.validateEmailVerificationCodeError$)||"Dirty"===e.bMT(14,20,i.validateEmailVerificationCodeResponse$))("isVerificationLoaded",e.bMT(15,22,i.validateEmailVerificationCodeLoaded$)),e.R7$(6),e.Y8G("ngIf",e.bMT(17,24,i.validateEmailVerificationCodeError$)||"Dirty"===e.bMT(18,26,i.validateEmailVerificationCodeResponse$)||i.submitted&&!(null!=i.verificationCodeComponent&&i.verificationCodeComponent.valid))}},dependencies:[l.bT,O.Mm,En.i,l.Jj,O.D9,In.$],styles:[".header[_ngcontent-%COMP%]{height:4.8rem;font-size:16px;font-weight:700}.mobile-card[_ngcontent-%COMP%]{align-items:center;justify-content:center;border-radius:1.3rem;background:#fff;width:100%;height:-moz-fit-content;height:fit-content;margin-bottom:2rem;overflow:hidden;position:relative;transition:.25s ease-in-out;left:0rem;padding:2rem;min-height:10rem}.mobile-card[_ngcontent-%COMP%]   .mobile-card-no-content-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.mobile-card[_ngcontent-%COMP%]   .mobile-card-no-content-container-message[_ngcontent-%COMP%]{color:#888;font-weight:400;font-size:1.5rem;text-align:center}.button-link-blue[_ngcontent-%COMP%]{color:#4285f4;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-blue[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.button-link-red[_ngcontent-%COMP%]{color:#ea5159;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-red[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.btn-new[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;margin:0 .5rem}.btn-new[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}.btn-v3[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;padding:.9rem 1.6rem;border-radius:2rem}.btn-v3[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}@media only screen and (min-device-width: 320px) and (max-device-width: 480px){.btn-v3[_ngcontent-%COMP%]{border-radius:3rem}}.btn[_ngcontent-%COMP%]{border-radius:.3rem;cursor:pointer;height:4rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:0 1.5rem;width:100%;justify-content:center;align-items:center;display:flex}.btn[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.btn-rounded[_ngcontent-%COMP%]{border-radius:20px;cursor:pointer;height:3.8rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:2rem 1.9rem;justify-content:center;align-items:center;display:flex}.btn-rounded[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.primary[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid none;color:#fafafa}.green[_ngcontent-%COMP%]{background-color:#10a375;border:1px solid #10A375;color:#fff}.green[_ngcontent-%COMP%]:hover:not([disabled]){color:#e4fff7}.red[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid #ea5159;color:#fff}.red[_ngcontent-%COMP%]:hover:not([disabled]){color:#f7ccce}.red-light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;color:#7f7f7f}.red-light[_ngcontent-%COMP%]:hover{color:#ea5159;border:solid 1px #ea5159}.white-outline[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #fff;color:#fff}.white-outline[_ngcontent-%COMP%]:hover{color:#7f7f7f;border:solid 1px #7F7F7F}.dark[_ngcontent-%COMP%]{background-color:#333;border:1px solid #333;color:#fff}.dark[_ngcontent-%COMP%]:hover:not([disabled]){color:#ccc}.light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #bfbfbf;color:#bfbfbf}.light[_ngcontent-%COMP%]:hover{border-color:#0009;color:#0009}.white[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #D6DBE0;color:#333}.dark-filaire[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #333;color:#333}.auto[_ngcontent-%COMP%]{width:auto}.button-mobile[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:5rem;border-radius:1.3rem;width:100%;font-size:1.7rem;margin-bottom:1.2rem;font-weight:600}.button-mobile.red[_ngcontent-%COMP%]{background-color:#ea5159;color:#fafafa;font-weight:900}.button-mobile.transparent[_ngcontent-%COMP%]{background-color:transparent;color:#333;font-weight:900;border:none;height:5rem}.send-again-container[_ngcontent-%COMP%]{display:flex;flex-direction:row}.email-validation-input-container[_ngcontent-%COMP%], .mobile-card[_ngcontent-%COMP%]{display:flex;flex-direction:column}.full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.header[_ngcontent-%COMP%]{padding:1.4rem 2.4rem;border-bottom:.1rem solid #ccc}.content[_ngcontent-%COMP%]{overflow:hidden;padding:2rem 2.4rem;height:33.3rem}.email-validation-input-container[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:80%;height:6rem;min-height:6rem;margin-bottom:2rem;margin-top:2rem}.description[_ngcontent-%COMP%]{margin-bottom:2rem}.send-again-container[_ngcontent-%COMP%]{align-items:center}.send-again-button[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}.smash-verification-code-container[_ngcontent-%COMP%]{height:4rem}.verification-code-error[_ngcontent-%COMP%]{color:#ea5159;margin-bottom:1rem}"]}),a})();const kn=["emailForm"],Fn=["linkForm"],Dn=["emailValidation"],wn=n=>({animate:n}),pe=n=>({visible:n}),$n=n=>({"tab-selected":n}),Ln=n=>({"not-configurable":n}),An=n=>({date:n});function Un(n,a){1&n&&(e.qex(0),e.j41(1,"div",23)(2,"div",24),e.EFF(3,"UPLOADER_PARAMETERS_NEW_TRANSFER"),e.k0s()(),e.bVm())}function zn(n,a){if(1&n){const o=e.RV6();e.j41(0,"button",26),e.nI1(1,"async"),e.bIt("click",function(){const i=e.eBV(o).$implicit,r=e.XpG(3);return e.Njj(r.onSelectSmashMode(i))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()}if(2&n){const o=a.$implicit,t=e.XpG(3);
1e.Y8G("ngClass",e.eq3(7,$n,t.uploadFormMode===o))("disabled",e.bMT(1,3,t.isSubmitBusy$)),e.R7$(2),e.JRh(e.bMT(3,5,t.tabTranslate[o]))}}function Nn(n,a){if(1&n&&(e.qex(0),e.DNE(1,zn,4,9,"button",25),e.bVm()),2&n){const o=e.XpG(2);e.R7$(),e.Y8G("ngForOf",o.transferSettings.delivery.options)}}function jn(n,a){1&n&&(e.j41(0,"div",23)(1,"div",24),e.EFF(2,"UPLOADER_PARAMETERS_NEW_TRANSFER"),e.k0s()())}function Bn(n,a){if(1&n&&e.DNE(0,Nn,2,1,"ng-container",11)(1,jn,3,0,"ng-template",null,2,e.C5r),2&n){const o=e.sdS(2),t=e.XpG();e.Y8G("ngIf",(null==t.transferSettings||null==t.transferSettings.delivery||null==t.transferSettings.delivery.options?null:t.transferSettings.delivery.options.length)>1)("ngIfElse",o)}}function Gn(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"app-email-form",27,3),e.nI1(3,"async"),e.bIt("emailFormSubmitted",function(i){e.eBV(o);const r=e.XpG();return e.Njj(r.handleFormSubmitted(i))}),e.k0s(),e.bVm()}if(2&n){const o=e.XpG();e.R7$(),e.Y8G("dropbox",o.dropbox)("isDropboxId",o.isDropboxId)("identity",e.bMT(3,3,o.identity$))}}function Vn(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"app-email-form",27,3),e.nI1(3,"async"),e.bIt("emailFormSubmitted",function(i){e.eBV(o);const r=e.XpG(2);return e.Njj(r.handleFormSubmitted(i))}),e.k0s(),e.bVm()}if(2&n){const o=e.XpG(2);e.R7$(),e.Y8G("dropbox",o.dropbox)("isDropboxId",o.isDropboxId)("identity",e.bMT(3,3,o.identity$))}}function Yn(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"app-link-form",28,5),e.nI1(3,"async"),e.nI1(4,"async"),e.bIt("linkFormSubmitted",function(i){e.eBV(o);const r=e.XpG(3);return e.Njj(r.handleFormSubmitted(i))}),e.k0s(),e.bVm()}if(2&n){const o=e.XpG(3);e.R7$(),e.Y8G("identity",e.bMT(3,3,o.identity$))("domain",e.bMT(4,5,o.domain$))("transferSettings",o.transferSettings)}}function Xn(n,a){if(1&n&&e.DNE(0,Yn,5,7,"ng-container",22),2&n){const o=e.XpG(2);e.Y8G("ngIf","Link"===o.uploadFormMode)}}function Zn(n,a){if(1&n&&e.DNE(0,Vn,4,5,"ng-container",11)(1,Xn,1,1,"ng-template",null,4,e.C5r),2&n){const o=e.sdS(2),t=e.XpG();e.Y8G("ngIf","Email"===t.uploadFormMode)("ngIfElse",o)}}function Jn(n,a){1&n&&(e.j41(0,"div",29)(1,"div",30),e.nrm(2,"app-email-validation",null,6),e.k0s()())}function Hn(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"i",32),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.handleCloseVerificationCode())}),e.k0s(),e.bVm()}}function Kn(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"i",33),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.handleOpenCloseDrawer())}),e.k0s(),e.bVm()}}function Qn(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"i",34),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.handleOpenCloseDrawer())}),e.k0s(),e.bVm()}}function Wn(n,a){if(1&n&&(e.j41(0,"div",31),e.DNE(1,Hn,2,0,"ng-container",22),e.nI1(2,"async"),e.DNE(3,Kn,2,0,"ng-container",22),e.nI1(4,"async"),e.nI1(5,"async"),e.nI1(6,"async"),e.DNE(7,Qn,2,0,"ng-container",22),e.nI1(8,"async"),e.nI1(9,"async"),e.nI1(10,"async"),e.k0s()),2&n){const o=e.XpG();e.R7$(),e.Y8G("ngIf",e.bMT(2,3,o.verificationCodeFormDisplayed$)),e.R7$(2),e.Y8G("ngIf",e.bMT(4,5,o.drawerExpanded$)&&!e.bMT(5,7,o.verificationCodeFormDisplayed$)&&!e.bMT(6,9,o.verifyEmailLoading$)),e.R7$(4),e.Y8G("ngIf",!e.bMT(8,11,o.isSubmitBusy$)&&!e.bMT(9,13,o.drawerExpanded$)&&!e.bMT(10,15,o.verificationCodeFormDisplayed$))}}function qn(n,a){1&n&&(e.qex(0),e.EFF(1),e.nI1(2,"translate"),e.bVm()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPLOADER_PASSWORD_ADDED")," "))}function ei(n,a){1&n&&(e.EFF(0),e.nI1(1,"translate")),2&n&&e.SpI(" ",e.bMT(1,1,"UPLOADER_NO_PASSWORD")," ")}function ti(n,a){if(1&n){const o=e.RV6();e.j41(0,"div",35),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.handleOpenCloseDrawer())}),e.j41(1,"div",36),e.EFF(2,"UPLOADER_EXPIRE_ON"),e.k0s(),e.j41(3,"div",37),e.DNE(4,qn,3,3,"ng-container",11),e.nI1(5,"async"),e.DNE(6,ei,2,3,"ng-template",null,7,e.C5r),e.k0s()()}if(2&n){const o=e.sdS(7),t=e.XpG();e.Y8G("ngClass",e.eq3(6,Ln,!t.canConfigSmash)),e.R7$(),e.Y8G("translateParams",e.eq3(8,An,t.translatedAvailabilityDuration)),e.R7$(3),e.Y8G("ngIf",!!e.bMT(5,4,t.transferPassword$))("ngIfElse",o)}}function ni(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"button",38),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.handleOpenCloseDrawer())}),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.bVm()}2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"UPLOADER_CONFIG_SMASH_BUTTON_LABEL_DONE")))}function ii(n,a){1&n&&e.nrm(0,"div",41)}function oi(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPLOADER_EMAIL_VALIDATION_BUTTON_VERIFY"),""))}function ri(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"button",39),e.nI1(2,"async"),e.nI1(3,"async"),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.submitVerificationCode())}),e.DNE(4,ii,1,0,"div",40),e.nI1(5,"async"),e.nI1(6,"async"),e.DNE(7,oi,3,3,"div",22),e.nI1(8,"async"),e.nI1(9,"async"),e.k0s(),e.bVm()}if(2&n){const o=e.XpG();e.R7$(),e.Y8G("disabled",e.bMT(2,3,o.validateEmailVerificationCodeLoading$)||e.bMT(3,5,o.sendEmailVerificationLoading$)),e.R7$(3),e.Y8G("ngIf",e.bMT(5,7,o.validateEmailVerificationCodeLoading$)||e.bMT(6,9,o.sendEmailVerificationLoading$)),e.R7$(3),e.Y8G("ngIf",!e.bMT(8,11,o.validateEmailVerificationCodeLoading$)&&!e.bMT(9,13,o.sendEmailVerificationLoading$))}}function ai(n,a){1&n&&e.nrm(0,"div",41)}function si(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPLOADER_EMAIL_FORM_
1SMASH"),""))}function li(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"button",42),e.nI1(2,"async"),e.bIt("throttledClick",function(i){return e.eBV(o),e.XpG().submitForm(i),e.Njj(!1)}),e.DNE(3,ai,1,0,"div",40),e.nI1(4,"async"),e.DNE(5,si,3,3,"div",22),e.nI1(6,"async"),e.k0s(),e.bVm()}if(2&n){const o=e.XpG();e.R7$(),e.Y8G("disabled",e.bMT(2,3,o.isSubmitBusy$)),e.R7$(2),e.Y8G("ngIf",e.bMT(4,5,o.isSubmitBusy$)),e.R7$(2),e.Y8G("ngIf",!e.bMT(6,7,o.isSubmitBusy$))}}function ci(n,a){1&n&&e.nrm(0,"div",41)}function di(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPLOADER_LINK_FORM_BUTTON_LABEL_OBTAIN")," "))}function mi(n,a){if(1&n){const o=e.RV6();e.qex(0),e.j41(1,"button",43),e.nI1(2,"async"),e.bIt("throttledClick",function(i){return e.eBV(o),e.XpG().submitForm(i),e.Njj(!1)}),e.DNE(3,ci,1,0,"div",44),e.nI1(4,"async"),e.DNE(5,di,3,3,"div",22),e.nI1(6,"async"),e.k0s(),e.bVm()}if(2&n){const o=e.XpG();e.R7$(),e.Y8G("disabled",e.bMT(2,3,o.isSubmitBusy$)),e.R7$(2),e.Y8G("ngIf",e.bMT(4,5,o.isSubmitBusy$)),e.R7$(2),e.Y8G("ngIf",!e.bMT(6,7,o.isSubmitBusy$))}}let pi=(()=>{var n;class a{constructor(t,i,r,s,c,b){var P=this;this.store$=t,this.dialog=i,this.resolveCustomizationService=r,this.resolveExternalPromotionService=s,this.cd=c,this.gtmService=b,this.tabTranslate={Email:"UPLOADER_EMAIL_TAB_LABEL",Link:"UPLOADER_LINK_TAB_LABEL"},this.queueLoaded=!1,this.verifyEmailResponse="",this.subscriptions=[],this.customizationLoading=!0,this.promotionLoading=!0,this.identity$=this.store$.select(C.Jd),this.transfer$=this.store$.select(p.Ax),this.transferCommonParameters$=this.store$.select(p.x6),this.transferPassword$=this.store$.select(p.tM),this.transferAvailabilityDuration$=this.store$.select(p.Ft),this.transferQueue$=this.store$.select(p.FV),this.uploadStatus$=this.store$.select(p.OU),this.selectedLanguage$=this.store$.select(C.Ev),this.drawerExpanded$=this.store$.select(p.Xx),this.transferSize$=this.store$.select(p.xK),this.customization$=this.store$.select(p._O).pipe((0,Y.T)(f=>null!=f&&f.id?f:null)),this.domain$=this.store$.select(C.C4),this.countries$=this.store$.select(C.X6),this.countryCode$=this.store$.select(C.gI),this.modalSizePremiumDisplayed$=this.store$.select(p.T1),this.verifyEmailResponse$=this.store$.select(p.v5),this.verifyEmailLoaded$=this.store$.select(p.Nf),this.verifyEmailLoading$=this.store$.select(p.g8),this.verifyEmailError$=this.store$.select(p.ID),this.validateEmailVerificationCodeResponse$=this.store$.select(p.ge),this.validateEmailVerificationCodeLoaded$=this.store$.select(p.Wk),this.validateEmailVerificationCodeLoading$=this.store$.select(p.$M),this.validateEmailVerificationCodeError$=this.store$.select(p.lE),this.sendEmailVerificationLoaded$=this.store$.select(p.YD),this.sendEmailVerificationLoading$=this.store$.select(p.AL),this.sendEmailVerificationError$=this.store$.select(p.MS),this.verificationCodeFormDisplayed$=this.store$.select(p.eP),this.updateAndResumeUploadLoading$=this.store$.select(p.De),this.externalPromotionSelected$=this.store$.select(p.iA),this.isSubmitBusy$=(0,V.z)([this.uploadStatus$,this.updateAndResumeUploadLoading$,this.verifyEmailLoading$]).pipe((0,Y.T)(([f,R,M])=>(0,$.xB)(f)||R||M)),this.isUploadAnimating$=(0,V.z)([this.uploadStatus$,this.updateAndResumeUploadLoading$,this.modalSizePremiumDisplayed$]).pipe((0,Y.T)(([f,R,M])=>!M&&((0,$.xB)(f)||R))),this.subscriptions.push(this.store$.select(p.j3).subscribe(f=>{this.configFormStatus=f}),this.store$.select(p.O5).subscribe(f=>{this.configPasswordStatus=f}),this.drawerExpanded$.subscribe(f=>{this.drawerExpanded=f}),this.domain$.subscribe(f=>{this.currentDomain=f}),(0,V.z)([this.transferAvailabilityDuration$,this.selectedLanguage$]).subscribe(([f,R])=>{U().locale(R),this.translatedAvailabilityDuration="en"===R?U()().add(f,"seconds").format("ll"):U()().add(f,"seconds").format("L")}),this.modalSizePremiumDisplayed$.pipe((0,We.F)()).subscribe(f=>{!0===f&&(this.store$.dispatch(X.Vg.loadCountries()),this.openModalSizePremium())}),this.verifyEmailResponse$.subscribe(f=>
1{"Dirty"===f&&this.store$.dispatch(g.Zd.DisplayVerificationCodeForm())}),this.validateEmailVerificationCodeResponse$.subscribe(function(){var f=(0,u.A)(function*(R){"Clean"===R&&(yield P.upload(),P.store$.dispatch(g.Zd.HideVerificationCodeForm()))});return function(R){return f.apply(this,arguments)}}()),this.externalPromotionSelected$.subscribe(f=>this.promotionSelected=f))}ngOnInit(){var t;this.subscriptions.push(this.resolveCustomizationService.resolve().subscribe(()=>{this.customizationLoading=!1,this.cd.markForCheck()}),this.resolveExternalPromotionService.resolve().subscribe(({selectedPromotion:i,promotions:r})=>{this.promotionLoading=!1,this.promotionSelected=i,this.promotions=r,this.cd.markForCheck()})),!this.uploadFormMode&&(null===(t=this.transferSettings)||void 0===t||null===(t=t.delivery)||void 0===t||null===(t=t.options)||void 0===t?void 0:t.length)>0&&this.store$.dispatch(g.Zd.setUploadFormMode({uploadFormMode:this.transferSettings.delivery.options[0]}))}onSelectSmashMode(t){var i=this;return(0,u.A)(function*(){(yield(0,D.s)(i.isSubmitBusy$.pipe((0,x.$)())))||i.store$.dispatch(g.Zd.setUploadFormMode({uploadFormMode:t}))})()}get emailInput(){return"Email"===this.uploadFormMode?this.emailForm.emailForm.value.sender.email:this.linkForm.linkForm.value.sender.email}upload(){var t=this;return(0,u.A)(function*(){if(t.isSettingsDrawerBlockingSubmit())return;t.promotionSelected&&t.store$.dispatch(g.Zd.SetTransferPromotion({promotion:t.promotionSelected}));const i=yield(0,D.s)(t.uploadStatus$.pipe((0,x.$)()));(0,$.Su)(i)?t.store$.dispatch(g.Fb.UpdateAndResumeUpload()):t.store$.dispatch(g.Fb.Upload());const r=yield(0,D.s)(t.transferSize$.pipe((0,x.$)()));t.gtmService.pushTag({event:I.h.eventGTM.START_TRANSFER,transfer_size:r})})()}verifyEmail(){var t=this;return(0,u.A)(function*(){t.store$.dispatch(g.Zd.VerifyEmail({username:t.emailInput}));const[i,r]=yield(0,D.s)(t.store$.select(p.v5).pipe((0,G.E)(t.verifyEmailError$,t.verifyEmailLoading$,t.verifyEmailLoaded$),(0,B.p)(([s,c,b,P])=>P&&!b||!!c),(0,x.$)()));return!r&&("Clean"===i?(t.store$.dispatch(g.Zd.HideVerificationCodeForm()),!0):(t.store$.dispatch(g.Zd.DisplayVerificationCodeForm()),!1))})()}canByPassEmailVerification(){var t=this;return(0,u.A)(function*(){const i=yield(0,D.s)(t.identity$.pipe((0,x.$)(s=>!!s))),r=(0,at.FO)(t.emailInput);return(null==i?void 0:i.username)&&(null==i?void 0:i.username)===r})()}isLoggedIn(){var t=this;return(0,u.A)(function*(){const i=yield(0,D.s)(t.identity$.pipe((0,x.$)(r=>!!r)));return null==i?void 0:i.username})()}isVerificationCodeValid(){var t=this;return(0,u.A)(function*(){const[i,r]=yield(0,D.s)(t.validateEmailVerificationCodeResponse$.pipe((0,G.E)(t.validateEmailVerificationCodeError$,t.validateEmailVerificationCodeLoading$,t.validateEmailVerificationCodeLoaded$),(0,B.p)(([s,c,b,P])=>P&&!b||!!c),(0,x.$)()));return"Clean"===i&&!r})()}canSubmitForm(){var t=this;return(0,u.A)(function*(){const i=yield(0,D.s)(t.uploadStatus$.pipe((0,x.$)())),r=yield(0,D.s)(t.verifyEmailLoading$.pipe((0,x.$)()));return(!i||(0,$.r8)(i))&&!r})()}isSettingsDrawerBlockingSubmit(){return!(!this.canConfigSmash||"INVALID"!==this.configPasswordStatus||(this.drawerExpanded||this.store$.dispatch(g.Zd.toggleConfigDrawerExpanded()),0))}handleFormSubmitted(t){var i=this;return(0,u.A)(function*(){t.event.preventDefault(),t.event.stopPropagation(),!i.isSettingsDrawerBlockingSubmit()&&(yield i.canSubmitForm())&&((yield i.canByPassEmailVerification())||
1(yield i.verifyEmail()))&&(yield i.upload())})()}openModalSizePremium(){var t=this;return(0,u.A)(function*(){const i=yield t.countries$.pipe((0,x.$)()).toPromise(),r=yield t.countryCode$.pipe((0,x.$)(b=>!!b)).toPromise(),s=yield t.transferQueue$.pipe((0,x.$)(b=>!!b)).toPromise(),c=yield t.transferSize$.pipe((0,x.$)(b=>!!b)).toPromise();t.dialog.open(rt,{closeButton:!1,enableClose:!1,size:"sm",data:{countries:i,countryCode:r,queue:s,transferSize:c}})})()}submitVerificationCode(){this.emailValidationComponent.submit()}submitForm(t){var i=this;return(0,u.A)(function*(){if(i.uploadFormMode)switch(i.uploadFormMode){case"Email":default:i.emailForm.onSubmit(t);break;case"Link":i.linkForm.onSubmit(t)}})()}handleOpenCloseDrawer(){this.canConfigSmash&&(this.drawerExpanded&&"INVALID"===this.configFormStatus||this.store$.dispatch(g.Zd.toggleConfigDrawerExpanded()))}handleCloseVerificationCode(){this.store$.dispatch(g.Zd.HideVerificationCodeForm()),this.store$.dispatch(g.Zd.ResetVerifyEmail()),this.emailValidationComponent.verificationCodeComponent.reset()}ngOnDestroy(){this.subscriptions.map(t=>t.unsubscribe()),this.subscriptions.length=0}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(E.il),e.rXU(T.o3),e.rXU(st.V),e.rXU(lt.M),e.rXU(e.gRc),e.rXU(Z.A))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-upload-parameters-box"]],viewQuery:function(t,i){if(1&t&&(e.GBs(kn,5),e.GBs(Fn,5),e.GBs(Dn,5)),2&t){let r;e.mGM(r=e.lsd())&&(i.emailForm=r.first),e.mGM(r=e.lsd())&&(i.linkForm=r.first),e.mGM(r=e.lsd())&&(i.emailValidationComponent=r.first)}},inputs:{dropbox:"dropbox",isDropboxId:"isDropboxId",uploadFormMode:"uploadFormMode",canConfigSmash:"canConfigSmash",transferSettings:"transferSettings"},decls:39,vars:61,consts:[["uploaderTabs",""],["uploaderForm",""],["noTabDisplayed",""],["emailForm",""],["second",""],["linkForm",""],["emailValidation",""],["noPassword",""],[1,"upload-parameters-box",3,"ngClass"],[1,"upload-parameters-box-header"],[1,"tabs"],[4,"ngIf","ngIfElse"],[1,"upload-parameters-box-content"],[1,"config-drawer",3,"ngClass"],[1,"config-drawer-container",3,"ngClass"],[3,"uploadFormMode","drawerExpanded","transferSettings","transferCommonParameters","promotions","promotionLoading","promotionSelected","customizationSelected","customizationLoading"],["class","email-validation",4,"ngIf"],[1,"upload-parameters-box-footer"],[1,"upload-parameters-box-footer-left"],["class","upload-parameters-box-footer-icon-container",4,"ngIf"],["class","upload-parameters-box-footer-main-informations-container",3,"ngClass","click",4,"ngIf"],[1,"upload-parameters-box-footer-right"],[4,"ngIf"],[1,"tab"],["translate","",1,"tab-title"],["class","tab",3,"ngClass","disabled","click",4,"ngFor","ngForOf"],[1,"tab",3,"click","ngClass","disabled"],[1,"email-form",3,"emailFormSubmitted","dropbox","isDropboxId","identity"],[3,"linkFormSubmitted","identity","domain","transferSettings"],[1,"email-validation"],[1,"email-validation-container"],[1,"upload-parameters-box-footer-icon-container"],[1,"icon-smash_arrow_navigation","validation-code-button-back",3,"click"],[1,"icon-smash_close",3,"click"],[1,"icon-smash_settings",3,"click"],[1,"upload-parameters-box-footer-main-informations-container",3,"click","ngClass"],["translate","",1,"info-expiration-date",3,"translateParams"],[1,"info-password"],["type","button",1,"btn","red",3,"click"],["type","button",1,"btn","red",3,"click","disabled"],["class","loading-spinner-white spinner-button",4,"ngIf"],[1,"loading-spinner-white","spinner-button"],["
1id","button-send-transfer-email","type","submit","appPreventDoubleClick","",1,"btn","red","animated",3,"throttledClick","disabled"],["id","button-send-transfer-link","type","submit","appPreventDoubleClick","",1,"btn","red","animated",3,"throttledClick","disabled"],["class"," loading-spinner-white spinner-button",4,"ngIf"]],template:function(t,i){if(1&t&&(e.j41(0,"div",8),e.nI1(1,"async"),e.j41(2,"div",9)(3,"div",10),e.DNE(4,Un,4,0,"ng-container",11)(5,Bn,3,2,"ng-template",null,0,e.C5r),e.k0s()(),e.j41(7,"div",12),e.DNE(8,Gn,4,5,"ng-container",11)(9,Zn,3,2,"ng-template",null,1,e.C5r),e.j41(11,"div",13),e.nI1(12,"async"),e.j41(13,"div",14),e.nI1(14,"async"),e.nrm(15,"app-config-send-parameters",15),e.nI1(16,"async"),e.nI1(17,"async"),e.nI1(18,"async"),e.k0s()(),e.DNE(19,Jn,4,0,"div",16),e.nI1(20,"async"),e.k0s(),e.j41(21,"div",17)(22,"div",18),e.DNE(23,Wn,11,17,"div",19)(24,ti,8,10,"div",20),e.nI1(25,"async"),e.nI1(26,"async"),e.nI1(27,"async"),e.k0s(),e.j41(28,"div",21),e.DNE(29,ni,4,3,"ng-container",22),e.nI1(30,"async"),e.DNE(31,ri,10,15,"ng-container",22),e.nI1(32,"async"),e.DNE(33,li,7,9,"ng-container",22),e.nI1(34,"async"),e.nI1(35,"async"),e.DNE(36,mi,7,9,"ng-container",22),e.nI1(37,"async"),e.nI1(38,"async"),e.k0s()()()),2&t){const r=e.sdS(6),s=e.sdS(10);e.Y8G("ngClass",e.eq3(55,wn,e.bMT(1,23,i.isUploadAnimating$))),e.R7$(4),e.Y8G("ngIf",i.dropbox)("ngIfElse",r),e.R7$(4),e.Y8G("ngIf",i.isDropboxId)("ngIfElse",s),e.R7$(3),e.Y8G("ngClass",e.eq3(57,pe,!0===e.bMT(12,25,i.drawerExpanded$))),e.R7$(2),e.Y8G("ngClass",e.eq3(59,pe,!0===e.bMT(14,27,i.drawerExpanded$))),e.R7$(2),e.Y8G("uploadFormMode",i.uploadFormMode)("drawerExpanded",e.bMT(16,29,i.drawerExpanded$))("transferSettings",i.transferSettings)("transferCommonParameters",e.bMT(17,31,i.transferCommonParameters$))("promotions",i.promotions)("promotionLoading",i.promotionLoading)("promotionSelected",i.promotionSelected)("customizationSelected",e.bMT(18,33,i.customization$))("customizationLoading",i.customizationLoading),e.R7$(4),e.Y8G("ngIf",e.bMT(20,35,i.verificationCodeFormDisplayed$)),e.R7$(4),e.Y8G("ngIf",i.canConfigSmash),e.R7$(),e.Y8G("ngIf",!e.bMT(25,37,i.isSubmitBusy$)&&!e.bMT(26,39,i.drawerExpanded$)&&!e.bMT(27,41,i.verificationCodeFormDisplayed$)),e.R7$(5),e.Y8G("ngIf",e.bMT(30,43,i.drawerExpanded$)),e.R7$(2),e.Y8G("ngIf",e.bMT(32,45,i.verificationCodeFormDisplayed$)),e.R7$(2),e.Y8G("ngIf",!e.bMT(34,47,i.drawerExpanded$)&&!e.bMT(35,49,i.verificationCodeFormDisplayed$)&&"Email"===i.uploadFormMode),e.R7$(3),e.Y8G("ngIf",!e.bMT(37,51,i.drawerExpanded$)&&!e.bMT(38,53,i.verificationCodeFormDisplayed$)&&"Link"===i.uploadFormMode)}},dependencies:[l.YU,l.Sq,l.bT,O.Mm,ct.l,ft,Et,xn,Sn,l.Jj,O.D9],styles:['.button-link-blue[_ngcontent-%COMP%]{color:#4285f4;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-blue[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.button-link-red[_ngcontent-%COMP%]{color:#ea5159;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-red[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.btn-new[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;margin:0 .5rem}.btn-new[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}.btn-v3[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;padding:.9rem 1.6rem;border-radius:2rem}.btn-v3[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}@media only screen and (min-device-width: 320px) and (max-device-width: 480px){.btn-v3[_ngcontent-%COMP%]{border-radius:3rem}}.btn[_ngcontent-%COMP%]{border-radius:.3rem;cursor:pointer;height:4rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:0 1.5rem;width:100%;justify-content:center;align-items:center;display:flex}.btn[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.btn-rounded[_ngcontent-%COMP%]{border-radius:20px;cursor:pointer;height:3.8rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:2rem 1.9rem;justify-content:center;align-items:center;display:flex}.btn-rounded[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.primary[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid none;color:#fafafa}.green[_ngcontent-%COMP%]{background-color:#10a375;border:1px solid #10A375;color:#fff}.green[_ngcontent-%COMP%]:hover:not([disabled]){color:#e4fff7}.red[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid #ea5159;color:#fff}.red[_ngcontent-%COMP%]:hover:not([disabled]){color:#f7ccce}.red-light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;color:#7f7f7f}.red-light[_ngcontent-%COMP%]:hover{color:#ea5159;border:solid 1px #ea5159}.white-outline[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #fff;color:#fff}.white-outline[_ngcontent-%COMP%]:hover{color:#7f7f7f;border:solid 1px #7F7F7F}.dark[_ngcontent-%COMP%]{background-color:#333;border:1px solid #333;color:#fff}.dark[_ngcontent-%COMP%]:hover:not([disabled]){color:#ccc}.light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #bfbfbf;color:#bfbfbf}.light[_ngcontent-%COMP%]:hover{border-color:#0009;color:#0009}.white[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #D6DBE0;color:#333}.dark-filaire[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #333;color:#333}.auto[_ngcontent-%COMP%]{width:auto}.button-mobile[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:5rem;border-radius:1.3rem;width:100%;font-size:1.7rem;margin-bottom:1.2rem;font-weight:600}.button-mobile.red[_ngcontent-%COMP%]{background-color:#ea5159;color:#fafafa;font-weight:900}.button-mobile.transparent[_ngcontent-%COMP%]{background-color:transparent;color:#333;font-weight:900;border:none;height:5rem}.upload-parameters-box[_ngcontent-%COMP%]{border-radius:.5rem;background:#fff;overflow:hidden}.upload-parameters-box-header[_ngcontent-%COMP%]{height:4.8rem;font-size:16px;font-weight:700}.upload-parameters-box-header[_ngcontent-%COMP%]   .tabs[_ngcontent-%COMP%]{display:flex;height:4.8rem;flex-grow:1}.mobile-card[_ngcontent-%COMP%]{align-items:center;justify-content:center;border-radius:1.3rem;background:#fff;width:100%;height:-moz-fit-content;height:fit-content;margin-bottom:2rem;overflow:hidden;position:relative;transition:.25s ease-in-out;left:0rem;padding:2rem;min-height:10rem}.mobile-card[_ngcontent-%COMP%]   .mobile-card-no-content-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.mobile-card[_ngcontent-%COMP%]   .mobile-card-no-content-container-message[_ngcontent-%COMP%]{color:#888;font-weight:400;font-size:1.5rem;text-align:center}.upload-parameters-box-footer-left[_ngcontent-%COMP%], .upload-parameters-box-footer[_ngcontent-%COMP%]{display:flex;flex-direction:row}.upload-parameters-box-footer-main-informations-container[_ngcontent-%COMP%], .mobile-card[_ngcontent-%COMP%]{display:flex;flex-direction:column}.full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}@keyframes _ngcontent-%COMP%_spinner{to{transform:rotate(360deg)}}.loading-spinner-grey[_ngcontent-%COMP%]{content:"";box-sizing:border-box;width:3rem;height:3rem;border-radius:50%;border:.2rem solid #333;border-top-color:#ccc;animation:_ngcontent-%COMP%_spinner .6s linear infinite}.button-loading-spinner[_ngcontent-%COMP%]{content:"";box-sizing:border-box;width:2rem;height:2rem;border-radius:50%;border:.2rem solid #fff;border-top-color:#ccc;animation:_ngcontent-%COMP%_spinner .6s linear infinite}.loading-spinner-white[_ngcontent-%COMP%]{content:"";box-sizing:border-box;width:3rem;height:3rem;border-radius:50%;border:.2rem solid #fff;border-top-color:#ccc;animation:_ngcontent-%COMP%_spinner .6s linear infinite}.loading-spinner-container[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center}.grecaptcha-badge[_ngcontent-%COMP%]{visibility:hidden}.upload-parameters-box[_ngcontent-%COMP%]{width:38rem;height:100%;overflow:hidden;position:relative;transition:.25s ease-in-out;left:0rem;top:0;z-index:11}@media (max-width: 959px){.upload-parameters-box[_ngcontent-%COMP%]{width:unset;height:44rem}}.upload-parameters-box.animate[_ngcontent-%COMP%]{left:-13.5rem}@media (max-width: 959px){.upload-parameters-box.animate[_ngcontent-%COMP%]{left:0rem;top:10rem}}.upload-parameters-box-header[_ngcontent-%COMP%]   .tab[_ngcontent-%COMP%]{display:flex;justify-content:center;background:#fff;cursor:pointer;line-height:5rem;color:#7f7f7f;border-bottom:.1rem solid #ccc;flex-basis:100%;font-weight:400}.upload-parameters-box-header[_ngcontent-%COMP%]   .tab-selected[_ngcontent-%COMP%]{border-bottom:.1rem solid #333;color:#333;font-weight:700}.upload-parameters-box-header[_ngcontent-%COMP%]   .tab-title[_ngcontent-%COMP%]{color:#333;font-weight:700;text-align:left;width:100%;padding-left:2.4rem}.upload-parameters-box-footer[_ngcontent-%COMP%]{justify-content:space-between;align-items:center;border-top:solid 1px #ccc;width:100%;padding:14px 20px;background:#fff;position:absolute;bottom:0}.upload-parameters-box-footer-left[_ngcontent-%COMP%]{position:relative}.upload-parameters-box-footer-icon-container[_ngcontent-%COMP%]{display:flex}.upload-parameters-box-footer-icon-container[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:2.4rem;align-items:center;display:flex;cursor:pointer;color:#333}.upload-parameters-box-footer-icon-container[_ngcontent-%COMP%]   i.icon-smash_close[_ngcontent-%COMP%]{font-size:1.5rem;padding-left:.5rem}.upload-parameters-box-footer-icon-container[_ngcontent-%COMP%]   i.icon-smash_settings[_ngcontent-%COMP%]{font-size:2.4rem}.upload-parameters-box-footer-icon-container[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:hover{color:#ccc}.upload-parameters-box-footer[_ngcontent-%COMP%]   .animated[_ngcontent-%COMP%]{transition:.5s}.upload-parameters-box[_ngcontent-%COMP%]   .config-drawer[_ngcontent-%COMP%]{position:absolute;top:50.2rem;left:0;height:100%;width:100%;background:#fff;transition:top .2s ease-in}.upload-parameters-box[_ngcontent-%COMP%]   .config-drawer.visible[_ngcontent-%COMP%]{top:0rem}.upload-parameters-box[_ngcontent-%COMP%]   .email-validation[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;background:#fff}.config-drawer-container[_ngcontent-%COMP%]{display:none}.config-drawer-container.visible[_ngcontent-%COMP%]{display:block}.email-form[_ngcontent-%COMP%]{z-index:0;position:relative}.spinner-button[_ngcontent-%COMP%]{height:2rem;width:2rem}.upload-parameters-box-footer-main-informations-container[_ngcontent-%COMP%]{height:100%;padding-left:1.5rem;justify-content:center;color:#333}.upload-parameters-box-footer-main-informations-container[_ngcontent-%COMP%]:not(.not-configurable)   .info-expiration-date[_ngcontent-%COMP%]:hover, .upload-parameters-box-footer-main-informations-container[_ngcontent-%COMP%]:not(.not-configurable)   .info-password[_ngcontent-%COMP%]:hover{cursor:pointer}.info-expiration-date[_ngcontent-%COMP%]{font-weight:400;font-size:1.2rem}.info-password[_ngcontent-%COMP%]{font-size:1.1rem;font-style:italic}.validation-code-button-back[_ngcontent-%COMP%]{font-size:3rem;cursor:pointer;transform:rotate(90deg)}']}),a})();function gi(n,a){1&n&&(e.j41(0,"div",5)(1,"div",6)(2,"span",7),e.EFF(3,"UPLOADER_ERROR_SAME_NAME"),e.k0s()()())}function _i(n,a){1&n&&(e.j41(0,"div",5)(1,"div",6)(2,"span",7),e.EFF(3,"UPLOADER_ERROR_FORBIDDEN_FILE_EXTENSION"),e.k0s()()())}function ui(n,a){1&n&&(e.j41(0,"div",5)(1,"div",6)(2,"span",7),e.EFF(3,"UPLOADER_ERROR_RELATIVEPATH_TOO_LONG"),e.k0s()()())}function fi(n,a){1&n&&(e.j41(0,"div",5)(1,"div",6)(2,"span",7),e.EFF(3,"UPLOADER_GENERIC_ERROR"),e.k0s()()())}function hi(n,a){if(1&n&&(e.j41(0,"div",8)(1,"div",9),e.nrm(2,"app-upload-files-box",10),e.nI1(3,"async"),e.nI1(4,"async"),e.nrm(5,"app-upload-parameters-box",11),e.nI1(6,"async"),e.nI1(7,"async"),e.nI1(8,"async"),e.nI1(9,"async"),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.Y8G("files",e.bMT(3,7,o.rawFiles$))("totalToUpload",e.bMT(4,9,o.totalSizeToUpload$)),e.R7$(3),e.Y8G("dropbox",e.bMT(6,11,o.dropbox$))("isDropboxId",o.isDropboxId)("uploadFormMode",e.bMT(7,13,o.uploadFormMode$))("canConfigSmash",e.bMT(8,15,o.canConfigSmash$))("transferSettings",e.bMT(9,17,o.transferSettings$))}}const bi=[{path:"",component:(()=>{var n;class a{constructor(t,i,r,s,c,b,P,f,R){this.store$=t,this.router=i,this.rawFileStoreService=r,this.dialog=s,this.route=c,this.seoService=b,this.scrollPrepare=P,this.localStorageService=f,this.platformId=R,this.subscriptions=[],this.lastScrollPosition=0,this.hadEntryReadError=!1,(0,l.UE)(this.platformId)&&(this.store$.dis
1patch(g.Zd.resetDrawer()),this.dropbox$=this.store$.select(p.h4),this.rawFiles$=this.store$.select(p.Rb),this.identity$=this.store$.select(C.Jd),this.domain$=this.store$.select(C.C4),this.uploadFormMode$=this.store$.select(p.RJ),this.totalSizeToUpload$=this.store$.select(p.xK),this.uploadError$=this.store$.select(p.KG),this.updateAndResumeUploadError$=this.store$.select(p.BC),this.rawFilesError$=this.store$.select(p.SI),this.uploadStatus$=this.store$.select(p.OU),this.canConfigSmash$=this.store$.select(this.isDropboxId?p.ws:C.xK),this.transferSettings$=this.store$.select(C.ld(this.isDropboxId)),this.subscriptions.push(this.rawFiles$.subscribe(M=>{M.length||this.router.navigate([(0,j.Gw)()],{relativeTo:this.route})}),this.uploadStatus$.subscribe(M=>{(M===ne.UploaderStatus.Started||M===ne.UploaderStatus.NetworkPaused)&&!this.router.url.includes("/send")&&this.router.navigate(["../send"],{relativeTo:this.route})}),this.uploadError$.pipe((0,B.p)(M=>null!==M)).subscribe(M=>{$.m5.has(null==M?void 0:M.name)||this.handleUploadError(M),!$.g8.has(null==M?void 0:M.name)&&!$.m5.has(null==M?void 0:M.name)&&!this.router.url.includes("/send")&&this.router.navigate(["../send"],{relativeTo:this.route})}),this.updateAndResumeUploadError$.pipe((0,B.p)(M=>null!==M)).subscribe(M=>{this.handleUploadError(M)})))}get isDropboxId(){return!!this.route.snapshot.paramMap.get("dropboxId")}ngOnInit(){(0,l.UE)(this.platformId)&&(this.loadDeliveryParameters(),this.loadDeliveryParametersFromQueryString(),this.seoService.setLandingTitle())}ngOnDestroy(){this.subscriptions.map(t=>t.unsubscribe()),this.scrollPrepare.scrollDirection.next("down")}fileOver(){this.store$.dispatch(g.GX.UpdateFileOver({fileOver:!0}))}fileLeave(){this.store$.dispatch(g.GX.UpdateFileOver({fileOver:!1}))}onEntryReadError(){this.hadEntryReadError=!0}dropped(t){var i=this;return(0,u.A)(function*(){const r=i.hadEntryReadError;i.hadEntryReadError=!1;const s=yield i.identity$.pipe((0,x.$)(c=>!!c)).toPromise();yield i.rawFileStoreService.setFiles(t,s),r&&i.rawFileStoreService.reportRelativePathTooLongError()})()}openModalForbiddenEmail(t){var i=this;return(0,u.A)(function*({requestId:r}){const s=yield i.domain$.pipe((0,x.$)(c=>!!c)).toPromise();i.dialog.open(_e,{closeButton:!1,enableClose:!0,size:"xs",data:{domain:s,requestId:r}})}).apply(this,arguments)}openModalForbiddenSubscription({requestId:t}){this.dialog.open(ue,{closeButton:!1,enableClose:!0,size:"sm",data:{requestId:t}})}openModalPasswordRequired({requestId:t}){this.dialog.open(he,{closeButton:!1,enableClose:!0,size:"xs",data:{requestId:t}})}onFileOver(t){this.store$.dispatch(g.GX.UpdateFileOver(t?{fileOver:!0}:{fileOver:!1}))}loadDeliveryParameters(){this.identity$.pipe((0,x.$)(),(0,G.E)(this.domain$)).subscribe(([t,i])=>{const r=this.getLastDeliveryParameters();if(this.isDropboxId)this.store$.dispatch(g.Zd.setUploadFormMode({uploadFormMode:"Email"}));else if(null!=r&&r.type&&"string"==typeof(null==r?void 0:r.type)){var s,c;const b=null==i||null===(s=i.options)||void 0===s||null===(s=s.transfer)||void 0===s||null===(s=s.delivery)||void 0===s?void 0:s.options,P=null==i||null===(c=i.options)||void 0===c||null===(c=c.transfer)||void 0===c||null===(c=c.delivery)||void 0===c?void 0:c.options[0],f=null!=b&&b.includes(null==r?void 0:r.type)?null==r?void 0:r.type:P;this.store$.dispatch(g.Zd.setUploadFormMode({uploadFormMode:f}))}null!=t&&t.username?this.store$.dispatch(g.Zd.SetTransferSender({sender:{email:null==t?void 0:t.username}})):null!=r&&r.sender&&this.store$.dispatch(g.Zd.SetTransferSender({sender:null==r?void 0:r.sender}))})}getLastDeliveryParameters(){const t=this.localStorageService.getItem("lastTransferParameters");if(t)return JSON.parse(decodeURIComponent(escape(atob(t))))}loadDeliveryParametersFromQueryString(){this.identity$.pipe((0,x.$)(),(0,G.E)(this.domain$)).subscribe(([t,i])=>{const r=this.localStorageService.getItem("prefilledTransferParameters");if(r){const c=JSON.parse(r);if(c){var s;const{sender:b,name:P,receivers:f,uploadFormMode:R,description:M,title:z}=c,vi=(null==i||null===(s=i.options)||void 0===s||null===(s=s.transfer)||void 0===s||null===(s=s.delivery)||void 0===s?void 0:s.options)||[];
1!this.isDropboxId&&R&&vi.includes(R)&&this.store$.dispatch(g.Zd.setUploadFormMode({uploadFormMode:R})),b&&!(null!=t&&t.username)&&this.store$.dispatch(g.Zd.SetTransferSender({sender:{email:b,name:P}})),M&&this.store$.dispatch(g.Zd.SetEmailDescription({description:M})),z&&(this.store$.dispatch(g.Zd.SetEmailTitle({title:z})),this.store$.dispatch(g.Zd.SetLinkTitle({title:z}))),f&&this.store$.dispatch(g.Zd.SetEmailReceivers({receivers:f}))}}})}openModalUploadFatalError({errorName:t,errorMessage:i,errorId:r,errorDetails:s}){this.dialog.open(ge.U,{closeButton:!1,enableClose:!1,size:"xs",data:{errorName:t,errorMessage:i,errorId:r,errorDetails:s}})}handleUploadError(t){"EmailNotAllowedError"===(null==t?void 0:t.name)?this.openModalForbiddenEmail({requestId:null==t?void 0:t.requestId}):"InvalidSubscriptionError"===(null==t?void 0:t.name)?this.openModalForbiddenSubscription({requestId:null==t?void 0:t.requestId}):"PasswordRequiredError"===(null==t?void 0:t.name)?this.openModalPasswordRequired({requestId:null==t?void 0:t.requestId}):"TransferAlreadyQueuedError"===(null==t?void 0:t.name)?this.store$.dispatch(g.Zd.DisplayModalSizePremium()):("DropboxDisabledError"===(null==t?void 0:t.name)||t)&&this.openModalUploadFatalError({errorName:null==t?void 0:t.name,errorMessage:null==t?void 0:t.message,errorId:null==t?void 0:t.errorId,errorDetails:null==t?void 0:t.details})}onSmallDeviceScroll(t){this.scrollPrepare.scrollDirection.next(t.target.scrollTop?"up":"down")}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(E.il),e.rXU(S.Ix),e.rXU(ie.h),e.rXU(T.o3),e.rXU(S.nX),e.rXU(be.F),e.rXU(Ce.a),e.rXU(ve.s),e.rXU(e.Agw))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-prepare"]],decls:10,vars:9,consts:[[1,"prepare-file-drop-container",3,"scroll"],[3,"ngSwitch"],["class","alert-message-container",4,"ngSwitchCase"],["class","alert-message-container",4,"ngIf"],[3,"fileDrop","entryReadError","fileOver","fileLeave"],[1,"alert-message-container"],[1,"alert-message"],["translate",""],[1,"prepare-container"],[1,"prepare-subcontainer"],[3,"files","totalToUpload"],[3,"dropbox","isDropboxId","uploadFormMode","canConfigSmash","transferSettings"]],template:function(t,i){if(1&t&&(e.j41(0,"div",0),e.bIt("scroll",function(s){return i.onSmallDeviceScroll(s)}),e.qex(1,1),e.nI1(2,"async"),e.DNE(3,gi,4,0,"div",2)(4,_i,4,0,"div",2)(5,ui,4,0,"div",2)(6,fi,4,0,"div",3),e.nI1(7,"async"),e.bVm(),e.j41(8,"app-smash-file-drop",4),e.bIt("fileDrop",function(s){return i.dropped(s)})("entryReadError",function(){return i.onEntryReadError()})("fileOver",function(){return i.fileOver()})("fileLeave",function(){return i.fileLeave()}),e.DNE(9,hi,10,19,"ng-template"),e.k0s()()),2&t){let r,s;e.R7$(),e.Y8G("ngSwitch",null==(r=e.bMT(2,5,i.rawFilesError$))?null:r.type),e.R7$(2),e.Y8G("ngSwitchCase","DUPLICATE_FILES"),e.R7$(),e.Y8G("ngSwitchCase","FORBIDDEN_FILE_EXTENSION"),e.R7$(),e.Y8G("ngSwitchCase","RELATIVEPATH_TOO_LONG"),e.R7$(),e.Y8G("ngIf","InvalidAvailabilityDurationError"===(null==(s=e.bMT(7,7,i.uploadError$))?null:s.name))}},dependencies:[l.bT,l.ux,l.e1,O.Mm,q.f,Ke,pi,l.Jj],styles:[".button-link-blue[_ngcontent-%COMP%]{color:#4285f4;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-blue[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.button-link-red[_ngcontent-%COMP%]{color:#ea5159;text-decoration:underline;transition:all .2s ease;cursor:pointer}.button-link-red[_ngcontent-%COMP%]:hover{filter:brightness(80%)}.btn-new[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;margin:0 .5rem}.btn-new[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}.btn-v3[_ngcontent-%COMP%]{cursor:pointer;border-radius:.3rem;min-height:2.8rem;max-width:100%;min-width:max-content;padding:.5rem 1.6rem;transition:all .1s,box-shadow .24s;padding:.9rem 1.6rem;border-radius:2rem}.btn-v3[_ngcontent-%COMP%]:disabled{cursor:default;opacity:.5}@media only screen and (min-device-width: 320px) and (max-device-width: 480px){.btn-v3[_ngcontent-%COMP%]{border-radius:3rem}}.btn[_ngcontent-%COMP%]{border-radius:.3rem;cursor:pointer;height:4rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:0 1.5rem;width:100%;justify-content:center;align-items:center;display:flex}.btn[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.btn-rounded[_ngcontent-%COMP%]{border-radius:20px;cursor:pointer;height:3.8rem;min-width:100px;font-size:1.4rem;font-weight:400;letter-spacing:.06rem;padding:2rem 1.9rem;justify-content:center;align-items:center;display:flex}.btn-rounded[_ngcontent-%COMP%]:disabled{cursor:initial;opacity:.5}.primary[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid none;color:#fafafa}.green[_ngcontent-%COMP%]{background-color:#10a375;border:1px solid #10A375;color:#fff}.green[_ngcontent-%COMP%]:hover:not([disabled]){color:#e4fff7}.red[_ngcontent-%COMP%]{background-color:#ea5159;border:1px solid #ea5159;color:#fff}.red[_ngcontent-%COMP%]:hover:not([disabled]){color:#f7ccce}.red-light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;color:#7f7f7f}.red-light[_ngcontent-%COMP%]:hover{color:#ea5159;border:solid 1px #ea5159}.white-outline[_ngcontent-%COMP%]{background-color:transparent;border:1px solid #fff;color:#fff}.white-outline[_ngcontent-%COMP%]:hover{color:#7f7f7f;border:solid 1px #7F7F7F}.dark[_ngcontent-%COMP%]{background-color:#333;border:1px solid #333;color:#fff}.dark[_ngcontent-%COMP%]:hover:not([disabled]){color:#ccc}.light[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #bfbfbf;color:#bfbfbf}.light[_ngcontent-%COMP%]:hover{border-color:#0009;color:#0009}.white[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #D6DBE0;color:#333}.dark-filaire[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #333;color:#333}.auto[_ngcontent-%COMP%]{width:auto}.button-mobile[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:5rem;border-radius:1.3rem;width:100%;font-size:1.7rem;margin-bottom:1.2rem;font-weight:600}.button-mobile.red[_ngcontent-%COMP%]{background-color:#ea5159;color:#fafafa;font-weight:900}.button-mobile.transparent[_ngcontent-%COMP%]{background-color:transparent;color:#333;font-weight:900;border:none;height:5rem}.alert-message-container[_ngcontent-%COMP%]   .alert-message[_ngcontent-%COMP%]{border-radius:.5rem;background:#fff;overflow:hidden}.alert-message-container[_ngcontent-%COMP%]   .alert-message[_ngcontent-%COMP%]{border-radius:.5rem}.mobile-card[_ngcontent-%COMP%]{align-items:center;justify-content:center;border-radius:1.3rem;background:#fff;width:100%;height:-moz-fit-content;height:fit-content;margin-bottom:2rem;overflow:hidden;position:relative;transition:.25s ease-in-out;left:0rem;padding:2rem;min-height:10rem}.mobile-card[_ngcontent-%COMP%]   .mobile-card-no-content-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.mobile-card[_ngcontent-%COMP%]   .mobile-card-no-content-container-message[_ngcontent-%COMP%]{color:#888;font-weight:400;font-size:1.5rem;text-align:center}.mobile-card[_ngcontent-%COMP%]{display:flex;flex-direction:column}.full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.prepare-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center;height:100vh;width:100vw;overflow:hidden}@media (max-width: 959px){.prepare-container[_ngcontent-%COMP%]{height:unset;width:unset;padding:7rem 0}}.prepare-file-drop-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;height:100%;width:100%;z-index:2}@media (max-width: 959px){.prepare-file-drop-container[_ngcontent-%COMP%]{height:100%;overflow-y:overlay}}.prepare-subcontainer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:65rem}@media (max-width: 959px){.prepare-subcontainer[_ngcontent-%COMP%]{flex-direction:column-reverse;height:70rem}}@media screen and (min-resolution: 1.25dppx) and (max-resolution: 1.5dppx) and (max-device-width: 1280px){.prepare-subcontainer[_ngcontent-%COMP%]{scale:.7}}@media screen and (min-resolution: 2.25dppx){.prepare-subcontainer[_ngcontent-%COMP%]{scale:.7}}.alert-message-container[_ngcontent-%COMP%]{width:100%;position:absolute;top:7rem;z-index:100}.alert-message-container[_ngcontent-%COMP%]   .alert-message[_ngcontent-%COMP%]{width:600px;margin:auto;padding:15px;border:solid 1px grey}.file-over[_ngcontent-%COMP%]{height:100%;width:100%;background:#333;position:absolute;top:0;left:0;color:#fff;font-size:3rem;font-weight:900;font-family:Nunito;z-index:1000;display:flex;align-items:center;justify-content:center}"],changeDetection:0}),a})()}];let Ci=(()=>{var n;class a{}return(n=a).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[l.MD,A.G,S.iI,_.X1,y.r,k.V,F.c,d.L,h.E,S.iI.forChild(bi)]}),a})()},53177:(W,w,m)=>{m.d(w,{D:()=>F});var l=m(58527),_=m(61142);const S=d=>({preview:d}),A=d=>({animated:d});function y(d,h){1&d&&(l.qex(0),l.j41(1,"div",3)(2,"div",4),l.qSk(),l.j41(3,"svg",5)(4,"style",6),l.EFF(5," .st0 { clip-path: url(#SVGID_2_); fill: #fff; } "),l.k0s(),l.j41(6,"g")(7,"g")(8,"defs"),l.nrm(9,"rect",7),l.k0s(),l.j41(10,"clipPath",8),l.nrm(11,"use",9),l.k0s(),l.nrm(12,"path",10)(13,"path",11)(14,"path",12),l.k0s()()()()(),l.bVm())}function k(d,h){if(1&d&&l.nrm(0,"div",13),2&d){const u=l.XpG();l.ZvI("loader-img ",u.type,""),l.Y8G("ngClass",l.eq3(4,A,"state2"===u.loaderState))}}let F=(()=>{var d;class h{constructor(){this.defaultType="normal",this.type=this.defaultType,this.loaderState="state1"}ngOnInit(){}}return(d=h).\u0275fac=function(e){return new(e||d)},d.\u0275cmp=l.VBU({type:d,selectors:[["app-smash-loading-spinner"]],inputs:{type:"type"},decls:4,vars:5,consts:[["elseTemplate",""],[1,"loader-content",3,"ngClass"],[4,"ngIf","ngIfElse"],[1,"loader-text-logo"],[1,"Logo_pastille_blanc","icon-fullscreen"],["version","1.1","id","Calque_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 981.28 255.89",0,"xml","space","preserve",2,"enable-background","new 0 0 981.28 255.89"],["type","text/css"],["
1id","SVGID_1_","x","10.15","y","6.18","width","965.68","height","238.64"],["id","SVGID_2_"],[0,"xlink","href","#SVGID_1_",2,"overflow","visible"],["d","M959.54,189.81l14.41-67.31c1.42-6.38,1.89-11.1,1.89-15.35c0-21.26-12.28-37.79-36.84-37.79\n\t\t\tc-10.63,0-22.2,3.78-29.52,12.52l13.46-63.06H886.8l-36.13,170.98h35.9l14.64-68.01c2.6-11.81,9.68-20.55,20.78-20.55\n\t\t\tc10.63,0,16.53,6.61,16.53,16.3c0,2.12-0.24,4.72-1.42,9.92l-13.46,62.35H959.54z M750.3,154.38v1.42\n\t\t\tc0,11.1,7.32,37.55,46.52,37.55c30.23,0,46.52-20.07,46.52-39.2c0-14.41-6.85-27.16-26.69-35.19l-14.64-5.9\n\t\t\tc-3.78-1.42-6.38-4.49-6.38-8.5c0-5.9,5.2-10.15,12.04-10.15c12.28,0,14.17,8.74,14.17,14.88l30.7-3.54\n\t\t\tc-0.24-13.46-7.79-36.84-44.63-36.84c-27.16,0-45.82,18.18-45.82,39.44c0,13.93,6.85,25.98,26.69,34.24l11.34,4.72\n\t\t\tc6.85,2.83,8.03,6.61,8.03,10.16c0,5.2-4.02,9.68-12.52,9.68c-9.21,0-15.35-5.67-15.35-15.59c0-0.24,0-0.95,0.24-2.12\n\t\t\tL750.3,154.38z M719.36,72.44L717,84.95c-2.36-4.49-10.86-15.35-33.3-15.35c-33.06,0-59.28,28.58-59.28,69.43\n\t\t\tc0,29.76,17.71,52.66,46.05,52.66c16.06,0,25.03-8.74,29.52-15.82c-0.47,3.07-0.71,6.38-0.71,9.68c0,0.94,0,2.83,0.24,4.25h32.59\n\t\t\tc-0.24-2.12-0.24-3.78-0.24-4.49c0-5.9,0.71-12.99,2.13-19.13l20.07-93.76H719.36z M687.01,102.19c11.81,0,20.07,7.79,20.07,22.44\n\t\t\tc0,24.32-13.7,36.13-26.69,36.13c-11.81,0-20.55-8.26-20.55-23.38C659.85,120.38,669.3,102.19,687.01,102.19 M525.95,189.81\n\t\t\tl14.64-68.25c2.6-11.81,9.21-20.31,20.55-20.31c10.63,0,16.06,7.09,16.06,16.53c0,1.65-0.24,4.72-0.95,7.56l-13.7,64.47h35.66\n\t\t\tl14.88-69.9c0.71-4.01,1.18-7.79,1.18-11.57c0-22.2-14.64-38.97-38.02-38.97c-9.68,0-26.69,1.89-38.73,17\n\t\t\tc-5.67-10.15-16.29-17-31.88-17c-11.1,0-23.85,4.49-30.94,14.17c0.47-2.83,0.47-6.14,0.47-11.1h-34.95\n\t\t\tc0,3.78-0.24,10.15-2.12,19.6l-20.55,97.77h35.9l14.64-68.25c2.6-12.04,9.68-20.31,20.55-20.31c10.86,0,16.29,7.09,16.29,16.53\n\t\t\tc0,1.65-0.24,4.25-0.94,7.32l-13.93,64.71H525.95z M316,154.38v1.42c0,11.1,7.32,37.55,46.52,37.55\n\t\t\tc30.23,0,46.52-20.07,46.52-39.2c0-14.41-6.85-27.16-26.69-35.19l-14.64-5.9c-3.78-1.42-6.38-4.49-6.38-8.5\n\t\t\tc0-5.9,5.2-10.15,12.04-10.15c12.28,0,14.17,8.74,14.17,14.88l30.7-3.54c-0.24-13.46-7.79-36.84-44.64-36.84\n\t\t\tc-27.16,0-45.82,18.18-45.82,39.44c0,13.93,6.85,25.98,26.69,34.24l11.34,4.72c6.85,2.83,8.03,6.61,8.03,10.16\n\t\t\tc0,5.2-4.01,9.68-12.52,9.68c-9.21,0-15.35-5.67-15.35-15.59c0-0.24,0-0.95,0.24-2.12L316,154.38z",1,"st0"],["d","M206.45,206.72c-32.08,32.08-77.63,45-121.83,34.54c-6.68-1.58-10.81-8.27-9.23-14.95\n\t\t\tc1.58-6.68,8.27-10.81,14.95-9.23c35.76,8.46,72.59-1.98,98.54-27.93c24.87-24.87,35.6-60.34,28.71-94.89\n\t\t\tc-0.72-3.62-2.52-6.95-5.2-9.63L212,84.24c-5.18-5.18-12.99-6.93-19.88-4.45L86.15,118.18c-6.46,2.32-13.57-1.03-15.89-7.49\n\t\t\tc-2.32-6.46,1.04-13.58,7.5-15.89l105.97-38.39c15.91-5.71,33.9-1.68,45.85,10.26l0.39,0.39c6.16,6.16,10.31,13.89,12,22.34\n\t\t\tC250.48,132.11,237.2,175.97,206.45,206.72",1,"st0"],["d","M48.19,44.28c32.08-32.08,77.63-45,121.83-34.54c6.68,1.58,10.81,8.27,9.23,14.95\n\t\t\tc-1.58,6.68-8.27,10.81-14.95,9.23c-35.76-8.46-72.59,1.98-98.54,27.93c-24.87,24.86-35.6,60.34-28.71,94.89\n\t\t\tc0.72,3.62,2.52,6.95,5.2,9.63l0.39,0.39c5.18,5.18,12.99,6.93,19.88,4.45l105.96-38.39c6.46-2.32,13.57,1.03,15.89,7.49\n\t\t\tc2.32,6.46-1.04,13.58-7.5,15.89L70.92,194.59c-15.91,5.71-33.9,1.68-45.85-10.26l-0.39-0.39c-6.16-6.16-10.31-13.89-12-22.34\n\t\t\tC4.17,118.89,17.44,75.03,48.19,44.28",1,"st0"],[3,"ngClass"]],template:function(e,C){if(1&e&&(l.j41(0,"div",1),l.DNE(1,y,15,0,"ng-container",2)(2,k,1,6,"ng-template",null,0,l.C5r),l.k0s()),2&e){const j=l.sdS(3);l.Y8G("ngClass",l.eq3(3,S,"preview"===C.type)),l.R7$(),l.Y8G("ngIf","fullscreen"===C.type)("ngIfElse",j)}},dependencies:[_.YU,_.bT],styles:['.loader-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}@keyframes _ngcontent-%COMP%_spinner{to{transform:rotate(360deg)}}.loading-spinner-grey[_ngcontent-%COMP%], .loader-img.loading-spinner[_ngcontent-%COMP%]{content:"";box-sizing:border-box;width:3rem;height:3rem;border-radius:50%;border:.2rem solid #333;border-top-color:#ccc;animation:_ngcontent-%COMP%_spinner .6s linear infinite}.button-loading-spinner[_ngcontent-%COMP%]{content:"";box-sizing:border-box;width:2rem;height:2rem;border-radius:50%;border:.2rem solid #fff;border-top-color:#ccc;animation:_ngcontent-%COMP%_spinner .6s linear infinite}.loading-spinner-white[_ngcontent-%COMP%]{content:"";box-sizing:border-box;width:3rem;height:3rem;border-radius:50%;border:.2rem solid #fff;border-top-color:#ccc;animation:_ngcontent-%COMP%_spinner .6s linear infinite}.loading-spinner-container[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center}.loader-content[_ngcontent-%COMP%]{justify-content:center;align-items:center;height:100%;background:#f7f9fa}.loader-content.preview[_ngcontent-%COMP%]{background:#f7f9fa}.loader-img[_ngcontent-%COMP%]{display:block;height:30px;width:300px;background:url(Logo_pastille_noir.98a327a76a99f9b9.png) no-repeat;background-size:contain;background-position:center;opacity:.2;animation:_ngcontent-%COMP%_opacity 3s linear 1s infinite}.loader-img.preview[_ngcontent-%COMP%]{width:20%;background-position:center}.loader-img.animated[_ngcontent-%COMP%]{opacity:.5}.loader-img.loading-spinner[_ngcontent-%COMP%]{background:unset}.loader-text-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-top:-1rem;font-size:1.2rem}.loader-text-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:.4rem}@media (max-width: 450px){.loader-text-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:.2rem}}.loader-text-logo[_ngcontent-%COMP%]   .Logo_pastille_blanc[_ngcontent-%COMP%]{height:50px;width:10rem;display:flex;animation:_ngcontent-%COMP%_opacity 3s linear 1s infinite}.icon-fullscreen[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_color 1.5s linear infinite}@keyframes _ngcontent-%COMP%_color{0%{color:#f5f5f5}50%{color:#e5e5e5}to{color:#f5f5f5}}@keyframes _ngcontent-%COMP%_opacity{0%{opacity:100%}50%{opacity:25%}to{opacity:100%}}']}),h})()},69105:(W,w,m)=>{m.d(w,{r:()=>A});var l=m(61142),_=m(56106),S=m(58527);let A=(()=>{var y;class k{}return(y=k).\u0275fac=function(d){return new(d||y)},y.\u0275mod=S.$C({type:y}),y.\u0275inj=S.G2t({imports:[l.MD,_.YN]}),k})()},64267:(W,w,m)=>{m.d(w,{i:()=>A});var l=m(58527),_=m(56106);const S=["otpInput"];let A=(()=>{var y;class k{constructor(){this.isVerificationLoaded=!1,this.isVerificationPending=!1,this.isVerificationFailed=!1,this.digits=6,this.valueChange=new l.bkB}ngOnInit(){}isDigitKey(d){if("Unidentified"===(null==d?void 0:d.key)||null==d||!d.key){var h;const u=null==d||null===(h=d.target)||void 0===h?void 0:h.value,e=null==u?void 0:u.charAt((null==u?void 0:u.length)-1);if(e)return parseInt(e)>=0&&parseInt(e)<=9}return parseInt(null==d?void 0:d.key)>=0&&parseInt(null==d?void 0:d.key)<=9}isBackspaceKey(d){return"Backspace"===d.key}isNumeric(d){return/[0-9]|\./.test(d)}isCtrlV(d){return(d.ctrlKey||d.metaKey)&&86===d.keyCode}isDeleteKey(d){return"Delete"===d.key}onKeyup(d){var h;this.isDigitKey(d)||this.isCtrlV(d)?(null===(h=this.validationCode)||void 0===h?void 0:h.toString().length)===this.digits&&this.otpInputElement.nativeElement.blur():this.isDeleteKey(d)||this.isBackspaceKey(d)||(d.returnValue=!1,d.preventDefault())}onKeydown(d){var h;this.isDigitKey(d)||this.isCtrlV(d)?(null===(h=this.validationCode)||void 0===h?void 0:h.toString().length)===this.digits&&(d.returnValue=!1,d.preventDefault()):this.isDeleteKey(d)||this.isBackspaceKey(d)||(d.returnValue=!1,d.preventDefault())}onFocus(d){var h;(null===(h=this.validationCode)||void 0===h?void 0:h.toString().length)===this.digits&&this.otpInputElement.nativeElement.blur()}onPaste(d){var h;if(null!=d&&null!==(h=d.clipboardData)&&void 0!==h&&h.getData("text/plain")&&d.clipboardData.getData("text/plain").split("").slice(0,this.digits).find(C=>!this.isNumeric(C)))return d.returnValue=!1,void d.preventDefault()}onInput(d){var h;const u=(null==d?void 0:d.target).value;(null==u?void 0:u.length)>this.digits&&(this.validationCode=u.slice(0,this.digits)),(null===(h=this.validationCode)||void 0===h?void 0:h.toString().length)===this.digits&&(this.otpInputElement.nativeElement.blur(),this.valueChange.emit(parseInt(this.validationCode)))}focus(){this.otpInputElement.nativeElement.focus()}get valid(){var d;return(null===(d=this.validationCode)||void 0===d?void 0:d.toString().length)===this.digits}reset(){this.validationCode=null}}return(y=k).\u0275fac=function(d){return new(d||y)},y.\u0275cmp=l.VBU({type:y,selectors:[["app-smash-verification-code"]],viewQuery:function(d,h){if(1&d&&l.GBs(S,5),2&d){let u;l.mGM(u=l.lsd())&&(h.otpInputElement=u.first)}},inputs:{isVerificationLoaded:"isVerificationLoaded",isVerificationPending:"isVerificationPending",isVerificationFailed:"isVerificationFailed",digits:"digits"},outputs:{valueChange:"valueChange"},decls:9,vars:1,consts:[["otpInput",""],[1,"otp-input-wrapper"],[1,"otp-digit-container"],["type","text","pattern","[0-9]*","autocomplete","nope","inputmode","numeric",3,"ngModelChange","paste","keydown","keyup","onFocus","input","ngModel"]],template:function(d,h){if(1&d){const u=l.RV6();l.j41(0,"div",1),l.nrm(1,"div",2)(2,"div",2)(3,"div",2)(4,"div",2)(5,"div",2),l.j41(6,"input",3,0),l.mxI("ngModelChange",function(C){return l.eBV(u),l.DH7(h.validationCode,C)||(h.validationCode=C),l.Njj(C)}),l.bIt("paste",function(C){return l.eBV(u),l.Njj(h.onPaste(C))})("keydown",function(C){return l.eBV(u),l.Njj(h.onKeydown(C))})("keyup",function(C){return l.eBV(u),l.Njj(h.onKeyup(C))})("onFocus",function(C){return l.eBV(u),l.Njj(h.onFocus(C))})("input",function(C){return l.eBV(u),l.Njj(h.onInput(C))}),l.k0s(),l.nrm(8,"div",2),l.k0s()}2&d&&(l.R7$(6),l.R50("ngModel",h.validationCode))},dependencies:[_.me,_.BC,_.R_,_.vS],styles:['.full-size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}@keyframes _ngcontent-%COMP%_spinner{to{transform:rotate(360deg)}}.loading-spinner-grey[_ngcontent-%COMP%]{content:"";box-sizing:border-box;width:3rem;height:3rem;border-radius:50%;border:.2rem solid #333;border-top-color:#ccc;animation:_ngcontent-%COMP%_spinner .6s linear infinite}.button-loading-spinner[_ngcontent-%COMP%]{content:"";box-sizing:border-box;width:2rem;height:2rem;border-radius:50%;border:.2rem solid #fff;border-top-color:#ccc;animation:_ngcontent-%COMP%_spinner .6s linear infinite}.loading-spinner-white[_ngcontent-%COMP%]{content:"";box-sizing:border-box;width:3rem;height:3rem;border-radius:50%;border:.2rem solid #fff;border-top-color:#ccc;animation:_ngcontent-%COMP%_spinner .6s linear infinite}.loading-spinner-container[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center}[_nghost-%COMP%]{height:100%;width:100%;display:flex;justify-content:center}.otp-input-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:row;position:relative;height:100%;width:265px;overflow:hidden;overflow:clip}.otp-digit-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%;width:5rem;border:1px solid #ccc;border-right:none;overflow:hidden;background-color:#fafafa}.otp-digit-container.loading[_ngcontent-%COMP%]{border:1px solid #ccc}.otp-digit-container[_ngcontent-%COMP%]:first-child{border-top-left-radius:6px;border-bottom-left-radius:6px}.otp-digit-container[_ngcontent-%COMP%]:last-child{border-top-right-radius:6px;border-bottom-right-radius:6px;border-right:1px solid #ccc}
1.otp-input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;padding:0;width:100%;color:#7f7f7f;background-color:transparent;border:0;margin-left:16px;letter-spacing:31px;height:100%;font-size:2.3rem}.otp-input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{box-shadow:none;outline:none}']}),k})()}}]);
2//# sourceMappingURL=6535.bde39ab813c003b5.js.map

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.