PageSourceSearch

https://www.tax-free.no/chunk-T76FDHLY.js

js tax-free.no collected 2026-10-06 15:02:20 UTC 6,531 bytes, 1 lines download raw bytes

1import{a as G,b as J}from"./chunk-SEXALJXL.js";import{a as E}from"./chunk-JRFWOYYF.js";import{a as Q}from"./chunk-VTK5J2DS.js";import"./chunk-3SDC52M5.js";import"./chunk-4KNFSRE5.js";import"./chunk-PMDFIPZC.js";import{g as H}from"./chunk-KJKIPU3Z.js";import"./chunk-6NEIA7KQ.js";import"./chunk-CNBMOLNM.js";import"./chunk-YMDDGZ5U.js";import"./chunk-3OL3GXBR.js";import"./chunk-4DAUCYCB.js";import"./chunk-XUPYV42H.js";import"./chunk-7EDV3FYO.js";import"./chunk-OBUWOHWX.js";import"./chunk-KUHFH43V.js";import"./chunk-JC5PZU5R.js";import"./chunk-UNHUUWFF.js";import"./chunk-SU7S3GV3.js";import"./chunk-7OWGJP2F.js";import"./chunk-OT5BIL5I.js";import"./chunk-VCI6DQU6.js";import"./chunk-3OSB33KW.js";import"./chunk-DL3JVWPO.js";import"./chunk-XERX3YYW.js";import"./chunk-AUTQTPL7.js";import"./chunk-4Z5MUJO3.js";import"./chunk-A3QLZGQA.js";import{Ia as q,Y as O}from"./chunk-LJH5OBMW.js";import{Eb as v,F as b,Gb as P,Ge as w,Jc as m,Kc as p,Lb as x,Mh as U,Nh as z,Ob as _,Sh as F,V as o,Zb as h,_e as R,ca as g,cb as S,ga as l,nd as A,ob as B,pb as k,ph as N,ra as T,rh as j,sg as W,u as i,ua as c,v as s,vc as y,wc as L,wh as I,xc as M,ye as D}from"./chunk-PMSJWPYZ.js";import"./chunk-NIF3MU5U.js";function Z(a,V){if(a&1&&(_(0,"trn-breadcrumb",0),m(1,"cxTranslate"),m(2,"async")),a&2){h();let e=M(0),t=h();x("crumbs",e)("ariaLabel",p(1,3,"common.breadcrumb_navigation"))("type",p(2,5,t.pageType$))}}function ee(a,V){if(a&1&&(y(0),m(1,"async"),v(2,Z,3,7,"trn-breadcrumb",0)),a&2){let e=L(p(1,1,h().crumbs$));S(2),P(e?2:-1)}}var K=(()=>{class a{component=c(O);breadcrumbAdapter=c(G);cmsService=c(N);pageMetaService=c(F);productService=c(q);routingService=c(W);translationService=c(j);wishListService=c(H);productAlgoliaService=c(Q);page$=this.cmsService.getCurrentPage().pipe(b(Boolean));crumbs$=this.page$.pipe(l(e=>{switch(e?.template){case"CategoryPageTemplate":case"ProductListPageTemplate":return this.setCategoryCrumbs();case"AccountPageTemplate":return this.setAccountPageCrumbs();case"TrnArticlePageTemplate":return this.setArticleCrumbs(e);case"ProductDetailsPageTemplate":case"ProductDetailsBrandPageTemplate":return this.setProductPageCrumbs();case"WishlistPageTemplate":case"SharedWishlistPageTemplate":return this.setWishListPageCrumbs(e.pageId);case"SearchResultsListPageTemplate":return this.setSearchPageCrumbs();case"BrandLandingPageTemplate":return this.setBrandsPageCrumbs();case"BrandCategoryPageTemplate":return this.setBrandCategoryCrumbs();default:return this.setDefaultCrumbs()}}));ariaLabel$=this.component.data$.pipe(i(e=>e.name));pageType$=this.page$.pipe(i(e=>J.isProductPage(e)?"product-page":""));title$=this.pageMetaService.getMeta().pipe(b(R),i(e=>(e.heading||e.title)??""));routerUrl$=this.routingService.getRouterState().pipe(i(e=>e.state.url),o(),g(1));categoryCode$=this.routerUrl$.pipe(i(e=>e.split("/").find(t=>t.includes("category"))?.replace("category","")),b(Boolean),o(),g({bufferSize:1,refCount:!0}));categoryCrumbsData$=this.categoryCode$.pipe(l(e=>this.breadcrumbAdapter.getBreadcrumb$(e,"CategoryPage")),g({bufferSize:1,refCount:!0}));setCategoryCrumbs(){return s([this.categoryCrumbsData$,this.translationService.translate("common.home")]).pipe(i(([e,t])=>[{label:t,link:"/"}].concat(e)))}setBrandCategoryCrumbs(){return s([this.categoryCrumbsData$,this.translationService.translate("common.home"),this.translationService.translate("common.brands")]).pipe(i(([e,t,r])=>[{label:t,link:"/"},{label:r,link:"/merker"}].concat(e)))}setAccountPageCrumbs(){let e=this.routingService.getRouterState().pipe(i(n=>n.state.params.orderCode),o()),t=e.pipe(l(n=>this.translationService.translate("order_history.order_id",{id:n}))),r=this.translationService.translate("order_history.orders");return s([this.setDefaultCrumbs(),this.title$,r,t,e]).pipe(o(),i(([n,u,C,d,$])=>{let X=n.slice(0,1);if($){let f="/my-account";return X.concat([{label:u,link:f},{label:C,link:`${f}/orders`},{label:d,link:`${f}/order/${$}`}])}return n}))}setArticleCrumbs(e){if(e.type==="TrnArticlePage"){let r="tips-og-trender";return s([this.translationService.translate("article.article_listing_page"),this.breadcrumbAdapter.getBreadcrumb$(e.label,"TrnArticlePage"),this.translationService.translate("common.home")]).pipe(o(),i(([n,u,C])=>{let d={label:C,link:"/"};return this.containsPath(e,r)?[d,...u]:[d,{label:n,link:"/"+r},...u]}))}return this.setDefaultCrumbs()}containsPath(e,t){return e.label?.split("/").some(r=>r===t)||!1}setProductPageCrumbs(){return s([this.pageMetaService.getMeta(),this.productService.getProduct()]).pipe(o(),i(([e,t])=>[...e?.breadcrumbs,{label:t?.name,link:t?.url}]))}setBrandsPageCrumbs(){return s([this.page$,this.translationService.translate("common.home"),this.translationService.translate("common.brands")]).pipe(o(),i(([e,t,r])=>[{label:t,link:"/"},{label:r,link:"/merker"},{label:e?.title,link:e?.label}]))}setSearchPageCrumbs(){return s({textHome:this.translationService.translate("common.home"),textSearchResults:this.productAlgoliaService.queryParamsSearchQuery$.pipe(l(e=>this.translationService.translate("common.search_results",{query:e})))}).pipe(o(),i(({textHome:e,textSearchResults:t})=>[{label:e,link:"/"},{label:t,link:"/"}]))}setWishListPageCrumbs(e){if(e==="sharedWishlist"){let t=this.routingService.getPageContext().pipe(l(r=>this.cmsService.getPageState(r)),l(r=>this.wishListService.get(r.pageContextCode)));return s([t,this.translationService.translate("common.home")]).pipe(o(),i(([r,n])=>[{label:n,link:"/"},{label:r?.name,link:`/wishlist/${r?.id}`}]))}else return s([this.page$,this.translationService.translate("common.home")]).pipe(o(),i(([t,r])=>[{label:r,link:"/"},{label:t?.title,link:t?.label}]))}setDefaultCrumbs(){return s([this.page$,this.translationService.translate("common.home")]).pipe(o(),i(([e,t])=>[{label:t,link:"/"},{label:e?.title,link:e?.label}]))}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=B({type:a,selectors:[["trn-cms-breadcrumb"]],decls:3,vars:3,consts:[[3,"crumbs","ariaLabel","type"]],template:function(t,r){if(t&1&&(y(0),m(1,"async"),v(2,ee,3,4)),t&2){let n=p(1,1,r.page$);S(2),P(n?2:-1)}},dependencies:[D,I,z,E,A,U],styles:["[_nghost-%COMP%]{display:flex;padding-top:36px;padding-bottom:16px}@media all and (min-width:992px){[_nghost-%COMP%]{padding-top:48px}}"]})}return a})();var fe=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275mod=k({type:a});static \u0275inj=T({providers:[w({cmsComponents:{BreadcrumbComponent:{component:K}}})]})}return a})();export{fe as TrnBreadcrumbModule};

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.