PageSourceSearch

https://landfolk.com/_next/static/chunks/pages/my/host/listings/[l…/onboarding/features-278c53d4e15ce84e.js

js landfolk.com collected 2026-09-24 22:57:51 UTC 7,732 bytes, 2 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]="884c7656-d7fa-449b-aed4-040879203978",e._sentryDebugIdIdentifier="sentry-dbid-884c7656-d7fa-449b-aed4-040879203978")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9719],{5823:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my/host/listings/[listingShortId]/onboarding/features",function(){return r(50665)}])},50665:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return _}});var s=r(97458),n=r(20754),a=r(70176),i=r(87926),l=r(43244),o=r(21203),u=r(72934),d=r(61230),c=r.n(d),f=r(73352),p=r.n(f),g=r(55371),b=r.n(g),h=r(27401),m=r(1168),v=r(48938),x=r(91785),y=r(83316),w=r(65414);let j=e=>({features:e?.features?c()(p()(e.features,"__typename"),e=>(0,x.p)(e.availability)):{},wifi:p()(e?.wifi,"__typename"),outdoorPoolDetails:p()(e?.outdoorPoolDetails,"__typename","id"),indoorPoolDetails:p()(e?.indoorPoolDetails,"__typename","id"),parkingDetails:p()(e?.parkingDetails,"__typename","id")}),A=()=>{let e=(0,m.Z)(),t=(0,w.z)(),r=(0,u.u)({defaultValues:j(t)}),{handleSubmit:d,formState:c}=r,f=(0,y.d9)();if(t?.id)return(0,s.jsx)(o.e.Step,{id:i.Q,validationInput:t,children:(0,s.jsx)("div",{children:(0,s.jsx)(h.RV,{...r,children:(0,s.jsxs)(y.a9,{onChange:d(e=>{let r=e.wifi?.security!==v.FT.Nopass&&!e.wifi?.password;r&&!c.dirtyFields.features&&c.dirtyFields.wifi||f({variables:{input:(0,a.Eo)({listingId:t.id,...b()(e,(e,t)=>"wifi"===t&&r)})}})}),children:[(0,s.jsx)(l.b,{title:e.formatMessage({defaultMessage:"Your features",id:"3tZRhZznGq",description:"Host listing onboarding: 'Features and rules' step title"}),subtitle:e.formatMessage({defaultMessage:"Select which features your holiday home offers. Features are one of the key elements guests look at.",id:"Ovkfn7xy5P",description:"Host listing onboarding: 'Features and rules' step introduction"})}),(0,s.jsx)(n.Q,{namePrefix:"features",currency:t.pricing.currency})]})})})})};function _(){return(0,s.jsx)(A,{})}},87926:function(e,t,r){"use strict";r.d(t,{Q:function(){return l},nX:function(){return u}});var s=r(61716),n=r(56610),a=r(71430);let i=`${n.Rn.FeaturesAndRules}`,l=i,o=`${i}_SUCCESS`,u={id:i,title:(0,s.Em)({defaultMessage:"Features",id:"vUJ2oFdBm8",description:'Host listing onboarding: "Features" section title'}),steps:[{id:l,path:"/features",validations:{whenActive:{strictness:"nonBlocking",validate:a.vT},whenInactive:{strictness:"nonBlocking",validate:a.vT}}},{id:o,path:"/features/success",data:{successStep:!0}}]}},71430:function(e,t,r){"use strict";r.d(t,{jY:function(){return a},jd:function(){return i},nu:function(){return n},vT:function(){return l}});var s=r(10886);let n=s.object({url:s.url()}),a=s.object({signedId:s.string()});function i(e){return t=>{var r;return t?{success:(r=e.safeParse(t)).success,issues:r.success?void 0:r.error.issues.map(e=>({message:e.message,field:e.path.join(".")})),errors:r.success?void 0:r.error}:{success:!1,issues:[],errors:void 0}}}function l(e){return{success:!!e}}},52022:function(e,t,r){"use strict";r.d(t,{W:function(){return g}});var s=r(97458),n=r(47937),a=r(52983),i=r(49574),l=r(29799),o=r(99888),u=r(13091),d=r(80331),c=r(70858),f=r(31117),p=r(34460);let g=(0,a.forwardRef)(({name:e,register:t,className:r,style:n,placeholder:a,prefixIcon:i,children:l,validation:o,...u},g)=>{let m=(0,p.v)(),v=m?.floating,x=m?.label,y=(0,s.jsx)(b,{ref:g,name:e,register:t,style:n,placeholder:a,validation:o,...u,className:"pl-3",children:l});return(0,s.jsxs)(d.J,{className:[r,"relative flex"].filter(Boolean).join(" "),children:[(0,s.jsx)(f.fw,{prefixIcon:i}),v&&x?(0,s.jsx)(c.Ec,{label:x,children:y}):y,(0,s.jsx)(h,{})]})});g.displayName="FieldSelect";let b=(0,a.forwardRef)(({name:e,register:t,className:r,style:l,placeholder:d,children:f,validation:p,onFocus:g,onBlur:b,onChange:h,...m},v)=>{let x=(0,c.Bo)(),y=(0,a.useRef)(void 0),{ref:w,onBlur:j,onChange:A,defaultValue:_,...N}=(0,u.k)(e,v,{required:m.required,disabled:m.disabled,...p},t),E=(0,i.qq)(y,w);return(0,a.useEffect)(()=>{x&&y.current&&x.setHasValue(""!==y.current.value)},[x]),(0,s.jsxs)(n.ys.Select,{ref:E,style:{...l,backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==)"},onFocus:e=>{x?.setFocused(!0),g?.(e)},onBlur:e=>{x?.setFocused(!1),j?.(e),b?.(e)},onChange:e=>{x?.setHasValue(""!==e.currentTarget.value),A?.(e),h?.(e)},defaultValue:_??"",...N,...m,className:[r,"w-full shrink grow cursor-pointer select-auto appearance-none border-0 bg-transparent pr-4.5 disabled:cursor-not-allowed","focus:outline-none focus:ring-0",(0,o.b)("py-3",x&&"pb-2 pt-3.5"),...x?["font-medium","transition-colors duration-100",!x?.hasValue&&"focus:text-neutral-500 focus:delay-100 focus:duration-500 [&:not(:focus)]:text-transparent"]:[]].filter(
1Boolean).join(" "),children:[d&&(0,s.jsx)("option",{value:"",disabled:!0,children:d}),f]})});b.displayName="SelectElement";let h=()=>(0,s.jsx)("span",{role:"presentation","aria-hidden":!0,className:"pointer-events-none grid w-2.5 place-content-center items-center border-l border-l-neutral-300 text-neutral-600 absolute bottom-2 right-0 top-2 [select:disabled+&]:text-neutral-600/50",children:(0,s.jsx)(l.Z,{className:"rotate-90"})})},87413:function(e,t,r){"use strict";r.d(t,{E:function(){return p}});var s=r(97458),n=r(47937),a=r(52983),i=r(49574),l=r(99888),o=r(23740),u=r(13091),d=r(80331),c=r(70858),f=r(34460);let p=(0,a.forwardRef)(({name:e,className:t,validation:r,...n},a)=>{let i=(0,f.v)(),l=i?.floating,o=i?.label,u=(0,s.jsx)(g,{ref:a,name:e,validation:r,className:t,...n});return l&&o?(0,s.jsx)(c.Ec,{label:o,children:u}):u});p.displayName="FieldTextarea";let g=(0,a.forwardRef)(({name:e,register:t,className:r,validation:f,onFocus:p,onBlur:g,onInput:b,onChange:h,onScroll:m,...v},x)=>{let y=(0,a.useContext)(d.f),w=(0,o.a)(),j=(0,c.Bo)(),A=(0,a.useRef)(void 0),{ref:_,onBlur:N,onChange:E,...F}=(0,u.k)(e,x,{required:v.required,disabled:v.disabled,...f},t),k=(0,i.qq)(A,_);return(0,a.useEffect)(()=>{j&&A.current&&(j.setHasValue(!!A.current.value),j.setIsScrolled(A.current.scrollTop>0))},[j]),(0,s.jsx)(n.ys.Textarea,{ref:k,onFocus:e=>{j?.setFocused(!0),p?.(e)},onBlur:e=>{j?.setFocused(!1),N?.(e),g?.(e)},onInput:e=>{j?.setHasValue(!!e.currentTarget.value),b?.(e)},onChange:e=>{E?.(e),h?.(e)},onScroll:e=>{j?.setIsScrolled(e.currentTarget.scrollTop>0),m?.(e)},...F,...v,className:[r,"w-full resize-y px-3",...w.cursor,...w.placeholder,...y?["w-0 shrink grow select-auto appearance-none border-0 bg-transparent","focus:outline-none focus:ring-0"]:[...w.base],(0,l.b)("py-3",j&&"pb-3 pt-3.5"),j&&"font-medium"].filter(Boolean).join(" ")})});g.displayName="TextareaElement"},28073:function(e,t,r){"use strict";r.d(t,{P:function(){return p}});var s=r(97458),n=r(73352),a=r.n(n),i=r(36898),l=r(24869),o=r(57980),u=r(67062),d=r(34460),c=r(52022),f=r(13091);function p(e){let t=(0,f.B)(),r=e.name&&t&&t.formState.errors[e.name]?.message||e.errorMessage,n=a()(e,["label","description","errorMessage","helperText","className","floating"]);return(0,s.jsxs)(d.T,{invalid:!!r,required:e.required,disabled:e.disabled,className:e.className,floating:e.floating,label:e.floating?e.label:void 0,children:[e.label&&!e.floating&&(0,s.jsx)(u.Q,{children:e.label}),(0,s.jsx)(i.D,{children:e.description}),(0,s.jsx)(c.W,{...n,children:e.children}),(0,s.jsx)(l.F,{children:r}),(0,s.jsx)(o.p,{children:e.helperText})]})}}},function(e){e.O(0,[1367,6028,7746,886,3395,3574,3644,5138,625,1203,1524,7431,2888,9774,179],function(){return e(e.s=5823)}),_N_E=e.O()}]);
2//# sourceMappingURL=features-278c53d4e15ce84e.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.