PageSourceSearch

https://account.canapii.com/chunk-BPET4QEP.js

js canapii.com collected 2026-10-01 12:02:09 UTC 7,709 bytes, 1 lines download raw bytes

1import{a as Y,c as Z}from"./chunk-THLVXG5J.js";import{a as x}from"./chunk-MX45D7L5.js";import"./chunk-QROLBOKH.js";import{c as J}from"./chunk-WVPPBW3D.js";import{l as Q}from"./chunk-75MPFHDW.js";import{c as G}from"./chunk-BXSMPFUE.js";import"./chunk-BUGNONG7.js";import"./chunk-S7RUJHDK.js";import"./chunk-O4W4ZLKR.js";import"./chunk-POEVXAF3.js";import{a as X}from"./chunk-RDBQLGOI.js";import{a as W}from"./chunk-WWE47JCL.js";import"./chunk-72DQ4U6K.js";import"./chunk-W6QVGQJH.js";import"./chunk-D2HMEQE7.js";import{b as O}from"./chunk-27KAN2UR.js";import"./chunk-XDKIYMLL.js";import"./chunk-WBTZD3PJ.js";import"./chunk-ZJHHHNWB.js";import"./chunk-QUG5JEKF.js";import"./chunk-QKTH7SM6.js";import"./chunk-7WOG2EAO.js";import"./chunk-MZRJWZOV.js";import"./chunk-MWH5Q7LD.js";import"./chunk-FYEJJVAJ.js";import"./chunk-ETPYH4DV.js";import"./chunk-L6HRYWNR.js";import"./chunk-6E33DBBC.js";import"./chunk-VJX6N2HB.js";import"./chunk-H4EPMV5Z.js";import{e as B}from"./chunk-BCE55JYA.js";import"./chunk-MYI3YS2M.js";import"./chunk-3KNWRENG.js";import"./chunk-6DH3EJIN.js";import"./chunk-RXRKGCUL.js";import"./chunk-LW7CZM4G.js";import"./chunk-EW2NZJHY.js";import"./chunk-ZIK5QK3P.js";import"./chunk-GAHMBGQ7.js";import"./chunk-VT7CJSCD.js";import"./chunk-U5B2TWE2.js";import"./chunk-ZFE6ZTWO.js";import"./chunk-67IT4HQ6.js";import"./chunk-I75T67SK.js";import"./chunk-EYI3M4W7.js";import"./chunk-N47RT2FV.js";import"./chunk-R2ER225G.js";import"./chunk-TU3JUKDL.js";import"./chunk-6JETGMQG.js";import"./chunk-VRQFSSVW.js";import{a as q}from"./chunk-E3FOSCHV.js";import"./chunk-J2VV25SD.js";import"./chunk-RGZN3DMZ.js";import"./chunk-Y4544WYO.js";import"./chunk-73R64QIM.js";import{a as K}from"./chunk-KOEZPSOA.js";import{C as A,k as D,t as H}from"./chunk-ZEL44FAF.js";import"./chunk-RT33Z4W3.js";import{L as U,M as z}from"./chunk-CTTXKPH2.js";import"./chunk-EURTYAWN.js";import"./chunk-CT5YU3F2.js";import{e as j,h as F,i as R,j as I}from"./chunk-B5NVKW3K.js";import{k as N,z as P}from"./chunk-MRC2PHN7.js";import{Cb as S,Eb as w,Ec as l,Fa as g,Fc as a,Gc as o,Hc as m,Jb as r,Lc as k,Mc as E,Qc as T,Sa as v,Ta as h,Wb as u,Xc as _,Zc as d,bc as V,cc as b,gc as f,ld as c,md as M,nd as L}from"./chunk-77LCFR2D.js";import{l as s}from"./chunk-6G35VSEK.js";function ie(n,C){if(n&1&&m(0,"img",29),n&2){let e=d(3);l("src",e.detail==null?null:e.detail.banner,w)}}function ne(n,C){if(n&1&&m(0,"img",29),n&2){let e=d(3);l("src",e.detail==null?null:e.detail.banner,w)}}function oe(n,C){if(n&1){let e=T();k(0),a(1,"div",8)(2,"div",9)(3,"div",10),_("click",function(i){v(e);let p=d(2);return h(p.changeLogo(i))}),f(4,ie,1,1,"img",11),a(5,"button",12),c(6,"Change Logo"),o()()(),a(7,"div",9)(8,"div",10),_("click",function(i){v(e);let p=d(2);return h(p.changePhoto(i))}),f(9,ne,1,1,"img",11),a(10,"button",12),c(11,"Change Photo"),o()()(),a(12,"div",13)(13,"h1",14),c(14),o()()(),a(15,"div",15)(16,"button",16),_("click",function(){v(e);let i=d(2);return h(i.update())}),c(17,"Update"),o(),a(18,"button",17),_("click",function(){v(e);let i=d(2);return h(i.remove())}),c(19,"Delete"),o()(),a(20,"div",18)(21,"div",19)(22,"div",8)(23,"div",20)(24,"div",21),m(25,"app-attribute-view",22)(26,"app-attribute-view",23),o()(),a(27,"div",20),m(28,"app-attribute-view",24),o()(),a(29,"div",8)(30,"div",20)(31,"div",21)(32,"label",25),c(33,"Link"),o(),a(34,"div")(35,"a",26),c(36),o()()()()(),a(37,"div",27)(38,"label",25),c(39,"Introduction"),o(),m(40,"div",28),o(),a(41,"div",27)(42,"label",25),c(43,"Content"),o(),m(44,"div",28),o()()(),E()}if(n&2){let e=d(2);r(4),l("ngIf",e.detail==null?null:e.detail.banner),r(5),l("ngIf",e.detail==null?null:e.detail.banner),r(5),M(e.detail==null?null:e.detail.name),r(2),l("disabled",!(e.detail!=null&&e.detail.PK)),r(2),l("disabled",!(e.detail!=null&&e.detail.PK)),r(7),l("value",e.detail==null?null:e.detail.PK),r(),l("value",e.detail==null?null:e.detail.companyName),r(2),l("value",e.detail==null?null:e.detail.status),r(7),l("href",e.caseLink,w),r(),M(e.caseLink),r(4),l("innerHTML",e.detail==null?null:e.detail.intro,S),r(4),l("innerHTML",e.detail==null?null:e.detail.content,S)}}function ae(n,C){if(n&1&&(a(0,"div",1)(1,"nav",2)(2,"ol",3)(3,"li",4)(4,"a",5),c(5," Case Study "),o()(),a(6,"li",6),c(7),o()()(),f(8,oe,45,12,"ng-container",7),o()),n&2){let e=d();r(7),L(" ",e.detail==null?null:e.detail.name," "),r(),l("ngIf",e.detail)}}var y=(()=>{class n{constructor(e,t,i,p,te){this.utilities=e,this.route=t,this.modal=i,this.caseStudiesService=p,this.router=te}ngOnInit(){this.routerSubscription=this.route.params.subscribe(e=>{e.id&&(this.id=e.id,this.load())})}changeLogo(e){return s(this,null,function*(){let t=this.modal.open(x);t.componentInstance.label="logo",t.componentInstance.uploadFunction=i=>this.caseStudiesService.uploadBanner(this.detail,i);try{yield t.result,this.load()}catch{}})}changePhoto(e){return s(this,null,function*(){let t=this.modal.open(x);t.componentInstance.uploadFunction=i=>this.caseStudiesService.uploadPhoto(this.detail,i);try{yield t.result,this.load()}catch{}})}changeBanner(e){return s(this,null,function*(){let t=this.modal.open(x);t.componentInstance.uploadFunction=i=>this.caseStudiesService.uploadBanner(this.detail,i);try{yield t.result,this.load()}catch{}})}load(){return s(this,null,function*(){this.detail||(this.detail=this.caseStudiesService.data.find(e=>e.PK===this.id));try{let e=yield this.caseStudiesService.load(this.id);e.success&&(this.detail=e.data,this.caseLink=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+"/case-studies/"+this.detail.slug)}catch{}})}update(){return s(this,null,function*(){let e=yield this.modal.open(Z,{size:"lg"});e.componentInstance.data=this.detail;try{yield e.result,this.load()}catch{}})}remove(){return s(this,null,function*(){let e=this.utilities.confirm({header:"Delete case study?",message:"Are you sure you want to delete this customer quote?"}),t=!1;try{yield e.result,t=!0}catch{}if(t)try{let i=yield this.caseStudiesService.remove(this.detail);i&&i.success?this.router.navigate(["../../","case-studies"],{relativeTo:this.route}):this.utilities.alert({message:i.message})}catch(i){this.utilities.alert({message:i.message})}})}static{this.\u0275fac=function(t){return new(t||n)(u(K),u(j),u(H),u(Y),u(F))}}static{this.\u0275cmp=V({type:n,selectors:[["app-view"]],decls:1,vars:1,consts:[["class","container-fluid py-3",4,"ngIf"],[1,"container-fluid","py-3"],["aria-label","breadcrumb"],[1,"breadcrumb"],[1,"breadcrumb-item"],["routerLink","../../case-studies"],["aria-current","page",1,"breadcrumb-item","active"],[4,"ngIf"],[1,"row"],[1,"col-auto"],[1,"banner-wrapper",3,"click"],["height","100px","width","100px",3,"src",4,"ngIf"],[1,"btn","btn-light"],[1,"col","my-auto"],[1,"m-0"],[1,"my-3"],[1,"btn","btn-primary",3,"click","disabled"],[1,"ms-1","me-2","btn","btn-danger",3,"click","disabled"],[1,"card"],[1,"card-body"],[1,"col"],[1,"mb-3"],["label","ID",3,"value"],["label","Company Name",3,"value"],["label","Status",3,"value"],[1,"o-50"],["target","_blank","rel","noopener",1,"text-wrap",3,"href"],[1,"mt-1"],[1,"content",3,"innerHTML"],["height","100px","width","100px",3,"src"]],template:function(t,i){t&1&&f(0,ae,9,2,"div",0),t&2&&l("ngIf",i.detail)},dependencies:[N,R,W],encapsulation:2})}}return n})();var re=[{path:"",component:y}],ee=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=b({type:n})}static{this.\u0275inj=g({imports:[I.forChild(re),I]})}}return n})();var Pe=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=b({type:n})}static{this.\u0275inj=g({imports:[ee,P,Q,G,J,z,U,q,X,B.forChild(),A,O,D,y]})}}return n})();export{Pe as ViewModule};

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.