1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[185],{2851:(e,t,a)=>{var n=a(1),l=a(7),o=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,s,u,d,f,c,p,v,m,b,x,y,_,g,k,w,E,h,S,N,A,O,I,L=l(a(32)),C=l(a(19)),D=l(a(106)),F=l(a(48)),P=l(a(81)),R=l(a(104)),T=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var l,r,i={__proto__:null,default:e};if(null===e||"object"!=o(e)&&"function"!=typeof e)return i;if(l=t?n:a){if(l.has(e))return l.get(e);l.set(e,i)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((r=(l=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(r.get||r.set)?l(i,s,r):i[s]=e[s]);return i}(e,t)}(a(0)),M=a(423),W=a(105),j=l(a(2852)),U=l(a(2853)),H=l(a(2854)),K=l(a(2855)),B=l(a(2856)),V=l(a(2857)),G=l(a(754)),Y=l(a(2873));function q(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function z(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?q(Object(a),!0).forEach(function(t){(0,C.default)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):q(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var X="VISIT_AVAILABILITY_TYPE",J="SHORT_NOTICE_AVAILABLE",$="VIRTUAL_VISIT_PREFERENCE",Q=[{id:"FULL_TIME_WORKER",img:j.default,title:"After work on weekdays",description:"5-9 pm slots available"},{id:"WEEKEND_PREFERRED",img:U.default,title:"Mostly available on weekends",description:"All day for weekends"},{id:"FLEXIBLE_TIMINGS",img:H.default,title:"I have flexible timing",description:"Available both weekday and weekend"}],Z={17:{label:"Early evening",isPopular:!0},18:{label:"Prime time",isPopular:!1},19:{label:"Late evening",isPopular:!1},20:{label:"Early night",isPopular:!1},9:{label:"Morning",isPopular:!1},10:{label:"Mid morning",isPopular:!1},11:{label:"Late morning",isPopular:!1},12:{label:"Afternoon",isPopular:!1},13:{label:"Early afternoon",isPopular:!1},14:{label:"Mid afternoon",isPopular:!1},15:{label:"Late afternoon",isPopular:!1},16:{label:"Pre-evening",isPopular:!1}},ee=function(e){if(!e)return"";var t=e.split(":"),a=(0,R.default)(t,1)[0],n=parseInt(a,10);return 0===n?"12 am":n<12?"".concat(n," am"):12===n?"12 pm":"".concat(n-12," pm")},te=function(e,t){var a,n,l,o;return{slotCode:"".concat(t,"_").concat(e.id),rawId:e.id,label:"".concat(ee(null===(a=e.slotStart)||void 0===a?void 0:a.time)," - ").concat(ee(null===(n=e.slotEnd)||void 0===n?void 0:n.time)),dayType:t,startHour:(o=null===(l=e.slotStart)||void 0===l?void 0:l.time,parseInt(null==o?void 0:o.split(":")[0],10))}},ae=function(e){var t=e.color,a=void 0===t?"#fff":t,n=e.size,l=void 0===n?10:n;return(0,P.default)("svg",{width:l,height:l,viewBox:"0 0 10 8",fill:"none","aria-hidden":"true"},void 0,(0,P.default)("path",{d:"M1 4L3.5 6.5L9 1",stroke:a,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}))},ne=function(){return r||(r=(0,P.default)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",className:"animate-spin"},void 0,(0,P.default)("circle",{cx:"12",cy:"12",r:"10",stroke:"rgba(255,255,255,0.3)",strokeWidth:"3"}),(0,P.default)("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round"})))},le=function(){return i||(i=(0,P.default)("div",{className:"h-[62px] rounded-2xl bg-gradient-to-r from-gray-100 via-gray-50 to-gray-100 animate-pulse"}))},oe=function(){return s||(s=(0,P.default)("div",{className:"h-[58px] rounded-xl bg-gradient-to-r from-gray-100 via-gray-50 to-gray-100 animate-pulse"}))},re=function(e){var t=e.isSelected;return(0,P.default)("div",{className:"w-[20px] h-[20px] rounded-full border-2 flex items-center justify-center flex-shrink-0 transition-all duration-150\n ".concat(t?"border-[#24A398] bg-[#24A398]":"border-gray-300 bg-white")},void 0,t&&(u||(u=(0,P.default)("div",{className:"w-[7px] h-[7px] rounded-full bg-white"}))))},ie=function(e){var t=e.isSelected;return(0,P.default)("div",{className:"w-[20px] h-[20px] rounded-[4px] border-[1.5px] flex items-center justify-center flex-shrink-0 transition-all duration-150\n ".concat(t?"border-[#24A398] bg-[#24A398]":"border-gray-400 bg-white")},void 0,t&&(d||(d=(0,P.default)(ae,{}))))},se=function(e){var t=e.currentStep,a=e.totalSteps;return(0,P.default)("div",{className:"flex items-center gap-3 px-[20px] mt-3 mb-2"},void 0,(0,P.default)("div",{className:"relative flex-1 h-[3px] bg-[#fff] rounded-full"},void 0,(0,P.default)("div",{className:"absolute left-0 top-0 h-full bg-[#24A398] rounded-full transition-all duration-500 ease-in-out",style:{width:"".concat(t/a*100,"%")}}),Array.from({length:a},function(e,n){var l=n+1,o=l<=t,r=l/a*100;return(0,P.default)("div",{className:"absolute top-1/2 -translate-y-1/2 w-[8px] h-[8px] rounded-full border-1 border-white transition-all duration-500 ease-in-out",style:{left:"calc(".concat(r,"% - 5px)"),background:o?"#24A398":"#DDDDDD"}},l)})),(0,P.default)("span",{className:"text-[12px] text-gray-400 font-medium whitespace-nowrap font-[Source_Sans_3]"},void 0,t,"/",a))},ue=function(){return f||(f=(0,P.default)("div",{className:"flex items-center gap-2 bg-[#F4F2DF] px-3 py-3 mt-4 absolute bottom-[83px] w-[100%] -ml-[21px]"},void 0,(0,P.default)("img",{src:V.default,alt:"",className:"w-[17px] h-[17px] flex-shrink-0"}),(0,P.default)("p",{className:"text-[12px] text-[#B7945E] leading-snug mb-0 font-[Source_Sans_3]"},void 0,"Adding more slots improves your chances of faster confirmation.")))},de=function(e){var t=e.onClose,a=e.onConfirm,n={loop:!1,autoplay:!0,animationData:e.animationData,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}};return(0,T.useEffect)(function(){(0,W.nbGaEvent)("tenant_slot_requirement","confirm_page")},[]),(0,P.default)("div",{className:"px-[35px] pt-[45px] flex flex-col items-center justify-center h-full"},void 0,(0,P.default)("div",{className:"w-[200px] h-[200px]"},void 0,(0,P.default)(G.default,{options:n,height:200,width:200})),c||(c=(0,P.default)("p",{className:"text-[24px] font-bold text-[#5F5D4E] mt-[30px] mb-1 font-[Source_Sans_3]"},void 0,"Thank you !")),p||(p=(0,P.default)("p",{className:"text-[16px] text-[#5F5D4E] text-center font-[Source_Sans_3] mt-[12px]"},void 0,"Your visit preference has been saved. We will contact you to schedule your visit.")),(0,P.default)("button",{type:"button",onClick:function(){(0,W.nbGaEvent)("tenant_slot_requirement","okay"),null==a||a(),null==t||t()},className:"mt-6 px-10 py-[13px] w-[225px] rounded-[14px] border border-[#24A398] text-[#24A398] text-[15px] font-semibold font-[Source_Sans_3]"},void 0,"Okay"))};t.default=function(e){var t,a=e.userId,l=e.userPhone,o=e.onClose,r=e.onConfirm,i=(0,T.useState)(1),s=(0,R.default)(i,2),u=s[0],d=s[1],f=(0,T.useState)(null),c=(0,R.default)(f,2),p=c[0],C=c[1],j=(0,T.useState)([]),U=(0,R.default)(j,2),H=U[0],V=U[1],G=(0,T.useState)(!1),q=(0,R.default)(G,2),ee=q[0],ae=q[1],fe=(0,T.useState)(!1),ce=(0,R.default)(fe,2),pe=ce[0],ve=ce[1],me=(0,T.useState)([]),be=(0,R.default)(me,2),xe=be[0],ye=be[1],_e=(0,T.useState)(!1),ge=(0,R.default)(_e,2),ke=ge[0],we=ge[1],Ee=(0,T.useState)(!1),he
1=(0,R.default)(Ee,2),Se=he[0],Ne=he[1],Ae=(0,T.useState)(null),Oe=(0,R.default)(Ae,2),Ie=Oe[0],Le=Oe[1],Ce=(0,T.useState)([]),De=(0,R.default)(Ce,2),Fe=De[0],Pe=De[1];(0,T.useEffect)(function(){(0,W.nbGaEvent)("tenant_slot_requirement","Jacket View")},[]),(0,T.useEffect)(function(){if(2===u){p&&(0,W.nbGaEvent)("tenant_slot_requirement",{FULL_TIME_WORKER:"weekday_slot_view",WEEKEND_PREFERRED:"weekend_slot_view",FLEXIBLE_TIMINGS:"flexible_slot_view"}[p])}},[u]);var Re=function(e){if("FULL_TIME_WORKER"===p){return{17:"weekday_five_six",18:"weekday_six_seven",19:"weekday_seven_eight",20:"weekday_eight_nine"}[e]||null}if("WEEKEND_PREFERRED"===p){return{9:"weekend_nine_eleven",11:"weekend_eleven_one",13:"weekend_one_three",15:"weekend_three_five",17:"weekend_five_seven",19:"weekend_seven_nine"}[e]||null}if("FLEXIBLE_TIMINGS"===p){return{9:"flexible_nine_eleven",11:"flexible_eleven_one",13:"flexible_one_three",15:"flexible_three_five",17:"flexible_five_seven",19:"flexible_seven_nine"}[e]||null}return null},Te=function(){var e=(0,F.default)(L.default.mark(function e(t){var a,l,o,r,i,s,u,d,f;return L.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(we(!0),e.prev=1,"FULL_TIME_WORKER"!==t){e.next=3;break}return e.next=2,(0,M.getAvailabilitySlotsListByEntityApi)("SCHEDULE_VISIT_POST_WORK_HOURS");case 2:l=e.sent,o=(null==l||null===(a=l.data)||void 0===a?void 0:a.data)||{},r=((null==o?void 0:o.weekdaySlots)||[]).map(function(e){return te(e,"WEEKDAY")}).sort(function(e,t){return e.startHour-t.startHour}),Pe(r),e.next=5;break;case 3:return e.next=4,(0,M.getAvailabilitySlotsListApi)();case 4:s=e.sent,u=(null==s||null===(i=s.data)||void 0===i?void 0:i.data)||{},d=[].concat((0,D.default)(((null==u?void 0:u.weekdaySlots)||[]).map(function(e){return te(e,"WEEKDAY")})),(0,D.default)(((null==u?void 0:u.weekendSlots)||[]).map(function(e){return te(e,"WEEKEND")}))).sort(function(e,t){return e.startHour-t.startHour}),ye(d);case 5:e.next=7;break;case 6:e.prev=6,f=e.catch(1),n.error("[AvailabilityBottomSleeve] Failed to load slots:",f);case 7:return e.prev=7,we(!1),e.finish(7);case 8:case"end":return e.stop()}},e,null,[[1,6,7,8]])}));return function(t){return e.apply(this,arguments)}}();(0,T.useEffect)(function(){var e=function(){var e=(0,F.default)(L.default.mark(function e(){var t,l,o,r,i,s,u,d,f,c,p,v,m,b,x,y,_,g,k,w,E,h,S,N,A;return L.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a){e.next=1;break}return e.abrupt("return");case 1:return we(!0),e.prev=2,e.next=3,Promise.allSettled([(0,M.getUserAttributeApi)(a,X),(0,M.getUserAttributeApi)(a,J),(0,M.getUserAttributeApi)(a,$)]);case 3:if(i=e.sent,s=(0,R.default)(i,3),u=s[0],d=s[1],f=s[2],!(c="fulfilled"===u.status?null===(t=u.value)||void 0===t||null===(l=t.data)||void 0===l||null===(o=l.data)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.attributeValue:null)){e.next=4;break}return C(c),e.next=4,Te(c);case 4:return p="FULL_TIME_WORKER"===c?"SCHEDULE_VISIT_POST_WORK_HOURS":"SCHEDULE_VISIT",e.prev=5,e.next=6,(0,M.getBookedAvailabilitySlotsApi)(a,p);case 6:v=e.sent,(m=[].concat((0,D.default)(((null==v?void 0:v.weekdaySlots)||[]).map(function(e){return"WEEKDAY_".concat(e.id)})),(0,D.default)(((null==v?void 0:v.weekendSlots)||[]).map(function(e){return"WEEKEND_".concat(e.id)})))).length&&V(m),e.next=8;break;case 7:e.prev=7,N=e.catch(5),n.error("[AvailabilityBottomSleeve] Failed to load booked slots:",N);case 8:"fulfilled"===d.status&&null!=(g=null===(b=d.value)||void 0===b||null===(x=b.data)||void 0===x||null===(y=x.data)||void 0===y||null===(_=y[0])||void 0===_?void 0:_.attributeValue)&&ae("true"===String(g)),"fulfilled"===f.status&&null!=(S=null===(k=f.value)||void 0===k||null===(w=k.data)||void 0===w||null===(E=w.data)||void 0===E||null===(h=E[0])||void 0===h?void 0:h.attributeValue)&&ve("true"===String(S)),e.next=10;break;case 9:e.prev=9,A=e.catch(2),n.error("[AvailabilityBottomSleeve] Failed to load preferences:",A);case 10:return e.prev=10,we(!1),e.finish(10);case 11:case"end":return e.stop()}},e,null,[[2,9,10,11],[5,7]])}));return function(){return e.apply(this,arguments)}}();e()},[a]);var Me,We,je=xe.filter(function(e){return"WEEKDAY"===e.dayType}),Ue=xe.filter(function(e){return"WEEKEND"===e.dayType}),He=("FULL_TIME_WORKER"===p&&je.filter(function(e){return e.startHour>=17}),T.default.useMemo(function(){var e=new Map;
1return[].concat((0,D.default)(je),(0,D.default)(Ue)).forEach(function(t){e.has(t.label)?e.get(t.label).allCodes.push(t.slotCode):e.set(t.label,z(z({},t),{},{allCodes:[t.slotCode]}))}),Array.from(e.values()).sort(function(e,t){return e.startHour-t.startHour})},[je,Ue])),Ke=(0,T.useCallback)(function(e){V(function(t){return e.allCodes.some(function(e){return t.includes(e)})?t.filter(function(t){return!e.allCodes.includes(t)}):[].concat((0,D.default)(t),(0,D.default)(e.allCodes.filter(function(e){return!t.includes(e)})))})},[]),Be=(0,T.useCallback)(function(e){V(function(t){return t.includes(e)?t.filter(function(t){return t!==e}):[].concat((0,D.default)(t),[e])})},[]),Ve=1===u&&!!p||2===u&&H.length>0||3===u&&(ee||pe),Ge=function(){return[].concat((0,D.default)(xe),(0,D.default)(Fe)).filter(function(e){return H.includes(e.slotCode)}).map(function(e){return e.rawId})},Ye=function(){var e=(0,F.default)(L.default.mark(function e(){var t,o;return L.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Ve&&!Se){e.next=1;break}return e.abrupt("return");case 1:if(!(u<3)){e.next=2;break}return d(function(e){return e+1}),e.abrupt("return");case 2:return Ne(!0),Le(null),t="FULL_TIME_WORKER"===p?"SCHEDULE_VISIT_POST_WORK_HOURS":"SCHEDULE_VISIT",e.prev=3,e.next=4,Promise.all([(0,M.saveUserAttributeApi)(a,X,p,l),(0,M.saveAvailabilitySlotsApi)(a,Ge(),t),(0,M.saveUserAttributeApi)(a,J,ee,l),(0,M.saveUserAttributeApi)(a,$,pe,l)]);case 4:d(4),e.next=6;break;case 5:e.prev=5,o=e.catch(3),n.error("[AvailabilityBottomSleeve] Submission failed:",o),Le("Something went wrong. Please try again.");case 6:return e.prev=6,Ne(!1),e.finish(6);case 7:case"end":return e.stop()}},e,null,[[3,5,6,7]])}));return function(){return e.apply(this,arguments)}}(),qe=function(){var e=(0,F.default)(L.default.mark(function e(){var t,o;return L.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return ae(t=!ee),e.prev=1,e.next=2,(0,M.saveUserAttributeApi)(a,J,t,l);case 2:e.next=4;break;case 3:e.prev=3,o=e.catch(1),n.error("[AvailabilityBottomSleeve] Failed to save short notice:",o);case 4:case"end":return e.stop()}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),ze=function(){var e=(0,F.default)(L.default.mark(function e(){var t,o;return L.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return ve(t=!pe),e.prev=1,e.next=2,(0,M.saveUserAttributeApi)(a,$,t,l);case 2:e.next=4;break;case 3:e.prev=3,o=e.catch(1),n.error("[AvailabilityBottomSleeve] Failed to save virtual visit:",o);case 4:case"end":return e.stop()}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}();return T.default.createElement(T.default.Fragment,null,A||(A=(0,P.default)("style",{},void 0,"\n @import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');\n @keyframes slideUp {\n from { transform: translateY(100%); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n }\n ")),(0,P.default)("div",{className:" relative bg-[#F5F5F5] rounded-t-[24px] w-full shadow-[0_-6px_32px_rgba(0,0,0,0.14)] h-[590px]",style:{animation:"slideUp 0.3s cubic-bezier(0.32,0.72,0,1)",fontFamily:"'Source Sans 3', sans-serif"}},void 0,O||(O=(0,P.default)("div",{className:"w-9 h-[4px] bg-gray-300 rounded-full mx-auto mt-3 mb-1"})),(0,P.default)("div",{className:"px-5 pt-5 pb-0 text-center"},void 0,(0,P.default)("h2",{className:"text-[20px] font-bold text-[#363636] leading-snug",style:{fontFamily:"'Source Sans 3', sans-serif"}},void 0,"Help us with your Visit Availability")),u<4&&(0,P.default)(se,{currentStep:u,totalSteps:3}),(0,P.default)("div",{className:"overflow-y-auto ".concat(4===u?"pb-[50px]":"pb-[100px] h-[500px]")},void 0,1===u&&(0,P.default)("div",{className:"px-[20px] pt-5 mt-[30px]"},void 0,m||(m=(0,P.default)("p",{className:"text-[16px] font-semibold text-[#5F5D4E] mb-5 font-[Source_Sans_3]"},void 0,"When can you usually visit properties?")),(0,P.default)("div",{className:"flex flex-col gap-3"},void 0,Q.map(function(e){var t=p===e.id;return(0,P.default)("button",{type:"button",onClick:function(){C(e.id),V([]),Te(e.id),(0,W.nbGaEvent)("tenant_slot_requirement",{FULL_TIME_WORKER:"weekday_1",WEEKEND_PREFERRED:"weekend_1",FLEXIBLE_TIMINGS:"flexible_time_1"}[e.id])},className:"flex items-center gap-3 px-3 py-3 rounded-2xl text-left transition-all duration-150\n font-[Source_Sans_3]\n $\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisOptionSelected\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? 'border-[#24A398] bg-white border '\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 'shadow-[0px_2px_4px_0px_#0000000F] bg-white'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}"},e.id,(0,P.default)("img",{src:e.img,alt:"",className:"w-[44px] h-[44px] object-contain flex-shrink-0",onError:function(e){e.target.style.display="none"}}),(0,P.default)("div",{className:"flex-1 min-w-0"},void 0,(0,P.default)("p",{className:"text-[14px] font-semibold text-[#363636] mb-0 leading-snug"},void 0,e.title),(0,P.default)("p",{className:"text-[12px] text-[#6E6E6E] mt-[2px] mb-0"},void 0,e.description)),(0,P.default)(re,{isSelected:t}))}))),2===u&&("FULL_TIME_WORKER"===p?(0,P.default)("div",{className:"px-[20px] pt-5"},void 0,b||(b=(0,P.default)("p",{className:"text-[16px] font-semibold text-[#5F5D4E] mb-[21px] font-[Source_Sans_3]"},void 0,"Select all slots that work for you")),x||(x=(0,P.default)("p",{className:"text-[13px] italic text-[#363636] mb-4 font-[Source_Sans_3]"},void 0,"After work on weekdays")),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.getChecked,n=t.onToggle;return(0,P.default)("div",{className:"flex flex-col gap-2"},void 0,ke?[1,2,3,4].map(function(e){return(0,P.default)(le,{},e)}):e.map(function(e){var t=a?a(e):H.includes(e.slotCode),l=n?function(){return n(e)}:function(){return Be(e.slotCode)},o=Z[e.startHour]||{};return(0,P.default)("button",{type:"button",onClick:function(){l();var t=Re(e.startHour,e.dayType);t&&(0,W.nbGaEvent)("tenant_slot_requirement",t)},className:"flex items-center gap-3 px-4 py-[10px] rounded-2xl border bg-white text-left transition-all duration-150\n font-[Source_Sans_3]\n ".concat(t?"border-[#24A398]":"shadow-[0px_2px_4px_0px_#0000000F]")},e.slotCode,(0,P.default)("div",{className:"flex-1"},void 0,(0,P.default)("div",{className:"flex items-center gap-2 flex-wrap"},void 0,(0,P.default)("span",{className:"text-[14px] font-semibold text-[#6E6E6E] leading-tight"},void 0,e.label),o.isPopular&&(v||(v=(0,P.default)("span",{className:"text-[11px] font-semibold text-[#27A449] bg-[#E8F8ED] px-[8px] py-[2px] rounded-full leading-none"},void 0,"Popular")))),o.label&&(0,P.default)("p",{className:"text-[12px] text-gray-400 mt-[3px] mb-0 leading-tight"},void 0,o.label)),(0,P.default)(ie,{isSelected:t}))}))}(Fe),y||(y=(0,P.default)(ue,{}
1))):"WEEKEND_PREFERRED"===p?(0,P.default)("div",{className:"px-[20px] pt-5"},void 0,_||(_=(0,P.default)("p",{className:"text-[16px] font-semibold text-[#5F5D4E] mb-[21px] font-[Source_Sans_3]"},void 0,"Select all slots that work for you")),(0,P.default)("div",{className:""},void 0,g||(g=(0,P.default)("p",{className:"text-[14px] italic text-[#363636] mb-3 font-[Source_Sans_3]"},void 0,"Mostly available on weekends")),(We=Ue,(0,P.default)("div",{className:"grid grid-cols-2 gap-[10px]"},void 0,ke?[1,2,3,4,5,6].map(function(e){return(0,P.default)(oe,{},e)}):We.map(function(e){var t=H.includes(e.slotCode);return(0,P.default)("button",{type:"button",onClick:function(){Be(e.slotCode);var t=Re(e.startHour);t&&(0,W.nbGaEvent)("tenant_slot_requirement",t)},className:"flex items-center justify-between px-3 py-[14px] rounded-xl border bg-white text-left transition-all duration-150\n font-[Source_Sans_3]\n ".concat(t?"border-[#24A398]":"border-gray-200")},e.slotCode,(0,P.default)("span",{className:"text-[13px] font-medium text-gray-800 leading-tight"},void 0,e.label),(0,P.default)(ie,{isSelected:t}))})))),k||(k=(0,P.default)(ue,{}
1))):(0,P.default)("div",{className:"px-[20px] pt-5"},void 0,w||(w=(0,P.default)("p",{className:"text-[16px] font-semibold text-[#5F5D4E] mb-[21px] font-[Source_Sans_3]"},void 0,"Select all slots that work for you")),E||(E=(0,P.default)("p",{className:"text-[13px] italic text-[#363636] mb-4 font-[Source_Sans_3]"},void 0,"I have flexible timings (both on weekdays and weekends)")),(0,P.default)("div",{className:"grid grid-cols-2 gap-[10px]"},void 0,ke?[1,2,3,4,5,6].map(function(e){return(0,P.default)(oe,{},e)}):He.map(function(e){var t=function(e){return e.allCodes.some(function(e){return H.includes(e)})}(e);return(0,P.default)("button",{type:"button",onClick:function(){Ke(e);var t=Re(e.startHour);t&&(0,W.nbGaEvent)("tenant_slot_requirement",t)},className:"flex items-center justify-between px-3 py-[14px] rounded-xl border bg-white text-left transition-all duration-150\n font-[Source_Sans_3]\n ".concat(t?"border-[#24A398]":"border-gray-200")},e.slotCode,(0,P.default)("span",{className:"text-[13px] font-medium text-gray-800 leading-tight"},void 0,e.label),(0,P.default)(ie,{isSelected:t}))})),h||(h=(0,P.default)(ue,{}
1)))),3===u&&(Me=[{id:"short_notice",img:K.default,labelPrefix:"I can visit on ",boldLabel:"short notice",description:"Helpful for times when physical visit is difficult",isEnabled:ee,onToggle:qe},{id:"virtual_visit",img:B.default,labelPrefix:"Are you open for a ",boldLabel:"virtual visit",description:"Helpful for times when physical visit is difficult",isEnabled:pe,onToggle:ze}],(0,P.default)("div",{className:"px-[20px] pt-5"},void 0,S||(S=(0,P.default)("p",{className:"text-[17px] text-[#5F5D4E] mb-[21px] font-[Source_Sans_3]"},void 0,"Almost there...")),N||(N=(0,P.default)("p",{className:"text-[13px] italic text-[#363636] mb-5 font-[Source_Sans_3]"},void 0,"Select one or more according to your preference")),(0,P.default)("div",{className:"flex flex-col gap-4"},void 0,Me.map(function(e){return(0,P.default)("button",{type:"button",onClick:e.onToggle,className:"relative flex items-stretch rounded-2xl text-left transition-all duration-150 font-[Source_Sans_3] overflow-hidden",style:{background:"linear-gradient(252.17deg, rgba(81, 125, 191, 0.15) 2.28%, rgba(255, 255, 255, 0) 58.62%)",border:"1px solid #EAEAEA",boxShadow:"0px 2px 5px 0px #BEBEBE40"}},e.id,(0,P.default)("img",{src:e.img,alt:"",className:"w-[90px] h-[100px] object-contain flex-shrink-0 self-end",onError:function(e){e.target.style.display="none"}}),(0,P.default)("div",{className:"flex-1 min-w-0 py-4 pl-3 pr-[44px]"},void 0,(0,P.default)("p",{className:"text-[16px] text-[#363636] mb-0 leading-snug"},void 0,e.labelPrefix,(0,P.default)("span",{className:"font-bold"},void 0,e.boldLabel)),(0,P.default)("p",{className:"text-[12px] text-[#6E6E6E] mt-[3px] mb-0 leading-snug"},void 0,e.description)),(0,P.default)("div",{className:"absolute top-3 right-3"},void 0,(0,P.default)(ie,{isSelected:e.isEnabled})))})),Ie&&(t||(t=(0,P.default)("p",{className:"text-red-500 text-[13px] text-center mt-3 font-[Source_Sans_3]"},void 0,Ie))))),4===u&&(0,P.default)(de,{onClose:o,onConfirm:function(){return null==r?void 0:r({scheduleType:p,selectedSlotCodes:H,isShortNoticeEnabled:ee,isVirtualVisitOpen:pe})},animationData:Y.default})),u<4&&(0,P.default)("div",{className:"absolute bottom-0 bg-[#F5F5F5] px-4 pb-[20px] pt-3 w-[100%]"},void 0,(0,P.default)("button",{type:"button",disabled:!Ve||Se,onClick:Ye,className:"flex items-center justify-center gap-2 w-full py-[15px] rounded-[14px] text-[15px] font-semibold transition-all duration-200\n ".concat(Ve&&!Se?"bg-[#24A398] text-white active:scale-[0.98]":"bg-gray-200 text-gray-400 cursor-not-allowed"),style:{fontFamily:"'Source Sans 3', sans-serif"}},void 0,Se?I||(I=T.default.createElement(T.default.Fragment,null,(0,P.default)(ne,{})," Savingâ¦")):"Continue"))))}},1514:(e,t,a)=>{var n=a(1),l=a(7),o=a(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(a(32)),i=l(a(81)),s=l(a(48)),u=l(a(104)),d=function(e,t){if("function"==typeof WeakMap)var a=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var l,r,i={__proto__:null,default:e};if(null===e||"object"!=o(e)&&"function"!=typeof e)return i;if(l=t?n:a){if(l.has(e))return l.get(e);l.set(e,i)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((r=(l=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(r.get||r.set)?l(i,s,r):i[s]=e[s]);return i}(e,t)}(a(0)),f=l(a(2851)),c=a(423),p=a(69);t.default=function(){var e=(0,d.useState)(""),t=(0,u.default)(e,2),a=t[0],l=t[1],o=(0,d.useState)(!0),v=(0,u.default)(o,2),m=v[0],b=v[1],x=(0,d.useState)(""),y=(0,u.default)(x,2),_=y[0],g=y[1];(0,d.useEffect)(function(){var e=function(){var e=(0,s.default)(r.default.mark(function e(){var t,a,o,i;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,(0,c.getUserInfo)();case 1:a=e.sent,o=null==a||null===(t=a.data)||void 0===t?void 0:t.data,l((null==o?void 0:o.id)||""),g((null==o?void 0:o.phone)||""),e.next=3;break;case 2:e.prev=2,i=e.catch(0),n.error("Failed to fetch user info",i);case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}();e()},[]),(0,d.useEffect)(function(){if(m){var e=window.scrollY;document.body.style.position="fixed",document.body.style.top="-".concat(e,"px"),document.body.style.left="0",document.body.style.right="0",document.body.style.overflow="hidden"}else{var t=document.body.style.top;document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.overflow="",window.scrollTo(0,-1*parseInt(t||"0"))}return function(){document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.overflow=""}},[m]),(0,d.useEffect)(function(){return m&&window.parent!==window&&window.parent.postMessage({type:"jacket",lockScroll:!0},"*"),function(){window.parent!==window&&window.parent.postMessage({type:"jacket",lockScroll:!1},"*")}},[m]);var k=function(){void 0!==window.AndroidApp&&(0,p.isAndroid)("openHybridActivity")?(0,p.isAndroid)("closeNudgeIfOpened")&&window.AndroidApp.closeNudgeIfOpened():void 0!==window.webkit&&(0,p.isIOS)("exitCall")?window.webkit.messageHandlers.exitCall.postMessage("exit"):window.parent!==window?(window.postMessage({type:"jacket",close:!0},"*"),window.parent.postMessage({type:"jacket",close:!0},"*"),b(!1)):b(!1)};return a&&m?(0,i.default)("div",{className:"fixed inset-0 z-[99999]",onClick:k},void 0,(0,i.default)("div",{className:"absolute inset-0",style:{backgroundColor:"rgba(17, 17, 17, 0.7)",overscrollBehavior:"none"}}),(0,i.default)("div",{className:"absolute bottom-0 left-0 right-0 z-10",onClick:function(e){return e.stopPropagation()}},void 0,(0,i.default)(f.default,{userId:a,userPhone:_,onClose:k,onConfirm:function(e){var t,a;null!==(t=window)&&void 0!==t&&null!==(a=t.AndroidApp)&&void 0!==a&&a.onAvailabilityConfirmed&&window.AndroidApp.onAvailabilityConfirmed(JSON.stringify(e))}}))):null}},2857:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});const n=a.p+"9dd0e66b64c322f07e736e488bf79bbf.svg"},2854:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});const n=a.p+"2f7d33509f66d54eb4d614ef496cdbb4.svg"},2855:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});
1const n=a.p+"c8de35089f2c232e7f31537cc8a35abc.svg"},2856:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});const n=a.p+"677820e13298bc62b63f279d287c968b.png"},2852:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});const n=a.p+"dfbc3379e4a9a777e1acd15b8b5f9220.svg"},2853:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});const n=a.p+"297baf080a8004e6b8a0eb98a27261dc.svg"},2873:e=>{e.exports=JSON.parse('{"v":"4.8.0","ip":0,"op":130,"fr":60,"w":512,"h":512,"nm":"H","assets":[],"layers":[{"ind":1,"ty":4,"nm":"c","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[256,256,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[100,100,100]}},"shapes":[{"ty":"gr","nm":"S","bm":0,"it":[{"ty":"sh","nm":"P","ind":0,"ks":{"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-82.5,4.5],[-31,55],[73,-52.5]],"c":false},"a":0}},{"ty":"tm","nm":"T","s":{"a":0,"k":0},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[1],"y":[0.076]},"t":60,"s":[0]},{"t":85,"s":[100]}]},"o":{"a":0,"k":0},"m":1},{"ty":"st","nm":"S","bm":0,"lc":2,"lj":2,"o":{"a":0,"k":100},"w":{"a":0,"k":30},"c":{"a":0,"k":[1,1,1,1]}},{"ty":"tr","o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[0,0]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"nm":"T","sk":{"a":0,"k":0},"sa":{"a":0,"k":0}}]}],"ip":0,"op":240,"st":0},{"ind":3,"ty":4,"nm":"S","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[256,257.86,0]},"a":{"a":0,"k":[0,0,0]},"s":{"k":[{"i":{"x":[0,0,0.833],"y":[0.98,0.98,-66.114]},"o":{"x":[0.656,0.656,0.167],"y":[0.872,0.872,67.114]},"t":20,"s":[0,0,100]},{"t":60,"s":[150,150,100]}],"a":1}},"shapes":[{"ty":"gr","nm":"E","bm":0,"it":[{"ty":"el","p":{"a":0,"k":[0,0]},"s":{"a":0,"k":[236,236]},"nm":"E"},{"ty":"fl","nm":"F","bm":0,"c":{"a":0,"k":[0.173,0.855,0.58,1]},"o":{"a":0,"k":100},"r":1},{"ty":"tr","o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[0,-3]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"nm":"T","sk":{"a":0,"k":0},"sa":{"a":0,"k":0}}]}],"ip":0,"op":240,"st":0},{"ind":4,"ty":4,"nm":"S","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.626],"y":[0.729]},"o":{"x":[0.912],"y":[0.073]},"t":76,"s":[100]},{"t":119,"s":[0]}]},"r":{"a":0,"k":0},"p":{"a":0,"k":[256,257.86,0]},"a":{"a":0,"k":[0,0,0]},"s":{"k":[{"i":{"x":[0,0,0.667],"y":[0.999,0.999,1]},"o":{"x":[0.477,0.477,0.333],"y":[0.587,0.587,0]},"t":10,"s":[0,0,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":50,"s":[150,150,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":76,"s":[150,150,100]},{"t":123,"s":[210,210,100]}],"a":1}},"shapes":[{"ty":"gr","nm":"E","bm":0,"it":[{"ty":"el","p":{"a":0,"k":[0,0]},"s":{"a":0,"k":[236,236]},"nm":"E"},{"ty":"st","nm":"S","bm":0,"lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100},"w":{"a":0,"k":2},"c":{"a":0,"k":[1,1,1,1]}},{"ty":"fl","nm":"F","bm":0,"c":{"a":0,"k":[0.784,0.945,0.88,1]},"o":{"a":0,"k":100},"r":1},{"ty":"tr","o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[0,-3]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"nm":"T","sk":{"a":0,"k":0},"sa":{"a":0,"k":0}}]}],"ip":0,"op":240,"st":0},{"ind":5,"ty":4,"nm":"B","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[256,256,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[100,100,100]}},"shapes":[{"ty":"gr","nm":"R","bm":0,"it":[{"ty":"rc","r":{"a":0,"k":0},"p":{"a":0,"k":[0,0]},"s":{"a":0,"k":[554,556]},"nm":"R"},{"ty":"fl","nm":"F","bm":0,"c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1},{"ty":"tr","o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[-1,6]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"nm":"T","sk":{"a":0,"k":0},"sa":{"a":0,"k":0}}]}],"ip":240,"op":240,"st":0}],"markers":[]}')}}]);
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.