PageSourceSearch

https://www.gardensillustrated.com/chunk-5BPDLDGU.js

js gardensillustrated.com collected 2026-10-02 04:21:11 UTC 16,526 bytes, 2 lines download raw bytes

1import{a as Ue,b as St,c as Be,d as wt}from"./chunk-P2VMNUBR.js";import{a as Ge,b as Tt}from"./chunk-5WTUBVIN.js";import{c as je,e as bt}from"./chunk-2T2WS4SX.js";import{a as X,b as It}from"./chunk-HUUBZTH7.js";import{b as q,c as vt}from"./chunk-IMMPUTIX.js";import{i as Fe,j as xt}from"./chunk-5ADT5EX4.js";import{a as We,b as Et}from"./chunk-LS52HLFW.js";import{a as Ae,d as yt}from"./chunk-WXDPVM5Z.js";import{b as J,e as Ct}from"./chunk-VDO5H3U7.js";import{a as ze,b as _t}from"./chunk-JKQEY5YB.js";import{$c as pt,Ae as gt,Ec as h,Fc as Q,Ia as w,Id as Oe,J as _e,Kd as ut,Mc as ht,Na as at,Pa as Re,Q as tt,Qa as lt,Ra as c,Sb as De,T as it,Tb as ct,U as nt,Ua as Pe,Uc as Me,Vc as dt,Vd as $e,Yd as mt,Z as Te,_ as rt,_c as Le,ba as Ee,ea as ot,ed as Ne,fb as Ve,fd as ft,ja as Ie,ka as st,o as we,p as W,pe as He,t as be,zc as ke}from"./chunk-ZH6ZNVE5.js";import{Aa as g,Ba as de,C as re,D as oe,Db as $,Fa as et,Gc as Ce,Ic as ye,Ja as E,Nb as H,Oa as I,Ob as R,Qb as P,Ta as pe,Tb as U,Ub as A,Uc as G,V as se,Vb as S,Wb as x,Xb as V,Yb as ge,Yc as xe,_ as ae,aa as Ke,cd as D,ec as F,gc as B,hb as v,ic as s,ja as r,mc as ve,nc as j,oc as z,pa as N,qa as O,qb as fe,s as ie,sa as le,ta as T,tc as Se,ua as ce,xa as he,xb as ue,z as ne,zb as me}from"./chunk-7ECHXWGJ.js";import{a as f,b as ee,d as L,f as te,h as y}from"./chunk-HQXTCKBE.js";var u,Qe,qe=L(()=>{u=(function(i){return i.ICON="ICON",i.TEXT_ICON="TEXT_ICON",i})(u||{}),Qe={active:!1,pullMessage:"PULL_TO_REFRESH_PULL",releaseMessage:"PULL_TO_REFRESH_RELEASE",template:u.ICON}});var Z,Je=L(()=>{be();D();dt();Ve();at();_t();qe();st();D();Z=(()=>{class i{static{this.delta=150}static{this.threshold=50}constructor(){this.elementRef=r(E),this.renderer=r(fe),this.document=r(T),this.platformId=r(I),this.domHelper=r(Ie),this.defaultConfig=f({},Qe),this.storefrontPullToRefresh=G(void 0),this.onRefresh=G(c),this.loading=!1,this.touchStartHandler=e=>this.onTouchStart(e),this.touchMoveHandler=e=>this.onTouchMove(e),this.touchEndHandler=e=>this.onTouchEnd(e),this.iconStarted=!1,this.translatePipe=new Me}ngOnInit(){this.config=f(f({},this.defaultConfig),this.storefrontPullToRefresh()),this.translatePipe.transform(this.config.pullMessage).subscribe(e=>this.pullMessage=e),this.translatePipe.transform(this.config.releaseMessage).subscribe(e=>this.releaseMessage=e)}ngAfterViewInit(){we(this.platformId)&&(this.loader=this.renderer.createElement("div"),this.renderer.addClass(this.loader,"pull-to-refresh-loader"),this.renderer.setStyle(this.loader,"height",`${i.delta}px`),this.renderer.setStyle(this.loader,"margin-top",`-${i.delta}px`),this.config.template&&this.renderer.setAttribute(this.loader,this.domHelper.leanDom?"data-pxp-template":"template",this.config.template),this.loadingSpinner=this.renderer.createElement("div"),this.renderer.addClass(this.loadingSpinner,"pull-to-refresh-loading-spinner"),this.renderer.addClass(this.loadingSpinner,"storefront-spinner"),this.renderer.setAttribute(this.loadingSpinner,this.domHelper.leanDom?"data-pxp-type":"type","tail"),this.renderer.setProperty(this.loadingSpinner,"innerHTML",ze.tail.replace(/\$id/g,"id-"+Date.now())),this.renderer.appendChild(this.loader,this.loadingSpinner),this.config.template===u.ICON?this.initIcon():this.initTextIcon(),this.renderer.appendChild(this.elementRef.nativeElement,this.loader),this.document.body.addEventListener("touchmove",c,{passive:!0}),this.elementRef.nativeElement.parentNode.addEventListener("touchstart",this.touchStartHandler,{passive:!0}),this.elementRef.nativeElement.parentNode.addEventListener("touchmove",this.touchMoveHandler,{passive:!0}),this.elementRef.nativeElement.parentNode.addEventListener("touchend",this.touchEndHandler,{passive:!0}))}initTextIcon(){this.loadingMessage=this.renderer.createElement("div"),this.renderer.appendChild(this.loader,this.loadingMessage)}initIcon(){this.loadingIcon=this.renderer.createElement("i"),this.renderer.addClass(this.loadingIcon,"icon"),this.renderer.addClass(this.loadingIcon,"icon-spinner"),this.renderer.setStyle(this.loadingIcon,"color","var(--spinnerColor)"),this.renderer.appendChild(this.loader,this.loadingIcon)}ngOnDestroy(){this.elementRef.nativeElement.parentNode&&(this.elementRef.nativeElement.parentNode.removeEventListener("touchstart",this.touchStartHandler),this.elementRef.nativeElement.parentNode.removeEventListener("touchmove",this.touchMoveHandler),this.elementRef.nativeElement.parentNode.removeEventListener("touchend",this.touchEndHandler))}onTouchStart(e){this.config.active&&!this.loading&&this.document.scrollingElement.scrollTop<=0&&(
1delete this.currentTouch,this.renderer.setStyle(this.loader,"transition","none"),this.touchStart=w(e))}startTextIcon(){this.renderer.setProperty(this.loadingMessage,"innerText",this.pullMessage),this.iconStarted=!0}startIcon(){this.renderer.setStyle(this.loadingIcon,"display","flex"),this.renderer.setStyle(this.loadingIcon,"transform","rotate(0deg)"),this.iconStarted=!0}onTouchMove(e){if(this.config.active&&!this.loading&&this.touchStart){let t=w(e);if(!this.currentTouch&&t.y<this.touchStart.y){delete this.touchStart;return}if(t.y-this.touchStart.y<i.threshold)return;this.currentTouch=w(e);let n=Math.min(this.currentTouch.y-this.touchStart.y,i.delta);this.renderer.setStyle(this.loader,"margin-top",`-${i.delta-n}px`),this.config.template===u.ICON?this.updateIcon(n):this.updateTextIcon(n),e.cancelable&&e.preventDefault()}}updateTextIcon(e){this.iconStarted||this.startTextIcon(),this.currentTouch.y-this.touchStart.y>i.delta?this.renderer.setProperty(this.loadingMessage,"innerText",this.releaseMessage):this.renderer.setProperty(this.loadingMessage,"innerText",this.pullMessage)}updateIcon(e){this.iconStarted||this.startIcon();let t=(e-i.threshold)/(i.delta-i.threshold);t===1?this.renderer.setStyle(this.loadingIcon,"filter","none"):this.renderer.setStyle(this.loadingIcon,"filter","grayscale(100%)"),this.renderer.setStyle(this.loadingIcon,"transform",`rotate(${t*320}deg)`)}onTouchEnd(e){this.config.active&&!this.loading&&this.touchStart&&this.currentTouch&&(this.currentTouch=w(e),this.currentTouch.y-this.touchStart.y>i.delta?this.refresh():this.renderer.setStyle(this.loader,"margin-top",`-${i.delta}px`),this.config.template===u.ICON?this.endIcon():this.endTextIcon())}endTextIcon(){this.renderer.setProperty(this.loadingMessage,"innerText",""),this.iconStarted=!1}endIcon(){this.renderer.setStyle(this.loadingIcon,"display","none"),this.iconStarted=!1}refresh(){this.config.template===u.ICON?this.endIcon():this.endTextIcon(),this.renderer.setStyle(this.loader,"margin-top",0),this.renderer.setStyle(this.loadingSpinner,"visibility","visible"),this.loading=!0,this.renderer.setStyle(this.loader,"transition","margin-top 100ms ease"),this.renderer.setStyle(this.loader,"margin-top",`${-i.delta/2}px`),delete this.touchStart,delete this.currentTouch,this.onRefresh()().then(e=>this.onRefreshEnd(),e=>this.onRefreshEnd())}onRefreshEnd(){this.loading=!1,this.renderer.setStyle(this.loader,"margin-top",`-${i.delta}px`),this.renderer.setStyle(this.loadingSpinner,"visibility","hidden")}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=me({type:i,selectors:[["","storefrontPullToRefresh",""]],inputs:{storefrontPullToRefresh:[1,"storefrontPullToRefresh"],onRefresh:[1,"onRefresh"]}})}}return i})()});function Vt(i,a){if(i&1){let e=F();x(0,"div",0),ge(1,"span",1),x(2,"button",2),B("click",function(){N(e);let n=s();return O(n.reload())}),V()()}if(i&2){let e,t,n=s();v(),S("storefrontTranslate",((e=n.viewConfig())==null?null:e.errorMessage)||"VIEW_ERROR")("storefrontTranslateArgs",ye(3,Pt,n.dataSourceError().code)),v(),S("storefrontTranslate",((t=n.viewConfig())==null?null:t.errorButtonLabel)||"VIEW_ERROR_BUTTON")}}function Dt(i,a){}function kt(i,a){if(i&1&&$(0,Dt,0,0,"ng-template",4),i&2){let e=a.$implicit,t=s(2);S("baseConfig",t.children()[e])}}function Mt(i,a){}function Lt(i,a){if(i&1){let e=F();$(0,Mt,0,0,"ng-template",7),B("inViewport",function(n){N(e);let o=s().$index,l=s(3);return O(l.onVisibilityChanged(o,n))})}if(i&2){let e=s().$implicit,t=s(3);S("baseConfig",e)("controlsSticky",e.sticky)("lazy",t.isLazy())}}function Nt(i,a){if(i&1&&R(0,Lt,1,3,null,6),i&2){let e=a.$implicit;P(e._isEnabled?0:-1)}}function Ot(i,a){if(i&1&&(x(0,"div",5),U(1,Nt,1,1,null,null,H().trackByElement,!0),V()),i&2){let e=s(2);S("storefrontPullToRefresh",e.viewConfig().pullToRefresh)("onRefresh",e.onRefresh),v(),A(e.children())}}function $t(i,a){if(i&1&&(x(0,"div",3),U(1,kt,1,1,null,4,H().trackByElement,!0),V(),R(3,Ot,3,2,"div",5)),i&2){let e=s();v(),A(e.visibleStickyChildren()),v(2),P(e.viewConfig()&&e.children()?3:-1)}}var Xe,Ze,Pt,m,Di,Ht=L(()=>{be();D();tt();Xe=te(it());Ke();et();St();bt();ht();Je();mt();Ct();xt();ct();Tt();ft();vt();yt();Ve();ut();ot();pt();gt();wt();lt();It();rt();Ze=te(nt());Et();D();Pt=i=>[i];m=Re(),Di=(()=>{class i{constructor(){this.injector=r(le),this.document=r(T),this.platformId=r(I),this.purpleEnv=r(He),this.route=r(_e),this.store=r(q),this.changeDetectorRef=r(xe),this.ngZone=r(he),this.contextService=r(De),this.cleanUpService=r(Fe),this.elementRef=r(E),this.transferState=r(pe),this.ssrService=r(Ne),this.purpleService=r($e),this.metaService=r(Ge),this.globalService=r(Le),this.viewService=r(Be),this.serverOnlyService=r(Te),this.destroyRef=r(ce),this.pendingTasks=r(de),this.viewConfig=g(void 0),this.context={},this.dataSources=[],this.children=g(void 0),this.visibleStickyChildren=g(new Set),this.dataSourceError=g(void 0),this.isLazy=g(!1),this.isModal=!1,this.onRefresh=()=>this.update()}get className(){let e=this.viewConfig();return e&&e.name}ngOnInit(){this.isLazy.set(this.getIsLazy()),this.route.data.subscribe(()=>{}),Pe(this.pendingTasks,()=>y(this,null,function*(){let{cfg:e}=yield ie(this.viewService.distinctView$(this.isModal));yield this.updateViewWithConfig(e)})),this.store.subscribe(this.purpleService.lifecycle$.pipe(oe(({type:e})=>e===Xe.APP_STATE_TYPE.RESUMED),se(1)).pipe(ae(1e3)),()=>{this.handleUpdate()}),this.store.subscribe(ne(m,Oe),()=>{this.handleUpdate()})}updateViewWithConfig(e){return y(this,null,function*(){let{viewConfig:t,pathParams:n,viewContext:o}=e;if(console.debug(`init view '${t.name}' at path '${this.getPath()}'`),o&&this.contextService.setMultipleData(o),!Ue(t))return;this.viewConfig.set(t),W(this.platformId)&&t.cache&&this.metaService.setCacheMeta(t.cache),t.errorPage&&this.serverOnlyService.setStatusCode(Number(o?.errorCode||404));let l=h(t.title,this.contextService.getCurrentViewContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1),d=h(t.seo,this.contextService.getCurrentViewContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1);this.metaService.setViewSeoMetadata(d??{},l),this.onConfigReceived(),this.contextService.cancelPendingParamUpdates(),yield this.contextService.updateParamsContext(),this.outlet=this.contextService.getActiveOutlet(),n&&this.contextService.setOutletData("pathParams",n,this.outlet);let C=!0,Y=!1,K=null;this.store.subscribe(this.contextService.viewContext$,k=>y(this,null,function*(){if(k.outlet!==this.outlet)return;this.context=k,C&&(this.loadDataSources(),this.loadPageConfigs(),this.loadJsonLD(),C=!1);let M=this.viewConfig();this.children.set(M&&M.content.map(p=>{let _=ke(p,this.context,this.contextService.$functions,this.globalService.getGlobalData(),!1);return ee(f({},p),{_isEnabled:_})})),this.changeDetectorRef.detectChanges(),(yield Promise.allSettled(this.childComponents.map(p=>
1p.lazyLoad()))).forEach((p,_)=>{p.status==="rejected"&&console.error(`Failed to load child component at index ${_}:`,this.children()?.[_]?.type,p.reason)});let Ye=M.postView,b=this.getTrackingConfig(k);(!Y||Ye&&!(0,Ze.default)(K,b?.params))&&b&&(this.store.dispatch(Ae(b)),Y=!0,K=b.params),C=!1}),c,c,"viewContext")})}ngOnDestroy(){this.contextService.clear(),this.contextService.clearOutletData(),this.metaService.clearViewSeoMetadata()}reload(){m.location.reload()}handleUpdate(){this.pullToRefresh?this.pullToRefresh.refresh():this.update(),this.cleanUpService.deleteExpiredIssues()}loadDataSources(){this.dataSources=[];let e=this.viewConfig()?.data;if(e){this.dataSources=e.map(o=>{let l=h(o,this.context,this.contextService.$functions,this.globalService.getGlobalData());return je(this.injector,l,o,this.elementRef.nativeElement,this.document)}).filter(o=>!!o);let t=re(...this.dataSources.map(o=>o.error$)),n=o=>{this.dataSourceError.set(o)};this.store.subscribe(t,n,c,c,"error"),this.dataSources.forEach(o=>{o.loadData()})}}loadPageConfigs(){let e=h(this.viewConfig()?.pageConfigs,this.context,this.contextService.$functions,this.globalService.getGlobalData())||null;this.contextService.setData("pageConfigs",e)}loadJsonLD(){let e=this.document.getElementById("json-ld"),t=this.viewConfig();if(!e&&t?.jsonLD&&(e=this.document.createElement("script"),e.setAttribute("id","json-ld"),e.setAttribute("type","application/ld+json"),document.head.appendChild(e)),t?.jsonLD){let n=h(t.jsonLD,this.context,this.contextService.$functions,this.globalService.getGlobalData());e.innerHTML=n}else e&&(e.innerHTML="")}getPath(){let e=this.contextService.getPath();return e||(console.error("view.getPath called but no path in ctx service"),W(this.platformId)||m.isUniversal?J(Ee(this.document.location.href)):J(m.location.hash).split("#/")[1])}getTrackingConfig(e){let t=f({},this.route.snapshot.queryParams),n=this.viewConfig();for(let l in n?.viewTrackingParams){let d=h(l,e,this.contextService.$functions,this.globalService.getGlobalData(),!0);if(d&&!Q(d))return;let C=h(n.viewTrackingParams[l],e,this.contextService.$functions,this.globalService.getGlobalData(),!0);if(d&&!Q(d))return;t[d]=C}return{url:this.viewService.getAbsoluteLastPath()||m.location.href,targetUrl:m.location.href,key:n?.name,params:t}}onConfigReceived(){this.document.scrollingElement.scrollTop=0}update(){return y(this,null,function*(){yield Promise.all([this.contextService.update(),this.purpleService.updateDownloadHandlers(),this.purpleService.updateBookmarks(),this.purpleService.updateRepeatablePublicationProducts()])})}onVisibilityChanged(e,t){this.visibleStickyChildren.update(n=>{let o=new Set(n);return t?o.delete(e):o.add(e),o})}trackByElement(e,t){if(typeof t=="string"||typeof t=="number")return t||e;let n=t?._uuid;if(!n)throw"error trackByElement: expected _uuid";return n}getIsLazy(){return!(m.isUniversal&&!this.ssrService.currentPrebootStatus)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=ue({type:i,selectors:[["storefront-view"]],viewQuery:function(t,n){if(t&1&&ve(Z,5)(X,5),t&2){let o;j(o=z())&&(n.pullToRefresh=o.first),j(o=z())&&(n.childComponents=o)}},hostVars:2,hostBindings:function(t,n){t&2&&Se(n.className)},features:[Ce([q])],decls:2,vars:1,consts:[[1,"view-error"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"action-button",3,"click","storefrontTranslate"],[1,"sticky-elements"],[3,"pxpDynamicComponent","baseConfig"],[1,"content",3,"storefrontPullToRefresh","onRefresh"],[3,"pxpDynamicComponent","baseConfig","controlsSticky","lazy"],[3,"inViewport","pxpDynamicComponent","baseConfig","controlsSticky","lazy"]],template:function(t,n){t&1&&R(0,Vt,3,5,"div",0)(1,$t,4,1),t&2&&P(n.dataSourceError()?0:1)},dependencies:[We,X,Z],styles:[`storefront-view,.pxp-view{display:block;min-height:100vh;padding-top:var(--appBarHeight);padding-bottom:var(--navigationHeight);background-color:var(--backgroundColor);transition:all .15s ease}storefront-view .content,.pxp-view .content{position:relative}storefront-view .sticky-elements,.pxp-view .sticky-elements{position:fixed;z-index:19;width:100%}storefront-view .view-error,.pxp-view .view-error{display:flex;flex-direction:column;align-items:flex-start;padding:var(--gutter)}storefront-view .view-error>.action-button,.pxp-view .view-error>.action-button{color:#fff;background-color:var(--secondaryColor)}body.scrolled storefront-tab-navigation.scroll-hide~storefront-view,body.scrolled storefront-tab-navigation.scroll-hide~.pxp-view,body.scrolled .pxp-tab-navigation.scroll-hide~storefront-view,body.scrolled .pxp-tab-navigation.scroll-hide~.pxp-view{padding-bottom:0}body.scrolled storefront-tab-navigation.scroll-shrink~storefront-view,body.scrolled storefront-tab-navigation.scroll-shrink~.pxp-view,body.scrolled .pxp-tab-navigation.scroll-shrink~storefront-view,body.scrolled .pxp-tab-navigation.scroll-shrink~.pxp-view{padding-bottom:var(--navigationShrinkHeight)}
2`],encapsulation:2})}}return i})()});
2export{Z as a,Je as b,Di as c,Ht as d};

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.