PageSourceSearch

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

js tax-free.no collected 2026-10-06 15:04:08 UTC 8,083 bytes, 1 lines download raw bytes

1import{a as ge}from"./chunk-ZE2PQFM2.js";import{a as de}from"./chunk-BPP3E2TO.js";import{a as me}from"./chunk-3SDC52M5.js";import{d as se,e as pe,f as L}from"./chunk-4KNFSRE5.js";import{d as ce}from"./chunk-PMDFIPZC.js";import{a as le}from"./chunk-UNHUUWFF.js";import{a as re}from"./chunk-VCI6DQU6.js";import{g as oe}from"./chunk-3OSB33KW.js";import{Y as ae}from"./chunk-LJH5OBMW.js";import{Cb as z,D as N,Eb as _,F as D,Fc as v,Gb as C,Jb as j,Jc as f,Kb as H,Kc as M,Lb as u,Lc as Q,Mb as p,Mh as ne,Nb as m,Nc as W,Nh as ie,Ob as U,Ub as k,V as O,Vb as $,Xb as T,Z as I,Zb as l,ca as E,cb as r,g as R,ga as b,hc as w,jc as V,m as B,mc as x,md as X,nc as F,nd as Y,o as g,ob as q,oc as G,ph as te,tb as P,u as c,ua as s,v as d,vc as J,wc as K,xc as y,xe as Z,ya as S,ye as ee,za as A}from"./chunk-PMSJWPYZ.js";var ue=i=>({list:i}),fe=i=>({category:i}),he=(i,a)=>a.facet.escapedValue;function xe(i,a){if(i&1){let e=$();p(0,"a",5),f(1,"trnDecodeUrl"),T("click",function(){S(e);let n=l(2),o=y(0);return A(n.clickHandler(o.root.facet))}),x(2),f(3,"cxTranslate"),m()}if(i&2){l(2);let e=y(0);u("routerLink",M(1,3,e.root.link.url))("queryParams",e.root.link.query),r(2),G(" ",Q(3,5,"common.all_category",v(8,fe,e.root.facet.name))," ")}}function ye(i,a){if(i&1&&(p(0,"div",1),_(1,xe,4,10,"a",2),p(2,"ul",3),k(3,4),m()()),i&2){l();let e=w(4),t=y(0);r(),C(t.root?1:-1),r(2),u("ngTemplateOutlet",e)("ngTemplateOutletContext",v(3,ue,t.items))}}function ve(i,a){if(i&1&&U(0,"trn-icon",10),i&2){let e=l().$implicit;u("icon",e.facet.isRefined?"keyboard_arrow_up":"keyboard_arrow_down")}}function Me(i,a){i&1&&k(0)}function Oe(i,a){if(i&1&&(p(0,"ul"),P(1,Me,1,0,"ng-container",11),m()),i&2){let e=l().$implicit;l(2);let t=w(4);r(),u("ngTemplateOutlet",t)("ngTemplateOutletContext",v(2,ue,e.children))}}function be(i,a){if(i&1){let e=$();p(0,"li")(1,"a",6),f(2,"trnDecodeUrl"),T("click",function(){let n=S(e).$implicit,o=l(2);return A(o.clickHandler(n.facet))}),p(3,"p",7),x(4),m(),p(5,"div",8)(6,"p",9),x(7),m(),_(8,ve,1,1,"trn-icon",10),m()(),_(9,Oe,2,4,"ul"),m()}if(i&2){let e=a.$implicit,t=l(2),n=((e.children==null?null:e.children.length)??0)>0;r(),V("active",e.facet.isRefined),u("routerLink",M(2,9,e.link.url))("queryParams",e.link.query),z("aria-current",t.isDeepestRefined(e.facet)?"page":null),r(3),F(e.facet.name),r(3),F(e.facet.count),r(),C(n?8:-1),r(),C(n?9:-1)}}function Se(i,a){if(i&1&&j(0,be,10,11,"li",null,he),i&2){let e=a.list;H(e)}}var Ve=(()=>{class i{algoliaService=s(me);searchInsightService=s(de);navigationService=s(ge);categoryService=s(ce);componentData=s(ae);cmsService=s(te);transferStateService=s(le);node$=this.navigationService.node$;categoryCodes$=this.categoryService.pageCategoryCodes$;sortMenuAvailable$=d([this.componentData.data$.pipe(c(e=>e.sortCategoryMenu==="true"),O()),this.categoryCodes$.pipe(c(e=>e.length>0))]).pipe(c(([e,t])=>e&&t),O());sortedCategories$=this.categoryService.pageContextCategories$;algoliaFacets$=this.algoliaService.getFacetValues$("category","name:asc").pipe(c(e=>e||null));cachedSortedFacets$=this.sortMenuAvailable$.pipe(b(e=>e?d({algoliaFacets:this.algoliaFacets$,sortedCategories:this.sortedCategories$}).pipe(c(({algoliaFacets:t,sortedCategories:n})=>Array.isArray(t)?t:this.sortFacetsByCategories(t,n))):this.algoliaFacets$.pipe(c(t=>Array.isArray(t)?t:this.sortFacetsByNavigation(t,this.navigationService.getContextAwareNavigation())))));sortedFacets$=this.transferStateService.withTransfer$("category_menu_facets",N(g(null),this.cachedSortedFacets$)).pipe(D(Boolean),E({bufferSize:1,refCount:!0}));menu$=this.sortedFacets$.pipe(b(e=>{if(!this.isHierarchicalFacet(e)||!e.data?.length)return g(null);let t=pe(e),n=se(e);return n.length?d({root:t?this.facetLink$(t).pipe(c(o=>({facet:t,link:o}))):g(null),items:d(n.map(o=>this.toMenuNode$(o)))}).pipe(c(({root:o,items:h})=>({root:o,items:[...h].sort((_e,Ce)=>Number(L(_e.link))-Number(L(Ce.link)))}))):g({root:null,items:[]})}));toMenuNode$(e){let t=e.data??[];return d({link:this.facetLink$(e),children:t.length>1?d(t.map(n=>this.toMenuNode$(n))):g([])}).pipe(c(({link:n,children:o})=>({facet:e,link:n,children:o})))}isHierarchicalFacet(e){return!Array.isArray(e)}isDeepestRefined(e){return e.isRefined&&!e.data?.some(t=>t.isRefined)}sortFacetsByCategories(e,t){let n=this.findCategory(t,e?.path)?.subcategories?.map(o=>o.path)??[];return Object.assign({},e,Array.isArray(e?.data)?{data:this.mapToOrder(e.data,n,"path").map(o=>this.sortFacetsByCategories(o,t))}:{})}findCategory(e,t){if(!e.length)return null;let n=e.find(o=>o.path===t);return n||this.findCategory(e.flatMap(o=>o?.subcategories??[]),t)}sortFacetsByNavigation(e,t){return Object.assign({},e,Array.isArray(e?.data)?{data:e.data.map(n=>this.sortFacetsByNavigation(Object.assign({},n,Array.isArray(n?.data)?{data:this.mapToOrder(n.data,t?.[n.name])}:{}),t))}:{})}mapToOrder(e,t,n="name"){return t?(e??[]).sort((o,h)=>t.indexOf(h[n])===-1?-1:t.indexOf(o[n])-t.indexOf(h[n])):e}facetLink$(e){return this.algoliaService.getFilterLink$("category",e.escapedValue,"replace")}clickHandler(e){e?.escapedValue&&this.algoliaService.index$().pipe(I(),B(R)).subscribe(t=>this.searchInsightService.clickedFilters({index:t,filters:[`category:${e.escapedValue}`]}))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=q({type:i,selectors:[["trn-algolia-category-menu"]],decls:5,vars:4,consts:[["recursiveListTmpl",""],[1,"menu"],[1,"root",3,"routerLink","queryParams"],[1,"list"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"root",3,"click","routerLink","queryParams"],[1,"item",3,"click","routerLink","queryParams"],[1,"name"],[1,"count-and-arrow"],[1,"count"],["aria-hidden","true",1,"icon",3,"icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,n){if(t&1&&(J(0),f(1,"async"),_(2,ye,4,5,"div",1),P(3,Se,2,0,"ng-template",null,0,W)),t&2){let o=K(M(1,1,n.menu$));r(2),C(o?2:-1)}},dependencies:[oe,X,ee,Z,ie,Y,re,ne],styles:["[_nghost-%COMP%]{display:block;font-size:0}.menu[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.1);background-color:#f2f1f0;border-radius:12px;padding:12px}@media all and (max-width:991px){.menu[_ngcontent-%COMP%]{margin-top:16px}}.list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding-left:16px}.list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:14px;line-height:16px;letter-spacing:normal;padding-top:0;padding-bottom:0;font-family:Source Sans Pro,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased}li[_ngcontent-%COMP%]{padding:4px 0}.item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left}.item.active[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{text-decoration:underline}.item.active[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%], .item.active[_ngcontent-%COMP%]   .count-and-arrow[_ngcontent-%COMP%]{color:#007a48}.root[_ngcontent-%COMP%]{font-size:16px;line-height:18px;letter-spacing:normal;padding-top:3px;padding-bottom:3px;font-family:Source Sans Pro,sans-serif;font-weight:600;-webkit-font-smoothing:antialiased;color:#007a48;display:inline-block;margin-bottom:8px;text-decoration:underline}@media(hover:hover){.root[_ngcontent-%COMP%]:hover{color:#004a28}}.name[_ngcontent-%COMP%]{font-size:16px;line-height:18px;letter-spacing:normal;padding-top:3px;padding-bottom:3px;font-family:Source Sans Pro,sans-serif;font-weight:600;-webkit-font-smoothing:antialiased;color:#000}@media(hover:hover){.name[_ngcontent-%COMP%]:hover{color:#004a28}}.count-and-arrow[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:flex-end}@media(hover:hover){.count-and-arrow[_ngcontent-%COMP%]:hover{color:#004a28}}.count[_ngcontent-%COMP%]{font-size:12px;line-height:14px;letter-spacing:normal;padding-top:1px;padding-bottom:1px;color:#0000008c}.icon[_ngcontent-%COMP%]{height:16px;width:auto;font-size:16px}.icon[_ngcontent-%COMP%]     img{height:16px;width:auto}.icon[_ngcontent-%COMP%]{align-items:center;display:flex;margin-left:6px;vertical-align:middle}"]})}return i})();export{Ve as a};

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.