PageSourceSearch

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

js canapii.com collected 2026-09-24 09:40:56 UTC 18,055 bytes, 1 lines download raw bytes

1import{M as Y,a as J,c as K,h as Q,o as X}from"./chunk-QDFFLVTB.js";import{i as U,j as $,k as G,z as q}from"./chunk-KAXBUATZ.js";import{Bd as H,Cc as r,Da as y,Dc as s,Dd as z,Ec as d,Fa as D,Fc as M,Ib as F,Jb as o,Jd as S,Ld as P,Ob as _,Oc as C,Sa as f,Ta as x,Vc as p,Wb as O,Xc as a,bc as I,cc as T,dc as A,ec as V,fe as W,gc as u,gd as E,hd as L,ib as v,jd as g,kd as b,ld as w,rd as j,sd as B,tc as R,td as N}from"./chunk-XW6AEKHB.js";var ee=n=>({"dropdown-multiselect--active":n});function te(n,l){if(n&1&&(s(0,"span"),g(1),d()),n&2){let e=a();o(),b(e._placeholder)}}function ie(n,l){if(n&1){let e=C();s(0,"span",15)(1,"span",16)(2,"span"),g(3),d(),s(4,"a",17),p("click",function(i){let c=f(e).$implicit,m=a();return x(m.onItemClick(i,c))}),g(5,"x"),d()()()}if(n&2){let e=l.$implicit,t=l.index,i=a();o(),r("hidden",t>i._settings.itemsShowLimit-1),o(2),w("",e.text,"\xA0")}}function ne(n,l){if(n&1&&(s(0,"span",18),g(1),d()),n&2){let e=a();o(),w("+",e.itemShowRemaining())}}function oe(n,l){if(n&1){let e=C();s(0,"li",19),p("click",function(){f(e);let i=a();return x(i.toggleSelectAll())}),M(1,"input",20),s(2,"div"),g(3),d()()}if(n&2){let e=a();o(),r("checked",e.isAllItemsSelected())("disabled",e.disabled||e.isLimitSelectionReached()),o(2),b(e.isAllItemsSelected()?e._settings.unSelectAllText:e._settings.selectAllText)}}function le(n,l){if(n&1){let e=C();s(0,"li",21)(1,"input",22),N("ngModelChange",function(i){f(e);let c=a();return B(c.filter.text,i)||(c.filter.text=i),x(i)}),p("ngModelChange",function(i){f(e);let c=a();return x(c.onFilterTextChange(i))}),d()()}if(n&2){let e=a();o(),r("readOnly",e.disabled)("placeholder",e._settings.searchPlaceholderText),j("ngModel",e.filter.text)}}function se(n,l){if(n&1){let e=C();s(0,"li",23),p("click",function(i){let c=f(e).$implicit,m=a();return x(m.onItemClick(i,c))}),M(1,"input",24),s(2,"div"),g(3),d()()}if(n&2){let e=l.$implicit,t=a();o(),r("checked",t.isSelected(e))("disabled",t.disabled||t.isLimitSelectionReached()&&!t.isSelected(e)||e.isDisabled),R("aria-label",e.text),o(2),b(e.text)}}function ce(n,l){if(n&1&&(s(0,"li",25)(1,"h5"),g(2),d()()),n&2){let e=a();o(2),b(e._settings.noFilteredDataAvailablePlaceholderText)}}function re(n,l){if(n&1&&(s(0,"li",26)(1,"h5"),g(2),d()()),n&2){let e=a();o(2),b(e._settings.noDataAvailablePlaceholderText)}}var h=class{id;text;isDisabled;constructor(l){(typeof l=="string"||typeof l=="number")&&(this.id=this.text=l,this.isDisabled=!1),typeof l=="object"&&(this.id=l.id,this.text=l.text,this.isDisabled=l.isDisabled)}},k=(()=>{class n{transform(e,t){return!e||!t?e:e.filter(i=>this.applyFilter(i,t))}applyFilter(e,t){return typeof e.text=="string"&&typeof t.text=="string"?!(t.text&&e.text&&e.text.toLowerCase().indexOf(t.text.toLowerCase())===-1):!(t.text&&e.text&&e.text.toString().toLowerCase().indexOf(t.text.toString().toLowerCase())===-1)}static \u0275fac=function(t){return new(t||n)};static \u0275pipe=V({name:"multiSelectFilter",type:n,pure:!1,standalone:!1})}return n})(),ae=(()=>{class n{_elementRef;constructor(e){this._elementRef=e}clickOutside=new _;onClick(e,t){if(!t)return;this._elementRef.nativeElement.contains(t)||this.clickOutside.emit(e)}static \u0275fac=function(t){return new(t||n)(O(v))};static \u0275dir=A({type:n,selectors:[["","clickOutside",""]],hostBindings:function(t,i){t&1&&p("click",function(m){return i.onClick(m,m.target)},F)},outputs:{clickOutside:"clickOutside"},standalone:!1})}return n})(),de={provide:J,useExisting:y(()=>pe),multi:!0},Z=()=>{},pe=(()=>{class n{listFilterPipe;cdr;_settings;_data=[];selectedItems=[];isDropdownOpen=!0;_placeholder="Select";_sourceDataType=null;_sourceDataFields=[];filter=new h(this.data);defaultSettings={singleSelection:!1,idField:"id",textField:"text",disabledField:"isDisabled",enableCheckAll:!0,selectAllText:"Select All",unSelectAllText:"UnSelect All",allowSearchFilter:!1,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:999999999999,searchPlaceholderText:"Search",noDataAvailablePlaceholderText:"No data available",noFilteredDataAvailablePlaceholderText:"No filtered data available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1,allowRemoteDataSearch:!1};set placeholder(e){e?this._placeholder=e:this._placeholder="Select"}disabled=!1;set settings(e){e?this._settings=Object.assign(this.defaultSettings,e):this._settings=Object.assign(this.defaultSettings)}set data(e){if(!e)this._data=[];else{let t=e[0];this._sourceDataType=typeof t,this._sourceDataFields=this.getFields(t),this._data=e.map(i=>typeof i=="string"||typeof i=="number"?new h(i):new h({id:i[this._settings.idField],text:i[this._settings.textField],isDisabled:i[this._settings.disabledField]}))}}onFilterChange=new _;onDropDownClose=new _;onSelect=new _;onDeSelect=new _;onSelectAll=new _;onDeSelectAll=new _;onTouchedCallback=Z;onChangeCallback=Z;onFilterTextChange(e){this.onFilterChange.emit(e)}constructor(e,t){this.listFilterPipe=e,this.cdr=t}onItemClick(e,t){if(this.disabled||t.isDisabled)return!1;let i=this.isSelected(t),c=this._settings.limitSelection===-1||this._settings.limitSelection>0&&this.selectedItems.length<this._settings.limitSelection;i?this.removeSelected(t):c&&this.addSelected(t),this._settings.singleSelection&&this._settings.closeDropDownOnSelection&&this.closeDropdown()}writeValue(e){if(e!=null&&e.length>0)if(this._settings.singleSelection)try{if(e.length>=1){let t=e[0];this.selectedItems=[typeof t=="string"||typeof t=="number"?new h(t):new h({id:t[this._settings.idField],text:t[this._settings.textField],isDisabled:t[this._settings.disabledField]})]}}catch{}else{let t=e.map(i=>typeof i=="string"||typeof i=="number"?new h(i):new h({id:i[this._settings.idField],text:i[this._settings.textField],isDisabled:i[this._settings.disabledField]}));this._settings.limitSelection>0?this.selectedItems=t.splice(0,this._settings.limitSelection):this.selectedItems=t}else this.selectedItems=[];this.onChangeCallback(e),this.cdr.markForCheck()}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}onTouched(){this.onTouchedCallback()}trackByFn(e,t){return t.id}isSelected(e){let t=!1;
1return this.selectedItems.forEach(i=>{e.id===i.id&&(t=!0)}),t}isLimitSelectionReached(){return this._settings.limitSelection===this.selectedItems.length}isAllItemsSelected(){let e=this.listFilterPipe.transform(this._data,this.filter),t=e.filter(i=>i.isDisabled).length;return(!this.data||this.data.length===0)&&this._settings.allowRemoteDataSearch?!1:e.length===this.selectedItems.length+t}showButton(){return this._settings.singleSelection?!1:!(this._settings.limitSelection>0)}itemShowRemaining(){return this.selectedItems.length-this._settings.itemsShowLimit}addSelected(e){this._settings.singleSelection?(this.selectedItems=[],this.selectedItems.push(e)):this.selectedItems.push(e),this.onChangeCallback(this.emittedValue(this.selectedItems)),this.onSelect.emit(this.emittedValue(e))}removeSelected(e){this.selectedItems.forEach(t=>{e.id===t.id&&this.selectedItems.splice(this.selectedItems.indexOf(t),1)}),this.onChangeCallback(this.emittedValue(this.selectedItems)),this.onDeSelect.emit(this.emittedValue(e))}emittedValue(e){let t=[];if(Array.isArray(e))e.map(i=>{t.push(this.objectify(i))});else if(e)return this.objectify(e);return t}objectify(e){if(this._sourceDataType==="object"){let t={};return t[this._settings.idField]=e.id,t[this._settings.textField]=e.text,this._sourceDataFields.includes(this._settings.disabledField)&&(t[this._settings.disabledField]=e.isDisabled),t}return this._sourceDataType==="number"?Number(e.id):e.text}toggleDropdown(e){e.preventDefault(),!(this.disabled&&this._settings.singleSelection)&&(this._settings.defaultOpen=!this._settings.defaultOpen,this._settings.defaultOpen||this.onDropDownClose.emit())}closeDropdown(){this._settings.defaultOpen=!1,this._settings.clearSearchFilter&&(this.filter.text=""),this.onDropDownClose.emit()}toggleSelectAll(){if(this.disabled)return!1;this.isAllItemsSelected()?(this.selectedItems=[],this.onDeSelectAll.emit(this.emittedValue(this.selectedItems))):(this.selectedItems=this.listFilterPipe.transform(this._data,this.filter).filter(e=>!e.isDisabled).slice(),this.onSelectAll.emit(this.emittedValue(this.selectedItems))),this.onChangeCallback(this.emittedValue(this.selectedItems))}getFields(e){let t=[];if(typeof e!="object")return t;for(let i in e)t.push(i);return t}static \u0275fac=function(t){return new(t||n)(O(k),O(W))};static \u0275cmp=I({type:n,selectors:[["ng-multiselect-dropdown"]],hostBindings:function(t,i){t&1&&p("blur",function(){return i.onTouched()})},inputs:{placeholder:"placeholder",disabled:"disabled",settings:"settings",data:"data"},outputs:{onFilterChange:"onFilterChange",onDropDownClose:"onDropDownClose",onSelect:"onSelect",onDeSelect:"onDeSelect",onSelectAll:"onSelectAll",onDeSelectAll:"onDeSelectAll"},standalone:!1,features:[H([de])],decls:18,vars:23,consts:[["tabindex","0",1,"multiselect-dropdown",3,"blur","clickOutside"],["tabindex","-1",1,"dropdown-btn",3,"click"],[4,"ngIf"],["class","selected-item-container",4,"ngFor","ngForOf","ngForTrackBy"],[2,"float","right !important","padding-right","4px",3,"ngClass"],["style","padding-right: 15px;",4,"ngIf"],[1,"dropdown-multiselect__caret"],[1,"dropdown-list",3,"hidden"],[1,"item1"],["class","multiselect-item-checkbox","style","border-bottom: 1px solid #ccc;padding:10px",3,"click",4,"ngIf"],["class","filter-textbox",4,"ngIf"],[1,"item2"],["class","multiselect-item-checkbox",3,"click",4,"ngFor","ngForOf"],["class","no-filtered-data",4,"ngIf"],["class","no-data",4,"ngIf"],[1,"selected-item-container"],[1,"selected-item",3,"hidden"],[2,"padding-left","2px","color","white",3,"click"],[2,"padding-right","15px"],[1,"multiselect-item-checkbox",2,"border-bottom","1px solid #ccc","padding","10px",3,"click"],["type","checkbox","aria-label","multiselect-select-all",3,"checked","disabled"],[1,"filter-textbox"],["type","text","aria-label","multiselect-search",3,"ngModelChange","readOnly","placeholder","ngModel"],[1,"multiselect-item-checkbox",3,"click"],["type","checkbox",3,"checked","disabled"],[1,"no-filtered-data"],[1,"no-data"]],template:function(t,i){t&1&&(s(0,"div",0),p("blur",function(){return i.onTouched()})("clickOutside",function(){return i.closeDropdown()}),s(1,"div")(2,"span",1),p("click",function(m){return i.toggleDropdown(m)}
1),u(3,te,2,1,"span",2)(4,ie,6,2,"span",3),s(5,"span",4),u(6,ne,2,1,"span",5),M(7,"span",6),d()()(),s(8,"div",7)(9,"ul",8),u(10,oe,4,3,"li",9)(11,le,2,3,"li",10),d(),s(12,"ul",11),u(13,se,4,4,"li",12),S(14,"multiSelectFilter"),u(15,ce,3,1,"li",13),S(16,"multiSelectFilter"),u(17,re,3,1,"li",14),d()()()),t&2&&(o(),L("disabled",i.disabled),o(2),r("ngIf",i.selectedItems.length==0),o(),r("ngForOf",i.selectedItems)("ngForTrackBy",i.trackByFn),o(),r("ngClass",z(21,ee,i._settings.defaultOpen)),o(),r("ngIf",i.itemShowRemaining()>0),o(2),r("hidden",!i._settings.defaultOpen),o(2),r("ngIf",(i._data.length>0||i._settings.allowRemoteDataSearch)&&!i._settings.singleSelection&&i._settings.enableCheckAll&&i._settings.limitSelection===-1),o(),r("ngIf",(i._data.length>0||i._settings.allowRemoteDataSearch)&&i._settings.allowSearchFilter),o(),E("max-height",i._settings.maxHeight+"px"),o(),r("ngForOf",P(14,15,i._data,i.filter)),o(2),r("ngIf",i._data.length!=0&&P(16,18,i._data,i.filter).length==0&&!i._settings.allowRemoteDataSearch),o(2),r("ngIf",i._data.length==0&&!i._settings.allowRemoteDataSearch))},dependencies:[U,$,G,K,Q,X,ae,k],styles:['.multiselect-dropdown[_ngcontent-%COMP%]{position:relative;width:100%;font-size:inherit;font-family:inherit}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]{display:inline-block;border:1px solid #adadad;width:100%;padding:6px 12px;margin-bottom:0;font-weight:400;line-height:1.52857143;text-align:left;vertical-align:middle;cursor:pointer;background-image:none;border-radius:4px}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]{display:flex;float:left}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]{border:1px solid #337ab7;margin-right:4px;background:#337ab7;padding:0 5px;color:#fff;border-radius:2px;float:left;max-width:100px}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]:hover{box-shadow:1px 1px #959595}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .dropdown-multiselect__caret[_ngcontent-%COMP%]{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:0;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s ease}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .dropdown-multiselect__caret[_ngcontent-%COMP%]:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:8px 8px 0 8px;border-color:#999999 transparent;content:""}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .dropdown-multiselect--active[_ngcontent-%COMP%]   .dropdown-multiselect__caret[_ngcontent-%COMP%]{transform:rotate(180deg)}.multiselect-dropdown[_ngcontent-%COMP%]   .disabled[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{background-color:#eceeef}.dropdown-list[_ngcontent-%COMP%]{position:absolute;padding-top:6px;width:100%;z-index:9999;border:1px solid #ccc;border-radius:3px;background:#fff;margin-top:10px;box-shadow:0 1px 5px #959595}.dropdown-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:0;list-style:none;overflow:auto;margin:0}.dropdown-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:6px 10px;cursor:pointer;text-align:left}.dropdown-list[_ngcontent-%COMP%]   .filter-textbox[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;position:relative;padding:10px}.dropdown-list[_ngcontent-%COMP%]   .filter-textbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:0px;width:100%;padding:0 0 0 26px}.dropdown-list[_ngcontent-%COMP%]   .filter-textbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{outline:none}.multiselect-item-checkbox[_ngcontent-%COMP%]:hover{background-color:#e4e3e3}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:focus + div[_ngcontent-%COMP%]:before, .multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:hover + div[_ngcontent-%COMP%]:before{border-color:#337ab7;background-color:#f2f2f2}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:active + div[_ngcontent-%COMP%]:before{transition-duration:0s}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{position:relative;padding-left:2em;vertical-align:middle;-webkit-user-select:none;user-select:none;cursor:pointer;margin:0;color:#000}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + div[_ngcontent-%COMP%]:before{box-sizing:content-box;content:"";color:#337ab7;position:absolute;top:50%;left:0;width:14px;
1height:14px;margin-top:-9px;border:2px solid #337ab7;text-align:center;transition:all .4s ease}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + div[_ngcontent-%COMP%]:after{box-sizing:content-box;content:"";background-color:#337ab7;position:absolute;top:50%;left:4px;width:10px;height:10px;margin-top:-5px;transform:scale(0);transform-origin:50%;transition:transform .2s ease-out}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled + div[_ngcontent-%COMP%]:before{border-color:#ccc}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled:focus + div[_ngcontent-%COMP%]:before   .multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled:hover + div[_ngcontent-%COMP%]:before{background-color:inherit}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled:checked + div[_ngcontent-%COMP%]:before{background-color:#ccc}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + div[_ngcontent-%COMP%]:after{background-color:transparent;top:50%;left:4px;width:8px;height:3px;margin-top:-4px;border-style:solid;border-color:#fff;border-width:0 0 3px 3px;border-image:none;transform:rotate(-45deg) scale(0)}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + div[_ngcontent-%COMP%]:after{content:"";transform:rotate(-45deg) scale(1);transition:transform .2s ease-out}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + div[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_borderscale .2s ease-in;background:#337ab7}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + div[_ngcontent-%COMP%]:after{transform:rotate(-45deg) scale(1)}@keyframes _ngcontent-%COMP%_borderscale{50%{box-shadow:0 0 0 2px #337ab7}}'],changeDetection:0})}return n})(),ke=(()=>{class n{static forRoot(){return{ngModule:n}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=T({type:n});static \u0275inj=D({providers:[k],imports:[q,Y]})}return n})();export{pe as a,ke as b};

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.