PageSourceSearch

https://members.dendrology.org/4907.259f0753bc35390d.js

js dendrology.org collected 2026-10-02 07:55:43 UTC 7,864 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkVeryConnect=self.webpackChunkVeryConnect||[]).push([[4907],{66946:(G,D,a)=>{a.d(D,{Z:()=>Z});var L=a(5296),l=a(14026),t=a(52805),f=a(9803),h=a(25336),E=a(3811),m=a(50725),R=a(89969),P=a(20546),T=a(92508),S=a(10066),y=a(83375),A=a(76473),C=a(85032),I=a(87563),B=a(13135);const U={administrative_area_level_1:1,administrative_area_level_2:2,country:0},v={0:5e5,1:2e5,2:5e4,default:1e4};let x=(()=>{class s{constructor(e){this.geoRes=e}getAdministrativeLevel(e){return U[e?.raw?.types[0]]??null}getRadius(e){return null!=e?v[e]??v.default:v.default}isAutocompleteGeocodeResult(e){return Boolean(e?.position?.coordinates)}searchByLocation(e){const o=this.getAdministrativeLevel(e),n=this.getRadius(o);if(null!==o&&this.isAutocompleteGeocodeResult(e)){const c={params:{location:this.toRadius(e,o)}};return this.geoRes.search(c).pipe((0,m.U)(u=>Object.assign(u,{location:u.id})),(0,I.K)(()=>(0,h.of)(this.searchByRadius(e,n))))}return(0,h.of)(this.searchByRadius(e,n))}toRadius(e,o){const[n,c]=e.position.coordinates;return[c,n,o].join(",")}searchByRadius(e,o){return this.isAutocompleteGeocodeResult(e)?{radius:this.toRadius(e,o)}:null}}return s.\u0275fac=function(e){return new(e||s)(l.LFG(B.Q))},s.\u0275prov=l.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();var K=a(38674),W=a(84773);let N=(()=>{class s{validate(e){const o=e.value;return!o||o.id&&o.position&&o.position.coordinates?null:{PlaceSearchValidator:!0}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=l.lG2({type:s,selectors:[["tg-search-place","ngModel",""],["tg-search-place","formControl",""],["tg-search-place","formControlName",""]],standalone:!0,features:[l._Bn([{multi:!0,provide:t.Cf,useExisting:(0,l.Gpc)(()=>s)}])]}),s})(),Z=(()=>{class s extends A.S{constructor(e){super(),this.locSvc=e,this.clearable=!0,this.locationSelected$=new l.vpe,this.emitName$=new f.X(!1),this.fullModel=null}get emitName(){return this.emitName$.value}set emitName(e){e!==this.emitName&&this.emitName$.next(e)}ngOnDestroy(){super.ngOnDestroy(),(0,y.completeAll)(this.emitName$,this.locationSelected$)}writeValue(e){if(e){this.fullModel=e;const o=e.location||e.radius,n=o?.id||o?.radius||null,c=this.placeSearch;let u=c.textCache.getText()||o?.name||n||null;(0,T.isRadiusString)(n)?u=c.textCache.findLocationNameByRadius(n)||u:(0,S.K)(n)&&(u=c.textCache.findLocationNameById(n)||u),u!==c.textCache.getText()&&(c.setNativeValue(u),this.cdr.detectChanges())}else this.fullModel=null,this.ctrl.value&&(this.placeSearch.setNativeValue(null),this.cdr.detectChanges())}createCtrl(){return this.fb.control(null)}valueChanges(){const e=Symbol("Location selected");return this.ctrl.valueChanges.pipe((0,E.w)(o=>o?(0,P.isLocationSearchShorthandValue)(o)?(0,h.of)({location:o}):(0,T.isRadiusSearchShorthandValue)(o)?(0,h.of)({radius:o}):this.locSvc.isAutocompleteGeocodeResult(o)?this.locSvc.searchByLocation(o).pipe((0,m.U)(n=>{let c,u;const p=o.formatted_address,O=this.placeSearch.textCache;if(!n)return null;if("location"in n)return c="location",u={id:n.location,name:p},O.recordLocationIdResponse(p,n.location),{[c]:u,[e]:n};const M=n.radius||this.locSvc.toRadius(o,this.getRadiusDistance(o));return c="radius",u={radius:M,name:p},O.recordRadiusResponse(p,M),{[c]:u,[e]:o}})):(0,h.of)(null):(0,h.of)(null)),(0,E.w)(o=>{if(!o)return(0,h.of)(null);const n=o.radius?{radius:o.radius.radius}:{location:o.location.id};return n[e]=o[e],this.emitName$.pipe((0,m.U)(c=>c?o:n))}),(0,m.U)(o=>({...this.fullModel,location:null,radius:null,...o,[e]:o?.[e]})),(0,R.b)(o=>{let n=null;o[e]&&(n=o[e]),delete o[e],this.locationSelected$.emit(n)}),(0,L.H)("[LocationRadiusSearch.value$]"))}getRadiusDistance(e){return this.locSvc.getAdministrativeLevel(e)??this.locSvc.getRadius()}}return s.\u0275fac=function(e){return new(e||s)(l.Y36(x))},s.\u0275cmp=l.Xpm({type:s,selectors:[["tg-location-radius-search"]],viewQuery:function(e,o){if(1&e&&l.Gf(C.U,7),2&e){let n;l.iGM(n=l.CRH())&&(o.placeSearch=n.first)}},hostVars:2,hostBindings:function(e,o){2&e&&l.ekj("tg-input-error-boundary",!0)},inputs:{clearable:"clearable",emitName:"emitName"},outputs:{locationSelected$:"locationSelected"},features:[l._Bn([{multi:!0,provide:t.JU,useExisting:(0,l.Gpc)(()=>s)}]),l.qOj],decls:1,vars:3,consts:[[3,"autocomplete","clearable","formControl","touched"]],template:function(e,o){1&e&&(l.TgZ(0,"tg-search-place",0),l.NdJ("touched",function(){return o.onTouch()}),l.qZA()),2&e&&l.Q6J("autocomplete","none")("clearable",o.clearable)("formControl",o.ctrl)},dependencies:[K.r,W.s,t.JJ,t.oH,C.U,N],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),s})()},77786:(G,D,a)=>{a.d(D,{g:()=>g});var L=a(64762),l=a(662),t=a(14026),f=a(52805),h=a(43383),E=a(9803),m=a(3811),R=a(85597),P=a(56625),T=a(97482),S=a(48e3),y=a(92362),A=a(87450),C=a(64177),I=a(99092),B=a(84773),U=a(85868),v=a(90237),x=a(5830),K=a(80499),W=a(28479),N=a(61958),Z=a(11705),s=a(4087),_=a(81117),e=a(74831),o=a(26477),n=a(64683);function c(d,i){1&d&&(t._UZ(0,"span",8),t.ALo(1,"tr")),2&d&&t.Q6J("tooltip",t.lcZ(1,1,"adminOnlyTT"))}function u(d,i){if(1&d&&t._UZ(0,"tg-member-tag",9),2&d){const r=i.$implicit;t.Q6J("tagColour",r.colour)("tagName",r.name)}
1}function p(d,i){if(1&d){const r=t.EpF();t.TgZ(0,"label",3),t.YNc(1,c,2,3,"span",4),t.TgZ(2,"tg-info-bubble"),t._uU(3),t.ALo(4,"tr"),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.ALo(7,"tr"),t.qZA()(),t.TgZ(8,"tg-clearable-input",5)(9,"tg-dropdown-select",6),t.NdJ("ngModelChange",function($){t.CHM(r);const Q=t.oxw(2);return t.KtG(Q.onChange($))})("touched",function(){t.CHM(r);const $=t.oxw(2);return t.KtG($.onTouch())}),t.YNc(10,u,1,2,"tg-member-tag",7),t.qZA()()}if(2&d){const r=t.oxw(2);t.Q6J("for",r.id),t.xp6(1),t.Q6J("ngIf",r.showLock),t.xp6(2),t.Oqu(t.lcZ(4,12,r.displayTooltip)),t.xp6(3),t.hij("",t.lcZ(7,14,r.displayLabel),":"),t.xp6(2),t.Q6J("disabled",r.disabled),t.xp6(1),t.Q6J("controlId",r.id)("ngModel",r.value)("ngModelOptions",r.MODEL_OPTS)("disabled",r.disabled)("valueKey","id")("multi",!0)("items",r.tags)}}function O(d,i){if(1&d&&t.YNc(0,p,11,16,"ng-template",2),2&d){const r=t.oxw();t.Q6J("ngIf",r.tags.length)}}function M(d,i){1&d&&t._UZ(0,"tg-loader-spinner")}class g extends y.k{constructor(i){super(),this.tagRes=i,this.displayLabel="tags",this.displayTooltip="tagsTT",this.showLock=!0,this._show$=new E.X(void 0)}ngOnDestroy(){this._show$.complete()}ngOnInit(){this.value=[],this.id=(0,h.Z)("tag-search-"),this.tags?this._show$.complete():this._show$.pipe((0,m.w)(i=>this.tagRes.query({params:i?{only:i}:void 0})),(0,R.R)(this._show$.pipe((0,P.Z)()))).subscribe((0,l.e)(i=>{this.tags=i,this.cdr.markForCheck()}))}normaliseWriteValue(i){return Array.isArray(i)?i:[]}}g.\u0275fac=function(i){return new(i||g)(t.Y36(A.c))},g.\u0275cmp=t.Xpm({type:g,selectors:[["tg-tag-search"]],hostVars:2,hostBindings:function(i,r){2&i&&t.ekj("tg-dropdown-error-boundary",!0)},inputs:{displayLabel:"displayLabel",displayTooltip:"displayTooltip",show:"show",showLock:"showLock",tags:"tags"},features:[t._Bn([{multi:!0,provide:f.JU,useExisting:(0,t.Gpc)(()=>g)},{provide:T.z,useValue:"user-search"}]),t.qOj],decls:3,vars:2,consts:[[3,"ngIf","ngIfElse"],["tplLoading",""],[3,"ngIf"],[3,"for"],["class","fa fa-unlock-alt text-danger",3,"tooltip",4,"ngIf"],[3,"disabled"],[3,"clearable-input-target","controlId","ngModel","ngModelOptions","disabled","valueKey","multi","items","ngModelChange","touched"],[3,"tagColour","tagName",4,"dropdownSelectItem"],[1,"fa","fa-unlock-alt","text-danger",3,"tooltip"],[3,"tagColour","tagName"]],template:function(i,r){if(1&i&&(t.YNc(0,O,1,1,"ng-template",0),t.YNc(1,M,1,0,"ng-template",null,1,t.W1O)),2&i){const J=t.MAs(2);t.Q6J("ngIf",r.tags)("ngIfElse",J)}},dependencies:[C.O5,I.X,B.s,U.G,v.I,x.K,K._,W.q,N.y,Z.Z,s.W,_.e,e.i9,f.JJ,f.On,o.d,n.H],encapsulation:2,changeDetection:0}),(0,L.gn)([(0,S.Z)("_show$")],g.prototype,"show",void 0)}}]);

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.