PageSourceSearch

https://hub.isba.in/default-src_app_core_domain_product-informatio…tups_pages_edit_-596e25.85696b1e175edf4c.js

js isba.in collected 2026-10-02 17:34:04 UTC 17,404 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksanchiconnect_frontend_angular=self.webpackChunksanchiconnect_frontend_angular||[]).push([["default-src_app_core_domain_product-information_model_ts-src_app_modules_startups_pages_edit_-596e25"],{72388:(y,D,s)=>{s.d(D,{t:()=>t});var t=(()=>{return(_=t||(t={})).IDEA="1",_.EARLY_REVENUE="3",_.MVP_POC="2",_.GROWTH="4",t;var _})()},7233:(y,D,s)=>{s.d(D,{E:()=>Q});var t=s(3184),_=s(50253),v=s(98977),u=s(68951),f=s(32313),r=s(14045),i=s(21293),E=s(72179),I=s(67324),g=s(53205),C=s(60598),T=s.n(C),O=s(9997),w=s(57100),k=s(39777),U=s(90186),a=s(80966),d=s(23132),l=s(36362),b=s(62224),A=s(67502);const M=["fileDropRef"];function R(c,p){if(1&c&&t._UZ(0,"app-pitch-document-carousel",5),2&c){const e=t.oxw();t.Q6J("startupPitchDeck",e.pitchDeck)("documentType",e.documentType)}}function S(c,p){1&c&&(t.TgZ(0,"div",6)(1,"span",7),t._UZ(2,"span",8),t.qZA(),t._uU(3," Thank you for uploading your pitch deck. We're converting it into an image carousel for enhanced visibility. This process typically takes 1-2 minutes. If it takes longer, please consider compressing the file and re-uploading it for faster processing. "),t.qZA()),2&c&&(t.xp6(1),t.ekj("d-inline-block",!0))}function Z(c,p){if(1&c){const e=t.EpF();t.TgZ(0,"div",22)(1,"div",23),t._uU(2," Your pitch deck is ready to be submitted "),t.TgZ(3,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).submitPitchForEvaluation()}),t._uU(4," Submit for evaluation "),t.qZA()()()}}function j(c,p){if(1&c&&(t.ynx(0),t.YNc(1,Z,5,0,"div",21),t.BQk()),2&c){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(null==e.pitchObj?null:e.pitchObj.fileName)&&(null==e.pitchDeck||null==e.pitchDeck.pitchDocumentImages?null:e.pitchDeck.pitchDocumentImages.length))}}function B(c,p){1&c&&(t.TgZ(0,"span",28),t._uU(1,"*"),t.qZA())}function F(c,p){if(1&c&&(t.TgZ(0,"div")(1,"h2",25),t._uU(2," Upload Pitch Deck "),t.YNc(3,B,2,0,"span",26),t.qZA(),t.TgZ(4,"div",27),t._uU(5," (Your pitch deck is private and visible only to your connections.) "),t.qZA()()),2&c){const e=t.oxw(2);t.xp6(3),t.Q6J("ngIf",e.getIsRequired)}}function L(c,p){1&c&&(t.TgZ(0,"span",28),t._uU(1,"*"),t.qZA())}function N(c,p){if(1&c&&(t.TgZ(0,"label",29),t._uU(1," Upload Pitch Deck "),t.YNc(2,L,2,0,"span",26),t.qZA()),2&c){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf",e.getIsRequired)}}function H(c,p){if(1&c&&(t.TgZ(0,"a",30),t.ALo(1,"imagekitUrlAppender"),t._UZ(2,"i",31),t._uU(3," Download Sample "),t.qZA()),2&c){const e=t.oxw(2);t.s9C("href",t.lcZ(1,1,null==e.globalSettings?null:e.globalSettings.pitchDeckDocumentExample),t.LSH)}}function W(c,p){1&c&&(t.TgZ(0,"span",38),t._uU(1,"Uploading..."),t.qZA())}function K(c,p){if(1&c&&(t.TgZ(0,"div",32)(1,"table",33),t._UZ(2,"thead"),t.TgZ(3,"tbody")(4,"tr")(5,"td",34),t._uU(6),t.YNc(7,W,2,0,"span",35),t.qZA(),t.TgZ(8,"td",36)(9,"a",37),t._uU(10," Download "),t.qZA()()()()()()),2&c){const e=t.oxw(2);t.xp6(6),t.hij(" ",null!=e.pitchObj&&e.pitchObj.fileName&&null!=e.pitchObj&&e.pitchObj.pitchDocument?e.pitchObj.fileName:null==e.selectedPitchDeckFile?null:e.selectedPitchDeckFile.name," "),t.xp6(1),t.Q6J("ngIf",e.uploading),t.xp6(2),t.s9C("href",e.pitchDocUrl,t.LSH)}}function Y(c,p){if(1&c){const e=t.EpF();t.TgZ(0,"div",1),t.YNc(1,j,2,1,"ng-container",9),t.TgZ(2,"div",10),t.YNc(3,F,6,1,"div",9),t.YNc(4,N,3,1,"label",11),t.YNc(5,H,4,3,"a",12),t.qZA(),t.TgZ(6,"input",13,14),t.NdJ("change",function(o){return t.CHM(e),t.oxw().pitchDeckFileBrowseHandler(o)}),t.qZA(),t.TgZ(8,"label",15),t.NdJ("fileDropped",function(o){return t.CHM(e),t.oxw().pitchDeckFileDroppedHandler(o)}),t.TgZ(9,"div",16)(10,"div",17),t._uU(11," Click or Drop file in this box to upload."),t._UZ(12,"br"),t._uU(13,"Accepted formats: ppt, pptx, pdf "),t._UZ(14,"br"),t.qZA(),t.TgZ(15,"span",18),t._UZ(16,"i",19),t._uU(17),t.qZA()()(),t.YNc(18,K,11,3,"div",20),t.qZA()}if(2&c){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",!(null!=e.brandDetails.features&&e.brandDetails.features.show_dashboard)&&!(null!=e.brandDetails.features&&e.brandDetails.features.show_ecosystem)&&(null==e.brandDetails.features?null:e.brandDetails.features.application_management)),t.xp6(2),t.Q6J("ngIf",e.showDocPreview),t.xp6(1),t.Q6J("ngIf",!e.showDocPreview),t.xp6(1),t.Q6J("ngIf",null==e.globalSettings?null:e.globalSettings.pitchDeckDocumentExample),t.xp6(1),t.Q6J("id",e.documentType+"Ref"),t.xp6(2),t.Q6J("for",e.documentType+"Ref"),t.xp6(9),t.hij(" ",null!=e.pitchObj&&e.pitchObj.fileName&&null!=e.pitchObj&&e.pitchObj.pitchDocument?"Edit":"Upload",""),t.xp6(1),t.Q6J("ngIf",(null==e.pitchObj?null:e.pitchObj.fileName)&&(null==e.pitchObj?null:e.pitchObj.pitchDocument)||e.selectedPitchDeckFile)}}let Q=(()=>{class c{constructor(e,n,o,h,m,x){var P;this.store=e,this.pitchDeckService=n,this.toastAlertService=o,this.checkService=h,this.route=m,this.imagekitUrlAppended=x,this.openFrom="edit",this.showDocPreview=!0,this.pitchUploaded=new t.vpe,this.loader=!1,this.destroyed$=new _.x,this.allowdedMimeTypes=["application/pdf","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation"],this.MAX_FILE_SIZE=25,this.cardHeadings={[g.E.FUNDRAISING_PITCH]:"Fundraising",[g.E.HIRING_PITCH]:"Hiring",[g.E.SALES_PITCH]:"Sales/Corporate"},this.isPreviewPage=!1,this.singleUploadAutoRefresh=!1,this.uploading=!1,this.isPreviewPage=null===(P=this.route.snapshot.data)||void 0===P?void 0:P.preview}ngOnInit(){this.startupInfo$=this.store.pipe((0,r.Ys)(I.VT)),this.startupInfo$.pipe((0,v.x)(),(0,u.R)(this.destroyed$)).subscribe(e=>{if(e){this.startupInfo=e;const{pitchDeck:n}=e;this.selectedPitchDeckFile=void 0,this.pitchDeck=n,this.mapDataByDocumentType()}}),this.store.pipe((0,r.Ys)(O.a$)).pipe((0,v.x)()).subscribe(e=>{e&&(this.brandDetails=e)}),this.globalSettings$=this.store.pipe((0,r.Ys)(O.Tv)),this.globalSettings$.pipe((0,v.x)(),(0,u.R)(this.destroyed$)).subscribe(e=>{e&&(this.globalSettings=e)})}mapDataByDocumentType(){let e={elevatorPitch:this.pitchDeck.elevatorPitch};switch(this.documentType){case g.E.SALES_PITCH:e=Object.assign(Object.assign({},e),{fileName:this.pitchDeck.salesPitchFileName,pitchDocument:this.pitchDeck.salesPitchDocument});break;case g.E.HIRING_PITCH:e=Object.assign(Object.assign({},e),{fileName:this.pitchDeck.hiringPitchFileName,pitchDocument:this.pitchDeck.hiringPitchDocument});break;default:e=Object.assign(Object.assign({},e),{fileName:this.pitchDeck.fileName,pitchDocument:this.pitchDeck.pitchDocument})}this.pitchObj=e}pitchDeckFileBrowseHandler(e){this.pitchDeckFileDroppedHandler(e.target.files)}pitchDeckFileDroppedHandler(e){this.isPreviewPage||this.validateFiles(e)&&(this.selectedPitchDeckFile=e[0],this.uploading=!0,this.pitchDeckService.uploadPitchFile(this.selectedPitchDeckFile,this.documentType).subscribe(o=>{var h,m;this.uploading=!1,o&&(this.showDocPreview&&(this.store.dispatch(new i.iV),this.toastAlertService.showToast(o.message||"Pitch file saved!"),this.pitchImageInterval=setInterval(()=>{var x,P;(null===(P=null===(x=this.pitchDeck)||void 0===x?void 0:x.pitchDocumentImages)||void 0===P?void 0:P.length)?clearInterval(this.pitchImageInterval):this.store.dispatch(new i.iV)},3e4)),this.singleUploadAutoRefresh&&(this.pitchObj.fileName=o.data.name,this.pitchObj.pitchDocument=null===(m=null===(h=null==o?void 0:o.data)||void 0===h?void 0:h.url)||void 0===m?void 0:m.objectUrl,this.selectedPitchDeckFile=void 0,this.pitchUploaded.emit()))},()=>{this.uploading=!1,this.selectedPitchDeckFile=void 0}))}validateFiles(e){try{for(const n of e)this.fileSizeValidation(n),this.fileTypeValidation(n);return!0}catch(n){return this.toastAlertService.showToast(n.message,"error"),!1}}fileTypeValidation(e){if(!e.type||!this.allowdedMimeTypes.includes(e.type))throw new Error("Allowded File type are ppt, pptx, pdf")}fileSizeValidation(e){const n=Number((e.size/1048576).toFixed(2));if(console.log({sizeInMB:n}),n>this.MAX_FILE_SIZE)throw new Error("File size should be less than 25mb")}deletePitchDeckHandler(){T().fire({title:"Delete Pitch File",text:"Are you sure want to remove this file?",icon:"warning",showCancelButton:!0,confirmButtonColor:"var(--color-theme)",cancelButtonColor:"#7D8185",confirmButtonText:"Yes, delete it!"}).then(e=>{var n,o;e.isConfirmed&&(this.loader=!0,(null===(n=this.pitchObj)||void 0===n?void 0:n.fileName)&&(null===(o=this.pitchObj)||void 0===o?void 0:o.pitchDocument)?this.pitchDeckService.deletePitchDeckFile(this.documentType).pipe((0,f.x)(()=>this.loader=!1)).subscribe(h=>{h&&(this.loader=!1,this.toastAlertService.showToast(h.message||"Pitch deck deleted"),this.store.dispatch(new i.iV))}):this.selectedPitchDeckFile&&(this.selectedPitchDeckFile=void 0,this.fileDropRef&&this.clearFileUploader(this.fileDropRef.nativeElement)))})}clearFileUploader(e){e.value=""}get getIsRequired(){let e=!0;return this.documentType===g.E.SALES_PITCH&&this.checkService.transform(E.E.fundraising,this.startupInfo)&&this.checkService.transform(E.E.customer_access,this.startupInfo)&&(e=!1),e}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}get pitchDocUrl(){var e,n,o,h,m;return(null===(e=this.pitchObj)||void 0===e?void 0:e.pitchDocument)?(null===(o=null===(n=this.pitchObj)||void 0===n?void 0:n.pitchDocument)||void 0===o?void 0:o.includes("amazonaws"))?null===(h=this.pitchObj)||void 0===h?void 0:h.pitchDocument:this.imagekitUrlAppended.transform(null===(m=this.pitchObj)||void 0===m?void 0:m.pitchDocument):""}submitPitchForEvaluation(){T().fire({title:"Caution",text:" Are you sure you want to submit? Once submitted the pitch deck can no longer be edited.",icon:"warning",showCancelButton:!0,confirmButtonColor:"var(--color-theme)",cancelButtonColor:"#7D8185",confirmButtonText:"Submit"}).then(e=>{e.isConfirmed&&this.pitchDeckService.submitPitch("pitch_deck").subscribe(n=>{})})}}return c.\u0275fac=function(e){return new(e||c)(t.Y36(r.yh),t.Y36(w.Q),t.Y36(k.j),t.Y36(U.h),t.Y36(a.gz),t.Y36(d.X))},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-elevator-pitch"]],viewQuery:function(e,n){if(1&e&&t.Gf(M,5),2&e){let o;t.iGM(o=t.CRH())&&(n.fileDropRef=o.first)}},inputs:{documentType:"documentType",openFrom:"openFrom",showDocPreview:"showDocPreview",singleUploadAutoRefresh:"singleUploadAutoRefresh"},outputs:{pitchUploaded:"pitchUploaded"},decls:6,vars:3,consts:[[1,"row","gy-5","g-xl-10"],[1,"col-xl-12"],[3,"startupPitchDeck","documentType",4,"ngIf"],["class","alert alert-success alert-width-100 w-100 d-flex justify-content-between ","role","alert",4,"ngIf"],["class","col-xl-12",4,"ngIf"],[3,"startupPitchDeck","documentType"],["role","alert",1,"alert","alert-success","alert-width-100","w-100","d-flex","justify-content-between"],[1,"indicator-progress","fs-2",2,"color","#155724"],[1,"spinner-border","spinner-border-lg","align-middle","me-4","mt-1"],[4,"ngIf"],[1,"d-flex","justify-content-between","align-items-center","mb-5"],["class","mb-5 fw-bold d-block",4,"ngIf"],["class","btn btn-outline btn-outline-dark ls-2 btn-sm w-max-content","target","_blank",3,"href",4,"ngIf"],["type","file","hidden","","accept",".ppt, .pptx, .pdf",3,"id","change"],["fileDropRef",""],["appDragAndDropFileSelect","",1,"btn","btn-outline","btn-outline-dashed","text-center","p-10","mb-5","w-100",3,"for","fileDropped"],[1,"d-flex","align-items-center","gap-5","justify-content-between",2,"flex-wrap","wrap"],[1,"text-start","fs-7","text-gray-600"],[1,"badge","badge-secondary","badge-lg","ms-2","mt-4","px-5","py-4","fs-3"],[1,"bi","bi-cloud-upload","text-black","fs-3"],["class","table-responsive",4,"ngIf"],["class","d-flex align-items-sm-center justify-content-between mb-3",4,"ngIf"],[1,"d-flex","align-items-sm-center","justify-content-between","mb-3"],["role","alert",1,"alert","alert-primary","alert-width-100","w-100","d-flex","text-center","flex-column","justify-content-between"],[1,"btn","btn-lg","btn-dark","text-white","ls-2","text-uppercase","fw-boldest","text-white","mx-auto","mt-3",2,"width","fit-content",3,"click"],[1,"fs-4","mb-1"],["class","text-danger",4,"ngIf"],[1,"text-muted","fs-8"],[1,"text-danger"],[1,"mb-5","fw-bold","d-block"],["target","_blank",1,"btn","btn-outline","btn-outline-dark","ls-2","btn-sm","w-max-content",3,"href"],[1,"fa","fa-download","text-black","fs-4"],[1,"table-responsive"],[1,"table","table-bordered","table-striped"],[1,"p-3","pt-5","ps-5"],["class","badge badge-secondary",4,"ngIf"],["width","150",1,"text-center"],["target","_blank",1,"btn","btn-theme","text-white","ls-2","text-uppercase","fw-boldest","btn-sm","w-max-content",3,"href"],[1,"badge","badge-secondary"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",0),t.YNc(3,R,1,2,"app-pitch-document-carou
1sel",2),t.YNc(4,S,4,2,"div",3),t.YNc(5,Y,19,8,"div",4),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngIf",(null==n.pitchDeck||null==n.pitchDeck.pitchDocumentImages?null:n.pitchDeck.pitchDocumentImages.length)&&n.showDocPreview),t.xp6(1),t.Q6J("ngIf",n.showDocPreview&&"edit"===n.openFrom&&!(null!=n.pitchDeck&&null!=n.pitchDeck.pitchDocumentImages&&n.pitchDeck.pitchDocumentImages.length)&&(null==n.pitchObj?null:n.pitchObj.fileName)),t.xp6(1),t.Q6J("ngIf",!(null!=n.pitchDeck&&n.pitchDeck.pitchDeckSubmitted)))},directives:[l.O5,b.A,A.M],pipes:[d.X],styles:[""]}),c})()},62224:(y,D,s)=>{s.d(D,{A:()=>U});var t=s(14045),_=s(50253),v=s(98977),u=s(68951),f=s(53205),r=s(9997),i=s(3184),E=s(36362),I=s(56900),g=s(80966);function C(a,d){if(1&a&&(i.TgZ(0,"div",3),i._UZ(1,"img",4),i.qZA()),2&a){const l=i.oxw().$implicit;i.xp6(1),i.Q6J("src",l,i.LSH)}}function T(a,d){1&a&&i.YNc(0,C,2,1,"ng-template",2)}function O(a,d){if(1&a&&(i.TgZ(0,"ngb-carousel"),i.YNc(1,T,1,0,null,1),i.qZA()),2&a){const l=i.oxw();i.xp6(1),i.Q6J("ngForOf",l.pitchImages)}}function w(a,d){if(1&a&&(i.TgZ(0,"a",8),i._uU(1,"Upload Pitch Deck"),i.qZA()),2&a){const l=i.oxw(2);i.Q6J("routerLink","/startups/edit/pitch-deck/"+l.documentType)}}function k(a,d){if(1&a&&(i.ynx(0),i.TgZ(1,"div",5)(2,"div",6),i._uU(3," Pitch Deck not found "),i.YNc(4,w,2,1,"a",7),i.qZA()(),i.BQk()),2&a){const l=i.oxw();i.xp6(4),i.Q6J("ngIf",l.isOwner)}}let U=(()=>{class a{constructor(l){this.store=l,this.documentType=f.E.FUNDRAISING_PITCH,this.pitchImages=[],this.destroyed$=new _.x}ngOnInit(){this.globalSettings$=this.store.pipe((0,t.Ys)(r.Tv)),this.setGlobalSettings()}ngOnChanges(){this.startupPitchDeck&&(this.getDeckImages(),this.setPitchImagesUrl())}getDeckImages(){switch(this.documentType){case f.E.FUNDRAISING_PITCH:this.pitchImages=this.startupPitchDeck.pitchDocumentImages;break;case f.E.SALES_PITCH:this.pitchImages=this.startupPitchDeck.salesPitchDocumentImages;break;case f.E.HIRING_PITCH:this.pitchImages=this.startupPitchDeck.hiringPitchDocumentImages}return""}setGlobalSettings(){this.globalSettings$.pipe((0,v.x)(),(0,u.R)(this.destroyed$)).subscribe(l=>{l&&(this.globalSettings=l,this.setPitchImagesUrl())})}setPitchImagesUrl(){this.globalSettings&&this.pitchImages&&(this.pitchImages=this.pitchImages.map(l=>this.globalSettings.imgKitUrl+l))}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return a.\u0275fac=function(l){return new(l||a)(i.Y36(t.yh))}
1,a.\u0275cmp=i.Xpm({type:a,selectors:[["app-pitch-document-carousel"]],inputs:{startupPitchDeck:"startupPitchDeck",documentType:"documentType",isOwner:"isOwner"},features:[i.TTD],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],["ngbSlide",""],[1,"picsum-img-wrapper"],["alt","Random first slide","width","100%",3,"src"],[1,"d-flex","flex-column"],["role","alert",1,"alert","alert-primary","text-center","py-10","d-flex","flex-column","justify-content-center","align-items-center","fs-5","fw-normal"],["class","btn btn-theme text-white ls-2 text-uppercase fw-boldest btn-sm mt-5 w-250px",3,"routerLink",4,"ngIf"],[1,"btn","btn-theme","text-white","ls-2","text-uppercase","fw-boldest","btn-sm","mt-5","w-250px",3,"routerLink"]],template:function(l,b){1&l&&(i.YNc(0,O,2,1,"ngb-carousel",0),i.YNc(1,k,5,1,"ng-container",0)),2&l&&(i.Q6J("ngIf",b.pitchImages&&b.pitchImages.length),i.xp6(1),i.Q6J("ngIf",b.startupPitchDeck&&!b.pitchImages||!b.pitchImages.length))},directives:[E.O5,I.uo,E.sg,I.xl,g.yS],styles:[".carousel-indicators [data-bs-target]{width:10px}  button.carousel-control-prev{background-color:#000;width:30px;border-radius:10px;margin:20px;opacity:.1;z-index:initial!important}  button.carousel-control-prev:hover{opacity:.4}  button.carousel-control-next{background-color:#000;width:30px;border-radius:10px;margin:20px;opacity:.2;z-index:initial!important}  button.carousel-control-next:hover{opacity:.4}  .carousel-control-prev-icon,   .carousel-control-next-icon{filter:brightness(0)}  .picsum-img-wrapper{border:1px solid #eee;border-radius:10px;box-shadow:0 2px 10px #eee}  .picsum-img-wrapper img{border-radius:10px}"]}),a})()},2047:(y,D,s)=>{s.d(D,{z:()=>v});var t=s(3184),_=s(50318);let v=(()=>{class u{constructor(r){this._sanitizer=r}transform(r,i="html"){switch(i){case"html":default:return this._sanitizer.bypassSecurityTrustHtml(r);case"style":return this._sanitizer.bypassSecurityTrustStyle(r);case"script":return this._sanitizer.bypassSecurityTrustScript(r);case"url":return this._sanitizer.bypassSecurityTrustUrl(r);case"resourceUrl":return this._sanitizer.bypassSecurityTrustResourceUrl(r)}}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(_.H7,16))},u.\u0275pipe=t.Yjl({name:"safeHtml",type:u,pure:!0}),u})()}}]);
2//# sourceMappingURL=default-src_app_core_domain_product-information_model_ts-src_app_modules_startups_pages_edit_-596e25.85696b1e175edf4c.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.