PageSourceSearch

https://rentbird.nl/build/assets/PreferencesPage-olmlYLMp.js

js rentbird.nl collected 2026-09-25 03:24:05 UTC 6,084 bytes, 2 lines download raw bytes

1import{_ as C}from"./MyRentbirdLayout-3E6bhpRo.js";import{_ as P}from"./MyRentbirdBackButton-BtmD-N-d.js";import{_ as M}from"./MyRentbirdCard-VOl62sT5.js";import{_ as E}from"./NumberOfMatchesBoxAllSearchProfiles-DGXV52PY.js";import{z as S,t as y,h as D,d as A}from"./app--lW3PYU6.js";import{_ as I}from"./Select-BX0W5tha.js";import{s as L,_ as N,a as V}from"./NotificationChannel-CrgJIbyU.js";import{_ as H}from"./InfoMessageBox-CMWcrt42.js";import{I as T}from"./light-BTHTKyC0.js";import{_ as x}from"./ButtonAppDownload-FqMzovjx.js";import{i as B,a as R}from"./FeatureFlags-DwRrUPKK.js";import{r as p,w as $,z as i,A as g,B as c,V as f,C as O,E as r,u as v,I as w,J as _,F as b,c as U,W as z,U as W}from"./Button-CusjfCl3.js";import{_ as F}from"./Checkbox-BNbi_2jG.js";import{r as j}from"./ServerData-Df7AbZrk.js";import"./MyRentbirdNavbar-DC-kC8hd.js";import"./CustomTransitionFade-CFmPF1Vd.js";import"./NavMenuFoldout-BNqjGQoy.js";import"./Auth-CILhOUlI.js";import"./CustomTransitionExpand-BU1cchEK.js";import"./NumberOfMatchesBox-BnF4x2pQ.js";import"./thumbs-up-BVAKj5su.js";import"./MatchesPerWeek-BHnt3vcw.js";import"./B2B-CtdGLEVc.js";import"./InlineCheckboxGroup-C1w63puD.js";import"./SearchProfile-DGxU2BIs.js";import"./ZiggyUrls-DucTovgg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"17af8e55c580f79fe0bd3ddf4616f461480ef34d"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(n){for(var s=1;s<arguments.length;s++){var a=arguments[s];if(a!=null)for(var l in a)a.hasOwnProperty(l)&&(n[l]=a[l])}return n}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:rentbird-frontend":!0});var o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="43387b81-130a-4257-ac9d-d267dc3525c3",e._sentryDebugIdIdentifier="sentry-dbid-43387b81-130a-4257-ac9d-d267dc3525c3")}catch{}})();const q=["innerHTML"],J={key:1,class:"text-base mt-[8px]"},K={key:2,class:"flex space-x-[8px]"},Y={__name:"NotificationChannelSelect",props:{classLabel:{type:String,default:""},showDownloadAppLabel:{type:Boolean,default:!0}},emits:["update:can-continue"],setup(e,{expose:o,emit:n}){const{user:s}=S(),a=p(s.value.notificationChannel),l=p({});$(a,()=>{a.value==="email"&&t("update:can-continue",!0)}),o({internalSaveNotifcationChannel:()=>L(l,a)});const t=n,d=U(()=>[{label:y("Common.Email"),value:"email"},{label:y("Common.MobileApp"),value:"mobile"}]);return(m,h)=>(i(),g("div",null,[c("label",{class:O(`block font-medium text-base mb-2 text-purple-700 ${e.classLabel}`)},f(m.$trans("NotificationChannelSelect.Label")),3),r(I,{modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=k=>a.value=k),options:d.value},null,8,["modelValue","options"]),v(s).hasMobilePhoneLinked?b("",!0):(i(),w(H,{key:0,class:"mt-[8px]",color:"blue",image:v(T)},{default:_(()=>[c("div",{innerHTML:m.$trans("NotificationChannelSelect.InstallOurAppMessage")},null,8,q)]),_:1},8,["image"])),e.showDownloadAppLabel?(i(),g("p",J,f(m.$trans("NotificationChannelSelect.DownloadTheApp")),1)):b("",!0),e.showDownloadAppLabel?(i(),g("div",K,[v(B)()?(i(),w(x,{key:0,"is-android":!1,class:"w-[165px]",href:"https://apps.apple.com/us/app/rentbird-find-rental-houses/id6468817766"})):b("",!0),v(R)()?(i(),w(x,{key:1,"is-android":!0,class:"w-[165px]",href:"https://play.google.com/store/apps/details?id=io.rentbird"})):b("",!0)])):b("",!0)]))}},G=["innerHTML"],Q={__name:"ShowHouseDetailPageInput",props:{saveOnValueChange:{type:Boolean,default:!0}},setup(e,{expose:o}){const n=e,{user:s}=S(),a=p(s.value.showHouseDetailPage),l=D(),u=p({});$(a,async()=>{n.saveOnValueChange&&await t()});const t=async()=>{l.startLoading(),u.value={};try{const d=await A("/api/user/show-house-detail-page",{show_house_detail_page:a.value});return d.hasErrors?(u.value=d.errors,!1):(j(),!0)}finally{l.stopLoading()}};return o({saveShowHouseDetailPage:t}),(d,m)=>(i(),g("div",null,[r(F,{modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=h=>a.value=h)},{default:_(()=>[c("span",{class:"text-base",innerHTML:d.$trans("ShowInbetweenPageInput.Label")},null,8,G)]),_:1},8,["modelValue"])]))}},X={class:"block lg:flex justify-start"},Z={class:"lg:mr-8 lg:w-1/2"},ee={class:"mt-4 lg:mt-0 mb-4 lg:mb-0 lg:w-1/2"},ae={class:"lg:text-lg font-medium mb-3"},te={key:0},se={key:1},De={__name:"PreferencesPage",setup(e){const o=p(null),n=p(null),s=p(null),a=p(!1),l=async()=>
1{if(!await s.value.internalSaveNotifcationChannel())return;await n.value.saveShowHouseDetailPage()&&(a.value=!0)};return(u,t)=>(i(),w(C,null,{default:_(()=>[r(P),r(M,{class:"mt-[16px] lg:mt-[24px]","can-expand-on-mobile":!1},{title:_(()=>[W(f(u.$trans("PerferencesPage.Title")),1)]),default:_(()=>[r(Y,{ref_key:"notificationChannelSelectRef",ref:s,class:"mt-[16px]","class-label":"lg:text-lg text-purple-900 lg:mb-3"},null,512),t[2]||(t[2]=c("div",{class:"w-full border-b border-[#E0E0E1] mt-[24px] mb-[24px]"},null,-1)),r(E,{ref_key:"numberOfMatchesBoxRef",ref:o,class:"mb-4 lg:mb-6"},null,512),c("div",X,[c("div",Z,[r(N,{"title-location":"top","checkbox-location":"left","class-label":"lg:text-lg text-purple-900",onAccountSettingsUpdated:t[0]||(t[0]=()=>{o.value.recalculateAllMatchesPerWeek()})})]),c("div",ee,[r(V,{"checkbox-location":"left","class-label":"lg:text-lg text-purple-900",onAccountSettingsUpdated:t[1]||(t[1]=()=>{o.value.recalculateAllMatchesPerWeek()})})])]),t[3]||(t[3]=c("div",{class:"w-full border-b border-[#E0E0E1] mt-[24px] mb-[24px]"},null,-1)),c("div",ae,f(u.$trans("PreferencesPage.HouseDetailPageInputTitle")),1),r(Q,{ref_key:"showHouseDetailPageInputRef",ref:n,"save-on-value-change":!1},null,512),r(z,{class:"mt-[24px] lg:mt-[40px]","icon-right":a.value?"check":"save","full-width-on-mobile":!0,onClick:l},{default:_(()=>[a.value?(i(),g("span",te,f(u.$trans("Common.Saved")),1)):(i(),g("span",se,f(u.$trans("Common.Save")),1))]),_:1},8,["icon-right"])]),_:1})]),_:1}))}};export{De as default};
2//# sourceMappingURL=PreferencesPage-olmlYLMp.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.