PageSourceSearch

https://members.britishscreenforum.co.uk/3362.84d65531df671e63.js

js britishscreenforum.co.uk collected 2026-10-05 05:17:08 UTC 9,805 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkVeryConnect=self.webpackChunkVeryConnect||[]).push([[3362],{79341:(T,E,e)=>{e.d(E,{F:()=>i});var c=e(52805),u=e(74831),_=e(55324),t=e(79903),a=e(85032),l=e(14026);let i=(()=>{class o{}return o.\u0275fac=function(C){return new(C||o)},o.\u0275mod=l.oAB({type:o}),o.\u0275inj=l.cJS({imports:[_.GlobalModule,t.g,u.z8,c.u5,c.UX,a.U]}),o})()},26583:(T,E,e)=>{e.d(E,{p:()=>p});var c=e(64762),u=e(82668),_=e(40921),t=e(35134),a=e(98411),l=e(3811),i=e(42809),o=e(14026),M=e(61126),C=e(33043);class p{constructor(d,g,O,v){this.win=d,this.qs=g,this.dom=O,this.zone=v}get maps$(){const d=`__tgGmapInit_${Date.now()}_${Math.random().toString().replace(".","")}`;return new a.y(g=>{if(!this.win)return g.complete();if(typeof google<"u")return(0,u.t)(g,google.maps);if(this.win[d]){const A=this.win[d];return void(this.win[d]=()=>{try{A()}finally{(0,u.t)(g,google.maps)}})}this.win[d]=()=>{(0,u.t)(g,google.maps)};const v=`https://maps.googleapis.com/maps/api/js?${this.qs.stringifyQS({callback:d,key:"AIzaSyCRe8xnGnTxBSRt8xs44hSxeu6VrfzNuTA",language:"en-GB",libraries:"places",loading:"async",v:"quarterly"})}`,D=this.dom.loadScriptAsync(v,{async:"",defer:""}).subscribe({error:g.error.bind(g)});return()=>{D.unsubscribe(),delete this.win[d]}}).pipe((0,i.d)(1))}autocompleteGeocode(d,g){return this.maps$.pipe((0,l.w)(O=>new a.y(v=>{let D;return this.zone.runOutsideAngular(()=>{const A=new O.places.Autocomplete(d,g);D=O.event.addListener(A,"place_changed",()=>{const m=A.getPlace();!m?.place_id||!m.geometry?.location||this.zone.run(()=>{var P;v.next({formatted_address:(P=m,P.types?.includes("establishment")?`${P.name}, ${P.formatted_address}`:P.formatted_address),id:`google:${m.place_id}`,position:{coordinates:[m.geometry.location.lng(),m.geometry.location.lat()],type:"Point"},raw:m,source:"google"})})})}),()=>{D&&O.event.removeListener(D)}})))}}p.\u0275fac=function(d){return new(d||p)(o.LFG(t.WINDOW),o.LFG(M.N),o.LFG(C.v),o.LFG(o.R0b))},p.\u0275prov=o.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),(0,c.gn)([(0,_.a)(!0)],p.prototype,"maps$",null)},64439:(T,E,e)=>{e.d(E,{P:()=>u});var c=e(14026);let u=(()=>{class _{constructor(){this._text=null,this.idNameMappings=new Map,this.radiusNameMappings=new Map}static createDummyCache(){return new _}findLocationNameById(a){return this.idNameMappings.get(a)??null}findLocationNameByRadius(a){return this.radiusNameMappings.get(a)??null}getText(){return this._text}recordLocationIdResponse(a,l){this.idNameMappings.set(l,a)}recordRadiusResponse(a,l){this.radiusNameMappings.set(l,a)}setText(a){this._text=a}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})()},85032:(T,E,e)=>{e.d(E,{U:()=>y});var c=e(662),u=e(82668),_=e(5296),t=e(14026),a=e(52805),l=e(43383),i=e(74831),o=e(92706),M=e(95517),C=e(16435),I=e(85597),p=e(75372),P=e(20546),d=e(92508),g=e(55324),O=e(87065),v=e(79903),D=e(97482),A=e(92362),m=e(64439),L=e(33043),U=e(26583),R=e(64177),W=e(61225),x=e(38674),K=e(85868),S=e(5830),V=e(62441),G=e(64683),F=e(49363);const N=["input"],J=["nativeModel"];function z(h,f){if(1&h){const n=t.EpF();t.TgZ(0,"div",3)(1,"div",4),t.GkF(2,5),t.TgZ(3,"div",6)(4,"button",7),t.NdJ("click.passive",function(){t.CHM(n);const r=t.oxw();return t.KtG(r.reset(!0))}),t.qZA()(),t.TgZ(5,"div",8),t._UZ(6,"i",9),t.ALo(7,"tr"),t.qZA()()()}if(2&h){const n=t.oxw(),s=t.MAs(4);t.xp6(2),t.Q6J("ngTemplateOutlet",s),t.xp6(2),t.Q6J("disabled",n.disabled),t.xp6(1),t.ekj("hidden",!n.mismatchWarning),t.xp6(1),t.Q6J("tooltip",t.lcZ(7,5,"mismatchTT"))}}function Z(h,f){if(1&h&&(t.TgZ(0,"div",10),t.GkF(1,5),t._UZ(2,"i",9),t.ALo(3,"tr"),t.qZA()),2&h){const n=t.oxw(),s=t.MAs(4);t.xp6(1),t.Q6J("ngTemplateOutlet",s),t.xp6(1),t.ekj("hidden",!n.mismatchWarning),t.Q6J("tooltip",t.lcZ(3,4,"mismatchTT"))}}function $(h,f){if(1&h){const n=t.EpF();t.TgZ(0,"input",11,12),t.NdJ("ngModelChange",function(r){t.CHM(n);const j=t.oxw();return t.KtG(j.onNativeChange(r))})("blur.passive",function(){t.CHM(n);const r=t.oxw();return t.KtG(r.onTouch())})("focus.passive",function(){t.CHM(n);const r=t.oxw();return t.KtG(r.nativeFocused=!0)}),t.ALo(3,"tr"),t.qZA()}if(2&h){const n=t.oxw();t.Q6J("autocomplete",n.autocomplete)("ngModel",n.nativeValue)("tgConsumeControlId","id")("disabled",n.disabled)("placeholder",n.placeholder||t.lcZ(3,5,"example"))}}const B=(0,t.Gpc)(()=>y);let y=(()=>{class h extends A.k{constructor(n,s,r){super(),this.dom=n,this.geoSvc=s,this.autocomplete="off",this.clearable=!0,this.includeRaw=!0,this.mismatchWarning=!1,this.nativeFocused=!1,this.geoValue=null,this.textCache=r}get nativeValue(){return this.textCache.getText()}set nativeValue(n){this.textCache.setText(n)}ngAfterViewInit(){this._destroyed$=new o.c,this.setUpOnTouch(),this.geoSvc.autocompleteGeocode(this.input.nativeElement).pipe((0,I.R)(this._destroyed$),(0,_.H)("[PlaceSearch.autocompleteGeocode]")).subscribe((0,c.e)(n=>{this.geoPreReset=null,this.geoValue=n,this.nativeValue=n.formatted_address,this.emitChange(),this.refreshMismatchWarning(),this.onTouch(),this.cdr.detectChanges(),this.parentCdr?.detectChanges()}))}ngOnChanges({includeRaw:n}){n&&this.geoValue&&!n.isFirstChange()&&this.emitChange()}ngOnDestroy(){this._destroyed$&&(0,u.t)(this._destroyed$)}ngOnInit(){this.instanceId=(0,l.Z)(),this.textCache||(this.textCache=m.P.createDummyCache())}onNativeChange(n){this.nativeValue=n,!this.geoValue&&this.geoPreReset&&n===this.geoPreReset.formatted_address&&(this.geoValue=this.geoPreReset,this.emitChange()),this.refreshMismatchWarning()}reset(n=!1){if(this.disabled)return;this.geoValue&&(this.geoPreReset=this.geoValue),this.nativeValue=this.geoValue=null;const s=this.nativeModel?.control;s&&(s.markAsPristine(),s.markAsUntouched()),this.nativeFocused=!1,this.onChange(null),this.refreshMismatchWarning(),n&&this.input?.nativeElement.focus(),this.cdr.detectChanges()}setNativeValue(n){this.nativeValue=n,this.cdr.detectChanges()}tgClearInput(){this.reset()}writeValue(n){n?n.formatted_address?(this.nativeValue=n.formatted_address,this.geoValue=n):(0,P.isLocationSearchShorthandValue)(n)||(0,d.isRadiusSearchShorthandValue)(n)?(this.nativeValue=n.name,this.geoValue=null):"string"==typeof n&&(this.nativeValue=n,this.geoValue=null):(this.nativeValue=null,this.geoValue=null);const s=this.nativeModel?.control;s&&(s.markAsPristine(),s.markAsUntouched()),this.refreshMismatchWarning(),super.writeValue(n)}emitChange(){if(!this.geoValue)return void this.onChange(null);const n={...this.geoValue};this.includeRaw||delete n.raw,this.onChange(n)}isCurrentComponent(n){return"TG-SEARCH-PLACE"===n.tagName&&n.dataset.instanceId===this.instanceId||n.parentElement&&this.isCurrentComponent(n.parentElement)||!1}refreshMismatchWarning(){this.mismatchWarning=!this.disabled&&Boolean(this.nativeModel?.dirty)&&(this.nativeValue||null)!==(this.geoValue?.formatted_address||null)}setUpOnTouch(){typeof document>"u"||(0,M.T)(this.dom.docClick$,(0,C.R)(document,"focus",{passive:!0})).pipe((0,p.h)(n=>this.shouldCallOnTouch(n)),(0,I.R)(this._destroyed$)).subscribe(()=>{this.onTouch()})}shouldCallOnTouch(n){return this.nativeFocused&&!this.isCurrentComponent(n.target)}}
1return h.\u0275fac=function(n){return new(n||h)(t.Y36(L.v),t.Y36(U.p),t.Y36(m.P,8))},h.\u0275cmp=t.Xpm({type:h,selectors:[["tg-search-place"]],viewQuery:function(n,s){if(1&n&&(t.Gf(N,5),t.Gf(J,5)),2&n){let r;t.iGM(r=t.CRH())&&(s.input=r.first),t.iGM(r=t.CRH())&&(s.nativeModel=r.first)}},hostVars:3,hostBindings:function(n,s){2&n&&(t.uIk("data-instance-id",s.instanceId),t.ekj("tg-input-error-boundary",!0))},inputs:{autocomplete:"autocomplete",clearable:"clearable",includeRaw:["raw","includeRaw"],placeholder:"placeholder"},standalone:!0,features:[t._Bn([{multi:!0,provide:a.JU,useExisting:B},{provide:O.G,useExisting:B}],[{provide:D.z,useValue:"geo-place-search"}]),t.qOj,t.TTD,t.jDz],decls:5,vars:2,consts:[["class","clearable",4,"ngIf","ngIfElse"],["tplUnclearable",""],["tplInput",""],[1,"clearable"],[1,"input-group"],[3,"ngTemplateOutlet"],[1,"input-group-btn"],[1,"btn","btn-default",3,"tg-clear-button","disabled","click.passive"],[1,"input-group-addon"],[1,"fa","fa-exclamation-triangle","text-warning","tt",3,"tooltip"],[1,"non-clearable"],["aria-haspopup","true",1,"form-control",3,"autocomplete","ngModel","tgConsumeControlId","disabled","placeholder","ngModelChange","blur.passive","focus.passive"],["input","","nativeModel","ngModel"]],template:function(n,s){if(1&n&&(t.YNc(0,z,8,7,"div",0),t.YNc(1,Z,4,6,"ng-template",null,1,t.W1O),t.YNc(3,$,4,7,"ng-template",null,2,t.W1O)),2&n){const r=t.MAs(2);t.Q6J("ngIf",s.clearable)("ngIfElse",r)}},dependencies:[g.GlobalModule,R.O5,R.tP,W.c,x.r,K.G,S.K,V.h,G.H,a.u5,a.Fj,a.JJ,a.On,i.z8,i.i9,v.g,F.m],styles:["[_nghost-%COMP%]{display:block}.non-clearable[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row}.clearable[_ngcontent-%COMP%] > .input-group[_ngcontent-%COMP%] > .input-group-addon[_ngcontent-%COMP%]{background:#0000;border:none;padding:0}.tt[_ngcontent-%COMP%]{display:inline-block;margin:0 2px}"],changeDetection:0}),h})()},26694:(T,E,e)=>{e.d(E,{o:()=>l});var c=e(52805),u=e(36818),_=e(55324),t=e(79903),a=e(14026);let l=(()=>{class i{}return i.\u0275fac=function(M){return new(M||i)},i.\u0275mod=a.oAB({type:i}),i.\u0275inj=a.cJS({imports:[_.GlobalModule,u.H3,t.g,c.u5,c.UX]}),i})()},35473:(T,E,e)=>{e.d(E,{m:()=>a});var c=e(64177),_=(e(65577),e(14026));let a=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=_.oAB({type:l}),l.\u0275inj=_.cJS({imports:[c.ez]}),l})()},79903:(T,E,e)=>{e.d(E,{g:()=>i});var c=e(64177),u=e(74831),_=e(60057),t=e(35473),a=e(49363),l=e(14026);let i=(()=>{class o{}return o.\u0275fac=function(C){return new(C||o)},o.\u0275mod=l.oAB({type:o}),o.\u0275inj=l.cJS({imports:[a.m,t.m,_.a,u.z8,c.ez]}),o})()}}]);

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.