PageSourceSearch

https://assets.blocket.se/pkg/frontpage-layout-v2/0.0.151/CompanyFirstTitleBoldCard.js

js blocket.se collected 2026-09-24 17:14:50 UTC 109,421 bytes, 12 lines download raw bytes

1import{i as e,n as t,r as n}from"./hydrate.js";import{t as r}from"./useInView.js";import{n as i,t as a}from"./tracking.js";import{n as o}from"./ConfigContext.js";import s,{createContext as c,forwardRef as l,useCallback as u,useContext as d,useEffect as f,useImperativeHandle as p,useMemo as m,useRef as h,useState as g}from"https://assets.finn.no/npm/react/v19/react.production.min.js";import _ from"https://assets.finn.no/pkg/@finn-no/pulse-sdk/v0/client.esm.min.js";import v from"https://assets.finn.no/npm/react-dom/v19/react-dom.production.js";import{LitElement as y}from"https://assets.finn.no/npm/lit/v3/lit.min.js";import{toast as b}from"https://assets.finn.no/pkg/@warp-ds/elements/v2/packages/toast/index.js";function x(e){return e}async function S(e,...t){let{promise:n,resolve:r,reject:i}=Promise.withResolvers();for(let e of t)e.addEventListener(`abort`,i);setTimeout(()=>{r();for(let e of t)e.removeEventListener(`abort`,i)},e),await n}var C=(function e(...t){let n=(...e)=>x([...t,...e].map(Object.keys).map(([e])=>e).join(`.`));return n.prefix=(...n)=>x(e(...t,...n)),n})(),w;(function(e){var t;let n=C.prefix({Dom:e});function r(){return typeof window<`u`}e.isAvailable=r;function i(){if(!r())throw new a}e.assertIsAvailable=i;class a extends ReferenceError{constructor(){super(`DOM is not available in a SSR context!`)}}t=a,t.prototype.name=n({UnavailableError:a}),e.UnavailableError=a})(w||={});function T(){}function E(e){return e==null}function D(e){return!E(e)}var O;(function(e){e.Wrapped=Symbol(`ProxyChain.Wrapped`);function t(t){if(typeof t==`object`){let n=()=>t;return n[e.Wrapped]=!0,new Proxy(n,e.handler)}return typeof t==`function`?new Proxy(t,e.handler):t}e.create=t,e.handler={construct(n,r){return n[e.Wrapped]&&(n=n()),t(Reflect.construct(n,r))},get(r,i,a){return r[e.Wrapped]&&(r=r()),i!==`then`&&i!==`catch`&&D(r)&&typeof r.then==`function`?t(r.then(e=>n(e,i,a))):t(n(r,i,a))},apply(n,i,a){return n[e.Wrapped]&&(n=n()),typeof n.then==`function`?t(n.then(e=>r(e,i,a))):t(r(n,i,a))}};function n(e,t,n){if(E(e))return;let r=typeof e==`object`?Reflect.get(e,t,n):e[t];return typeof r==`function`&&typeof r.bind==`function`?Object.assign(r.bind(e),r):r}function r(e,t,n){if(!E(e))return Reflect.apply(e,t,n)}})(O||={});var k=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},A=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},j,M,N,P,F,ee,te,ne,re=class{constructor(){j.add(this),N.set(this,null),P.set(this,null)}get proxy(){if(k(this,N,`f`))return k(this,N,`f`);let e=this;async function t(t,...n){return typeof t==`function`?await e.execute(t,...n):(t&&(n=[t,...n]),await e.execute((e=>e),...n))}return A(this,N,O.create(Object.setPrototypeOf(t,this)),`f`)}get loadedGlobalRef(){if(!k(this,P,`f`))throw new M.GlobalReferenceError(this.globalPropertyName);return k(this,P,`f`)}async execute(e,...t){for(let e of t)e.throwIfAborted();let n=await k(this,j,`m`,ee).call(this,...t),{promise:r,resolve:i,reject:a}=Promise.withResolvers();return this.enqueue(n,()=>{try{for(let e of t)e.throwIfAborted();i(e(n,...t))}catch(e){a(e)}}),await r}isUninitialized(e){return!this.isInitialized(e)}};M=re,N=new WeakMap,P=new WeakMap,j=new WeakSet,F=function(e){this.isUninitialized(e)&&this.initialize(e)},ee=async function(...e){w.assertIsAvailable(),k(this,j,`m`,ne).call(this);for(let t of e)t.throwIfAborted();if(k(this,P,`f`))return k(this,P,`f`);let{promise:t,resolve:n,reject:r}=Promise.withResolvers();try{k(this,j,`m`,F).call(this,window);let t=window[this.globalPropertyName];for(let t of e)t.addEventListener(`abort`,r);this.enqueue(t,()=>{try{for(let t of e)t.throwIfAborted();k(this,j,`m`,te).call(this,t),n(A(this,P,k(this,P,`f`)??t,`f`))}catch(e){r(e)}})}catch(e){r(e)}finally{for(let t of e)t.removeEventListener(`abort`,r)}return await t},te=function(e){if(w.assertIsAvailable(),k(this,j,`m`,ne).call(this),!this.isLoaded(e))throw new M.UnmetConditionError(this.globalPropertyName)},ne=function(){if(!this.isEnabled())throw new M.DisabledError(this.globalPropertyName)},(function(e){var t,n,r;let i=C.prefix({ApiResolver:e});function a(e){return{globalPropertyName:e,unsafePropertyName:`unsafe_${e}`}}e.getGlobalPropertyNames=a;class o extends ReferenceError{constructor(e){super(`Attempted to access a fully loaded 'window.${e}' that's not ready.`)}}t=o,t.prototype.name=i({GlobalReferenceError:o}),e.GlobalReferenceError=o;
1class s extends Error{constructor(e){super(`Failed resolving reference 'window.${e}' due to unmet condition.`)}}n=s,n.prototype.name=i({UnmetConditionError:s}),e.UnmetConditionError=s;class c extends Error{constructor(e){super(`Failed attempt to invoke 'window.${e}' due to being disabled!`)}}r=c,r.prototype.name=i({DisabledError:c}),e.DisabledError=c})(re||={});function ie(e,t){typeof window<`u`&&(window.ADVT??={},window.ADVT[e]=t)}var ae=`advt_debug`,oe=`advt_debug_placement`,se,ce;function le(e){return ue(e)!==null}function ue(e){return new URL(window.location.href).searchParams.get(e)}function de(){return window.localStorage.getItem(`advt_debug`)===`true`||le(`advt_debug`)}function fe(){return ue(`advt_debug_placement`)||window.localStorage.getItem(`advt_debug_placement`)}ie(`toggleDebug`,()=>window.localStorage.getItem(`advt_debug`)===`true`?(window.localStorage.removeItem(ae),window.localStorage.removeItem(oe),ce=null,!1):(window.localStorage.setItem(ae,`true`),!0));function pe(){return se===void 0&&(se=de()),se&&ce===void 0&&(ce=fe()),se}var me={name:`advertising-podlet`,primaryColor:`skyblue`,secondaryColor:`royalblue`};function he(...e){if(typeof window<`u`&&pe()){if(ce){let t=ce;if(!e.some(e=>typeof e==`string`&&e.includes(t)))return}console.log(`%c ${me.name}`,`color:${me.primaryColor}; background:${me.secondaryColor}`,...e)}}var ge=`advt_dev_tool`;ie(`toggleDevTool`,()=>window.localStorage.getItem(ge)===`true`?(window.localStorage.removeItem(ge),!1):(window.localStorage.setItem(ge,`true`),!0));var _e;(function(e){e.Adn=`adn`,e.Afs=`afs`,e.ContentMarketing=`content_marketing`,e.Gam=`gam`,e.SponsoredContent=`sponsored-content`,e.Martailer=`martailer`,e.Retailmedia=`retailmedia`})(_e||={});var ve;(function(e){e.AfsContainer1=`afs_container_1`,e.AfsContainer2=`afs_container_2`,e.AfsContainerBottom=`afs_container_bottom`})(ve||={});var ye;(function(e){e.Bilbasen=`bilbasen`,e.Blocket=`blocket`,e.Dba=`dba`,e.Finn=`finn`,e.Oikotie=`oikotie`,e.Rakentaja=`rakentaja`,e.Tori=`tori`})(ye||={});var be;(function(e){e.Accepted=`accepted`,e.Rejected=`rejected`})(be||={});var xe;(function(e){e.Android=`android`,e.Desktop=`desktop`,e.Ios=`ios`,e.Mobile=`mobile`,e.Tablet=`tablet`})(xe||={});var Se;(function(e){e.AdvtArticle1=`advt_article_1`,e.AdvtArticle2=`advt_article_2`,e.AdvtAudience=`advt_audience`,e.AdvtBottom1=`advt_bottom_1`,e.AdvtFinancing1=`advt_financing_1`,e.AdvtFinancing2=`advt_financing_2`,e.AdvtFinancing3=`advt_financing_3`,e.AdvtLeft1=`advt_left_1`,e.AdvtLeft2=`advt_left_2`,e.AdvtMarketing=`advt_marketing`,e.AdvtMiddle1=`advt_middle_1`,e.AdvtMiddle2=`advt_middle_2`,e.AdvtMiddle3=`advt_middle_3`,e.AdvtMiddle4=`advt_middle_4`,e.AdvtMiddle5=`advt_middle_5`,e.AdvtRecircMiddle1=`advt_recirc_middle_1`,e.AdvtRecircMiddle2=`advt_recirc_middle_2`,e.AdvtRecircMiddle3=`advt_recirc_middle_3`,e.AdvtRecircMiddle4=`advt_recirc_middle_4`,e.AdvtRecircMiddle5=`advt_recirc_middle_5`,e.AdvtRight1=`advt_right_1`,e.AdvtRight2=`advt_right_2`,e.AdvtTop1=`advt_top_1`,e.AdvtTop2=`advt_top_2`,e.AdvtWallpaper=`advt_wallpaper`,e.AdvtIncarousel=`advt_incarousel`,e.AdvtTop1Premium=`advt_top_1_premium`,e.AdvtObjectInline=`advt_object_inline`,e.AdvtSplMiddle1=`advt_spl_middle_1`,e.AdvtSpaMiddle1=`advt_spa_middle_1`})(Se||={});var Ce;(function(e){e.Afscontainer1=`afscontainer1`})(Ce||={});var we;(function(e){e.AdStreamNativeAd1=`ad-stream__native-ad-1`,e.AdStreamNativeAd2=`ad-stream__native-ad-2`,e.Board1=`board_1`,e.Board2=`board_2`,e.Board3=`board_3`,e.Board4=`board_4`,e.Board5=`board_5`,e.Contentboard=`contentboard`,e.Netboard1=`netboard_1`,e.Netboard2=`netboard_2`,e.Netboard3=`netboard_3`,e.Netboard4=`netboard_4`,e.Netboard5=`netboard_5`,e.Skyscraperleft1=`skyscraperleft_1`,e.Skyscraperright1=`skyscraperright_1`,e.Topboard=`topboard`,e.Wallpaper=`wallpaper`})(we||={});var Te;(function(e){e.Abroad=`abroad`,e.Agriculturecombines=`agriculturecombines`,e.Agriculturetools=`agriculturetools`,e.Agriculturetractor=`agriculturetractor`,e.All=`all`,e.Atv=`atv`,e.Bus=`bus`,e.Businessplot=`businessplot`,e.Businessrent=`businessrent`,e.Businesssale=`businesssale`,e.Caravan=`caravan`,e.Companyforsale=`companyforsale`,e.Construction=`construction`,e.Docs=`docs`,e.Flight=`flight`,e.Forsale=`forsale`,e.Front=`front`,e.HolidayRental=`holiday_rental`,e.Homes=`homes`,e.Hotel=`hotel`,e.Import=`import`,e.Leisureplots=`leisureplots`,e.Leisuresale=`leisuresale`,e.Lettings=`lettings`,e.Mobilehome=`mobilehome`,e.Motor=`motor`,e.Newbuildings=`newbuildings`,e.Plots=`plots`,e.Prepackage=`prepackage`,e.Rent=`rent`,e.Scooter=`scooter`,e.Snowmobile=`snowmobile`,e.Truck=`truck`,e.Truckabroad=`truckabroad`,e.Used=`used`,e.Vanimport=`vanimport`,e.Vanused=`vanused`,e.Wanted=`wanted`})(Te||={});var Ee;(function(e){e.Atv=`atv`,e.Bap=`bap`,e.Car=`car`,e.Job=`job`,e.Mc=`mc`,e.Boat=`boat`,e.B2B=`b2b`,e.Scooter=`scooter`,e.Snowmobile=`snowmobile`})(Ee||={});var De;(function(e){e.Display=`display`,e.Native=`native`,e.Video=`video`})(De||={});var Oe;(function(e){e.Front=`front`,e.Object=`object`,e.Result=`result`,e.Section=`section`})(Oe||={});var ke;(function(e){e.AdLoaded=`ad_loaded`,e.AdNoFill=`ad_no_fill`,e.AdRequested=`ad_requested`,e.AdViewed=`ad_viewed`,e.CollapsedOnCollision=`collapsed_on_collision`,e.ElementInDom=`element_in_dom`,e.InConfig=`in_config`,e.NoElementInDom=`no_element_in_dom`,e.NotInConfig=`not_in_config`,e.Refresh=`refresh`,e.SlotCreated=`slot_created`})(ke||={});var Ae;(function(e){e.SEARCH_ID_AGRICULTURE_THRESHING=`SEARCH_ID_AGRICULTURE_THRESHING`,e.SEARCH_ID_AGRICULTURE_TOOL=`SEARCH_ID_AGRICULTURE_TOOL`,e.SEARCH_ID_AGRICULTURE_TRACTOR=`SEARCH_ID_AGRICULTURE_TRACTOR`,e.SEARCHIDB2BCOMMON=`SEARCH_ID_B2B_COMMON`,e.SEARCH_ID_BAP_ALL=`SEARCH_ID_BAP_ALL`,e.SEARCH_ID_BAP_COMMON=`SEARCH_ID_BAP_COMMON`,e.SEARCH_ID_BAP_FREE=`SEARCH_ID_BAP_FREE`,e.SEARCH_ID_BAP_GROUP=`SEARCH_ID_BAP_GROUP`,e.SEARCH_ID_BAP_SALE=`SEARCH_ID_BAP_SALE`,e.SEARCH_ID_BAP_WANTED=`SEARCH_ID_BAP_WANTED`,e.SEARCH_ID_BAP_WEBSTORE_SHOP=`SEARCH_ID_BAP_WEBSTORE_SHOP`,e.SEARCH_ID_BOAT_COMMON=`SEARCH_ID_BOAT_COMMON`,e.SEARCH_ID_BOAT_DOCK=`SEARCH_ID_BOAT_DOCK`,e.SEARCH_ID_BOAT_DOCK_WANTED=`SEARCH_ID_BOAT_DOCK_WANTED`,e.SEARCH_ID_BOAT_MOTOR=`SEARCH_ID_BOAT_MOTOR`,e.SEARCH_ID_BOAT_NEW=`SEARCH_ID_BOAT_NEW`,e.SEARCH_ID_BOAT_PARTS=`SEARCH_ID_BOAT_PARTS`,e.SEARCH_ID_BOAT_PARTS_MOTOR_WANTED=`SEARCH_ID_BOAT_PARTS_MOTOR_WANTED`,e.SEARCH_ID_BOAT_RENT=`SEARCH_ID_BOAT_RENT`,e.SEARCH_ID_BOAT_RENT_WANTED=`SEARCH_ID_BOAT_RENT_WANTED`,e.SEARCH_ID_BOAT_USED=`SEARCH_ID_BOAT_USED`,e.SEARCH_ID_BOAT_USED_WANTED=`SEARCH_ID_BOAT_USED_WANTED`,e.SEARCH_ID_CAR_AGRI=`SEARCH_ID_CAR_AGRI`,e.SEARCH_ID_CAR_BUS=`SEARCH_ID_CAR_BUS`,e.SEARCH_ID_CAR_CARAVAN=`SEARCH_ID_CAR_CARAVAN`,e.SEARCH_ID_CAR_MOBILE_HOME=`SEARCH_ID_CAR_MOBILE_HOME`,e.SEARCH_ID_CAR_PARALLEL_IMPORT=`SEARCH_ID_CAR_PARALLEL_IMPORT`,e.SEARCH_ID_CAR_TRUCK=`SEARCH_ID_CAR_TRUCK`,e.SEARCH_ID_CAR_TRUCK_ABROAD=`SEARCH_ID_CAR_TRUCK_ABROAD`,e.SEARCH_ID_CAR_USED=`SEARCH_ID_CAR_USED`,e.SEARCH_ID_CAR_VAN=`SEARCH_ID_CAR_VAN`,e.SEARCH_ID_CAR_VAN_ABROAD=`SEARCH_ID_CAR_VAN_ABROAD`,e.SEARCH_ID_COMMERCIAL_PLOTS=`SEARCH_ID_COMMERCIAL_PLOTS`,e.SEARCH_ID_COMMERCIAL_RENT=`SEARCH_ID_COMMERCIAL_RENT`,e.SEARCH_ID_COMMERCIAL_SALE=`SEARCH_ID_COMMERCIAL_SALE`,e.SEARCH_ID_COMPANY_SALE=`SEARCH_ID_COMPANY_SALE`,e.SEARCH_ID_ESTATE_PROJECT=`SEARCH_ID_ESTATE_PROJECT`,e.SEARCH_ID_JOB_FULLTIME=`SEARCH_ID_JOB_FULLTIME`,e.SEARCH_ID_JOB_MANAGEMENT=`SEARCH_ID_JOB_MANAGEMENT`,e.SEARCH_ID_JOB_PARTTIME=`SEARCH_ID_JOB_PARTTIME`,e.SEARCH_ID_MC_ATV=`SEARCH_ID_MC_ATV`,e.SEARCH_ID_MC_COMMON=`SEARCH_ID_MC_COMMON`,e.SEARCH_ID_MC_SCOOTER=`SEARCH_ID_MC_SCOOTER`,e.SEARCH_ID_MC_SNOWMOBILE=`SEARCH_ID_MC_SNOWMOBILE`,e.SEARCH_ID_MC_USED=`SEARCH_ID_MC_USED`,e.SEARCH_ID_MOTOR_COMMON=`SEARCH_ID_MOTOR_COMMON`,e.SEARCH_ID_REALESTATE_ABROAD_HOMES=`SEARCH_ID_REALESTATE_ABROAD_HOMES`,e.SEARCH_ID_REALESTATE_COMMON=`SEARCH_ID_REALESTATE_COMMON`,e.SEARCH_ID_REALESTATE_HOMES=`SEARCH_ID_REALESTATE_HOMES`,e.SEARCH_ID_REALESTATE_HOMES_BANNER=`SEARCH_ID_REALESTATE_HOMES_BANNER`,e.SEARCH_ID_REALESTATE_LEISURE_PLOTS=`SEARCH_ID_REALESTATE_LEISURE_PLOTS`,e.SEARCH_ID_REALESTATE_LEISURE_SALE=`SEARCH_ID_REALESTATE_LEISURE_SALE`,e.SEARCH_ID_REALESTATE_LETTINGS=`SEARCH_ID_REALESTATE_LETTINGS`,e.SEARCH_ID_REALESTATE_LETTINGS_WANTED=`SEARCH_ID_REALESTATE_LETTINGS_WANTED`,e.SEARCH_ID_REALESTATE_NEWBUILDINGS=`SEARCH_ID_REALESTATE_NEWBUILDINGS`,e.SEARCH_ID_REALESTATE_PLANNEDPROJECT=`SEARCH_ID_REALESTATE_PLANNEDPROJECT`,e.SEARCH_ID_REALESTATE_PLOTS=`SEARCH_ID_REALESTATE_PLOTS`,e.SEARCH_ID_TRAVEL_CURRENCY=`SEARCH_ID_TRAVEL_CURRENCY`,e.SEARCH_ID_TRAVEL_FLIGHT=`SEARCH_ID_TRAVEL_FLIGHT`,e.SEARCH_ID_TRAVEL_HOLIDAYRENTALS=`SEARCH_ID_TRAVEL_HOLIDAYRENTALS`,e.SEARCH_ID_TRAVEL_HOTEL=`SEARCH_ID_TRAVEL_HOTEL`,e.SEARCH_ID_TRAVEL_LASTMINUTE=`SEARCH_ID_TRAVEL_LASTMINUTE`,e.SEARCH_ID_TRAVEL_PREPACKAGE=`SEARCH_ID_TRAVEL_PREPACKAGE`})(Ae||={});var je;(function(e){e.Boats=`boats`,e.BusinessForrent=`business-forrent`,e.BusinessForsale=`business-forsale`,e.Caravans=`caravans`,e.Cars=`cars`,e.Currency=`currency`,e.Flights=`flights`,e.HolidayHomes=`holiday-homes`,e.Hotels=`hotels`,e.Industry=`industry`,e.Lastminute=`lastminute`,e.LeisureForsale=`leisure-forsale`,e.Motorcycles=`motorcycles`,e.Prepackages=`prepackages`,e.ResidentialForrent=`residential-forrent`,e.ResidentialForsale=`residential-forsale`})(je||={});var Me;(function(e){e.Front=`front`,e.Jobs=`jobs`,e.Mobility=`mobility`,e.Realestate=`realestate`,e.Recommerce=`recommerce`,e.Travel=`travel`})(Me||={});var Ne;(function(e){e.Snowmobile=`snowmobile`,e.Scooter=`scooter`})(Ne||={});var Pe;(function(e){e.Json=`application/json`,e.FormData=`multipart/form-data`,e.UrlEncoded=`application/x-www-form-urlencoded`,e.Text=`text/plain`})(Pe||={});var Fe;(function(e){e.GamCreativeIdMissing=`gam_creative_id_missing`,e.GamCampaignIdMissing=`gam_campaign_id_missing`,e.GamLineItemIdMissing=`gam_line_item_id_missing`,e.GamAdvert
1iserIdMissing=`gam_advertiser_id_missing`,e.GamRenderNonEmpty=`gam_render_non_empty`,e.GamSourceAgnosticLineItemIdMissing=`gam_source_agnostic_line_item_id_missing`,e.GamSourceAgnosticCreativeIdMissing=`gam_source_agnostic_creative_id_missing`})(Fe||={});var I;(function(e){function t(e,t){return t===_e.Afs?e:`${e}--container`}e.fromPlacementId=t})(I||={});var Ie;(function(e){function t(e){return`${e}--slot`}e.fromPlacementId=t})(Ie||={});var Le=[ve,Se,Ce,we].flatMap(e=>Object.entries(e)).map(([e,t])=>[e,{id:t,containerId:I.fromPlacementId(t),slot:Ie.fromPlacementId(t)}]);Object.fromEntries(Le);var Re;(function(e){e.Control=`control`,e.Treatment=`treatment`,e.Treatment_1=`treatment_1`,e.Treatment_2=`treatment_2`,e.NoWallpaper=`no_wallpaper`})(Re||={});var ze;(function(e){(function(e){function t(e){return e.adServer.type===_e.Afs}e.is=t;function n(e){return e.filter(t)}e.filter=n})(e.Afs||={})})(ze||={}),(function(e){(function(e){function t(e){return e.adServer.type===_e.Gam}e.is=t;function n(e){return e.filter(t)}e.filter=n})(e.Gam||={})})(ze||={}),(function(e){(function(e){function t(e){return e.adServer.type===_e.Retailmedia}e.is=t;function n(e){return e.filter(t)}e.filter=n})(e.RetailMedia||={})})(ze||={}),Promise.withResolvers===void 0&&(Promise.withResolvers=()=>{let e,t;return{promise:new Promise((...n)=>{[e,t]=n}),resolve:e,reject:t}});var Be=[`killswitch`,`enableGamTestCampaign`,`disableAdvertisingConfigApi`,`killswitchPrebid`,`overrideAfsPubId`,`enableGlobalPrebidConfigs`,`enableBatchRequestSplit`,`afsForNonConsent`,`enableTop1Wallpaper`,`enablePulseEventsForAds`,`enableRetailMedia`,`enableCloseAdFeature`,`enableMockPlacements`,`enableMsftAdapter`].reduce((e,t)=>(e[t]=t,e),{});Object.values(Be);var Ve=e(n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)}))(),1);function He(e,t){return`${e}:${t}`}var Ue=class{constructor(e,t,n){this.channel=e,this.topic=t,this.payload=n}toKey(){return He(this.channel,this.topic)}},We=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()}},Ge=class{constructor(){this.map=new Map}getQueue(e,t){return this.map.get(He(e,t))||new We}push(e){let t=this.getQueue(e.channel,e.topic);t.push(e),this.map.set(e.toKey(),t)}peek(e,t){return this.getQueue(e,t).peek()}log(e,t){return this.getQueue(e,t).toArray()}};function Ke(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function qe(e,t,n){Ke(e,t),t.set(e,n)}function Je(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Ye(e,t){return e.get(Je(e,t))}
1function Xe(){if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)}function Ze(){let e=Xe()[`@podium`];return e||(e={},Xe()[`@podium`]=e),e.ee||(e.ee=new Ve.default),e.sink||(e.sink=new Ge),e}var Qe=new WeakMap,$e=class{constructor(){qe(this,Qe,new Map);let{ee:e,sink:t,bridge:n}=Ze();this.ee=e,this.sink=t,this.bridge=n}log(e,t){return this.sink.log(e,t)}peek(e,t){return this.sink.peek(e,t)}publish(e,t,n){let r=new Ue(e,t,n);if(this.ee.emit(r.toKey(),r),this.sink.push(r),this.bridge){let r=n;n!==void 0&&(typeof r==`string`||typeof r==`boolean`||typeof r==`number`)&&(r=[n]),this.bridge.notification({method:`${e}/${t}`,params:r})}return r}subscribe(e,t,n){if(this.bridge){let r=r=>{let i=new Ue(e,t,r.params);this.sink.push(i),n(i)};this.bridge.on(`${e}/${t}`,r),Ye(Qe,this).set(n,r)}this.ee.on(He(e,t),n)}unsubscribe(e,t,n){if(this.ee.off(He(e,t),n),this.bridge){let r=Ye(Qe,this).get(n);r&&this.bridge.off(`${e}/${t}`,r)}}};function et(e){return e}var tt=(function e(...t){let n=(...e)=>et([...t,...e].map(Object.keys).map(([e])=>e).join(`.`));return n.prefix=(...n)=>et(e(...t,...n)),n})(),nt;(function(e){var t;let n=tt.prefix({Dom:e});function r(){return typeof window<`u`}e.isAvailable=r;function i(){if(!r())throw new a}e.assertIsAvailable=i;class a extends ReferenceError{constructor(){super(`DOM is not available in a SSR context!`)}}t=a,t.prototype.name=n({UnavailableError:a}),e.UnavailableError=a})(nt||={});function rt(e){return e==null}function it(e){return!rt(e)}var at;(function(e){e.Wrapped=Symbol(`ProxyChain.Wrapped`);function t(t){if(typeof t==`object`){let n=()=>t;return n[e.Wrapped]=!0,new Proxy(n,e.handler)}return typeof t==`function`?new Proxy(t,e.handler):t}e.create=t,e.handler={construct(n,r){return n[e.Wrapped]&&(n=n()),t(Reflect.construct(n,r))},get(r,i,a){return r[e.Wrapped]&&(r=r()),i!==`then`&&i!==`catch`&&it(r)&&typeof r.then==`function`?t(r.then(e=>n(e,i,a))):t(n(r,i,a))},apply(n,i,a){return n[e.Wrapped]&&(n=n()),typeof n.then==`function`?t(n.then(e=>r(e,i,a))):t(r(n,i,a))}};function n(e,t,n){if(rt(e))return;let r=typeof e==`object`?Reflect.get(e,t,n):e[t];return typeof r==`function`&&typeof r.bind==`function`?Object.assign(r.bind(e),r):r}function r(e,t,n){if(!rt(e))return Reflect.apply(e,t,n)}})(at||={});var L=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},ot=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},R,st,ct,z,lt,ut,dt,ft,pt=class{constructor(){R.add(this),ct.set(this,null),z.set(this,null)}get proxy(){if(L(this,ct,`f`))return L(this,ct,`f`);let e=this;async function t(t,...n){return typeof t==`function`?await e.execute(t,...n):(t&&(n=[t,...n]),await e.execute((e=>e),...n))}return ot(this,ct,at.create(Object.setPrototypeOf(t,this)),`f`)}get loadedGlobalRef(){if(!L(this,z,`f`))throw new st.GlobalReferenceError(this.globalPropertyName);return L(this,z,`f`)}async execute(e,...t){for(let e of t)e.throwIfAborted();let n=await L(this,R,`m`,ut).call(this,...t),{promise:r,resolve:i,reject:a}=Promise.withResolvers();return this.enqueue(n,()=>{try{for(let e of t)e.throwIfAborted();i(e(n,...t))}catch(e){a(e)}}),await r}isUninitialized(e){return!this.isInitialized(e)}};st=pt,ct=new WeakMap,z=new WeakMap,R=new WeakSet,lt=function(e){this.isUninitialized(e)&&this.initialize(e)},ut=async function(...e){nt.assertIsAvailable(),L(this,R,`m`,ft).call(this);for(let t of e)t.throwIfAborted();if(L(this,z,`f`))return L(this,z,`f`);let{promise:t,resolve:n,reject:r}=Promise.withResolvers();try{L(this,R,`m`,lt).call(this,window);let t=window[this.globalPropertyName];for(let t of e)t.addEventListener(`abort`,r);this.enqueue(t,()=>{try{for(let t of e)t.throwIfAborted();
1L(this,R,`m`,dt).call(this,t),n(ot(this,z,L(this,z,`f`)??t,`f`))}catch(e){r(e)}})}catch(e){r(e)}finally{for(let t of e)t.removeEventListener(`abort`,r)}return await t},dt=function(e){if(nt.assertIsAvailable(),L(this,R,`m`,ft).call(this),!this.isLoaded(e))throw new st.UnmetConditionError(this.globalPropertyName)},ft=function(){if(!this.isEnabled())throw new st.DisabledError(this.globalPropertyName)},(function(e){var t,n,r;let i=tt.prefix({ApiResolver:e});function a(e){return{globalPropertyName:e,unsafePropertyName:`unsafe_${e}`}}e.getGlobalPropertyNames=a;class o extends ReferenceError{constructor(e){super(`Attempted to access a fully loaded 'window.${e}' that's not ready.`)}}t=o,t.prototype.name=i({GlobalReferenceError:o}),e.GlobalReferenceError=o;class s extends Error{constructor(e){super(`Failed resolving reference 'window.${e}' due to unmet condition.`)}}n=s,n.prototype.name=i({UnmetConditionError:s}),e.UnmetConditionError=s;class c extends Error{constructor(e){super(`Failed attempt to invoke 'window.${e}' due to being disabled!`)}}r=c,r.prototype.name=i({DisabledError:c}),e.DisabledError=c})(pt||={});function mt(e,t){typeof window<`u`&&(window.ADVT??={},window.ADVT[e]=t)}var ht=`advt_debug`,gt=`advt_debug_placement`,_t,vt;function yt(e){return bt(e)!==null}function bt(e){return new URL(window.location.href).searchParams.get(e)}function xt(){return window.localStorage.getItem(`advt_debug`)===`true`||yt(`advt_debug`)}function St(){return bt(`advt_debug_placement`)||window.localStorage.getItem(`advt_debug_placement`)}mt(`toggleDebug`,()=>window.localStorage.getItem(`advt_debug`)===`true`?(window.localStorage.removeItem(ht),window.localStorage.removeItem(gt),vt=null,!1):(window.localStorage.setItem(ht,`true`),!0));function Ct(){return _t===void 0&&(_t=xt()),_t&&vt===void 0&&(vt=St()),_t}var wt={name:`advertising-podlet`,primaryColor:`skyblue`,secondaryColor:`royalblue`};function Tt(...e){if(typeof window<`u`&&Ct()){if(vt){let t=vt;
1if(!e.some(e=>typeof e==`string`&&e.includes(t)))return}console.log(`%c ${wt.name}`,`color:${wt.primaryColor}; background:${wt.secondaryColor}`,...e)}}var Et=`advt_dev_tool`;mt(`toggleDevTool`,()=>window.localStorage.getItem(Et)===`true`?(window.localStorage.removeItem(Et),!1):(window.localStorage.setItem(Et,`true`),!0));var Dt;(function(e){e.Adn=`adn`,e.Afs=`afs`,e.ContentMarketing=`content_marketing`,e.Gam=`gam`,e.SponsoredContent=`sponsored-content`,e.Martailer=`martailer`})(Dt||={});var Ot;(function(e){e.AfsContainer1=`afs_container_1`,e.AfsContainer2=`afs_container_2`,e.AfsContainerBottom=`afs_container_bottom`})(Ot||={});var kt;(function(e){e.Bilbasen=`bilbasen`,e.Blocket=`blocket`,e.Dba=`dba`,e.Finn=`finn`,e.Oikotie=`oikotie`,e.Rakentaja=`rakentaja`,e.Tori=`tori`})(kt||={});var At;(function(e){e.Accepted=`accepted`,e.Rejected=`rejected`})(At||={});var jt;(function(e){e.Android=`android`,e.Desktop=`desktop`,e.Ios=`ios`,e.Mobile=`mobile`,e.Tablet=`tablet`})(jt||={});var Mt;(function(e){e.AdvtArticle1=`advt_article_1`,e.AdvtArticle2=`advt_article_2`,e.AdvtAudience=`advt_audience`,e.AdvtBottom1=`advt_bottom_1`,e.AdvtFinancing1=`advt_financing_1`,e.AdvtFinancing2=`advt_financing_2`,e.AdvtFinancing3=`advt_financing_3`,e.AdvtLeft1=`advt_left_1`,e.AdvtLeft2=`advt_left_2`,e.AdvtMarketing=`advt_marketing`,e.AdvtMiddle1=`advt_middle_1`,e.AdvtMiddle2=`advt_middle_2`,e.AdvtMiddle3=`advt_middle_3`,e.AdvtMiddle4=`advt_middle_4`,e.AdvtMiddle5=`advt_middle_5`,e.AdvtRecircMiddle1=`advt_recirc_middle_1`,e.AdvtRecircMiddle2=`advt_recirc_middle_2`,e.AdvtRecircMiddle3=`advt_recirc_middle_3`,e.AdvtRecircMiddle4=`advt_recirc_middle_4`,e.AdvtRecircMiddle5=`advt_recirc_middle_5`,e.AdvtRight1=`advt_right_1`,e.AdvtRight2=`advt_right_2`,e.AdvtTop1=`advt_top_1`,e.AdvtTop2=`advt_top_2`,e.AdvtWallpaper=`advt_wallpaper`,e.AdvtIncarousel=`advt_incarousel`,e.AdvtTop1Premium=`advt_top_1_premium`,e.AdvtObjectInline=`advt_object_inline`,e.AdvtSplMiddle1=`advt_spl_middle_1`,e.AdvtSpaMiddle1=`advt_spa_middle_1`})(Mt||={});var Nt;(function(e){e.Afscontainer1=`afscontainer1`})(Nt||={});var Pt;(function(e){e.AdStreamNativeAd1=`ad-stream__native-ad-1`,e.AdStreamNativeAd2=`ad-stream__native-ad-2`,e.Board1=`board_1`,e.Board2=`board_2`,e.Board3=`board_3`,e.Board4=`board_4`,e.Board5=`board_5`,e.Contentboard=`contentboard`,e.Netboard1=`netboard_1`,e.Netboard2=`netboard_2`,e.Netboard3=`netboard_3`,e.Netboard4=`netboard_4`,e.Netboard5=`netboard_5`,e.Skyscraperleft1=`skyscraperleft_1`,e.Skyscraperright1=`skyscraperright_1`,e.Topboard=`topboard`,e.Wallpaper=`wallpaper`})(Pt||={});var Ft;(function(e){e.Abroad=`abroad`,e.Agriculturecombines=`agriculturecombines`,e.Agriculturetools=`agriculturetools`,e.Agriculturetractor=`agriculturetractor`,e.All=`all`,e.Atv=`atv`,e.Bus=`bus`,e.Businessplot=`businessplot`,e.Businessrent=`businessrent`,e.Businesssale=`businesssale`,e.Caravan=`caravan`,e.Companyforsale=`companyforsale`,e.Construction=`construction`,e.Docs=`docs`,e.Flight=`flight`,e.Forsale=`forsale`,e.Front=`front`,e.HolidayRental=`holiday_rental`,e.Homes=`homes`,e.Hotel=`hotel`,e.Import=`import`,e.Leisureplots=`leisureplots`,e.Leisuresale=`leisuresale`,e.Lettings=`lettings`,e.Mobilehome=`mobilehome`,e.Motor=`motor`,e.Newbuildings=`newbuildings`,e.Plots=`plots`,e.Prepackage=`prepackage`,e.Rent=`rent`,e.Scooter=`scooter`,e.Snowmobile=`snowmobile`,e.Truck=`truck`,e.Truckabroad=`truckabroad`,e.Used=`used`,e.Vanimport=`vanimport`,e.Vanused=`vanused`,e.Wanted=`wanted`})(Ft||={});var It;(function(e){e.Atv=`atv`,e.Bap=`bap`,e.Car=`car`,e.Job=`job`,e.Mc=`mc`,e.Boat=`boat`,e.B2B=`b2b`,e.Scooter=`scooter`,e.Snowmobile=`snowmobile`})(It||={});var Lt;(function(e){e.Display=`display`,e.Native=`native`,e.Video=`video`})(Lt||={});var Rt;(function(e){e.Front=`front`,e.Object=`object`,e.Result=`result`,e.Section=`section`})(Rt||={});var zt;(function(e){e.AdLoaded=`ad_loaded`,e.AdNoFill=`ad_no_fill`,e.AdRequested=`ad_requested`,e.AdViewed=`ad_viewed`,e.CollapsedOnCollision=`collapsed_on_collision`,e.ElementInDom=`element_in_dom`,e.InConfig=`in_config`,e.NoElementInDom=`no_element_in_dom`,e.NotInConfig=`not_in_config`,e.Refresh=`refresh`,e.SlotCreated=`slot_created`})(zt||={});var Bt;(function(e){e.SEARCH_ID_AGRICULTURE_THRESHING=`SEARCH_ID_AGRICULTURE_THRESHING`,e.SEARCH_ID_AGRICULTURE_TOOL=`SEARCH_ID_AGRICULTURE_TOOL`,e.SEARCH_ID_AGRICULTURE_TRACTOR=`SEARCH_ID_AGRICULTURE_TRACTOR`,e.SEARCHIDB2BCOMMON=`SEARCH_ID_B2B_COMMON`,e.SEARCH_ID_BAP_ALL=`SEARCH_ID_BAP_ALL`,e.SEARCH_ID_BAP_COMMON=`SEARCH_ID_BAP_COMMON`,e.SEARCH_ID_BAP_FREE=`SEARCH_ID_BAP_FREE`,e.SEARCH_ID_BAP_GROUP=`SEARCH_ID_BAP_GROUP`,e.SEARCH_ID_BAP_SALE=`SEARCH_ID_BAP_SALE`,e.SEARCH_ID_BAP_WANTED=`SEARCH_ID_BAP_WANTED`,e.SEARCH_ID_BAP_WEBSTORE_SHOP=`SEARCH_ID_BAP_WEBSTORE_SHOP`,e.SEARCH_ID_BOAT_COMMON=`SEARCH_ID_BOAT_COMMON`,e.SEARCH_ID_BOAT_DOCK=`SEARCH_ID_BOAT_DOCK`,e.SEARCH_ID_BOAT_DOCK_WANTED=`SEARCH_ID_BOAT_DOCK_WANTED`,e.SEARCH_ID_BOAT_MOTOR=`SEARCH_ID_BOAT_MOTOR`,e.SEARCH_ID_BOAT_NEW=`SEARCH_ID_BOAT_NEW`,e.SEARCH_ID_BOAT_PARTS=`SEARCH_ID_BOAT_PARTS`,e.SEARCH_ID_BOAT_PARTS_MOTOR_WANTED=`SEARCH_ID_BOAT_PARTS_MOTOR_WANTED`,e.SEARCH_ID_BOAT_RENT=`SEARCH_ID_BOAT_RENT`,e.SEARCH_ID_BOAT_RENT_WANTED=`SEARCH_ID_BOAT_RENT_WANTED`,e.SEARCH_ID_BOAT_USED=`SEARCH_ID_BOAT_USED`,e.SEARCH_ID_BOAT_USED_WANTED=`SEARCH_ID_BOAT_USED_WANTED`,e.SEARCH_ID_CAR_AGRI=`SEARCH_ID_CAR_AGRI`,e.SEARCH_ID_CAR_BUS=`SEARCH_ID_CAR_BUS`,e.SEARCH_ID_CAR_CARAVAN=`SEARCH_ID_CAR_CARAVAN`,e.SEARCH_ID_CAR_MOBILE_HOME=`SEARCH_ID_CAR_MOBILE_HOME`,e.SEARCH_ID_CAR_PARALLEL_IMPORT=`SEARCH_ID_CAR_PARALLEL_IMPORT`,e.SEARCH_ID_CAR_TRUCK=`SEARCH_ID_CAR_TRUCK`,e.SEARCH_ID_CAR_TRUCK_ABROAD=`SEARCH_ID_CAR_TRUCK_ABROAD`,e.SEARCH_ID_CAR_USED=`SEARCH_ID_CAR_USED`,e.SEARCH_ID_CAR_VAN=`SEARCH_ID_CAR_VAN`,e.SEARCH_ID_CAR_VAN_ABROAD=`SEARCH_ID_CAR_VAN_ABROAD`,e.SEARCH_ID_COMMERCIAL_PLOTS=`SEARCH_ID_COMMERCIAL_PLOTS`,e.SEARCH_ID_COMMERCIAL_RENT=`SEARCH_ID_COMMERCIAL_RENT`,e.SEARCH_ID_COMMERCIAL_SALE=`SEARCH_ID_COMMERCIAL_SALE`,e.SEARCH_ID_COMPANY_SALE=`SEARCH_ID_COMPANY_SALE`,e.SEARCH_ID_ESTATE_PROJECT=`SEARCH_ID_ESTATE_PROJECT`,e.SEARCH_ID_JOB_FULLTIME=`SEARCH_ID_JOB_FULLTIME`,e.SEARCH_ID_JOB_MANAGEMENT=`SEARCH_ID_JOB_MANAGEMENT`,e.SEARCH_ID_JOB_PARTTIME=`SEARCH_ID_JOB_PARTTIME`,e.SEARCH_ID_MC_ATV=`SEARCH_ID_MC_ATV`,e.SEARCH_ID_MC_COMMON=`SEARCH_ID_MC_COMMON`,e.SEARCH_ID_MC_SCOOTER=`SEARCH_ID_MC_SCOOTER`,e.SEARCH_ID_MC_SNOWMOBILE=`SEARCH_ID_MC_SNOWMOBILE`,e.SEARCH_ID_MC_USED=`SEARCH_ID_MC_USED`,e.SEARCH_ID_MOTOR_COMMON=`SEARCH_ID_MOTOR_COMMON`,e.SEARCH_ID_REALESTATE_ABROAD_HOMES=`SEARCH_ID_REALESTATE_ABROAD_HOMES`,e.SEARCH_ID_REALESTATE_COMMON=`SEARCH_ID_REALESTATE_COMMON`,e.SEARCH_ID_REALESTATE_HOMES=`SEARCH_ID_REALESTATE_HOMES`,e.SEARCH_ID_REALESTATE_HOMES_BANNER=`SEARCH_ID_REALESTATE_HOMES_BANNER`,e.SEARCH_ID_REALESTATE_LEISURE_PLOTS=`SEARCH_ID_REALESTATE_LEISURE_PLOTS`,e.SEARCH_ID_REALESTATE_LEISURE_SALE=`SEARCH_ID_REALESTATE_LEISURE_SALE`,e.SEARCH_ID_REALESTATE_LETTINGS=`SEARCH_ID_REALESTATE_LETTINGS`,e.SEARCH_ID_REALESTATE_LETTINGS_WANTED=`SEARCH_ID_REALESTATE_LETTINGS_WANTED`,e.SEARCH_ID_REALESTATE_NEWBUILDINGS=`SEARCH_ID_REALESTATE_NEWBUILDINGS`,e.SEARCH_ID_REALESTATE_PLANNEDPROJECT=`SEARCH_ID_REALESTATE_PLANNEDPROJECT`,e.SEARCH_ID_REALESTATE_PLOTS=`SEARCH_ID_REALESTATE_PLOTS`,e.SEARCH_ID_TRAVEL_CURRENCY=`SEARCH_ID_TRAVEL_CURRENCY`,e.SEARCH_ID_TRAVEL_FLIGHT=`SEARCH_ID_TRAVEL_FLIGHT`,e.SEARCH_ID_TRAVEL_HOLIDAYRENTALS=`SEARCH_ID_TRAVEL_HOLIDAYRENTALS`,e.SEARCH_ID_TRAVEL_HOTEL=`SEARCH_ID_TRAVEL_HOTEL`,e.SEARCH_ID_TRAVEL_LASTMINUTE=`SEARCH_ID_TRAVEL_LASTMINUTE`,e.SEARCH_ID_TRAVEL_PREPACKAGE=`SEARCH_ID_TRAVEL_PREPACKAGE`})(Bt||={});var Vt;(function(e){e.Boats=`boats`,e.BusinessForrent=`business-forrent`,e.BusinessForsale=`business-forsale`,e.Caravans=`caravans`,e.Cars=`cars`,e.Currency=`currency`,e.Flights=`flights`,e.HolidayHomes=`holiday-homes`,e.Hotels=`hotels`,e.Industry=`industry`,e.Lastminute=`lastminute`,e.LeisureForsale=`leisure-forsale`,e.Motorcycles=`motorcycles`,e.Prepackages=`prepackages`,e.ResidentialForrent=`residential-forrent`,e.ResidentialForsale=`residential-forsale`})(Vt||={});var Ht;(function(e){e.Front=`front`,e.Jobs=`jobs`,e.Mobility=`mobility`,e.Realestate=`realestate`,e.Recommerce=`recommerce`,e.Travel=`travel`})(Ht||={});var Ut;(function(e){e.Snowmobile=`snowmobile`,e.Scooter=`scooter`})(Ut||={});var Wt;(function(e){e.Json=`application/json`,e.FormData=`multipart/form-data`,e.UrlEncoded=`application/x-www-form-urlencoded`,e.Text=`text/plain`})(Wt||={});var Gt;(function(e){e.GamCreativeIdMissing=`gam_creative_id_missing`,e.GamCampaignIdMissing=`gam_campaign_id_missing`,e.GamLineItemIdMissing=`gam_line_item_id_missing`,e.GamAdvert
1iserIdMissing=`gam_advertiser_id_missing`,e.GamRenderNonEmpty=`gam_render_non_empty`,e.GamSourceAgnosticLineItemIdMissing=`gam_source_agnostic_line_item_id_missing`,e.GamSourceAgnosticCreativeIdMissing=`gam_source_agnostic_creative_id_missing`})(Gt||={});var Kt;(function(e){function t(e,t){return t===Dt.Afs?e:`${e}--container`}e.fromPlacementId=t})(Kt||={});var qt;(function(e){function t(e){return`${e}--slot`}e.fromPlacementId=t})(qt||={});var Jt=[Ot,Mt,Nt,Pt].flatMap(e=>Object.entries(e)).map(([e,t])=>[e,{id:t,containerId:Kt.fromPlacementId(t),slot:qt.fromPlacementId(t)}]);Object.fromEntries(Jt);var Yt;(function(e){e.Control=`control`,e.Treatment=`treatment`,e.Treatment_1=`treatment_1`,e.Treatment_2=`treatment_2`,e.NoWallpaper=`no_wallpaper`})(Yt||={});var Xt;(function(e){(function(e){function t(e){return e.adServer.type===Dt.Afs}e.is=t;function n(e){return e.filter(t)}e.filter=n})(e.Afs||={})})(Xt||={}),(function(e){(function(e){function t(e){return e.adServer.type===Dt.Gam}e.is=t;function n(e){return e.filter(t)}e.filter=n})(e.Gam||={})})(Xt||={}),(function(e){(function(e){function t(e){return e.adServer.type===Dt.Martailer}e.is=t;function n(e){return e.filter(t)}e.filter=n})(e.Martailer||={})})(Xt||={}),Promise.withResolvers===void 0&&(Promise.withResolvers=()=>{let e,t;return{promise:new Promise((...n)=>{[e,t]=n}),resolve:e,reject:t}});var Zt=[`killswitch`,`enableGamTestCampaign`,`disableAdvertisingConfigApi`,`killswitchPrebid`,`overrideAfsPubId`,`enableGlobalPrebidConfigs`,`enableBatchRequestSplit`,`afsForNonConsent`,`enableTop1Wallpaper`,`enablePulseEventsForAds`,`enableMartailerRequest`,`enableCloseAdFeature`,`enableMockPlacements`,`enablePubmaticDctr`].reduce((e,t)=>(e[t]=t,e),{});Object.values(Zt);var Qt=Date.now(),$t={xandrEvents:!1,gamEvents:!1,messageBusEvents:!1};function en(){if(!window.apntag)return[];let{requests:e}=window.apntag;if(!(`tags`in e)||!e.tags)return[];let{tags:t}=e;return typeof t==`object`?Object.values(t).map(e=>{let{targetId:t,sizes:n,keywords:r,allowedFormats:i,invCode:a,adResponse:o}=e;return{targetId:t,invCode:a,sizes:n,allowedFormats:i,keywords:r,...typeof o==`object`&&{tag_id:o.tag_id,auction_id:o.auction_id}}}):[]}if(typeof window<`u`){let e=window.ADVT_EVENTS??={performance:{xandrEvents:[],gamEvents:[],messageBusEvents:[]},analysis:()=>{$t.xandrEvents=!0,rn(`Advertising Analysis Active`,22);try{if(window.apntag){let{requests:{keywords:e,tags:t}}=window.apntag;rn(`Xandr Keywords`),console.table(e),rn(`Xandr Tags`),console.table(en()),console.log(`Xandr tags raw: `,t)}}catch(e){console.error(e)}rn(`Advertising Events`),console.table(e.performance.xandrEvents)},mbAnalysis:()=>{$t.messageBusEvents=!0,rn(`Message Bus Events Analysis Active`),console.table(e.performance.messageBusEvents,[`channel`,`topic`,`event`,`payload`,`timeSincePageLoadInMs`])}}}function tn(e){return t=>{window.ADVT_EVENTS?.performance&&(window.ADVT_EVENTS.performance[e].push(t),$t[e]&&(console.table(window.ADVT_EVENTS.performance[e]),console.log(`Updated values `,{key:e,entry:t})))}}function nn({channel:e,topic:t,event:n,payload:r}){if(!window.ADVT_EVENTS?.performance)return;let i=Date.now()-Qt;tn(`messageBusEvents`)({channel:e,topic:t,event:n,timeSincePageLoadInMs:i,payload:JSON.stringify(r)})}function rn(e,t=16){console.log(`%c${e}`,`font-weight: bold; font-size: ${t}px; color: #06bffc;`)}var an=null,on=new Map;function sn(){return an||=new $e,an}function cn(e,t,n){Tt(`publish`,e,t,n),nn({event:`publish`,channel:e,topic:t,payload:n}),sn().publish(e,t,n)}
1function ln(e,t,n){Tt(`subscribe`,e,t,n),nn({channel:e,topic:t,event:`subscribe`});let r=r=>{Tt(`subscribe-callback`,e,t,r.payload),nn({channel:e,topic:t,event:`subscribe-callback`,payload:r.payload}),n(r)};return on.set(n,r),sn().subscribe(e,t,r),()=>{un(e,t,n)}}function un(e,t,n){Tt(`unsubscribe`,e,t,n),nn({event:`unsubscribe`,channel:e,topic:t});let r=on.get(n);r?(sn().unsubscribe(e,t,r),on.delete(n)):console.warn(`Trying to unsubscribe a callback that wasn't subscribed.`)}function dn(e,t){Tt(`peek`,e,t);let n=sn().peek(e,t);return n&&nn({event:`peek`,channel:e,topic:t,payload:n.payload}),n}var fn={publish:cn,subscribe:ln,peek:dn},pn={PODLET:{channel:`advertising-podlet`,CYCLE:{topic:`cycle-ad`,sendPayload:({cycle:e})=>({cycle:e}),getPayload:e=>e.payload},AFS_CONFIG:{topic:`afs-config`,sendPayload:e=>e,getPayload:e=>e.payload},PODLET_READY:{topic:`podlet-ready`,sendPayload:e=>e,getPayload:e=>e.payload},AD_STYLES:{topic:`ad-styles`,sendPayload:e=>e,getPayload:e=>e.payload},AD_CONTAINER_STATUS:{topic:`ad-container-status`,sendPayload:e=>e,getPayload:e=>e.payload},CONTENT_MARKETING_NO_SOV:{topic:`content-marketing-no-share-of-voice`,sendPayload:e=>e,getPayload:e=>e.payload}},COMPANION:{channel:`advertising-companion`,LAYOUT_TYPE_CHANGE:{topic:`layout-type-change`,sendPayload:e=>e,getPayload:e=>e.payload}},SEARCH:{channel:`search`,FILTER:{topic:`filters`,sendPayload:e=>e,getPayload:e=>e.payload},EXPANDABLE_UPDATE:{topic:`expandable-update`,sendPayload:e=>e,getPayload:e=>e.payload}},ITEM_PAGE:{channel:`item-page`,INCAROUSEL_IMAGE_UPDATE:{topic:`incarousel-image-update`,sendPayload:e=>e,getPayload:e=>e.payload}}};function mn({placementId:e}){return s.createElement(`advt-component`,{placementId:e})}function hn(e){return s.createElement(hn.Forwarded,{...e})}(e=>e.Forwarded=s.forwardRef(({placementId:e,adIndex:t,initialLayoutType:n,categories:r},i)=>s.createElement(`advt-component`,{initialLayoutType:n,categories:r,adIndex:t,placementId:e},s.createElement(`div`,{ref:i,id:I.fromPlacementId(e),slot:Ie.fromPlacementId(e)}))))(hn||={});function gn(e,t){return m(()=>t.map(({placementId:t,position:n,adServer:r},i)=>r===_e.Afs?{element:s.createElement(mn,{placementId:t}),position:n}:{element:s.createElement(hn,{placementId:t,adIndex:i,key:`${t}${i}`,initialLayoutType:e}),position:n}),[t])}var B=[],V=0,_n=4,vn=0,yn=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(e){return n.lc=t.push(e),()=>{for(let t=V+_n;t<B.length;)B[t]===e?B.splice(t,_n):t+=_n;let r=t.indexOf(e);~r&&(t.splice(r,1),--n.lc||n.off())}},notify(e,r){vn++;let i=!B.length;for(let i of t)B.push(i,n.value,e,r);if(i){for(V=0;V<B.length;V+=_n)B[V](B[V+1],B[V+2],B[V+3]);B.length=0}},off(){},set(e){let t=n.value;t!==e&&(n.value=e,n.notify(t))},subscribe(e){let t=n.listen(e);return e(n.value),t},value:e};return n};function bn(e,t){let n=wn(t),r=e;for(let e of n){if(r===void 0)break;r=r[e]}return r}function xn(e,t,n){return Sn(e??{},wn(t),n)}function Sn(e,t,n){let r=t[0],i=Array.isArray(e)?[...e]:{...e};return t.length===1?(n===void 0?Array.isArray(i)?i.splice(r,1):delete i[r]:i[r]=n,i):(Dn(i,r,t[1]),i[r]=Sn(i[r],t.slice(1),n),i)}var Cn=/(.*)\[(\d+)\]/;function wn(e){return e.split(`.`).flatMap(e=>Tn(e))}function Tn(e){if(Cn.test(e)){let[,t,n]=e.match(Cn);return[...Tn(t),n]}return[e]}var En=/^\d+$/;function Dn(e,t,n){t in e||(e[t]=En.test(n)?Array(parseInt(n,10)+1):{})}function On(e={}){let t=yn(e);return t.setKey=(e,n)=>{if(bn(t.value,e)!==n){let r=t.value;t.value=xn(t.value,e,n),t.notify(r,e)}},t}var kn=Object.defineProperty,An=Object.getOwnPropertySymbols,jn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,Nn=(e,t,n)=>t in e?kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pn=(e,t)=>{for(var n in t||={})jn.call(t,n)&&Nn(e,n,t[n]);if(An)for(var n of An(t))Mn.call(t,n)&&Nn(e,n,t[n]);return e},H=new $e;function Fn(e,t,n){let r=H.peek(e,t);return r||H.publish(e,t,n),r?.payload||n}function In(e,t,n){let r=yn(Fn(e,t,n));return H.subscribe(e,t,e=>{r.set(e.payload)}),r.listen(n=>{let r=H.peek(e,t);r&&r.payload===n||H.publish(e,t,n)}),r}function Ln(e,t,n){let r=On(Fn(e,t,n)),i=`app`;return H.subscribe(e,t,e=>{i=`bus`,r.set(Pn({},e.payload))}),r.listen(n=>{i===`bus`?i=`app`:H.publish(e,t,n)}),r}var Rn=In(`advertising-companion`,`recommendationAdItems`,[]),zn=Ln(`advertising-podlet`,`placementsMap`,{});function Bn(){return Object.values(zn.get()).filter(({placementId:e})=>!!e)}function Vn({intermingle:e,placementId:t}){if(!e)return!1;let n=t.includes(`recirc`)||t.includes(`ad-stream`),r=t.includes(`advt_spl_middle`)||t.includes(`advt_spa_middle`);return n||r?!1:!!(e.list&&e.grid)}var Hn;(e=>{(e=>{function n(){let[e,t]=s.useState(r),i=s.useRef();return s.useEffect(()=>e.length===0?(i.current=zn.subscribe(()=>{t(n.tryPreserveReferenceStateAction)}),()=>{i.current?.()}):T,[]),e}e.use=n,(e=>{function n(e){let n=r();return e===n||e.length===n.length&&n.every((n,r)=>t(n,e[r]))?e:n}e.tryPreserveReferenceStateAction=n})(n=e.use||={});function r(){return typeof window>`u`?r.defaultValue:Bn().filter(Vn)}e.get=r,(e=>e.defaultValue=[])(r=e.get||={})})(e.List||={});function t(e,t){return e===t?!0:e&&t?e.placementId===t.placementId&&e.adServer.type===t.adServer.type&&e.intermingle?.grid===t.intermingle?.grid&&e.intermingle?.list===t.intermingle?.list:!1}e.equals=t})(Hn||={});function Un(e){let t=Hn.List.use();return s.useMemo(()=>t.map(({placementId:t,intermingle:n,adServer:r})=>{let i=n?.[e];if(!i)return null;let a=r.type;return{containerId:I.fromPlacementId(t,a),placementId:t,position:i,adServer:a}}).filter(e=>e!==null),[e,t])}var Wn;(e=>{function t({layoutType:e}){let[t,n]=s.useState([]),[r,i]=s.useState([]),a=Un(e),o=gn(e,a);return s.useEffect(()=>{a.length&&n(a.map(({position:e})=>e))},[a]),s.useEffect(()=>{fn.publish(pn.COMPANION.channel,pn.COMPANION.LAYOUT_TYPE_CHANGE.topic,{layoutType:e})},[e]),s.useEffect(()=>{if(o.length){if(he(`adList received. Setting positions and elements from advertising-companion`,o),!t.length){let e=o.map(({position:e})=>e);he(`setAdPositions from advertising-companion. Memoized so it will only happen once`,e),n(e)}if(!r.length){let e=o.map(({element:e})=>e);he(`setAdElements from advertising-companion. Memoized so it will only happen once`,e),i(e)}}},[o,n,i]),[t,r]}e.use=t})(Wn||={}),Wn.use;var Gn=typeof window<`u`?s.useLayoutEffect:()=>{};function Kn(){let e=s.useRef(!1);return Gn(()=>(e.current=!0,()=>{e.current=!1}),[]),s.useCallback(()=>e.current,[])}var qn;(e=>{function t(e,n,r){let i=Kn(),[a,o]=s.useState(x(n?e:0));return[a,s.useCallback(()=>
1{if(!i()){x(n?r:e)?.();return}o(x(n??t.NextValueFactory.defaultValue))},[o])]}e.use=t,(e=>{(e=>e.defaultValue=e=>e+1)(e.NextValueFactory||={})})(t=e.use||={})})(qn||={});var Jn;(e=>{function t(e,t){let n=s.useRef(!0),[r,i]=qn.use(!0,e=>!e),a=Kn(),[,o]=s.useState(),c=s.useCallback(e=>{o(()=>{throw e})},[o]);s.useEffect(()=>{if(!n.current)return T;let{effect:t,cleanup:r}=e()??{};if(!(t||r))return T;let o=new AbortController,{promise:s,resolve:l}=Promise.withResolvers(),u=t&&async function(){try{await t({abortSignal:o.signal,unblockCleanup:l})}catch(e){c(e)}}();return u?.catch(T),()=>void async function(){if(n.current=!1,u)try{o.abort(new DOMException(`AsyncEffect: Aborted a running effect due to a new effect being triggered`,`AbortError`)),await Promise.race([u,s])}catch(e){c(e);return}if(r){let{promise:e,resolve:t}=Promise.withResolvers(),n=new AbortController;try{a()||n.abort(new DOMException(`AsyncEffect: Aborted the cleanup of an effect due to the component being unmounted`,`AbortError`));let i=r({abortSignal:n.signal,unblockEffect:t});await Promise.race([i,e])}catch(e){c(e);return}}await S(0),a()&&(n.current=!0,i())}()},t?.length===0?t:[r,...t??[]])}e.use=t})(Jn||={});function Yn(e){return[`error`,`collapsedOnCollision`].includes(e.status)}function Xn(e){if(typeof window>`u`)return;let{webComponentName:t,placementId:n}=e;if(!t||!n)return;let r=document.querySelector(t);if(!r)return;let i=Zn(e);r.appendChild(i)}function Zn({placementId:e,containerId:t,adIndex:n,categories:r,initialLayoutType:i,slotId:a}){let o=document.createElement(`advt-component`),s=[[`placementId`,e],[`adIndex`,n],[`containerId`,t],[`categories`,r],[`initialLayoutType`,i||`grid`],[`slot`,a],[`id`,a]];for(let[e,t]of s)typeof t>`u`||o.setAttribute(e,typeof t==`number`?`${t}`:t);return o}function Qn(e){return s.createElement(Qn.Forwarded,{...e})}(e=>{e.Forwarded=s.forwardRef(({itemId:e,categories:i,initialLayoutType:a,webComponentName:o},c)=>{let l=t.use(e);return n(l,o),r(l,i,a,o),l&&s.createElement(`slot`,{ref:c,name:l.slotId})});let t;(e=>{function t(e){return s.useMemo(()=>{let t=-1,n=Bn().find(({placementId:n},r)=>n===e&&(t=r,!0));if(!n)return he(`Placement not in placementMap for placementId: ${e}`),null;let{placementId:r}=n;return{placementId:r,adIndex:t,containerId:I.fromPlacementId(r),slotId:Ie.fromPlacementId(r)}},[e])}e.use=t})(t=e.PlacementData||={});function n(e,t){s.useEffect(()=>{if(!e)return()=>{};let{placementId:n}=e;return zn.subscribe(e=>{let r=e[n];if(!r||![`error`,`collapsedOnCollision`,`loaded`].includes(r.status))return;let i=typeof document<`u`?document.querySelector(t)?.shadowRoot?.getElementById(n):null;i&&(i.style.gridColumn=`1 / -1`,Yn(r)&&(i.classList.add(`advt-ad-collapsed`),i.style.display=`none`))})},[e,t])}e.useHideParentElementOnAdLoadFailure=n;function r(e,t,n,r){let[i,a]=s.useState(!1);s.useEffect(()=>{i||e&&(Xn({...e,categories:t,initialLayoutType:n,webComponentName:r}),a(!0))},[i,e,t,n,r])}e.useInjectSlotInWebComponent=r})(Qn||={});function $n(e){return s.createElement($n.Forwarded,{...e})}(e=>e.Forwarded=s.forwardRef(({placementId:e,adIndex:t,initialLayoutType:n,initialAspectFormat:r,categories:i},a)=>{let[o,c]=s.useState(!1);return s.useEffect(()=>{c(!0)},[]),o?s.createElement(`advt-component`,{adIndex:t,placementId:e,initialLayoutType:n,initialAspectFormat:r,categories:i},s.createElement(`div`,{ref:a,id:I.fromPlacementId(e),slot:Ie.fromPlacementId(e)})):null}))($n||={});var er;(e=>{function t(e){let[t,n]=g(-1);return f(()=>{let t=Rn.get(),r=[...t];t.includes(e)||(r.push(e),Rn.set(r)),he(`AdvertisingRecircItemPageComponent`,{itemId:e,oldAdvtItemIds:t,newList:r}),n(r.indexOf(e))},[e]),m(()=>{if(t===-1)return null;let e=`advt_recirc_middle_${t+1}`,n={adIndex:t,placementId:e,containerId:I.fromPlacementId(e),slotId:Ie.fromPlacementId(e)};return he(`useRecommendationIds`,n),n},[t])}e.use=t})(er||={});function tr(e){return s.createElement(tr.Forwarded,{...e})}(e=>e.Forwarded=s.forwardRef(({itemId:e,initialLayoutType:t,categories:n},r)=>{let i=er.use(e);if(!i)return s.createElement(`div`,null);let{placementId:a,adIndex:o,containerId:c,slotId:l}=i;return s.createElement(`advt-component`,{initialLayoutType:t,categories:n,adIndex:o,placementId:a},s.createElement(`div`,{ref:r,id:c,slot:l}))}))(tr||={});function nr(e){return s.createElement(nr.Forwarded,{...e})}(e=>{e.Forwarded=s.forwardRef(({itemId:e,categories:r,initialLayoutType:i,webComponentName:a},o)=>{let c=er.use(e);t(c,e,a);let l=c?.placementId&&`${c.placementId}--recirc-slot`;return n(c,l,r,i,a),c&&s.createElement(`slot`,{ref:o,name:l})});function t(e,t,n){s.useEffect(()=>{if(!e)return()=>{};let{placementId:r}=e;return zn.subscribe(e=>{let i=e[r];if(!i||![`error`,`collapsedOnCollision`,`loaded`].includes(i.status))return;let a=typeof document<`u`?document.querySelector(n)?.shadowRoot?.getElementById(t):null;a&&(a.style.gridColumn=`1 / -1`,Yn(i)&&(a.classList.add(`advt-ad-collapsed`),a.style.display=`none`))})},[e,t,n])}e.useHideParentElementOnAdLoadFailure=t;function n(e,t,n,r,i){let[a,o]=s.useState(!1);s.useEffect(()=>{a||e&&t&&(Xn({...e,categories:n,initialLayoutType:r,webComponentName:i,slotId:t}),o(!0))},[a,e,n,r,i])}e.useInjectSlotInWebComponent=n})(nr||={});function rr(e){let t=5381;for(let n=0;n<e.length;n++)t=t*33^e.charCodeAt(n);return t>>>0}function ir(e){let t=rr(`${e.type}:${e.url}:${e.title}`);return`${e.type.toLowerCase()}-${t}`}var ar=e=>e.type===`CLASSIFIED`,or=e=>!!(e.ad_id&&e.url&&e.title&&e.image?.type&&e.image?.url),sr=e=>e.type===`CMS`,cr=e=>!!(e.url&&e.title&&e.image?.type&&e.image?.url),lr=e=>e.type===`CROSSBRAND`,ur=e=>!!(e.image?.type&&e.image?.url&&e.title),dr=e=>ar(e)?or(e):sr(e)?cr(e):lr(e)?ur(e):!1,fr=e=>{switch(e.type.toUpperCase()){case`NATIVE`:return!0;case`BANNER`:return!0;default:return!1}},pr=e=>e.type===`BANNER`?!!e.placementId:e.type===`NATIVE`&&!!e.itemId,mr=e=>lr(e)||sr(e)?ir(e):`_counter`in e?`${e.ad_id}-${e._counter}`:e.ad_id||e.placementId||e.itemId||``,hr=()=>Bn().filter(Vn).map(e=>({placementId:e.placementId,gridPosition:e.intermingle?.grid?.valueOf()})),gr=(e,t)=>{if(!e||!t?.items)return e;let n=e.map(e=>({ad:{placementId:e.placementId,type:`BANNER`},position:e.gridPosition-1,originalAd:e})).filter(e=>t.items.length>=e.position);if(n.length===0)return e;let r=new Set(n.map(({originalAd:e})=>e.placementId)),i=e.filter(e=>!r.has(e.placementId)),a=[...t.items];
1return n.forEach(({ad:e,position:t})=>{a=[...a.slice(0,t),e,...a.slice(t)]}),t.items=a,i};function _r(e){let t=h(!1),{ref:n}=r({once:!0,enabled:!!e,threshold:.5,onEnter:()=>{!t.current&&e&&(t.current=!0,i(e))}});return n}var U=t();function vr({id:e,item:t}){let[n,r]=g(!1),i=_r(t.type===`NATIVE`?t.tracking??null:null),a=mr(t).replace(/:/g,`-`),o=t.content,s=o?{main_category:o.main_category,sub_category:o.sub_category,prod_category:o.prod_category}:void 0,c=t.type===`BANNER`?{gridColumn:`1 / -1`}:{};f(()=>{let e=i.current;if(!e)return;let t=()=>{let t=Array.from(e.children).some(e=>e.classList.contains(`advt-empty`));r(t)};t();let n=new MutationObserver(()=>{t()});return n.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`class`]}),()=>{n.disconnect()}},[i]);let l={...c,...n&&{display:`none`}};return(0,U.jsx)(`div`,{id:e,ref:i,style:l,children:(0,U.jsx)($n,{placementId:a,categories:s?JSON.stringify(s):void 0,initialLayoutType:`grid`})})}var yr=({companyName:e})=>e?(0,U.jsx)(`div`,{className:`text-s s-text-subtle text-ellipsis line-clamp-1 break-all`,children:e}):null;function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var br=`__lookupFavItem`,xr=4,Sr=6e5,Cr=typeof window<`u`;function G(e,t,n){return{itemType:e,itemId:t,folderIds:n}}function K(e,t){return`${e}:${t}`}var wr=class{constructor(e,t,n,r,i){W(this,`ttl`,void 0),W(this,`version`,void 0),W(this,`userId`,void 0),W(this,`items`,void 0),W(this,`dataFromServer`,void 0),this.ttl=e,this.version=t,this.userId=i,this.items=n,this.dataFromServer=r}};function Tr(e,t){return new wr(e.ttl,e.version,t,e.dataFromServer,e.userId)}var Er=class{constructor(e,t,n,r,i,a){W(this,`userId`,void 0),W(this,`storage`,void 0),W(this,`ttl`,void 0),W(this,`key`,void 0),W(this,`getNow`,void 0),W(this,`storageHandler`,void 0),this.userId=t,this.storage=n||(Cr?window.localStorage:null),this.ttl=r||Sr,this.key=i||br,this.getNow=a||(()=>Date.now()),this.key=br,this.storageHandler=t=>{try{if(t.key!==this.key||t.oldValue===t.newValue||!t.newValue)return;var n=JSON.parse(t.newValue||``);if(n.userId?.toString()!==this.userId?.toString())return;if(t.oldValue&&n.items){var r=JSON.parse(t.oldValue);n.items.forEach(t=>{if(r.items!=null&&!r.items.find(e=>e.itemType===t.itemType&&e.itemId===t.itemId)){var i=n.items.find(e=>e.itemType===t.itemType&&e.itemId===t.itemId)||G(t.itemType,t.itemId,[]);e(K(t.itemType,t.itemId),i)}})}else n.items.forEach(t=>{var r=n.items.find(e=>e.itemType===t.itemType&&e.itemId===t.itemId)||G(t.itemType,t.itemId,[]);e(K(t.itemType,t.itemId),r)})}catch{}},Cr&&window.addEventListener(`storage`,this.storageHandler)}unbind(){window.removeEventListener(`storage`,this.storageHandler)}createEmptyState(){return new wr(this.getNow()+this.ttl,xr,[],!1,this.userId?.toString())}resetState(){var e,t=this.createEmptyState();return(e=this.storage)==null||e.setItem(this.key,JSON.stringify(t)),t}isValid(e){return!e||e.version!==xr||e.ttl<=this.getNow()||e.userId?.toString()!==this.userId?.toString()?this.resetState():e}getState(){try{var e=this.isValid(JSON.parse(this.storage?.getItem(this.key)||``));if(e)return e}catch{return this.resetState()}return this.createEmptyState()}isEmpty(){return!this.getState().dataFromServer}getFolderIds(e,t){var n=n=>n.itemType===e&&n.itemId===t,r=this.getState();if(r&&r.items){if(Array.isArray(r.items)){var i=r.items.find(n);if(i)return i.folderIds}else return[];return[]}return[]}addToFolder(e,t,n){var r=!1;function i(i){return i.itemType===e&&i.itemId===t?(r=!0,i.folderIds.push(n),i):i}try{var a,o=this.getState();if(o&&o.items&&o.items){var s=o.items.map(i);o=Tr(o,s)}return r||o.items.push(G(e,t,[n])),(a=this.storage)==null||a.setItem(this.key,JSON.stringify(o)),!0}catch{return!1}}removeFromFolder(e,t,n){function r(r){if(r.itemType===e&&r.itemId===t){var i=r.folderIds.filter(e=>e!==n);return G(r.itemType,r.itemId,i)}return r}try{var i,a=this.getState();if(a&&a.items){var o=a.items.map(r);a=Tr(a,o)}return(i=this.storage)==null||i.setItem(this.key,JSON.stringify(a)),!0}catch{return!1}}deleteFolderContent(e,t){function n(n){var{itemId:r,itemType:i}=n;if(t.some(e=>
1e.itemId===r&&e.itemType===i)){var a=n.folderIds.filter(t=>t!==e);return G(n.itemType,n.itemId,a)}return n}try{var r,i=this.getState();if(i&&i.items){var a=i.items.map(n);i=Tr(i,a)}return(r=this.storage)==null||r.setItem(this.key,JSON.stringify(i)),!0}catch{return!1}}removeFolder(e){function t(t){var n=t.folderIds.filter(t=>t!==e);return G(t.itemType,t.itemId,n)}try{var n,r=this.getState();if(r&&r.items){var i=r.items.map(t).filter(e=>e.folderIds.length>0);r=Tr(r,i)}return(n=this.storage)==null||n.setItem(this.key,JSON.stringify(r)),!0}catch{return!1}}setItems(e){try{var t,n=this.createEmptyState();return n.items=e,n.dataFromServer=!0,(t=this.storage)==null||t.setItem(this.key,JSON.stringify(n)),!0}catch{return!1}}},Dr=class e{constructor(t,n){W(this,`baseUri`,void 0),W(this,`fetch`,void 0),this.baseUri=t,this.fetch=n||e.fetch,this.fetchFolders=this.fetchFolders.bind(this),this.fetchMinimalFavoriteMap=this.fetchMinimalFavoriteMap.bind(this),this.addToFolder=this.addToFolder.bind(this),this.removeFromFolder=this.removeFromFolder.bind(this),this.createFolder=this.createFolder.bind(this),this.deleteFolder=this.deleteFolder.bind(this),this.fetchNumFavs=this.fetchNumFavs.bind(this),this.deleteFolderContent=this.deleteFolderContent.bind(this)}static fetch(e,t){return window.fetch(e,t)}static getCredentialsHeader(){var{host:e}=window.location;return e.includes(`local.finn.no`)?`include`:`same-origin`}fetchMinimalFavoriteMap(){return this.fetch(`${this.baseUri}/minimal`,{credentials:e.getCredentialsHeader()})}addToFolder(t,n,r){return this.fetch(`${this.baseUri}/${r}/${t}/${n}`,{credentials:e.getCredentialsHeader(),method:`PUT`})}removeFromFolder(t,n,r){return this.fetch(`${this.baseUri}/${r}/${t}/${n}`,{credentials:e.getCredentialsHeader(),method:`DELETE`})}fetchFolders(){return this.fetch(this.baseUri,{credentials:e.getCredentialsHeader()})}createFolder(t){return this.fetch(`${this.baseUri}`,{credentials:e.getCredentialsHeader(),method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({name:t})})}deleteFolder(t){return this.fetch(`${this.baseUri}/${t}`,{credentials:e.getCredentialsHeader(),method:`DELETE`})}fetchNumFavs(t,n){return this.fetch(`${this.baseUri}/${t}/${n}/counter`,{credentials:e.getCredentialsHeader()})}deleteFolderContent(t,n){return this.fetch(`${this.baseUri}/${t}/ads`,{credentials:e.getCredentialsHeader(),method:`DELETE`,headers:{"Content-Type":`application/json`},body:JSON.stringify({items:n})})}},Or=typeof window<`u`,q=Or?window:{},kr=class{constructor(){W(this,`promise`,void 0),W(this,`resolve`,void 0),W(this,`reject`,void 0),W(this,`timer`,void 0),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}},Ar=class{constructor(e,t,n){W(this,`namespace`,void 0),W(this,`handler`,void 0),W(this,`timeout`,void 0),this.namespace=e,this.handler=t,this.timeout=n||15}getGlobalPromise(){return q[this.namespace]=q[this.namespace]||new kr,q[this.namespace]}resetState(){delete q[this.namespace]}collectAndHandle(){var e=this.getGlobalPromise();return clearTimeout(e.timer),e.timer=window.setTimeout(()=>{this.resetState(),this.handler().then(e.resolve).catch(e.reject)},this.timeout),e.promise}},jr=class{constructor(e){W(this,`key`,void 0),this.key=`${e}__queue`,q[this.key]=q[this.key]||[]}reset(){q[this.key]=[]}getQueue(){return q[this.key]}subscribe(e,t){this.getQueue().push([e,t])}unsubscribe(e,t){q[this.key]=this.getQueue().filter(n=>{var[r,i]=n;return r!==e||i!==t})}matches(e){return this.getQueue().filter(t=>{var[n]=t;return n.toString()===e.toString()}).map(e=>{var[,t]=e;return t})}emit(e,t){this.matches(e).forEach(e=>e(t))}},Mr=class e{constructor(t,n,r,i,a,o){W(this,`namespace`,void 0),W(this,`fetcher`,void 0),W(this,`toggledStateBus`,void 0),W(this,`recountStateBus`,void 0),W(this,`favStorage`,void 0),W(this,`getItemCollector`,void 0),this.namespace=n||`__lookupFavItem`,this.toggledStateBus=new jr(`${this.namespace}__toggled`),this.recountStateBus=new jr(`${this.namespace}__recount`),this.favStorage=new Er((e,t)=>{this.toggledStateBus.emit(e,!!t)},t??void 0,r,i),this.fetcher=new Dr(o||e.getEnvBasedUrl(),a),this.getItemCollector=new Ar(this.namespace,()=>this.fetcher.fetchMinimalFavoriteMap().then(e.validateResponseOK).then(e=>e.json()).then(e=>{this.favStorage.setItems(e.items)}).catch(()=>{})),this.fetchFolders=this.fetchFolders.bind(this),this.fetchFoldersForItem=this.fetchFoldersForItem.bind(this),this.addToFolder=this.addToFolder.bind(this),this.removeFromFolder=this.removeFromFolder.bind(this),this.createFolder=this.createFolder.bind(this),this.deleteFolder=this.deleteFolder.bind(this),this.deleteFolderContent=this.deleteFolderContent.bind(this)}unmount(){this.toggledStateBus.reset(),this.recountStateBus.reset(),this.favStorage.unbind()}static getEnvBasedUrl(){var{host:e}=Or?window.location:{host:``};return e.includes(`local.finn.no`)?`http://local.finn.no:3050/favorittliste/podium-resource/favorittlistePodlet/favorite-api`:e.includes(`dev.finn.no`)?`https://dev.finn.no/favorittliste/podium-resource/favorittlistePodlet/favorite-api`:`https://www.finn.no/favorittliste/podium-resource/favorittlistePodlet/favorite-api`}getFavoriteState(e,t,n){var r=Number(t);return this.toggledStateBus.subscribe(K(e,r),n),this.isItemFavorited(e,r),()=>{this.toggledStateBus.unsubscribe(K(e,r),n)}}subscribeToRecount(e,t,n){var r=Number(t);return this.recountStateBus.subscribe(K(e,r),n),this.fetchAndEmitNumFavs(e,r),()=>{this.recountStateBus.unsubscribe(K(e,r),n)}}isItemFavorited(e,t){var n=Number(t);if(this.favStorage.isEmpty())return this.getItemCollector.collectAndHandle().then(()=>new Promise(t=>{setTimeout(()=>{var r=this.favStorage.getFolderIds(e,n);return this.toggledStateBus.emit(K(e,n),r.length>0),r.length>0?t(!0):t(!1)},0)}));var r=this.favStorage.getFolderIds(e,n);return this.toggledStateBus.emit(K(e,n),r.length>0),r.length>0?Promise.resolve(!0):Promise.resolve(!1)}
1addToFolder(e,t,n){var r=Number(t),i=Number(n);return this.fetcher.addToFolder(e,r,i).then(t=>(this.toggledStateBus.matches(K(e,r)).forEach(e=>e(!0)),this.favStorage.addToFolder(e,r,i),this.fetchAndEmitNumFavs(e,r),t))}removeFromFolder(e,t,n){var r=Number(t),i=Number(n);return this.fetcher.removeFromFolder(e,r,i).then(t=>(this.favStorage.removeFromFolder(e,r,i),this.uncheckHeartIfRemovedFromAllFolders(e,r),this.fetchAndEmitNumFavs(e,r),t))}deleteFolderContent(e,t){var n=Number(e);return this.fetcher.deleteFolderContent(n,t).then(e=>(this.favStorage.deleteFolderContent(n,t),t.forEach(e=>{this.uncheckHeartIfRemovedFromAllFolders(e.itemType,e.itemId),this.fetchAndEmitNumFavs(e.itemType,e.itemId)}),e))}fetchFolders(){return this.fetcher.fetchFolders()}fetchFoldersForItem(e,t){var n=Number(t);return Promise.resolve(G(e,n,this.favStorage.getFolderIds(e,n)))}createFolder(e){return this.fetcher.createFolder(e)}deleteFolder(e){var t=Number(e);return this.fetcher.deleteFolder(t).then(e=>(this.favStorage.removeFolder(t),e))}static validateResponseOK(e){return e.ok?Promise.resolve(e):Promise.reject(e)}uncheckHeartIfRemovedFromAllFolders(e,t){var n=this.favStorage.getFolderIds(e,t);n&&n.length<1&&this.toggledStateBus.matches(K(e,t)).forEach(e=>e(!1))}fetchAndEmitNumFavs(t,n){this.fetchNumFavs(t,n).then(e.validateResponseOK).then(e=>this.emitFavCounter(e,t,n)).catch(e=>this.emitZeroCountIfNotFound(e,t,n)).catch(()=>{})}fetchNumFavs(e,t){return this.fetcher.fetchNumFavs(e,t)}emitFavCounter(e,t,n){return e.json().then(e=>this.recountStateBus.emit(K(t,n),e.counter)).catch(()=>Promise.reject(e))}emitZeroCountIfNotFound(e,t,n){return e.status===404?(this.recountStateBus.emit(K(t,n),0),Promise.resolve(e)):Promise.reject(e)}},Nr=e=>typeof e==`object`&&!!e&&e.nodeType===1,Pr=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,Fr=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return Pr(n.overflowY,t)||Pr(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Ir=(e,t,n,r,i,a,o,s)=>a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0,Lr=e=>e.parentElement??(e.getRootNode().host||null),Rr=(e,t)=>{if(typeof document>`u`)return[];let{scrollMode:n,block:r,inline:i,boundary:a,skipOverflowHiddenElements:o}=t,s=typeof a==`function`?a:e=>e!==a;if(!Nr(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;Nr(u)&&s(u);){if(u=Lr(u),u===c){l.push(u);break}u!=null&&u===document.body&&Fr(u)&&!Fr(document.documentElement)||u!=null&&Fr(u,o)&&l.push(u)}let d=window.visualViewport?.width??innerWidth,f=window.visualViewport?.height??innerHeight,{scrollX:p,scrollY:m}=window,{height:h,width:g,top:_,right:v,bottom:y,left:b}=e.getBoundingClientRect(),{top:x,right:S,bottom:C,left:w}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),T=r===`start`||r===`nearest`?_-x:r===`end`?y+C:_+h/2-x+C,E=i===`center`?b+g/2-w+S:i===`end`?v+S:b-w,D=[];for(let e=0;e<l.length;e++){let t=l[e],{height:a,width:o,top:s,right:u,bottom:x,left:S}=t.getBoundingClientRect();if(n===`if-needed`&&_>=0&&b>=0&&y<=f&&v<=d&&(t===c&&!Fr(t)||_>=s&&y<=x&&b>=S&&v<=u))return D;let C=getComputedStyle(t),w=parseInt(C.borderLeftWidth,10),O=parseInt(C.borderTopWidth,10),k=parseInt(C.borderRightWidth,10),A=parseInt(C.borderBottomWidth,10),j=0,M=0,N=`offsetWidth`in t?t.offsetWidth-t.clientWidth-w-k:0,P=`offsetHeight`in t?t.offsetHeight-t.clientHeight-O-A:0,F=`offsetWidth`in t?t.offsetWidth===0?0:o/t.offsetWidth:0,ee=`offsetHeight`in t?t.offsetHeight===0?0:a/t.offsetHeight:0;if(c===t)j=r===`start`?T:r===`end`?T-f:r===`nearest`?Ir(m,m+f,f,O,A,m+T,m+T+h,h):T-f/2,M=i===`start`?E:i===`center`?E-d/2:i===`end`?E-d:Ir(p,p+d,d,w,k,p+E,p+E+g,g),j=Math.max(0,j+m),M=Math.max(0,M+p);
1else{j=r===`start`?T-s-O:r===`end`?T-x+A+P:r===`nearest`?Ir(s,x,a,O,A+P,T,T+h,h):T-(s+a/2)+P/2,M=i===`start`?E-S-w:i===`center`?E-(S+o/2)+N/2:i===`end`?E-u+k+N:Ir(S,u,o,w,k+N,E,E+g,g);let{scrollLeft:e,scrollTop:n}=t;j=ee===0?0:Math.max(0,Math.min(n+j/ee,t.scrollHeight-a/ee+P)),M=F===0?0:Math.max(0,Math.min(e+M/F,t.scrollWidth-o/F+N)),T+=n-j,E+=e-M}D.push({el:t,top:j,left:M})}return D},zr=e=>!1===e?{block:`end`,inline:`nearest`}:(e=>e===Object(e)&&Object.keys(e).length!==0)(e)?e:{block:`start`,inline:`nearest`};function Br(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>typeof e==`object`&&typeof e.behavior==`function`)(t))return t.behavior(Rr(e,t));let r=typeof t==`boolean`||t==null?void 0:t.behavior;for(let{el:i,top:a,left:o}of Rr(e,zr(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var Vr=new Set([`children`,`localName`,`ref`,`style`,`className`]),Hr=new WeakMap,Ur=(e,t,n,r,i)=>{let a=i?.[t];a===void 0?(e[t]=n,n==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&((e,t,n)=>{let r=Hr.get(e);r===void 0&&Hr.set(e,r=new Map);let i=r.get(t);n===void 0?i!==void 0&&(r.delete(t),e.removeEventListener(t,i)):i===void 0?(r.set(t,i={handleEvent:n}),e.addEventListener(t,i)):i.handleEvent=n})(e,a,n)},J=({react:e,tagName:t,elementClass:n,events:r,displayName:i})=>{let a=new Set(Object.keys(r??{})),o=e.forwardRef(((i,o)=>{let s=e.useRef(new Map),c=e.useRef(null),l={},u={};for(let[e,t]of Object.entries(i))Vr.has(e)?l[e===`className`?`class`:e]=t:a.has(e)||e in n.prototype?u[e]=t:l[e]=t;return e.useLayoutEffect((()=>{if(c.current===null)return;let e=new Map;for(let t in u)Ur(c.current,t,i[t],s.current.get(t),r),s.current.delete(t),e.set(t,i[t]);for(let[e,t]of s.current)Ur(c.current,e,void 0,t,r);s.current=e})),e.useLayoutEffect((()=>{c.current?.removeAttribute(`defer-hydration`)}),[]),l.suppressHydrationWarning=!0,e.createElement(t,{...l,ref:e.useCallback((e=>{c.current=e,typeof o==`function`?o(e):o!==null&&(o.current=e)}),[o])})}));return o.displayName=i??n.name,o},Wr=J({tagName:`w-button`,elementClass:class extends y{},react:s}),Y=s.forwardRef(({fullWidth:e,iconOnly:t,...n},r)=>s.createElement(Wr,{...n,...e?{"full-width":!0}:{},...t?{"icon-only":!0}:{},ref:r}));Y.displayName=`Button`;var Gr=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var t;(function(e){e.MalformedUnicode=`MALFORMED_UNICODE`,e.MalformedHexadecimal=`MALFORMED_HEXADECIMAL`,e.CodePointLimit=`CODE_POINT_LIMIT`,e.OctalDeprecation=`OCTAL_DEPRECATION`,e.EndOfString=`END_OF_STRING`})(t=e.ErrorType||={}),e.errorMessages=new Map([[t.MalformedUnicode,`malformed Unicode character escape sequence`],[t.MalformedHexadecimal,`malformed hexadecimal character escape sequence`],[t.CodePointLimit,`Unicode codepoint must not be greater than 0x10FFFF in escape sequence`],[t.OctalDeprecation,`"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead`],[t.EndOfString,`malformed escape sequence at end of string`]])})),Kr=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var t=Gr();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function n(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}function r(e,r,i){let a=n(e);if(Number.isNaN(a)||i!==void 0&&i!==e.length)throw SyntaxError(t.errorMessages.get(r));return a}function i(e){let n=r(e,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(n)}function a(e,n){let i=r(e,t.ErrorType.MalformedUnicode,4);if(n!==void 0){let e=r(n,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(i,e)}return String.fromCharCode(i)}function o(e){return e.charAt(0)===`{`&&e.charAt(e.length-1)===`}`}function s(e){if(!o(e))throw SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));let n=r(e.slice(1,-1),t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(e){throw e instanceof RangeError?SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):e}}function c(e,n=!1){if(n)throw SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));let r=parseInt(e,8);return String.fromCharCode(r)}var l=new Map([[`b`,`\b`],[`f`,`\f`],[`n`,`
2`],[`r`,`\r`],[`t`,`	`],[`v`,`\v`],[`0`,`\0`]]);function u(e){return l.get(e)||e}var d=/\\(?:(\\)|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 f(e,n=!1){return e.replace(d,function(e,r,o,l,d,f,p,m,h){if(r!==void 0)return`\\`;if(o!==void 0)return i(o);if(l!==void 0)return s(l);if(d!==void 0)return a(d,f);if(p!==void 0)return a(p);if(m===`0`)return`\0`;if(m!==void 0)return c(m,!n);if(h!==void 0)return u(h);throw SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=f}))(),X=e=>typeof e==`string`,qr=e=>typeof e==`function`,Jr=new Map,Yr=`en`;function Xr(e){return[...Array.isArray(e)?e:[e],Yr]}function Zr(e,t,n){let r=Xr(e);n||=`default`;let i;if(typeof n==`string`)switch(i={day:`numeric`,month:`short`,year:`numeric`},n){case`full`:i.weekday=`long`;case`long`:i.month=`long`;break;case`short`:i.month=`numeric`}else i=n;return ti(()=>ni(`date`,r,n),()=>new Intl.DateTimeFormat(r,i)).format(X(t)?new Date(t):t)}function Qr(e,t,n){let r;if(n||=`default`,typeof n==`string`)switch(r={second:`numeric`,minute:`numeric`,hour:`numeric`},n){case`full`:case`long`:r.timeZoneName=`short`;break;case`short`:delete r.second}else r=n;return Zr(e,t,r)}function $r(e,t,n){let r=Xr(e);return ti(()=>ni(`number`,r,n),()=>new Intl.NumberFormat(r,n)).format(t)}function ei(e,t,n,{offset:r=0,...i}){let a=Xr(e),o=t?ti(()=>ni(`plural-ordinal`,a),()=>new Intl.PluralRules(a,{type:`ordinal`})):ti(()=>ni(`plural-cardinal`,a),()=>new Intl.PluralRules(a,{type:`cardinal`}));return i[n]??i[o.select(n-r)]??i.other}function ti(e,t){let n=e(),r=Jr.get(n);return r||(r=t(),Jr.set(n,r)),r}function ni(e,t,n){return`${e}-${t.join(`-`)}-${JSON.stringify(n)}`}var ri=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,ii=`%__lingui_octothorpe__%`,ai=(e,t,n={})=>{let r=t||e,i=e=>typeof e==`object`?e:n[e],a=(e,t)=>{let a=Object.keys(n).length?i(`number`):void 0,o=$r(r,e,a);return t.replace(new RegExp(ii,`g`),o)};return{plural:(e,t)=>{let{offset:n=0}=t,i=ei(r,!1,e,t);return a(e-n,i)},selectordinal:(e,t)=>{let{offset:n=0}=t,i=ei(r,!0,e,t);return a(e-n,i)},select:oi,number:(e,t)=>
2$r(r,e,i(t)||{style:t}),date:(e,t)=>Zr(r,e,i(t)||t),time:(e,t)=>Qr(r,e,i(t)||t)}},oi=(e,t)=>t[e]??t.other;function si(e,t,n){return(r={},i)=>{let a=ai(t,n,i),o=(e,t=!1)=>Array.isArray(e)?e.reduce((e,n)=>{if(n===`#`&&t)return e+ii;if(X(n))return e+n;let[i,s,c]=n,l={};s===`plural`||s===`selectordinal`||s===`select`?Object.entries(c).forEach(([e,t])=>{l[e]=o(t,s===`plural`||s===`selectordinal`)}):l=c;let u;if(s){let e=a[s];u=e(r[i],l)}else u=r[i];return u==null?e:e+u},``):e,s=o(e);return X(s)&&ri.test(s)?(0,Kr.unraw)(s):X(s)?s:s?String(s):``}}var ci=Object.defineProperty,li=(e,t,n)=>t in e?ci(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ui=(e,t,n)=>(li(e,typeof t==`symbol`?t:t+``,n),n),di=class{constructor(){ui(this,`_events`,{})}on(e,t){var n;return(n=this._events)[e]??(n[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){let n=this._getListeners(e);if(!n)return;let r=n.indexOf(t);~r&&n.splice(r,1)}emit(e,...t){let n=this._getListeners(e);n&&n.map(e=>e.apply(this,t))}_getListeners(e){let t=this._events[e];return Array.isArray(t)?t:!1}},fi=Object.defineProperty,pi=(e,t,n)=>t in e?fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z=(e,t,n)=>(pi(e,typeof t==`symbol`?t:t+``,n),n),mi=class extends di{constructor(e){super(),Z(this,`_locale`,``),Z(this,`_locales`),Z(this,`_localeData`,{}),Z(this,`_messages`,{}),Z(this,`_missing`),Z(this,`_messageCompiler`),Z(this,`t`,this._.bind(this)),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(typeof e.locale==`string`||e.locales)&&this.activate(e.locale??Yr,e.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(e,t){let n=this._localeData[e];n?Object.assign(n,t):this._localeData[e]=t}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,t){typeof e==`string`?this._loadLocaleData(e,t):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit(`change`)}_load(e,t){let n=this._messages[e];n?Object.assign(n,t):this._messages[e]=t}load(e,t){typeof e==`string`&&typeof t==`object`?this._load(e,t):Object.entries(e).forEach(([e,t])=>this._load(e,t)),this.emit(`change`)}loadAndActivate({locale:e,locales:t,messages:n}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=n,this.emit(`change`)}activate(e,t){this._locale=e,this._locales=t,this.emit(`change`)}_(e,t,n){if(!this.locale)throw Error(`Lingui: Attempted to call a translation function without setting a locale.
3Make sure to call \`i18n.activate(locale)\` before using Lingui functions.
4This issue may also occur due to a race condition in your initialization logic.`);let r=n?.message;e||=``,X(e)||(t=e.values||t,r=e.message,e=e.id);let i=this.messages[e],a=i===void 0,o=this._missing;if(o&&a)return qr(o)?o(this._locale,e):o;a&&this.emit(`missing`,{id:e,locale:this._locale});let s=i||r||e;return X(s)&&(this._messageCompiler?s=this._messageCompiler(s):console.warn(`Uncompiled message detected! Message:
5
6> ${s}
7
8That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
9ICU features such as interpolation and plurals will not work properly for that message. 
10
11Please compile your catalog first. 
12`)),X(s)&&ri.test(s)?JSON.parse(`"${s}"`):X(s)?s:si(s,this._locale,this._locales)(t,n?.formats)}date(e,t){return Zr(this._locales||this._locale,e,t)}number(e,t){return $r(this._locales||this._locale,e,t)}};function hi(e={}){return new mi(e)}var Q=hi(),gi=J({tagName:`w-modal-footer`,elementClass:class extends y{},react:s}),_i=s.forwardRef(({...e},t)=>s.createElement(gi,{slot:`footer`,...e,ref:t}));_i.displayName=`ModalFooter`;var vi=J({tagName:`w-modal-header`,elementClass:class extends y{},react:s,events:{onBackClicked:`backClicked`,onbackClicked:`backClicked`}}),yi=s.forwardRef(({noClose:e,...t},n)=>s.createElement(vi,{slot:`header`,...t,...e?{"no-close":!0}:{},ref:n}));yi.displayName=`ModalHeader`;var bi=J({tagName:`w-modal`,elementClass:class extends y{},react:s,events:{onShown:`shown`,onshown:`shown`,onHidden:`hidden`,onhidden:`hidden`}}),xi=s.forwardRef(({contentId:e,ignoreBackdropClicks:t,...n},r)=>s.createElement(bi,{...n,...e===void 0?{}:{"content-id":e},...t?{"ignore-backdrop-clicks":!0}:{},ref:r}));xi.displayName=`Modal`;var Si=({...e})=>s.createElement(`div`,{slot:`content`,...e}),Ci=J({tagName:`w-alert`,elementClass:class extends y{},react:s}),wi=J({tagName:`w-card`,elementClass:class extends y{},react:s}),Ti=J({tagName:`w-pagination`,elementClass:class extends y{},react:s,events:{onPageClick:`page-click`,"onpage-click":`page-click`}}),Ei=s.forwardRef(({baseUrl:e,currentPageNumber:t,visiblePages:n,...r},i)=>s.createElement(Ti,{...r,...e===void 0?{}:{"base-url":e},...t===void 0?{}:{"current-page":t},...n===void 0?{}:{"visible-pages":n},ref:i}));Ei.displayName=`Pagination`;var Di=J({tagName:`w-affix`,elementClass:class extends y{},react:s}),Oi=s.forwardRef(({ariaLabel:e,...t},n)=>s.createElement(Di,{...t,...e===void 0?{}:{"aria-label":e},ref:n}));Oi.displayName=`Affix`;var ki=J({tagName:`w-textfield`,elementClass:class extends y{},react:s,events:{onBlur:`blur`,onblur:`blur`,onChange:`change`,onchange:`change`,onInput:`input`,oninput:`input`,onFocus:`focus`,onfocus:`focus`}}
12),Ai=s.forwardRef(({helpText:e,minLength:t,maxLength:n,readOnly:r,...i},a)=>s.createElement(ki,{...i,...e===void 0?{}:{"help-text":e},...t===void 0?{}:{"min-length":t},...n===void 0?{}:{"max-length":n},...r?{"read-only":!0}:{},ref:a}));Ai.displayName=`TextField`;function ji(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function $(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){ji(a,r,i,o,s,`next`,e)}function s(e){ji(a,r,i,o,s,`throw`,e)}o(void 0)})}}function Mi(e,t,n){return(t=zi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ni.apply(null,arguments)}function Pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Pi(Object(n),!0).forEach(function(t){Mi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ii(e,t){if(e==null)return{};var n,r,i=Li(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Li(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ri(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function zi(e){var t=Ri(e,`string`);return typeof t==`symbol`?t:t+``}var Bi=JSON.parse(`{"addInAList":["Føj til liste"],"backButton":["Tilbage"],"chooseList":["Føj til en favoritliste"],"createListError":["Listen kunne ikke oprettes. Prøv venligst igen senere."],"createNewList":["Opret ny liste"],"createNewWantedList":["Opret ny ønskeliste"],"duplicateListError":["Du har allerede en liste med dette navn. Prøv igen med et andet navn."],"favoriteAddedErrorToast":["Kunne ikke tilføje favoritten. Prøv igen senere."],"favoriteAddedToast":["Favorit blev føjet til ",["folder"]],"favoriteRemovedErrorToast":["Kunne ikke fjerne favoritten, prøv igen senere."],"favoriteRemovedToast":["Fjern favorit fra ",["folder"]],"genericListErrorMessage":["Vi har lidt tekniske problemer. Prøv igen om lidt."],"genericListErrorTitle":["Hovsa!"],"heartButtonText":["Føj til favoritter"],"heartButtonTextToggled":["Tilføjet som favorit"],"heartIconAriaLabel":["Ikon formet som omridset af et hjerte"],"heartIconAriaLabelToggled":["Hjerteformet ikon med fyldfarve"],"listNameHelpText":[["length"]," / 40 tegn"],"listNameHelpTextErrorMinLength":["Indtast mindst ét tegn"],"listNameLabel":["Giv listen et navn"],"listNotFound":["Kunne ikke finde nogen lister, der matcher din 
12søgning"],"login":["Log ind"],"loginNudge":["Log ind for at føje annoncen til dine favoritter, så du nemt kan finde den igen, uanset hvor du er."],"newList":["Ny liste"],"notNow":["Ikke nu"],"searchLabel":["Søg efter en liste"],"searchPlaceholder":["Navn på en liste"]}`),Vi=JSON.parse(`{"addInAList":["Add to list"],"backButton":["Back"],"chooseList":["Add to a favourite list"],"createListError":["The list could not be created. Please try again later."],"createNewList":["Create new list"],"createNewWantedList":["Create new wishlist"],"duplicateListError":["You already have a list with this name. Please give it another name."],"favoriteAddedErrorToast":["Couldn't add the favourite. Please try again later."],"favoriteAddedToast":["Favourite was added to ",["folder"]],"favoriteRemovedErrorToast":["Couldn't remove the favourite. Please try again later."],"favoriteRemovedToast":["Remove favourite from ",["folder"]],"genericListErrorMessage":["There are gremlins about. Try again in a bit."],"genericListErrorTitle":["Oops!"],"heartButtonText":["Add to favourites"],"heartButtonTextToggled":["Added as favourite"],"heartIconAriaLabel":["Icon of the outline of a heart"],"heartIconAriaLabelToggled":["Icon of a filled heart"],"listNameHelpText":[["length"]," / 40 characters"],"listNameHelpTextErrorMinLength":["Enter at least one character"],"listNameLabel":["Give the list a name"],"listNotFound":["Couldn't find any lists that match your search :("],"login":["Log in"],"loginNudge":["Log in to add the listing to your favourites so you can easily find it again, no matter where you are."],"newList":["New list"],"notNow":["Not now"],"searchLabel":["Search for a list"],"searchPlaceholder":["Name of a list"]}`),Hi=JSON.parse(`{"addInAList":["Tallenna"],"backButton":["Peruuta"],"chooseList":["Tallenna suosikkeihin"],"createListError":["Kansiota ei voitu luoda. Yritä myöhemmin uudelleen."],"createNewList":["Luo uusi kansio"],"createNewWantedList":["Luo toivelista"],"duplicateListError":["Tämän niminen kansio on jo olemassa. Yritä uudelleen eri nimellä."],"favoriteAddedErrorToast":["Ilmoitusta ei voitu lisätä suosikiksi. Yritä myöhemmin uudelleen."],"favoriteAddedToast":["Ilmoitus tallennettu kansioon ",["folder"]],"favoriteRemovedErrorToast":["Ilmoitusta ei voitu poistaa suosikeista. Yritä myöhemmin uudelleen."],"favoriteRemovedToast":["Ilmoitus poistettu kansiosta ",["folder"]],"genericListErrorMessage":["Jotain meni pieleen. Yritä hetken päästä uudelleen."],"genericListErrorTitle":["Hups!"],"heartButtonText":["Lisää suosikkeihin"],"heartButtonTextToggled":["Lisätty suosikkeihin"],"heartIconAriaLabel":["Sydämen ääriviivojen kuvake"],"heartIconAriaLabelToggled":["Täytetyn sydämen kuvake"],"listNameHelpText":[["length"]," / 40 merkkiä"],"listNameHelpTextErrorMinLength":["Syötä vähintään yksi merkki"],"listNameLabel":["Nimi"],"listNotFound":["Hakua vastaavia kansioita ei löytynyt"],"login":["Kirjaudu sisään"],"loginNudge":["Kirjaudu sisään, niin voit lisätä ilmoituksen suosikiksi. Näin löydät sen helposti uudelleen."],"newList":["Luo uusi kansio"],"notNow":["Ei nyt"],"searchLabel":["Hae kansiota"],"searchPlaceholder":["Kansion nimi"]}`),Ui=JSON.parse(`{"addInAList":["Legg i liste"],"backButton":["Tilbake"],"chooseList":["Legg til på favorittliste"],"createListError":["Listen kunne ikke opprettes. Prøv igjen senere."],"createNewList":["Lag ny liste"],"createNewWantedList":["Lag ny ønskeliste"],"duplicateListError":["Du har allerede en liste med dette navnet. Gi listen et annet navn."],"favoriteAddedErrorToast":["Kunne ikke legge til favoritten. Prøv på nytt senere."],"favoriteAddedToast":["Favoritten ble lagt til i ",["folder"]],"favoriteRemovedErrorToast":["Kunne ikke fjerne favoritten. Prøv på nytt senere."],"favoriteRemovedToast":["Fjernet favoritten fra ",["folder"]],"genericListErrorMessage":["Nå er det rusk i maskineriet. Prøv igjen om litt."],"genericListErrorTitle":["Usjda!"],"heartButtonText":["Legg til som favoritt"],"heartButtonTextToggled":["Lagt til som favoritt"],"heartIconAriaLabel":["Ikon med hjerteomriss"],"heartIconAriaLabelToggled":["Ikon med fylt hjerte"],"listNameHelpText":[["length"]," / 40 tegn"],"listNameHelpTextErrorMinLength":["Skriv minst ett tegn"],"listNameLabel":["Gi listen et navn"],"listNotFound":["Fant ingen lister som svarer til søket ditt :("],"login":["Logg inn"],"loginNudge":["Logg inn for å legge annonsen i dine favorittlister. Da kan du lett finne de igjen senere, uansett hvor du er."],"newList":["Ny liste"],"notNow":["Ikke nå"],"searchLabel":["Søk etter en liste"],"searchPlaceholder":["Navn på en liste"]}`),Wi=JSON.parse(`{"addInAList":["Lägg till i lista"],"backButton":["Tillbaka"],"chooseList":["Lägg till i en favoritlista"],"createListError":["Listan kunde inte skapas. Försök igen sen
12are."],"createNewList":["Skapa ny lista"],"createNewWantedList":["Skapa ny önskelista"],"duplicateListError":["Du har redan en lista med det här namnet. Välj ett annat namn."],"favoriteAddedErrorToast":["Det gick inte att lägga till favoriten. Försök igen senare."],"favoriteAddedToast":["Favorit lades till i ",["folder"]],"favoriteRemovedErrorToast":["Det gick inte att ta bort favoriten. Försök igen senare."],"favoriteRemovedToast":["Favorit borttagen från ",["folder"]],"genericListErrorMessage":["Gångjärnen behöver smörjas. Försök igen om en stund."],"genericListErrorTitle":["Hoppsan!"],"heartButtonText":["Lägg till i favoriter"],"heartButtonTextToggled":["Tillagd i favoriter"],"heartIconAriaLabel":["Ikon med siluett av ett hjärta"],"heartIconAriaLabelToggled":["Ikon med ett ifyllt hjärta"],"listNameHelpText":[["length"]," / 40 tecken"],"listNameHelpTextErrorMinLength":["Skriv minst ett tecken"],"listNameLabel":["Ge listan ett namn"],"listNotFound":["Det fanns inga listor som matchade din sökning :("],"login":["Logga in"],"loginNudge":["Logga in för att lägga till listan i dina favoriter så att du enkelt hittar den igen, var du än är."],"newList":["Ny lista"],"notNow":["Inte nu"],"searchLabel":["Sök efter en lista"],"searchPlaceholder":["Namn på en lista"]}`),Gi=e=>s.createElement(`svg`,Ni({"aria-hidden":`true`,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,fill:`none`,viewBox:`0 0 24 24`},e),s.createElement(`path`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5,d:`M15.75 18.75 8.897 7.12a.75.75 0 0 0-1.294 0L.75 18.75zm0 0h7.5l-5.116-8.632a.75.75 0 0 0-1.29 0l-3.1 5.23M4.72 12h7.06m5.47-7.125a1.875 1.875 0 1 1-3.75 0 1.875 1.875 0 0 1 3.75 0`})),Ki=e=>s.createElement(`svg`,{"aria-label":e.ariaLabel,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,fill:`none`,viewBox:`0 0 16 16`},s.createElement(`path`,{fill:e.fill||`none`,stroke:e.stroke||`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5,d:`M8.002 14.5 2.035 7.892a3.888 3.888 0 0 1-.99-2.057 3.93 3.93 0 0 1 .328-2.267v0A3.528 3.528 0 0 1 2.415 2.23a3.425 3.425 0 0 1 1.532-.682 3.39 3.39 0 0 1 1.667.131 3.454 3.454 0 0 1 1.412.914l.976 1.035.974-1.034c.39-.418.875-.731 1.412-.913a3.39 3.39 0 0 1 1.665-.131 3.43 3.43 0 0 1 1.532.681c.448.352.806.81 1.041 1.336v0c.332.704.447 1.494.329 2.267a3.885 3.885 0 0 1-.99 2.056L8.002 14.5Z`})),qi=l((e,t)=>{var{className:n,onClick:r,toggled:i,variant:a,numFavs:o}=e,c={},l={},u=`inp-favorite-heart inline-flex items-center justify-center ${i?`s-text-link`:``} ${n??``}`,d={"--w-c-button-padding-x":`10px`,"--w-c-button-padding-y":`10px`},f={"--w-c-button-padding-y":`12px`};switch(a){case`heart`:c={variant:`pill`,className:u,style:d};break;case`heart-blue`:c={variant:`pill`,className:u,style:d},l={stroke:`var(--w-s-color-icon-primary)`};break;case`heart-on-image`:c={variant:`pill`,className:u,style:d},l={stroke:`var(--w-s-color-icon-inverted)`,fill:`var(--w-s-color-icon-subtle)`};break;case`button`:c={variant:`utilityQuiet`,className:u,style:f};break;case`button-with-text`:c={variant:`utilityQuiet`,className:`${u} whitespace-nowrap`,style:f};break;case`button-on-image`:c={variant:`utilityQuiet`,className:`${u} whitespace-nowrap shadow-s`,style:f}}return l=Fi(Fi({},l),{},{ariaLabel:i?Q.t({id:`heartIconAriaLabelToggled`,message:`Icon of a filled heart`}):Q.t({id:`heartIconAriaLabel`,message:`Icon of the outline of a heart`})}),i&&(l.fill=`var(--w-s-color-icon-primary)`,l.stroke=`var(--w-s-color-icon-inverted)`),s.createElement(Y,Ni({"aria-haspopup":`dialog`,"aria-pressed":i,onClick:r,ref:t},c),o>0?s.createElement(`span`,{className:`pl-4`,style:{order:2}},o):null,s.createElement(`span`,{className:`ml-14 ${a===`button-with-text`?``:`sr-only`}`,style:{order:1}},i?Q.t({id:`heartButtonTextToggled`}):Q.t({id:`heartButtonText`})),s.createElement(Ki,l))}),Ji=class extends Error{constructor(e,t){super(e),Mi(this,`isDueToConflict`,void 0),this.name=`CreateFolderError`,this.isDueToConflict=t}},Yi=class extends Error{constructor(e){super(e),this.name=`AddFavoriteError`}}
12,Xi=class extends Error{constructor(e){super(e),this.name=`RemoveFavoriteError`}},Zi=function(){var e=$(function*(e){var{api:t,folderId:n,itemId:r,itemType:i}=e;try{var a=yield t.addToFolder(i,r,n);if(a.status!==201)return{ok:!1,error:new Yi(`Could not add item ${r} to folder ${n}. Status code: ${a.status}.`)};var o={type:`Click`,intent:`Save`,name:`New favorite`,object:{id:`favoritelist:${n}`,type:`UIElement`,elementType:`Popup`,name:`Favorite List`,items:[{type:`ClassifiedAd`,id:i===`Hotel`?`hotel:${r}`:`${r}`,contentId:`${r}`,name:`n/a`,category:`n/a`}]},target:{id:i===`Hotel`?`classified:hotel:${r}`:`classified:${r}`,type:`SavedList`,name:`Favorite list`}};return _.trackEvent(o),{ok:!0,value:void 0}}catch{return{ok:!1,error:new Yi(`Unknown error occurred`)}}});return function(t){return e.apply(this,arguments)}}(),Qi=function(){var e=$(function*(e){var{api:t,folderId:n,itemId:r,itemType:i}=e;try{var a=yield t.removeFromFolder(i,r,n);if(a.status!==204)return{ok:!1,error:new Xi(`Could not remove item ${r} from folder ${n}. Status code: ${a.status}.`)};var o={type:`Click`,intent:`Edit`,name:`New favorite`,object:{id:`favoritelist:${n}`,type:`UIElement`,elementType:`Button`,name:`Favorite List`,items:[{type:`ClassifiedAd`,id:i===`Hotel`?`hotel:${r}`:`${r}`,contentId:`${r}`,name:`n/a`,category:`n/a`}]},target:{id:i===`Hotel`?`classified:hotel:${r}`:`classified:${r}`,type:`FavoriteItem`,name:`Classified Ad`}};return _.trackEvent(o),{ok:!0,value:void 0}}catch{return{ok:!1,error:new Xi(`Unknown error occurred`)}}});return function(t){return e.apply(this,arguments)}}
12(),$i=function(){var e=$(function*(e){var{api:t,folderName:n}=e;try{var r=yield t.createFolder(n);if(!r.ok)return{ok:!1,error:new Ji(`${r.status}`,r.status===409)};var{folderid:i}=yield r.json(),a={type:`Click`,intent:`Create`,name:`New favorite list`,object:{type:`UIElement`,id:`favoritelist:${i}`,elementType:`Popup`},target:{id:`favoritelist:${i}`,type:`SavedList`,name:`Favorite list`}};return _.trackEvent(a),{ok:!0,value:i}}catch{return{ok:!1,error:new Ji(`Unknown error occurred`,!1)}}});return function(t){return e.apply(this,arguments)}}(),ea=l((e,t)=>{var{adExists:n,itemType:r,itemId:i,api:a,closeCallback:o,folder:c,handleError:l}=e;function u(){return d.apply(this,arguments)}function d(){return d=$(function*(){l(``),n?yield m():yield f()}),d.apply(this,arguments)}function f(){return p.apply(this,arguments)}function p(){return p=$(function*(){var e=yield Zi({api:a,itemType:r,itemId:i,folderId:c.folderid});e.ok?(b(Q.t({id:`favoriteAddedToast`,values:{folder:c.name}}),{type:`success`}),o()):(console.error(e.error),l(Q.t({id:`favoriteAddedErrorToast`})))}),p.apply(this,arguments)}function m(){return h.apply(this,arguments)}function h(){return h=$(function*(){var e=yield Qi({api:a,itemType:r,itemId:i,folderId:c.folderid});e.ok?(b(Q.t({id:`favoriteRemovedToast`,values:{folder:c.name}}),{type:`success`}),o()):(console.error(e.error),l(Q.t({id:`favoriteRemovedErrorToast`})))}),h.apply(this,arguments)}return s.createElement(wi,{selected:n,clickable:!0,onClick:u},s.createElement(`div`,{className:`grid grid-cols-4 md:grid-cols-3 flex-row`},c.image?s.createElement(`img`,{style:{aspectRatio:`1/1`},className:`w-full rounded-l-8 object-cover`,src:c.image,alt:`Description`}):s.createElement(Gi,{className:`w-full rounded-l-8 p-24 h-full image-aspect object-cover s-icon-subtle s-bg-subtle`}),s.createElement(`div`,{className:`col-span-2 p-16`},s.createElement(`p`,{className:`text-s text-left text-ellipsis line-clamp-2`},c.name.trim()))))});function ta(e){var{currentPage:t,totalPages:n=0,setCurrentPage:r}=e,i=s.useCallback(e=>{e.preventDefault();var t=Number(e.detail.clickedPage);if(t){var n={object:{type:`Listing`,layout:`List`,pageNumber:t}};_.trackPageView(n),r(t)}},[r]);return!n||n<=1?null:s.createElement(Ei,{className:`pt-8 pb-4`,baseUrl:`#`,currentPageNumber:t,pages:n,onPageClick:i})}var na=e=>{var{onSearch:t,initialFocusRef:n}=e;return s.createElement(Ai,{className:`block w-full`,ref:n,label:Q.t({id:`searchLabel`}),type:`search`,placeholder:Q.t({id:`searchPlaceholder`}),onInput:e=>t(e.target.value)},s.createElement(Oi,{slot:`suffix`,icon:`Search`}))},ra=e=>{var{pageSize:t,folders:n,searchQuery:r,specialButtons:i}=e,[a,o]=g(1),s=m(()=>({totalPages:Math.ceil((n.length+i)/t),startIndex:(a-1)*t-(a>1?i:0),endIndex:Math.min(a*t-1-i,n.length-1)}),[a,n.length,t,i]),c=m(()=>n.filter((e,t)=>t>=s.startIndex&&t<=s.endIndex),[n,s.endIndex,s.startIndex]);return f(()=>{(r||n.length)&&o(1)},[r,n.length]),{pagination:s,paginatedFolders:c,currentPage:a,setCurrentPage:o}},ia=e=>{var{items:t}=e,[n,r]=g(``);return{searchQuery:n,setSearchQuery:r,filteredFavoriteLists:m(()=>{var e=n.toLowerCase();return e?t.filter(t=>t.name.toLowerCase().includes(e)):t},[t,n])}},aa=l((e,t)=>{var{itemType:n,itemId:r,api:i,closeCallback:a,folders:o,foldersWithItem:c,setErrorMessage:l,toggleCreateNewFolder:u}=e;return s.createElement(`div`,{className:`grid md:grid-cols-2 gap-16 mt-24 pb-24`},o.map((e,o)=>s.createElement(`div`,{key:e.folderid},s.createElement(ea,{ref:!u&&o===0?t:void 0,adExists:!!c.folderIds&&c.folderIds.includes(e.folderid),itemType:n,itemId:r,api:i,closeCallback:a,folder:e,handleError:e=>l(e),key:e.folderid}))))}),oa=e=>{var{itemType:t,itemId:n,api:r,closeCallback:i,errorMessage:a,foldersWithItem:o,items:c,setErrorMessage:l,toggleCreateNewFolder:d,initialFocusRef:p,mobileFocusHeading:m}=e,{filteredFavoriteLists:_,searchQuery:v,setSearchQuery:y}=ia({items:c});function b(){y(``),d()}var{currentPage:x,paginatedFolders:S,pagination:C,setCurrentPage:w}=ra({folders:_,pageSize:6,searchQuery:v,specialButtons:0}),T=h(null),E=h(null),[D,O]=g(!1),k=u(e=>{w(e),O(!0)},[w]);return f(()=>{if(m){var e;(e=T.current)==null||e.focus()}},[m]),f(()=>{D&&x>=0&&E.current&&(E.current.focus(),O(!1))},[x,D]),[s.createElement(s.Fragment,null,s.createElement(`div`,{className:`grid grid-cols-5 items-end gap-16 mb-16 outline-none`,ref:T,tabIndex:m?0:-1},s.createElement(`div`,{className:`col-span-5 sm:col-span-3`},s.createElement(na,{onSearch:e=>y(e),initialFocusRef:p})),s.createElement(Y,{variant:`utility`,onClick:b,fullWidth:!0,className:`inp-favorite-create-new-list col-span-5 sm:col-span-2 sm:w-fit lt-sm:min-w-full`},Q.t({id:`createNewList`,message:`Create new list`}))),v!==``&&_.length<1?s.createElement(`p`,{className:`pt-32 px-8 text-center text-m font-bold`},Q.t({id:`listNotFound`,message:`Couldn't find any lists that match your search :(`})):s.createElement(`span`,null),s.createElement(Ci,{variant:`negative`,show:!!a},s.createElement(`p`,{className:`font-bold`},Q.t({id:`genericListErrorTitle`,message:`Oops!`})),s.createElement(`p`,null,a||Q.t({id:`genericListErrorMessage`,message:`There are gremlins about. Try again in a bit.`}))),s.createElement(aa,{ref:E,itemType:t,itemId:n,api:r,closeCallback:i,folders:S,foldersWithItem:o,setErrorMessage:l,toggleCreateNewFolder:x!==1||v?void 0:d}),s.createElement(ta,{currentPage:x,setCurrentPage:k,totalPages:C.totalPages})),null,Q.t({id:`chooseList`,message:`Add to a favourite list`})]},sa=(e,t)=>{var n=e=>(t,n)=>t.default?-1:n.default?1:e.includes(t.folderid)&&e.includes(n.folderid)?0:e.includes(t.folderid)?-1:+!!e.includes(n.folderid);if(e){var r=n(e);return t.sort(r)}return t},ca=e=>{var{api:t,itemType:n,itemId:r,userId:i,isOpen:a}=e,[o,s]=g([]),[c,l]=g({itemType:n,itemId:r,folderIds:[]}),[u,d]=g(``);return f(()=>{if(!a)return;var e=!1;function o(){return c.apply(this,arguments)}function c(){return c=$(function*(){try{var[i,a]=yield Promise.all([t.fetchFoldersForItem(n,r),t.fetchFolders().then(e=>e.json())]);e||(l(i),s(sa(i.folderIds,a)))}catch(e){console.error(e),d(Q.t({id:`genericListErrorMessage`}))}}),c.apply(this,arguments)}if(i)return o(),()=>{e=!0}},[n,r,t,i,a]),{items:o,errorMessage:u,foldersWithItem:c}},la=e=>{var{toggled:t,userId:n,itemType:r,itemId:i,isOpen:a}=e;f(()=>{if(a&&n){var e={type:`Click`,intent:t?`Delete`:`Create`,name:`New favorite`,object:{id:r===`Hotel`?`classified:hotel:${i}`:`classified:${i}`,type:`UIElement`,elementType:`Button`,items:[{type:`ClassifiedAd`,id:r===`Hotel`?`hotel:${i}`:`${i}`,contentId:`${i}`,name:`n/a`,category:`n/a`}]},target:{id:r===`Hotel`?`classified:hotel:${i}`:`classified:${i}`,type:`FavoriteItem`,name:`Classified Ad`}};_.trackEvent(e)}},[a])},ua=e=>{var{closeCallback:t,redirectUrl:n=window.location.href}=e,r=s.createElement(s.Fragment,null,s.createElement(Y,{variant:`quiet`,className:`inp-favorite-login-cancel mr-8`,onClick:t},Q.t({id:`notNow`,message:`Not now`})),s.createElement(Y,{className:`inp-favorite-login`,variant:`primary`,href:`/auth/login?redirectUrl=${encodeURIComponent(n)}`},Q.t({id:`login`,message:`Log in`})));return[s.createElement(`div`,null,s.createElement(`p`,null,Q.t({id:`loginNudge`,message:`Log in to add the listing to your favourites so you can easily find it again, no matter where you are.`}))),r,Q.t({id:`login`,message:`Log in`})]},da=e=>{var{api:t,itemType:n,itemId:r,setErrorMessage:i,closeCallback:a}=e,o=h(!1);
12return function(){var e=$(function*(e){if(!o.current){o.current=!0;try{var s=yield $i({api:t,folderName:e});if(!s.ok)throw s.error;var c=yield Zi({api:t,folderId:s.value,itemId:r,itemType:n});if(!c.ok)throw c.error;b(Q.t({id:`favoriteAddedToast`,values:{folder:e}}),{type:`success`}),a()}catch(e){switch(o.current=!1,!0){case e instanceof Ji:console.error(e),e.isDueToConflict?i(Q.t({id:`duplicateListError`})):i(Q.t({id:`createListError`}));break;case e instanceof Yi:console.error(e),b(Q.t({id:`favoriteAddedErrorToast`}),{type:`error`}),a();break;default:console.error(`Unknown error occurred`,e)}}}});return function(t){return e.apply(this,arguments)}}()},fa=l((e,t)=>{var{itemType:n,itemId:r,api:i,closeCallback:a,initialFocusRef:o}=e,[c,l]=g(``),[u,d]=g(``),f=da({api:i,itemType:n,itemId:r,setErrorMessage:d,closeCallback:a});function m(){return h.apply(this,arguments)}function h(){return h=$(function*(){if(!c.trim()){o&&o.current&&o.current.focus(),v(!0);return}return f(c)}),h.apply(this,arguments)}p(t,()=>({submit:()=>m()}));var[_,v]=g(!1),y=_&&c.trim().length<1?Q.t({id:`listNameHelpTextErrorMinLength`,message:`Enter at least one character`}):Q.t({id:`listNameHelpText`,message:`{length} / 40 characters`,values:{length:c.length}}),b=s.createElement(Ai,{invalid:_&&c.trim().length<1,helpText:y,label:Q.t({id:`listNameLabel`,message:`Give the list a name`}),minLength:1,maxLength:40,onInput:e=>l(e.target.value),ref:o,required:!0,value:c});return s.createElement(`form`,{className:`pb-8`,onSubmit:e=>{e.preventDefault(),m()}},b,u&&s.createElement(`p`,{className:`s-text-negative`,role:`alert`},u))}),pa=e=>{var{itemType:t,itemId:n,api:r,initialFocusRef:i,closeCallback:a,onCancel:o,onSubmit:c}=e,l=s.createElement(s.Fragment,null,s.createElement(Y,{variant:`quiet`,onClick:o,className:`inp-favorite-new-folder-cancel mr-12`},Q.t({id:`backButton`,message:`Back`})),s.createElement(Y,{className:`inp-favorite-new-folder-submit`,variant:`primary`,onClick:c},Q.t({id:`addInAList`,message:`Add to list`})));return[s.createElement(s.Fragment,null,s.createElement(fa,{itemType:t,itemId:n,api:r,initialFocusRef:i,closeCallback:a,ref:e.ref})),l,Q.t({id:`newList`,message:`New list`})]},ma=typeof window<`u`,ha=e=>{var{itemType:t,itemId:n,api:r,setOpen:i,isOpen:a,redirectUrl:o,restoreFocus:c,toggled:l,userId:d,isMobile:f}=e;la({toggled:l,userId:d,itemType:t,itemId:n,isOpen:a});var[p,m]=g(!1),_=u(()=>m(e=>!e),[]),[v,y]=g(null),{items:b,errorMessage:x,foldersWithItem:S}=ca({api:r,itemType:t,itemId:n,userId:d,isOpen:a}),C=h(null),w=h(null),T=h(null),E=u(()=>{y(``),i(!1),m(!1),c()},[i,c]),D=v||x,O=ua({closeCallback:E,redirectUrl:o}),k=pa({itemType:t,itemId:n,api:r,initialFocusRef:T,closeCallback:E,ref:C,onCancel:_,onSubmit:()=>C.current.submit()}),A=oa({itemType:t,itemId:n,api:r,initialFocusRef:w,closeCallback:E,errorMessage:D,foldersWithItem:S,items:b,setErrorMessage:y,toggleCreateNewFolder:_,mobileFocusHeading:f&&a}),[j,M,N]=d?p?k:A:O,P=ma?window.innerWidth>479:0,F={};return!M&&!P&&(F[`--w-c-modal-padding-bottom`]=`env(safe-area-inset-bottom, 0px)`),s.createElement(xi,{show:a||void 0,onhidden:E,key:`favorite-modal`,style:F},s.createElement(yi,{slot:`header`,title:N}),s.createElement(Si,{className:`pb-8`},j),M?s.createElement(_i,{slot:`footer`},M):null)},ga=[`en`,`nb`,`fi`,`da`,`sv`],_a=`en`,va=()=>{var e;switch({}.NMP_BRAND){case`FINN`:e=`nb`;break;case`TORI`:e=`fi`;break;case`DBA`:e=`da`;break;default:e=`en`}return e},ya=()=>{var e,t=(e=document)==null||(e=e.location)==null?void 0:e.hostname;return t.includes(`finn`)?`nb`:t.includes(`tori`)?`fi`:t.includes(`dba`)?`da`:_a},ba=e=>ga.find(t=>e===t||e.toLowerCase().includes(t))||ya();function xa(){if(typeof window>`u`)return ba(va());try{var e,t=(e=document)==null||(e=e.documentElement)==null?void 0:e.lang,n=ya();return ga.includes(t)?ba(t??n):(console.warn(`Unsupported locale set in html lang tag, falling back to detection by hostname`),ba(n))}catch(e){return console.warn(`could not detect locale, falling back to source locale`,e),_a}}var Sa=(e,t,n,r,i,a)=>e===`nb`?n:e===`fi`?r:e===`da`?i:e===`sv`?a:t,Ca=(e,t)=>{var{enMessages:n,nbMessages:r,fiMessages:i,daMessages:a,svMessages:o}=e,s=t??xa(),c=Sa(s,n,r,i,a,o);Q.load(s,c),Q.activate(s)},wa=[`redirectUrl`],Ta;function Ea(e){return Ta||=new Mr(e.userId||``,void 0,void 0,3e5,e.fetch,e.baseUri),Ta}function Da(e){var{redirectUrl:t}=e,n=Ii(e,wa),r=Ea(n),{userId:i}=n;return l((e,a)=>{var{buttonClass:o,itemType:c,itemId:l,redirectUrl:d=t,renderNumFavs:p,variant:m,isMobile:_,locale:y}=e,[b,x]=g(!1),[S,C]=g(e.toggled??!1),[w,T]=g(e.isOpen??!1),[E,D]=g(e.isOpen??!1),[O,k]=g(0),A=h(null);Ca({enMessages:Vi,nbMessages:Ui,fiMessages:Hi,daMessages:Bi,svMe
12ssages:Wi},y),f(()=>{if(i){var e=r.getFavoriteState(c,l,e=>C(e));if(e)return()=>e()}},[c,l]),f(()=>{if(p){var e=r.subscribeToRecount(c,l,k);if(e)return()=>e()}},[c,l,p]),f(()=>{x(!0)},[]);var j=u(()=>{setTimeout(()=>{A.current&&document.activeElement!==A.current&&(Br(A.current,{block:`center`,inline:`center`,scrollMode:`if-needed`}),A.current.focus())},0)},[]),M=u(()=>{D(!0),T(!0)},[]),N={itemType:c,itemId:l,api:r,isOpen:w,setOpen:T,redirectUrl:d,restoreFocus:j,toggled:S,userId:i,isMobile:_};return n.renderServerSide||b?s.createElement(s.Fragment,null,s.createElement(qi,{className:o,numFavs:O,onClick:M,ref:e=>{A.current=e,a&&(typeof a==`function`?a(e):a.current=e)},toggled:S,variant:m}),b&&E?v.createPortal(s.createElement(ha,N),n.modalAttach||document.body):``):s.createElement(`span`,null)})}var Oa=c(void 0);function ka({favoriteBaseUrl:e,loginId:t,children:n}){let r=m(()=>({favoriteBaseUrl:e,loginId:t}),[e,t]);return(0,U.jsx)(Oa.Provider,{value:r,children:n})}function Aa(){let e=d(Oa);if(!e)throw Error(`useFavorites must be used within a FavoritesProvider`);return e}var ja=({item:e,position:t=`top-2 right-2`})=>{let{locale:n}=o(),{loginId:r,favoriteBaseUrl:i}=Aa(),a=m(()=>Da({baseUri:i,renderServerSide:!0,userId:r}),[i,r]),s=parseInt(e.ad_id);return(0,U.jsx)(a,{variant:`heart-on-image`,itemType:`Ad`,locale:n,itemId:s,isMobile:!1,renderNumFavs:!1,buttonClass:`${t} absolute`})},Ma=({image:e})=>{let t=e.type===`logo`;return(0,U.jsx)(`div`,{className:t?`aspect-square overflow-hidden rounded-16 bg-[--w-white] border`:`aspect-square overflow-hidden rounded-16 s-bg active:s-bg-active`,children:(0,U.jsx)(`img`,{className:t?`p-16 w-full h-full object-center object-scale-down m-auto sm:h-auto absolute inset-0`:`w-full h-full object-center object-cover m-auto`,src:e.url,alt:e.description})})},Na=({location:e})=>e?(0,U.jsx)(`div`,{className:`text-s s-text-subtle break-words text-ellipsis line-clamp-2`,children:e}):null,Pa=({price:e,extraPrice:t})=>e?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{className:`font-bold s-text text-nowrap text-ellipsis`,children:e}),t?(0,U.jsx)(`div`,{className:`text-s s-text-subtle`,children:t}):null]}):null;function Fa(e){return e===`success`?`positive`:e===`error`?`negative`:e||`info`}var Ia=({badge:e,locale:t})=>{if(!e)return null;let n=Fa(e.style);return(0,U.jsxs)(`w-badge`,{variant:n,className:`min-h-24`,children:[e.icon&&(0,U.jsx)(`span`,{className:`flex mr-4`,children:(0,U.jsx)(`w-icon`,{name:e.icon,size:`small`,className:`w-16 h-16`,locale:t})}),(0,U.jsx)(U.Fragment,{children:e.label})]})},La=({headingId:e,title:t,style:n})=>(0,U.jsx)(`h3`,{id:e,className:`s-text text-body ${n===`company_first_title_bold`?`font-bold`:`font-normal`} mb-0 break-words text-ellipsis line-clamp-2`,children:t}),Ra=({id:e,item:t})=>{let{locale:n}=o(),r=_r(a(t.tracking,`View`)),s=`h-${e}`,c=lr(t)?`_blank`:void 0,l=lr(t)?`noopener noreferrer`:void 0,u=`price`in t?t.price:void 0,d=`extra_price`in t?t.extra_price:void 0,f=`company_name`in t?t.company_name:void 0,p=`location`in t?t.location:void 0;return(0,U.jsxs)(`article`,{ref:r,id:e,className:`relative`,"aria-labelledby":s,children:[(0,U.jsx)(`a`,{href:t.url,className:`rounded-16 block s-text hover:no-underline focus:no-underline focus:focusable focus:rounded-16`,target:c,rel:l,onClick:()=>{let e=a(t.tracking,`Click`);e&&i(e)},children:(0,U.jsx)(`div`,{className:`relative flex flex-col`,children:(0,U.jsxs)(`div`,{className:`flex flex-col`,children:[(0,U.jsx)(Ma,{image:t.image}),(0,U.jsx)(`div`,{className:`pt-8`,children:(0,U.jsx)(La,{headingId:s,title:t.title,style:`title_first_price_bold`})}),u?(0,U.jsx)(`div`,{className:`pt-4`,children:(0,U.jsx)(Pa,{price:u,extraPrice:d})}):null,f||p?(0,U.jsxs)(`div`,{className:`pt-8`,children:[(0,U.jsx)(yr,{companyName:f}),(0,U.jsx)(Na,{location:p})]}):null,t.badge?(0,U.jsx)(`div`,{className:`pt-8`,children:(0,U.jsx)(Ia,{badge:t.badge,locale:n})}):null]})})}),ar(t)&&(0,U.jsx)(ja,{item:t})]})},za=({id:e,item:t})=>{let{locale:n}=o(),r=_r(a(t.tracking,`View`)),s=`h-${e}`,c=lr(t)?`_blank`:void 0,l=lr(t)?`noopener noreferrer`:void 0,u=`price`in t?t.price:void 0,d=`extra_price`in t?t.extra_price:void 0,f=`company_name`in t?t.company_name:void 0,p=`location`in t?t.location:void 0;return(0,U.jsxs)(`article`,{ref:r,id:e,className:`relative`,"aria-labelledby":s,children:[(0,U.jsx)(`a`,{href:t.url,className:`rounded-16 block s-text hover:no-underline focus:no-underline focus:focusable focus:rounded-16`,target:c,rel:l,onClick:()=>{let e=a(t.tracking,`Click`);e&&i(e)},children:(0,U.jsx)(`div`,{className:`relative flex flex-col`,children:(0,U.jsxs)(`div`,{className:`flex flex-col`,children:[(0,U.jsx)(Ma,{image:t.image}),f?(0,U.jsx)(`div`,{className:`pt-8`,children:(0,U.jsx)(yr,{companyName:f})}):null,(0,U.jsx)(`div`,{className:`pt-4`,children:(0,U.jsx)(La,{headingId:s,title:t.title,style:`company_first_title_bold`})}),u?(0,U.jsx)(`div`,{className:`pt-4`,children:(0,U.jsx)(Pa,{price:u,extraPrice:d})}):null,p?(0,U.jsx)(`div`,{className:`pt-8`,children:(0,U.jsx)(Na,{location:p})}):null,t.badge?(0,U.jsx)(`div`,{className:`pt-8`,children:(0,U.jsx)(Ia,{badge:t.badge,locale:n})}):null]})})}),ar(t)&&(0,U.jsx)(ja,{item:t})]})};export{pr as a,mr as c,vr as i,gr as l,Ra as n,dr as o,ka as r,hr as s,za as t,fr as u};

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.