PageSourceSearch

https://buildersacademynz.web.app/chunk-RWXMWQIO.js

js buildersacademynz.web.app collected 2026-10-03 12:19:20 UTC 23,507 bytes, 1 lines download raw bytes

1import{b as B}from"./chunk-RI2SYBNC.js";import{a as Tt}from"./chunk-NFYWOYC5.js";import{A as bt,E as Ct,F as kt,J as Ft,L as xt,Q as Et,S as At,U as Ot,c as st,e as lt,f as ct,g as dt,h as mt,i as ut,k as ht,l as pt,m as gt,o as yt,p as ft,r as _t,s as St,t as It,u as vt,w as wt}from"./chunk-ITMFNP22.js";import{b as rt,c as at,d as ot}from"./chunk-LFRTPRFK.js";import{a as T}from"./chunk-GUZO7ZNK.js";import{Aa as Q,Db as W,Fc as tt,Ga as U,Ha as C,Ia as k,Ib as X,Ic as et,J as E,Lc as it,N as P,O as N,Rb as Y,Ua as _,Va as A,Vb as Z,Vc as nt,Wa as z,aa as p,ab as G,bb as H,cb as J,fa as V,ka as x,lb as $,mb as M,ub as K,vb as j,xa as v,ya as h,za as m}from"./chunk-3RYB6SVN.js";import{a as L}from"./chunk-QYJGY2IR.js";import"./chunk-YGHZJLBQ.js";import"./chunk-G35TH3HO.js";import"./chunk-QUJFQN2Y.js";import"./chunk-TQCPDUT3.js";import"./chunk-USX6FYMP.js";import"./chunk-LPZTKJWE.js";import"./chunk-MKFP4TZ3.js";import"./chunk-JQVI6FS2.js";import"./chunk-BCFU56ZB.js";import"./chunk-PT3YUHTI.js";import"./chunk-MTEZNQW4.js";import"./chunk-PTASOGFN.js";import"./chunk-4K53T7NJ.js";import"./chunk-MTHZ7MWU.js";import"./chunk-WI5MSH4N.js";import"./chunk-N2ITJEWR.js";import"./chunk-CKP3SGE2.js";import"./chunk-RFGOEN6H.js";import"./chunk-Y7EQJLOB.js";import"./chunk-4EXU7QX3.js";import"./chunk-YG5PFMJ7.js";import"./chunk-NER57BGA.js";import"./chunk-PD2PSGYJ.js";import"./chunk-DXRS3GW7.js";import"./chunk-ZDL7X67C.js";import"./chunk-CLVRMGG4.js";import{g as I}from"./chunk-NMDLJX5Q.js";function Pt(s,y){s&1&&(h(0,"ion-label"),_(1),$(2,"translate"),m()),s&2&&(p(),A(M(2,1,"SEARCH.QUICK_SEARCH_BUTTONS")))}function Nt(s,y){if(s&1){let l=U();h(0,"ion-col",19)(1,"ion-button",14),C("click",function(){let e=P(l).$implicit,i=k(2);return i.searchTerm=e,N(i.doSearch())}),_(2),m()()}if(s&2){let l=y.$implicit;p(2),z(" ",l," ")}}function Ut(s,y){if(s&1&&(h(0,"ion-row"),x(1,Nt,3,1,"ion-col",18),m()),s&2){let l=k();p(),v("ngForOf",l.keywords)}}function zt(s,y){if(s&1&&(h(0,"ion-select-option",20),_(1),m()),s&2){let l=y.$implicit;v("value",l.id),p(),z(" ",l.label," ")}}function $t(s,y){s&1&&(h(0,"ion-note",21),_(1," No unit/skills available for this account yet. "),m())}function Mt(s,y){if(s&1&&(h(0,"ion-select-option",20),_(1),m()),s&2){let l=y.$implicit;v("value",l.id),p(),z(" ",l.label," ")}}function Bt(s,y){if(s&1){let l=U();h(0,"ion-item")(1,"ion-label",9),_(2,"Elements/Micro Credentials"),m(),h(3,"ion-select",22),C("ionChange",function(e){P(l);let i=k();return N(i.onElementFilterChange(e.detail.value))}),x(4,Mt,2,2,"ion-select-option",12),m()()}if(s&2){let l=k();p(3),v("value",l.selectedElementFilterIds)("interfaceOptions",l.elementSelectInterfaceOptions)("multiple",!0),p(),v("ngForOf",l.availableElementFilterOptions)}}function Rt(s,y){s&1&&(h(0,"div",23)(1,"h4"),_(2),$(3,"translate"),m()()),s&2&&(p(2),A(M(3,1,"SEARCH.RESULT")))}function Dt(s,y){if(s&1){let l=U();h(0,"ion-item",26),C("click",function(){let e=P(l).$implicit,i=k().$implicit,n=k().$implicit,r=k();return N(r.clickActivity(n,i,e))}),h(1,"ion-label")(2,"h5"),_(3),m()()()}if(s&2){let l=y.$implicit;p(3),A(l.name)}}function qt(s,y){if(s&1){let l=U();h(0,"ion-list")(1,"ion-list-header",26),C("click",function(){let e=P(l).$implicit,i=k().$implicit,n=k();return N(n.clickSubCat(i,e))}),h(2,"h5"),_(3),m()(),x(4,Dt,4,1,"ion-item",27),m()}if(s&2){let l=y.$implicit;p(3),A(l.name),p(),v("ngForOf",l.values)}}function Qt(s,y){if(s&1&&(h(0,"ion-list",24)(1,"ion-list-header")(2,"h3"),_(3),m()(),x(4,qt,5,2,"ion-list",25),m()),s&2){let l=y.$implicit;p(3),A(l.name),p(),v("ngForOf",l.values)}}var se=(()=>{let y=class y{constructor(){this.searchTerm="",this.mainCatList=[],this.allSubCatList=[],this.allActivityList=[],this.renderGroups=[],this.unitFilterOptions=[],this.elementFilterOptions=[],this.selectedUnitFilterId="",this.selectedElementFilterIds=[],this.unitSelectInterfaceOptions={cssClass:"unit-select-popover"},this.elementSelectInterfaceOptions={cssClass:"element-select-popover"},this.keyword1="",this.keyword2="",this.keyword3="",this.keyword4="",this.keyword5="",this.keyword6="",this.user={},this.router=E(Y),this.http=E(X),this.alertController=E(Et),this.loadingController=E(At),this.translate=E(rt),this.global=E(Tt)}ngOnInit(){return I(this,null,function*(){this.translate.use("en"),yield this.loadUser(),yield this.getListByFaculty(),yield this.loadData()})}ionViewWillEnter(){return I(this,null,function*(){yield this.loadUser(),yield this.getListByFaculty(),yield this.loadData()})}get keywords(){return[this.keyword1,this.keyword2,this.keyword3,this.keyword4,this.keyword5,this.keyword6].filter(t=>!!t&&t.trim()!=="")}get availableElementFilterOptions(){return this.selectedUnitFilterId?this.elementFilterOptions.filter(t=>t.unitIds.includes(this.selectedUnitFilterId)).filter(t=>this.isPracticalElement(t.raw)).sort((t,e)=>t.label.localeCompare(e.label)):[]}loadUser(){return I(this,null,function*(){try{let t=localStorage.getItem("user");t&&(this.user=JSON.parse(t))}catch{}})}getListByFaculty(){return I(this,null,function*(){try{if(this.global.listByFaculty&&this.global.listByFaculty.length>0){this.setKeywordsFromData(this.global.listByFaculty[0]);return}let t=localStorage.getItem("listByFaculty");if(t)try{let i=JSON.parse(t);i&&i.length>0&&this.setKeywordsFromData(i[0])}catch{}if(!this.user?.faculty)return;let e=`${T.apiUrl}get_list_by_faculty.php?faculty=${this.user.faculty}`;try{let n=yield(yield fetch(e)).json();if(n.error)return;this.global.setListByFaculty(n.list);let r=JSON.stringify(this.global.listByFaculty);localStorage.setItem("listByFaculty",r),n.list&&n.list.length>0&&this.setKeywordsFromData(n.list[0])}catch{}}catch{}})}setKeywordsFromData(t){this.keyword1=t.keyword1||"",this.keyword2=t.keyword2||"",this.keyword3=t.keyword3||"",this.keyword4=t.keyword4||"",this.keyword5=t.keyword5||"",this.keyword6=t.keyword6||""}loadData(){return I(this,null,function*(){try{this.mainCatList=yield this.global.loadMainCategories(),this.allSubCatList=yield this.global.loadSubCategories(),this.allActivityList=yield this.loadActivitiesForSearch(),yield this.loadQualificationFilterData()}catch{yield this.showErrorAlert("Failed to load search data. Please try again.")}})}loadActivitiesForSearch(){return I(this,null,function*(){try{let t=this.global.getCurrentUser()||{},e=this.normalizeId(this.user?.faculty??this.user?.faculty_id??this.user?.user_faculty??t?.faculty??t?.faculty_id??t?.user_faculty),i=this.normalizeId(this.user?.provider??this.user?.provider_id??t?.provider??t?.provider_id),n=new URLSearchParams;e&&n.set("faculty",e),i&&n.set("provider",i);let r=`${T.apiUrl}get_allactivities.php${n.toString()?`?${n.toString()}`:""}
1`,o=yield this.http.get(r).toPromise(),u=this.extractArrayPayload(o);if(u.length>0){if(u.some(f=>!!this.getActivitySearchId(f)))return u;let c=yield this.loadDetailedActivitiesForSearch(e);return c.length>0?c:u}}catch{}return yield this.global.loadActivities()})}loadDetailedActivitiesForSearch(t){return I(this,null,function*(){if(!t)return[];let e=new Set;if((this.allSubCatList||[]).forEach(i=>{let n=this.normalizeId(i?.list_id??i?.sub_category_id??i?.id??i?.cat);n&&e.add(n)}),e.size===0)return[];try{let i=yield Promise.all(Array.from(e).map(o=>this.http.get(`${T.apiUrl}get_activities.php?subcategory=${encodeURIComponent(o)}&faculty=${encodeURIComponent(t)}`).toPromise().catch(()=>null))),n=[];if(i.forEach(o=>{this.extractArrayPayload(o).forEach(d=>n.push(d))}),n.length===0)return[];let r=new Map;return n.forEach(o=>{let u=this.getActivitySearchId(o);!u||r.has(u)||r.set(u,o)}),Array.from(r.values())}catch{return[]}})}onUnitFilterChange(t){let e=this.normalizeId(t);this.selectedUnitFilterId=e,this.selectedElementFilterIds=[]}onElementFilterChange(t){let e=Array.isArray(t)?t:t?[t]:[];this.selectedElementFilterIds=e.map(i=>this.normalizeId(i)).filter(i=>!!i)}loadQualificationFilterData(){return I(this,null,function*(){let t=this.global.getCurrentUser()||{},e=this.normalizeId(this.user?.faculty??this.user?.faculty_id??this.user?.user_faculty??t?.faculty??t?.faculty_id??t?.user_faculty),i=this.normalizeId(this.user?.provider??this.user?.provider_id??t?.provider??t?.provider_id),n=this.parseCourseTokens(this.user?.qual??this.user?.qualification??this.user?.course_code??t?.qual??t?.qualification??t?.course_code);try{let r=`${T.apiUrl}get_unit.php`,o=new URLSearchParams;e&&o.set("faculty",e),i&&o.set("provider",i);let u=`${T.apiUrl}get_elements.php${o.toString()?`?${o.toString()}`:""}`,[d,c]=yield Promise.all([this.http.get(r).toPromise(),this.http.get(u).toPromise()]),g=[...this.extractArrayPayload(d)];if(e){let a=g.filter(S=>this.normalizeId(S?.faculty)===e);a.length>0&&(g=a)}if(n.length>0){let a=g.filter(S=>{let O=this.normalizeId(S?.course_code??S?.qualification??S?.qual);return!!O&&n.includes(O)});a.length>0&&(g=a)}this.unitFilterOptions=g.map(a=>{let S=this.normalizeId(a?.list_id||a?.id),O=this.normalizeDisplayText(a?.unit),R=this.normalizeDisplayText(a?.name),D=[O,R].filter(q=>!!q).join(" - ")||S;return{id:S,label:D,courseCode:this.normalizeId(a?.course_code)}}).filter(a=>!!a.id).sort((a,S)=>a.label.localeCompare(S.label));let b=this.extractArrayPayload(c);this.elementFilterOptions=b.map(a=>{let S=this.normalizeId(a?.list_id||a?.id),O=this.normalizeDisplayText(a?.element),R=this.normalizeDisplayText(a?.name),D=B(a?.unit).map(F=>this.normalizeId(F)).filter(F=>!!F),q=B(a?.Activity??a?.activity??a?.activity_id??a?.activity_ids??a?.activityId).map(F=>this.normalizeId(F)).filter(F=>!!F),Lt=[O,R].filter(F=>!!F).join(" - ")||S;return{id:S,label:Lt,unitIds:D,activityIds:q,raw:a}}).filter(a=>!!a.id&&a.unitIds.length>0);let w=new Set(this.unitFilterOptions.map(a=>a.id));this.elementFilterOptions=this.elementFilterOptions.filter(a=>a.unitIds.some(S=>w.has(S)))}catch{this.unitFilterOptions=[],this.elementFilterOptions=[]}})}onKeyPressed(t){t.key==="Enter"&&this.doSearch()}goBack(){this.router.navigateByUrl("/main")}showAlert(t,e){return I(this,null,function*(){yield(yield this.alertController.create({header:t,message:e,buttons:["OK"]})).present()})}quickAdd(){return I(this,null,function*(){try{let t=yield this.loadingController.create({message:"Loading last entry...",duration:2e3});if(yield t.present(),yield Promise.all([this.global.loadStudentLogs(),this.global.loadMainCategories(),this.global.loadSubCategories()]),yield t.dismiss(),!this.global.allStudentLogList||this.global.allStudentLogList.length===0){yield this.showAlert("No previous entries found","Quick Add requires at least one previous activity entry.");return}let e=this.global.allStudentLogList[0];if(!e||!e.main_category||!e.sub_category){yield this.showAlert("Invalid entry","The last entry does not have valid category information.");return}let i=this.global.allMaincategoryList.find(d=>d.cat==e.main_category),n=this.global.allSubcategoryList.find(d=>d.list_id==e.sub_category);if(!i||!n){yield this.showAlert("Categories not found",`Could not find categories. Looking for main: ${e.main_category}, sub: ${e.sub_category}`);return}this.global.lastEntry=e;let r=[e.inventory_item,e.inventory_item2,e.inventory_item3,e.inventory_item4].map(d=>String(d??"").trim()).filter(d=>d!==""),o={provider:e.provider||"8",faculty:e.faculty||this.user?.faculty||"",tutor:e.tutor||"",user_id:e.user_id||"",main_category:e.main_category,main_category_name:i.name,sub_category:e.sub_category,sub_category_name:n.name,inventory_itemList:r,inventory_item:r[0]||"",inventory_item2:r[1]||"",inventory_item3:r[2]||"",inventory_item4:r[3]||"",address:e.address||"",inventory_value:e.inventory_value||"1",supervision_level:e.supervision_level||"",inventory_purchased:e.inventory_purchased||new Date().toISOString().substring(0,10),notes:e.notes||"",savetimesheet:e.savetimesheet||!1,starttime:e.starttime||"08:00",finishtime:e.finishtime||"12:00"},u=this.global.getCurrentUser();if(u){let d=u.user_id.toString();yield L.set({key:`lastEntry_${d}`,value:JSON.stringify(e)}),yield L.set({key:`mainCategoryIdx_${d}`,value:e.main_category.toString()}),yield L.set({key:`mainCategoryName_${d}`,value:i.name}),yield L.set({key:`subCategoryIdx_${d}`,value:e.sub_category.toString()}),yield L.set({key:`subCategoryName_${d}`,value:n.name})}localStorage.setItem("lastEntry",JSON.stringify(e)),localStorage.setItem("mainCategoryIdx",e.main_category.toString()),localStorage.setItem("mainCategoryName",i.name),localStorage.setItem("subCategoryIdx",e.sub_category.toString()),localStorage.setItem("subCategoryName",n.name),localStorage.setItem("subCatInfo",JSON.stringify(n)),localStorage.setItem("inventoryData",JSON.stringify(o)),sessionStorage.setItem("returningFromConfirmEntry","1"),this.router.navigateByUrl("/activity")}catch{yield this.showAlert("Error","An error occurred while processing quick add.")}})}doSearch(){return I(this,null,function*(){let t=this.searchTerm.trim(),e=!!this.selectedUnitFilterId||this.selectedElementFilterIds.length>0;if(!t&&!e){yield this.showInfoAlert("Search","Please enter a search term or select a qualification filter");return}let i=yield this.loadingController.create({message:"Searching...",spinner:"crescent"});yield i.present();try{if(yield this.loadData(),this.allActivityList.forEach(r=>{let o=r.main_category,u=parseInt(String(o));for(let f=0;f<this.mainCatList.length;f++){let g=this.mainCatList[f],b=parseInt(String(g.cat)),w=String(o),a=String(g.cat),S=String(g.name||"");if(u==b||w==g.name||S.indexOf(w)>-1){r.main_category=g.cat,r.mainCatName=g.name;break}}let d=r.sub_category,c=parseInt(String(d));for(let f=0;f<this.allSubCatList.length;f++){let g=this.allSubCatList[f],b=parseInt(String(g.list_id||"0")),w=parseInt(String(g.cat||"0"));if(c==b||c==w){r.subCatName=g.name,r.keywords=g.keywords;break}}}),e){let r=this.getSelectedQualificationElements(),o=this.getElementsMissingActivityLinks(r);if(this.selectedElementFilterIds.length>0&&o.length>0){let c=o.map(b=>b.label).slice(0,5),f=o.length-c.length,g=f>0?` and ${f} more.`:".";if(yield this.showInfoAlert("Element Linking Incomplete",`The selected element(s) below are not yet linked to work activities: ${c.join(", ")}${g}`),o.length===r.length){this.renderGroups=[];return}}if(!this.hasLinkedActivitiesForSelectedQualification()){yield this.showInfoAlert("Qualification Linking Incomplete","Linking this qualification to work activities is still to be completed."),this.renderGroups=[];return}let u=[...this.allActivityList],d=this.applyQualificationActivityFilter(u);this.renderGroups=this.groupResultsOldStyle(d),this.renderGroups.length===0&&(yield this.showInfoAlert("No Results","N
1o matching activities found. Try a different search term."));return}let n=[];if(!t)n=[...this.allActivityList];else{let r=t.toLowerCase().split(/\s+/).filter(o=>o.length>0);this.allActivityList.forEach(o=>{let u=!1,d=this.getActivitySearchId(o).toLowerCase();if(d&&r.some(c=>d.indexOf(c)>-1)&&(u=!0),!u){for(let c in o)if(o.hasOwnProperty(c)){let f=o[c];if(f!=null){let g=String(f).toLowerCase();if(r.some(b=>g.indexOf(b)>-1)){u=!0;break}}}}u&&n.push(o)})}this.renderGroups=this.groupResultsOldStyle(n),this.renderGroups.length===0&&(yield this.showInfoAlert("No Results","No matching activities found. Try a different search term."))}catch{yield this.showErrorAlert("Search failed. Please try again.")}finally{setTimeout(()=>{i.dismiss()},500)}})}groupResultsOldStyle(t){let e=new Set;t.forEach(n=>{n.main_category&&e.add(n.main_category)});let i=[];return e.forEach(n=>{let r=t.filter(c=>c.main_category===n),o="";for(let c=0;c<this.mainCatList.length;c++){let f=this.mainCatList[c];if(parseInt(String(n))==parseInt(String(f.cat))){o=f.name;break}}let u=new Set;r.forEach(c=>{c.sub_category&&u.add(c.sub_category)});let d=[];u.forEach(c=>{let f="",g="";for(let w=0;w<this.allSubCatList.length;w++){let a=this.allSubCatList[w];if(parseInt(String(c))==parseInt(String(a.list_id))||parseInt(String(c))==parseInt(String(a.cat))){f=a.name,g=a.link||"";break}}let b=r.filter(w=>w.sub_category===c);d.push({id:c,name:f,link:g,values:b})}),i.push({id:n,name:o,values:d})}),i}applyQualificationActivityFilter(t){if(!this.selectedUnitFilterId&&this.selectedElementFilterIds.length===0)return t;let e=this.getSelectedQualificationElements();if(e.length===0)return[];let i=new Set;return e.forEach(n=>{n.activityIds.forEach(r=>{let o=this.normalizeId(r);o&&i.add(o)})}),i.size===0?[]:t.filter(n=>{let r=this.getActivitySearchId(n);return!!r&&i.has(r)})}hasLinkedActivitiesForSelectedQualification(){let t=this.getSelectedQualificationElements();return t.length===0?!1:t.some(e=>(e.activityIds||[]).some(i=>!!this.normalizeId(i)))}getSelectedQualificationElements(){return this.selectedElementFilterIds.length>0?this.elementFilterOptions.filter(t=>this.selectedElementFilterIds.includes(t.id)):this.elementFilterOptions.filter(t=>t.unitIds.includes(this.selectedUnitFilterId))}getElementsMissingActivityLinks(t){return t.filter(e=>(e.activityIds||[]).map(n=>this.normalizeId(n)).filter(n=>!!n).length===0)}getActivitySearchId(t){let e=this.normalizeId(t?.list_id??t?.id??t?.list??t?.activity_id??t?.activityid);if(e)return e;if(!t||typeof t!="object")return"";for(let i of Object.keys(t)){if(!/list.?id|activity.?id|^id$/i.test(i))continue;let n=this.normalizeId(t[i]);if(n)return n}return""}parseCourseTokens(t){return B(t).map(e=>this.normalizeId(e)).filter(e=>!!e)}extractArrayPayload(t){return Array.isArray(t)?t:Array.isArray(t?.data)?t.data:Array.isArray(t?.list)?t.list:[]}normalizeTextToken(t){return String(t??"").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim().toLowerCase()}isPracticalElement(t){let e=this.normalizeTextToken(t?.theory??t?.is_theory??t?.theory_only??"");if(e){if(["0","false","no","practical","p","do"].includes(e))return!0;if(["1","true","yes","theory","k","know"].includes(e))return!1}let i=this.normalizeId(t?.module??t?.module_type??t?.mod);if(i==="2")return!0;if(i==="1")return!1;let n=this.normalizeTextToken(`${t?.name||""} ${t?.element||""}`);return/\b\(do\)\b|\bdo\b/.test(n)?!0:!/\b\(k\)\b|\bknow\b|\btheory\b/.test(n)}normalizeId(t){if(t==null)return"";let e=String(t).trim();if(!e)return"";let i=Number(e);return Number.isFinite(i)?String(i):e}normalizeDisplayText(t){let e=String(t??"").trim();return e?e.replace(/&amp;/gi,"&").replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&#39;/gi,"'"):""}clickSubCat(t,e){return I(this,null,function*(){localStorage.setItem("mainCategoryIdx",String(t.id)),localStorage.setItem("mainCategoryName",t.name),localStorage.setItem("subCategoryIdx",String(e.id)),localStorage.setItem("subCategoryName",e.name);let i={id:e.id,name:e.name,link:e.link||""};localStorage.setItem("subCatInfo",JSON.stringify(i)),this.router.navigateByUrl("/activity")})}clickActivity(t,e,i){return I(this,null,function*(){localStorage.removeItem("lastEntry"),localStorage.setItem("mainCategoryIdx",String(t.id)),localStorage.setItem("mainCategoryName",t.name),localStorage.setItem("subCategoryIdx",String(e.id)),localStorage.setItem("subCategoryName",e.name);let n={id:e.id,name:e.name,link:e.link||""};localStorage.setItem("subCatInfo",JSON.stringify(n)),localStorage.setItem("inventory_item",i.name||""),this.router.navigateByUrl("/activity")})}clearSearch(){this.searchTerm="",this.selectedUnitFilterId="",this.selectedElementFilterIds=[],this.renderGroups=[]}showInfoAlert(t,e){return I(this,null,function*(){yield(yield this.alertController.create({header:t,message:e,buttons:["OK"]})).present()})}showErrorAlert(t){return I(this,null,function*(){yield(yield this.alertController.create({header:"Error",message:t,buttons:["OK"]})).present()})}};y.\u0275fac=function(e){return new(e||y)},y.\u0275cmp=V({type:y,selectors:[["app-search"]],decls:38,vars:17,consts:[["slot","start"],[3,"click"],["slot","icon-only","name","arrow-back"],[1,"ion-padding"],["expand","block","fill","solid","color","secondary",1,"quick-add-btn",3,"click"],["name","repeat-outline","slot","start"],["type","text","placeholder","Search...",1,"searchbar-top",3,"ngModelChange","keypress","ngModel"],[4,"ngIf"],[1,"ion-margin-top"],["position","stacked"],["
1interface","popover","placeholder","Select a unit/skill",3,"ionChange","value","interfaceOptions","disabled"],["value",""],[3,"value",4,"ngFor","ngForOf"],["color","medium","style","display: block; margin-top: 8px;",4,"ngIf"],["expand","block","color","primary",3,"click"],["expand","block","fill","outline","color","medium",3,"click"],["class","ion-text-center ion-margin-top",4,"ngIf"],["class","main-item",4,"ngFor","ngForOf"],["size","6","size-sm","4","size-md","3",4,"ngFor","ngForOf"],["size","6","size-sm","4","size-md","3"],[3,"value"],["color","medium",2,"display","block","margin-top","8px"],["interface","alert","okText","Apply","cancelText","Cancel","placeholder","Select element(s) (optional)",3,"ionChange","value","interfaceOptions","multiple"],[1,"ion-text-center","ion-margin-top"],[1,"main-item"],[4,"ngFor","ngForOf"],[2,"cursor","pointer",3,"click"],["style","cursor:pointer",3,"click",4,"ngFor","ngForOf"]],template:function(e,i){e&1&&(h(0,"ion-header")(1,"ion-toolbar")(2,"ion-buttons",0)(3,"ion-button",1),C("click",function(){return i.goBack()}),h(4,"strong"),Q(5,"ion-icon",2),m()()(),h(6,"ion-title")(7,"strong"),_(8),$(9,"translate"),m()()()(),h(10,"ion-content",3)(11,"ion-button",4),C("click",function(){return i.quickAdd()}),Q(12,"ion-icon",5),_(13," Repeat Last Entry "),m(),h(14,"input",6),J("ngModelChange",function(r){return H(i.searchTerm,r)||(i.searchTerm=r),r}),C("keypress",function(r){return i.onKeyPressed(r)}),m(),x(15,Pt,3,3,"ion-label",7)(16,Ut,2,1,"ion-row",7),h(17,"ion-card",8)(18,"ion-card-header")(19,"ion-card-title"),_(20,"Qualification Filters"),m()(),h(21,"ion-card-content")(22,"ion-item")(23,"ion-label",9),_(24,"Unit/Skill"),m(),h(25,"ion-select",10),C("ionChange",function(r){return i.onUnitFilterChange(r.detail.value)}),h(26,"ion-select-option",11),_(27,"Any"),m(),x(28,zt,2,2,"ion-select-option",12),m()(),x(29,$t,2,0,"ion-note",13)(30,Bt,5,4,"ion-item",7),m()(),h(31,"ion-button",14),C("click",function(){return i.doSearch()}),_(32),$(33,"translate"),m(),h(34,"ion-button",15),C("click",function(){return i.clearSearch()}),_(35," Clear "),m(),x(36,Rt,4,3,"div",16)(37,Qt,5,2,"ion-list",17),m()),e&2&&(p(8),A(M(9,13,"SEARCH.SEARCH")),p(6),G("ngModel",i.searchTerm),p(),v("ngIf",i.keywords.length>0),p(),v("ngIf",i.keywords.length>0),p(9),v("value",i.selectedUnitFilterId)("interfaceOptions",i.unitSelectInterfaceOptions)("disabled",i.unitFilterOptions.length===0),p(3),v("ngForOf",i.unitFilterOptions),p(),v("ngIf",i.unitFilterOptions.length===0),p(),v("ngIf",i.selectedUnitFilterId),p(2),z(" ",M(33,15,"SEARCH.SEARCH")," "),p(4),v("ngIf",i.renderGroups.length<1),p(),v("ngForOf",i.renderGroups))},dependencies:[Ot,lt,ct,dt,mt,ut,ht,pt,gt,yt,ft,_t,St,It,vt,wt,bt,Ct,kt,Ft,xt,st,W,K,j,nt,tt,et,it,Z,ot,at],styles:["ion-searchbar[_ngcontent-%COMP%]{min-height:48px;display:block}.quick-add-btn[_ngcontent-%COMP%]{margin-bottom:16px}input.searchbar-top[_ngcontent-%COMP%]{width:100%;min-height:48px;border-radius:8px;border:none;background:var(--ion-color-light, #f4f5f8);padding:0 16px;font-size:16px;box-shadow:0 2px 4px #00000008;margin-bottom:16px;outline:none;color:var(--ion-color-dark, #222428)}input.searchbar-top[_ngcontent-%COMP%]::placeholder{color:#888;opacity:1}[_nghost-%COMP%]     .unit-select-popover .popover-content{min-width:min(560px,94vw);max-width:94vw}[_nghost-%COMP%]     .unit-select-popover ion-item{--inner-padding-end: 8px}"]});let s=y;return s})();export{se as SearchPage};

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.