PageSourceSearch

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

js tax-free.no collected 2026-10-06 15:04:52 UTC 14,930 bytes, 1 lines download raw bytes

1import{a as M,b as V}from"./chunk-TNTKRQ5I.js";import{a as st}from"./chunk-NUJSW3VU.js";import{a as w}from"./chunk-XUPYV42H.js";import{a as _t}from"./chunk-U6HR6JGF.js";import{G as dt}from"./chunk-SU7S3GV3.js";import{a as lt}from"./chunk-LCAEI3KW.js";import{d as rt}from"./chunk-NOYQY4IF.js";import{a as ot}from"./chunk-CIDLE6M4.js";import{a as at}from"./chunk-XFNOPY4D.js";import{d as ct}from"./chunk-DL3JVWPO.js";import{a as mt}from"./chunk-4Z5MUJO3.js";import{a as nt}from"./chunk-A3QLZGQA.js";import{Eb as m,Gb as u,Hb as T,Jb as O,Jc as _,Kb as $,Kc as s,Lb as x,Mb as c,Mh as it,Nb as d,Nh as et,Ob as F,Od as Z,Sb as K,Tb as R,Tc as B,V as G,Vb as S,Xb as b,Z as U,Zb as o,ca as h,cb as r,d as N,g as W,ga as q,jc as E,kc as J,mc as L,nc as X,nd as Y,ob as H,oc as Q,rh as tt,u as f,ua as P,v as y,vc as A,wc as j,xc as D,ya as k,za as g}from"./chunk-PMSJWPYZ.js";import{a as I,b as z,h as Ct}from"./chunk-NIF3MU5U.js";var pt=Ct(mt());function ut(e,l){if(e&1&&(c(0,"h6",8),L(1),d()),e&2){let t=o(4);r(),X(t.title())}}function xt(e,l){}function ft(e,l){}function kt(e,l){if(e&1){let t=S();A(0),_(1,"async"),c(2,"trn-link",15),b("onClick",function(){k(t);let n=o(6);return g(n.open())}),d()}if(e&2){let t=s(1,2,o(6).selectedDirectionData$);r(2),x("url",".")("label",`Tax Free ${t.direction.name??""} (${t.airportCode})`)}}function gt(e,l){}function St(e,l){e&1&&(F(0,"trn-tooltip",14),_(1,"cxTranslate"),_(2,"cxTranslate")),e&2&&x("label",s(1,3,"stock.cnc.info.title"))("content",s(2,5,"stock.cnc.info.description"))("iconCode","info")}function bt(e,l){e&1&&(F(0,"trn-tooltip",14),_(1,"cxTranslate"),_(2,"cxTranslate")),e&2&&x("label",s(1,3,"stock.selected_store.info.title"))("content",s(2,5,"stock.selected_store.info.description"))("iconCode","info")}function vt(e,l){if(e&1&&(c(0,"div",10)(1,"div"),F(2,"span",11),d(),c(3,"div",12),L(4),_(5,"cxTranslate"),m(6,xt,0,0)(7,ft,0,0)(8,kt,3,4,"trn-link",13),m(9,gt,0,0)(10,St,3,7,"trn-tooltip",14)(11,bt,3,7,"trn-tooltip",14),d()()),e&2){let t,i,n=o().$implicit,a=o(4);r(2),E("in_stock",n.status==="inStock")("low_stock",n.status==="lowStock")("out_of_stock",n.status==="outOfStock"),r(2),Q(" ",s(5,9,n.title)," "),r(2),u((t=n.type)===a.TrnStockType.ONLINE_EXCLUSIVE?6:t===a.TrnStockType.AUTO_STORE?7:8),r(3),u((i=n.type)===a.TrnStockType.ONLINE_EXCLUSIVE?9:i===a.TrnStockType.AUTO_STORE?10:11)}}function ht(e,l){if(e&1&&m(0,vt,12,11,"div",10),e&2){let t=l.$implicit;u(t?0:-1)}}function yt(e,l){if(e&1){let t=S();c(0,"div",0)(1,"div",7),m(2,ut,2,1,"h6",8),O(3,ht,1,1,null,null,T),d(),c(5,"trn-link",9),_(6,"cxTranslate"),b("onClick",function(){k(t);let n=o(3);return g(n.open())}),d()()}if(e&2){let t=o(3);r(2),u(t.title()?2:-1),r(),$(l),r(2),x("label",t.label()||s(6,2,"common.see_stock_in_all_airports"))}}function Pt(e,l){if(e&1){let t=S();c(0,"div",17)(1,"trn-button",18),b("onClick",function(){k(t);let n=o().$implicit,a=o(3);return g(a.viewAirport(n))}),d()()}if(e&2){let t=o().$implicit;o();let i=D(5);E("active",t.airportCode===(i==null?null:i.airportCode)),r(),J("borderless"),x("label",t.cityName)("size","medium")("color","secondary")}}function Tt(e,l){if(e&1&&m(0,Pt,2,7,"div",16),e&2){let t=l.$implicit;u(t?0:-1)}}function Ot(e,l){if(e&1){let t=S();c(0,"trn-badge",26),_(1,"async"),b("onClick",function(){k(t);let n=o(2).$implicit,a=o(2).$implicit,C=o(2).$implicit,p=o(3);return g(p.selectDirectionData(C.airportCode,a.code,n))}),d()}if(e&2){o();let t=D(0),i=o().$implicit,n=o(7),a=n.getStockLevelStatus(i.inPhysicalStoreStockStatus);x("type",n.getAvailabilityBadgeType(i.inPhysicalStoreStock,a,t))("label",s(1,2,n.getAvailabilityLabel(i,i.inPhysicalStoreStock,a)))}}function $t(e,l){if(e&1){let t=S();c(0,"trn-badge",27),_(1,"async"),b("onClick",function(){k(t);let n=o(2).$implicit,a=o(2).$implicit,C=o(2).$implicit,p=o(3);return g(p.selectDirectionData(C.airportCode,a.code,n))}),d()}if(e&2){o();let t=D(0),i=o().$implicit,n=o(7);x("type",t?i.inStock?"available-active":"not-available-active":i.inStock?"available":"not-available")("label",s(1,2,n.getClickAndCollectShortBadgeLabel(i)))}}function Dt(e,l){if(e&1){let t=S();c(0,"trn-badge",26),_(1,"async"),b("onClick",function(){k(t);let n=o(2).$implicit,a=o(2).$implicit,C=o(2).$implicit,p=o(3);return g(p.selectDirectionData(C.airportCode,a.code,n))}),d()}if(e&2){o();
1let t=D(0),i=o().$implicit,n=o(7),a=n.getStockLevelStatus(i.inStockStatus);x("type",n.getAvailabilityBadgeType(i==null?null:i.inStock,a,t))("label",s(1,2,n.getAvailabilityLabel(i,i==null?null:i.inStock,a)))}}function wt(e,l){if(e&1&&(A(0),_(1,"async"),m(2,Ot,2,4,"trn-badge",24)(3,$t,2,4,"trn-badge",25)(4,Dt,2,4,"trn-badge",24)),e&2){let t=o().$implicit,i=o(2).$implicit,n=o(2).$implicit,a=o(3);j(s(1,1,a.isSelectedDirection$(n.airportCode,i.code,t))),r(2),u(t.hasPhysicalStore?2:t.autoStore?3:4)}}function Mt(e,l){if(e&1&&m(0,wt,5,4),e&2){let t=l.$implicit;u(t?0:-1)}}function Ft(e,l){if(e&1&&(c(0,"div",21)(1,"p",22),L(2),d(),c(3,"div",23),O(4,Mt,1,1,null,null,T),d()()),e&2){let t=o().$implicit;r(2),X(t.name),r(2),$(t.directions)}}function Et(e,l){if(e&1&&m(0,Ft,6,1,"div",21),e&2){let t=l.$implicit;u(t?0:-1)}}function Lt(e,l){if(e&1&&(c(0,"div",20),O(1,Et,1,1,null,null,T),d()),e&2){let t=o().$implicit;o();let i=D(5);E("active",t.airportCode===(i==null?null:i.airportCode)),r(),$(t.terminals)}}function At(e,l){if(e&1&&m(0,Lt,3,2,"div",19),e&2){let t=l.$implicit;u(t?0:-1)}}function Bt(e,l){if(e&1){let t=S();m(0,yt,7,4,"div",0),_(1,"async"),c(2,"trn-modal",1),_(3,"cxTranslate"),K(4,2),A(5),_(6,"async"),c(7,"div",3),O(8,Tt,1,1,null,null,T),d(),c(10,"div",4),O(11,At,1,1,null,null,T),d(),R(),K(13,5),c(14,"trn-button",6),_(15,"cxTranslate"),b("onClick",function(){k(t);let n=o(2);return g(n.applyDirection())}),d(),R(),d()}if(e&2){let t,i=l,n=o(2);u((t=s(1,9,n.directionStocks$))?0:-1,t),r(2),x("identifier",n.modalId)("closable",!1)("size","large")("padding",!1)("title",s(3,11,"common.product_stock")),r(3),j(s(6,13,n.selectedAirport$)),r(3),$(i),r(3),$(i),r(3),x("label",s(15,16,"common.change_location"))("size","medium")("fill",!0)}}function Vt(e,l){if(e&1&&(m(0,Bt,16,18),_(1,"async")),e&2){let t,i=o();u((t=s(1,1,i.stocks$))?0:-1,t)}}var ai=(()=>{class e{cartService=P(dt);modalService=P(rt);stockService=P(V);shopService=P(ct);translation=P(tt);productCode=B();productCode$=Z(this.productCode);title=B();label=B();TrnStockType=M;cartFeatureAvailable=!nt.disableCart;modalId=(0,pt.uniqueId)("productStockDetailsModal_");activeShop$=this.shopService.shops$;stocks$=this.productCode$.pipe(q(t=>this.stockService.fetchStock$(t)),f(t=>this.sortCities(t?.cities)||[]),h({bufferSize:1,refCount:!0}));activeDirectionData$=y({activeShop:this.activeShop$,stocks:this.stocks$}).pipe(f(({activeShop:t,stocks:i})=>{if(!(t&&t.terminal&&t.direction))return null;let n=i.find(p=>p.airportCode===t.airport),a=n?.terminals.find(p=>p.code===t.terminal.code),C=a?.directions.find(p=>p.code===t.direction.code&&p.storeCode===t.direction.storeCode);return{airportCode:n?.airportCode,terminalCode:a?.code,direction:C}}),h({bufferSize:1,refCount:!0}));_selectedDirectionData$=new N(null);selectedDirectionData$=y([this._selectedDirectionData$.asObservable(),this.activeDirectionData$]).pipe(f(([t,i])=>t||i),h({bufferSize:1,refCount:!0}));activeAirport$=y([this.activeShop$,this.stocks$]).pipe(f(([t,i])=>i.find(({airportCode:n})=>t.airport===n)),h({bufferSize:1,refCount:!0}));_selectedAirport$=new N(null);selectedAirport$=y([this._selectedAirport$.asObservable(),this.activeAirport$]).pipe(f(([t,i])=>t||i),h({bufferSize:1,refCount:!0}));directionStocks$=y([this.activeShop$,this.stocks$]).pipe(f(([t,i])=>{if(!t?.direction)return[];let a=((i||[]).find(({airportCode:v})=>v===t?.airport)?.terminals||[]).find(({code:v})=>v===t?.terminal?.code)?.directions||[],C=a.find(v=>v.code===t?.direction?.code),p=a.find(v=>v.autoStore);return(C?.hasPhysicalStore||!1?[p]:[z(I({},C),{autoStore:!0})]).concat(C).filter(Boolean)}),f(t=>t.map(i=>V.getStockDataForDirection(i))),f(t=>{let i=t.some(n=>M.ONLINE_EXCLUSIVE===n.type);return t.map(n=>z(I({},n),{title:this.stockTitle(n,i)}))}),h({bufferSize:1,refCount:!0}));stockTitle(t,i){if(t.type===M.ONLINE_EXCLUSIVE)return"stock.online_exclusive";if(i)return"stock.unavailable_in_store";let n=t.type===M.AUTO_STORE?"cnc":"selected_store";switch(t.status){case w.IN_STOCK:return`stock.${n}.in_stock`;case w.OUT_OF_STOCK:return`stock.${n}.out_of_stock`;case w.LOW_STOCK:return`stock.${n}.low_stock`}return null}viewAirport(t){W.schedule(()=>{this._selectedAirport$.next(t)})}isSelectedDirection$(t,i,n){return this.selectedDirectionData$.pipe(U(),f(a=>
1a?a.airportCode===t&&a.terminalCode===i&&(a.direction.code===n.code&&a.direction.storeCode===n.storeCode||a.direction.autoStore&&n.autoStore):!1),G())}selectDirectionData(t,i,n){this._selectedDirectionData$.next({airportCode:t,terminalCode:i,direction:n})}applyDirection(){this.selectedDirectionData$.pipe(U()).subscribe(t=>{t&&(this.shopService.setActiveAirport(t.airportCode),this.shopService.setActiveTerminal(t.terminalCode),this.shopService.setActiveDirection(t.direction?.code)),this.close()})}getStockLevelStatus(t){return V.getStockStatus(t??"")}getAvailabilityLabel(t,i,n){if(!i)return this.translation.translate("common.not_available_for",{name:t?.name});let a=n===w.LOW_STOCK?"common.few_available_for":"common.available_for";return this.translation.translate(a,{name:t?.name})}getAvailabilityBadgeType(t,i,n){return t?i===w.LOW_STOCK?n?"low-available-active":"low-available":n?"available-active":"available":n?"not-available-active":"not-available"}getClickAndCollectShortBadgeLabel(t){return t?.inStock?this.translation.translate("common.available_for_click_and_collect"):this.translation.translate("common.not_available_for_click_and_collect")}open(){this.modalService.open(this.modalId)}close(){this.modalService.close(this.modalId)}sortCities(t){let i=["OSL","BGO","SVG","TRD","KRS"];return t.sort((a,C)=>i.indexOf(a.airportCode)-i.indexOf(C.airportCode))}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=H({type:e,selectors:[["trn-product-stock-details"]],inputs:{productCode:[1,"productCode"],title:[1,"title"],label:[1,"label"]},decls:1,vars:1,consts:[[1,"stock-details"],[3,"identifier","closable","size","padding","title"],["content",""],[1,"airport-list"],[1,"all-airport-stock"],["footer",""],[3,"onClick","label","size","fill"],[1,"selected-airport-stock-details"],[1,"stock-details-title"],["appearance","button",3,"onClick","label"],[1,"stock-details-item"],[1,"stock-details-indicator"],[1,"stock-details-text"],[3,"url","label"],[1,"stock-details-tooltip",3,"label","content","iconCode"],[3,"onClick","url","label"],[1,"select-airport",3,"active"],[1,"select-airport"],[3,"onClick","label","size","color"],[1,"airport-stock",3,"active"],[1,"airport-stock"],[1,"terminal-stock"],[1,"terminal-name"],[1,"terminal-directions"],["size","large",3,"type","label"],["iconPlacement","icon-left","size","large",3,"type","label"],["size","large",3,"onClick","type","label"],["iconPlacement","icon-left","size","large",3,"onClick","type","label"]],template:function(i,n){i&1&&m(0,Vt,2,3),i&2&&u(n.cartFeatureAvailable?0:-1)},dependencies:[et,at,lt,ot,st,_t,Y,it],styles:['.stock-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:8px;justify-content:flex-end}@media all and (min-width:992px){.stock-details[_ngcontent-%COMP%]{flex-direction:row}}.selected-airport-stock-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;flex:1}.stock-details-title[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;font-size:14px;line-height:16px;letter-spacing:normal;padding-top:0;padding-bottom:0}@media all and (min-width:576px){.stock-details-title[_ngcontent-%COMP%]{font-size:16px;line-height:18px;letter-spacing:normal;padding-top:3px;padding-bottom:3px}}.stock-details-title[_ngcontent-%COMP%]{margin-bottom:8px}.stock-details-item[_ngcontent-%COMP%]{font-size:14px;display:flex;align-items:flex-start}.stock-details-item[_ngcontent-%COMP%]   .stock-details-indicator[_ngcontent-%COMP%]{margin-top:.35em}
1.stock-details-item[_ngcontent-%COMP%]   trn-link[_ngcontent-%COMP%]    {display:inline}.stock-details-item[_ngcontent-%COMP%]   trn-link[_ngcontent-%COMP%]     a{display:inline}.stock-details-item[_ngcontent-%COMP%]   trn-link[_ngcontent-%COMP%]     .link-label{display:inline;white-space:initial}.stock-details-item[_ngcontent-%COMP%]   trn-tooltip[_ngcontent-%COMP%]     .icon-link{height:12px;width:auto;font-size:12px}.stock-details-item[_ngcontent-%COMP%]   trn-tooltip[_ngcontent-%COMP%]     .icon-link   img{height:12px;width:auto}.stock-details-item[_ngcontent-%COMP%]   trn-tooltip[_ngcontent-%COMP%]     .icon-link{margin:0 12px}.stock-details-item[_ngcontent-%COMP%]   .stock-details-tooltip[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.stock-details-indicator[_ngcontent-%COMP%]{display:inline-block;margin-right:.6em}.stock-details-indicator.in_stock[_ngcontent-%COMP%]{width:.65em;height:.65em;border-radius:50%;background:#31844d}.stock-details-indicator.low_stock[_ngcontent-%COMP%]{width:.65em;height:.65em;border-radius:50%;background:#ded11d}.stock-details-indicator.out_of_stock[_ngcontent-%COMP%]{width:.65em;height:.65em;border-radius:50%;background:#e3000f}.stock-badge[_ngcontent-%COMP%]{display:flex}.all-airports-stock-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media all and (max-width:991px){.all-airports-stock-container[_ngcontent-%COMP%]{height:calc(100vh - 24px)}}.airport-list[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding:0 16px;overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none}.airport-list[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.select-airport[_ngcontent-%COMP%]{position:relative}.select-airport.active[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#007a48}.select-airport[_ngcontent-%COMP%]:not(.active)   trn-button[_ngcontent-%COMP%]  .button-label:not(:hover){color:#0000008c}.airport-stock[_ngcontent-%COMP%]{display:none;flex-direction:column;gap:14px;padding:16px;border-top:solid 1px rgba(0,0,0,.1)}.airport-stock.active[_ngcontent-%COMP%]{display:flex}.terminal-stock[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.terminal-name[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;font-size:14px;line-height:16px;letter-spacing:normal;padding-top:0;padding-bottom:0}@media all and (min-width:576px){.terminal-name[_ngcontent-%COMP%]{font-size:18px;line-height:24px;letter-spacing:normal;padding-top:0;padding-bottom:0}}.terminal-directions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:16px}@media all and (min-width:992px){.terminal-directions[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap;gap:6px}}']})}return e})();export{ai 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.