PageSourceSearch

https://landfolk.com/_next/static/chunks/pages/my/host/listings/[l…/guide/preview-5a2e3043ee855f62.js

js landfolk.com collected 2026-09-24 22:57:47 UTC 9,324 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]="306a13a5-2f61-405b-a2ec-d5c59786703d",e._sentryDebugIdIdentifier="sentry-dbid-306a13a5-2f61-405b-a2ec-d5c59786703d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1887],{33408:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my/host/listings/[listingShortId]/guide/preview",function(){return n(26838)}])},26838:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(97458),i=n(71775),s=n(80215),o=n(7403),a=n(43184),u=n(13490),c=n(52983),l=n(81641),d=n(48938),f=n(91352);function h({listing:e}){let[t,n]=(0,c.useState)(!1),i=!!e.stayGuide?.sections.map(e=>e.state===d._f.Published||t).length;return(0,r.jsxs)("article",{className:"mb-4 mt-4 grid-cols-12 gap-3 lg:mt-4.5 lg:grid",children:[(0,r.jsx)("div",{className:"lg:col-start-1 lg:col-end-8 lg:pr-4.5 nl:mb-4.5",children:e.stayGuide&&(0,r.jsx)(a.GE,{listing:e,context:"booking",stayGuide:e.stayGuide,wifiSet:e.features.wifi.availability===d.km.Available,keyAccessSet:!!e.stayGuide.keyAccess,checkinOn:e.checkinTime,checkoutOn:e.checkoutTime,host:e.host,showDrafts:t,children:(0,r.jsx)("p",{children:i?(0,r.jsx)(l.Z,{defaultMessage:"Read the Landfolk guide to a perfect stay, created with ❤️ by {hostNames}.",id:"RgaTF4TcEE",description:"Listing stay guide: Host preview guide intro (where host has not published content yet)",values:{hostNames:e.host.displayName}}):(0,r.jsx)(l.Z,{defaultMessage:"We’ve collected the most important details for your stay in our Landfolk guide, so you can enjoy your getaway without worry. If you have any questions about your stay, feel free to reach out to {hostNames}.",id:"kZFqQ00cfH",description:"Listing stay guide: Host preview guide intro (where host has published content)",values:{hostNames:e.host.displayName}})})})}),(0,r.jsxs)("aside",{className:"rounded bg-white shadow-sm lg:sticky lg:top-4 lg:col-span-5 lg:col-start-8 lg:self-start lg:rounded lg:bg-white lg:px-4 lg:py-4 lg:shadow-sm nl:mb-5 nl:px-3 nl:py-3.5",children:[(0,r.jsx)("p",{className:"mb-3",children:(0,r.jsx)(l.Z,{defaultMessage:"This is how your guests will see your Landfolk Guide. They have access to it {publishedDaysBefore, plural, =0 {at} one {from # day before} other {from # days before}} their arrival and until their departure.",id:"D25wSySoWS",description:"Listing stay guide: Host preview guide explanation paragraph 1",values:{publishedDaysBefore:e.stayGuide?.publishedDaysBefore??0}})}),(0,r.jsx)("p",{className:"mb-3",children:(0,r.jsx)(l.Z,{defaultMessage:"If you want to tell your guests anything specific to their stay, you can always use the chat.",id:"g0Pezktbva",description:"Listing stay guide: Host preview guide explanation paragraph 2"})}),(0,r.jsx)("hr",{className:"my-4 border-neutral-300"}),(0,r.jsx)(u.G,{type:"checkbox",label:(0,r.jsx)(l.Z,{defaultMessage:"Show your draft sections in the preview",id:"2yvJMtPIXM",description:"Listing stay guide: Host preview toggle drafts checkbox label"}),defaultChecked:t,onChange:e=>{n(e.target.checked)},className:"my-4"}),(0,r.jsx)("div",{className:"mt-4 flex justify-end",children:(0,r.jsx)(f.Z,{href:t=>t.hostListingSettings(e.shortId).index,className:"nl:ml-auto",children:(0,r.jsx)(l.Z,{defaultMessage:"Continue editing",id:"Eugly7MTix",description:"Listing stay guide: Host preview guide go to editing call to action"})})})]})]})}var g=n(99650);function p(){let{listingShortId:e}=(0,s.useRouter)().query;(0,g.W)();let t=(0,o.k8)({variables:{id:e,usePrimaryLocale:!1},skip:!e});if("string"==typeof e)return(0,r.jsx)(i.G,{query:t,field:"viewer",children:({listing:e})=>
1{if(e)return(0,r.jsx)(h,{listing:e})}})}},91352:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(97458),i=n(61959),s=n(44664);function o({kind:e,children:t,light:n,size:o,danger:a,state:u,style:c,className:l,disabled:d,onClick:f,...h}){let g={kind:e,light:n,size:o,danger:a,state:u,style:c,className:[l,"text-center"].filter(Boolean).join(" "),disabled:d,onClick:f};return d||u?(0,r.jsx)(i.zx,{...g,children:t}):(0,r.jsx)(i.zx,{asChild:!0,...g,children:(0,r.jsx)(s.r,{...h,children:t})})}},89714:function(e,t,n){"use strict";function r(e,t){for(var n=Math.abs(e).toString();n.length<t;)n="0"+n;return(e<0?"-":"")+n}n.d(t,{Z:function(){return r}})},62842:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(117),i=n(89714),s=n(66034);function o(e,t){(0,s.Z)(1,arguments);var n,o,a=(0,r.Z)(e);if(isNaN(a.getTime()))throw RangeError("Invalid time value");var u=String(null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"extended"),c=String(null!==(o=null==t?void 0:t.representation)&&void 0!==o?o:"complete");if("extended"!==u&&"basic"!==u)throw RangeError("format must be 'extended' or 'basic'");if("date"!==c&&"time"!==c&&"complete"!==c)throw RangeError("representation must be 'date', 'time', or 'complete'");var l="",d="",f="extended"===u?"-":"";if("time"!==c){var h=(0,i.Z)(a.getDate(),2),g=(0,i.Z)(a.getMonth()+1,2),p=(0,i.Z)(a.getFullYear(),4);l="".concat(p).concat(f).concat(g).concat(f).concat(h)}if("date"!==c){var y=a.getTimezoneOffset();if(0!==y){var v=Math.abs(y),b=(0,i.Z)(Math.floor(v/60),2),m=(0,i.Z)(v%60,2);d="".concat(y<0?"+":"-").concat(b,":").concat(m)}else d="Z";var x=(0,i.Z)(a.getHours(),2),w=(0,i.Z)(a.getMinutes(),2),j=(0,i.Z)(a.getSeconds(),2),k=""===l?"":"T",S=[x,w,j].join("extended"===u?":":"");l="".concat(l).concat(k).concat(S).concat(d)}return l}},13863:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(69092),i=n(117),s=n(66034);function o(e,t){(0,s.Z)(2,arguments);var n=(0,i.Z)(e),o=(0,r.Z)(t);return n.setHours(o),n}},31927:function(e,t,n){"use strict";n.d(t,{U:function(){return o},t:function(){return a}});var r=n(58468);let i=(0,n(30980).v)({storageKey:"promo",storageType:"localStorage"}),s=i.hydrate(),o=(0,r.sj)({dismissals:{},completed:{},...s}),a={dismiss(e){o.dismissals[e]=new Date().toJSON()},complete(e){o.completed[e]=new Date().toJSON()},reactivate(e){delete o.dismissals[e]}};(0,r.Ld)(o,()=>i.dehydrate(o))},71775:function(e,t,n){"use strict";n.d(t,{G:function(){return u}});var r=n(97458),i=n(80215),s=n(74252),o=n(48315),a=n(82415);function u({children:e,field:t,query:n,renderError:o,renderLoading:a,renderNotFound:u,awaitRouterReady:l,onLaunchSupport:d}){let f=(0,i.useRouter)(),{loading:h,error:g,previousData:p}=n,{data:y}=n;return(h&&p&&(y=p),!y&&(h||f.isFallback)||l&&!f.isReady)?a?.(n)||(0,r.jsx)(s.L,{}):g&&"not found"!==g.message.toLowerCase()&&!g.message.toLowerCase().includes("no object found")?(console.error("error",g),o?.(g,n)||(0,r.jsx)(c,{error:g,onLaunchSupport:d})):y&&(!t||y[t])?e(t?y[t]:y,h):u?.(n)||(0,r.jsx)(c,{onLaunchSupport:d})}function c({error:e,onLaunchSupport:t}){if(!e)return(0,r.jsx)(l,{children:(0,r.jsx)(o.B,{errorType:"not-found",onLaunchSupport:t})});let n=(0,a.k)(e);return(0,r.jsx)(l,{children:(0,r.jsx)(o.B,{errorType:n.type,subtitle:n.message,technicalDetails:n.technicalDetails,onRetry:"not-found"===n.type?void 0:()=>window.location.reload(),onLaunchSupport:t})})}let l=(0,n(99888).z)("div","flex h-screen max-h-8 items-center justify-center")},44360:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(52983);function i(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}function s(e){void 0===e&&(e={});var t,n,s,o,a,u,c=e.onResize,l=(0,r.useRef)(void 0);l.current=c;var d=e.round||Math.round,f=(0,r.useRef)(),h=(0,r.useState)({width:void 0,height:void 0}),g=h[0],p=h[1],y=(0,r.useRef)(!1);(0,r.useEffect)(function(){return y.current=!1,function(){y.current=!0}},[]);var v=(0,r.useRef)({width:void 0,height:void 0}),b=(t=(0,r.useCallback)(function(t){return f.current&&f.current.box===e.box&&f.current.round===d||(f.current={box:e.box,round:d,instance:new ResizeObserver(function(t){var n=t[0],r="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",s=i(n,r,"inlineSize"),o=i(n,r,"blockSize"),a=s?d(s):void 0,u=o?d(o):void 0;if(v.current.width!==a||v.current.height!==u){var c={width:a,height:u};v.current.width=a,v.current.height=u,l.current?l.current(c):y.current||p(c)}})}),f.current.instance.observe(t,{box:e.box}),function(){f.current&&f.current.instance.unobserve(t)}},[e.box,d]),n=e.ref,s=(0,r.useRef)(null),(o=(0,r.useRef)(null)).current=n,a=(0,r.useRef)(null),(0,r.useEffect)(function(){u()}),u=(0,r.useCallback)(function(){var e=a.current,n=o.current,r=e||(n?n instanceof Element?n:n.current:null);s.current&&s.current.element===r&&s.current.subscriber===t||(s.current&&s.current.cleanup&&s.current.cleanup(),s.current={element:r,subscriber:t,cleanup:r?t(r):void 0})},[t]),(0,r.useEffect)(function(){return function(){s.current&&s.current.cleanup&&(s.current.cleanup(),s.current=null)}},[]),(0,r.useCallback)(function(e){a.current=e,u()},[u]));return(0,r.useMemo)(function(){return{ref:b,width:g.width,height:g.height}},[b,g.width,g.height])}}},function(e){e.O(0,[1367,6028,7746,8256,3644,99,7614,3184,4210,2888,9774,179],function(){return e(e.s=33408)}),_N_E=e.O()}]);
2//# sourceMappingURL=preview-5a2e3043ee855f62.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.