1(self.rspackChunkvagaro_websitebuilder_consumer=self.rspackChunkvagaro_websitebuilder_consumer||[]).push([[5255],{37808(e){function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=37808,e.exports=t},14977(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(74848);n(96540);var r=n(2390);let i=({BadgeText:e="Input Badge",BadgeVariation:t="",BadgeSize:n,Children:i,BadgeColorVariant:a,Tooltip:l=!1,TooltipMessage:s,OnClick:c,PrefixIcon:d,SuffixIcon:u,onPrefixIconClick:g,onSuffixIconClick:m})=>{let p="vg-badge",f=[p,`${p}--${n}`,`${p}-${t}`,"none"===t&&a?`${p}-color-${a}`:""].join(" ").trim(),h=e=>{c&&c(e)};return(0,o.jsx)(o.Fragment,{children:l?(0,o.jsx)(r.default,{BeakPoint:"Up",BeakPosition:"Middle",Duration:0,OnTooltipClose:()=>{},ShowHover:!0,TextAlign:"right",Html:!0,TooltipText:s,TooltipRender:"portal",Children:(0,o.jsxs)("div",{className:f,onClick:h,children:[d&&(0,o.jsx)("span",{className:"vg-badge__prefix-icon",onClick:e=>{e.stopPropagation(),g&&g(e)},style:g?{cursor:"pointer"}:void 0,children:d}),"custom"===t&&"string"==typeof i?(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:i}}):"custom"===t?i:e,u&&(0,o.jsx)("span",{className:"vg-badge__suffix-icon",onClick:e=>{e.stopPropagation(),m&&m(e)},style:m?{cursor:"pointer"}:void 0,children:u})]})}):(0,o.jsxs)("div",{className:f,onClick:h,style:c?{cursor:"pointer"}:void 0,children:[d&&(0,o.jsx)("span",{className:"vg-badge__prefix-icon",onClick:e=>{e.stopPropagation(),g&&g(e)},style:g?{cursor:"pointer"}:void 0,children:d}),"custom"===t&&"string"==typeof i?(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:i}}):"custom"===t?i:e,u&&(0,o.jsx)("span",{className:"vg-badge__suffix-icon",onClick:e=>{e.stopPropagation(),m&&m(e)},style:m?{cursor:"pointer"}:void 0,children:u})]})})}},2390(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>l});var o=n(74848),r=n(96540),i=n(40961),a=n(98232);let l=({TooltipText:e,Children:t,ScreenTitleForMobile:n,Html:l=!0,TextAlign:s="center",BeakPoint:c="Down",BeakPosition:d="Middle",Duration:u=2e3,ShowHover:g=!0,TriggerTooltip:m=!1,OnTooltipClose:p,FullWidth:f=!1,TooltipRender:h="inline",MaxWidth:v,FullHeight:w=!1,ForceWebRender:b=!1})=>{let[y,k]=(0,r.useState)("top-center"),[I,x]=(0,r.useState)(!1),A=(0,r.useRef)(null),C=(0,r.useRef)(null),T=(0,r.useRef)(null),E=(0,r.useRef)(null),S=(0,r.useRef)(!1),[O,M]=(0,r.useState)({top:0,left:0}),L=a.Wp.CheckIsFromProAppWithoutState()&&!b,D=a.Wp.CheckIsFromIpadAndroidTabWithoutParm(),P=g&&!D,R=(0,r.useRef)([]),B=e=>{let t=getComputedStyle(e),n=t.overflowY,o=t.overflowX;return/(auto|scroll|overlay)/.test(n)||/(auto|scroll|overlay)/.test(o)},F=(0,r.useCallback)(e=>{let t=[],n=e?.parentElement||null;for(;n;)B(n)&&t.push(n),n=n.parentElement;return t.push(document.scrollingElement||document.documentElement),t},[]);(0,r.useEffect)(()=>(T.current&&(clearTimeout(T.current),T.current=null),!g&&m?(x(!0),u>0&&(T.current=setTimeout(()=>{x(!1),p&&p()},u))):x(!1),()=>{T.current&&(clearTimeout(T.current),T.current=null)}),[m,u,p,g]),(0,r.useEffect)(()=>{if("portal"!==h&&I&&A.current&&C.current){let e=A.current.getBoundingClientRect(),t=C.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?k("top-center"):i?k("bottom-center"):a?k("left"):l?k("right"):k("bottom-center")}},[I,h]),(0,r.useEffect)(()=>{if("inline"!==h&&I&&C.current){let e=C.current.getBoundingClientRect(),t=A.current?.getBoundingClientRect().width??200,n=A.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?k("top-center"):a?k("bottom-center"):l?k("left"):s?k("right"):k("bottom-center")}},[I,h]);let j=()=>{if(!C.current||!A.current)return"Middle";let e=C.current.getBoundingClientRect(),t=A.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=d;"Auto"===d&&(e=j()),"Down"===c&&"Middle"===e?k("bottom-center"):"Down"===c&&"Left"===e?k("bottom-left"):"Down"===c&&"Right"===e?k("bottom-right"):"Up"===c&&"Left"===e?k("top-left"):"Up"===c&&"Right"===e&&k("top-right")},[c,d,y,I]),(0,r.useEffect)(()=>
1{if("Auto"!==d)return;let e=()=>{if(I){let e=j();"Down"===c&&"Middle"===e?k("bottom-center"):"Down"===c&&"Left"===e?k("bottom-left"):"Down"===c&&"Right"===e?k("bottom-right"):"Up"===c&&"Left"===e?k("top-left"):"Up"===c&&"Right"===e&&k("top-right")}};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[d,c,I,window.innerWidth]);let N=(0,r.useCallback)(()=>{if("inline"===h||!I||"Auto"!==d||!A.current||!C.current)return;let e=A.current.getBoundingClientRect(),t=C.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,I,d]),W=(0,r.useCallback)(()=>{if("inline"===h||!I||!A.current||!C.current)return;let e=A.current.getBoundingClientRect(),t=C.current.getBoundingClientRect(),n=0,o=0,r=t.left+t.width/2,i=t.top+t.height/2;switch(y){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)),c=Math.max(8,Math.min(n,l-e.height-8)),d=`${r-s}px`;M({top:c,left:s,maxWidth:N(),beakLeft:d})},[h,I,y,N]);(0,r.useLayoutEffect)(()=>{"portal"===h&&W()},[I,y,d,h,W]),(0,r.useEffect)(()=>{if("inline"===h||!I)return;let e=F(C.current);R.current=e;let t=()=>W();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)}},[I,y,d,h,W,F]),(0,r.useEffect)(()=>{if(!I)return;let e=F(C.current),t=()=>{S.current=!0,x(!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)}},[I,F,p]);let _=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"";(0,r.useEffect)(()=>{let e=e=>{D&&C.current&&!C.current.contains(e.target)&&x(!1)};if(D)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[D]),(0,r.useEffect)(()=>{if("portal"!==h&&!v&&I&&A.current&&C.current&&"Auto"===d){let e=A.current,t=e.getBoundingClientRect(),n=C.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`)}},[I,y,h,v]);let U=()=>{E.current&&(window.clearTimeout(E.current),E.current=null)},$=()=>{P&&"inline"!==h&&(U(),x(!0))},J=()=>{P&&"inline"!==h&&(U(),E.current=window.setTimeout(()=>x(!1),10))};(0,r.useEffect)(()=>()=>U(),[]);let V=()=>{!D&&g&&(S.current=!1,x(!0))},H="portal"===h&&P?{onMouseEnter:$,onMouseLeave:J,onMouseMove:()=>{S.current&&$()}}:{onMouseEnter:V,onMouseLeave:()=>{!D&&g&&(S.current=!1,x(!1))},onMouseMove:()=>{S.current&&V()}};return(0,o.jsxs)("div",{className:`vg-group vg-tooltip-group ${w?"vg-tooltip-fullheight":""}`,children:[(0,o.jsxs)("div",{className:`vg-tooltip vg-tooltip-${y} ${f?"vg-tooltip-fullwidth":""} ${"portal"===h?"vg-tooltip-portal-trigger":""}`,ref:C,...H,onPointerUp:o=>{if(o.preventDefault(),o.stopPropagation(),g&&(D&&!L&&x(!0),L&&e)){var i={};i.message=e,i.messageType=0,i.screenTitle=r.isValidElement(t)?n||"Info":_(e),i.screenType=0,i.navType=51,i.action="",a.Wp.ToolkitSendCallbacktoMobile(5006,JSON.stringify(i))}},children:["inline"===h&&e&&I&&(0,o.jsx)("div",{className:`vg-tooltip-sms vg-text-${s}`,ref:A,style:v?{maxWidth:v}:void 0,children:l?(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""}}):e&&_(e)}),t]}),"portal"===h&&e&&I&&(0,i.createPortal)((0,o.jsx)("div",{className:`vg-tooltip vg-tooltip-portal vg-tooltip-${y} ${f?"vg-tooltip-fullwidth":""}`,children:(0,o.jsx)("div",{className:`vg-tooltip-sms vg-text-${s}
1`,ref:A,style:{position:"fixed",top:O.top,left:O.left,maxWidth:v||O.maxWidth,zIndex:9999,visibility:0===O.left&&0===O.top?"hidden":"visible","--beak-left":O.beakLeft||"50%"},onMouseEnter:$,onMouseLeave:J,children:l?(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""}}):e&&_(e)})}),document.body)]})}},98232(e,t,n){"use strict";n.d(t,{C2:()=>L,ud:()=>O,By:()=>v,MI:()=>M,IU:()=>y,Dx:()=>E,BL:()=>w,UM:()=>T,_A:()=>x,pz:()=>I,kz:()=>C,Iu:()=>A,My:()=>S,Wp:()=>b});var o=n(95093),r=n(74848),i=n(96540),a=n(5338);let l="Custom",s="OpenDialog",c="OpenDialog1",d="OpenDialog2",u="exportdiv",g="printdiv",m="successAlert",p={Custom:null,OpenDialog:null,OpenDialog1:null,OpenDialog2:null,successAlert:null,exportdiv:null,printdiv:null},f=e=>{let t=document.getElementById(e);return t?(0,a.createRoot)(t):null};p.Custom=f(l),p.OpenDialog=f(s),p.OpenDialog1=f(c),p.OpenDialog2=f(d),p.successAlert=f(m),p.exportdiv=f(u),p.printdiv=f(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)})(m)},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})]})})]})})},v={Success:1,Fail:2,Warning:3},w={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]=f(t)),p[e]);switch(e){case s:{let e=o(s,s);e?.render(t);break}case c:{let e=o(c,c);e?.render(t);break}case d:{let e=o(d,d);e?.render(t);break}case m:{let e=o(m,m);e?.render(t);break}case l:p.Custom=f(n),p.Custom?.render(t);break;case u:p.exportdiv=f(n),p.exportdiv?.render(t);break;case g:p.printdiv=f(n),p.printdiv?.render(t)}})(m,i.createElement(i.Fragment,null,i.createElement(h,{alertType:e===v.Success?"success":e===v.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")},y={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 k=(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 I(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}k(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){k(e,t,"9",n)});let x=(e,t)=>{if(e){t?.current?.focus();let e=t?.current?.getBoundingClientRect();window.scrollTo({top:e?.top+window.scrollY-100,behavior:"smooth"})}},A=e=>null==e||""===e,C=e=>null==e||"object"==typeof e&&0===Object.keys(e).length,T=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""},E=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=/"},O={MerchantId:"MerchantId",UserId:"UserId",APIV1:"VagaroCoreAPIURLV1",APIV2:"VagaroCoreAPIURLV2",grouptoken:"grouptoken",AC_TOKEN:"ac_tkn",Theme:"Theme"},M=e=>{let t=E("rpt_data");if(!(!window.location.origin.includes("http://localhost:3000")&&(A(t)||A(t.MerchantId)||A(t.UserId)||A(t.grouptoken)))){if(e===O.MerchantId)if(!A(t)&&!A(t.MerchantId))return t.MerchantId;else return"lopk5rlkYwOPc~2nVnF0Mg==";if(e===O.UserId)if(!A(t)&&!A(t.UserId))return t.UserId;else return"E4l7Jc7rF-BfHJSsIrTOmg==";if(e===O.APIV1)if(!A(t)&&!A(t.VagaroCoreApiUrl))return t.VagaroCoreApiUrl;else return"https://api.localdev.com/us02/api/v1/";if(e===O.APIV2)return null;if(e===O.grouptoken)if(!A(t)&&!A(t.grouptoken))return t.grouptoken.toLowerCase();else return"us02";if(e===O.Theme)if(!A(t)&&!A(t.Theme))return t.Theme;else return""}},L="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.