1"use strict";(self.rspackChunkvagaro_websitebuilder_consumer=self.rspackChunkvagaro_websitebuilder_consumer||[]).push([[4662],{29060(){},47016(e,t,n){n.d(t,{A:()=>l});var o=n(86172),r="u">typeof window&&void 0!==window.StaticReactV2BId?window.StaticReactV2BId:"IwY1~qWWwbNaxnBeKVPrNw==",i="u">typeof window&&void 0!==window.StaticReactV2UId?window.StaticReactV2UId:"er1vaA6-85U9jkS34hxL8A==";window.groupID="u">typeof window&&void 0!==window.groupID?window.groupID:"us02",window.VagaroCoreAPIURLV2="u">typeof window&&void 0!==window.VagaroCoreAPIURLV2?window.VagaroCoreAPIURLV2:"https://api.vagaro.com/us02/api/v2/";let a={"Content-Type":"application/json",merchantId:r,userId:i,employeeid:i};window.groupID="u">typeof window&&void 0!==window.groupID?window.groupID:"us02",window.VagaroCoreAPIURLV2="u">typeof window&&void 0!==window.VagaroCoreAPIURLV2?window.VagaroCoreAPIURLV2:"https://api.vagaro.com/us02/api/v2/";let l={Get:(e="",t,n,r,i)=>{let l=e+("u">typeof window&&void 0!==window.groupID?window.groupID:"us02")+"/api/v2/"+t;""!=n?o.A.get(l,n,{headers:a}).then(e=>{r(e)}).catch(e=>{i(e)}):o.A.get(l,{headers:a}).then(e=>{r(e)}).catch(e=>{i(e)})},Post:(e,t,n,r)=>{let i=window.VagaroCoreAPIURLV2+e;o.A.post(i,t,{headers:a}).then(e=>{n(e)}).catch(e=>{r(e)})},Put:(e,t,n,r)=>{let i=window.VagaroCoreAPIURLV2+e;o.A.put(i,t,{headers:a}).then(e=>{n(e)}).catch(e=>{r(e)})},Patch:(e,t,n,r)=>{let i=window.VagaroCoreAPIURLV2+e;o.A.patch(i,t,{headers:{"Content-Type":"application/json"}}).then(e=>{n(e)}).catch(e=>{r(e)})},Delete:(e,t,n,r)=>{let i=window.VagaroCoreAPIURLV2+e;o.A.delete(i,{headers:a,data:t}).then(e=>{n(e)}).catch(e=>{r(e)})},GetV2:(e,t,n,r,i)=>{t&&t.params?o.A.get(e,{headers:i,params:t.params}).then(e=>{n(e)}).catch(e=>{r(e)}):o.A.get(e,{headers:i}).then(e=>{n(e)}).catch(e=>{r(e)})},PostV2:(e,t,n,r,i)=>{o.A.post(e,t,{headers:i}).then(e=>{n(e)}).catch(e=>{r(e)})}}},22495(e,t,n){n.d(t,{S:()=>a,W:()=>s});var o=n(47016);let r=null,i=null,a=e=>{if(!e)throw Error("EnvironmentUrl is required. Please pass EnvironmentUrl prop to the component.");return r?Promise.resolve(r):(i||(i=new Promise((t,n)=>{o.A.Get(e,"countrylist/countrylistdetails","",e=>{let n=e?.data?.data||[];r=n,t(n)},e=>{n(e)})})),i)},l=new Map;function s(e,t){let n=l.get(e);if(n)return n;let o=t().finally(()=>l.delete(e));return l.set(e,o),o}},7247(e,t,n){n.d(t,{A:()=>l});var o=n(74848),r=n(96540),i=n(40961),a=n(67247);let l=({children:e,wrapperElement:t="div",wrapperElementId:n="divId",inputRef:l,type:s,DropdownDirection:d="auto",wrapperName:c="",openInCenter:u=!1,glassDesign:g=!1})=>{let[w,p]=(0,r.useState)(null),[m,h]=(0,r.useState)(0),[f,v]=(0,r.useState)(0),b=(0,r.useRef)(null),[I,A]=(0,r.useState)({top:0,left:0}),y=a.Wp.CheckIsProApp(),[k,C]=(0,r.useState)(e?.props?.children?.length);return((0,r.useLayoutEffect)(()=>{if(!w||!w.firstElementChild)return;let e=w.firstElementChild,t=e?.getBoundingClientRect(),n=0,o=w.children;for(let e=0;e<o.length;e++)n+=o[e].scrollHeight;h(n),v(t?.width||700)},[w,n,e]),(0,r.useLayoutEffect)(()=>{A((()=>{let t,o,i;if(!l?.current)return{top:0,left:0};let w=l?.current?.getBoundingClientRect();if(!w||!w?.width&&!w.height)return{top:0,left:0};let p=85*!!g,h=window.innerHeight-w.bottom-(("threedotmenu"===n||"NestedDropdownPortal"===n)&&y?85:0)-p,v=w.top-p;if("ColorPicker"===n)t=420;else if("threedotmenu"===n||"threedotmenu"===c)t=36*(k||0)+10;else if("daterpicker"===n)t=340;else if("timepicker"===n||n.startsWith("timepicker-"))t=160;else if("dropdownmenu"===n)t=36*(e?.props?.children[0].length||0)+32;else if("NestedDropdownPortal"===n)t=38*(k||0)+8;else if("phonecountry"===n)t=257;else if("inputtogglemenu"===n){let n=e?.props?.children?.[1],o=(n?r.Children.toArray(n.props?.children).filter(Boolean):[]).length;t=o>0?41.8*o+53.6:179}else t="dotphrase-portal"===n?38*(k||0)+60:"gif-picker-portal"===n?370:"emoji-picker-portal"===n?369:u&&"daterangepicker"===n?490:258;let b=m||t,I=w.left,A=window.innerWidth-w.right,C=f||700,x=w.left+window.scrollX,E=!1;if(s===a.IU.addressSuggestions){let e=window.innerHeight,t=e/3,n=2*e/3,r=w.top<t,i=w.top>=t&&w.top<=n;o=w.top>n?w.top+window.scrollY-b:i||r||h>=b?w.bottom+window.scrollY:v>=b?w.top+window.scrollY-b:w.bottom+window.scrollY}else s===a.IU.timePickerRight?o=h<b&&v>=b?w.top+window.scrollY-b:w.bottom+window.scrollY:h>=b?o=w.bottom+window.scrollY:v>=b?o=w.top+window.scrollY-b:u&&("daterangepicker"===n||"daterpicker"===n)?(o=window.scrollY+Math.max(0,(window.innerHeight-b)/2),E=!0):o=w.bottom+window.scrollY;if("dotphrase-portal"===n){let e=m||38*(k||0)+20,t=f||320,n=window.innerWidth-w.left;w.right;let o=window.innerHeight-w.bottom;w.top;let r=o>=e?w.bottom+window.scrollY:w.top+window.scrollY-e-16,i=n>=t?w.left+window.scrollX:w.right+window.scrollX-t;return i=Math.max(window.scrollX+8,Math.min(i,window.scrollX+window.innerWidth-t-8)),{top:r=Math.max(window.scrollY+8,Math.min(r,window.scrollY+window.innerHeight-e-8)),left:i}}if(("daterangepicker"===n||"daterpicker"===n||"phonecountry"===n)&&s===a.IU.dateRangePickerAutoPosition)if(u&&E)x=window.scrollX+Math.max(0,(window.innerWidth-C)/2),i=void 0;else if(A+w?.width>=C)x=w.left+window.scrollX,i=void 0;else if(I+w?.width>=C)i=window.innerWidth-(w.right+window.scrollX),x=void 0;else{let e=window.innerWidth;w.left<e/2?(x=window.scrollX,i=void 0):"phonecountry"===n?i=void 0:(i=0,x=void 0)}else if("phonecountry"===n&&s===a.IU.phonecountry)A>=328?(x=w.left+window.scrollX,i=void 0):I>=328?(i=window.innerWidth-(w.right+window.scrollX),x=void 0):A>=I?(x=w.left+window.scrollX,i=void 0):(i=window.innerWidth-(w.right+window.scrollX),x=void 0);else switch(s){case a.IU.action:x=I<A?w.left+window.scrollX:window.innerWidth-A-(w?.width||328);break;case a.IU.timePickerRight:w?.width;let P=window.innerWidth,S=navigator.userAgent,T=/^((?!chrome|android).)*safari/i.test(S),M=navigator.platform.toUpperCase().indexOf("MAC")>=0;i=P-(w.right+window.scrollX+(T||M?0:10));break;case a.IU.threeDotmenu:o=h<b&&v>=b?w.top+window.scrollY-b:w.bottom+window.scrollY;
1let R=window.visualViewport?.width??document.documentElement.clientWidth??window.innerWidth,D=f||0,L=w.right>=D,O=R-w.left>=D;("left"===d?!D||O||!L:D&&!L&&O)?(x=w.left+window.scrollX,i=void 0):(i=Math.round(R-w.right),x=void 0);break;case a.IU.smileyPicker:x=w.right+window.scrollX-240;break;case a.IU.tableGrid:{let e=window.scrollX+8,t=window.scrollX+window.innerWidth-8,n=window.visualViewport,r=n?window.innerHeight-n.height:0;o=null!=n&&r>80?w.top+window.scrollY-b:h>=b?w.bottom+window.scrollY:v>=b?w.top+window.scrollY-b:h>=v?w.bottom+window.scrollY:w.top+window.scrollY-b,x=A>=C?w.left+window.scrollX:I>=C?w.right+window.scrollX-C:Math.max(e,Math.min(w.left+window.scrollX,t-C));break}case a.IU.dateRangePickerRight:i=window.innerWidth-(w.right+window.scrollX);break;case a.IU.gifPicker:{let e=window.innerWidth-w.left,t=w.right;x=e>=343?w.left+window.scrollX:t>=343?w.right+window.scrollX-335:window.scrollX+Math.max(8,Math.min(w.left,window.innerWidth-335-8));break}case a.IU.emojiPicker:{let e=b||369;o=h>=e+4?w.bottom+window.scrollY+4:v>=e+4?w.top+window.scrollY-e-4:h>v?w.bottom+window.scrollY+4:w.top+window.scrollY-e-4;let t=w.left+window.scrollX;t+360>window.innerWidth+window.scrollX-8&&(t=window.innerWidth+window.scrollX-360-8),t<window.scrollX+8&&(t=window.scrollX+8),x=t;break}default:x=w.left+window.scrollX}if("dropdownmenu"===n&&d&&"auto"!==d){let e,t=window.innerHeight-w.bottom,n=w.top;return"right"===d?e=w.right+window.scrollX:"left"===d&&(e=w.left-w.width+window.scrollX),{top:t>=b?w.top+window.scrollY:n>=b?w.bottom+window.scrollY-b:w.top+window.scrollY,left:e}}return void 0!==i?{top:o,right:i}:{top:o,left:x}})())},[l,m,s,n,e]),(0,r.useEffect)(()=>{let e=b.current;if(!e||!e.firstElementChild)return;let t=()=>{let t=e.firstElementChild,n=t?.getBoundingClientRect(),o=0,r=e.children;for(let e=0;e<r.length;e++)o+=r[e].offsetHeight;h(o),v(n?.width||700)};t();let n=new ResizeObserver(t),o=new MutationObserver(t);return n.observe(e),o.observe(e,{childList:!0,subtree:!0}),()=>{n.disconnect(),o.disconnect()}},[e,n,s]),(0,r.useEffect)(()=>{let e,o=document.getElementById(n);o||((e=document.createElement(t)).setAttribute("id",n),""!==n&&("Popup-change-log-popup"===n&&e.setAttribute("data-identity","history"),"Popup-renter-popup"===n&&e.setAttribute("data-identity","sub-history")),document.body.appendChild(e),o=e),b.current=o,p(o);try{let e=l?.current??null,t=e?e.closest("[data-popup-id]"):null,n=t?.getAttribute("data-popup-id");n?o.setAttribute("data-parent-popup-id",n):o.removeAttribute("data-parent-popup-id")}catch{}return()=>{o&&document.body.contains(o)&&document.body.removeChild(o)}},[n,t]),null===w)?null:(0,i.createPortal)((0,o.jsx)("div",{style:{position:"absolute",...I,..."dropdownmenu"===n||"table-grid-portal"===n||"threedotmenu"===n||"threedotmenu"===c||"emoji-picker-portal"===n||"gif-picker-portal"===n?{zIndex:9999}:{}},children:e}),w)}},15624(e,t,n){n.r(t),n.d(t,{default:()=>d});var o=n(74848),r=n(96540),i=n(67247),a=n(7247);let l=i.Wp.CheckIsFromProAppWithoutState(),s=i.Wp.CheckIsFromIpadAndroidTabWithoutParm(),d=({NotificationTitle:e,Icon:t=!1,types:n="positive",Duration:i=0,show:d=!1,TopMessage:c=!1,OnClose:u,UsePortal:g=!1,RenderOnTop:w=""})=>{let[p,m]=(0,r.useState)(!1),h=(0,r.useRef)(`PassiveNotification-${Math.random().toString(36).substr(2,9)}`),f=w?{top:w}:void 0,v="positive"===n?"vg-banner-success-master":"warning"===n?"vg-banner-warning-master":"vg-banner-fail-master";(0,r.useEffect)(()=>{let t;return d||c?(m(!0),t=setTimeout(()=>{m(!1),setTimeout(()=>{u&&u()},300)},i>0?i:e?e.length<50?2e3:e.length<100?3e3:e.length<200?4e3:7e3:3e3)):m(!1),()=>{t&&clearTimeout(t)}},[d,e,i,c,u]);let b=()=>p&&(0,o.jsx)("div",{className:`${l||s?"vg-passinvmessage-pro":""} passinvmessageblock`,children:(0,o.jsxs)("div",{className:`${v} ${p&&c?"showmsgTop":""}`,style:f,children:[t&&(0,o.jsx)("div",{className:"icon-banner"}),(0,o.jsx)("div",{className:"text-block-28",children:e})]})});return(0,o.jsx)(o.Fragment,{children:g?(0,o.jsx)(a.A,{wrapperElementId:h.current,wrapperElement:"div",children:b()}):b()})}},94089(e,t,n){n.r(t),n.d(t,{default:()=>l});var o=n(74848),r=n(96540),i=n(40961),a=n(67247);let l=({TooltipText:e,Children:t,ScreenTitleForMobile:n,Html:l=!0,TextAlign:s="center",BeakPoint:d="Down",BeakPosition:c="Middle",Duration:u=2e3,ShowHover:g=!0,TriggerTooltip:w=!1,OnTooltipClose:p,FullWidth:m=!1,TooltipRender:h="inline",MaxWidth:f,FullHeight:v=!1,ForceWebRender:b=!1})=>{let[I,A]=(0,r.useState)("top-center"),[y,k]=(0,r.useState)(!1),C=(0,r.useRef)(null),x=(0,r.useRef)(null),E=(0,r.useRef)(null),P=(0,r.useRef)(null),S=(0,r.useRef)(!1),[T,M]=(0,r.useState)({top:0,left:0}),R=a.Wp.CheckIsFromProAppWithoutState()&&!b,D=a.Wp.CheckIsFromIpadAndroidTabWithoutParm(),L=g&&!D,O=(0,r.useRef)([]),W=e=>{let t=getComputedStyle(e),n=t.overflowY,o=t.overflowX;return/(auto|scroll|overlay)/.test(n)||/(auto|scroll|overlay)/.test(o)},B=(0,r.useCallback)(e=>{let t=[],n=e?.parentElement||null;for(;n;)W(n)&&t.push(n),n=n.parentElement;return t.push(document.scrollingElement||document.documentElement),t},[]);(0,r.useEffect)(()=>(E.current&&(clearTimeout(E.current),E.current=null),!g&&w?(k(!0),u>0&&(E.current=setTimeout(()=>{k(!1),p&&p()},u))):k(!1),()=>{E.current&&(clearTimeout(E.current),E.current=null)}),[w,u,p,g]),(0,r.useEffect)(()=>
1{if("portal"!==h&&y&&C.current&&x.current){let e=C.current.getBoundingClientRect(),t=x.current.getBoundingClientRect(),n=window.innerWidth,o=window.innerHeight,r=t.top>=e.height,i=o-t.bottom>=e.height,a=t.left>=e.width,l=n-t.right>=e.width;r?A("top-center"):i?A("bottom-center"):a?A("left"):l?A("right"):A("bottom-center")}},[y,h]),(0,r.useEffect)(()=>{if("inline"!==h&&y&&x.current){let e=x.current.getBoundingClientRect(),t=C.current?.getBoundingClientRect().width??200,n=C.current?.getBoundingClientRect().height??40,o=window.innerWidth,r=window.innerHeight,i=e.top>=n+8,a=r-e.bottom>=n+8,l=e.left>=t+8,s=o-e.right>=t+8;i?A("top-center"):a?A("bottom-center"):l?A("left"):s?A("right"):A("bottom-center")}},[y,h]);let U=()=>{if(!x.current||!C.current)return"Middle";let e=x.current.getBoundingClientRect(),t=C.current.getBoundingClientRect(),n=window.innerWidth,o=t.width||200,r=e.left+e.width/2,i=r-o/2,a=n-(r+o/2);return i>=20&&a>=20?"Middle":i<20?"Left":a<20?"Right":"Middle"};(0,r.useEffect)(()=>{let e=c;"Auto"===c&&(e=U()),"Down"===d&&"Middle"===e?A("bottom-center"):"Down"===d&&"Left"===e?A("bottom-left"):"Down"===d&&"Right"===e?A("bottom-right"):"Up"===d&&"Left"===e?A("top-left"):"Up"===d&&"Right"===e&&A("top-right")},[d,c,I,y]),(0,r.useEffect)(()=>{if("Auto"!==c)return;let e=()=>{if(y){let e=U();"Down"===d&&"Middle"===e?A("bottom-center"):"Down"===d&&"Left"===e?A("bottom-left"):"Down"===d&&"Right"===e?A("bottom-right"):"Up"===d&&"Left"===e?A("top-left"):"Up"===d&&"Right"===e&&A("top-right")}};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[c,d,y,window.innerWidth]);let F=(0,r.useCallback)(()=>{if("inline"===h||!y||"Auto"!==c||!C.current||!x.current)return;let e=C.current.getBoundingClientRect(),t=x.current.getBoundingClientRect(),n=window.innerWidth,o=t.left,r=n-t.right,i=e.width;return r<i&&r<o?`${o+30}px`:o<i&&o<r?`${r+30}px`:void 0},[h,y,c]),j=(0,r.useCallback)(()=>{if("inline"===h||!y||!C.current||!x.current)return;let e=C.current.getBoundingClientRect(),t=x.current.getBoundingClientRect(),n=0,o=0,r=t.left+t.width/2,i=t.top+t.height/2;switch(I){case"top-center":n=t.top-e.height-8,o=r-e.width/2;break;case"bottom-center":n=t.bottom+8,o=r-e.width/2;break;case"left":n=i-e.height/2,o=t.left-e.width-8;break;case"right":n=i-e.height/2,o=t.right+8;break;case"top-left":n=t.top-e.height-8,o=t.left-10;break;case"top-right":n=t.top-e.height-8,o=t.right-e.width+10;break;case"bottom-left":n=t.bottom+8,o=t.left-10;break;case"bottom-right":n=t.bottom+8,o=t.right-e.width+10}let a=window.innerWidth,l=window.innerHeight,s=Math.max(8,Math.min(o,a-e.width-8)),d=Math.max(8,Math.min(n,l-e.height-8)),c=`${r-s}px`;M({top:d,left:s,maxWidth:F(),beakLeft:c})},[h,y,I,F]);(0,r.useLayoutEffect)(()=>{"portal"===h&&j()},[y,I,c,h,j]),(0,r.useEffect)(()=>{if("inline"===h||!y)return;let e=B(x.current);O.current=e;let t=()=>j();return e.forEach(e=>e.addEventListener("scroll",t,{passive:!0})),window.addEventListener("resize",t),t(),()=>{e.forEach(e=>e.removeEventListener("scroll",t)),window.removeEventListener("resize",t)}},[y,I,c,h,j,B]),(0,r.useEffect)(()=>{if(!y)return;let e=B(x.current),t=()=>{S.current=!0,k(!1),p&&p()};return e.forEach(e=>e.addEventListener("scroll",t,{passive:!0})),window.addEventListener("scroll",t,{passive:!0}),()=>{e.forEach(e=>e.removeEventListener("scroll",t)),window.removeEventListener("scroll",t)}},[y,B,p]);let V=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"";(0,r.useEffect)(()=>{let e=e=>{D&&x.current&&!x.current.contains(e.target)&&k(!1)};if(D)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[D]),(0,r.useEffect)(()=>{if("portal"!==h&&!f&&y&&C.current&&x.current&&"Auto"===c){let e=C.current,t=e.getBoundingClientRect(),n=x.current.getBoundingClientRect(),o=window.innerWidth,r=n.left,i=o-n.right;e.style.maxWidth="none";let a=t.width;i<a&&i<r?e.style.maxWidth=`${r+30}px`:r<a&&r<i&&(e.style.maxWidth=`${i+30}px`)}},[y,I,h,f]);let N=()=>{P.current&&(window.clearTimeout(P.current),P.current=null)},Y=()=>{L&&"inline"!==h&&(N(),k(!0))},X=()=>
1{L&&"inline"!==h&&(N(),P.current=window.setTimeout(()=>k(!1),10))};(0,r.useEffect)(()=>()=>N(),[]);let J=()=>{!D&&g&&(S.current=!1,k(!0))},$="portal"===h&&L?{onMouseEnter:Y,onMouseLeave:X,onMouseMove:()=>{S.current&&Y()}}:{onMouseEnter:J,onMouseLeave:()=>{!D&&g&&(S.current=!1,k(!1))},onMouseMove:()=>{S.current&&J()}};return(0,o.jsxs)("div",{className:`vg-group vg-tooltip-group ${v?"vg-tooltip-fullheight":""}`,children:[(0,o.jsxs)("div",{className:`vg-tooltip vg-tooltip-${I} ${m?"vg-tooltip-fullwidth":""} ${"portal"===h?"vg-tooltip-portal-trigger":""}`,ref:x,...$,onPointerUp:o=>{if(o.preventDefault(),o.stopPropagation(),g&&(D&&!R&&k(!0),R&&e)){var i={};i.message=e,i.messageType=0,i.screenTitle=r.isValidElement(t)?n||"Info":V(e),i.screenType=0,i.navType=51,i.action="",a.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(i))}},children:["inline"===h&&e&&y&&(0,o.jsx)("div",{className:`vg-tooltip-sms vg-text-${s}`,ref:C,style:f?{maxWidth:f}:void 0,children:l?(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""}}):e&&V(e)}),t]}),"portal"===h&&e&&y&&(0,i.createPortal)((0,o.jsx)("div",{className:`vg-tooltip vg-tooltip-portal vg-tooltip-${I} ${m?"vg-tooltip-fullwidth":""}`,children:(0,o.jsx)("div",{className:`vg-tooltip-sms vg-text-${s}`,ref:C,style:{position:"fixed",top:T.top,left:T.left,maxWidth:f||T.maxWidth,zIndex:9999,visibility:0===T.left&&0===T.top?"hidden":"visible","--beak-left":T.beakLeft||"50%"},onMouseEnter:Y,onMouseLeave:X,children:l?(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""}}):e&&V(e)})}),document.body)]})}},67247(e,t,n){n.d(t,{C2:()=>R,ud:()=>T,By:()=>f,MI:()=>M,IU:()=>I,Dx:()=>P,BL:()=>v,UM:()=>E,_A:()=>k,pz:()=>y,kz:()=>x,Iu:()=>C,My:()=>S,Wp:()=>b});var o=n(77215),r=n(74848),i=n(96540),a=n(5338);let l="Custom",s="OpenDialog",d="OpenDialog1",c="OpenDialog2",u="exportdiv",g="printdiv",w="successAlert",p={Custom:null,OpenDialog:null,OpenDialog1:null,OpenDialog2:null,successAlert:null,exportdiv:null,printdiv:null},m=e=>{let t=document.getElementById(e);return t?(0,a.createRoot)(t):null};p.Custom=m(l),p.OpenDialog=m(s),p.OpenDialog1=m(d),p.OpenDialog2=m(c),p.successAlert=m(w),p.exportdiv=m(u),p.printdiv=m(g);let h=e=>{let{alertType:t,strMessage:n,displaytime:o}=e,a=(0,i.useCallback)(()=>{let e=null,r=null;"success"===t?(e=document.querySelector(".banner-success-master"),r=document.querySelector(".banner-success-master .text-block-28")):"warning"===t?(e=document.querySelector(".banner-warning-master"),r=document.querySelector(".banner-warning-master .text-block-28")):"fail"===t&&(e=document.querySelector(".banner-fail-master"),r=document.querySelector(".banner-fail-master .text-block-28")),e&&r&&(r.innerHTML=n,e.classList.add("showmsgTop"),setTimeout(()=>{e?.classList.remove("showmsgTop")},o),setTimeout(()=>{((e=s)=>{p[e]&&(p[e]?.unmount(),p[e]=null)})(w)},o))},[t,n,o]);return(0,i.useEffect)(()=>{a()},[a]),(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)("div",{className:"removePadTop",children:["success"===t&&(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)("div",{className:"banner-success-master",children:[(0,r.jsx)("div",{className:"font-awesome-normal icon-banner",children:"ï"}),(0,r.jsx)("div",{className:"text-block-28",children:n})]})}),"warning"===t&&(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)("div",{className:"banner-warning-master",children:[(0,r.jsx)("div",{className:"font-awesome-solid icon-banner",children:"ï±"}),(0,r.jsx)("div",{className:"text-block-28",children:n})]})}),"fail"===t&&(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)("div",{className:"banner-fail-master",children:[(0,r.jsx)("div",{className:"font-awesome-normal icon-banner",children:"ï"}),(0,r.jsx)("div",{className:"text-block-28",children:n})]})})]})})},f={Success:1,Fail:2,Warning:3},v={Success:1e3,ResponseFail:1001,RecordExists:1002,PartialAuthorize:5008,Fail:6e4,NoCentent:204,AccessDenied:1034,InvalidHeader:1044},b={CallBackGivenToMobileApp:(e,t,n,o,r)=>{if(null!=navigator&&null!=navigator.userAgent&&""!=navigator.userAgent){var i='5006||~||{"message": "","messageType": 0,"screenTitle":"'+t+'","screenType": 0,"navType": 0,"action": "53|~|'+JSON.stringify({NativeAction:e,Footer:n,IsFullLength:r}).replace(/\\\"/g,'"').replace(/"/g,'\\"')+'" }';navigator.userAgent.indexOf("VagaroAndroidPhone")>-1?void 0!==window.JSInterface&&window.JSInterface.CallWSMethod(i):navigator.userAgent.indexOf("com.vagaro.iospro")>-1&&navigator.userAgent.indexOf("iPhone")>-1&&setTimeout(()=>{window.location="js-call:myObjectiveCFunction:"+i},o)}},CheckIsFromProAppWithoutState:()=>null!=navigator&&null!=navigator.userAgent&&""!=navigator.userAgent&&(navigator.userAgent.indexOf("VagaroAndroidPhone")>-1||navigator.userAgent.indexOf("com.vagaro")>-1&&navigator.userAgent.indexOf("iPhone")>-1?(document.body.classList.add("vg_ismobile"),!0):(document.body.classList.remove("vg_ismobile"),!1)),MobileDatePicker:e=>{if(null!=navigator&&null!=navigator.userAgent&&""!=navigator.userAgent){var t="5006||~||"+e;navigator.userAgent.indexOf("VagaroAndroidPhone")>-1||navigator.userAgent.toLowerCase().indexOf("android")>-1?void 0!==window.JSInterface&&window.JSInterface.CallWSMethod(t):(navigator.userAgent.indexOf("com.vagaro.iospro")>-1&&navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.toLowerCase().indexOf("ipad")>-1)&&(window.location="js-call:myObjectiveCFunction:"+t)}},CheckIsFromIpadAndroidTabWithoutParm:()=>{if(null==navigator||null==navigator.userAgent||""==navigator.userAgent)return!1;var e=navigator.userAgent.match(/ipad/i)||navigator.userAgent.match(/iphone/i)||navigator.userAgent.match(/itouch/i)||navigator.userAgent.match(/android/i)||!1;return!!(navigator.userAgent.toLowerCase().indexOf("com.vagaro.iospro")>-1||navigator.userAgent.toLowerCase().indexOf("com.vagaro.androidpro")>-1)&&!1!==e},CheckIsFromIpadAndroidPayproWithoutParm:()=>{if(null==navigator||null==navigator.userAgent||""==navigator.userAgent)return!1;var e=navigator.userAgent.match(/ipad/i)||navigator.userAgent.match(/iphone/i)||navigator.userAgent.match(/itouch/i)||navigator.userAgent.match(/android/i)||!1;return navigator.userAgent.toLowerCase().indexOf("com.vagaro.androidpro paypro")>-1&&!1!==e},CheckIsPayProDevice:()=>null!==navigator&&null!==navigator.userAgent&&""!==navigator.userAgent&&(null!=navigator.userAgent.match(/D052/i)||null!=navigator.userAgent.match(/T2/i)),CheckIsFromPaydeskWithoutParm:()=>null!==navigator&&null!==navigator.userAgent&&""!==navigator.userAgent&&(null!==navigator.userAgent.match(/T2s_LITE/i)||null!==navigator.userAgent.match(/T2lite/i)),CheckIsIphoneIosproWithoutState:()=>null!=navigator&&null!=navigator.userAgent&&""!=navigator.userAgent&&!!(navigator.userAgent.indexOf("com.vagaro.iospro")>-1&&navigator.userAgent.indexOf("iPhone")>-1),ToolkitSendCallbacktoMobile:(e,t)=>
1{if(null!=navigator&&null!=navigator.userAgent&&""!=navigator.userAgent){var n=e+"||~||"+t;navigator.userAgent.indexOf("VagaroAndroidPhone")>-1||navigator.userAgent.toLowerCase().indexOf("android")>-1?void 0!==window.JSInterface&&window.JSInterface.CallWSMethod(n):(navigator.userAgent.indexOf("com.vagaro.iospro")>-1&&navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.toLowerCase().indexOf("ipad")>-1)&&(window.location="js-call:myObjectiveCFunction:"+n)}},safeClone:e=>{if(null==e||"object"!=typeof e)return e;if(Array.isArray(e)){let t=new WeakSet;try{return JSON.parse(JSON.stringify(e,(e,n)=>{if("function"!=typeof n&&(!n||"object"!=typeof n||!n.$$typeof)){if("object"==typeof n&&null!==n){if(t.has(n))return"[Circular]";t.add(n)}return n}}))}catch(e){return[]}}let t=new WeakSet;try{return JSON.parse(JSON.stringify(e,(e,n)=>{if("function"!=typeof n&&(!n||"object"!=typeof n||!n.$$typeof)){if("object"==typeof n&&null!==n){if(t.has(n))return"[Circular]";t.add(n)}return n}}))}catch(e){return{}}},CallBackGivenToMobileAppForStarredList:(e,t)=>{if(null!=navigator&&null!=navigator.userAgent&&""!=navigator.userAgent){var n="5006||~||"+e;navigator.userAgent.indexOf("VagaroAndroid")>-1?void 0!==window.JSInterface&&window.JSInterface.CallWSMethod(n):navigator.userAgent.indexOf("com.vagaro.iospro")>-1&&setTimeout(()=>{window.location="js-call:myObjectiveCFunction:"+n},t)}},displayErrorMessage:(e,t,n)=>{((e=s,t,n=s)=>{let o=(e,t)=>(p[e]&&p[e]?._internalRoot!==null||(p[e]=m(t)),p[e]);switch(e){case s:{let e=o(s,s);e?.render(t);break}case d:{let e=o(d,d);e?.render(t);break}case c:{let e=o(c,c);e?.render(t);break}case w:{let e=o(w,w);e?.render(t);break}case l:p.Custom=m(n),p.Custom?.render(t);break;case u:p.exportdiv=m(n),p.exportdiv?.render(t);break;case g:p.printdiv=m(n),p.printdiv?.render(t)}})(w,i.createElement(i.Fragment,null,i.createElement(h,{alertType:e===f.Success?"success":e===f.Fail?"fail":"warning",strMessage:t||"Some error Occurred. Please try again.",displaytime:n||4e3})))},CheckIsTabletOrIpad:e=>{if(!("u">typeof window)||null===navigator||!navigator.userAgent)return!1;{let t=navigator.userAgent.toLowerCase(),n=t.includes("ipad")||t.includes("macintosh")&&navigator.maxTouchPoints>1,o=t.includes("android")&&!t.includes("mobile"),r=/windows|macintosh|cros/.test(t),i=!1;return i=e?navigator.maxTouchPoints>1&&!r&&window.innerWidth<=1024&&window.matchMedia("(orientation: portrait)").matches:navigator.maxTouchPoints>1&&!r&&window.innerWidth>=768&&window.innerWidth<=1366,!(navigator.userAgent.toLowerCase().indexOf("com.vagaro.iospro")>-1||navigator.userAgent.toLowerCase().indexOf("com.vagaro.androidpro")>-1)&&(n||o||i)}},isNullEmptyOrWhiteSpace:function(e){return"number"==typeof e&&(e=e.toString()),null==e||""===e||""===e.trim()},CheckIsProApp:()=>null!=navigator&&null!=navigator.userAgent&&""!=navigator.userAgent&&!!navigator?.userAgent?.includes("com.vagaro")},I={action:1,timePickerRight:2,timePickerLeft:3,smileyPicker:4,addressSuggestions:5,dateRangePickerAutoPosition:6,dateRangePickerRight:7,threeDotmenu:8,nestedDropdownPortal:9,phonecountry:10,tableGrid:11,emojiPicker:12,gifPicker:13};void 0===window.ToolkitReceiveCallbackFromMobile&&(window.ToolkitReceiveCallbackFromMobile=function(e){var t=JSON.parse(e).callbackIndex;69===t&&(null!=document.getElementById("DropDown11")&&document.getElementById("DropDown11").click(),null!=document.getElementById("phoneControlId")&&document.getElementById("phoneControlId").click(),null!=document.getElementById("colorPickerId")&&document.getElementById("colorPickerId").click(),null!=document.getElementById("addressControl")&&document.getElementById("addressControl").click(),null!=document.getElementById("BottomSheetId")&&document.getElementById("BottomSheetId").click(),null!=document.getElementById("AiControlId")&&document.getElementById("AiControlId").click()),54===t&&null!=document.getElementById("TimePickerId1")&&document.getElementById("TimePickerId1").click()});let A=(e,t,n,r)=>{let i=o(e).format("MMM DD, YYYY"),a=o(t).format("MMM DD, YYYY");if(localStorage.setItem("dateRangeData",JSON.stringify({formattedStartDate:i,formattedEndDate:a,ActionTagForDate:n})),localStorage.setItem("ActionTagForDate",n),null!==document.getElementById(r)){document.getElementById(r).value=`${i} - ${a}`;let o=new CustomEvent("nativeDateRangepickerSelected",{detail:{startDate:e,endDate:t,ActionTagForDate:n,formattedStartDate:i,formattedEndDate:a,elementId:r}});window.dispatchEvent(o)}};function y(e){void 0===window.setMobileDataVagaroAI&&(window.setMobileDataVagaroAI=function(t){let n=JSON.parse(t);if(108===n.callbackIndex){let t=JSON.parse(n.actionVagaroAIDesc),o=t?.message?.message;e(n.callFromLocation,o)}})}void 0===window.setToolkitMobileData&&(window.setToolkitMobileData=function(e){if(e){var t={};try{t=JSON.parse(e)}catch(e){return}var n=t.callbackIndex;if(52===n){let{MerchantSignupBack:e}=t;if(e&&"1"===e){let e=document.getElementById("close-renter-popup");if(e instanceof HTMLElement&&document.body.contains(e))return void e.click();
1let t=document.getElementById("close-change-log-popup");if(t instanceof HTMLElement&&document.body.contains(t))return void t.click()}}if(79===n){let e;var r=t.actionResponse.timeCardDate;let{actionResponse:n,callFromLocation:o}=t;e=null!=n&&void 0!==n.callFromLocation&&null!=n.callFromLocation?n.callFromLocation.split("|#|")[0]:o.split("|#|")[0];let i=document.getElementById(e);if(null!=i){let e=new CustomEvent("nativeDateRangeSelected",{detail:{date:r,elementId:i.id}});window.dispatchEvent(e),i.value=r}}if(52===n||32===n){let e,{actionResponse:n,callFromLocation:r}=t;var i,a,l=t?.actionResponse?.actionTag|t?.actionTag;if(e=null!=n&&void 0!==n.callFromLocation&&null!=n.callFromLocation?n.callFromLocation?.split("|#|")[0]:r?.split("|#|")[0],"1"==l)i=o().startOf("day"),a=o().endOf("day");else if("2"==l)i=o().subtract(1,"days"),a=o().subtract(1,"days");else if("3"==l)i=o().subtract(6,"days"),a=o();else if("4"==l)i=o().subtract(29,"days"),a=o();else if("5"==l)i=o().startOf("month"),a=o().endOf("month");else if("6"==l)i=o().subtract(1,"month").startOf("month"),a=o().subtract(1,"month").endOf("month");else if("7"==l)i=o().startOf("year"),a=o();else if("8"==l)i=o().subtract(1,"year").startOf("year"),a=o().subtract(1,"year").endOf("year");else if("9"==l)i=t.actionResponse.startDate,a=t.actionResponse.endDate;else if("10"==l){let t=new CustomEvent("nativeDateRangepickerSelected",{detail:{startDate:null,endDate:null,ActionTagForDate:10,formattedStartDate:null,formattedEndDate:null,elementId:e}});window.dispatchEvent(t);return}A(i,a,l,e)}if(69===n){let{actionResponse:e,callFromLocation:n}=t,o=document.getElementById(n)||document.getElementById(e.callFromLocation);null!=o&&o.click()}if(54===n){let{actionResponse:e,name:n}=t,o=e.time,r=document.getElementById(n)||document.getElementById(e.name);if(null!=r){let e=new CustomEvent("nativeTimeSelected",{detail:{time:o,elementId:r.id}});window.dispatchEvent(e),r.value=o}}}}),void 0==window||window.LoadMobileData||(window.LoadMobileData=function(e,t,n){A(e,t,"9",n)});let k=(e,t)=>{if(e){t?.current?.focus();let e=t?.current?.getBoundingClientRect();window.scrollTo({top:e?.top+window.scrollY-100,behavior:"smooth"})}},C=e=>null==e||""===e,x=e=>null==e||"object"==typeof e&&0===Object.keys(e).length,E=e=>{let t=document.cookie.split("; ");for(let n=0;n<t.length;n++){let[o,r]=t[n].split("=");if(o===e)return decodeURIComponent(r)}return""},P=e=>{try{let t=new URLSearchParams(window.location.search);if("u">typeof window&&!("u"<typeof window)&&(!0===window.isFromOnlineForms||window.location.pathname.includes("/profile/forms"))){let n=t.get("merchantId"),o=t.get("userId"),r=t.get("grouptoken"),i=t.get("theme")??"";if(n&&o&&r)return{MerchantId:n,UserId:o,grouptoken:r,Theme:i};{let t=decodeURIComponent(document.cookie),n="",o=t.split(";");for(let t=0;t<o.length;t++)o[t].split(/=(.*)/s)[0].trim()===e&&(n=JSON.parse(o[t].split(/=(.*)/s)[1]));return n}}let n=decodeURIComponent(document.cookie),o="",r=n.split(";");for(let t=0;t<r.length;t++)r[t].split(/=(.*)/s)[0].trim()===e&&(o=JSON.parse(r[t].split(/=(.*)/s)[1]));return o}catch(e){return{}}},S=(e,t)=>{var n="",o=window.location.host.split(".");n=o.length>=2?"."+o[o.length-2]+"."+o[o.length-1]:window.location.hostname.replace("www.",".");var r=new Date;r.setTime(r.getTime()+31536e6);var i="expires="+r.toUTCString();document.cookie=e+"="+t+";"+i+";domain="+n+"; path=/"},T={MerchantId:"MerchantId",UserId:"UserId",APIV1:"VagaroCoreAPIURLV1",APIV2:"VagaroCoreAPIURLV2",grouptoken:"grouptoken",AC_TOKEN:"ac_tkn",Theme:"Theme"},M=e=>{let t=P("rpt_data");if(!(!window.location.origin.includes("http://localhost:3000")&&(C(t)||C(t.MerchantId)||C(t.UserId)||C(t.grouptoken)))){if(e===T.MerchantId)if(!C(t)&&!C(t.MerchantId))return t.MerchantId;else return"lopk5rlkYwOPc~2nVnF0Mg==";if(e===T.UserId)if(!C(t)&&!C(t.UserId))return t.UserId;else return"E4l7Jc7rF-BfHJSsIrTOmg==";if(e===T.APIV1)if(!C(t)&&!C(t.VagaroCoreApiUrl))return t.VagaroCoreApiUrl;else return"https://api.localdev.com/us02/api/v1/";if(e===T.APIV2)return null;if(e===T.grouptoken)if(!C(t)&&!C(t.grouptoken))return t.grouptoken.toLowerCase();else return"us02";if(e===T.Theme)if(!C(t)&&!C(t.Theme))return t.Theme;else return""}},R="https://vagaro.azureedge.net/static-content"}}]);
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.