PageSourceSearch

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

js canapii.com collected 2026-09-24 09:43:26 UTC 9,197 bytes, 1 lines download raw bytes

1import{a as ee,b}from"./chunk-QL2MJNBU.js";import{b as Z}from"./chunk-TRKHOV73.js";import"./chunk-NE7QIBGA.js";import"./chunk-O3DZWUYU.js";import"./chunk-X42GTVFF.js";import"./chunk-JA3TLQKN.js";import"./chunk-GU2FORAA.js";import"./chunk-DUA22LOF.js";import"./chunk-OXXAYQVU.js";import"./chunk-QUDN46XZ.js";import{a as Y}from"./chunk-UTEUPMSH.js";import"./chunk-O7AZBXAP.js";import"./chunk-DI6ZWPYY.js";import"./chunk-TGPJ3R7Z.js";import"./chunk-6JR2UR3Y.js";import"./chunk-7CQMDPRC.js";import"./chunk-JVRNJPL7.js";import"./chunk-VOQH6L45.js";import"./chunk-XRJHSHSG.js";import"./chunk-JE2WTDKI.js";import"./chunk-NVOBPTTO.js";import"./chunk-NKJNLA4H.js";import"./chunk-WL334ETE.js";import"./chunk-WDIOLPZ2.js";import{b as X}from"./chunk-JBGTHU2Q.js";import"./chunk-X6WED2AZ.js";import"./chunk-56U2VUAK.js";import"./chunk-YA3REOTQ.js";import"./chunk-HB4JGH6L.js";import"./chunk-HO7Z6GDI.js";import"./chunk-IHLDGMX5.js";import"./chunk-YFJ6KMKI.js";import"./chunk-BZ5C7JNQ.js";import"./chunk-FPCIQYGC.js";import"./chunk-FHCTE6FP.js";import"./chunk-E34OQ4RJ.js";import"./chunk-H4EPMV5Z.js";import"./chunk-JN6AA4VD.js";import"./chunk-ZSHO3KMD.js";import"./chunk-QVGEDMLN.js";import"./chunk-UZY2R5Q5.js";import"./chunk-5GAGQHFR.js";import"./chunk-RYT6C367.js";import"./chunk-SNZM6YGS.js";import"./chunk-33XKUF6S.js";import"./chunk-3PGMBZAP.js";import"./chunk-FQFO62CD.js";import"./chunk-VT7CJSCD.js";import{a as W}from"./chunk-PNYSZFNB.js";import{A as K,G as x,N as Q,O as B,P as q,R as G,V as J,i as $,k as D,m as U,t as H}from"./chunk-Y3MTRBLK.js";import"./chunk-XMBPLYUK.js";import"./chunk-QRMJLQVM.js";import"./chunk-24HYNKH3.js";import"./chunk-DE65ZGA7.js";import"./chunk-65I45D2I.js";import"./chunk-GZL4NBTB.js";import{a as N}from"./chunk-OMIAKVTT.js";import"./chunk-3XCK7DOC.js";import"./chunk-PJWNDC7A.js";import"./chunk-QDFFLVTB.js";import"./chunk-JIVZONLP.js";import"./chunk-S43ITSQ5.js";import{e as O,h as j,i as A,k as M}from"./chunk-5FWAKVG3.js";import{j as I,k as z}from"./chunk-KAXBUATZ.js";import{$c as F,Cc as c,Dc as o,Dd as R,Ec as s,Fa as g,Fc as y,Jb as r,Jd as k,Ld as E,Vc as d,Wb as m,Xc as S,ad as T,bc as L,bd as P,cc as f,gc as v,jd as u,kd as h,ld as w}from"./chunk-XW6AEKHB.js";import{l as V}from"./chunk-6G35VSEK.js";var ie=t=>[t];function ae(t,l){if(t&1&&(o(0,"cnp-status-pill",21),u(1),s()),t&2){let e=l.$implicit;r(),h(e)}}function re(t,l){if(t&1&&(o(0,"div",19),v(1,ae,2,1,"cnp-status-pill",20),s()),t&2){let e=S().$implicit;r(),c("ngForOf",e.targetType)}}function oe(t,l){if(t&1&&(o(0,"div")(1,"a",17),u(2),s()(),v(3,re,2,1,"div",18)),t&2){let e=l.$implicit,i=l.value;r(),c("routerLink",R(3,ie,e.PK)),r(),h(i),r(),c("ngIf",e.targetType==null?null:e.targetType.length)}}function se(t,l){if(t&1&&y(0,"app-target-attendees",22),t&2){let e=l.$implicit;c("data",e.targetAttendees)("withUpdate",!1)("showLabel",!1)}}function le(t,l){if(t&1&&(o(0,"cnp-status-pill",23),u(1),s()),t&2){let e=l.value,i=S();c("tone",i.toneFor(e)),r(),h(i.statusLabel(e))}}function pe(t,l){if(t&1&&(u(0),k(1,"dateFormat")),t&2){let e=l.value;w(" ",E(1,1,e,!1)," ")}}var _=(()=>{class t{constructor(e,i,n,a,p){this.venueMapService=e,this.router=i,this.route=n,this.utilitiesService=a,this.toastService=p,this.columns=[{key:"name",header:"Name"},{key:"targetAttendees",header:"Target attendees"},{key:"status",header:"Status"},{key:"dateCreated",header:"Created"}],this.visibleRows=[],this.filteredCount=0,this.currentPage=1,this.pageSize=50,this.searchValue="",this.searchFilter="",this.isLoading=!0,this.isSortLoading=!1,this.allRows=[],this.subscription$=[],this.byPk=C=>C.PK,this.nameOf=C=>C.name}ngOnInit(){this.venueMapService.load(!0),this.subscription$.push(this.venueMapService.onChanged(e=>{e&&(this.allRows=e,this.refreshRows(),this.isLoading=!1)}))}ngOnDestroy(){this.subscription$.forEach(e=>e.unsubscribe())}get countLabel(){return`${this.filteredCount} ${this.filteredCount===1?"floorplan":"floorplans"}`}get isSearching(){return this.searchFilter.length>0}get emptyHeading(){return this.isSearching?"No floorplans match your search":"No floorplans yet"}get emptyDescription(){return this.isSearching?"Try a different search term.":"Upload a floor plan to help your attendees navigate the venue."}get emptyActionLabel(){return this.isSearching?"Clear search":"Create floorplan"}onEmptyAction(){this.isSearching?this.onSearchChange(""):this.create()}toneFor(e){return e==="active"?"success":"danger"}statusLabel(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}create(){this.venueMapForm.openCreate()}onCreated(e){this.router.navigate([e.PK],{relativeTo:this.route})}onSearchChange(e){this.searchValue=e,this.searchFilter=e.trim().toLowerCase(),this.currentPage=1,this.refreshRows()}onPageChange(e){this.currentPage=e,this.refreshRows()}onPageSizeChange(e){this.pageSize=e,this.currentPage=1,this.refreshRows()}onOrderSaved(e){return V(this,null,function*(){let i=(this.currentPage-1)*this.pageSize,n=[...this.allRows.slice(0,i),...e,...this.allRows.slice(i+e.length)];this.isSortLoading=!0;try{let a=yield this.venueMapService.sort(n);if(!a)return;a.success?(this.allRows=a.data??n,this.refreshRows(),this.toastService.showSuccess("Success","Sorted successfully.")):this.utilitiesService.alert("Error: "+a.message)}finally{this.isSortLoading=!1}})}matchesFilter(e){return[e.name,e.status,...e.targetType??[]].join(" ").toLowerCase().includes(this.searchFilter)}
1refreshRows(){let e=this.searchFilter?this.allRows.filter(n=>this.matchesFilter(n)):[...this.allRows];this.filteredCount=e.length;let i=(this.currentPage-1)*this.pageSize;this.visibleRows=e.slice(i,i+this.pageSize)}static{this.\u0275fac=function(i){return new(i||t)(m(ee),m(j),m(O),m(N),m(W))}}static{this.\u0275cmp=L({type:t,selectors:[["ng-component"]],viewQuery:function(i,n){if(i&1&&F(b,5),i&2){let a;T(a=P())&&(n.venueMapForm=a.first)}},decls:20,vars:18,consts:[[1,"container-fluid","py-3","venue-map-page"],["heading","Floorplan","description","Upload and manage your floor plans here to help your attendees navigate the venue."],[3,"click"],["name","create"],[1,"list-card"],["ariaLabel","Floorplan list controls",3,"count"],["label","Search floorplans","placeholder","Search...",1,"search",3,"valueChange","value"],["role","status","cnpVisuallyHidden",""],["ariaLabel","Floorplans","reorderLockReason","Clear the search to reorder floorplans.",3,"orderSaved","columns","rows","rowKey","loading","reorderable","reorderLocked","reorderSaving","reorderLabel"],["cnpTableEmpty","",3,"icon","heading","description"],["cnpEmptyStatePrimary","",3,"click"],["cnpCell","name"],["cnpCell","targetAttendees"],["cnpCell","status"],["cnpCell","dateCreated"],["noun","floorplans",3,"pageChange","pageSizeChange","total","page","pageSize"],[3,"saved"],[3,"routerLink"],["class","target-types",4,"ngIf"],[1,"target-types"],["tone","neutral",4,"ngFor","ngForOf"],["tone","neutral"],[3,"data","withUpdate","showLabel"],[3,"tone"]],template:function(i,n){i&1&&(o(0,"div",0)(1,"cnp-page-header",1)(2,"cnp-button",2),d("click",function(){return n.create()}),y(3,"cnp-icon",3),u(4," Create "),s()(),o(5,"div",4)(6,"cnp-toolbar",5)(7,"cnp-search-field",6),d("valueChange",function(p){return n.onSearchChange(p)}),s()(),o(8,"span",7),u(9),s(),o(10,"cnp-table",8),d("orderSaved",function(p){return n.onOrderSaved(p)}),o(11,"cnp-empty-state",9)(12,"cnp-button",10),d("click",function(){return n.onEmptyAction()}),u(13),s()(),v(14,oe,4,5,"ng-template",11)(15,se,1,3,"ng-template",12)(16,le,2,2,"ng-template",13)(17,pe,2,4,"ng-template",14),s(),o(18,"cnp-paginator",15),d("pageChange",function(p){return n.onPageChange(p)})("pageSizeChange",function(p){return n.onPageSizeChange(p)}),s()(),o(19,"app-form",16),d("saved",function(p){return n.onCreated(p)}),s()()),i&2&&(r(6),c("count",n.countLabel),r(),c("value",n.searchValue),r(2),w("",n.countLabel," shown"),r(),c("columns",n.columns)("rows",n.visibleRows)("rowKey",n.byPk)("loading",n.isLoading)("reorderable",!0)("reorderLocked",!!n.searchFilter)("reorderSaving",n.isSortLoading)("reorderLabel",n.nameOf),r(),c("icon",n.isSearching?"no-results":"inbox")("heading",n.emptyHeading)("description",n.emptyDescription),r(2),h(n.emptyActionLabel),r(5),c("total",n.filteredCount)("page",n.currentPage)("pageSize",n.pageSize))},dependencies:[z,I,A,D,B,J,$,K,G,H,U,q,x,Q,b,Z,X],styles:[".venue-map-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--cnp-space-card-gap)}.list-card[_ngcontent-%COMP%]{background:var(--cnp-color-bg-card);border-radius:var(--cnp-radius-container);box-shadow:var(--cnp-shadow-low);overflow:hidden}.search[_ngcontent-%COMP%]{min-width:0}.target-types[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:var(--cnp-space-1);margin-top:var(--cnp-space-1)}"]})}}return t})();var ce=[{path:"",component:_},{path:":id",loadChildren:()=>import("./chunk-PKYJ6LVF.js").then(t=>t.ViewModule)}],ne=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=f({type:t})}static{this.\u0275inj=g({imports:[M.forChild(ce),M]})}}return t})();var Pe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=f({type:t})}static{this.\u0275inj=g({imports:[Y,ne,_]})}}return t})();export{Pe as VenueMapModule};

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.