PageSourceSearch

https://landfolk.com/_next/static/chunks/pages/my/bookings/[bookingShortId]/feedback-cff1212e3ac373d5.js

js landfolk.com collected 2026-09-24 22:57:18 UTC 54,497 bytes, 151 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="eb8cc636-065c-4610-b640-c79b8a51884d",e._sentryDebugIdIdentifier="sentry-dbid-eb8cc636-065c-4610-b640-c79b8a51884d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3166,595],{83461:function(e,t,i){"use strict";var s,n=i(52983);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}).apply(this,arguments)}t.Z=e=>n.createElement("svg",o({width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s||(s=n.createElement("path",{fill:"currentColor",d:"M4.58 11.38c.32.32.84.32 1.16 0l2.22-2.22 2.2 2.2a.848.848 0 1 0 1.2-1.2L9.2 8l2.2-2.2a.848.848 0 1 0-1.2-1.2L8 6.8 5.8 4.6a.849.849 0 0 0-1.2 1.2L6.8 8l-2.22 2.22a.82.82 0 0 0 0 1.16Zm-2.24 2.28C.78 12.1 0 10.213 0 8s.78-4.1 2.34-5.66C3.9.78 5.787 0 8 0s4.1.78 5.66 2.34C15.22 3.9 16 5.787 16 8s-.78 4.1-2.34 5.66C12.1 15.22 10.213 16 8 16s-4.1-.78-5.66-2.34Z"})))},49339:function(e,t,i){"use strict";var s,n=i(52983);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}).apply(this,arguments)}t.Z=e=>n.createElement("svg",o({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),s||(s=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M22.898 20.039c-.041-.703.11-1.42.096-2.124-.11-.8-.193-.896-.124-1.682.055-4.137-2.758-4.027-5.915-4.868C22.829 3.836 9.756-5.43 5.123 3.974c-.455 1.379-.69 3.089-.386 4.468.441.993.855 2.234 1.434 2.772.331.29.483.868.91 1.13.676.497 1.269.152.703-.675l-.165.11c.055-.041.069-.055.165-.124v-.014c-.137-.469-.455-1.075-.758-1.393-.18-.165-.276-.69-.4-1.075-.11-.497-.386-.745-.414-1.214-.013-.372-.137-.772-.041-1.158.138-.91-.11-1.875.414-2.593.813-1.254 2.261-2.206 3.792-2.578 1.53-.248 3.116.165 4.288 1.103 1.531 1.296 1.972 3.061 1.972 5.006-.11.648-.882 2.413-1.406 3.06-.248-.054-1.407-.537-.524-.082.124.083.276.152.427.235-.207.427-.51.717-.8.979-.413.62.883.882 1.228.675.427-.137.745-.551 1.02-.84 2.482 1.378 5.144.992 4.716 4.619-.151.537.07 1.186.124 1.71-.04.482 0 1.186-.013 1.696.069.634.248 1.282-.221 1.765-.62.703-1.655.552-2.523.482-1.131-.082-1.724.056-2.538-.11-.482-.041-.91.152-1.324.18-.565-.028-1.24 0-1.779.206-1.144.083-2.275.028-3.433.193-1.42.11-2.855-.055-4.261 0-.952-.082-2.138.11-2.965-.44-.483-.373-.745-.911-.69-1.545.125-.828-.013-1.696.056-2.469 0-.662-.152-1.02-.083-1.585.028-.745-.083-1.504.193-2.235.234-.716.51-.992 1.241-1.2.566-.344 1.145-.523 1.751-.771.193-.207 1.848-.966 1.297-.814-.952.18-2.303.386-3.227.634-1.214-.027-2.262.993-2.579 2.11-.441 1.296-.33 2.772-.248 4.137.097 1.2-.014 2.84.814 3.806.84 1.213 2.358 1.103 3.64.951a25.373 25.373 0 0 1 4.689-.068c1.406-.18 2.758.179 4.15.179.62-.152 1.09.11 1.696.11.428 0 .718-.096 1.048 0 1.02.345 2.469.18 3.572.317 1.848.193 3.75-1.71 3.227-3.626l-.014.041Z",clipRule:"evenodd"})))},254:function(e,t,i){"use strict";var s,n=i(52983);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}).apply(this,arguments)}t.Z=e=>n.createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24"},e),s||(s=n.createElement("path",{fill:"currentColor",d:"M22.5 7.415c.485.038.84.065 1.312.646l-.014.014c.398 3.38.13 6.861-.137 10.337-.128 1.668-.257 3.334-.311 4.987h-.14c-.588-4.804-.687-9.539-.687-14.47-1.54-.157-3.091-.172-4.631-.188-1.064-.01-2.123-.02-3.17-.078-.606.075-1.19-.006-1.747-.082-.488-.067-.953-.132-1.392-.086-.318.115-.696.047-1.044-.015-.418-.074-.79-.14-.959.127-.154 1.513-.154 3.068-.112 4.637.059.02.29.036.524.052.436.03.88.061.233.116-.238.014-.477.028-.743.07.084 2.2.182 4.384.364 6.542.992.077 2.027.066 3.068.054 1.399-.015 2.807-.031 4.132.17.085.03.22.01.385-.016.383-.057.933-.14 1.422.31.382.381 1.087.87 1.787 1.356.51.353 1.016.705 1.393 1.011l-.084.112a28.507 28.507 0 0 0-1.046-.481c-.912-.405-1.855-.824-2.61-1.438-.794.021-1.603.063-2.42.105-1.933.1-3.917.203-5.886.035-1.776-.17-1.518-2.728-1.294-4.952.107-1.058.206-2.04.075-2.654-.82.221-1.586.215-2.272.21-.182-.001-.36-.003-.53 0h.028c-.027.01-.073.012-.073.014h.045c-.78.604-1.715 1.122-2.62 1.624-.307.17-.61.339-.904.508-1.624 1.23-2.56-.647-2.037-2.16-.062-.506-.07-.938-.077-1.362-.01-.62-.02-1.223-.203-2.014-.168-2.199-.14-4.678-.07-6.878.08-.429.053-.878.028-1.308C.027 1.338-.023.492 1.022.119 
11.689-.06 2.35 0 3.017.059c.383.035.768.07 1.156.06C5.21.049 6.12.09 7.171.203c.375.022.763.018 1.155.013.59-.007 1.186-.014 1.759.07 2.966.029 4.288-.229 4.868.311.576.536.42 1.858.413 5.027 0 .896-.519 2.395-.477.434-.392-3.176-.047-4.345-.456-4.75-.394-.39-1.488-.07-4.615-.153-2.843-.126-5.659-.168-8.432 0-.278.12-.256.251-.217.478l.007.04c.14.393.168.869.14 1.247.006 1.174.094 2.349.182 3.528.102 1.368.204 2.743.182 4.134l.032.23c.101.727.189 1.357.024 2.068l.005.043c.058.472.159 1.303.023 1.792.46-.24 1.005-.454 1.566-.674.686-.27 1.397-.548 2.006-.895l-.056.056c.664-.285 1.279-.186 1.915-.083.492.08.996.16 1.545.069.006-.6.058-1.201.111-1.807.074-.837.148-1.682.099-2.536-.23.397-.603.541-.974.685-.35.136-.7.272-.931.618-.166.314-.413.514-.657.711-.148.12-.295.239-.422.382l-.008.012c-.07.106-.315.481-.65.24-.743-1.233.798-2.606 1.513-2.97-1.015-.597-1.174-1.981-1.3-3.07l-.003-.026a2.63 2.63 0 0 1-.686-.036c-.151-.024-.304-.048-.505-.048-.91.014-.91-1.4 0-1.4.511.08.988.061 1.46.043.434-.017.864-.034 1.314.027.007-.08.012-.163.017-.249.038-.61.083-1.325.795-1.362.837.013.698.892.607 1.464l-.018.119c.63-.01 1.312-.007 1.972-.003l.941.003c1.261.21.673 1.695-.476 1.4-.172.322-.29.653-.404.979-.176.496-.347.98-.703 1.403 4.09-.252 7.929-.378 11.963-.448.271.062.5.08.705.096Zm-14.657.576c.154-.084.266-.182.393-.35.238-.407.616-1.191.77-1.541.126-.308.168-.729.168-.729-.639.048-1.44.03-2.178.015-.346-.007-.678-.015-.974-.015.2.494.55.874.896 1.25.38.412.757.82.925 1.37Zm10.265 5.626c.362.61.727 1.227.956 1.924h.014c1.008 2.676 1.274 4.51-.855.98-.724.162-1.503.124-2.276.086-.574-.027-1.145-.055-1.688-.001-3.516 6.401-.182-4.329 1.219-5.73.56-1.036 1.456-.602 1.582.42.177.852.61 1.582 1.048 2.32Zm-3.009 1.546a62.61 62.61 0 0 1 1.723.056v-.014c.21.014.533.028.799-.014-.22-.538-.33-1.121-.44-1.707-.158-.834-.316-1.674-.793-2.397-.28.649-.45 1.314-.62 1.982-.18.701-.36 1.405-.669 2.094Z"})))},77975:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my/bookings/[bookingShortId]/feedback",function(){return i(62423)}])},79682:function(e,t,i){"use strict";i.d(t,{Q:function(){return o},d:function(){return a}});var s=i(2506),n=i(89174);let o=(0,s.Ps)`
2    fragment BookingCardListing on Listing {
3  id
4  shortId
5  touristTaxIncludedInBookingPrice
6  minNights
7  cover {
8    id
9    url
10    proxy
11    blurhash
12  }
13  host {
14    displayName
15    hostCount
16  }
17  cohosts {
18    id
19  }
20  address {
21    area
22    city
23    country
24  }
25  pricing {
26    dailyFromPrice {
27      ...Money
28    }
29    weekly {
30      ...Money
31    }
32  }
33  cancellationPolicy
34  capacity
35  features {
36    petsAllowed {
37      availability
38    }
39    suitableForChildren {
40      availability
41    }
42    suitableForInfants {
43      availability
44    }
45  }
46}
47    ${n.Z}`,a=(0,s.Ps)`
48    fragment BookingCard on Booking {
49  id
50  shortId
51  checkinOn
52  checkoutOn
53  participants {
54    adults
55    children
56    infants
57    pets
58  }
59  listing {
60    id
61    ...BookingCardListing
62  }
63}
64    ${o}`},3666:function(e,t,i){"use strict";i.d(t,{Lv:function(){return q},dt:function(){return H},kK:function(){return X}});var s=i(97458),n=i(6553),o=i(85308),a=i(38664),r=i(17252),l=i(49339),c=i(61959),d=i(24174),u=i(11330),m=i(86270),p=i(74252),h=i(43547),g=i(18011),f=i(17964),b=i(95199),k=i(99888),x=i(33028),j=i(62125),y=i(73352),v=i.n(y),w=i(80215),B=i(52983),N=i(61716),P=i(81641),M=i(55802),S=i(48938),Z=i(66731),C=i(35260),D=i(16063),R=i(88503),I=i(44664),E=i(27309),T=i(9186),A=i(23631),O=i(7524),F=i(58048),U=i(91223),L=i(18383),_=i(32331),W=i(19934);function q({className:e,shortId:t,listing:i,checkinOn:n,checkoutOn:c,participants:p,bookingQuote:g,invoiceTotal:f,invoiceTotalWithoutDiscounts:b,compact:k,hideLink:x,paymentOption:j,payments:y,showUsps:w,enableBookingEdits:M,isCommercial:S,loading:Z,instantBookable:C,showPaymentMethodNotice:D,hideTrustpilot:R,children:T,customRows:A,routeContext:O,paymentInCheckoutRequired:F,selectedPriceOptionKind:L,invoiceDiscount:_,appliedPromotion:q,nonRefundableDiscount:V,summaryAddon:Y,footerContent:$,linenTotal:K,linenPackages:Q,linenMinimumChargeApplied:J,rentalTotal:ee,rentalTotalWithoutDiscounts:et}){let ei=new Date(n),es=new Date(c);return(0,s.jsxs)("div",{className:e,id:"booking-details","data-testid":"booking-details",children:[i.cover&&(0,s.jsx)("div",{className:"relative h-4.5 w-full",children:(0,s.jsx)(m.E,{...i.cover,fill:!0,alt:"",className:"rounded-t object-cover"})}),(0,s.jsxs)("div",{className:["p-3",k?"lg:p-3.5":"lg:p-4"].filter(
64Boolean).join(" "),children:[(0,s.jsxs)(z,{children:[(0,s.jsx)(r.Z,{className:"mr-3"}),i.address.city,","," ",(0,s.jsx)(N.ag,{type:"region",value:i.address.country})]}),p&&(0,s.jsxs)(z,{className:"justify-between",children:[(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)(l.Z,{className:"mr-3 shrink-0"}),(0,s.jsx)("span",{className:"line-clamp-1",children:(0,s.jsx)(d.t,{participants:p,group:["adults","children","infants"]})})]}),M&&O&&(0,s.jsx)(H,{listing:{...i,...v()(g?.listing,["__typename"])||{}},routeContext:O,bookingQuote:g,loading:Z,instantBookable:C,selectedPriceOptionKind:L,checkinOn:n,checkoutOn:c})]}),(0,s.jsxs)(z,{className:"justify-between",children:[(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)(a.Z,{className:"mr-3"}),(0,s.jsx)(u.C,{from:n,to:c,separator:"dash",alwaysShowYear:!0})]}),M&&O&&(0,s.jsx)(X,{listing:i,routeContext:O,bookingQuote:g,loading:Z,selectedPriceOptionKind:L,checkinOn:n,checkoutOn:c})]}),!g?.errors?.length&&!k&&g&&ei&&es&&(0,s.jsxs)(s.Fragment,{children:[!Y&&(0,s.jsx)(G,{}),Y&&(0,s.jsx)("div",{className:"my-3",children:Y}),(0,s.jsx)(W.R,{bookingQuoteTotal:g.total,invoiceTotal:f,totalWithoutDiscounts:b,checkinDate:ei,checkoutDate:es,paymentOption:j,payments:y,isCommercial:S,loading:Z,country:i.address.country,invoiceDiscount:_,appliedPromotion:q,routeContext:O,linenTotal:K,linenPackages:Q,linenMinimumChargeApplied:J,rentalTotal:ee,rentalTotalWithoutDiscounts:et,nonRefundableDiscount:V}),i.address.country&&["DE","FR","IT"].includes(i.address.country)&&!i.touristTaxIncludedInBookingPrice&&(0,s.jsx)("div",{className:"mt-2 text-f7",children:"FR"===i.address.country?(0,s.jsx)(P.Z,{defaultMessage:"A local tourist tax might be collected by Landfolk before arrival.",id:"77MXPTyBfJ",description:"Booking card: Tourist tax notice"}):(0,s.jsx)(P.Z,{defaultMessage:"A local tourist tax might be collected by the host upon arrival.",id:"eujyFbJgcL",description:"Booking card: Tourist tax notice"})}),D&&!F&&!C&&(0,s.jsx)("div",{className:"mt-1 text-f7",children:(0,s.jsx)(P.Z,{defaultMessage:"Choose your preferred payment method after the host has confirmed.",id:"lV8j5WAmFX",description:"Booking card: Payment method notice"})}),D&&(F||C)&&(0,s.jsx)("div",{className:"mt-1 text-f7",children:(0,s.jsx)(P.Z,{defaultMessage:"Choose your preferred payment method in the next step.",id:"esx9lvdmmZ",description:"Booking card: Payment method notice - instant bookable"})})]}),g?.errors?.map(e=>s.jsx(h.P,{type:"error",size:"small",className:"my-3 text-f7 text-error",children:e.message},e.code)),A?.map((e,t)=>s.jsxs(B.Fragment,{children:[s.jsx(G,{}),e]},t)),!R&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(G,{}),(0,s.jsx)(E._G,{})]}),w&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(G,{}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 py-3",children:[(0,s.jsx)(U.A8,{enableDetailsButton:!0,country:i.address.country,className:"text-f7"}),i.cancellationPolicy&&(0,s.jsx)(U.$j,{checkinDate:ei,cancellationPolicy:i.cancellationPolicy,enableDetailsButton:!0,className:"text-f7"})]})]}),t&&!x&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(G,{}),(0,s.jsxs)(I.r,{href:e=>e.bookingAsParticipant(t),className:"flex flex-row items-center",children:[(0,s.jsx)(P.Z,{defaultMessage:"See your booking details",id:"2UZt5Vzaiz",description:"Booking card: Link to booking details"}),(0,s.jsx)(o.Z,{className:"ml-2"})]})]})]}),$&&(0,s.jsx)("div",{children:$}),T&&(0,s.jsx)("div",{className:"mx-4 pb-4",children:T})]})}let z=(0,k.z)("div","flex flex-row items-center not-last:mb-2"),G=(0,k.z)("hr","my-3 border-neutral-300"),V=({listing:e,routeContext:t,bookingQuote:i,loading:o,checkinOn:a,checkoutOn:r,selectedPriceOptionKind:l})=>{let d=(0,B.useRef)(),u=(0,b.e)("sm"),m=(0,w.useRouter)(),{tripDetails:h}=(0,M.R)(Z.u),k=h?.checkin??a,y=h?.checkout??r,v=k?(0,x.zy)(new Date(k)):void 0,{availability:N,fetchMore:S,firstValidCheckinOn:R,isInstantBookable:I}=(0,_.R)({shortId:e.shortId,from:v,checkin:k,checkout:y}),E=R?(0,j.Z)((0,f.Mu)(R)):(0,j.Z)(x.Kp),O=k?new Date(k):E,U=(0,B.useCallback)((e,t)=>{S({variables:{interval:{first:e,last:t}}})},[S]),W=(0,C.kG)(i,l??(0,L.RU)(m.query.priceOption)),q=W?.cancellationPolicy??e.cancellationPolicy,z=!!i,G=i?{...i,checkinOn:a,checkoutOn:r}:void 0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g.fK,{children:[(0,s.jsx)("h1",{className:"font-bold sm:text-f4 ns:text-f3",children:(0,s.jsx)(P.Z,{defaultMessage:"Edit dates",id:"2llvxdpnoS",description:"Booking card: Change dates dialog title"})}),(0,s.jsx)(g.GG,{})]}),(0,s.jsx)(g.a7,{ref:d,className:"sm:[contain:strict]",children:(0,s.jsx)(n.n,{scrollRef:d,children:(0,s.jsx)(A.q,{openAt:O,checkin:k,checkout:y,minNights:e.minNights,availability:N,onLoadData:U,onSelectRange:(i,s)=>{if(i&&s){let n={adults:h?.adults??T.C.adults,children:h?.children??T.C.children,infants:h?.infants??T.C.infants,pets:h?.pets??T.C.pets,checkin:i,checkout:s};Z.e.setCheckoutTripDetails(n);let o=m.query.linenPackages?Number(m.query.linenPackages):void 0,a=l??(0,L.RU)(m.query.priceOption),r="checkout"===t?{pathname:m.pathname,query:{...m.query,checkin:n.checkin,checkout:n.checkout,adults:String(n.adults),children:String(n.children),infants:String(n.infants),pets:String(n.pets),linenPackages:o?String(o):void 0,priceOption:a}}:D._j.contactHost(e.shortId,n);m.replace(r,void 0,{shallow:!0})}},isInstantBookable:I})})}),(0,s.jsxs)(g.cN,{className:"flex flex-col content-start justify-between",children:[z&&h?.checkin&&q&&!u?(0,s.jsx)(F.Nm,{checkinDate:new Date(h.checkin),cancellationPolicy:q,host:e.host,isInstantBookable:I,className:"animate-fade-in text-left text-february"},"usps"):void 0,(0,s.jsxs)("div",{className:"flex justify-between sm:flex-col",children:[(0,s.jsxs)(F.so,{show:z,className:"relative",children:[(0,s.jsx)("div",{className:["transition-opacity duration-1000 sm:mb-3 sm:border-b sm:border-neutral-300 sm:pb-3",o&&"pointer-events-none opacity-0"].filter(
64Boolean).join(" "),children:(0,s.jsx)(F.ki,{bookingQuote:G,step:"DATES",showAverage:!0,className:["sm:col-start-9 sm:col-end-13 sm:text-left ns:order-2",o&&"pointer-events-none opacity-0"].filter(Boolean).join(" ")})}),o&&(0,s.jsx)("div",{className:"absolute left-0 top-0 animate-fade-in text-february [animation-fill-mode:both] [animation-delay:750ms]",children:(0,s.jsx)(p.$,{})}),z&&h?.checkin&&q&&u?(0,s.jsx)(F.Nm,{checkinDate:new Date(h.checkin),cancellationPolicy:q,host:e.host,isInstantBookable:I,className:"animate-fade-in text-left text-february"},"usps"):void 0]}),(0,s.jsx)(g.hg,{asChild:!0,children:(0,s.jsx)(c.zx,{className:"sm:w-full ns:min-w-4",children:(0,s.jsx)(P.Z,{defaultMessage:"Save",id:"KlfcHErjJM",description:"Booking card: Change dates popover save button"})})})]})]})]})},X=({listing:e,routeContext:t,isChangeTrigger:i,bookingQuote:n,loading:o,selectedPriceOptionKind:a,checkinOn:r,checkoutOn:l,children:c})=>{let d=(0,b.e)("sm");return(0,s.jsxs)(g.GR,{children:[(0,s.jsx)(g.hg,{children:(0,s.jsx)("button",{className:"whitespace-nowrap pl-1 text-f7 underline nl:-my-1 nl:p-1",children:c||(d&&!i?(0,s.jsx)(P.Z,{defaultMessage:"Edit",id:"2+VWsVlcyn",description:"Booking card: Change dates dialog trigger"}):(0,s.jsx)(P.Z,{defaultMessage:"Edit dates",id:"RL9/Nh4oK0",description:"Booking card: Change dates dialog trigger"}))})}),(0,s.jsx)(g.Vq,{children:(0,s.jsx)(V,{listing:e,routeContext:t,bookingQuote:n,loading:o,selectedPriceOptionKind:a,checkinOn:r,checkoutOn:l})})]})},H=({listing:e,routeContext:t,bookingQuote:i,loading:n,instantBookable:o,selectedPriceOptionKind:a,checkinOn:r,checkoutOn:l,children:d})=>{let u=(0,b.e)("sm"),m=(0,w.useRouter)(),{tripDetails:h}=(0,M.R)(Z.u),f=e.features.petsAllowed.availability===S.km.Available,k={adults:h?.adults||0,children:h?.children||0,infants:h?.infants||0,pets:h?.pets||0},x=(0,C.kG)(i,a??(0,L.RU)(m.query.priceOption)),j=x?.cancellationPolicy??e.cancellationPolicy,y=!!i,v=i?{...i,checkinOn:r,checkoutOn:l}:void 0;return(0,s.jsxs)(g.GR,{children:[(0,s.jsx)(g.hg,{className:"whitespace-nowrap pl-1 text-f7 underline nl:-my-1 nl:p-1",children:d||(u?(0,s.jsx)(P.Z,{defaultMessage:"Edit",id:"0jfvD+uITD",description:"Booking card: Change guests dialog trigger"}):(0,s.jsx)(P.Z,{defaultMessage:"Edit guests",id:"WxNX59muIZ",description:"Booking card: Change guests dialog trigger"}))}),(0,s.jsxs)(g.Vq,{width:"sm",children:[(0,s.jsxs)(g.fK,{children:[(0,s.jsx)("h1",{className:"font-bold sm:text-f4 ns:text-f3",children:(0,s.jsx)(P.Z,{defaultMessage:"Edit guests",id:"yJmLeLV1Ya",description:"Booking card: Change guestsq dialog title"})}),(0,s.jsx)(g.GG,{})]}),(0,s.jsxs)(g.a7,{children:[(0,s.jsx)("p",{className:"mb-4 transition-colors",children:(0,s.jsx)(P.Z,{values:{value:e.capacity},...O.l.capacity})}),(0,s.jsx)(R.J,{capacity:e.capacity,petsAllowed:f,suitableForChildren:e.features.suitableForChildren.availability===S.km.Available,suitableForInfants:e.features.suitableForInfants.availability===S.km.Available,onChange:i=>{if(h?.checkin&&h.checkout){let s={...k,...i,checkin:h?.checkin,checkout:h?.checkout};Z.e.setCheckoutTripDetails(s);let n=m.query.linenPackages?Number(m.query.linenPackages):void 0,o=a??(0,L.RU)(m.query.priceOption),r="checkout"===t?{pathname:m.pathname,query:{...m.query,checkin:s.checkin,checkout:s.checkout,adults:String(s.adults),children:String(s.children),infants:String(s.infants),pets:String(s.pets),linenPackages:n?String(n):void 0,priceOption:o}}:D._j.contactHost(e.shortId,s);m.replace(r,void 0,{shallow:!0})}},guests:k})]}),(0,s.jsxs)(g.cN,{className:"flex flex-col content-start justify-between",children:[y&&h?.checkin&&j&&!u?(0,s.jsx)(F.Nm,{checkinDate:new Date(h.checkin),cancellationPolicy:j,host:e.host,isInstantBookable:o,className:"animate-fade-in text-left text-february"},"usps"):void 0,(0,s.jsxs)("div",{className:"flex justify-between sm:flex-col",children:[(0,s.jsxs)(F.so,{show:y,className:"relative",children:[(0,s.jsx)("div",{className:["transition-opacity duration-1000 sm:mb-3 sm:border-b sm:border-neutral-300 sm:pb-3",n&&"pointer-events-none opacity-0"].filter(
64Boolean).join(" "),children:(0,s.jsx)(F.ki,{bookingQuote:v,step:"GUESTS",showAverage:!0,className:["sm:col-start-9 sm:col-end-13 sm:text-left ns:order-2",n&&"pointer-events-none opacity-0"].filter(Boolean).join(" ")})}),n&&(0,s.jsx)("div",{className:"absolute left-0 top-0 animate-fade-in text-february [animation-fill-mode:both] [animation-delay:750ms]",children:(0,s.jsx)(p.$,{})}),y&&h?.checkin&&j&&u?(0,s.jsx)(F.Nm,{checkinDate:new Date(h.checkin),cancellationPolicy:j,host:e.host,isInstantBookable:o,className:"animate-fade-in text-left text-february"},"usps"):void 0]}),(0,s.jsx)(g.hg,{asChild:!0,children:(0,s.jsx)(c.zx,{className:"sm:w-full ns:min-w-4",children:(0,s.jsx)(P.Z,{defaultMessage:"Save",id:"D7u+HblZ/+",description:"Booking card: Change guests popover save"})})})]})]})]})]})}},62423:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return eM}});var s,n,o=i(97458),a=i(71775),r=i(80215),l=i(48938),c=i(2506),d=i(89174),u=i(79682),m=i(8736),p=i(64076),h=i(75754);let g={},f=(0,c.Ps)`
65    fragment BookerFeedbackBookingCard on Booking {
66  id
67  shortId
68  checkinOn
69  checkoutOn
70  listing {
71    id
72    ...BookingCardListing
73  }
74}
75    ${u.Q}`,b=(0,c.Ps)`
76    fragment BookerFeedback on BookerFeedback {
77  listingArrivalDescription
78  listingArrivalPleasant
79  listingDescriptionAccuracyDescription
80  listingDescriptionAccurate
81  listingHighlights
82  listingHomeTruths
83  listingOpinionDescription
84  listingRecommendationDescription
85  listingRecommended
86  messageForHost
87  platformRecommendationDescription
88  platformRecommended
89  state
90}
91    `,k=(0,c.Ps)`
92    query BookingFeedbackAsBooker($shortId: String!) {
93  viewer {
94    id
95    firstName
96    userPanelParticipant
97    bookingAsBooker(shortId: $shortId) {
98      id
99      bookerFeedback {
100        id
101        ...BookerFeedback
102      }
103      address {
104        country
105        street
106        city
107      }
108      invoice {
109        id
110        total {
111          ...Money
112        }
113      }
114      listing {
115        id
116        host {
117          displayName
118          hostCount
119          userPhoto {
120            url
121            proxy
122            blurhash
123          }
124        }
125      }
126      ...BookerFeedbackBookingCard
127    }
128  }
129}
130    ${b}
131${d.Z}
132${f}`,x=(0,c.Ps)`
133    mutation UpdateBookerFeedback($input: UpdateBookerFeedbackInput!) {
134  updateBookerFeedback(input: $input) {
135    success
136    errors {
137      ...Error
138    }
139    clientMutationId
140    bookerFeedback {
141      id
142      ...BookerFeedback
143    }
144  }
145}
146    ${m.v}
147${b}`;var j=i(19330),y=i(73352),v=i.n(y),w=i(52983),B=i(27401),N=i(14875),P=i(11133),M=i(14965),S=i(95199),Z=i(81641),C=i(61716);function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}).apply(this,arguments)}var R=e=>w.createElement("svg",D({width:64,height:64,viewBox:"0 0 64 64"},e),s||(s=w.createElement("path",{fill:"currentColor",d:"m59.941 12.965-14.415.505a1.85 1.85 0 0 0-1.79 1.85v34.072c0 1.025.823 1.849 1.848 1.849H60a1.843 1.843 0 0 0 1.849-1.849V14.814a1.842 1.842 0 0 0-1.921-1.849h.014Zm-6.456 16.12a3.323 3.323 0 1 1 0-6.646 3.323 3.323 0 0 1 0 6.645Z",className:"color"})),n||(n=w.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.845 43.21C9.576 44.38 1.979 45.377 0 37.505c.046-.811.089-1.617.131-2.415C.882 20.906 1.518 8.9 19.76 8.776c1.335-.06 2.724-.222 4.137-.388 4.383-.514 8.993-1.054 12.892 1.37.159.116.318.226.478.33l-.125-.022.137.03c2.273 1.476 4.71 1.82 7.497 1.901v-.245c-.505-3.828 2.153-5.633 5.619-4.333 4.564-.174 9.129.332 13.62.924-2.545.34-5.285.564-7.992.785-2.914.238-5.79.473-8.343.847.317 10.89.52 21.666 0 32.556.284.05.58.089.88.128.491.065.995.131 1.488.248v.36l-.598.143c-.536.13-1.11.27-1.684.363.096.31.098.653.1.984.001.318.003.625.088.88 3.338-.208 6.676.167 10.029.544 2 .225 4.005.45 6.018.553-3.091.58-6.225.748-9.346.916-1.706.091-3.408.183-5.098.341-2.96 1.271-4.723-1.444-4.824-4.102-6.037.621-6.442.823-10.428 5.373-3.25 2.484-5.72 5.59-6.644 9.547-2.384 8.175-14.155 4.203-15.715-2.888-.243-4.427 1.914-8.741 3.834-12.579l.066-.132Zm21.433-33.114c.035.008.068.017.088.024-.03-.015-.087-.03-.087-.03a.895.895 0 0 1-.013-.002.899.899 0 0 1 .012.009Zm-.591 2.551.116.058c-.116-.043-.217-.101-.116-.058ZM4.637 26.28c-.075 2.84-.15 5.686-.853 8.437-.754 1.454.05 2.907.805 4.269.228.41.451.814.625 1.205 1.843 1.482 4.35 1.681 6.816 1.877 1.38.11 2.745.218 3.974.55.155-.998.71-1.732 1.273-2.477.17-.225.342-.451.503-.686l.347.1c-.549 4.897-1.69 9.736-2.947 14.546-1.285 4.52 3.02 8.55 7.381 8.103 2.494-.854 2.717-3.128 2.948-5.484.163-1.67.33-3.38 1.313-4.656.506-.618 1.01-1.257 1.517-1.902 2.754-3.495 5.643-7.163 9.85-8.7a77.873 77.873 0 0 1 6.384.231c-.02-2.287-.059-4.566-.097-6.841-.124-7.304-.246-14.566.227-21.945-3.688 1.523-7.31.161-10.8-1.15-.514-.194-1.026-.387-1.535-.569-2.568.24-5.475-.039-8.416-.322-8.025-.77-16.31-1.567-18.709 8.093-.477 2.39-.541 4.853-.606 7.32Zm49.455-1.688v-.029c-7.078-4.13 3.134-12.262 6.34-4.853 2.023 3.741-3.38 7.814-6.34 4.882Zm4.347-4.116c1.184 5.46-7.973 4.954-5.46-.621 1.214-2.37 4.897-2.08 5.46.62Z",clipRule:"evenodd"}))),I=i(87348),E=i(55311),T=i(88472),A=i(54731),O=i(3666);let F=({booking:e,title:t,section:i,icon:s,children:n,showBookingCard:a,centerText:r})=>{if(e)return(0,o.jsxs)("article",{className:"mb-6 animate-fade-in sm:flex sm:flex-col sm:gap-4 ns:grid ns:grid-cols-12",children:[(0,o.jsxs)("div",{className:"ns:col-span-10 ns:col-start-2 lg:col-span-5 lg:col-start-2",children:[(0,o.jsxs)("header",{className:"relative ns:mb-4.5",children:[(0,o.jsx)("div",{className:"absolute inset-0 -z-10 -mx-3 bg-info-muted sm:-mr-3 sm:ml-5 sm:max-h-3 ns:-ml-[154px] ns:-mr-8 ns:max-w-5xl"}),(0,o.jsxs)("div",{className:["flex flex-col pt-3.5 ns:py-5",r?"pb-4 sm:items-center sm:text-center":"pb-3",s&&"ns:flex-row ns:items-center ns:gap-3"].filter(
147Boolean).join(" "),children:[s&&(0,o.jsx)("div",{className:"ns:order-2 nl:mb-3",children:s}),i&&(0,o.jsxs)("div",{className:"mb-2 text-f5 text-february-muted sm:hidden",children:[(0,o.jsxs)("span",{className:"ns:hidden",children:[(0,o.jsx)(Z.Z,{defaultMessage:"Step {currentStep} of {maxSteps}",id:"CC+80bAxbd",description:"Step counter",values:{currentStep:"listing"===i?1:"host"===i?2:3,maxSteps:3}}),": "]}),(0,o.jsx)(Z.Z,{...U[i]})]}),(0,o.jsx)("h1",{className:["font-serif text-[2.5rem] ns:leading-[3rem]",r||a?"sm:text-f2.5":"sm:text-f3"].filter(Boolean).join(" "),children:t})]})]}),(0,o.jsx)("div",{className:"relative col-span-5 col-start-2 flex flex-col gap-4 sm:gap-3.5",children:n})]}),(0,o.jsx)("aside",{className:["mt-4 ns:col-span-8 ns:col-start-3 ns:mt-5 lg:col-span-4 lg:col-start-8",a?"nl:visible":"nl:hidden"].filter(Boolean).join(" "),children:(0,o.jsx)(O.Lv,{...e,invoiceTotal:e.invoice?.total,hideLink:!0,className:"sticky top-3 rounded bg-white shadow-md ns:shadow-sm"})})]})},U={listing:(0,C.Em)({defaultMessage:"Your holiday home experience",id:"4UZge573CG",description:"Booking feedback: Booker: Step 1 pretitle"}),host:(0,C.Em)({defaultMessage:"Your experience with your host",id:"dAPy50EO2k",description:"Booking feedback: Booker: Step 2 pretitle"}),platform:(0,C.Em)({defaultMessage:"Your booking process",id:"oYAZTaLUBu",description:"Booking feedback: Booker: Step 3 pretitle"})},L={listing:(0,C.Em)({defaultMessage:"Your holiday home experience",id:"X2qcPEM6sv",description:"Booking feedback: Booker: Section progress: 1st section"}),host:(0,C.Em)({defaultMessage:"Your experience with your host",id:"8O39xqXN7h",description:"Booking feedback: Booker: Section progress: 2nd section"}),platform:(0,C.Em)({defaultMessage:"Your booking process",id:"qTdwPZXXCa",description:"Booking feedback: Booker: Section progress: 3rd section"})},_=({currentSection:e})=>(0,o.jsx)("div",{className:"relative",children:(0,o.jsxs)("ul",{className:"before:absolute before:bottom-1 before:top-1 before:w-[1px] before:bg-neutral-300 before:sm:left-[7.5px] before:ns:left-[11px]",children:[(0,o.jsx)(W,{state:e?"COMPLETED":"IN_PROGRESS",label:L.listing}),(0,o.jsx)(W,{state:e?"host"===e?"IN_PROGRESS":"COMPLETED":"NOT_STARTED",label:L.host}),(0,o.jsx)(W,{state:e&&"platform"===e?"IN_PROGRESS":"NOT_STARTED",label:L.platform})]})}),W=({state:e,label:t})=>(0,o.jsxs)("li",{className:"relative mb-3 flex items-center last:mb-0",children:[(0,o.jsx)(q,{state:e}),(0,o.jsx)(z,{label:t,state:e})]}),q=({state:e})=>(0,o.jsxs)("div",{className:["flex items-center justify-center rounded-full text-white ring-4 ring-white","COMPLETED"===e&&"bg-february","IN_PROGRESS"===e&&"bg-confirmation","NOT_STARTED"===e?"bg-neutral-300 sm:mx-1 sm:h-[0.5rem] sm:w-[0.5rem] ns:mx-[6px] ns:h-0.75 ns:w-0.75":"sm:h-1 sm:w-1 ns:h-1.5 ns:w-1.5"].filter(Boolean).join(" "),children:["COMPLETED"===e&&(0,o.jsx)(E.Z,{className:"sm:h-[0.5rem] sm:w-[0.5rem] ns:h-0.75 ns:w-0.75"}),"IN_PROGRESS"===e&&(0,o.jsx)(T.Z,{className:"sm:h-[0.5rem] sm:w-[0.5rem] ns:h-0.75 ns:w-0.75"})]}),z=({state:e,label:t})=>(0,o.jsx)("span",{className:["ml-3","IN_PROGRESS"===e&&"font-bold","NOT_STARTED"===e&&"text-february-muted"].filter(Boolean).join(" "),children:(0,o.jsx)(Z.Z,{...t})}),G=({name:e,register:t,value:i,onClick:s})=>(0,o.jsxs)("div",{className:"mt-2 flex gap-3",children:[(0,o.jsxs)(A.EU,{name:e,value:"1",register:t,registerOptions:{required:!0},defaultChecked:!0===i||"1"===i,onClick:s,className:"flex grow flex-col items-center justify-center gap-2 font-bold",children:[(0,o.jsx)(I.Z,{className:[!0!==i&&"1"!==i&&"[&_.color]:!text-neutral-200",i===j.km&&"[&_.color]:!text-beach-300"].filter(Boolean).join(" ")}),(0,o.jsx)(Z.Z,{...V.yesBtn})]}),(0,o.jsxs)(A.EU,{name:e,value:"0",register:t,registerOptions:{required:!0},defaultChecked:!1===i||"0"===i,className:"flex grow flex-col items-center justify-center gap-2 font-bold",children:[(0,o.jsx)(R,{className:[!1!==i&&"0"!==i&&"[&_.color]:!text-neutral-200",i===j.km&&"[&_.color]:!text-beach-300"].filter(Boolean).join(" ")}),(0,o.jsx)(Z.Z,{...V.noBtn})]})]}),V=(0,C.vU)({yesBtn:{defaultMessage:"Yes",id:"UgnDfEPm2W",description:"Booking feedback: Booker: Pleasant arrival: yes button label"},noBtn:{defaultMessage:"No",id:"mgPMzQX/oG",description:"Booking feedback: Booker: Pleasant arrival: no button label"}}),X=(0,C.vU)({title:{defaultMessage:"Almost done!",id:"0ik3sF4DLI",description:"Booking feedback: Booker: Almost done: title"},description:{defaultMessage:"Lastly, we'd love to hear about your experience with landfolk.com. We'll use your answers to improve our platform.",id:"U+WL1r3R5F",description:"Booking feedback: Booker: Almost done: description"}});var H=i(70480);let Y=(0,C.vU)({title:{defaultMessage:"Did you feel welcome when you arrived at the holiday home?",id:"3K05qyPbvQ",description:"Booking feedback: Booker: Pleasant arrival: title"},pleasant:{defaultMessage:"What made you feel welcome? Describe your dialogue with the host, your arrival and your first impressions.",id:"vC8jZEXlL+",description:"Booking feedback: Booker: Pleasant arrival: pleasant arrival description"},notPleasant:{defaultMessage:"We're sorry to hear that. Why didn't you feel welcome?",id:"vcgD17IPlx",description:"Booking feedback: Booker: Pleasant arrival: not plesant arrival description"}}),$=(0,C.vU)({title:{defaultMessage:"Did the holiday home live up to the pictures and description on the profile?",id:"4C0viSq9fJ",description:"Booking feedback: Booker: Listing description accurate: title"},accurate:{defaultMessage:"Is there anything you want to add?",id:"/gEHkf9D1b",description:"Booking feedback: Booker: Listing description accurate: accurate description"},notAccurate:{defaultMessage:"We're sorry to hear that! What did not live up to your expectations?",id:"+e7rLiMpED",description:"Booking feedback: Booker: Listing description accurate: not accurate description"}}),K=(0,C.vU)({title:{defaultMessage:"How was your stay?",id:"V6UAYy5vAP",description:"Booking feedback: Booker: title"},introduction:{defaultMessage:"We are curious to hear about your stay. Share your feedback in three easy steps.",id:"edbFKJg8yA"},usageOfAnswers:{defaultMessage:"We'll use your answers to help other guests have a great stay, share feedback with your {hostCount, plural, one {host} other {hosts}} {hostNames}, and for marketing purposes.",id:"ZZeV0MlNZD"}}),Q=(0,C.vU)({title:{defaultMessage:"Is there anything special you'd like to highlight?",id:"UmNrvosBbb",description:"Booking feedback: Booker: Listing highlights: title"},description:{defaultMessage:"It could be a lovely reading corner, a beautiful viewpoint, particularly soft bedding, or something else entirely.",id:"TP6P0FgkBp",description:"Booking feedback: Booker: Listing highlights: description"}}),J=(0,C.vU)({title:{defaultMessage:"Is there anything you would've liked to know prior to your stay?",id:"s3ZQk9qDVL",description:"Booking feedback: Booker: Listing home truths: title"},description:{defaultMessage:"Big or small, we would love to hear about it. This can help the host prepare future guests even better.",id:"dpGgwdbk18",description:"Booking feedback: Booker: Listing home truths: description"}}),ee=(0,C.vU)({title:{defaultMessage:"What did you think of the holiday home?",id:"PW3K3tNgia",description:"Booking feedback: Booker: Opinion of listing: title"},description:{defaultMessage:"We'd love to hear about your experience at the holiday home and its surroundings.",id:"FCSDatYHSw",description:"Booking feedback: Booker: Opinion of listing: description"}}),et=(0,C.vU)({title:{defaultMessage:"Anything else you'd like to tell your {hostCount, plural, one {host} other {hosts}}, {hostNames}?",id:"h71+mTUIda",description:"Booking feedback: Booker: Message for host: title"},description:{defaultMessage:"Maybe a special thanks, suggestions for improvement or something else entirely.",id:"7z8UOcqx8M",de
147scription:"Booking feedback: Booker: Message for host: description"},notice:{defaultMessage:"Your answer will stay between you and {hostNames}.",id:"sz9AdWbBbe",description:"Booking feedback: Booker: Message for host: notice"}}),ei=(0,C.vU)({title:{defaultMessage:"Would you recommend the holiday home to others?",id:"mz50x4rbq2",description:"Booking feedback: Booker: Recommend listing: title"},notRecommend:{defaultMessage:"We're sorry to hear that. Why wouldn't you recommend the holiday home?",id:"O8EsYIXjXX",description:"Booking feedback: Booker: Recommend listing: not recommended description"}}),es=(0,C.vU)({title:{defaultMessage:"Would you recommend landfolk.com to others?",id:"ChvL+4zFMt",description:"Booking feedback: Booker: Recommend platform: title"},recommended:{defaultMessage:"We're so glad to hear that. We'd love to hear why.",id:"P39ujU+QLs",description:"Booking feedback: Booker: Recommend platform: recommended description"},notRecommended:{defaultMessage:"We'd love to know if it's due to the booking process, the website design or something else.",id:"hh0D69fMU1",description:"Booking feedback: Booker: Recommend platform: not recommended description"}});var en=i(7420),eo=i(71820);let ea=(0,C.vU)({title:{defaultMessage:"So far, so good",id:"14FN4X0dFW",description:"Booking feedback: Booker: So far, so good: title"},description:{defaultMessage:`{hostCount, plural,
148        one {Next up: What was your experience with your host? {hostNames} is eager to hear about it.}
149        other {Next up: What was your experience with your hosts? {hostNames} are eager to hear about it.}
150      }`,id:"jj0S39gG86",description:"Booking feedback: Booker: So far, so good: description"}});var er=i(96001),el=i(43547),ec=i(66122),ed=i(1168),eu=i(85049),em=i(93207),ep=i(64132),eh=i(85424);let eg=({bookingShortId:e})=>{let[t,i]=(0,w.useState)(!1),[s,{data:n,error:a,loading:r}]=(0,eu.iI)(),{addToast:l}=(0,ec.p)(),c=(0,ed.Z)(),d=a?.message||n?.updateViewer?.errors[0]?.message,u=(0,S.e)("sm"),{ref:m}=(0,ep.j)({elementId:"booking-feedback-user-panel-signup-prompt",context:"booking-feedback",shortId:e});if(!t)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:m,children:(0,o.jsx)(el.P,{headline:eb.userPanelSignUpTitle,actionLabel:eb.userPanelSignUpButton,size:u?"small":"large",onAction:()=>{(0,em.j)({actionClicked:{actionId:"booking-feedback-user-panel-signup-clicked",elementId:"booking-feedback-user-panel-signup-prompt",context:"booking-feedback",shortId:e}}),s({variables:{input:{userPanelParticipant:!0}},onCompleted(e){e.updateViewer?.success&&(i(!0),N.c.track({event:"Booker Feedback User Panel Sign Up"}),l({headline:c.formatMessage(eb.userPanelSignedUpTitle),description:c.formatMessage(eb.userPanelSignedUpToastDescription),notificationType:"success"}))}})},actionState:r?"loading":void 0,children:(0,o.jsx)(Z.Z,{...eb.userPanelSignUpDescription})})}),d&&(0,o.jsx)("div",{className:"mt-3 text-error",children:d})]})},ef=({bookingShortId:e})=>{let[t,i]=(0,w.useState)(!1),[s,{data:n,error:a,loading:r}]=(0,eu.iI)(),{addToast:l}=(0,ec.p)(),c=(0,ed.Z)(),d=a?.message||n?.updateViewer?.errors[0]?.message,u=(0,S.e)("sm"),{ref:m}=(0,ep.j)({elementId:"booking-feedback-newsletter-signup-prompt",context:"booking-feedback",shortId:e});if(!t)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:m,children:(0,o.jsx)(el.P,{headline:eb.newsletterSignUpTitle,actionLabel:eb.newsletterSignUpButton,size:u?"small":"large",onAction:()=>{(0,em.j)({actionClicked:{actionId:"booking-feedback-newsletter-signup-clicked",elementId:"booking-feedback-newsletter-signup-prompt",context:"booking-feedback",shortId:e}}),s({variables:{input:{acceptMarketing:!0,source:"booking-feedback"}},onCompleted(e){e.updateViewer?.success&&(i(!0),N.c.track({event:"Newsletter Signup",section:"booking-feedback"}),l({headline:c.formatMessage(eb.newsletterSignedUpTitle),description:c.formatMessage(eb.newsletterSignedUpDescription),notificationType:"success"}))}})},actionState:r?"loading":void 0,children:(0,o.jsx)(Z.Z,{...eb.newsletterSignUpDescription})})}),d&&(0,o.jsx)("div",{className:"mt-3 text-error",children:d})]})},eb=(0,C.vU)({title:{defaultMessage:"{bookerName, select, undefined {Thank y
150ou for the feedback!} other {Thank you for the feedback, {bookerName}!}}",id:"kCx1EHlIHE",description:"Booking feedback: Booker: thank you: title"},description:{defaultMessage:"We highly appreciate your time and thoughts and will use your feedback carefully to improve our platform \uD83D\uDC9B ",id:"fbzPnmIdVS",description:"Booking feedback: Booker: thank you: description"},userPanelSignedUpTitle:{defaultMessage:"You're now part of our User Panel \uD83C\uDF89",id:"2IfdyC25gt",description:"Booking feedback: Booker: thank you: user panel sign up: signed up title"},userPanelSignedUpToastDescription:{defaultMessage:"We're so happy you want to get involved! You can always leave the panel again under your profile.",id:"LRA82DJqvP",description:"Booking feedback: Booker: thank you: user panel sign up: signed up toast description"},userPanelSignUpTitle:{defaultMessage:"Would you like to participate in a user interview?",id:"asEuqaj68E",description:"Booking feedback: Booker: thank you: user panel sign up: title"},userPanelSignUpButton:{defaultMessage:"Yes, sign me up!",id:"+KR3xxEAB7",description:"Booking feedback: Booker: thank you: user panel sign up: button label"},userPanelSignUpDescription:{defaultMessage:"We would like to borrow you for a short chat about your experience with Landfolk. We will send you more info by email if you are interested.",id:"7eFvcnERp8",description:"Booking feedback: Booker: thank you: user panel sign up: description"},newsletterSignedUpTitle:{defaultMessage:"Thanks for signing up!",id:"/Ow6lCwNdk",description:"Booking feedback: Booker: thank you: newsletter sign up: signed up title"},newsletterSignedUpDescription:{defaultMessage:"We’re crossing our fingers for you — and we’ll send curated homes, guides and offers your way.",id:"J65Ubq7q7R",description:"Booking feedback: Booker: thank you: newsletter sign up: signed up description"},newsletterSignUpTitle:{defaultMessage:"Win your next stay",id:"Wb57o5bcJo",description:"Booking feedback: Booker: thank you: newsletter sign up: title"},newsletterSignUpButton:{defaultMessage:"Sign me up",id:"PrnkbeB6y1",description:"Booking feedback: Booker: thank you: newsletter sign up: button label"},newsletterSignUpDescription:{defaultMessage:"I agree to receive e-mails from Landfolk with personalised inspiration, homes and guides. Each quarter, Landfolk draws one winner among bookings with check-in in that period. The winner receives a gift card equal to their booking value. I can unsubscribe anytime.",id:"/wH9qG6+rG",description:"Booking feedback: Booker: thank you: newsletter sign up: description"}});var ek=i(16039),ex=i(61959),ej=i(16176),ey=i(41956);function ev({currentStepIndex:e,setCurrentStepIndex:t,maxStep:i,onSubmit:s,errorMessage:n,loading:a,section:r}){let{formState:l}=(0,B.Gc)();return(0,o.jsxs)(ey.n,{replaceMenu:!0,fallbackHeight:68,className:"z-navigation rounded-b bg-white p-3 shadow-md",children:[(0,o.jsx)("div",{className:"absolute left-0 right-0 top-0 -z-20 -mt-1 h-[0.25rem] bg-confirmation-muted",children:(0,o.jsx)("div",{style:{transform:`scaleX(${e/i})`,transition:"transform 0.5s ease-out"},className:"h-full origin-top-left bg-confirmation"})}),(0,o.jsxs)("div",{className:"mx-auto grid max-w-page-xl grid-cols-12 lg:px-page-padding",children:[(0,o.jsxs)("div",{className:"flex gap-3 sm:col-span-12 sm:items-center sm:justify-between ns:col-span-10 ns:col-start-2",children:[!!e&&e<i&&(0,o.jsxs)("div",{className:"flex sm:flex-col ns:items-center",children:[r&&(0,o.jsx)("div",{className:"text-f6 font-bold ns:hidden",children:(0,o.jsx)(Z.Z,{...L[r]})}),(0,o.jsxs)(ej.Q,{onClick:async()=>{t(e=>e>0?e-1:e)},className:"flex items-center gap-2 text-february-muted hocus:text-confirmation",children:[(0,o.jsx)(ek.Z,{}),(0,o.jsx)(Z.Z,{defaultMessage:"Back",id:"zpqnp79CfE",description:"Booking feedback: Footer bar: back button label"})]})]}),(0,o.jsx)(ex.zx,{disabled:a||e>0&&!l.isValid,onClick:async()=>{e?await s():t(1)},type:"button",className:[0===e&&"sm:grow"].filter(Boolean).join(" "),children:e?(0,o.jsx)(Z.Z,{defaultMessage:"Continue",id:"1Lo/kcarsD",description:"Booking feedback: Footer bar: continue button label"}):(0,o.jsx)(Z.Z,{defaultMessage:"Begin",id:"Fl2fUBTW7D",description:"Booking feedback: Footer bar: begin button label"})})]}),n&&(0,o.jsx)("div",{className:"mt-2 sm:col-span-12 ns:col-span-10 ns:col-start-2",children:(0,o.jsx)("p",{className:"text-f7 text-error",children:n})})]})]})}function ew(e){return e?.bookerFeedback?.__typename==="BookerFeedback"}let eB=[{component:function({booking:e}){return(0,o.jsxs)(F,{booking:e,title:(0,o.jsx)(Z.Z,{...K.title}),showBookingCard:!0,children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"mb-3",children:(0,o.jsx)(Z.Z,{...K.introduction})}),(0,o.jsx)("p",{children:(0,o.jsx)(Z.Z,{...K.usageOfAnswers,values:{hostNames:e.listing.host.displayName,hostCount:e.listing.host.hostCount}})})]}),(0,o.jsx)(_,{})]})},completed:e=>e.state===l.e9.Started},{component:function({booking:e,register:t,section:i}){let s=(0,B.Gc)(),n=s.getValues(),a=s.watch("listingRecommended"),r=!1===n.listingRecommended||a&&!1==!!Number(a);return(0,o.jsxs)(F,{booking:e,title:(0,o.jsx)(Z.Z,{...ei.title}),section:i,children:[(0,o.jsx)(G,{name:"listingRecommended",value:n.listingRecommended,register:t,onClick:()=>s.setValue("listingRecommendationDescription",void 0)}),r&&(0,o.jsx)(H.X,{label:(0,o.jsx)("span",{className:"font-normal",children:(0,o.jsx)(Z.Z,{...ei.notRecommend})}),name:"listingRecommendationDescription",rows:6,inputStyles:["mt-3 resize-none"],register:t})]})},completed:e=>"boolean"==typeof e.listingRecommended,section:"listing"},{component:function({booking:e,register:t,section:i}){return(0,o.jsx)(F,{booking:e,title:(0,o.jsx)(Z.Z,{...ee.title}),section:i,children:(0,o.jsx)(H.X,{label:(0,o.jsx)("span",{className:"font-normal",children:(0,o.jsx)(Z.Z,{...ee.description})}),name:"listingOpinionDescription",rows:6,inputStyles:["mt-3 resize-none"],register:t})})},completed:e=>!!e.listingOpinionDescription,section:"listing"},{component:function({booking:e,register:t,section:i}){return(0,o.jsx)(F,{booking:e,title:(0,o.jsx)(Z.Z,{...Q.title}),section:i,children:(0,o.jsx)(H.X,{label:(0,o.jsx)("span",{className:"font-normal",children:(0,o.jsx)(Z.Z,{...Q.description})}),name:"listingHighlights",rows:6,inputStyles:["mt-3 resize-none"],register:t})})},completed:e=>!!e.listingHighlights,section:"listing"},{component:function({booking:e,register:t,section:i}){return(0,o.jsx)(F,{booking:e,title:(0,o.jsx)(Z.Z,{...J.title}),section:i,children:(0,o.jsx)(H.X,{label:(0,o.jsx)("span",{className:"font-normal",children:(0,o.jsx)(Z.Z,{...J.description})}),name:"listingHomeTruths",rows:6,inputStyles:["mt-3 resize-none"],register:t})})},completed:e=>!!e.listingHomeTruths,section:"listing"},{component:function({booking:e,section:t}){let i=(0,S.e)("sm");return(0,o.jsxs)(F,{booking:e,title:(0,o.jsx)(Z.Z,{...ea.title}),icon:i?(0,o.jsx)(en.Z,{className:"h-3.5 w-3.5"}):void 0,section:t,centerText:!0,children:[(0,o.jsxs)("div",{className:"flex items-center gap-3 xs:flex-col xs:justify-center",children:[(0,o.jsx)("p",{children:(0,o.jsx)(Z.Z,{...ea.description,values:{hostNames:e.listing.host.displayName,hostCount:e.listing.host.hostCount}})}),(0,o.jsx)(eo.q,{photo:e.listing.host.userPhoto,size:96,className:"sm:h-3.5 sm:w-3.5 ns:h-3 ns:w-3"})]}),(0,o.jsx)(_,{currentSection:t})]})},completed:e=>"boolean"==typeof e.listingArrivalPleasant,section:"host"},{component:function({booking:e,register:t,section:i}){let s=(0,B.Gc)(),n=s.getValues(),a=s.watch("listingArrivalPleasant"),r=!0===n.listingArrivalPleasant||a&&!0==!!Number(a),l="boolean"==typeof n.listingArrivalPleasant||a;return(0,o.jsxs)(F,{booking:e,title:(0,o.jsx)(Z.Z,{...Y.title}),section:i,children:[(0,o.jsx)(G,{name:"listingArrivalPleasant",value:n.listingArrivalPleasant,register:t}),l&&(0,o.jsx)(H.X,{label:(0,o.jsx)("span",{className:"font-normal",children:r?(0,o.jsx)(Z.Z,{...Y.pleasant}):(0,o.jsx)(Z.Z,{...Y.notPleasant})}),name:"listingArrivalDescription",rows:6,inputStyles:["mt-3 resize-none"],register:t})]})},completed:e=>"boolean"==typeof e.listingArrivalPleasant,section:"host"},{component:function({booking:e,register:t,section:i}){return(0,o.jsx)(F,{booking:e,title:(0,o.jsx)(Z.Z,{...et.title,values:{hostNames:e.listing.host.displayName,hostCount:e.listing.host.hostCount}}),section:i,children:(0,o.jsxs)("div",{children:[(0,o.jsx)(H.X,{label:(0,o.jsx)("span",{className:"font-normal",children:(0,o.jsx)(Z.Z,{...et.description})}),name:"messageForHost",rows:6,inputStyles:["mt-3 resize-none"],register:t}),(0,o.jsx)("p",{className:"mt-3 text-february-muted",children:(0,o.jsx)(Z.Z,{...et.notice,values:{hostNames:e.listing.host.displayName}})})]})})},completed:e=>!!e.messageForHost,section:"host"},{component:function({booking:e,section:t}){let i=(0,S.e)("sm");return(0,o.jsxs)(F,{booking:e,title:(0,o.jsx)(Z.Z,{...X.title}),icon:i?(0,o.jsx)(M.Z,{className:"h-3.5 w-3.5"}):void 0,section:t,centerText:!0,children:[(0,o.jsx)("div",{children:(0,o.jsx)(Z.Z,{...X.description})}),(0,o.jsx)(_,{currentSection:t})]})},completed:e=>"boolean"==typeof e.listingDescriptionAccurate,section:"platform"},{component:function({booking:e,register:t,section:i}){let s=(0,B.Gc)(),n=s.getValues(),a=s.watch("listingDescriptionAccurate"),r=!0===n.listingDescriptionAccurate||a&&!0==!!Number(a),l="boolean"==typeof n.listingDescriptionAccurate||a;return(0,o.jsxs)(F,{booking:e,title:(0,o.jsx)(Z.Z,{...$.title}),section:i,children:[(0,o.jsx)(G,{name:"listingDescriptionAccurate",value:n.listingDescriptionAccurate,register:t}),l&&(0,o.jsx)(H.X,{label:(0,o.jsx)("span",{className:"font-normal",children:r?(0,o.jsx)(Z.Z,{...$.accurate}):(0,o.jsx)(Z.Z,{...$.notAccurate})}),name:"listingDescriptionAccuracyDescription",rows:6,inputStyles:["mt-3 resize-none"],register:t})]})},completed:e=>"boolean"==typeof e.listingDescriptionAccurate,section:"platform"},{component:function({booking:e,register:t,section:i}){let s=(0,B.Gc)(),n=s.getValues(),a=s.watch("platformRecommended"),r=!0===n.platformRecommended||a&&!0==!!Number(a),l="boolean"==typeof n.platformRecommended||a;return(0,o.jsxs)(F,{booking:e,title:(0,o.jsx)(Z.Z,{...es.title}),section:i,children:[(0,o.jsx)(G,{name:"platformRecommended",value:n.platformRecommended,register:t}),l&&(0,o.jsx)(H.X,{label:(0,o.jsx)("span",{className:"font-normal",children:r?(0,o.jsx)(Z.Z,{...es.recommended}):(0,o.jsx)(Z.Z,{...es.notRecommended})}),name:"platformRecommendationDescription",rows:6,inputStyles:["mt-3 resize-none"],register:t})]})},completed:e=>"boolean"==typeof e.platformRecommended,section:"platform",lastStep:!0},{component:function({booking:e}){let{viewer:t,viewerLoading:i}=(0,eh.R)(),s=(0,w.useMemo)(()=>!i&&t?.acceptMarketing===!1,[t?.acceptMarketing,i]),n=(0,w.useMemo)(()=>!i&&t?.userPanelParticipant===!1,[t?.userPanelParticipant,i]);return(0,o.jsxs)(F,{booking:e,title:(0,o.jsx)(Z.Z,{...eb.title,values:{bookerName:t?.firstName}}),icon:(0,o.jsx)(er.Z,{className:"h-3.5 w-3.5"}),centerText:!0,children:[(0,o.jsx)("p",{className:"sm:text-center",children:(0,o.jsx)(Z.Z,{...eb.description})}),(0,o.jsxs)("div",{className:"flex flex-col gap-3",children:[s&&(0,o.jsx)(ef,{bookingShortId:e.shortId}),n&&(0,o.jsx)(eg,{bookingShortId:e.shortId})]})]})},completed:e=>e.state===l.e9.Completed}];function eN({booking:e}){let[t,i]=(0,w.useState)(eB.reduce((t,i,s)=>i.completed(e.bookerFeedback)?Math.min(i.lastStep?s:s+1,eB.length-1):t,0)),s=(0,P.S)(),n=eB[t],a=n.component,r=eB.length-1,l=t===r,[c,{loading:d,data:u,error:m}]=function(e){let t={...g};return h.D(x,t)}(),p=m?.message||u?.updateBookerFeedback?.errors[0]?.message,f=(0,B.cI)({mode:"onChange",defaultValues:{...v()(e?.bookerFeedback,["__typename","id","state"]),bookingId:e?.id}}),{handleSubmit:b,register:k,reset:y}=f,M=b(t=>{c({variables:{input:{...t,complete:n.lastStep,listingRecommended:t.listingRecommended!==j.km?!!Number(t.listingRecommended):void 0,listingArrivalPleasant:t.listingArrivalPleasant!==j.km?!!Number(t.listingArrivalPleasant):void 0,listingDescriptionAccurate:t.listingDescriptionAccurate!==j.km?!!Number(t.listingDescriptionAccurate):void 0,platformRecommended:t.platformRecommended!==j.km?!!Number(t.platformRecommended):void 0}},onCompleted(t){t.updateBookerFeedback?.success&&(i(e=>e<r?e+1:e),y({...v()(t.updateBookerFeedback?.bookerFeedback,["__typename","id","state"]),bookingId:e?.id}),n.lastStep&&N.c.track({event:"Booker Feedback Flow Completed"}))}})});return(0,w.useEffect)(()=>(s.hideLauncher(),()=>s.showLauncher()),[]),(0,w.useEffect)(()=>
150{t&&t<r&&N.c.track({event:"Booker Feedback Step Viewed",step:t})},[t,r]),(0,o.jsxs)(B.RV,{...f,children:[(0,o.jsx)(a,{booking:e,register:k,section:n.section},t),!l&&(0,o.jsx)(ev,{currentStepIndex:t,setCurrentStepIndex:i,maxStep:r,onSubmit:M,errorMessage:p,loading:d,section:n.section})]})}var eP=i(16063);function eM(){let e=(0,r.useRouter)().query.bookingShortId,t=(0,r.useRouter)(),i=function(e){let t={...g,...e};return p.a(k,t)}({variables:{shortId:e},skip:!e}),s=i.data?.viewer?.bookingAsBooker;if("string"==typeof e&&s&&s.id)return ew(s)&&s?.bookerFeedback?.state!==l.e9.Expired||t.replace(eP._j.bookingAsParticipant(s.shortId)),(0,o.jsx)(a.G,{query:i,field:"viewer",children:e=>{if(ew(e.bookingAsBooker))return(0,o.jsx)(eN,{booking:e.bookingAsBooker})}})}},41956:function(e,t,i){"use strict";i.d(t,{n:function(){return u}});var s=i(97458),n=i(19330),o=i(52983),a=i(49574),r=i(44360),l=i(55802),c=i(60212),d=i(74068);function u({visible:e=!0,replaceMenu:t=!1,fallbackHeight:i=0,children:u,className:m,...p}){let h=(0,o.useRef)(n.km),g=(0,d.UN)("mobileMenu",{visible:e}),{mobileMenuFocused:f}=(0,l.R)(c.D),{height:b=i}=(0,r.Z)({box:"border-box",ref:h});return(0,a.Hd)(()=>{c.T.add("mobileToolbar",{height:b,visible:e}),t&&c.T.update("mobileMenu",{disabled:e})}),(0,a.Ez)(()=>{c.T.remove("mobileToolbar"),c.T.update("mobileMenu",{disabled:!1})}),(0,a.YB)(()=>{t?c.T.update("mobileMenu",{disabled:!0}):c.T.update("mobileMenu",{disabled:!1})},[t,e]),(0,a.YB)(()=>{c.T.update("mobileToolbar",{height:b,visible:e})},[e,b]),(0,s.jsx)("div",{ref:h,...p,className:[m,"fixed bottom-0 left-0 right-0 z-toolbar will-change-transform before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:shadow-md before:[clip-path:inset(-4rem_0_0_0)]",e&&"before:opacity-100",t&&"transition-transform duration-500 ease-in-out before:transition-opacity before:duration-500",t&&(e&&!f?"translate-y-0":"translate-y-full"),!t&&g].filter(Boolean).join(" "),children:u})}},74068:function(e,t,i){"use strict";i.d(t,{II:function(){return o},UN:function(){return a},u9:function(){return n}});var s=i(52983);let n="nl:transition-transform nl:duration-500 nl:ease-in-out";function o(e){return e.split(/[?#]/)[0]??""}function a(e,{elastic:t=!1,visible:i=!0}={}){return(0,s.useMemo)(()=>{switch(e){case"mobileMenu":return i?"nl:translate-y-[calc(var(--mobile-menu-attach)+0%)] nl:transition-transform nl:duration-500 nl:ease-in-out":"nl:translate-y-[calc(var(--mobile-menu-attach)+100%)] nl:transition-transform nl:duration-500 nl:ease-in-out";case"bottom":return t?"nl:translate-y-[--mobile-bottom-attach] nl:transition-transform nl:duration-[--mobile-bottom-attach-elastic-duration] nl:ease-in-out":"nl:translate-y-[--mobile-bottom-attach] nl:transition-transform nl:duration-500 nl:ease-in-out";default:return n}},[e,t,i])}},71820:function(e,t,i){"use strict";i.d(t,{q:function(){return r}});var s=i(97458),n=i(52983),o=i(49339),a=i(86270);let r=(0,n.forwardRef)(({photo:e,size:t=64,className:i,style:n,...r},l)=>(0,s.jsx)("div",{ref:l,style:{width:t,height:t,...n},...r,className:[i,"flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-beach-100 text-0 text-february will-change-transform"].filter(Boolean).join(" "),children:e?(0,s.jsx)(a.E,{url:e.url,proxy:e.proxy,focalPointX:e.focalPointX,focalPointY:e.focalPointY,...t>40?{blurhash:e.blurhash}:{},alt:"",width:t,height:t,sizes:`${t}px`}):(0,s.jsx)(o.Z,{width:t/2,height:t/2,style:{marginBottom:t/24}})}));r.displayName="Avatar"},60272:function(e,t,i){"use strict";i.d(t,{F:function(){return n},P:function(){return o}});var s=i(86591);function n(e,t){let{defer:i}=t,n=i?s.Wn:e=>e(),o=[];return o.push(n(()=>{let i="function"==typeof e?e():e;o.push(function(e,t){if(!e)return;let{attributes:i,callback:s}=t,n=new(e.ownerDocument.defaultView||window).MutationObserver(e=>{for(let t of e)"attributes"===t.type&&t.attributeName&&i.includes(t.attributeName)&&s(t)});return n.observe(e,{attributes:!0,attributeFilter:i}),()=>n.disconnect()}(i,t))})),()=>{o.forEach(e=>e?.())}}function o(e,t){let{defer:i}=t,n=i?s.Wn:e=>e(),o=[];return o.push(n(()=>{let i="function"==typeof e?e():e;o.push(function(e,t){let{callback:i}=t;if(!e)return;let s=new(e.ownerDocument.defaultView||window).MutationObserver(i);return s.observe(e,{childList:!0,subtree:!0}),()=>s.disconnect()}(i,t))}
150)),()=>{o.forEach(e=>e?.())}}}},function(e){e.O(0,[4138,1367,6028,5809,5483,7132,6205,7325,3468,7746,2614,2790,2335,8256,9905,3574,9630,3644,99,48,4520,4821,625,3361,8195,3273,6235,9627,1524,299,5072,7614,6954,7618,4408,3975,2888,9774,179],function(){return e(e.s=77975)}),_N_E=e.O()}]);
151//# sourceMappingURL=feedback-cff1212e3ac373d5.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.