PageSourceSearch

https://mietzy.com/_next/static/chunks/2818-c1838265cbfda628.js

js mietzy.com collected 2026-10-05 07:33:15 UTC 26,144 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2818],{22818:(e,t,s)=>{s.d(t,{A:()=>v});var r=s(95155),a=s(12115),i=s(96808),n=s(36026),l=s(73013),o=s(51336),c=s(36337),d=s(67519),u=s(73133),m=s(77492),p=s(50445),h=s(55768),g=s(66825),f=s(18955),b=s(6970);let x=e=>e.address&&e.address.postalCode&&e.address.city?"".concat(e.address.postalCode," ").concat(e.address.city):e.locationString?e.locationString.split(",")[0]:"",v=e=>{var t,s,v,y,w;let{article:k,days:N=0,title:j,location:C,userLat:S,userLon:F,user:L,isHovered:B=!1,isEditMode:D=!1,onUnfavorite:P,isSelectable:I=!1,isSelected:M=!1,onSelect:E}=e,A=(0,f.c)("Search.card"),O=(0,b.Ym)(),R=(0,h.YL)(k,N),[W,q]=(0,a.useState)(!1),z=(0,a.useRef)(null),[_,T]=(0,a.useState)(!1),U=null!=(w=null==(t=k.reviewStats)?void 0:t.totalReviews)?w:0,H="number"==typeof(null==(s=k.reviewStats)?void 0:s.averageRating)?k.reviewStats.averageRating:null,G=new Intl.NumberFormat("de"===O?"de-DE":"en-GB",{minimumFractionDigits:1,maximumFractionDigits:1});(0,a.useEffect)(()=>{let e=()=>{if(z.current){let e=z.current;T(e.scrollWidth>e.offsetWidth||e.scrollHeight>e.offsetHeight||e.scrollWidth>e.clientWidth)}};return setTimeout(e,100),setTimeout(e,300),setTimeout(e,500),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[k.articleName]);let Y=null;S&&F&&k.location&&(Y=(e=>e<1?"".concat(Math.round(1e3*e),"m"):e<10?"".concat(e.toFixed(1),"km"):"".concat(Math.round(e),"km"))(((e,t,s,r)=>{let a=(s-e)*Math.PI/180,i=(r-t)*Math.PI/180,n=Math.sin(a/2)*Math.sin(a/2)+Math.cos(e*Math.PI/180)*Math.cos(s*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 2*Math.atan2(Math.sqrt(n),Math.sqrt(1-n))*6371})(S,F,k.location.latitude,k.location.longitude)));let $=D&&(null==(v=k.assistedImport)?void 0:v.ownerReviewRequired)?"/upload?articleId=".concat(k._id):(0,g.Jo)(k),J=(0,r.jsxs)(n.d,{className:"p-0 relative overflow-hidden aspect-[366/240] rounded-t-[30px] bg-gray-100 cursor-pointer",children:[(0,r.jsx)(i.A,{_source:{...k,imagesUrls:(null==(y=k.imagesUrls)?void 0:y.slice(0,1))||[]},favoriteButton:!D&&!I,editButton:D&&!I,onUnfavorite:P}),I&&(0,r.jsx)("div",{className:"absolute top-3 left-3 z-10",children:(0,r.jsx)("button",{type:"button","aria-pressed":M,"aria-label":A(M?"deselectItem":"selectItem"),className:"w-6 h-6 rounded border-2 flex items-center justify-center cursor-pointer transition-colors ".concat(M?"border-[#FF8B7C]":"bg-white border-gray-400 hover:border-gray-600"),style:M?{backgroundColor:"#FF8B7C"}:{},children:M&&(0,r.jsx)("svg",{className:"w-4 h-4 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})})})]}),V=(0,r.jsxs)(l.Z,{className:"w-full shadow-md hover:shadow-lg transition-all duration-200 rounded-[30px] ".concat(B?"shadow-xl":""),children:[I?J:(0,r.jsx)(m.N_,{href:$,children:J}),(0,r.jsxs)(o.U,{className:"p-4",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,r.jsxs)("div",{className:"flex gap-2",children:[("pickup"===k.shippingOption||"both"===k.shippingOption)&&(0,r.jsx)("div",{className:"px-2 py-0.5 rounded-[30px] text-xs font-medium",style:{backgroundColor:"rgba(199, 239, 224, 1)",color:"rgba(0, 0, 0, 0.7)",fontFamily:"Lato, sans-serif"},children:A("pickup")}),("shipping"===k.shippingOption||"both"===k.shippingOption)&&(0,r.jsx)("div",{className:"px-2 py-0.5 rounded-[30px] text-xs font-medium",style:{backgroundColor:"rgba(255, 201, 194, 1)",color:"rgba(0, 0, 0, 0.7)",fontFamily:"Lato, sans-serif"},children:A("shipping")})]}),U>0&&null!==H&&(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("span",{className:"text-sm font-medium",style:{fontFamily:"Lato, sans-serif",color:"rgba(0, 0, 0, 0.6)"},children:G.format(H)}),(0,r.jsx)(u.A,{className:"h-4 w-4 text-yellow-400"}),(0,r.jsxs)("span",{className:"text-sm font-medium",style:{fontFamily:"Lato, sans-serif",color:"rgba(0, 0, 0, 0.4)"},children:["(",U,")"]})]})]}),(0,r.jsxs)("div",{className:"flex justify-between items-start mb-3 gap-2",children:[(0,r.jsxs)("div",{className:"relative flex-1 min-w-0 group",onMouseEnter:()=>{q(!0)},onMouseLeave:()=>{q(!1)},children:[I?(0,r.jsx)("div",{ref:z,className:"font-bold text-xl lg:text-lg line-clamp-1 overflow-hidden text-ellipsis",style:{fontFamily:"Lato, sans-serif",lineHeight:"22px",color:"rgba(0, 0, 0, 1)"},children:k.articleName}):(0,r.jsx)(m.N_,{href:$,children:(0,r.jsx)("div",{ref:z,className:"font-bold text-xl lg:text-lg line-clamp-1 overflow-hidden text-ellipsis",style:{fontFamily:"Lato, sans-serif",lineHeight:"22px",color:"rgba(0, 0, 0, 1)"},children:k.articleName})}),W&&k.articleName.length>20&&(0,r.jsxs)("div",{className:"absolute left-0 top-full mt-1 px-3 py-2 bg-gray-800 text-white text-sm rounded-md shadow-lg z-50 pointer-events-none",style:{maxWidth:"300px",whiteSpace:"normal",wordBreak:"break-word"},children:[k.articleName,(0,r.jsx)("div",{className:"absolute bottom-full left-4 mb-[1px] w-0 h-0 border-l-[5px] border-l-transparent border-r-[5px] border-r-transparent border-b-[5px] border-b-gray-800"})]})]}),(0,r.jsx)("span",{className:"font-bold text-2xl lg:text-xl whitespace-nowrap flex-shrink-0",style:{fontFamily:"Lato, sans-serif",lineHeight:"22px",color:"rgba(0, 0, 0, 1)"},children:R.total>0?A(R.days>1?"total":"pricePerDay",{price:(0,p.$)(R.total,O)}):A("free")})]}),I?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[(0,r.jsx)(c.A,{className:"h-4 w-4 flex-shrink-0",style:{color:"rgba(0, 0, 0, 0.6)"}}),(0,r.jsx)("span",{className:"min-w-0 truncate whitespace-nowrap text-base font-medium",style:{fontFamily:"Lato, sans-serif",lineHeight:"22px",color:"rgba(0, 0, 0, 0.6)"},children:(null==L?void 0:L.business)?(null==L?void 0:L.companyName)||A("unknown"):"".concat((null==L?void 0:L.firstName)||A("unknown")," ").concat((null==L?void 0:L.lastName)||"")})]}),k.deposit>0&&(0,r.jsx)("span",{className:"text-sm font-medium whitespace-nowrap flex-shrink-0",style:{fontFamily:"Lato, sans-serif",color:"rgba(0, 0, 0, 0.4)"},children:A("deposit",{price:(0,p.$)(k.deposit,O)})})]}),(0,r.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[(0,r.jsx)(d.A,{className:"h-4 w-4 flex-shrink-0",style:{color:"rgba(0, 0, 0, 0.6)"}}),(0,r.jsxs)("span",{className:"min-w-0 truncate whitespace-nowrap text-base font-medium",style:{fontFamily:"Lato, sans-serif",lineHeight:"22px",color:"rgba(0, 0, 0, 0.6)"},children:[x(k),Y&&" (".concat(Y,")")]})]}),("shipping"===k.shippingOption||"both"===k.shippingOption)&&k.shippingCost&&k.shippingCost>0&&(0,r.jsx)("span",{className:"text-sm font-medium whitespace-nowrap flex-shrink-0",style:{fontFamily:"Lato, sans-serif",color:"rgba(0, 0, 0, 0.4)"},children:A("shippingCost",{price:(0,p.$)(k.shippingCost,O)})})]})]}):(0,r.jsxs)(m.N_,{href:$,children:[(0,r.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[(0,r.jsx)(c.A,{className:"h-4 w-4 flex-shrink-0",style:{color:"rgba(0, 0, 0, 0.6)"}}),(0,r.jsx)("span",{className:"min-w-0 truncate whitespace-nowrap text-base font-medium",style:{fontFamily:"Lato, sans-serif",lineHeight:"22px",color:"rgba(0, 0, 0, 0.6)"},children:(null==L?void 0:L.business)?(null==L?void 0:L.companyName)||A("unknown"):"".concat((null==L?void 0:L.firstName)||A("unknown")," ").concat((null==L?void 0:L.lastName)||"")})]}),k.deposit>0&&(0,r.jsx)("span",{className:"text-sm font-medium whitespace-nowrap flex-shrink-0",style:{fontFamily:"Lato, sans-serif",color:"rgba(0, 0, 0, 0.4)"},children:A("deposit",{price:(0,p.$)(k.deposit,O)})})]}),(0,r.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[(0,r.jsx)(d.A,{className:"h-4 w-4 flex-shrink-0",style:{color:"rgba(0, 0, 0, 0.6)"}}),(0,r.jsxs)("span",{className:"min-w-0 truncate whitespace-nowrap text-base font-medium",style:{fontFamily:"Lato, sans-serif",lineHeight:"22px",color:"rgba(0, 0, 0, 0.6)"},children:[x(k),Y&&" (".concat(Y,")")]})]}),("shipping"===k.shippingOption||"both"===k.shippingOption)&&k.shippingCost&&k.shippingCost>0&&(0,r.jsx)("span",{className:"text-sm font-medium whitespace-nowrap flex-shrink-0",style:{fontFamily:"Lato, sans-serif",color:"rgba(0, 0, 0, 0.4)"},children:A("shippingCost",{price:(0,p.$)(k.shippingCost,O)})})]})]})]})]});return I?(0,r.jsx)("div",{onClick:e=>{I&&(e.preventDefault(),e.stopPropagation(),null==E||E(k._id))},className:"cursor-pointer",children:V}):V}},48228:(e,t,s)=>{s.d(t,{default:()=>m});var r=s(95155),a=s(12115),i=s(59253),n=s(42821),l=s(13328),o=s(18720),c=s(51472),d=s(88597),u=s(18955);let m=e=>{let{_source:t,onUnfavorite:s}=e,m=(0,u.c)("Listing"),[p,h]=(0,a.useState)(!1);(0,n.YM)();let g=(0,i.getAuth)(),[f,b]=(0,l.hD)(g);(0,a.useEffect)(()=>{let e=Array.isArray(t.favorsByUsers)?t.favorsByUsers:[];f&&e.includes(f.uid)?h(!0):h(!1)},[f,t.favorsByUsers,t._id]);let x=async()=>{let e="https://mietzy-backend-813384333062.europe-west1.run.app";h(e=>!0!==e);let r=await fetch((p?"".concat(e,"/articles/unfavorite/"):"".concat(e,"/articles/favorite/"))+t._id,{method:"POST",body:JSON.stringify({articleId:t._id}),headers:{"Content-Type":"application/json",Authorization:"Bearer "+await (null==f?void 0:f.getIdToken())}});201!=r.status?(h(e=>!0!==e),o.oR.error(m("favouriteError"))):p&&s&&s(t._id),console.log(r.status),console.log("favorited REQUEST")};return b?(0,r.jsx)("div",{className:"backdrop-blur-sm rounded-full transition-colors",style:{width:"47px",height:"47px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.2)"},children:(0,r.jsx)(c.A,{className:"h-6 w-6 text-white",style:{strokeWidth:2.5}})}):(0,r.jsx)("div",{onClick:e=>{e.preventDefault(),e.stopPropagation(),x()},role:"button",tabIndex:0,"aria-label":p?m("removeFavourite"):m("addFavourite"),className:"backdrop-blur-sm rounded-full transition-colors cursor-pointer hover:opacity-80",style:{width:"47px",height:"47px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.2)"},children:p?(0,r.jsx)(d.A,{className:"h-6 w-6 text-red-500"}):(0,r.jsx)(c.A,{className:"h-6 w-6 text-white hover:text-red-500 transition-colors",style:{strokeWidth:2.5}})})}},50445:(e,t,s)=>{s.d(t,{$:()=>r});function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"de",s=e%1==0,r=t.toLowerCase().startsWith("en")?"en-GB":"de-DE";
1return s?e.toLocaleString(r,{minimumFractionDigits:0,maximumFractionDigits:0}):e.toLocaleString(r,{minimumFractionDigits:2,maximumFractionDigits:2})}},55768:(e,t,s)=>{s.d(t,{LV:()=>g,Un:()=>i,V6:()=>m,YL:()=>h,aI:()=>l,aQ:()=>n,aR:()=>c,j4:()=>o,v1:()=>p});class r extends Error{constructor(){super("No rental factor is available for this duration"),this.name="UnsupportedRentalDurationError"}}function a(e){var t,s;if(!Number.isFinite(e)||e<0)throw Error("Invalid rental factor pricing");let[r,a="0"]=String(e).split("e"),i=(null!=(s=null==(t=r.split(".")[1])?void 0:t.length)?s:0)-Number(a),n=BigInt(r.replace(".",""));return i>=0?[n,BigInt("1"+"0".repeat(i))]:[n*BigInt("1"+"0".repeat(-i)),BigInt(1)]}function i(e,t){return!e||Number.isInteger(t)&&t>=1&&e.tiers.some(e=>e.minDays<=t&&t<=e.maxDays)}function n(e,t){if(!Number.isSafeInteger(e.netDailyPriceCents)||e.netDailyPriceCents<0)throw Error("Invalid rental factor base price");if(!i(e,t))throw new r;let[s,n]=a(e.tiers.find(e=>e.minDays<=t&&t<=e.maxDays).factor),[l,o]=a(e.vatPercent),c=BigInt(e.netDailyPriceCents)*s*(BigInt(100)*o+l),d=n*BigInt(100)*o,u=(c*BigInt(2)+d)/(d*BigInt(2));if(u>BigInt(Number.MAX_SAFE_INTEGER))throw Error("Rental price exceeds supported range");return Number(u)/100}function l(e){return n({...e,tiers:[{minDays:1,maxDays:1,factor:1}]},1)}function o(e,t){if(!/^\d+(\.\d{1,2})?$/.test(t))return null;let[s,r=""]=t.split("."),a=Number(s+r.padEnd(2,"0"));return Number.isSafeInteger(a)?{...e,netDailyPriceCents:a}:null}function c(e){let t=e.map(e=>{let{days:t,percentage:s}=e;return{days:Number(t),percentage:Number(s)}});return t.some(e=>!Number.isFinite(e.days)||e.days<2||e.days>365||!Number.isFinite(e.percentage)||e.percentage<.01||e.percentage>100)||new Set(t.map(e=>e.days)).size!==t.length?null:t.sort((e,t)=>e.days-t.days)}function d(e,t){var s;let r=(null!=(s=e.discountRules)?s:[]).filter(e=>e.days<=Math.max(1,t)&&e.percentage>0&&e.percentage<=100).sort((e,t)=>t.days-e.days)[0];return r?Number((e.pricePerDay*(1-r.percentage/100)).toFixed(2)):null}function u(e,t){return t>=28&&e.pricePerTwentyEightDays?e.pricePerTwentyEightDays/28:t>=7&&e.pricePerSevenDays?e.pricePerSevenDays/7:t>=3&&e.pricePerThreeDays?e.pricePerThreeDays/3:e.pricePerDay}function m(e,t){var s;return e?e.rentalFactorPricing?Number((n(e.rentalFactorPricing,Math.max(1,t))/Math.max(1,t)).toFixed(2)):null!=(s=d(e,t))?s:Number(u(e,t).toFixed(2)):0}function p(e,t){var s;return e?e.rentalFactorPricing?n(e.rentalFactorPricing,Math.max(1,t)):Number(((null!=(s=d(e,t))?s:u(e,t))*t).toFixed(2)):0}function h(e){var t,s;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=Math.max(1,null!=(t=e.rentalDays)?t:r);return{days:a,total:null!=(s=e.displayPrice)?s:p(e,a)}}function g(e){var t;let s=[...new Set([1,3,7,28,...(null!=(t=e.discountRules)?t:[]).map(e=>e.days)])].sort((e,t)=>e-t);return s.map((t,r)=>({days:t,endDays:s[r+1]?s[r+1]-1:null,price:m(e,t)}))}},66825:(e,t,s)=>{s.d(t,{b0:()=>u,Jo:()=>d,B7:()=>m});var r=s(43300),a=s(26184),i=s(839);let n=JSON.parse('{"S":{"LZ":{"1":{"label":"Tools","subcategories":{"1":"Drills & screwdrivers","2":"Saws & routers","3":"Sanders & multi-tools","4":"Measuring tools & lasers","5":"Ladders & sack trucks","6":"Renovation equipment (e.g. dehumidifiers, floor sanders)","7":"Construction equipment","8":"Welding & soldering equipment","9":"Compressed-air tools","10":"Toolboxes & tool sets","11":"Other"}},"2":{"label":"Sport & activities","subcategories":{"1":"Bikes, e-bikes & accessories","2":"Winter sports (e.g. skiing, snowboarding, ice skating)","3":"Water sports (e.g. SUP, windsurfing)","4":"Climbing, hiking & mountaineering","5":"Skates, scooters & inline skates","6":"Ball & racket sports, golf","7":"Martial arts","8":"Gymnastics & fitness equipment","9":"Rehabilitation & massage equipment","10":"Other"}},"3":{"label":"Technology","subcategories":{"1":"Projectors, screens & displays","2":"Cameras, lenses & photography accessories","3":"Microphones, audio recording & karaoke","4":"Audio, speakers & DJ equipment","5":"Event technology (e.g. fog machines, strobe lights, photo booths)","6":"Consoles & VR headsets","7":"Drones","8":"Printers, scanners, plotters & 3D printing","9":"Decorations & string lights","10":"Laptops & tablets","11":"Other"}},"4":{"label":"Kitchen & home","subcategories":{"1":"Kitchen appliances (e.g. blenders, raclette grills, dehydrators)","2":"Cleaning equipment & vacuum cleaners","3":"Sewing, embroidery, knitting & crochet","4":"Steam irons & ironing equipment","5":"Fans & portable air conditioners","6":"Cooling appliances & drinks dispensers","7":"Event & engagement decorations","8":"Chairs, tables & furniture","9":"Cookware, crockery & cutlery","10":"Other"}},"5":{"label":"Garden","subcategories":{"1":"Lawn mowers, trimmers & scarifiers","2":"Tree & hedge care tools","3":"Soil cultivation equipment","4":"Garden hand tools","5":"Shredders & mulchers","6":"Leaf blowers & vacuums","7":"Pressure washers & irrigation","8":"Barbecues & campfires","9":"Beer-garden sets, garden furniture & gazebos","10":"Wheelbarrows & hoists","11":"Other"}},"6":{"label":"Travel & outdoors","subcategories":{"1":"Tents & tarps","2":"Sleeping bags, mats & camp beds","3":"Hammocks & mosquito nets","4":"Rucksacks & trekking bags","5":"Camping furniture","6":"Camping tools & navigation","7":"Camping stoves & cookware","8":"Power & lighting (e.g. power banks, head torches)","9":"Suitcases & trolleys","10":"Cool boxes & bags","11":"Other"}},"7":{"label":"Art & music","subcategories":{"1":"String instruments (e.g. guitars, basses, violins)","2":"Percussion instruments (e.g. drums)","3":"Wind instruments (e.g. saxophones)","4":"Keyboard instruments (e.g. digital pianos, synthesisers)","5":"Amplifiers","6":"Instrument accessories (e.g. music stands, effects pedals)","7":"Model-making & craft equipment","8":"Easels, airbrushes & painting accessories","9":"Pottery & ceramics","10":"Books","11":"Photography props","12":"Other"}},"8":{"label":"Vehicle accessories","subcategories":{"1":"Roof boxes & roof racks","2":"Bike racks","3":"Child car seats & infant carriers","4":"Cargo trailers (with self-drive hire insurance)","5":"Caravans (with self-drive hire insurance)","6":"Roof tents","7":"Jacks & vehicle tools","8":"Transport accessories (e.g. straps, loading ramps)","9":"Snow chains & off-road equipment","10":"Other"}},"9":{"label":"Fashion & beauty","subcategories":{"1":"Wedding & bridal dresses","2":"Ball gowns, evening wear & occasion wear","3":"Suits & dinner jackets","4":"Maternity wear","5":"Dirndls & traditional clothing","6":"Costumes","7":"Outdoor & ski clothing","8":"Jewellery & accessories","9":"Children\'s occasion wear","10":"Wellness equipment (e.g. massage cushions, nail lamps)","11":"Hair-styling equipment","12":"Wigs","13":"Other"}},"10":{"label":"Games","subcategories":{"1":"Board games","2":"Games tables (e.g. table football, air hockey, beer pong)","3":"Billiards & darts","4":"Outdoor games (e.g. kubb, cornhole, frisbee)","5":"Arcade games","6":"Video games","7":"Casino equipment (e.g. roulette sets, poker cases)","8":"Escape, puzzle & quiz games","9":"Other"}},"11":{"label":"Family & pets","subcategories":{"1":"Pushchairs","2":"Children\'s bike trailers","3":"Children\'s travel cots & accessories","4":"Baby & children\'s clothing","5":"Baby carriers & child carriers","6":"Bouncy castles & play equipment (e.g. ball pits, pools)","7":"Baby monitors, stair gates & safety equipment","8":"Pet carriers & trailers","9":"Pet-care equipment (e.g. UV lights, clippers)","10":"Riding & equestrian equipment","11":"Other"}},"12":{"label":"Other","subcategories":{}}}}}');function l(e){return(e||"artikel").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/&/g," und ").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,"-")||"artikel"}function o(e){var t,s,r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"de",l=e.articleCategory,o=e.articleSubcategory,c=Array.isArray(l)?null==(t=l[0])?void 0:t.toString():null==l?void 0:l.toString(),d=Array.isArray(o)?null==(s=o[0])?void 0:s.toString():null==o?void 0:o.toString(),u=i.L.find(e=>e.value===c),m=null==u||null==(r=u.subcategories)?void 0:r.find(e=>e.value===d),p=n.S.LZ,h=c?p[c]:void 0;return{categoryLabel:"en"===a?null==h?void 0:h.label:null==u?void 0:u.label,categoryValue:c,subcategoryLabel:"en"===a&&d?null==h?void 0:h.subcategories[d]:null==m?void 0:m.label,subcategoryValue:d}}function c(e){var t,s,r,a;let i=null==(s=e.address)||null==(t=s.city)?void 0:t.trim();if(i)return i;let n=null==(a=e.locationString)||null==(r=a.split(",")[0])?void 0:r.trim();if(n)return n.replace(/^\d{4,5}\s+/,"").trim()||n}function d(e,t){if("string"==typeof e)return"/artikel/".concat(encodeURIComponent(e),"/").concat(l(t));let s=l(c(e)||"deutschland"),{categorySlug:r,subcategorySlug:i}=function(e){let{categoryLabel:t,categoryValue:s,subcategoryLabel:r,subcategoryValue:i}=o(e),n=(0,a.cI)(s),c=(0,a.Cn)(s,i);return{categorySlug:(null==n?void 0:n.slug)||l(t||"artikel"),subcategorySlug:(null==c?void 0:c.slug)||l(r||"angebote")}}(e),n=l(e.articleName);return"/mieten/".concat(s,"/").concat(r,"/").concat(i,"/").concat(n,"/").concat(encodeURIComponent(e._id))}function u(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"de",a=d(e,t);return"de"===s?new URL(a,r.W6).toString():new URL(function(e,t){let s=e.startsWith("/")?e:"/".concat(e);return"de"===t?s:"/"===s?"/en/":"/en".concat(s)}(a,s),r.W6).toString()}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"de",r=c(e),{categoryLabel:a}
1=o(e,s),i=[r,a].filter(Boolean).join(", "),n=t>0?"de"===s?"Bild ".concat(t+1,": "):"Image ".concat(t+1,": "):"";return"".concat(n).concat(e.articleName).concat(i?" in ".concat(i):"")}},96808:(e,t,s)=>{s.d(t,{ImageCarouselWithoutFavButton:()=>y,A:()=>v});var r=s(95155),a=s(28895),i=s(88407),n=s(74891),l=s(84890),o=s(12115),c=s(48228),d=s(59253),u=s(42821),m=s(13328),p=s(38688),h=s(77492),g=s(18955);let f=e=>{let{_source:t}=e,s=(0,g.c)("Listing");(0,u.YM)();let a=(0,d.getAuth)(),[i,n]=(0,m.hD)(a),l=(0,h.rd)();(0,o.useEffect)(()=>{},[t._id]);let c=async()=>{l.push("/upload?articleId=".concat(t._id))};return n?(0,r.jsx)(r.Fragment,{}):i?t.createdBy===(null==i?void 0:i.uid)?(0,r.jsx)(p.A,{onClick:e=>{e.preventDefault(),e.stopPropagation(),c()},"aria-label":s("editArticle"),className:"h-6 w-6 text-white cursor-pointer",style:{strokeWidth:2}}):(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("p",{})};var b=s(66825),x=s(6970);let v=e=>{let{_source:t,favoriteButton:s=!0,editButton:a=!1,onUnfavorite:i,showOverlay:n=!1}=e,l=(0,x.Ym)();return(0,r.jsxs)("div",{className:"relative h-full w-full",children:[(0,r.jsx)(w,{images:t.imagesUrls,articleId:t._id,articleName:(0,b.B7)(t,0,l),className:"h-full"}),n&&(0,r.jsxs)("div",{className:"absolute inset-0 pointer-events-none",children:[(0,r.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-1/3 bg-gradient-to-t from-black/20 to-transparent"}),(0,r.jsx)("div",{className:"absolute top-3 left-3 z-20",children:(0,r.jsxs)("div",{className:"bg-black/60 backdrop-blur-sm rounded-full px-3 py-1 flex items-center gap-1",children:[(0,r.jsx)("svg",{className:"w-4 h-4 text-yellow-400",fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})}),(0,r.jsx)("span",{className:"text-white text-xs font-semibold",children:"Trending"})]})})]}),s&&!a&&(0,r.jsx)("div",{className:"absolute top-3 right-3 z-20",children:(0,r.jsx)(c.default,{_source:t,onUnfavorite:i})}),a&&(0,r.jsx)("div",{className:"absolute top-3 right-3 z-20",children:(0,r.jsx)("div",{className:"bg-black/20 backdrop-blur-sm rounded-full hover:bg-black/30 transition-colors cursor-pointer",style:{width:"47px",height:"47px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.2)"},children:(0,r.jsx)(f,{_source:t})})})]})},y=e=>{let{_source:t}=e,s=(0,x.Ym)();return(0,r.jsx)(w,{images:t.imagesUrls,articleId:t._id,articleName:(0,b.B7)(t,0,s),className:"rounded-xl h-full overflow-hidden",isDetailPage:!0})},w=e=>{let{images:t,articleId:s,articleName:c,className:d="",isDetailPage:u=!1}=e,[m,p]=(0,o.useState)(!1),[h,g]=(0,o.useState)(!1),[f,b]=(0,o.useState)(0);(0,o.useEffect)(()=>{if(!u||t.length<=1)return;let e=e=>{"ArrowLeft"===e.key?v():"ArrowRight"===e.key&&x()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,u]);let x=()=>{b(e=>(e+1)%t.length),p(!1)},v=()=>{b(e=>(e-1+t.length)%t.length),p(!1)},y=t&&t.length>0&&!m?t[f]:"/svg/placeholder-image.svg";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"relative h-full w-full ".concat(d),children:(0,r.jsxs)("div",{className:"w-full h-full relative",children:[(0,r.jsx)("img",{src:y,alt:c,className:"absolute inset-0 w-full h-full object-cover cursor-pointer",loading:"lazy",onClick:e=>{u&&(e.preventDefault(),e.stopPropagation(),g(!0))},onError:()=>{p(!0)}}),u&&t&&t.length>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),v()},className:"absolute left-4 top-1/2 -translate-y-1/2 bg-black/50 hover:bg-black/70 text-white rounded-full p-3 transition-all z-10 backdrop-blur-sm","aria-label":"Previous image",children:(0,r.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),x()},className:"absolute right-4 top-1/2 -translate-y-1/2 bg-black/50 hover:bg-black/70 text-white rounded-full p-3 transition-all z-10 backdrop-blur-sm","aria-label":"Next image",children:(0,r.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}),(0,r.jsx)("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex items-center gap-2 z-10",children:t.map((e,t)=>(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),b(t),p(!1)},className:"transition-all rounded-full ".concat(t===f?"bg-white w-8 h-2":"bg-white/50 hover:bg-white/75 w-2 h-2"),"aria-label":"Go to image ".concat(t+1)},t))}),(0,r.jsxs)("div",{className:"absolute top-4 left-4 bg-black/50 backdrop-blur-sm text-white px-3 py-1 rounded-full text-sm z-10",children:[f+1," / ",t.length]})]})]})}),(0,r.jsx)(a.Y,{isOpen:h,onClose:()=>g(!1),size:"full",scrollBehavior:"inside",backdrop:"blur",classNames:{wrapper:"z-[999]",backdrop:"bg-black/80 backdrop-blur-md",base:"bg-transparent shadow-none",body:"p-0"},children:(0,r.jsx)(i.g,{className:"bg-transparent shadow-none",children:(0,r.jsx)(n.h,{className:"flex items-center justify-center p-4 h-screen curs
1or-pointer",onClick:()=>g(!1),children:(0,r.jsx)(l.W,{src:y,alt:c,className:"max-w-[95vw] max-h-[95vh] object-contain cursor-pointer",onClick:()=>g(!1)})})})})]})}}}]);

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.