1var Ui=Object.create;var en=Object.defineProperty;var zi=Object.getOwnPropertyDescriptor;var Hi=Object.getOwnPropertyNames;var Fi=Object.getPrototypeOf,Wi=Object.prototype.hasOwnProperty;var Ki=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}};var qi=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Hi(e))!Wi.call(t,r)&&r!==n&&en(t,r,{get:()=>e[r],enumerable:!(i=zi(e,r))||i.enumerable});return t};var Vi=(t,e,n)=>(n=t!=null?Ui(Fi(t)):{},qi(e||!t||!t.__esModule?en(n,"default",{value:t,enumerable:!0}):n,t));var fn=Ki((Ja,Et)=>{"use strict";var wr=Object.prototype.hasOwnProperty,W="~";function $e(){}Object.create&&($e.prototype=Object.create(null),new $e().__proto__||(W=!1));function yr(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function hn(t,e,n,i,r){if(typeof n!="function")throw new TypeError("The listener must be a function");var s=new yr(n,i||t,r),o=W?W+e:e;return t._events[o]?t._events[o].fn?t._events[o]=[t._events[o],s]:t._events[o].push(s):(t._events[o]=s,t._eventsCount++),t}function tt(t,e){--t._eventsCount===0?t._events=new $e:delete t._events[e]}function F(){this._events=new $e,this._eventsCount=0}F.prototype.eventNames=function(){var e=[],n,i;if(this._eventsCount===0)return e;for(i in n=this._events)wr.call(n,i)&&e.push(W?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(n)):e};F.prototype.listeners=function(e){var n=W?W+e:e,i=this._events[n];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,s=i.length,o=new Array(s);r<s;r++)o[r]=i[r].fn;return o};F.prototype.listenerCount=function(e){var n=W?W+e:e,i=this._events[n];return i?i.fn?1:i.length:0};F.prototype.emit=function(e,n,i,r,s,o){var a=W?W+e:e;if(!this._events[a])return!1;var c=this._events[a],x=arguments.length,p,h;
1if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),x){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,n),!0;case 3:return c.fn.call(c.context,n,i),!0;case 4:return c.fn.call(c.context,n,i,r),!0;case 5:return c.fn.call(c.context,n,i,r,s),!0;case 6:return c.fn.call(c.context,n,i,r,s,o),!0}for(h=1,p=new Array(x-1);h<x;h++)p[h-1]=arguments[h];c.fn.apply(c.context,p)}else{var w=c.length,d;for(h=0;h<w;h++)switch(c[h].once&&this.removeListener(e,c[h].fn,void 0,!0),x){case 1:c[h].fn.call(c[h].context);break;case 2:c[h].fn.call(c[h].context,n);break;case 3:c[h].fn.call(c[h].context,n,i);break;case 4:c[h].fn.call(c[h].context,n,i,r);break;default:if(!p)for(d=1,p=new Array(x-1);d<x;d++)p[d-1]=arguments[d];c[h].fn.apply(c[h].context,p)}}return!0};F.prototype.on=function(e,n,i){return hn(this,e,n,i,!1)};F.prototype.once=function(e,n,i){return hn(this,e,n,i,!0)};F.prototype.removeListener=function(e,n,i,r){var s=W?W+e:e;if(!this._events[s])return this;if(!n)return tt(this,s),this;var o=this._events[s];if(o.fn)o.fn===n&&(!r||o.once)&&(!i||o.context===i)&&tt(this,s);else{for(var a=0,c=[],x=o.length;a<x;a++)(o[a].fn!==n||r&&!o[a].once||i&&o[a].context!==i)&&c.push(o[a]);c.length?this._events[s]=c.length===1?c[0]:c:tt(this,s)}return this};F.prototype.removeAllListeners=function(e){var n;return e?(n=W?W+e:e,this._events[n]&&tt(this,n)):(this._events=new $e,this._eventsCount=0),this};F.prototype.off=F.prototype.removeListener;F.prototype.addListener=F.prototype.on;F.prefixed=W;F.EventEmitter=F;typeof Et<"u"&&(Et.exports=F)});var ht=class extends HTMLElement{connectedCallback(){if(!this.shadowRoot){let e=this.querySelector("template[shadowrootmode]");this.attachShadow({mode:"open"})?.appendChild(e.content.cloneNode(!0)),e.remove()}}};customElements.get("finn-topbar")||customElements.define("finn-topbar",ht);import Gi from"https://assets.finn.no/pkg/@warp-ds/elements-core/v2/element.js";var ft=class extends Gi{constructor(){super(),this._translationSupport=!1}static get properties(){return{enabled:{type:Boolean}}}connectedCallback(){super.connectedCallback(),window.addEventListener("load",()=>{try{let e=document.querySelector("f-broadcast")||document.querySelector("#broadcast");if(!e||!this.enabled||window.CSS&&window.CSS.supports("color","var(--detect)"))return;let n="dismissedBrowserVersionWarning";if(window.sessionStorage.getItem(n)==="true")return;let r=document.createElement("section");r.className="broadcast",r.setAttribute("aria-label",this.i18n.t({id:"browser-warning.broadcast.aria-label",message:"Important message",comment:"aria-label for broadcast warning"}));let s=document.createElement("div");s.className="broadcast__content",s.innerHTML=` 2 <p>${this.i18n.t({id:"browser-warning.broadcast.content.hello",message:"Hey! It looks like you're using an old browser version. To make sure FINN works well for you, please update your browser",comment:"First part of the content of the broadcast warning"})}</p> 3 <p>${this.i18n.t({id:"browser-warning.broadcast.content.expiration",message:"From January 1st 2021 FINN might not work for you at all, as we will have discontinued support for old browsers",comment:"Second part of the content of the broadcast warning"})}</p> 4 <p>${this.i18n.t({id:"browser-warning.broadcast.content.upgrade",message:"Want to try a brand new browser? Here are some suggestions",comment:"Third part of the broadcast warning content. Is followed by a list with links to popular browsers"})} 5 <a class="u-display-block u-mt16" href="https://www.google.com/intl/no/chrome/">Google Chrome</a> 6 <a class="u-display-block u-mt8" href="https://www.microsoft.com/nb-no/edge">Microsoft Edge</a> 7 <a class="u-display-block u-mt8" href="https://www.mozilla.org/nb-NO/firefox/new/">Mozilla Firefox</a> 8 </p> 9 `,r.appendChild(s);let o=document.createElement("span");o.className="icon icon--cross";let a=document.createElement("button");a.className="button button--pill button--small button--has-icon broadcast__dism
9iss",a.type="button",a.setAttribute("aria-label",this.i18n.t({id:"browser-warning.broadcast.dismiss.aria-label",message:"Dismiss",comment:"aria-label for dismiss button in the browser warning broadcast"}));let c=()=>{r.remove(),a.removeEventListener("click",c);try{window.sessionStorage.setItem(n,"true")}catch(x){console.error(x)}};a.addEventListener("click",c),a.appendChild(o),r.appendChild(a),e.appendChild(r)}catch(e){console.error(e)}})}};customElements.define("browser-warning",ft);import pr from"https://assets.finn.no/pkg/@warp-ds/elements-core/v2/element.js";import{LitElement as tr}from"https://assets.finn.no/npm/lit/v3/lit.min.js";import{unsafeStatic as nr,html as ir}from"https://assets.finn.no/npm/lit-3/v3/static-html.js";var ie=t=>typeof t=="string",Ji=t=>typeof t=="function",tn=new Map,rn="en";function vt(t){return[...Array.isArray(t)?t:[t],rn]}function bt(t,e,n){let i=vt(t);n||(n="default");let r;if(typeof n=="string")switch(r={day:"numeric",month:"short",year:"numeric"},n){case"full":r.weekday="long";case"long":r.month="long";break;case"short":r.month="numeric";break}else r=n;return Ze(()=>Qe("date",i,n),()=>new Intl.DateTimeFormat(i,r)).format(ie(e)?new Date(e):e)}function Xi(t,e,n){let i;if(n||(n="default"),typeof n=="string")switch(i={second:"numeric",minute:"numeric",hour:"numeric"},n){case"full":case"long":i.timeZoneName="short";break;case"short":delete i.second}else i=n;return bt(t,e,i)}function pt(t,e,n){let i=vt(t);return Ze(()=>Qe("number",i,n),()=>new Intl.NumberFormat(i,n)).format(e)}function nn(t,e,n,{offset:i=0,...r}){let s=vt(t),o=e?Ze(()=>Qe("plural-ordinal",s),()=>new Intl.PluralRules(s,{type:"ordinal"})):Ze(()=>Qe("plural-cardinal",s),()=>new Intl.PluralRules(s,{type:"cardinal"}));return r[n]??r[o.select(n-i)]??r.other}function Ze(t,e){let n=t(),i=tn.get(n);return i||(i=e(),tn.set(n,i)),i}function Qe(t,e,n){let i=e.join("-");return`${t}-${i}-${JSON.stringify(n)}`}var sn=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,on=t=>t.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(e,n,i)=>{if(n){let r=parseInt(n,16);return String.fromCharCode(r)}else{let r=parseInt(i,16);return String.fromCharCode(r)}}),an="%__lingui_octothorpe__%",Yi=(t,e,n={})=>{let i=e||t,r=o=>typeof o=="object"?o:n[o],s=(o,a)=>{let c=Object.keys(n).length?r("number"):void 0,x=pt(i,o,c);return a.replace(new RegExp(an,"g"),x)};return{plural:(o,a)=>{let{offset:c=0}=a,x=nn(i,!1,o,a);return s(o-c,x)},selectordinal:(o,a)=>{let{offset:c=0}=a,x=nn(i,!0,o,a);return s(o-c,x)},select:Zi,number:(o,a)=>pt(i,o,r(a)||{style:a}),date:(o,a)=>bt(i,o,r(a)||a),time:(o,a)=>Xi(i,o,r(a)||a)}},Zi=(t,e)=>e[t]??e.other;function Qi(t,e,n){return(i={},r)=>{let s=Yi(e,n,r),o=(c,x=!1)=>Array.isArray(c)?c.reduce((p,h)=>{if(h==="#"&&x)return p+an;if(ie(h))return p+h;let[w,d,g]=h,y={};d==="plural"||d==="selectordinal"||d==="select"?Object.entries(g).forEach(([O,B])=>{y[O]=o(B,d==="plural"||d==="selectordinal")}):y=g;let k;if(d){let O=s[d];k=O(i[w],y)}else k=i[w];return k==null?p:p+k},""):c,a=o(t);return ie(a)&&sn.test(a)?on(a):ie(a)?a:a?String(a):""}}var mt=class{_events={};on(e,n){return this._events[e]??=new Set,this._events[e].add(n),()=>this.removeListener(e,n)}removeListener(e,n){let i=this._events[e];i?.delete(n),i?.size===0&&delete this._events[e]}emit(e,...n){let i=this._events[e];if(i)for(let r of[...i])r.apply(this,n)}},gt=class extends mt{_locale="";_locales;_messages={};_missing;_messageCompiler;constructor(e){super(),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),(typeof e.locale=="string"||e.locales)&&this.activate(e.locale??rn,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}setMessagesCompiler(e){return this._messageCompiler=e,this}_load(e,n){let i=this._messages[e];i?Object.assign(i,n):this._messages[e]=n}load(e,n){typeof e=="string"&&typeof n=="object"?this._load(e,n):Object.entries(e).forEach(([i,r])=>this._load(i,r)),this.emit("change")}loadAndActivate({locale:e,locales:n,messages:i}){this._locale=e,this._locales=n||void 0,this._messages[this._locale]=i,this.emit
9("change")}activate(e,n){this._locale=e,this._locales=n,this.emit("change")}_(e,n,i){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let r=i?.message;e||(e=""),ie(e)||(n=e.values||n,r=e.message,e=e.id);let s=this.messages[e],o=s===void 0,a=this._missing;if(a&&o)return Ji(a)?a(this._locale,e):a;o&&this.emit("missing",{id:e,locale:this._locale});let c=s||r||e;return ie(c)&&(this._messageCompiler?c=this._messageCompiler(c):console.warn(`Uncompiled message detected! Message: 10 11> ${c} 12 13That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used. 14ICU features such as interpolation and plurals will not work properly for that message. 15 16Please compile your catalog first. 17`)),ie(c)&&sn.test(c)?on(c):ie(c)?c:Qi(c,this._locale,this._locales)(n,i?.formats)}t=this._.bind(this);date(e,n){return bt(this._locales||this._locale,e,n)}number(e,n){return pt(this._locales||this._locale,e,n)}};function er(t={}){return new gt(t)}var _=er();var ln=["en","nb","fi","da","sv"],cn="en",rr=()=>{var t;let e;switch((t=process==null?void 0:process.env)==null?void 0:t.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},dn=()=>{var t;let e=(t=document?.location)==null?void 0:t.hostname;return e?.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":cn},wt=t=>ln.find(e=>t===e||t.toLowerCase().includes(e))||dn();function sr(){var t;if(typeof window>"u"){let e=rr();return wt(e)}try{let e=(t=document?.documentElement)==null?void 0:t.lang,n=dn();return ln.includes(e)?wt(e??n):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),wt(n))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),cn}}var or=(t,e,n,i,r,s)=>t==="nb"?n:t==="fi"?i:t==="da"?r:t==="sv"?s:e,ar=(t,e,n,i,r)=>{let s=sr(),o=or(s,t,e,n,i,r);_.load(s,o),_.activate(s)},Se={nb:{"icon.title.chevron-left":["Pil til venstre"]},en:{"icon.title.chevron-left":["Leftward arrow"]},fi:{"icon.title.chevron-left":["Nuoli vasemmalle"]},da:{"icon.title.chevron-left":["Pil til venstre"]},sv:{"icon.title.chevron-left":["Pil v\xE4nster"]}};ar(Se.en,Se.nb,Se.fi,Se.da,Se.sv);var lr=class extends tr{render(){let t=_.t({message:"Leftward arrow",id:"icon.title.chevron-left",comment:"Title for chevron-left icon"});return ir`<svg xmlns="http://www.w3.org/2000/svg"width="24"height="24"fill="none"viewBox="0 0 24 24" part="w-icon-chevron-left-24-part">${nr(`<title>${t}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m15.75 20.625-8.25-8.25 8.25-8.25"></path></svg>`}};customElements.get("w-icon-chevron-left-24")||customElements.define("w-icon-chevron-left-24",lr);import{html as mr,render as gr}from"https://assets.finn.no/npm/lit/v3/lit.min.js";import{html as V}from"https://assets.finn.no/npm/lit/v3/lit.min.js";var et=class{constructor(e){this.i18n=e}getBrandText(e){let n=this.i18n.t({id:"onboarding.dialog.content.first-screen.title.t-and-c-link-text.dba",message:"terms and conditions.",comment:"Text for terms and conditions"}),i={dba:{firstScreen:{mainText:V`<div class="text-center"> 18 <h1 class="h4"> 19 ${this.i18n.t({id:"onboarding.dialog.content.first-screen.title.dba",message:"Welcome to a whole new DBA experience",comment:"Title for the onboarding first screen"})} 20 </h1> 21 <p class="modal-main-text"> 22 ${this.i18n.t({id:"onboarding.dialog.content.first-screen.text.dba",message:"DBA has introduced new features that make it easier to buy and sell used items. By continuing I accept DBA's",comment:'Text for the onboarding first screen. This text should have an incomplete sentence. The last part of the sentence ("terms and conditions") is in a separate translation.'})} 23 <a href="https://login.schibstedmarketplaces.dk/terms?client_id=66c5e7ee560c9f32a47dbe39&locale=da_DK" target="_blank">${n}</a> 24 </p> 25 </div>`,imageDescription:this.i18n.t({id:"onboarding.dialog.content.first-screen.image.alttext.dba",message:"DBA logo for new platform introduction",comment:"Alt text for the first screen image"})},secondScreen:{mainText:V`<div class="text-center"> 26 <h1 class="h4"> 27 ${this.i18n.t({id:"onboarding.dialog.content.second-screen.title.dba",message:"View ratings from others",comment:"Title for the onboarding second screen"})} 28 </h1> 29 <p class="modal-main-text"> 30 ${this.i18n.t({id:"onboarding.dialog.content.second-screen.text.dba",message:"Check others' experiences with the person you're trading with before you buy or sell.",comment:"Text for the onboarding second screen"})} 31 </p> 32 </div>`,imageDescription:this.i18n.t({id:"onboarding.dialog.content.second-screen.image.alttext.dba",message:"Introduction to checking ratings for trade partners. Profile card of Lisa Andersen, a MitID-validated user with a rating of 9.2 from 16 reviews.",comment:"Alt text for the second screen image"})},thirdScreen:{mainText:V`<div class="text-center"> 33 <h1 class="h4"> 34 ${this.i18n.t({id:"onboarding.dialog.content.third-screen.title.dba",message:"Shop like in an online store",comment:"Title for the onboarding third screen"})} 35 </h1> 36 <p class="modal-main-text"> 37 ${this.i18n.t({id:"onboarding.dialog.content.third-screen.text.dba",message:"You can now purchase items easily and securely from all over Denmark with DBA [ship-it].",comment:"Text for the onboarding third screen"})} 38 </p> 39 </div>`,imageDescription:this.i18n.t({id:"onboarding.dialog.content.third-screen.image.alttext.dba",message:"Shop securely with DBA across Denmark. Example payment summary showing total cost of 345 kr with a MobilePay option.",comment:"Alt text for the third screen image"})},fourthScreen:{mainText:V`<div class="text-center"> 40 <h1 class="h4"> 41 ${this.i18n.t({id:"onboarding.dialog.content.fourth-screen.title.dba",message:"Easy and secure sales",comment:"Title for the onboarding fourth screen"})} 42 </h1> 43 <p class="modal-main-text"> 44 ${this.i18n.t({id:"onboarding.dialog.content.fourth-screen.text.dba",message:"No more exchanging personal information or arranging payments. We handle everything for you as a seller, with no extra fees.",comment:"Text for the onboarding fourth screen"})} 45 </p> 46 </div>`,imageDescription:this.i18n.t({id:"onboarding.dialog.content.fourth-screen.image.alttext.dba",message:"Easy, secure sales with DBA. Example shipping options by item size for sellers.",comment:"Alt text for the fourth screen image"})}},tori:{firstScreen:{mainText:V`<div class="text-center"> 47 <h1 class="h4"> 48 ${this.i18n.t({id:"onboarding.dialog.content.first-screen.title.tori",message:"Welcome to the renewed Tori!",comment:"Title for the onboarding first screen"})} 49 </h1> 50 <p class="modal-main-text"> 51 ${this.i18n.t({id:"onboarding.dialog.content.first-screen.text.tori",message:"The familiar and secure Tori is now even safer and easier to use. For example, you can make transactions through Tori\u2019s own payment and shipping service ToriDiili.",comment:"Text for the onboarding first screen"})} 52 </p> 53 </div>`,imageDescription:this.i18n.t({id:"onboarding.dialog.content.first-screen.image.alttext.tori",message:'A red circle that contains the words "ToriDiili - secure payment, smooth delivery".',comment:"Alt text for the first screen image"})},secondScreen:{mainText:V`<div class="text-center"> 54 <h1 class="h4"> 55 ${this.i18n.t({id:"onboarding.dialog.content.second-screen.title.tori",message:"Shop like in an online store",comment:"Title for the onboarding second screen"})} 56 </h1> 57 <p class="modal-main-text"> 58 ${this.i18n.t({id:"onboarding.dialog.content.second-screen.text.tori",message:"Find treasures all over Finland with just a few clicks! You can recognise the ads belonging to the service from the ToriDiili logo.",comment:"Text for the onboarding second screen"})} 59 </p> 60 </div>`,imageDescription:this.i18n.t({id:"onboarding.dialog.content.second-screen.image.alttext.tori",message:'A smartphone displaying a Tori listing and a button with the text "Make a ToriDiili bid".',comment:"Alt text for the second screen image"})},thirdScreen:{mainText:V`<div class="text-center"> 61 <h1 class="h4"> 62 ${this.i18n.t({id:"onboarding.dialog.content.third-screen.title.tori",message:"Sell without extra messaging",comment:"Title for the onboarding third screen"})} 63 </h1> 64 <p class="modal-main-text"> 65 ${this.i18n.t({id:"onboarding.dialog.content.third-screen.text.tori",message:"When you sell your item with ToriDiili, you don't need to exchange contact details or agree on payments with the buyer \u2013 they are handled automatically through Tori!",comment:"Text for the onboarding third screen"})} 66 </p> 67 </div>`,imageDescription:this.i18n.t({id:"onboarding.dialog.content.third-screen.image.alttext.tori",message:`A smartphone displaying a headline "Offer ToriDiili - Tori's new shipping and payment service". An arrow points to the parcel size the seller needs to select for shipping.`,comment:"Alt text for the third screen image"})},fourthScreen:{mainText:V`<div class="text-center"> 68 <h1 class="h4"> 69 ${this.i18n.t({id:"onboarding.dialog.content.fourth-screen.title.tori",message:"Every ToriDiili includes purchase protection",comment:"Title for the onboarding fourth screen"})} 70 </h1> 71 <p class="modal-main-text"> 72 ${this.i18n.t({id:"onboarding.dialog.content.fourth-screen.text.tori",message:"You can review the seller's ratings and profile before making a purchase decision. Thanks to purchase protection, the payment is transferred to the seller only after you have had a chance to inspect the product after delivery.",comment:"Text for the onboarding fourth screen"})} 73 </p> 74 </div>`,imageDescription:this.i18n.t({id:"onboarding.dialog.content.fourth-screen.image.alttext.tori",message:"Seller's profile in a listing. It shows the name Liisa Andersson, identified person, Tori user since 2012. The seller has 16 reviews with an average rating of 8.7.",comment:"Alt text for the fourth screen image"})}},blocket:{firstScreen:{mainText:V`<div class="text-center"> 75 <h1 class="h4"> 76 ${this.i18n.t({id:"onboarding.dialog.content.first-screen.title.blocket",message:"We\u2019ve made some changes!",comment:"Title for the onboarding first screen"})} 77 </h1> 78 <p class="modal-main-text"> 79 ${this.i18n.t({id:"onboarding.dialog.content.first-screen.text.blocket",message:"This is the start of the new Blocket \u2013 with new ways to find, save, and sell. The same trusted marketplace, just a little different!",comment:"Text for the onboarding first screen"})} 80 </p> 81 </div>`,imageDescription:this.i18n.t({id:"onboarding.dialog.content.first-screen.image.alttext.blocket",message:"Person sliding down a red slide toward a Blocket sign.",comment:"Alt text for the first screen image"})},secondScreen:{mainText:V`<div class="text-center"> 82 <h1 class="h4"> 83 ${this.i18n.t({id:"onboarding.dialog.content.second-screen.title.blocket",message:"Search & shop smarter!",comment:"Title for the onboarding second screen"})} 84 </h1> 85 <p class="modal-main-text"> 86 ${this.i18n.t({id:"onboarding.dialog.content.second-screen.text.blocket",message:"More ways to search with more categories and filters. Smooth shipping and secure payments - just like usual.",comment:"Text for the onboarding second screen"})} 87 </p> 88 </div>`,imageDescription:this.i18n.t({id:"onboarding.dialog.content.second-screen.image.alttext.blocket",message:"Hand holding a smartphone displaying a red scooter.",comment:"Alt text for the second screen image"})},thirdScreen:{mainText:V`<div class="text-center"> 89 <h1 class="h4"> 90 ${this.i18n.t({id:"onboarding.dialog.content.third-screen.title.blocket",message:"Never miss a deal",comment:"Title for the onboarding third screen"})} 91 </h1> 92 <p class="modal-main-text"> 93 ${this.i18n.t({id:"onboarding.dialog.content.third-screen.text.blocket",message:"Sort favorites into lists and save as many alerts as you want. Plus, reviews on all transactions between individuals, no matter how you shop!",comment:"Text for the onboarding third screen"})} 94 </p> 95 </div>`,imageDescription:this.i18n.t({id:"onboarding.dialog.content.third-screen.image.alttext.blocket",message:"Green bicycle with gray wheels and yellow handlebar grips.",comment:"Alt text for the third screen image"})},fourthScreen:{mainText:V`<div class="text-center"> 96 <h1 class="h4"> 97 ${this.i18n.t({id:"onboarding.dialog.content.fourth-screen.title.blocket",message:"Sell circularly - get rewarded",comment:"Title for the onboarding fourth screen"})} 98 </h1> 99 <p class="modal-main-text"> 100 ${this.i18n.t({id:"onboarding.dialog.content.fourth-screen.text.blocket",message:"Better drafts, better ad statistics, and exciting new rewards!",comment:"Text for the onboarding fourth screen"})} 101 </p> 102 </div>`,imageDescription:this.i18n.t({id:"onboarding.dialog.content.fourth-screen.image.alttext.blocket",message:"Hand holding a camera photographing a polka-dotted vase on a table.",comment:"Alt text for the fourth screen image"})}}};return e==="DBA"?i.dba:e==="TORI"?i.tori:e==="BLOCKET"?i.blocket:{}}getButtonText(){return{remind:this.i18n.t({id:"onboarding.dialog.button.remind-me-later",message:"Remind me later",comment:"Remind me later button for the onboarding modal"}),tour:this.i18n.t({id:"onboarding.dialog.button.take-tour",message:"Take the tour",comment:"Take the tour button for the onboarding modal"}),discoverDba:this.i18n.t({id:"onboarding.dialog.button.discover-dba",message:"Discover the new DBA",comment:"Finish button for the DBA onboarding modal"}),back:this.i18n.t({id:"onboarding.dialog.button.back",message:"Back",comment:"Back button for the onboarding modal"}),next:this.i18n.t({id:"onboarding.dialog.button.next",message:"Next",comment:"Next button for the onboarding modal"}),finish:this.i18n.t({id:"onboarding.dialog.button.finish",message:"Finish",comment:"Finish button for the onboarding modal"}),letsGo:this.i18n.t({id:"onboarding.dialog.button.letsgo",message:"Let's go!",comment:"Let's go text on button on the last step of the onboarding modal"})}}};import cr from"https://assets.finn.no/pkg/@warp-ds/elements-core/v2/element.js";import{css as dr,html as J}from"https://assets.finn.no/npm/lit/v3/lit.mi
102n.js";import ur from"https://assets.finn.no/pkg/@finn-no/pulse-sdk/v0/client.esm.min.js";function hr(){try{return window.localStorage.setItem("__test_key","_"),window.localStorage.removeItem("__test_key"),!0}catch{return!1}}function _t(){let t;try{t=window.localStorage.getItem("onboarding")}catch(n){console.error(n)}let e=n=>(new Date-new Date(n))/36e5;return hr()&&(!t||t.length>7&&e(t)>24)}function fr(t){if(t){let e=+getComputedStyle(t)?.zIndex;return t.id.includes("sp_message")||e>=20}}var yt=class extends cr{static styles=[dr` 103 .z-30 { 104 z-index: 30; 105 } 106 107 .dot-buttons { 108 padding-top: min(1vh, 16px); 109 padding-bottom: min(3vh, 24px); 110 } 111 .main-wrapper { 112 margin-bottom: min(2vh, 20px); 113 width: 100%; 114 height: 52vw; 115 max-height: calc(85% - 90px); 116 } 117 .main-wrapper svg { 118 width: 100%; 119 height: 100%; 120 } 121 .onboarding-modal { 122 height: 560px; 123 max-height: 100vh; 124 padding-bottom: min(4vh, 30px); 125 }
126 .modal-main-text { 127 max-height: 100px; 128 overflow-y: auto; 129 } 130 *,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border)}html{font-size:62.5%}body{background-color:var(--w-s-color-background);-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;min-height:100%;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text);margin:0;overflow-y:scroll}hr{color:inherit;border-top-width:1px;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:underline}a:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:1px}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button{-webkit-appearance:button}[type=button]{-webkit-appearance:button}[type=reset]{-webkit-appearance:button}[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::-webkit-input-placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}input::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}textarea::-webkit-input-placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{border:0;min-width:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}svg{pointer-events:none}.\\[--w-modal-min-height\\:64\\%\\]{--w-modal-min-height:64%}.\\[--w-modal-width\\:455px\\]{--w-modal-width:455px}.bg-\\[--w-black\\/25\\]{background-color:rgba(var(--w-rgb-black),.25)}.will-change-height{will-change:height}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}
130.rounded-b-0{border-bottom-right-radius:0;border-bottom-left-radius:0}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.shrink{flex-shrink:1}.grow{flex-grow:1}.flex-col{flex-direction:column}.gap-16{gap:1.6rem}.grid-flow-col{grid-auto-flow:column}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.outline-none{outline-offset:2px;outline:2px solid transparent}.items-end{align-items:flex-end}.inset-0{top:0;bottom:0;left:0;right:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.fixed{position:fixed}.relative{position:relative}.static{position:static}.z-30{z-index:30}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.shadow-m{box-shadow:var(--w-shadow-m)}.h-20{height:2rem}.w-20{width:2rem}.w-full{width:100%}.w-\\[--w-modal-width\\]{width:var(--w-modal-width)}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.1rem;margin-right:.1rem}.p-2{padding:.2rem}.p-4{padding:.4rem}.px-12{padding-left:1.2rem;padding-right:1.2rem}.px-8{padding-left:.8rem;padding-right:.8rem}.pt-12{padding-top:1.2rem}.backface-hidden{backface-visibility:hidden}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,-webkit-filter,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}@media (min-width:480px){.sm\\:rounded-b-8{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.sm\\:place-content-center{align-content:center;justify-content:center}.sm\\:place-items-center{align-items:center;justify-items:center}.sm\\:h-24{height:2.4rem}.sm\\:w-24{width:2.4rem}.sm\\:mx-16{margin-left:1.6rem;margin-right:1.6rem}.sm\\:px-16{padding-left:1.6rem;padding-right:1.6rem}}@media (min-width:768px){.md\\:px-12{padding-left:1.2rem;padding-right:1.2rem}.md\\:pt-16{padding-top:1.6rem}}; 131 `];static properties={_showOnboarding:{state:!0},_screen:{state:!0},illustrations:{},brand:{type:"string"},imgBaseURL:{type:"string"},brandScreenText:{type:"object"},buttonText:{type:"object"}};constructor(){super(),this._screen=1,this.pulse=ur,this.brandScreenText={},this.buttonText={},this.imgBaseURL=""}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this._handleKeyDown.bind(this)),this.brand=this.getAttribute("brand"),_t()&&this._setOpen()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this._handleKeyDown.bind(this))}_skipOnboarding(){this._setClosed();try{window.localStorage.setItem("onboarding","skipped")}catch(e){console.error(e)}this.sendClickEvent("Close")}_handleKeyDown(e){e.key==="Escape"&&this._setClosed()}_finish(){this._setClosed();try{window.localStorage.setItem("onboarding","done")}catch(e){console.error(e)}this.sendClickEvent("Close")}_getPageContent(){let e=document.querySelector("body");return e?[...e.children].filter(n=>!["STYLE","SCRIPT"].includes(n.nodeName)&&n.id!=="modal-div"&&!fr(n)):[]}_setOpen(){this._showOnboarding=!0,this.backgroundPageElements=this._getPageContent(),this.backgroundPageElements.forEach(e=>{e.inert=!0}),document.body.style.touchAction="none",document.body.style.overflow="hidden",this.sendViewEvent(0)}_setClosed(){this._showOnboarding=!1,this.backgroundPageElements&&(this.backgroundPageElements.forEach(e=>{e.inert=!1}),document.body.style.cssText="")}_previousScreen(){this._screen=this._screen-1,this.sendClickEvent("Cancel"),this.sendViewEvent(this._screen-1)}_nextScreen(){this._screen=this._screen+1,this.sendViewEvent(this._screen-1)}_remindMeLater(){this._setClosed();try{window.localStorage.setItem("onboarding",new Date().toString())}catch(e){console.error(e)}
131this.sendClickEvent("Dismiss")}_setScreen(e){this._screen=e}sendClickEvent(e){this.pulse.trackEvent({type:"Click",intent:e,name:"Onboarding",object:{type:"UIElement",elementType:"Button",name:"Onboarding modal"},vertical:{name:"common_pages"}})}sendViewEvent(e){this.pulse.trackEvent({type:"View",name:"Onboarding",object:{type:"UIElement",elementType:"Pop up",position:e,name:"Onboarding modal"},vertical:{name:"common_pages"}})}_sectionButtons(e=1){return J`<div 132 class="flex justify-center dot-buttons" 133 role="progressbar" 134 aria-valuetext="Step ${e}" 135 > 136 ${new Array(4).fill().map((n,i)=>J`<div class="p-2 mx-1 cursor-pointer" @click="${()=>this._setScreen(i+1)}"> 137 <div 138 class="p-4 rounded-full ${i+1===e?"s-bg-primary":"s-bg-disabled"} mx-1" 139 ></div> 140 </div>`)} 141 </div>`}_navButtons(e,n){return J`<div class="w-full grid justify-center grid-flow-col gap-16 select-none"> 142 <w-button variant="secondary" @click="${e.onClick}"> ${e.text} </w-button> 143 <w-button variant="primary" @click="${n.onClick}"> ${n.text} </w-button> 144 </div>`}_skipBtn(){return J`<w-button 145 variant="pill" 146 aria-label="${this.i18n.t({id:"onboarding.dialog.header.close-button.area-label",message:"Close",comment:"Area label for cross icon button that will close onboarding modal"})}" 147 @click="${this._skipOnboarding}" 148 > 149 <svg 150 xmlns="http://www.w3.org/2000/svg" 151 width="16" 152 height="16" 153 fill="none"
154 viewBox="0 0 16 16" 155 class="h-20 w-20 sm:h-24 sm:w-24" 156 > 157 <title> 158 ${this.i18n.t({id:"onboarding.dialog.header.close-icon.title",message:"Cross",comment:"Title for the cross icon svg, that is a part of the button for closing onboarding modal"})} 159 </title> 160 <path 161 stroke="currentColor" 162 stroke-linecap="round" 163 stroke-linejoin="round" 164 stroke-width="1.5" 165 d="m12.5 3.5-9 9M3.5 3.5l9 9" 166 ></path> 167 </svg> 168 </w-button>`}_handleTouchMove(e){let i=e.changedTouches[0]?.clientX;this.lastStartTouchX&&(i-this.lastStartTouchX>5?this._screen>1&&(this._previousScreen(),this.lastStartTouchX=null):this.lastStartTouchX-i>5&&this._screen<4&&(this._nextScreen(),this.lastStartTouchX=null))}_screenMainWrapper(e,n,i){return J` <div 169 class="block overflow-y-hidden overflow-x-hidden grow shrink px-8 sm:px-16 relative" 170 @touchstart=${r=>this.lastStartTouchX=r.touches[0]?.clientX} 171 @touchmove=${r=>this._handleTouchMove(r)} 172 > 173 <img 174 class="main-wrapper" 175 src="${this.imgBaseURL}/onboarding-illustration-${e}.svg" 176 alt="${n}" 177 /> 178 ${i} 179 </div>`}_navTexts(){return{...this.buttonText}}_firstScreen(){let{firstScreen:e}=this.brandScreenText,n=this.brand==="TORI"?[{text:this._navTexts().remind,onClick:this._remindMeLater},{text:this._navTexts().tour,onClick:this._nextScreen}]:[{text:this._navTexts().remind,onClick:this._remindMeLater},{text:this._navTexts().next,onClick:this._nextScreen}];return J`${this._screenMainWrapper(this._screen,e.imageDescription,e.mainText)} 180 ${this._sectionButtons(this._screen)} ${this._navButtons(...n)}`}_secondScreen(){let{secondScreen:e}=this.brandScreenText;return J`${this._screenMainWrapper(this._screen,e.imageDescription,e.mainText)} 181 ${this._sectionButtons(this._screen)} 182 ${this._navButtons({text:this._navTexts().back,onClick:this._previousScreen},{text:this._navTexts().next,onClick:this._nextScreen})}`}_thirdScreen(){let{thirdScreen:e}=this.brandScreenText;return J`${this._screenMainWrapper(this._screen,e.imageDescription,e.mainText)} 183 ${this._sectionButtons(this._screen)} 184 ${this._navButtons({text:this._navTexts().back,onClick:this._previousScreen},{text:this._navTexts().next,onClick:this._nextScreen})}`}_fourthScreen(){let{fourthScreen:e}=this.brandScreenText,i={DBA:[{text:this._navTexts().back,onClick:this._previousScreen},{text:this._navTexts().discoverDba,onClick:this._finish}],TORI:[{text:this._navTexts().back,onClick:this._previousScreen},{text:this._navTexts().finish,onClick:this._finish}],BLOCKET:[{text:this._navTexts().back,onClick:this._previousScreen},{text:this._navTexts().letsGo,onClick:this._finish}]}[this.brand]||[];return J`${this._screenMainWrapper(this._screen,e.imageDescription,e.mainText)} 185 ${this._sectionButtons(this._screen)} ${this._navButtons(...i)}`}_getScreen(){switch(this._screen){case 1:return this._firstScreen();case 2:return this._secondScreen();case 3:return this._thirdScreen();case 4:return this._fourthScreen();default:return this._firstScreen()}}render(){return this._showOnboarding?J` 186 <div class='fixed top-0 left-0 right-0 bottom-0 bg-[--w-black/25] z-30'></div> 187 <div class='fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-30 [--w-modal-min-height:64%] [--w-modal-width:455px]'> 188 <div 189 role="dialog" 190 aria-modal="true" 191 class="onboarding-modal shadow-m s-bg w-[--w-modal-width] relative transition duration-300 backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 flex flex-col overflow-hidden outline-none pt-12 px-12 md:px-12 md:pt-16 rounded-b-0 sm:rounded-b-8" 192 > 193 <div class="flex justify-end">${this._skipBtn()}</div> 194 ${this._getScreen()} 195 </div> 196 </div> 197 `:J``}};customElements.get("onboarding-modal")||customElements.define("onboarding-modal",yt);var xt=class extends pr{connectedCallback(){super.connectedCallback();let{body:e}=window.document,n=this.getAttribute("brand")||"",i=this.i18n,r=new et(i),s=r.getBrandText(n),o=r.getButtonText(),a=this.getAttribute("illustrationbaseurl")||"";
197if(e&&_t()){let c=document.querySelector("#modal-div");c||(c=document.createElement("div"),c.id="modal-div",c.setAttribute("data-nosnippet",""),e.appendChild(c)),gr(mr`<onboarding-modal 198 locale="${this.getAttribute("locale")||"en"}" 199 messages="${this.getAttribute("messages")||"{}"}" 200 brand="${n}" 201 .imgBaseURL="${a}" 202 .brandScreenText=${s} 203 .buttonText=${o} 204 ></onboarding-modal>`,c)}}};customElements.get("onboarding-modal-entrypoint")||customElements.define("onboarding-modal-entrypoint",xt);import{LitElement as vr,html as un,css as br}from"https://assets.finn.no/npm/lit/v3/lit.min.js";var kt=class extends vr{static get styles(){return[br` 205 .bubble-colors { 206 background-color: #d91f0a; 207 color: white; 208 } 209 *,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0;box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border)}html{font-size:62.5%}body{background-color:var(--w-s-color-background);-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;min-height:100%;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text);margin:0;overflow-y:scroll}hr{color:inherit;border-top-width:1px;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:underline}a:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:1px}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button{-webkit-appearance:button}[type=button]{-webkit-appearance:button}[type=reset]{-webkit-appearance:button}[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::-webkit-input-placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}input::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}textarea::-webkit-input-placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{border:0;min-width:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}svg{pointer-events:none}.border-2{border-width:2px}.border-current{border-color:currentColor}.rounded-full{border-radius:9999px}.top-12{top:1.2rem}.top-2{top:.2rem}.absolute{position:absolute}.static{position:static}.h-12{height:1.2rem}.w-12{width:1.2rem}.-mr-2{margin-right:-.2rem}@media (min-width:480px){.sm\\:right-auto{right:auto}.sm\\:mr-16{margin-right:1.6rem}}@media (min-width:768px){.md\\:left-20{left:2rem}.md\\:static{position:static}.md\\:ml-4{margin-left:.4rem}.md\\:mr-0{margin-right:0}}; 210 `]}static get properties(){return{show:{type:Boolean,reflect:!0}}}constructor(){super(),this.show=!1}render(){return this.show?un`
211 <span id="top-bar_notifications-count-bubble" class="absolute top-2 -mr-2 md:static md:mr-0" 212 ><span 213 id="notifications-bubble" 214 class="bubble-colors absolute sm:right-auto sm:mr-16 md:left-20 md:ml-4 top-12 rounded-full w-12 h-12 border-2 border-current" 215 ></span 216 ></span> 217 `:un``}};customElements.define("notification-bubble",kt);import{LitElement as xr}from"https://assets.finn.no/npm/lit/v3/lit.min.js";var mn=Vi(fn(),1);function le(t,e){return`${t}:${e}`}var ve=class{constructor(e,n,i){this.channel=e,this.topic=n,this.payload=i}toKey(){return le(this.channel,this.topic)}};var Ae=class{constructor(e=10){this.maxSize=e,this.array=[]}push(e){this.array.length>=this.maxSize&&this.array.pop(),this.array.unshift(e)}peek(){return this.array[0]}toArray(){return this.array.slice()}};var Ce=class{constructor(){this.map=new Map}getQueue(e,n){return this.map.get(le(e,n))||new Ae}push(e){let n=this.getQueue(e.channel,e.topic);n.push(e),this.map.set(e.toKey(),n)}peek(e,n){return this.getQueue(e,n).peek()}log(e,n){return this.getQueue(e,n).toArray()}};function pn(){if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}function _r(){let t=pn()["@podium"];return t||(t={},pn()["@podium"]=t),t.ee||(t.ee=new mn.default),t.sink||(t.sink=new Ce),t}var be=class{constructor(){let{ee:e,sink:n,bridge:i}=_r();this.ee=e,this.sink=n,this.bridge=i}log(e,n){return this.sink.log(e,n)}peek(e,n){return this.sink.peek(e,n)}publish(e,n,i){let r=new ve(e,n,i);if(this.ee.emit(r.toKey(),r),this.sink.push(r),this.bridge){let s=i;typeof i<"u"&&(typeof s=="string"||typeof s=="boolean"||typeof s=="number")&&(s=[i]),this.bridge.notification({method:`${e}/${n}`,params:s})}return r}#e=new Map;subscribe(e,n,i){if(this.bridge){let r=s=>{let o=s,a=new ve(e,n,o.params);this.sink.push(a),i(a)};this.bridge.on(`${e}/${n}`,r),this.#e.set(i,r)}this.ee.on(le(e,n),i)}unsubscribe(e,n,i){if(this.ee.off(le(e,n),i),this.bridge){let r=this.#e.get(i);r&&this.bridge.off(`${e}/${n}`,r)}}};var St=class extends xr{#e=!1;static get properties(){return{loginId:{type:String,attribute:"login-id"},spidId:{type:String,attribute:"spid-id"},apiUrl:{type:String,attribute:"api-url"}}}get bubbleEl(){return document.querySelector("finn-topbar")?.shadowRoot?.querySelector("notification-bubble")}async fetch(){if(!(!this.loginId||!this.spidId||this.#e))try{let e=await fetch(new URL(this.apiUrl),{credentials:"include"});if(e.ok){let n=await e.json(),{hasNotifications:i}=n;this.bubbleEl.show=Number(i)>0}else e.status===401&&(this.#e=!0)}catch(e){console.trace("finn-topbar: failed when fetching/parsing user info",e)}}connectedCallback(){super.connectedCallback(),this.fetch(),setInterval(this.fetch.bind(this),1e3*30),new be().subscribe("notifications","allWereViewed",()=>{typeof window<"u"&&(this.bubbleEl.show=!1)})}};customElements.define("topbar-data-service",St);window.addEventListener("load",()=>{let t=document.querySelector("finn-topbar");t?.addEventListener("click-notifications",()=>{let e=window.finnPulseClient;e&&e.trackEvent({type:"Click",intent:"Open",name:"Notifications icon clicked",object:{id:"header-notifications-link",type:"UIElement",elementType:"Global navigation icon"},vertical:{name:"common_pages"}})}),t?.addEventListener("click-business-center",()=>{let e=window.finnPulseClient;e&&e.trackEvent({type:"Click",intent:"Open",name:"Global navigation",object:{id:"nmp_ev36",type:"UIElement",name:"For business link",elementType:"Link"},vertical:{name:"common_pages"}})}),t?.addEventListener("new-ad",()=>{window.finnAnalytics&&window.finnAnalytics.trackEventLater({analyticsName:"new-ad.create-new-ad.global-menu",eventKpi:"effect"});let e=window.finnPulseClient;e&&e.trackEvent({type:"Click",intent:"Open",name:"New ad icon clicked",object:{id:"header-new-ad-link",type:"UIElement",elementType:"Global navigation icon"},vertical:{name:"common_pages"}})}),t?.addEventListener("click-messages",()=>{let e=window.finnPulseClient;e&&e.trackEvent({type:"Click",intent:"Open",name:"Messages icon clicked",object:{id:"header-messages-link",type:"UIElement",elementType:"Global navigation icon"},vertical:{name:"common_pages"}})}),t?.addEventListener("login",()=>{window.finnAnalytics&&window.finnAnalytics.trackEventLater({analyticsName:"user-admin.log-in.intentional-login",eventKpi:"action",stringValue:"topbar",eventFlags:"start"});let e=window.finnPulseClient;e&&e.trackEvent({type:"Click",intent:"Login",name:"Log in",object:{id:"header-login-link",type:"UIElement",elementType:"Link"},target:{id:"/auth/login",type:"Form",name:"Log in"}})}),t?.addEventListener("click-profile",()=>{let e=window.finnPulseClient;e&&e.trackEvent({type:"Click",intent:"Open",name:"Profile icon clicked",object:{id:"header-profile-link",type:"UIElement",elementType:"Global navigation icon"},vertical:{name:"common_pages"}})})});var kr=Object.create,In=Object.defineProperty,Er=Object.getOwnPropertyDescriptor,Sr=Object.getOwnPropertyNames,$r=Object.getPrototypeOf,Ar=Object.prototype.hasOwnProperty,je=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Cr=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Sr(e))!Ar.call(t,r)&&r!==n&&In(t,r,{get:()=>e[r],enumerable:!(i=Er(e,r))||i.enumerable});return t},Dn=(t,e,n)=>
217(n=t!=null?kr($r(t)):{},Cr(e||!t||!t.__esModule?In(n,"default",{value:t,enumerable:!0}):n,t)),Tr=je(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0;var e;(function(n){n.MalformedUnicode="MALFORMED_UNICODE",n.MalformedHexadecimal="MALFORMED_HEXADECIMAL",n.CodePointLimit="CODE_POINT_LIMIT",n.OctalDeprecation="OCTAL_DEPRECATION",n.EndOfString="END_OF_STRING"})(e=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[e.MalformedUnicode,"malformed Unicode character escape sequence"],[e.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[e.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[e.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[e.EndOfString,"malformed escape sequence at end of string"]])}),Lr=je(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unraw=t.errorMessages=t.ErrorType=void 0;var e=Tr();Object.defineProperty(t,"ErrorType",{enumerable:!0,get:function(){return e.ErrorType}}),Object.defineProperty(t,"errorMessages",{enumerable:!0,get:function(){return e.errorMessages}});function n(d){return d.match(/[^a-f0-9]/i)?NaN:parseInt(d,16)}function i(d,g,y){let k=n(d);if(Number.isNaN(k)||y!==void 0&&y!==d.length)throw new SyntaxError(e.errorMessages.get(g));return k}function r(d){let g=i(d,e.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(g)}function s(d,g){let y=i(d,e.ErrorType.MalformedUnicode,4);if(g!==void 0){let k=i(g,e.ErrorType.MalformedUnicode,4);return String.fromCharCode(y,k)}return String.fromCharCode(y)}function o(d){return d.charAt(0)==="{"&&d.charAt(d.length-1)==="}"}function a(d){if(!o(d))throw new SyntaxError(e.errorMessages.get(e.ErrorType.MalformedUnicode));let g=d.slice(1,-1),y=i(g,e.ErrorType.MalformedUnicode);try{return String.fromCodePoint(y)}catch(k){throw k instanceof RangeError?new SyntaxError(e.errorMessages.get(e.ErrorType.CodePointLimit)):k}}function c(d,g=!1){if(g)throw new SyntaxError(e.errorMessages.get(e.ErrorType.OctalDeprecation));let y=parseInt(d,8);return String.fromCharCode(y)}var x=new Map([["b","\b"],["f","\f"],["n",` 218`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function p(d){return x.get(d)||d}var h=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function w(d,g=!1){return d.replace(h,function(y,k,O,B,U,te,X,oe,G){if(k!==void 0)return"\\";if(O!==void 0)return r(O);if(B!==void 0)return a(B);if(U!==void 0)return s(U,te);if(X!==void 0)return s(X);if(oe==="0")return"\0";if(oe!==void 0)return c(oe,!g);if(G!==void 0)return p(G);throw new SyntaxError(e.errorMessages.get(e.ErrorType.EndOfString))})}t.unraw=w,t.default=w}),Mr=je((t,e)=>{(function(n,i){typeof define=="function"&&define.amd?define([],i):typeof e=="object"&&e.exports?e.exports=i():n.moo=i()})(t,function(){"use strict";var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=typeof new RegExp().sticky=="boolean";function s(l){return l&&i.call(l)==="[object RegExp]"}function o(l){return l&&typeof l=="object"&&!s(l)&&!Array.isArray(l)}function a(l){return l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(l){var f=new RegExp("|"+l);return f.exec("").length-1}function x(l){return"("+l+")"}function p(l){if(!l.length)return"(?!)";var f=l.map(function(v){return"(?:"+v+")"}).join("|");return"(?:"+f+")"}function h(l){if(typeof l=="string")return"(?:"+a(l)+")";if(s(l)){if(l.ignoreCase)throw new Error("RegExp /i flag not allowed");if(l.global)throw new Error("RegExp /g flag is implied");if(l.sticky)throw new Error("RegExp /y flag is implied");if(l.multiline)throw new Error("RegExp /m flag is implied");return l.source}else throw new Error("Not a pattern: "+l)}function w(l,f){return l.length>f?l:Array(f-l.length+1).join(" ")+l}function d(l,f){for(var v=l.length,b=0;;){var S=l.lastIndexOf(` 219`,v-1);if(S===-1||(b++,v=S,b===f)||v===0)break}var E=b<f?0:v+1;return l.substring(E).split(` 220`)}function g(l){for(var f=Object.getOwnPropertyNames(l),v=[],b=0;b<f.length;b++){var S=f[b],E=l[S],A=[].concat(E);if(S==="include"){for(var L=0;L<A.length;
vendor: 6,290 bytes, lines 220-223
220L++)v.push({include:A[L]});continue}var T=[];A.forEach(function($){o($)?(T.length&&v.push(k(S,T)),v.push(k(S,$)),T=[]):T.push($)}),T.length&&v.push(k(S,T))}return v}function y(l){for(var f=[],v=0;v<l.length;v++){var b=l[v];if(b.include){for(var S=[].concat(b.include),E=0;E<S.length;E++)f.push({include:S[E]});continue}if(!b.type)throw new Error("Rule has no type: "+JSON.stringify(b));f.push(k(b.type,b))}return f}function k(l,f){if(o(f)||(f={match:f}),f.include)throw new Error("Matching rules cannot also include states");var v={defaultType:l,lineBreaks:!!f.error||!!f.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var b in f)n.call(f,b)&&(v[b]=f[b]);if(typeof v.type=="string"&&l!==v.type)throw new Error("Type transform cannot be a string (type '"+v.type+"' for token '"+l+"')");var S=v.match;return v.match=Array.isArray(S)?S:S?[S]:[],v.match.sort(function(E,A){return s(E)&&s(A)?0:s(A)?-1:s(E)?1:A.length-E.length}),v}function O(l){return Array.isArray(l)?y(l):g(l)}var B=k("error",{lineBreaks:!0,shouldThrow:!0});function U(l,f){for(var v=null,b=Object.create(null),S=!0,E=null,A=[],L=[],T=0;T<l.length;T++)l[T].fallback&&(S=!1);for(var T=0;T<l.length;T++){var $=l[T];if($.include)throw new Error("Inheritance is not allowed in stateless lexers");if($.error||$.fallback){if(v)throw!$.fallback==!v.fallback?new Error("Multiple "+($.fallback?"fallback":"error")+" rules not allowed (for token '"+$.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+$.defaultType+"')");v=$}var P=$.match.slice();if(S)for(;P.length&&typeof P[0]=="string"&&P[0].length===1;){var Y=P.shift();b[Y.charCodeAt(0)]=$}if($.pop||$.push||$.next){if(!f)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+$.defaultType+"')");if($.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+$.defaultType+"')")}if(P.length!==0){S=!1,A.push($);for(var q=0;q<P.length;q++){var Z=P[q];if(s(Z)){if(E===null)E=Z.unicode;else if(E!==Z.unicode&&$.fallback===!1)throw new Error("If one rule is /u then all must be")}}var ne=p(P.map(h)),z=new RegExp(ne);if(z.test(""))throw new Error("RegExp matches empty string: "+z);var u=c(ne);if(u>0)throw new Error("RegExp has capture groups: "+z+` 221Use (?: \u2026 ) instead`);if(!$.lineBreaks&&z.test(` 222`))throw new Error("Rule should declare lineBreaks: "+z);L.push(x(ne))}}var m=v&&v.fallback,C=r&&!m?"ym":"gm",I=r||m?"":"|";E===!0&&(C+="u");var H=new RegExp(p(L)+I,C);return{regexp:H,groups:A,fast:b,error:v||B}}function te(l){var f=U(O(l));return new R({start:f},"start")}function X(l,f,v){var b=l&&(l.push||l.next);if(b&&!v[b])throw new Error("Missing state '"+b+"' (in token '"+l.defaultType+"' of state '"+f+"')");if(l&&l.pop&&+l.pop!=1)throw new Error("pop must be 1 (in token '"+l.defaultType+"' of state '"+f+"')")}function oe(l,f){var v=l.$all?O(l.$all):[];delete l.$all;var b=Object.getOwnPropertyNames(l);f||(f=b[0]);for(var S=Object.create(null),E=0;E<b.length;E++){var A=b[E];S[A]=O(l[A]).concat(v)}for(var E=0;E<b.length;E++)for(var A=b[E],L=S[A],T=Object.create(null),$=0;$<L.length;$++){var P=L[$];if(P.include){var Y=[$,1];if(P.include!==A&&!T[P.include]){T[P.include]=!0;var q=S[P.include];if(!q)throw new Error("Cannot include nonexistent state '"+P.include+"' (in state '"+A+"')");for(var Z=0;Z<q.length;Z++){var ne=q[Z];L.indexOf(ne)===-1&&Y.push(ne)}}L.splice.apply(L,Y),$--}}for(var z=Object.create(null),E=0;E<b.length;E++){var A=b[E];z[A]=U(S[A],!0)}for(var E=0;E<b.length;E++){for(var u=b[E],m=z[u],C=m.groups,$=0;$<C.length;$++)X(C[$],u,z);for(var I=Object.getOwnPropertyNames(m.fast),$=0;$<I.length;$++)X(m.fast[I[$]],u,z)}return new R(z,f)}function G(l){for(var f=typeof Map<"u",v=f?new Map:Object.create(null),b=Object.getOwnPropertyNames(l),S=0;S<b.length;S++){var E=b[S],A=l[E],L=Array.isArray(A)?A:[A];L.forEach(function(T){if(typeof T!="string")throw new Error("keyword must be string (in keyword '"+E+"')");f?v.set(T,E):v[T]=E})}return function(T){return f?v.get(T):v[T]}}var R=function(l,f){this.startState=f,this.states=l,this.buffer="",this.stack=[],this.reset()};R.prototype.reset=function(l,f){return this.buffer=l||"",this.index=0,this.line=f?f.line:1,this.col=f?f.col:1,this.queuedToken=f?f.queuedToken:null,this.queuedText=f?f.queuedText:"",this.queuedThrow=f?f.queuedThrow:null,this.setState(f?f.state:this.startState),this.stack=f&&f.stack?f.stack.slice():[],this},R.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},R.prototype.setState=function(l){if(!(!l||this.state===l)){this.state=l;var f=this.states[l];this.groups=f.groups,this.error=f.error,this.re=f.regexp,this.fast=f.fast}},R.prototype.popState=function(){this.setState(this.stack.pop())},R.prototype.pushState=function(l){this.stack.push(this.state),this.setState(l)};var Ye=r?function(l,f){return l.exec(f)}:function(l,f){var v=l.exec(f);return v[0].length===0?null:v};R.prototype._getGroup=function(l){for(var f=this.groups.length,v=0;v<f;v++)if(l[v+1]!==void 0)return this.groups[v];throw new Error("Cannot find token type for matched text")};function me(){return this.value}if(R.prototype.next=function(){var l=this.index;if(this.queuedGroup){var f=this._token(this.queuedGroup,this.queuedText,l);return this.queuedGroup=null,this.queuedText="",f}var v=this.buffer;if(l!==v.length){var A=this.fast[v.charCodeAt(l)];if(A)return this._token(A,v.charAt(l),l);var b=this.re;b.lastIndex=l;var S=Ye(b,v),E=this.error;if(S==null)return this._token(E,v.slice(l,v.length),l);var A=this._getGroup(S),L=S[0];return E.fallback&&S.index!==l?(this.queuedGroup=A,this.queuedText=L,this._token(E,v.slice(l,S.index),l)):this._token(A,L,l)}},R.prototype._token=function(l,f,v){var b=0;if(l.lineBreaks){var S=/\n/g,E=1;if(f===` 223`)b=1;else for(;S.exec(f);)b++,E=S.lastIndex}var A={type:typeof l.type=="function"&&l.type(f)||l.defaultType,value:typeof l.value=="function"?l.value(f):f,text:f,toString:me,offset:v,lineBreaks:b,line:this.line,col:this.col},L=f.length;if(this.index+=L,this.line+=b,b!==0?this.col=L-E+1:this.col+=L,l.shouldThrow){var T=new Error(this.formatError(A,"invali
223d syntax"));throw T}return l.pop?this.popState():l.push?this.pushState(l.push):l.next&&this.setState(l.next),A},typeof Symbol<"u"&&Symbol.iterator){var ae=function(l){this.lexer=l};ae.prototype.next=function(){var l=this.lexer.next();return{value:l,done:!l}},ae.prototype[Symbol.iterator]=function(){return this},R.prototype[Symbol.iterator]=function(){return new ae(this)}}return R.prototype.formatError=function(b,f){if(b==null)var v=this.buffer.slice(this.index),b={text:v,offset:this.index,lineBreaks:v.indexOf(` 224`)===-1?0:1,line:this.line,col:this.col};var S=2,E=Math.max(b.line-S,1),A=b.line+S,L=String(A).length,T=d(this.buffer,this.line-b.line+S+1).slice(0,5),$=[];$.push(f+" at line "+b.line+" col "+b.col+":"),$.push("");for(var P=0;P<T.length;P++){var Y=T[P],q=E+P;$.push(w(String(q),L)+" "+Y),q===b.line&&$.push(w("",L+b.col+1)+"^")}return $.join(` 225`)},R.prototype.clone=function(){return new R(this.states,this.state)},R.prototype.has=function(l){return!0},{compile:te,states:oe,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:G}})}),Or=je(t=>{"use strict";var e=t&&t.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(t,"__esModule",{value:!0}),t.lexer=t.states=void 0;var n=e(Mr());t.states={body:{doubleapos:{match:"''",value:()=>"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^']|'')*'(?!')/u,value:i=>i.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:i=>i.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:i=>i.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:i=>i.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:i=>i.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:i=>i.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:i=>i.substring(0,i.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},t.lexer=n.default.states(t.states)}),Pr=je(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseError=void 0,t.parse=x;var e=Or(),n=p=>({offset:p.offset,line:p.line,col:p.col,text:p.text,lineBreaks:p.lineBreaks}),i=p=>p==="plural"||p==="select"||p==="selectordinal";function r(p,h){let w="",d="";for(let g of h){let y=g.ctx.text;switch(d+=y,g.type){case"content":w+=g.value;break;case"argument":case"function":case"octothorpe":w+=y;break;default:throw new a(p,`Unsupported part in strict mode function arg style: ${y}`)}}return[{type:"content",value:w.trim(),ctx:Object.assign({},h[0].ctx,{text:d})}]}var s=["number","date","time","spellout","ordinal","duration"],o=["zero","one","two","few","many","other"],a=class extends Error{constructor(p,h){super(e.lexer.formatError(p,h))}};t.ParseError=a;var c=class{constructor(p,h){var w,d,g,y;this.lexer=e.lexer.reset(p),this.cardinalKeys=(w=h?.cardinal)!==null&&w!==void 0?w:o,this.ordinalKeys=(d=h?.ordinal)!==null&&d!==void 0?d:o,this.strict=(g=h?.strict)!==null&&g!==void 0?g:!1,this.strictPluralKeys=(y=h?.strictPluralKeys)!==null&&y!==void 0?y:!0}parse(){return this.parseBody(!1,!0)}checkSelectKey(p,h,w){if(w[0]==="="){if(h==="select")throw new a(p,`The case ${w} is not valid with select`)}else if(h!=="select"){let d=h==="plural"?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&d.length>0&&!d.includes(w)){let g=`The ${h} case ${w} is not valid in this locale`;throw new a(p,g)}}}parseSelect({value:p},h,w,d){let g={type:d,arg:p,cases:[],ctx:w};d==="plural"||d==="selectordinal"?h=!0:this.strict&&(h=!1);for(let y of this.lexer)switch(y.type){case"offset":if(d==="select")throw new a(y,"Unexpected plural offset for select");if(g.cases.length>0)throw new a(y,"Plural offset must be set before cases");g.pluralOffset=Number(y.value),w.text+=y.text,w.lineBreaks+=y.lineBreaks;break;case"case":{this.checkSelectKey(y,d,y.value),g.cases.push({key:y.value,tokens:this.parseBody(h),ctx:n(y)});break}case"end":return g;default:throw new a(y,`Unexpected lexer token: ${y.type}`)}throw new a(null,"Unexpected message end")}parseArgToken(p,h){let w=n(p),d=this.lexer.next();if(!d)throw new a(null,"Unexpected message end");if(w.text+=d.text,w.lineBreaks+=d.lineBreaks,this.strict&&(d.type==="func-simple"||d.type==="func-args")&&!s.includes(d.value)){let g=`Invalid strict mode function arg type: ${d.value}`;throw new a(p,g)}switch(d.type){case"end":return{type:"argument",arg:p.value,ctx:w};case"func-simple":{let g=this.lexer.next();if(!g)throw new a(null,"Unexpected message end");if(g.type!=="end")throw new a(g,`Unexpected lexer token: ${g.type}`);if(w.text+=g.text,i(d.value.toLowerCase()))throw new a(d,`Invalid type identifier: ${d.value}`);return{type:"function",arg:p.value,key:d.value,ctx:w}}case"func-args":{if(i(d.value.toLowerCase())){let y=`Invalid type identifier: ${d.value}`;throw new a(d,y)}let g=this.parseBody(this.strict?!1:h);return this.strict&&g.length>0&&(g=r(p,g)),{type:"function",arg:p.value,key:d.value,param:g,ctx:w}}case"select":if(i(d.value))return this.parseSelect(p,h,w,d.value);throw new a(d,`Unexpected select type ${d.value}`);default:throw new a(d,`Unexpected lexer token: ${d.type}`)}}parseBody(p,h){let w=[],d=null;for(let g of this.lexer)if(g.type==="argument")d&&(d=null),w.push(this.parseArgToken(g,p));else if(g.type==="octothorpe"&&p)d&&(d=null),w.push({type:"octothorpe",ctx:n(g)});else{if(g.type==="end"&&!h)return w;{let y=g.value;if(!p&&g.type==="quoted"&&y[0]==="#"){if(y.includes("{")){let k=`Unsupported escape pattern: ${y}`;throw new a(g,k)}y=g.text}d?(d.value+=y,d.ctx.text+=g.text,d.ctx.lineBreaks+=g.lineBreaks):(d={type:"content",value:y,ctx:n(g)},w.push(d))}}if(h)return w;throw new a(null,"Unexpected message end")}};function x(p,h={}){return new c(p,h).parse()}}),Br=class{get shadowRoot(){return this.__host.__shadowRoot}constructor(t){this.ariaActiveDescendantElement=null,this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBrailleLabel="",this.ariaBrailleRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColIndexText="",this.ariaColSpan="",this.ariaControl
225sElements=null,this.ariaCurrent="",this.ariaDescribedByElements=null,this.ariaDescription="",this.ariaDetailsElements=null,this.ariaDisabled="",this.ariaErrorMessageElements=null,this.ariaExpanded="",this.ariaFlowToElements=null,this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLabelledByElements=null,this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaOwnsElements=null,this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRelevant="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowIndexText="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=!0,this.__host=t}checkValidity(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),!0}reportValidity(){return!0}setFormValue(){}setValidity(){}},Q=function(t,e,n,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?r.call(t,n):r?r.value=n:e.set(t,n),n},j=function(t,e,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(t):i?i.value:e.get(t)},we,nt,it,Te,$t,Le,rt,ce,Me,re,st,gn,vn=t=>typeof t=="boolean"?t:t?.capture??!1,Nr=class{constructor(){this.__eventListeners=new Map,this.__captureEventListeners=new Map}addEventListener(t,e,n){if(e==null)return;let i=vn(n)?this.__captureEventListeners:this.__eventListeners,r=i.get(t);if(r===void 0)r=new Map,i.set(t,r);else if(r.has(e))return;let s=typeof n=="object"&&n?n:{};s.signal?.addEventListener("abort",()=>this.removeEventListener(t,e,n)),r.set(e,s??{})}removeEventListener(t,e,n){if(e==null)return;let i=vn(n)?this.__captureEventListeners:this.__eventListeners,r=i.get(t);r!==void 0&&(r.delete(e),r.size||i.delete(t))}dispatchEvent(t){let e=[this],n=this.__eventTargetParent;if(t.composed)for(;n;)e.push(n),n=n.__eventTargetParent;else for(;n&&n!==this.__host;)e.push(n),n=n.__eventTargetParent;let i=!1,r=!1,s=0,o=null,a=null,c=null,x=t.stopPropagation,p=t.stopImmediatePropagation;Object.defineProperties(t,{target:{get(){return o??a},...M},srcElement:{get(){return t.target},...M},currentTarget:{get(){return c},...M},eventPhase:{get(){return s},...M},composedPath:{value:()=>e,...M},stopPropagation:{value:()=>{i=!0,x.call(t)},...M},stopImmediatePropagation:{value:()=>{r=!0,p.call(t)},...M}});let h=(k,O,B)=>{typeof k=="function"?k(t):typeof k?.handleEvent=="function"&&k.handleEvent(t),O.once&&B.delete(k)},w=()=>(c=null,s=0,!t.defaultPrevented),d=e.slice().reverse();o=!this.__host||!t.composed?this:null;let g=k=>{for(a=this;a.__host&&k.includes(a.__host);)a=a.__host};for(let k of d){!o&&(!a||a===k.__host)&&g(d.slice(d.indexOf(k))),c=k,s=k===t.target?2:1;let O=k.__captureEventListeners.get(t.type);if(O){for(let[B,U]of O)if(h(B,U,O),r)return w()}if(i)return w()}let y=t.bubbles?e:[this];a=null;for(let k of y){!o&&(!a||k===a.__host)&&g(y.slice(0,y.indexOf(k)+1)),c=k,s=k===t.target?2:3;let O=k.__eventListeners.get(t.type);if(O){for(let[B,U]of O)if(h(B,U,O),r)return w()}if(i)return w()}return w()}},Rr=Nr,M={__proto__:null};M.enumerable=!0;Object.freeze(M);var Bt=(re=class{constructor(t,e={}){if(we.set(this,!1),nt.set(this,!1),it.set(this,!1),Te.set(this,!1),$t.set(this,Date.now()),Le.set(this,!1),rt.set(this,void 0),ce.set(this,void 0),Me.set(this,void 0),this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,arguments.length===0)throw new Error("The type argument must be specified");if(typeof e!="object"||!e)throw new Error('The "options" argument must be an object');let{bubbles:n,cancelable:i,composed:r}=e;Q(this,we,!!i,"f"),Q(this,nt,!!n,"f"),Q(this,it,!!r,"f"),Q(this,rt,`${t}`,"f"),Q(this,ce,null,"f"),Q(this,Me,!1,"f")}initEvent(t,e,n){throw new Error("Method not implemented.")}stopImmediatePropagation(){this.stopPropagation()}preventDefault(){Q(this,Te,!0,"f")}get target(){return j(this,ce,"f")}get currentTarget(){return j(this,ce,"f")}get srcElement(){return j(this,ce,"f")}get type(){return j(this,rt,"f")}get cancelable(){return j(this,we,"f")}get defaultPrevented(){return j(this,we,"f")&&j(this,Te,"f")}get timeStamp(){return j(this,$t,"f")}composedPath(){return j(this,Me,"f")?[j(this,ce,"f")]:[]}get returnValue(){return!j(this,we,"f")||!j(this,Te,"f")}get bubbles(){return j(this,nt,"f")}get composed(){return j(this,it,"f")}get eventPhase(){return j(this,Me,"f")?re.AT_TARGET:re.NONE}get cancelBubble(){return j(this,Le,"f")}set cancelBubble(t){t&&Q(this,Le,!0,"f")}stopPropagation(){Q(this,Le,!0,"f")}get isTrusted(){return!1}},we=new WeakMap,nt=new WeakMap,it=new WeakMap,Te=new WeakMap,$t=new WeakMap,Le=new WeakMap,rt=new WeakMap,ce=new WeakMap,Me=new WeakMap,re.NONE=0,re.CAPTURING_PHASE=1,re.AT_TARGET=2,re.BUBBLING_PHASE=3,re);Object.defineProperties(Bt.prototype,{initEvent:M,stopImmediatePropagation:M,preventDefault:M,target:M,currentTarget:M,srcElement:M,type:M,cancelable:M,defaultPrevented:M,timeStamp:M,composedPath:M,returnValue:M,bubbles:M,composed:M,eventPhase:M,cancelBubble:M,stopPropagation:M,isTrusted:M});var jn=(gn=class extends Bt{constructor(t,e={}){super(t,e),st.set(this,void 0),Q(this,st,e?.detail??null,"f")}initCustomEvent(t,e,n,i){throw new Error("Method not implemented.")}get detail(){return j(this,st,"f")}},st=new WeakMap,gn);Object.defineProperties(jn.prototype,{detail:M});var Ir=Bt,Dr=jn,K,ul=(K=class{constructor(){this.STYLE_RULE=1,this.CHARSET_RULE=2,this.IMPORT_RULE=3,this.MEDIA_RULE=4,this.FONT_FACE_RULE=5,this.PAGE_RULE=6,this.NAMESPACE_RULE=10,this.KEYFRAMES_RULE=7,this.KEYFRAME_RULE=8,this.SUPPORTS_RULE=12,this.COUNTER_STYLE_RULE=11,this.FONT_FEATURE_VALUES_RULE=14,this.__parentStyleSheet=null,this.cssText=""}get parentRule(){return null}get parentStyleSheet(){return this.__parentStyleSheet}get type(){return 0}}
225,K.STYLE_RULE=1,K.CHARSET_RULE=2,K.IMPORT_RULE=3,K.MEDIA_RULE=4,K.FONT_FACE_RULE=5,K.PAGE_RULE=6,K.NAMESPACE_RULE=10,K.KEYFRAMES_RULE=7,K.KEYFRAME_RULE=8,K.SUPPORTS_RULE=12,K.COUNTER_STYLE_RULE=11,K.FONT_FEATURE_VALUES_RULE=14,K);globalThis.Event??=Ir;globalThis.CustomEvent??=Dr;var bn=new WeakMap,Oe=t=>{let e=bn.get(t);return e===void 0&&bn.set(t,e=new Map),e},jr=class extends Rr{constructor(){super(...arguments),this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(Oe(this)).map(([t,e])=>({name:t,value:e}))}get shadowRoot(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}get localName(){return this.constructor.__localName}get tagName(){return this.localName?.toUpperCase()}setAttribute(t,e){Oe(this).set(t,String(e))}removeAttribute(t){Oe(this).delete(t)}toggleAttribute(t,e){if(this.hasAttribute(t)){if(e===void 0||!e)return this.removeAttribute(t),!1}else return e===void 0||e?(this.setAttribute(t,""),!0):!1;return!0}hasAttribute(t){return Oe(this).has(t)}attachShadow(t){let e={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=e),e}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");let t=new Br(this);return this.__internals=t,t}getAttribute(t){return Oe(this).get(t)??null}},Ur=class extends jr{},Un=Ur;globalThis.litServerRoot??=Object.defineProperty(new Un,"localName",{get(){return"lit-server-root"}});function zr(){let t,e;return{promise:new Promise((n,i)=>{t=n,e=i}),resolve:t,reject:e}}var Hr=class{constructor(){this.__definitions=new Map,this.__reverseDefinitions=new Map,this.__pendingWhenDefineds=new Map}define(t,e){if(this.__definitions.has(t))throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);
225if(this.__reverseDefinitions.has(e))throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the constructor has already been used with this registry for the tag name ${this.__reverseDefinitions.get(e)}`);e.__localName=t,this.__definitions.set(t,{ctor:e,observedAttributes:e.observedAttributes??[]}),this.__reverseDefinitions.set(e,t),this.__pendingWhenDefineds.get(t)?.resolve(e),this.__pendingWhenDefineds.delete(t)}get(t){return this.__definitions.get(t)?.ctor}getName(t){return this.__reverseDefinitions.get(t)??null}upgrade(t){throw new Error("customElements.upgrade is not currently supported in SSR. Please file a bug if you need it.")}async whenDefined(t){let e=this.__definitions.get(t);if(e)return e.ctor;let n=this.__pendingWhenDefineds.get(t);return n||(n=zr(),this.__pendingWhenDefineds.set(t,n)),n.promise}},Fr=Hr,Wr=new Fr,Ne=globalThis,Nt=Ne.ShadowRoot&&(Ne.ShadyCSS===void 0||Ne.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rt=Symbol(),wn=new WeakMap,zn=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==Rt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Nt&&t===void 0){let n=e!==void 0&&e.length===1;n&&(t=wn.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&wn.set(e,t))}return t}toString(){return this.cssText}},Hn=t=>new zn(typeof t=="string"?t:t+"",void 0,Rt),Kr=(t,...e)=>{let n=t.length===1?t[0]:e.reduce((i,r,s)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[s+1],t[0]);return new zn(n,t,Rt)},qr=(t,e)=>{if(Nt)t.adoptedStyleSheets=e.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(let n of e){let i=document.createElement("style"),r=Ne.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=n.cssText,t.appendChild(i)}},yn=Nt||Ne.CSSStyleSheet===void 0?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let n="";for(let i of e.cssRules)n+=i.cssText;return Hn(n)})(t):t,{is:Vr,defineProperty:Gr,getOwnPropertyDescriptor:Jr,getOwnPropertyNames:Xr,getOwnPropertySymbols:Yr,getPrototypeOf:Zr}=Object,Ue=globalThis;Ue.customElements??=Wr;var _n=Ue.trustedTypes,Qr=_n?_n.emptyScript:"",es=Ue.reactiveElementPolyfillSupport,Re=(t,e)=>t,Mt={toAttribute(t,e){switch(e){case Boolean:t=t?Qr:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch{n=null}}return n}},Fn=(t,e)=>!Vr(t,e),xn={attribute:!0,type:String,converter:Mt,reflect:!1,useDefault:!1,hasChanged:Fn};Symbol.metadata??=Symbol("metadata"),Ue.litPropertyMetadata??=new WeakMap;var _e=class extends(globalThis.HTMLElement??Un){static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=xn){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,e);i!==void 0&&Gr(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){let{get:i,set:r}=Jr(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:i,set(s){let o=i?.call(this);r?.call(this,s),this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??xn}static _$Ei(){if(this.hasOwnProperty(Re("elementProperties")))return;let t=Zr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Re("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Re("properties"))){let e=this.properties,n=[...Xr(e),...Yr(e)];for(let i of n)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[n,i]of e)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[e,n]of this.elementProperties){let i=this._$Eu(e,n);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];
vendor: 10,859 bytes, lines 225-227
225if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)e.unshift(yn(i))}else t!==void 0&&e.push(yn(t));return e}static _$Eu(t,e){let n=e.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return qr(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let r=(n.converter?.toAttribute!==void 0?n.converter:Mt).toAttribute(e,n.type);this._$Em=t,r==null?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){let n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let r=n.getPropertyOptions(i),s=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:Mt;this._$Em=i;let o=s.fromAttribute(e,r.type);this[i]=o??this._$Ej?.get(i)??o,this._$Em=null}}requestUpdate(t,e,n,i=!1,r){if(t!==void 0){let s=this.constructor;if(i===!1&&(r=this[t]),n??=s.getPropertyOptions(t),!((n.hasChanged??Fn)(r,e)||n.useDefault&&n.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,n))))return;this.C(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:i,wrapped:r},s){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),r!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,r]of this._$Ep)this[i]=r;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,r]of n){let{wrapped:s}=r,o=this[i];s!==!0||this._$AL.has(i)||o===void 0||this.C(i,void 0,r,o)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(e)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};_e.elementStyles=[],_e.shadowRootOptions={mode:"open"},_e[Re("elementProperties")]=new Map,_e[Re("finalized")]=new Map,es?.({ReactiveElement:_e}),(Ue.reactiveElementVersions??=[]).push("2.1.2");var dt=globalThis,kn=t=>t,at=dt.trustedTypes,En=at?at.createPolicy("lit-html",{createHTML:t=>t}):void 0,Wn="$lit$",se=`lit$${Math.random().toFixed(9).slice(2)}$`,Kn="?"+se,ts=`<${Kn}>`,pe=dt.document===void 0?{createTreeWalker:()=>({})}:document,Ie=()=>pe.createComment(""),De=t=>t===null||typeof t!="object"&&typeof t!="function",It=Array.isArray,ns=t=>It(t)||typeof t?.[Symbol.iterator]=="function",At=`[ 226\f\r]`,Pe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Sn=/-->/g,$n=/>/g,de=RegExp(`>|${At}(?:([^\\s"'>=/]+)(${At}*=${At}*(?:[^ 227\f\r"'\`<>=]|("|')|))|$)`,"g"),An=/'/g,Cn=/"/g,qn=/^(?:script|style|textarea|title)$/i,Dt=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),xe=Dt(1),is=Dt(2),rs=Dt(3),ke=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),Tn=new WeakMap,ue=pe.createTreeWalker(pe,129);function Vn(t,e){if(!It(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return En!==void 0?En.createHTML(e):e}var ss=(t,e)=>{let n=t.length-1,i=[],r,s=e===2?"<svg>":e===3?"<math>":"",o=Pe;for(let a=0;a<n;a++){let c=t[a],x,p,h=-1,w=0;for(;w<c.length&&(o.lastIndex=w,p=o.exec(c),p!==null);)w=o.lastIndex,o===Pe?p[1]==="!--"?o=Sn:p[1]!==void 0?o=$n:p[2]!==void 0?(qn.test(p[2])&&(r=RegExp("</"+p[2],"g")),o=de):p[3]!==void 0&&(o=de):o===de?p[0]===">"?(o=r??Pe,h=-1):p[1]===void 0?h=-2:(h=o.lastIndex-p[2].length,x=p[1],o=p[3]===void 0?de:p[3]==='"'?Cn:An):o===Cn||o===An?o=de:o===Sn||o===$n?o=Pe:(o=de,r=void 0);let d=o===de&&t[a+1].startsWith("/>")?" ":"";s+=o===Pe?c+ts:h>=0?(i.push(x),c.slice(0,h)+Wn+c.slice(h)+se+d):c+se+(h===-2?a:d)}return[Vn(t,s+(t[n]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Ot=class Gn{constructor({strings:e,_$litType$:n},i){let r;this.parts=[];let s=0,o=0,a=e.length-1,c=this.parts,[x,p]=ss(e,n);if(this.el=Gn.createElement(x,i),ue.currentNode=this.el.content,n===2||n===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=ue.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(Wn)){let w=p[o++],d=r.getAttribute(h).split(se),g=/([.?@])?(.*)/.exec(w);c.push({type:1,index:s,name:g[2],strings:d,ctor:g[1]==="."?as:g[1]==="?"?ls:g[1]==="@"?cs:ut}),r.removeAttribute(h)}else h.startsWith(se)&&(c.push({type:6,index:s}),r.removeAttribute(h));if(qn.test(r.tagName)){let h=r.textContent.split(se),w=h.length-1;if(w>0){r.textContent=at?at.emptyScript:"";for(let d=0;d<w;d++)r.append(h[d],Ie()),ue.nextNode(),c.push({type:2,index:++s});r.append(h[w],Ie())}}}else if(r.nodeType===8)if(r.data===Kn)c.push({type:2,index:s});else{let h=-1;for(;(h=r.data.indexOf(se,h+1))!==-1;)c.push({type:7,index:s}),h+=se.length-1}s++}}static createElement(e,n){let i=pe.createElement("template");return i.innerHTML=e,i}};function Ee(t,e,n=t,i){if(e===ke)return e;let r=i!==void 0?n._$Co?.[i]:n._$Cl,s=De(e)?void 0:e._$litDirective$;return r?.constructor!==s&&(r?._$AO?.(!1),s===void 0?r=void 0:(r=new s(t),r._$AT(t,n,i)),i!==void 0?(n._$Co??=[])[i]=r:n._$Cl=r),r!==void 0&&(e=Ee(t,r._$AS(t,e.values),r,i)),e}var os=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:n}=this._$AD,i=(t?.creationScope??pe).importNode(e,!0);ue.currentNode=i;let r=ue.nextNode(),s=0,o=0,a=n[0];for(;a!==void 0;){if(s===a.index){let c;a.type===2?c=new jt(r,r.nextSibling,this,t):a.type===1?c=new a.ctor(r,a.name,a.strings,this,t):a.type===6&&(c=new ds(r,this,t)),this._$AV.push(c),a=n[++o]}s!==a?.index&&(r=ue.nextNode(),s++)}return ue.currentNode=pe,i}p(t){let e=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}},jt=class Jn{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,n,i,r){this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,n=this._$AM;return n!==void 0&&e?.nodeType===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=Ee(this,e,n),De(e)?e===N||e==null||e===""?(this._$AH!==N&&this._$AR(),this._$AH=N):e!==this._$AH&&e!==ke&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ns(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==N&&De(this._$AH)?this._$AA.nextSibling.data=e:this.T(pe.createTextNode(e)),this._$AH=e}$(e){let{values:n,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Ot.createElement(Vn(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(n);else{let s=new os(r,this),o=s.u(this.options);s.p(n),this.T(o),this._$AH=s}}_$AC(e){let n=Tn.get(e.strings);return n===void 0&&Tn.set(e.strings,n=new Ot(e)),n}k(e){It(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,i,r=0;for(let s of e)r===n.length?n.push(i=new Jn(this.O(Ie()),this.O(Ie()),this,this.options)):i=n[r],i._$AI(s),r++;r<n.length&&(this._$AR(i&&i._$AB.nextSibling,r),n.length=r)}_$AR(e=this._$AA.nextSibling,n){for(this._$AP?.(!1,!0,n);e!==this._$AB;){let i=kn(e).nextSibling;kn(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ut=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,i,r){this.type=1,this._$AH=N,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=N}_$AI(t,e=this,n,i){let r=this.strings,s=!1;if(r===void 0)t=Ee(this,t,e,0),s=!De(t)||t!==this._$AH&&t!==ke,s&&(this._$AH=t);else{let o=t,a,c;for(t=r[0],a=0;a<r.length-1;a++)c=Ee(this,o[n+a],e,a),c===ke&&(c=this._$AH[a]),s||=!De(c)||c!==this._$AH[a],c===N?t=N:t!==N&&(t+=(c??"")+r[a+1]),this._$AH[a]=c}s&&!i&&this.j(t)}j(t){t===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},as=class extends ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===N?void 0:t}},ls=class extends ut{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==N)}},cs=class extends ut{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=Ee(this,t,e,0)??N)===ke)return;let n=this._$AH,i=t===N&&n!==N||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==N&&(n===N||i);i&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ds=class{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ee(this,t)}},us=dt.litHtmlPolyfillSupport;us?.(Ot,jt),(dt.litHtmlVersions??=[]).push("3.3.2");var hs=(t,e,n)=>{let i=n?.renderBefore??e,r=i._$litPart$;if(r===void 0){let s=n?.renderBefore??null;i._$litPart$=r=new jt(e.insertBefore(Ie(),s),s,void 0,n??{})}return r._$AI(t),r}
227,Ut=globalThis,he=class extends _e{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=hs(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ke}};he._$litElement$=!0,he.finalized=!0,Ut.litElementHydrateSupport?.({LitElement:he});var fs=Ut.litElementPolyfillSupport;fs?.({LitElement:he});(Ut.litElementVersions??=[]).push("4.2.2");var Ln={en:{newMessageArrived:t=>`New message arrived in chat: ${t} unread message${t===1?"":"s"}`},nb:{newMessageArrived:t=>`Ny melding i chat: ${t} ulest melding${t===1?"":"er"}`},sv:{newMessageArrived:t=>`Nytt meddelande i chatten: ${t} ol\xE4sta meddelande${t===1?"":"n"}`},fi:{newMessageArrived:t=>`Uusi viesti keskustelussa: ${t} lukematonta viesti${t===1?"":"\xE4"}`},da:{newMessageArrived:t=>`Ny besked i chatten: ${t} ul\xE6st besked${t===1?"":"er"}`}};function ps(){let t=window.location.pathname;return t.includes("finn")?"nb":t.includes("blocket")?"sv":t.includes("tori")?"fi":t.includes("dba")?"da":"en"}function ms(t,...e){let n=ps(),i=Ln[n]&&Ln[n][t];return typeof i=="function"?i(...e):i||t}var gs=Dn(Lr(),1),hl=Dn(Pr(),1);var fe=t=>typeof t=="string",vs=t=>typeof t=="function",Mn=new Map,Xn="en";function zt(t){return[...Array.isArray(t)?t:[t],Xn]}function Yn(t,e,n){let i=zt(t);return lt(()=>ct("date",i,n),()=>new Intl.DateTimeFormat(i,n)).format(fe(e)?new Date(e):e)}function Pt(t,e,n){let i=zt(t);return lt(()=>ct("number",i,n),()=>new Intl.NumberFormat(i,n)).format(e)}function On(t,e,n,{offset:i=0,...r}){let s=zt(t),o=e?lt(()=>ct("plural-ordinal",s),()=>new Intl.PluralRules(s,{type:"ordinal"})):lt(()=>ct("plural-cardinal",s),()=>new Intl.PluralRules(s,{type:"cardinal"}));return r[n]??r[o.select(n-i)]??r.other}function lt(t,e){let n=t(),i=Mn.get(n);return i||(i=e(),Mn.set(n,i)),i}function ct(t,e,n){let i=e.join("-");return`${t}-${i}-${JSON.stringify(n)}`}var Zn=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Qn="%__lingui_octothorpe__%",bs=(t,e,n={})=>{let i=e||t,r=o=>typeof o=="object"?o:n[o]||{style:o},s=(o,a)=>{let c=Object.keys(n).length?r("number"):void 0,x=Pt(i,o,c);return a.replace(new RegExp(Qn,"g"),x)};return{plural:(o,a)=>{let{offset:c=0}=a,x=On(i,!1,o,a);return s(o-c,x)},selectordinal:(o,a)=>{let{offset:c=0}=a,x=On(i,!0,o,a);return s(o-c,x)},select:ws,number:(o,a)=>Pt(i,o,r(a)),date:(o,a)=>Yn(i,o,r(a))}},ws=(t,e)=>e[t]??e.other;function ys(t,e,n){return(i={},r)=>{let s=bs(e,n,r),o=(c,x=!1)=>Array.isArray(c)?c.reduce((p,h)=>{if(h==="#"&&x)return p+Qn;if(fe(h))return p+h;let[w,d,g]=h,y={};d==="plural"||d==="selectordinal"||d==="select"?Object.entries(g).forEach(([O,B])=>{y[O]=o(B,d==="plural"||d==="selectordinal")}):y=g;let k;if(d){let O=s[d];k=O(i[w],y)}else k=i[w];return k==null?p:p+k},""):c,a=o(t);return fe(a)&&Zn.test(a)?(0,gs.unraw)(a.trim()):fe(a)?a.trim():a?String(a):""}}var _s=Object.defineProperty,xs=(t,e,n)=>e in t?_s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ks=(t,e,n)=>(xs(t,typeof e!="symbol"?e+"":e,n),n),Es=class{constructor(){ks(this,"_events",{})}on(t,e){var n;return(n=this._events)[t]??(n[t]=[]),this._events[t].push(e),()=>this.removeListener(t,e)}removeListener(t,e){let n=this._getListeners(t);if(!n)return;let i=n.indexOf(e);~i&&n.splice(i,1)}emit(t,...e){let n=this._getListeners(t);n&&n.map(i=>i.apply(this,e))}_getListeners(t){let e=this._events[t];return Array.isArray(e)?e:!1}},Ss=Object.defineProperty,$s=(t,e,n)=>e in t?Ss(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ye=(t,e,n)=>($s(t,typeof e!="symbol"?e+"":e,n),n),As=class extends Es{constructor(t){super(),ye(this,"_locale",""),ye(this,"_locales"),ye(this,"_localeData",{}),ye(this,"_messages",{}),ye(this,"_missing"),ye(this,"t",this._.bind(this)),t.missing!=null&&(this._missing=t.missing),t.messages!=null&&this.load(t.messages),t.localeData!=null&&this.loadLocaleData(t.localeData),(typeof t.locale=="string"||t.locales)&&this.activate(t.locale??Xn,t.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(t,e){let n=this._localeData[t];n?Object.assign(n,e):this._localeData[t]=e}loadLocaleData(t,e){e!=null?this._loadLocaleData(t,e):Object.keys(t).forEach(n=>
227this._loadLocaleData(n,t[n])),this.emit("change")}_load(t,e){let n=this._messages[t];n?Object.assign(n,e):this._messages[t]=e}load(t,e){typeof t=="string"&&typeof e=="object"?this._load(t,e):Object.entries(t).forEach(([n,i])=>this._load(n,i)),this.emit("change")}loadAndActivate({locale:t,locales:e,messages:n}){this._locale=t,this._locales=e||void 0,this._messages[this._locale]=n,this.emit("change")}activate(t,e){this._locale=t,this._locales=e,this.emit("change")}_(t,e,n){let i=n?.message;t||(t=""),fe(t)||(e=t.values||e,i=t.message,t=t.id);let r=this.messages[t],s=r===void 0,o=this._missing;if(o&&s)return vs(o)?o(this._locale,t):o;s&&this.emit("missing",{id:t,locale:this._locale});let a=r||i||t;return fe(a)&&Zn.test(a)?JSON.parse(`"${a}"`):fe(a)?a:ys(a,this._locale,this._locales)(e,n?.formats)}date(t,e){return Yn(this._locales||this._locale,t,e)}number(t,e){return Pt(this._locales||this._locale,t,e)}};function Cs(t={}){return new As(t)}var ee=Cs(),Ts=class extends he{#e=!1;get i18n(){return this.#e||(ee.load(this.locale,this.translations),ee.activate(this.locale),this.#e=!0),ee}get translations(){return JSON.parse(this.getAttribute("translations")||"{}")}get locale(){return this.getAttribute("locale")||"en"}get initialState(){return JSON.parse(this.getAttribute("initial-state")||"{}")}},Ht=()=>!(typeof window<"u"),ei=class{isServer=!1;css=""},Ls=(t=[])=>{let e=new ei;if(Ht()){for(let n of t)e.css+=`@import url('${n}');`;return e.isServer=!0,e}for(let n of t){let i=new XMLHttpRequest;i.open("GET",n,!1),i.send(),e.css+=i.responseText}return e},Ms=()=>Ls(["https://assets.finn.no/pkg/@warp-ds/css/v2/resets.css","https://assets.finn.no/pkg/@warp-ds/css/v2/components.css"]),Os=async(t=[])=>{let e=new ei;if(Ht()){for(let r of t)e.css+=`@import url('${r}');`;return e.isServer=!0,e}let n=await Promise.all(t.map(r=>fetch(r))),i=await Promise.all(n.map(r=>r.text()));for(let r of i)e.css+=r;return e},Pn=async()=>Os(["https://assets.finn.no/pkg/@warp-ds/css/v2/resets.css","https://assets.finn.no/pkg/@warp-ds/css/v2/components.css"]);(function(){"use strict";if(typeof document>"u"||"adoptedStyleSheets"in document)return;var t="ShadyCSS"in window&&!ShadyCSS.nativeShadow,e=document.implementation.createHTMLDocument(""),n=new WeakMap,i=typeof DOMException=="object"?Error:DOMException,r=Object.defineProperty,s=Array.prototype.forEach,o=/@import.+?;?$/gm;function a(u){var m=u.replace(o,"");return m!==u&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),m.trim()}function c(u){return"isConnected"in u?u.isConnected:document.contains(u)}function x(u){return u.filter(function(m,C){return u.indexOf(m)===C})}function p(u,m){return u.filter(function(C){return m.indexOf(C)===-1})}function h(u){u.parentNode.removeChild(u)}function w(u){return u.shadowRoot||n.get(u)}var d=["addRule","deleteRule","insertRule","removeRule"],g=CSSStyleSheet,y=g.prototype;y.replace=function(){return Promise.reject(new i("Can't call replace on non-constructed CSSStyleSheets."))},y.replaceSync=function(){throw new i("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};function k(u){return typeof u=="object"?l.isPrototypeOf(u)||y.isPrototypeOf(u):!1}function O(u){return typeof u=="object"?y.isPrototypeOf(u):!1}var B=new WeakMap,U=new WeakMap,te=new WeakMap,X=new WeakMap;function oe(u,m){var C=document.createElement("style");return te.get(u).set(m,C),U.get(u).push(m),C}function G(u,m){return te.get(u).get(m)}function R(u,m){te.get(u).delete(m),U.set(u,U.get(u).filter(function(C){return C!==m}))}function Ye(u,m){requestAnimationFrame(function(){m.textContent=B.get(u).textContent,X.get(u).forEach(function(C){return m.sheet[C.method].apply(m.sheet,C.args)})})}function me(u){if(!B.has(u))throw new TypeError("Illegal invocation")}function ae(){var u=this,m=document.createElement("style");e.body.appendChild(m),B.set(u,m),U.set(u,[]),te.set(u,new WeakMap),X.set(u,[])}var l=ae.prototype;l.replace=function(u){try{return this.replaceSync(u),Promise.resolve(this)}catch(m){return Promise.reject(m)}},l.replaceSync=function(u){if(me(this),typeof u=="string"){var m=this;B.get(m).textContent=a(u),X.set(m,[]),U.get(m).forEach(function(C){C.isConnected()&&Ye(m,G(m,C))})}},r(l,"cssRules",{configurable:!0,enumerable:!0,get:function(){return me(this),B.get(this).sheet.cssRules}}),r(l,"media",{configurable:!0,enumerable:!0,get:function(){return me(this),B.get(this).sheet.media}}),d.forEach(function(u){l[u]=function(){var m=this;me(m);var C=arguments;X.get(m).push({method:u,args:C}),U.get(m).forEach(function(H){if(H.isConnected()){var D=G(m,H).sheet;D[u].apply(D,C)}});var I=B.get(m).sheet;return I[u].apply(I,C)}}),r(ae,Symbol.hasInstance,{configurable:!0,value:k});var f={childList:!0,subtree:!0},v=new WeakMap;function b(u){var m=v.get(u);return m||(m=new q(u),v.set(u,m)),m}function S(u){r(u.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return b(this).sheets},set:function(m){b(this).update(m)}})}function E(u,m){for(var C=document.createNodeIterator(u,NodeFilter.SHOW_ELEMENT,function(H){return w(H)?No
227deFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},null,!1),I=void 0;I=C.nextNode();)m(w(I))}var A=new WeakMap,L=new WeakMap,T=new WeakMap;function $(u,m){return m instanceof HTMLStyleElement&&L.get(u).some(function(C){return G(C,u)})}function P(u){var m=A.get(u);return m instanceof Document?m.body:m}function Y(u){var m=document.createDocumentFragment(),C=L.get(u),I=T.get(u),H=P(u);I.disconnect(),C.forEach(function(D){m.appendChild(G(D,u)||oe(D,u))}),H.insertBefore(m,null),I.observe(H,f),C.forEach(function(D){Ye(D,G(D,u))})}function q(u){var m=this;m.sheets=[],A.set(m,u),L.set(m,[]),T.set(m,new MutationObserver(function(C,I){if(!document){I.disconnect();return}C.forEach(function(H){t||s.call(H.addedNodes,function(D){D instanceof Element&&E(D,function(ge){b(ge).connect()})}),s.call(H.removedNodes,function(D){D instanceof Element&&($(m,D)&&Y(m),t||E(D,function(ge){b(ge).disconnect()}))})})}))}if(q.prototype={isConnected:function(){var u=A.get(this);return u instanceof Document?u.readyState!=="loading":c(u.host)},connect:function(){var u=P(this);T.get(this).observe(u,f),L.get(this).length>0&&Y(this),E(u,function(m){b(m).connect()})},disconnect:function(){T.get(this).disconnect()},update:function(u){var m=this,C=A.get(m)===document?"Document":"ShadowRoot";if(!Array.isArray(u))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+C+": Iterator getter is not callable.");if(!u.every(k))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+C+": Failed to convert value to 'CSSStyleSheet'");if(u.some(O))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+C+": Can't adopt non-constructed stylesheets");m.sheets=u;var I=L.get(m),H=x(u),D=p(I,H);D.forEach(function(ge){h(G(ge,m)),R(ge,m)}),L.set(m,H),m.isConnected()&&H.length>0&&Y(m)}},window.CSSStyleSheet=ae,S(Document),"ShadowRoot"in window){S(ShadowRoot);var Z=Element.prototype,ne=Z.attachShadow;Z.attachShadow=function(u){var m=ne.call(this,u);return u.mode==="closed"&&n.set(this,m),m}}var z=b(document);z.isConnected()?z.connect():document.addEventListener("DOMContentLoaded",z.connect.bind(z))})();var Be;if(Ht()){let t=await Pn();Be=Hn(t.css)}else{Be=new CSSStyleSheet;try{let t=window.navigator.userAgent;if(/WebKit/.test(t)&&!/Chrome/.test(t)&&!/Edg/.test(t)&&!window.MSStream)throw new Error("DoesNotSupportTopLevelAwait");let e=await Pn();Be.replaceSync(e.css)}catch{let t=Ms();Be.replaceSync(t.css)}}var Bn=class extends Ts{static styles=[Be]},ti=Symbol.for(""),Ps=t=>{if(t?.r===ti)return t?._$litStatic$},ni=t=>({_$litStatic$:t,r:ti}),Nn=new Map,Ft=t=>(e,...n)=>{let i=n.length,r,s,o=[],a=[],c,x=0,p=!1;for(;x<i;){for(c=e[x];x<i&&(s=n[x],(r=Ps(s))!==void 0);)c+=r+e[++x],p=!0;x!==i&&a.push(s),o.push(c),x++}if(x===i&&o.push(e[i]),p){let h=o.join("$$lit$$");(e=Nn.get(h))===void 0&&(o.raw=o,Nn.set(h,e=o)),n=a}return t(e,...n)},ii=Ft(xe),fl=Ft(is),pl=Ft(rs),Bs=JSON.parse('{"icon.title.messages":"Snakkebobler"}'),Ns=JSON.parse('{"icon.title.messages":"Speech bubbles"}'),Rs=JSON.parse('{"icon.title.messages":"Kaksi puhekuplaa"}'),Is=JSON.parse('{"icon.title.messages":"Talebobler"}'),ri=["en","nb","fi","da","sv"],si="en",Ds=()=>{var t;let e;switch((t=process==null?void 0:process.env)==null?void 0:t.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},oi=()=>{var t;let e=(t=document?.location)==null?void 0:t.hostname;return e?.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":si},Ct=t=>ri.find(e=>t===e||t.toLowerCase().includes(e))||oi();function js(){var t;if(typeof window>"u"){let e=Ds();return Ct(e)}try{let e=(t=document?.documentElement)==null?void 0:t.lang,n=oi();return ri.includes(e)?Ct(e??n):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),Ct(n))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),si}}var Us=(t,e,n,i,r)=>t==="nb"?n:t==="fi"?i:t==="da"?r:e,zs=(t,e,n,i)=>{let r=js(),s=Us(r,t,e,n,i);ee.load(r,s),ee.activate(r)};zs(Ns,Bs,Rs,Is);var Hs=class extends he{render(){let t=ee.t({message:"Speech bubbles",id:"icon.title.messages",comment:"Title for messages icon"});return ii`<svg xmlns="http://www.w3.org/2000/svg"width="24"height="24"fill="none"viewBox="0 0 24 24" part="w-icon-messages-24-part">${ni(`<title>${t}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M21.75 18.75h-10.5l-6 4.5v-4.5h-3a1.5 1.5 0 0 1-1.5-1.5v-15a1.5 1.5 0 0 1 1.5-1.5h19.5a1.5 1.5 0 0 1 1.5 1.5v15a1.5 1.5 0 0 1-1.5 1.5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5.63 7.23a2.235 2.235 0 0 1 3.994 0m5 0a2.236 2.236 0 0 1 3.993 0m-2.637 5.535a5.747 5.747 0 0 1-7.711 0"></path></svg>`}};customElements.get("w-icon-messages-24")||customElements.define("w-icon-messages-24",Hs);var Fs=JSON.parse('{"icon.title.messages-filled":"Snakkeboble med smilefjes"}'),Ws=JSON.parse('{"icon.title.messages-filled":"Message bubble with smiley face"}'),Ks=JSON.parse('{"icon.title.messages-filled":"Puhekuplia, joilla on hymyilev\xE4t kasvot"}'),qs=JSON.parse('{"icon.title.messages-filled":"Besked med et smilende ansigt"}'),ai=["en","nb","fi","da","sv"],li="en",Vs=()=>{var t;let e;switch((t=process==null?void 0:process.env)==null?void 0:t.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},ci=()=>{var t;
227let e=(t=document?.location)==null?void 0:t.hostname;return e?.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":li},Tt=t=>ai.find(e=>t===e||t.toLowerCase().includes(e))||ci();function Gs(){var t;if(typeof window>"u"){let e=Vs();return Tt(e)}try{let e=(t=document?.documentElement)==null?void 0:t.lang,n=ci();return ai.includes(e)?Tt(e??n):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),Tt(n))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),li}}var Js=(t,e,n,i,r)=>t==="nb"?n:t==="fi"?i:t==="da"?r:e,Xs=(t,e,n,i)=>{let r=Gs(),s=Js(r,t,e,n,i);ee.load(r,s),ee.activate(r)};Xs(Ws,Fs,Ks,qs);var Ys=class extends he{render(){let t=ee.t({message:"Message bubble with smiley face",id:"icon.title.messages-filled",comment:"Title for messages filled icon"});return ii`<svg xmlns="http://www.w3.org/2000/svg"width="24"height="24"fill="none"viewBox="0 0 24 24" part="w-icon-messages-filled-24-part">${ni(`<title>${t}</title>`)}<path fill="currentColor" fill-rule="evenodd" d="M.659.659A2.25 2.25 0 0 1 2.25 0h19.5A2.25 2.25 0 0 1 24 2.25v15a2.25 2.25 0 0 1-2.25 2.25H11.5l-5.8 4.35a.75.75 0 0 1-1.2-.6V19.5H2.25A2.25 2.25 0 0 1 0 17.25v-15C0 1.653.237 1.081.659.659m6.968 4.592A2.99 2.99 0 0 0 4.948 6.92a.75.75 0 1 0 1.346.661 1.485 1.485 0 0 1 2.666 0 .75.75 0 1 0 1.346-.661 2.99 2.99 0 0 0-2.679-1.67Zm8.994 0a2.99 2.99 0 0 0-2.679 1.669.75.75 0 0 0 1.347.661 1.484 1.484 0 0 1 2.665 0 .75.75 0 1 0 1.347-.661 2.99 2.99 0 0 0-2.68-1.669m-6.858 8.924a.75.75 0 0 1 .961-.448c1.039.378 2.231.378 3.34-.016 1.11-.395 2.035-1.147 2.601-2.096a.75.75 0 1 1 1.288.77c-.754 1.261-1.964 2.233-3.386 2.739s-2.975.516-4.356.013a.75.75 0 0 1-.448-.962" clip-rule="evenodd"></path></svg>`}};customElements.get("w-icon-messages-filled-24")||customElements.define("w-icon-messages-filled-24",Ys);var Zs=()=>{let t=window.location.origin.replace("http","ws");return t.includes("local")&&(t="wss://dev.finn.no"),t+"/realtime-messaging/ws"},Lt=()=>Math.floor(Math.random()*1e4),Rn=5,ot=0,Qs=class extends Bn{static get styles(){return[Bn.styles,Kr` 228 *,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.border-\\[--w-white\\]{border-color:var(--w-white)}.text-\\[--w-color-navbar-icon-selected\\]{color:var(--w-color-navbar-icon-selected)}.hover\\:no-underline:hover{text-decoration:none}.top-1{top:.1rem}.left-\\[18\\]{left:1.8rem}.static{position:static}.s-bg-notification{background-color:var(--w-s-color-background-notification)}.s-icon-subtle{color:var(--w-s-color-icon-subtle)}.h-12{height:1.2rem}.w-12{width:1.2rem}; 229 `]}static get properties(){return{active:{type:Boolean},count:{type:Number},showCount:{type:Boolean},text:{type:String},loggedIn:{type:Boolean},testing:{type:Boolean},newMessageAnnouncement:{type:String}}}constructor(){super(),this.count=0,this.active=!1,this.showCount=!1,this.loggedIn=!1,this.testing=!1,this.previousCount=0,this.newMessageAnnouncement=""}connectedCallback(){super.connectedCallback(),this.socket()}socket(){let t=()=>{let e=new WebSocket(Zs());return e.onmessage=n=>{let i=JSON.parse(n.data),r=i.count;i?.event==="UNREAD_MESSAGE_COUNT_CHANGED"&&r>this.previousCount&&(this.newMessageAnnouncement=ms("newMessageArrived",r)),this.previousCount=this.count,this.count=r},e.onerror=n=>{console.log(n),e.close()},e.onclose=()=>{if(ot<Rn){ot++;let n=1e3*ot*ot,i=Lt();setTimeout(()=>{this.socket()},n+i)}else console.warn(`Could not connect to realtime server after ${Rn} retries.`)},e};this.loggedIn&&(window.location.protocol==="https:"||this.testing)&&setTimeout(()=>{let e=t();window.addEventListener("pagehide",()=>{e.close()}),window.addEventListener("pageshow",n=>{n.persisted&&setTimeout(()=>{e=t()},Lt())})},Lt())}render(){return xe` 230 <div class="flex items-center relative hover:no-underline"> 231 ${this.active?xe`<w-icon-messages-filled-24 232 class="h-24 text-[--w-color-navbar-icon-selected]" 233 ></w-icon-messages-filled-24>`:xe`<w-icon-messages-24 234 class="h-24 s-icon-subtle" 235 ></w-icon-messages-24>`} 236 ${this.count>0?xe`<span 237 class="h-12 w-12 border-[--w-white] top-1 left-[18] absolute rounded-full border-2 s-bg-notification" 238 ></span>`:N} 239 <span 240 class="hidden md:block text-xs font-bold ml-8" 241 style="color: #474445" 242 > 243 ${this.text?this.text:N} 244 ${this.showCount&&this.count>0?xe`(${this.count})`:N} 245 </span>
246 <span role="status" aria-live="polite" class="sr-only"> 247 ${this.newMessageAnnouncement} 248 </span> 249 </div> 250 `}};customElements.get("messaging-icon")||customElements.define("messaging-icon",Qs);import{LitElement as eo}from"https://assets.finn.no/npm/lit/v3/lit.min.js";import{unsafeStatic as to,html as no}from"https://assets.finn.no/npm/lit-3/v3/static-html.js";var di=["en","nb","fi","da","sv"],ui="en",io=()=>{var t;let e;switch((t=process==null?void 0:process.env)==null?void 0:t.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},hi=()=>{var t;let e=(t=document?.location)==null?void 0:t.hostname;return e?.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":ui},Wt=t=>di.find(e=>t===e||t.toLowerCase().includes(e))||hi();function ro(){var t;if(typeof window>"u"){let e=io();return Wt(e)}try{let e=(t=document?.documentElement)==null?void 0:t.lang,n=hi();return di.includes(e)?Wt(e??n):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),Wt(n))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),ui}}var so=(t,e,n,i,r,s)=>t==="nb"?n:t==="fi"?i:t==="da"?r:t==="sv"?s:e,oo=(t,e,n,i,r)=>{let s=ro(),o=so(s,t,e,n,i,r);_.load(s,o),_.activate(s)},ze={nb:{"icon.title.bell":["Bjelle"]},en:{"icon.title.bell":["Bell"]},fi:{"icon.title.bell":["Soittokello"]},da:{"icon.title.bell":["Klokke"]},sv:{"icon.title.bell":["Klocka"]}};oo(ze.en,ze.nb,ze.fi,ze.da,ze.sv);var ao=class extends eo{render(){let t=_.t({message:"Bell",id:"icon.title.bell",comment:"Title for bell icon"});return no`<svg xmlns="http://www.w3.org/2000/svg"width="24"height="24"fill="none"viewBox="0 0 24 24" part="w-icon-bell-24-part">${to(`<title>${t}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M10.01 21.782a2.11 2.11 0 0 0 1.992 1.467c.905 0 1.725-.605 1.993-1.467M12 3V.75M12 3c4.168 0 7.5 3.492 7.5 7.619C19.5 17.777 21 19 21 19H3s1.5-1.946 1.5-8.381C4.5 6.519 7.865 3 12 3"></path></svg>`}};customElements.get("w-icon-bell-24")||customElements.define("w-icon-bell-24",ao);import{LitElement as lo}from"https://assets.finn.no/npm/lit/v3/lit.min.js";import{unsafeStatic as co,html as uo}from"https://assets.finn.no/npm/lit-3/v3/static-html.js";var fi=["en","nb","fi","da","sv"],pi="en",ho=()=>{var t;let e;switch((t=process==null?void 0:process.env)==null?void 0:t.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},mi=()=>{var t;let e=(t=document?.location)==null?void 0:t.hostname;return e?.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":pi},Kt=t=>fi.find(e=>t===e||t.toLowerCase().includes(e))||mi();function fo(){var t;if(typeof window>"u"){let e=ho();return Kt(e)}try{let e=(t=document?.documentElement)==null?void 0:t.lang,n=mi();return fi.includes(e)?Kt(e??n):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),Kt(n))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),pi}}var po=(t,e,n,i,r,s)=>t==="nb"?n:t==="fi"?i:t==="da"?r:t==="sv"?s:e,mo=(t,e,n,i,r)=>{let s=fo(),o=po(s,t,e,n,i,r);_.load(s,o),_.activate(s)},He={nb:{"icon.title.bell-filled":["Bjelle"]},en:{"icon.title.bell-filled":["Bell"]},fi:{"icon.title.bell-filled":["Soittokello"]},da:{"icon.title.bell-filled":["Klokke"]},sv:{"icon.title.bell-filled":["Klocka"]}};mo(He.en,He.nb,He.fi,He.da,He.sv);var go=class extends lo{render(){let t=_.t({message:"Bell",id:"icon.title.bell-filled",comment:"Title for bell filled icon"});return uo`<svg xmlns="http://www.w3.org/2000/svg"width="24"height="24"fill="none"viewBox="0 0 24 24" part="w-icon-bell-filled-24-part">${co(`<title>${t}</title>`)}<path fill="currentColor" fill-rule="evenodd" d="M7.068 20.345a.75.75 0 0 1 .662-.138l3.85 1.031a.75.75 0 0 1 .44 1.125 2.86 2.86 0 0 1-3.133 1.225 2.86 2.86 0 0 1-2.1-2.627.75.75 0 0 1 .28-.616Zm8.568-19.018A.75.75 0 1 0 14.187.94l-.397 1.483C9.618 1.714 5.487 4.428 4.388 8.53c-.818 3.052-1.697 4.91-2.35 5.99a7.6 7.6 0 0 1-.775 1.084 3 3 0 0 1-.23.236l-.002.002a.75.75 0 0 0 .27 1.313l17.386 4.659a.75.75 0 0 0 .826-1.129l-.002-.003a1 1 0 0 1-.06-.163c-.056-.185-.131-.533-.155-1.11-.047-1.155.116-3.197 1.03-6.609 1.106-4.13-1.092-8.517-5.087-9.992l.397-1.482Z" clip-rule="evenodd"></path></svg>`}};customElements.get("w-icon-bell-filled-24")||customElements.define("w-icon-bell-filled-24",go);import{LitElement as vo}from"https://assets.finn.no/npm/lit/v3/lit.min.js";import{unsafeStatic as bo,html as wo}from"https://assets.finn.no/npm/lit-3/v3/static-html.js";var gi=["en","nb","fi","da","sv"],vi="en",yo=()=>{var t;let e;switch((t=process==null?void 0:process.env)==null?void 0:t.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},bi=()=>{var t;
250let e=(t=document?.location)==null?void 0:t.hostname;return e?.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":vi},qt=t=>gi.find(e=>t===e||t.toLowerCase().includes(e))||bi();function _o(){var t;if(typeof window>"u"){let e=yo();return qt(e)}try{let e=(t=document?.documentElement)==null?void 0:t.lang,n=bi();return gi.includes(e)?qt(e??n):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),qt(n))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),vi}}var xo=(t,e,n,i,r,s)=>t==="nb"?n:t==="fi"?i:t==="da"?r:t==="sv"?s:e,ko=(t,e,n,i,r)=>{let s=_o(),o=xo(s,t,e,n,i,r);_.load(s,o),_.activate(s)},Fe={nb:{"icon.title.circle-plus":["Sirkel med plusstegn"]},en:{"icon.title.circle-plus":["Circle with plus sign"]},fi:{"icon.title.circle-plus":["Ympyr\xE4 ja plusmerkki"]},da:{"icon.title.circle-plus":["Cirkel med plustegn"]},sv:{"icon.title.circle-plus":["Cirkel med plustecken"]}};ko(Fe.en,Fe.nb,Fe.fi,Fe.da,Fe.sv);var Eo=class extends vo{render(){let t=_.t({message:"Circle with plus sign",id:"icon.title.circle-plus",comment:"Title for circle-plus icon"});return wo`<svg xmlns="http://www.w3.org/2000/svg"width="24"height="24"fill="none"viewBox="0 0 24 24" part="w-icon-circle-plus-24-part">${bo(`<title>${t}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 7.5v9M7.5 12h9M12 23.25c6.213 0 11.25-5.037 11.25-11.25S18.213.75 12 .75.75 5.787.75 12 5.787 23.25 12 23.25"></path></svg>`}};customElements.get("w-icon-circle-plus-24")||customElements.define("w-icon-circle-plus-24",Eo);import{LitElement as So}from"https://assets.finn.no/npm/lit/v3/lit.min.js";import{unsafeStatic as $o,html as Ao}from"https://assets.finn.no/npm/lit-3/v3/static-html.js";var wi=["en","nb","fi","da","sv"],yi="en",Co=()=>{var t;let e;switch((t=process==null?void 0:process.env)==null?void 0:t.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},_i=()=>{var t;let e=(t=document?.location)==null?void 0:t.hostname;return e?.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":yi},Vt=t=>wi.find(e=>t===e||t.toLowerCase().includes(e))||_i();function To(){var t;if(typeof window>"u"){let e=Co();return Vt(e)}try{let e=(t=document?.documentElement)==null?void 0:t.lang,n=_i();return wi.includes(e)?Vt(e??n):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),Vt(n))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),yi}}var Lo=(t,e,n,i,r,s)=>t==="nb"?n:t==="fi"?i:t==="da"?r:t==="sv"?s:e,Mo=(t,e,n,i,r)=>{let s=To(),o=Lo(s,t,e,n,i,r);_.load(s,o),_.activate(s)},We={nb:{"icon.title.circle-plus-filled":["Sirkel med plusstegn i"]},en:{"icon.title.circle-plus-filled":["Plus sign inside a circle"]},fi:{"icon.title.circle-plus-filled":["Plus-merkki ympyr\xE4n sis\xE4ll\xE4"]},da:{"icon.title.circle-plus-filled":["Plustegn inde i en cirkel"]},sv:{"icon.title.circle-plus-filled":["Plustecken i en cirkel"]}};Mo(We.en,We.nb,We.fi,We.da,We.sv);var Oo=class extends So{render(){let t=_.t({message:"Plus sign inside a circle",id:"icon.title.circle-plus-filled",comment:"Title for circle plus filled icon"});return Ao`<svg xmlns="http://www.w3.org/2000/svg"width="24"height="24"fill="none"viewBox="0 0 24 24" part="w-icon-circle-plus-filled-24-part">${$o(`<title>${t}</title>`)}<path fill="currentColor" fill-rule="evenodd" d="M0 12C0 5.373 5.373 0 12 0s12 5.373 12 12-5.373 12-12 12S0 18.627 0 12m12-5.25a.75.75 0 0 1 .75.75v3.75h3.75a.75.75 0 0 1 0 1.5h-3.75v3.75a.75.75 0 0 1-1.5 0v-3.75H7.5a.75.75 0 0 1 0-1.5h3.75V7.5a.75.75 0 0 1 .75-.75" clip-rule="evenodd"></path></svg>`}};customElements.get("w-icon-circle-plus-filled-24")||customElements.define("w-icon-circle-plus-filled-24",Oo);import{LitElement as Po}from"https://assets.finn.no/npm/lit/v3/lit.min.js";import{unsafeStatic as Bo,html as No}from"https://assets.finn.no/npm/lit-3/v3/static-html.js";var xi=["en","nb","fi","da","sv"],ki="en",Ro=()=>{var t;let e;switch((t=process==null?void 0:process.env)==null?void 0:t.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},Ei=()=>{var t;
250let e=(t=document?.location)==null?void 0:t.hostname;return e?.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":ki},Gt=t=>xi.find(e=>t===e||t.toLowerCase().includes(e))||Ei();function Io(){var t;if(typeof window>"u"){let e=Ro();return Gt(e)}try{let e=(t=document?.documentElement)==null?void 0:t.lang,n=Ei();return xi.includes(e)?Gt(e??n):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),Gt(n))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),ki}}var Do=(t,e,n,i,r,s)=>t==="nb"?n:t==="fi"?i:t==="da"?r:t==="sv"?s:e,jo=(t,e,n,i,r)=>{let s=Io(),o=Do(s,t,e,n,i,r);_.load(s,o),_.activate(s)},Ke={nb:{"icon.title.circle-user":["Sirkel med brukerprofil"]},en:{"icon.title.circle-user":["Circle with user profile"]},fi:{"icon.title.circle-user":["Ympyr\xE4, jonka sis\xE4ll\xE4 ihmishahmo"]},da:{"icon.title.circle-user":["Cirkel med brugerprofil"]},sv:{"icon.title.circle-user":["Cirkel med en anv\xE4ndarprofil"]}};jo(Ke.en,Ke.nb,Ke.fi,Ke.da,Ke.sv);var Uo=class extends Po{render(){let t=_.t({message:"Circle with user profile",id:"icon.title.circle-user",comment:"Title for circle-user icon"});return No`<svg xmlns="http://www.w3.org/2000/svg"width="24"height="24"fill="none"viewBox="0 0 24 24" part="w-icon-circle-user-24-part">${Bo(`<title>${t}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 15a5.25 5.25 0 1 0 0-10.5A5.25 5.25 0 0 0 12 15"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 23.25c6.213 0 11.25-5.037 11.25-11.25S18.213.75 12 .75.75 5.787.75 12 5.787 23.25 12 23.25"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.476 7.084A8.7 8.7 0 0 0 13.75 9.75a8.7 8.7 0 0 0 3.39-.685M5.087 20.876a9.745 9.745 0 0 1 13.805-.021"></path></svg>`}};customElements.get("w-icon-circle-user-24")||customElements.define("w-icon-circle-user-24",Uo);import{LitElement as zo}from"https://assets.finn.no/npm/lit/v3/lit.min.js";import{unsafeStatic as Ho,html as Fo}from"https://assets.finn.no/npm/lit-3/v3/static-html.js";var Si=["en","nb","fi","da","sv"],$i="en",Wo=()=>{var t;let e;switch((t=process==null?void 0:process.env)==null?void 0:t.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},Ai=()=>{var t;let e=(t=document?.location)==null?void 0:t.hostname;return e?.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":$i},Jt=t=>Si.find(e=>t===e||t.toLowerCase().includes(e))||Ai();function Ko(){var t;if(typeof window>"u"){let e=Wo();return Jt(e)}try{let e=(t=document?.documentElement)==null?void 0:t.lang,n=Ai();return Si.includes(e)?Jt(e??n):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),Jt(n))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),$i}}var qo=(t,e,n,i,r,s)=>t==="nb"?n:t==="fi"?i:t==="da"?r:t==="sv"?s:e,Vo=(t,e,n,i,r)=>{let s=Ko(),o=qo(s,t,e,n,i,r);_.load(s,o),_.activate(s)},qe={nb:{"icon.title.building":["Leilighetsbygg"]},en:{"icon.title.building":["Apartment building"]},fi:{"icon.title.building":["Kerrostalo"]},da:{"icon.title.building":["Lejlighedsbygning"]},sv:{"icon.title.building":["L\xE4genhetsbyggnad"]}};Vo(qe.en,qe.nb,qe.fi,qe.da,qe.sv);var Go=class extends zo{render(){let t=_.t({message:"Apartment building",id:"icon.title.building",comment:"Title for building icon"});return Fo`<svg xmlns="http://www.w3.org/2000/svg"width="24"height="24"fill="none"viewBox="0 0 24 24" part="w-icon-building-24-part">${Ho(`<title>${t}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3 23V1h18v22"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 23v-4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4M1 23h22M7 5h3M7 9h10m-3 4h3M7 13h3m4-8h3"></path></svg>`}};customElements.get("w-icon-building-24")||customElements.define("w-icon-building-24",Go);import{LitElement as Jo}from"https://assets.finn.no/npm/lit/v3/lit.min.js";import{unsafeStatic as Xo,html as Yo}from"https://assets.finn.no/npm/lit-3/v3/static-html.js";var Ci=["en","nb","fi","da","sv"],Ti="en",Zo=()=>{var t;let e;switch((t=process==null?void 0:process.env)==null?void 0:t.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},Li=()=>{var t;
250let e=(t=document?.location)==null?void 0:t.hostname;return e?.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":Ti},Xt=t=>Ci.find(e=>t===e||t.toLowerCase().includes(e))||Li();function Qo(){var t;if(typeof window>"u"){let e=Zo();return Xt(e)}try{let e=(t=document?.documentElement)==null?void 0:t.lang,n=Li();return Ci.includes(e)?Xt(e??n):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),Xt(n))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Ti}}var ea=(t,e,n,i,r,s)=>t==="nb"?n:t==="fi"?i:t==="da"?r:t==="sv"?s:e,ta=(t,e,n,i,r)=>{let s=Qo(),o=ea(s,t,e,n,i,r);_.load(s,o),_.activate(s)},Ve={nb:{"icon.title.circle-user-filled":["Sirkel med en person i"]},en:{"icon.title.circle-user-filled":["Person in a circle"]},fi:{"icon.title.circle-user-filled":["Henkil\xF6 ympyr\xE4n sis\xE4ll\xE4"]},da:{"icon.title.circle-user-filled":["Person i en cirkel"]},sv:{"icon.title.circle-user-filled":["Person i en cirkel"]}};ta(Ve.en,Ve.nb,Ve.fi,Ve.da,Ve.sv);var na=class extends Jo{render(){let t=_.t({message:"Person in a circle",id:"icon.title.circle-user-filled",comment:"Title for circle user filled icon"});return Yo`<svg xmlns="http://www.w3.org/2000/svg"width="24"height="24"fill="none"viewBox="0 0 24 24" part="w-icon-circle-user-filled-24-part">${Xo(`<title>${t}</title>`)}<path fill="currentColor" fill-rule="evenodd" d="M0 12C0 5.373 5.373 0 12 0s12 5.373 12 12-5.373 12-12 12S0 18.627 0 12m12 10.5c-2.375 0-4.565-.788-6.324-2.117a9.1 9.1 0 0 1 2.833-1.914 8.9 8.9 0 0 1 7.003 0 9.1 9.1 0 0 1 2.824 1.904A10.45 10.45 0 0 1 12 22.5M12 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12M7.906 8.13a4.5 4.5 0 1 0 8.582 1.54 10.7 10.7 0 0 1-2.645.33 10.6 10.6 0 0 1-3.417-.56 9.3 9.3 0 0 1-2.52-1.31" clip-rule="evenodd"></path></svg>`}};customElements.get("w-icon-circle-user-filled-24")||customElements.define("w-icon-circle-user-filled-24",na);import{LitElement as ia}from"https://assets.finn.no/npm/lit/v3/lit.min.js";import{unsafeStatic as ra,html as sa}from"https://assets.finn.no/npm/lit-3/v3/static-html.js";var Mi=["en","nb","fi","da","sv"],Oi="en",oa=()=>{var t;let e;switch((t=process==null?void 0:process.env)==null?void 0:t.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},Pi=()=>{var t;let e=(t=document?.location)==null?void 0:t.hostname;return e?.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":Oi},Yt=t=>Mi.find(e=>t===e||t.toLowerCase().includes(e))||Pi();function aa(){var t;if(typeof window>"u"){let e=oa();return Yt(e)}try{let e=(t=document?.documentElement)==null?void 0:t.lang,n=Pi();return Mi.includes(e)?Yt(e??n):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),Yt(n))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Oi}}var la=(t,e,n,i,r,s)=>t==="nb"?n:t==="fi"?i:t==="da"?r:t==="sv"?s:e,ca=(t,e,n,i,r)=>{let s=aa(),o=la(s,t,e,n,i,r);_.load(s,o),_.activate(s)},Ge={nb:{"icon.title.house":["Hus"]},en:{"icon.title.house":["House"]},fi:{"icon.title.house":["Talo"]},da:{"icon.title.house":["Hus"]},sv:{"icon.title.house":["Hus"]}};ca(Ge.en,Ge.nb,Ge.fi,Ge.da,Ge.sv);var da=class extends ia{render(){let t=_.t({message:"House",id:"icon.title.house",comment:"Title for house icon"});return sa`<svg xmlns="http://www.w3.org/2000/svg"width="24"height="24"fill="none"viewBox="0 0 24 24" part="w-icon-house-24-part">${ra(`<title>${t}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3 9.5V21a2 2 0 0 0 2 2h4v-4.815c0-1.595 1.343-2.889 3-2.889s3 1.294 3 2.89V23h4a2 2 0 0 0 2-2V9.5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m1.5 10.5 9.158-8.286a2 2 0 0 1 2.684 0L22.5 10.5"></path></svg>`}};customElements.get("w-icon-house-24")||customElements.define("w-icon-house-24",da);import{LitElement as ua}from"https://assets.finn.no/npm/lit/v3/lit.min.js";import{unsafeStatic as ha,html as fa}from"https://assets.finn.no/npm/lit-3/v3/static-html.js";var Bi=["en","nb","fi","da","sv"],Ni="en",pa=()=>{var t;let e;switch((t=process==null?void 0:process.env)==null?void 0:t.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},Ri=()=>{var t;
250let e=(t=document?.location)==null?void 0:t.hostname;return e?.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":Ni},Zt=t=>Bi.find(e=>t===e||t.toLowerCase().includes(e))||Ri();function ma(){var t;if(typeof window>"u"){let e=pa();return Zt(e)}try{let e=(t=document?.documentElement)==null?void 0:t.lang,n=Ri();return Bi.includes(e)?Zt(e??n):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),Zt(n))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Ni}}var ga=(t,e,n,i,r,s)=>t==="nb"?n:t==="fi"?i:t==="da"?r:t==="sv"?s:e,va=(t,e,n,i,r)=>{let s=ma(),o=ga(s,t,e,n,i,r);_.load(s,o),_.activate(s)},Je={nb:{"icon.title.messages":["Snakkebobler"]},en:{"icon.title.messages":["Speech bubbles"]},fi:{"icon.title.messages":["Kaksi puhekuplaa"]},da:{"icon.title.messages":["Talebobler"]},sv:{"icon.title.messages":["Pratbubblor"]}};va(Je.en,Je.nb,Je.fi,Je.da,Je.sv);var ba=class extends ua{render(){let t=_.t({message:"Speech bubbles",id:"icon.title.messages",comment:"Title for messages icon"});return fa`<svg xmlns="http://www.w3.org/2000/svg"width="24"height="24"fill="none"viewBox="0 0 24 24" part="w-icon-messages-24-part">${ha(`<title>${t}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M21.75 18.75h-10.5l-6 4.5v-4.5h-3a1.5 1.5 0 0 1-1.5-1.5v-15a1.5 1.5 0 0 1 1.5-1.5h19.5a1.5 1.5 0 0 1 1.5 1.5v15a1.5 1.5 0 0 1-1.5 1.5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5.63 7.23a2.235 2.235 0 0 1 3.994 0m5 0a2.236 2.236 0 0 1 3.993 0m-2.637 5.535a5.747 5.747 0 0 1-7.711 0"></path></svg>`}};customElements.get("w-icon-messages-24")||customElements.define("w-icon-messages-24",ba);import{LitElement as wa}from"https://assets.finn.no/npm/lit/v3/lit.min.js";import{unsafeStatic as ya,html as _a}from"https://assets.finn.no/npm/lit-3/v3/static-html.js";var Ii=["en","nb","fi","da","sv"],Di="en",xa=()=>{var t;let e;switch((t=process==null?void 0:process.env)==null?void 0:t.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},ji=()=>{var t;let e=(t=document?.location)==null?void 0:t.hostname;return e?.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":Di},Qt=t=>Ii.find(e=>t===e||t.toLowerCase().includes(e))||ji();function ka(){var t;if(typeof window>"u"){let e=xa();return Qt(e)}try{let e=(t=document?.documentElement)==null?void 0:t.lang,n=ji();return Ii.includes(e)?Qt(e??n):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),Qt(n))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Di}}var Ea=(t,e,n,i,r,s)=>t==="nb"?n:t==="fi"?i:t==="da"?r:t==="sv"?s:e,Sa=(t,e,n,i,r)=>{let s=ka(),o=Ea(s,t,e,n,i,r);_.load(s,o),_.activate(s)},Xe={nb:{"icon.title.messages-filled":["Snakkeboble med smilefjes"]},en:{"icon.title.messages-filled":["Message bubble with smiley face"]},fi:{"icon.title.messages-filled":["Puhekuplia, joilla on hymyilev\xE4t kasvot"]},da:{"icon.title.messages-filled":["Besked med et smilende ansigt"]},sv:{"icon.title.messages-filled":["Meddelandebubbla med glatt ansikte"]}};Sa(Xe.en,Xe.nb,Xe.fi,Xe.da,Xe.sv);var $a=class extends wa{render(){let t=_.t({message:"Message bubble with smiley face",id:"icon.title.messages-filled",comment:"Title for messages filled icon"});return _a`<svg xmlns="http://www.w3.org/2000/svg"width="24"height="24"fill="none"viewBox="0 0 24 24" part="w-icon-messages-filled-24-part">${ya(`<title>${t}</title>`)}<path fill="currentColor" fill-rule="evenodd" d="M.659.659A2.25 2.25 0 0 1 2.25 0h19.5A2.25 2.25 0 0 1 24 2.25v15a2.25 2.25 0 0 1-2.25 2.25H11.5l-5.8 4.35a.75.75 0 0 1-1.2-.6V19.5H2.25A2.25 2.25 0 0 1 0 17.25v-15C0 1.653.237 1.081.659.659m6.968 4.592A2.99 2.99 0 0 0 4.948 6.92a.75.75 0 1 0 1.346.661 1.485 1.485 0 0 1 2.666 0 .75.75 0 1 0 1.346-.661 2.99 2.99 0 0 0-2.679-1.67Zm8.994 0a2.99 2.99 0 0 0-2.679 1.669.75.75 0 0 0 1.347.661 1.484 1.484 0 0 1 2.665 0 .75.75 0 1 0 1.347-.661 2.99 2.99 0 0 0-2.68-1.669m-6.858 8.924a.75.75 0 0 1 .961-.448c1.039.378 2.231.378 3.34-.016 1.11-.395 2.035-1.147 2.601-2.096a.75.75 0 1 1 1.288.77c-.754 1.261-1.964 2.233-3.386 2.739s-2.975.516-4.356.013a.75.75 0 0 1-.448-.962" clip-rule="evenodd"></path></svg>`}};customElements.get("w-icon-messages-filled-24")||customElements.define("w-icon-messages-filled-24",$a);import"https://assets.finn.no/pkg/@warp-ds/elements/v2/packages/attention/index.js"; 251/*! Bundled license information: 252 253@schibsted-nmp/messaging-icon/dist/web-component.js: 254 (*! Bundled license information: 255 256 @lit-labs/ssr-dom-shim/lib/element-internals.js: 257 (** 258 * @license 259 * Copyright 2023 Google LLC 260 * SPDX-License-Identifier: BSD-3-Clause 261 *) 262 263 @lit-labs/ssr-dom-shim/lib/events.js: 264 (** 265 * @license 266 * Copyright 2023 Google LLC 267 * SPDX-License-Identifier: BSD-3-Clause 268 *) 269 270 @lit-labs/ssr-dom-shim/lib/css.js: 271 (** 272 * @license 273 * Copyright 2024 Google LLC 274 * SPDX-License-Identifier: BSD-3-Clause 275 *) 276 277 @lit-labs/ssr-dom-shim/index.js: 278 (** 279 * @license 280 * Copyright 2019 Google LLC 281 * SPDX-License-Identifier: BSD-3-Clause 282 *) 283 284 @lit/reactive-element/node/css-tag.js: 285 (** 286 * @license 287 * Copyright 2019 Google LLC 288 * SPDX-License-Identifier: BSD-3-Clause 289 *) 290 291 lit-html/node/lit-html.js: 292 (** 293 * @license 294 * Copyright 2017 Google LLC 295 * SPDX-License-Identifier: BSD-3-Clause 296 *) 297 298 lit-element/lit-element.js: 299 (** 300 * @license 301 * Copyright 2017 Google LLC 302 * SPDX-License-Identifier: BSD-3-Clause 303 *) 304 305 lit-html/node/is-server.js: 306 (** 307 * @license 308 * Copyright 2022 Google LLC 309 * SPDX-License-Identifier: BSD-3-Clause 310 *) 311 312 lit-html/node/static.js: 313 (** 314 * @license 315 * Copyright 2020 Google LLC 316 * SPDX-License-Identifier: BSD-3-Clause 317 *) 318 *) 319*/ 320//# sourceMappingURL=header.js.map
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.