1import{o as e,r as t}from"./rolldown-runtime-DsU0OqAN.js";import{$ as n,$i as r,$n as i,$r as a,$t as o,A as s,Aa as c,Ai as l,An as u,Ar as d,At as f,B as p,Ba as m,Bi as h,Bn as g,Br as _,Bt as v,C as y,Ca as b,Ci as x,Cn as S,Cr as C,Ct as w,D as T,Da as E,Di as D,Dn as ee,Dr as te,Dt as ne,E as re,Ea as O,Ei as ie,En as ae,Er as oe,Et as se,F as ce,Fa as le,Fi as ue,Fn as de,Fr as fe,Ft as pe,G as me,Ga as he,Gi as ge,Gn as _e,Gr as ve,Gt as ye,H as be,Ha as xe,Hi as Se,Hn as Ce,Hr as we,Ht as Te,I as Ee,Ia as De,Ii as Oe,In as ke,Ir as Ae,It as je,J as Me,Ja as Ne,Ji as Pe,Jn as Fe,Jr as Ie,Jt as Le,K as Re,Ka as ze,Ki as Be,Kn as Ve,Kr as He,Kt as Ue,L as We,La as Ge,Li as Ke,Ln as qe,Lr as Je,Lt as Ye,M as eee,Ma as Xe,Mi as Ze,Mn as tee,Mr as Qe,Mt as $e,N as et,Na as tt,Ni as nee,Nn as ree,Nr as nt,Nt as iee,O as aee,Oa as rt,Oi as it,On as at,Or as ot,Ot as st,P as ct,Pa as lt,Pi as oee,Pn as ut,Pr as dt,Pt as ft,Q as pt,Qi as mt,Qn as ht,Qr as gt,Qt as _t,R as vt,Ra as k,Ri as yt,Rn as bt,Rr as xt,Rt as St,S as Ct,Sa as wt,Si as Tt,Sn as see,Sr as Et,St as cee,T as lee,Ta as Dt,Ti as Ot,Tn as A,Tr as uee,Tt as dee,U as kt,Ua as j,Ui as fee,Un as pee,Ur as At,Ut as jt,V as Mt,Va as Nt,Vi as Pt,Vn as Ft,Vr as It,Vt as Lt,W as Rt,Wa as zt,Wi as Bt,Wn as Vt,Wr as Ht,Wt as mee,X as hee,Xa as gee,Xi as _ee,Xn as vee,Xr as Ut,Xt as Wt,Y as Gt,Ya as Kt,Yi as qt,Yn as Jt,Yr as Yt,Yt as Xt,Z as Zt,Zi as Qt,Zn as $t,Zr as en,Zt as tn,_ as nn,_a as rn,_i as an,_n as on,_r as sn,_t as cn,a as ln,aa as un,ai as dn,an as fn,ar as pn,at as mn,b as hn,ba as gn,bi as _n,bn as vn,br as yn,bt as M,c as bn,ca as xn,ci as Sn,cn as Cn,cr as wn,ct as Tn,d as En,da as Dn,di as On,dn as kn,dr as An,dt as jn,ea as Mn,ei as Nn,en as Pn,er as yee,et as bee,f as xee,fa as See,fi as Fn,fn as N,fr as Cee,ft as In,g as wee,ga as Tee,gi as Ln,gn as Rn,gr as Eee,gt as zn,h as Dee,ha as Oee,hi as Bn,hn as Vn,hr as Hn,ht as P,i as kee,ia as Aee,ii as Un,in as Wn,ir as Gn,it as jee,j as Mee,ja as F,ji as Nee,jn as Pee,jr as Fee,jt as Iee,k as Lee,ka as Kn,ki as Ree,kn as zee,kr as qn,kt as Jn,l as Yn,la as Xn,li as Zn,ln as Qn,lr as $n,lt as er,m as tr,ma as nr,mi as rr,mn as ir,mr as ar,mt as or,n as sr,na as cr,ni as lr,nn as ur,nr as dr,nt as fr,o as pr,oa as mr,oi as I,on as hr,or as gr,ot as _r,p as vr,pa as yr,pi as br,pn as xr,pr as Sr,pt as Cr,q as wr,qa as Tr,qi as Er,qn as Dr,qr as Or,qt as kr,r as Ar,ra as jr,ri as Mr,rn as Nr,rr as Pr,rt as Fr,s as Ir,sa as Lr,si as Rr,sn as zr,sr as Br,st as Vr,t as Bee,ta as Vee,ti as Hr,tn as Ur,tr as Hee,tt as Uee,u as Wee,ua as Gee,ui as Kee,un as Wr,ur as qee,ut as Gr,v as Jee,va as Yee,vi as Kr,vn as Xee,vr as qr,vt as Jr,w as Zee,wa as Qee,wi as Yr,wn as $ee,wr as Xr,wt as ete,x as Zr,xa as Qr,xi as $r,xn as tte,xr as ei,xt as L,y as ti,ya as ni,yi as ri,yn as ii,yr as ai,yt as oi,z as si,za as ci,zi as li,zn as ui,zr as di,zt as fi}from"./vendor-Bz3kblQb.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var R=e(gee());(function(){if(typeof window>`u`)return;let{hash:e}=window.location;if(e&&e.startsWith(`#/`)){let t=e.substring(1);window.history.replaceState(null,``,t),R.default.info(`[Hash Migration] Redirected from:`,e,`to:`,t)}})(),Kt();var z=e(Tr()),pi=e(ze()),mi=(0,pi.default)();Ne.locale(mi),z.default.locale(mi),R.default.info(`locale`,mi,Ne.locale(),Ne().format(`LT`),Ne().format(`L`));var B=e(he()),hi=zt(),V=e(b()),H=e(yr()),gi=e(See()),_i=e(Dn()),vi={get(e){try{let t=localStorage.getItem(e);return t?JSON.parse(t):void 0}catch{return}},set(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}},remove(e){try{localStorage.removeItem(e)}catch{}}},yi=[{env:`local`,path:`/environments/config.local.json`,subDomain:[`localhost`]},{env:`staging`,path:`/environments/config.staging.json`,subDomain:[`staging`,`app-staging`,`frontend-app-staging`,`d1l9fddsa8xxqn`,`d3aqfzm8lqh4mu`,`components-staging`,`frontend-components-staging`,`d1w7tzfvvboch`,`admin-staging`,`frontend-admin-staging`,`d2g8hjn2ooyrt0`,`housekeeping-staging`,`invite-staging`,`dashboard-staging`,`signup-staging`,`findacleaner-staging`]},{env:`prod`,path:`/environments/config.prod.json`,subDomain:[`app`,`app-no-cdn`,`frontend-app`,`d2w6kfyt6ad0rb`,`d1gidzig48053s`,`components`,`frontend-components`,`d33g0h4yt2qp2m`,`admin`,`frontend-admin`,`djrhmasvndwui`,`housekeeping`,`invite`,`dashboard-panel`,`signup`,`findacleaner`]}],bi=typeof window<`u`?r:{parse:()=>null},xi=typeof window<`u`?vi:{remove:()=>null,set:()=>null,get:()=>null},Si=`prod`,Ci=yi.find(({env:e})=>e===Si),wi=`properly:overrideEnvironment`,Ti=()=>xi.get(wi),Ei=e=>xi.set(wi,e),Di=Ti()||null,Oi=typeof window<`u`&&window.location.search,ki=()=>{try{let{environment:e,env:t,stage:n,staging:r,prod:i,production:a}=bi.parse(Oi)||{},o={production:`prod`,stage:`staging`},s=String(e||t||``).toLowerCase();return o[s]?o[s]:e||t||(n?`stage`:null)||(r?`staging`:null)||(i?`prod`:null)||(a?`prod`:null)}catch(e){return console.error(`Error getting environment from query`,e),``}};function Ai(){return Ti()}function ji(e){xi.set(wi,e)}function Mi(){xi.remove(wi)}var Ni={},Pi=(e,t=`info`)=>{try{Ni[e]||(Ni[e]=!0,R.default[t](e))}catch{}};function Fi(e){let t=window.location.hostname||``,n=t.split(`.`)[0],r=ki();r&&Ei(r);let i=r||Di||e,a=!!i;a&&Pi(`Environment has been overridden ${i}`);let o=e=>[].concat(e.subDomain).indexOf(n)!==-1,s=({env:t})=>t===i||t===e,c=yi.filter(o),l=a?yi.filter(s):c,u=l[0];return a&&u?(Pi(`Returning override environment ${i}`),{...u,isOverride:a,subDomainEnv:c,all:yi}):(a&&!u?(Pi(`No environments matched for override ${i}`,`error`),u=Ci):n?l.length>1?(Pi(`More than one environment matched ${JSON.stringify(l)}`,`error`),u=Ci):u||(Pi(`No environments matched for subdomain ${n}`,`error`),u=Ci):(Pi(`No subdomain found ${t}`.trim(),`error`),u=Ci),{...u,isOverride:a,subDomainEnv:c,all:yi})}var Ii={name:`webapp`,version:`2.5.19`,description:`Properly app.getproperly.com`,repository:`https://github.com/GitProperly/webapp`,private:!0,main:`index.js`,author:`Properly`,license:`UNLICENSED`,scripts:{lint:`eslint "{test,e2e,src}/**/*.{js,jsx}" --quiet && prettier "{test,e2e,src}/**/*.{js,jsx}" -l --write`,todo:`leasot -x 'src/**/*.js' && leasot -x 'test/**/*.js' && leasot -x 'e2e/**/*.js'`,start:`cross-env VITE_BACKEND_ENV=staging vite`,"start:local":`cross-env VITE_BACKEND_ENV=local vite`,"start:prod":`echo 'YOU BE CAREFUL NOW!!!' && cross-env VITE_BACKEND_ENV=prod vite`,build:`vite build`,"build:analyze":`cross-env ANALYZE=true vite build`,preview:`vite preview`,test:`DEBUG_PRINT_LIMIT=10000 vitest`,"test:ui":`DEBUG_PRINT_LIMIT=10000 vitest --ui`,"test:shard":`DEBUG_PRINT_LIMIT=10000 vitest --shard`,"test:ci":`DEBUG_PRINT_LIMIT=10000 vitest run`,e2e:`playwright test`,"e2e:single:watch":`playwright test --debug`,"e2e:start":`playwright test --workers=4`,"e2e:headless":`cross-env E2E_ENV=staging playwright test --project=chromium`,"e2e:local":`cross-env E2E_ENV=staging playwright test --ui`,"e2e:staging":`cross-env E2E_ENV=staging playwright test`,"e2e:prod":`cross-env E2E_ENV=prod playwright test`,"e2e:ci":`cross-env E2E_ENV=ci playwright test --project=chromium --reporter=github`,"e2e:ci:local":`cross-env E2E_ENV=ci playwright test --project=chromium`,precommit:`lint-staged`,postcommit:`npm run todo`,"release:patch":`release-it patch`,"release:minor":`release-it minor`,"release:major":`release-it major`,"release:stage:redeploy":`release-it --config .release-it.redeploy.js`,"release:prod":`release-it --config .release-it.prod.js`,"release:dry":`release-it --dry-run`,"firebase-deploy":`npm run build && firebase deploy --project properly-desktop-$NAME`,prepare:`husky`},"lint-staged":{"*.{js,jsx}":[`prettier --write`,`eslint --no-warn-ignored`]},dependencies:{"@apollo/client":`^4.1.1`,"@emotion/react":`^11.14.0`,"@emotion/styled":`^11.14.1`,"@mui/icons-material":`^9.0.0`,"@mui/material":`^9.0.0`,"@react-google-maps/api":`^2.20.8`,"@react-oauth/google":`^0.13.4`,"@recurly/react-recurly":`^2.0.1`,"@redux-devtools/extension":`^4.0.0`,"@sentry/react":`^10.35.0`,"@stripe/react-stripe-js":`^6.3.0`,"@stripe/stripe-js":`^9.3.1`,"browser-locale":`^1.0.3`,classnames:`^2.5.1`,"embla-carousel-react":`^8.0.0`,graphql:`^16.11.0`,history:`5.3.0`,i18next:`^26.0.8`,"i18next-browser-languagedetector":`^8.2.0`,"i18next-resources-to-backend":`^1.2.1`,"js-cookie":`^3.0.1`,lodash:`^4.17.21`,loglevel:`^1.9.2`,lunr:`^2.3.9`,moment:`^2.30.1`,"moment-timezone":`^0.6.0`,motion:`^12.27.5`,parse:`^8.6.0`,"prop-types":`^15.8.1`,"query-string":`^9.3.1`,react:`^19.2.3`,"react-datepicker":`^9.1.0`,"react-dnd":`^16.0.1`,"react-dnd-html5-backend":`^16.0.1`,"react-dom":`^19.2.3`,"react-draggable":`^4.4.5`,"react-dropzone":`^15.0.0`,"react-error-boundary":`^6.1.0`,"react-height":`^3.0.0`,"react-hook-form":`^7.71.1`,"react-i18next":`^17.0.6`,"react-infinite-scroller":`^1.2.6`,"react-magnifier":`^3.0.4`,"react-redux":`^9.2.0`,"react-router":`^7.12.0`,"react-scroll":`^1.9.3`,"react-textarea-autosize":`^8.5.9`,"react-virtualized":`^9.22.6`,redux:`^5.0.1`,"redux-first-history":`^5.2.0`,"redux-logger":`^3.0.6`,"redux-saga":`^1.3.0`,reselect:`^5.1.1`,rxjs:`^7.8.2`,"subscriptions-transport-ws":`0.11.0`,xss:`^1.0.15`,"yet-another-react-lightbox":`^3.28.0`},devDependencies:{"@babel/core":`^7.28.6`,"@babel/eslint-parser":`^7.28.6`,"@babel/preset-react":`^7.27.1`,"@commitlint/cli":`^20.3.1`,"@commitlint/config-conventional":`^20.3.1`,"@eslint/js":`^9.39.2`,"@playwright/test":`^1.57.0`,"@release-it/conventional-changelog":`^11.0.0`,"@testing-library/dom":`^10.4.1`,"@testing-library/jest-dom":`^6.6.3`,"@testing-library/react":`^16.3.2`,"@testing-library/user-event":`^14.5.2`,"@vitejs/plugin-react":`^6.0.1`,"@vitest/coverage-v8":`^4.1.5`,"@vitest/ui":`^4.1.5`,"babel-plugin-react-compiler":`^1.0.0`,"cross-env":`^10.1.0`,eslint:`^9.39.2`,"eslint-config-prettier":`^10.1.8`,"eslint-import-resolver-alias":`~1.1.2`,"eslint-plugin-import":`^2.31.0`,"eslint-plugin-jsx-a11y":`^6.10.2`,"eslint-plugin-
1prettier":`^5.5.5`,"eslint-plugin-promise":`^7.2.1`,"eslint-plugin-react":`^7.37.2`,"eslint-plugin-react-compiler":`^19.1.0-rc.2`,"eslint-plugin-react-hooks":`^7.0.1`,globals:`^17.0.0`,husky:`^9.1.7`,jsdom:`^28.0.0`,leasot:`^14.4.0`,"lint-staged":`^16.2.7`,mockdate:`^3.0.5`,playwright:`^1.57.0`,prettier:`^3.8.0`,"release-it":`^20.0.1`,"rollup-plugin-visualizer":`^7.0.1`,vite:`^8.0.10`,"vite-plugin-node-polyfills":`^0.26.0`,"vite-plugin-svgr":`^5.2.0`,vitest:`^4.1.5`},overrides:{"react-infinite-scroller":{react:`^19.2.0`},"react-magnifier":{react:`^19.2.0`},"zod-validation-error":`^4.0.2`},browserslist:[`>0.2%`,`not dead`,`not ie <= 11`,`not op_mini all`],engines:{node:`24.X.X`,npm:`11.X.X`}};function Li(){let e=1789968683*1e3||Date.now(),t=(typeof window<`u`&&window.location.hostname||``).split(`.`)[0];return{_versions_:Ri(),_build_:{buildDate:e,buildTimeFromNow:(0,z.default)(e).fromNow(),buildTimestamp:(0,z.default)(e).format(`z MMM Do YYYY, h:mm a`),buildGitBranch:void 0,buildGitTag:`v2.5.19-prod-20260921053009849`,buildGitCommit:`ebccd6fd24a42db8e19c8165b0d994ec87dec417`,buildGitHash:`ebccd6fd24a42db8e19c8165b0d994ec87dec417`,buildBuildNumber:`28`,buildSubDomain:t}}}function Ri(){return[{name:`@properly/desktop`,version:Ii.version}]}var zi={ENVIRONMENT:`local`,GOOGLE_ANALYTICS_TRACKING_ID:`G-X8B4ZM9WXG`,GOOGLE_ANALYTICS_TRACKING_FINDACLEANER:`G-X8B4ZM9WXG`,GOOGLE_ANALYTICS_TRACKING_INVITE:`G-X8B4ZM9WXG`,GOOGLE_ADWORDS_TRACKING_ID:`AW-792479169`,GOOGLE_ADWORDS_SIGNUP_CONVERSION_ID:`AW-792479169/pQ1RCJ2a4IcBEMGL8fkC`,GOOGLE_ADWORDS_SUBSCRIPTION_CONVERSION_ID:`AW-792479169/e5mfCOOPyYcBEMGL8fkC`,GOOGLE_MAPS_KEY:`AIzaSyCDQ6J2xqS7-MLawTxNBqx017r-bzb-o1k`,GOOGLE_TIMEZONE_KEY:`AIzaSyDQxhXcYjS-4a3TqNwGtNza5xWlQYKJJjA`,GOOGLE_RECAPTCHA_V3_URL:`https://www.recaptcha.net/recaptcha/api.js`,GOOGLE_RECAPTCHA_V3_SITE_KEY:`6LdhuKQZAAAAADNaMz-AVSguHn787LCkUBXfcWJP`,GOOGLE_RECAPTCHA_V2_SITE_KEY:`6Lc9M8EZAAAAAJJZ6h2hlhlU_9akwuNftIq-qbF1`,GOOGLE_OAUTH_CLIENT_ID:`1000838228190-alrj1i6a9hvc8q88g2ho4iqrtm6h4sv7.apps.googleusercontent.com`,APP_ID:`4l2KX8OU9BTYwqfsL9ymcktqFiRkmherAijkpd6d`,JS_KEY:`NGHmEGqLSVYLs9Q5rFC7vzNJTr7S7rACyM9XzeDe`,API_BASE_URL:`http://localhost:5001/api`,API_GRAPHQL_BASE_URL:`http://localhost:5001/api/graphql`,API_GRAPHQL_BASE_SUBSCRIPTION_URL:`ws://localhost:5001/api/subscription`,API_DASHBOARD_GRAPHQL_BASE_URL:`http://localhost:5001/api/dashboard`,PARSE_SERVER_URL:`http://localhost:5000/parse/1`,PARSE_SERVER_LIVE_QUERY_URL:`ws://localhost:5000`,LOGIN_URL:`http://localhost:5001/api/public/login`,SIGNUP_URL:`http://localhost:5000/parse/1/functions/signUpNewUser`,GET_PROPERLY_HELP_LINK:`//help.getproperly.com`,TOS_LINK:`//www.getproperly.com/tos/`,APP_WEB_LINK:`//app-staging.getproperly.com`,APP_ADMIN_LINK:`//localhost:3000`,APP_DASHBOARD_LINK:`//localhost:3001`,PROPERLY_DEEP_LINK_IOS_ANDROID_WEB:`https://8cob.app.link/k2E4y0isE8`,PROPERLY_DEEP_LINK_IOS_FORCE_OPEN_APP:`https://8cob.app.link/Q2JPmLO758`,APP_ANDROID_LINK:`//play.google.com/store/apps/details?id=com.getproperly.properlyv2`,APP_IOS_LINK:`//itunes.apple.com/us/app/properly-visual-checklist/id1032619209?mt=8`,RECURLY_PUBLIC_KEY:`ewr1-Hc5H61tggluSDBQ6820KBh`,RECURLY_SDK_URL:`https://js.recurly.com/v4/recurly.js`,STRIPE_API_KEY:`pk_test_518Yt5EF99eZBocb3snLhJYDAYibJh2o19T99cbKhSDWcw18x1ue8Ha1BIwYjWKfph2NJzvJ4OXgNSl3I1nGO3iJA00iBCmqitz`,STRIPE_LIBRARY_URL:`https://js.stripe.com/v3/`,DESKTOP:{INTERCOM_APP_ID:`lh2wc58b`,SENTRY_CONFIG:`https://[email protected]/304741`,SENTRY_FORCE_IN_DEVELOPMENT:!0},INVITE:{SENTRY_CONFIG:`https://[email protected]/5622071`,SENTRY_FORCE_IN_DEVELOPMENT:!0},SIGNUP:{SENTRY_CONFIG:`https://[email protected]/5655513`,SENTRY_FORCE_IN_DEVELOPMENT:!0},DASHBOARD:{COGNITO:{REGION:`us-east-1`,USER_POOL_ID:`us-east-1_wePLx4lyo`,APP_CLIENT_ID:`10p7n0ig9r329rf48b6l6rsr7r`},OAUTH_LOGIN_PROVIDER:`http://localhost:5001/api/public/dashboard/connection-redirect`,SENTRY_CONFIG:`https://[email protected]/5709397`,SENTRY_FORCE_IN_DEVELOPMENT:!0},FINDACLEANER:{INTERCOM_APP_ID:`qr66vi0q`,SENTRY_CONFIG:`https://[email protected]/264753`}},Bi={ENVIRONMENT:`staging`,GOOGLE_ANALYTICS_TRACKING_ID:`G-X8B4ZM9WXG`,GOOGLE_ANALYTICS_TRACKING_FINDACLEANER:`G-X8B4ZM9WXG`,GOOGLE_ANALYTICS_TRACKING_INVITE:`G-X8B4ZM9WXG`,GOOGLE_ADWORDS_TRACKING_ID:`AW-792479169`,GOOGLE_ADWORDS_SIGNUP_CONVERSION_ID:`AW-792479169/pQ1RCJ2a4IcBEMGL8fkC`,GOOGLE_ADWORDS_SUBSCRIPTION_CONVERSION_ID:`AW-792479169/e5mfCOOPyYcBEMGL8fkC`,GOOGLE_MAPS_KEY:`AIzaSyCDQ6J2xqS7-MLawTxNBqx017r-bzb-o1k`,GOOGLE_TIMEZONE_KEY:`AIzaSyDQxhXcYjS-4a3TqNwGtNza5xWlQYKJJjA`,GOOGLE_RECAPTCHA_V3_URL:`https://www.recaptcha.net/recaptcha/api.js`,GOOGLE_RECAPTCHA_V3_SITE_KEY:`6LdbuKQZAAAAAEib18MVbrRxL7OD8Lt9Ggye5wKE`,GOOGLE_RECAPTCHA_V2_SITE_KEY:`6LdrM8EZAAAAAIWEvT15YmTV_eT6iKyQLIVoa6It`,GOOGLE_OAUTH_CLIENT_ID:`1000838228190-alrj1i6a9hvc8q88g2ho4iqrtm6h4sv7.apps.googleusercontent.com`,APP_ID:`4l2KX8OU9BTYwqfsL9ymcktqFiRkmherAijkpd6d`,JS_KEY:`NGHmEGqLSVYLs9Q5rFC7vzNJTr7S7rA
1CyM9XzeDe`,API_BASE_URL:`https://stage.getproperly.io/api`,API_GRAPHQL_BASE_URL:`https://stage.getproperly.io/api/graphql`,API_GRAPHQL_BASE_SUBSCRIPTION_URL:`wss://stage.getproperly.io/api/subscription`,API_DASHBOARD_GRAPHQL_BASE_URL:`https://stage.getproperly.io/api/dashboard`,PARSE_SERVER_URL:`https://api-staging.getproperly.io/parse/1`,PARSE_SERVER_LIVE_QUERY_URL:`wss://api-staging.getproperly.io`,LOGIN_URL:`https://r1xbcytlnh.execute-api.us-east-1.amazonaws.com/stage/login`,SIGNUP_URL:`https://r1xbcytlnh.execute-api.us-east-1.amazonaws.com/stage/signupnewuser`,GET_PROPERLY_HELP_LINK:`//help.getproperly.com`,TOS_LINK:`//www.getproperly.com/tos/`,APP_WEB_LINK:`//app-staging.getproperly.com`,APP_ADMIN_LINK:`//app-staging.getproperly.com`,APP_DASHBOARD_LINK:`//admin-staging.getproperly.com`,PROPERLY_DEEP_LINK_IOS_ANDROID_WEB:`https://8cob.app.link/k2E4y0isE8`,PROPERLY_DEEP_LINK_IOS_FORCE_OPEN_APP:`https://8cob.app.link/Q2JPmLO758`,APP_ANDROID_LINK:`//play.google.com/store/apps/details?id=com.getproperly.properlyv2`,APP_IOS_LINK:`//itunes.apple.com/us/app/properly-visual-checklist/id1032619209?mt=8`,RECURLY_PUBLIC_KEY:`ewr1-Hc5H61tggluSDBQ6820KBh`,RECURLY_SDK_URL:`https://js.recurly.com/v4/recurly.js`,STRIPE_API_KEY:`pk_test_518Yt5EF99eZBocb3snLhJYDAYibJh2o19T99cbKhSDWcw18x1ue8Ha1BIwYjWKfph2NJzvJ4OXgNSl3I1nGO3iJA00iBCmqitz`,STRIPE_LIBRARY_URL:`https://js.stripe.com/v3/`,DESKTOP:{INTERCOM_APP_ID:`lh2wc58b`,SENTRY_CONFIG:`https://[email protected]/304743`,SENTRY_FORCE_IN_DEVELOPMENT:!1},INVITE:{SENTRY_CONFIG:`https://[email protected]/5613764`,SENTRY_FORCE_IN_DEVELOPMENT:!1},SIGNUP:{SENTRY_CONFIG:`https://[email protected]/5655522`,SENTRY_FORCE_IN_DEVELOPMENT:!1},DASHBOARD:{COGNITO:{REGION:`us-east-1`,USER_POOL_ID:`us-east-1_wePLx4lyo`,APP_CLIENT_ID:`10p7n0ig9r329rf48b6l6rsr7r`},OAUTH_LOGIN_PROVIDER:`https://stage.getproperly.io/api/public/dashboard/connection-redirect`,SENTRY_CONFIG:`https://[email protected]/5709393`,SENTRY_FORCE_IN_DEVELOPMENT:!1},FINDACLEANER:{INTERCOM_APP_ID:`qr66vi0q`,SENTRY_CONFIG:`https://[email protected]/264753`}},Vi={ENVIRONMENT:`production`,GOOGLE_ANALYTICS_TRACKING_ID:`G-N47Z95N1P6`,GOOGLE_ANALYTICS_TRACKING_FINDACLEANER:`G-WLVFYGYDD5`,GOOGLE_ANALYTICS_TRACKING_INVITE:`G-LCFRRD3SPG`,GOOGLE_ADWORDS_TRACKING_ID:`AW-928875001`,GOOGLE_ADWORDS_SIGNUP_CONVERSION_ID:`AW-928875001/rqVBCL-ehYcBEPmD9roD`,GOOGLE_ADWORDS_SUBSCRIPTION_CONVERSION_ID:`AW-928875001/8xA6CMWjjocBEPmD9roD`,GOOGLE_MAPS_KEY:`AIzaSyDBfg4J6BPljDatCGEhFECO4E_p4TUuEGo`,GOOGLE_TIMEZONE_KEY:`AIzaSyDQxhXcYjS-4a3TqNwGtNza5xWlQYKJJjA`,GOOGLE_RECAPTCHA_V3_URL:`https://www.recaptcha.net/recaptcha/api.js`,GOOGLE_RECAPTCHA_V3_SITE_KEY:`6LdKuKQZAAAAAO_djCql_fqoht2ptv_dVX5d-6uI`,GOOGLE_RECAPTCHA_V2_SITE_KEY:`6LemM8EZAAAAAHd762gjI-5liwtwBwEAPgvKPxZ2`,GOOGLE_OAUTH_CLIENT_ID:`1000838228190-alrj1i6a9hvc8q88g2ho4iqrtm6h4sv7.apps.googleusercontent.com`,APP_ID:`mBaVTbcdgBzIKMBVKuGBiA8POXbO3RHqTjHiZICr`,JS_KEY:`Z8oZQLkJu2dVs9Bhtyf0mkb9QI4h9A93I9FH0WQp`,API_BASE_URL:`https://prod.getproperly.io/api`,API_GRAPHQL_BASE_URL:`https://prod.getproperly.io/api/graphql`,API_GRAPHQL_BASE_SUBSCRIPTION_URL:`wss://prod.getproperly.io/api/subscription`,API_DASHBOARD_GRAPHQL_BASE_URL:`https://prod.getproperly.io/api/dashboard`,PARSE_SERVER_URL:`https://api.getproperly.io/parse/1`,PARSE_SERVER_LIVE_QUERY_URL:`wss://api-live.getproperly.io`,LOGIN_URL:`https://r1xbcytlnh.execute-api.us-east-1.amazonaws.com/prod/login`,SIGNUP_URL:`https://r1xbcytlnh.execute-api.us-east-1.amazonaws.com/prod/signupnewuser`,GET_PROPERLY_HELP_LINK:`//help.getproperly.com`,TOS_LINK:`//www.getproperly.com/tos/`,APP_WEB_LINK:`//app.getproperly.com`,APP_ADMIN_LINK:`//app-admin.getproperly.com`,APP_DASHBOARD_LINK:`//dashboard.getproperly.com`,PROPERLY_DEEP_LINK_IOS_ANDROID_WEB:`https://8cob.app.link/k2E4y0isE8`,PROPERLY_DEEP_LINK_IOS_FORCE_OPEN_APP:`https://8cob.app.link/Q2JPmLO758`,APP_ANDROID_LINK:`//play.google.com/store/apps/details?id=com.getproperly.properlyv2`,APP_IOS_LINK:`//itunes.apple.com/us/app/properly-visual-checklist/id1032619209?mt=8`,RECURLY_PUBLIC_KEY:`ewr1-EPqbmKGK0GVrQs43Bp4h3c`,RECURLY_SDK_URL:`https://js.recurly.com/v4/recurly.js`,STRIPE_API_KEY:`pk_live_cHFWHZC7NyyheTEA4nmDaWnG`,STRIPE_LIBRARY_URL:`https://js.stripe.com/v3/`,DESKTOP:{INTERCOM_APP_ID:`qr66vi0q`,SENTRY_CONFIG:`https://[email protected]/304740`,
1SENTRY_FORCE_IN_DEVELOPMENT:!1},INVITE:{SENTRY_CONFIG:`https://[email protected]/5613759`,SENTRY_FORCE_IN_DEVELOPMENT:!1},SIGNUP:{SENTRY_CONFIG:`https://[email protected]/5655518`,SENTRY_FORCE_IN_DEVELOPMENT:!1},DASHBOARD:{COGNITO:{REGION:`us-east-1`,USER_POOL_ID:`us-east-1_frD5jhG3s`,APP_CLIENT_ID:`1o0a7skmk20gnn2m23og8f272d`},OAUTH_LOGIN_PROVIDER:`https://prod.getproperly.io/api/public/dashboard/connection-redirect`,SENTRY_CONFIG:`https://[email protected]/5709390`,SENTRY_FORCE_IN_DEVELOPMENT:!1},FINDACLEANER:{INTERCOM_APP_ID:`qr66vi0q`,SENTRY_CONFIG:`https://[email protected]/264753`}},Hi=new Map,Ui=e=>Gi(e);function Wi(e){let t=Fi(e),n=t.path;return qi(t,n)}function Gi(e,t=!1){let n=`config_${e||`default`}`;if(!t&&Hi.has(n))return Hi.get(n);let r=Promise.resolve().then(()=>{let t=Fi(e),n=t.path;return Ki(t,n)}).catch(e=>{throw R.default.error(`Error fetching config`,e),Hi.delete(n),e});return Hi.set(n,r),r}function Ki(e,t){return new Promise((n,r)=>{try{n(qi(e,t))}catch(e){r(e)}})}function qi(e,t){let n;t===`/environments/config.local.json`?n=zi:t===`/environments/config.staging.json`?n=Bi:t===`/environments/config.prod.json`&&(n=Vi);let r={env:e,...Li(),...n};if(typeof window<`u`){let e=window.PROPERLY_CONFIG?.env?.isE2E;window.PROPERLY_CONFIG=r,e&&(window.PROPERLY_CONFIG.env=window.PROPERLY_CONFIG.env||{},window.PROPERLY_CONFIG.env.isE2E=!0)}return r}var Ji=e=>{let{env:t}=Wi(),{env:n}=t||{};return n===e},Yi=[`local`,`staging`],Xi=()=>{if(typeof window>`u`)return!1;let e=window.PROPERLY_CONFIG?.env;return!e||!Yi.includes(e.env)?!1:e.isE2E===!0},Zi=()=>Ji(`local`),Qi=()=>Ji(`staging`),$i=()=>Zi()||Qi(),ea=[`en`,`de`,`es`,`fr`,`it`,`ko`,`pt`],ta=typeof window<`u`?window.location.search:``,na=()=>{let{language:e,locale:t}=r.parse(ta);return e||t},ra=!1,ia=e=>{ra||(R.default.info(`Detected language`,e),ra=!0)},aa=e=>{let t=typeof window<`u`&&window.globalLanguage?window.globalLanguage:(0,pi.default)(),n=(e||na()||t||`en`).toLowerCase(),r=n.substring(0,2),i=ea.reduce((e,t)=>{let n=t.toLowerCase(),r={...e,[n]:t};return t.length>2&&(r[n.substring(0,2)]=t),r},{}),a=i[n]||i[r]||`en`;return ia(a),a},oa={resetpassword:{reset_error:`Unable to send a password reset link to {{user}}, check what you entered is correct`,text_message:`A text message has been sent to {{number}} with further instructions`,email_message:`An email has been sent to {{email}} with further instructions`,error_msg:`We are unable to send a reset link to {{username}}. Please check that you entered a valid email or phone number.`},newpassword:{password_short:`Password needs to be min. 6 characters`,nomatch:`Passwords do not match`,server_error:`There was a server error`},signup:{tos_text:`By clicking Create Account you confirm that you accept 2 Properlyâs`,title:`Create a Free Account`,create_account:`Create Account`,no_account:`Don't have an account?`,have_account:`Have an account already?`,signup_free:`Start your free trial`,start_free_trial:`Start your free trial`,start_free_trial_button:`Start my free trial`,free_trial_note:`Free for 30 days â no card needed`,social_proof:`Trusted by property managers in 30+ countries`,feature_1_title:`Set up in under 5 minutes`,feature_1_desc:`Import properties from Airbnb, sync your booking calendar, and automate cleaning schedules.`,feature_2_title:`Replace 4 tools with one`,feature_2_desc:`Scheduling, checklists, team management, and reports â no more switching between apps.`,feature_3_title:`Built for hosts like you`,feature_3_desc:`Used by property managers in 30+ countries to run their daily operations.`,card_title:`Start your free trial`,card_subtitle:`30 days free. No credit card needed.`,partner:{eyebrow:`Partner invite`,card_title:`Create your Properly partner account`,card_subtitle:`Use your invited email to set up your workspace and keep your partner connection attached.`,feature_1_title:`Start from your partner invite`,feature_1_desc:`Create your account with the invited email so Properly can keep the partner context attached.`,feature_2_title:`Bring listings into one workspace`,feature_2_desc:`Import properties, sync calendars, and coordinate turnovers without adding another setup step.`},signup_subtext1:`Welcome! Youâre just a step away from carefree hosting. Hereâs what to expect when you sign up:`,signup_subtext2:`1. Have your property reviewed by our team`,signup_subtext3:`2. Take your property live across all major portals such as Booking.com, Airbnb and more`,signup_subtext4:`3. Get more bookings, save time and enjoy hosting!`,payment_subtext1:` Congratulations! You have successfully signed up for our trial plan. You can enjoy our service for free for the next 30 days. After the trial period ends, your payment plan will automatically start.`,payment_subtext2:`We will send you a reminder before your trial period ends so that you can decide whether to continue or cancel your subscription. Thank y
2ou for choosing our service!`,payment_body:` You have signed up for our trial plan which gives you full access to all our features for the next 30 days. During this time, you can check out our pricing page to see which plan fits your needs best. Don't worry, you won't be charged for anything until after the trial period ends. We'll send you a reminder before the payment is due. Thank you for choosing our service!`,login:`Log In`,tos_text_and:`and`,no_creditcard:`Create Your Free Properly Account`,button:{connect_with_partner:`Connect with {{partner}}`,connect_with_airbnb:`Connect with Airbnb`,skip:`Skip`,connect_with_home_away:`Connect with HomeAway Family*`},no_of_properties:`Number of Properties`,error:{please_fill_all_fields:`Please fill all fields`,cloud_code_error:`Oops. Something went wrong. Please try again.`,password_invalid:`Please choose a password with at least 6 characters.`,phone_invalid:`This is not a valid phone number. Please check it again.`,email_invalid:`This is not a valid email address. Please check it again.`,email_registered:`This email address belongs to an existing Properly account.`,phone_registered:`This phone number belongs to an existing Properly account.`,failed_recaptcha_verification:`We could not verify your submission. If the error persists, please contact us.`,oops:`Oops!`,invalid_full_name:`Please enter your first and last name`},placeholder:{full_name:`Full Name`,email:`Email Address`,password:`Choose Password`},form:{title:`Create an Account`,cta:`Create Account`,tos_confirmation:`By clicking {{button}} you confirm that you accept Properly's <tos>Terms of Service</tos> and <privacy>Privacy Policy</privacy>.`,tos:`Terms of Service`,privacy:`Privacy Policy`,addendum:`Addendum`},accounts:{title:`Connect with your listing platforms`,description:`By connecting your accounts you can create checklists with your listing photos, schedule cleanings from your bookings calendar, and pre-fill basic property profiles.`,error_unknown:`Something went wrong and we are looking into it. Please check your Internet connection and try again later. If this keeps happening, email us at [email protected]`,error_duplicate:`This {{partner}} account is already connected with Properly. Either log out and log back in with your {{partner}} account or connect this Properly user with another {{partner}} account.`,connecting:{profile:`Importing Profile`,listings:`Importing Listings`,reservations:`Importing Reservations`},home_away_family:`*The HomeAway family is HomeAway, Vrbo, VacationRentals.com, Homelidays, Owners Direct, Abritel HomeAway, FeWo-direkt.`},download:{use_as_host:`Use Properly as a Host`,title:`Properly is a mobile app, download it to your phone to start receiving jobs!`,description:`Tap the button below to download the Properly app to your phone.`,app_store_description:`Download the Properly app for iOS or Android`,cta:`Download App`,cta_sent:`Resend Download Link`,title_sent:`Download link sent!`,description_sent:`A text message with a link to download Properly has been sent to <phone>{{phoneValue}}</phone>`,description_sent_2:`Install the app now and log in with <username>{{emailValue}}</username>`},complete:{title:`Download link sent`,description:`Open the app and log in with your email address and your password.`,get_started:`Read the "Get Started" Guide`,chat:`Chat with our support team`,resend_link:`Send the link to a different number`,questions:`Questions?`,send_to_different:`Send link to different number`,no_link:`No link?`}},properties:{error_load:`Unable to load properties. Please try again.`,properties_title:`Properties`,properties_description:`View and manage property information, checklists, and job requests`,error:{paste_link:`You need to paste a link`,enter_title:`You need to enter a title`,bad_link:`That link does not look quite right`,link_exists:`That link already exists in the current property`},selected:`Selected`,add_property_tag:`Add Property Tag`,property_tag:`Property Tag`,filter_by_tags:`Filter by tag`,clear_tag_filters:`Clear`,no_filter_results:`No properties match the selected tags`,view_gallery:`View Gallery`,leave_collaboration:`Leave Collaboration`,owned_by:`Owned by:`,not_community_cleaners:`No Community Service Providers in this area.`,see_cc_btn:`See Community Service Providers`,checklist:`Checklist`,kind:{checkin:`Every check in`,checkout:`Every check out`,recurring:`Recurring`},when:`When`,choose_checklist_event:`Choose checklist to send`,name:`Name (e.g "Turnover")`,create_new_checklist:`Create new checklist`,prefill_event:`Prefill Job Request`,edit_trigger:`Edit`,delete_trigger:`Delete`,automation:`Reminders`,add_automation:`+ Add Reminder`,events_info:`Set up automated reminders to schedule services for this property. These reminders appear on your Calendar.`,default_checklist:`Default`,load_more:`Load more`,try_to_fetch:`Load older`,paste_ical_title:`Title`,ical_connect:`Connect an iCal to your property`,ical_enter_title:`Enter a title for the iCal`,ical_invalid:`Invalid Link`,ical_no_sync:`iCal has not yet been synced`,ical_last_synced:`Last synced`,ical_paste_link:`Paste the iCal link`,ical_default_time:`Please supply default times for iCal`,ical_no_default_time:`Default Checkin/Checkout times not supplied`,ical_oops_error:`Oops! Something went wrong with your iCal sync. Please contact our support team.`,go_to:`Go to`,to_connect:`to connect with partners`,connected_accounts:`Connected Accounts`,connected_properties:`Connected Properties`,connected:`Connected`,ical:`iCal`,add_ical:`Add iCal`,link:`Link`,paste_ical_link:`Paste iCal link`,ical_info:`To sync your bookings for this property using iCal, simply copy and paste the iCal link from your listing platform, property management software or personal iCal account.`,ical_disconnect_confirm_title:`Disconnect iCal?`,ical_disconnect_confirm_message:`Are you sure you want to disconnect "{{title}}"? This will stop syncing bookings from this iCal source.`,property_connections:`Connections`,no_thanks:`No Thanks`,view_dups:`View Duplicates`,merge_info:`You have multiple properties with the same address. Would you like to merge them?`,incomplete_address_info:`This property does not have a complete address. Please update it.`,search_for_address2:`Search address`,no_properties:`To send a job request, you need to add a property first.`,new_properties:`New Property`,edit:`Edit`,slides:`Slide`,tasks:`Tasks`,create_checklist:`Create Checklist`,checklists:`Checklists`,delete_property:`Delete Property`,j
2ob_requests:`Job Requests`,history:`History`,property_details:`Property Details`,create_property:`Create Property`,edit_property:`Edit Property`,cancel:`Cancel`,save:`Save`,save_changes:`Save`,loading:`Loading...`,no_result:`No search results`,loading_fail_property:`This Property cannot be loaded at this time. Try again later.`,loading_fail_property_head:`Cannot load Property`,edit_fail_property:`This Property cannot be edited at this time. Try again later.`,edit_fail_property_head:`Cannot edit Property`,create_fail_property:`This Property cannot be created at this time. Try again later.`,create_fail_property_head:`Cannot create Property`,property_create_fail_with_subscription:`Your plan does not support creating a property. We kindly request you to update your billing details and upgrade to a new plan. If you require any assistance, please feel free to contact our Customer Support Team.`,loading_fail_property_ok:`Ok`,delete_fail_property_head:`Could not delete Property`,delete_fail_property:`This Property cannot be deleted at this time. Try again later.`,send_job_request:`Send Job Request`,bedrooms:`Bedrooms`,bedroom:`Bedroom`,beds:`Beds`,bed:`Bed`,bath:`Bath`,default_prop_title:`Default property title`,bathrooms:`Bathrooms`,apartment:`Apartment`,house:`House`,villa:`Villa`,bungalow:`Bungalow`,search_for_address:`Search {{n}} properties`,select_image:`Select Property Photo`,no_job_results:`No Job Requests`,jobs_error_loading_l1:`Cannot load Job Requests.`,jobs_error_loading_l2:`Try again later.`,really_delete_property:`Are you sure you want to delete this property?`,no_property_selected:`No Property Selected`,no_property_found:`No Properties Found`,garbage:`Garbage`,access:`Access`,parking:`Parking`,wifi:`Wifi`,address:`Address`,title:`Title`,street_address:`Street address`,apt_address:`Apt / Building (optional)`,city_address:`City`,state_address:`State`,zip_address:`ZIP`,country_address:`Country`,validating_address:`Validating address...`,address_verified:`Address verified`,address_not_found:`Could not verify address`,loadingsave:`Saving...`,loadingerror:`Error`,loadingsaved:`Saved`,wifi_name:`WiFi Network Name`,wifi_password:`WiFi Password`,wifi_n
2ote:`Describe how to access and/or fix WiFi.`,important_note:`Important Information`,ptype:`Property Type`,rooms:`Rooms`,important_note_note:`Describe crucial things to know, do, or not do when at your property. Ex. DO NOT vacuum the calfskin rug.`,note_parking:`Leave a note about how and where to park at your property. If there is no parking available, say "No Parking".`,note_access:`Add a note here about how to access your property`,note_garbage:`Add a note here to explain where a service provider can find your garbage and recycling bins and any particular notes you have about garbage disposal.`,prefill_checklist:`Prefill Checklist`,image_format_error:`Image must be JPEG, PNG, JPG and max. 10MB`,inactive_message:`The payment for this property has failed and hence been marked as inactive. You can reattempt the payment by clicking the "Retry Payments" button on the <anchor>Subscription Page</anchor>.`,add_checkinout_reminder:`Check-in / Check-out reminder`},contacts:{error_load:`Unable to load contacts. Please try again.`,service_providers_title:`Service Providers`,service_providers_description:`View service provider details, job history, and performance`,invite_service_provider:`Invite Service Provider`,invite:`Invite`,please_first_name:`Please enter first name`,please_last_name:`Please enter last name or initial`,invite_cleaner:`Invite Service Provider`,invite_cleaner_modal:`Invite Service Provider`,use_phone_instead:`Use Phone number Instead`,use_email_instead:`Use Email Instead`,enter_byemail:`Invite your service provider to use Properly by entering their email address.`,enter_byphone:`Invite your service provider to use Properly by entering their phone number.`,enter_phone_or_mail:`Enter phone number or email address to invite your service provider.`,enter_first_last:`Enter first name and last name`,search_cleaner:`Search Service Provider`,last_job_sent:`Last job sent on {{when}}`,contact_joined:`Joined on {{when}}`,invite_pending:`Invite Pending`,invite_trusted_cleaner:`Invite your trusted service providers so you can start sending them jobs today.`,total_jobs:`Total Jobs`,last_month:`Last Month`,clients:`Clients`,client:`Client`,resent_invite:`Resend Invite`,resent_invite_main:`Resend Invite`,resent_invite_modal:`Resend Invite`,resent_invite_info:`If you need to change any of your Contact's info, click on a field to edit it before you resend the invite.`,delete_contact:`Delete Contact`,about_user:`About`,see_more:`+ See more`,see_less:`- See less`,upcoming_jobs:`Upcoming Jobs`,accepted_jobs:`Accepted Jobs`,all_jobs:`All Jobs`,congrats:`Congratulations!`,send_invitation_success_ok:`OK`,next:`Next`,first_name:`First Name`,please_just_email_or_phone:`Please just enter email or phone`,please_enter_email_or_phone:`Please enter email or phone`,last_name:`Last Name`,error_request:`There was an error, please try again.`,email:`Email Address`,phone:`Phone number`,password:`Choose Password`,delete_fail_contact:`This Contact cannot be deleted at this time. Try again later.`,delete_fail_contact_head:`Cannot delete Contact`,please_enter_at_least:`Please enter at least an email or phone number.`,loading_fail_contacts_head:`Cannot load Contacts`,loading_fail_contacts:`The Contacts cannot be loaded at this time. Try again later.`,loading_fail_contact_head:`Cannot load Contact`,loading_fail_contact:`This Contact cannot be loaded at this time. Try again later.`,send_invitation_success_exist:`{{name}} is already using Properly. You can start sending them jobs right away.`,send_invitation_success_l1:`We've sent {{name}} an invitation to join Properly. They need to click the link in the SMS/email to sign up for Properly. `,send_invitation_success_l2:`After that, they can download the Properly app and log in to receive and accept your jobs.`,really_delete_contact:`Are you sure you want to delete this contact?`,properties_cleaned:`Properties {{name}} has serviced`,not_invited_yet:`{{name}} hasn't downloaded Properly yet. We've sent out an invite with a link to download the app.`},booking_detail:{guest_information_group:`Guest Information`,additional_information_group:`Additional Information`,summary_of_booking:`Summary of Booking`},job_request:JSON.parse(`{"finish_before":"Finish before","start_after":"Start After","flexible_time":"Flexible Time","fixed_time":"Fixed Time","badges":{"properly101":"This smart cookie completed Properly 101 and knows every app feature and what makes a great hospital
2ity cleaning","loved":"When a service provider has a high rehire rate, we know they must be loved","fastres":"Fast as lightning and typically responds within 2 hours","experienced":"This experienced pro completed at least 5 jobs to perfection","punctuality":"You can count on this provider to be right on time","checklistchampion":"Three cheers for the Checklist Champion who completes all tasks and verifications photos"},"send_job_to_seemore":"Send a Job to view contact details","badges_title":"Badges","na_na":"N/A","typical_reponse":"Typical Response time","services_user":"Services","error_action_notsuccessful":"Sorry, your action was not successful. Please try again.","community_service_provider_sample_property_error":"Sorry, this action is not available for the Sample Property.","job_already_scheduled":"A job already seems to have been scheduled for this reminder. Please refresh the calendar to see the job.","back":"Back","reset":"Reset","view_eventsum":"View event summary","not_set":"not set","event_title":"Event Title ({{eventname}})","property_information":"Property Information","paywall_title":"Upgrade to use this feature!","paywall_content":"To send multiple checklists with your job request please upgrade to one of our paid subscriptions","job_summary":"Job Summary","prefill_job":"Pre Fill Job Request","prefill_job_saved":"Pre Fill Job Request saved!","message_info":"Enter a message for your service provider.","message_info_prefill":"Pre-fill a message","title_info":"Enter a title for your job.","title_info_prefill":"Pre-fill a title","offered_price_info":"This is not required, but specifying a price significantly increases the response rate.","offered_price_pro_info":"Jobs cannot be sent to Pro/Community Service Providers without an \\"Offer Price.\\"","offered_price_info_prefill":"Pre-fill a price you wish to offer","offered_price_prompt":"Ex quibus causis annua interdicta sunt, ex his de eo, quod ad eum cum quo agitur ... quam iure legati habet","cleaners_info_normal":"Send a request to multiple service providers at once for the quickest response!","cleaners_info_community":"Find a service provider in your area from our community of Properly users.","cleaners_info_prefill":"Pre-fill your service providers","pro_cleaner_send_more_error":"To invite a Pro Service Provider, you must edit the job to include an âOffered Price.â","time_info":"Enter the date, start time and duration of your job request.","time_info_prefill":"Pre-fill your start time and duration","checklist_info":"Select a checklist for this job request or skip to send without.","property_details_info":"Enter Access, Garbage, Parking, Wifi and Important information details of your property","property_details_info_filled":"Your property information will only be visible to a cleaner after they accept your job.","property_info":"Select a property to send your job request","view_profile":"View Profile","hide_profile":"Hide Profile","my_service_providers":"My Service Providers","community_service_providers":"Community Service Providers","non_stripe_enabled_cleaner":"You can only send a base price + bonus job to Service Providers that are part of Performance Pay","edit_checklist":"Edit Checklist","view":"View Profile","create_checklist":"Create Checklist","error_sending":"There was an error, please try again.","service_pro":"Community Service Provider","service_pro_contact":"Service Provider","select_service_pro":"Select Service Provider","to":"To","joined":"Joined","about_user":"About","worked_at":"Worked at {{num}} Properties","skip":"Skip","enter_price":"Enter Price","slides":"slides","tasks":"tasks","wifi":"Wifi","no_checklist":"No Checklist","tip":"Tip: Send a request to multiple service providers at once for the quickest response!","start":"Start Time","next":"Next","all_my_cleaners":"Select all","start_time":"Start time","start_date":"Start date","end_time":"End time","start_time_error":"Oops! Please select a start time that is not in the past.","end_time_error":"Oops! Please select an end time that is not in the past.","duration_error":"Oops! Select an duration that fits between Start time and End time","clients":"Clients","client":"Client","total_jobs":"total jobs","hours_minutes":"{{hrs}} hr {{mins}} mins","just_minutes":"{{mins}} mins","search_property":"Search Property","search_checklist":"Search Checklist","send_without":"Send without checklist","duration":"Duration","info_modile":"Send a request to multiple service providers at once for the quickest response!","price_info":"Enter a price you're willing to offer for this job.","max_payout_validation":"The maximum payout must be greater than base price","mycleaner":"Service Providers","community_cleaner":"Community Service Providers","community_cleaner_info":"Find a service provider in your area from our community of Properly users","send_job_request":"Send Job Request","send_job_request_for":"Send Job Request for: {{what}}","update_draft_job":"Update Scheduled Job","cancel":"Cancel","just_hours":"hrs","just_hour":"hr","choose_property":"Choose Property","property":"Property","property_details":"Property Details","enter_property_details":"Enter Property Details","checklist":"Task/Checklist","choose_checklist":"Choose Checklist","title_type":"Job Type/Title","time":"Time","set_time":"Set Time","cleaners":"Service Provider","select_cleaners":"Select Service Provider","select_property":"You need to select a property first","offered_price":"Offered Price","offered_price_op":"Offered Price (optional)","base_price":"Base Price","bonus_price":"Bonus","max_payout_price":"Maximum payout","write_description":"Write Description","description":"Description","write_title":"Write title","select_type":"Select Job Type","title":"Job Title","type":"Job Type","enter_title":"Enter title here","task":"Tasks","add":"Add","add_task":"Add Task","add_extra_task":"Add Extra Task","enter_task":"Enter task here","task_image_range_error":"You cannot add more than 5 images.","send_request":"Request sent!","draft_job_updated":"Scheduled Job has been updated!","send_request_txt":"Go to the Calendar to see if your request has been accepted and to view its progress report.","send_request_pro_txt":"If you pick a Community Service Provider from Properly's marketplace, then this job will be covered by the Marketplace Satisfaction Guarantee and payment will be automatically sent 24h after the job is completed. Under the <msg>Marketplace Satisfaction Guarantee</msg>, you can stop payment by sending an <email>email</email>.","send_request_action":"Open Calendar","problems_txt":"Problems","write_message":"Write Message","message":"Message","home_assessment":"Home Assessment","forwarding_info":"If you enable job forwarding, the service provider will be able to forward this job to their team members.","problems":{"problem_reports":"Problem Reports","schedule_job":"Schedule Job","resolved":"Resolved"},"offered_price_info_popover":"Service Providers have agreed that Properly may deduct fees from all jobs sent through the Marketplace in a Pro market. The total amount the Service Provider will receive for this job (the \\"Net Price\\") is equal to the \\"Offered Price\\" minus the Properly Service Fees.","
2wizard":{"next":"Next","back":"Back","finish":"Finish","error":"Try Again","agree_terms_and_conditions":"I agree to Properly <termsOfService>Terms of Service</termsOfService>","terms_of_service":"Terms of Service","name_invalid":"Name must be supplied","success":"You have successfully set up your payment method!","payment_method":"Payment Method","payment_method_blurb":"To send this Marketplace job, you must first set up a payment method. In Pro markets, Marketplace jobs are: 1) automatically paid 24 hours after the job's completion, and 2) covered by Properly's \\"<msg>Marketplace Satisfaction Guarantee</msg>.\\" In order to send this job, please review and agree to our <tos>Terms of Service</tos> and set up your payment method.","active":"Active","inactive":"Inactive","continue":"Continue","confirm_leave":"Are you sure you want to leave?","set_as_default":"Set as default","bank_account_details":"Bank Account Details","bank_account":"Bank Account","bank_name":"Bank Name","routing_number":"Routing Number","account_number":"Account Number","account_holder_name":"Account Holder Name","account_holder_type":"Account Holder Type","routing_number_invalid":"Routing Number must be supplied","account_number_invalid":"Account Number must be supplied","account_holder_name_invalid":"Account Holder Name must be supplied","amount":"Amount","review_and_pay":"Review And Pay","review_payment":"Please review the payment below","payment_failed":"Payment Failed!","payment_on_the_way":"Your payment is on itâs way!","payment_processed":"Your payment is being processed*. Any updates to the payment status will be communicated via email and reflected in the Payment Details section of this job.","payment_process_failed":"We are not able to process your payment. Please try again. If the error persists, contact our support team at {{email}}","pay_now":"Pay Now","retry_payment":"Retry Payment","retry_payment_confirm":"Are you sure you want to retry the payment for this job?","payment_processed_caption":"*ACH transactions take up to 5 business days to receive acknowledgment of their success or failure and 7 days to reflect in your Stripe balance.","cannot_be_negative":"The amount entered cannot be negative","cannot_exceed_max_payout":"The amount entered cannot exceed the maximum payout defined for this job."},"enter_decimal_price":"Enter Price (0.00)","base_bonus_price_hover":"You can only send a base price + bonus job if all Service Providers in the job request are part of Performance Pay.","fixed_price_label":"Fixed Price","base_bonus_label":"Base Price + Bonus","cleaner_in_app_payment":"This Service Provider accepts in-app payments","task_image_error_1":"Image upload failed.","num_bedrooms_singular":"bedroom","num_bedrooms_plural":"bedrooms","num_beds_singular":"bed","num_beds_plural":"beds","num_baths_singular":"bathroom","num_baths_plural":"bathrooms","assigned_cleaners":"Assigned Service Providers","assigned_cleaners_collapse":"Collapse","assigned_cleaners_show_all":"Show all","assigned_cleaners_more":"more","assigned_external_cleaner":"External contact","job_type_turnover":"Turnover","job_type_concierge":"Concierge","job_type_maintenance":"Maintenance","job_type_inspection":"Inspection","job_type_other":"Other"}`),problems:{status:{open:`Open`,resolved:`Resolved`,inProgress:`InProgress`,ignored:`Ignored`},schedule_job:`Schedule Job`,resolved_on:`Resolved on {{date}}`,resolved_by:`By {{cleanerName}}`},account:JSON.parse(`{"error_load":"Unable to load account information. Please try again.","partner":"Partners","company":"Company","code_invalid":"Code was invalid, please try again.","team":"Team","users_and_permissions":"Users & Permissions","connected_account_warning":"Connection error. Click âEditâ and âReconnect accountâ","year":"year","month":"month","upgrade":"Upgrade","please_contact_account":"Please contact your account manager for receipts","price_property":"\${{price}}/{{perWhat}}/property","price_property_new":"per property per {{perWhat}}","price_job":"\${{price}}/job","price_job_new":"per job","price_flat":"\${{price}}/{{perWhat}}","price_flat_new":"per {{perWhat}}","inspection":"per inspection completed/per job","x_of_y_jobssent":"{{x}}/{{y}} jobs sent","will_end_soon":"Your free trial will end on {{date}}","next_renew":"Your subscription will renew on <date>{{dateValue}}</date>","subscription_expire":"Your subscription will expire on <date>{{dateValue}}</date>","continue":"Continue","verify_account":"Verify Account","verify_account_low2":"You have already connected this account with properly. To connect a new account log out of this account and try again.","verify_account_low":"Please make sure you are logged into the {{provider}} account you wish to connect before continuing.","cancel_sub":"Cancel subscription","update_details":"Update Billing Details","contact_success_manager":"Contact Success Manager","would_ulike_to_cancel":"Would you like to <dowhat>cancel your subscription</dowhat>?","cancel_subscrib":"cancel your subscription","details_below":"For plan details see below","your_current_plan":"Your Current Plan is ","try_plan":"Do you want to try our <plan_title>{{titleValue}}</plan_title> service?","usage":"Usage","price_plan_txt":"Whether you're a part-time home-sharer, managing a vacation rental, or running a professional property management business, we've got a pricing plan that suits you and your needs.","receipttable":{"date":"Date","id":"Order ID","price":"Price","plan":"Plan/Property","transaction":"Transaction"},"receipt_warning":"Your current plan is free. To view your receipts you need to upgrade to an Advance, Pro or Property Manager plan.","subscription":"Subscription","receipts":"Receipts","pricing_plans":"Pricing Plans","suspension_warning":"Hey your account would be suspended due to unpaid bills on <date>{{date}}</date>","suspension_warning_on_trial":"Please update your payment details before <date>{{date}}</date> to ensure uninterrupted service during your trial period. Failure to do so may result in account suspension and service interruption.","suspended":"Hey, it looks like your account is suspended due to unpaid bills please update your billing method to resume your services.","suspended_on_trail"
2:"Your account has been suspended. Please update your payment details immediately to reinstate your account and resume service. Contact our support team for assistance.","company_suspended":"Your Company account has been suspended. Please contact our support team for assistance.","expired":"Hey, it looks like your account has expired. To resume services, please contact our team or reactivate your subscription by updating your payment information <anchor>here</anchor>.","invalid_plan":"Hey there, you will need to be on a valid plan to be able to avail our services. We kindly request you to reach out to our customer support team for assistance in selecting a new plan and restarting your subscription.","invalid_plan_company":"Hey there, your company account does not have a valid plan to access our services. We kindly ask you to contact our customer support team for further assistance.","reactivate_subscription_request":"Hi Team, I would like to reactivate my subscription and resume my services.","login_warning":"If you are signed into an Airbnb or HomeAway/VRBO account in another tab on your browser, that account will automatically be added. Log out if you wish to add an alternative account.","login_warning_long":"If you are signed into an Airbnb or HomeAway/VRBO account in another tab on your browser, that account will automatically be added when you select ADD ACCOUNT/CONNECT. Log out if you wish to add an alternative account.","property_id":"Property ID","copy_id":"Copy ID","copied":"Copied","merge_property":{"merge":"Merge","cancel":"Cancel","title":"Merge Properties","selected_properties":"Selected Properties","properties":"Properties","search_for_address":"Search for address","no_properties_found":"No Properties Found","info":"Merging properties will combine property photos, jobs, job history and bookings.","no_properties_selected":"No Properties Selected"},"merge":"Merge Properties","profile":"Profile","connect_only":"Connecting your Properly account to listing platforms imports your properties, listing photos, and bookings calendar into Properly for you.","connect_txt":"Connecting your Properly account to listing platforms imports your properties, listing photos, and bookings calendar into Properly for you. To disconnect Properly from a platform account, click \\"Edit.\\"","connect_accounts":"Connected Accounts","your_integrations":"Your Integrations","staff_connections_unavailable_title":"Connected account integrations are not available on your plan.","staff_connections_unavailable_cta":"Upgrade","pro_integrations_title":"Connect to 10+ Property Management Systems","pro_integrations_subtitle":"Sync bookings, calendars, and cleaning schedules from your favorite PMS.","pro_integrations_cta":"Upgrade to Pro","mobile_desktop_upgrade_title":"Upgrade on desktop","mobile_desktop_upgrade_body":"To upgrade to Pro, go to app.getproperly.com on your desktop browser and continue from Connected Accounts.","notifications":"Notifications","manage_notification_preferences":"Manage your notification preferences and channels","notification_channels":"Notification Channels","notification_info":"Notification Settings","notification_info_text":"Choose how you want to receive notifications for different events. You can enable or disable each channel independently.","notification_updated":"Notification settings updated successfully","load_fail_notifications_head":"Failed to Load Notifications","load_fail_notifications":"Unable to load notification settings. Please refresh the page to try again.","sms":"SMS","push":"Push","password":"Password","help":"Help","name":"Name","bio_info":"Add a bio to your profile...","contact":"Contact","bio":"Bio","first_name":"First Name","last_name":"Last Name","email":"Email Address","phone":"Phone number","google_connection":"Google Account","google_connected":"Connected","google_connection_description":"Connect your Google account to enable login
2with Google.","disconnect_google":"Disconnect","disconnecting":"Disconnecting...","connecting":"Connecting...","google_connection_error_title":"Google Connection Error","google_connection_success":"Google account connected successfully!","save_changes":"Save changes","airbnb":"Airbnb","old_pw_needed":"Please enter your old password","pw_not_match":"Passwords do not match","minlength":"Please choose a password with min. 6 chars","edit_fail_account_head":"Cannot edit User","edit_fail_account":"This User cannot be edited at this time. Try again later.","edit_migration_guesty":"Please reconnect your Guesty account before 11/30/2020 to continue to enjoy a smooth experience. Check {{linkToGuesty}} to know about how to generate the Properly API Key in Guesty. You will be asked to enter this key after you click the Reconnect Account button. If you have any question, don't hesitate to reach out to our Customer Support team.","here":"here","edit_fail_phone_registered":"This phone number belongs to an existing Properly account.","edit_fail_pw_head":"Failed to update Password","edit_fail_pw":"There was an error updating the password. Try again later.","disconnect_fail_head":"Failed to delete partner","disconnect_fail":"There was an error deleting the partner. Try again later.","connection_external_browser_fail":"You will be redirected to Properly in a few seconds. If nothing happens, please {{click}}","connection_click_here":"click here","connection_fail_head":"Failed to connect account","connection_fail":"Please try again later.","connection_success_head":"Connection Successful!","connection_success":"Redirecting to Properly now!","connection_external_browser_success":"You will be redirected to Properly in a few seconds. If nothing happens, please <click>click here</click>","connection_redirect":"Redirecting to {{partner}}","reconnect_fail_head":"Failed to reconnect","reconnect_fail":"You are trying to reconnect with a different account, kindly reconnect with the same {{partner}} account","reconnect_successful_head":"Reconnected Successfully","importing_listing":"Importing Listingsâ¦","importing_listing_x_of_y":"Importing Listings {{x}} of {{y}}â¦","importing_profile":"Importing Profileâ¦","importing_revs":"Importing Reservationsâ¦","error_oauth":"OAuth Error","error_profile_import":"Profile import failed... try again","error_listing_import":"Listing import failed... try again","error_rev_import":"Reservation import failed... try again","error_already_connected":"Sorry. We are not able to connect this account because it is connected to another Properly user. Please disconnect it from that user first and then try again.","orbirental":"Orbirental","request_accepeted":"Request Accepted","request_declined":"Request Declined","job_cancelled":"Job Canceled","problems_reported":"Problems Reported","job_started":"Job Started","job_finished":"Job Finished","booking":"Bookings","send_pw_by_mail":"Send a link to my email","password_was_send":"Password was send to your mail-address","other_not":"Other Notifications","current_password":"Current Password","new_password":"New Password","password_was_updated":"Password was updated!","verify_password":"Verify password","change_password":"Change Password","forgot_pw":"Forgot your password?","update_your_password":"Update your account password and security settings","enter_current_password":"Enter your current password","enter_new_password":"Enter new password","enter_new_password_first":"Please enter new password first","password_requirements":"Password Requirements","min_8_characters":"At least 8 characters","one_uppercase_letter":"One uppercase letter","one_lowercase_letter":"One lowercase letter","one_number":"One number","one_special_character":"One special character","enter_code_short":"Enter code...","verify_phone":"Verify Phone Number","edit_account":"Edit Account","re_import":"Re-Import Properties","re_connect":"Reconnect Account","delete_account":"Disconnect Account","disconnect":"Disconnect","disconnect_confirm_title":"Disconnect Account?","disconnect_confirm_message":"Are you sure you want to disconnect {{account}}? This will remove the connection and disconnect all the imported properties.","reconnect_confirm_title":"Reconnect Account?","reconnect_confirm_message":"Are you sure you want to re
2connect {{account}}? You will be redirected to re-authenticate with the provider.","reimport_confirm_title":"Re-Import Properties?","reimport_confirm_message":"Are you sure you want to re-import properties from {{account}}? This will sync the latest data from the provider.","change_image":"Change your profile photo","set_image":"Set your profile photo","enter_code":"Enter the 4-digit verification code sent to your phone","will_email_link":"We will email you a link to a page where you can easily create a new password.","homeaway":"HomeAway","billed_annually":"Billed annually","update_billing_info":"Want to update your payment method? <anchor>Click here</anchor>.","theme":"Theme","themeLight":"Light","themeDark":"Dark","themeSystem":"Match browser","lightMode":"Light Mode","darkMode":"Dark Mode","email_sent":"Email sent Successfully","close":"Close"}`),modal:{ok:`OK`,cancel:`Cancel`},accountprovidersection:{edit:`Edit`,connect:`Connect`,add_account:`Add Account`},login:{error_wrong_login:`We could not log you in. Please check your credentials.`,error_user_not_found:`We could not log you in. Please check your credentials.`,welcome:`Welcome back!`,title:`Log In`,email:`Email Address`,password:`Password`,login:`Log In`,forgot_pw:`Forgot Password?`,error:`Oops. Something went wrong. Please try again.`,account_disabled:`Sorry, your account has been disabled. Please contact your account admin to regain access.`,reset:`Reset your password`,enter_email:`Enter your email or phone number to reset your password.`,email_phone:`Email or phone number`,new_password:`New password`,retype_password:`Retype password`,create_new:`Create a new password!`,enter_new_password:`Please enter a new password for your`,account:`account`,invalid_token:`That new password token is invalid. Use the link in the email or text you received.`,submit:`Submit`,google_oauth_error:`Your Google account is not connected to Properly. Please log in and then connect your Google account in the settings.`},verify_email:{verifying:`Verifying your email...`,success:`Email verified!`,redirecting:`Redirecting to your dashboard...`,expired:`This verification link has expired.`,invalid:`This verification link is invalid.`,check_email_title:`Check your email`,check_email_generic:`Please check your email and click the verification link to activate your account.`,sent_to:`We sent a verification email to`,click_link:`Click the link in the email to verify your account. This page will update automatically.`,no_email:`Didn't receive the email?`,resend:`Resend email`,use_different_email:`Use a different email`,back_to_signup:`Back to sign up`,back_to_login:`Back to log in`,poll_slow:`This is taking longer than usual. Check your spam folder, or use the resend option below.`,poll_timed_out:`We stopped checking automatically. If you clicked the link and nothing happened, resend the email and try again.`,session_failed:`Your email was verified, but we couldn't sign you in automatically. Please log in with your email and password.`,return_or_login:`Return to the tab where you started signing up to continue, or log in here.`,go_to_login:`Log in to continue`},jobdetails:{show_booking_details:`Show Booking Details`,comments_viewed:`Comments Viewed`,comments_type_here:`Type Here`,no_comments:`No Comments`,comments:`Chat`,view_photos:`View Photos`,view_linked_problem_report:`View Linked Problem Report`,view_job_summary:`View Job Summary`,sentby:`Sent by`,warning:`Warning`,accept_job_info:`Do you want to accept this job?`,decline_job_info:`Do you want to decline this job?`,cannot_be_edited:`This job can't be edited, because the property it was sent for has been deleted`,event:`Event`,servicep_at_location:`Service Provider has Location Services turned on and was at the correct location.`,servicep_not_at_location:`Service Provider has Location Services turned on and was not at the correct location.`,servicep_undef_location:`We can not verify the location of the Service Provider.`,no_checklist:`No Checklist`,no_task:`No Task`,checklist:`Checklist`,edit:`Edit Job Request`,edit_modal:`Edit Job Request`,edit_modal_txt:`Editing a job request will send an edit request to the assigned service provider(s). They will be able to view and accept or decline the job based on the edited requirements.`,edit_modal_cancel:`Cancel`,edit_modal_continue:`Continue`,send_to_more:`Send to more service providers`,at:`at`,severity:`Severity`,severity_high:`High`,severity_medium:`Moderate`,severity_low:`Low`,cancel:`Cancel Job Request`,duplicate:`Duplicate Job Request`,date_time:`Date & Time`,address:`Address`,message:`Me
2ssage`,price:`Price`,invited_cleaners:`Service Provider`,invited_recipients:`Forwardees`,verify_pics:`Verification Photos`,problems_reported:`Problems Reported`,summary:`Summary`,photos:`Photos`,photos_taken:`Photos Taken`,task_remain:`Tasks Left`,task_complete:`Tasks Completed`,started:`Started`,finished:`Finished`,finished_on:`Finished on`,pending:`Pending`,pendingChanges:`Pending Changes`,declined:`Declined`,accepted:`Accepted on`,acceptedreal:`In Progress`,completed:`Completed`,canceled:`Canceled`,paused:`Paused`,problem_reported:`Problem reported`,incomplete:`Incomplete`,complete:`Complete`,error:`There was an error`,errror_head:`Error`,of:`of`,canceled_by_cleaner:`Canceled by Service Provider`,jobType:`Job Type`,task:`Task`,description:`Description`,stop_payment:`Stop payment`,costs:{cost_time:`Cost/Time`,job_cost:`Job Cost`,mileage:`Mileage`,duration:`Duration`,cost:`Cost`,add_cost:`Add Cost`,add_cost_time:`Add Cost/Time`,textArea_placeholder:`Enter details`,miles:`miles`,kms:`kms`},payment_details:`Payment Details`,payment_status:`Status`,payment_due_date:`Date`,thumbs_up:`Thumbs Up`,thumbs_down:`Thumbs Down`,missing_feedback:`Missing feedback`,performance_price:{final_payout:`Final Payout`,price:`Price`,save:`Save`,edit:`Edit`,pay:`Pay`,price_exceeded:`The final payout cannot exceed the maximum payout`,general_error_msg:`Something went wrong! Try again later.`,added_on:`Added on`,edited_on:`Last edited on`},final_payout_info:`The final payout is calculated based on the job payment rules and the service provider performance results`,payment_amount_info:`âPayment Amountâ is what the Service Provider gets paid for this job. The service fees agreed on as part of Properlyâs Payment Programs are not included in the âPayment Amount.â`,payment_contactus:`Questions about the payment? {{email}}`,payment_complaint:`File a complaint`,payment_id:`ID`,stripe_payment_processed:`Processed by Stripe`,clearing_payment_processed:`Processed by Clearing`,performance_pay_price:{final_payout:`Final Payout`,price:`Price`,save:`Save`,edit:`Edit`,pay:`Pay`,price_exceeded:`The final payout cannot exceed the maximum payout`,general_error_msg:`Something went wrong! Try again later.`,added_on:`Added on`,edited_on:`Last edited on`}},checklist:{publisher:`Publisher`,remove_from_library:`Remove from Library`,show_user_checklist:`Show User Checklists`,hide_user_checklist:`Hide User Checklists`,show_published_checklist:`Show Published Checklists`,hide_published_checklist:`Hide Published Checklists`,nothing_here:`Nothing here`,no_results:`No results for your search`,other_reports:`Other Reports`,all_checklist:`All Checklist`,select_checklist:`Select checklist`,no_photos:`There are no photos for this property.`,checklist_untitled:`Untitled Checklist`,set_as_p_p:`Set as property photo`,set_default_settings:`Pre-fill Job Request`,enter_detail:`Enter detailâ¦`,enter_task_value:`Enter task value`,lock:`Lock`,unlock:`Unlock`,find:`Find/Look`,custom:`Custom`,strip:`Strip/Replace`,wash:`Wash`,iron:`Iron`,vacuum:`Vacuum`,sweep:`Sweep`,wipe:`Clean`,lighton:`Lights`,dust:`Dust`,cleanglass:`Clean Glass`,scrub:`Scrub`,seal:`Seal`,emptytrash:`Empty`,refill:`Refill`,stage:`Stage`,water:`Rinse/Water`,mop:`Mop`,last_saved:`Last saved {{time}}`,close:`Close`,save:`Save`,select_all:`Select all`,clone_properties:`Properties`,clone_checklist_name:`Checklist Name`,no_properties_found:`No properties found`,search_for_address:`Search for address`,clone_checklist:`Duplicate Checklist Into Other Properties`,des:`Checklist Description`,topdes:`Summarize this checklist and add any special information youâd like your service provider to knowâ¦`,uploaddrag:`Drag and Drop to Upload`,select_file:`Select File`,select_action:`Select Action`,photo_slide:`New Photo Slide`,text_slide:`New Text Slide`,ask_a_cleaner:`Ask service provider for a photo of completed tasks`,cancel:`Cancel`,edit_slides:`Edit Slides`,choose_txt_template:`Choose Text Templates`,duplicate:`Duplicate`,duplicate_into_properties:`Duplicate into Properties`,duplicate_into_other:`Duplicate into other Properties`,duplicate_into_library:`Duplicate into Library`,remove:`Remove`,done:`Done`,overview:`Overview`,choose_photos:`Choose Photos`,text_template:`Text Templates`,blank_text_slide:`Blank Text Slide`,enter_title:`Enter title e.g. "Master Bedroom - Bed"`,replace:`Replace`,delete:`Delete`,checklist:`Checklist {{id}}
2`,image_info:`Click anywhere on the photo to drop a task pin`,copy_checklist:`{{name}} Copy`,launder:`Launder`,disinfect:`Sanitize`,preview:`Preview`},titles:{events_property:`Events`,checkout:`Checkout`,todos:`Todos`,subscription:`Subscription`,receipts:`Receipts`,reports:`Reports`,settings:`Settings`,signup_complete:`Signup Complete`,download_app:`Download App`,import_accounts:`Import Accounts`,set_password:`Set New Password`,reset_password:`Reset Password`,properties:`Properties`,new_property:`New Property`,edit_property:`Edit Property`,library:`Checklist Library`,property_checklists:` Property Checklists`,property:`Property`,details_property:`Property Details`,checklists_property:`Property Checklists`,contacts:`Contacts`,contact:`Contact`,profile:`Profile`,password:`Password`,connected_accounts:`Connected Accounts`,notifications:`Notifications`,oauth:`OAuth`,checklist:`Checklist`,edit_connection:`Edit Connection`,schedule:`Schedule`,calendar:`Calendar`,login:`Login`,logout:`Logout`,signup:`Signup`,welcome:`Welcome`,payments:`Properly Payments`,payment_methods:`Payment Methods`,jobs:`Jobs`},calendar:{error_load:`Unable to load the calendar. Please try again.`,show_canceled_by_host:`Show Canceled Events`,hide_canceled_by_host:`Hide Canceled Events`,hide_canceled_events_tooltip:`Hide canceled bookings and jobs from the calendar.`,check_in:`Check In`,check_out:`Check Out`,not_available:`Not available`,booking_details:`Booking Details`,booking_dates:`Booking Dates`,property_time:`Property time`,your_time:`Your time`,are_you_sure_cancel:`Are you sure you want to cancel this job request?`,remove_reminder:`Just checking...`,remove_reminder_info:`Are you sure you want to ignore scheduling this job? If you change your mind, you can always schedule directly from the Calendar.`,more:`{{num}} more...`,ical_booking:`iCal Booking`,canceled:`Canceled`,load_error_1:`Something went wrong trying to load your calendar`,load_error_2:`Please try again`,range_error_1:`We can't load your calendar further than 3 months in the past`,range_error_2:`Please use reports to access this data`,today:`Today`,incomplete:`Incomplete`,problem:`Problem`,finished:`Finished`,started_at:`Started at {{time}}`,starting_at:`Starting at {{time}}`,airbnb_string:`{{name}}, {{guests}} {{plural}}`,guests:`Guests`,guest:`Guest`,general_string:`{{name}} Booking`,checkin:`Check-in`,checkout:`Checkout`,sameday:`Same Day`,select_all:`Select All`,filter_load:`Load Filter`,filter_save:`Save Filter`,filter_new:`Enter the name of the new filter`,filter_delete:`Delete filter`,filter_total_selected:`{{selectedCount}} / {{totalCount}} Selected`,filters:`Property Filters`,filter_search_no_results:`Your search returned no results`,filter_no_results:`There is nothing to filter on`,filter_search_clear:`Clear search`,f
2ilter_add:`Property Filters by Events`,filter_remove:`Clear`,filter_apply:`Apply`,filter_cancel:`Cancel`,reset_event_filter:`Clear all`,filter_add_property:`Add Property Filter`,filter_select_date_range:`Select date range`,filter_advance_search_placeholder:`Advanced search query`,filter_advance_search_submit_button:`Search`,filter_advance_search_info:`Search any property or booking information. For example:`,filter_advance_search_example_one_label:`Find a specific neighborhood by using`,filter_advance_search_example_one:`Seattle AND 98102`,filter_advance_search_example_two_label:`Find a guest by entering their name`,filter_advance_search_example_two:`Mary`,filter_date:{next_7:`Next 7 days`,next_30:`Next 30 days`,past_7:`Last 7 days`,past_30:`Last 30 days`},filter_schema:{property_attributes:`Property Attributes`,property_jobs:`Property Jobs`,zip_code:`Zip Code`,job_date:`Job Date`,incomplete_jobs:`Incomplete Jobs`,job_duration:`Job Duration`,property_bookings:`Property Bookings`,booking_status:`Booking Status`,booking_date:`Booking Date`,booking_duration:`Booking Duration`,same_check_in_out:`Same Day Check-In / Out`,property_todos:`Property Todos`,todo_title:`ToDo Title`,todo_date:`ToDo Date`,todo_type:`ToDo Type`,property_contacts:`Property Contacts`,employee_name:`Employee Name`,partner_name:`Partner Name`,is:`is`,is_not:`is not`,contains:`contains`,has_any_value:`has any value`,is_any_of:`is any of`,is_all_of:`is all of`,is_none_of:`is none of`,equals:`equals`,does_not_equal:`does not equal`,is_less_than:`is less than`,is_greater_than:`is greater than`,is_between:`is between`,onlabel:`on `,between:`between`,tomorrow:`tomorrow`,next_seven_days:`in the next 7 days`,next_thirty_days:`in the next 30 days`,last_seven_days:`in the last 7 days`,last_thirty_days:`in the last 30 days`,is_true:`is true`,is_false:`is false`},filter_option:{date:`Date`,properties:`Properties`,category:`Category`,job:`Job`,job_info:`Select job categories to display properties with these types of jobs.`,booking:`Booking`,booking_info:`Select booking categories to display properties with these types of bookings.`,advance_search:`Advanced Search`,reminder:`Reminder`,reminder_info:`Select ToDo types to display properties with these ToDos`,service_providers:`Service Providers`,service_providers_info:`Select one or multiple Service Providers to display properties with jobs associated with specific service providers.`,event:`Events`},filter_category:{all_jobs:`All Jobs`,job_pending:`Pending`,job_pendingChanges:`Pending Changes`,job_accepted:`Accepted`,job_in_progress:`In progress`,job_delayed:`Delayed`,job_finished:`Finished`,job_canceled_by_host:`Canceled by host`,job_canceled_by_provider:`Canceled by provider`,job_declined:`Declined`,job_problems:`Jobs with problems`,job_incomplete:`Jobs with incomplete tasks`,all_bookings:`All Bookings`,booking_changed:`Changed Bookings`,booking_canceled:`Canceled Bookings`,booking_same_day:`Same day check-out and check-in`,booking_over_seven:`Bookings 7 days or more`,booking_less_seven:`Bookings less than 7 days`,booking_other:`Other Bookings`,is_missing_value:`is missing value`}},jobstatus:{seen:`Viewed`,pending:`Pending`,pendingChanges:`Pending Changes`,accepted:`Accepted`,cancelled:`Canceled`,cancelledbyhost:`Canceled by Host`,cancelledbycleaner:`Canceled by Service Provider`,accepted_by_other_user:`Accepted by other User`,declined:`Declined`,started:`In Progress`,paused:`Paused`,problem_reported:`Problem Reported`,incomplete:`Incomplete`,completed:`Finished`,delayed:`Delayed`,scheduled:`Scheduled to Send`},phoneoverlay:{title:`Use Properly from your phone using our mobile app.`,subtitle:`Download and log in with <email>{{email}}</email> and the password you created.`,upgrade_plan:`Upgrade Plan`},fueslider:{next:`Next`,s1title:`Welcome to Properly`,s1text:`Schedule, organize and keep track of all of your changeover services in one place.`,s2title:`Contacts`,s2text:`Properly is a two-way tool to use with your service providers. Get peace of mind knowing your service provider has received a job request, accepted your job, and finished working on your property.`,s2p1:`View service provider profiles and schedule directly from the Contacts tab.`,s2p2:`View the status of job requests, follow job progress in real-time and view job summaries of completed jobs.`,s3title:`Calendar`,s3text:`Connecting to your listing platforms like Airbnb and/or HomeAway/VRBO or your PMS lets you view all of your properties, reservations, and scheduled services all on one calendar.`,s3p1:`Click on a cell to create a job request and schedule a service.`,s3p2:`Select a job in progress or a completed job to view the job summary.`,s4title:`Properties`,s4text:`Properties tab gives you a holistic view of everything related to your property - all jobs, requests, property details, and information.`,s4p1:`View all upcoming, past and current jobs here as well as the service providers scheduled for the job.`,s4p2:`Enter these important property details for your cleaners and service providers.`,s4p3
2:`Create and customize checklists for all kinds of different jobs.`,s5title:`Checklist`,s5text:`Checklists show service providers what you want to be done and how. They can be detailed and explanatory, or simply to be used for visual reference. Itâs up to you.`,s5p1:`Any photos from your listing platform are here for you to add to checklists. You can also upload photos from your computer.`,s5p2:`Mix and match text slides with photo slides.`,s5p3:`Explain complicated tasks by adding task pins.`,s5p4:`See that your property is perfect by asking for a photo of your cleanerâs finished work.`,s6title:`Profile & Settings`,s6text:`Add as many Airbnb or HomeAway/VRBO accounts as you manage, and simply merge any connected accounts that are duplicated from different platforms.`,s6p1:`Stay in the loop from anywhere while your provider works through a job with different notifications.`,s7title:`Help & Learning`,s7text:`Now you have an overview of the Properly Web App. At any time, you can go to our âHelp & Learningâ section for detailed tutorials.`,s8title:`Download App`,s8text:`Properly can be used from your computer or on the go from your mobile.`,s8p1:`Send a link to your phone so you can download Properly and have maximum flexibility.`,s8link:`Click to Send Link`,s9title:`Get Started`,s9text:`There are many ways you can get started using Properly! Here are some questions to help you hit the ground running.`,s9p1:`If you have a service provider you work with, invite them now.`,s9p1link:`Invite them now`,s9p2:`Havenât connected your Airbnb or HomeAway/VRBO account?`,s9p2link:`Connect your account`,s9p3:`Want to set up a property manually?`,s9p3link:`Add a new property`,s9p4:`Do you want to start building checklists? Look at our Sample Property for ideas.`,s9p4link:`View sample property`,s9p5:`Do you want to get started making your first checklist?`,s9p5link:`Get started by making your own`,tip:`*Tip: You can copy these sample checklists to your property and customize it.`,skip:`Skip`,finish:`Finish`,useproperly:`Use Properly on our mobile app`,enterphone:`Enter your phone number`,smssend:`Super. A link was sent to your phone.`},reports:{deleted:`deleted`,all_service_providers:`All Service Providers`,all_columns:`All Columns`,all_status:`All Status`,all_types:`All Types`,none:`All Jobs`,yes_val:!0,no_val:!1,apartment:`Apartment`,house:`House`,load_more:`Load more`,create_new:`Create New Report`,search_for_report:`Search for Report`,error_cannot_load_report:`Cannot load Report`,error_cannot_load_report_l2:`Report Title cannot be loaded at this time. Try again later.`,export:{fallback_title:`Report`,invalid_filters:`Adjust filters before exporting.`},save:`Save`,delete:`Delete`,title:`Title`,search_for_address:`Search for address`,all_properties:`All Properties`,select_all_properties:`Select All Properties`,col_selector:`Column Selector`,col_selector_placeholder:`Select columns`,date_range:`Date Range`,date_range_placeholder:`Pick Start & End Date`,property:`Property`,property_placeholder:`Select a Property`,service_provider:`Service Provider`,service_provider_placeholder:`Select Service Provider`,status:`Status`,job_types:`Job Types`,job_type_placeholder:`Filter Job Type`,status_placeholder:`Job Status`,problems_reported:`Problems Reported`,problems_reported_placeholder:`Jobs with Problem Reported`,title_placeholder:`Enter Report Title`,search_for_service_pro:`Search for Service Provider`,select_all_service_pro:`Select all Service Providers`,all_service_pros:`All Service Providers`,select_status:`Select Status`,select_all_status:`Select all Status`,select_job_type:`Select Job Type`,select_all_job_types:`Select all Job Types`,select_collumns:`Select Columns`,select_columns:`Select Columns`,export_as_csv:`Export As CSV`,export_as_csv1:`Export As CSV (tab)`,export_as_csv2:`Export As CSV (pipe)`,modal:{warning:`If you are using the Safari Browser you need to rename the file to report.csv after download to be able to import the file`,csv_export:`CSV Export ({{format}})`,csv_export_info:`The CSV is delimited with ({{format}}
2) you may need to set this when you import the *.csv`,delete_report:`Delete`,delete_report_l2:`Are you sure you want to delete this report?`,save_report:`Save`,save_report_l2:`You are about to create a new report you can save or cancel the existing report to continue`,delete:`Delete`,save:`Save`,cancel:`Cancel`,ok:`Ok`,processing:`Processing`,download:`Download`,unsaved_title:`Unsaved Changes`,unsaved_message:`You have unsaved changes. Would you like to save them before leaving?`,discard:`Discard`,export_failed:`Export Failed`,export_success:`Export completed successfully`,preparing_export:`Preparing export...`},sidebar:{no_saved:`No saved reports yet`,create_first:`Create your first report to get started`},filter:{with_problems:`With Problems Only`,columns_selected:`{{count}}/{{total}} selected`,title_label:`Report Title`,title_placeholder:`Enter title...`,properties:`Properties`,all_properties:`All Properties`,search_properties:`Search properties...`,no_properties:`No properties found`,providers:`Providers`,all_providers:`All Providers`,search_providers:`Search providers...`,no_providers:`No providers found`,service_providers:`Service Providers`,all_service_providers:`All Service Providers`,search_service_providers:`Search service providers...`,no_service_providers:`No service providers found`,status:`Status`,all_status:`All Status`,job_types:`Job Types`,all_job_types:`All Job Types`,problems_label:`Problems`,all_jobs:`All Jobs`,jobs_with_problems:`Jobs with Problems`,clear_all:`Clear All`},header:{new:`New Report`,view:`View Report`,edit:`Edit Report`,unsaved:`Unsaved`,delete:`Delete`,saving:`Saving...`,save:`Save`},date:{label:`Date:`,select_range:`Select Date Range`,custom:`Custom`},columns:{label:`Columns`},topbar:{unsaved:`Unsaved`,filters:`Filters`,export:`Export`,exporting:`Exporting...`,saving:`Saving...`},table:{adjust_hint:`Try adjusting your filters or date range to find job requests.`,no_results_title:`No job requests found`,no_results_description:`Try adjusting your filters or date range to find job requests. Make sure at least one property and status is selected.`,adjust_filters:`Adjust Filters`,service_providers_count:`service providers`,no_service_providers_title:`No service providers found`,no_service_providers_description:`Try adjusting your filters or date range to find service providers. Make sure at least one property and status is selected.`},dates:{today:`Today`,thisweek:`This Week`,thismonth:`This Month`,lastmonth:`Last Month`,lastweek:`Last Week`,custom:`Custom`},states:{pending:`Pending`,pendingChanges:`Pending Changes`,accepted:`Accepted`,declined:`Declined`,delayed:`Delayed`,cancelled:`Canceled`,cancelledByHost:`Canceled by Host`,cancelledByCleaner:`Canceled`,started:`In Progress`,finished:`Finished`},jobTypes:{turnover:`Turnover`,concierge:`Concierge`,maintenance:`Maintenance`,inspection:`Inspection`,do_job:`Do job`,other:`Other`},select:{jobrequestid:`Job Id`,jobsnapshotid:`Job Id`,job_title:`Job Title`,jobType:`Job Type`,totalCost:`Total Cost`,billableTime:`Billable Time`,totalMileage:`Total Mileage`,actualstarttime:`Actual Start Time`,actualendtime:`Actual End Time`,duration:`Duration`,property:`Property`,jobrequest:`Job Request`,propertyname:`Property Title`,jobsenddate:`Job Sent Date`,schedulestart:`Scheduled Start Date`,scheduleend:`Scheduled End Date`,scheduletime:`Scheduled Time`,scheduleduration:`Scheduled Duration`,msgtoserviceprovider:`Message to Service Provider`,statusofrequest:`Status of Request`,canceledbyme:`Canceled By Me`,canceledbyserviceprovider:`Canceled By Service Provider`,offeredprice:`Offered Price`,offeredpricecurrency:`Currency`,name:`Name`,timedate:`Time & Date`,seen:`Viewed`,response:`Response`,serviceprovider:`Service Provider`,msgfromserviceprovider:`Message from Service Provider`,job:`Job`,actualstartdate:`Actual Start Date`,actualenddate:`Actual End Date`,actualtime:`Actual Time`,statusofjob:`Status of Job`,slides:`Slides`,tasks:`Tasks`,progress:`Progress`,verificationphotos:`Verification Photos`,problemsreported:`Problems Reported`,checklist:`Checklist`,title:`Title`,description:`Description`,address:`Address`,countrycode:`Country Code`,city:`City`,bedrooms:`Bedrooms`,bathrooms:`Bathrooms`,propertytype:`Property Type`,accessinfo:`Access Information`,garbageinfo:`Garbage Information`,parkinginfo:`Parking information`,wifiname:`Wifi Name`,wifipassword:`Wifi Password`,wifidescription:`Wifi Description`,importantinfo:`Important Information`,problemslist:`Problems Reported Notes`,viewed:`Viewed`,bilableTime:`Billable Time`,totalMilage:`Total Mileage`,thumbsup:`Thumbs Up`,thumbsdown:`Thumbs Down`,paymentstatus:`Payment Status`,paymentdate:`Payment date`,paymentid:`Payment Id`,paymentamount:`Payment amount`,baseOfferedPrice:`Base Price`,bonusPriceText:`Bonus`,finalPaymentAmount:`Final Payout`,maxOfferedPrice:`Maximum Payout`,price:`Price`,paymentdetails:`Payment Details`,basePrice:`Base Price`,bonus:`Bonus`,maximumPayout:`Maximum Payout`,finalPayout:`Final Payout`,sharedBy:`Shared By`,inspectedBy:`Real-time Inspected By`,timeSpent:`Time Spent`,timeSpentFlagged:`Flagged`,timeSpentVariance:`Variance`,timeSpentFlagReason:`Flag Reason`,email:`Email`,jobCount:`Number of Jobs`},flagged_yes:`Yes`,flagReason:{title:`Why is this row flagged?`,late_finish:{what:`The cleaner pressed <strong>Finish</strong> about <strong>{{timeSpentVariance}} minutes</strong> after their last task or verification photo.`,how:`To keep totals fair, <strong>Time Spent</strong> reflects when work actually appears to have stopped â calculated as their last activity plus a <strong>{{timeSpentBufferMin}}-minute</strong> wrap-up allowance, not when Finish was pressed.`},no_finish:{what:`This job hasn't been closed out yet â the cleaner started but hasn't pressed <strong>Finish</strong>.`,how:`The <strong>Time Spent</strong> shown is an estimate based on their last task or verification photo plus a <strong>{{timeSpentBufferMin}}-minute</strong> wrap-up allowance, so the final hours may differ once the job is closed.`}},flagReasonValue:{late_finish:`Late finish`,no_finish:`No finish`},tabs:{jobs:`Jobs`,serviceProviders:`Service Providers`,aria_label:`Report views`}},defaultsettings:{infomsg:`Setting default values for this checklist will automatically prefill job requests`,default_settings_for:`Pre-filled Job Request for {{name}}`,save:`Save`,set_default_yes_no:`Set as default checklist for this property`,headline_modal:`Default Checklist`,subhead_modal:`This checklist has been set as default. Deleting this will remove its default settings.`,cancel:`Cancel`,ok:`Ok`},pricing:JSON.parse(`{"contact_customer_support":"Please contact our support team","dont_have_active_sub":"You do not have any active subscription","partners":"Inclusion on Properly Partners pages","up_to_n_jobs":"Up to 2 Jobs Sent per Month","help_learning":"Help & Learning Center Articles","share_listing_host":"Share Listings with Host Consultants","cleaner_review":"Cleaner Review Tools","unlimited_jobs":"Unlimited jobs sent per month","email_support":"Email-based Support","reminders":"Automated Reminders","share_listing_owners":"Share Listings with Owners","pms_ical_integration":"PMS & iCal Integration","includes_all_advanced":"*Includes All Advanced Features*","share_listing_cleaners":"Share Listings with Cleaners & Service Providers","reports":"Reports","contact_us":"Contact Us","includes_all_pro":"*Includes All Pro Features*","unlimited_multi_users":"Unlimited Multi-user Account","phone_onboarding":"Onboarding Support","success_manager":"Dedicated Success Manager","full_service_pm":"Referrals from homeowners seeking full-service PM","unlimited_photos":"Add unlimited photos","unlimited_checklists":"Create unlimited checklists","unlimited_service_pros":"Add unlimited Service Providers","language_support":"Support for 8 languages and translations","templates":"Free checklist templates","platforms":"Acce
2ss web, iOS and Android apps","notifications":"Unlimited email/push notifications","syncing":"Unlimited syncing with Airbnb and iCal","syncingpro":"Unlimited syncing with 10+ PMS and iCal","live_inspection":"Live Inspection","performance_report":"Performance Reports","inspection_team":"Inspection Team","sp_communication":"Service Provider Communication","instant_feedback":"Instant Feedback","problem_solving":"Problem Solving","preventative_maintenance":"Preventative Maintenance","ri_title":"Real-time Inspection. A must have tool for vacation rental hosts","ri_description":"Drastically reduce your workload, save time, and avoid the risk and extra costs of maintenance problems. Our remote management service is delivered in two ways: request an experienced Real-time Inspection team to do it for you, or do it yourself using the app.","cohost_title":"Cohosting. Full-service support for vacation rental hosts","cohost_description":"Let Properly help manage the day-to-day work of hosting. Cohosting combines Real-time Inspection with guest support, turnover oversight, revenue management, dynamic pricing, and damage-claim support so your property keeps running smoothly.","note":{"onboarding":"Onboarding support requires paid account and is not available during trial","self_service":"Free trials are for self-service users only","usd":"All prices shown in USD"},"expired_partner_admin":"In {{days}} day(s), you will no longer have access to {{name}}'s properties. To maintain access, have {{name}} upgrade to the Pro plan now.","upgrade_now":"upgrade","expired_partner":"In {{days}} day(s), your trial will end. Any partners will lose access to your properties. To maintain access, <btn>upgrade</btn> to the Pro plan now.","billed_annually":"billed annually","annually":"Annually","monthly":"Monthly","trial":"Free 30 Day Trial","free":"Free","trial_plan":"Trial","on_trial":"on trial","trail_expire":"Your free trial expires in {{days}} day(s).","trail_expire2":"Click","trail_expire3":"to see pricing plans.","trail_expired":"Your free trial has expired","trail_expired2":"Click","trail_expired3":"to see pricing plans.","pricing_plans":"Pricing Plans","most_popular":"MOST POPULAR","current_plan":"CURRENT PLAN","your_plan":"Your Plan","your_trial":"Your Trial","upgrade":"Upgrade","select_this_plan":"Select this plan","continue_with_this_plan":"Continue with this plan","upgrade_to_plan":"Upgrade to {{plan}} â","learn_more":"Learn More","account_upgraded":"You account has been upgraded.","account_updated":"Subscription update in progress. It will automatically process in most cases. If not, please refresh the page later. Contact our support team for assistance. Thank you for your patience.","thank_you":"Thank you!","exceed_limit":"Youâve exceeded the limits of your {{plan}} plan.","exceed_limit2":"Click","exceed_limit3":"to upgrade","all_plans_include":"All plans include","claim_1":"Create unlimited checklists","claim_2":"Create unlimited properties","claim_3":"Add unlimited photos","claim_4":"Free checklist templates","claim_5":"Add unlimited Service Providers","claim_6":"Unlimited email/push notifications","claim_7":"Support for 8 languages and translations","claim_8":"Unlimited syncing with Airbnb and HomeAway","info":"*All prices shown in USD excluding tax","cancel_msg_intercom":"Hi team! I'd like to cancel my Properly subscription. Thank you.","contact_for_custom_plan":"Hi team! I'd like to discuss the Property Manager subscription plan for my business.","contact_for_plan":"Hi team! I'd like to discuss the {{plan_title}} subscription plan for my business.","contact_for_downgrade":"Hi team! I'd like downgrade my plan.","modalmsgs":{"job_x_of_y":"You sent {{x}} of {{y}} jobs!","job_x_of_y_l2":"You can send {{num}} more jobs this period with the ","job_x_of_y_l3":"plan. ","job_x_of_y_l4":"You can upgrade your plan to send unlimited jobs.","job_already_reached":"Sorry! You canât send any more jobs","job_already_reached_l2":"You have sent all {{num}} jobs allowed on the ","job_reached_l2":"You have reached the limit of jobs that you can send with the free {{plan}}","job_reached_l3":"plan ","job_reached_l4":"this period. To send unlimited jobs, upgrade your plan.","cancel_sub":"Cancel Subscription","cancel_sub_l2":"Please contact our customer support to cancel or downgrade your subscription","cancel_sub_close":"Close","cancel_sub_contact":"Contact","upgrade_to_pro":"Upgrade your subscription to access this and other features.","upgrade_to_pro_l2":"Sorry, this feature is not available on your current plan. To get this Pro feature upgrade your plan."},"status":{"paid":"Paid","unpaid":"Unpaid"},"title":"Pricing","text":"Whether youâre a part-time home-sharer, managing a vacation rental, or a run professional property management business weâve got a pricing plan that suits you and your needs.","popular":"Most Popular","property":"per property per month","job":"per job","flatrate":"per month","allplan":"All plans include","tip":"All prices are shown in USD excluding tax","annualbill":"billed annually","properly":{"api":"Properly API access"},"online_support_basic":"Email-based Support","share_listings_with_cleaners":"Share Listings with Cleaners & Service Providers","all_pro_features":"Includes All Pro Features","mulit_user":"Unlimited Multi-user Account","contact_us_quote":"Contact us for quote","cohost_includes_all_ri":"*Includes all Real-time Inspection features*","cohost_guest_support":"24/7 guest support â 2-minute response SLA","cohost_revenue_management":"Revenue management â Dashboards, occupancy analytics & reporting","cohost_everything_included":"Everything included â Scheduling, inspection, pricing, claims","cohost_net_cost":"Net cost can be $0 â Revenue uplift offsets the fee","cohost_dynamic_pricing":"Dynamic pricing â Rate optimization to maximize revenue","cohost_damage_claims":"Damage claims â We handle documentation and recovery","ri_includes_all_pro":"*Includes all Pro features*","ri_ai_photo_analysis":"AI photo analysis â Every photo scanned for issues","ri_expert_reviewers":"5+ Year Expert Reviewers â Seasoned inspectors, assisted by cutting-edge AI","ri_damage_documentation":"Damage documentation â Timestamped evidence for claims","ri_pre_checkin_alerts":"Pre-check-in alerts â Issues flagged before guests arrive","ri_instant_report":"Instant pass/fail report â Full summary emailed within minutes","online_support":"Online chat and email support","automated_reminder":"Automated Reminders","share_listings":"Share Listings with Host Consultants","share_listings_owners":"Share Listings with Owners","skills_library_30_day_trial":"Skills library 30 day trial","unlimited_skills_library":"Includes unlimited access to Skills library","trial_info_banner":"{{days}} days left in your free trial.","trial_info_cta":"Choose a plan â","trial_warning_banner":"Only {{days}} days left! Choose a plan to avoid interruption.","trial_urgent_banner":"Your trial ends {{timeLeft}}! Choose a plan to keep access.","trial_expired_banner":"Your trial has expired. Choose a plan to continue.","trial_welcome_title":"Welcome to Properly!","trial_welcome_title_named":"Welcome, {{name}}!","trial_welcome_subtitle":"Your {{days}}-day free trial is now active.","trial_welcome_hero_days_label":"days free","trial_welcome_features":"Everything you need to get started â no credit card needed.","trial_welcome_cta":"Start Exploring","trial_welcome_upgrade_cta":"Upgrade Now","trial_welcome_demo_cta":"Book Demo","trial_welcome_close_label":"Close welcome modal","trial_welcome_feature_properties":"Unlimited properties","trial_welcome_feature_scheduling":"Job scheduling & calendar","trial_welcome_feature_team":"Team management","trial_welcome_feature_reports":"Reports & analytics","trial_welcome_feature_airbnb":"Airbnb & iCal connection","trial_ending_title":"Your trial ends {{timeLeft}}","trial_ending_time_today":"today","trial_ending_time_day":"in 1 day","trial_ending_time_days":"in {{days}} days","trial_ending_body":"Choose a plan before your trial ends to keep access to properties, calendar, jobs, and team management.","trial_ending_reassurance":"Your saved data stays safe.","trial_ending_cta":"Upgrade Now","trial_ending_later":"Maybe Later","trial_expired_overline":"Trial ended","trial_expired_title":"Continue your Properly account","trial_expired_body":"Choose a plan to keep managing properties, calendars, jobs, and your team without losing saved data.","trial_expired_data_safe":"Your account data is safe.","trial_expired_stats":"{{properties}} properties ready to continue","trial_expired_no_properties":"Your Properly account is ready to continue","trial_expired_cta":"Choose a Plan","trial_expired_contact":"Contact Support","trial_expired_contact_msg":"Hi! My trial has expired and I'd like to learn about upgrade options.","upgrade_modal_title":"Upgrade your Properly account","upgrade_plan_step_label":"Step 1 of 2","upgrade_plan_step_body":"Pick the plan that fits how your team works. You can confirm payment on the next step.","upgrade_step_payment":"Step 2 of 2","upgrade_payment_title":"Confirm your upgrade","upgrade_payment_body":"Review the selected plan and confirm the payment method. Your Properly account stays active once payment is complete.","continue_payment_title":"Confirm your payment","continue_payment_body":"Review your current plan and confirm the payment method. Your Properly account stays active once payment is complete.","upgrade_plan_label":"Plan","upgrade_card_on_file_title":"Card on file","upgrade_card_entry_body":"Enter a card to activate this plan. We'll save it for future subscription renewals.","upgrade_secure_payment":"Secure payment powered by Recurly.","upgrade_3ds_title":"Bank verification","upgrade_3ds_body":"Complete this quick bank check to finish your upgrade.","upgrade_loading_title":"Preparing your upgrade...","upgrade_error_title":"We couldn't finish the upgrade","upgrade_back_to_plans":"Back to plans","upgrade_confirm_cta":"Confirm upgrade","confirm_payment_cta":"Confirm payment","per_month":"/ mo"}`),topbar:{library:`Library`,calendar:`Calendar`,properties:`Properties`,j
2obs:`Jobs`,contacts:`Contacts`,reports:`Reports`,todos:`Todos`,settings:`Settings`},error:{oops:`Oops`,looks_like_smth_wrong:`Looks like something went wrong`,try_again:`Try Again`,contact_support:`Contact customer support`,or:`or`,"404error":`404 Error`},calendartile:{job:`Job`,todo:`To-Do`,cancelled:`Canceled`,changed:`Changed`,modes:{resend:`Resend`,skip:`Ignore`,cancel:`Cancel Job`,schedule:`Schedule`,sendmore:`Send to more`,sendnew:`Send to new`,edit:`Edit`},guest_singular:`guest`,guest_plural:`guests`},checkout:{error_load:`Unable to process checkout. Please try again.`,email_not_valid:`Email not valid`,subscribe:`Subscribe`,upgrade_using_card_on_file:`We'll charge the card on file ending in {{lastFour}}.`,use_different_card:`Use a different card`,three_d_secure_required:`Your bank requires additional verification to complete this charge.`,tos:`I accept the <tos>Terms of Service</tos> and <privacy>Privacy Policy</privacy>.`,payment:`Payment`,coupon:`Coupon code`,address:`Address`,billingaddress:`Billing address`,address2:`Address 2`,country:`Country`,taxnumber:`Tax number`,city:`City`,firstname:`First name`,lastname:`Last name`,email:`Email`,company:`Company`,cardnumber:`Card number`,carddetails:`Card details`,cardholder_name:`Cardholder name`,secured:`Secured`,expiremonth:`Expire month`,expireyear:`Expire year`,cvv:`CVV`,state:`State`,zip:`Zip/Postal`,apply:`Apply`,propertyname:`Property name`,price:`Price`,total:`Total`,tax:`Tax`,discount:`Discount`,isrequired:`Is required`,billedannual:`(Billed annually)`,billedmonthly:`(Billed monthly)`,invalidcode:`Invalid coupon code`,discountapplied:`Discount applied`,cvvinfo:`A CVV, or Card Verification Value, is a three- or four-digit code on your credit card, separate from the 16-digit card number.`,processing:`Processing Payment`,pay_success:`Payment Successful`,pay_fail:`Payment Unsuccessful`,ok:`OK`,jobssendthis:`Jobs sent this month`,jobs:`jobs`,updatebilling:`Update Billing Information`,accountupgraded:`Account Upgraded`,informationupdated:`Information Updated`,therewasanerror:`There was an error with your request.`},todos:{error_load:`Unable to load your to-do list. Please try again.`,headline:`To-Do`,description:`View and manage upcoming check-ins, check-outs, and turnovers for your properties`,job:`Job`,nothingin7days:`You scheduled everything for the next 7 days.`,noeventsatall:`You do not have anything to do at this time. How about treating yourself to an ice cream?`,reminder:{title:`Recurring reminder`,attach:`Attach to job`,send_job:`Send a job now`,ignore:`Ignore`}},permissions:JSON.parse(`{"partners_start_txt":"Inviting partners allows you to collaborate in the specific ways you need to run your business optimally. With this feature, cleaners can be empowered to schedule their own cleanings. Owners can stay in the loop on the service you provide to their home. And service consultants can help you create checklists.","invite_partners":"Invite Your Partners","upload_company_logo":"Upload your company logo","upload_size":"300px by 300px","ask_your_admin_for_help":"Ask your Admin for help.","invite_partner_btn":"Invite Partner","leave_property_h1":"Leave collaboration","leave_property_info":"Leaving collaboration will remove all access to properties shared by this user. See the list of properties below","shared_by":"Shared by","shared_with":"Shared with","start":"Start","invite_partner_l1":"Invite your outside partners","invite_partner_l2":"Outside partners include property owners, cleaning companies or others who might need access to your account to help you schedule jobs, make and edit checklists and oversee services. (You can tell us what access youâd like them to have in a later step.)","sent_invite":"Invitation sent","send_invite_error":"Oops! Maximum resend limit exceeded! Please try again in some time.","send_invite_info":"You have successfully invited a new user to Properly. They will get your invite by email. If youâd like to change their permissions and access in the future, you can do so from this screen.","remaining_chars":"{{count}} characters remaining","update":"Update","company_note":"Note: Creating a company is irreversible","des_placeholder":"Complete this section if you use Properly with your clients.","your_company_email":"Your Company Email","company_profile":"Company Profile","company_name":"Company Name","invite_employee":"Invite Employee","invite_partner":"Invite Partner","company_box_l1":"Company administrator email","company_box_l2":"About","invite_team_member":"Invite Team member","wel
2come":"Welcome","welcome_l2":"You have just created a company and you are now the company admin. Get started by inviting your first team member to your company","create_company":"Create a Company","create_company_btn":"Create Company","company_start_txt":"Conversion to a company account cannot be reversed and requires a Property Manager subscription.","disabled_col":"Disabled Employee.","enabled_col":"Enabled Employee.","col_remove_success":"Partner access revoked.","enable":"Enable","properties":"Properties","pending":"Pending","user":"User","rights":"Rights","team_saved":"Team updated!","view":"View","external_coll_sing":"External Partner","headline":"Users & Permissions","untitled_team":"Enter your company name","team_about":"Enter a description about your company","create_team":"Create Company","your_invitation_sent":"Your invitation has been sent","company_created":"Your team was created","internal_coll_singular":"Employee","internal_coll_plural":"Employees","external_coll_singular":"My Partner","external_coll_plural":"My Partners","partner_singular":"Partner","partner_plural":"Partners","properties_shared":"Properties shared with me","invite":"Invite","active_user":"Active Team Members","disabled_user":"Disabled Team Members","edit":"Edit","revoke":"Revoke","resend":"Resend","disable":"Disable","leave":"Leave","invite_coll":"Invite your companyâs team and outside partners","invite_coll_txt":"This can include employees, property owners, cleaning companies or others who might need access to your account to help you schedule jobs, make and edit checklists and oversee services. (You can tell us what access youâd like them to have in a later step.) ","error":{"unknown":"Unknown error","email_blacklisted":"Email is blacklisted, please use a email with a domain you own.","email_domain_used":"Email domain used by other user."},"modal":{"setupsupport_info":"This role grants an expert or consultant access to your properties so they can create and edit checklists for you. They cannot send jobs.","enter_a_company_email":"Enter a company email","enter_a_company_email_txt":"To invite your employees you need to enter a company email address.","admin_email_tooltip":"Keep in mind you can only add employees matching your company domain name such as [email protected]. Free email providers such as Gmail or Hotmail are blocked. Multiple company emails are allowed.","does_not_match_rootdomain":"Email does not match root-domains","verify_fail_head":"Email verify error!","verify_fail":"The verification of your email failed, due to invalid token or server error.","verify_success":"Your company page has been verified. Go ahead and invite your first employee to your company page. ","confirm_your_mail":"Confirm your email address","confirm_your_mail_txt":"A confirmation email has been sent to {{email}}. Click on the confirmation email to activate your account and invite your employees.","email_info":"Note that this role is limited to management functions and cannot perform property-based jobs.","you_cannot_invite_more":"Note: You can not invite more than {{partner}} of this type, either revoke a partner of this type or upgrade.","send":"Send","service_provider_access":"Cleaners and Service Providers","service_provider_access_info":"This role gives your service and other providers access to the booking calendar for the properties they service and lets them schedule their own jobs.","owner_access":"Owners","owner_access_info":"This role gives the owner whose property you manage visibility into the jobs performed on their property. You can grant access to view your calendar and create and edit checklists. They cannot send jobs.","setup_support":"Service Consultants","invite_outsiders":"Partner Access","invite_outsiders_l2":"Inviting partners gives them access to manage your properties from their own Properly accounts.","trial":"Trial","upgrade":"Upgrade","trial_message":"Your subscription does not include access to certain features. Upgrade your subscription now!","type_selection":"Partner Type","leave_property":"Remove","leave_property_info":"Are you sure youâd like to turn off your access to this property? Just so you know, this action removes the property from your view, but the additions and changes you made will still be visible to the person who shared it with you. ","cancel_access":"Revoke Access","cancel_access_info":"Are you sure you want to revoke access to your properties for this user? ","error_request":"There was an error with the request.","only_sandalone":"Sorry. This user account canât be added because the account is associated with an employee of another company, or is already in use. Employee accounts need to be newly created.","already_invited":"You already invited this user, check your user list to edit the users' permissions.","shared_properties":"Shared Properties","email_enter":"Enter email address","invite_sum":"Invitation Summary","resend_invitation":"Resend Invitation","next":"Next","back":"Back","my_properties":"My Properties","email":"Email","coll_type":"Partner Types","permissions":"Permissions","property":"Property","send_invitation":"Send Invitation","internal_info":"This person works for your company and manages properties.","internal_info_disabled":"This function is disabled as your invited employee has an existing properly account","
2internal_info_full":"This role is intended for scheduling and managing jobs, not for completing jobs. When you invite your employees, the account they create belongs to your company. You can set and edit access and/or turn off your employeeâs account.","internal_info_l2":"eg. City Operations Manager or Corporate Cleaning Coordinator","external_info":"External partners are not employed by your company.","external_info_l2":"eg. Property Owner, Co-Host, Cleaning Company","external_info_full":"Use this feature to allow owners to view progress at their property, or let your cleaning company see your bookings and schedule their jobs themselves.","full_access":"Full Access","full_access_info":"Give this user access to everything.","full_access_info_l2":"View feature access below.","full_access_info_full":"This includes viewing all information, creating, editing and deleting checklists, and sending jobs.","specific_access":"Partial Access","specific_access_info":"Set the View, Checklist and Job Permissions you'd like to grant to this user","specific_access_info_l2":"View feature access below.","info_select_send_etc":"If you want this user to create and edit checklists, and to send jobs heâll also need access to view all Information. If you want this user to send jobs, he needs to be able to edit your contacts.","full_access_property":"By allowing full access youâ¦","specific_access_property":"By allowing specific access you..","property_full_access":"All properties","property_full_access_info":"Allow access to all properties","property_full_access_info_l2":"Users will be able to create, edit and delete properties, and will have access to any new properties that are added to this account.","property_full_access_info_l3":"Collaborators will be able to use assigned rights at all properties including all future properties.","property_specific_access":"Select Properties","property_specific_access_info":"Allow access to specific properties","property_specific_access_info_l2":"In this mode, your user will not be able to create, edit or delete properties.","permissions_select":{"edit_permissions":"Checklist Permissions","see_permission":"View Permissions","see_servicepro":"View Service Provider Name","see_offeredprice":"View Payment Information (Offered Price, Costs/Time, and Payment Details)","see_problem":"View âProblem Reportsâ","see_problem_pics":"View âVerification Photosâ and âTasks Completedâ","see_messages":"See Messages","edit_checklist":"Create, Edit and Delete Checklists","send_permission":"Job Permissions","send_job":"Send Job & Edit Contacts","start_job":"Start Job","forwardJobs":"Forward Job","accept_job":"Accept Job"},"infomessageper":{"coll":"Invite a internal or external collaborator.","email":"Enter email"},"cannot_send_jobs_property":"You currently donât have the permission to send jobs on this property."},"property_singular":"property","property_plural":"properties"}`),slider:{comment:`Comment`,write_a_comment:`Write a comment...`,delete_comment:`Delete comment`,edit_comment:`Edit comment`,viewed:`Viewed`,thumbs_up:`Thumbs Up`,thumbs_down:`Thumbs Down`},marketplace:{guarantee:`Marketplace Satisfaction Guarantee`,probadge:`PRO`,expansion_title:`Learn more about`,expansion_content:`Properly Pro is a program that guarantees the quality of jobs carried out by Properly's network of Independent Service Providers within a set area. If your property is in a Pro area, all jobs sent to Pro Service Providers will be automatically paid through the app 24 hours after the job's completion and are covered by the <msg>Marketplace Satisfaction Guarantee</msg> (part of Properly's <tos>Terms of Service</tos>)`,expansion_content_tos:`Properly's Terms of Service.`,learn_title:`Learn more about`,learn_content:`Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`,probadge_modal:null,header:`Properly Pros`,sub_header:`Properly Pros have agreed to uphold the highest standards of service for vacation rental managers, and have either established an excellent track record with current managers or completed training with Properly.`,content_1:`Arrive at and complete jobs on time`,content_2:`Verify that they are on-site at start time`,content_3:`Will not cancel jobs without sufficient notice`,content_4:`Have undergone a criminal background check`,content_5:`Are licensed and/or insured to local requirements`,content_6:`Are backed by the Properly quality guarantee`,conclusion:`You can rely on Pros to deliver exceptional service every time so you can enjoy the peace of mind that comes from knowing the job will get done - properly.`},probadge_modal:{projob:`Pro Job`,projob_explanation:`Pro Jobs are automatically paid 24h after the job's completion and covered by the <msg>Marketplace Satisfaction Guarantee</msg> (part of <tos>Terms of Service</tos>)`,projob_sp_tooltip:`All jobs sent to this Service Provider in a Pro market are automatically paid through the app and are covered by the Marketplace Satisfaction Guarantee (part of Properly's ToS.)`,header:`Properly Pros`,sub_header:`Properly Pros have agreed to uphold the highest standards of service for vacation rental managers, and have either established an excellent track record with current managers or completed training with Properly.`,content_1:`Arrive at âand completeâ jobs on time.`,content_2:`Verify that they are on-site at start time.`,content_3:`Will not cancel jobs without sufficient notice.`,content_4:`Have undergone a criminal background check`,content_5:`Are licensed and/or insured to local requirements`,content_6:`Are backed by the <msg>Marketplace Satisfaction Guarantee</msg>.`,conclusion:`Properly Pros deliver exceptional service every time, so you can rest easy knowing that the job will get done - Properly.`},settings:{error_load:`Unable to load settings. Please try again.`,connect_accounts:`Connected Accounts`,company:`Company`,partner:`Partners`,payment_methods:`Payment Methods`,subscription:`Subscription`,receipts:`Receipts`,payment_methods_txt:`To send jobs via the Properly Marketplace (in a Pro market,) you must set up a payment method as youâll automatically pay your Service Provider 24 hours after theyâve completed the job. Click "Remove" to disconnect your payment method.`,really_delete_payment_method:`Are you sure you want to delete this payment method?`,payment_remove_error:`You have active jobs in the Pro Marketplace. You cannot remove a payment method until all jobs are complete/cancelled.`,credit_cards:`Credit card`,bank_accounts:`Bank accounts`,add_credit_card_payment_method:`Add Card`,add_bank_account_payment_method:`Add Bank Account`,remove_credit_card_payment_method:`Remove`,remove_bank_account_payment_method:`Remove`,active:`Active`,inactive:`Inactive`,confirm_leave:`Are you sure you want to leave?`,expiry_date:`Expiry`,routing_number:`Routing`,marketplace_payment_method:`Marketplace Payment Method`,subscription_payment_methods:`Subscription Payment Method`,subscription_payment_methods_txt:`To manage your subscription effectively, you need to set up a subscription payment method. This ensures that your subscription fees are processed seamlessly and on time, allowing uninterrupted access to services. You can easily update payment method at any time.`,staff_subscription_payment_not_needed:`N
2o subscription payment method is needed for your current plan.`,staff_subscription_payment_upgrade_prompt:`To add a payment method for a paid subscription, upgrade from the Subscription page.`,subscription_payment_loading_error:`Error occurred while loading payment info`},payments:{connect_to_stripe:`Click "Connect" to link your Stripe Account to your Properly account. That way, we can send you payments for jobs you've completed through the Properly app.`,click_button_to_connect:`Click the button below to setup your account.`,bank_account:`Add your bank account`,connect_successful:`Your connection to Stripe is successful!`,status:{processing:`Processing`,pending:`Pending`,succeeded:`Succeeded`,failed:`Failed`,canceled:`Canceled`,unknown:`Unknown`,unprocessed:`Unprocessed`,submitted:`Submitted`}},checklists:{error_load:`Unable to load the checklist. Please try again.`,all:`All`,my:`My`,branded:`Branded`},library:{error_load:`Unable to load the library. Please try again.`},stripe:{error_load:`Unable to load payment setup. Please try again.`},list_view:{export:`Export`,email:`Email`,print:`Print`,rowsPerPage:`Rows per page`,of:`of`,chooseWhichColumnsYouSee:`Choose which columns you see`,selectedColumns:`Selected Columns`,selectColumnsFromTheLeftToGetStarted:`Select columns from the left to get started`,save:`Save`,cancel:`Cancel`,search:`Search`,spotted_cost:`Spotted Issue Cost`,saved_cost:`Saved Cost`,spotted_cost_suffix:`(Thumbs down task values)`,saved_cost_suffix:`(Thumbs down turned to thumbs up task values)`,saved_cost_value:"${{savedIssuesCost}} ({{totalNumberOfSavedIssues}} of {{totalNumberOfSpottedIssues}})",filter:{today:`Today`,this_week:`This week`,next_week:`Next week`,custom:`Custom`,all:`All`,to_do:`To-do`,to_modify:`To-modify`,open_problems:`Open Problems`,active:`Active`,pending:`Pending`,canceled:`Canceled`,favorites:`Favorites`,branded:`Branded`,my:`My`,how_to:`How-to`},legend:{property:`Property`,job_title:`Job Title`,turnover:`Turnover`,reminders:`Reminders`,job_date:`Job date`,status:`Status`,name:`Name`,check_in:`Check in`,check_out:`Check out`,guest_details:`Guest details`,date:`Date`,start_time:`Start Time`,end_time:`End Time`,job_type:`Job Type`,checklist_title:`Checklist Title`,skill_related_to_reminder:`Skill related to reminder`,service_provider:`Service provider`,job_status:`Job status`,finished_jobs_duration:`Finished jobs duration`,last_week:`Last week`,schedule_jobs_duration:`Schedule jobs duration`,next_week:`Next week`,acceptance_rate:`Acceptance rate`,response_time:`Response time`,thumbs_up_ratio:`Thumbs up ratio`,earned_this_year:`Earned this year`,paid_and_pending:`Paid and pending`,publisher:`Publisher`,number_of_slides:`Number of slides`,number_of_tasks:`Number of tasks`,number_of_photos:`Number of photos`,title:`Title`,type:`Type`,city:`City`,bedrooms:`Bedrooms`,beds:`Beds`,bathrooms:`Bathrooms`,problems:`Problems`,open:`Open`,history:`History`,maintenance_cost:`Maintenance cost`,this_year:`This year`,last_month:`Last month`,this_month:`This month`,actions:`Actions`,day_and_date:`Day & Date`,skill:`Skill`,property_type:`Property type`,property_city:`Property city`,property_country:`Property country`,property_address:`Property address`,property_bedrooms:`Property bedrooms`,property_bathrooms:`Property bathrooms`,job_id:`Job ID`,scheduled_time:`Scheduled time`,sent_date:`Sent date`,actual_start_time:`Actual start date`,actual_end_time:`Actual end date`,actual_time:`Actual time`,estimated_duration:`Estimated duration`,actual_duration:`Actual duration`,total_cost:`Total cost`,billable_time:`Billable time`,total_mileage:`Total mileage`,offered_price:`Offered price`,thumbs_up:`Thumbs up`,thumbs_down:`Thumbs down`,completed_slides:`Completed slides`,completed_tasks:`Completed tasks`,verification_photos:`Verification photos`,feedback_comments:`Feedback comments`,booking_partner:`Booking partner`,payment_id:`Payment ID`,payment_amount:`Payment amount`,payment_date:`Payment date`,remote_inspection_pending:`Is RI pending`,remote_inspection_complete:`Is RI complete`,shared_by:`Shared by`,number_of_guests:`Number of guests`,payment_status:`Payment status`,scheduling_interval:`Scheduling Interval`,additional_sp:`Additional SP`,scheduled_date:`Scheduled send date`,time_to_schedule:`Time to schedule send`},remote_inspection:`Real-time Inspection`,address:`Address`,offered_price:`Offered price`,date:`Date`,start_time:`Start time`,end_time:`End time`,actual_start_time:`Actual start date`,actual_end_time:`Actual end date`,scheduled_duration:`Scheduled duration`,actual_duration:`Actual duration`,pending:`Pending`,complete:`Complete`,min:`min`,yeslabel:`Yes `,nolabel:!1,main_checklist:`Main checklist`,reminders:`Reminders`,job:`Job`,booking:`Booking`,property:`Property`,checklist:`Checklist`,skill:`Skill`,service_provider:`Service provider`,name:`Name`,city:`City`,bedrooms:`Bedrooms`,beds:`Beds`,bathrooms:`Bathrooms`,problems:`Problems`,open_problems:`Open problems`,maintenance_cost:`Maintenance cost`,publisher:`Publisher`,type:`Type`,slides:`Slides`,tasks:`Tasks`,photos:`Photos`,urgency:`Urgency`,quantity:`Quantity`,checklist_name:`Checklist name`,skill_name:`Skill name`,job_name:`Job name`,status:`Status`,price:`Price`,payment_status:`Payment status`,comments:`Chat`,thumbs_down:`Thumbs down`,thumbs_up:`Thumbs up`,missing_feedback:`Missing feedback`,photo_completed:`Photo completed`,date_time:`Date time`,channel:`Channel`,check_in:`Check in`,expected_arrival:`Expected arrival`,check_out:`Check out`,guests:`Guests`,category_name:`Category name`,steps:`Steps`,total_jobs:`Total jobs`,acceptance_rate:`Acceptance rate`,response_rate:`Response rate`,response_time:`Response time`,"average_thumbs_up;":`Average thumbs up`,csvFormat:`CSV Format`,pdfFormat:`PDF Format`,excelFormat:`Excel Format`,apply:`Apply`,is:`is`,is_not:`is not`,is_major:`is major`,is_minor:`is minor`,select:`
2Select`,zip:`Zip`,country:`Country`,contains:`contains`,any:`is any`,any_of:`is any of`,all_of:`is all of`,none_of:`is none of`,equals:`equals`,not_equals:`not equals`,less_than:`is less than`,greater_than:`is greater than`,house:`House`,apartment:`Apartment`,filter_created_on:`Filter created on`,create_filter:`Create Filter`,saved_filters:`Saved Filters`,filter_name:`Filter Name`,show_results_that_match_all_conditions:`Show results that match ALL of these conditions`,add:`Add`,show_results_that_match_any_conditions:`And match ANY of these conditions`,active:`Active`,attribute:`Attribute`,title:`Job Requests`,guest:`Guest`,contextual_row_menu:{bulk_actions:`Bulk Actions`,items_selected:`items Selected`,schedule_job:`Schedule Job`,make_payment:`Make Payment`,add_tags:`Add Tags`},column_selection_popup:{customize:`Customize`,restore_to_default:`Restore to default`,apply:`Apply`},global_actions:{export:`Export`,export_csv:`CSV Format`,export_pdf:`PDF Format`,export_excel:`Excel Format`,email:`Email`,print:`Print`},static_filter:{nextweek:`Next Week`,custom:`Custom`,all:`All`},detail_pane:{untitled_job:`Untitled Job`},column_list:{day_and_date:`Day & Date`,job_title:`Job Title`,start_time:`Start Time`,end_time:`End Time`,offered_price:`Offered Price`,job_type:`Job Type`,property:`Property`,status:`Status`,service_provider:`Service Provider`,checklist_title:`Checklist Title`}
2,global_actions_messages:{export_inProgress:`Export in progress`,export_completed:`Export completed. Downloading....`,export_polling_timeout:`Export is taking time. Check your inbox is sometime`},custom_filter:{clear_all:`Clear All`,edit:`Edit`,all_conditions_match_title:`Show jobs that match ALL of these conditions`,add:`Add`,any_conditions_match_title:`And match ANY of these conditions`,filter_name:`Filter Name`,visibility:`Visibility`,save_and_apply:`Save and Apply`,save:`Save`,cancel:`Cancel`,select_options:`Select Options`,create_filter:`Create Filter`,saved_filter:`Saved Filter`,apply:`Apply`},table_pagination:{rows_per_page:`Rows per page`},page_actions:{create_job:`Create Job`},choose_date_range:`Choose date range`,continue:`Continue`,turnover:`Turnover`,concierge:`Concierge`,maintenance:`Maintenance`,inspection:`Inspection`,other:`Other`,partner:`Partner`,canceled:`Canceled`,job_title:`Job Title`},jobs:{error_load:`Unable to load jobs. Please try again.`,jobs:`Jobs`,description:`Track and manage all job requests sent to your service providers`,create_job:`Create job`,view_list:`List`,view_map:`Map`,map_empty:`No jobs found`,map_view_details:`View details`,map_load_error:`Unable to load map. Please try again.`,map_recenter:`Fit all`,map_search_area:`Search this area`,map_showing_jobs:`Showing {{count}} jobs`,map_showing_jobs_filtered:`Showing {{visible}} of {{total}} jobs`,map_legend:`Legend`,push_comment_title:`New comment!`,push_comment_body:`You have a new comment on a job {{jobId}}. Click to view.`,push_verification_photo_title:`New verification photo!`,push_verification_photo_body:`You have a new verification photo on a job {{jobId}}. Click to view.`},detailed_view:{job_request:`Job Request`,date:`Date`,time:`Time`,checklist:`Checklist`,price:`Price`,service_provider:`Service Provider`,skills:`Skills`,payment_details:`Payment Details`,id:`Id`,status:`Status`,amount:`Amount`,have_questions_about_payment:`Have any questions about the payment?`,contact_us:`Contact us`,comments:`Chat`,message:`Me
2ssage`,write_here:`Write here`,send:`Send`,upload:`Upload`,january:`January`,february:`February`,march:`March`,april:`April`,may:`May`,june:`June`,july:`July`,august:`August`,september:`September`,october:`October`,november:`November`,december:`December`,sunday:`Sunday`,monday:`Monday`,tuesday:`Tuesday`,wednesday:`Wednesday`,thursday:`Thursday`,friday:`Friday`,saturday:`Saturday`,open_issues:`Open issues`,problems:`Problems`,fixed_in_real_time:`Fixed in real time`,performance:`Performance`,start_time:`Start time`,finish_time:`Finish time`,photos_completed:`Photos completed`,tasks_completed:`Tasks completed`,comments_viewed:`Comments viewed`,thumbs_up:`Thumbs up`,thumbs_down:`Thumbs down`,missing_feedback:`Missing feedback`,final_payout:`Final Payout`,base_price:`Base price`,accumulated_bonus:`Accumulated bonus`,pay:`Pay`,feedback:`Feedback`,assign:`Assign`,ignore:`Ignore`,checklist_completion:`Checklist Completion`,to_inspect:`To-Inspect`,ai_confidence_tooltip:`AI completion score`,previous_feedback:`Previous feedback`,confirm_all_ai:`Accept & Submit`,empty:`Empty`,select_reason:`Select Reason`,cannot_be_verified_with_photo:`This task cannot be verified with a photo`,photo_resolution_too_low:`The photo resolution is too low. Please try again`,verification_successful:`Verification successful`,photo_missing:`Photo missing`,report_a_problem:`Report a problem`,job_summary:`Summary`,job_results:`Results`,activity_log:`Activity Log`,job_details:`Job details`,booking_details:`Booking details`,property_details:`Property details`,date_time:`Date & Time`,address:`Address`,job_status:`Job Status`,description:`Description`,no_data_is_available:`No data is available`,general_details:`General details`,channel:`Channel`,date_booked:`Date booked`,canceled_date:`Canceled date`,check_in_out:`Check in / Check out`,property_time:`Property time`,check_in:`Check in`,expected_arrival:`Expected Arrival`,check_out:`Check out`,check_out_time:`Check out time`,your_time:`Your time`,guest_information:`Guest information`,number_of_guests:`Number of Guests`,property_attributes:`Property attributes`,type:`Type`,bedrooms:`Bedrooms`,beds:`Beds`,bathrooms:`Bathrooms`,job_history:`Job history`,last_job_per_type:`Last job per type`,job_id:`Job ID`,job_start_date:`Job Start Date`,open_problems:`Open problems`,reopened_at:`Reopened at`,problem_title:`Problem Title`,problem_description:`Problem Description`,pending:`Pending`,finished:`Finished`,profile_information:`Profile information`,joined_on:`Joined on`,about:`About`,performance_results:`Performance Results`,total_jobs:`Total Jobs`,acceptance_rate:`Acceptance rate`,response_rate:`Response rate`,response_time:`Response time`,total_earned_this_year:`Total earned (this year)`,average_thumbs_up:`Average Thumbs Up`,badges:`Badges`,serviced_properties:`Serviced Properties`,property_title:`Property title`,completed_jobs:`Completed jobs`,service_provider_details:`Service provider details`,jobs:`Jobs`,payments:`Payments`,job_type:`Job Type`,job_finished_date:`Job Finished Date`,offered_price:`Offered Price`,performance_price:`Performance Price`,payment_status:`Payment Status`,payment_date:`Payment Date`,payment_amount:`Payment Amount`,turnover:`Turnover`,inspection:`Inspection`,accepted:`Accepted`,upcoming_jobs:`Upcoming Jobs`,open_payments:`Open Payments`,payment_history:`Payment History`,checklists:`Checklists`,connections:`Connections`,reminders:`Reminders`,problem_reports:`Problem Reports`,summary:`Summary`,added_on:`Added on`,serviced_by_last_30_days:`Serviced by last 30 days`,tags:`Tags`,attributes:`Attributes`,access:`Access`,garbage:`Garbage`,parking:`Parking`,wifi:`Wifi`,important_information:`Important information`,list:`List`,name:`Name`,new_checklist:`New checklist`,connected_to:`Connected to`,ical:`iCal`,amazon_echo:`Amazon Echo`,new_reminder:`New reminder`,upcoming:`Upcoming`,history:`History`,open:`Open`,loading_comments:`Loading comments`,job_still_not_ended:`Job still not ended`,job_still_not_accepted:`Job still not accepted`,accepted_on:`Accepted on {{date}}`,of:`of`,not_possible_to_publish_comment:`Sorry, it was not possible to publish the comment. Please try again later`,verify:`Verify`,take_photo:`Take photo`,comment_sent:`Comment sent`,not_possible_to_set_feedback:`Sorry, it was not possible to submit the feedback. Please try again later`,loading_feedbacks:`Loading feedbacks`,no_feedback_to_show:`No feedback to show`,photo_not_yet_taken:`Photo not yet taken`,photo_not_required:`Verification photo not required.`,no_slides_to_show_with_
2selected_filter:`There are no slides to show with the selected filter.`,not_possible_to_fetch_photo_feedback_data:`Sorry, it was not possible to fetch the feedback of photos.`,not_possible_to_delete_comment:`Sorry, it was not possible to delete the comment.`,select_and_create_problem_job:`Please select the problem and click the button 'Create Job'`,loading:`Loading`,edit:`Edit`,delete:`Delete`,cancel_editing:`Cancel editing`,comment:`Comment`,item_missing:`Item missing`,deep_clean_needed:`Deep clean needed`,stage_room_as_per_reference_photo:`Stage room as per reference photo`,please_check_lights:`Please check lights`,other:`Other`,partial_photo:`Retake â Partial photo/Incorrect angle`,photo_too_blurry:`Retake â Too dark/Blurry`,retake_other:`Retake â Other`,submit:`Submit`},upload:{image_size_limit_error:`Image size should be greater than {{minSize}}KB or less than {{maxSize}}MB`,image_upload_failed:`Image upload failed.`},adaptor:{account_already_connected:`The {{partner}} account you are trying to connect is already connected to another Properly Account.`,account_unavailable_reconnect:`The {{partner}} account you are trying to reconnect is unavailable at Properly`,different_account_reconnect:`You are trying to reconnect with a different account, kindly reconnect with the same {{partner}} account`},skills:{library:`Skills Library`,library_description:`Browse and use pre-built skill checklists to train and certify your team`,requirements:`Required Skills`,choose_requirements:`Choose Required Skills`,search:`Search Skills`,steps:`Steps`,no_skill:`No Skill`,skill_description:`Skill Description`,skill:`Skill`,skill_info:`Skill Checklists you choose will be required before starting the Job`,step:`Step`,skills:`Skills`,skill_s:`Skills`,no_access_header:`Skills are not supported by your current plan.`,no_access_description:`You need to upgrade your subscription plan to regain access to the Skills Library.`,upgrade_plan:`Upgrade my plan`},package:{signup:{error:{isrequired:`Is required`,min_8_characters:`Must be 8 characters or more`,must_contain_one_uppercase_character:`Must contain at least one uppercase character`,must_contain_one_lowercase_character:`Must contain at least one lowercase character`,must_contain_one_numeral:`Must contain at least one numeral`,must_contain_one_special_character:`Must contain at least one special character`,must_only_contain_ascii_characters:`Must contain only ASCII characters`,email_registered:`This email address belongs to an existing Properly account.`}}},retail_remote_inspection:{scheduled:`Real-time Inspection Scheduled!`,scheduled_description:`Great! Real-time Inspection has been scheduled for this job. We'll save you time and ensure a high-quality turnover so you don't have to.`,pay_and_request:`Pay and Request Inspection`,pay_and_request_skip:`Skip`,description:`We'll inspect and verify live photos from ongoing jobs against reference photos of how your property should be staged, and provide instant feedback to service providers while they're still on site. This service can only be requested for jobs that start after 24 hours of your request, and include at least 1 verification photo on your checklist. Read and accept our <t_and_c>Ts & Cs</t_and_c>.`,t_and_c:`Ts & Cs`,yes_request:`Yes, I want to request RI for this job`,no_requecdst:`No, I want to inspect this job myself`,request:`Request Real-time Inspection ($5)`,requested:`Real-time Inspection Requested`,subscribed:`Real-time Inspection Subscribed`,request_without_amount:`Request Real-time Inspection`,payment_failed:`Uh oh... Something went wrong`,payment_failed_description:`Real-time Inspection can't be requested because we were unable to process your payment. We will be sending you an email with instructions to add your card details & request the Real-time Inspection for this job.`,compliance_failed:`You are unable to apply for Real-time Inspection for this job. Make sure your job starts after 24 hours of your request, and that your checklist contains at least 1 photo for verification by us.`,too_late:`Whoops! Real-time Inspection cannot be requested for this job. Our Real-time Inspection is only available for jobs that start after 24 hours of your request.`,no_request:`No, I want to inspect this job myself`,pending:`When the Real-time Inspection performed on this turnover job is complete, please click on the button âComplete RIâ to confirm.`,completed:`The RI has been reported as completed`,failed:`Something went wrong! Please try again.`},checklist_library:{description:`Create and manage reusable checklists for your properties and jobs`,edit_title:`Edit title`,add_description:`Add description`,add_cover:`Add cover`,save:`Save`,save_as_template:`Save as template`,send_job:`Send job`,start_dragging_chapter:`Start dragging one or more Chapter in your checklist`,slide:`Slide`,slides:`Slides`,task:`Task`,tasks:`Tasks`,extras:`Extras`,extras_desc:`Drag Extras to your checklist or create a new one`,my_checklist:`My checklist`,add_ons:`Add-ons`,add_ons_desc:`Drag Add-ons to your checklist or create a new one`,extra:`Extra`,unknown:`Unknown`,add_task:`Add task`,replace_photo:`Replace photo`,save_and_close:`Save and close`,next:`Next`,cancel:`Cancel`,title:`Title`,unnamed_checklist:`Unnamed checklist`},autoscheduler:{error_load:`Unable to load auto-scheduling. Please try again.`,no_sp_response:`No Service Provider Response:`,define_actions:`If your job has either been declined by all recipients or`,resend_job_after:`have passed without any re
2cipient accepting the job`,select_time:`Select Time`,select_amount:`Select Amount`,select_duration:`Select Duration`,increase_offer_price:`Increase offered price`,send_me_email:`Send me email notification`,add_available_sp:`Add Available Service Providers:`,include_one_more_sp:`Select Additional service providers`,select_all_sp:`Easily Include All Service Providers with a Single Click.`,select_property:`Select a single property to apply an Autoscheduler`,every_checkin:`Every Check in`,every_checkout:`Every Check out`,before_guest_checkin:`Before guest check in`,before_guest_checkout:`Before guest check out`,after_guest_checkin:`After guest check in`,after_guest_checkout:`After guest check out`,select_time_frame:`Select the Time frame for Completing Your Job`,edited_checkin:`If check-in time / date changes`,edited_checkout:`If check-out time / date changes`,edit_scheduled_job:`Automatically reschedule the job`,canceled_checkin:`If check-in is canceled`,canceled_checkout:`If check-out is canceled`,cancel_scheduled_job:`Automatically cancel the job`,autoscheduler_published:`Autoscheduler Published`,autoscheduler_published_desc:`Your Autoscheduler has been published successfully!`,autoscheduler_published_edit_desc:`Jobs scheduled to send by this Autoscheduler will be automatically updated to reflect the changes you published.`,no_autoschedulers:`You don't have any automatically scheduled jobs yet.`,no_autoschedulers_click:`Click on "Add Autoscheduler" to get started.`,error_no_permission_to_perform_action:`Oops! You don't have permission to perform this action.`,add_schedule:`Add Autoscheduler`,title:`Autoscheduler`,description:`Autoscheduler automates the sending of turnover or other jobs to one or multiple housekeepers or other service providers`,toggle_status:`Do you want to toggle Autoscheduler status?`,toggle_status_desc:`If you deactivate your Autoscheduler, the jobs scheduled through it will not be sent to service providers.`,toggle_status_desc_on:`If you activate your Autoscheduler, it will resume the scheduling and sending of jobs to service providers.`,delete_autoscheduler:`Do you want to delete your Autoscheduler?`,delete_autoscheduler_desc:`If you delete your Autoscheduler, all jobs scheduled to send by it will also be deleted.`,error_delete_autoscheduler:`Error Deleting Autoscheduler! Please try again later.`,error_toggle_status:`Error Toggling Autoscheduler Status! Please try again later.`,success_toggle_status:`Autoscheduler Status Toggled Successfully!`,success_delete_autoscheduler:`Autoscheduler Deleted Successfully!`,before_guest_checkin_hours:`{{hours}} hrs before guest check in`,before_guest_checkout_hours:`{{hours}} hrs before guest check out`,after_guest_checkin_hours:`{{hours}} hrs after guest check in`,after_guest_checkout_hours:`{{hours}} hrs after guest check out`,create_as_owner_invalid_subscription:`The property owner currently has an inactive or invalid subscription, which prevents the creation of an Autoscheduler. For assistance, please contact our support team.`,send_to_additional_sp:`Send the job to additional service providers`,select_primary_sp_warning:`Please select your primary cleaners first to enable selecting of additional service providers`,no_sp_available_warning:`To enable selecting of additional service providers, deselect some primary service providers or invite additional service providers to your contacts`,primary_sp:`Primary Service Providers`,additional_sp:`Additional Service Providers`,select_scheduling_interval_checkin:`Select scheduling interval between sending the job to service provider and start time of the job `,select_scheduling_interval_checkout:`Select scheduling interval between sending the job to service provider and start time of the job `,select_scheduling_interval_checkin_tooltip:`Choose how many days in advance of the guest's check-in day you would like to dispatch the job to service providers. For example in the dropdown option if you select '7 days,' service providers will receive the job 7 days prior to check-in. The job will remain in scheduled to send status until it is dispatched.`,select_scheduling_interval_checkout_tooltip:`Choose how many days in advance the guest's check-out you would like to dispatch the job to service providers. For example in the dropdown option if you select '7 days', service providers will receive the job 7 days prior to check-out. The job will remain in 'scheduled to send' status until it is dispatched.`,select_relative_time_checkin_tooltip:`Select the number of hours before the guest's check-in time when the job should be performed. For example, if the check-in is at 12:00 PM and you select '2 hrs' from the dropdown, the job's start time will be set for 10:00 AM.`,select_relative_time_checkout_tooltip:`Select the number of hours after the guest's check-out time when the job should be performed. For example, if the check-out is at 10:00 AM and you select '2 hrs' from the dropdown, the job's start time will be set for 12:00 PM.`,select_start_time:`Select the start time of the job`,start_before_checkin:`Start job before guests check-in`,start_after_checkout:`Start job after guests check-out`,select_fixed_time_checkin:`Start time on the day of Check-in`,select_fixed_time_checkout:`Start time on the day of Check-out`,select_flexible_start_time_checkin:`Start after on the day of Check-in`,select_flexible_start_time_checkout:`Start after on the day of Check-out`,select_flexible_end_time_checkin:`End before on the day of Check-in`,select_flexible_end_time_checkout:`End before on the day of Check-out`,select_relative_to_checkin:`Relative to Check-in time`,select_relative_to_checkout:`Relative to Check-out time`,on_checkin_day:`On Check-in day`,on_checkout_day:`On Check-out day`,scheduled_jobs:`Jobs scheduled to send `,delete_draft_job_header:`Delete this scheduled job?`,delete_draft_job_description:`Are you sure you want to delete this scheduled job?`,send_job_immediately:`Send Job Now`,schedule_later_modal_desc:`To schedule for a later date, select the date and time below`,send_job_now:`Send Job Now`,schedule_job_later:`Schedule Job Later`,schedule_job_send:`Schedule Job Send`,send_draft_job_error:`There was an error sending the job to the cleaners. Please try again.`,delete_draft_job_error:`There was an error deleting the scheduled job. Please try again.`,delete_draft_job_success:`The scheduled to send job has been deleted successfully.`,send_draft_job_success:`The job has been scheduled to send successfully.`,job_scheduled_at:`Job scheduled at`,toggle_scheduler_status:`Toggle Status`,open_scheduler:`Open`,confirm:`Confirm`,updating:`Updating`,recurring_schedule:`Recurring Schedule`,repeat_every:`Repeat every`,unit_days:`days`,unit_weeks:`weeks`,unit_months:`months`,unit_day:`day`,unit_week:`week`,unit_month:`month`,on_days:`On days`,only_on_optional:`Only on (optional)`,run_every_n_days_hint:`Leave empty to run every {{count}} calendar days`,on_dates:`On dates`,month_end_clamp_hint:`If the selected date doesn't exist in a month (e.g. the 31st in February), the task is scheduled on the last day of that month.`,start_date:`Start date`,start_time:`Start time`,flexible_start_time:`Earliest start time`,flexible_end_time:`Latest end time`,send_job_before:`Send job`,
2n_day:`{{count}} day before`,n_days:`{{count}} days before`,recurrence_every:`Every {{count}} {{unit}}`,recurrence_on:`on {{days}}`,select_days_hint:`Select at least one day to schedule on.`,select_dates_hint:`Select at least one date to schedule on.`,select_start_date_hint:`Pick a start date.`,autoscheduledJob:`Autoscheduled Job`,autoscheduler_deleted:`Autoscheduler no longer available`,autoscheduler_deleted_msg:`This autoscheduler has been deleted and can't be edited anymore.`,dayOfMonthLimitSelected:`You can select a maximum of 10 days in a month for scheduling.`,upcoming_schedule:`Upcoming schedule`,next_occurrences_subtitle:`Next {{count}} occurrences based on your recurrence`,every_interval:`Every {{interval}} {{unit}}`,unit_days_count:`day`,unit_days_count_plural:`days`,unit_weeks_count:`week`,unit_weeks_count_plural:`weeks`,unit_months_count:`month`,unit_months_count_plural:`months`,days_prefix:`Days`,relative_today:`Today`,relative_tomorrow:`Tomorrow`,relative_in_days:`In {{count}} days`,preview_upcoming_schedule:`Preview upcoming schedule`,hide_upcoming_schedule:`Hide upcoming schedule`},activities:{show_active:`Show Active`,show_archive:`Show Archive`,no_records:`No activity record found.`,enter_description:`Enter activity description`,description_placeholder:`Type description`},retry_payments:{failed_payment:`Failed Payment`,retry:`Retry Payments`,processing:`Processing...`,required:`Payment Required`,properties_failed_message:{singular:`{{count}} property has failed payment and requires attention.`,plural:`{{count}} properties have failed payment and require attention.`},property_failed_on:`Failed on {{date}}`,attention_required:`Attention Required :`,banner_message:`One or more property payments have failed. Please retry payment from the <anchor>Subscription Page</anchor>`,inactive_property:`Inactive Property`,subscription_page:`Subscription Page`},jobLifecycle:{job_timeline:`Timeline`,send_event_details:`Sent job to`,view_event_details:`Viewed job details`,edit_event_details:`Edited job`,restart_event_details:`Restarted job`,sendToMore_event_details:`Sent job to additional cleaners:`,accepted_event_details:`Accepted job`,acceptedChanges_event_details:`Accepted job modifications`,decline_event_details:`Declined job`,declineChanges_event_details:`Declined job modifications`,spCanceledJob_event_details:`Canceled job`,hostCanceledJob_event_details:`Host canceled job`,problemReported_event_details:`Reported a problem`,start_event_details:`Started job`,finish_event_details:`Finished job`,event_not_found:`Event not Found`,not_available:`Records Not Available`},recurly_payment:{successfully_payment_updated:`Billing info successfully updated`,three_ds_title:`Card verification`,three_ds_body:`Complete this quick card verification to continue.`,card_not_verified:`We couldn't verify that card, so your payment method was not updated. Please try a different card.`,subscription_not_ready:`Your subscription is still being prepared. Please try again shortly or contact support if this continues.`,submit:`Submit`,submitting:`Submitting...`},recurring_reminder:{n_checklist:`{{count}} checklist`,create_title:`New Recurring Reminder`,edit_title:`Edit Recurring Reminder`,name:`Name`,name_placeholder:`e.g. Change Remote Batteries`,checklists:`Checklists`,no_checklists:`No checklists available for this property.`,n_checklists:`{{count}} checklists`,checklists_selected:`{{count}} selected`,remind_me:`Remind me (days before due date)`,section_details:`Details`,not_set:`Not set`,save_error:`Something went wrong while saving. Please try again.`,history:`History`,no_history:`No past cycles yet.`,history_action_attach:`Attached to a job`,history_action_send:`Sent as a standalone job`,history_action_ignore:`Ignored`,view_job:`View job`,ignore_confirm_title:`Ignore this reminder?`,ignore_confirm_info:`This cycle will be marked as handled. The next reminder will surface on its normal schedule.`},jobpicker:{load_error:`Couldn't load jobs. Please try again.`,retry:`Retry`,title:`Choose a Job`,subtitle:`Select a job on this property to attach this reminder`,attach:`Attach`,no_eligible_jobs:`No eligible jobs found for this property.`,attach_error:`Couldn't attach to that job. Please try again.`}};_ee();var sa={en:{translation:oa}};rt.use(mt).use(E).use(Qt(e=>{if(e===`en`)return;let t={de:()=>qt(()=>import(`./de-a2MGalWU.js`),[]),es:()=>qt(()=>import(`./es-CSO33zJi.js`),[]),fr:()=>qt(()=>import(`./fr-oQbN7hri.js`),[]),it:()=>qt(()=>import(`./it-iy2NF5Go.js`),[]),ko:()=>qt(()=>import(`./ko-B3BMuJCH.js`),[]),pt:()=>qt(()=>import(`./pt-B8ujmrF2.js`),[])}[e];if(t)return t().then(e=>e.default)})).init({resources:sa,partialBundledLanguages:!0,fallbackLng:`en`,supportedLngs:ea,debug:!1,interpolation:{escapeValue:!1},keySeparator:`.`,nsSeparator:!1,detection:{order:[`querystring`,`navigator`,`localStorage`,`htmlTag`],lookupQuerystring:`language`,lookupLocalStorage:`i18nextLng`,caches:[`localStorage`],convertDetectedLanguage:e=>e.split(`-`)[0].toLowerCase()},react:{useSuspense:!1,bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`]}});var ca=rt,la=[`pricing.cohost_includes_all_ri`,`pricing.cohost_guest_support`,`pricing.cohost_revenue_management`,`pricing.cohost_everything_included`,`pricing.cohost_net_cost`,`pricing.cohost_dynamic_pricing`,`pricing.cohost_damage_claims`],ua=[`pricing.ri_includes_all_pro`,`pricing.ri_ai_photo_analysis`,`pricing.ri_expert_reviewers`,`pricing.ri_damage_documentation`,`pricing.ri_pre_checkin_alerts`,`pricing.ri_instant_report`],da=()=>({highlights:[`pricing.unlimited_photos`,`pricing.unlimited_checklists`,`pricing.unlimited_service_pros`,`pricing.language_support`,`pricing.templates`,`pricing.platforms`,`pricing.notifications`,`pricing.syncing`,`pricing.online_support`,`pricing.automated_reminder`,`pricing.share_listings`,`pricing.share_listings_owners`,`pricing.all_pro_features`,`pricing.skills_library_30_day_trial`,`pricing.unlimited_skills_library`,`pricing.syncingpro`,...la,...ua],cohostHighlights:la,riHighlights:ua,highlightsCommon:[`pricing.unlimited_photos`,`pricing.unlimited_checklists`,`pricing.unlimited_service_pros`,`pricing.language_support`,`pricing.templates`,`pricing.platforms`,`pricing.notifications`,`pricing.syncing`],notes:[`pricing.note.onboarding`,`pricing.note.self_service`,`pricing.note.usd`]}),fa={en:{home_cleaning:`Home Cleaning`,carpet_cleaning:`Carpet Cleaning`,key_exchange:`Key Exchange`,meet_greet:`Meet & Greet`,concierge:`Concierge`,gardening:`Gardening`,maintenance:`Maintenance`,pest_control:`Pest Control`,pool_service:`Pool Service`},it:{home_cleaning:`Pulizia della casa`,carpet_cleaning:`Pulizia del tappeto`,key_exchange:`Consegna delle chiavi`,meet_greet:`Meet & Greet`,concierge:`Concierge`,gardening:`Giardinaggio`,maintenance:`Manutenzione`,pest_control:`Disinfestazione`,pool_service:`Servizio piscina`},de:{home_cleaning:`Hausreinigung`,carpet_cleaning:`Teppichreinigung`,key_exchange:`Schlüsselübergabe`,meet_greet:`BegrüÃung`,concierge:`Concierge`,gardening:`Gärtner`,maintenance:`Hausmeister`,pest_control:`
2Kammerjäger`,pool_service:`Pool-Service`},pt:{home_cleaning:`Limpeza residencial`,carpet_cleaning:`Limpeza de tapete`,key_exchange:`Entrega de chaves`,meet_greet:`Recepção`,concierge:`Concierge`,gardening:`Jardinagem`,maintenance:`Manutenção`,pest_control:`Controle de pragas`,pool_service:`Serviço de piscina`}},pa=e=>e?(fa[aa()]||fa.en)[e]||e.replace(/_/g,` `).split(` `).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `):``,U=ca.t.bind(ca);function ma(e){return Mn===void 0?R.default.info(`Sentry is not defined via import`):Gi().then(({_build_:t,_versions_:n,[e.toUpperCase()]:{SENTRY_CONFIG:r,SENTRY_FORCE_IN_DEVELOPMENT:i}})=>{let a=n.find(({name:t})=>t===`@properly/${e}`)||{};R.default.info(`Enabling sentry with config`,r,t.buildGitHash,t.buildGitCommit,a.version);let o=i&&!1,s;s=i?/(https?:\/\/)?((cdn|www)\.)?(localhost:3000|localhost:3001|localhost:3002|((app|app-staging)\.)?getproperly\.com)/:/(https?:\/\/)?((cdn|www)\.)?((app|app-staging)\.)?getproperly\.com/,cr({dsn:r,beforeSend(e,t){return t.originalException===`Timeout`?null:e},debug:o,release:a.version,allowUrls:[s],ignoreErrors:ga(),denyUrls:ha(i),tracesSampleRate:.2,tracePropagationTargets:[`app.getproperly.com`],integrations:[jr(),Aee()],replaysSessionSampleRate:.01,replaysOnErrorSampleRate:1}),xn(`git_commit`,t.buildGitHash),xn(`versionTag`,a.version),xn(`language`,aa());let c=R.default.methodFactory;return R.default.methodFactory=(e,t,n)=>{let r=c(e,t,n);return(...t)=>{if(r.apply(null,Array.prototype.slice.call(arguments,0)),e===`error`){let e=t[0]?t[0]:`zero`;t[0]&&t[1]&&t[1].stack&&(e=`${t[0]} - ${t[1].stack}`),Lr(e)}}},i&&Lr(`Sentry forced in development mode via SENTRY_FORCE_IN_DEVELOPMENT`),!0}).catch(e=>{throw R.default.error(`Error initialising Sentry`,e),e}),!0}function ha(e){return[/js\.intercomcdn\.com/gi,/\/frame*\.[\d]*\.js/gm,/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i].concat(e?[]:[/localhost:3000\//i,/localhost:3001\//i,/localhost:3002\//i])}function ga(){return[`top.GLOBALS`,`originalCreateNotification`,`canvas.contentDocument`,`MyApp_RemoveAllHighlights`,`http://tt.epicplay.com`,`Can't find variable: ZiteReader`,`jigsaw is not defined`,`ComboSearch is not defined`,`http://loading.retry.widdit.com/`,`atomicFindClose`,`fb_xd_fragment`,`bmi_SafeAddOnload`,`EBCallBackMessageReceived`,`conduitPage`]}var _a=`CloudCodeError`,va=`EmailNotUnique`,ya=`DuplicateEmailUserFound`,ba=`DuplicatePhoneUserFound`,xa=`PhoneNumberNotUnique`,Sa=`FailedReCaptchaVerification`,Ca=`InvalidEmailAddress`,wa=`InvalidPhone`,Ta=`UsernameNotReadable`,Ea=`PasswordMissing`,Da=`CouldNotLogIn`,Oa=`UserNotFoundEmail`,ka=`DisabledByOwner`,Aa=`InvalidSession`,ja=`GoogleNotConfigured`,Ma=`FATAL_ERROR`,Na=`SERVICE_FAILED`,Pa=`NOT_IMPLEMENTED`,Fa=`ACCOUNT_ALREADY_CONNECTED`,Ia=`ACCOUNT_UNAVAILABLE_RECONNECT`,La=`DIFFERENT_ACCOUNT_RECONNECT`,Ra=`INVALID_PLAN`,za=`CanNotConnectPartnerUser`,Ba={Booking:1,Changed:2,Canceled:3,1:`Booking`,2:`Changed`,3:`Canceled`},Va={1:`BookingStart`,2:`BookingEnd`,3:`ReminderJobRequest`,4:`JobRequest`},W={StateCreated:1,StateAccepted:2,StateCancelled:3,StateDeclined:4,StateStarted:5,StatePaused:6,StateFinished:7,StateCleanerCancelled:8,StatePendingChanges:9,StateViewed:10,StateScheduled:11,1:`StateCreated`,2:`StateAccepted`,3:`StateCancelled`,4:`StateDeclined`,5:`StateStarted`,6:`StatePaused`,7:`StateFinished`,8:`StateCleanerCancelled`,9:`StatePendingChanges`,10:`StateViewed`,11:`StateScheduled`},Ha={send:`send`,view:`view`,edit:`edit`,restart:`restart`,sendToMore:`send_to_more_cleaners`,accepted:`accept`,acceptedChanges:`accept_changes`,decline:`decline`,declineChanges:`decline_changes`,spCanceledJob:`job_sp_cancel`,hostCanceledJob:`job_host_cancel`,problemReported:`problem`,start:`start`,finish:`finish`},Ua={CleanerRequestStateSent:1,CleanerRequestStateDeclined:2,CleanerRequestStateAccepted:3,CleanerRequestStateAcceptedByOtherUser:4,CleanerRequestStateCancelled:5,Pending:`pending`,Viewed:`viewed`,Declined:`declined`,Accepted:`accepted`,AcceptedByOtherCleaner:`acceptedByOtherCleaner`,PendingChanges:`pendingChanges`,DeclinedChanges:`declinedChanges`,InProgress:`inProgress`,CanceledByCleaner:`canceledByCleaner`,CanceledByHost:`canceledByHost`,Finished:`finished`},Wa={PROGRESS_STATUS:{COMPLETED:`COMPLETED`,IN_PROGRESS:`IN_PROGRESS`,REVIEW_REQUIRED:`REVIEW_REQUIRED`,RECOMPLETE_REQUIRED:`RECOMPLETE_REQUIRED`},DEPENDENCY_STATUS:{REQUIRED:`REQUIRED`,OPTIONAL:`OPTIONAL`},SKILL_STATUS_CONST:{PENDING:1,IN_REVIEW:2,PUBLISHED:3,PUBLISHED_HIDDEN:4,UNPUBLISHED:5,ARCHIVED:6,READY_TO_PUBLISH:7},ROW_ACTION_OPTIONS:{PUBLISH:`PUBLISH`,PUBLISH_AS_HIDDEN:`PUBLISH_AS_HIDDEN`,UNPUBLISH:`UNPUBLISH`,ARCHIVE:`ARCHIVE`,EDIT:`EDIT`,PUSH_FOR_REVIEW:`PUSH_FOR_REVIEW`,APPROVE:`APPROVE`,DISAPPROVE:`DISAPPROVE`,GO_TO_EDIT:`GO_TO_EDIT`},TYPE:{COURSE:`course`,MODULE:`module`}},Ga={OPEN:`OPEN`,IN_PROGRESS:`IN_PROGRESS`,RESOLVED:`RESOLVED`,IGNORED:`IGNORED`},Ka={MILEAGE:`MILEAGE`,COST:`COST`,DURATION:`DURATION`},qa=[`airbnb`],Ja=[`hostfully`,`bookingSync`,`hostaway`,`escapia`,`v12`,`guesty`,`rentalsUnited`,`newbook`,`streamline`,`myvr`,`supercontrol`,`smoobu`],Ya={AIRBNB:`airbnb`,HOSTFULLY:`hostfully`,BOOKINGSYNC:`bookingSync`,HOSTAWAY:`hostaway`,ESCAPIA:`escapia`,V12:`v12`,GUESTY:`guesty`,RENTALSUNITED:`rentalsUnited`,NEWBOOK:`newbook`,STREAMLINE:`streamline`,MYVR:`myvr`,SUPERCONTROL:`supercontrol`,SMOOBU:`smoobu`},Xa={ACTIVE:`active`,INACTIVE:`inactive`,CHECKIN:`checkIn`,CHECKOUT:`checkOut`,RECURRING:`recurring`,TOGGLE_AS_STATUS:`toggleASStatus`,UPDATE_AS:`updateAutoscheduler`,DELETE_AS:`deleteAutoscheduler`},Za={SEND_DRAFT_JOB:`sendDraftJob`,DELETE_DRAFT_JOB:`deleteDraftJob`,EDIT_DRAFT_JOB:`editDraftJob`},Qa={REFRESH_ALL:`refreshAll`,REFRESH_LV:`refreshLV`},$a={FEATURE_FLAG_REMOTE_INSPECTION:`featureFlagRemoteInspection`,FEATURE_FLAG_JOB_FORWARD
2ING:`featureFlagJobForwarding`,FEATURE_FLAG_JOBS_MAP_VIEW:`featureFlagJobsMapView`},nte=`direct`,rte=[{referrer:`google`,medium:`organic`,source:`google`,campaign:``},{referrer:`bing`,medium:`organic`,source:`bing`,campaign:``},{referrer:`learnairbnb`,medium:`referral`,source:`blog`,campaign:`learnAirbnb`},{referrer:`capterra`,medium:`referral`,source:`reviews`,campaign:`Capterra`},{referrer:`hoteltechreport`,medium:`referral`,source:`reviews`,campaign:`HotelTechReport`},{referrer:`cpc`,medium:`cpc`,source:`google`,campaign:`adwords`},{referrer:`bookingsync`,medium:`channels`,source:`bookingsync`,campaign:`bookingsync`},{referrer:`v12`,medium:`channels`,source:`v12`,campaign:`v12`},{referrer:`guesty`,medium:`channels`,source:`guesty`,campaign:`guesty`},{referrer:`orbirental`,medium:`channels`,source:`orbirental`,campaign:`orbirental`},{referrer:`escapia`,medium:`channels`,source:`escapia`,campaign:`escapia`},{referrer:`myvr`,medium:`channels`,source:`myvr`,campaign:`myvr`},{referrer:`rentalsunited`,medium:`channels`,source:`rentals_united`,campaign:`rentals_united`},{referrer:`chatgpt`,medium:`ai`,source:`chatgpt`,campaign:`chatgpt`},{referrer:`chat.openai`,medium:`ai`,source:`chatgpt`,campaign:`chatgpt`},{referrer:`openai`,medium:`ai`,source:`openai`,campaign:`openai`},{referrer:`claude.ai`,medium:`ai`,source:`claude`,campaign:`claude`},{referrer:`perplexity`,medium:`ai`,source:`perplexity`,campaign:`perplexity`},{referrer:`gemini.google`,medium:`ai`,source:`gemini`,campaign:`gemini`},{referrer:`copilot.microsoft`,medium:`ai`,source:`copilot`,campaign:`copilot`},{referrer:`hostaway`,medium:`channels`,source:`hostaway`,campaign:`marketplace`},{referrer:`lodgify`,medium:`channels`,source:`lodgify`,campaign:`lodgify`},{referrer:`hospitable`,medium:`channels`,source:`hospitable`,campaign:`hospitable`},{referrer:`tokeet`,medium:`channels`,source:`tokeet`,campaign:`tokeet`},{referrer:`ownerrez`,medium:`channels`,source:`ownerrez`,campaign:`ownerrez`},{referrer:`beds24`,medium:`channels`,source:`beds24`,campaign:`beds24`},{referrer:`g2.com`,medium:`referral`,source:`reviews`,campaign:`G2`},{referrer:`softwareadvice`,medium:`referral`,source:`reviews`,campaign:`SoftwareAdvice`},{referrer:`getapp`,medium:`referral`,source:`reviews`,campaign:`GetApp`},{referrer:`trustpilot`,medium:`referral`,source:`reviews`,campaign:`Trustpilot`},{referrer:`facebook`,medium:`social`,source:`facebook`,campaign:``},{referrer:`instagram`,medium:`social`,source:`instagram`,campaign:``},{referrer:`linkedin`,medium:`social`,source:`linkedin`,campaign:``},{referrer:`t.co`,medium:`social`,source:`twitter`,campaign:``},{referrer:`x.com`,medium:`social`,source:`twitter`,campaign:``},{referrer:`youtube`,medium:`social`,source:`youtube`,campaign:``},{referrer:`tiktok`,medium:`social`,source:`tiktok`,campaign:``},{referrer:`reddit`,medium:`social`,source:`reddit`,campaign:``},{referrer:`getproperly.com/blog/`,medium:`organic`,source:`seo`,campaign:`blog`},{referrer:`getproperly.com/partners/`,medium:`organic`,source:`seo`,campaign:`partners`},{referrer:`help.getproperly.com`,medium:`organic`,source:`seo`,campaign:`helpAndLearning`}],eo={paymentsEmail:`[email protected]`,supportEmail:`[email protected]`,marketplaceEmail:`[email protected]`,complaintsEmail:`[email protected]`},to={UNPROCESSED:`unprocessed`,SUBMITTED:`submitted`,PENDING:`pending`,PROCESSING:`processing`,SUCCEEDED:`succeeded`,FAILED:`failed`,CANCELED:`canceled`,UNKNOWN:`unknown`},ite=`do_job`,no={turnover:`Turnover`,concierge:`Concierge`,maintenance:`Maintenance`,inspection:`Inspection`,other:`Other`},ate=[`airbnb`,`myvr`,`bookingSync`,`guesty`,`escapia`,`v12`,`hostfully`,`smoobu`],ro={RECAPTCHA_VERSION_V2:`V2`,RECAPTCHA_VERSION_V3:`V3`},io=[Ya.AIRBNB],ao={passwordLength:8,uppercase:1,lowercase:1,number:1,special:1,ascii:1},oo={ADVANCED_2023:`advanced_2023`,PLATFORM_STANDARD:`platform_standard`,PLATFORM_PRO:`platform_pro`,COHOST:`cohost`,REMOTE_INSPECTION:`ri`,STAFF:`staff`,ADVANCED_LEGACY:`advanced_legacy`,CLEANING_COMPANY:`cleaning_company`},so={[oo.ADVANCED_2023]:[{from:1,to:3,perPropertyPrice:12},{from:4,to:10,perPropertyPrice:7},{from:11,to:30,perPropertyPrice:5},{from:31,perPropertyPrice:3}],[oo.PLATFORM_STANDARD]:[{from:1,to:3,perPropertyPrice:12.99},{from:4,to:10,perPropertyPrice:8.99},{from:11,to:30,perPropertyPrice:5.99},{from:31,perPropertyPrice:3.99}],[oo.PLATFORM_PRO]:[{from:1,to:3,perPropertyPrice:14.99},{from:4,to:10,perPropertyPrice:10.49},{from:11,to:30,perPropertyPrice:7.49},{from:31,perPropertyPrice:4.49}
2]},co={STATUS_TRIAL:`trial`,STATUS_ACTIVE:`active`,STATUS_INACTIVE:`inactive`,STATUS_EXPIRED:`expired`,STATUS_FAILED:`failed`,STATUS_CANCELED:`canceled`},lo=`REGULAR`,uo=`FLEXIBLE`,G=e(Pe());function ote(e={}){return{...e}}function fo(e){return(0,G.default)(e,[`permissions`,`defaultRole`])}function po(e){return(0,G.default)(e,[`permissions`,`personalRole`])}function ste(e,t){return t===fo(e)}function cte(e,t){return t===po(e)}function mo(e){return!!e?.isStandaloneUser}function lte(e,t){return(0,G.default)(e?.teams||{},[t],{})}function ute(e,t,n,r,i,a,o,s,c){return{enabled:e,internal:t,properties:n,rights:r&&typeof r.doJob!=`boolean`?{...r,doJob:r.sendJobs}:r,userData:i,userId:a,teamId:o,createdAt:s,partnerType:c}}function ho(e){switch(e){case 1:return`setupsupport`;case 2:return`owneraccess`;case 3:return`spaccess`;default:return}}function dte(e){switch(e){case`setupsupport`:return 1;case`owneraccess`:return 2;case`spaccess`:return 3;default:return}}function go(e){return e?.internal?`internal`:`external`}function fte(e){return ho(e?.partnerType)}function pte(e){return(0,G.default)(e,[`userData`,`fullName`])}function _o(e){return(0,G.default)(e,[`userData`,`email`])}function mte(e){return(0,G.default)(e,[`userData`,`pictureUrl`])}function hte(e){return!(0,G.default)(e,[`userData`,`signedUp`])}function vo(e){return!!(0,G.default)(e,[`rights`,`allRights`])}function yo(e){return!!(0,G.default)(e,[`rights`,`seeAllProperties`])}function gte(e){return e?.properties?.length||0}
2var _te=e(Yee()),bo=e(Er()),vte=e(Be()),xo=e(ge()),So=e(Bt());fee();var K=wt();function Co({data:e,handler:t,ctx:n}){return({key:r,index:i,style:a,parent:o}={})=>(0,K.jsx)(t,{row:e[i],style:a,ctx:n,index:i,parent:o},r)}function wo(e){return e?.title?e.title:e?.address?.AddressArray&&Array.isArray(e.address.AddressArray)?e.address.AddressArray[0]:typeof e?.getSearchString==`function`?e.getSearchString():``}function To(e){return typeof e?.getTimeZone==`function`?e.getTimeZone():e?.timeZone||`America/Los_Angeles`}function yte(e){return typeof e?.getLong==`function`?e.getLong():e?.location?.longitude}function bte(e){return typeof e?.getLat==`function`?e.getLat():e?.location?.latitude}function Eo(e){if(typeof e?.getStatusString==`function`)return e.getStatusString();let t=e?.status;if(e?.statusString===`viewed`)return`jobstatus.seen`;switch(t){case W.StateCreated:return`jobstatus.pending`;case W.StatePendingChanges:return`jobstatus.pendingChanges`;case W.StateAccepted:return`jobstatus.accepted`;case W.StateCancelled:case W.StateCleanerCancelled:return`jobstatus.cancelled`;case W.StateDeclined:return`jobstatus.declined`;case W.StateStarted:case W.StatePaused:return`jobstatus.started`;case W.StateFinished:return`jobstatus.completed`;case W.StateScheduled:return`jobstatus.scheduled`;default:return}}function Do(e){if(typeof e?.getStatusColor==`function`)return e.getStatusColor();switch(Eo(e)){case`jobstatus.accepted`:return`light-blue`;
2case`jobstatus.started`:return`pink`;case`jobstatus.delayed`:return`orange`;case`jobstatus.cancelled`:case`jobstatus.declined`:return`red`;case`jobstatus.completed`:return`green`;default:return}}function Oo(e){if(typeof e?.getStatusStringAdvanced==`function`)return e.getStatusStringAdvanced();let t=Eo(e);return t===`jobstatus.cancelled`?e?.status===W.StateCleanerCancelled?`jobstatus.cancelledbycleaner`:e?.status===W.StateCancelled?`jobstatus.cancelledbyhost`:`jobstatus.cancelled`:t}function ko(e){return typeof e?.getTimeZone==`function`?e.getTimeZone():e?.propertyData?.timeZone||`America/Los_Angeles`}function Ao(e){if(typeof e?.getDateDurationInMin==`function`)return e.getDateDurationInMin();let t=new Date(e?.scheduledStartTime);return(new Date(e?.scheduledEndTime)-t)/1e3/60}function jo(e){if(typeof e?.getStartTimeString==`function`)return e.getStartTimeString();let t=ko(e);return(0,z.default)(e?.scheduledStartTime).tz(t).format(`LT`)}function Mo(e){if(typeof e?.getEndTimeString==`function`)return e.getEndTimeString();let t=ko(e);return(0,z.default)(e?.scheduledEndTime||(0,z.default)(e?.scheduledStartTime).clone().add(e?.duration,`minutes`)).tz(t).format(`LT`)}function No(e){if(typeof e?.getDateString==`function`)return e.getDateString();let t=ko(e);return(0,z.default)(e?.scheduledStartTime).tz(t).format(`ll`)}function Po(e){if(typeof e?.getFlexibleStartDateString==`function`)return e.getFlexibleStartDateString();let t=ko(e);return(0,z.default)(e?.scheduledStartTime).tz(t).format(`ll`)}function Fo(e){if(typeof e?.getFlexibleEndDateString==`function`)return e.getFlexibleEndDateString();let t=ko(e);return(0,z.default)(e?.scheduledEndTime).tz(t).format(`ll`)}function Io(e){return typeof e?.isFlexibleStartTime==`function`?e.isFlexibleStartTime():e?.jobStartTimeType===`FLEXIBLE`}function xte(e,t){return(0,G.default)(e?.teams||{},[t],{})}function Lo(e,t){return(0,So.default)([...e],e=>(0,vte.default)(wo(t?t(e):e)))}function Ste(e,t,n){let r={totalTaskCount:n,taskDoneCount:0,totalPics:0,picsDone:0};return e.length>0&&Object.values(e.filter(e=>!!e)[0]).forEach(e=>{e.isVerificationRequired&&(r.totalPics+=1,r.totalTaskCount+=1),e.isVerificationComplete&&(r.picsDone+=1),r.taskDoneCount=t||0}),r}function Ro(e,t,n){try{if(n===U(`jobdetails.declined`)||n===U(`jobdetails.canceled`))return`cancelled`;let r=e.getStatusString(t);return r===`jobstatus.delayed`?`delayed`:r===`jobstatus.seen`||r===`jobstatus.pending`||r===`jobstatus.pendingChanges`?`pending`:r===`jobstatus.accepted`?`accepted`:r===`jobstatus.cancelled`||r===`jobstatus.declined`||r===`jobstatus.accepted_by_other_user`?`cancelled`:r===`jobstatus.started`?`progress`:r===`jobstatus.completed`?`finished`:`accepted`}catch(e){return R.default.error(`mapJobRequestToColor - fallback`,e),null}}function zo(e){let t=(0,G.default)(e,[`pictureUrl`]),n=(0,G.default)(e,[`title`]),r=oc((0,G.default)(e,[`address`],{})),i=(0,G.default)(e,[`address`,`city`]),a=(0,G.default)(e,[`address`,`state`]);a&&(i+=`, ${a}`);let o=(0,G.default)(e,`propertyAddress`);return{l1:n,l2:r,l3:i,l4:o,pic:t}}function Cte(e){let t=[];return e.numOfBedrooms&&t.push(`${e.numOfBedrooms} ${(e=>U(e>1?`properties.bedrooms`:`properties.bedroom`))(e.numOfBedrooms)}`),e.numOfBeds&&t.push(`${e.numOfBeds} ${(e=>U(e>1?`properties.beds`:`properties.bed`))(e.numOfBeds)}`),e.numOfBathrooms&&t.push(`${e.numOfBathrooms} ${U(`properties.bath`)}`),e.type&&t.push(U(`properties.${e.type.toLowerCase()}`)),t.join(` ⢠`)}function Bo(e,t,n){let r=new e,i=t&&(0,_te.default)(t.getData)?{...t.getData(),...n}:n;return r.setData(i),r}function Vo(e,t){let n=[];return e?.numberOfBedrooms&&n.push(`${e.numberOfBedrooms} ${(e=>U(e>1?`properties.bedrooms`:`properties.bedroom`))(e.numberOfBedrooms)}`),e?.numberOfBeds&&n.push(`${e.numberOfBeds} ${(e=>U(e>1?`properties.beds`:`properties.bed`))(e.numberOfBeds)}`),e?.numberOfBathrooms&&n.push(`${e.numberOfBathrooms} ${U(`properties.bath`)}`),t&&n.push(U(`properties.${t.toLowerCase()}`)),n.join(` ⢠`)}function Ho(e){return(0,xo.default)(e,e=>Wo(e))}function Uo(e){return(0,bo.default)(Ho(e),`title`)}function Wo(e){return!e.deleted&&!e.mergedTo&&!e.toBeDeleted}function Go(e,t){return e&&t?e.slice(0,1).toUpperCase()+t.slice(0,1).toUpperCase():``}function Ko(e){if(!e)return``;let t=e.trim().split(/\s+/);return t.length>=2?(t[0].slice(0,1)+t[1].slice(0,1)).toUpperCase():e.slice(0,2).toUpperCase()}function qo(e,t){let n=String(e).match(/\d/g);t(n===null?0:n.join(``)*1)}function Jo(e,t,n){let r=`${e.userData.firstName} ${e.userData.lastName}`;return!t&&e.contactId===n&&(r=`${r} (me)`),r}function Yo(e){let t=e=>e&&(0,z.default)(e).format(`M/D/YY`)||``,n,r;return e.userData.signedUp&&(n=U(`contacts.contact_joined`,{when:t(e.userData.signedUpDate.iso||e.userData.signedUpDate)}),r=!1),e.lastJobSent&&(n=U(`contacts.last_job_sent`,{when:t(e.lastJobSent.iso||e.lastJobSent)}
2),r=!1),e.userData.signedUp||(n=U(`contacts.invite_pending`),r=!0),{value:n,color:r}}function Xo(e,t,n,r){if(!t(e))return r[e]&&!r[e].isDisabled?r[e]:Xo(n(e),t,n,r)}function Zo(e){let t=parseFloat(e);return t===0?0:t.toFixed(2)}function Qo(e,t,n=!0,r=!1){let i=U(r?`account.year`:`account.month`),a=n?{price:t,perWhat:i}:{perWhat:i};return e===`property`?U(`account.price_property_new`,a):e===`job`?U(`account.price_job_new`,a):e===`inspection`?U(`account.inspection`,a):e===`flatrate`?U(`account.price_flat_new`,a):!1}function wte(e,t){return t.reduce((t,n)=>e<n.from?t:t+((n.to?Math.min(e,n.to):e)-n.from+1)*n.perPropertyPrice,0)}function $o(e,t=oo.ADVANCED_2023){return e===0?0:wte(e,so[t]||so[oo.ADVANCED_2023])/e}function es(e){if(!e)return``;let t=e.objectId||e.id,{totalStepCount:n,totalTaskCount:r,steps:i}=e||{},a=`${n||i?.length||0} ${U(`job_request.slides`)} ⢠${r||0} ${U(`job_request.tasks`)}`;return t===`none`?``:a}function ts(e){if(!e)return``;let{stepCount:t}=e||{};return t>1?`${t} ${U(`skills.steps`)}`:`${t||0} ${U(`skills.step`)}`}var ns=e=>{let t=e.slice(e.indexOf(`?`)+1).split(`&`),n={};return t.forEach(e=>{let[t,r]=e.split(`=`);n[t]=decodeURIComponent(r)}),n},rs=e=>{if(!e)return null;if(typeof e==`object`)return e.code||e.localizedMessage||e.error||e.properlyErrorMsg?e:null;if(typeof e!=`string`)return null;let t=e.indexOf(`{`),n=e.lastIndexOf(`}`);if(t===-1||n===-1)return null;try{return JSON.parse(e.substring(t,n+1))}catch(e){return R.default.error(`unableToParseErrorCode `,e),null}},is=e=>{let t=[e?.message,e?.error,e?.properlyErrorMsg,e];for(let e of t){let t=rs(e);if(t){for(let e=0;e<5;e+=1){let e=rs(t.error);if(!e?.code)break;t=e}if(t.code||t.message||t.localizedMessage)return t}}return null},as=e=>{let t=is(e);return t?.code?t.code:(R.default.error(`invalidErrorFormat`,e),null)},os=e=>{let t=is(e);return t?.localizedMessage||t?.message||null},ss=e=>{let t=e?.message,n=[{name:`transaction`,pattern:/RecurlyTransactionError: (.*)/},{name:`validation`,pattern:/RecurlyValidationError: (.*)/}].find(({pattern:e})=>e.test(t));if(n){let e=t.match(n.pattern);return{type:n.name,details:e[1]}}return{type:`unknown`,details:t}},cs=e=>e.some(e=>e.isProblem),ls=e=>{if(e.length>0&&cs(e))return e.filter(e=>e.id).map(e=>e.id)},us=e=>{if(e.graphQLErrors)return JSON.parse(e.graphQLErrors?.[0].message);if(e?.message?.includes(`is on plan`)||e?.message?.includes(`No subscription found for ownerRole`))return{status:`ERROR`,message:U(`autoscheduler.create_as_owner_invalid_subscription`)};if(e?.error||e?.apiError)throw e?.message},ds=e=>e?Object.values(oo).includes(e):!0;function fs(e,t,n,r,i,a,o,s){return{objectId:e,ownerId:t,contactId:n,userData:r,lastJobSent:i,deleted:a,profile:o,listSuggestedCleaner:s,userId:r?.objectId}}function ps(e){return e?.listSuggestedCleaner&&!e?.profile?.marketplaceBlacklisted&&!e?.profile?.marketplaceSuspended}function ms(e){return Go((0,G.default)(e,[`userData`,`firstName`],``),(0,G.default)(e,[`userData`,`lastName`],``))}function hs(e){return(0,G.default)(e,[`userData`,`pictureUrl`])}function gs(e){return Yo(e).value}function _s(e,t,n,r,i,a,o,s,c,l){return{id:e,jobSnapshotId:t,pictureUrl:n,type:r,viewed:i,comment:a,thumbs:o,sender:s,updatedAt:c,propertyTimeZone:l}}function vs(e){return(0,G.default)(e,[`sender`,`userId`])}function ys(e){return`${e?.jobSnapshotId}-${e?.pictureUrl}-${e?.id}`}function bs(e){return`${e?.jobSnapshotId}-${e?.pictureUrl}`}function xs(e){return e?.type===`comment`}function Ss(e){return e?.type===`thumbs`}function Cs(e){return e?.viewed===!0}function ws(e){return e?.type===`thumbs`&&e?.thumbs===`up`}function Ts(e){return e?.type===`thumbs`&&e?.thumbs===`down`}function Es(e,t){return{...e,...t}}var Ds={},Os=(e=ca.language)=>{let t=e||`en`;if(!Ds[t]){let e=new Intl.DateTimeFormat(t,{weekday:`short`,timeZone:`UTC`});Ds[t]=Array.from({length:7},(t,n)=>e.format(new Date(Date.UTC(2023,0,1+n))))}return Ds[t]},ks=(e,t=ca.language)=>{if((t||`en`).toLowerCase().startsWith(`en`)){let t=[`th`,`st`,`nd`,`rd`],n=e%100;return`${e}${t[(n-20)%10]||t[n]||t[0]}`}return`${e}`},As=(e,{requireStartDate:t=!1}={})=>{let n=e||{};return!(!n.repeatUnit||t&&(!n.repeatEvery||!n.startDate)||n.repeatUnit===`weeks`&&!(n.daysOfWeek||[]).length||n.repeatUnit===`months`&&!(n.daysOfMonth||[]).length)},js=(e=30)=>Array.from({length:e},(e,t)=>{let n=t+1;return{value:`${n}
2`,title:U(n===1?`autoscheduler.n_day`:`autoscheduler.n_days`,{count:n})}}),Ms=e=>{if(!e||!e.repeatUnit)return``;let{repeatEvery:t,repeatUnit:n,daysOfWeek:r=[],daysOfMonth:i=[]}=e,a=parseInt(t,10)||1,o={days:`day`,weeks:`week`,months:`month`}[n],s=U(`autoscheduler.recurrence_every`,{count:a,unit:U(a===1?`autoscheduler.unit_${o}`:`autoscheduler.unit_${n}`)});if((n===`weeks`||n===`days`)&&r.length){let e=Os(),t=r.map(t=>e[t]).join(`, `);s+=` ${U(`autoscheduler.recurrence_on`,{days:t})}`}if(n===`months`&&i.length){let e=i.map(e=>ks(e)).join(`, `);s+=` ${U(`autoscheduler.recurrence_on`,{days:e})}`}return s},Ns=class{constructor({status:e,propertyId:t,propertyTitle:n,checklists:r,serviceProviders:i,updatedAt:a,timeConfig:o,tasks:s,skills:c,canceledCheckInOutConfig:l,createdAt:u,deleted:d,editedCheckInOutConfig:f,serviceProviderConfig:p,recurrenceConfig:m,eventType:h,id:g,jobTitle:_,jobType:v,offeredPrice:y,offeredPriceCurrency:b,ownerRole:x}){this.propertyId=t,this.autoSchedulerId=g,this.id=g,this.ownerTole=x,this.requestedCleaners=i,this.cleaners=i,this.status=e,this.statusString=e,this.offeredPrice=y,this.offeredPriceCurrency=b,this.skills=c,this.propertyTitle=n,this.createdAt=u,this.updatedAt=a,this.deleted=d,this.timeConfig=o,this.jobType=v,this.editedCheckInOutConfig=f,this.checklists=r||[],this.title=_,this.jobEventType=h,this.canceledCheckInOutConfig=l,this.serviceProviderConfig=p,this.recurrenceConfig=m,this.tasks=s||[]}getStatusString(){return this.statusString===Xa.ACTIVE?Xa.ACTIVE:Xa.INACTIVE}getRecurrenceSummary(){return Ms(this.recurrenceConfig)||`-`}getTimeString(){let{timeConfig:e}=this;return this.jobEventType===Xa.RECURRING?this.getRecurrenceSummary():e?e.relativeStartTime==null?e.startTime!=null&&e.jobStartTimeType===`REGULAR`?`${z.default.utc().startOf(`day`).add(parseInt(e.startTime,10),`minutes`).format(`hh:mm A`)} ${U(`list_view.start_time`)} on ${this.jobEventType===Xa.CHECKIN?U(`list_view.check_in`):U(`list_view.check_out`)} day`:e.startTime!=null&&e.endTime!=null&&e.jobStartTimeType===`FLEXIBLE`?`${z.default.utc().startOf(`day`).add(parseInt(e.startTime,10),`minutes`).format(`hh:mm A`)} - ${z.default.utc().startOf(`day`).add(parseInt(e.endTime,10),`minutes`).format(`hh:mm A`)} ${U(`job_request.flexible_time`)} on ${this.jobEventType===Xa.CHECKIN?U(`list_view.check_in`):U(`list_view.check_out`)} day`:`-`:this.jobEventType===Xa.CHECKIN?U(`autoscheduler.before_guest_checkin_hours`,{hours:e.relativeStartTime}):U(`autoscheduler.after_guest_checkout_hours`,{hours:e.relativeStartTime}):`-`}getDateDurationInMin(){let e=this.timeConfig?.duration>0&&this.timeConfig?.duration*60*1e3||0;return z.default.duration(e)/60/1e3}getDateDurationFormatted(){let e=this.timeConfig?.duration||0,t=z.default.duration(e,`minutes`),n=t.hours(),r=t.minutes(),i=``;return n>0?(i+=`${n} ${U(n===1?`job_request.just_hour`:`job_request.just_hours`)}`,r>0&&(i+=` ${r} ${r===1?`min`:`mins`}`)):r>0&&(i+=`${r} ${r===1?`min`:`mins`}`),i||`-`}};function Ps(e){let t=e?.timeConfig;return!t||!t.schedulingInterval?`-`:t.schedulingInterval===1?`${t.schedulingInterval} day`:`${t.schedulingInterval} days`}function Fs(e){let t=e?.serviceProviders;return t?t.filter(e=>!e.backup):[]}function Is(e){let t=e?.serviceProviders;return t?t.filter(e=>e.backup):[]}function Ls(e){let t=Fs(e);return t.length>0?t.map(e=>e.serviceProviderName):[]}function Rs(e){let t=Is(e);return t.length>0?t.map(e=>e.serviceProviderName):[]}var zs=e(Se()),Bs=class{constructor({id:e,status:t,property:n,sender:r,checklists:i,cleaners:a,recipients:o,additionalCleaners:s,progress:c,job:l,problems:u,connections:d,additionalInformationReport:f,sourceProblems:p,costs:m,skillRequirements:h,stripePaymentDetails:g,isRiRetailJob:_,savedIssuesCost:v,spottedIssuesCost:y,totalNumberOfSavedIssues:b,totalNumberOfSpottedIssues:x,schedulingDate:S,isForwarded:C,booking:w,autoSchedulerId:T}){k(this,`getCleanerStatusByContactId`,(e,t)=>{let n=e.filter(e=>e.id===t);return n.length?n[0].status:``});let E=l||{},D=c||{};this.propertyId=n?.id,this.jobId=E.id||e,this.id=E.id||e,this.hostId=r?.id,this.jobData=E,this.note=E.note,this.forwardedNote=E.forwardedNote,this.forwardedOfferedPrice=E.forwardedOfferedPrice,this.requestedCleaners=a,this.additionalCleaners=s,this.recipients=o,this.scheduledStartTime=new Date(E.scheduledStartTime),this.scheduledEndTime=new Date(E.scheduledEndTime),this.actualStartTime=D.actualStartTime,this.actualEndTime=D.actualEndTime,this.setJobStatus=t,this.statusString=t,this.taskDoneCount=D.completedTaskCount,this.verificationDoneCount=D.verificationPictureCount,this.problemCount=D.problemCount,this.jobProgressId=D.id,this.offeredPrice=E.offeredPrice,this.isProMarketplaceJob=E.isProMarketplaceJob,this.offeredPriceCurrency=E.offeredPriceCurrency,this.jobProgress=D,this.problems=u,this.skillRequirements=h,this.propertyData=n,this.createdAt=E.sentOn,this.hostData=r?.userData,this.senderData=r?.userData,this.companyName=r?.companyName,this.requestedCleanersData=a,this.senderId=r?.id,this.sender=r,this.jobStartTimeType=E.startTimeType,this.duration=E.duration,this.setChecklists=i||[],this.connections=d,this.title=E.title,this.jobType=E.jobType,this.totalTaskCount=E.totalTaskCount,this.tasksSetter=i||[],this.additionalInformationReport=f,this.sourceProblems=p,this.costs=m,this.additionalReportCount=D.additionalReportCount,this.stripePaymentDetails=g,this.monetizedJob=E.isMonetizedJob,this.isRiRetailJob=_,this.savedIssuesCost=v,this.spottedIssuesCost=y,this.totalNumberOfSavedIssues=b,this.totalNumberOfSpottedIssues=x,this.isForwarded=C,this.isForwardingEnabled=E.isForwardingEnabled,this.schedulingDate=S,this.bookingDetails=w||{},this.autoSchedulerId=T}set tasksSetter(e){let t=e.filter(e=>e.isOneOff);if(t.length>0){let e=t.map(e=>{let t=e.steps&&e.steps[0]&&e.steps[0].tasks?e.steps[0].tasks[0]:null;return{id:e.id,sourceProblemId:e.sourceProblemId,title:e.title,note:t?t.note:``,pictureIdentifiers:t?t.notePictureIdentifiers:``,isProblem:!!e.sourceProblemId}});this.tasks=e||[]}}set setChecklists(e){this.checklists=e.filter(e=>!e.isOneOff)}set setJobStatus(e){switch(e){case`pending`:this.status=1;break;case`accepted`:this.status=2;break;case`cancelled`:case`canceledByHost`:this.status=3;break;case`declined`:case`declinedChanges`:this.status=4;break;case`inProgress`:this.status=5;break;case`finished`:this.status=7;break;case`canceledByCleaner`:this.status=8;break;case`pendingChanges`:this.status=9;break;case`scheduled`:this.status=11;break;default:this.status=void 0}}get offeredPriceWithCurrency(){return this.offeredPrice&&this.offeredPriceCurrency?`${this.offeredPrice} ${this.offeredPriceCurrency}`:`-`}get doneTasksCount(){return this.taskDoneCount}get completedPhotosCount(){return this.verificationDoneCount}get photosMissingFeedbackCount(){return this.additionalReportCount}get isJobStarted(){return this.actualStartTime!==null&&this.actualStartTime!==void 0}get isJobEnded(){return this.actualEndTime!==null&&this.actualEndTime!==void 0}get totalVerificationPictureCount(){return this.checklists&&this.checklists.reduce((e,t)=>
2e+t.totalVerificationPictureCount,0)||0}get totalVerificationPhotosSent(){return this.checklists&&this.checklists.reduce((e,t)=>e+t.verificationPhotos.length,0)||0}get getAcceptedCleaner(){return this.requestedCleaners.find(e=>[Ua.Accepted,Ua.InProgress,Ua.Finished].includes(e.status))}get requestedCleanersSortedByAccepted(){let e=[Ua.Accepted,Ua.InProgress,Ua.Finished];return this.requestedCleaners.sort((t,n)=>t.status===n.status?0:e.includes(t.status)?-1:+!!e.includes(n.status))}get cleanerImageIdentifier(){let e=this.getAcceptedCleaner;return e||([e]=this.requestedCleaners.filter(e=>e.date!==null)),e?e.userData.pictureIdentifier:this.requestedCleaners[0]?.userData.pictureIdentifier}get cleanerAcceptanceDate(){let e=this.getAcceptedCleaner;return e||([e]=this.requestedCleaners.filter(e=>e.date!==null&&e.date!==void 0)),e?(0,z.default)(e.date).clone():null}get assignedToCleaners(){let e=this.requestedCleaners;return e?e.map(e=>e.userData.id):[]}get acceptedCleanerOrAllCleaners(){let e=this.requestedCleaners,t=this.getAcceptedCleaner;return t&&(e=[t]),e?.map(e=>e.userData.id)||[]}get propertyTypeName(){switch(this.propertyData?.type){case`apartment`:return U(`properties.apartment`);case`house`:return U(`properties.house`);default:return null}}getProblemsNotInProgress(){return this.problems.filter(e=>e.status!==Ga.IN_PROGRESS)}setData(e){this.getOwnProps(e,this)}getData(){return this.getOwnProps(this)}getTasks(){return this.checklists?this.checklists.oneOff:[]}getOwnProps(e,t){let n=t||{};return(0,zs.default)(e,(e,t)=>{n[t]=e}),n}getId(){return this.objectId}getReports(){return this.additionalInformationReport.map(e=>e.report)}getAdditionalInformationReports(){return this.additionalInformationReport}getTimeZone(){return this.propertyData?.timeZone||`America/Los_Angeles`}getScheduledStartTime(){return this.scheduledStartTime}getActualStartTime(){return this.actualStartTime}getPropertyId(){return this.propertyId}getScheduledStartInPropertyTZ(){return(0,z.default)(this.scheduledStartTime).tz(this.getTimeZone())}getDateDurationInMin(){let e=this.duration&&this.duration>0?this.duration*60*1e3:(0,z.default)(this.scheduledEndTime).diff((0,z.default)(this.scheduledStartTime));return z.default.duration(e)/60/1e3}getFlexibleDateString(e){let t=this.scheduledStartTime,n=this.scheduledEndTime;return t=(0,z.default)(t).tz(this.getTimeZone()).format(e||`ll`),n=(0,z.default)(n).tz(this.getTimeZone()).format(e||`ll`),`${t} - ${n}`}getFlexibleStartDateString(){return(0,z.default)(this.scheduledStartTime).tz(this.getTimeZone()).format(`ll`)}getFlexibleEndDateString(){return(0,z.default)(this.scheduledEndTime).tz(this.getTimeZone()).format(`ll`)}isFlexibleStartTime(){return this.jobStartTimeType===uo}getShortDateString(){return this.getDateString(`l`)}getDateString(e){return this.isFlexibleStartTime()?this.getFlexibleDateString(e):(0,z.default)(this.scheduledStartTime).tz(this.getTimeZone()).format(e||`ll`)}getTimeString(){let e=this.scheduledStartTime,t=this.scheduledEndTime?this.scheduledEndTime:(0,z.default)(this.scheduledStartTime).clone().add(this.duration,`minutes`);return e=(0,z.default)(e).tz(this.getTimeZone()).format(`LT`),t=(0,z.default)(t).tz(this.getTimeZone()).format(`LT`),`${e} - ${t}`}getEndTime(e,t=!1){let n=this.scheduledEndTime;return e&&(n=this.actualEndTime),!n&&!t&&(n=(0,z.default)(this.scheduledStartTime).clone().add(this.duration,`minutes`)),n}getEndTimeString(e,t=!1){let n=this.getEndTime(e,t);return n?(0,z.default)(n).tz(this.getTimeZone()).format(`LT`):null}getLocalEndTimeString(e){return(0,z.default)(this.getEndTime(e)).format(`LT`)}getStartTimeString(e){let t=this.scheduledStartTime;return e&&(t=this.actualStartTime),(0,z.default)(t).tz(this.getTimeZone()).format(`LT`)}getLocalStartTimeString(){let e=this.scheduledStartTime;return(0,z.default)(e).format(`LT`)}isDelayed(){return!this.actualStartTime&&this.status===W.StateAccepted&&(0,z.default)().toDate()-(0,z.default)(this.scheduledStartTime).tz(this.getTimeZone()).toDate()>0}get hasProblems(){return this.problemCount>0}getStatusString(){if(this.isDelayed()&&this.status!==W.StateFinished)return`jobstatus.delayed`;if(this.statusString===`viewed`)return`jobstatus.seen`;switch(this.status){case W.StateCreated:return`jobstatus.pending`;case W.StatePendingChanges:return`jobstatus.pendingChanges`;case W.StateAccepted:return`jobstatus.accepted`;case W.StateCancelled:case W.StateCleanerCancelled:return`jobstatus.cancelled`;case W.StateDeclined:return`jobstatus.declined`;case W.StateStarted:case W.StatePaused:return`jobstatus.started`;case W.StateFinished:return`jobstatus.completed`;case W.StateScheduled:return`jobstatus.scheduled`;default:return}}getStatusColor(){switch(this.getStatusString()){case`jobstatus.accepted`:return`light-blue`;
2case`jobstatus.started`:return`pink`;case`jobstatus.delayed`:return`orange`;case`jobstatus.cancelled`:case`jobstatus.declined`:return`red`;case`jobstatus.completed`:return`green`;default:return}}getStatusStringAdvanced(){let e=this.getStatusString();return e===`jobstatus.cancelled`?this.status===W.StateCleanerCancelled?`jobstatus.cancelledbycleaner`:this.status===W.StateCancelled?`jobstatus.cancelledbyhost`:`jobstatus.cancelled`:e}get checklistsNames(){let e=``;return this.checklists&&this.checklists.forEach(t=>{e+=(e?`, `:``)+(t.title||U(`checklist_library.unnamed_checklist`))}),e}get additionalCleanerNamesArray(){let e=[];return this.additionalCleaners&&(e=this.additionalCleaners.map(e=>e.name)),e}get checklistsNamesCompact(){let e=``;return this.checklists&&this.checklists.length&&(e=this.checklists[0].title+(this.checklists.length>1?` (+${this.checklists.length-1})`:``)),e}get requiredSkillsList(){let e=``;return this.skillRequirements&&this.skillRequirements.forEach(t=>{e+=(e?`, `:``)+t.title}),e}get requiredSkillsListCompact(){let e=``;return this.skillRequirements&&this.skillRequirements.length&&(e=this.skillRequirements[0].title+(this.skillRequirements.length>1?` (+${this.skillRequirements.length-1})`:``)),e}getCleanerString(e=!1,t=!1,n=!1){let r=n?this.acceptedCleanerOrAllCleaners:this.assignedToCleaners,i=this.requestedCleaners.filter(e=>r.length?r.includes(e.userData?.id):!0);if(i.length===0)return``;let a=this.resolveUserCleanerDataShortName(i[0],e);if(i.length===1)return i[0].contact,a;if(t){let t=e=>{let t=this.getAcceptedCleaner;return t?.status===e?`(${U(`jobstatus.accepted`)})`:!t&&e===Ua.CanceledByCleaner?`(${U(`jobstatus.cancelled`)})`:``},n=``;return i.forEach(r=>{n+=(n?`, `:``)+this.resolveUserCleanerDataShortName(r,e)+t(r.status)}),n}return`${a}, +${this.requestedCleaners.length-1}`}resolveUserCleanerDataShortName(e,t){return`${e.userData.firstName} ${t?e.userData.lastName:`${e.userData.lastName.substring(0,1)}.`}`}getPropertyLines(){let e=[];return this.title!==this.propertyData.street&&e.push(this.propertyData.title),this.propertyData.street&&e.push(this.propertyData.street),e.push(`${this.propertyData.city} ${this.propertyData.countryCode} ${this.propertyData.zip}`),e.push(this.propertyData.country),e}};function Vs(e){let t=(0,G.default)(e,`status`);return t===W.StateStarted||t===W.StatePaused}function Hs(e){return(0,G.default)(e,`status`)===W.StateFinished}function Us(e){return((0,G.default)(e,`problems`)||[]).some(e=>e.status===Ga.RESOLVED)}function Ws(e){return((0,G.default)(e,`problems`)||[]).every(e=>e.status===Ga.RESOLVED)}function Gs(e){let t=(0,G.default)(e,`jobProgress`)||{},n=(0,G.default)(e,`checklists`)||[],r=(0,G.default)(e,`problemCount`)||0,i=(0,G.default)(e,`status`),a=((0,G.default)(t,`completedTaskCount`)||0)<(0,H.default)(n,e=>e.totalTaskCount).reduce((e,t)=>e+t,0),o=i===W.StateFinished;return{hasProblem:r>0&&!Ws(e),isIncomplete:a,isComplete:o}}function Ks(e){let t=(0,G.default)(e,`scheduledStartTime`),n=(0,G.default)(e,`scheduledEndTime`);return!t||!n?0:(new Date(n)-new Date(t))/1e3/60}function qs(e){return(0,G.default)(e,`status`)!==W.StateCancelled}function Js(e){let t=(0,G.default)(e,`status`);return t!==W.StateStarted&&t!==W.StatePaused&&t!==W.StateFinished&&t!==W.StateCancelled}function Ys(e){let t=(0,G.default)(e,`status`),n=(0,G.default)(e,`statusString`),r=(0,G.default)(e,`scheduledStartTime`),i=(0,G.default)(e,[`propertyData`,`timeZone`])||`America/Los_Angeles`;return(t===W.StateCleanerCancelled||t===W.StateCreated||t===W.StateDeclined||n===`viewed`)&&(0,z.default)().toDate()-(0,z.default)(r).tz(i).toDate()<0}function Xs(e){let t=(0,G.default)(e,`note`);return!!t&&t!==``}function Zs(e){let t=(0,G.default)(e,`offeredPrice`);return!!t&&t!==0}function Qs(e){return(0,G.default)(e,[`event`,`triggerResolved`,`title`])}function $s(e){let t=``,n=e?.checklists;return n&&n.forEach(e=>{t+=(t?`, `:``)+(e.title||U(`checklist_library.unnamed_checklist`))}),t}function ec(e){let t=e?.checklists;return t?t.map(e=>e.title||U(`checklist_library.unnamed_checklist`)):[]}function tc(e){let t=e?.skillRequirements;return t?t.map(e=>e.title):[]}function nc(e){let t=e?.checklists;return t&&t.length?t[0].title:null}function rc(e){return e?.checklists?e.checklists.length:0}function ic(e={},t={}){let n=t.location||{};return(n&&typeof n.latitude==`number`||typeof n[0]==`number`)&&e&&e.street&&e.zip&&e.country}function ac(e,t){return!ic(e,t)}function oc(e){let{apt:t,street:n}=e||{},r=t?` / ${String(t).trim()}`:``;return(n?String(n).trim():``)+r}function sc(e){let t=String(e&&e.state||``).trim(),n=String(e&&e.zip||``).trim(),r
2=String(e&&e.city||``).trim(),i=`${[r===t?``:r,t].map(e=>String(e||``).trim()).filter(e=>!!e).join(`, `)} ${n}`;return String(i||``).trim()}function cc(e,t){return!!t&&(fo(t)===e||po(t)===e)}function lc(e,t){return!cc(e,t)}function uc(e,t){return!!t&&(!!t.all||!!t[e])}function dc(e){return e?.userData?.fullNameCompany||`Unknown`}var fc=e(li()),pc=e(yt());function mc(e){try{let t=e||_c(),n=(0,pc.default)(t,e=>[].concat(e)[0]);R.default.info(`setTrackingCookie`,t,n);let r={domain:`.getproperly.com`,expires:365};t.utm_campaign&&Pt.set(`utm_campaign`,n.utm_campaign,r),t.utm_source&&Pt.set(`utm_source`,n.utm_source,r),t.utm_content&&Pt.set(`utm_content`,n.utm_content,r),t.utm_medium&&Pt.set(`utm_medium`,n.utm_medium,r),t.utm_term&&Pt.set(`utm_term`,n.utm_term,r)}catch(e){R.default.error(`Error setting tracking cookie`,e)}}function hc(){let e={campaign:Pt.get(`utm_campaign`),referrer:Pt.get(`utm_referrer`)||document.referrer,content:Pt.get(`utm_content`),medium:Pt.get(`utm_medium`),source:Pt.get(`utm_source`),term:Pt.get(`utm_term`),signupMeta:Pt.get(`signupMeta`)};if(!e.medium&&!e.source&&!e.campaign)if(document.referrer){let t=(0,fc.default)(rte,e=>gc(e.referrer));t?(e.medium=t.medium,e.source=t.source,e.campaign=t.campaign):gc(`getproperly`)?(e.medium=`organic`,e.source=`seo`,e.campaign=`home`):e.medium=`referral`}else e.medium=`webapp`,e.source=nte;return e}function gc(e){return document.referrer.indexOf(e)!==-1}function _c(e){let t=String(window.location.search||``),n=String(window.location.href||``),r=t.substr(1),i=n.substr(n.indexOf(`?`)+1),a=e||r||i,o={};if(a!==null&&a!==``){let e=a.split(`&`);for(let t=0;t<e.length;t++){let n=e[t].split(`=`),r=n[1];o[n[0]]=r}}return o}var vc=e(ni()),yc=e(Oee()),bc=e(Ke()),xc=e(Oe());function Sc(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):``}var Cc=e(oee()),wc=e(nee()),Tc=e(Ze()),Ec=(0,wc.default)(()=>(0,z.default)().subtract(1,`d`).startOf(`d`).toDate()),Dc=(0,wc.default)(()=>(0,z.default)(Ec()).add(6,`d`).endOf(`d`).toDate()),Oc=(0,wc.default)(()=>(0,z.default)(Ec()).subtract(12,`w`).startOf(`d`).toDate()),kc=1,Ac=(()=>{let e=(0,z.default)(),t=(t,n)=>(0,z.default)(t,[n]).isSame(e,`day`),n=Date.now(),r=(0,yc.default)(t);return(i,a)=>{try{return Date.now()-n>300*1e3&&(n=Date.now(),e=(0,z.default)(),r=(0,yc.default)(t)),r(i,a)}catch(e){return R.default.error(`Error calculating date isToday`,i,a),R.default.error(`Error calculating date isToday`,e),!1}}})(),jc=(()=>{let e=(e,t)=>(0,z.default)(e,[t]).format(`dddd`)===`Sunday`||(0,z.default)(e,[t]).format(`dddd`)===`Saturday`,t=Date.now(),n=(0,yc.default)(e);return(r,i)=>{try{return Date.now()-t>300*1e3&&(t=Date.now(),n=(0,yc.default)(e)),n(r,i)}catch(e){return R.default.error(`Error calculating date isWeekend`,r,i),R.default.error(`Error calculating date isWeekend`,e),!1}}})(),Mc=(0,yc.default)((e,t)=>{let n=`YYYYMMDD`,r=[],i=(0,z.default)(e),a=(0,z.default)(t).toDate();a.setHours(0,0,0,0),r.push(i.format(n));let o=0;for(;i.format(n)!==(0,z.default)(a).format(n);)if(i=(0,z.default)(i).add(1,`days`),r.push(i.format(n)),o+=1,o>365)return r;return r}),Nc=(()=>{let e=`YYYYMMDD`,t=(0,wc.default)(()=>(0,z.default)(Ec()).subtract(kc,`days`)),n=(0,wc.default)(()=>(0,z.default)(Dc()).add(kc,`days`)),r=(0,wc.default)(()=>n().diff(t(),`days`));return(0,yc.default)(n=>{let i=t(),a=r(),o=(0,z.default)(n).diff(Ec(),`d`),s=Math.floor(o/a),c=s*a,l=c===0?i:i.clone().add(c,`d`),u=c===0?i.clone().add(a,`d`):i.clone().add(a+c,`d`),d=l.format(e),f=u.format(e);return{id:s,diff:c,start:d,end:f,bucket:`${d}-${f}`}})})(),Pc=(()=>{let e=(0,wc.default)(()=>(0,z.default)(Ec()).subtract(1,`days`)),t=(0,wc.default)(()=>(0,z.default)(Dc()).add(1,`days`)),n=(0,wc.default)(()=>t().diff(e(),`days`));return(e,t)=>{let r=(0,z.default)(e),i=(0,z.default)(t||e);if(i.diff(r,`days`)<=0)return[Nc(e).bucket];let{bucket:a}=Nc(r),{bucket:o}=Nc(i);if(a===o)return[a];let s=[a],c=a,l=0;for(;l<100&&c!==o;){l+=1;let e=l*n();c=Nc(r.clone().add(e,`days`)).bucket,s.push(c)}return s}})(),Fc=(()=>{function e(e,t,n){return n.indexOf(e)===t}return(0,yc.default)((t,n)=>{let r=(0,z.default)(t),i=(0,z.default)(n),a=(0,z.default)(t).subtract(1,`w`),o=(0,z.default)(n).add(1,`w`);return{dateBucketIds:(0,Cc.default)([Nc(r),Nc(i),Nc(a),Nc(o)]).map(({bucket:e})=>e).filter(e)}})})();function Ic(e){let t=e&&Number(e);return t<=15?`#43A047`:t>15&&t<240?`#FFA726`:t>=240?`#FF5722`:`#000`}function Lc(e){let t=Number(e),n=t%60!=0,r=t>=60,i=t%60,a=Math.floor(t/60),o=a===1?`${a} ${U(`job_request.just_hour`)}`:`${a} ${U(`job_request.just_hours`)}`,s=U(`job_request.just_minutes`,{mins:Math.floor(i)});return n&&r?`${o} ${s}`:n?s:r?o:t===0?U(`job_request.just_minutes`,{mins:0}):``}function Rc(e){return(0,Tc.default)(1440/e,t=>{let n=Bc()?`HH:mm`:`hh:mm A`,r=t*e;return{value:`${r}`,title:Vc(void 0,r).format(n)}})}function zc(e,t){return(0,H.default)((0,Tc.default)(t/e,t=>e*(t+1)),e=>({value:`${e}`,title:Lc(e)}))}function Bc(){let e=(0,z.default)().format(`LT`);return e.indexOf(`AM`)===-1&&e.indexOf(`PM`)===-1}function Vc(e,t){return(0,z.default)(e).clone().hours(Math.floor(t/60)).minutes(t%60)}function Hc(e){return z.default.tz.zone(e)}
2function Uc(e,t=(0,z.default)().tz()||z.default.tz.guess()){if(e&&t!==e){let n=(0,z.default)(),r=Hc(t).utcOffset(n);return Hc(e).utcOffset(n)-r}return 0}var Wc=e=>{let t=(0,z.default)(e).millisecond(0);if(t.year()<2e3){let t=e._i;return(0,z.default)(t,`YYYY-MM-DD[T]HH:mm:ss.zzz[Z]`)}return t},Gc=({rangeStartDate:e,rangeEndDate:t,startDate:n,endDate:r})=>{let i=(0,z.default)(n).isSameOrBefore((0,z.default)(t)),a=(0,z.default)(r).isSameOrAfter((0,z.default)(e));return i&&a},Kc=e=>{let t=Number.isNaN(Number(e))?0:Number(e),n=Math.floor(t/60),r=t%60;return n?U(`job_request.hours_minutes`,{hrs:n,mins:r}):U(`job_request.just_minutes`,{mins:r||0})},qc=(e,t)=>e===t||z.default.tz(e).format(`Z`)===z.default.tz(t).format(`Z`),Jc=e=>{if(!e)return e;let t=(0,z.default)(e).clone();if(!t.isValid())return e;let n=Math.floor(t.minutes()/15);return t.minutes()%15!=0&&(n+=1),n===4&&(t.add(`hours`,1),n=0),t.minutes(n*15),t.seconds(0),t},Yc=({startTime:e,endTime:t,nowTime:n,duration:r})=>{let i=t&&z.default.duration(t.diff(e)),a=t&&i.asMinutes()||0,o=t&&z.default.duration(t.diff(n)),s=t&&o.asMinutes()||0;return+r<=Math.round(s)&&+r<=Math.round(a)},Xc=`YYYYMMDD`,Zc=(0,yc.default)(e=>(0,z.default)(e).unix());function Qc(e={}){return!!sl(e)}function $c(e={}){return Qc(e)&&!el(e)}function el(e={}){return!!Mte(e)}function tl(e={}){return el(e)&&!Qc(e)}function nl(e={}){return el(e)&&Qc(e)}function rl(e={}){return cl(e).jobStartTimeType}function il(e={}){return rl(e)===`flexible`}function al(e={}){return e.serviceProviderIds}function ol(e={}){return(al(e)||[]).length}function sl(e={}){return cl(e).jobSnapshotId}function cl(e={}){return e.jobRequest||{}}function ll(e={}){if(dl(e)!==W.StateAccepted)return!1;if(il(e)){let t=Tl(e),n=fl(e);return t.subtract(n,`mins`).isBefore()}let t=zte(e);return new Date-t>0}function ul(e={}){return cl(e).title}function Tte(e={}){return cl(e).seen}function dl(e={}){return cl(e).statusCode}function Ete(e={}){return cl(e).statusCode===W.StateCancelled}function Dte(e={}){return cl(e).problem}function Ote(e={}){return cl(e).incomplete}function fl(e={}){return cl(e).duration}function kte(e={}){let t=dl(e);return t===W.StateStarted||t===W.StatePaused}function Ate(e={}){return dl(e)===W.StateFinished}function pl(e={}){let t=cl(e).numberOfCleaners,n=ol(e),r=e=>Number.isNaN(Number(e))?0:Number(e);return Math.max(r(n),r(t))}function jte(e={}){let t=wl(e),n=Tl(e),r=(0,z.default)().isAfter(t)?`calendar.started_at`:`calendar.starting_at`,i=fl(e),a=il(e);return t&&!n?U(r,{time:t.format(`LT`)}):`${a?`Flex.`:``} ${(a?n:t).format(`LT`)} (${Lc(i)})`}function ml(e={}){return e.reminder||{}}function Mte(e={}){let t=ml(e);return t.reminderId||t.id}function hl(e={}){return ml(e).title}function gl(e={}){return!!ml(e).needsCTA}var Nte=(e={})=>!!e.draftJobId;function _l(e={}){return e.booking||{}}function vl(e={}){let{partner:t}=_l(e);return t===`iCal`?t:Sc(t)}function Pte(e={},t){let n=vl(e),r=n&&`${n}: `||``,i=yl(e),a=Fte(e,t);return[[r,i].join(``),a].filter(e=>!!e).join(` ⢠`).trim()}function Fte(e={},t){let n=Ite(e),r=bl(e);return[t&&n>0?`${t(n)}`:``,r].filter(e=>!!e).join(` ⢠`).trim()}function yl(e={}){let t=kl(e),n=Nl(e);return t&&n&&`${t.format(`L`)} â ${n.format(`L`)}`||``}function Ite(e={}){return _l(e).numberOfGuests}function bl(e={}){return _l(e).guestName}function xl(e={}){return _l(e).statusCode}function Lte(e={}){return _l(e).bookingDurationDays}function Rte(e={}){let t=[vl(e),bl(e)].filter(e=>!!e).join(`: `);return _l(e).title||t||`Booking`}function Sl(e={}){return xl(e)===Ba.Canceled}function Cl(e={}){return xl(e)===Ba.Changed}function wl(e={}){return z.default.tz(e.startTime,e.timeZone)}function Tl(e={}){return e.endTime&&z.default.tz(e.endTime,e.timeZone)}function zte(e={}){return wl(e).toDate()}function Bte(e={}){return wl(e).format(`LT`)}function Vte(e={}){let t=Tl(e);return t&&t.format(`LT`)}function El(e={}){return _l(e).arrivalDate}function Dl(e={}){let{arrivalLocalDay:t}=_l(e);if(!t){let t=kl(e);return t&&t.format(Xc)}return t&&`20${t}`}function Ol(e={},t){return t===Dl(e)}function kl(e={}){let t=El(e);return t&&z.default.tz(t,e.timeZone)}function Hte(e={}){return Zc(El(e))}function Al(e={}){return _l(e).departureDate}function jl(e={}){let{departureLocalDay:t}=_l(e);
2if(!t){let t=Nl(e);return t&&t.format(Xc)}return t&&`20${t}`}function Ml(e={},t){return t===jl(e)}function Nl(e={}){let t=Al(e);return t&&z.default.tz(t,e.timeZone)}function Ute(e={}){return Zc(Al(e))}function Wte(e={}){return e.property||{}}function Gte(e={}){return Wte(e).displayAddress}function Kte(e={}){return(0,z.default)(e.startTime).tz(e.timeZone)}function qte(e={}){return e.endTime&&(0,z.default)(e.endTime).tz(e.timeZone)}function Jte(e={}){return e.payload?.jobRequest}function Yte(e={}){return e.payload?.trigger}function Xte(e={}){return e.eventStatus===3}function Zte(e={}){return e.eventStatus===2}function Qte(e={}){return Yte(e)?.title}function Pl(e={}){if(ll(e))return`delayed`;switch(dl(e)){case W.StateCreated:return`pending`;case W.StateAccepted:return`accepted`;case W.StateCancelled:case W.StateCleanerCancelled:case W.StateDeclined:return`cancelled`;case W.StateStarted:case W.StatePaused:return`progress`;case W.StateFinished:return`finished`;default:return R.default.warn(`Unknown color for calendar event`,e),`accepted`}}function $te(e={}){let t=Ll(e);switch(t){case`jobstatus.delayed`:return`D`;case`jobstatus.seen`:return`V`;case`jobstatus.accepted`:return`A`;case`jobstatus.pending`:return`P`;case`jobstatus.cancelled`:return`C`;case`jobstatus.declined`:return`D`;case`jobstatus.started`:return`IP`;case`jobstatus.completed`:return`F`;default:return R.default.warn(`Unknown mapping for calendar event label`,e,t),``}}var Fl={edit:`edit`,sendmore:`sendmore`,cancel:`cancel`,schedule:`schedule`},Il=(0,yc.default)((e,t,n)=>{let r=(r,i,a)=>e===r&&t===i&&n===a;return r(4,1,1)||r(3,1,1)||r(3,1,2)?Fl.edit:r(3,1,3)?Fl.cancel:r(4,4,1)||r(3,4,1)?Fl.sendmore:r(3,4,2)?Fl.edit:r(3,4,3)?Fl.cancel:r(4,8,1)||r(3,8,1)||r(3,8,2)?Fl.edit:r(3,8,3)?Fl.cancel:r(3,3,2)?Fl.edit:r(3,3,3)?Fl.cancel:r(3,2,2)?Fl.edit:r(3,2,3)?Fl.cancel:t===3||t===8?Fl.edit:`sc
2hedule`},(e,t,n)=>`${e}-${t}-${n}`);function ene(e,t){let n=!1;return e===W.StateDeclined&&t===1&&(n=U(`calendartile.modes.sendmore`)),e===W.StateCleanerCancelled&&t===1&&(n=U(`calendartile.modes.sendnew`)),e===W.StateCancelled&&t===1&&(n=U(`calendartile.modes.sendnew`)),n}function Ll(e={}){if(ll(e))return`jobstatus.delayed`;let t=dl(e);if(t===W.StateCreated&&Tte(e))return`jobstatus.seen`;switch(t){case W.StateCreated:return`jobstatus.pending`;case W.StateAccepted:return`jobstatus.accepted`;case W.StateCancelled:case W.StateCleanerCancelled:return`jobstatus.cancelled`;case W.StateDeclined:return`jobstatus.declined`;case W.StateStarted:case W.StatePaused:return`jobstatus.started`;case W.StateFinished:return`jobstatus.completed`;default:return R.default.warn(`Unknown label for calendar event`,e),null}}function Rl(e,t,n,r){let i=0;if(e>20)return;let a=n[e]=n[e]||{},o=()=>n[e]?(0,bc.default)(a):a,s,c=Object.keys(r.obj),l=(e,t)=>Ol(a[t],t)&&Ml(e,t)||Ol(e,t)&&Ml(a[t],t);for(let e=0;e<c.length;e++){let t=c[e],n=r.obj[t];if(n)if(!a[t])s=s||o(),s[t]=n,i+=1;else if(a[t]&&(0,vc.default)(a[t])&&!Array.isArray(a[t])&&l(n,t)){s=s||o();let{booking:e}=s[t]||{},{booking:r}=n||{},{arrivalLocalDay:a,departureLocalDay:c}=r||{},{departureLocalDay:l}=e||{};if(l!==a&&a===c)break;s[t]=[s[t],n],i+=1}else break}if(i===r.matches){n[e]=s||o();return}Rl(e+1,t,n,r)}var tne=(0,yc.default)((e,t)=>e.map(e=>({date:e,unixEnd:z.default.tz(e,t).endOf(`day`).unix()})),(e,t)=>(e||[]).join(`-`)+t);function nne(e,t,n){let r=[],i=tne(t,n);return(0,xc.default)((0,bo.default)(e||[],e=>e.booking.bookingDurationDays,[`desc`]).map(e=>rne(e,i)),e=>Rl(0,t,r,e)),r}function rne(e,t){let n=Ute(e),r=Hte(e),i=Dl(e),a=jl(e),o=0,s=[],c={};return{array:(0,H.default)(t,({date:t,unixEnd:l})=>i===t||a===t||n>l&&r<l?(o+=1,s.push(t),c[t]=e,[t,e]):(c[t]=null,[`no`,null])),obj:c,matches:o,dateMatches:s}}var ine=e=>e&&e.length>0?e[0]:void 0,zl=e=>String(e||``).toLowerCase().trim()===`no checklist`,Bl=e=>{let{title:t,event:n,jobProgress:r,jobData:i}=e||{},{title:a}=n||{},{jobSteps:o}=r||{};if(t&&!zl(t))return t;let{title:s}=ine(o||[])||{};if(s&&!zl(s)){let e=(o||[]).length,t=e>1?` + ${e-1}`:``;return String(s+t).trim()}return i&&i.title&&!zl(i.title)?i.title:a&&!zl(a)?a:t||`No Checklist`},Vl=e=>Object.keys(no).find(t=>no[t]===e);function Hl(){return(0,H.default)(no,(e,t)=>({value:e,title:U(`reports.jobTypes.${t}`)}))}var Ul=JSON.parse(`[{"name":"Afghanistan","dial_code":"+93","code":"AF"},{"name":"Albania","dial_code":"+355","code":"AL"},{"name":"Algeria","dial_code":"+213","code":"DZ"},{"name":"AmericanSamoa","dial_code":"+1 684","code":"AS"},{"name":"Andorra","dial_code":"+376","code":"AD"},{"name":"Angola","dial_code":"+244","code":"AO"},{"name":"Anguilla","dial_code":"+1 264","code":"AI"},{"name":"Antarctica","dial_code":"+672","code":"AQ"},{"name":"Antigua and Barbuda","dial_code":"+1268","code":"AG"},{"name":"Argentina","dial_code":"+54","code":"AR"},{"name":"Armenia","dial_code":"+374","code":"AM"},{"name":"Aruba","dial_code":"+297","code":"AW"},{"name":"Australia","dial_code":"+61","code":"AU"},{"name":"Austria","dial_code":"+43","code":"AT"},{"name":"Azerbaijan","dial_code":"+994","code":"AZ"},{"name":"Bahamas","dial_code":"+1 242","code":"BS"},{"name":"Bahrain","dial_code":"+973","code":"BH"},{"name":"Bangladesh","dial_code":"+880","code":"BD"},{"name":"Barbados","dial_code":"+1 246","code":"BB"},{"name":"Belarus","dial_code":"+375","code":"BY"},{"name":"Belgium","dial_code":"+32","code":"BE"},{"name":"Belize","dial_code":"+501","code":"BZ"},{"name":"Benin","dial_code":"+229","code":"BJ"},{"name":"Bermuda","dial_code":"+1 441","code":"BM"},{"name":"Bhutan","dial_code":"+975","code":"BT"},{"name":"Bolivia, Plurinational State of","dial_code":"+591","code":"BO"},{"name":"Bosnia and Herzegovina","dial_code":"+387","code":"BA"},{"name":"Botswana","dial_code":"+267","code":"BW"},{"name":"Brazil","dial_code":"+55","code":"BR"},{"name":"British Indian Ocean Territory","dial_code":"+246","code":"IO"},{"name":"Brunei Darussalam","dial_code":"+673","code":"BN"},{"name":"Bulgaria","dial_code":"+359","code":"BG"},{"name":"Burkina Faso","dial_code":"+226","code":"BF"},{"name":"Burundi","dial_code":"+257","code":"BI"},{"name":"Cambodia","dial_code":"+855","code":"KH"},{"name":"Cameroon","dial_code":"+237","code":"CM"},{"name":"Canada","dial_code":"+1","code":"CA"},{"name":"Cape Verde","dial_code":"+238","code":"CV"},{"name":"Cayman Islands","dial_code":"+ 345","code":"KY"},{"name":"Central African Republic","dial_code":"+236","code":"CF"},{"name":"Chad","dial_code":"+235","code":"TD"},{"name":"Chile","dial_code":"+56","code":"CL"},{"name":"China","dial_code":"+86","code":"CN"},{"name":"Christmas Island","dial_code":"+61","code":"CX"},{"name":"Cocos (Keeling) Islands","dial_code":"+61","code":"CC"},{"name":"Colombia","dial_code":"+57","code":"CO"},{"name":"Comoros","dial_code":"+269","code":"KM"},{"name":"Congo","dial_code":"+242","code":"CG"},{"name":"Congo, The Democratic Republic of the","dial_code":"+243","code":"CD"},{"name":"Cook Islands","dial_code":"+682","code":"CK"},{"name":"Costa Rica","dial_code":"+506","code":"CR"},{"name":"Cote d'Ivoire","dial_code":"+225","code":"CI"},{"name":"Croatia","dial_code":"+385","code":"HR"},{"name":"Cuba","dial_code":"+53","code":"CU"},{"name":"Cyprus","dial_code":"+357","code":"CY"},{"name":"Czech Republic","dial_code":"+420","code":"CZ"},{"name":"Denmark","dial_code":"+45","code":"DK"},{"name":"Djibouti","dial_code":"+253","code":"DJ"},{"name":"Dominica","dial_code":"+1 767","code":"DM"},{"name":"Dominican Republic","dial_code":"+1 849","code":"DO"},{"name":"Ecuador","dial_code":"+593","code":"EC"},{"name":"Egypt","dial_code":"+20","code":"EG"},{"name":"El Salvador","dial_code":"+503","code":"SV"},{"name":"Equatorial Guinea","dial_code":"+240","code":"GQ"},{"name":"Eritrea","dial_code":"+291","code":"ER"},{"name":"Estonia","dial_code":"+372","code":"EE"},{"name":"Ethiopia","dial_code":"+251","code":"ET"},{"name":"Falkland Islands (Malvinas)","dial_code":"+500","code":"FK"},{"name":"Faroe Islands","dial_code":"+298","code":"FO"},{"name":"Fiji","dial_code":"+679","code":"FJ"},{"name":"Finland","dial_code":"+358","code":"FI"},{"name":"France","dial_code":"+33","code":"FR"},{"name":"French Guiana","dial_code":"+594","code":"GF"},{"name":"French Polynesia","dial_code":"+689","code":"PF"},{"name":"Gabon","dial_code":"+241","code":"GA"},{"name":"Gambia","dial_code":"+220","code":"GM"},{"name":"Georgia","dial_code":"+995","code":"GE"},{"name":"Germany","dial_code":"+49","code":"DE"},{"name":"Ghana","dial_code":"+233","code":"GH"},{"name":"Gibraltar","dial_code":"+350","code":"GI"},{"name":"Greece","dial_code":"+30","code":"GR"},{"name":"Greenland","dial_code":"+299","code":"GL"},{"name":"Grenada","dial_code":"+1 473","code":"GD"},{"name":"Guadeloupe","dial_code":"+590","code":"GP"},{"name":"Guam","dial_code":"+1 671","code":"GU"},{"name":"Guatemala","dial_code":"+502","code":"GT"},{"name":"Guernsey","dial_code":"+44","code":"GG"},{"name":"Guinea","dial_code":"+224","code":"GN"},{"name":"Guinea-Bissau","dial_code":"+245","code":"GW"},{"name":"Guyana","dial_code":"+595","code":"GY"},{"name":"Haiti","dial_code":"+509","code":"HT"},{"name":"Holy See (Vatican City State)","dial_code":"+379","code":"VA"},{"name":"Honduras","dial_code":"+504","code":"HN"},{"name":"Hong Kong","dial_code":"+852","code":"HK"},{"name":"Hungary","dial_code":"+36","code":"HU"},{"name":"Iceland","dial_code":"+354","code":"IS"},{"name":"India","dial_code":"+91","code":"IN"},{"name":"Indonesia","dial_code":"+62","code":"ID"}
2,{"name":"Iran, Islamic Republic of","dial_code":"+98","code":"IR"},{"name":"Iraq","dial_code":"+964","code":"IQ"},{"name":"Ireland","dial_code":"+353","code":"IE"},{"name":"Isle of Man","dial_code":"+44","code":"IM"},{"name":"Israel","dial_code":"+972","code":"IL"},{"name":"Italy","dial_code":"+39","code":"IT"},{"name":"Jamaica","dial_code":"+1 876","code":"JM"},{"name":"Japan","dial_code":"+81","code":"JP"},{"name":"Jersey","dial_code":"+44","code":"JE"},{"name":"Jordan","dial_code":"+962","code":"JO"},{"name":"Kazakhstan","dial_code":"+7 7","code":"KZ"},{"name":"Kenya","dial_code":"+254","code":"KE"},{"name":"Kiribati","dial_code":"+686","code":"KI"},{"name":"Korea, Democratic People's Republic of","dial_code":"+850","code":"KP"},{"name":"Korea, Republic of","dial_code":"+82","code":"KR"},{"name":"Kuwait","dial_code":"+965","code":"KW"},{"name":"Kyrgyzstan","dial_code":"+996","code":"KG"},{"name":"Lao People's Democratic Republic","dial_code":"+856","code":"LA"},{"name":"Latvia","dial_code":"+371","code":"LV"},{"name":"Lebanon","dial_code":"+961","code":"LB"},{"name":"Lesotho","dial_code":"+266","code":"LS"},{"name":"Liberia","dial_code":"+231","code":"LR"},{"name":"Libyan Arab Jamahiriya","dial_code":"+218","code":"LY"},{"name":"Liechtenstein","dial_code":"+423","code":"LI"},{"name":"Lithuania","dial_code":"+370","code":"LT"},{"name":"Luxembourg","dial_code":"+352","code":"LU"},{"name":"Macao","dial_code":"+853","code":"MO"},{"name":"Macedonia, The Former Yugoslav Republic of","dial_code":"+389","code":"MK"},{"name":"Madagascar","dial_code":"+261","code":"MG"},{"name":"Malawi","dial_code":"+265","code":"MW"},{"name":"Malaysia","dial_code":"+60","code":"MY"},{"name":"Maldives","dial_code":"+960","code":"MV"},{"name":"Mali","dial_code":"+223","code":"ML"},{"name":"Malta","dial_code":"+356","code":"MT"},{"name":"Marshall Islands","dial_code":"+692","code":"MH"},{"name":"Martinique","dial_code":"+596","code":"MQ"},{"name":"Mauritania","dial_code":"+222","code":"MR"},{"name":"Mauritius","dial_code":"+230","code":"MU"},{"name":"Mayotte","dial_code":"+262","code":"YT"},{"name":"Mexico","dial_code":"+52","code":"MX"},{"name":"Micronesia, Federated States of","dial_code":"+691","code":"FM"},{"name":"Moldova, Republic of","dial_code":"+373","code":"MD"},{"name":"Monaco","dial_code":"+377","code":"MC"},{"name":"Mongolia","dial_code":"+976","code":"MN"},{"name":"Montenegro","dial_code":"+382","code":"ME"},{"name":"Montserrat","dial_code":"+1664","code":"MS"},{"name":"Morocco","dial_code":"+212","code":"MA"},{"name":"Mozambique","dial_code":"+258","code":"MZ"},{"name":"Myanmar","dial_code":"+95","code":"MM"},{"name":"Namibia","dial_code":"+264","code":"NA"},{"name":"Nauru","dial_code":"+674","code":"NR"},{"name":"Nepal","dial_code":"+977","code":"NP"},{"name":"Netherlands","dial_code":"+31","code":"NL"},{"name":"Netherlands Antilles","dial_code":"+599","code":"AN"},{"name":"New Caledonia","dial_code":"+687","code":"NC"},{"name":"New Zealand","dial_code":"+64","code":"NZ"},{"name":"Nicaragua","dial_code":"+505","code":"NI"},{"name":"Niger","dial_code":"+227","code":"NE"},{"name":"Nigeria","dial_code":"+234","code":"NG"},{"name":"Niue","dial_code":"+683","code":"NU"},{"name":"Norfolk Island","dial_code":"+672","code":"NF"},{"name":"Northern Mariana Islands","dial_code":"+1 670","code":"MP"},{"name":"Norway","dial_code":"+47","code":"NO"},{"name":"Oman","dial_code":"+968","code":"OM"},{"name":"Pakistan","dial_code":"+92","code":"PK"},{"name":"Palau","dial_code":"+680","code":"PW"},{"name":"Palestinian Territory, Occupied","dial_code":"+970","code":"PS"},{"name":"Panama","dial_code":"+507","code":"PA"},{"name":"Papua New Guinea","dial_code":"+675","code":"PG"},{"name":"Paraguay","dial_code":"+595","code":"PY"},{"name":"Peru","dial_code":"+51","code":"PE"},{"name":"Philippines","dial_code":"+63","code":"PH"},{"name":"Pitcairn","dial_code":"+872","code":"PN"},{"name":"Poland","dial_code":"+48","code":"PL"},{"name":"Portugal","dial_code":"+351","code":"PT"},{"name":"Puerto Rico","dial_code":"+1 939","code":"PR"},{"name":"Qatar","dial_code":"+974","code":"QA"},{"name":"Romania","dial_code":"+40","code":"RO"},{"name":"Russia","dial_code":"+7","code":"RU"},{"name":"Rwanda","dial_code":"+250","code":"RW"},{"name":"Réunion","dial_code":"+262","code":"RE"},{"name":"Saint Barthélemy","dial_code":"+590","code":"BL"},{"name":"Saint Helena, Ascension and Tristan Da Cunha","dial_code":"+290","code":"SH"},{"name":"Saint Kitts and Nevis","dial_code":"+1 869","code":"KN"},{"name":"Saint Lucia","dial_code":"+1 758","code":"LC"},{"name":"Saint Martin","dial_code":"+590","code":"MF"},{"name":"Saint Pierre and Miquelon","dial_code":"+508","code":"PM"},{"name":"Saint Vincent and the Grenadines","dial_code":"+1 784","code":"VC"},{"name":"Samoa","dial_code":"+685","code":"WS"},{"name":"San Marino","dial_code":"+378","code":"SM"},{"name":"Sao Tome and Principe","dial_code":"+239","code":"ST"},{"name":"Saudi Arabia","dial_code":"+966","code":"SA"},{"name":"Senegal","dial_code":"+221","code":"SN"},{"name":"Serbia","dial_code":"+381","code":"RS"},{"name":"Seychelles","dial_code":"+248","code":"SC"},{"name":"Sierra Leone","dial_code":"+232","code":"SL"},{"name":"Singapore","dial_code":"+65","code":"SG"},{"name":"Slovakia","dial_code":"+421","code":"SK"},{"name":"Slovenia","dial_code":"+386","code":"SI"},{"name":"Solomon Islands","dial_code":"+677","code":"SB"},{"name":"Somalia","dial_code":"+252","code":"SO"},{"name":"South Africa","dial_code":"+27","code":"ZA"},{"name":"South Georgia and the South Sandwich Islands","dial_code":"+500","code":"GS"},{"name":"Spain","dial_code":"+34","code":"ES"},{"name":"Sri Lanka","dial_code":"+94","code":"LK"},{"name":"Sudan","dial_code":"+249","code":"SD"},{"name":"Suriname","dial_code":"+597","code":"SR"},{"name":"Svalbard and Jan Mayen","dial_code":"+47","code":"SJ"},{"name":"Swaziland","dial_code":"+268","code":"SZ"},{"name":"Sweden","dial_code":"+46","code":"SE"},{"name":"Switzerland","dial_code":"+41","code":"CH"},{"name":"Syrian Arab Republic","dial_code":"+963","code":"SY"},{"name":"Taiwan","dial_code":"+886","code":"TW"},{"name":"Tajikistan","dial_code":"+992","code":"TJ"},{"name":"Tanzania, United Republic of","dial_code":"+255","code":"TZ"},{"name":"Thailand","dial_code":"+66","code":"TH"},{"name":"Timor-Leste","dial_code":"+670","code":"TL"},{"name":"Togo","dial_code":"+228","code":"TG"},{"name":"Tokelau","dial_code":"+690","code":"TK"},{"name":"Tonga","dial_code":"+676","code":"TO"},{"name":"Trinidad and Tobago","dial_code":"+1 868","code":"TT"},{"name":"Tunisia","dial_code":"+216","code":"TN"},{"name":"Turkey","dial_code":"+90","code":"TR"},{"name":"Turkmenistan","dial_code":"+993","code":"TM"},{"name":"Turks and Caicos Islands","dial_code":"+1 649","code":"TC"},{"name":"Tuvalu","dial_code":"+688","code":"TV"},{"name":"Uganda","dial_code":"+256","code":"UG"},{"name":"Ukraine","dial_code":"+380","code":"UA"},{"name":"United Arab Emirates","dial_code":"+971","code":"AE"},{"name":"United Kingdom","dial_code":"+44","code":"GB"},{"name":"United States","dial_code":"+1","code":"US"},{"name":"Uruguay","dial_code":"+598","code":"UY"},{"name":"Uzbekistan","dial_code":"+998","code":"UZ"},{"name":"Vanuatu","dial_code":"+678","code":"VU"},{"name":"Venezuela, Bolivarian Republic of","dial_code":"+58","code":"VE"},{"name":"Viet Nam","dial_code":"+84","code":"VN"},{"name":"Virgin Islands, British","dial_code":"+1 284","code":"VG"},{"name":"Virgin Islands, U.S.","dial_code":"+1 340","code":"VI"},{"name":"Wallis and Futuna","dial_code":"+681","code":"WF"},{"name":"Yemen","dial_code":"+967","code":"YE"},{"name":"Zambia","dial_code":"+260","code":"ZM"},{"name":"Zimbabwe","dial_code":"+263","code":"ZW"},{"name":"Ã
land Islands","dial_code":"+358","code":"AX"}]`),ane={AC:[{SHP:{_from:`1976-01-01`}}],AD:[{ESP:{_from:`1873-01-01`,_to:`2002-02-28`}},{ADP:{_from:`1936-01-01`,_to:`2001-12-31`}},{FRF:{_from:`1960-01-01`,_to:`2002-02-17`}},{EUR:{_from:`1999-01-01`}}],AE:[{AED:{_from:`1973-05-19`}}],AF:[{AFA:{_from:`1927-03-14`,_to:`2002-12-31`}},{AFN:{_from:`2002-10-07`}}],AG:[{XCD:{_from:`1965-10-06`}}],AI:[{XCD:{_from:`1965-10-06`}}],AL:[{ALK:{_from:`1946-11-01`,_to:`1965-08-16`}},{ALL:{_from:`1965-08-16`}}],AM:[{SUR:{_from:`1961-01-01`,_to:`1991-12-25`}},{RUR:{_from:`1991-12-25`,_to:`1993-11-22`}},{AMD:{_from:`1993-11-22`}}],AO:[{AOK:{_from:`1977-01-08`,_to:`1991-03-01`}},{AON:{_from:`1990-09-25`,_to:`2000-02-01`}},{AOR:{_from:`1995-07-01`,_to:`2000-02-01`}},{AOA:{_from:`1999-12-13`}}],AQ:[{XXX:{_tender:`false`}}],AR:[{ARM:{_from:`1881-11-05`,_to:`1970-01-01`}},{ARL:{_from:`1970-01-01`,_to:`1983-06-01`}},{ARP:{_from:`1983-06-01`,_to:`1985-06-14`}},{ARA:{_from:`1985-06-14`,_to:`1992-01-01`}},{ARS:{_from:`1992-01-01`}}],AS:[{USD:{_from:`1904-07-16`}}],AT:[{ATS:{_from:`1947-12-04`,_to:`2002-02-28`}},{EUR:{_from:`1999-01-01`}}],AU:[{AUD:{_from:`1966-02-14`}}],AW:[{ANG:{_from:`1940-05-10`,_to:`1986-01-01`}},{AWG:{_from:`1986-01-01`}}],AX:[{EUR:{_from:`1999-01-01`}}],AZ:[{SUR:{_from:`1961-01-01`,_to:`1991-12-25`}},{RUR:{_from:`1991-12-25`,_to:`1994-01-01`}},{AZM:{_from:`1993-11-22`,_to:`2006-12-31`}},{AZN:{_from:`2006-01-01`}}],BA:[{YUD:{_from:`1966-01-01`,_to:`1990-01-01`}},{YUN:{_from:`1990-01-01`,_to:`1992-07-01`}},{YUR:{_from:`1992-07-01`,_to:`1993-10-01`}},{BAD:{_from:`1992-07-01`,_to:`1994-08-15`}},{BAN:{_from:`1994-08-15`,_to:`1997-07-01`}},{BAM:{_from:`1995-01-01`}}],BB:[{XCD:{_from:`1965-10-06`,_to:`1973-12-03`}},{BBD:{_from:`1973-12-03`}}],BD:[{INR:{_from:`1835-08-17`,_to:`1948-04-01`}},{PKR:{_from:`1948-04-01`,_to:`1972-01-01`}},{BDT:{_from:`1972-01-01`}}],BE:[{NLG:{_from:`1816-12-15`,_to:`1831-02-07`}},{BEF:{_from:`1831-02-07`,_to:`2002-02-28`}},{BEC:{_tender:`false`,_from:`1970-01-01`,_to:`1990-03-05`}},{BEL:{_tender:`false`,_from:`1970-01-01`,_to:`1990-03-05`}},{EUR:{_from:`1999-01-01`}}],BF:[{XOF:{_from:`1984-08-04`}}],BG:[{BGO:{_from:`1879-07-08`,_to:`1952-05-12`}},{BGM:{_from:`1952-05-12`,_to:`1962-01-01`}},{BGL:{_from:`1962-01-01`,_to:`1999-07-05`}},{BGN:{_from:`1999-07-05`}}],BH:[{BHD:{_from:`1965-10-16`}}],BI:[{BIF:{_from:`1964-05-19`}}],BJ:[{XOF:{_from:`1975-11-30`}}],BL:[{FRF:{_from:`1960-01-01`,_to:`2002-02-17`}},{EUR:{_from:`1999-01-01`}}],BM:[{BMD:{_from:`1970-02-06`}}],BN:[{MYR:{_from:`1963-09-16`,_to:`1967-06-12`}},{BND:{_from:`1967-06-12`}}],BO:[{BOV:{_tender:`false`}},{BOL:{_from:`1863-06-23`,_to:`1963-01-01`}},{BOP:{_from:`1963-01-01`,_to:`1986-12-31`}},{BOB:{_from:`1987-01-01`}}],BQ:[{ANG:{_from:`2010-10-10`,_to:`2011-01-01`}},{USD:{_from:`2011-01-01`}}],BR:[{BRZ:{_from:`1942-11-01`,_to:`1967-02-13`}},{BRB:{_from:`1967-02-13`,_to:`1986-02-28`}},{BRC:{_from:`1986-02-28`,_to:`1989-01-15`}},{BRN:{_from:`1989-01-15`,_to:`1990-03-16`}},{BRE:{_from:`1990-03-16`,_to:`1993-08-01`}},{BRR:{_from:`1993-08-01`,_to:`1994-07-01`}},{BRL:{_from:`1994-07-01`}}],BS:[{BSD:{_from:`1966-05-25`}}],BT:[{INR:{_from:`1907-01-01`}},{BTN:{_from:`1974-04-16`}}],BU:[{BUK:{_from:`1952-07-01`,_to:`1989-06-18`}}],BV:[{NOK:{_from:`1905-06-07`}}],BW:[{ZAR:{_from:`1961-02-14`,_to:`1976-08-23`}},{BWP:{_from:`1976-08-23`}}],BY:[{SUR:{_from:`1961-01-01`,_to:`1991-12-25`}},{RUR:{_from:`1991-12-25`,_to:`1994-11-08`}},{BYB:{_from:`1994-08-01`,_to:`2000-12-31`}},{BYR:{_from:`2000-01-01`,_to:`2017-01-01`}},{BYN:{_from:`2016-07-01`}}],BZ:[{BZD:{_from:`1974-01-01`}}],CA:[{CAD:{_from:`1858-01-01`}}],CC:[{AUD:{_from:`1966-02-14`}}],CD:[{ZRZ:{_from:`1971-10-27`,_to:`1993-11-01`}},{ZRN:{_from:`1993-11-01`,_to:`1998-07-01`}},{CDF:{_from:`1998-07-01`}}],CF:[{XAF:{_from:`1993-01-01`}}],CG:[{XAF:{_from:`1993-01-01`}}],CH:[{CHE:{_tender:`false`}},{CHW:{_tender:`false`}},{CHF:{_from:`1799-03-17`}}],CI:[{XOF:{_from:`1958-12-04`}}],CK:[{NZD:{_from:`1967-07-10`}}],CL:[{CLF:{_tender:`false`}},{CLE:{_from:`1960-01-01`,_to:`1975-09-29`}},{CLP:{_from:`1975-09-29`}}],CM:[{XAF:{_from:`1973-04-01`}}],CN:[{CNY:{_from:`1953-03-01`}},{CNX:{_tender:`false`,_from:`1979-01-01`,_to:`1998-12-31`}},{CNH:{_tender:`false`,_from:`2010-07-19`}}],CO:[{COU:{_tender:`false`}},{COP:{_from:`1905-01-01`}}],CP:[{XXX:{_tender:`false`}}],CR:[{CRC:{_from:`1896-10-26`}}
2],CS:[{YUM:{_from:`1994-01-24`,_to:`2002-05-15`}},{CSD:{_from:`2002-05-15`,_to:`2006-06-03`}},{EUR:{_from:`2003-02-04`,_to:`2006-06-03`}}],CU:[{CUP:{_from:`1859-01-01`}},{USD:{_from:`1899-01-01`,_to:`1959-01-01`}},{CUC:{_from:`1994-01-01`}}],CV:[{PTE:{_from:`1911-05-22`,_to:`1975-07-05`}},{CVE:{_from:`1914-01-01`}}],CW:[{ANG:{_from:`2010-10-10`}}],CX:[{AUD:{_from:`1966-02-14`}}],CY:[{CYP:{_from:`1914-09-10`,_to:`2008-01-31`}},{EUR:{_from:`2008-01-01`}}],CZ:[{CSK:{_from:`1953-06-01`,_to:`1993-03-01`}},{CZK:{_from:`1993-01-01`}}],DD:[{DDM:{_from:`1948-07-20`,_to:`1990-10-02`}}],DE:[{DEM:{_from:`1948-06-20`,_to:`2002-02-28`}},{EUR:{_from:`1999-01-01`}}],DG:[{USD:{_from:`1965-11-08`}}],DJ:[{DJF:{_from:`1977-06-27`}}],DK:[{DKK:{_from:`1873-05-27`}}],DM:[{XCD:{_from:`1965-10-06`}}],DO:[{USD:{_from:`1905-06-21`,_to:`1947-10-01`}},{DOP:{_from:`1947-10-01`}}],DZ:[{DZD:{_from:`1964-04-01`}}],EA:[{EUR:{_from:`1999-01-01`}}],EC:[{ECS:{_from:`1884-04-01`,_to:`2000-10-02`}},{ECV:{_tender:`false`,_from:`1993-05-23`,_to:`2000-01-09`}},{USD:{_from:`2000-10-02`}}],EE:[{SUR:{_from:`1961-01-01`,_to:`1992-06-20`}},{EEK:{_from:`1992-06-21`,_to:`2010-12-31`}},{EUR:{_from:`2011-01-01`}}],EG:[{EGP:{_from:`1885-11-14`}}],EH:[{MAD:{_from:`1976-02-26`}}],ER:[{ETB:{_from:`1993-05-24`,_to:`1997-11-08`}},{ERN:{_from:`1997-11-08`}}],ES:[{ESP:{_from:`1868-10-19`,_to:`2002-02-28`}},{ESB:{_tender:`false`,_from:`1975-01-01`,_to:`1994-12-31`}},{ESA:{_tender:`false`,_from:`1978-01-01`,_to:`1981-12-31`}},{EUR:{_from:`1999-01-01`}}],ET:[{ETB:{_from:`1976-09-15`}}],EU:[{XEU:{_tender:`false`,_from:`1979-01-01`,_to:`1998-12-31`}},{EUR:{_from:`1999-01-01`}}],FI:[{FIM:{_from:`1963-01-01`,_to:`2002-02-28`}},{EUR:{_from:`1999-01-01`}}],FJ:[{FJD:{_from:`1969-01-13`}}],FK:[{FKP:{_from:`1901-01-01`}}],FM:[{JPY:{_from:`1914-10-03`,_to:`1944-01-01`}},{USD:{_from:`1944-01-01`}}],FO:[{DKK:{_from:`1948-01-01`}}],FR:[{FRF:{_from:`1960-01-01`,_to:`2002-02-17`}},{EUR:{_from:`1999-01-01`}}],GA:[{XAF:{_from:`1993-01-01`}}],GB:[{GBP:{_from:`1694-07-27`}}],GD:[{XCD:{_from:`1967-02-27`}}],GE:[{SUR:{_from:`1961-01-01`,_to:`1991-12-25`}},{RUR:{_from:`1991-12-25`,_to:`1993-06-11`}},{GEK:{_from:`1993-04-05`,_to:`1995-09-25`}},{GEL:{_from:`1995-09-23`}}],GF:[{FRF:{_from:`1960-01-01`,_to:`2002-02-17`}},{EUR:{_from:`1999-01-01`}}],GG:[{GBP:{_from:`1830-01-01`}}],GH:[{GHC:{_from:`1979-03-09`,_to:`2007-12-31`}},{GHS:{_from:`2007-07-03`}}],GI:[{GIP:{_from:`1713-01-01`}}],GL:[{DKK:{_from:`1873-05-27`}}],GM:[{GMD:{_from:`1971-07-01`}}],GN:[{GNS:{_from:`1972-10-02`,_to:`1986-01-06`}},{GNF:{_from:`1986-01-06`}}],GP:[{FRF:{_from:`1960-01-01`,_to:`2002-02-17`}},{EUR:{_from:`1999-01-01`}}],GQ:[{GQE:{_from:`1975-07-07`,_to:`1986-06-01`}},{XAF:{_from:`1993-01-01`}}],GR:[{GRD:{_from:`1954-05-01`,_to:`2002-02-28`}},{EUR:{_from:`2001-01-01`}}],GS:[{GBP:{_from:`1908-01-01`}}],GT:[{GTQ:{_from:`1925-05-27`}}],GU:[{USD:{_from:`1944-08-21`}}],GW:[{GWE:{_from:`1914-01-01`,_to:`1976-02-28`}},{GWP:{_from:`1976-02-28`,_to:`1997-03-31`}},{XOF:{_from:`1997-03-31`}}],GY:[{GYD:{_from:`1966-05-26`}}],HK:[{HKD:{_from:`1895-02-02`}}],HM:[{AUD:{_from:`1967-02-16`}}],HN:[{HNL:{_from:`1926-04-03`}}],HR:[{YUD:{_from:`1966-01-01`,_to:`1990-01-01`}},{YUN:{_from:`1990-01-01`,_to:`1991-12-23`}},{HRD:{_from:`1991-12-23`,_to:`1995-01-01`}},{HRK:{_from:`1994-05-30`}}],HT:[{HTG:{_from:`1872-08-26`}},{USD:{_from:`1915-01-01`}}],HU:[{HUF:{_from:`1946-07-23`}}],IC:[{EUR:{_from:`1999-01-01`}}],ID:[{IDR:{_from:`1965-12-13`}}],IE:[{GBP:{_from:`1800-01-01`,_to:`1922-01-01`}},{IEP:{_from:`1922-01-01`,_to:`2002-02-09`}},{EUR:{_from:`1999-01-01`}}],IL:[{ILP:{_from:`1948-08-16`,_to:`1980-02-22`}},{ILR:{_from:`1980-02-22`,_to:`1985-09-04`}},{ILS:{_from:`1985-09-04`}}],IM:[{GBP:{_from:`1840-01-03`}}],IN:[{INR:{_from:`1835-08-17`}}],IO:[{USD:{_from:`1965-11-08`}}],IQ:[{EGP:{_from:`1920-11-11`,_to:`1931-04-19`}},{INR:{_from:`1920-11-11`,_to:`1931-04-19`}},{IQD:{_from:`1931-04-19`}}],IR:[{IRR:{_from:`1932-05-13`}}],IS:[{DKK:{_from:`1873-05-27`,_to:`1918-12-01`}},{ISJ:{_from:`1918-12-01`,_to:`1981-01-01`}},{ISK:{_from:`1981-01-01`}}],IT:[{ITL:{_from:`1862-08-24`,_to:`2002-02-28`}},{EUR:{_from:`1999-01-01`}}],JE:[{GBP:{_from:`1837-01-01`}}],JM:[{JMD:{_from:`1969-09-08`}}],JO:[{JOD:{_from:`1950-07-01`}}],JP:[{JPY:{_from:`1871-06-01`}}],KE:[{KES:{_from:`1966-09-14`}}],KG:[{SUR:{_from:`1961-01-01`,_to:`1991-12-25`}},{RUR:{_from:`1991-12-25`,_to:`1993-05-10`}},{KGS:{_from:`1993-05-10`}}],KH:[{KHR:{_from:`1980-03-20`}}],KI:[{AUD:{_from:`1966-02-14`}}],KM:[{KMF:{_from:`1975-07-06`}}],KN:[{XCD:{_from:`1965-10-06`}}],KP:[{KPW:{_from:`1959-04-17`}}],KR:[{KRO:{_from:`1945-08-15`,_to:`1953-02-15`}},{KRH:{_from:`1953-02-15`,_to:`1962-06-10`}},{KRW:{_from:`1962-06-10`}}],KW:[{KWD:{_from:`1961-04-01`}}],KY:[{JMD:{_from:`1969-09-08`,_to:`1971-01-01`}},{KYD:{_from:`1971-01-01`}}],KZ:[{KZT:{_from:`1993-11-05`}}],LA:[{LAK:{_from:`1979-12-10`}}],LB:[{LBP:{_from:`1948-02-02`}}],LC:[{XCD:{_from:`1965-10-06`}}],LI:[{CHF:{_from:`1921-02-01`}}],LK:[{LKR:{_from:`1978-05-22`}}],LR:[{LRD:{_from:`1944-01-01`}}],LS:[{ZAR:{_from:`1961-02-14`}},{LSL:{_from:`1980-01-22`}}],LT:[{SUR:{_from:`1961-01-01`,_to:`1992-10-01`}},{LTT:{_from:`1992-10-01`,_to:`1993-06-25`}},{LTL:{_from:`1993-06-25`,_to:`2014-12-31`}},{EUR:{_from:`2015-01-01`}}],LU:[{LUF:{_from:`1944-09-04`,_to:`2002-02-28`}},{LUC:{_tender:`false`,_from:`1970-01-01`,_to:`1990-03-05`}},{LUL:{_tender:`false`,_from:`1970-01-01`,_to:`1990-03-05`}},{EUR:{_from:`1999-01-01`}}],LV:[{SUR:{_from:`1961-01-01`,_to:`1992-07-20`}},{LVR:{_from:`1992-05-07`,_to:`1993-10-17`}},{LVL:{_from:`1993-06-28`,_to:`2013-12-31`}},{EUR:{_from:`2014-01-01`}}],LY:[{LYD:{_from:`1971-09-01`}}],MA:[{MAF:{_from:`1881-01-01`,_to:`1959-10-17`}},{MAD:{_from:`1959-10-17`}}],MC:[{FRF:{_from:`1960-01-01`,_to:`2002-02-17`}},{MCF:{_from:`1960-01-01`,_to:`2002-02-17`}},{EUR:{_from:`1999-01-01`}}],MD:[{MDC:{_from:`1992-06-01`,_to:`1993-11-29`}},{MDL:{_from:`1993-11-29`}}],ME:[{YUM:{_from:`1994-01-24`,_to:`2002-05-15`}},{DEM:{_from:`1999-10-02`,_to:`2002-05-15`}},{EUR:{_from:`2002-01-01`}}],MF:[{FRF:{_from:`1960-01-01`,_to:`2002-02-17`}},{EUR:{_from:`1999-01-01`}}],MG:[{MGF:{_from:`1963-07-01`,_to:`2004-12-31`}},{MGA:{_from:`1983-11-01`}}],MH:[{USD:{_from:`1944-01-01`}}],MK:[{MKN:{_from:`1992-04-26`,_to:`1993-05-20`}},{MKD:{_from:`1993-05-20`}}],ML:[{XOF:{_from:`1958-11-24`,_to:`1962-07-02`}},{MLF:{_from:`1962-07-02`,_to:`1984-08-31`}},{XOF:{_from:`1984-06-01`}}],MM:[{BUK:{_from:`1952-07-01`,_to:`1989-06-18`}},{MMK:{_from:`1989-06-18`}}],MN:[{MNT:{_from:`1915-03-01`}}],MO:[{MOP:{_from:`1901-01-01`}}],MP:[{USD:{_from:`1944-01-01`}}],MQ:[{FRF:{_from:`1960-01-01`,_to:`2002-02-17`}},{EUR:{_from:`1999-01-01`}}],MR:[{XOF:{_from:`1958-11-28`,_to:`1973-06-29`}},{MRO:{_from:`1973-06-29`}}],MS:[{XCD:{_from:`1967-02-27`}}],MT:[{MTP:{_from:`1914-08-13`,_to:`1968-06-07`}},{MTL:{_from:`1968-06-07`,_to:`2008-01-31`}},{EUR:{_from:`2008-01-01`}}],MU:[{MUR:{_from:`1934-04-01`}}],MV:[{MVR:{_from:`1981-07-01`}}],MW:[{MWK:{_from:`1971-02-15`}}],MX:[{MXV:{_tender:`false`}},{MXP:{_from:`1822-01-01`,_to:`1992-12-31`}},{MXN:{_from:`1993-01-01`}}],MY:[{MYR:{_from:`1963-09-16`}}],MZ:[{MZE:{_from:`1975-06-25`,_to:`1980-06-16`}},{MZM:{_from:`1980-06-16`,_to:`2006-12-31`}},{MZN:{_from:`2006-07-01`}}],NA:[{ZAR:{_from:`1961-02-14`}},{NAD:{_from:`1993-01-01`}}],NC:[{XPF:{_from:`1985-01-01`}}],NE:[{XOF:{_from:`1958-12-19`}}],NF:[{AUD:{_from:`1966-02-14`}}],NG:[{NGN:{_from:`1973-01-01`}}],NI:[{NIC:{_from:`1988-02-15`,_to:`1991-04-30`}},{NIO:{_from:`1991-04-30`}}],NL:[{NLG:{_from:`1813-01-01`,_to:`2002-02-28`}},{EUR:{_from:`1999-01-01`}}],NO:[{SEK:{_from:`1873-05-27`,_to:`1905-06-07`}},{NOK:{_from:`1905-06-07`}}],NP:[{INR:{_from:`1870-01-01`,_to:`1966-10-17`}},{NPR:{_from:`1933-01-01`}}],NR:[{AUD:{_from:`1966-02-14`}}],NU:[{NZD:{_from:`1967-07-10`}}],NZ:[{NZD:{_from:`1967-07-10`}}],OM:[{OMR:{_from:`1972-11-11`}}],PA:[{PAB:{_from:`1903-11-04`}},{USD:{_from:`1903-11-18`}}],PE:[{PES:{_from:`1863-02-14`,_to:`1985-02-01`}},{PEI:{_from:`1985-02-01`,_to:`1991-07-01`}},{PEN:{_from:`1991-07-01`}}],PF:[{XPF:{_from:`1945-12-26`}}
2],PG:[{AUD:{_from:`1966-02-14`,_to:`1975-09-16`}},{PGK:{_from:`1975-09-16`}}],PH:[{PHP:{_from:`1946-07-04`}}],PK:[{INR:{_from:`1835-08-17`,_to:`1947-08-15`}},{PKR:{_from:`1948-04-01`}}],PL:[{PLZ:{_from:`1950-10-28`,_to:`1994-12-31`}},{PLN:{_from:`1995-01-01`}}],PM:[{FRF:{_from:`1972-12-21`,_to:`2002-02-17`}},{EUR:{_from:`1999-01-01`}}],PN:[{NZD:{_from:`1969-01-13`}}],PR:[{ESP:{_from:`1800-01-01`,_to:`1898-12-10`}},{USD:{_from:`1898-12-10`}}],PS:[{JOD:{_from:`1950-07-01`,_to:`1967-06-01`}},{ILP:{_from:`1967-06-01`,_to:`1980-02-22`}},{ILS:{_from:`1985-09-04`}},{JOD:{_from:`1996-02-12`}}],PT:[{PTE:{_from:`1911-05-22`,_to:`2002-02-28`}},{EUR:{_from:`1999-01-01`}}],PW:[{USD:{_from:`1944-01-01`}}],PY:[{PYG:{_from:`1943-11-01`}}],QA:[{QAR:{_from:`1973-05-19`}}],RE:[{FRF:{_from:`1975-01-01`,_to:`2002-02-17`}},{EUR:{_from:`1999-01-01`}}],RO:[{ROL:{_from:`1952-01-28`,_to:`2006-12-31`}},{RON:{_from:`2005-07-01`}}],RS:[{YUM:{_from:`1994-01-24`,_to:`2002-05-15`}},{CSD:{_from:`2002-05-15`,_to:`2006-10-25`}},{RSD:{_from:`2006-10-25`}}],RU:[{RUR:{_from:`1991-12-25`,_to:`1998-12-31`}},{RUB:{_from:`1999-01-01`}}],RW:[{RWF:{_from:`1964-05-19`}}],SA:[{SAR:{_from:`1952-10-22`}}],SB:[{AUD:{_from:`1966-02-14`,_to:`1978-06-30`}},{SBD:{_from:`1977-10-24`}}],SC:[{SCR:{_from:`1903-11-01`}}],SD:[{EGP:{_from:`1889-01-19`,_to:`1958-01-01`}},{GBP:{_from:`1889-01-19`,_to:`1958-01-01`}},{SDP:{_from:`1957-04-08`,_to:`1998-06-01`}},{SDD:{_from:`1992-06-08`,_to:`2007-06-30`}},{SDG:{_from:`2007-01-10`}}],SE:[{SEK:{_from:`1873-05-27`}}],SG:[{MYR:{_from:`1963-09-16`,_to:`1967-06-12`}},{SGD:{_from:`1967-06-12`}}],SH:[{SHP:{_from:`1917-02-15`}}],SI:[{SIT:{_from:`1992-10-07`,_to:`2007-01-14`}},{EUR:{_from:`2007-01-01`}}],SJ:[{NOK:{_from:`1905-06-07`}}],SK:[{CSK:{_from:`1953-06-01`,_to:`1992-12-31`}},{SKK:{_from:`1992-12-31`,_to:`2009-01-01`}},{EUR:{_from:`2009-01-01`}}],SL:[{GBP:{_from:`1808-11-30`,_to:`1966-02-04`}},{SLL:{_from:`1964-08-04`}}],SM:[{ITL:{_from:`1865-12-23`,_to:`2001-02-28`}},{EUR:{_from:`1999-01-01`}}],SN:[{XOF:{_from:`1959-04-04`}}],SO:[{SOS:{_from:`1960-07-01`}}],SR:[{NLG:{_from:`1815-11-20`,_to:`1940-05-10`}},{SRG:{_from:`1940-05-10`,_to:`2003-12-31`}},{SRD:{_from:`2004-01-01`}}],SS:[{SDG:{_from:`2007-01-10`,_to:`2011-09-01`}},{SSP:{_from:`2011-07-18`}}],ST:[{STD:{_from:`1977-09-08`,_to:`2017-12-31`}},{STN:{_from:`2018-01-01`}}],SU:[{SUR:{_from:`1961-01-01`,_to:`1991-12-25`}}],SV:[{SVC:{_from:`1919-11-11`,_to:`2001-01-01`}},{USD:{_from:`2001-01-01`}}],SX:[{ANG:{_from:`2010-10-10`}}],SY:[{SYP:{_from:`1948-01-01`}}],SZ:[{SZL:{_from:`1974-09-06`}}],TA:[{GBP:{_from:`1938-01-12`}}],TC:[{USD:{_from:`1969-09-08`}}],TD:[{XAF:{_from:`1993-01-01`}}],TF:[{FRF:{_from:`1959-01-01`,_to:`2002-02-17`}},{EUR:{_from:`1999-01-01`}}],TG:[{XOF:{_from:`1958-11-28`}}],TH:[{THB:{_from:`1928-04-15`}}],TJ:[{RUR:{_from:`1991-12-25`,_to:`1995-05-10`}},{TJR:{_from:`1995-05-10`,_to:`2000-10-25`}},{TJS:{_from:`2000-10-26`}}],TK:[{NZD:{_from:`1967-07-10`}}],TL:[{TPE:{_from:`1959-01-02`,_to:`2002-05-20`}},{IDR:{_from:`1975-12-07`,_to:`2002-05-20`}},{USD:{_from:`1999-10-20`}}],TM:[{SUR:{_from:`1961-01-01`,_to:`1991-12-25`}},{RUR:{_from:`1991-12-25`,_to:`1993-11-01`}},{TMM:{_from:`1993-11-01`,_to:`2009-01-01`}},{TMT:{_from:`2009-01-01`}}],TN:[{TND:{_from:`1958-11-01`}}],TO:[{TOP:{_from:`1966-02-14`}}],TP:[{TPE:{_from:`1959-01-02`,_to:`2002-05-20`}},{IDR:{_from:`1975-12-07`,_to:`2002-05-20`}}],TR:[{TRL:{_from:`1922-11-01`,_to:`2005-12-31`}},{TRY:{_from:`2005-01-01`}}],TT:[{TTD:{_from:`1964-01-01`}}],TV:[{AUD:{_from:`1966-02-14`}}],TW:[{TWD:{_from:`1949-06-15`}}],TZ:[{TZS:{_from:`1966-06-14`}}],UA:[{SUR:{_from:`1961-01-01`,_to:`1991-12-25`}},{RUR:{_from:`1991-12-25`,_to:`1992-11-13`}},{UAK:{_from:`1992-11-13`,_to:`1993-10-17`}},{UAH:{_from:`1996-09-02`}}],UG:[{UGS:{_from:`1966-08-15`,_to:`1987-05-15`}},{UGX:{_from:`1987-05-15`}}],UM:[{USD:{_from:`1944-01-01`}}],US:[{USN:{_tender:`false`}},{USS:{_tender:`false`,_to:`2014-03-01`}},{USD:{_from:`1792-01-01`}}],UY:[{UYI:{_tender:`false`}},{UYP:{_from:`1975-07-01`,_to:`1993-03-01`}},{UYU:{_from:`1993-03-01`}}],UZ:[{UZS:{_from:`1994-07-01`}}],VA:[{ITL:{_from:`1870-10-19`,_to:`2002-02-28`}},{EUR:{_from:`1999-01-01`}}],VC:[{XCD:{_from:`1965-10-06`}}],VE:[{VEB:{_from:`1871-05-11`,_to:`2008-06-30`}},{VEF:{_from:`2008-01-01`}}],VG:[{USD:{_from:`1833-01-01`}},{GBP:{_from:`1833-01-01`,_to:`1959-01-01`}}],VI:[{USD:{_from:`1837-01-01`}}],VN:[{VNN:{_from:`1978-05-03`,_to:`1985-09-14`}},{VND:{_from:`1985-09-14`}}],VU:[{VUV:{_from:`1981-01-01`}}],WF:[{XPF:{_from:`1961-07-30`}}
2],WS:[{WST:{_from:`1967-07-10`}}],XK:[{YUM:{_from:`1994-01-24`,_to:`1999-09-30`}},{DEM:{_from:`1999-09-01`,_to:`2002-03-09`}},{EUR:{_from:`2002-01-01`}}],YD:[{YDD:{_from:`1965-04-01`,_to:`1996-01-01`}}],YE:[{YER:{_from:`1990-05-22`}}],YT:[{KMF:{_from:`1975-01-01`,_to:`1976-02-23`}},{FRF:{_from:`1976-02-23`,_to:`2002-02-17`}},{EUR:{_from:`1999-01-01`}}],YU:[{YUD:{_from:`1966-01-01`,_to:`1990-01-01`}},{YUN:{_from:`1990-01-01`,_to:`1992-07-24`}},{YUM:{_from:`1994-01-24`,_to:`2002-05-15`}}],ZA:[{ZAR:{_from:`1961-02-14`}}],ZM:[{ZMK:{_from:`1968-01-16`,_to:`2013-01-01`}},{ZMW:{_from:`2013-01-01`}}],ZR:[{ZRZ:{_from:`1971-10-27`,_to:`1993-11-01`}},{ZRN:{_from:`1993-11-01`,_to:`1998-07-31`}}],ZW:[{RHD:{_from:`1970-02-17`,_to:`1980-04-18`}},{ZWD:{_from:`1980-04-18`,_to:`2008-08-01`}},{ZWR:{_from:`2008-08-01`,_to:`2009-02-02`}},{ZWL:{_from:`2009-02-02`,_to:`2009-04-12`}},{USD:{_from:`2009-04-12`}}],ZZ:[{XAG:{_tender:`false`}},{XAU:{_tender:`false`}},{XBA:{_tender:`false`}},{XBB:{_tender:`false`}},{XBC:{_tender:`false`}},{XBD:{_tender:`false`}},{XDR:{_tender:`false`}},{XPD:{_tender:`false`}},{XPT:{_tender:`false`}},{XSU:{_tender:`false`}},{XTS:{_tender:`false`}},{XUA:{_tender:`false`}},{XXX:{_tender:`false`}},{XRE:{_tender:`false`,_to:`1999-11-30`}},{XFU:{_tender:`false`,_to:`2013-11-30`}},{XFO:{_tender:`false`,_from:`1930-01-01`,_to:`2003-04-01`}}]},Wl=Ul.map(e=>({title:`${e.name} ${e.dial_code}`,value:e.dial_code}));Ul.map(e=>({title:e.dial_code,value:e.dial_code})).sort((e,t)=>e.title>t.title?1:-1);function Gl(e){let t=ane[e];if(!t)return;let n=t[t.length-1];if(n)return Object.keys(n)[0]}function Kl(e){let t=String(e||``).split(`+`);return t.length===2?`+${t[1]}`:``}function ql(e,t){for(let t of Ul)if(t.code===e)return t.dial_code;return t}var one={"America/New_York":`US`,"America/Chicago":`US`,"America/Denver":`US`,"America/Los_Angeles":`US`,"America/Phoenix":`US`,"America/Anchorage":`US`,"America/Honolulu":`US`,"America/Toronto":`CA`,"America/Vancouver":`CA`,"America/Montreal":`CA`,"America/Edmonton":`CA`,"America/Halifax":`CA`,"America/Winnipeg":`CA`,"America/Mexico_City":`MX`,"America/Tijuana":`MX`,"America/Sao_Paulo":`BR`,"America/Argentina/Buenos_Aires":`AR`,"America/Bogota":`CO`,"America/Lima":`PE`,"America/Santiago":`CL`,"America/Caracas":`VE`,"Europe/London":`GB`,"Europe/Dublin":`IE`,"Europe/Paris":`FR`,"Europe/Berlin":`DE`,"Europe/Madrid":`ES`,"Europe/Rome":`IT`,"Europe/Amsterdam":`NL`,"Europe/Brussels":`BE`,"Europe/Vienna":`AT`,"Europe/Zurich":`CH`,"Europe/Stockholm":`SE`,"Europe/Oslo":`NO`,"Europe/Copenhagen":`DK`,"Europe/Helsinki":`FI`,"Europe/Warsaw":`PL`,"Europe/Prague":`CZ`,"Europe/Budapest":`HU`,"Europe/Lisbon":`PT`,"Europe/Athens":`GR`,"Europe/Istanbul":`TR`,"Europe/Moscow":`RU`,"Europe/Kyiv"
2:`UA`,"Europe/Kiev":`UA`,"Europe/Bucharest":`RO`,"Asia/Tokyo":`JP`,"Asia/Shanghai":`CN`,"Asia/Hong_Kong":`HK`,"Asia/Singapore":`SG`,"Asia/Seoul":`KR`,"Asia/Taipei":`TW`,"Asia/Bangkok":`TH`,"Asia/Manila":`PH`,"Asia/Jakarta":`ID`,"Asia/Kuala_Lumpur":`MY`,"Asia/Ho_Chi_Minh":`VN`,"Asia/Kolkata":`IN`,"Asia/Calcutta":`IN`,"Asia/Karachi":`PK`,"Asia/Dubai":`AE`,"Asia/Riyadh":`SA`,"Asia/Jerusalem":`IL`,"Asia/Tel_Aviv":`IL`,"Australia/Sydney":`AU`,"Australia/Melbourne":`AU`,"Australia/Brisbane":`AU`,"Australia/Perth":`AU`,"Australia/Adelaide":`AU`,"Pacific/Auckland":`NZ`,"Africa/Cairo":`EG`,"Africa/Johannesburg":`ZA`,"Africa/Lagos":`NG`,"Africa/Nairobi":`KE`};function Jl(e){return!!e&&Ul.some(t=>t.code===e)}function sne(){try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone,t=e&&one[e];if(Jl(t))return t}catch{}if(typeof navigator>`u`)return null;let e=navigator.languages?.length?navigator.languages:[navigator.language];for(let t of e)if(t)try{let{region:e}=new Intl.Locale(t);if(Jl(e))return e}catch{}return null}function Yl(){return sne()}function Xl(){function e(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return`${e()+e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}var cne=e=>{let t=!1;return{promise:new Promise((n,r)=>{e.then(e=>t?r({isCanceled:!0}):n(e),e=>r(t?{isCanceled:!0}:e))}),cancel(){t=!0}}},lne=Wi(),Zl=(e,t,n)=>new Promise((r,i)=>{let a=`https://maps.googleapis.com/maps/api/timezone/json?location=${e},${t}×tamp=${Math.floor(Date.now()/1e3)}&language=${n}&key=${lne.GOOGLE_MAPS_KEY}`;fetch(a).then(e=>{let t=e.json();if(t.errorMessage)throw t;r(t)}).catch(e=>i(e))});function une(e){return new Promise((t,n)=>{try{new window.google.maps.Geocoder().geocode({address:e},(e,r)=>{r===`OK`?t({data:{results:e}}):n(r)})}catch(e){n(e)}})}function Ql(e){return/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e?.trim())}function $l(e){let t=String(e||``)?.trim();return t?.length>=6&&t?.length<=15&&/^[0-9+\-() ]*$/.test(t)}var eu=e=>typeof e==`string`?e.length<ao.passwordLength?{status:!1,message:U(`package.signup.error.min_8_characters`)}:(e.match(/[A-Z]/g)||[]).length<ao.uppercase?{status:!1,message:U(`package.signup.error.must_contain_one_uppercase_character`)}:(e.match(/[a-z]/g)||[]).length<ao.lowercase?{status:!1,message:U(`package.signup.error.must_contain_one_lowercase_character`)}:(e.match(/[0-9]/g)||[]).length<ao.number?{status:!1,message:U(`package.signup.error.must_contain_one_numeral`)}:(e.match(/[!@#$%^&*()-+~`;:'"_+,<.>/?|]/g)||[]).length<ao.special?{status:!1,message:U(`package.signup.error.must_contain_one_special_character`)}:(e.match(/\p{ASCII}/gu)||[]).length===e.length?{status:!0,message:``}:{status:!1,message:U(`package.signup.error.must_only_contain_ascii_characters`)}:{status:!1,message:U(`package.signup.error.isrequired`)},tu=e=>/([\w+]+\:\/\/)?([\w\d-]+\.)*[\w-]+[\.\:]\w+([\/\?\=\&\#.]?[\w-]+)*\/?/gm.test(e),nu={PROFILE_PICTURE:`t_profileMedium`,SMALL_LARGE:`t_smallLarge`,LARGE:`t_largeLarge`,SMALL:`t_small`,ORIGINAL:``},ru={maxSize:20971520,minSize:10240};function iu(e,t,n,r=null){let i=t?`/${t}`:``,a=n||`jpg`;return r&&r.length>0&&e?`https://images.getproperly.com${i}/${e}.${a}?text=${r}`:e&&`https://images.getproperly.com${i}/${e}.${a}`}function au(e,t){let n=iu(e,t);return n&&{backgroundImage:`url(${n})`}||{}}function ou(e){return e?iu(e,nu.PROFILE_PICTURE):``}var dne=async(e,t)=>{try{let n=async e=>{let t=await(await fetch(e)).blob();return URL.createObjectURL(t)},r=document.createElement(`a`);r.href=await n(e),r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}catch(e){throw alert(U(`signup.error.cloud_code_error`)),e}};function su(e){return()=>{setTimeout(()=>{document.title=e?`${U(e)} | Properly`:`Properly`},0)}}function cu(e,t){let n=t,r=e,i,a,o=n.charAt(0),s=`classList`in document.documentElement;for(o===`[`&&(n=n.substr(1,n.length-2),a=n.split(`=`),a.length>1&&(i=!0,a[1]=a[1].replace(/"/g,``).replace(/'/g,``)));r&&r!==document&&r.nodeType===1;r=r.parentNode){if(o===`.`){if(s){if(r.classList.contains(n.substr(1)))return r}else if(RegExp(`(^|\\s)${n.substr(1)}(\\s|$)`).test(r.className))return r}if(o===`#`&&r.id===n.substr(1))return r;if(o===`[`&&r.hasAttribute(a[0]))if(i){if(r.getAttribute(a[0])===a[1])return r}else return r;if(r.tagName.toLowerCase()===n)return r}return null}function lu(e){window.open(e)}function uu(e){window.open(e,`_blank`)}function du(e){window.location=e}var fu;function pu(e){if(!fu&&fu!==0||e){let e=document.createElement(`div`);e.style.position=`absolute`,e.style.top=`-9999px`,e.style.width=`50px`,e.style.height=`50px`,e.style.overflow=`scroll`,document.body.appendChild(e),fu=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return fu}function mu(e){return new Promise((t,n)=>{let r=document.createElement(`script`);r.type=`text/javascript`,r.async=!1,r.src=e,r.addEventListener(`load`,t),r.addEventListener(`error`,()=>n(Error(`Error loading script.`))),r.addEventListener(`abort`,()=>n(Error(`Script loading aborted.`))),document.head.appendChild(r)})}var hu=!1;function gu(e){window.Intercom&&!hu&&(R.default.info(`updateIntercom - userid`,e),window.Intercom(`update`,{user_id:e}))}function _u(){window.Intercom&&window.Intercom(`update`,{hide_default_lau
2ncher:!0})}function vu(){window.Intercom&&window.Intercom(`update`,{hide_default_launcher:!1})}function yu(e){window.Intercom&&(e&&(hu=!0),R.default.info(`updateIntercom - shutdown`),window.Intercom(`shutdown`))}function bu(e){window.Intercom&&(R.default.info(`updateIntercom - openIntercomWithMsg`),window.Intercom(`showNewMessage`,e))}function xu(){window.Intercom&&window.Intercom(`showNewMessage`)}var Su=e=>{hu=!1,vu(),R.default.info(`updateIntercom - userid`,e),window.Intercom(`update`,{user_id:e})};function Cu(){return!(`ontouchstart`in document.documentElement)}function wu(){return window.window.innerWidth<1024}function Tu(){return wu()&&!Cu()}function Eu(e){switch(e){case`lock`:case`lockoff`:return{icon:`IcPinLock`,title:U(`checklist.lock`),symbol:`lock`};case`unlockoff`:case`unlock`:return{icon:`IcPinUnlock`,title:U(`checklist.unlock`),symbol:`unlock`};case`look`:return{icon:`IcPinFind`,title:U(`checklist.find`),symbol:`look`};case`moreoff`:case`custom`:return{icon:`IcPinCustom`,title:U(`checklist.custom`),symbol:`custom`};case`stripandreplace`:return{icon:`IcPinStripreplace`,title:U(`checklist.strip`),symbol:`stripandreplace`};case`laundry`:case`launder`:return{icon:`IcPinWash`,title:U(`checklist.wash`),symbol:`launder`};case`iron`:return{icon:`IcPinIron`,title:U(`checklist.iron`),symbol:`iron`};case`vacuum`:return{icon:`IcPinVacuum`,title:U(`checklist.vacuum`),symbol:`vacuum`};case`sweep`:return{icon:`IcPinSweep`,title:U(`checklist.sweep`),symbol:`sweep`};case`wipe`:return{icon:`IcPinWipe`,title:U(`checklist.wipe`),symbol:`wipe`};case`mop`:return{icon:`IcPinMop`,title:U(`checklist.mop`),symbol:`mop`};case`dust`:return{icon:`IcPinDust`,title:U(`checklist.dust`),symbol:`dust`};case`lighton`:return{icon:`IcPinLighton`,title:U(`checklist.lighton`),symbol:`lighton`};case`water`:return{icon:`IcPinWater`,title:U(`checklist.water`),symbol:`water`};case`cleanglass`:return{icon:`IcPinCleanglass`,title:U(`checklist.cleanglass`),symbol:`cleanglass`};case`disinfect`:return{icon:`IcPinDisinfect`,title:U(`checklist.disinfect`),symbol:`disinfect`};case`scrub`:return{icon:`IcPinScrub`,title:U(`checklist.scrub`),symbol:`scrub`};case`emptytrash`:return{icon:`IcPinEmptytrash`,title:U(`checklist.emptytrash`),symbol:`emptytrash`};case`seal`:return{icon:`IcPinSeal`,title:U(`checklist.seal`),symbol:`seal`};case`refill`:return{icon:`IcPinRefill`,title:U(`checklist.refill`),symbol:`refill`};case`stage`:return{icon:`IcPinStage`,title:U(`checklist.stage`),symbol:`stage`};default:return{icon:`IcPinCustom`,title:U(`checklist.custom`),symbol:`custom`}}}function Du(e,t,n){let r=t,i=n,a=`top`,o=e.top+100,s=e.left+20,c=e.right-20;return t<e.left?r=e.left:t>e.right&&(r=e.right),n<e.top?i=e.top:n>e.bottom&&(i=e.bottom),n<o?a=`bottom`:t<s?a=`right`:t>c&&(a=`left`),{x:r,y:i,position:a}}function Ou(){return vi.get(`properlylogging`)||0}var ku=[`UK`,`US`,`GB`,`MM`],Au=e=>e>60?`${Math.floor(e/60)} hrs ${e%60} mins`:`${e} mins`,ju=e=>ku.includes(e)?U(`jobdetails.costs.miles`):U(`jobdetails.costs.kms`),Mu=e=>{let t;if(e){if(e%1!=0)return e.toFixed(2);t=e}else t=0;return t},Nu=(e,t,n)=>{switch(e){case Ka.MILEAGE:return`${Mu(t)} ${ju(n)}`;case Ka.COST:return`${Gl(n)} ${Mu(t)}`;case Ka.DURATION:return Au(Mu(t));default:return null}},Pu=(e,t)=>{let n=e.errors?.[0]?.message;if(!n)return!1;try{return JSON.parse(n).errorCode===t}catch{return!1}},Fu=e(ue()),Iu=window.gtag||Fu.default,Lu=e=>Gi().then(t=>t[e]),Ru=(e,t)=>{R.default.info(`initializeGtag`,{googleAnalyticsTrackingId:e,googleAdwordsTrackingId:t}),Iu(`js`,new Date),Iu(`config`,e),Iu(`config`,t)},zu=(e,t)=>{mu(`https://www.googletagmanager.com/gtag/js?id=${e}`).then(()=>{R.default.info(`Successfully loaded gtm script`),Ru(e,t)}).catch(e=>{R.default.warn(e)})},Bu=()=>{Gi().then(e=>{let t=e.GOOGLE_ANALYTICS_TRACKING_ID,n=e.GOOGLE_ADWORDS_TRACKING_ID;t&&n?zu(t,n):R.default.warn(`Google Analytics or Adwords tracking Id is not found on config`,e)}).catch(e=>{R.default.warn(e)})};typeof requestIdleCallback<`u`?requestIdleCallback(Bu,{timeout:6e3}):setTimeout(Bu,3e3);var Vu=(e,t=``,n={})=>{Lu(`GOOGLE_ANALYTICS_TRACKING_ID`).then(r=>{Iu(`event`,t,{send_to:r,event_category:e,...n})}).catch(e=>{R.default.warn(e)})},Hu=e=>{Lu(`GOOGLE_ANALYTICS_TRACKING_ID`).then(t=>{Iu(`config`,t,{page_path:e})}).catch(e=>{R.default.warn(e)})},Uu=e=>{Lu(e).then(e=>{Iu(`event`,`conversion`,{send_to:e})}).catch(e=>{R.default.warn(e)})},Wu=!0,Gu=null,Ku=Date.now(),qu={PAGE_VIEW:`page_view`,BUTTON_CLICK:`button_click`,ICON_CLICK:`icon_click`,NAVIGATION:`navigation`,FORM_INTERACTION:`form_interaction`,MODAL:`modal`,TAB:`tab`,DROPDOWN:`dropdown`,CHECKBOX:`checkbox`,RADIO:`radio`,DATE_PICKER:`date_picker`,SEARCH:`search`,FILTER:`filter`,UPLOAD:`upload`,DOWNLOAD:`download`,ERROR:`error`,USER_ACTION:`user_action`,UI:`ui`,LISTVIEW:`listview`},Ju={PAGE_ENTER:`page_enter`,PAGE_EXIT:`page_exit`,CLICK:`click`,DOUBLE_CLICK:`double_click`,RIGHT_CLICK:`right_click`,FOCUS:`focus`,BLUR:`blur`,CHANGE:`change`,SUBMIT:`submit`,CLEAR:`clear`,OPEN:`open`,CLOSE:`close`,CONFIRM:`confirm`,CANCEL:`cancel`,TAB_CHANGE:`tab_change`,MENU_OPEN:`menu_open`,MENU_CLOSE:`menu_close`,BACK:`back`,FORWARD:`forward`,SELECT:`select`,DESELECT:`deselect`,TOGGLE:`toggle`,DATE_SELECT:`date_select`,DATE_RANGE_SELECT:`date_range_select`,FILE_UPLOAD:`file_upload`,FILE_DOWNLOAD:`file_download`,EXPAND:`expand`,COLLAPSE:`collapse`,CREATE:`create`,EDIT:`edit`,DELETE:`delete`,SORT:`sort`,FILTER:`filter`,SEARCH:`search`},Yu=e=>{Wu=e,R.default.info(`[Analytics] Tracking ${e?`enabled`:`disabled`}`)},Xu=()=>Wu,Zu=()=>Math.floor((Date.now()-Ku)/1e3),Qu=e=>e&&e.replace(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/gi,`:id`).replace(/[0-9a-f]{24}/gi,`:id`).replace(/\/\d+\//g,`/:id/`).replace(/\/\d+$/g,`/:id`).replace(/\/+$/,``)||`/`,$u=e=>
2{let t=Qu(e).split(`/`).filter(Boolean),n={calendar:`Calendar`,properties:`Properties`,jobs:`Jobs`,contacts:`Contacts`,library:`Library`,checklists:`Checklists`,account:`Account`,settings:`Settings`,reports:`Reports`,todos:`Todos`,permissions:`Permissions`,autoscheduling:`Auto Scheduling`,login:`Login`,checkout:`Checkout`,error:`Error`};if(t.length===0)return`Home`;let r=t[0],i=n[r]||r;if(t.length>2){let e=t[t.length-1];if(e!==`:id`)return`${i} - ${e.charAt(0).toUpperCase()+e.slice(1)}`}return i},ed=(e,t,n={})=>{if(!Wu){R.default.debug(`[Analytics] Tracking disabled, skipping event:`,{category:e,action:t,data:n});return}let r={...n,timestamp:new Date().toISOString(),session_duration:Zu(),page_path:Gu,page_name:$u(Gu)};R.default.info(`[Analytics] Event:`,{category:e,action:t,...r}),Vu(e,t,r),un({category:e,message:t,data:r,level:`info`})},td=(e,t={})=>{if(!Wu)return;let n=Gu;Gu=e;let r={path:e,normalized_path:Qu(e),page_name:$u(e),previous_path:n,referrer:document.referrer||`direct`,...t};R.default.info(`[Analytics] Page View:`,r),Hu(e),ed(qu.PAGE_VIEW,Ju.PAGE_ENTER,r)},nd=(e,t={})=>{ed(qu.BUTTON_CLICK,Ju.CLICK,{button_id:e,button_text:t.text,button_type:t.type,component:t.component,...t})},rd=(e,t={})=>{ed(qu.ICON_CLICK,Ju.CLICK,{icon_id:e,...t})},id=(e,t,n=`link`)=>{ed(qu.NAVIGATION,Ju.CLICK,{from:e,to:t,method:n})},ad=(e,t,n={})=>{ed(qu.TAB,Ju.TAB_CHANGE,{tab_id:e,tab_name:t,...n})},od=(e,t,n={})=>{ed(qu.MODAL,t,{modal_id:e,...n})},sd=(e,t,n={})=>{ed(qu.FORM_INTERACTION,t,{field_id:e,field_type:n.type,field_name:n.name,has_value:n.hasValue,...n})},cd=(e,t,n={})=>{let r=t?Ju.SELECT:Ju.DESELECT;ed(n.isRadio?qu.RADIO:qu.CHECKBOX,r,{field_id:e,selected:t,...n})},ld=(e,t,n={})=>{ed(qu.DROPDOWN,Ju.SELECT,{dropdown_id:e,selected_option:t,...n})},ud=(e,t,n={})=>{ed(qu.DATE_PICKER,Ju.DATE_SELECT,{picker_id:e,date_type:t,...n})},dd=(e,t,n={})=>{ed(qu.SEARCH,Ju.SUBMIT,{search_id:e,query_length:t?.length||0,query:n.includeQuery?t:void 0,...n})},fd=(e,t,n={})=>{ed(qu.FILTER,Ju.CHANGE,{filter_id:e,filter_keys:Object.keys(t||{}),filter_count:Object.keys(t||{}).length,...n})},pd=(e,t,n={})=>{let r=t?Ju.EXPAND:Ju.COLLAPSE;ed(qu.USER_ACTION,r,{element_id:e,expanded:t,...n})},md=(e,t,n={})=>{ed(qu.UPLOAD,Ju.FILE_UPLOAD,{uploader_id:e,file_type:t.type,file_size:t.size,file_count:t.count,...n})},hd=(e,t,n={})=>{ed(qu.ERROR,e,{error_message:t,...n})},gd=(e,t,n={})=>(r,...i)=>{if(nd(t,n),e)return e(r,...i)},_d=e=>e&&(e.getAttribute(`data-testid`)||e.getAttribute(`data-id`)||e.getAttribute(`data-testid`)||e.id||e.getAttribute(`aria-label`)||e.textContent?.trim().substring(0,50)||e.tagName?.toLowerCase())||`unknown`,vd={setAnalyticsEnabled:Yu,isAnalyticsEnabled:Xu,track:ed,trackPageView:td,trackButtonClick:nd,trackIconClick:rd,trackNavigation:id,trackTabChange:ad,trackModal:od,trackFormField:sd,trackSelection:cd,trackDropdownChange:ld,trackDateSelection:ud,trackSearch:dd,trackFilter:fd,trackExpand:pd,trackFileUpload:md,trackError:hd,withClickTracking:gd,getElementTrackingId:_d,normalizePath:Qu,getPageName:$u,ANALYTICS_CATEGORIES:qu,ANALYTICS_ACTIONS:Ju},yd={instant:.1,fast:.15,normal:.2,medium:.3,slow:.5},bd={gentle:{type:`spring`,stiffness:120,damping:14},snappy:{type:`spring`,stiffness:400,damping:30},bouncy:{type:`spring`,stiffness:300,damping:10},stiff:{type:`spring`,stiffness:500,damping:35}},xd={easeOut:[.4,0,.2,1],easeIn:[.4,0,1,1],easeInOut:[.4,0,.2,1]},Sd={initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:bd.snappy},exit:{scale:0,opacity:0,transition:{duration:.1}}},Cd={rest:{scale:1},hover:{scale:1.02},pressed:{scale:.97}},wd={hidden:{opacity:0,scale:.95,y:20},visible:{opacity:1,scale:1,y:0,transition:{type:`spring`,stiffness:300,damping:30}},exit:{opacity:0,scale:.95,y:20}},Td={initial:{opacity:0,y:-50,x:50},animate:{opacity:1,y:0,x:0},exit:{opacity:0,x:100}},Ed=(e,t=.05)=>e*t,Dd=_i.default.bind({button:`_button_ikaon_5`,"new-layout":`_new-layout_ikaon_32`,newLayout:`_new-layout_ikaon_32`,"button--variant-close":`_button--variant-close_ikaon_54`,buttonVariantClose:`_button--variant-close_ikaon_54`,"button--height-32":`_button--height-32_ikaon_66`,buttonHeight32:`_button--height-32_ikaon_66`,"button--height-28":`_button--height-28_ikaon_69`,buttonHeight28:`_button--height-28_ikaon_69`,"button--height-22":`_button--height-22_ikaon_72`,buttonHeight22:`_button--height-22_ikaon_72`,"button--height-36":`_button--height-36_ikaon_75`,buttonHeight36:`_button--height-36_ikaon_75`,"button--pa
2dding-5":`_button--padding-5_ikaon_78`,buttonPadding5:`_button--padding-5_ikaon_78`,"button--height-24":`_button--height-24_ikaon_82`,buttonHeight24:`_button--height-24_ikaon_82`,"button--miheight-50":`_button--miheight-50_ikaon_85`,buttonMiheight50:`_button--miheight-50_ikaon_85`,"button--miheight-62":`_button--miheight-62_ikaon_88`,buttonMiheight62:`_button--miheight-62_ikaon_88`,"button--miwidth-80":`_button--miwidth-80_ikaon_91`,buttonMiwidth80:`_button--miwidth-80_ikaon_91`,"button--miwidth-130":`_button--miwidth-130_ikaon_94`,buttonMiwidth130:`_button--miwidth-130_ikaon_94`,"button--miwidth-0":`_button--miwidth-0_ikaon_97`,buttonMiwidth0:`_button--miwidth-0_ikaon_97`,"button--width-flex":`_button--width-flex_ikaon_100`,buttonWidthFlex:`_button--width-flex_ikaon_100`,"button--fontw-normal":`_button--fontw-normal_ikaon_103`,buttonFontwNormal:`_button--fontw-normal_ikaon_103`,"button--fonts-12":`_button--fonts-12_ikaon_106`,buttonFonts12:`_button--fonts-12_ikaon_106`,"button--fonts-16":`_button--fonts-16_ikaon_109`,buttonFonts16:`_button--fonts-16_ikaon_109`,"button--minwidth-200":`_button--minwidth-200_ikaon_112`,buttonMinwidth200:`_button--minwidth-200_ikaon_112`,"button--flex-1":`_button--flex-1_ikaon_115`,buttonFlex1:`_button--flex-1_ikaon_115`,"button--zindex-11":`_button--zindex-11_ikaon_118`,buttonZindex11:`_button--zindex-11_ikaon_118`,"button--padding-no":`_button--padding-no_ikaon_121`,buttonPaddingNo:`_button--padding-no_ikaon_121`,"button--minwidth-no":`_button--minwidth-no_ikaon_124`,buttonMinwidthNo:`_button--minwidth-no_ikaon_124`,"button--border-rad-no":`_button--border-rad-no_ikaon_127`,buttonBorderRadNo:`_button--border-rad-no_ikaon_127`,"button--background-trans":`_button--background-trans_ikaon_130`,buttonBackgroundTrans:`_button--background-trans_ikaon_130`,"button--border-trans":`_button--border-trans_ikaon_133`,buttonBorderTrans:`_button--border-trans_ikaon_133`,"button--text-left":`_button--text-left_ikaon_136`,buttonTextLeft:`_button--text-left_ikaon_136`,"button--size-extra-small":`_button--size-extra-small_ikaon_141 text-l7m`,buttonSizeExtraSmall:`_button--size-extra-small_ikaon_141 text-l7m`,"button--size-regular":`_button--size-regular_ikaon_148 text-l7m`,buttonSizeRegular:`_button--size-regular_ikaon_148 text-l7m`,"button--size-small":`_button--size-small_ikaon_158 text-l7m`,buttonSizeSmall:`_button--size-small_ikaon_158 text-l7m`,"button--size-badge-large":`_button--size-badge-large_ikaon_165 text-l8m`,buttonSizeBadgeLarge:`_button--size-badge-large_ikaon_165 text-l8m`,"button--size-badge-small":`_button--size-badge-small_ikaon_171 text-l9m`,buttonSizeBadgeSmall:`_button--size-badge-small_ikaon_171 text-l9m`,"button--size-medium":`_button--size-medium_ikaon_178 text-l6m`,buttonSizeMedium:`_button--size-medium_ikaon_178 text-l6m`,"button--size-large":`_button--size-large_ikaon_186 text-l5m`,buttonSizeLarge:`_button--size-large_ikaon_186 text-l5m`,"button--size-full":`_button--size-full_ikaon_194`,buttonSizeFull:`_button--size-full_ikaon_194`,"button--type-full-grey":`_button--type-full-grey_ikaon_201`,buttonTypeFullGrey:`_button--type-full-grey_ikaon_201`,"button--disabled":`_button--disabled_ikaon_205`,buttonDisabled:`_button--disabled_ikaon_205`,"button--hover":`_button--hover_ikaon_205`,buttonHover:`_button--hover_ikaon_205`,"button--type-full-blue":`_button--type-full-blue_ikaon_214`,buttonTypeFullBlue:`_button--type-full-blue_ikaon_214`,"button--type-full-primary":`_button--type-full-primary_ikaon_227`,buttonTypeFullPrimary:`_button--type-full-primary_ikaon_227`,"button--type-full-blue-dark":`_button--type-full-blue-dark_ikaon_231`,buttonTypeFullBlueDark:`_button--type-full-blue-dark_ikaon_231`,"button--type-full-orange":`_button--type-full-orange_ikaon_245`,buttonTypeFullOrange:`_button--type-full-orange_ikaon_245`,"button--type-flat-blue":`_button--type-flat-blue_ikaon_265`,buttonTypeFlatBlue:`_button--type-flat-blue_ikaon_265`,"button--type-flat-black":`_button--type-flat-black_ikaon_276`,buttonTypeFlatBlack:`_button--type-flat-black_ikaon_276`,"button--type-flat-primary":`_button--type-flat-primary_ikaon_287`,buttonTypeFlatPrimary:`_button--type-flat-primary_ikaon_287`,"button--type-border-primary":`_button--type-border-primary_ikaon_297`,buttonTypeBorderPrimary:`_button--type-border-primary_ikaon_297`,"button--type-border-grey":`_button--type-border-grey_ikaon_311`,buttonTypeBorderGrey:`_button--type-border-grey_ikaon_311`,"button--type-border-blue":`_button--type-border-blue_ikaon_325`,buttonTypeBorderBlue:`_button--type-border-blue_ikaon_325`,"button--type-airbnb-full":`_button--type-airbnb-full_ikaon_340`,buttonTypeAirbnbFull:`_button--type-airbnb-full_ikaon_340`,"button--type-delete":`_button--type-delete_ikaon_353`,buttonTypeDelete:`_button--type-delete_ikaon_353`,"button--type-reimport":`_button--type-reimport_ikaon_359`,buttonTypeReimport:`_button--type-reimport_ikaon_359`,"button--type-flat-grey":`_button--type-flat-grey_ikaon_365`,buttonTypeFlatGrey:`_button--type-flat-grey_ikaon_365`,"button--type-flat-white":`_button--type-flat-white_ikaon_373`,buttonTypeFlatWhite:`_button--type-flat-white_ikaon_373`,"button--type-flat-transparent":`_button--type-flat-transparent_ikaon_382`,buttonTypeFlatTransparent:`_button--type-flat-transparent_ikaon_382`,"button--type-full-accepted":`_button--type-full-accepted_ikaon_391`,buttonTypeFullAccepted:`_button--type-full-accepted_ikaon_391`,"button--type-full-pending":`_button--type-full-pending_ikaon_404`,buttonTypeFullPending:`_button--type-full-pending_ikaon_404`,"button--type-full-delayed":`_button--type-full-delayed_ikaon_417`,buttonTypeFullDelayed:`_button--type-full-delayed_ikaon_417`,"button--type-full-cancelled":`_button--type-full-cancelled_
2ikaon_433`,buttonTypeFullCancelled:`_button--type-full-cancelled_ikaon_433`,"button--type-border-accepted":`_button--type-border-accepted_ikaon_446`,buttonTypeBorderAccepted:`_button--type-border-accepted_ikaon_446`,"button--type-border-pending":`_button--type-border-pending_ikaon_460`,buttonTypeBorderPending:`_button--type-border-pending_ikaon_460`,"button--type-border-delayed":`_button--type-border-delayed_ikaon_474`,buttonTypeBorderDelayed:`_button--type-border-delayed_ikaon_474`,"button--type-border-cancelled":`_button--type-border-cancelled_ikaon_488`,buttonTypeBorderCancelled:`_button--type-border-cancelled_ikaon_488`,"button--type-full-primary-job":`_button--type-full-primary-job_ikaon_502`,buttonTypeFullPrimaryJob:`_button--type-full-primary-job_ikaon_502`,"button--no-overflow":`_button--no-overflow_ikaon_514`,buttonNoOverflow:`_button--no-overflow_ikaon_514`,"button--type-nobackground-brandcolor_underline":`_button--type-nobackground-brandcolor_underline_ikaon_519`,buttonTypeNobackgroundBrandcolorUnderline:`_button--type-nobackground-brandcolor_underline_ikaon_519`,"button--type-nobackground-grey_underline":`_button--type-nobackground-grey_underline_ikaon_524`,buttonTypeNobackgroundGreyUnderline:`_button--type-nobackground-grey_underline_ikaon_524`,"button--type-nobackground-grey":`_button--type-nobackground-grey_ikaon_524`,buttonTypeNobackgroundGrey:`_button--type-nobackground-grey_ikaon_524`,"button--type-step-number":`_button--type-step-number_ikaon_543`,buttonTypeStepNumber:`_button--type-step-number_ikaon_543`}),Od=gn.create(`button`),q=e=>{let[t,n]=(0,B.useState)(!1),r=()=>{n(e=>!e)},{types:i=[`size-medium`,`type-flat-primary`],type:a=`button`,disabled:o=!1,onClick:s,fakeDisable:c=!1,styleOverwrite:l,hoverStyleOverwrite:u,children:d,hover:f=!1,isLoading:p=!1,spinnerType:m=`white`,isNewLayout:h=!1,"data-id":g,"data-testid":_}=e,v=(0,H.default)(i,e=>`button--${e}`),y=(0,gi.default)({},l,t?u:{}),b=p?(0,K.jsx)(hf,{type:m}):d,x=(0,B.useMemo)(()=>i?.join(`,`),[i]),S=(0,B.useCallback)(e=>{nd(_||g||(typeof d==`string`?d:`button`),{text:typeof d==`string`?d:void 0,type:x,component:`Button`}),s&&s(e)},[s,_,g,d,x]),C=o||c;return(0,K.jsx)(Od,{type:a||`button`,disabled:o,onClick:S,style:y,onMouseEnter:r,onMouseLeave:r,"data-id":g,"data-testid":_,className:Dd(`button`,{"new-layout":h,"button--disabled":C,"button--hover":f},v),variants:Cd,initial:`rest`,whileHover:C?void 0:`hover`,whileTap:C?void 0:`pressed`,transition:bd.snappy,children:(0,K.jsx)(`span`,{children:(0,K.jsx)(`span`,{children:b})})})};q.propTypes={type:V.default.oneOf([`button`,`submit`]),types:V.default.arrayOf(V.default.string),spinnerType:V.default.string,isNewLayout:V.default.bool,disabled:V.default.bool,onClick:V.default.func,fakeDisable:V.default.bool,styleOverwrite:V.default.object,hoverStyleOverwrite:V.default.object,children:V.default.node,hover:V.default.bool,isLoading:V.default.bool,"data-id":V.default.string,"data-testid":V.default.string};var kd=e(Nee()),Ad=(0,B.memo)(function({items:e,closePopover:t=()=>{},isButton:n=!0,hasDivider:r=!1,isDenseStyle:i=!1,isDarkBackground:a=!1,isLightBackgroun
2d:o=!1,mediumPrimaryText:s=!1,smallPadding:c=!1,styleOverwrite:l={},disableTypography:u=!1,onItemHover:d}){let f=(0,B.useCallback)((e,n=!1)=>{n||t(),e&&e()},[t]);return(0,K.jsx)(Ot,{sx:{padding:0,...i&&{maxHeight:150,overflowY:`scroll`}},children:e.map(e=>(0,K.jsxs)($r,{"data-testid":e[`data-testid`],divider:r,onClick:()=>n?f(e.onClick,e.preventClose):{},onMouseEnter:()=>d&&d(e),sx:{padding:`12px 16px`,transition:`background-color 0.15s ease`,...r&&(a||o)&&{borderBottom:`1px solid rgba(160,170,180,.2)`},...c&&{padding:`8px 16px`},"&:hover":{backgroundColor:`var(--color-black-alpha-5, rgba(0, 0, 0, 0.04))`},...e.isDelete&&{"&:hover":{backgroundColor:`rgba(239, 68, 68, 0.08)`,"& .MuiListItemText-primary":{color:`var(--color-error, #ef4444)`}}}},style:l.buttonBase,children:[e.icon&&(0,K.jsx)(Yr,{sx:{minWidth:44},children:e.icon}),(0,K.jsx)(Tt,{primary:e.name,secondary:e.secondaryName,disableTypography:u,sx:u?{fontSize:`1rem`,lineHeight:1.75,margin:0}:{},slotProps:{primary:{sx:{...i&&{fontSize:`12px`,lineHeight:`14px`,fontWeight:400},...s&&{fontSize:`14px`,lineHeight:`18px`},...a&&{fontSize:`12px`,lineHeight:`14px`,fontWeight:400,color:`white`,padding:`4px 0`},...o&&{fontSize:`12px`,lineHeight:`14px`,fontWeight:400,color:`primary.main`,padding:`4px 0`},...e.isCommunityCleaner&&{color:`var(--color-primary-dark)`},...e.isTitle&&{fontWeight:500}}},secondary:{sx:{fontSize:`12px`,lineHeight:`14px`,fontWeight:400,...i&&{color:`var(--color-gray-700)`},...a&&{color:`white`},...o&&{color:`primary.main`}}}}}),e.endIcon&&e.endIcon]},(0,kd.default)(e.name)))})});Ad.propTypes={closePopover:V.default.func,isButton:V.default.bool,hasDivider:V.default.bool,isDenseStyle:V.default.bool,isDarkBackground:V.default.bool,isLightBackgroun
2d:V.default.bool,mediumPrimaryText:V.default.bool,smallPadding:V.default.bool,disableTypography:V.default.bool,styleOverwrite:V.default.shape({}),onItemHover:V.default.func,items:V.default.arrayOf(V.default.shape({name:V.default.oneOfType([V.default.string,V.default.shape({})]).isRequired,secondaryName:V.default.oneOfType([V.default.string,V.default.shape({})]),icon:V.default.node,endIcon:V.default.node,onClick:V.default.func,preventClose:V.default.bool,hasHoverSubmenu:V.default.bool,isDelete:V.default.bool})).isRequired};var jd=gn.create(_n),Md=({label:e,chipStyle:t={},noOverflow:n=!1,onDelete:r,...i})=>{let a=n?{"& .MuiChip-label":{overflow:`revert`}}:{};return(0,K.jsx)(jd,{label:e,style:t,onDelete:r,whileHover:{scale:1.05},whileTap:{scale:.95},transition:bd.snappy,sx:a,...i})};Md.propTypes={label:V.default.node,chipStyle:V.default.object,noOverflow:V.default.bool,onDelete:V.default.func};var Nd={initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:{...bd.bouncy,opacity:{duration:yd.fast}}}},Pd=({badgeId:e,small:t=!1})=>{let n=t?`small`:`big`,r=t?`24px`:`36px`,i=Fd(e),a=(0,B.useMemo)(()=>Id(e,n),[e,n]);return a?(0,K.jsx)(Ig,{title:i,children:(0,K.jsx)(gn.span,{variants:Nd,initial:`initial`,animate:`animate`,style:{display:`inline-flex`},children:(0,K.jsx)(a,{width:r,byWidth:!0})})}):null};Pd.propTypes={badgeId:V.default.string.isRequired,small:V.default.bool};function Fd(e){switch(e){case`properly101`:return U(`job_request.badges.properly101`);case`loved`:return U(`job_request.badges.loved`);case`fastresponder`:return U(`job_request.badges.fastres`);case`experienced`:return U(`job_request.badges.experienced`);case`punctuality`:return U(`job_request.badges.punctuality`);case`checklistchampion`:return U(`job_request.badges.checklistchampion`);default:return}}function Id(e,t=`small`){if(t===`big`)switch(e){case`properly101`:return Y.IcBadgeProperly101Big;case`loved`:return Y.IcBadgeLovedBig;case`fastresponder`:return Y.IcBadgeFastresponderBig;case`experienced`:return Y.IcBadgeExperiencedBig;case`punctuality`:return Y.IcBadgePunctualBig;case`checklistchampion`:return Y.IcBadgeChecklistBig;default:return}if(t===`small`)switch(e){case`properly101`:return Y.IcBadgeProperly101;case`loved`:return Y.IcBadgeLoved;case`fastresponder`:return Y.IcBadgeFastresponder;case`experienced`:return Y.IcBadgeExperienced;case`punctuality`:return Y.IcBadgePunctual;case`checklistchampion`:return Y.IcBadgeChecklist;default:return}}var Ld={border:`1px solid var(--color-primary)`,color:`var(--color-primary)`,borderRadius:`12px`,display:`inline-block`,padding:`4px 16px`},Rd={background:`var(--color-orange)`,border:`1px solid var(--color-orange)`,color:`var(--color-white)`,fontWeight:700},zd={background:`var(--color-primary)`,border:`1px solid var(--color-primary)`,color:`var(--color-white)`,fontWeight:500},Bd={background:`var(--color-jr-pending)`,border:`1px solid var(--color-jr-pending)`,color:`var(--color-jr-pending-font)`,fontWeight:500},Vd={borderRadius:`2px`},Hd={cursor:`pointer`},Ud={width:`100%`,textAlign:`center`},Wd={padding:`1px 15px`,whiteSpace:`nowrap`},Gd={textAlign:`center`,padding:`0.7px 5px`,whiteSpace:`nowrap`,marginLeft:`10px`},Kd=({children:e,style:t,square:n,isFull:r,isFlex:i,isClickable:a,isEventTag:o,isStatus:s,isFullPrimary:c,isPending:l})=>(0,K.jsx)(I,{style:t,className:[`input-error`,(r||c||l)&&`cut-txt`].filter(Boolean).join(` `),sx:{...Ld,...n&&Vd,...r&&Rd,...i&&Ud,...a&&Hd,...o&&Wd,...s&&Gd,...c&&zd,...l&&Bd},children:e});Kd.propTypes={children:V.default.node};var qd=_i.default.bind({"profile-picture":`_profile-picture_1ijq8_2`,profilePicture:`_profile-picture_1ijq8_2`,"profile-picture-label":`_profile-picture-label_1ijq8_18`,profilePictureLabel:`_profile-picture-label_1ijq8_18`,default:`_default_1ijq8_28`,community:`_community_1ijq8_32`,cleaner:`_cleaner_1ijq8_46`,assignedCleaner:`_assignedCleaner_1ijq8_55`,large:`_large_1ijq8_64`,"xx-large-circle":`_xx-large-circle_1ijq8_71`,xxLargeCircle:`_xx-large-circle_1ijq8_71`,"x-large":`_x-large_1ijq8_79`,xLarge:`_x-large_1ijq8_79`,"square-small":`_square-small_1ijq8_86`,squareSmall:`_square-small_1ijq8_86`,"profile-picture--new-layout":`_profile-picture--new-layout_1ijq8_101`,profilePictureNewLayout:`_profile-picture--new-layout_1ijq8_101`,"profile-picture--inverted-colorscheme":`_profile-picture--inverted-colorscheme_1ijq8_109`,profilePictureInvertedColorscheme:`_profile-picture--inverted-colorscheme_1ijq8_109`,"profile-picture--with-shadow":`_profile-picture--with-shadow_1ijq8_113`,profilePictureWithShadow:`_profile-picture--with-shadow_1ijq8_113`,"profile-picture__new-photo-badge":`_profile-picture__new-photo-badge_1ijq8_131`,profilePictureNewPhotoBadge:`_profile-picture__new-photo-badge_1ijq8_131`,"profile-picture__new-photo-badge-svg":`_profile-picture__new-photo-badge-svg_1ijq8_146`,profilePictureNewPhotoBadgeSvg:`_profile-picture__new-photo-badge-svg_1ijq8_146`,"profile-picture__problem-badge":`_profile-picture__problem-badge_1ijq8_152`,profilePictureProblemBadge:`_profile-picture__problem-badge_1ijq8_152`,"profile-picture__forwarded-job-badge":`_profile-picture__forwarded-job-badge_1ijq8_164`,profilePictureForwardedJobBadge:`_profile-picture__forwarded-job-badge_1ijq8_164`,"profile-picture__problem-badge-svg":`_profile-picture__problem-badge-svg_1ijq8_177`,profilePictureProblemBadgeSvg:`_profile-picture__problem-badge-svg_1ijq8_177`,"profile-picture__problem-badge--margin":`_profile-picture__problem-badge--margin_1ijq8_183`,profilePictureProblemBadgeMargin:`_profile-picture__problem-badge--margin_1ijq8_183`,square:`_square_1ijq8_86 text-type-title-2`}),Jd={rest:{scale:1},hover:{scale:1.1,transition:bd.snappy}},Yd=[[`#FF6B6B`,`#EE5A5A`,!1],[`#4ECDC4`,`#3DBDB5`,!1],[`#45B7D1`,`#3AA7C1`,!1],[`#96CEB4`,`#86BEA4`,!1],[`#F5C563`,`#E5B553`,!0],[`#DDA0DD`,`#CD90CD`,!1],[`#7BC9B8`,`#6BB9A8`,!1],[`#E8A849`,`#D89839`,!0],[`#BB8FCE`,`#AB7FBE`,!1],[`#5BA4D9`,`#4B94C9`,!1],[`#E67E22`,`#D66E12`,!1],[`#16A085`,`#149075`,!1],[`#E74C3C`,`#D73C2C`,!1],[`#9B59B6`,`#8B49A6`,!1],[`#3498DB`,`#2488CB`,!1],[`#1ABC9C`,`#0AAC8C`,!1]],Xd=e=>{if(!e)return Yd[0];let t=e.split(``).reduce((e,t)=>
2t.charCodeAt(0)+((e<<5)-e),0);return Yd[Math.abs(t)%Yd.length]},Zd=e=>{let t=e.split(` `);return t[1]?t[0].substr(0,1)+t[1].substr(0,1):e.substr(0,2)},Qd=({text:e,picture:t,type:n,children:r,isNewLayout:i,extractLetters:a,invertedColorScheme:o,showNewPhotoNotification:s,withShadow:c,showProblemIcon:l,showForwarded:u})=>{if(t){let e={backgroundImage:`url(${iu(t,nu.PROFILE_PICTURE)})`};return(0,K.jsxs)(gn.div,{className:qd(`profile-picture`,n,{"profile-picture--new-layout":i}),style:e,variants:Jd,initial:`rest`,whileHover:`hover`,children:[u&&(0,K.jsx)(`div`,{className:qd(`profile-picture__forwarded-job-badge`),children:(0,K.jsx)(`div`,{className:qd(`profile-picture__problem-badge-svg`),children:(0,K.jsx)(Y.IcSharedwith,{})})}),r,s&&(0,K.jsx)(`div`,{className:qd(`profile-picture__new-photo-badge`),children:(0,K.jsx)(`div`,{className:qd(`profile-picture__new-photo-badge-svg`),children:(0,K.jsx)(Y.IcCameraWhiteFilled,{})})}),l&&(0,K.jsx)(`div`,{className:qd(`profile-picture__problem-badge`),children:(0,K.jsx)(`div`,{className:qd(`profile-picture__problem-badge-svg`,{"profile-picture__problem-badge--margin":s}),children:(0,K.jsx)(Y.IcError1,{})})})]})}let[d,f,p]=Xd(e),m=n===`community`||n===`cleaner`||n===`assignedCleaner`?{background:`linear-gradient(145deg, ${d} 0%, ${f} 100%)`,color:p?`#29333D`:void 0}:void 0;return(0,K.jsxs)(gn.div,{className:qd(`profile-picture`,{"profile-picture--new-layout":i,"profile-picture--inverted-colorscheme":o,"profile-picture--with-shadow":c},n||`default`),style:m,variants:Jd,initial:`rest`,whileHover:`hover`,children:[u&&(0,K.jsx)(`div`,{className:qd(`profile-picture__forwarded-job-badge`),children:(0,K.jsx)(`div`,{className:qd(`profile-picture__problem-badge-svg`),children:(0,K.jsx)(Y.IcSharedwith,{})})}),(0,K.jsx)(`div`,{className:qd(`profile-picture-label`),children:a?Zd(e):e}),r,s&&(0,K.jsx)(`div`,{className:qd(`profile-picture__new-photo-badge`),children:(0,K.jsx)(`div`,{className:qd(`profile-picture__new-photo-badge-svg`),children:(0,K.jsx)(Y.IcCameraWhiteFilled,{})})}),l&&(0,K.jsx)(`div`,{className:qd(`profile-picture__problem-badge`),children:(0,K.jsx)(`div`,{className:qd(`profile-picture__problem-badge-svg`,{"profile-picture__problem-badge--margin":s}),children:(0,K.jsx)(Y.IcError1,{})})})]})};Qd.propTypes={text:V.default.string,picture:V.default.string,type:V.default.string,children:V.default.node,isNewLayout:V.default.bool,extractLetters:V.default.bool,invertedColorScheme:V.default.bool,showNewPhotoNotification:V.default.bool,withShadow:V.default.bool,showProblemIcon:V.default.bool,showForwarded:V.default.bool};var $d=e=>({backgroundColor:`#FF5722`,color:`white`,height:e?`17px`:`11px`,width:e?`33px`:`25px`,borderRadius:e?`3px`:`2px`,fontFamily:`Plus Jakarta Sans, Helvetica, Arial, sans-serif`,fontSize:e?`13px`:`9px`,lineHeight:e?`12px`:`9px`,fontWeight:`500`}),ef=B.memo(({small:e=!1,modalRequired:t=!1,propertyType:n=!1,withTooltip:r,config:i={},additionalStyle:a={}})=>{let[o,s]=(0,B.useState)(!1),c=(0,B.useCallback)(()=>{s(e=>!e)},[]);return r?(0,K.jsx)(Ig,{title:U(`probadge_modal.projob_sp_tooltip`),children:(0,K.jsx)(Md,{chipStyle:$d(),label:U(`marketplace.probadge`),noOverflow:!0})}):e?(0,K.jsx)(Md,{chipStyle:{...$d(),...a},label:U(`marketplace.probadge`),noOverflow:!0}):t?(0,K.jsxs)(`div`,{children:[(0,K.jsx)(q,{onClick:c,types:[`size-badge-large`,`type-full-orange`],children:U(`marketplace.probadge`)}),(0,K.jsx)(Ug,{propertyType:n,openProModal:o,onClickfunc:c,config:i})]}):(0,K.jsx)(Md,{chipStyle:$d(`big`),label:U(`marketplace.probadge`),noOverflow:!0})});ef.propTypes={small:V.default.bool,modalRequired:V.default.bool,propertyType:V.default.bool,withTooltip:V.default.bool,config:V.default.shape({}),additionalStyle:V.default.shape({})};var tf=({children:e=void 0,style:t={}})=>(0,K.jsx)(I,{sx:{border:`1px solid var(--color-grey)`,color:`var(--color-grey)`,borderRadius:`12px`,display:`inline-block`,padding:`4px 16px`,...t},children:e});tf.propTypes={style:V.default.shape({}),children:V.default.node};var nf=`/static/Oops-LMb3lsyU.png`,rf=_i.default.bind({"card-display":`_card-display_16dzd_2`,cardDisplay:`_card-display_16dzd_2`,"card-display__button":`_card-display__button_16dzd_20`,cardDisplayButton:`_card-display__button_16dzd_20`,"card-display__main-logo":`_card-display__main-logo_16dzd_27`,cardDisplayMainLogo:`_card-display__main-logo_16dzd_27`,"card-display__notify-logo":`_card-display__notify-logo_16dzd_33`,cardDisplayNotifyLogo:`_card-display__notify-logo_16dzd_33`,"card-display__content":`_card-display__content_16dzd_38`,cardDisplayContent:`_card-display__content_16dzd_38`,"card-display__content--conditions":`_card-display__content--conditions_16dzd_46`,cardDisplayContentConditions:`_card-display__content--conditions_16dzd_46`,"card-display__content-center":`_
2card-display__content-center_16dzd_53`,cardDisplayContentCenter:`_card-display__content-center_16dzd_53`,"card-display__appbar":`_card-display__appbar_16dzd_57`,cardDisplayAppbar:`_card-display__appbar_16dzd_57`,"card-display__tc-acceptContainer":`_card-display__tc-acceptContainer_16dzd_60`,cardDisplayTcAcceptContainer:`_card-display__tc-acceptContainer_16dzd_60`,"card-display__tc-acceptCheckboxColumn":`_card-display__tc-acceptCheckboxColumn_16dzd_73`,cardDisplayTcAcceptCheckboxColumn:`_card-display__tc-acceptCheckboxColumn_16dzd_73`,"card-display__tc-acceptLabelColumn":`_card-display__tc-acceptLabelColumn_16dzd_79`,cardDisplayTcAcceptLabelColumn:`_card-display__tc-acceptLabelColumn_16dzd_79`,"card-display__tc-properlyLink":`_card-display__tc-properlyLink_16dzd_83`,cardDisplayTcProperlyLink:`_card-display__tc-properlyLink_16dzd_83`}),af=gn.create(Un),of=({stripe:e})=>e?{type:[`type-flat-grey`,`size-large`,`width-flex`],content:(0,K.jsx)(Y.StripeConnect,{byWidth:!0})}:[],sf=e=>{switch(e){case`success`:return(0,K.jsx)(Y.BigGreenTick,{});case`warning`:return(0,K.jsx)(`img`,{src:nf});case`loading`:return(0,K.jsx)(I,{sx:{margin:`2em`},children:(0,K.jsx)(hf,{type:`black`})});default:return``}};function cf(e){let{notifyIcon:t=null,content:n=``,buttonOnClick:r=null,stripelogo:i=!1,children:a=void 0,buttonDisabledFlag:o=!1,buttonLoading:s=!1,stripe:c=!1,...l}=e,u={stripe:c,...l};return(0,K.jsxs)(af,{className:`card-display`,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:yd.medium,ease:xd.easeOut},sx:{transition:`transform ${yd.normal}s ease-out, box-shadow ${yd.normal}s ease-out`,"&:hover":{transform:`translateY(-4px)`,boxShadow:`0 8px 25px rgba(0,0,0,0.15)`}},children:[i&&(0,K.jsx)(`div`,{className:`card-display__main-logo`,children:(0,K.jsx)(Y.StripeLogo,{width:`8em`,byWidth:!0})}),t&&(0,K.jsx)(`div`,{className:`card-display__notify-logo`,children:sf(t)}),(0,K.jsxs)(`div`,{className:rf(`card-display__content`,{"card-display__content-center":t}),children:[(0,K.jsx)(lr,{children:n}),a]}),r&&(0,K.jsx)(Mr,{className:`card-display__button`,children:(0,K.jsx)(q,{types:of(u).type,onClick:r,disabled:o||s,children:s?(0,K.jsx)(rr,{size:24}):of(u).content})})]})}cf.propTypes={notifyIcon:V.default.oneOf([`success`,`warning`,`loading`]),buttonOnClick:V.default.func,stripe:V.default.bool,stripelogo:V.default.bool,buttonDisabledFlag:V.default.bool,buttonLoading:V.default.bool,children:V.default.node,content:V.default.string};var lf=e=>(0,K.jsx)(`div`,{children:(0,K.jsx)(Kd,{style:{margin:`4px`},children:(0,K.jsx)(`div`,{children:e})},e)},e),uf=({tags:e})=>(0,K.jsx)(`div`,{children:e?.map(lf)}),df=e(Eee()),ff=_i.default.bind({progressBox:`_progressBox_s6kfy_2`,"progressBox__container-milestones":`_progressBox__container-milestones_s6kfy_11`,progressBoxContainerMilestones:`_progressBox__container-milestones_s6kfy_11`,progressPointer:`_progressPointer_s6kfy_42`,milestoneAchieve:`_milestoneAchieve_s6kfy_66`,actualScore:`_actualScore_s6kfy_70`,"progressBox__container-progressBar":`_progressBox__container-progressBar_s6kfy_90`,progressBoxContainerProgressBar:`_progressBox__container-progressBar_s6kfy_90`,"progressBox__container-progress":`_progressBox__container-progress_s6kfy_90`,progressBoxContainerProgress:`_progressBox__container-progress_s6kfy_90`,dragging:`_dragging_s6kfy_107`,"progressBox__container-dragSection":`_progressBox__container-dragSection_s6kfy_111`,progressBoxContainerDragSection:`_progressBox__container-dragSection_s6kfy_111`,"progressBox__container-progressSlider":`_progressBox__container-progressSlider_s6kfy_124`,progressBoxContainerProgressSlider:`_progressBox__container-progressSlider_s6kfy_124`,progressBox__container:`_progressBox__container_s6kfy_11`,progressBoxContainer:`_progressBox__container_s6kfy_11`}),pf=({propertyCount:e=0,updatePropertyCount:t=()=>{}})=>{let[n,r]=(0,B.useState)(0),[i,a]=(0,B.useState)(!1),[o,s]=(0,B.useState)(!1),[c,l]=(0,B.useState)(0),u=(0,B.useRef)(null),d=(0,B.useRef)(null),f=(0,B.useRef)(null),p=(0,B.useRef)(null),m=(0,B.useRef)(null),h=(0,B.useCallback)(e=>{let t=u.current?.offsetWidth||1;return Math.floor(e/t*100)},[]),g=(0,B.useCallback)(e=>{let t=u.current?.offsetWidth||1;return e>100?t:e/100*t},[]),_=(0,B.useCallback)(e=>{let t=Math.min(e,100);d.current&&(d.current.style.width=`${t}%`),f.current&&(f.current.textContent=e>100?`100+`:e)},[]),v=(0,B.useCallback)(e=>{e<0||(r(e),t(Number(e)))},[t]);(0,B.useEffect)(()=>{o||(r(e),_(e),l(g(e)))},[e,o,_,g]),(0,B.useEffect)(()=>
2{i&&p.current.focus()},[i]),(0,B.useEffect)(()=>{let e=()=>{_(n),l(g(n))};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[n,_,g]);let y=()=>{s(!0)},b=(e,{x:t})=>{_(h(t)),l(t)},x=(e,{x:t})=>{v(h(t)),l(t),s(!1)},S=()=>{a(!0)},C=e=>{(e.key===`Enter`||e.key===`Escape`)&&(e.target.value===``&&r(0),a(!1))},w=e=>{e.target.value===``&&r(0),a(!1)},T=e=>{let t=String(e).match(/\d/g);if(t!==null){let e=t.join(``)*1;v(e),_(e),l(g(e))}else v(0),_(0),l(0)},E=n>100?100:n;return(0,K.jsxs)(`div`,{className:ff(`progressBox`),children:[(0,K.jsx)(`div`,{children:(0,K.jsx)(`span`,{children:U(`signup.no_of_properties`)})}),(0,K.jsxs)(`div`,{className:ff(`progressBox__container`),children:[(0,K.jsx)(`div`,{className:ff(`progressBox__container-progressSlider`),children:(0,K.jsxs)(`div`,{className:ff(`progressBox__container-progressBar`),ref:u,children:[(0,K.jsxs)(`div`,{className:ff(`progressBox__container-milestones`),children:[(0,K.jsx)(`span`,{className:ff(n>10?`milestoneAchieve`:``),children:`10`}),(0,K.jsx)(`span`,{className:ff(n>30?`milestoneAchieve`:``),children:`30`}),(0,K.jsx)(`span`,{className:ff(n>50?`milestoneAchieve`:``),children:`50`}),(0,K.jsx)(`span`,{className:ff(n>70?`milestoneAchieve`:``),children:`70`}),(0,K.jsx)(`span`,{children:`100+`})]}),(0,K.jsx)(`div`,{ref:d,className:ff(`progressBox__container-progress`,{dragging:o}),style:{width:`${E}%`}}),(0,K.jsx)(df.default,{axis:`x`,bounds:{left:0},position:{x:c,y:0},onStart:y,onDrag:b,onStop:x,nodeRef:m,children:(0,K.jsx)(`div`,{ref:m,className:ff(`progressBox__container-dragSection`),children:(0,K.jsx)(`div`,{ref:f,className:ff(`progressPointer`),children:n>100?`100+`:n})})})]})}),i?(0,K.jsx)(`input`,{className:ff(`actualScore`,`editable`),type:`number`,min:`0`,max:`99999`,step:`1`,pattern:`[0-9]`,value:n===0?``:n,onChange:e=>e.target.value<=99999?T(e.target.value):null,onKeyDown:e=>e.key===`.`&&e.preventDefault(),onBlur:w,onKeyPress:C,ref:p}):(0,K.jsx)(`div`,{className:ff(`actualScore`),onClick:S,children:n})]})]})};pf.propTypes={propertyCount:V.default.number,updatePropertyCount:V.default.func};var mf=_i.default.bind({skFadingCircle:`_skFadingCircle_1lx8i_2`,skCircle:`_skCircle_1lx8i_8`,skCircleFadeDelay:`_skCircleFadeDelay_1lx8i_1`,skFadingCircleWhite:`_skFadingCircleWhite_1lx8i_33`,skFadingCircleOrange:`_skFadingCircleOrange_1lx8i_37`,skFadingCirclePrimary:`_skFadingCirclePrimary_1lx8i_41`}),hf=({type:e=`black`,dataKey:t=void 0})=>{let n=Array.from({length:12},(e,t)=>t+1);return(0,K.jsx)(`div`,{"data-testid":t,className:mf(`skFadingCircle`,{skFadingCircleWhite:e===`white`,skFadingCircleOrange:e===`orange`,skFadingCirclePrimary:e===`primary`}),children:n.map(e=>(0,K.jsx)(`div`,{className:mf(`skCircle`)},e))})};hf.propTypes={type:V.default.oneOf([`white`,`black`,`orange`,`primary`]),dataKey:V.default.string};var gf={display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`,width:`100%`,position:`absolute`},_f={position:`static`},vf={top:0,left:0},yf={color:`var(--color-white)`},bf={color:`var(--color-loading-txt)`,paddingLeft:`var(--space-small)`},xf=({static:e,topLeft:t,type:n,customMessage:r})=>{let i=r||U(`properties.loading`);return(0,K.jsxs)(I,{style:{width:`100%`,padding:`24px`},sx:{...gf,...e&&_f,...t&&vf},"data-testid":`loadingIcon`,children:[(0,K.jsx)(hf,{type:n}),(0,K.jsx)(_m,{loadingText:!0}),(0,K.jsx)(I,{component:`span`,className:`normal`,sx:{...bf,...n===`white`&&yf},children:i})]})};xf.propTypes={topLeft:V.default.bool,type:V.default.string,static:V.default.bool,customMessage:V.default.string};var J=({animation:e=`wave`,width:t=``,height:n,variant:r=`rectangular`,style:i={},sx:a={},...o})=>(0,K.jsx)(Fee,{animation:e,width:t,height:n,sx:{bgcolor:`var(--color-skeleton, #E0E0E0)`,...a},variant:r,style:i,...o});J.propTypes={animation:V.default.oneOf([`wave`,`pulse`,!1]),width:V.default.oneOfType([V.default.string,V.default.number]),height:V.default.oneOfType([V.default.string,V.default.number]).isRequired,variant:V.default.oneOf([`text`,`circular`,`rectangular`,`rounded`]),style:V.default.shape({}),sx:V.default.object};var Sf=(0,B.forwardRef)(function({children:e,...t},n){return(0,K.jsx)(gn.div,{ref:n,variants:Td,initial:`initial`,animate:`animate`,exit:`exit`,transition:bd.snappy,children:(0,K.jsx)(Fn,{...t,children:e})})});Sf.propTypes={children:V.default.node};function Cf(e){return(0,K.jsx)(He,{...e,direction:`left`})}var wf=({open:e,message:t,onClose:n,icon:r=null,success:i=!1,error:a=!1})=>i?(0,K.jsx)(d,{anchorOrigin:{vertical:`top`,horizontal:`right`},open:e,autoHideDuration:3e3,onClose:n,slots:{transition:Cf},children:(0,K.jsx)(Sf,{onClose:n,severity:`success`,children:t})}):a?(0,K.jsx)(d,{anchorOrigin:{vertical:`top`,horizontal:`right`},open:e,autoHideDuration:3e3,onClose:n,slots:{transition:Cf},children:(0,K.jsx)(Sf,{onClose:n,severity:`error`,children:t})}):(0,K.jsx)(d,{anchorOrigin:{vertical:`top`,horizontal:`right`},open:e,autoHideDuration:3e3,message:t,onClose:n,action:[(0,K.jsx)(br,{"aria-label":`Close`,color:`inherit`,onClick:n,size:`large`,children:r||(0,K.jsx)(Hn,{fontSize:`small`})},`close`)],slots:{transition:Cf}});wf.propTypes={success:V.default.bool,error:V.default.bool,open:V.default.bool.isRequired,message:V.default.oneOfType([
2V.default.string,V.default.element]).isRequired,icon:V.default.element,onClose:V.default.func.isRequired};var Tf=({children:e})=>(0,K.jsxs)(I,{sx:{margin:`24px 0px`,padding:`10px 12px`,borderRadius:`var(--radius-sm, 6px)`,border:`2px solid var(--color-border)`,background:`var(--color-bg-jobrequest)`,display:`flex`},children:[(0,K.jsx)(I,{sx:{flexGrow:1,flexShrink:0},children:(0,K.jsx)(Y.LightBulb,{width:`17.5px`,height:`28px`,byHeight:!0})}),(0,K.jsx)(I,{sx:{margin:`8px 12px`,flexGrow:0,flexShrink:1},children:(0,K.jsx)(Xg,{type:`grey`,children:e})})]}),Ef={fontSize:`72px`,lineHeight:`30px`,marginTop:`68px`,marginBottom:`10px`},Df={position:`absolute`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,top:0,left:0,right:0,bottom:0},Of={display:`flex`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`},kf=(e,t)=>(0,K.jsxs)(I,{sx:Of,children:[(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`],onClick:e,children:U(`error.try_again`)}),(0,K.jsx)(I,{component:`p`,className:`text-type-small`,children:U(`error.or`)}),(0,K.jsx)(q,{types:[`type-flat-primary`,`size-small`],onClick:t,children:U(`error.contact_support`)})]}),Af=({showIntercom:e,tryAgain:t,is500:n,headline:r,subHeadline:i,is404:a,showButtons:o})=>(0,K.jsxs)(I,{sx:Df,children:[n&&(0,K.jsx)(Y.IcError500,{byWidth:!0,width:`335px`}),a&&(0,K.jsx)(Y.IcError404,{byWidth:!0,width:`335px`}),(0,K.jsx)(I,{component:`h1`,className:`text-l3`,sx:Ef,children:r}),(0,K.jsx)(I,{component:`p`,className:`text-l3`,children:i}),(n||o)&&kf(t,e)]});Af.propTypes={showIntercom:V.default.func,tryAgain:V.default.func,is500:V.default.bool,is404:V.default.bool,headline:V.default.string,subHeadline:V.default.string};function jf({error:e,resetErrorBoundary:t,moduleName:n,customTitle:r,customDescription:i,customButtonText:a,onRetry:o}){(0,B.useEffect)(()=>{R.default.error(`${n} module error:`,e)},[e,n]);let s=()=>{o&&o(),t()},c=r||U(`error.oops`)||`Something went wrong`,l=i||U(`error.looks_like_smth_wrong`)||`An error occurred while loading this section. Please try again.`,u=a||U(`error.try_again`)||`Try Again`;return(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,height:`100%`,minHeight:400,p:4,textAlign:`center`,backgroundColor:`var(--color-bg)`},"data-testid":`${n}-error-fallback`,children:[(0,K.jsx)(x,{variant:`h5`,sx:{mb:2,color:`var(--color-header)`},children:c}),(0,K.jsx)(x,{variant:`body1`,sx:{mb:3,color:`var(--color-grey)`,maxWidth:400},children:l}),(0,K.jsx)(dn,{variant:`contained`,onClick:s,sx:{textTransform:`none`},"data-testid":`${n}-error-retry-button`,children:u})]})}jf.propTypes={error:V.default.object.isRequired,resetErrorBoundary:V.default.func.isRequired,moduleName:V.default.string.isRequired,customTitle:V.default.string,customDescription:V.default.string,customButtonText:V.default.string,onRetry:V.default.func};function Mf(e){return function(t,n){R.default.error(`${e} ErrorBoundary caught error:`,t),R.default.error(`Component stack:`,n?.componentStack),Gee(r=>{r.setTag(`module`,e),r.setExtra(`componentStack`,n?.componentStack),mr(t)})}}function Nf({children:e,moduleName:t,customTitle:n,customDescription:r,customButtonText:i,onRetry:a,onReset:o,FallbackComponent:s}){let c={moduleName:t,customTitle:n,customDescription:r,customButtonText:i,onRetry:a};return(0,K.jsx)(ar,{FallbackComponent:e=>s?(0,K.jsx)(s,{...e,...c}):(0,K.jsx)(jf,{...e,...c}),onError:Mf(t),onReset:o,children:e})}Nf.propTypes={children:V.default.node.isRequired,moduleName:V.default.string.isRequired,customTitle:V.default.string,customDescription:V.default.string,customButtonText:V.default.string,onRetry:V.default.func,onReset:V.default.func,FallbackComponent:V.default.elementType};var Pf=e(An()),Ff={input:`_input_uuh1d_4 input`,"input--disabled":`_input--disabled_uuh1d_28`,inputDisabled:`_input--disabled_uuh1d_28`,"input--price":`_input--price_uuh1d_32`,inputPrice:`_input__price_uuh1d_48 input`,input__phonenumber:`_input__phonenumber_uuh1d_36`,inputPhonenumber:`_input__phonenumber_uuh1d_36`,input__flex:`_input__flex_uuh1d_44`,inputFlex:`_input__flex_uuh1d_44`,input__price:`_input__price_uuh1d_48 input`,"input__price--webkit":`_input__price--webkit_uuh1d_59`,inputPriceWebkit:`_input__price--webkit_uuh1d_59`,"input--textarea":`_input--textarea_uuh1d_64`,inputTextarea:`_input--textarea_uuh1d_64`,"input--twosplit":`_input--twosplit_uuh1d_69`,inputTwosplit:`_input__twosplit_uuh1d_93`,"input--twosplit-right":`_input--twosplit-right_uuh1d_74`,inputTwosplitRight:`_input--twosplit-right_uuh1d_74`,"input--twosplit-left":`_input--twosplit-left_uuh1d_78`,inputTwosplitLeft:`_input--twosplit-left_uuh1d_78`,"input--twosplit-rightbig":`_input--twosplit-rightbig_uuh1d_82`,inputTwosplitRightbig:`_input--twosplit-rightbig_uuh1d_82`,"input--twosplit-leftsmall":`_input--twosplit-leftsmall_uuh1d_87`,inputTwosplitLeftsmall:`_input--twosplit-leftsmall_uuh1d_87`,input__twosplit:`_input__twosplit_uuh1d_93`,"input--select":`_input--select_uuh1d_98`,inputSelect:`_input__select_uuh1d_107 input`,"input_select--cursorNotAllowed":`_input_select--cursorNotAllowed_uuh1d_103`,inputSelectCursorNotAllowed:`_input_select--cursorNotAllowed_uuh1d_103`,"input__select-inner":`_input__select-inner_uuh1d_107`,inputSelectInner:`_input__select-inner_uuh1d_107`,"new-layout":`_new-layout_uuh1d_116`,newLayout:`_new-layout_uuh1d_116`,"input__select-txt":`_input__select-txt_uuh1d_123 input`,inputSelectTxt:`_input__select-txt_uuh1d_123 input`,"input__select-txt--normal":`_input__select-txt--normal_uuh1d_135`,inputSelectTxtNormal:`_input__select-txt--normal_uuh1d_135`,"input__select-txt--inactive":`_input__select-txt--inactive_uuh1d_139`,inputSelectTxtInactive:`_input__select-txt--inactive_uuh1d_139`,"input__select-btn":`_input__select-btn_uuh1d_143`,inputSelectBtn:`_input__select-btn_uuh1d_143`,input__select:`_input__select_uuh1d_107 input`,bigger:`_bigger_uuh1d_166`,input__cansave:`_input__cansave_uuh1d_170 normal`,
2inputCansave:`_input__cansave_uuh1d_170 normal`,input__editoverlay:`_input__editoverlay_uuh1d_180`,inputEditoverlay:`_input__editoverlay_uuh1d_180`,"input__editoverlay--transparent":`_input__editoverlay--transparent_uuh1d_194`,inputEditoverlayTransparent:`_input__editoverlay--transparent_uuh1d_194`,"input__editoverlay-link":`_input__editoverlay-link_uuh1d_197`,inputEditoverlayLink:`_input__editoverlay-link_uuh1d_197`,"input__editoverlay-icon":`_input__editoverlay-icon_uuh1d_200`,inputEditoverlayIcon:`_input__editoverlay-icon_uuh1d_200`,"input__cansave--grey":`_input__cansave--grey_uuh1d_207`,inputCansaveGrey:`_input__cansave--grey_uuh1d_207`,"input__cansave-cursor":`_input__cansave-cursor_uuh1d_211 text-l5`,inputCansaveCursor:`_input__cansave-cursor_uuh1d_211 text-l5`,"input__cansave-spacer":`_input__cansave-spacer_uuh1d_218`,inputCansaveSpacer:`_input__cansave-spacer_uuh1d_218`,"input__cansave-bold":`_input__cansave-bold_uuh1d_226 text-l5m`,inputCansaveBold:`_input__cansave-bold_uuh1d_226 text-l5m`,input__error:`_input__error_uuh1d_230 input-error`,inputError:`_input__error_uuh1d_230 input-error`,"input--error-shake":`_input--error-shake_uuh1d_248`,inputErrorShake:`_input--error-shake_uuh1d_248`,shake:`_shake_uuh1d_1`,"input--focus-pulse":`_input--focus-pulse_uuh1d_258`,inputFocusPulse:`_input--focus-pulse_uuh1d_258`,focusPulse:`_focusPulse_uuh1d_1`},If=e(qee()),Lf=e(Cee()),Rf=e($n());function zf(e){return e.maxLength?{...e,onChange:t=>{t.target.value.length>e.maxLength||e.onChange&&e.onChange(t)}}:e}function Bf(e,t){return(0,If.default)(e,(n,r,i)=>(n.push(r),i!==e.length-1&&n.push(t),n),[])}var Vf=class e{constructor(e){this.link=e}static of(t){return new e(t)}};function Hf(e,t){if(!(0,Rf.default)(t))return t;let n=t.split(e);return n[0]===t?t:Bf(n,Vf.of(e))}function Uf(e,t=[],n=0){let r=!1,i=(0,H.default)(t,t=>{let n=Hf(e,t);return n!==t&&(r=!0),n});return r?Uf(e,(0,Lf.default)(i),n+1):i}function Wf(e,t=[]){let n=[...t];return(0,xc.default)(e,e=>{n=Uf(e,n)}),n}function Gf(e){return Wf(String(e||``).match(/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~ââ+#-]*[\w@?^=%&\/ââ~+#-])?/gi),[e])}var Kf=(e,t=2)=>{let n=e.target.value,r=t+1,i=n.indexOf(`.`);e.target.value=i>=0?n.substr(0,i)+n.substr(i,r):n},qf=_i.default.bind(Ff),Jf=(e,t,n)=>e===`loading`?(0,K.jsx)(`div`,{className:qf(`input__cansave`),children:(0,K.jsx)(`div`,{className:qf(`input__cansave-bold`,`input__cansave-cursor`),children:U(`properties.loadingsave`)})}):e===`error`?(0,K.jsx)(`div`,{className:qf(`input__cansave`),children:(0,K.jsx)(`div`,{className:qf(`input__cansave-bold`,`input__cansave-cursor`),children:U(`properties.loadingerror`)})}):e===`saved`?(0,K.jsx)(`div`,{className:qf(`input__cansave`),children:(0,K.jsx)(`div`,{className:qf(`input__cansave-bold`,`input__cansave-cursor`,`input__cansave--grey`),"data-testid":`input-edit-is-saved`,children:U(`properties.loadingsaved`)})}):e===`changed`?(0,K.jsxs)(`div`,{className:qf(`input__cansave`),children:[(0,K.jsx)(`div`,{"data-testid":`Input-cancel`,onClick:t,className:qf(`input__cansave-cursor`),children:U(`properties.cancel`)}),(0,K.jsx)(`div`,{className:qf(`input__cansave-spacer`)}),(0,K.jsx)(`div`,{"data-testid":`Input-save`,onClick:n,className:qf(`input__cansave-bold`,`input__cansave-cursor`),children:U(`properties.save`)})]}):(0,K.jsx)(`div`,{className:qf(`input__cansave`)}),Yf=e=>{let[t,n]=(0,B.useState)(!1),[r,i]=(0,B.useState)(!0),a=(0,B.useRef)(null),o=e=>{n(e),i(!e)},s=(0,B.useCallback)((t,n)=>{sd(e[`data-testid`]||e.name||e.id||`input_field`,t,{component:`Input`,type:e.type,has_value:n})},[e]),c=()=>{o(!1),s(Ju.BLUR,!!e.value)},l=()=>{o(!0),s(Ju.FOCUS,!!e.value)},u=(e,t,n,r)=>([`text`].includes(t)&&n&&(e.target.value=e.target.value.replace(/[^0-9.]/g,``).split(/\./).slice(0,2).join(`.`)),r&&r(e),e.target.value),d=()=>{r&&a.current&&a.current.focus()},f=e=>(0,H.default)(e,e=>e instanceof Vf?(0,K.jsx)(`a`,{href:e.link,className:qf(`input__editoverlay-link`),target:`_blank`,rel:`noopener noreferrer`,children:e.link}):e),p=e=>(0,K.jsx)(`div`,{className:qf(`input__editoverlay`,`input`,`input--textarea`,{"input__editoverlay--transparent":!e}),children:f(Gf(e))}),m=()=>(0,K.jsx)(`div`,{"data-testid":`edit-property-details`,onClick:d,className:qf(`input__editoverlay-icon`),children:(0,K.jsx)(Ig,{title:U(`properties.edit_trigger`),children:(0,K.jsx)(`span`,{children:(0,K.jsx)(Y.IcEditicon,{byWidth:!0,width:`24px`,he
2ight:`24px`})})})}),{isFirst:h,isLast:g,type:_,error:v,placeholder:y,twoSplit:b,textAreaHeight:x,canSave:S,savingState:C,showErrorMsg:w,onCancel:T,currency:E,currencyCountryCode:D,noBox:ee,optionsBtn:te,optionsColor:ne,transformSelectTitle:re=e=>e,onSave:O,forceOutline:ie,isGrouped:ae,styleOverwrite:oe,options:se,editMode:ce,hover:le=!0,disableSelect:ue,name:de,defaultValueOfSelect:fe,preventNegativeValues:pe,autoComplete:me,isPhoneNumber:he=!1,stepperRequired:ge=!1,step:_e,isNewLayout:ve,cursorNotAllowed:ye,id:be,onInput:xe,...Se}=e,Ce=_===`textarea`,we=_===`select`||_===`selectbtn`,Te=_===`price`,Ee=y?{title:y}:{title:``},De=we?(0,fc.default)(se,{value:Se.value}):Ee;De||(De=Ee);let Oe=Ce?{height:x||200,noOverflow:!0}:{};return ce&&!Ce&&R.default.error(`cannot use editMode with non textarea type`),(0,K.jsxs)(`div`,{className:qf({"input--twosplit":b,"input--twosplit-right":b===`right`,"input--twosplit-left":b===`left`,"input--twosplit-rightbig":b===`rightbig`,"input--twosplit-leftsmall":b===`leftsmall`}),children:[(0,K.jsxs)(fm,{isFirst:h,isLast:g,isPhoneNumber:he,noBox:ee,styleOverwrite:oe,isGrouped:ae&&ie,error:!!v,noPadding:!0,hover:!!le,focus:t||ie,...Oe,children:[!Ce&&!we&&!Te&&!he&&(0,K.jsx)(`input`,{id:be||de,className:qf(`input`,{"input--disabled":Se.disabled}),placeholder:y,onFocus:l,onBlur:c,...Se,type:_,name:de,onInput:e=>u(e,_,pe,xe),min:pe?`0`:``,autoComplete:me}),he&&!we&&(0,K.jsx)(`input`,{className:qf(`input`,{"input--disabled":Se.disabled}),placeholder:y,onFocus:l,onBlur:c,...Se,type:_,name:de,onInput:e=>u(e,_,pe,xe),min:pe?`0`:``,autoComplete:me,maxLength:`15`,minLength:`7`}),Te&&(0,K.jsxs)(`div`,{className:qf(`input__flex`),children:[(0,K.jsx)(`div`,{className:qf(`input__price`),children:E||Gl(D)}),(0,K.jsx)(`div`,{className:qf({"input__price--webkit":ge}),children:(0,K.jsx)(`input`,{"data-testid":`set_price_value`,className:qf(`input`,`input--price`),placeholder:y,step:_e,...Se,onFocus:l,onBlur:c,disabled:ue,type:`number`})})]}),Ce&&(0,K.jsx)(`textarea`,{ref:a,...zf(Se),...Se,onFocus:l,onBlur:c,className:qf(`input`,`input--textarea`,{"input--disabled":Se.disabled}),placeholder:y,name:de}),we&&(0,K.jsx)(`div`,{className:qf(`input`,`input--select`),children:(0,K.jsxs)(`div`,{className:qf(`input__select-inner`,{"new-layout":ve}),children:[(0,K.jsx)(`select`,{...(0,Pf.default)(Se,`style`),"data-testid":`input-select`,className:qf(`input__select`,{"input_select--cursorNotAllowed":ye}),onFocus:l,onBlur:c,disabled:ue,name:de,defaultValue:fe,value:De.value,children:(0,H.default)(se,(e,t)=>(0,K.jsx)(`option`,{value:e.value,disabled:t===0&&fe,children:e.title},t))}),(0,K.jsx)(`div`,{style:Se.style?Se.style:{},className:qf(`input__select-txt`,{"input__select-txt--normal":ne===`normal`,"input__select-txt--inactive":ne===`inactive`,"input_select--cursorNotAllowed":ye}),children:re(De.title)}),te&&(0,K.jsx)(`div`,{className:qf(`input__select-btn`,{"input_select--cursorNotAllowed":ye}),children:(0,K.jsx)(Y.IcExpandMore2,{})})]})}),ce&&r&&p(Se.value||``),ce&&r&&m()]}),v&&w&&(0,K.jsx)(`div`,{className:qf(`input__error`),children:v}),S&&Jf(C,T,O)]})};Yf.propTypes={editMode:V.default.bool,isFirst:V.default.bool,isLast:V.default.bool,isGrouped:V.default.bool,isPhoneNumber:V.default.bool,forceOutline:V.default.bool,nobox:V.default.bool,canSave:V.default.bool,showErrorMsg:V.default.bool,savingState:V.default.oneOf([`loading`,`saved`,`error`,`changed`]),optionsColor:V.default.oneOf([`normal`,`inactive`]),type:V.default.string.isRequired,textAreaHeight:V.default.number,placeholder:V.default.string,currency:V.default.string,styleOverwrite:V.default.shape({}),options:V.default.arrayOf(V.default.shape({value:V.default.string.isRequired,title:V.default.string.isRequired})),hover:V.default.bool,optionsBtn:V.default.bool,onChange:V.default.func,onInput:V.default.func,onCancel:V.default.func,onSave:V.default.func,error:V.default.oneOfType([V.default.string,V.default.bool]),twoSplit:V.default.string,autoComplete:V.default.string,stepperRequired:V.default.bool,isNewLayout:V.default.bool,id:V.default.string},Yf.TwoSplit=({children:e,type:t})=>(0,K.jsx)(`div`,{className:qf(`input__twosplit`,t),children:e}),Yf.ErrorMsg=e=>
2(0,K.jsx)(`div`,{className:qf(`input__error`),children:e.children}),Yf.CanSave=e=>e.canSave?Jf(e.canSave,e.onCancel,e.onSave):null;var Xf=e(wn()),Zf=_i.default.bind({"search-field":`_search-field_itpdb_2`,searchField:`_search-field_itpdb_2`,"search-field--reverse":`_search-field--reverse_itpdb_10`,searchFieldReverse:`_search-field--reverse_itpdb_10`,"search-field__inner":`_search-field__inner_itpdb_14`,searchFieldInner:`_search-field__inner_itpdb_14`,"search-field__input":`_search-field__input_itpdb_17 input`,searchFieldInput:`_search-field__input_itpdb_17 input`,"search-field--ongrey":`_search-field--ongrey_itpdb_21`,searchFieldOngrey:`_search-field--ongrey_itpdb_21`,"search-field--blank":`_search-field--blank_itpdb_33`,searchFieldBlank:`_search-field--blank_itpdb_33`,"search-field--fit":`_search-field--fit_itpdb_51`,searchFieldFit:`_search-field--fit_itpdb_51`,"search-field__inner--large":`_search-field__inner--large_itpdb_56`,searchFieldInnerLarge:`_search-field__inner--large_itpdb_56`,"search-field--large":`_search-field--large_itpdb_65`,searchFieldLarge:`_search-field--large_itpdb_65`,"search-field__icon":`_search-field__icon_itpdb_103`,searchFieldIcon:`_search-field__icon_itpdb_103`,"search-field__icon--left":`_search-field__icon--left_itpdb_112`,searchFieldIconLeft:`_search-field__icon--left_itpdb_112`,"search-field__icon-right":`_search-field__icon-right_itpdb_116`,searchFieldIconRight:`_search-field__icon-right_itpdb_116`,"search-field__icon-none":`_search-field__icon-none_itpdb_120`,searchFieldIconNone:`_search-field__icon-none_itpdb_120`,"search-field__inner--animated":`_search-field__inner--animated_itpdb_125`,searchFieldInnerAnimated:`_search-field__inner--animated_itpdb_125`}),Qf={rest:{scale:1,boxShadow:`0 0 0 0 rgba(54, 172, 178, 0)`},focused:{scale:1.02,boxShadow:`0 0 0 3px rgba(54, 172, 178, 0.15)`}},$f=({value:e=``,onChange:t=Fu.default,iconLocation:n=null,reverseStyle:r=!1,onGrey:i=!1,fitInBox:a=!1,placeholder:o,onRefSet:s=null,blank:c=!1,large:l,inputRef:u=null,iconComponent:d=null,expandOnFocus:f=!1,endComponent:p=null,...m})=>{let[h,g]=(0,B.useState)(!1),_=(e,t)=>(0,K.jsx)(`div`,{className:Zf(`search-field__icon`,`search-field__icon--${e}`),children:t}),v=(0,B.useRef)((0,Xf.default)((e,t)=>{e&&e.length>=2&&dd(t,e,{component:`SearchField`,query_length:e.length})},1e3)).current,y=(0,B.useCallback)(()=>{g(!0),sd(m[`data-testid`]||`search_field`,Ju.FOCUS,{component:`SearchField`,type:`search`})},[m]),b=(0,B.useCallback)(()=>{g(!1)},[]),x={};s?x.ref=s:(x.onChange=e=>{let n=e.target.value;v(n,m[`data-testid`]||`search_field`),t(n)},x.value=e||``);let S=f?gn.div:`div`,C=f?{variants:Qf,initial:`rest`,animate:h?`focused`:`rest`,transition:bd.gentle,className:Zf(`search-field__inner`,`search-field__inner--animated`,{"search-field__inner--large":l})}:{className:Zf(`search-field__inner`,{"search-field__inner--large":l})};return(0,K.jsx)(`div`,{className:Zf(`search-field`,{"search-field--reverse":r,"search-field--ongrey":i,"search-field--fit":a,"search-field--blank":c,"search-field--large":l}),children:(0,K.jsxs)(S,{...C,children:[n===`left`&&_(`left`,d||(0,K.jsx)(Y.IcSmFind,{})),(0,K.jsx)(`input`,{ref:u,autoComplete:`off`,"data-testid":m[`data-testid`]||`input_search_field`,className:Zf(`search-field__input`),type:`text`,placeholder:o,onFocus:y,onBlur:b,...x,...m}),n===`right`&&_(`right`,d||(0,K.jsx)(Y.IcSmFind,{})),p]})})};$f.propTypes={value:V.default.string,fitInBox:V.default.bool,onChange:V.default.func,iconLocation:V.default.oneOf([`left`,`right`]),reverseStyle:V.default.bool,onGrey:V.default.bool,onRefSet:V.default.func,blank:V.default.bool,inputRef:V.default.shape({current:V.default.shape({})}),iconComponent:V.default.element,expandOnFocus:V.default.bool,endComponent:V.default.element};var ep=({minTime:e,disabled:t=!1,onChange:n=()=>{},value:r=null,name:i,showErrorMsg:a=!1,error:o=null})=>(0,K.jsx)(Yf,{name:i,styleOverwrite:{backgroundColor:`var(--color-white)`},isFirst:!0,isLast:!0,error:o,showErrorMsg:a,disabled:t,options:Rc(15).filter(t=>Number(t.value)>=e),value:r,optionsBtn:!0,onChange:n,optionsColor:`normal`,style:{textAlign:`left`,fontSize:`16px`},type:`select`});ep.propTypes={name:V.default.string.isRequired,onChange:V.default.func,value:V.default.string,disabled:V.default.bool,error:V.default.string,showErrorMsg:V.default.bool};var tp=({style:e={},disabled:t=!1,onChange:n=null,value:r=null,name:i,showErrorMsg:a=!1,error:o=null})=>(0,K.jsx)(Yf,{name:i,styleOverwrite:{...e,backgroundColor:`var(--color-white)`},isFirst:!0,isLast:!0,error:o,showErrorMsg:a,disabled:t,options:zc(5,720),onChange:n,value:r,optionsBtn:!0,optionsColor:`normal`,style:{textAlign:`left`,fontSize:`16px`},type:`select`});tp.propTypes={name:V.default.string.isRequired,onChange:V.default.func,value:V.default.string,disabled:V.default.bool,style:V.default.shape({}),error:V.default.string,showErrorMsg:V.default.bool};
2var np=`startDate`,rp=`endDate`,ip=e=>{if(e)return e instanceof Date?e:z.default.isMoment(e)?e.toDate():typeof e==`string`?(0,z.default)(e,[`MM/DD/YYYY`,`YYYY-MM-DD`,`YYYYMMDD`,`DD/MM/YYYY`,z.default.ISO_8601],!0).toDate():new Date(e)},ap=e=>e?z.default.isMoment(e)?e:typeof e==`string`?(0,z.default)(e,[`MM/DD/YYYY`,`YYYY-MM-DD`,`YYYYMMDD`,`DD/MM/YYYY`,z.default.ISO_8601],!0):(0,z.default)(e):null,op=e=>e?(typeof e==`string`?(0,z.default)(e,[`MM/DD/YYYY`,`YYYY-MM-DD`,`YYYYMMDD`,`DD/MM/YYYY`,z.default.ISO_8601],!0):(0,z.default)(e)).clone().startOf(`day`).add(12,`hours`):null,sp=({date:e,onDateChange:t,isDayBlocked:n,isOutsideRange:r,...i})=>{let a=ip(e),o=(0,B.useCallback)(e=>{let t=ap(e);return!(n?.(t)||r?.(t))},[n,r]);return(0,K.jsx)(`div`,{className:`react-datepicker-wrapper-inline`,children:(0,K.jsx)(Br,{selected:a,onChange:(0,B.useCallback)(e=>{ud(`day-picker`,`single`,{component:`DayPicker`}),t&&t(op(e))},[t]),filterDate:o,inline:!0,calendarClassName:`properly-datepicker`,...i})})},cp=({startDate:e,endDate:t,onDatesChange:n,isDayBlocked:r,isOutsideRange:i,numberOfMonths:a=2,minimumNights:o=0,...s})=>{let[c,l]=(0,B.useState)(ip(e)),[u,d]=(0,B.useState)(ip(t));(0,B.useEffect)(()=>
2{l(ip(e)),d(ip(t))},[e,t]);let f=(0,B.useCallback)(e=>{let t=ap(e);return!(r?.(t)||i?.(t))},[r,i]);return(0,K.jsx)(`div`,{className:`react-datepicker-wrapper-inline`,children:(0,K.jsx)(Br,{selected:c,onChange:(0,B.useCallback)(e=>{let[t,r]=e;if(l(t),d(r),t&&!r)ud(`day-range-picker`,`range_start`,{component:`DayRangePicker`});else if(t&&r){if(o>0&&(0,z.default)(r).diff((0,z.default)(t),`days`)<o){d(null);return}ud(`day-range-picker`,`range`,{component:`DayRangePicker`}),n&&n({startDate:ap(t),endDate:ap(r)})}else !t&&!r&&n&&n({startDate:null,endDate:null})},[n,o]),startDate:c,endDate:u,selectsRange:!0,inline:!0,monthsShown:a,filterDate:f,calendarClassName:`properly-datepicker`,...s})})},lp=(0,B.forwardRef)(({onClick:e,value:t,placeholder:n,id:r,fullWidth:i,...a},o)=>(0,K.jsx)(`div`,{ref:o,style:{display:i?`block`:`inline-block`,width:i?`100%`:`auto`},children:(0,K.jsx)(yn,{id:r,size:`small`,value:t||``,placeholder:n,onClick:e,fullWidth:i,slotProps:{input:{readOnly:!0,endAdornment:(0,K.jsx)(It,{position:`end`,children:(0,K.jsx)(gr,{sx:{fontSize:20,opacity:.7,color:`var(--color-text)`}})}),sx:{fontFamily:`"Plus Jakarta Sans", sans-serif`,fontSize:`14px`,color:`var(--color-text)`,cursor:`pointer`,backgroundColor:`transparent`,"& input":{cursor:`pointer`,color:`var(--color-text) !important`,WebkitTextFillColor:`var(--color-text) !important`}}}},sx:{"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:`var(--color-border, rgba(0, 0, 0, 0.23))`},"&:hover fieldset":{borderColor:`var(--color-primary)`},"&.Mui-focused fieldset":{borderColor:`var(--color-primary)`}}},...a})}));lp.propTypes={onClick:V.default.func,value:V.default.string,placeholder:V.default.string,id:V.default.string,fullWidth:V.default.bool};var up=({date:e,onDateChange:t,onFocusChange:n,isDayBlocked:r,isOutsideRange:i,block:a,id:o,placeholder:s=`MM/DD/YYYY`,onClose:c,...l})=>{let u=ip(e),d=(0,B.useCallback)(e=>{let t=ap(e);return!(r?.(t)||i?.(t))},[r,i]);return(0,K.jsx)(Br,{selected:u,onChange:(0,B.useCallback)(e=>{ud(o||`day-input`,`single`,{component:`DayInput`}),t&&t(op(e))},[t,o]),filterDate:d,dateFormat:`MM/dd/yyyy`,placeholderText:s,onCalendarOpen:(0,B.useCallback)(()=>{n&&n({focused:!0})},[n]),onCalendarClose:(0,B.useCallback)(()=>{n&&n({focused:!1}),c&&c()},[n,c]),calendarClassName:`properly-datepicker`,popperClassName:`properly-datepicker-popper`,popperPlacement:`bottom-start`,popperProps:{strategy:`fixed`},customInput:(0,K.jsx)(lp,{id:o,placeholder:s,fullWidth:a,...l})})},dp=(0,B.forwardRef)(({onClick:e,placeholder:t,id:n,startDate:r,endDate:i,...a},o)=>(0,K.jsx)(`div`,{ref:o,style:{display:`inline-block`},children:(0,K.jsx)(yn,{id:n,size:`small`,value:(()=>{if(!r&&!i)return``;let e=r?(0,z.default)(r).format(`MM/DD/YYYY`):``,t=i?(0,z.default)(i).format(`MM/DD/YYYY`):``;return e&&t?`${e} - ${t}`:e?`${e} - `:``})(),placeholder:t,onClick:e,slotProps:{input:{readOnly:!0,endAdornment:(0,K.jsx)(It,{position:`end`,children:(0,K.jsx)(gr,{sx:{fontSize:20,opacity:.7,color:`var(--color-text)`}})}),sx:{fontFamily:`"Plus Jakarta Sans", sans-serif`,fontSize:`14px`,minWidth:`200px`,cursor:`pointer`,color:`var(--color-text)`,"& input":{cursor:`pointer`,color:`var(--color-text) !important`,WebkitTextFillColor:`var(--color-text) !important`}}}},sx:{"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:`var(--color-border, rgba(0, 0, 0, 0.23))`},"&:hover fieldset":{borderColor:`var(--color-primary)`},"&.Mui-focused fieldset":{borderColor:`var(--color-primary)`}}},...a})}));dp.propTypes={onClick:V.default.func,placeholder:V.default.string,id:V.default.string,startDate:V.default.instanceOf(Date),endDate:V.default.instanceOf(Date)};var fp=({startDate:e,endDate:t,onDatesChange:n,onFocusChange:r,isDayBlocked:i,isOutsideRange:a,startDateId:o,numberOfMonths:s=2,startDatePlaceholder:c=`Select date range`,minimumNights:l=0,onClose:u,...d})=>{let[f,p]=(0,B.useState)(ip(e)),[m,h]=(0,B.useState)(ip(t));(0,B.useEffect)(()=>{p(ip(e)),h(ip(t))},[e,t]);let g=(0,B.useCallback)(e=>{let t=ap(e);return!(i?.(t)||a?.(t))},[i,a]);return(0,K.jsx)(I,{sx:{display:`flex`,gap:1},children:(0,K.jsx)(Br,{selected:f,onChange:(0,B.useCallback)(e=>{let[t,i]=e;if(p(t),h(i),t&&!i)ud(o||`day-range-input`,`range_start`,{component:`DayRangeInput`}),r&&r(rp);else if(t&&i){if(l>0&&(0,z.default)(i).diff((0,z.default)(t),`days`)<l){h(null);return}ud(o||`day-range-input`,`range`,{component:`DayRangeInput`}),n&&n({startDate:ap(t),endDate:ap(i)}),r&&r(null),u&&u()}
2else n&&n({startDate:null,endDate:null})},[n,r,u,o,l]),startDate:f,endDate:m,selectsRange:!0,monthsShown:s,filterDate:g,dateFormat:`MM/dd/yyyy`,placeholderText:c,onCalendarOpen:(0,B.useCallback)(()=>{r&&r(np)},[r]),onCalendarClose:(0,B.useCallback)(()=>{r&&r(null),u&&u()},[r,u]),calendarClassName:`properly-datepicker`,popperClassName:`properly-datepicker-popper`,popperPlacement:`bottom-start`,popperProps:{strategy:`fixed`},customInput:(0,K.jsx)(dp,{id:o,placeholder:c,startDate:f,endDate:m}),...d})})},pp=V.default.oneOfType([V.default.instanceOf(Date),V.default.object,V.default.string]);sp.propTypes={date:pp,onDateChange:V.default.func,isDayBlocked:V.default.func,isOutsideRange:V.default.func},cp.propTypes={startDate:pp,endDate:pp,onDatesChange:V.default.func,isDayBlocked:V.default.func,isOutsideRange:V.default.func,numberOfMonths:V.default.number,minimumNights:V.default.number},up.propTypes={date:pp,onDateChange:V.default.func,onFocusChange:V.default.func,isDayBlocked:V.default.func,isOutsideRange:V.default.func,block:V.default.bool,id:V.default.string,placeholder:V.default.string,onClose:V.default.func},fp.propTypes={startDate:pp,endDate:pp,onDatesChange:V.default.func,onFocusChange:V.default.func,isDayBlocked:V.default.func,isOutsideRange:V.default.func,startDateId:V.default.string,numberOfMonths:V.default.number,startDatePlaceholder:V.default.string,minimumNights:V.default.number,onClose:V.default.func};var mp={initial:{opacity:0,scale:.95,y:-8},animate:{opacity:1,scale:1,y:0,transition:{...bd.snappy,staggerChildren:.03,delayChildren:.02}},exit:{opacity:0,scale:.95,y:-8,transition:{duration:.15}}},hp={initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8}},gp=({suggestions:e=[],"data-testid":t})=>{let[n,r]=(0,B.useState)(0),[i,a]=(0,B.useState)([]),[o,s]=(0,B.useState)(!1),[c,l]=(0,B.useState)(``),u=t||`autocomplete_field`,d=(0,B.useRef)((0,Xf.default)((e,t)=>{e&&e.length>=2&&dd(t,e,{component:`AutoComplete`,query_length:e.length})},1e3)).current,f=(0,B.useCallback)(()=>{sd(u,Ju.FOCUS,{component:`AutoComplete`,type:`autocomplete`})},[u]),p=t=>{let n=t.currentTarget.value,i=e.filter(e=>e.toLowerCase().indexOf(n.toLowerCase())>-1);d(n,u),r(0),a(i),s(!0),l(n)},m=e=>{let t=e.currentTarget.innerText;cd(u,!0,{component:`AutoComplete`,option_index:i.indexOf(t)}),r(0),a([]),s(!1),l(t)};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`input`,{className:`autoComplete`,type:`text`,onChange:p,onKeyDown:e=>{if(e.keyCode===13){let e=i[n];e&&cd(u,!0,{component:`AutoComplete`,option_index:n,selection_method:`keyboard`}),r(0),s(!1),l(e)}else if(e.keyCode===38){if(n===0)return;r(n-1)}else if(e.keyCode===40){if(n+1===i.length)return;r(n+1)}},onFocus:f,value:c,placeholder:`Select Job Type`,"data-testid":u}),(0,K.jsx)(Qr,{mode:`wait`,children:o&&c&&(i.length?(0,K.jsx)(gn.ul,{className:`suggestions`,variants:mp,initial:`initial`,animate:`animate`,exit:`exit`,style:{transformOrigin:`top center`},children:i.map((e,t)=>{let r;return t===n&&(r=`suggestion-active`),(0,K.jsx)(gn.li,{className:r,onClick:m,variants:hp,transition:{...bd.snappy,delay:Ed(t,.03)},whileHover:{backgroundColor:`rgba(54, 172, 178, 0.1)`,x:4},children:e},e)})}):(0,K.jsx)(gn.div,{className:`no-suggestions`,initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:bd.snappy,children:(0,K.jsx)(`em`,{children:`No suggestions, you are on your own!`})}))})]})};gp.propTypes={suggestions:V.default.instanceOf(Array),"data-testid":V.default.string};var _p=_i.default.bind({round:`_round_razdi_2`,"round--selected":`_round--selected_razdi_19`,roundSelected:`_round--selected_razdi_19`,"round--disabled":`_round--disabled_razdi_26`,roundDisabled:`_round--disabled_razdi_26`,"round--quarter":`_round--quarter_razdi_32`,roundQuarter:`_round--quarter_razdi_32`,"round--small":`_round--small_razdi_35`,roundSmall:`_round--small_razdi_35`,"round--medium":`_round--medium_razdi_53`,roundMedium:`_round--medium_razdi_53`,round__input:`_round__input_razdi_58`,roundInput:`_round__input_razdi_58`,round__label:`_round__label_razdi_62`,roundLabel:`_round__label_razdi_62`,"round__label--disabled":`_round__label--disabled_razdi_74`,roundLabelDisabled:`_round__label--disabled_razdi_74`,"round-base":`_round-base_razdi_78`,roundBase:`_round-base_razdi_78`,"round-base--small":`_round-base--small_razdi_89`,roundBaseSmall:`_round-base--small_razdi_89`,"round-base--disabled":`_round-base--disabled_razdi_95`,roundBaseDisabled:`_round-base--disabled_razdi_95`,"round-base--selected":`_round-base--selected_razdi_104`,roundBaseSelected:`_round-base--selected_razdi_104`}),vp={unselected:{scale:1},selected:{scale:[1,1.1,1],transition:{duration:.2,times:[0,.5,1]}}},yp={initial:{scale:0,opacity:0}
2,animate:{scale:1,opacity:1,transition:bd.snappy},exit:{scale:0,opacity:0,transition:{duration:.1}}},bp=({selected:e=!1,onChange:t,type:n,small:r,medium:i,disabled:a,value:o,...s})=>{let c=(0,kd.default)(`RoundRadio`),l=n===`quarter`?Y.CheckedWhite:Y.Checked;return(0,K.jsxs)(gn.div,{className:_p(`round`,{"round--selected":e,"round--quarter":n===`quarter`,"round--disabled":a,"round--small":r,"round--medium":i}),variants:vp,animate:e?`selected`:`unselected`,whileHover:a?void 0:{scale:1.05},whileTap:a?void 0:{scale:.95},...s,children:[(0,K.jsx)(`input`,{type:`radio`,className:_p(`round__input`),onChange:t,checked:e,id:c,disabled:a,value:o||`second_checkbox`}),(0,K.jsx)(`label`,{htmlFor:c,className:_p(`round__label`,{"round__label--disabled":a}),children:(0,K.jsx)(Qr,{mode:`wait`,children:e&&(0,K.jsx)(gn.span,{variants:yp,initial:`initial`,animate:`animate`,exit:`exit`,style:{display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,K.jsx)(l,{})},`checkmark`)})})]})};bp.Base=({onClick:e,selected:t,small:n,disabled:r,...i})=>(0,K.jsx)(`div`,{onClick:r?void 0:e,"data-testid":i[`data-testid`],className:_p(`round-base`,{"round-base--selected":t||r,"round-base--disabled":r,"round-base--small":n})}),bp.propTypes={selected:V.default.bool,onChange:V.default.func.isRequired,type:V.default.oneOf([`quarter`])};var xp={marginTop:5,marginLeft:15,marginRight:42},Sp={color:`grey`},Cp=({selected:e,value:t,label:n,onChange:r,id:i,labelStyle:a=xp,textStyle:o,radioStyle:s={},disabled:c=!1})=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(bp,{style:s,"data-testid":`select_box_${i}`,onChange:r,value:t,selected:e,disabled:c}),(0,K.jsx)(`label`,{style:a,children:(0,K.jsx)(Xg,{style:c?Sp:o,children:n})})]});Cp.propTypes={selected:V.default.bool,onChange:V.default.func.isRequired,value:V.default.string.isRequired,label:V.default.string.isRequired,id:V.default.string.isRequired,labelStyle:V.default.shape({}),radioStyle:V.default.shape({}),textStyle:V.default.shape({})};var wp=({selectedId:e=null,options:t,onSelect:n})=>{let r=(e,t)=>e===t-1;return(0,K.jsx)(`div`,{children:t?.map((i,a)=>(0,K.jsxs)(fm,{white:!0,isFirst:a===0,isLast:r(a,t.length),children:[(0,K.jsx)(I,{sx:{paddingRight:`10px`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:(0,K.jsx)(Xg,{children:i.value})}),(0,K.jsx)(Dp.Base,{"data-testid":`select_box_${i.id}`,onChange:()=>n(i.id),selected:i.id===e})]},i.id))})};wp.propTypes={selectedId:V.default.string,onSelect:V.default.func.isRequired,options:V.default.arrayOf(V.default.shape({id:V.default.string.isRequired,value:V.default.string.isRequired})).isRequired};var Tp=_i.default.bind({round:`_round_1sfe7_2`,"round--selected":`_round--selected_1sfe7_17`,roundSelected:`_round--selected_1sfe7_17`,"round--disabled":`_round--disabled_1sfe7_23`,roundDisabled:`_round--disabled_1sfe7_23`,"round--disabled-no-select":`_round--disabled-no-select_1sfe7_29`,roundDisabledNoSelect:`_round--disabled-no-select_1sfe7_29`,"round--selected-resolve":`_round--selected-resolve_1sfe7_36`,roundSelectedResolve:`_round--selected-resolve_1sfe7_36`,"round--quarter":`_round--quarter_1sfe7_44`,roundQuarter:`_round--quarter_1sfe7_44`,"round--small":`_round--small_1sfe7_47`,roundSmall:`_round--small_1sfe7_47`,"round--medium":`_round--medium_1sfe7_65`,roundMedium:`_round--medium_1sfe7_65`,round__input:`_round__input_1sfe7_70`,roundInput:`_round__input_1sfe7_70`,round__label:`_round__label_1sfe7_74`,roundLabel:`_round__label_1sfe7_74`,"round-base":`_round-base_1sfe7_86`,roundBase:`_round-base_1sfe7_86`,"round-base--small":`_round-base--small_1sfe7_97`,roundBaseSmall:`_round-base--small_1sfe7_97`,"round-base--disabled":`_round-base--disabled_1sfe7_103`,roundBaseDisabled:`_round-base--disabled_1sfe7_103`,"round-base--selected":`_round-base--selected_1sfe7_112`,roundBaseSelected:`_round-base--selected_1sfe7_112`}),Ep=({small:e,medium:t})=>e?`8px`:t?`12px`:`16px`,Dp=({selected:e=!1,onChange:t,type:n,small:r,medium:i,labelPosition:a=`right`,disabled:o,label:s,isResolved:c,disabledNoSelect:l,...u})=>{let d=(0,kd.default)(`RoundSelect`),f=n===`quarter`?Y.IcCheckWhite:Y.IcChecked,p=Ep({small:r,medium:i}),m={display:`flex`,alignItems:`center`,flexDirection:a===`left`?`row-reverse`:`row`},h=(0,B.useCallback)(n=>{cd(u[`data-testid`]||s||`round-select`,!e,{isRadio:!0,component:`RoundSelect`,label:s}),t&&t(n)},[t,e,u,s]),g=!o&&!l;return(0,K.jsxs)(`div`,{style:m,children:[(0,K.jsxs)(gn.div,{className:Tp(`round`,{"round--selected":e,"round--quarter":n===`quarter`,"round--selected-resolve":c&&e,"round--disabled":o||l,"round--disabled-no-select":l,"round--small":r,"round--medium":i}),...(0,Pf.default)(u,[`data-testid`]),whileHover:g?{scale:1.05}:{},whileTap:g?{scale:.95}:{},transition:bd.snappy,children:[(0,K.jsx)(`input`,{type:`checkbox`,"data-testid":u[`data-testid`],
2className:Tp(`round__input`),onChange:h,checked:e,id:d,value:`second_checkbox`}),(0,K.jsx)(`label`,{htmlFor:d,className:Tp(`round__label`,{"round--disabled-no-select":l}),children:(0,K.jsx)(Qr,{mode:`wait`,children:(e||c)&&(0,K.jsx)(gn.div,{variants:Sd,initial:`initial`,animate:`animate`,exit:`exit`,style:{display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,K.jsx)(f,{byWidth:!0,height:p,width:p})},`check-icon`)})})]}),s?(0,K.jsx)(`label`,{htmlFor:d,style:{margin:`0 8px`},children:(0,K.jsx)(Yg,{children:s})}):null]})};Dp.Base=({onChange:e,selected:t=!1,small:n,disabled:r,...i})=>{let a=(0,B.useCallback)(n=>{r||(cd(i[`data-testid`]||`round-select-base`,!t,{isRadio:!0,component:`RoundSelect.Base`}),e&&e(n))},[e,t,r,i]),o=!r;return(0,K.jsx)(gn.div,{onClick:a,"data-testid":i[`data-testid`],className:Tp(`round-base`,{"round-base--selected":t||r,"round-base--disabled":r,"round-base--small":n}),whileHover:o?{scale:1.1}:{},whileTap:o?{scale:.9}:{},transition:bd.snappy})};var Op={selected:V.default.bool,onChange:V.default.func.isRequired,type:V.default.oneOf([`quarter`,`small`]),labelPosition:V.default.oneOf([`left`,`right`])};Dp.propTypes=Op,Dp.Base.propTypes=Op;var kp=_i.default.bind({square:`_square_ws85q_2`,"square--selected":`_square--selected_ws85q_20`,squareSelected:`_square--selected_ws85q_20`,"square--disabled":`_square--disabled_ws85q_27`,squareDisabled:`_square--disabled_ws85q_27`,"square--quarter":`_square--quarter_ws85q_32`,squareQuarter:`_square--quarter_ws85q_32`,"square--small":`_square--small_ws85q_36`,squareSmall:`_square--small_ws85q_36`,"square--medium":`_square--medium_ws85q_53`,squareMedium:`_square--medium_ws85q_53`,square__input:`_square__input_ws85q_58`,squareInput:`_square__input_ws85q_58`,square__label:`_square__label_ws85q_62`,squareLabel:`_square__label_ws85q_62`,"square-base":`_square-base_ws85q_75`,squareBase:`_square-base_ws85q_75`,"square-base--small":`_square-base--small_ws85q_93`,squareBaseSmall:`_square-base--small_ws85q_93`,"square-base--disabled":`_square-base--disabled_ws85q_98`,squareBaseDisabled:`_square-base--disabled_ws85q_98`,"square-base--selected":`_square-base--selected_ws85q_104`,squareBaseSelected:`_square-base--selected_ws85q_104`}),Ap=({selected:e=!1,onChange:t,label:n,boldLabel:r,type:i,small:a,medium:o,disabled:s,textColor:c,...l})=>{let u=(0,kd.default)(`SquareSelect`),d=(0,B.useCallback)(r=>{cd(l[`data-testid`]||(typeof n==`string`?n:void 0)||`square-select`,!e,{isRadio:!1,component:`SquareSelect`,label:typeof n==`string`?n:void 0}),t&&t(r)},[t,e,l,n]),f=!s;return(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,cursor:s?`default`:`pointer`},children:[(0,K.jsxs)(gn.div,{className:kp(`square`,{"square--selected":e,"square--quarter":i===`quarter`,"square--disabled":s,"square--small":a,"square--medium":o}),...l,whileHover:f?{scale:1.05}:{},whileTap:f?{scale:.95}:{},transition:bd.snappy,children:[(0,K.jsx)(`input`,{id:u,type:`checkbox`,readOnly:!0,onChange:d,className:kp(`square__input`),checked:e,value:`second_checkbox`}),(0,K.jsx)(Ap.Check,{id:u,type:i,selected:e})]}),(0,K.jsx)(Ap.Label,{id:u,label:n,boldLabel:r,textColor:c})]})},jp=({id:e,selected:t,type:n})=>{let r=n===`quarter`?Y.IcCheckWhite:Y.IcChecked;return(0,K.jsx)(`label`,{htmlFor:e,className:kp(`square__label`),children:(0,K.jsx)(Qr,{mode:`wait`,children:t&&(0,K.jsx)(gn.div,{variants:Sd,initial:`initial`,animate:`animate`,exit:`exit`,style:{display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,K.jsx)(r,{width:`14px`,byWidth:!0})},`check-icon`)})})},Mp=({id:e,label:t,boldLabel:n,textColor:r})=>t&&(0,K.jsx)(`label`,{htmlFor:e,style:{cursor:`pointer`,padding:`0 8px`},children:(0,K.jsx)(Yg,{type:n?`medium`:``,style:{color:r},children:t})})||null;Ap.Base=({onChange:e,type:t,selected:n=!1,label:r,boldLabel:i,small:a,disabled:o,...s})=>{let c=(0,B.useCallback)(t=>{o||(cd(s[`data-testid`]||(typeof r==`string`?r:void 0)||`square-select-base`,!n,{isRadio:!1,component:`SquareSelect.Base`,label:typeof r==`string`?r:void 0}),e&&e(t))},[e,n,o,s,r]),l=!o;return(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,cursor:o?`default`:`pointer`}
2,onClick:c,"data-testid":s[`data-testid`],children:[(0,K.jsx)(gn.div,{className:kp(`square-base`,{"square-base--selected":n||o,"square-base--quarter":t===`quarter`,"square-base--disabled":o,"square-base--small":a}),whileHover:l?{scale:1.05}:{},whileTap:l?{scale:.95}:{},transition:bd.snappy,children:(0,K.jsx)(jp,{type:t,selected:n})}),(0,K.jsx)(Mp,{label:r,boldLabel:i})]})},Ap.Check=jp,Ap.Label=Mp;var Np={selected:V.default.bool,onChange:V.default.func,label:V.default.oneOfType([V.default.string,V.default.node]),boldLabel:V.default.bool,type:V.default.oneOf([`quarter`])};Ap.propTypes=Np,Ap.Base.propTypes=Np;function Pp(){let[e,t]=(0,B.useState)(!1),n=(0,B.useCallback)(()=>{t(!0)},[]),r=(0,B.useCallback)(()=>{t(!1)},[]),i=(0,B.useCallback)(()=>{t(!0)},[]),a=(0,B.useCallback)(()=>{t(!1)},[]);return{isHovered:e,hoverProps:(0,B.useMemo)(()=>({onMouseEnter:n,onMouseLeave:r,onFocus:i,onBlur:a}),[a,i,n,r])}}var Fp={checkable:`_checkable_15og8_4`,"checkable--hovered":`_checkable--hovered_15og8_17`,checkableHovered:`_checkable--hovered_15og8_17`,"checkable--notclickable":`_checkable--notclickable_15og8_20`,checkableNotclickable:`_checkable--notclickable_15og8_20`,"checkable--blue":`_checkable--blue_15og8_23`,checkableBlue:`_checkable--blue_15og8_23`,"checkable--active":`_checkable--active_15og8_26`,checkableActive:`_checkable--active_15og8_26`,"checkable--disabled":`_checkable--disabled_15og8_33`,checkableDisabled:`_checkable--disabled_15og8_33`,"checkable--fullwidth":`_checkable--fullwidth_15og8_38`,checkableFullwidth:`_checkable--fullwidth_15og8_38`,checkable__checkbox:`_checkable__checkbox_15og8_42`,checkableCheckbox:`_checkable__checkbox_15og8_42`,"checkable__post-check":`_checkable__post-check_15og8_49`,checkablePostCheck:`_checkable__post-check_15og8_49`,checkable__check:`_checkable__check_15og8_42 text-l7`,checkableCheck:`_checkable__check_15og8_42 text-l7`,"checkable__check--hover":`_checkable__check--hover_15og8_74`,checkableCheckHover:`_checkable__check--hover_15og8_74`,"checkable__check--active":`_checkable__check--active_15og8_77`,checkableCheckActive:`_checkable__check--active_15og8_77`,"checkable__check--blue":`_checkable__check--blue_15og8_81`,checkableCheckBlue:`_checkable__check--blue_15og8_81`,"checkable__check--disabled":`_checkable__check--disabled_15og8_85`,checkableCheckDisabled:`_checkable__check--disabled_15og8_85`,jobinfo:`_jobinfo_15og8_94`,jobinfo__pic:`_jobinfo__pic_15og8_99`,jobinfoPic:`_jobinfo__pic_15og8_99`,"jobinfo__pic--lift":`_jobinfo__pic--lift_15og8_102`,jobinfoPicLift:`_jobinfo__pic--lift_15og8_102`,jobinfo__txt:`_jobinfo__txt_15og8_105`,jobinfoTxt:`_jobinfo__txt_15og8_105`,"jobinfo__txt--widthpic":`_jobinfo__txt--widthpic_15og8_109`,jobinfoTxtWidthpic:`_jobinfo__txt--widthpic_15og8_109`,"jobinfo--cleaner":`_jobinfo--cleaner_15og8_112`,jobinfoCleaner:`_jobinfo--cleaner_15og8_112`},Ip=_i.default.bind(Fp),Lp=({isActive:e,number:t,isHovered:n,isBlue:r,isDisabled:i})=>(0,K.jsxs)(`div`,{className:Ip(`checkable__check`,{"checkable__check--hover":n,"checkable__check--active":e,"checkable__check--blue":r,"checkable__check--disabled":i}),children:[e&&t&&(0,K.jsx)(`span`,{children:t}),e&&!t&&(0,K.jsx)(Y.IcCheckicon,{})]}),Rp=_i.default.bind(Fp),zp=({type:e,txtMod:t={},liftPic:n,pic:r,l1:i,l2:a,l3:o,...s})=>{let c=typeof i==`string`?(0,K.jsx)(Zg,{type:`cut-text`,children:i}):i,l=typeof a==`string`?(0,K.jsx)(Zg,{type:`greyloading cut-text`,children:a}):a;return(0,K.jsxs)(`div`,{...s,className:Rp(`jobinfo`,{"jobinfo--cleaner":e===`cleaner`}),children:[(0,K.jsx)(`div`,{className:Rp(`jobinfo__pic`,{"jobinfo__pic--lift":n}),children:r}),(0,K.jsxs)(`div`,{className:Rp(`jobinfo__txt`,{"jobinfo__txt--widthpic":t.withpic}),style:{paddingLeft:`10px`,display:`flex`,flexDirection:`column`},children:[c,l,(0,K.jsx)(Zg,{type:[`noresult`,`cut-text`],children:o})]})]})},Bp=_i.default.bind(Fp),Vp={initial:{opacity:0,scale:.95,y:-4},animate:{opacity:1,scale:1,y:0,transition:bd.snappy},exit:{opacity:0,scale:.95,y:-4,transition:{duration:.15}}},Hp=({children:e,isActive:t,type:n,number:r,onChange:i,isBlue:a,isDisabled:o=!1,isClickable:s=!0,isHoverable:c=!0,animated:l=!0,...u})=>{let d=`DetailSelectInputId-${(0,B.useId)()}`,{isHovered:f,hoverProps:p}=Pp(),m=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{sx:{width:`90%`},children:e}),(0,K.jsx)(`div`,{className:Bp(`checkable__post-check`),children:(0,K.jsx)(Lp,{isHovered:c&&f,isActive:t,isBlue:a,isDisabled:o,number:r})}),(0,K.jsx)(`input`,{id:d,className:Bp(`checkable__checkbox`),onChange:s&&i,checked:!!t,type:`checkbox`})]}),h=Bp(`checkable`,{"checkable--hovered":c&&f,"checkable--active":t,"checkable--blue":a,"checkable--disabled":o,"checkable--notclickable":!s,"checkable--fullwidth":n===`fullwidth`});return l?(0,K.jsx)(gn.label,{...u,...p,htmlFor:d,className:h,variants:Vp,initial:`initial`,animate:`animate`,exit:`exit`,whileHover:{scale:s&&!o?1.01:1},whileTap:{scale:s&&!o?.99:1},transition:bd.snappy,children:m}):(0,K.jsx)(`label`,{...u,...p,htmlFor:d,className:h,children:m})};Hp.propTypes={isActive:V.default.bool.isRequired,onChange:V.default.func.isRequired},Hp.Content=zp;var Up=({placeholder:e,value:t=``,selectedCount:n,totalCount:r,queryCount:i,isSelected:a,onSelect:o,onChange:s,"data-testid":c})=>{let l=c||`search_select_field`,u=(0,B.useRef)((0,Xf.default)((e,t)=>{e&&e.length>=2&&dd(t,e,{component:`SearchSelect`,query_length:e.length})},1e3)).current,d=(0,B.useCallback)(e=>{u(e,l),s(e)},[s,u,l]),f=(0,B.useCallback)(()=>{let e=!a;cd(l,e,{component:`SearchSelect`,action:`select_all`,query_count:i}),o&&o(e)},[o,l,i,a]),p=t.length>12?`${t.substr(0,10)} ...`:t,m=t?`${U(`checklist.select_all`)} "${p}" (${i})`:U(`checklist.select_all`),h=n?`${n} / ${r} ${U(`properties.selected`)}`:``;return(0,K.jsxs)(`div`,{style:{fontFamily:`Plus Jakarta Sans, Helvetica, Arial, sans-serif`,position:`relative`,display:`flex`,width:`100%`},children:[(0,K.jsx)(I,{sx:{flexGrow:1},children:(0,K.jsx)($f,{placeholder:e,value:t,onChange:d,onGrey:!0,iconLocation:`left`,"data-testid":l})}),(0,K.jsxs)(I,{sx:{height:`40px`},children:[(0,K.jsx)(I,{sx:{height:`24px`},children:o&&(i>0||!t)?(0,K.jsxs)(I,{sx:{display:`flex`,marginLeft:`24px`,alignItems:`center`},children:[(0,K.jsx)(Xg,{style:{marginRight:`10px`},children:m}),(0,K.jsx)(Ap.Base,{selected:a,onChange:f})]}):null}),(0,K.jsx)(I,{sx:{textAlign:`right`,opacity:.75},children:(0,K.jsxs)(Zg,{children:[` `,h,` `]})})]})]})};Up.propTypes={selectedCount:V.default.number,totalCount:V.default.number,queryCount:V.default.number,placeholder:V.default.string,value:V.default.string,onChange:V.default.func.isRequired,isSelected:V.default.bool,onSelect:V.default.func,"data-testid":V.default.string};var Wp=`#36ACB2`,Gp=`#197D82`,Kp=`#ff5722`,qp=`#32d17d`,Jp=`#FF3230`,Yp=`#00C4FF`,Xp=`#A0AAB4`,Zp=`#ffffff`,Qp=`#868f9a`,$p=`#B2EBF2`,em=`#BBDEFB`,tm=`#E1BEE7`,nm=`#C8E6C9`,rm=`#FFCDD2`,im={flexWrap:`wrap`,gap:1,"& .MuiToggleButtonGroup-grouped":{minWidth:44,height:36,border:`1px solid var(--color-border)`,borderRadius:`8px`,color:`var(--color-text)`,fontFamily:`"Plus Jakarta Sans", Helvetica, Arial, sans-serif`,fontSize:13,fontWeight:600,textTransform:`none`,"&.Mu
2i-selected, &.Mui-selected:hover":{bgcolor:`var(--color-primary)`,color:`var(--color-white)`}}},am=({value:e=[],onChange:t,disabled:n=!1})=>{let r=Os();return(0,K.jsx)(qr,{value:e,onChange:(0,B.useCallback)((e,n)=>{t&&t([...n].sort((e,t)=>e-t))},[t]),disabled:n,sx:im,children:r.map((e,t)=>(0,K.jsx)(ai,{value:t,"data-testid":`day_of_week_${t}`,children:e},t))})};am.propTypes={value:V.default.arrayOf(V.default.number),onChange:V.default.func,disabled:V.default.bool};var om=[29,30,31],sm=(e=[])=>e.some(e=>om.includes(e)),cm=Array.from({length:31},(e,t)=>t+1),lm={display:`grid`,gridTemplateColumns:`repeat(7, 1fr)`,gap:1,"& .MuiToggleButtonGroup-grouped":{height:36,border:`1px solid var(--color-border)`,borderRadius:`8px`,margin:0,color:`var(--color-text)`,fontFamily:`"Plus Jakarta Sans", Helvetica, Arial, sans-serif`,fontSize:13,fontWeight:600,textTransform:`none`,"&:not(:first-of-type)":{borderLeft:`1px solid var(--color-border)`},"&.Mui-selected, &.Mui-selected:hover":{bgcolor:`var(--color-primary)`,color:`var(--color-white)`}}},um=({value:e=[],maxValue:t=31,onChange:n,disabled:r=!1})=>{let i=(0,B.useCallback)((e,r)=>{n&&(r.length>t&&(r=r.slice(0,t)),n([...r].sort((e,t)=>e-t)))},[n]),a=e.length>=t;return(0,K.jsx)(qr,{value:e,onChange:i,disabled:r,sx:lm,children:cm.map(t=>{let n=e.includes(t);return(0,K.jsx)(ai,{value:t,disabled:r||a&&!n,"data-testid":`day_of_month_${t}`,children:t},t)})})};um.propTypes={value:V.default.arrayOf(V.default.number),onChange:V.default.func,disabled:V.default.bool};var dm=_i.default.bind({box:`_box_gq2hr_2`,"box--nopadding":`_box--nopadding_gq2hr_17`,boxNopadding:`_box--nopadding_gq2hr_17`,"box--nooverflow":`_box--nooverflow_gq2hr_21`,boxNooverflow:`_box--nooverflow_gq2hr_21`,"box--white":`_box--white_gq2hr_24`,boxWhite:`_box--white_gq2hr_24`,"box--nofocustopbottom":`_box--nofocustopbottom_gq2hr_28`,boxNofocustopbottom:`_box--nofocustopbottom_gq2hr_28`,"box--nofocusbottom":`_box--nofocusbottom_gq2hr_33`,boxNofocusbottom:`_box--nofocusbottom_gq2hr_33`,"box--nofocustop":`_box--nofocustop_gq2hr_28`,boxNofocustop:`_box--nofocustop_gq2hr_28`,"box--error":`_box--error_gq2hr_41`,boxError:`_box--error_gq2hr_41`,"box--first":`_box--first_gq2hr_47`,boxFirst:`_box--first_gq2hr_47`,"box--hover":`_box--hover_gq2hr_53`,boxHover:`_box--hover_gq2hr_53`,"box--ishover":`_box--ishover_gq2hr_53`,boxIshover:`_box--ishover_gq2hr_53`,"box--focus":`_box--focus_gq2hr_59`,boxFocus:`_box--focus_gq2hr_59`,"box--last":`_box--last_gq2hr_72`,boxLast:`_box--last_gq2hr_72`,box__label:`_box__label_gq2hr_77`,boxLabel:`_box__label_gq2hr_77`}),fm=({isFirst:e,isLast:t,children:n,focus:r,hover:i,error:a,noPadding:o,noOverflow:s,height:c,isGrouped:l,styleOverwrite:u,noBox:d,onClick:f,white:p,isHover:m,isPhoneNumber:h=!1,...g})=>{let _=c?{style:{height:c,...u}}:{style:{...u}};return d?(0,K.jsx)(`div`,{children:n}):(0,K.jsx)(`div`,{..._,onClick:f,"data-testid":g[`data-testid`],className:dm(`box`,{"box--white":p,"box--first":e,"box--last":t,"box--hover":i&&!h,"box--ishover":m,"box--focus":r,"box--error":a,"box--nopadding":o,"box--nooverflow":s,"box--nofocustopbottom":!t&&!e&&l&&r,"box--nofocusbottom":e&&l&&r,"box--nofocustop":t&&l&&r,box__phonenumber:h}),children:n})},pm=({text:e})=>(0,K.jsx)(`div`,{className:dm(`box__label`),children:(0,K.jsx)(Yg,{type:`medium`,children:e})});pm.propTypes={text:V.default.string.isRequired},fm.propTypes={isFirst:V.default.bool,isLast:V.default.bool,focus:V.default.bool,hover:V.default.bool,noBox:V.default.bool,error:V.default.bool,noPadding:V.default.bool,noOverflow:V.default.bool,isGrouped:V.default.bool,isPhoneNumber:V.default.bool,height:V.default.number,children:V.default.node},fm.Label=pm;var mm={display:`block`,width:`8px`},hm=(0,B.memo)(e=>(0,K.jsx)(I,{sx:{...mm,height:`4px`},...e})),gm=(0,B.memo)(e=>(0,K.jsx)(I,{sx:{...mm,height:`8px`},...e})),_m=(0,B.memo)(({loadingText:e,...t})=>(0,K.jsx)(I,{sx:{...mm,height:`16px`,width:e?0:`8px`},...t})),vm=(0,B.memo)(e=>(0,K.jsx)(I,{sx:{...mm,height:`12px`},...e})),ym=(0,B.memo)(e=>(0,K.jsx)(I,{sx:{...mm,height:`24px`},...e})),bm=(0,B.memo)(e=>(0,K.jsx)(I,{sx:{...mm,height:`36px`},...e})),xm=(0,B.memo)(e=>(0,K.jsx)(I,{sx:{...mm,height:`32px`},...e})),Sm=(0,B.memo)(e=>(0,K.jsx)(I,{sx:{...mm,height:`48px`},...e})),Cm=(0,B.memo)(e=>(0,K.jsx)(I,{sx:{...mm,height:`64px`},...e})),wm=(0,B.memo)(e=>{let{type:t,size:n,children:r,...i}=e;return(0,K.jsx)(I,{sx:{[t===`vertical`?`height`:`width`]:n},...i,children:r})}),Tm={position:`absolute`,content:`' '`,display:`block`,top:0,height:`1px`,opacity:.2,left:0,right:0,backgroundColor:`var(--color-model-headline)`},Em={bottom:{bottom:0,top:`auto`},relative:{position:`relative !important`,width:`100%`},top:{top:0,bottom:`auto`},light:{opacity:.12},medium:{backgroundColor:`var(--color-dark-border)`,opacity:1},grey:{backgroundColor:`var(--color-radio-border-idle)`,opacity:1},mediumdark:{backgroundColor:`var(--color-pricing-divier-grey)`,opacity:1},dark:{opacity:1,backgroundColor:`var(--color-dark-grey-darker)`}},Dm=({type:e,...t})=>{let n=(0,H.default)(typeof e==`string`?String(e).trim().split(` `).map(e=>e.trim()).filter(e=>!!e):e,e=>Em[e]||{}),r=Object.assign({},Tm,...n);return(0,K.jsx)(I,{...t,sx:r})};
2Dm.propTypes={type:V.default.oneOfType([V.default.arrayOf(V.default.oneOf([`bottom`,`light`,`top`,`dark`,`medium`,`mediumdark`,`relative`,`grey`])),V.default.string])};var Om=({title:e,description:t,action:n,dataKey:r})=>(0,K.jsxs)(I,{"data-testid":r,sx:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,justifyContent:`space-between`,gap:2,p:{xs:1.5,md:2.2},mx:2,mt:1.5,mb:1,borderRadius:2,border:`1px solid var(--color-border)`,bgcolor:`var(--color-checklist-sidebar-bg)`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:.75},children:[(0,K.jsx)(x,{variant:`h5`,sx:{fontWeight:600,lineHeight:1.3},children:e}),t&&(0,K.jsx)(Xg,{children:t})]}),n]});Om.propTypes={title:V.default.string.isRequired,description:V.default.string,action:V.default.node,dataKey:V.default.string};var km=t({default:()=>Am}),Am=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,...e,children:(0,K.jsx)(`path`,{d:`M132.893 310.534l-30.081 10.911L91.9 291.364l30.081-10.911zm138.659-9.462l-77.856-46.72-41.616 15.152 10.944 30.064 27.28-9.92 82.144 49.28 97.6-65.072L480 315.088V480H32V347.2l40.8-14.848-10.928-30.048L0 324.8V512h512V292.912l-146.048-54.768zM0 0v278.848l66.576-24.224-10.928-30.064L32 233.152V32h448v168.912l-114.048-42.768-94.4 62.928-77.856-46.72-47.84 17.392 10.944 30.064 33.504-12.16 82.144 49.28 97.6-65.072L512 247.088V0zm96.656 243.686L85.721 213.63l30.07-10.941 10.935 30.055z`})}),jm=t({default:()=>Mm}),Mm=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 22 22`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z`,fill:`#858E99`})}),Nm=t({default:()=>Pm}),Pm=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{cx:9,cy:9,r:9,fill:`#FF4B0A`}),(0,K.jsxs)(`g`,{transform:`translate(8 2)`,fill:`#FFF`,children:[(0,K.jsx)(`path`,{d:`M.544 8.49c.01.282.24.51.513.51h.162a.519.519 0 0 0 .511-.51L1.972.88A.845.845 0 0 0 1.12 0a.839.839 0 0 0-.849.88l.273 7.61z`}),(0,K.jsx)(`circle`,{cx:1.125,cy:11.505,r:1.125})]})]})}),Fm=t({default:()=>Im}),Im=e=>(0,K.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:Wp,width:`24px`,height:`24px`,...e,children:[(0,K.jsx)(`path`,{d:`M21 7H3v13c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7zm-2 13H5V9h14v11zm-3-9h-4v-2h-2v2H8l4 4 4-4z`}),(0,K.jsx)(`path`,{d:`M20 3H4c-1.1 0-2 .9-2 2v1h20V5c0-1.1-.9-2-2-2z`})]}),fne=t({default:()=>pne}),pne=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,...e,children:(0,K.jsx)(`path`,{d:`M132.893 310.534l-30.081 10.911L91.9 291.364l30.081-10.911zm138.659-9.462l-77.856-46.72-41.616 15.152 10.944 30.064 27.28-9.92 82.144 49.28 97.6-65.072L480 315.088V480H32V347.2l40.8-14.848-10.928-30.048L0 324.8V512h512V292.912l-146.048-54.768zM0 0v278.848l66.576-24.224-10.928-30.064L32 233.152V32h448v168.912l-114.048-42.768-94.4 62.928-77.856-46.72-47.84 17.392 10.944 30.064 33.504-12.16 82.144 49.28 97.6-65.072L512 247.088V0zm96.656 243.686L85.721 213.63l30.07-10.941 10.935 30.055z`})}),mne=t({default:()=>hne}),hne=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 14 23`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{d:`M24.592 344.565a2 2 0 0 1 0-2.84l9.132-9.133a2 2 0 0 1 2.836-.005l.507.507c.782.782.781 2.051 0 2.832l-7.219 7.219 7.219 7.218a1.997 1.997 0 0 1 0 2.832l-.507.507a1.997 1.997 0 0 1-2.836-.005l-9.132-9.132z`,id:`ArrowGreyLeft-a`})}),(0,K.jsx)(`use`,{fill:`#858E99`,xlinkHref:`#ArrowGreyLeft-a`,transform:`translate(-24 -332)`,fillRule:`evenodd`})]}),gne=t({default:()=>_ne}),_ne=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 14 23`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{d:`M987.592 344.565a2 2 0 0 1 0-2.84l9.132-9.133a2 2 0 0 1 2.836-.005l.507.507c.782.782.781 2.051 0 2.832l-7.219 7.219 7.219 7.218a1.997 1.997 0 0 1 0 2.832l-.507.507a1.997 1.997 0 0 1-2.836-.005l-9.132-9.132z`,id:`ArrowGreyRight-a`})}),(0,K.jsx)(`use`,{fill:`#858E99`,transform:`rotate(180 500.328 177.145)`,xlinkHref:`#ArrowGreyRight-a`,fillRule:`evenodd`})]}),vne=t({default:()=>yne}),yne=e=>
2(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:9.414,height:12.207,...e,children:(0,K.jsx)(`g`,{"data-name":`Group 14`,children:(0,K.jsxs)(`g`,{"data-name":`Group 16`,fill:`none`,stroke:e.fill||`#868F9A`,children:[(0,K.jsx)(`path`,{"data-name":`Line 15`,d:`M4.707.707v11`}),(0,K.jsx)(`path`,{"data-name":`Line 16`,d:`m4.707.707-4 4`}),(0,K.jsx)(`path`,{"data-name":`Line 17`,d:`m4.707.707 4 4`})]})})}),bne=t({default:()=>xne}),xne=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,...e,children:(0,K.jsx)(`path`,{d:`M132.893 310.534l-30.081 10.911L91.9 291.364l30.081-10.911zm138.659-9.462l-77.856-46.72-41.616 15.152 10.944 30.064 27.28-9.92 82.144 49.28 97.6-65.072L480 315.088V480H32V347.2l40.8-14.848-10.928-30.048L0 324.8V512h512V292.912l-146.048-54.768zM0 0v278.848l66.576-24.224-10.928-30.064L32 233.152V32h448v168.912l-114.048-42.768-94.4 62.928-77.856-46.72-47.84 17.392 10.944 30.064 33.504-12.16 82.144 49.28 97.6-65.072L512 247.088V0zm96.656 243.686L85.721 213.63l30.07-10.941 10.935 30.055z`})}),Sne=t({default:()=>Cne}),Cne=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 64 64`,width:`4em`,height:`4em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{d:`M0 32C0 14.327 14.327 0 32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C14.327 64 0 49.673 0 32z`,id:`a`})}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsxs)(`g`,{fill:`#329700`,children:[(0,K.jsx)(`path`,{d:`M21.037 34.093a.995.995 0 0 1 .003-1.411.997.997 0 0 1 1.41-.003l7.075 7.074-.707.707a.997.997 0 0 1-1.411.003l-6.37-6.37z`}),(0,K.jsx)(`path`,{d:`M28.11 38.339l14.144-14.143a.997.997 0 0 1 1.413 0 .994.994 0 0 1 .001 1.414L29.525 39.753l-1.414-1.414z`})]}),(0,K.jsx)(`path`,{stroke:`#329700`,strokeWidth:2,d:`M1 32C1 14.88 14.88 1 32 1c17.12 0 31 13.88 31 31 0 17.12-13.88 31-31 31C14.88 63 1 49.12 1 32z`})]})]}),wne=t({default:()=>Tne}),Tne=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 48 48`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`circle`,{id:`Bigcheck-a`,cx:24,cy:24,r:24}),(0,K.jsx)(`mask`,{id:`Bigcheck-b`,x:0,y:0,width:48,height:48,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#Bigcheck-a`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`use`,{stroke:Wp,mask:`url(#Bigcheck-b)`,strokeWidth:4,xlinkHref:`#Bigcheck-a`}),(0,K.jsx)(`path`,{d:`M14.139 23.895a1.5 1.5 0 0 1 2.124.002l4.068 4.072 11.406-11.406a1.504 1.504 0 0 1 2.124-.002l.078.078c.586.586.59 1.532.006 2.116L21.388 31.312a1.503 1.503 0 0 1-2.121-.012l-5.2-5.2a1.506 1.506 0 0 1-.006-2.128l.078-.077z`,fill:Wp})]})]}),Ene=t({default:()=>Dne}),Dne=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 64 64`,width:`3em`,height:`3em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{d:`M0 32C0 14.327 14.327 0 32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C14.327 64 0 49.673 0 32z`,id:`a`})}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsxs)(`g`,{fill:`#197D82`,children:[(0,K.jsx)(`path`,{d:`M21.037 34.093a.995.995 0 0 1 .003-1.411.997.997 0 0 1 1.41-.003l7.075 7.074-.707.707a.997.997 0 0 1-1.411.003l-6.37-6.37z`}),(0,K.jsx)(`path`,{d:`M28.11 38.339l14.144-14.143a.997.997 0 0 1 1.413 0 .994.994 0 0 1 .001 1.414L29.525 39.753l-1.414-1.414z`})]}),(0,K.jsx)(`path`,{stroke:Wp,strokeWidth:2,d:`M1 32C1 14.88 14.88 1 32 1c17.12 0 31 13.88 31 31 0 17.12-13.88 31-31 31C14.88 63 1 49.12 1 32z`})]})]}),One=t({default:()=>kne}),kne=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,...e,children:(0,K.jsx)(`path`,{d:`M256 0C115 0 0 115.1 0 256c0 141 115.1 256 256 256 141 0 256-115 256-256S397 0 256 0zm0 482C131.4 482 30 380.6 30 256S131.4 30 256 30s226 101.4 226 226-101.4 226-226 226z`,fill:e.fill||`#868F9A`})}),Ane=t({default:()=>jne}),jne=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,...e,children:(0,K.jsx)(`path`,{d:`M132.893 310.534l-30.081 10.911L91.9 291.364l30.081-10.911zm138.659-9.462l-77.856-46.72-41.616 15.152 10.944 30.064 27.28-9.92 82.144 49.28 97.6-65.072L480 315.088V480H32V347.2l40.8-14.848-10.928-30.048L0 324.8V512h512V292.912l-146.048-54.768zM0 0v278.848l66.576-24.224-10.928-30.064L32 233.152V32h448v168.912l-114.048-42.768-94.4 62.928-77.856-46.72-47.84 17.392 10.944 30.064 33.504-12.16 82.144 49.28 97.6-65.072L512 247.088V0zm96.656 243.686L85.721 213.63l30.07-10.941 10.935 30.055z`})}),Mne=t({default:()=>Nne}),Nne=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,...e,children:(0,K.jsx)(`path`,{d:`M132.893 310.534l-30.081 10.911L91.9 291.364l30.081-10.911zm138.659-9.462l-77.856-46.72-41.616 15.152 10.944 30.064 27.28-9.92 82.144 49.28 97.6-65.072L480 315.088V480H32V347.2l40.8-14.848-10.928-30.048L0 324.8V512h512V292.912l-146.048-54.768zM0 0v278.848l66.576-24.224-10.928-30.064L32 233.152V32h448v168.912l-114.048-42.768-94.4 62.928-77.856-46.72-47.84 17.392 10.944 30.064 33.504-12.16 82.144 49.28 97.6-65.072L512 247.088V0zm96.656 243.686L85.721 213.63l30.07-10.941 10.935 30.055z`})}),Pne=t({default:()=>Fne}),Fne=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,...e,children:(0,K.jsx)(`path`,{d:`M132.893 310.534l-30.081 10.911L91.9 291.364l30.081-10.911zm138.659-9.462l-77.856-46.72-41.616 15.152 10.944 30.064 27.28-9.92 82.144 49.28 97.6-65.072L480 315.088V480H32V347.2l40.8-14.848-10.928-30.048L0 324.8V512h512V292.912l-146.048-54.768zM0 0v278.848l66.576-24.224-10.928-30.064L32 233.152V32h448v168.912l-114.048-42.768-94.4 62.928-77.856-46.72-47.84 17.392 10.944 30.064 33.504-12.16 82.144 49.28 97.6-65.072L512 247.088V0zm96.656 243.686L85.721 213.63l30.07-10.941 10.935 30.055z`})}),Ine=t({default:()=>Lne}),Lne=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,...e,children:(0,K.jsx)(`path`,{d:`M132.893 310.534l-30.081 10.911L91.9 291.364l30.081-10.911zm138.659-9.462l-77.856-46.72-41.616 15.152 10.944 30.064 27.28-9.92 82.144 49.28 97.6-65.072L480 315.088V480H32V347.2l40.8-14.848-10.928-30.048L0 324.8V512h512V292.912l-146.048-54.768zM0 0v278.848l66.576-24.224-10.928-30.064L32 233.152V32h448v168.912l-114.048-42.768-94.4 62.928-77.856-46.72-47.84 17.392 10.944 30.064 33.504-12.16 82.144 49.28 97.6-65.072L512 247.088V0zm96.656 243.686L85.721 213.63l30.07-10.941 10.935 30.055z`})}),Rne=t({default:()=>zne}),zne=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,...e,children:(0,K.jsx)(`path`,{d:`M132.893 310.534l-30.081 10.911L91.9 291.364l30.081-10.911zm138.659-9.462l-77.856-46.72-41.616 15.152 10.944 30.064 27.28-9.92 82.144 49.28 97.6-65.072L480 315.088V480H32V347.2l40.8-14.848-10.928-30.048L0 324.8V512h512V292.912l-146.048-54.768zM0 0v278.848l66.576-24.224-10.928-30.064L32 233.152V32h448v168.912l-114.048-42.768-94.4 62.928-77.856-46.72-47.84 17.392 10.944 30.064 33.504-12.16 82.144 49.28 97.6-65.072L512 247.088V0zm96.656 243.686L85.721 213.63l30.07-10.941 10.935 30.055z`})}),Bne=t({default:()=>Vne}),Vne=e=>
2(0,K.jsxs)(`svg`,{viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,K.jsx)(`g`,{clipPath:`url(#a)`,stroke:`currentColor`,strokeWidth:1.2,strokeLinecap:`square`,strokeLinejoin:`round`,children:(0,K.jsx)(`path`,{d:`m7.2 6.867 3.958 3.957M1.264 3.899V.93h2.968M11.158 7.856v2.968H8.19M1.264.93l3.958 3.958`})}),(0,K.jsx)(`defs`,{children:(0,K.jsx)(`clipPath`,{id:`a`,children:(0,K.jsx)(`path`,{fill:`#fff`,transform:`matrix(-1 0 0 1 11.488 .602)`,d:`M0 0h10.553v10.553H0z`})})})]}),Hne=t({default:()=>Une}),Une=e=>(0,K.jsx)(`svg`,{width:`30px`,height:`30px`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,K.jsx)(`g`,{id:`Interface / External_Link`,children:(0,K.jsx)(`path`,{id:`Vector`,d:`M10.0002 5H8.2002C7.08009 5 6.51962 5 6.0918 5.21799C5.71547 5.40973 5.40973 5.71547 5.21799 6.0918C5 6.51962 5 7.08009 5 8.2002V15.8002C5 16.9203 5 17.4801 5.21799 17.9079C5.40973 18.2842 5.71547 18.5905 6.0918 18.7822C6.5192 19 7.07899 19 8.19691 19H15.8031C16.921 19 17.48 19 17.9074 18.7822C18.2837 18.5905 18.5905 18.2839 18.7822 17.9076C19 17.4802 19 16.921 19 15.8031V14M20 9V4M20 4H15M20 4L13 11`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`})})}),Wne=t({default:()=>Gne}),Gne=e=>(0,K.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:175,height:50,viewBox:`0 0 175 50`,fill:`none`,...e,children:[(0,K.jsx)(`circle`,{cx:25,cy:25,r:25,fill:`url(#paint0_linear_586_371)`}),(0,K.jsx)(`path`,{d:`M31.8625 20.7324H31.1292C29.9959 20.7324 29.0625 21.5324 29.0625 22.5324V26.5991C29.0625 27.5991 29.9959 28.3991 31.1292 28.3991H31.8625C32.9958 28.3991 33.9292 27.5991 33.9292 26.5991V22.5324C33.8625 21.5324 32.9958 20.7324 31.8625 20.7324Z`,fill:`#0D9CDE`}),(0,K.jsx)(`path`,{d:`M37.6021 30.9316H37.5354C36.4021 30.9316 35.4688 31.7316 35.4688 32.7316V35.3983C35.4688 36.3983 36.4021 37.1983 37.5354 37.1983H37.6021C38.7354 37.1983 39.6687 36.3983 39.6687 35.3983V32.7316C39.6687 31.7316 38.7354 30.9316 37.6021 30.9316Z`,fill:`#5871ED`}),(0,K.jsx)(`path`,{d:`M26.2622 10.6641H24.1956C23.0622 10.6641 22.1289 11.4641 22.1289 12.4641V18.2641C22.1289 19.2641 23.0622 20.0641 24.1956 20.0641H26.2622C27.3956 20.0641 28.3289 19.2641 28.3289 18.2641V12.4641C28.2622 11.4641 27.3289 10.6641 26.2622 10.6641Z`,fill:`#12BF98`}),(0,K.jsx)(`path`,{d:`M26.0031 29.5312H25.2698C24.1365 29.5312 23.2031 30.3312 23.2031 31.3312V35.3979C23.2031 36.3979 24.1365 37.1979 25.2698 37.1979H26.0031C27.1365 37.1979 28.0698 36.3979 28.0698 35.3979V31.2646C28.0698 30.2646 27.1365 29.5312 26.0031 29.5312Z`,fill:`#169AD9`}),(0,K.jsx)(`path`,{d:`M20.4615 19.0684H18.3948C17.2614 19.0684 16.3281 19.8684 16.3281 20.8684V26.6684C16.3281 27.6684 17.2614 28.4684 18.3948 28.4684H20.4615C21.5948 28.4684 22.5281 27.6684 22.5281 26.6684V20.8684C22.5281 19.8017 21.5948 19.0684 20.4615 19.0684Z`,fill:`#12BF98`}),(0,K.jsx)(`path`,{d:`M14.7388 27.998H12.6721C11.5388 27.998 10.6055 28.798 10.6055 29.798V35.598C10.6055 36.598 11.5388 37.3981 12.6721 37.3981H14.7388C15.8721 37.3981 16.8055 36.598 16.8055 35.598V29.798C16.8055 28.798 15.8721 27.998 14.7388 27.998Z`,fill:`#12BF98`}),(0,K.jsx)(`path`,{d:`M16.5945 26.334C16.2612 27.2673 15.7945 27.6673 14.3945 28.2007L16.5945 30.2673C17.0612 29.0673 17.5945 28.6007 19.0612 28.0673L16.5945 26.334Z`,fill:`#12BF98`}),(0,K.jsx)(`path`,{d:`M22.3953 18.0664C22.062 18.9997 21.5953 19.3997 20.1953 19.9331L22.3953 21.9997C22.862 20.7997 23.3953 20.3331 24.862 19.7997L22.3953 18.0664Z`,fill:`#12BF98`}),(0,K.jsx)(`path`,{xmlns:`http://www.w3.org/2000/svg`,d:`M75.4883 14.5898C77.6289 14.5898 79.5547 15.2109 81.2656 16.4531C82.9844 17.6953 84.0742 19.3242 84.5352 21.3398H81.0312C80.5391 20.2695 79.793 19.3906 78.793 18.7031C77.793 18.0078 76.6914 17.6602 75.4883 17.6602C73.8086 17.6602 72.3672 18.2891 71.1641 19.5469C69.9688 20.8047 69.3711 22.2891 69.3711 24C69.3711 25.7266 69.9688 27.2148 71.1641 28.4648C72.3672 29.7148 73.8086 30.3398 75.4883 30.3398C76.6914 30.3398 77.793 30 78.793 29.3203C79.793 28.6406 80.5391 27.7539 81.0312 26.6602H84.5352C84.0742 28.6758 82.9844 30.3047 81.2656 31.5469C79.5547 32.7891 77.6289 33.4102 75.4883 33.4102C72.8008 33.4102 70.5195 32.5078 68.6445 30.7031C66.7773 28.8906 65.8438 26.6562 65.8438 24C65.8438 21.3438 66.7773 19.1133 68.6445 17.3086C70.5195 15.4961 72.8008 14.5898 75.4883 14.5898ZM86.8086 33V15H90.2188V33H86.8086ZM107.656 26.0391C107.656 26.4844 107.594 26.9883 107.469 27.5508H96.2539
2C96.4492 28.3477 96.9102 29.0312 97.6367 29.6016C98.3633 30.1719 99.1992 30.457 100.145 30.457C100.832 30.457 101.445 30.3008 101.984 29.9883C102.531 29.6758 102.957 29.2891 103.262 28.8281H106.965C106.473 30.2188 105.602 31.332 104.352 32.168C103.102 32.9961 101.699 33.4102 100.145 33.4102C98.0508 33.4102 96.2695 32.7031 94.8008 31.2891C93.3398 29.8672 92.6094 28.1172 92.6094 26.0391C92.6094 23.9609 93.3438 22.2188 94.8125 20.8125C96.2891 19.3984 98.082 18.6914 100.191 18.6914C102.254 18.6914 104.012 19.4062 105.465 20.8359C106.926 22.2578 107.656 23.9922 107.656 26.0391ZM96.3008 24.6914H104.012C103.832 23.8086 103.402 23.0703 102.723 22.4766C102.043 21.875 101.199 21.5742 100.191 21.5742C99.1992 21.5742 98.3477 21.875 97.6367 22.4766C96.9258 23.0703 96.4805 23.8086 96.3008 24.6914ZM121.133 26.0391C121.133 24.8672 120.719 23.8633 119.891 23.0273C119.07 22.1914 118.07 21.7734 116.891 21.7734C115.719 21.7734 114.715 22.1953 113.879 23.0391C113.051 23.875 112.637 24.875 112.637 26.0391C112.637 27.2266 113.051 28.2422 113.879 29.0859C114.715 29.9219 115.719 30.3398 116.891 30.3398C118.078 30.3398 119.082 29.9219 119.902 29.0859C120.723 28.2422 121.133 27.2266 121.133 26.0391ZM121.133 33V30.7734H121.086C120.641 31.5078 120.023 32.1328 119.234 32.6484C118.453 33.1562 117.527 33.4102 116.457 33.4102C114.41 33.4102 112.668 32.707 111.23 31.3008C109.801 29.8867 109.086 28.1328 109.086 26.0391C109.086 23.9609 109.801 22.2188 111.23 20.8125C112.668 19.3984 114.41 18.6914 116.457 18.6914C118.348 18.6914 119.891 19.5 121.086 21.1172H121.133V19.1016H124.543V33H121.133ZM127.426 33V19.1016H130.836V21.0234H130.883C131.797 19.4688 132.973 18.6914 134.41 18.6914H134.75V22.1484H133.906C133.094 22.1484 132.395 22.4258 131.809 22.9805C131.223 23.5352 130.898 24.2188 130.836 25.0312V33H127.426ZM136.965 19.1016H140.375V33H136.965V19.1016ZM137.234 17.4727C136.844 17.0742 136.648 16.6016 136.648 16.0547C136.648 15.5078 136.844 15.0352 137.234 14.6367C137.633 14.2383 138.109 14.0391 138.664 14.0391C139.227 14.0391 139.703 14.2383 140.094 14.6367C140.484 15.0352 140.68 15.5078 140.68 16.0547C140.68 16.6016 140.484 17.0742 140.094 17.4727C139.703 17.8711 139.227 18.0703 138.664 18.0703C138.109 18.0703 137.633 17.8711 137.234 17.4727ZM146.656 33H143.246V19.1016H146.656V21.2344H146.703C147.57 19.5391 148.914 18.6914 150.734 18.6914C152.336 18.6914 153.637 19.2422 154.637 20.3438C155.637 21.4375 156.137 22.8555 156.137 24.5977V33H152.727V24.8438C152.727 23.9922 152.43 23.2695 151.836 22.6758C151.242 22.0742 150.531 21.7734 149.703 21.7734C148.852 21.7734 148.129 22.0742 147.535 22.6758C146.949 23.2695 146.656 23.9922 146.656 24.8438V33ZM165.934 37.5117C164.074 37.5117 162.516 37.0586 161.258 36.1523C160.008 35.2539 159.27 34.0586 159.043 32.5664H162.617C162.773 33.1914 163.156 33.6875 163.766 34.0547C164.375 34.4219 165.098 34.6055 165.934 34.6055C167.168 34.6055 168.121 34.3164 168.793 33.7383C169.473 33.168 169.812 32.3047 169.812 31.1484V30.0703L169.742 30.0234C169.211 30.6172 168.566 31.1172 167.809 31.5234C167.051 31.9297 166.242 32.1328 165.383 32.1328C163.43 32.1328 161.801 31.5039 160.496 30.2461C159.191 28.9805 158.539 27.3711 158.539 25.418C158.539 23.4805 159.191 21.875 160.496 20.6016C161.801 19.3281 163.43 18.6914 165.383 18.6914C166.391 18.6914 167.266 18.9219 168.008 19.3828C168.75 19.8359 169.328 20.375 169.742 21L169.812 20.9531V19.1016H173.223V31.3711C173.223 33.3086 172.562 34.8164 171.242 35.8945C169.93 36.9727 168.16 37.5117 165.934 37.5117ZM163.203 28.1602C163.945 28.9102 164.852 29.2852 165.922 29.2852C167 29.2852 167.918 28.9102 168.676 28.1602C169.434 27.4023 169.812 26.4883 169.812 25.418C169.812 24.3477 169.434 23.4375 168.676 22.6875C167.918 21.9297 167 21.5508 165.922 21.5508C164.852 21.5508 163.945 21.9297 163.203 22.6875C162.461 23.4375 162.09 24.3477 162.09 25.418C162.09 26.4883 162.461 27.4023 163.203 28.1602Z`,fill:`#263653`}),(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`linearGradient`,{id:`paint0_linear_586_371`,x1:0,y1:50.8704,x2:47.1637,y2:-2.50616,gradientUnits:`userSpaceOnUse`,children:[(0,K.jsx)(`stop`,{stopColor:`#1D293F`}),(0,K.jsx)(`stop`,{offset:1,stopColor:`#3F5988`})]})})]}),Kne=t({default:()=>qne}),qne=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M14 4.5l-8.5 8L2 9`,strokeWidth:2,stroke:Wp,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Jne=t({default:()=>Yne}),Yne=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{fill:`#FFF`,cx:9,cy:9,r:9}),(0,K.jsx)(`path`,{d:`M9 18A9 9 0 119 0a9 9 0 010 18zm.705-16.195L5.462 9.816h2.862v6.389L12.662 8.3H9.705V1.805z`,fill:`#66BB6A`})]})}),Xne=t({default:()=>Zne}),Zne=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M1.501 20.134c-.277.478-.062.866.501.866h19.996c.553 0 .782-.38.5-.866L12.502 2.866c-.277-.478-.72-.486-1.002 0L1.5 20.134z`,id:`IcActiveProblemReported-a`}),(0,K.jsx)(`mask`,{id:`IcActiveProblemReported-b`,x:0,y:0,width:22,height:19,fill:`#fff`,children:(0,K.jsx)(`use`,{href:`#IcActiveProblemReported-a`})})]}),(0,K.jsxs)(`g`,{fill:`#FF4B0A`,fillRule:`evenodd`,children:[(0,K.jsx)(`use`,{mask:`url(#IcActiveProblemReported-b)`,strokeWidth:2,href:`#IcActiveProblemReported-a`}),(0,K.jsx)(`path`,{fill:`#FFF`,d:`M11 10l.333 5.5h1.334L13 10zM11 17.003c0 .616.385.997 1 .997.62 0 1-.381 1-.997C13 16.38 12.62 16 12 16c-.615 0-1 .381-1 1.003z`})]})]}),Qne=t({default:()=>$ne}),$ne=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 21 22`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-2-1h24v24H-2z`}),(0,K.jsx)(`path`,{d:`M18.988 17.798a3.27 3.27 0 0 1-2.002 2.574c-.528.22-1.1.286-1.672.22a4.326 4.326 0 0 1-1.672-.572c-.792-.44-1.584-1.122-2.508-2.134 1.452-1.782 2.332-3.41 2.662-4.862a5.514 5.514 0 0 0 .11-1.87 3.57 3.57 0 0 0-.594-1.496c-.682-.99-1.826-1.562-3.102-1.562-1.276 0-2.42.594-3.102 1.562a3.57 3.57 0 0 0-.594 1.496 4.568 4.568 0 0 0 .11 1.87c.33 1.452 1.232 3.102 2.662 4.884-.902 1.012-1.716 1.694-2.508 2.134a4.326 4.326 0 0 1-1.672.572 3.519 3.519 0 0 1-1.672-.22 3.27 3.27 0 0 1-2.002-2.574c-.066-.55-.022-1.1.198-1.716.066-.22.176-.44.286-.704.154-.352.33-.726.506-1.1l.022-.044a240.498 240.498 0 0 1 4.84-9.878l.066-.132c.176-.33.352-.682.528-1.012.176-.352.374-.682.616-.968a2.3 2.3 0 0 1 1.76-.814 2.3 2.3 0 0 1 1.76.814c.242.286.44.616.616.968.176.33.352.682.528 1.012l.066.132a291.83 291.83 0 0 1 4.818 9.9v.022c.176.352.33.748.506 1.1.11.264.22.484.286.704.176.572.242 1.122.154 1.694m-8.778-1.034c-1.188-1.496-1.958-2.904-2.222-4.092-.11-.506-.132-.946-.066-1.342.044-.352.176-.66.352-.924.418-.594 1.122-.968 1.936-.968.814 0 1.54.352 1.936.968.176.264.308.572.352.924.066.396.044.858-.066 1.342-.264 1.166-1.034 2.574-2.222 4.092m9.592-1.936c-.176-.396-.352-.77-.506-1.122l-.022-.022a229.627 229.627 0 0 0-4.862-9.944l-.066-.132c-.176-.33-.352-.682-.528-1.034-.22-.396-.44-.814-.792-1.21C12.322.484 11.31 0 10.232 0c-1.1 0-2.09.484-2.816 1.32-.33.396-.572.814-.792 1.21-.176.352-.352.704-.528 1.034l-.066.132a258.324 258.324 0 0 0-4.862 9.944l-.022.044c-.154.352-.33.726-.506 1.122-.11.242-.22.506-.33.792-.286.814-.374 1.584-.264 2.376a4.675 4.675 0 0 0 2.86 3.652 4.518 4.518 0 0 0 1.782.352 5.813 5.813 0 0 0 2.772-.792c.902-.506 1.76-1.232 2.728-2.288.968 1.056 1.848 1.782 2.728 2.288a5.813 5.813 0 0 0 2.772.792c.616 0 1.232-.11 1.782-.352 1.54-.616 2.618-2.024 2.86-3.652.176-.77.088-1.54-.198-2.354-.11-.264-.22-.55-.33-.792`,fill:`#FFF`})]})}),ere=t({default:()=>tre}),tre=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 21 22`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{id:`IcAirbnb2-a`,d:`M0 21.978h20.42V0H0z`})}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-2-1h24v24H-2z`}),(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`mask`,{id:`IcAirbnb2-b`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcAirbnb2-a`})}),(0,K.jsx)(`path`,{d:`M18.988 17.798a3.27 3.27 0 0 1-2.002 2.574c-.528.22-1.1.286-1.672.22a4.326 4.326 0 0 1-1.672-.572c-.792-.44-1.584-1.122-2.508-2.134 1.452-1.782 2.332-3.41 2.662-4.862a5.514 5.514 0 0 0 .11-1.87 3.57 3.57 0 0 0-.594-1.496c-.682-.99-1.826-1.562-3.102-1.562-1.276 0-2.42.594-3.102 1.562a3.57 3.57 0 0 0-.594
21.496 4.568 4.568 0 0 0 .11 1.87c.33 1.452 1.232 3.102 2.662 4.884-.902 1.012-1.716 1.694-2.508 2.134a4.326 4.326 0 0 1-1.672.572 3.519 3.519 0 0 1-1.672-.22 3.27 3.27 0 0 1-2.002-2.574c-.066-.55-.022-1.1.198-1.716.066-.22.176-.44.286-.704.154-.352.33-.726.506-1.1l.022-.044a240.498 240.498 0 0 1 4.84-9.878l.066-.132c.176-.33.352-.682.528-1.012.176-.352.374-.682.616-.968a2.3 2.3 0 0 1 1.76-.814 2.3 2.3 0 0 1 1.76.814c.242.286.44.616.616.968.176.33.352.682.528 1.012l.066.132a291.83 291.83 0 0 1 4.818 9.9v.022c.176.352.33.748.506 1.1.11.264.22.484.286.704.176.572.242 1.122.154 1.694m-8.778-1.034c-1.188-1.496-1.958-2.904-2.222-4.092-.11-.506-.132-.946-.066-1.342.044-.352.176-.66.352-.924.418-.594 1.122-.968 1.936-.968.814 0 1.54.352 1.936.968.176.264.308.572.352.924.066.396.044.858-.066 1.342-.264 1.166-1.034 2.574-2.222 4.092m9.592-1.936c-.176-.396-.352-.77-.506-1.122l-.022-.022a229.627 229.627 0 0 0-4.862-9.944l-.066-.132c-.176-.33-.352-.682-.528-1.034-.22-.396-.44-.814-.792-1.21C12.322.484 11.31 0 10.232 0c-1.1 0-2.09.484-2.816 1.32-.33.396-.572.814-.792 1.21-.176.352-.352.704-.528 1.034l-.066.132a258.324 258.324 0 0 0-4.862 9.944l-.022.044c-.154.352-.33.726-.506 1.122-.11.242-.22.506-.33.792-.286.814-.374 1.584-.264 2.376a4.675 4.675 0 0 0 2.86 3.652 4.518 4.518 0 0 0 1.782.352 5.813 5.813 0 0 0 2.772-.792c.902-.506 1.76-1.232 2.728-2.288.968 1.056 1.848 1.782 2.728 2.288a5.813 5.813 0 0 0 2.772.792c.616 0 1.232-.11 1.782-.352 1.54-.616 2.618-2.024 2.86-3.652.176-.77.088-1.54-.198-2.354-.11-.264-.22-.55-.33-.792`,fill:`#FF5A5F`,mask:`url(#IcAirbnb2-b)`})]})]})]}),nre=t({default:()=>rre}),rre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 22`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{stroke:`#29333D`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M.5 21.5h23M5.5 21.5h13V.5h-13z`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,K.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.5 7.5h2v-2h-2zM13.5 7.5h2v-2h-2zM8.5 11.5h2v-2h-2zM13.5 11.5h2v-2h-2zM8.5 15.5h2v-2h-2zM13.5 15.5h2v-2h-2zM10.5 21.5h3v-4h-3z`}),(0,K.jsx)(`path`,{d:`M5.5 2.5h13`,strokeLinecap:`square`})]})}),ire=t({default:()=>are}),are=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 72 72`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`rect`,{id:`IcApp-a`,width:72,height:72,rx:6.75}),(0,K.jsx)(`mask`,{id:`IcApp-b`,x:0,y:0,width:72,height:72,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcApp-a`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`use`,{stroke:`#EAEBED`,mask:`url(#IcApp-b)`,strokeWidth:2,fill:`#FFF`,xlinkHref:`#IcApp-a`}),(0,K.jsx)(`path`,{d:`M20.966 16.654a20.68 20.68 0 0 0 0 29.698L36.141 61.2l5.059-4.95-15.175-14.85a13.788 13.788 0 0 1-.001-19.798c5.589-5.468 14.649-5.467 20.234 0a13.788 13.788 0 0 1 0 19.8c-1.844 1.805-3.874 2.808-6.423 3.613l6.423 6.285 5.059-4.95a20.682 20.682 0 0 0 0-29.698c-8.382-8.2-21.968-8.201-30.35 0M41.2 36.453a6.893 6.893 0 0 0-.001-9.9c-2.79-2.734-7.323-2.733-10.115 0a6.893 6.893 0 0 0 0 9.9c2.792 2.734 7.323 2.734 10.116 0`,fill:`#36ACB2`})]})]}),ore=t({default:()=>sre}),sre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h18v18H0z`}),(0,K.jsx)(`path`,{d:`M13.744 16H4.256a.754.754 0 0 1-.756-.75V9H1.75c-.423 0-.498-.22-.187-.492l6.874-6.016a.874.874 0 0 1 1.126 0l6.874 6.016c.315.275.227.492-.187.492H14.5v6.25c0 .412-.339.75-.756.75zm-5.615-2.094l4.46-4.46a.753.753 0 0 0-.007-1.064L12.5 8.3A.751.751 0 0 0 11.43 8.3L7.6 12.13l-1.035-1.036a.76.76 0 0 0-1.066.007l-.08.08a.744.744 0 0 0-.013 1.06l1.67 1.67a.742.742 0 0 0 1.053-.005z`,fill:`#00C853`,fillRule:`nonzero`})]})}),cre=t({default:()=>lre}),lre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M3.83 7l4.882-4.882A.994.994 0 0 0 8.71.705 1.012 1.012 0 0 0 7.29.71L0 8l7.29 7.29a.998.998 0 0 0 1.415.005 1 1 0 0 0-.002-1.413L3.83 9h11.174c.55 0 .996-.444.996-1 0-.552-.448-1-.996-1H3.83z`,fill:Wp,fillRule:`evenodd`})}),ure=t({default:()=>dre}),dre=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 26 26`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,stroke:`#29333D`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsxs)(`g`,{transform:`translate(5 11)`,children:[(0,K.jsx)(`path`,{d:`M6.5 2.5h1v1h-1z`}),(0,K.jsx)(`circle`,{cx:3,cy:3,r:3}),(0,K.jsx)(`circle`,{cx:11,cy:3,r:3})]}),(0,K.jsx)(`circle`,{cx:12,cy:12,r:12}),(0,K.jsx)(`path`,{d:`M10.768 6.11L5.11 11.769h.707a.5.5 0 0 1 0-.707l4.243-4.243a.5.5 0 0 1 .707 0v-.707zM13.232 6.818a.5.5 0 0 1 .707 0l4.243 4.243a.5.5 0 0 1 0 .707h.707L13.232 6.11v.707z`})]})}),fre=t({default:()=>pre}),pre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 26 26`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{stroke:`currentColor`,cx:12,cy:12,r:12}),(0,K.jsx)(`rect`,{stroke:`currentColor`,x:6.5,y:6.5,width:11,height:11,rx:1}),(0,K.jsxs)(`g`,{transform:`rotate(-45 18.778 -2.121)`,fill:`currentColor`,children:[(0,K.jsx)(`rect`,{x:.707,y:.707,width:1,height:4,rx:.5}),(0,K.jsx)(`rect`,{x:.707,y:3.707,width:7,height:1,rx:.5})]})]})}),mre=t({default:()=>hre}),hre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 42 42`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{stroke:`currentColor`,cx:20,cy:20,r:20}),(0,K.jsx)(`rect`,{stroke:`currentColor`,x:10.5,y:10.5,width:19,height:19,rx:1}),(0,K.jsxs)(`g`,{transform:`rotate(-45 31.004 -5.243)`,fill:`currentColor`,children:[(0,K.jsx)(`rect`,{width:1,height:7,rx:.5}),(0,K.jsx)(`rect`,{y:6,width:12,height:1,rx:.5})]})]})}),gre=t({default:()=>_re}),_re=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 26 26`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{stroke:`currentColor`,cx:12,cy:12,r:12}),(0,K.jsx)(`path`,{d:`M4 4h16v17H4z`}),(0,K.jsx)(`path`,{d:`M12 20.07l4.676-4.4c1.223-1.152 1.92-2.704 1.92-4.36 0-3.404-2.946-6.178-6.596-6.178s-6.597 2.774-6.597 6.179c0 1.655.698 3.207 1.921 4.358L12 20.07z`,stroke:`currentColor`}),(0,K.jsx)(`path`,{d:`M11.904 13.515l-1.297.71a.2.2 0 0 1-.292-.213l.274-1.453a.2.2 0 0 0-.06-.182l-1.075-1.014a.2.2 0 0 1 .112-.344l1.466-.188a.2.2 0 0 0 .155-.113l.632-1.336a.2.2 0 0 1 .362 0l.632 1.336a.2.2 0 0 0 .155.113l1.466.188a.2.2 0 0 1 .112.344l-1.075 1.014a.2.2 0 0 0-.06.182l.274 1.453a.2.2 0 0 1-.292.212l-1.297-.709a.2.2 0 0 0-.192 0z`,stroke:`currentColor`})]})}),vre=t({default:()=>yre}),yre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 42 42`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{stroke:`currentColor`,cx:20,cy:20,r:20}),(0,K.jsx)(`path`,{d:`M6.667 6.667h27v28h-27z`}),(0,K.jsx)(`path`,{d:`M20.167 33.586l8.13-7.468c2.13-1.957 3.345-4.596 3.345-7.41 0-5.789-5.128-10.5-11.475-10.5-6.347 0-11.476 4.711-11.476 10.5 0 2.814 1.215 5.453 3.346 7.41l8.13 7.468z`,stroke:`currentColor`}),(0,K.jsx)(`path`,{d:`M19.904 22.49l-2.472 1.352a.2.2 0 0 1-.293-.212l.522-2.77a.2.2 0 0 0-.06-.182l-2.049-1.933a.2.2 0 0 1 .112-.344l2.795-.36a.2.2 0 0 0 .155-.112l1.205-2.547a.2.2 0 0 1 .362 0l1.205 2.547a.2.2 0 0 0 .155.113l2.795.359a.2.2 0 0 1 .112.344l-2.05 1.933a.2.2 0 0 0-.06.183l.523 2.769a.2.2 0 0 1-.293.212l-2.472-1.352a.2.2 0 0 0-.192 0z`,stroke:`currentColor`})]})}),bre=t({default:()=>xre}),xre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 26 26`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,stroke:`currentColor`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M10.578 13.909H9.32c-.095 0-.186-.011-.255-.088a.215.215 0 0 1-.055-.219c.603-2.117 1.204-4.235 1.806-6.352.053-.188.136-.25.33-.25h4.476c.172 0 .269.064.332.217a.255.255 0 0 1-.016.245c-.983 1.68-1.964 3.362-2.945 5.043l-.084.148h1.488c.124-.001.231.02.29.145.06.128.026.238-.058.341l-3.796 4.72c-.424.528-.851 1.055-1.27 1.587a.288.288 0 0 1-.315.11c-.1-.022-.163-.104-.174-.208a.394.394 0 0 1 .017-.146l1.487-5.293z`}),(0,K.jsx)(`circle`,{cx:12,cy:12,r:12})]})}),Sre=t({default:()=>Cre}),Cre=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 42 42`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,stroke:`currentColor`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M17.63 23.181h-2.097c-.158 0-.31-.018-.425-.146a.358.358 0 0 1-.091-.364c1.005-3.53 2.007-7.059 3.01-10.588.089-.313.227-.416.549-.416h7.46c.287 0 .449.106.554.36a.425.425 0 0 1-.027.409c-1.639 2.8-3.273 5.603-4.908 8.406-.041.07-.081.142-.14.247h.204c.759 0 1.518.002 2.276-.002.207 0 .385.035.483.244.1.212.043.395-.096.568l-6.327 7.866c-.707.88-1.418 1.758-2.117 2.644a.48.48 0 0 1-.525.185c-.167-.038-.27-.173-.29-.348a.657.657 0 0 1 .028-.243l2.479-8.822z`}),(0,K.jsx)(`circle`,{cx:20,cy:20,r:20})]})}),wre=t({default:()=>Tre}),Tre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 26 26`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,stroke:`currentColor`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{cx:12,cy:12,r:12}),(0,K.jsx)(`path`,{d:`M12.24 8.498l.334-.39c.375-.437.834-.77 1.342-.943 1.613-.553 3.252.39 3.862 2.16.481 1.396.158 2.998-.753 4.061-1.56 1.821-3.124 3.638-4.686 5.456a.417.417 0 0 1-.653 0c-.883-1.03-1.765-2.062-2.65-3.09-.688-.8-1.381-1.593-2.07-2.391a3.83 3.83 0 0 1-.918-2.022c-.158-1.145.07-2.17.72-3.057.543-.74 1.238-1.164 2.064-1.26.99-.115 1.864.22 2.588 1.036.127.143.252.29.377.439.122.144.321.144.443 0`})]})}),Ere=t({default:()=>Dre}),Dre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 42 42`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,stroke:`currentColor`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{cx:20,cy:20,r:20}),(0,K.jsx)(`path`,{d:`M20.4 14.163l.556-.65c.626-.727 1.391-1.282 2.238-1.572 2.688-.92 5.42.652 6.436 3.6.802 2.327.263 4.997-1.255 6.77-2.6 3.035-5.206 6.062-7.81 9.093-.301.35-.788.35-1.089 0-1.472-1.717-2.94-3.438-4.416-5.151-1.147-1.333-2.302-2.655-3.451-3.985a6.382 6.382 0 0 1-1.529-3.37c-.263-1.909.118-3.618 1.2-5.094.906-1.235 2.064-1.941 3.44-2.1 1.651-.192 3.106.367 4.314 1.726.212.238.419.483.628.731.203.24.535.24.739.002`})]})}),Ore=t({default:()=>kre}),kre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 26 26`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsxs)(`g`,{stroke:`currentColor`,transform:`translate(1 1)`,children:[(0,K.jsxs)(`g`,{transform:`translate(5 11)`,children:[(0,K.jsx)(`path`,{d:`M6.5 2.5h1v1h-1z`}),(0,K.jsx)(`circle`,{cx:3,cy:3,r:3}),(0,K.jsx)(`circle`,{cx:11,cy:3,r:3})]}),(0,K.jsx)(`circle`,{cx:12,cy:12,r:12})]}),(0,K.jsx)(`path`,{d:`M6.638 6.706l.985.174-.868 4.924-.521 2.954a1 1 0 0 1-.811-1.158l1.215-6.894zm1.159-.811l2.462.434a.5.5 0 0 1-.174.985l-3.447-.608a1 1 0 0 1 1.159-.811zM19.362 6.706l-.985.174.868 4.924.521 2.954a1 1 0 0 0 .811-1.158l-1.215-6.894zm-1.159-.811l-2.462.434a.5.5 0 1 0 .174.985l3.447-.608a1 1 0 0 0-1.159-.811z`,fill:`currentColor`})]})}),Are=t({default:()=>jre}),jre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 42 42`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsxs)(`g`,{stroke:`currentColor`,transform:`translate(1 1)`,children:[(0,K.jsxs)(`g`,{transform:`translate(8.333 18.333)`,children:[(0,K.jsx)(`path`,{d:`M10.5 4.833h2v1h-2z`}),(0,K.jsx)(`circle`,{cx:5,cy:5,r:5}),(0,K.jsx)(`circle`,{cx:18.333,cy:5,r:5})]}),(0,K.jsx)(`circle`,{cx:20,cy:20,r:20})]}),(0,K.jsx)(`path`,{d:`M10.366 10.65l-.05-.009-2.142 12.146a1 1 0 0 0 .81 1.159h.001l.868-4.924 1.392-7.894 2.462.434a.5.5 0 0 0 .174-.985l-2.462-.434a1 1 0 0 0-1.053.507zM31.165 10.738l.056-.01 2.142 12.146a1 1 0 0 1-.811 1.159l-.869-4.924-1.389-7.879-2.462.434a.5.5 0 1 1-.174-.985l2.462-.434a1 1 0 0 1 1.045.493z`,fill:`currentColor`})]})}),Mre=t({default:()=>Nre}),Nre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 26 26`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsxs)(`g`,{transform:`translate(6 6)`,children:[(0,K.jsx)(`circle`,{stroke:`currentColor`,cx:6,cy:6,r:6}),(0,K.jsx)(`path`,{d:`M5.5 3a.5.5 0 0 1 .5.5V8a1 1 0 0 1-1-1V3.5a.5.5 0 0 1 .5-.5z`,fill:`currentColor`}),(0,K.jsx)(`path`,{d:`M5 7h3.5a.5.5 0 0 1 0 1H6a1 1 0 0 1-1-1z`,fill:`currentColor`})]}),(0,K.jsx)(`circle`,{stroke:`currentColor`,cx:12,cy:12,r:12})]})}),Pre=t({default:()=>Fre}),Fre=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 42 42`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsxs)(`g`,{transform:`translate(10 10)`,children:[(0,K.jsx)(`circle`,{stroke:`currentColor`,cx:10,cy:10,r:10}),(0,K.jsx)(`path`,{d:`M8.5 5a.5.5 0 0 1 .5.5V13a1 1 0 0 1-1-1V5.5a.5.5 0 0 1 .5-.5z`,fill:`currentColor`}),(0,K.jsx)(`path`,{d:`M8 12h6.167a.5.5 0 0 1 0 1H9a1 1 0 0 1-1-1z`,fill:`currentColor`})]}),(0,K.jsx)(`circle`,{stroke:`currentColor`,cx:20,cy:20,r:20})]})}),Ire=t({default:()=>Lre}),Lre=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 22 20`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`path`,{fill:`#6B757F`,d:`M20.84 17.69H1.16a1.05 1.05 0 01-1-1.09V4.07a1.05 1.05 0 011-1.07h19.68a1.05 1.05 0 011 1.09V16.6a1.05 1.05 0 01-1 1.09zM1.16 3.41a.64.64 0 00-.61.66V16.6a.64.64 0 00.61.66h19.68a.64.64 0 00.61-.66V4.07a.64.64 0 00-.61-.66z`}),(0,K.jsx)(`path`,{fill:`#6B757F`,d:`M20.84 17.78H1.16a1.14 1.14 0 01-1.1-1.18V4.07a1.14 1.14 0 011.1-1.18h19.68a1.14 1.14 0 011.1 1.18V16.6a1.14 1.14 0 01-1.1 1.18zM1.16 3.07a1 1 0 00-.93 1V16.6a1 1 0 00.93 1h19.68a1 1 0 00.93-1V4.07a1 1 0 00-.93-1zm19.68 14.27H1.16a.72.72 0 01-.69-.74V4.07a.72.72 0 01.69-.74h19.68a.72.72 0 01.69.74V16.6a.72.72 0 01-.69.74zM1.16 3.5a.54.54 0 00-.52.57V16.6a.54.54 0 00.52.57h19.68a.54.54 0 00.52-.57V4.07a.54.54 0 00-.52-.57z`}),(0,K.jsx)(`path`,{fill:`#6B757F`,d:`M2.4 11.71h9.3v1.06H2.4zM.15 7.38h21.3v2.45H.15z`})]}),Rre=t({default:()=>zre}),zre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 25 23`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M13.5 13.5h10a9 9 0 0 1-9 9h-5a9 9 0 0 1-9-9h6M17.27 2.361l.901-.902C19.459.313 21.5 1.233 21.5 2.954V13.5`,stroke:`#29333D`,strokeLinejoin:`round`}),(0,K.jsxs)(`g`,{transform:`translate(10 4)`,fill:`#29333D`,children:[(0,K.jsx)(`circle`,{cx:5.5,cy:3.5,r:1}),(0,K.jsx)(`circle`,{cx:4.5,cy:5.5,r:1}),(0,K.jsx)(`circle`,{cx:2,cy:4,r:1}),(0,K.jsx)(`circle`,{cx:.5,cy:1.5,r:1}),(0,K.jsx)(`circle`,{cx:3.5,cy:2.5,r:1}),(0,K.jsx)(`circle`,{cx:2.5,cy:.5,r:1})]}),(0,K.jsx)(`path`,{d:`M16.896 6.017l-2.842-2.842a.497.497 0 0 1 .003-.696l.004-.004a2.5 2.5 0 1 1 3.535 3.535l-.158.159.707.707.154-.154-.707-.707a.492.492 0 0 1-.696.002z`,stroke:`#29333D`}),(0,K.jsx)(`rect`,{stroke:`#29333D`,x:6.5,y:11.5,width:7,height:7,rx:1.5})]})}),Bre=t({default:()=>Vre}),Vre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 20`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{stroke:`#29333D`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M2.5 16.5h19v1.994a1 1 0 1 0 2 0v-7.496c0-.832-.67-1.498-1.505-1.498H2.005C1.173 9.5.5 10.17.5 10.998v7.496a1 1 0 1 0 2 0V16.5zM2.5 9.5h19V3A2.5 2.5 0 0 0 19.006.5H4.994A2.499 2.499 0 0 0 2.5 3v6.5z`}),(0,K.jsx)(`path`,{d:`M13 9.5h6.5V8a1.5 1.5 0 0 0-1.51-1.5h-3.48C13.67 6.5 13 7.168 13 8v1.5zM4.5 9.5H11V8a1.5 1.5 0 0 0-1.51-1.5H6.01c-.84 0-1.51.668-1.51 1.5v1.5z`})]})}),Hre=t({default:()=>Ure}),Ure=e=>(0,K.jsx)(`svg`,{width:34,height:68,viewBox:`0 0 34 68`,...e,children:(0,K.jsxs)(`g`,{fill:Wp,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M28.12 0H6C2.46 0 0 2.36 0 5.86v56.26C0 65.64 2.46 68 6 68h22.12c3.46 0 5.88-2.4 5.88-5.86V5.86C34 2.42 31.64 0 28.12 0zM14 4h6v1h-6V4zm18 56H2V8h30v52z`}),(0,K.jsx)(`path`,{stroke:Wp,strokeLinejoin:`round`,d:`M19.5 24.5v11h6l-8.5 9-8.5-9h5.996l.004-11z`})]})}),Wre=t({default:()=>Gre}),Gre=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 44 56`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M14 13.993A5.997 5.997 0 0 1 20.003 8h36.995A.998.998 0 0 1 58 9c0 .552-.45 1-1.009 1H21.007A3.005 3.005 0 0 0 18 13c0 1.657 1.346 3 3.009 3h35.485c.832 0 1.506.679 1.506 1.502v44.996c0 .83-.674 1.502-1.502 1.502H20.003A5.997 5.997 0 0 1 14 58.007V13.993z`,id:`IcBigBookings-a`}),(0,K.jsx)(`mask`,{id:`IcBigBookings-b`,x:0,y:0,width:44,height:56,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcBigBookings-a`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-14 -8)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`use`,{stroke:e.color||`#36ACB2`,mask:`url(#IcBigBookings-b)`,strokeWidth:4,xlinkHref:`#IcBigBookings-a`}),(0,K.jsx)(`rect`,{fill:e.color||`#36ACB2`,x:20,y:12,width:36,height:2,rx:1}),(0,K.jsx)(`path`,{stroke:e.color||`#36ACB2`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M49 41l-5-6-5 6V17h10z`})]})]}),Kre=t({default:()=>qre}),qre=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 32 44`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 5.004A3.004 3.004 0 0 1 3.01 2h5.012v4L24 5.999V2h4.998A3.006 3.006 0 0 1 32 5.004v35.992A2.995 2.995 0 0 1 29.004 44H2.996A3.003 3.003 0 0 1 0 40.996V5.004zm4 1.995A1 1 0 0 1 5 6h22c.552 0 1 .455 1 1v32a1 1 0 0 1-1 1H5c-.552 0-1-.455-1-1V7z`,fill:`#B3BDC7`}),(0,K.jsx)(`path`,{d:`M8 .997C8 .447 8.445 0 9 0h14c.552 0 1 .453 1 .997v6.006c0 .55-.445.997-1 .997H9c-.552 0-1-.453-1-.997V.997zm1 .494C9 1.22 9.22 1 9.498 1h13.004a.5.5 0 0 1 .498.491v5.018c0 .271-.22.491-.498.491H9.498A.5.5 0 0 1 9 6.509V1.491zm1 1c0-.271.229-.491.5-.491h11c.276 0 .5.215.5.49v3.02c0 .27-.229.49-.5.49h-11a.493.493 0 0 1-.5-.49V2.49z`,fill:`#949EA8`}),(0,K.jsx)(`path`,{d:`M10 24.832s3.782 3.728 3.822 3.8C13.863 28.704 22.086 18 22.086 18`,stroke:`#6B757F`,strokeWidth:3,strokeLinecap:`round`,strokeLinejoin:`round`})]})}),Jre=t({default:()=>Yre}),Yre=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 48 48`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M8 7.004A3.004 3.004 0 0 1 11.01 4h5.012v4L32 7.999V4h4.998A3.006 3.006 0 0 1 40 7.004v35.992A2.995 2.995 0 0 1 37.004 46H10.996A3.003 3.003 0 0 1 8 42.996V7.004zm4 1.995A1 1 0 0 1 13 8h22c.552 0 1 .455 1 1v32a1 1 0 0 1-1 1H13c-.552 0-1-.455-1-1V9z`,fill:Wp}),(0,K.jsx)(`path`,{d:`M16 2.997c0-.55.445-.997 1-.997h14c.552 0 1 .453 1 .997v6.006c0 .55-.445.997-1 .997H17c-.552 0-1-.453-1-.997V2.997zm1 .494c0-.271.22-.491.498-.491h13.004a.5.5 0 0 1 .498.491v5.018c0 .271-.22.491-.498.491H17.498A.5.5 0 0 1 17 8.509V3.491zm1 1c0-.271.229-.491.5-.491h11c.276 0 .5.215.5.49v3.02c0 .27-.229.49-.5.49h-11a.493.493 0 0 1-.5-.49V4.49z`,fill:`#197D82`}),(0,K.jsx)(`path`,{d:`M18 26.832s3.782 3.728 3.822 3.8C21.863 30.704 30.086 20 30.086 20`,stroke:`#197D82`,strokeWidth:3,strokeLinecap:`round`,strokeLinejoin:`round`})]})}),Xre=t({default:()=>Zre}),Zre=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 64 64`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M4 36C4 18.327 18.327 4 36 4c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C18.327 68 4 53.673 4 36z`,id:`IcBigProfile-a`}),(0,K.jsx)(`mask`,{id:`IcBigProfile-b`,x:0,y:0,width:64,height:64,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcBigProfile-a`})}),(0,K.jsx)(`mask`,{id:`IcBigProfile-c`,x:0,y:0,width:64,height:64,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcBigProfile-a`})}),(0,K.jsx)(`path`,{d:`M4 36C4 18.327 18.327 4 36 4c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C18.327 68 4 53.673 4 36z`,id:`IcBigProfile-d`})]}),(0,K.jsxs)(`g`,{transform:`translate(-4 -4)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`g`,{stroke:Wp,mask:`url(#IcBigProfile-b)`,strokeWidth:4,children:(0,K.jsx)(`use`,{mask:`url(#IcBigProfile-c)`,xlinkHref:`#IcBigProfile-a`})}),(0,K.jsx)(`mask`,{id:`IcBigProfile-e`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcBigProfile-d`})}),(0,K.jsx)(`path`,{d:`M29.273 49.76v4.05c0 1.568-1.259 3.043-2.802 3.294l-6.294 1.02c-4.641.753-8.616 5.171-8.877 9.876h52.5c-1.306-4.44-6.11-8.73-10.733-9.582l-6.816-1.255c-1.54-.284-2.789-1.781-2.789-3.354v-4.05c1.628-1.875 2.113-4.753 2.68-7.91.894.209 1.158-.979 1.646-3.278.49-2.3 2.019-4.656.636-4.95a1.3 1.3 0 0 0-.52-.01l.526-7.726c.22-3.226-1.175-6.793-3.209-7.655-3.37-1.428-4.411-2.186-6.507-2.594-2.096-.408-4.153.165-6.332.865-2.179.7-4.154 2.521-5.783 3.504-1.628.983-2.476 3.207-2.294 5.88l.527 7.722a1.307 1.307 0 0 0-.496.014c-1.383.294.146 2.65.635 4.95.489 2.3.753 3.487 1.52 3.324.686 3.116 1.156 5.991 2.782 7.865z`,stroke:Wp,strokeWidth:2,mask:`url(#IcBigProfile-e)`})]})]}),Qre=t({default:()=>$re}),$re=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 60 57`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{stroke:Wp,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M30 1L1 30h8v26h15V40h12v16h15V30h8z`}),(0,K.jsx)(`path`,{fill:Wp,d:`M24 40h12v17H24zM45 9.503c0-.278.215-.503.498-.503h4.004c.275 0 .498.229.498.5v11c0 .276-.155.345-.36.14l-4.28-4.28a1.42 1.42 0 0 1-.36-.863V9.503z`})]})}),eie=t({default:()=>tie}),tie=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 60 57`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M50 21l9 9h-8v26H36V40H24v16H9V30H1L30 1l15 15V9.51c0-.282.215-.51.498-.51h4.004c.275 0 .498.22.498.498V21z`,stroke:Wp,strokeWidth:2,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`})}),nie=t({default:()=>rie}),rie=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 60 57`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`#C8CCD0`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M30 1L1 30h8v26h14V41c0-1.105.897-2 2.006-2h9.988A2 2 0 0 1 37 41v15h14V30h8L30 1z`,stroke:`#C8CCD0`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,K.jsx)(`path`,{d:`M45 10.003A.999.999 0 0 1 46 9h3c.552 0 1 .456 1 1.002V21l-5-5v-5.997z`})]})}),iie=t({default:()=>aie}),aie=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 64 64`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`4em`,height:`4em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`circle`,{id:`IcBigSent-a`,cx:36,cy:36,r:32}),(0,K.jsx)(`mask`,{id:`IcBigSent-b`,x:0,y:0,width:64,height:64,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcBigSent-a`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-4 -4)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M35.999 42.158A45.2 45.2 0 0 1 19.992 39.2c-2.281-.878-4.593 1.277-3.85 3.61 2.13 6.674 7.227 15.136 19.859 15.136 12.63 0 17.726-8.462 19.858-15.137.74-2.332-1.572-4.488-3.853-3.61A45.2 45.2 0 0 1 36 42.159z`,fill:`#36ACB2`}),(0,K.jsx)(`use`,{stroke:`#36ACB2`,mask:`url(#IcBigSent-b)`,strokeWidth:4,xlinkHref:`#IcBigSent-a`}
2),(0,K.jsx)(`circle`,{fill:`#36ACB2`,cx:26.5,cy:26.5,r:3.5}),(0,K.jsx)(`circle`,{fill:`#36ACB2`,cx:45.5,cy:26.5,r:3.5}),(0,K.jsx)(`path`,{d:`M36 48c-6.5 0-12.829-1.307-16.557-4.06-1.029-.76-.105-2.793 1.132-2.387 3.758 1.236 6.925 2.697 15.426 2.697 8.502 0 11.669-1.46 15.426-2.697 1.235-.406 2.159 1.626 1.13 2.386C48.829 46.693 42.5 48 36 48z`,fill:`#FFF`})]})]}),oie=t({default:()=>sie}),sie=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 20`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,children:[(0,K.jsx)(`path`,{strokeLinejoin:`round`,d:`M.5 2.5v17h23v-17zM.5 5.5h23M3.5 10.5h1M3.5 12.5h1M3.5 16.5h1M7.5 10.5h1M7.5 12.5h1M7.5 16.5h1M11.5 8.5h1M7.5 8.5h1M3.5 8.5h1M11.5 10.5h1M11.5 12.5h1M11.5 16.5h1M15.5 8.5h1M15.5 10.5h1M15.5 12.5h1M19.5 8.5h1M19.5 10.5h1M19.5 12.5h1M3.5 14.5h1M7.5 14.5h1M11.5 14.5h1M15.5 14.5h1M15.5 14.5h1M19.5 14.5h1`}),(0,K.jsx)(`path`,{d:`M5.5.5v3M18.5.5v3`})]})}),cie=t({default:()=>lie}),lie=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 18 15`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M7.176 6H5.002A2 2 0 0 0 3 8.003v8.994C3 18.103 3.893 19 4.995 19h14.01A1.997 1.997 0 0 0 21 16.997V8.003C21 6.897 20.1 6 18.997 6H16.85l-1.833-2H9.008L7.176 6z`,id:`IcCamera-a`}),(0,K.jsx)(`mask`,{id:`IcCamera-c`,x:0,y:0,width:18,height:15,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcCamera-a`})}),(0,K.jsx)(`ellipse`,{id:`IcCamera-b`,cx:12,cy:12,rx:4,ry:4}),(0,K.jsx)(`mask`,{id:`IcCamera-d`,x:0,y:0,width:8,height:8,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcCamera-b`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-3 -4)`,fill:`none`,fillRule:`evenodd`,opacity:.5,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`use`,{stroke:`#FFF`,mask:`url(#IcCamera-c)`,strokeWidth:1,xlinkHref:`#IcCamera-a`}),(0,K.jsx)(`use`,{stroke:`#FFF`,mask:`url(#IcCamera-d)`,strokeWidth:1,xlinkHref:`#IcCamera-b`})]})]}),uie=t({default:()=>fie}),Lm=0,die=()=>(Lm+=1,`IcCamera2-${Lm}`),fie=e=>{let t=die(),n=`IcCamera2-a-${t}`,r=`IcCamera2-b-${t}`,i=`IcCamera2-c-${t}`,a=`IcCamera2-d-${t}`;return(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M7.176 6H5.002A2 2 0 0 0 3 8.003v8.994C3 18.103 3.893 19 4.995 19h14.01A1.997 1.997 0 0 0 21 16.997V8.003C21 6.897 20.1 6 18.997 6H16.85l-1.833-2H9.008L7.176 6z`,id:n}),(0,K.jsx)(`mask`,{id:i,x:0,y:0,width:18,height:15,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#${n}`})}),(0,K.jsx)(`ellipse`,{id:r,cx:12,cy:12,rx:4,ry:4}),(0,K.jsx)(`mask`,{id:a,x:0,y:0,width:8,height:8,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#${r}`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`use`,{stroke:`#868F9A`,mask:`url(#${i})`,strokeWidth:2,xlinkHref:`#${n}`}),(0,K.jsx)(`use`,{stroke:`#868F9A`,mask:`url(#${a})`,strokeWidth:2,xlinkHref:`#${r}`})]})]})},pie=t({default:()=>mie}),mie=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 22 16`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M6 7H3.995A2.997 2.997 0 0 0 1 9.999V17A3 3 0 0 0 4.001 20H20A3 3 0 0 0 23 17.001V10A2.996 2.996 0 0 0 20.005 7H18l-1.443-2.164C16.25 4.374 15.547 4 15.003 4H8.997c-.55 0-1.242.368-1.554.836L6 7z`,id:`IcCamera3-a`}),(0,K.jsx)(`mask`,{id:`IcCamera3-c`,x:0,y:0,width:22,height:16,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcCamera3-a`})}),(0,K.jsx)(`ellipse`,{id:`IcCamera3-b`,cx:12,cy:13,rx:5,ry:5}),(0,K.jsx)(`mask`,{id:`IcCamera3-d`,x:0,y:0,width:10,height:10,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcCamera3-b`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-1 -4)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`use`,{stroke:`#868F9A`,mask:`url(#IcCamera3-c)`,strokeWidth:2,strokeLinejoin:`round`,xlinkHref:`#IcCamera3-a`}),(0,K.jsx)(`use`,{stroke:`#868F9A`,mask:`url(#IcCamera3-d)`,strokeWidth:2,xlinkHref:`#IcCamera3-b`}),(0,K.jsx)(`circle`,{fill:`#868F9A`,cx:19,cy:11,r:1})]})]}),hie=t({default:()=>gie}),gie=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:e.color||`#36ACB2`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M6 7H3.995A2.997 2.997 0 0 0 1 9.999V17A3 3 0 0 0 4.001 20H20A3 3 0 0 0 23 17.001V10A2.996 2.996 0 0 0 20.005 7H18l-1.443-2.164C16.25 4.374 15.547 4 15.003 4H8.997c-.55 0-1.242.368-1.554.836L6 7zm6 11a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm7-6a1 1 0 1 0 0-2 1 1 0 0 0 0 2z`}),(0,K.jsx)(`circle`,{cx:12,cy:13,r:3})]})}),_ie=t({default:()=>vie}),vie=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M6 7H3.995A2.997 2.997 0 0 0 1 9.999V17A3 3 0 0 0 4.001 20H20A3 3 0 0 0 23 17.001V10A2.996 2.996 0 0 0 20.005 7H18l-1.443-2.164C16.25 4.374 15.547 4 15.003 4H8.997c-.55 0-1.242.368-1.554.836L6 7z`,id:`IcCameraWhite-a`}),(0,K.jsx)(`mask`,{id:`IcCameraWhite-c`,x:0,y:0,width:22,height:16,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcCameraWhite-a`})}),(0,K.jsx)(`ellipse`,{id:`IcCameraWhite-b`,cx:12,cy:13,rx:5,ry:5}),(0,K.jsx)(`mask`,{id:`IcCameraWhite-d`,x:0,y:0,width:10,height:10,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcCameraWhite-b`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`use`,{stroke:`#FFF`,mask:`url(#IcCameraWhite-c)`,strokeWidth:2,strokeLinejoin:`round`,xlinkHref:`#IcCameraWhite-a`}),(0,K.jsx)(`use`,{stroke:`#FFF`,mask:`url(#IcCameraWhite-d)`,strokeWidth:2,xlinkHref:`#IcCameraWhite-b`}),(0,K.jsx)(`circle`,{fill:`#FFF`,cx:19,cy:11,r:1})]})]}),yie=t({default:()=>bie}),bie=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 7 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,K.jsx)(`path`,{d:`M6.363 1.88a.766.766 0 0 0-.584-.264h-.724l-.164-.477a.643.643 0 0 0-.224-.296.547.547 0 0 0-.335-.124H2.68a.547.547 0 0 0-.334.124.643.643 0 0 0-.224.296l-.165.477h-.723a.766.766 0 0 0-.583.263.903.903 0 0 0-.243.635v3.14a.903.903 0 0 0 .242.635.766.766 0 0 0 .583.263h4.546a.766.766 0 0 0 .584-.263c.16-.172.247-.4.243-.635v-3.14a.903.903 0 0 0-.242-.635ZM3.506 4.756a.898.898 0 1 0-.82-.556.891.891 0 0 0 .82.556Zm1.094.267a1.516 1.516 0 0 1-2.19 0 1.616 1.616 0 0 1 0-2.247 1.516 1.516 0 0 1 2.19 0 1.616 1.616 0 0 1 0 2.247Z`,fill:`#F8F8F8`})}),xie=t({default:()=>Sie}),Sie=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z`})}),Cie=t({default:()=>wie}),wie=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 22 20`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`title`,{children:`American Express`}),(0,K.jsx)(`path`,{fill:`#6b757f`,d:`M20.88 18.15H1.12a1.06 1.06 0 01-1-1.1V4.43a1.06 1.06 0 011-1.1h19.76a1.06 1.06 0 011 1.1v12.62a1.06 1.06 0 01-1 1.1zM1.12 3.77a.64.64 0 00-.61.66v12.62a.63.63 0 00.61.66h19.76a.63.63 0 00.61-.66V4.43a.64.64 0 00-.61-.66z`}),(0,K.jsx)(`path`,{fill:`#6b757f`,d:`M20.88 18.23H1.12A1.14 1.14 0 010 17.05V4.43a1.14 1.14 0 011.1-1.18h19.78A1.14 1.14 0 0122 4.43v12.62a1.14 1.14 0 01-1.12 1.18zM1.12 3.42a1 1 0 00-.93 1v12.63a1 1 0 00.93 1h19.76a1 1 0 00.93-1V4.43a1 1 0 00-.93-1zM20.88 17.8H1.12a.73.73 0 01-.7-.75V4.43a.72.72 0 01.7-.74h19.76a.72.72 0 01.7.74v12.62a.73.73 0 01-.7.75zM1.12 3.86a.55.55 0 00-.53.57v12.62a.55.55 0 00.53.57h19.76a.55.55 0 00.53-.57V4.43a.55.55 0 00-.53-.57z`}),(0,K.jsx)(`path`,{fill:`#006fcf`,d:`M15.9 11.14v-5.3H6.1v9.8h9.8v-2.86-1.64`}),(0,K.jsx)(`path`,{d:`M14.7 10.6h.74V8.87h-.81v.24l-.15-.24h-.7v.31l-.13-.31h-1.53L12 9v-.13H8.33l-.11.29-.11-.29h-.87v.31l-.14-.31h-.69l-.31.75v1h.5l.09-.24h.17l.14.22h3.84v-.22l.16.22h1v-.13h.08s.07 0 .09.05a.3.3 0 00.13 0h.79l.08-.24h.18l.09.24h1.07v-.22zm1.2 2.18v-1.61h-6l-.15.21-.16-.21H7.85v1.72h1.74l.16-.22.15.22H11v-.37a.94.94 0 00.39-.07v.46h.78v-.22l.16.22h3.25a1.47 1.47 0 00.32-.13z`,fill:`#fff`}),(0,K.jsx)(`path`,{fill:`#006fcf`,d:`M15.53 12.37h-.59v.24h.57a.36.36 0 00.39-.37.31.31 0 00-.35-.33h-.26a.1.1 0 01-.11-.11.1.1 0 01.11-.11h.5l.11-.24h-.59a.35.35 0 00-.39.35.31.31 0 00.35.33h.26a.1.1 0 01.11.11c.02.08-.02.13-.11.13zm-1.07 0h-.59v.24h.57a.36.36 0 00.39-.37.31.31 0 00-.35-.33h-.26a.1.1 0 01-.11-.11.1.1 0 01.11-.11h.5l.11-.24h-.59a.35.35 0 00-.39.35.31.31 0 00.35.33h.26a.1.1 0 01.11.11.1.1 0 01-.11.13zm-.76-.7v-.24h-.92v1.16h.92v-.25H13v-.24h.63v-.24H13v-.21h.66zm-1.49 0c.11 0 .15.06.15.13a.13.13 0 01-.15.13h-.33v-.28zm-.33.5H12l.34.42h.33l-.39-.44a.35.35 0 00.3-.35.36.36 0 00-.39-.37
2h-.59v1.16h.26zm-.69-.35A.14.14 0 0111 12h-.35v-.3H11c.12-.03.19.03.19.12zm-.77-.39v1.16h.26v-.4H11a.39.39 0 00.42-.39.38.38 0 00-.4-.39zM10 12.59h.33L9.9 12l.46-.57H10l-.28.37-.29-.37h-.3l.46.57-.46.56h.33l.29-.37zm-1-.92v-.24h-.87v1.16h.92v-.25h-.66v-.24H9v-.24h-.61v-.21h.66zm5.3-2.05l.46.7h.33V9.16h-.27v.76l-.06-.11-.42-.65H14v1.16h.27v-.79zm-1.13 0l.08-.24.09.24.11.27h-.39zm.45.73H14l-.5-1.16h-.35l-.51 1.16h.29l.11-.24h.56zm-1.22 0l.11-.24h-.01a.3.3 0 01-.31-.33.29.29 0 01.31-.33h.28v-.29h-.31a.52.52 0 00-.54.57.5.5 0 00.52.59zm-1 0h.26V9.18h-.26zm-.5-.95c.11 0 .15.06.15.13a.13.13 0 01-.15.13h-.33v-.28zm-.33.5h.14l.34.42h.33L11 9.88a.35.35 0 00.3-.35.36.36 0 00-.39-.37h-.61v1.16h.26zm-.48-.5v-.24h-.91v1.16h.91v-.24h-.65v-.25h.63v-.24h-.63v-.21h.65zm-2 .92h.24l.33-.94v.94h.26V9.16H8.5l-.26.78L8 9.16h-.46v1.16h.26v-.94zm-1.4-.73l.09-.24.08.24.14.27h-.42zm.46.73h.28l-.5-1.16H6.6l-.5 1.16h.28l.11-.24h.57z`})]}),Tie=t({default:()=>Eie}),Eie=e=>(0,K.jsxs)(`svg`,{id:`prefix__Layer_1`,"data-name":`Layer 1`,viewBox:`0 0 22 20`,...e,children:[(0,K.jsx)(`title`,{children:`Discover`}),(0,K.jsx)(`path`,{fill:`#6b757f`,d:`M20.88 18.15H1.12a1.06 1.06 0 01-1-1.1V4.43a1.06 1.06 0 011-1.1h19.76a1.06 1.06 0 011 1.1v12.62a1.06 1.06 0 01-1 1.1zM1.12 3.77a.64.64 0 00-.61.66v12.62a.63.63 0 00.61.66h19.76a.63.63 0 00.61-.66V4.43a.64.64 0 00-.61-.66z`}),(0,K.jsx)(`path`,{fill:`#6b757f`,d:`M20.88 18.23H1.12A1.14 1.14 0 010 17.05V4.43a1.14 1.14 0 011.1-1.18h19.78A1.14 1.14 0 0122 4.43v12.62a1.14 1.14 0 01-1.12 1.18zM1.12 3.42a1 1 0 00-.93 1v12.63a1 1 0 00.93 1h19.76a1 1 0 00.93-1V4.43a1 1 0 00-.93-1zM20.88 17.8H1.12a.73.73 0 01-.7-.75V4.43a.72.72 0 01.7-.74h19.76a.72.72 0 01.7.74v12.62a.73.73 0 01-.7.75zM1.12 3.86a.55.55 0 00-.53.57v12.62a.55.55 0 00.53.57h19.76a.55.55 0 00.53-.57V4.43a.55.55 0 00-.53-.57z`}),(0,K.jsx)(`path`,{fill:`#0079be`,d:`M11.88 14.79a4.21 4.21 0 004.23-4 4.14 4.14 0 00-4.23-4.09H10a4 4 0 00-4.08 4.09 4.06 4.06 0 004.08 4z`}),(0,K.jsx)(`path`,{fill:`#0079be`,d:`M10 7a3.71 3.71 0 103.71 3.7A3.7 3.7 0 0010 7zm-2.34 3.7a2.34 2.34 0 011.5-2.19v4.38a2.33 2.33 0 01-1.52-2.16zm3.18 2.19V8.54a2.34 2.34 0 010 4.38z`}),(0,K.jsx)(`path`,{fill:`#0079be`,d:`M11.88 14.79a4.21 4.21 0 004.23-4 4.14 4.14 0 00-4.23-4.09H10a4 4 0 00-4.08 4.09 4.06 4.06 0 004.08 4z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M10 7a3.71 3.71 0 103.71 3.7A3.7 3.7 0 0010 7zm-2.34 3.7a2.34 2.34 0 011.5-2.19v4.38a2.33 2.33 0 01-1.52-2.16zm3.18 2.19V8.54a2.34 2.34 0 010 4.38z`})]}),Die=t({default:()=>Oie}),Oie=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 22 20`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsxs)(`linearGradient`,{id:`ic-card-discover__linear-gradient`,x1:9.94,y1:10.86,x2:12.77,y2:10.86,gradientUnits:`userSpaceOnUse`,children:[(0,K.jsx)(`stop`,{offset:0,stopColor:`#007940`}),(0,K.jsx)(`stop`,{offset:0,stopColor:`#f28414`}),(0,K.jsx)(`stop`,{offset:.1,stopColor:`#f48914`}),(0,K.jsx)(`stop`,{offset:1,stopColor:`#dd441f`})]}),(0,K.jsx)(`clipPath`,{id:`prefix__clip-path`,children:(0,K.jsx)(`path`,{fill:`none`,d:`M2.62 9.47h16.77v4.55H2.62z`})})]}),(0,K.jsx)(`title`,{children:`Discover`}),(0,K.jsx)(`path`,{fill:`#6b757f`,d:`M20.88 18.15H1.12a1.06 1.06 0 01-1-1.1V4.43a1.06 1.06 0 011-1.1h19.76a1.06 1.06 0 011 1.1v12.62a1.06 1.06 0 01-1 1.1zM1.12 3.77a.64.64 0 00-.61.66v12.62a.63.63 0 00.61.66h19.76a.63.63 0 00.61-.66V4.43a.64.64 0 00-.61-.66z`}),(0,K.jsx)(`path`,{fill:`#6b757f`,d:`M20.88 18.23H1.12A1.14 1.14 0 010 17.05V4.43a1.14 1.14 0 011.1-1.18h19.78A1.14 1.14 0 0122 4.43v12.62a1.14 1.14 0 01-1.12 1.18zM1.12 3.42a1 1 0 00-.93 1v12.63a1 1 0 00.93 1h19.76a1 1 0 00.93-1V4.43a1 1 0 00-.93-1zM20.88 17.8H1.12a.73.73 0 01-.7-.75V4.43a.72.72 0 01.7-.74h19.76a.72.72 0 01.7.74v12.62a.73.73 0 01-.7.75zM1.12 3.86a.55.55 0 00-.53.57v12.62a.55.55 0 00.53.57h19.76a.55.55 0 00.53-.57V4.43a.55.55 0 00-.53-.57z`}),(0,K.jsxs)(`g`,{clipPath:`url(#prefix__clip-path)`,children:[(0,K.jsx)(`path`,{id:`prefix__path22`,fill:`#201d1c`,d:`M4 11.53a1 1 0 01-.71.21h-.14V10h.14a1 1 0 01.71.22.87.87 0 01.28.66.89.89 0 01-.28.65zm-.61-2h-.76v2.65h.76a1.36 1.36 0 00.94-.3 1.33 1.33 0 00-.94-2.35`}),(0,K.jsx)(`path`,{id:`prefix__path24`,fill:`#201d1c`,d:`M5.05 12.19h.52V9.54h-.52z`}),(0,K.jsx)(`path`,{id:`prefix__path26`,fill:`#201d1c`,d:`M6.83 10.56c-.31-.11-.4-.19-.4-.33s.17-.3.39-.3a.57.57 0 01.42.22l.27-.36a1.2 1.2 0 00-.78-.29.78.78 0 00-.83.76c0 .36.17.55.65.73a1.56 1.56 0 01.36.15.31.31 0 01.15.27.37.37 0 01-.4.37.61.61 0 01-.56-.35l-.33.32a1 1 0 00.91.51.86.86 0 00.92-.87c0-.42-.18-.61-.77-.83`}),(0,K.jsx)(`path`,{id:`prefix__path28`,fill:`#201d1c`,d:`M7.76 10.87a1.37 1.37 0 001.4 1.38 1.46 1.46 0 00.65-.15v-.61a.82.82 0 01-.63.29.87.87 0 01-.89-.91.88.88 0 01.87-.87.86.86 0 01.65.29v-.6a1.31 1.31 0 00-.64-.17 1.4 1.4 0 00-1.41 1.39`}),(0,K.jsx)(`path`,{id:`prefix__path30`,fill:`#201d1c`,d:`M13.9 11.32l-.7-1.78h-.57l1.13 2.72H14l1.14-2.72h-.56l-.72 1.78`}
2),(0,K.jsx)(`path`,{id:`prefix__path32`,fill:`#201d1c`,d:`M15.41 12.19h1.47v-.45h-.95V11h.92v-.45h-.92V10h.95v-.46h-1.47v2.65`}),(0,K.jsx)(`path`,{id:`prefix__path34`,fill:`#201d1c`,d:`M17.89 10.76h-.15V10h.16c.32 0 .5.14.5.39s-.18.37-.51.37zm1-.43c0-.5-.34-.79-.94-.79h-.77v2.65h.52v-1.06h.07l.71 1.06h.64l-.84-1.11a.71.71 0 00.61-.75`})]}),(0,K.jsx)(`ellipse`,{cx:11.35,cy:10.86,rx:1.42,ry:1.39,style:{isolation:`isolate`},fill:`url(#ic-card-discover__linear-gradient)`})]}),kie=t({default:()=>Aie}),Aie=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 22 20`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsxs)(`linearGradient`,{id:`ic-card-jcb__linear-gradient`,x1:-86.45,y1:-431.52,x2:-84.91,y2:-431.52,gradientTransform:`matrix(2.05 0 0 -2.05 189.68 -873.04)`,gradientUnits:`userSpaceOnUse`,children:[(0,K.jsx)(`stop`,{offset:0,stopColor:`#007940`}),(0,K.jsx)(`stop`,{offset:.23,stopColor:`#00873f`}),(0,K.jsx)(`stop`,{offset:.74,stopColor:`#40a737`}),(0,K.jsx)(`stop`,{offset:1,stopColor:`#5cb531`})]}),(0,K.jsx)(`linearGradient`,{id:`ic-card-jcb__linear-gradient-2`,x1:-86.45,y1:-431.28,x2:-84.91,y2:-431.28,xlinkHref:`#ic-card-jcb__linear-gradient`}),(0,K.jsx)(`linearGradient`,{id:`ic-card-jcb__linear-gradient-3`,x1:-86.45,y1:-431.01,x2:-84.91,y2:-431.01,xlinkHref:`#ic-card-jcb__linear-gradient`}),(0,K.jsxs)(`linearGradient`,{id:`ic-card-jcb__linear-gradient-4`,x1:-89.92,y1:-431.28,x2:-88.35,y2:-431.28,gradientTransform:`matrix(2.05 0 0 -2.05 189.68 -873.04)`,gradientUnits:`userSpaceOnUse`,children:[(0,K.jsx)(`stop`,{offset:0,stopColor:`#1f286f`}),(0,K.jsx)(`stop`,{offset:.48,stopColor:`#004e94`}),(0,K.jsx)(`stop`,{offset:.83,stopColor:`#0066b1`}),(0,K.jsx)(`stop`,{offset:1,stopColor:`#006fbc`})]}),(0,K.jsxs)(`linearGradient`,{id:`ic-card-jcb__linear-gradient-5`,x1:-88.19,y1:-431.28,x2:-86.67,y2:-431.28,gradientTransform:`matrix(2.05 0 0 -2.05 189.68 -873.04)`,gradientUnits:`userSpaceOnUse`,children:[(0,K.jsx)(`stop`,{offset:0,stopColor:`#6c2c2f`}),(0,K.jsx)(`stop`,{offset:.17,stopColor:`#882730`}),(0,K.jsx)(`stop`,{offset:.57,stopColor:`#be1833`}),(0,K.jsx)(`stop`,{offset:.86,stopColor:`#dc0436`}),(0,K.jsx)(`stop`,{offset:1,stopColor:`#e60039`})]})]}),(0,K.jsx)(`title`,{children:`JCB`}),(0,K.jsx)(`path`,{fill:`#6b757f`,d:`M20.88 18.15H1.12a1.06 1.06 0 01-1-1.1V4.43a1.06 1.06 0 011-1.1h19.76a1.06 1.06 0 011 1.1v12.62a1.06 1.06 0 01-1 1.1zM1.12 3.77a.64.64 0 00-.61.66v12.62a.63.63 0 00.61.66h19.76a.63.63 0 00.61-.66V4.43a.64.64 0 00-.61-.66z`}),(0,K.jsx)(`path`,{fill:`#6b757f`,d:`M20.88 18.23H1.12A1.14 1.14 0 010 17.05V4.43a1.14 1.14 0 011.1-1.18h19.78A1.14 1.14 0 0122 4.43v12.62a1.14 1.14 0 01-1.12 1.18zM1.12 3.42a1 1 0 00-.93 1v12.63a1 1 0 00.93 1h19.76a1 1 0 00.93-1V4.43a1 1 0 00-.93-1zM20.88 17.8H1.12a.73.73 0 01-.7-.75V4.43a.72.72 0 01.7-.74h19.76a.72.72 0 01.7.74v12.62a.73.73 0 01-.7.75zM1.12 3.86a.55.55 0 00-.53.57v12.62a.55.55 0 00.53.57h19.76a.55.55 0 00.53-.57V4.43a.55.55 0 00-.53-.57z`}),(0,K.jsxs)(`g`,{id:`prefix__g6327`,children:[(0,K.jsx)(`path`,{id:`prefix__path6338`,d:`M13.15 11.57H14a.33.33 0 00.26-.33.34.34 0 00-.26-.34h-.83v.68z`,fill:`url(#ic-card-jcb__linear-gradient)`}),(0,K.jsx)(`path`,{id:`prefix__path6349`,d:`M13.81 6.89a1.29 1.29 0 00-1.29 1.29v1.33h1.94c.41 0 .72.23.72.6a.6.6 0 01-.59.58c.42 0 .73.26.73.62s-.32.69-.81.69h-2v2.61h1.89a1.28 1.28 0 001.28-1.29V6.89z`,fill:`url(#ic-card-jcb__linear-gradient-2)`}),(0,K.jsx)(`path`,{id:`prefix__path6360`,d:`M14.15 10.2a.3.3 0 00-.26-.3h-.74v.62h.74a.3.3 0 00.26-.32z`,fill:`url(#ic-card-jcb__linear-gradient-3)`})]}),(0,K.jsx)(`path`,{id:`prefix__path6371`,d:`M6.71 6.9a1.28 1.28 0 00-1.28 1.28v3.17a2.61 2.61 0 001.1.29.62.62 0 00.69-.64V9.51h1.1V11c0 .58-.36 1.06-1.58 1.06a5.2 5.2 0 01-1.32-.17v2.71H7.3a1.29 1.29 0 001.29-1.3V6.9z`,fill:`url(#ic-card-jcb__linear-gradient-4)`}),(0,K.jsx)(`path`,{id:`prefix__path6384`,d:`M10.26 6.89A1.28 1.28 0 009 8.17v1.68a2.62 2.62 0 011.8-.41 5.36 5.36 0 011 .16v.54a2.53 2.53 0 00-1-.28c-.69 0-1.11.29-1.11.88s.42.94 1.11.88a2.53 2.53 0 001-.28v.54a5.18 5.18 0 01-1 .16 2.62 2.62 0 01-1.8-.41v3h1.89a1.28 1.28 0 001.28-1.28V6.89z`,fill:`url(#ic-card-jcb__linear-gradient-5)`})]}),jie=t({default:()=>Mie}),Mie=e=>
2(0,K.jsxs)(`svg`,{viewBox:`0 0 22 20`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`title`,{children:`Mastercard`}),(0,K.jsx)(`path`,{fill:`#6b757f`,d:`M20.89 18.16H1.12a1.05 1.05 0 01-1-1.09V4.44a1.05 1.05 0 011-1.09h19.77a1.05 1.05 0 011 1.09v12.63a1.05 1.05 0 01-1 1.09zM1.12 3.78a.64.64 0 00-.61.66v12.63a.63.63 0 00.61.65h19.77a.63.63 0 00.61-.65V4.44a.64.64 0 00-.61-.66z`}),(0,K.jsx)(`path`,{fill:`#6b757f`,d:`M20.89 18.25H1.12A1.14 1.14 0 010 17.07V4.44a1.14 1.14 0 011.1-1.18h19.79A1.14 1.14 0 0122 4.44v12.63a1.14 1.14 0 01-1.11 1.18zM1.12 3.43a1 1 0 00-.93 1v12.64a1 1 0 00.93 1h19.77a1 1 0 00.93-1V4.44a1 1 0 00-.93-1zm19.77 14.38H1.12a.72.72 0 01-.69-.74V4.44a.72.72 0 01.69-.74h19.77a.72.72 0 01.69.74v12.63a.72.72 0 01-.69.74zM1.12 3.87a.55.55 0 00-.52.57v12.63a.55.55 0 00.52.57h19.77a.55.55 0 00.52-.57V4.44a.55.55 0 00-.52-.57z`}),(0,K.jsx)(`path`,{fill:`#ea011a`,d:`M9.86 10.85A3.33 3.33 0 0111 8.34a3.34 3.34 0 00-5.55 2.51 3.33 3.33 0 003.32 3.35 3.45 3.45 0 002.23-.84 3.37 3.37 0 01-1.14-2.51z`}),(0,K.jsx)(`path`,{d:`M13.22 7.5a3.36 3.36 0 00-2.22.84 3.28 3.28 0 011.15 2.51A3.34 3.34 0 0111 13.36a3.3 3.3 0 002.2.84 3.35 3.35 0 000-6.7z`,fill:`#f79f19`}),(0,K.jsx)(`path`,{fill:`#ea011a`,d:`M12.14 10.85A3.28 3.28 0 0011 8.34a3.33 3.33 0 00-1.13 2.51A3.37 3.37 0 0011 13.36a3.34 3.34 0 001.14-2.51z`}),(0,K.jsx)(`path`,{d:`M12.13 10.85A3.3 3.3 0 0011 8.34a3.31 3.31 0 00-1.14 2.51A3.37 3.37 0 0011 13.36a3.31 3.31 0 001.13-2.51z`,opacity:.55,fill:`#f79f19`})]}),Nie=t({default:()=>Pie}),Pie=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 22 20`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`title`,{children:`Visa`}),(0,K.jsx)(`path`,{fill:`#6b757f`,d:`M20.88 18.16H1.12a1.06 1.06 0 01-1-1.09V4.44a1.06 1.06 0 011-1.09h19.76a1.06 1.06 0 011 1.09v12.63a1.06 1.06 0 01-1 1.09zM1.12 3.78a.64.64 0 00-.61.66v12.63a.63.63 0 00.61.65h19.76a.63.63 0 00.61-.65V4.44a.64.64 0 00-.61-.66z`}),(0,K.jsx)(`path`,{fill:`#6b757f`,d:`M20.88 18.25H1.12A1.14 1.14 0 010 17.07V4.44a1.14 1.14 0 011.1-1.18h19.78A1.14 1.14 0 0122 4.44v12.63a1.14 1.14 0 01-1.12 1.18zM1.12 3.43a1 1 0 00-.93 1v12.64a1 1 0 00.93 1h19.76a1 1 0 00.93-1V4.44a1 1 0 00-.93-1zm19.76 14.38H1.12a.72.72 0 01-.7-.74V4.44a.72.72 0 01.7-.74h19.76a.72.72 0 01.7.74v12.63a.72.72 0 01-.7.74zM1.12 3.87a.56.56 0 00-.53.57v12.63a.56.56 0 00.53.57h19.76a.56.56 0 00.53-.57V4.44a.56.56 0 00-.53-.57z`}),(0,K.jsxs)(`g`,{id:`prefix__g4158`,children:[(0,K.jsx)(`path`,{id:`prefix__polygon9`,fill:`#00579f`,d:`M9.98 13.16H8.73l.78-4.8h1.24l-.77 4.8z`}),(0,K.jsx)(`path`,{id:`prefix__path11`,fill:`#00579f`,d:`M14.48 8.48a2.94 2.94 0 00-1.11-.21c-1.23 0-2.09.66-2.1 1.59 0 .69.62 1.08 1.09 1.31s.64.38.64.59-.38.47-.74.47a2.48 2.48 0 01-1.17-.23l-.16-.08-.18 1.08a4 4 0 001.39.26c1.3 0 2.15-.65 2.16-1.64 0-.55-.32-1-1-1.31-.43-.22-.7-.37-.7-.6s.22-.41.72-.41a2.2 2.2 0 01.92.18h.11l.17-1z`}),(0,K.jsx)(`path`,{id:`prefix__path13`,fill:`#00579f`,d:`M16.13 11.46c.11-.27.5-1.34.5-1.34s.1-.28.16-.46l.09.41.29 1.39zm1.54-3.1h-1a.61.61 0 00-.65.4l-1.85 4.4h1.31l.26-.72h1.59c0 .17.15.72.15.72h1.15l-1-4.8z`}),(0,K.jsx)(`path`,{id:`prefix__path15`,fill:`#00579f`,d:`M7.7 8.36l-1.22 3.28-.13-.64a3.66 3.66 0 00-1.72-2l1.11 4.2h1.32l2-4.8z`}),(0,K.jsx)(`path`,{id:`prefix__path17`,d:`M5.35 8.36h-2v.1a4.16 4.16 0 013 2.51l-.44-2.21a.51.51 0 00-.56-.4z`,fill:`#faa61a`})]})]}),Fie=t({default:()=>Iie}),Iie=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h18v18H0z`}),(0,K.jsx)(`path`,{fill:`#1B5E20`,d:`M6.75 12.127L3.623 9l-1.066 1.057L6.75 14.25l9-9-1.057-1.058z`})]})}),Lie=t({default:()=>Rie}),Rie=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 13 11`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M2.21 5.71a1.003 1.003 0 0 0-1.416-.004l-.088.088a.996.996 0 0 0 0 1.412l2.588 2.588c.39.39 1.026.403 1.427.025L12.28 2.68a.963.963 0 0 0 .015-1.387l-.088-.088a1.038 1.038 0 0 0-1.439-.022L4 7.5 2.21 5.71z`,fill:Wp,fillRule:`evenodd`})}),zie=t({default:()=>Bie}),Bie=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 12 11`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M1.5 6l3.643 4L11 1.5`,strokeWidth:2,stroke:`#FFF`,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Vie=t({default:()=>Hie}),Hie=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 14 10`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M.716 5.881a.951.951 0 0 1 0-1.378l-.032.032a1.042 1.042 0 0 1 1.436.003L5 7.308l6.885-6.62a1.045 1.045 0 0 1 1.431 0l-.032-.03a.949.949 0 0 1-.005 1.382L5.72 9.306a1.053 1.053 0 0 1-1.437.005L.716 5.881z`,fill:`#FFF`,fillRule:`evenodd`})}),Uie=t({default:()=>Wie}),Wie=()=>(0,K.jsxs)(`svg`,{id:`Layer_1`,"data-name":`Layer 1`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,children:[(0,K.jsx)(`rect`,{fill:`#363f4c`,width:`16`,height:`16`,rx:`2`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M6,12.67H6a1,1,0,0,1-.72-.31L2.07,8.93A1,1,0,1,1,3.52,7.56L6,10.23l6.46-6.6A1,1,0,1,1,13.92,5L6.73,12.37A1,1,0,0,1,6,12.67Z`})]}),Gie=t({default:()=>Kie}),Kie=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 20 20`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{cx:10,cy:10,r:10}),(0,K.jsx)(`path`,{d:`M3.716 10.881a.951.951 0 0 1 0-1.378l-.032.032a1.042 1.042 0 0 1 1.436.003L8 12.308l6.885-6.62a1.045 1.045 0 0 1 1.431 0l-.032-.03a.949.949 0 0 1-.005 1.382L8.72 14.306a1.053 1.053 0 0 1-1.437.005l-3.568-3.43z`,fill:`#FFF`})]})}),qie=t({default:()=>Jie}),Jie=e=>(0,K.jsx)(`svg`,{width:`1.5em`,height:`1.5em`,...e,viewBox:`0 0 24 24`,children:(0,K.jsxs)(`g`,{id:`icon/ic_gallery-copy`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M5,4 L6,4 C6.55228475,4 7,4.44771525 7,5 L7,7 C7,7.55228475 7.44771525,8 8,8 L16,8 C16.5522847,8 17,7.55228475 17,7 L17,5 C17,4.44771525 17.4477153,4 18,4 L19,4 C19.5522847,4 20,4.44771525 20,5 L20,21 C20,21.5522847 19.5522847,22 19,22 L5,22 C4.44771525,22 4,21.5522847 4,21 L4,5 C4,4.44771525 4.44771525,4 5,4 Z`,fill:`currentColor`}),(0,K.jsx)(`path`,{d:`M10,3.33333333 C10,2.04466892 10.8954305,1 12,1 C13.1045695,1 14,2.04466892 14,3.33333333 L15,3.33333333 C15.5522847,3.33333333 16,3.78104858 16,4.33333333 L16,6 C16,6.55228475 15.5522847,7 15,7 L9,7 C8.44771525,7 8,6.55228475 8,6 L8,4.33333333 C8,3.78104858 8.44771525,3.33333333 9,3.33333333 L10,3.33333333 Z M12,4 C12.5522847,4 13,3.55228475 13,3 C13,2.44771525 12.5522847,2 12,2 C11.4477153,2 11,2.44771525 11,3 C11,3.55228475 11.4477153,4 12,4 Z`,fill:`currentColor`})]})}),Yie=t({default:()=>Xie}),Xie=e=>(0,K.jsx)(`svg`,{width:`1.5em`,height:`1.5em`,viewBox:`0 0 24 24`,...e,children:(0,K.jsxs)(`g`,{stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M12.4019945,18.3111862 L16.1080972,14.7994555 C17.1819596,13.7819135 17.790217,12.3676048 17.790217,10.8882225 C17.790217,7.91238937 15.3778276,5.5 12.4019945,5.5 C10.9226122,5.5 9.50830353,6.10825741 8.49076146,7.18211977 C6.44393746,9.34223416 6.53577746,12.7526315 8.69589184,14.7994555 L12.4019945,18.3111862 Z`,id:`Rectangle-23`,stroke:`#455A64`}),(0,K.jsxs)(`g`,{id:`Group-3`,transform:`translate(12.532841, 10.828427) rotate(-45.000000) translate(-12.532841, -10.828427) translate(10.032841, 9.328427)`,fill:`#455A64`,children:[(0,K.jsx)(`path`,{d:`M0.5,0 L0.5,0 C0.776142375,-5.07265313e-17 1,0.223857625 1,0.5 L1,3 L1,3 C0.44771525,3 6.76353751e-17,2.55228475 0,2 L0,0.5 C-3.38176876e-17,0.223857625 0.223857625,5.07265313e-17 0.5,0 Z`,id:`Rectangle-24`}),(0,K.jsx)(`path`,{d:`M0,2 L4.5,2 C4.77614237,2 5,2.22385763 5,2.5 L5,2.5 C5,2.77614237 4.77614237,3 4.5,3 L1,3 C0.44771525,3 6.76353751e-17,2.55228475 0,2 Z`,id:`Rectangle-21`})]})]})}),Zie=t({default:()=>Qie}),Qie=e=>(0,K.jsx)(`svg`,{width:`1.5em`,height:`1.5em`,...e,viewBox:`0 0 24 24`,children:(0,K.jsxs)(`g`,{stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`rect`,{stroke:`#455A64`,x:`5.5`,y:`8.5`,width:`11`,height:`9`}),(0,K.jsx)(`path`,{d:`M12.75,5.5 L19,5.5 C19.2761424,5.5 19.5,5.72385763 19.5,6 L20,5.5 L12.75,5.5 Z`,stroke:`#455A64`}),(0,K.jsx)(`path`,{d:`M19.5,12.25 L19.5,5 L19,5.5 C19.2761424,5.5 19.5,5.72385763 19.5,6 L19.5,12.25 Z`,stroke:`#455A64`}),(0,K.jsx)(`path`,{d:`M7.5,11.5 L14.5,11.5 L7.5,11.5 Z`,stroke:`#455A64`}),(0,K.jsx)(`path`,{d:`M7.5,14.5 L14.5,14.5 L7.5,14.5 Z`,stroke:`#455A64`})]})}),$ie=t({default:()=>eae}),eae=e=>(0,K.jsx)(`svg`,{width:`1.5em`,height:`1.5em`,...e,viewBox:`0 0 24 24`,children:(0,K.jsxs)(`g`,{stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsxs)(`g`,{id:`Group-4`,transform:`translate(6.000000, 5.000000)`,stroke:`#455A64`,children:[(0,K.jsx)(`rect`,{id:`Rectangle-21`,x:`0.5`,y:`2.5`,width:`10`,height:`11`}),(0,K.jsx)(`path`,{d:`M2.5,2.5 L2.5,4 C2.5,4.27614237 2.72385763,4.5 3,4.5 L8,4.5 C8.27614237,4.5 8.5,4.27614237 8.5,4 L8.5,2.5 L2.5,2.5 Z`,id:`Rectangle`}),(0,K.jsx)(`circle`,{id:`Oval`,fill:`#FFFFFF`,cx:`5.5`,cy:`1.5`,r:`1.5`})]}),(0,K.jsx)(`circle`,{id:`Oval-9`,stroke:`#455A64`,cx:`11.5`,cy:`12.5`,r:`1.5`}),(0,K.jsx)(`path`,{d:`M9,15 L14,15 C14.5522847,15 15,15.4477153 15,16 L8,16 L8,16 C8,15.4477153 8.44771525,15 9,15 Z`,id:`Rectangle-72`,fill:`#455A64`}),(0,K.jsx)(`rect`,{id:`Rectangle`,fill:`#455A64`,x:`14`,y:`16`,width:`1`,height:`2`}),(0,K.jsx)(`rect`,{id:`Rectangle-3`,fill:`#455A64`,x:`8`,y:`16`,width:`1`,height:`2`})]})}),tae=t({default:()=>nae}),nae=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 8 13`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M7.931 6.5l.033-.033L1.49-.008.036 1.447 5.089 6.5.036 11.553l1.454 1.455 6.474-6.475-.033-.033z`,fill:`#C7C7CC`,fillRule:`evenodd`})}),rae=t({default:()=>iae}),iae=e=>(0,K.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:40,height:40,fill:`none`,...e,children:[(0,K.jsx)(`circle`,{cx:19.822,cy:20,r:15.489,fill:`#36ACB2`,stroke:`#fff`,strokeWidth:2}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M21.95 11.088a2.336 2.336 0 0 0-.84-.798 2.282 2.282 0 0 0-2.223 0c-.34.19-.63.465-.84.798l-7.702 12.39A2.27 2.27 0 0 0 10 24.697a2.35 2.35 0 0 0 .68 1.636c.431.432 1.012.672 1.616.668h15.408a2.257 2.257 0 0 0 1.615-.668A2.35 2.35 0 0 0 30 24.696a2.271 2.271 0 0 0-.345-1.217L21.95 11.09Zm5.754 14.376H12.296a.752.752 0 0 1-.539-.223.783.783 0 0 1-.227-.545.745.745 0 0 1 .114-.404l7.704-12.39a.78.78 0 0 1 .654-.368.761.761 0 0 1 .653.367l7.701 12.39c.076.121.115.261.114.404a.783.783 0 0 1-.227.546.752.752 0 0 1-.539.223Z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M20 15.666c-.49 0-.888.29-.888.645v4.15c0 .357.397.645.888.645s.89-.288.89-.644v-4.15c0-.357-.399-.646-.89-.646ZM19.112 23.221c0-.18.052-.354.15-.503a.892.892 0 0 1 .398-.334.873.873 0 0 1 .969.196.912.912 0 0 1 .192.988.903.903 0 0 1-.327.407.877.877 0 0 1-1.122-.113.91.91 0 0 1-.26-.64Z`})]}),aae=t({default:()=>oae}),oae=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 20 20`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`rect`,{id:`IcClock-a`,x:10.768,y:2.268,width:1,height:3,rx:.5}),(0,K.jsx)(`rect`,{id:`IcClock-b`,x:6,y:5,width:1,height:6,rx:.5}),(0,K.jsx)(`path`,{id:`IcClock-c`,d:`M6 1h1v2H6z`})]}),(0,K.jsxs)(`g`,{transform:`translate(4 2)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsxs)(`g`,{transform:`rotate(45 11.268 3.768)`,children:[(0,K.jsx)(`use`,{fill:`#D8D8D8`,xlinkHref:`#IcClock-a`}),(0,K.jsx)(`rect`,{stroke:`#29333D`,x:11.268,y:2.768,width:1,height:2,rx:.5})]}),(0,K.jsx)(`rect`,{stroke:`#29333D`,x:3.5,y:.5,width:6,height:1,rx:.5}),(0,K.jsx)(`circle`,{stroke:`#29333D`,cx:6.5,cy:9.5,r:6.5}),(0,K.jsx)(`use`,{fill:`#D8D8D8`,xlinkHref:`#IcClock-b`}),(0,K.jsx)(`rect`,{stroke:`#29333D`,x:6.5,y:5.5,width:1,height:5,rx:.5}),(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`use`,{fill:`#D8D8D8`,xlinkHref:`#IcClock-c`}),(0,K.jsx)(`path`,{stroke:`#29333D`,d:`M6.5 1.5h1v1h-1z`})]})]})]}),sae=t({default:()=>cae}),cae=e=>(0,K.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:22,height:22,fill:`none`,...e,children:[(0,K.jsx)(`path`,{fill:`#666`,d:`M10.99 1.833a9.167 9.167 0 1 0 .02 18.334 9.167 9.167 0 0 0-.02-18.334Zm.01 16.5a7.333 7.333 0 1 1 0-14.666 7.333 7.333 0 0 1 0 14.666Z`}),(0,K.jsx)(`path`,{fill:`#666`,d:`M11.44 6.417h-1.357v5.425l4.75 2.848.679-1.112-4.07-2.417-.002-4.744Z`})]}),lae=t({default:()=>uae}),uae=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 10 10`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1em`,height:`1em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{d:`M9.12 16.437a.996.996 0 0 1-1.413-.002.995.995 0 0 1-.002-1.412l2.952-2.952-2.952-2.952a.996.996 0 0 1 .002-1.412.995.995 0 0 1 1.412-.002l2.952 2.952 2.952-2.952a.996.996 0 0 1 1.412.002.995.995 0 0 1 .002 1.412l-2.952 2.952 2.952 2.952a.996.996 0 0 1-.002 1.412.995.995 0 0 1-1.412.002l-2.952-2.952-2.952 2.952z`,id:`IcClose-a`})}),(0,K.jsx)(`use`,{fill:`currentColor`,xlinkHref:`#IcClose-a`,transform:`translate(-7 -7)`,fillRule:`evenodd`})]}),dae=t({default:()=>fae}),fae=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1em`,height:`1em`,...e,children:(0,K.jsx)(`path`,{d:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`})}),pae=t({default:()=>mae}),mae=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`1em`,height:`1em`,...e,children:(0,K.jsx)(`path`,{d:`M3.83 7l4.882-4.882A.994.994 0 0 0 8.71.705 1.012 1.012 0 0 0 7.29.71L0 8l7.29 7.29a.998.998 0 0 0 1.415.005 1 1 0 0 0-.002-1.413L3.83 9h11.174c.55 0 .996-.444.996-1 0-.552-.448-1-.996-1H3.83z`,fill:Wp,fillRule:`evenodd`})}),hae=t({default:()=>gae}),gae=()=>
2(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`10.531`,height:`11.36`,viewBox:`0 0 10.531 11.36`,children:(0,K.jsxs)(`g`,{transform:`translate(-1285.794 -235.847)`,children:[(0,K.jsx)(`line`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,x1:`9.118`,y2:`9.947`,transform:`translate(1286.5 236.553)`}),(0,K.jsx)(`line`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,x2:`9.118`,y2:`9.947`,transform:`translate(1286.5 236.553)`})]})}),_ae=t({default:()=>vae}),vae=()=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 10.531 11.36`,children:(0,K.jsxs)(`g`,{transform:`translate(-1285.794 -235.847)`,children:[(0,K.jsx)(`line`,{fill:`none`,stroke:`#36ACB2`,strokeLinecap:`round`,x1:`9.118`,y2:`9.947`,transform:`translate(1286.5 236.553)`}),(0,K.jsx)(`line`,{fill:`none`,stroke:`#36ACB2`,strokeLinecap:`round`,x2:`9.118`,y2:`9.947`,transform:`translate(1286.5 236.553)`})]})}),yae=t({default:()=>bae}),bae=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{d:`M4.782 22.557a1.997 1.997 0 0 1-2.832 0l-.507-.507a2.003 2.003 0 0 1 0-2.832L8.661 12 1.443 4.782a1.997 1.997 0 0 1 0-2.832l.507-.507a2.003 2.003 0 0 1 2.832 0L12 8.661l7.218-7.218a1.997 1.997 0 0 1 2.832 0l.507.507c.782.782.781 2.05 0 2.832L15.339 12l7.218 7.218a1.997 1.997 0 0 1 0 2.832l-1.214 1.215a1.001 1.001 0 0 1-1.415.001L12 15.34l-7.218 7.218z`,id:`IcCloseSlider-a`})}),(0,K.jsx)(`use`,{fill:`#FFF`,xlinkHref:`#IcCloseSlider-a`,fillRule:`evenodd`})]}),xae=t({default:()=>Sae}),Sae=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 14 14`,width:`1em`,height:`1em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-5-5h24v24H-5z`}),(0,K.jsx)(`path`,{d:`M2.048 13.366a.996.996 0 0 1-1.412-.002 1.003 1.003 0 0 1-.002-1.412L5.586 7 .634 2.048A.996.996 0 0 1 .636.636 1.003 1.003 0 0 1 2.048.634L7 5.586 11.952.634a.996.996 0 0 1 1.412.002c.39.39.387 1.027.002 1.412L8.414 7l4.952 4.952a.996.996 0 0 1-.002 1.412c-.39.39-1.027.387-1.412.002L7 8.414l-4.952 4.952z`,fillOpacity:.9,fill:`#FFF`})]})}),Cae=t({default:()=>wae}),wae=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{d:`M9.12 16.437a.996.996 0 0 1-1.413-.002.995.995 0 0 1-.002-1.412l2.952-2.952-2.952-2.952a.996.996 0 0 1 .002-1.412.995.995 0 0 1 1.412-.002l2.952 2.952 2.952-2.952a.996.996 0 0 1 1.412.002.995.995 0 0 1 .002 1.412l-2.952 2.952 2.952 2.952a.996.996 0 0 1-.002 1.412.995.995 0 0 1-1.412.002l-2.952-2.952-2.952 2.952z`,id:`IcCloseWhite2-a`})}),(0,K.jsx)(`use`,{fill:`#FFF`,xlinkHref:`#IcCloseWhite2-a`,fillRule:`evenodd`})]}),Tae=t({default:()=>Eae}),Eae=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 14 14`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M13.66 2c0-.733-.593-1.333-1.327-1.333H1.667C.933.667.333 1.267.333 2v8c0 .733.6 1.333 1.334 1.333H10l1.952 1.956a1 1 0 0 0 1.708-.706V2z`,className:`inherit`,fill:`#FF4B0A`,fillRule:`nonzero`}),(0,K.jsx)(`path`,{d:`M10.333 8.667H3.667a.667.667 0 1 1 0-1.333h6.666a.667.667 0 0 1 0 1.333zM10.333 6.667H3.667a.667.667 0 1 1 0-1.333h6.666a.667.667 0 0 1 0 1.333zM10.333 4.667H3.667a.667.667 0 1 1 0-1.333h6.666a.667.667 0 0 1 0 1.333z`,fill:`#FFF`})]})}),Dae=t({default:()=>Oae}),Oae=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 48 48`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M32.991 18.045c0-1.125-.89-2.045-1.99-2.045h-16C13.9 16 13 16.92 13 18.045v12.268c0 1.125.9 2.045 2 2.045h14.001l2.284 2.335a1 1 0 0 0 1.715-.7l-.009-15.948z`,className:`inherit`,fill:`#FF4B0A`,fillRule:`nonzero`}),(0,K.jsx)(`path`,{d:`M28 28H18a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2zM28 25H18a1 1 0 1 1 0-2h10a1 1 0 0 1 0 2zM28 22H18a1 1 0 1 1 0-2h10a1 1 0 0 1 0 2z`,fill:`#FFF`})]})}),kae=t({default:()=>Aae}),Aae=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M21 15V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12.249l1.28 1.367a2 2 0 0 0 1.46.633h.072c.519 0 .939-.42.939-.939V15z`,stroke:`#868F9A`}),(0,K.jsx)(`g`,{fill:`#868F9A`,children:(0,K.jsx)(`path`,{d:`M17.5 14h-11a.5.5 0 0 1 0-1h11a.5.5 0 1 1 0 1zM17.5 11h-11a.5.5 0 0 1 0-1h11a.5.5 0 1 1 0 1zM17.5 8h-11a.5.5 0 1 1 0-1h11a.5.5 0 1 1 0 1z`})})]})}),jae=t({default:()=>Mae}),Mae=e=>
2(0,K.jsxs)(`svg`,{viewBox:`0 0 594 392`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{id:`a`,d:`M0 392h593.795V.437H0z`})}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,opacity:.8,children:[(0,K.jsx)(`path`,{d:`M0 390.063h593.795`,stroke:`#455A64`,strokeWidth:5}),(0,K.jsx)(`path`,{fill:`#546E7A`,d:`M512.735 316.503l11.862 72.639h8.567l-6.975-72.436zM467.026 316.706l11.876-.203 6.529 72.639h-6.529z`}),(0,K.jsx)(`path`,{fill:`#455A64`,d:`M443.805 317.446l-7.41 71.695h7.41l11.665-71.695zM413.872 388.48H402.31l11.563-80.558h10.115z`}),(0,K.jsx)(`path`,{fill:`#455A64`,d:`M419.002 318.967l51.066-.741-1.084-11.731h-41.955z`}),(0,K.jsxs)(`g`,{transform:`translate(0 .563)`,children:[(0,K.jsx)(`path`,{d:`M467.464 305.932l23.644-101.398a6.738 6.738 0 0 1 6.563-5.209h48.748a6.743 6.743 0 0 1 6.721 6.233c.875 11.27 1.168 35.483-9.852 52.958a5.927 5.927 0 0 0-.446.841c-1.688 3.92-13.797 32.841-12.511 52.608 0 0 1.71 8.67-10.734 5.89a6.997 6.997 0 0 0-1.617-.18l-46.264.661c-3.807.054-7.112-3.063-6.834-6.86.07-.963.38-1.857 1.072-2.548.801-.802 1.251-1.89 1.51-2.996z`,fill:`#546E7A`}),(0,K.jsx)(`mask`,{id:`b`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#a`})}),(0,K.jsx)(`path`,{fill:`#546E7A`,mask:`url(#b)`,d:`M348.914 367.219h8.84V251.034h-8.84z`}),(0,K.jsx)(`path`,{fill:`#455A64`,mask:`url(#b)`,d:`M322.622 196.639l6.63 49.312h63.254l-6.466-49.085z`}),(0,K.jsx)(`path`,{fill:`#455A64`,mask:`url(#b)`,d:`M391.095 245.951h32.893v-6.246h-32.893z`}),(0,K.jsx)(`path`,{d:`M361.88 222.046a5.006 5.006 0 1 1-10.011 0 5.006 5.006 0 0 1 10.011 0`,fill:`#546E7A`,mask:`url(#b)`}),(0,K.jsx)(`path`,{fill:`#455A64`,mask:`url(#b)`,d:`M288.377 325.652h53.532l-5.84 62.654h-38.932z`}),(0,K.jsx)(`path`,{d:`M550.85 355.16s-7.4-3.637-9.818-9.283c-.767-1.791-.563-3.952.848-5.296 1.397-1.329 3.795-1.882 7.464 2.54 0 0 2.174 2.507 2.843-.67V322.63c0-2.576 1.01-5.119 2.986-6.77 1.708-1.426 4.043-2.26 6.727-.224 1.898 1.44 3.04 3.653 3.4 6.007.603 3.926 1.126 11.368-1.614 19.084-.414 1.163-.714 2.372-.752 3.606-.056 1.846.37 3.872 2.848 2.468l5.763-7.84c.801-1.088 1.935-1.922 3.253-2.221 1.54-.35 3.292-.014 3.476 3.204 0 0 .67 7.19-9.198 15.218H550.85z`,fill:`#36ACB2`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M557.462 355.16l2.53-38.05M558.51 336.647l-4.376-3.746M565.22 355.16l8.99-12.54M542.79 341.694l10.572 12.944M548.564 348.89v-5.543`,stroke:`#FF8A65`,strokeWidth:.5,mask:`url(#b)`}),(0,K.jsx)(`path`,{fill:`#455A64`,mask:`url(#b)`,d:`M543.738 353.401h29.544l-3.223 34.578h-21.487z`}),(0,K.jsx)(`path`,{fill:`#37474F`,mask:`url(#b)`,d:`M544.754 361.716h27.753v-1.047h-27.753z`}),(0,K.jsx)(`path`,{d:`M332.556 362.746c-3.245-.023-4.551 3.85-1.838 5.538 3.229 2.008 8.218 4.048 15.868 5.232 0 0 14.256 2.499 16.924 5.9 0 0 9.212 6.373 13.097 1.209 0 0-.44-3.312.81-14.625l-13.855-5.905s-12.81 2.783-31.006 2.65`,fill:`#E64A19`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M357.924 373.899c-3.234.275-4.178 4.253-1.322 5.683 3.4 1.703 8.556 3.276 16.282 3.753 0 0 14.425 1.178 17.395 4.32 0 0 9.758 5.5 13.152 0 0 0 2.983-2.511 3.189-13.891l-15.805-7.006s-14.76 5.6-32.891 7.14`,fill:`#FF7043`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M392.506 185.714h9.803s2.465 10.722 6.785 19.414c2.015 4.055 6.374 5.902 10.71 6.678 6.314 1.13 12.655-1.91 15.848-7.472 4.773-8.313 12.436-20.843 16.686-23.506 0 0 13.682 60.636-16.152 61.64 0 0-.128.02-.371.049-21.546 2.638-40.81-13.577-42.062-35.247l-1.247-21.556z`,fill:`#E64A19`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M392.506 185.714h9.803l-.388-5.366a17.694 17.694 0 0 0-2.08-7.142c-2.953-5.475-8.637-15.398-10.174-13.742-2.106 2.267-1.125 21.563 2.839 26.25`,fill:`#F0CDBB`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M360.36 358.818L377.416 366l29.625-49.627s31.275-29.831 58.731-32.746l10.057-14.586-29.633 2.218-37.453 6.04s-17.362 3.805-23.308 24.497l-25.077 57.022z`,fill:`#263238`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M388.34 365.989l18.28 8.043 31.969-53.493c4.456-7.457 12.42-12.228 21.106-12.31l.327-.001h26.825c4.723 0 9.425-1.128 13.464-3.574 5.496-3.328 10.88-9.577 8.579-21.058-4.296-21.431 0 0 0 0l-53.517-9.525s-26.21 4.78-29.012 7.104c0 0-11.962 6.637-19.318 35.
2198l-18.702 49.616z`,fill:`#37474F`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M449.098 245.154s0-19.144-2.901-24.945c0 0-22.044-45.586 31.326-44.257 0 0 58.632 2.064 31.367 107.644 0 0-22.665 4.486-62.693-12.337l2.9-26.105z`,fill:`#F4511E`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M471.237 220.053c-4.82 6.311-14.877 3.651-15.846-4.23-1.55-12.618-2.654-31.356 3.431-36.858 9.436-8.532 21.618-1.57 21.038 7.131 0 0 .633 21.841-8.623 33.957`,fill:`#FFF`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M484.679 197.991c1.208-6.432 7.278-10.943 13.727-9.827l.206.037s11.752 1.524 8.488 20.458c0 0-1.088 42.657-54.41 35.91l-42.22-3.265v-7.835l33.704-3.497c12.706-1.319 24.636-7.217 32.883-16.972 3.603-4.262 6.55-9.303 7.622-15.009`,fill:`#FF7043`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M391.08 240.375l19.39.93v-7.835s-21.645-.083-19.39 6.905M468.154 194.967h-4.762a4.571 4.571 0 0 1-4.57-4.571v-28.944a4.572 4.572 0 0 1 4.57-4.571h4.762a4.572 4.572 0 0 1 4.57 4.57v28.945a4.571 4.571 0 0 1-4.57 4.57`,fill:`#F0CDBB`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M429.553 134.249v22.402c0 5.294 1.854 10.509 5.53 14.32 4.16 4.314 11.112 7.743 22.277 4.201 0 0 13.06-2.361 13.903-16.92v-24.003h-41.71z`,fill:`#F0CDBB`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M435.995 149.261a1.223 1.223 0 1 1-2.446 0 1.223 1.223 0 0 1 2.446 0M448.378 149.261a1.223 1.223 0 1 1-2.446 0 1.223 1.223 0 0 1 2.446 0`,fill:`#000`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M428.53 139.432s9.562 3.678 18.209-1.189c1.607-.905 3.284-1.688 4.974-2.427l2.921-1.279s5.711-3.454 3.671 6.227c0 0-.408 6.826 3.671 5.602 0 0 3.263-6.934 6.934-2.855 0 0 2.587 5.175-.444 9.008-1.312 1.658-1.489 3.936-.284 5.674 1.153 1.663 2.619 3.264 3.991 3.264 2.677 0 3.846.113 3.456-15.339-.047-1.83-.01-3.654.108-5.48.253-3.914.252-12.306-3.539-18.687-3.013-5.07-9.394-9.294-15.209-8.306-8.691 1.478-24.62 4.61-29.708 4.541-6.137-.083-14.351 17.091 1.249 21.246`,fill:`#37474F`,mask:`url(#b)`}),(0,K.jsx)(`path`,{fill:`#546E7A`,mask:`url(#b)`,d:`M281.632 255.296h160.054v-9.345H281.632z`}),(0,K.jsx)(`path`,{fill:`#546E7A`,mask:`url(#b)`,d:`M302.814 387.917h8.84V252.255h-8.84z`}),(0,K.jsx)(`path`,{fill:`#37474F`,mask:`url(#b)`,d:`M441.686 255.296h87.489v-9.345h-87.489zM492.121 388.579h8.847V255.297h-8.847zM399.916 182.167l-1.416.465a1.432 1.432 0 0 1-1.806-.914l-8.621-26.278a1.432 1.432 0 0 1 .914-1.806l1.417-.465a1.43 1.43 0 0 1 1.805.914l8.62 26.278a1.432 1.432 0 0 1-.913 1.806`}),(0,K.jsx)(`path`,{stroke:`#455A64`,strokeWidth:5,mask:`url(#b)`,d:`M274.928 137.479h116.604V2.937H274.928z`}),(0,K.jsx)(`path`,{d:`M299.199 56.432l26.837.943c2.785.272 26.624-.46 40.4-1.438 3.933-.279 4.922-4.533 1.242-5.635-1.68-.503-3.712-.19-6.024 1.911-.106.096-.22.19-.344.272-1.068.715-6.225 3.877-6.523-1.458a1.74 1.74 0 0 1 .094-.653c.865-2.586 6.55-20.458-1.06-21.91 0 0-12.052-5.504-27.26 12.8-13.953 16.798-12.831 4.416-12.552 2.264a1.815 1.815 0 0 0-.062-.77c-.277-.927-1.241-2.864-4.39-2.297 0 0-5.095-.433-12.788 12.612-.863 1.464.353 3.156 2.43 3.36`,fill:`#D6D8D8`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M164.66 387.917V80.312c0-15.716 11.613-28.456 25.94-28.456 14.325 0 25.94 12.74 25.94 28.456v6.569`,stroke:`#455A64`,strokeWidth:5,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M236.237 141.782H200.41a8.358 8.358 0 0 1-8.358-8.358v-32.597a8.358 8.358 0 0 1 8.358-8.358h35.827a8.358 8.358 0 0 1 8.358 8.358v32.597a8.358 8.358 0 0 1-8.358 8.358`,fill:`#E64A19`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M226.083 130.207a7.726 7.726 0 1 1-15.452 0 7.726 7.726 0 0 1 15.452 0`,fill:`#FFF`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M244.595 131.017h-52.542V93.463a8.358 8.358 0 0 1 8.358-8.358h35.827a8.358 8.358 0 0 1 8.357 8.358v37.554z`,fill:`#FF7043`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M274.928 70.208h115.986`,stroke:`#455A64`,strokeWidth:5,mask:`url(#b)`}),(0,K.jsxs)(`g`,{mask:`url(#b)`,children:[(0,K.jsx)(`path`,{d:`M332.922 2.937v134.542`,fill:`#95F7F9`}),(0,K.jsx)(`path`,{d:`M332.922 2.937v134.542`,stroke:`#455A64`,strokeWidth:5})]})]})]})]}),Nae=t({default:()=>Pae}),Pae=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 72 83`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-20-14H91V97H-20z`}),(0,K.jsx)(`path`,{d:`M5.396 73.104v3.248A4.498 4.498 0 0 0 9.9 80.854h55.823a4.504 4.504 0 0 0 4.505-4.502v-3.248c0-14.847-13.138-23.167-32.416-23.167-19.26 0-32.417 8.327-32.417 23.167zM53.27 25.312c0-8.567-6.87-15.458-15.43-15.458-8.57 0-15.486 6.904-15.486 15.458 0 8.555 6.915 15.459 15.487 15.459 8.5
259 0 15.43-6.891 15.43-15.459z`,stroke:`#FF4B0A`,strokeWidth:3}),(0,K.jsx)(`path`,{d:`M10.063 10.667v6.203a1.51 1.51 0 0 1-1.504 1.505h.695c-.83 0-1.504-.67-1.504-1.505v-6.203H1.546A1.51 1.51 0 0 1 .042 9.163v.695c0-.83.67-1.504 1.504-1.504H7.75V2.15c0-.83.681-1.504 1.504-1.504h-.695c.83 0 1.504.67 1.504 1.504v6.204h6.203c.831 0 1.505.681 1.505 1.504v-.695c0 .83-.67 1.504-1.505 1.504h-6.203z`,fillOpacity:.9,fill:`#FF4B0A`})]})}),Fae=t({default:()=>Iae}),Iae=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 594 345`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{id:`a`,d:`M0 345h593.795V.614H0z`}),(0,K.jsx)(`path`,{d:`M.238 6.913a6.384 6.384 0 0 0 1.875 4.439l4.529 4.528 4.528-4.528A6.403 6.403 0 0 0 6.642.421 6.404 6.404 0 0 0 .238 6.735v.178z`,id:`c`}),(0,K.jsx)(`path`,{d:`M.703 6.721c0 1.768.716 3.369 1.875 4.528l4.528 4.528 4.528-4.528A6.403 6.403 0 0 0 7.106.318 6.403 6.403 0 0 0 .703 6.721z`,id:`e`}),(0,K.jsx)(`path`,{d:`M.22 7.223l.003-.159A6.403 6.403 0 0 1 6.609.867h.02a6.38 6.38 0 0 1 4.666 2.025l4.379 4.671-4.671 4.38A6.403 6.403 0 0 1 .22 7.325v-.102z`,id:`g`})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,opacity:.8,children:[(0,K.jsx)(`path`,{fill:`#37474F`,d:`M389.744 80.699h26.395v-3.901h-26.395z`}),(0,K.jsx)(`path`,{fill:`#546E7A`,d:`M390.688 94.325h25.451V80.666h-25.451z`}),(0,K.jsx)(`path`,{fill:`#37474F`,d:`M390.688 105.137h2.753V94.325h-2.753z`}),(0,K.jsx)(`path`,{d:`M399.562 86.05h9.751`,stroke:`#37474F`}),(0,K.jsxs)(`g`,{transform:`translate(0 -.614)`,children:[(0,K.jsx)(`path`,{d:`M408.537 71.634a5.83 5.83 0 1 1-11.659 0 5.83 5.83 0 0 1 11.659 0z`,fill:`#FF7043`}),(0,K.jsx)(`path`,{d:`M402.708 60.208v5.598`,stroke:`#37474F`}),(0,K.jsx)(`path`,{fill:`#37474F`,d:`M407.366 49.458h-8.849l-3.608 11.647H410.974z`}),(0,K.jsx)(`path`,{d:`M384.738 268.088H213.886a2.282 2.282 0 0 1-2.282-2.282V175.61H387.02v90.195a2.282 2.282 0 0 1-2.282 2.282`,fill:`#D6D8D8`}),(0,K.jsx)(`mask`,{id:`b`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#a`})}),(0,K.jsx)(`path`,{fill:`#37474F`,mask:`url(#b)`,d:`M211.604 175.733H387.02v-10.474H211.604z`}),(0,K.jsx)(`path`,{stroke:`#FFF`,strokeWidth:.5,mask:`url(#b)`,d:`M252.63 268.088h19.638v-92.477H252.63z`}),(0,K.jsx)(`path`,{stroke:`#FFF`,strokeWidth:.5,mask:`url(#b)`,d:`M272.21 268.088h19.638v-92.477H272.21z`}),(0,K.jsx)(`path`,{stroke:`#FFF`,strokeWidth:.5,mask:`url(#b)`,d:`M291.79 268.088h19.638v-92.477H291.79z`}),(0,K.jsx)(`path`,{stroke:`#FFF`,strokeWidth:.5,mask:`url(#b)`,d:`M311.37 268.088h19.638v-92.477H311.37z`}),(0,K.jsx)(`path`,{stroke:`#FFF`,strokeWidth:.5,mask:`url(#b)`,d:`M330.95 268.088h19.638v-92.477H330.95z`}),(0,K.jsx)(`path`,{stroke:`#FFF`,strokeWidth:.5,mask:`url(#b)`,d:`M350.531 268.088h19.638v-92.477h-19.638z`}),(0,K.jsx)(`path`,{stroke:`#FFF`,strokeWidth:.5,mask:`url(#b)`,d:`M370.111 268.088h19.638v-92.477h-19.638z`}),(0,K.jsx)(`path`,{stroke:`#FFF`,strokeWidth:.5,mask:`url(#b)`,d:`M201.046 205.826h188.703v-20.754H201.046zM201.046 226.58h188.703v-20.754H201.046zM201.046 247.334h188.703V226.58H201.046z`}),(0,K.jsx)(`path`,{d:`M358.813 173.397h-113.12a1.244 1.244 0 0 1-1.244-1.244v-2.746c0-.687.557-1.244 1.244-1.244h113.12c.687 0 1.244.557 1.244 1.244v2.746c0 .687-.557 1.244-1.244 1.244`,fill:`#FFF`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M343.653 195.712h-83.297a1.336 1.336 0 0 1-1.336-1.336v-2.947c0-.738.598-1.336 1.336-1.336h83.297c.738 0 1.336.598 1.336 1.336v2.947c0 .738-.598 1.336-1.336 1.336M380.158 216.203h-57.633a1.336 1.336 0 0 1-1.336-1.336v-2.947c0-.738.598-1.336 1.336-1.336h57.633c.738 0 1.336.598 1.336 1.336v2.947c0 .738-.598 1.336-1.336 1.336M339.568 237.663h-57.832a1.336 1.336 0 0 1-1.335-1.336v-2.947c0-.738.598-1.336 1.335-1.336h57.832c.738 0 1.336.598 1.336 1.336v2.947c0 .738-.598 1.336-1.336 1.336`,fill:`#37474F`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M287.52 244.93h-10.983a1.336 1.336 0 0 1-1.335-1.335v-2.947c0-.738.598-1.336 1.335-1.336h10.984c.738 0 1.336.598 1.336 1.336v2.947c0 .738-.598 1.336-1.336 1.336M346.261 244.93h-10.984a1.336 1.336 0 0 1-1.335-1.335v-2.947c0-.738.598-1.336 1.335-1.336h10.984c.738 0 1.336.598 1.336 1.336v2.947c0 .738-.598 1.336-1.336 1.336M326.71 223.365h-10.984a1.336 1.336 0 0 1-1.335-1.336v-2.947c0-.738.598-1.336 1.335-1.336h10.984c.738 0 1.336.598 1.336 1.336v2.947c0 .738-.598 1.336-1.336 1.336M384.195 223.365H373.21a1.336 1.336 0 0 1-1.335-1.336v-2.947c0-.738.598-1.336 1.335-1.336h10.984c.738 0 1.336.598 1.336 1.336v2.947c0 .738-.598 1.336-1.336 1.336`,fill:`#36AC
2B2`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M360.325 258.032h-96.54a1.336 1.336 0 0 1-1.336-1.336v-2.947c0-.738.598-1.336 1.336-1.336h96.54c.738 0 1.336.598 1.336 1.336v2.947c0 .738-.598 1.336-1.336 1.336`,fill:`#37474F`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M268.877 265.193h-10.984a1.336 1.336 0 0 1-1.335-1.335v-2.947c0-.738.598-1.337 1.335-1.337h10.984c.738 0 1.336.599 1.336 1.337v2.947c0 .738-.598 1.335-1.336 1.335M364.362 265.193h-10.984a1.336 1.336 0 0 1-1.335-1.335v-2.947c0-.738.598-1.337 1.335-1.337h10.984c.738 0 1.336.599 1.336 1.337v2.947c0 .738-.598 1.335-1.336 1.335M269.466 202.88H258.48a1.336 1.336 0 0 1-1.334-1.336v-2.947c0-.738.598-1.336 1.334-1.336h10.985c.738 0 1.335.598 1.335 1.336v2.947c0 .738-.597 1.336-1.335 1.336M346.261 202.88h-10.984a1.336 1.336 0 0 1-1.335-1.336v-2.947c0-.738.598-1.336 1.335-1.336h10.984c.738 0 1.336.598 1.336 1.336v2.947c0 .738-.598 1.336-1.336 1.336`,fill:`#36ACB2`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M219.837 171.692a2.179 2.179 0 1 1-4.253-.947 2.179 2.179 0 0 1 4.253.947M227.608 171.692a2.179 2.179 0 1 1-4.253-.947 2.179 2.179 0 0 1 4.253.947M235.38 171.692a2.179 2.179 0 1 1-4.254-.947 2.179 2.179 0 0 1 4.253.947M215.034 189.969h34.172v-1.064h-34.172zM215.034 194.147h34.172v-1.064h-34.172zM215.034 198.325h34.172v-1.064h-34.172zM215.034 231.488h34.172v-1.064h-34.172zM215.034 235.666h34.172v-1.064h-34.172zM215.034 239.844h34.172v-1.064h-34.172zM215.034 210.454h34.172v-1.064h-34.172zM215.034 214.632h34.172v-1.064h-34.172zM215.034 218.809h34.172v-1.064h-34.172zM215.034 254.625h34.172v-1.064h-34.172zM215.034 258.803h34.172v-1.064h-34.172zM215.034 262.981h34.172v-1.064h-34.172z`,fill:`#FFF`,mask:`url(#b)`}),(0,K.jsx)(`path`,{stroke:`#FFF`,strokeWidth:.5,mask:`url(#b)`,d:`M205.289 268.088h47.341v-92.477h-47.341z`}),(0,K.jsx)(`path`,{d:`M388.688 106.195h124.267`,stroke:`#37474F`,mask:`url(#b)`}),(0,K.jsx)(`path`,{fill:`#455A64`,mask:`url(#b)`,d:`M406.445 105.615h15.323v-5.436h-15.323zM485.637 105.615h15.323v-5.436h-15.323z`}),(0,K.jsx)(`path`,{d:`M494.857 85.43h-81.39c-5.427 0-9.826-4.4-9.826-9.826s4.4-9.825 9.826-9.825h81.39c5.427 0 9.826 4.399 9.826 9.825 0 5.427-4.399 9.826-9.826 9.826`,fill:`#546E7A`,mask:`url(#b)`}),(0,K.jsx)(`path`,{fill:`#37474F`,mask:`url(#b)`,d:`M403.641 100.18h101.042V85.06H403.641zM412.064 65.865h84.196v-8.379h-84.196z`}),(0,K.jsx)(`path`,{fill:`#546E7A`,mask:`url(#b)`,d:`M412.064 57.541h84.196v-8.379h-84.196z`}),(0,K.jsx)(`path`,{d:`M496.26 53.351h-84.196`,stroke:`#37474F`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M447.759 65.716h-16.816a3.073 3.073 0 0 1-3.072-3.072V45.828a3.072 3.072 0 0 1 3.072-3.073h16.816a3.073 3.073 0 0 1 3.072 3.073v16.816a3.073 3.073 0 0 1-3.072 3.072M478.702 65.716h-13.886a3.073 3.073 0 0 1-3.073-3.072V48.758a3.072 3.072 0 0 1 3.073-3.074h13.886a3.073 3.073 0 0 1 3.073 3.074v13.886a3.073 3.073 0 0 1-3.073 3.072`,fill:`#FF7043`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M460.932 65.716H450.32a3.073 3.073 0 0 1-3.073-3.072V52.032a3.073 3.073 0 0 1 3.073-3.073h10.612a3.073 3.073 0 0 1 3.073 3.072v10.613a3.073 3.073 0 0 1-3.073 3.072`,fill:`#FFF`,mask:`url(#b)`}),(0,K.jsx)(`path`,{stroke:`#37474F`,mask:`url(#b)`,d:`M446.792 19.496l7.134-5.872 7.134 5.872`}),(0,K.jsx)(`path`,{fill:`#546E7A`,mask:`url(#b)`,d:`M442.138 33.907h23.593V18.243h-23.593z`}),(0,K.jsx)(`path`,{fill:`#FFF`,mask:`url(#b)`,d:`M445.229 31.199h17.302v-9.894h-17.302z`}),(0,K.jsx)(`path`,{d:`M534.447 339.721h9.63c.81 0 1.306-.889.882-1.58l-2.935-4.777a1.033 1.033 0 0 0-.88-.493h-4.34a1 1 0 0 0-.626.212c-.79.62-2.926 2.591-2.773 5.641a1.05 1.05 0 0 0 1.042.997`,fill:`#FF7043`,mask:`url(#b)`}),(0,K.jsx)(`path`,{stroke:`#455A64`,strokeWidth:5,d:`M354.611 132.714h213.453V3.115H354.611z`}),(0,K.jsx)(`path`,{stroke:`#455A64`,strokeWidth:5,mask:`url(#b)`,d:`M191.81 280.941h213.453V151.342H191.81z`}),(0,K.jsx)(`path`,{d:`M489.675 43.994v20.968c0 .04.004.075.015.113.32 1.132 5.748 19.15 25.938 12.745 0 0 12.191-2.203 12.977-15.792V39.625h-34.56a4.369 4.369 0 0 0-4.37 4.37`,fill:`#F0CDBB`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M245.555 207.606l-.892 1.194a1.431 1.431 0 0 1-2.002.29l-22.156-16.551a1.43 1.43 0 0 1-.291-2.003l.893-1.
2195a1.431 1.431 0 0 1 2.002-.29l22.156 16.552c.634.473.764 1.37.29 2.003`,fill:`#37474F`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M0 342.5h593.795`,stroke:`#455A64`,strokeWidth:5}),(0,K.jsx)(`path`,{d:`M318.002 194.305l-4.797-10.148c-1.804-3.817-.151-8.695 3.324-9.813 2.603-.838 9.283-1.348 10.343 1.69l5.256 21.363-11.07 4.499-3.056-7.591M510.094 87.826l3-19.374h10.03l.886 19.374zM493.14 227.014l9.714 106.011h6.197l3.148-101.069zM523.361 236.058l13.041 96.968h5.15l2.146-100.77zM551.086 146.436l-4.826 5.385a2.632 2.632 0 0 0-.254.335c-.894 1.416-6.443 10.677-.553 13.68.947.484 2.196-.25 2.605-1.53 1.126-3.525 3.502-10.266 5.79-12.33.688-.62.991-1.646.761-2.493l-.702-2.58c-.362-1.33-1.83-1.573-2.821-.467M465.778 71.358s-.983-8.844 1.228-9.09c0 0 3.685-1.228 2.457 6.388v21.902l-4.76 4.759V83.396s-9.98-.983 1.075-12.038`,fill:`#F0CDBB`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M460.396 97.714l5.884-8.5c1.454-2.1 4.648-1.754 5.626.606 2.45 5.91 6.604 14.353 10.346 14.353 5.756 0 11.28 0 18.708-11.643l1.786-2.895c1.899-3.08 6.649-1.17 5.889 2.367l-4.981 23.178a3.19 3.19 0 0 1-1.025 1.745c-4.521 3.91-27.042 20.762-42.564-16.144a3.214 3.214 0 0 1 .33-3.067M536.975 113.531l15.516 14.293a4.857 4.857 0 0 1 .82 6.16l-5.639 8.964a3.68 3.68 0 0 0 .333 4.368l6.277 7.247c1.795 2.072 5.144 1.524 6.185-1.01l12.826-23.79c5.457-9.128-22.773-23.16-33.526-34.345-2.212-2.3-6.081-.555-5.837 2.627l.84 10.938a6.9 6.9 0 0 0 2.205 4.548`,fill:`#FF7043`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M499.543 94.643l-5.74 75.896c-.67 6.2 3.627 37.915 9.618 39.648 11.195 3.24 18.868 20.672 36.113 12.321 4.684-2.268 4.08-46.77 3.792-51.969l-.93-63.33c-.46-8.318-5.118-15.887-12.45-19.84-.557-.3-1.133-.594-1.73-.88-7.285-3.499-15.89-3.542-22.807.64-3.003 1.817-5.515 4.28-5.865 7.514`,fill:`#F4511E`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M493.804 170.54h49.522a2.748 2.748 0 0 1 2.742 2.566l.018.26a2.75 2.75 0 0 1-2.757 2.931l-49.54-.26a2.749 2.749 0 1 1 .014-5.497`,fill:`#FFF`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M493.14 176.033l-17.206 47.803s59.471 25.533 88.236 4.201l-20.842-51.74-50.188-.264z`,fill:`#263238`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M494.876 339.721h15.648s.166-1.976-.196-3.82c-.334-1.703-.143-2.937-1.661-2.906l-8.61.03s-6.3.267-5.181 6.696`,fill:`#FF7043`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M530.053 63.695s19.84-15.422-5.051-29.395c-.3-.168-.612-.31-.936-.424-3.071-1.088-19.013-6.023-25.3 6.276a5.706 5.706 0 0 0-.502 1.506c-.442 2.249-1.436 8.563.273 12.924 1.744 4.453 1.767 9.42-.327 13.72-1.243 2.553-1.84 4.983-.637 6.309 0 0-1.14 2.56 6.78 10.329a5.681 5.681 0 0 1 1.627 3.059c.42 2.373.44 6.336-3.136 8.972 0 0-6.698 4.613-4.652 8.909 0 0 2.533 4.09 6.008 6.936 1.276 1.044 2.125 2.53 2.213 4.176.12 2.252-.43 5.334-3.57 7.66-5.546 4.11-6.5 8.379 4.264 8.276a7.52 7.52 0 0 0 .398-.016l39.127-2.65c5.859-.395 7.605-8.43 2.305-10.958-.077-.036-13.717-10.187-13.717-11.992 0 0-.688-9.113 4.71-11.657.494-.232.975-.472 1.403-.81 2.129-1.675 8.08-7.085 5.12-13.203-.413-.853-1.078-1.555-1.86-2.091-3.062-2.102-11.868-8.212-13.095-9.785-1.488-1.91-3.172-4.494-1.445-6.071`,fill:`#37474F`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M494.039 36.06c5.385-3.64 15.242-7.99 26.655-2.1l-17.14 8.411-.324.279c-3.872 5.392-9.102 6.447-13.554 2.939v-1.29a9.931 9.931 0 0 1 4.363-8.239`,fill:`#37474F`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M142.217 143.749s-28.637 151.46-16.364 185.582h-14.318s-28.637-101.53 0-185.582h30.682z`,fill:`#263238`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M132.805 143.749h35.304s-10.921 158.992 0 185.582h-17.652l-23.44-144.026 5.788-41.556z`,fill:`#263238`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M113.775 329.33l-17.059 2.535a7.943 7.943 0 0 0-6.775 7.856h38.184l-3.136-10.39h-11.214z`,fill:`#E64A19`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M155.236 329.33l-19.536 2.535c-4.458.578-7.759 3.92-7.759 7.856h43.728l-3.59-10.39h-12.843z`,fill:`#FF7043`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M384.359 330.514s-10.194 0-9.106 9.207h15.222l13.167-17.309s-5.193-6.26-9.18-2.21l-10.103 10.312z`,fill:`#E64A19`,mask:`url(#b)`}),(0,K.jsx)(`path`,{fill:`#F0CDBB`,mask:`url(#b)`,d:`M377.22 311.96l18.729 7.2-7.822 7.509-10.907-3.293zM351.968 326.18l6.986 6.692-14.708-.521-1.74-1.886z`}),(0,K.jsx)(`path`,{d:`M107.648 74.194L88.644 98.535c-4.577 5.864-11.71 9.365-19.13 8.856-7.049-.484-12.895-4.2-16.803-9.54-.904-1.234-1.525-2.447-1.713-3.578l-7.615 6.952s26.92 51.769 66.98 7.257l-2.715-34.288z`,fill:`#FF7043`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M62.485 74.563l12.648 34.33a2.362 2.362 0 0 1-2.216 3.179H44.762a2.362 2.362 0 0 1-2.235-1.597L30.782 76.144a2.362 2.362 0 0 1 2.235-3.126H60.27c.99 0 1.874.617 2.216 1.545M82.813 24.176v23.937s1.727 6.663 4.944 2.833c3.217-3.83 1.452-24.968 1.452-24.968l-6.396-1.802z`,fill:`#37474F`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M105.59 138.027s0-19.144-2.9-24.945c0 0-22.044-45.586 31.326-44.257 0 0 58.632 2.064 31.367 107.644 0 0-25.277 27.786-65.304 10.963l5.512-49.405z`,fill:`#F4511E`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M86.508 26.916v22.402c0 5.294 1.854 10.509 5.53 14.32 4.16 4.313 11.112 7.742 22.277 4.2 0 0 13.06-2.36 13.903-16.92V26.917h-41.71zM290.417 144.789v22.402c0 5.294 1.854 10.509 5.53 14.32 4.16 4.314 11.112 7.743 22.277 4.201 0 0 13.06-2.361 13.903-16.92v-24.003h-41.71z`,fill:`#F0CDBB`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M92.95 46.928a1.223 1.223 0 1 1-2.446 0 1.223 1.223 0 0 1 2.446 0M299.759 163.238a1.223 1.223 0 1 1-2.446 0 1.223 1.223 0 0 1 2.446 0`,f
2ill:`#000`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M145.637 101.381c3.482 13.662 10.849 51.744-.055 98.39l9.741 2.124s39.445-52.267 8.338-111.303c-3.549-6.734-12.02-6.637-16.316.2-1.968 3.13-2.605 7.068-1.708 10.59`,fill:`#FF7043`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M117.461 78.139h10.836c3.443 0 5.834 3.429 4.642 6.659l-5.418 14.69c-1.59 4.314-7.692 4.314-9.283 0l-5.419-14.69c-1.19-3.23 1.2-6.66 4.642-6.66`,fill:`#FFF`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M125.109 90.633h-4.761a4.571 4.571 0 0 1-4.572-4.57V57.117a4.572 4.572 0 0 1 4.572-4.57h4.76a4.572 4.572 0 0 1 4.571 4.57v28.944a4.571 4.571 0 0 1-4.57 4.571`,fill:`#F0CDBB`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M122.88 102.723v90.119`,stroke:`#FFF`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M35.962 91.283s5.506-3.866 9.347-.88c3.84 2.987-6.524 9.132-6.524 9.132l-2.823-8.252zM145.582 199.771s-6.527 8.797-4.62 14.522c1.91 5.725 14.36-12.398 14.36-12.398l-9.74-2.124z`,fill:`#F0CDBB`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M106.555 47.625a1.223 1.223 0 1 1-2.446 0 1.223 1.223 0 0 1 2.446 0`,fill:`#000`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M73.692 10.308c3.88 9.253 14.456 27.066 38.516 27.592.215.005 6.68-.43 6.893-.466 1.732-.286 7.646.937 5.49 10.678-.6 2.712 2.692 4.36 5.088 9.006 0 0 1.787-1.057 3.816-5.68 2.998-6.834 5.704-16.967 2.007-27.047 0 0-5.476-19.545-19.413-19.545H77.046c-2.657 0-4.432 2.89-3.354 5.462`,fill:`#37474F`,mask:`url(#b)`})]}),(0,K.jsxs)(`g`,{transform:`translate(397 34.386)`,children:[(0,K.jsx)(`mask`,{id:`d`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#c`})}),(0,K.jsx)(`path`,{d:`M11.17 11.352a6.404 6.404 0 1 0-9.056 0l4.528 4.528 4.528-4.528z`,fill:`#36ACB2`,mask:`url(#d)`})]}),(0,K.jsxs)(`g`,{transform:`translate(477 28.386)`,children:[(0,K.jsx)(`mask`,{id:`f`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#e`})}),(0,K.jsx)(`path`,{d:`M11.635 11.25a6.404 6.404 0 1 0-9.056 0l4.528 4.527 4.528-4.528z`,fill:`#36ACB2`,mask:`url(#f)`})]}),(0,K.jsxs)(`g`,{transform:`translate(378 81.386)`,children:[(0,K.jsx)(`mask`,{id:`h`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#g`})}),(0,K.jsx)(`path`,{d:`M11.295 2.891a6.404 6.404 0 1 0-.292 9.051l4.672-4.379-4.38-4.672z`,fill:`#36ACB2`,mask:`url(#h)`})]}),(0,K.jsx)(`path`,{d:`M333.101 200.886c-7.096-.402-24.059 11.189-41.562 6.092-13.552-3.948-22.026-18.238-38.105-27.785l-6.828 5.295s12.46 27.096 40.357 38.012c13.602 5.322 31.228.146 50.48-3.333 6.7-1.211 8.901-8.462 4.23-13.97-2.14-2.522-5.327-4.127-8.572-4.311`,fill:`#E64A19`}),(0,K.jsx)(`path`,{d:`M253.434 179.192s-8.039-10.278-13.436-10.194c-5.398.084 6.702 15.59 6.702 15.59l6.734-5.396z`,fill:`#F0CDBB`}),(0,K.jsx)(`path`,{fill:`#263238`,d:`M324.893 309.15l52.327 15.447 7.504-13.25-73.451-21.508z`}),(0,K.jsx)(`path`,{d:`M340.43 330.792l13.924-6.306-30.978-29.315s58.682 14.954 64.331-4.59l-69.182-24.182-28.449 1.559c-3.588.197-7.017 1.812-9.225 4.647-2.449 3.145-2.812 6.8 3.168 12.452 4.821 4.556 5.132 4.214 10.182 8.516l46.23 37.219z`,fill:`#37474F`}),(0,K.jsx)(`path`,{d:`M311.013 264.845c3.28-7.266 10.138-27.384 6.247-62.615-.529-4.797 2.872-9.463 7.668-10.004 5.28-.595 12.642 1.19 20.971 10.71 0 0 38.308 30.733 45.187 77.36 1.135 7.695-5.148 14.435-12.896 13.74-9.692-.872-34.297-16.103-38.8-18.084-6.419-2.824-14.392-7.503-26.435-7.959-1.585-.06-2.595-1.702-1.942-3.148`,fill:`#F4511E`}),(0,K.jsx)(`path`,{d:`M332.127 203.112c-7.04 1.72-21.098 20.885-39.859 21.024-13.885.102-30.7-12.98-48.404-17.303l-1.986 8.694s22.726 29.908 55.02 30.766c13.433.357 33.513-10.012 44.46-22.326 12.926-14.542-6.073-21.627-9.23-20.855`,fill:`#FF7043`}),(0,K.jsx)(`path`,{d:`M243.864 206.833s-7.81-5.916-12.948-4.259c-5.137 1.656 10.962 12.953 10.962 12.953l1.986-8.694z`,fill:`#F0CDBB`}),(0,K.jsx)(`path`,{d:`M302.518 150.887c.004-2.072-1.644-3.856-3.93-4.253l-5.71-.993c-3.89-.677-5.273-4.974-2.396-7.402 7.44-6.28 20.85-14.325 34.986-6.862 8.298 4.38 13.175 12.505 13.217 21.09.044 9.246-.77 22.569-5.424 27.859 0 0-2.098 3.905-9.802 3.476-2.47-.138-4.431-1.91-4.543-4.11-.17-3.316-1.637-14.718-.914-20.416.313-2.462.075-4.767-3.214-6.066-3.014-1.191-6.108.6-6.794 3.768-.432 1.995-3.161 2.215-3.944.33-.958-2.304-1.535-5.122-1.532-6.421`,fill:`#37474F`}),(0,K.jsx)(`path`,{d:`M338.77 331.543s-13.848 1.461-13.904 7.564h38.141l-4.053-6.85-20.184-.714z`,fill:`#FF7043`})]})]}),Lae=t({default:()=>Rae}),Rae=e=>(0,K.jsx)(`svg`,{width:`1.5em`,height:`1.5em`,viewBox:`0 0 24 24`,...e,children:(0,K.jsxs)(`g`,{id:`icons/ic_Connection`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M6,9.5 C5.72385763,9.5 5.5,9.72385763 5.5,10
2L5.5,13 C5.5,14.3807119 6.61928813,15.5 8,15.5 L16,15.5 C17.3807119,15.5 18.5,14.3807119 18.5,13 L18.5,10 C18.5,9.72385763 18.2761424,9.5 18,9.5 L6,9.5 Z`,id:`Rectangle-68`,stroke:Wp}),(0,K.jsx)(`rect`,{id:`Rectangle-2`,fill:Wp,x:`8`,y:`12`,width:`8`,height:`1`,rx:`0.5`}),(0,K.jsx)(`path`,{d:`M10.5,15.5 L10.5,18 C10.5,18.2761424 10.7238576,18.5 11,18.5 L13,18.5 C13.2761424,18.5 13.5,18.2761424 13.5,18 L13.5,15.5 L10.5,15.5 Z`,id:`Rectangle`,stroke:Wp}),(0,K.jsx)(`path`,{d:`M8.5,9.5 L10.5,9.5 L10.5,6.5 L8.5,6.5 L8.5,9.5 Z`,id:`Rectangle-92-Copy-2`,stroke:Wp}),(0,K.jsx)(`path`,{d:`M13.5,9.5 L15.5,9.5 L15.5,6.5 L13.5,6.5 L13.5,9.5 Z`,id:`Rectangle-92-Copy-3`,stroke:Wp})]})}),zae=t({default:()=>Bae}),Bae=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{stroke:e.color||`#FFF`,fill:`none`,fillRule:`evenodd`,strokeLinejoin:`round`,children:[(0,K.jsx)(`path`,{d:`M.5.5v17h4v-.75c0-.962.787-1.75 1.75-1.75.962 0 1.75.788 1.75 1.75v.75h8v-.75c0-.962.787-1.75 1.75-1.75.962 0 1.75.788 1.75 1.75v.75h4V.5H.5z`}),(0,K.jsx)(`path`,{d:`M9 5.5a2 2 0 1 1-4.001-.001A2 2 0 0 1 9 5.5z`}),(0,K.jsx)(`path`,{d:`M7 7.5c-2.5 0-3.5 1.5-3.5 3h7c0-1.5-1-3-3.5-3z`}),(0,K.jsx)(`path`,{d:`M13.5 8.5h7M13.5 6.5h7M13.5 4.5h7M13.5 10.5h3`,strokeLinecap:`round`})]})}),Vae=t({default:()=>Hae}),Hae=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 22 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-1-3h24v24H-1z`}),(0,K.jsx)(`path`,{d:`M.5.998C.5.723.728.5 1 .5h17c.276 0 .5.22.5.498v13.004a.502.502 0 0 1-.5.498H1c-.276 0-.5-.22-.5-.498V.998z`,stroke:`#FFF`}),(0,K.jsx)(`path`,{d:`M10 7V4H9v3H6v1h3v3h1V8h3V7h-3z`,fill:`#FFF`}),(0,K.jsx)(`path`,{d:`M4 17.5H20.995a.5.5 0 0 0 .505-.505V5`,stroke:`#FFF`})]})}),Uae=t({default:()=>Wae}),Wae=e=>(0,K.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 32 32`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M27.056 16.316c.076.554.126 1.086.126 1.593C27.182 24.576 21.758 30 15.09 30 8.424 30 3 24.576 3 17.91 3 11.241 8.424 5.817 15.09 5.817c.511 0 1.043.05 1.594.126A7.64 7.64 0 0123.364 2C27.574 2 31 5.425 31 9.636a7.64 7.64 0 01-3.944 6.68zM16.108 7.249a9.97 9.97 0 00-1.052-.064c-5.933 0-10.76 4.827-10.76 10.76 0 5.932 4.827 10.759 10.76 10.759 5.932 0 10.759-4.827 10.759-10.76 0-.337-.026-.69-.064-1.052a7.547 7.547 0 01-2.468.42c-4.188 0-7.595-3.407-7.595-7.595 0-.865.153-1.693.42-2.468zm7.244-3.953A6.36 6.36 0 0017 9.648 6.36 6.36 0 0023.352 16a6.36 6.36 0 006.352-6.352 6.36 6.36 0 00-6.352-6.352z`,stroke:`#5B6E77`,strokeWidth:.5,fill:`#5B6E77`,fillRule:`nonzero`}),(0,K.jsx)(`path`,{d:`M23.188 7.25h2.187c.345 0 .625-.252.625-.562 0-.311-.28-.563-.625-.563h-1.25v-.562c0-.311-.28-.563-.625-.563s-.625.252-.625.563v.59C21.818 6.291 21 7.105 21 8.093c0 1.086.981 1.97 2.188 1.97h.625c.516 0 .937.378.937.843 0 .466-.421.844-.937.844h-2.188c-.345 0-.625.252-.625.563 0 .31.28.562.625.562h1.25v.562c0 .311.28.563.625.563.346 0 .625-.252.625-.563v-.59c1.057-.138 1.875-.952 1.875-1.94 0-1.086-.981-1.97-2.187-1.97h-.625c-.517 0-.938-.378-.938-.843 0-.465.421-.844.938-.844z`,fill:`#5B6E77`,fillRule:`nonzero`}),(0,K.jsx)(`path`,{d:`M14.09 13.267c.326.046.585.298.58.563l-.115 5.56 3.302 3.216c.226.22.22.524-.014.679a.606.606 0 01-.419.081.748.748 0 01-.413-.2l-3.472-3.38a.503.503 0 01-.165-.363l.118-5.76c.006-.265.273-.443.598-.396z`,stroke:`#5B6E77`,strokeWidth:.5,fill:`#5B6E77`,fillRule:`nonzero`}),(0,K.jsx)(`path`,{d:`M1 12l4-5`,stroke:`#5B6E77`,strokeWidth:2,strokeLinecap:`round`})]})}),Gae=t({default:()=>Kae}),Kae=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`g`,{stroke:`#858E99`,fill:`none`,fillRule:`evenodd`,children:(0,K.jsx)(`path`,{d:`M17.267 11.522c-.49-.027-.968-.091-1.429-.245-.237-.079-.407-.03-.582.145A7919.854 7919.854 0 0 1 6.25 20.43c-.933.932-2.493.688-3.058-.493-.341-.714-.208-1.397.242-2.028.077-.108.171-.204.265-.297 2.956-2.955 5.913-5.91 8.873-8.86.18-.18.229-.354.152-.605-.706-2.32.35-4.673 2.548-5.698a4.59 4.59 0 0 1 2.966-.343.96.96 0 0 1 .203.062c.19.087.269.324.166.506a.84.84 0 0 1-.141.175c-.84.84-1.682 1.678-2.52 2.52-.594.595-.755 1.4-.435 2.137.415.957 1.499 1.383 2.468.972a2.21 2.21 0 0 0 .712-.48l2.499-2.502c.12-.12.257-.171.422-.122.155.047.238.16.27.315.01.057.026.112.036.169.468 2.497-1.115 4.938-3.588 5.517-.347.08-.708.1-1.063.147zM13 11l-8 8`})})}),qae=t({default:()=>Jae}),Jae=e=>
2(0,K.jsxs)(`svg`,{viewBox:`0 0 64 26`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{id:`IcDeskstopicon-a`,d:`M7.259.005H14.4v17.541H.117V.005h7.142z`}),(0,K.jsx)(`path`,{id:`IcDeskstopicon-c`,d:`M6.556 8.9H0V.096h6.556z`}),(0,K.jsx)(`path`,{id:`IcDeskstopicon-e`,d:`M.031 8.9h6.556V.096H.031z`}),(0,K.jsx)(`path`,{id:`IcDeskstopicon-g`,d:`M0 17.979h63.86V.182H0z`})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsxs)(`g`,{transform:`translate(49.459 .177)`,children:[(0,K.jsx)(`mask`,{id:`IcDeskstopicon-b`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcDeskstopicon-a`})}),(0,K.jsx)(`path`,{d:`M2.209 2.133c-2.79 2.837-2.79 7.438 0 10.275l5.05 5.138 1.683-1.713-5.05-5.138c-1.859-1.891-1.86-4.958 0-6.85a4.704 4.704 0 0 1 6.733 0c1.86 1.892 1.86 4.959 0 6.85-.613.625-1.289.973-2.137 1.251l2.137 2.175 1.684-1.713c2.789-2.837 2.789-7.438 0-10.275a7.056 7.056 0 0 0-10.1 0`,fill:`#FE5916`,mask:`url(#IcDeskstopicon-b)`})]}),(0,K.jsx)(`path`,{d:`M58.392 9.16c.93-.945.93-2.48 0-3.425a2.352 2.352 0 0 0-3.366 0c-.93.946-.93 2.48 0 3.425.929.946 2.437.946 3.366 0`,fill:`#FE5916`}),(0,K.jsxs)(`g`,{transform:`translate(0 9.078)`,children:[(0,K.jsx)(`mask`,{id:`IcDeskstopicon-d`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcDeskstopicon-c`})}),(0,K.jsx)(`path`,{d:`M4.771 3.516v-.099c0-1.31-.631-1.951-1.517-1.951-.923 0-1.554.654-1.554 1.951v.099c0 1.297.607 1.926 1.566 1.926.971 0 1.505-.666 1.505-1.926zM0 .243h1.76v1.013A2.35 2.35 0 0 1 3.788.095c1.554 0 2.768 1.173 2.768 3.31v.099c0 2.136-1.19 3.334-2.768 3.334-.984 0-1.7-.494-2.028-1.124v3.187H0V.243z`,fill:`#FFF`,mask:`url(#IcDeskstopicon-d)`})]}),(0,K.jsx)(`path`,{d:`M7.248 9.32h1.76v1.236c.401-.865 1.02-1.322 2.052-1.334v1.667c-1.299-.012-2.051.42-2.051 1.655v3.236h-1.76V9.32zM16.245 12.594v-.087c0-1.235-.57-1.976-1.554-1.976-.971 0-1.554.716-1.554 1.951v.1c0 1.234.558 1.975 1.554 1.975.983 0 1.554-.74 1.554-1.963m-4.905.024v-.098c0-2.026 1.445-3.347 3.35-3.347 1.907 0 3.34 1.296 3.34 3.31v.098c0 2.038-1.445 3.335-3.351 3.335-1.894 0-3.339-1.284-3.339-3.298`,fill:`#FFF`}),(0,K.jsxs)(`g`,{transform:`translate(18.57 9.078)`,children:[(0,K.jsx)(`mask`,{id:`IcDeskstopicon-f`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcDeskstopicon-e`})}),(0,K.jsx)(`path`,{d:`M4.802 3.516v-.099c0-1.31-.631-1.951-1.517-1.951-.923 0-1.554.654-1.554 1.951v.099c0 1.297.607 1.926 1.566 1.926.971 0 1.505-.666 1.505-1.926zM.032.243h1.76v1.013A2.35 2.35 0 0 1 3.819.095c1.554 0 2.768 1.173 2.768 3.31v.099c0 2.136-1.19 3.334-2.768 3.334-.984 0-1.7-.494-2.027-1.124v3.187H.032V.243z`,fill:`#FFF`,mask:`url(#IcDeskstopicon-f)`})]}),(0,K.jsx)(`path`,{d:`M30.231 11.853c-.06-.976-.546-1.445-1.383-1.445-.79 0-1.324.53-1.457 1.445h2.84zm-4.65.778v-.1c0-2.037 1.421-3.359 3.267-3.359 1.638 0 3.095.976 3.095 3.286v.494h-4.577c.049 1.074.62 1.692 1.579 1.692.813 0 1.214-.358 1.323-.902h1.663c-.206 1.396-1.299 2.174-3.035 2.174-1.918 0-3.314-1.223-3.314-3.285zM32.612 9.32h1.76v1.236c.4-.865 1.02-1.322 2.052-1.334v1.667c-1.3-.012-2.052.42-2.052 1.655v3.236h-1.76V9.32z`,fill:`#FFF`}),(0,K.jsx)(`mask`,{id:`IcDeskstopicon-h`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcDeskstopicon-g`})}),(0,K.jsx)(`path`,{fill:`#FFF`,mask:`url(#IcDeskstopicon-h)`,d:`M37.14 15.78h1.748V6.394H37.14zM41.924 15.126L39.399 9.32h1.894l1.542 3.878 1.42-3.878h1.687l-3.435 8.657h-1.7z`}),(0,K.jsx)(`path`,{d:`M1.638 25h.624l1.482-4.29h-.492l-1.278 3.786L.696 20.71H.18L1.638 25zm2.802 0h.498v-3.138H4.44V25zm.24-3.792c.18 0 .33-.15.33-.33 0-.18-.15-.33-.33-.33-.18 0-.33.15-.33.33 0 .18.15.33.33.33zm2.25 3.846c.762 0 1.152-.384 1.152-.954 0-.666-.456-.81-1.104-.93-.576-.102-.732-.216-.732-.498 0-.27.234-.45.594-.45.396 0 .588.15.66.492h.48c-.084-.678-.57-.906-1.134-.906-.492 0-1.062.3-1.062.882 0 .546.276.774 1.092.924.486.09.732.198.732.528 0 .336-.21.498-.684.498-.504 0-.702-.234-.738-.606H5.7c.03.642.48 1.02 1.23 1.02zm2.97 0c.504 0 .852-.258.996-.552V25h.498v-3.138h-.498v1.902c0 .564-.42.858-.864.858-.492 0-.726-.246-.726-.798v-1.962h-.498v1.986c0 .864.468 1.206 1.092 1.206zm3.288 0c-.582 0-1.044-.282-1.044-.924 0-.726.768-.972 1.572-.972h.45v-.228c0-.498-.192-.708-.672-.708-.432 0-.672.18-.72.564h-.498c.066-.714.636-.978 1.242-.978.6 0 1.146.246 1.146 1.122V25h-.498v-.396c-.234.294-.516.45-.978.45zm.048-.396c.528 0 .93-.27.93-.756v-.39h-.432c-.63 0-1.092.156-1.092.618 0 .324.156.528.594.528zm2.418.342h.504v-4.638h-.504V25zm4.944.054c.96 0 1.644-.486 1.794-1.476h-.486c-.
2108.696-.594 1.05-1.296 1.05-.924 0-1.476-.66-1.476-1.752v-.048c0-1.08.594-1.77 1.482-1.77.732 0 1.11.336 1.218.99h.516c-.09-.93-.846-1.404-1.74-1.404-1.164 0-2.016.918-2.016 2.19v.048c0 1.32.762 2.172 2.004 2.172zm2.55-.054h.498v-1.902c0-.564.414-.858.876-.858.504 0 .738.246.738.798V25h.498v-1.926c0-.912-.456-1.266-1.104-1.266-.516 0-.864.258-1.008.552v-1.998h-.498V25zm4.872.054c-.888 0-1.518-.624-1.518-1.59v-.048c0-.948.606-1.608 1.47-1.608.726 0 1.41.438 1.41 1.56v.162h-2.364c.024.714.366 1.11 1.008 1.11.486 0 .768-.18.834-.546h.498c-.108.63-.63.96-1.338.96zm-.984-1.926h1.836c-.048-.648-.384-.906-.9-.906-.51 0-.852.348-.936.906zm4.41 1.926c.756 0 1.302-.504 1.368-1.182h-.462c-.054.51-.456.768-.9.768-.606 0-1.026-.408-1.026-1.176v-.048c0-.738.438-1.194 1.008-1.194.432 0 .792.186.87.684h.492c-.096-.798-.708-1.098-1.362-1.098-.84 0-1.524.648-1.524 1.608v.048c0 .972.66 1.59 1.536 1.59zM33.564 25h.498v-1.626L35.454 25h.606l-1.458-1.68 1.344-1.458h-.582l-1.302 1.446v-2.946h-.498V25zm3.108 0h.504v-4.638h-.504V25zm1.536 0h.498v-3.138h-.498V25zm.24-3.792c.18 0 .33-.15.33-.33 0-.18-.15-.33-.33-.33-.18 0-.33.15-.33.33 0 .18.15.33.33.33zm2.25 3.846c.762 0 1.152-.384 1.152-.954 0-.666-.456-.81-1.104-.93-.576-.102-.732-.216-.732-.498 0-.27.234-.45.594-.45.396 0 .588.15.66.492h.48c-.084-.678-.57-.906-1.134-.906-.492 0-1.062.3-1.062.882 0 .546.276.774 1.092.924.486.09.732.198.732.528 0 .336-.21.498-.684.498-.504 0-.702-.234-.738-.606h-.486c.03.642.48 1.02 1.23 1.02zm2.862-.012c.204 0 .324-.03.426-.066v-.42a1.025 1.025 0 0 1-.384.066c-.252 0-.39-.15-.39-.456v-1.884h.732v-.42h-.732v-.714h-.498v.714h-.45v.42h.45v1.932c0 .492.276.828.846.828zm2.148.012c.762 0 1.152-.384 1.152-.954 0-.666-.456-.81-1.104-.93-.576-.102-.732-.216-.732-.498 0-.27.234-.45.594-.45.396 0 .588.15.66.492h.48c-.084-.678-.57-.906-1.134-.906-.492 0-1.062.3-1.062.882 0 .546.276.774 1.092.924.486.09.732.198.732.528 0 .336-.21.498-.684.498-.504 0-.702-.234-.738-.606h-.486c.03.642.48 1.02 1.23 1.02z`,fill:`#FFF`})]})]}),Yae=t({default:()=>Xae}),Xae=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 123 44`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{id:`a`,d:`M0 30h122.12V.03H0`})}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`mask`,{id:`b`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#a`})}),(0,K.jsx)(`path`,{d:`M100.928 3.667c-4.848 4.847-4.849 12.707 0 17.555L109.706 30l2.926-2.926-8.778-8.778a8.276 8.276 0 1 1 11.703 0c-1.066 1.067-2.24 1.66-3.715 2.137l3.715 3.715 2.927-2.926c4.847-4.848 4.847-12.708 0-17.556-4.849-4.848-12.708-4.848-17.556 0`,fill:`#36ACB2`,mask:`url(#b)`}),(0,K.jsx)(`path`,{d:`M112.632 15.37a4.138 4.138 0 1 0-5.853-5.852 4.138 4.138 0 0 0 5.853 5.852`,fill:`#36ACB2`}),(0,K.jsx)(`path`,{d:`M9.214 17.587v-.188c0-2.485-1.219-3.704-2.93-3.704-1.782 0-3.002 1.242-3.002 3.704v.188c0 2.462 1.173 3.657 3.025 3.657 1.876 0 2.907-1.266 2.907-3.657zM0 11.373h3.4v1.923c.68-1.172 2.11-2.204 3.915-2.204 3.001 0 5.346 2.228 5.346 6.284v.187c0 4.056-2.298 6.33-5.346 6.33-1.9 0-3.283-.937-3.915-2.133v6.05H0V11.372zM13.999 11.373h3.4v2.345c.773-1.641 1.969-2.508 3.961-2.532v3.165c-2.508-.023-3.962.798-3.962 3.142v6.143h-3.4V11.373M31.372 17.587v-.165c0-2.344-1.102-3.751-3.001-3.751-1.875 0-3.001 1.36-3.001 3.705v.187c0 2.345 1.079 3.752 3.001 3.752 1.9 0 3.001-1.407 3.001-3.728zm-9.472.047v-.188c0-3.845 2.79-6.354 6.471-6.354s6.448 2.462 6.448 6.284v.187c0 3.869-2.79 6.33-6.471 6.33-3.658 0-6.448-2.437-6.448-6.26zM45.137 17.587v-.188c0-2.485-1.22-3.704-2.93-3.704-1.783 0-3.002 1.242-3.002 3.704v.188c0 2.462 1.172 3.657 3.024 3.657 1.876 0 2.908-1.266 2.908-3.657zm-9.215-6.214h3.4v1.923c.68-1.172 2.11-2.204 3.916-2.204 3 0 5.345 2.228 5.345 6.284v.187c0 4.056-2.297 6.33-5.345 6.33-1.9 0-3.283-.937-3.916-2.133v6.05h-3.4V11.372zM58.385 16.18c-.117-1.852-1.055-2.743-2.673-2.743-1.524 0-2.556 1.008-2.814 2.743h5.487zm-8.98 1.477v-.187c0-3.87 2.743-6.378 6.307-6.378 3.165 0 5.979 1.852 5.979 6.237v.938h-8.84c.094 2.04 1.196 3.212 3.048 3.212 1.571 0 2.345-.68 2.556-1.712h3.212c-.398 2.65-2.508 4.127-5.861 4.127-3.705 0-6.401-2.321-6.401-6.237zM62.981 11.373h3.4v2.345c.773-1.641 1.97-2.508 3.962-2.532v3.165c-2.509-.023-3.962.798-3.962 3.142v6.143h-3.4V11.373M71.727 5.817h3.376v17.819h-3.376zM80.966 22.393l-4.877-11.02h3.657l2.978 7.363 2.743-7.363h3.26L82.09 27.81h-3.283l2.158-5.416`,fill:`#333D46`}),(0,K.jsx)(`path`,{d:`M3.003 42h1.144l2.717-7.865h-.902l-2.343 6.941-2.343-6.941H.33L3.003 42zm5.137 0h.913v-5.753H8.14V42zm.44-6.952a.61.61 0 0 0 .605-.605.61.61 0 0 0-.605-.605.61.61 0 0 0-.605.605c0 .33.275.605.605.605zm4.125 7.051c1.397 0 2.112-.704 2.112-1.749 0-1.221-.836-1.485-2.024-1.705-1.056-.187-1.342-.396-1.342-.913 0-.495.429-.825 1.089-.825.726 0 1.078.275 1.21.902h.88c-.154-1.243-1.045-1.661-2.079-1.661-.902 0-1.947.55-1.947 1.617 0 1.001.506 1.419 2.002 1.694.891.165 1.342.363 1.342.968 0 .616-.385.913-1.254.913-.924 0-1.287-.429-1.353-1.111h-.891c.055 1.177.88 1.87 2.255 1.87zm5.445 0c.924 0 1.562-.473 1.826-1.012V42h.913v-5.753h-.913v3.487c0 1.034-.7
27 1.573-1.584 1.573-.902 0-1.331-.451-1.331-1.463v-3.597h-.913v3.641c0 1.584.858 2.211 2.002 2.211zm6.028 0c-1.067 0-1.914-.517-1.914-1.694 0-1.331 1.408-1.782 2.882-1.782h.825v-.418c0-.913-.352-1.298-1.232-1.298-.792 0-1.232.33-1.32 1.034h-.913c.121-1.309 1.166-1.793 2.277-1.793 1.1 0 2.101.451 2.101 2.057V42h-.913v-.726c-.429.539-.946.825-1.793.825zm.088-.726c.968 0 1.705-.495 1.705-1.386v-.715h-.792c-1.155 0-2.002.286-2.002 1.133 0 .594.286.968 1.089.968zm4.433.627h.924v-8.503h-.924V42zm9.064.099c1.76 0 3.014-.891 3.289-2.706h-.891c-.198 1.276-1.089 1.925-2.376 1.925-1.694 0-2.706-1.21-2.706-3.212v-.088c0-1.98 1.089-3.245 2.717-3.245 1.342 0 2.035.616 2.233 1.815h.946c-.165-1.705-1.551-2.574-3.19-2.574-2.134 0-3.696 1.683-3.696 4.015v.088c0 2.42 1.397 3.982 3.674 3.982zM42.438 42h.913v-3.487c0-1.034.759-1.573 1.606-1.573.924 0 1.353.451 1.353 1.463V42h.913v-3.531c0-1.672-.836-2.321-2.024-2.321-.946 0-1.584.473-1.848 1.012v-3.663h-.913V42zm8.932.099c-1.628 0-2.783-1.144-2.783-2.915v-.088c0-1.738 1.111-2.948 2.695-2.948 1.331 0 2.585.803 2.585 2.86v.297h-4.334c.044 1.309.671 2.035 1.848 2.035.891 0 1.408-.33 1.529-1.001h.913c-.198 1.155-1.155 1.76-2.453 1.76zm-1.804-3.531h3.366c-.088-1.188-.704-1.661-1.65-1.661-.935 0-1.562.638-1.716 1.661zm8.085 3.531c1.386 0 2.387-.924 2.508-2.167h-.847c-.099.935-.836 1.408-1.65 1.408-1.111 0-1.881-.748-1.881-2.156v-.088c0-1.353.803-2.189 1.848-2.189.792 0 1.452.341 1.595 1.254h.902c-.176-1.463-1.298-2.013-2.497-2.013-1.54 0-2.794 1.188-2.794 2.948v.088c0 1.782 1.21 2.915 2.816 2.915zM61.534 42h.913v-2.981L64.999 42h1.111l-2.673-3.08 2.464-2.673h-1.067l-2.387 2.651v-5.401h-.913V42zm5.698 0h.924v-8.503h-.924V42zm2.816 0h.913v-5.753h-.913V42zm.44-6.952a.61.61 0 0 0 .605-.605.61.61 0 0 0-.605-.605.61.61 0 0 0-.605.605c0 .33.275.605.605.605zm4.125 7.051c1.397 0 2.112-.704 2.112-1.749 0-1.221-.836-1.485-2.024-1.705-1.056-.187-1.342-.396-1.342-.913 0-.495.429-.825 1.089-.825.726 0 1.078.275 1.21.902h.88c-.154-1.243-1.045-1.661-2.079-1.661-.902 0-1.947.55-1.947 1.617 0 1.001.506 1.419 2.002 1.694.891.165 1.342.363 1.342.968 0 .616-.385.913-1.254.913-.924 0-1.287-.429-1.353-1.111h-.891c.055 1.177.88 1.87 2.255 1.87zm5.247-.022c.374 0 .594-.055.781-.121v-.77a1.88 1.88 0 0 1-.704.121c-.462 0-.715-.275-.715-.836v-3.454h1.342v-.77h-1.342v-1.309h-.913v1.309h-.825v.77h.825v3.542c0 .902.506 1.518 1.551 1.518zm3.938.022c1.397 0 2.112-.704 2.112-1.749 0-1.221-.836-1.485-2.024-1.705-1.056-.187-1.342-.396-1.342-.913 0-.495.429-.825 1.089-.825.726 0 1.078.275 1.21.902h.88c-.154-1.243-1.045-1.661-2.079-1.661-.902 0-1.947.55-1.947 1.617 0 1.001.506 1.419 2.002 1.694.891.165 1.342.363 1.342.968 0 .616-.385.913-1.254.913-.924 0-1.287-.429-1.353-1.111h-.891c.055 1.177.88 1.87 2.255 1.87z`,fill:`#A0AAB4`})]})]}),Zae=t({default:()=>Qae}),Qae=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 10 10`,width:`1em`,height:`1em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{d:`M9.12 16.437a.996.996 0 0 1-1.413-.002.995.995 0 0 1-.002-1.412l2.952-2.952-2.952-2.952a.996.996 0 0 1 .002-1.412.995.995 0 0 1 1.412-.002l2.952 2.952 2.952-2.952a.996.996 0 0 1 1.412.002.995.995 0 0 1 .002 1.412l-2.952 2.952 2.952 2.952a.996.996 0 0 1-.002 1.412.995.995 0 0 1-1.412.002l-2.952-2.952-2.952 2.952z`,id:`IcDisconnect-a`})}),(0,K.jsx)(`use`,{fill:`currentColor`,xlinkHref:`#IcDisconnect-a`,transform:`translate(-7 -7)`,fillRule:`evenodd`})]}),$ae=t({default:()=>eoe}),eoe=()=>(0,K.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`11`,viewBox:`0 0 12 11`,children:[(0,K.jsx)(`defs`,{}),(0,K.jsxs)(`g`,{transform:`translate(-1186 -135)`,children:[(0,K.jsxs)(`g`,{fill:`#fff`,stroke:`#707070`,transform:`translate(1188 136)`,children:[(0,K.jsx)(`rect`,{stroke:`none`,width:`10`,height:`10`}),(0,K.jsx)(`rect`,{fill:`none`,x:`0.5`,y:`0.5`,width:`9`,height:`9`})]}),(0,K.jsxs)(`g`,{fill:`#fff`,stroke:`#707070`,transform:`translate(1186 135)`,children:[(0,K.jsx)(`rect`,{stroke:`none`,width:`6`,height:`6`}),(0,K.jsx)(`rect`,{fill:`none`,x:`0.5`,y:`0.5`,width:`5`,height:`5`})]}),(0,K.jsx)(`line`,{fill:`none`,stroke:`#fff`,y2:`4`,transform:`translate(1192.5 135.5)`}),(0,K.jsx)(`line`,{fill:`none`,stroke:`#fff`,x2:`4`,transform:`translate(1187.5 141.5)`})]})]}),toe=t({default:()=>noe}),noe=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 26 26`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,stroke:`#868F9A`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{cx:12,cy:12,r:12}),(0,K.jsx)(`path`,{fill:`#868F9A`,d:`M11.6663038,16.7384726 C11.0362022,16.6990912 10.5045619,16.5809489 10.0713671,16.3840422 C9.63817224,16.1871354 9.2862067,15.9385444 9.01545992,15.6382616 C8.74471313,15.3379788 8.53796415,14.9958585 8.39520675,14.6118903 C8.25244936,14.2279221 8.16138135,13.8242693 8.122,13.4009198 L9.36250633,13.4009198 C9.40188768,13.6864346 9.45849752,13.9620999 9.53233755,14.2279241 C9.60617758,14.4937482 9.72678116,14.7300327 9.8941519,14.9367848 C10.0615226,15.1435369 10.2855007,15.318289 10.5660928,15.4610464 C10.8466849,15.6038038 11.2134183,15.6948718 11.6663038,15.7342532 L11.6663038,11.6287679 C11.1740369,11.5401599 10.735926,11.4244789 10.3519578,11.2817215 C9.96798964,11.1389641 9.64309838,10.9568281 9.37727426,10.735308 C9.11145015,10.5137879 8.90716246,10.2455065 8.76440506,9.9304557 C8.62164767,9.61540489 8.55027004,9.23636508 8.55027004,8.79332489 C8.55027004,8.40935673 8.62657026,8.0500073 8.779173,7.71526582 C8.93177573,7.38052435 9.14344731,7.08762995 9.41419409,6.83657384 C9.68494088,6.58551773 10.0122934,6.38123004 10.3962616,6.22370464 C10.7802298,6.06617924 11.2035729,5.97264994 11.6663038,5.94311392 L11.6663038,4.614 L12.5376118,4.614 L12.5376118,5.95788186 C13.4335375,6.03664456 14.1448525,6.31969377 14.6715781,6.80703797 C15.1983036,7.29438218 15.5108884,7.97123899 15.6093418,8.83762869 L14.457443,8.83762869 C14.3491443,8.26659911 14.139934,7.83094946 13.8298059,7.53066667 C13.5196778,7.23038387 13.0889507,7.04086397 12.5376118,6.96210127 L12.5376118,10.6540844 C13.0791054,10.7525378 13.5565971,10.8731413 13.9701013,11.0158987 C14.3836054,11.1586561 14.7281871,11.3457147 15.0038565,11.5770802 C15.279526,11.8084456 15.486275,12.0914948 15.6241097,12.4262363 C15.7619444,12.7609778 15.8308608,13.1646305 15.8308608,13.6372068 C15.8308608,14.0605563 15.7496379,14.4543639 15.5871899,14.8186414 C15.4247418,15.1829188 15.1983024,15.5028875 14.907865,15.778557 C14.6174275,16.0542264 14.2703846,16.2757432 13.8667257,16.4431139 C13.4630669,16.6104847 13.0200334,16.7089366 12.5376118,16.7384726 L12.5376118,18.614 L11.6663038,18.614 L11.6663038,16.7384726 Z M14.5091308,13.0095696 C14.4451361,12.8077402 14.3343777,12.6280655 14.1768523,12.4705401 C14.0193269,12.3130147 13.8076553,12.1801046 13.5418312,12.0718059 C13.2760071,11.9635072 12.9412707,11.8650553 12.5376118,11.7764473 L12.5376118,15.7342532 C12.8329719,15.7047172 13.106176,15.6358008 13.3572321,15.5275021 C13.6082882,15.4192034 13.8273436,15.2764481 14.0144051,15.0992321 C14.2014665,14.922016 14.346683,14.7177283 14.4500591,14.4863629 C14.5534351,14.2549974 14.6051224,14.0014838 14.6051224,13.7258143 C14.6051224,13.4501449 14.5731255,13.211399 14.5091308,13.0095696 Z M9.79077637,9.31020253 C9.84000306,9.49726395 9.93599366,9.66463217 10.0787511,9.81231224 C10.2215084,9.9599923 10.4184122,10.0904411 10.6694684,10.2036624 C10.9205245,10.3168838 11.2527996,10.417797 11.6663038,10.5064051 L11.6663038,6.94733333 C11.0460475,6.99656002 10.5660945,7.18115733 10.2264304,7.5011308 C9.88676623,7.82110427 9.71693671,8.21245057 9.71693671,8.67518143 C9.71693671,8.91146954 9.74154968,9.12314112 9.79077637,9.31020253 Z`})]})}),roe=t({default:()=>ioe}),ioe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M8 10l4 4 4-4`,strokeWidth:1.5,stroke:`#FFF`,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`})}),aoe=t({default:()=>ooe}),ooe=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 9.5 9.5`,fill:`none`,stroke:e.fill||`#868F9A`,strokeLinecap:`round`,...e,children:(0,K.jsx)(`path`,{d:`m.707 2.707 4 4.1m4.1-4.1-4.1 4.1`})}),soe=t({default:()=>coe}),coe=e=>(0,K.jsxs)(`svg`,{fill:`#fff`,height:24,viewBox:`0 0 24 24`,width:24,...e,children:[(0,K.jsx)(`path`,{d:`M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z`}),(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`})]}),loe=t({default:()=>uoe}),uoe=()=>(0,K.jsxs)(`svg`,{id:`greydot-handler`,xmlns:`http://www.w3.org/2000/svg`,
2width:`7`,height:`13`,viewBox:`0 0 7 13`,children:[(0,K.jsx)(`circle`,{id:`Ellipse_1`,"data-name":`Ellipse 1`,cx:`1.5`,cy:`1.5`,r:`1.5`,fill:`#e5e7ee`}),(0,K.jsx)(`circle`,{id:`Ellipse_2`,"data-name":`Ellipse 2`,cx:`1.5`,cy:`1.5`,r:`1.5`,transform:`translate(0 5)`,fill:`#e5e7ee`}),(0,K.jsx)(`circle`,{id:`Ellipse_3`,"data-name":`Ellipse 3`,cx:`1.5`,cy:`1.5`,r:`1.5`,transform:`translate(0 10)`,fill:`#e5e7ee`}),(0,K.jsx)(`circle`,{id:`Ellipse_4`,"data-name":`Ellipse 4`,cx:`1.5`,cy:`1.5`,r:`1.5`,transform:`translate(4)`,fill:`#e5e7ee`}),(0,K.jsx)(`circle`,{id:`Ellipse_5`,"data-name":`Ellipse 5`,cx:`1.5`,cy:`1.5`,r:`1.5`,transform:`translate(4 5)`,fill:`#e5e7ee`}),(0,K.jsx)(`circle`,{id:`Ellipse_6`,"data-name":`Ellipse 6`,cx:`1.5`,cy:`1.5`,r:`1.5`,transform:`translate(4 10)`,fill:`#e5e7ee`})]}),doe=t({default:()=>foe}),foe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 17 15`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-4-5h24v24H-4z`}),(0,K.jsx)(`path`,{d:`M.5 1C.5.724.72.5.998.5h13.004c.275 0 .498.229.498.5v11c0 .276-.22.5-.498.5H.998A.503.503 0 0 1 .5 12V1z`,stroke:`#868F9A`}),(0,K.jsx)(`path`,{d:`M2 14.5h14c.277 0 .5-.217.5-.505V2`,stroke:`#868F9A`}),(0,K.jsx)(`path`,{d:`M8 6V3H7v3H4v1h3v3h1V7h3V6H8z`,fill:`#868F9A`})]})}),poe=t({default:()=>moe}),moe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`path`,{d:`M2.5 5a.5.5 0 0 1 .496-.5h15.008c.274 0 .496.229.496.5v11a.5.5 0 0 1-.496.5H2.996A.502.502 0 0 1 2.5 16V5z`,stroke:Wp}),(0,K.jsx)(`path`,{d:`M5 19.5h16.006a.494.494 0 0 0 .494-.505V7`,stroke:Wp}),(0,K.jsx)(`path`,{d:`M11 10V7h-1v3H7v1h3v3h1v-3h3v-1h-3z`,fill:Wp})]})}),hoe=t({default:()=>goe}),goe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M2.5 5a.5.5 0 0 1 .496-.5h15.008c.274 0 .496.229.496.5v11a.5.5 0 0 1-.496.5H2.996A.502.502 0 0 1 2.5 16V5z`,stroke:`#FFF`}),(0,K.jsx)(`path`,{d:`M5 19.5h16.006a.494.494 0 0 0 .494-.505V7`,stroke:`#FFF`}),(0,K.jsx)(`path`,{d:`M11 10V7h-1v3H7v1h3v3h1v-3h3v-1h-3z`,fill:`#FFF`})]})}),_oe=t({default:()=>voe}),voe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsxs)(`g`,{stroke:`#868F9A`,children:[(0,K.jsx)(`path`,{d:`M16.02 6.121l2.122 2.122.354-.354a1.5 1.5 0 0 0-2.122-2.121l-.353.353z`}),(0,K.jsx)(`path`,{d:`M16.02 6.121l2.122 2.122-9.192 9.192-2.122-2.121z`})]}),(0,K.jsx)(`path`,{fill:`#868F9A`,d:`M6.121 15.314l2.829 2.828-3.536.707z`})]})}),yoe=t({default:()=>boe}),boe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`g`,{fill:`none`,fillRule:`evenodd`,children:(0,K.jsxs)(`g`,{fill:e.fill||`#FFF`,children:[(0,K.jsx)(`path`,{d:`M15.528 6.85a1.218 1.218 0 0 1 1.72-.002l.393.394c.475.474.477 1.24-.002 1.72l-.86.86-2.112-2.11.861-.862zM14.237 8.141l2.111 2.111-6.026 6.026-2.11-2.11z`}),(0,K.jsx)(`path`,{d:`M8.211 14.167l2.111 2.111-2.777.667z`})]})})}),xoe=t({default:()=>Soe}),Soe=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1.5em`,height:`1.5em`,viewBox:`0 0 16 16`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(-949 -1461)`,children:[(0,K.jsx)(`g`,{transform:`translate(-41)`,children:(0,K.jsxs)(`g`,{fill:`#fff`,stroke:`#e5e7ee`,transform:`translate(990 1461)`,children:[(0,K.jsx)(`circle`,{stroke:`none`,cx:`8`,cy:`8`,r:`8`}),(0,K.jsx)(`circle`,{fill:`none`,cx:`8`,cy:`8`,r:`7.5`})]})}),(0,K.jsxs)(`g`,{transform:`translate(1206.161 -303.378) rotate(45)`,children:[(0,K.jsx)(`path`,{fill:`none`,stroke:Wp,d:`M1033.9,1464.739v6.861l1.066,1.725.9-1.725v-6.861Z`,transform:`translate(41.937 -39)`}),(0,K.jsx)(`line`,{fill:`none`,stroke:Wp,strokeWidth:`0.5px`,x2:`2.127`,transform:`translate(1075.5 1427.222)`})]})]})}),Coe=t({default:()=>woe}),woe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,...e,children:(0,K.jsx)(`g`,{fill:`none`,fillRule:`evenodd`,children:(0,K.jsxs)(`g`,{fill:`#36AC
2B2`,children:[(0,K.jsx)(`path`,{d:`M15.528 6.85a1.218 1.218 0 0 1 1.72-.002l.393.394c.475.474.477 1.24-.002 1.72l-.86.86-2.112-2.11.861-.862zM14.237 8.141l2.111 2.111-6.026 6.026-2.11-2.11z`}),(0,K.jsx)(`path`,{d:`M8.211 14.167l2.111 2.111-2.777.667z`})]})})}),Toe=t({default:()=>Eoe}),Eoe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsxs)(`g`,{stroke:Wp,children:[(0,K.jsx)(`path`,{d:`M16.02 6.121l2.122 2.122.354-.354a1.5 1.5 0 0 0-2.122-2.121l-.353.353z`}),(0,K.jsx)(`path`,{d:`M16.02 6.121l2.122 2.122-9.192 9.192-2.122-2.121z`})]}),(0,K.jsx)(`path`,{fill:Wp,d:`M6.121 15.314l2.829 2.828-3.536.707z`})]})}),Doe=t({default:()=>Ooe}),Ooe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 22 16`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{stroke:`#7B858F`,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,K.jsx)(`path`,{d:`M21.5 14a1.5 1.5 0 0 1-1.5 1.5H2A1.5 1.5 0 0 1 .5 14V2A1.5 1.5 0 0 1 2 .5h18A1.5 1.5 0 0 1 21.5 2v12z`}),(0,K.jsx)(`path`,{d:`M21 1L11 9 1 1`})]})}),koe=t({default:()=>Aoe}),Aoe=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 64 64`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`4em`,height:`4em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`circle`,{id:`IcEmptyAdd-a`,cx:36,cy:36,r:32}),(0,K.jsx)(`mask`,{id:`IcEmptyAdd-b`,x:0,y:0,width:64,height:64,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcEmptyAdd-a`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-4 -4)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h72v72H0z`}),(0,K.jsx)(`use`,{stroke:Wp,mask:`url(#IcEmptyAdd-b)`,strokeWidth:4,xlinkHref:`#IcEmptyAdd-a`}),(0,K.jsx)(`path`,{d:`M37 37v5.997A.999.999 0 0 1 36 44c-.552 0-1-.438-1-1.003V37h-5.997A.999.999 0 0 1 28 36c0-.552.438-1 1.003-1H35v-5.997A.999.999 0 0 1 36 28c.552 0 1 .438 1 1.003V35h5.997A.999.999 0 0 1 44 36c0 .552-.438 1-1.003 1H37z`,fillOpacity:.9,fill:Wp})]})]}),joe=t({default:()=>Moe}),Moe=e=>(0,K.jsx)(`svg`,{width:32,height:32,viewBox:`0 0 32 32`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{fill:`#FA5530`,cx:16,cy:16,r:16}),(0,K.jsxs)(`g`,{fillRule:`nonzero`,children:[(0,K.jsx)(`path`,{d:`M17.95 7.152l7.705 13.12c.229.39.345.824.345 1.288 0 1.345-1.03 2.44-2.296 2.44H8.296C7.03 24 6 22.905 6 21.56c0-.464.116-.898.345-1.288l7.704-13.12C14.473 6.43 15.202 6 16 6s1.527.43 1.95 1.152z`,fill:`#FFF`}),(0,K.jsxs)(`g`,{transform:`translate(14.571 11)`,fill:`#FA5530`,children:[(0,K.jsx)(`path`,{d:`M1.389.26c-.482 0-.952.318-.952.746v4.988c0 .428.47.805.952.805s.952-.377.952-.805V1.006c0-.428-.47-.746-.952-.746z`}),(0,K.jsx)(`circle`,{cx:1.389,cy:9,r:1})]})]})]})}),Noe=t({default:()=>Poe}),Poe=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 335 154`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`rect`,{id:`IcError404-a`,x:157,y:93,width:10,height:44,rx:5}),(0,K.jsx)(`mask`,{id:`IcError404-h`,x:0,y:0,width:10,height:44,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcError404-a`})}),(0,K.jsx)(`rect`,{id:`IcError404-b`,x:81.703,y:18.593,width:3,height:40,rx:1.5}),(0,K.jsx)(`mask`,{id:`IcError404-i`,x:0,y:0,width:3,height:40,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcError404-b`})}),(0,K.jsx)(`rect`,{id:`IcError404-c`,x:27.331,y:77.478,width:10,height:27.707,rx:5}),(0,K.jsx)(`mask`,{id:`IcError404-j`,x:0,y:0,width:10,height:27.707,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcError404-c`})}),(0,K.jsx)(`rect`,{id:`IcError404-d`,width:115,height:10,rx:5}),(0,K.jsx)(`mask`,{id:`IcError404-k`,x:0,y:0,width:115,height:10,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcError404-d`})}),(0,K.jsx)(`rect`,{id:`IcError404-e`,x:231.339,y:8.025,width:3,height:7,rx:1.5}),(0,K.jsx)(`mask`,{id:`IcError404-l`,x:0,y:0,width:3,height:7,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcError404-e`})}),(0,K.jsx)(`rect`,{id:`IcError404-f`,x:241.973,y:13.165,width:3,height:10,rx:1.5}),(0,K.jsx)(`mask`,{id:`IcError404-m`,x:0,y:0,width:3,height:10,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcError404-f`})}),(0,K.jsx)(`rect`,{id:`IcError404-g`,x:248.269,y:26.631,width:3,height:7,rx:1.5}),(0,K.jsx)(`mask`,{id:`IcError404-n`,x:0,y:0,width:3,height:7,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcError404-g`})})]}),(0,K.jsxs)(`g`,{transform:`translate(0 -2)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M191.224 154.574C190.624 139.8 177.82 128 162.112 128c-15.708 0-28.512 11.801-29.112 26.574h58.224z`,stroke:`#FF4B0A`,fill:`#FBE9E7`}),(0,K.jsx)(`rect`,{fill:`#FF4B0A`,y:154,width:335,height:1,rx:.5}),(0,K.jsx)(`ellipse`,{stroke:`#FF4B0A`,fill:`#FF4B0A`,cx:162,cy:134.5,rx:7,ry:3.5}),(0,K.jsx)(`use`,{stroke:`#FF4B0A`,mask:`url(#IcError404-h)`,strokeWidth:2,fill:`#FFF`,xlinkHref:`#IcError404-a`}),(0,K.jsxs)(`g`,{transform:`translate(136)`,stroke:`#FF4B0A`,children:[(0,K.jsx)(`use`,{mask:`url(#IcError404-i)`,strokeWidth:2,transform:`rotate(50 83.203 38.593)`,xlinkHref:`#IcError404-b`}),(0,K.jsx)(`use`,{mask:`url(#IcError404-j)`,strokeWidth:2,fill:`#FFF`,transform:`rotate(45 32.331 91.331)`,xlinkHref:`#IcError404-c`}),(0,K.jsxs)(`g`,{transform:`rotate(50 22.598 48.462)`,children:[(0,K.jsx)(`path`,{d:`M2 8c1.154 28.351 25.785 51 56 51s54.846-22.649 56-51H2z`,fill:`#FFF`}),(0,K.jsx)(`use`,{mask:`url(#IcError404-k)`,strokeWidth:2,fill:`#FBE9E7`,xlinkHref:`#IcError404-d`})]}),(0,K.jsx)(`circle`,{fill:`#FBE9E7`,cx:26,cy:98,r:10}),(0,K.jsx)(`ellipse`,{fill:`#FBE9E7`,cx:98,cy:26.391,rx:5,ry:5})]}),(0,K.jsx)(`use`,{stroke:`#FF4B0A`,mask:`url(#IcError404-l)`,strokeWidth:2,fill:`#FBE9E7`,transform:`rotate(25 232.839 11.525)`,xlinkHref:`#IcError404-e`}),(0,K.jsx)(`use`,{stroke:`#FF4B0A`,mask:`url(#IcError404-m)`,strokeWidth:2,fill:`#FBE9E7`,transform:`rotate(50 243.473 18.165)`,xlinkHref:`#IcError404-f`}),(0,K.jsx)(`use`,{stroke:`#FF4B0A`,mask:`url(#IcError404-n)`,strokeWidth:2,fill:`#FBE9E7`,transform:`rotate(75 249.769 30.131)`,xlinkHref:`#IcError404-g`})]})]}),Foe=t({default:()=>Ioe}),Ioe=e=>
2(0,K.jsxs)(`svg`,{viewBox:`0 0 335 140`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`rect`,{id:`IcError500-a`,width:211,height:140,rx:4}),(0,K.jsx)(`mask`,{id:`IcError500-c`,x:0,y:0,width:211,height:140,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcError500-a`})}),(0,K.jsx)(`path`,{d:`M194 23h-3v16.998A4.004 4.004 0 0 1 187 44c-2.21 0-4-1.793-4-4.002V23h-3v24.5c0 3.59-2.917 6.5-6.5 6.5-3.59 0-6.5-2.903-6.5-6.5V23h-3v65.003A4.002 4.002 0 0 1 160 92c-2.21 0-4-1.796-4-3.997V23h-5v50.998A4.004 4.004 0 0 1 147 78c-2.21 0-4-1.794-4-4.002V23h-4v28c0 1.657-1.347 3-3 3-1.657 0-3-1.335-3-3V23H65.003A2.998 2.998 0 0 1 62 19.993V3.007A3.007 3.007 0 0 1 65.003 0h204.994A2.998 2.998 0 0 1 273 3.007v16.986A3.007 3.007 0 0 1 269.997 23H260v8.002A4.002 4.002 0 0 1 256 35c-2.21 0-4-1.784-4-3.998V23h-4v40.509c0 3.585-2.917 6.491-6.5 6.491-3.59 0-6.5-2.919-6.5-6.491V23h-4v12.01a3.998 3.998 0 0 1-4 3.99c-2.21 0-4-1.79-4-3.99V23h-3v24.5c0 3.59-2.917 6.5-6.5 6.5-3.59 0-6.5-2.903-6.5-6.5V23h-5v32.993A4.006 4.006 0 0 1 198 60c-2.21 0-4-1.796-4-4.007V23zm-26 42.994c0-3.31 2.693-5.994 6-5.994 3.314 0 6 2.695 6 5.994v6.012c0 3.31-2.693 5.994-6 5.994-3.314 0-6-2.695-6-5.994v-6.012zm84-23a4 4 0 0 1 8 0v10.011a4 4 0 0 1-8 0v-10.01z`,id:`IcError500-b`}),(0,K.jsx)(`mask`,{id:`IcError500-d`,x:0,y:0,width:211,height:92,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcError500-b`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M198 130c-.629-14.454-14.043-26-30.5-26s-29.871 11.546-30.5 26h61z`,stroke:`#FF4B0A`,fill:`#FBE9E7`}),(0,K.jsx)(`use`,{mask:`url(#IcError500-c)`,xlinkHref:`#IcError500-a`,transform:`translate(62)`,stroke:`#FF4B0A`,strokeWidth:2}),(0,K.jsx)(`rect`,{fill:`#FF4B0A`,y:139,width:335,height:1,rx:.5}),(0,K.jsx)(`path`,{d:`M142 116s10-13 25-12 22 6 28 15-53-3-53-3z`,stroke:`#FF4B0A`,fill:`#FFF`}),(0,K.jsx)(`rect`,{stroke:`#FF4B0A`,fill:`#FBE9E7`,x:156,y:99,width:8,height:11,rx:4}),(0,K.jsx)(`use`,{stroke:`#FF4B0A`,mask:`url(#IcError500-d)`,strokeWidth:2,fill:`#FBE9E7`,xlinkHref:`#IcError500-b`}),(0,K.jsx)(`circle`,{stroke:`#FF4B0A`,fill:`#FFF`,cx:73,cy:12,r:3}),(0,K.jsx)(`circle`,{stroke:`#FF4B0A`,fill:`#FFF`,cx:83,cy:12,r:3}),(0,K.jsx)(`circle`,{stroke:`#FF4B0A`,fill:`#FFF`,cx:94,cy:12,r:3}),(0,K.jsx)(`ellipse`,{stroke:`#FF4B0A`,fill:`#FBE9E7`,cx:113.5,cy:77,rx:14.5,ry:15}),(0,K.jsx)(`ellipse`,{stroke:`#FF4B0A`,fill:`#FBE9E7`,cx:212.5,cy:77,rx:14.5,ry:15}),(0,K.jsx)(`ellipse`,{stroke:`#FF4B0A`,fill:`#FFF`,cx:213,cy:72,rx:9,ry:10}),(0,K.jsx)(`ellipse`,{stroke:`#FF4B0A`,fill:`#FFF`,cx:113,cy:72,rx:9,ry:10})]})]}),Loe=t({default:()=>Roe}),Roe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:Wp,fillRule:`evenodd`,children:[(0,K.jsx)(`rect`,{x:3,y:1,width:1,height:16,rx:.5}),(0,K.jsx)(`path`,{stroke:Wp,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5.5 1.5h10L11 5l4.5 3.5h-10z`})]})}),zoe=t({default:()=>Boe}),Boe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 12 7`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-6-9h24v24H-6z`}),(0,K.jsx)(`path`,{className:`fill`,d:`M11.295 6.295a.998.998 0 0 1-1.412 0L6 2.42 2.117 6.294a.997.997 0 0 1-1.412.001 1.005 1.005 0 0 1 .007-1.417L5.288.302a1.01 1.01 0 0 1 1.424 0l4.576 4.576a1 1 0 0 1 .007 1.417z`,fill:`#868F9A`})]})}),Voe=t({default:()=>Hoe}),Hoe=({fill:e=`currentColor`,...t})=>(0,K.jsx)(`svg`,{viewBox:`0 0 12 7`,width:`1.5em`,height:`1.5em`,...t,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-6-9h24v24H-6z`}),(0,K.jsx)(`path`,{className:`fill`,d:`M11.295.295a.998.998 0 0 0-1.412 0L6 4.17 2.117.296A.997.997 0 0 0 .705.295c-.39.39-.382 1.028.007 1.417l4.576 4.576a1.01 1.01 0 0 0 1.424 0l4.576-4.576a1 1 0 0 0 .007-1.417z`,fill:e})]})}),Uoe=t({default:()=>Woe}),Woe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 8 5`,width:`1em`,height:`1em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-4-6h16v16H-4z`}),(0,K.jsx)(`path`,{d:`M7.53.197a.668.668 0 0 0-.948.007L4 2.78 1.418.204A.678.678 0 0 0 .47.197a.67.67 0 0 0 .005.944l3.05 3.051c.263.262.69.26.95 0l3.05-3.05A.675.675 0 0 0 7.53.196z`,fill:`#868F9A`})]})}),Goe=t({default:()=>Koe}),Koe=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h16v16H0z`}),(0,K.jsx)(`path`,{d:`M11.53 6.197a.668.668 0 0 0-.948.007L8 8.78 5.418 6.204a.678.678 0 0 0-.948-.007.67.67 0 0 0 .005.944l3.05 3.051c.263.262.69.26.95 0l3.05-3.05a.675.675 0 0 0 .005-.945z`,fill:`#868F9A`})]})}),qoe=t({default:()=>Joe}),Joe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h16v16H0z`}),(0,K.jsx)(`path`,{d:`M4.468 10.194c.26.26.68.26.948-.007L7.998 7.61l2.582 2.577c.264.263.696.259.948.007a.67.67 0 0 0-.004-.945L8.473 6.2a.673.673 0 0 0-.95 0l-3.05 3.05a.675.675 0 0 0-.005.945z`,fill:`#868F9A`})]})}),Yoe=t({default:()=>Xoe}),Xoe=()=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14.526`,height:`12.245`,viewBox:`0 0 14.526 12.245`,children:(0,K.jsxs)(`g`,{transform:`translate(-1023.681 -151.755)`,children:[(0,K.jsx)(`g`,{transform:`translate(567.681 -837.245)`,children:(0,K.jsxs)(`g`,{fill:`#fff`,transform:`translate(453 989)`,children:[(0,K.jsx)(`path`,{stroke:`none`,d:`M 11.57729148864746 11.74548149108887 L 3.741251230239868 11.74548149108887 C 3.608221292495728 11.74548149108887 3.500001192092896 11.62645149230957 3.500001192092896 11.48014163970947 L 3.500001192092896 0.7653416991233826 C 3.500001192092896 0.6190317273139954 3.608221292495728 0.5000017285346985 3.741251230239868 0.5000017285346985 L 9.866022109985352 0.5000017285346985 C 10.45292854309082 1.164316892623901 11.4396448135376 2.137205600738525 11.81854152679443 2.507213115692139 L 11.81854152679443 11.48014163970947 C 11.81854152679443 11.62645149230957 11.7103214263916 11.74548149108887 11.57729148864746 11.74548149108887 Z`}),(0,K.jsx)(`path`,{stroke:`none`,fill:Wp,d:`M 4.000000953674316 1.000001907348633 L 4.000000953674316 11.24548149108887 L 11.31854057312012 11.24548149108887 L 11.31854057312012 2.717306137084961 C 10.90884017944336 2.314694404602051 10.17351245880127 1.582459449768066 9.643115043640137 1.000001907348633 L 4.000000953674316 1.000001907348633 M 3.741250991821289 1.9073486328125e-06 L 10.09480094909668 1.9073486328125e-06 C 10.7507209777832 0.7803421020507813 12.31854152679443 2.296031951904297 12.31854152679443 2.296031951904297 L 12.31854152679443 11.48014163970947 C 12.31854152679443 11.90283203125 11.98667144775391 12.24548149108887 11.57729148864746 12.24548149108887 L 3.741250991821289 12.24548149108887 C 3.331871032714844 12.24548149108887 3.000000953674316 11.90283203125 3.000000953674316 11.48014163970947 L 3.000000953674316 0.7653417587280273 C 3.000000953674316 0.3426513671875 3.331871032714844 1.9073486328125e-06 3.741250991821289 1.9073486328125e-06 Z`})]})}),(0,K.jsx)(`path`,{fill:`none`,stroke:Wp,d:`M480.132,522.154s1.336-6.119,9.3-4.857`,transform:`matrix(0.998, -0.07, 0.07, 0.998, 513.193, -326.441)`}),(0,K.jsxs)(`g`,{transform:`translate(384 -462)`,children:[(0,K.jsx)(`line`,{fill:`none`,stroke:Wp,strokeLinecap:`round`,x2:`3`,y2:`3`,transform:`translate(650.5 614.5)`}),(0,K.jsx)(`line`,{fill:`none`,stroke:Wp,strokeLinecap:`round`,y1:`3`,x2:`3`,transform:`translate(650.5 617.5)`})]})]})}),Zoe=t({default:()=>Qoe}),Qoe=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 48 48`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{fill:`#FF5722`,cx:24,cy:24,r:24}),(0,K.jsx)(`path`,{d:`M20.701 35.682h4.371V23.675h3.28L29 19.924h-3.928v-2.719c0-.876.567-1.796 1.377-1.796h2.232v-3.752h-2.736v.017c-4.28.155-5.16 2.634-5.236 5.238h-.008v3.012h-2.187v3.751h2.187v12.007z`,fill:`#FFF`})]})}),$oe=t({default:()=>ese}),ese=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 15 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{d:`M5.082 13.42a2 2 0 0 1 0-2.84l9.132-9.133a2 2 0 0 1 2.836-.004l.507.507c.782.782.781 2.05 0 2.832L10.339 12l7.218 7.218a1.997 1.997 0 0 1 0 2.832l-.507.507a1.997 1.997 0 0 1-2.836-.004L5.082 13.42z`,id:`IcGoLeft-a`})}),(0,K.jsx)(`use`,{fill:`#FFF`,xlinkHref:`#IcGoLeft-a`,transform:`translate(-4)`,fillRule:`evenodd`})]}),tse=t({default:()=>nse}),nse=e=>
2(0,K.jsxs)(`svg`,{viewBox:`0 0 15 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{d:`M5.082 13.42a2 2 0 0 1 0-2.84l9.132-9.133a2 2 0 0 1 2.836-.004l.507.507c.782.782.781 2.05 0 2.832L10.339 12l7.218 7.218a1.997 1.997 0 0 1 0 2.832l-.507.507a1.997 1.997 0 0 1-2.836-.004L5.082 13.42z`,id:`IcGoRight-a`})}),(0,K.jsx)(`use`,{fill:`#FFF`,xlinkHref:`#IcGoRight-a`,transform:`matrix(-1 0 0 1 19 0)`,fillRule:`evenodd`})]}),rse=t({default:()=>ise}),ise=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 752 91`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`linearGradient`,{x1:`50%`,y1:`1.02%`,x2:`50%`,y2:`100%`,id:`IcGradient-a`,children:[(0,K.jsx)(`stop`,{offset:`0%`}),(0,K.jsx)(`stop`,{stopColor:`#FFF`,stopOpacity:0,offset:`100%`})]})}),(0,K.jsx)(`path`,{style:{mixBlendMode:`multiply`},d:`M199 128h752v91H199z`,transform:`translate(-199 -128)`,fill:`url(#IcGradient-a)`,fillRule:`evenodd`,fillOpacity:.5})]}),ase=t({default:()=>ose}),ose=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 515 38`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:`IcGradientGrey-a`,children:[(0,K.jsx)(`stop`,{stopColor:`#FAFAFA`,stopOpacity:0,offset:`0%`}),(0,K.jsx)(`stop`,{stopColor:`#FAFAFA`,offset:`100%`})]})}),(0,K.jsx)(`path`,{d:`M0 69h515v38H0z`,transform:`translate(0 -69)`,fill:`url(#IcGradientGrey-a)`,fillRule:`evenodd`})]}),sse=t({default:()=>cse}),cse=e=>(0,K.jsxs)(`svg`,{width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`linearGradient`,{id:`IcGradientPopover-a`,x1:`50%`,y1:`100%`,x2:`50%`,y2:`0%`,children:[(0,K.jsx)(`stop`,{offset:`0%`,stopColor:`#fff`}),(0,K.jsx)(`stop`,{offset:`68%`,stopColor:`#fff`,stopOpacity:0}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#fff`,stopOpacity:0})]})}),(0,K.jsx)(`rect`,{width:`100%`,height:`100%`,fill:`url(#IcGradientPopover-a)`})]}),lse=t({default:()=>use}),use=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 515 38`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:`IcGradientWhite-a`,children:[(0,K.jsx)(`stop`,{stopColor:`#FFF`,stopOpacity:0,offset:`0%`}),(0,K.jsx)(`stop`,{stopColor:`#FFF`,offset:`100%`})]})}),(0,K.jsx)(`path`,{d:`M0 69h515v38H0z`,transform:`translate(0 -69)`,fill:`url(#IcGradientWhite-a)`,fillRule:`evenodd`})]}),dse=t({default:()=>fse}),fse=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 23 13`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M0 5.99A.99.99 0 0 1 1.003 5h4.994C6.551 5 7 5.451 7 5.99v4.02a.99.99 0 0 1-1.003.99H1.003A1.002 1.002 0 0 1 0 10.01V5.99z`,id:`IcGrid-a`}),(0,K.jsx)(`mask`,{id:`IcGrid-g`,x:0,y:0,width:7,height:6,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcGrid-a`})}),(0,K.jsx)(`path`,{d:`M0 12.99A.99.99 0 0 1 1.003 12h4.994c.554 0 1.003.451 1.003.99v4.02a.99.99 0 0 1-1.003.99H1.003A1.002 1.002 0 0 1 0 17.01v-4.02z`,id:`IcGrid-b`}),(0,K.jsx)(`mask`,{id:`IcGrid-h`,x:0,y:0,width:7,height:6,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcGrid-b`})}),(0,K.jsx)(`path`,{d:`M8 5.99A.99.99 0 0 1 9.003 5h4.994c.554 0 1.003.451 1.003.99v4.02a.99.99 0 0 1-1.003.99H9.003A1.002 1.002 0 0 1 8 10.01V5.99z`,id:`IcGrid-c`}),(0,K.jsx)(`mask`,{id:`IcGrid-i`,x:0,y:0,width:7,height:6,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcGrid-c`})}),(0,K.jsx)(`path`,{d:`M8 12.99A.99.99 0 0 1 9.003 12h4.994c.554 0 1.003.451 1.003.99v4.02a.99.99 0 0 1-1.003.99H9.003A1.002 1.002 0 0 1 8 17.01v-4.02z`,id:`IcGrid-d`}),(0,K.jsx)(`mask`,{id:`IcGrid-j`,x:0,y:0,width:7,height:6,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcGrid-d`})}),(0,K.jsx)(`path`,{d:`M16 5.99A.99.99 0 0 1 17.003 5h4.994c.554 0 1.003.451 1.003.99v4.02a.99.99 0 0 1-1.003.99h-4.994A1.002 1.002 0 0 1 16 10.01V5.99z`,id:`IcGrid-e`}),(0,K.jsx)(`mask`,{id:`IcGrid-k`,x:0,y:0,width:7,height:6,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcGrid-e`})}),(0,K.jsx)(`path`,{d:`M16 12.99a.99.99 0 0 1 1.003-.99h4.994c.554 0 1.003.451 1.003.99v4.02a.99.99 0 0 1-1.003.99h-4.994A1.002 1.002 0 0 1 16 17.01v-4.02z`,id:`IcGrid-f`}),(0,K.jsx)(`mask`,{id:`IcGrid-l`,x:0,y:0,width:7,height:6,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcGrid-f`})})]}),(0,K.jsxs)(`g`,{transform:`translate(0 -5)`,stroke:`currentColor`,strokeWidth:2,fill:`currentColor`,fillRule:`evenodd`,fillOpacity:.1,children:[(0,K.jsx)(`use`,{mask:`url(#IcGrid-g)`,xlinkHref:`#IcGrid-a`}),(0,K.jsx)(`use`,{mask:`url(#IcGrid-h)`,xlinkHref:`#IcGrid-b`}),(0,K.jsx)(`use`,{mask:`url(#IcGrid-i)`,xlinkHref:`#IcGrid-c`}),(0,K.jsx)(`use`,{mask:`url(#IcGrid-j)`,xlinkHref:`#IcGrid-d`}),(0,K.jsx)(`use`,{mask:`url(#IcGrid-k)`,xlinkHref:`#IcGrid-e`}),(0,K.jsx)(`use`,{mask:`url(#IcGrid-l)`,xlinkHref:`#IcGrid-f`})]})]}),pse=t({default:()=>mse}),mse=e=>
2(0,K.jsxs)(`svg`,{viewBox:`0 0 22 22`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11z`,id:`IcHelp-a`}),(0,K.jsx)(`mask`,{id:`IcHelp-b`,x:0,y:0,width:22,height:22,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcHelp-a`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-1 -1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`text`,{fontFamily:`.AppleSystemUIFont`,fontSize:16,fill:`#6B757F`,children:(0,K.jsx)(`tspan`,{x:8.055,y:18,children:`?`})}),(0,K.jsx)(`use`,{stroke:`#6B757F`,mask:`url(#IcHelp-b)`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,xlinkHref:`#IcHelp-a`})]})]}),hse=t({default:()=>gse}),gse=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 12 12`,width:`1em`,height:`1em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{fill:`#A0AAB4`,cx:6,cy:6,r:6}),(0,K.jsx)(`text`,{fontFamily:`Plus Jakarta Sans, Helvetica, Arial, sans-serif`,fontSize:11,fill:`#FFF`,children:(0,K.jsx)(`tspan`,{x:3.3,y:10,children:`?`})})]})}),_se=t({default:()=>vse}),vse=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 30 30`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:e.color||`#FF5722`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm0-2.5c6.904 0 12.5-5.596 12.5-12.5S21.904 2.5 15 2.5 2.5 8.096 2.5 15 8.096 27.5 15 27.5z`}),(0,K.jsx)(`path`,{d:`M20.221 10.68a1.055 1.055 0 0 0-1.443.025l-6.466 6.51-2.21-2.206a.951.951 0 0 0-1.388.036l-.033.036a1.037 1.037 0 0 0 .031 1.432L11.6 19.31a1.022 1.022 0 0 0 1.423-.014l7.266-7.2a.944.944 0 0 0-.032-1.383l-.036-.033z`,opacity:e.color?.7:.2})]})}),yse=t({default:()=>bse}),bse=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 3 3`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`#FF5722`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M1.5 3a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm0-.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5z`}),(0,K.jsx)(`path`,{d:`M2.024 1.07c-.042-.039-.107-.039-.142-.003l-.65.655-.225-.224c-.037-.037-.1-.032-.137.008-.039.042-.042.104-.003.142l.297.287c.037.036.105.028.135-.003l.733-.725c.037-.038.033-.1-.008-.137z`,opacity:.2})]})}),xse=t({default:()=>Sse}),Sse=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 18 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M14.83 2a3.001 3.001 0 0 0-5.66 0H6.5c-.271 0-.5.223-.5.498v4.004c0 .283.224.498.5.498h11c.271 0 .5-.223.5-.498V2.498A.494.494 0 0 0 17.5 2h-2.67z`,id:`IcJobs-a`}),(0,K.jsx)(`mask`,{id:`IcJobs-b`,x:0,y:0,width:12,height:7,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcJobs-a`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-3)`,stroke:`#FFF`,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,K.jsx)(`path`,{d:`M15.5 11.217L10.875 17l-2.5-2.5`}),(0,K.jsx)(`path`,{d:`M17.5 3.5h3v20h-17v-20h3`}),(0,K.jsx)(`use`,{mask:`url(#IcJobs-b)`,strokeWidth:2,xlinkHref:`#IcJobs-a`})]})]}),Cse=t({default:()=>wse}),wse=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 6 12`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M5.267 1L0 6.243l5.267 5.243`,stroke:`#858E99`,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Tse=t({default:()=>Ese}),Ese=e=>(0,K.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`22`,height:`22`,viewBox:`0 0 22 22`,...e,children:[(0,K.jsxs)(`g`,{fill:`none`,stroke:`#e5e7ee`,children:[(0,K.jsx)(`rect`,{stroke:`none`,width:`22`,height:`22`,rx:`2`}),(0,K.jsx)(`rect`,{fill:`none`,x:`0.5`,y:`0.5`,width:`21`,height:`21`,rx:`1.5`})]}),(0,K.jsxs)(`g`,{transform:`translate(13.025 6.908) rotate(90)`,children:[(0,K.jsx)(`line`,{fill:`none`,stroke:`#535562`,strokeLinecap:`round`,x2:`4.034`,y2:`4.036`}),(0,K.jsx)(`line`,{fill:`none`,stroke:`#535562`,strokeLinecap:`round`,x1:`4.034`,y2:`4.036`,transform:`translate(4.037)`})]})]}),Dse=t({default:()=>Ose}),Ose=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M14.25 6L9 12l5.25 6`,strokeWidth:1.5,stroke:Wp,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`})}),kse=t({default:()=>Ase}),Ase=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`g`,{strokeWidth:1.5,stroke:Wp,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,K.jsx)(`path`,{d:`M17.25 6L12 12l5.25 6M11.25 6L6 12l5.25 6`})})}),jse=t({default:()=>Mse}),Mse=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 15 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{id:`IcLightbulb-b`,d:`M0 .5h15V2H0z`}),(0,K.jsx)(`path`,{d:`M8 17.5h7c-.037-4.5 4-5.86 4-10a7.5 7.5 0 0 0-15 0c0 4.14 4 5.52 4 10z`,id:`IcLightbulb-a`}),(0,K.jsx)(`mask`,{id:`IcLightbulb-d`,x:0,y:0,width:15,height:17.5,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcLightbulb-a`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-4)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`rect`,{className:`fill`,fill:`#FF5722`,x:8,y:18.5,width:7,height:1,rx:.5}),(0,K.jsx)(`rect`,{className:`fill`,fill:`#FF5722`,x:8,y:20.5,width:7,height:1,rx:.5}),(0,K.jsxs)(`g`,{transform:`translate(4 22)`,children:[(0,K.jsx)(`mask`,{id:`IcLightbulb-c`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcLightbulb-b`})}),(0,K.jsx)(`path`,{d:`M7.5 2a2 2 0 0 0 2-2h-4a2 2 0 0 0 2 2z`,fill:`#FF5722`,className:`fill`,mask:`url(#IcLightbulb-c)`})]}),(0,K.jsx)(`path`,{d:`M11.5 10.5v6`,className:`stroke`,stroke:`#FF5722`,strokeLinecap:`round`}),(0,K.jsx)(`use`,{stroke:`#FF5722`,className:`stroke`,mask:`url(#IcLightbulb-d)`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,xlinkHref:`#IcLightbulb-a`}),(0,K.jsx)(`path`,{stroke:`#FF5722`,className:`stroke`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M14.5 9.5L13 11l-1.5-1.5L10 11 8.5 9.5`})]})]}),Nse=t({default:()=>Pse}),Pse=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 20 13`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{stroke:`#6B757F`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`rect`,{x:.5,y:.5,width:19,height:12,rx:1}),(0,K.jsx)(`path`,{d:`M1 12l5.5-5.5M19 12l-5.5-5.5`,strokeLinecap:`square`}),(0,K.jsx)(`path`,{d:`M1 1l8.248 7.332c.415.369 1.094.364 1.504 0L19 1`})]})}),Fse=t({default:()=>Ise}),Ise=({color:e=Wp})=>(0,K.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`3`,height:`15`,viewBox:`0 0 3 15`,children:[(0,K.jsx)(`defs`,{}),(0,K.jsxs)(`g`,{transform:`translate(-1273 -170)`,children:[(0,K.jsx)(`circle`,{fill:e,cx:`1.5`,cy:`1.5`,r:`1.5`,transform:`translate(1273 170)`}),(0,K.jsx)(`circle`,{fill:e,cx:`1.5`,cy:`1.5`,r:`1.5`,transform:`translate(1273 176)`}),(0,K.jsx)(`circle`,{fill:e,cx:`1.5`,cy:`1.5`,r:`1.5`,transform:`translate(1273 182)`})]})]}),Lse=t({default:()=>Rse}),Rse=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`path`,{d:`M.5 4.501H5c5 0 5 7 10 7h8.5M.5 18.501H5c5 0 5-7 10-7`,stroke:Wp,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,K.jsx)(`path`,{stroke:Wp,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M19.5 15.501l4-4-4-4`})]})}),zse=t({default:()=>Bse}),Bse=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 12 22`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`rect`,{id:`IcMessageSolid-a`,x:6,y:1,width:12,height:22,rx:2}),(0,K.jsx)(`mask`,{id:`IcMessageSolid-b`,x:0,y:0,width:12,height:22,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcMessageSolid-a`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-6 -1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`use`,{stroke:`#6B757F`,mask:`url(#IcMessageSolid-b)`,strokeWidth:2,xlinkHref:`#IcMessageSolid-a`}),(0,K.jsx)(`path`,{fill:`#6B757F`,d:`M6 18h12v1H6zM6 5h12v1H6z`}),(0,K.jsx)(`circle`,{stroke:`#6B757F`,fill:`#6B757F`,cx:12,cy:20.5,r:.5}),(0,K.jsx)(`path`,{fill:`#6B757F`,d:`M11 3h2v1h-2z`})]})]}),Vse=t({default:()=>Hse}),Hse=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 20 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M3.81 18c-.359 0-.719-.052-1.07-.154l-.947-.275.806-.566a2.844 2.844 0 0 0 1.21-2.32.792.792 0 0 0-.342-.63C1.264 12.498 0 10.31 0 8.053 0 3.688 4.58 0 10 0c5.328 0 10 3.763 10 8.053 0 1.889-.721 8.053-10 8.053-.897 0-1.809-.113-2.717-.336A3.793 3.793 0 0 1 3.81 18zM10 .947C5.18.947.952 4.267.952 8.052c0 1.947 1.118 3.853 3.067 5.23.463.328.741.849.743 1.394a3.79 3.79 0 0 1-.838 2.375 2.84 2.84 0 0 0 2.612-1.99l.139-.44.446.126c.962.273 1.93.411 2.879.411 8.166 0 9.048-4.969 9.048-7.105C19.048 4.267 14.82.947 10 .947z`,fill:`#6B757F`,fillRule:`evenodd`})}),Use=t({default:()=>Wse}),Wse=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 48 48`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{fill:Wp,cx:24,cy:24,r:24}),(0,K.jsx)(`path`,{d:`M25.454 27.306l-3.037-3.26-5.926 3.26 6.519-6.963 3.11 3.26 5.852-3.26-6.518 6.963zm-1.185-14.963c-6.587 0-11.926 4.974-11.926 11.111 0 3.497 1.734 6.616 4.444 8.652v4.237l4.061-2.243a12.74 12.74 0 0 0 3.42.465c6.587 0 11.927-4.975 11.927-11.111 0-6.137-5.34-11.111-11.926-11.111z`,fill:`#FFF`})]})}),Gse=t({default:()=>Kse}),Kse=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 14 2`,width:`1em`,height:`1em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-5-11h24v24H-5z`}),(0,K.jsx)(`path`,{d:`M1.007 2A1.001 1.001 0 0 1 0 1c0-.552.45-1 1.007-1h11.986C13.55 0 14 .444 14 1c0 .552-.45 1-1.007 1H1.007z`,fillOpacity:.9,fill:e.fill||`#36ACB2`})]})}),qse=t({default:()=>Jse}),Jse=e=>(0,K.jsxs)(`svg`,{width:`1.4em`,height:`1.4em`,viewBox:`0 0 32 32`,...e,children:[(0,K.jsx)(`title`,{children:`IcMissingFeedback`}),(0,K.jsxs)(`g`,{fill:`#576A73`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M6.898 20.554a9.898 9.898 0 01-3.214-7.306 9.9 9.9 0 01.311-2.427 9.863 9.863 0 013.397-5.308 9.597 9.597 0 014.465-1.99 9.448 9.448 0 011.547-.138c.527 0 1.04.054 1.547.138.482.052.775.114.88.185A9.756 9.756 0 0121.617 8a9.895 9.895 0 011.505 5.248 9.89 9.89 0 01-3.204 7.295c-1.725 1.59-4.006 2.566-6.514 2.566-2.503 0-4.78-.972-6.506-2.555zM21.617 4.832c-2.112-2.123-5.014-3.438-8.213-3.438-2.476 0-4.768.791-6.659 2.129a11.753 11.753 0 00-2.173 1.99A11.878 11.878 0 002.574 8.83a11.697 11.697 0 00-.603 1.99c-.16.785-.248 1.596-.248 2.428 0 2.043.512 3.967 1.413 5.647.315.586.685 1.137 1.088 1.659 2.14 2.762 5.456 4.546 9.18 4.546 6.44 0 11.68-5.317 11.68-11.852 0-2.336-.68-4.51-1.833-6.346a11.871 11.871 0 00-1.634-2.07z`}),(0,K.jsx)(`text`,{fontFamily:`HelveticaNeue, Helvetica Neue`,fontSize:16.165,transform:`translate(1)`,children:(0,K.jsx)(`tspan`,{x:7.742,y:19,children:`?`})}),(0,K.jsx)(`path`,{d:`M20.667 24.019l2.199-2.267 7.451 5.924a.644.644 0 01.04.96l-2.7 2.63a.666.666 0 01-.975-.049l-6.015-7.198z`})]})]}),Yse=t({default:()=>Xse}),Xse=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm14 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`,fill:`#868F9A`,fillRule:`evenodd`})}),Zse=t({default:()=>Qse}),Qse=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm14 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`,fill:Wp,fillRule:`evenodd`,fillOpacity:.9})}),$se=t({default:()=>ece}),ece=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm14 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`,fill:`#FFF`,fillRule:`evenodd`})}),tce=t({default:()=>nce}),nce=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`#C2CCD6`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M11 4h2v17h-2z`}),(0,K.jsx)(`path`,{d:`M3 13v-2h17v2z`}),(0,K.jsx)(`path`,{stroke:`#C2CCD6`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.5 19.5l-3.5 4-3.5-4zM4.5 15.5L.5 12l4-3.5zM19.5 15.5l4-3.5-4-3.5zM15.5 4.5L12 .5l-3.5 4z`})]})}),rce=t({default:()=>ice}),ice=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 10 14`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M1.75 1L9 7l-7.25 6`,stroke:`##36ACB22`,strokeWidth:2,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`})}),ace=t({default:()=>oce}),oce=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 48 35`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`matrix(-1 0 0 1 50 -8)`,fill:`currentColor`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M13.368 12.7H4.331a1.992 1.992 0 0 0-1.998 1.99v25.654c0 1.099.896 1.99 2.003 1.99H47.29a1.994 1.994 0 0 0 2.002-1.99V14.69a2 2 0 0 0-1.998-1.99h-9.037L34.35 8.466H17.275L13.368 12.7zm1.772 14.817c0-5.842 4.781-10.583 10.673-10.583 5.89 0 10.672 4.741 10.672 10.583 0 5.842-4.781 10.584-10.672 10.584-5.892 0-10.673-4.742-10.673-10.584zm24.013-6.35c0-.876.718-1.587 1.601-1.587.884 0 1.601.71 1.601 1.587 0 .876-.717 1.588-1.6 1.588-.884 0-1.602-.712-1.602-1.588z`}),(0,K.jsx)(`ellipse`,{cx:25.813,cy:27.517,rx:6.404,ry:6.35}
2)]})}),sce=t({default:()=>cce}),cce=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h18v18H0z`}),(0,K.jsx)(`path`,{d:`M13.744 16H4.256a.754.754 0 0 1-.756-.75V9H1.75c-.423 0-.498-.22-.187-.492l6.874-6.016a.874.874 0 0 1 1.126 0l6.874 6.016c.315.275.227.492-.187.492H14.5v6.25c0 .412-.339.75-.756.75zm-5.805-5.5l-2.066 2.067c-.29.29-.29.76.006 1.054a.75.75 0 0 0 1.054.006L9 11.561l2.067 2.066c.29.29.76.29 1.054-.006a.75.75 0 0 0 .006-1.054L10.061 10.5l2.066-2.067a.744.744 0 0 0-.006-1.054.75.75 0 0 0-1.054-.006L9 9.439 6.933 7.373a.744.744 0 0 0-1.054.006.75.75 0 0 0-.006 1.054L7.939 10.5z`,fill:`#FF1744`,fillRule:`nonzero`})]})}),lce=t({default:()=>uce}),uce=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 22 22`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M11 21a3 3 0 0 0 3-3H8a3 3 0 0 0 3 3z`,id:`IcNotifications-a`}),(0,K.jsx)(`mask`,{id:`IcNotifications-c`,x:0,y:0,width:6,height:3,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcNotifications-a`})}),(0,K.jsx)(`path`,{d:`M8.5 1.46A7.003 7.003 0 0 0 4 8C4 16 .706 18.317.706 18.317c-.39.377-.267.683.296.683h19.996c.553 0 .639-.244.214-.613 0 0-3.145-1.387-3.212-10.387a7.003 7.003 0 0 0-4.5-6.54 2.5 2.5 0 0 0-5 0z`,id:`IcNotifications-b`}),(0,K.jsx)(`mask`,{id:`IcNotifications-d`,x:0,y:0,width:21.001,height:19,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcNotifications-b`})})]}),(0,K.jsxs)(`g`,{transform:`translate(0 1)`,stroke:`#6B757F`,strokeWidth:2,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`use`,{mask:`url(#IcNotifications-c)`,fill:`#6B757F`,xlinkHref:`#IcNotifications-a`}),(0,K.jsx)(`use`,{mask:`url(#IcNotifications-d)`,xlinkHref:`#IcNotifications-b`})]})]}),dce=t({default:()=>fce}),fce=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 22`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0-1h24v24H0z`}),(0,K.jsx)(`path`,{d:`M13.2.1c2 .3 3.8.9 5.4 2 1.4 1 2.5 2.3 3.3 3.9.1.3.3.6-.3.5-.8-.1-1.4.1-2 .7-.3.4-.5.3-.7-.1-1-1.8-2.4-3.2-4.5-3.7-3.9-1-9.9.9-10.5 6.9-.5 4.6 3 8.9 7.7 9.2 4.4.3 7.7-2.1 9.1-6.1.2-.6.4-1.3.6-1.9 0-.2 0-.3.3-.3s.2.2.2.4c.3 2.8-.6 5.2-2.6 7.3-1.7 1.7-3.8 2.7-6.2 3-5.6.7-11.1-3.3-12-8.9 0-.1-.1-.3-.1-.4-.1-.2 0-.4-.1-.6 0-.7.1-1.4-.1-2.2v-.3c.2-.7.3-1.4.5-2C2.3 4.2 4.6 2 7.8.7 9 .3 10.2 0 11.5.1h.8c.3 0 .6-.1.9 0z`,fill:`#FE9800`}),(0,K.jsx)(`path`,{d:`M9.9 11.2c0-1.2 1-2.2 2.2-2.3 1.2 0 2.3 1 2.3 2.2 0 1.2-1 2.3-2.2 2.3-1.3 0-2.3-1-2.3-2.2z`,fill:`#E5633B`}),(0,K.jsx)(`path`,{d:`M21.3 6.8c1.1 0 2 .9 2 2 0 1-.9 2-2 2s-2-.9-2-2c0-1 .9-2 2-2z`,fill:`#FE9800`})]})}),pce=t({default:()=>mce}),mce=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 18 22`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M6 10h12V7A6 6 0 1 0 6 7v3z`,id:`a`}),(0,K.jsx)(`mask`,{id:`IcPassword-b`,x:0,y:0,width:12,height:9,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcPassword-a`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-3 -1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M14 16c0 1.1-.896 2-2 2s-2-.9-2-2c0-1.108.896-2 2-2s2 .892 2 2z`,fill:`#7B858F`}),(0,K.jsx)(`path`,{stroke:`#7B858F`,strokeLinejoin:`round`,d:`M3.5 22.5h17v-13h-17z`}),(0,K.jsx)(`use`,{stroke:`#7B858F`,mask:`url(#IcPassword-b)`,strokeWidth:2,xlinkHref:`#IcPassword-a`})]})]}),hce=t({default:()=>gce}),gce=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 18 22`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`rect`,{id:`IcPassword2-a`,y:8,width:18,height:14,rx:2}),(0,K.jsx)(`mask`,{id:`IcPassword2-d`,x:0,y:0,width:18,height:14,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcPassword2-a`})}),(0,K.jsx)(`path`,{d:`M14 5A5 5 0 0 0 4 5v4h10V5z`,id:`IcPassword2-b`}),(0,K.jsx)(`mask`,{id:`IcPassword2-e`,x:0,y:0,width:10,height:9,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcPassword2-b`})}),(0,K.jsx)(`circle`,{id:`IcPassword2-c`,cx:9,cy:15,r:2}),(0,K.jsx)(`mask`,{id:`IcPassword2-f`,x:0,y:0,width:4,height:4,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcPassword2-c`})})]}),(0,K.jsxs)(`g`,{strokeWidth:2,stroke:`#6B757F`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`use`,{mask:`url(#IcPassword2-d)`,xlinkHref:`#IcPassword2-a`}),(0,K.jsx)(`use`,{mask:`url(#IcPassword2-e)`,xlinkHref:`#IcPassword2-b`}),(0,K.jsx)(`use`,{mask:`url(#IcPassword2-f)`,fill:`#6B757F`,xlinkHref:`#IcPassword2-c`})]})]}),_ce=t({default:()=>vce}),vce=e=>
2(0,K.jsxs)(`svg`,{viewBox:`0 0 57 57`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`rect`,{id:`IcPayment1-a`,width:31,height:21,rx:2}),(0,K.jsx)(`mask`,{id:`IcPayment1-b`,x:0,y:0,width:31,height:21,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcPayment1-a`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-8 -8)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsxs)(`g`,{transform:`translate(21 27)`,children:[(0,K.jsx)(`use`,{stroke:`#FF4B0A`,mask:`url(#IcPayment1-b)`,strokeWidth:4,xlinkHref:`#IcPayment1-a`}),(0,K.jsx)(`path`,{fill:`#FF4B0A`,d:`M1 5h29v2H1z`})]}),(0,K.jsx)(`circle`,{stroke:`#FF4B0A`,strokeWidth:2,cx:36.5,cy:36.5,r:27.5})]})]}),yce=t({default:()=>bce}),bce=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 57 57`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{stroke:`#FF4B0A`,strokeWidth:2,cx:27.5,cy:27.5,r:27.5}),(0,K.jsxs)(`g`,{transform:`rotate(-35 49.679 -8.745)`,fill:`#FF4B0A`,children:[(0,K.jsx)(`rect`,{x:.147,y:10.362,width:25,height:2,rx:1}),(0,K.jsx)(`rect`,{x:.147,y:.362,width:2,height:12,rx:1})]})]})}),xce=t({default:()=>Sce}),Sce=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 57 57`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(1 1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{stroke:`#FF4B0A`,strokeWidth:2,cx:27.5,cy:27.5,r:27.5}),(0,K.jsxs)(`g`,{transform:`translate(17 17)`,fill:`#FF4B0A`,children:[(0,K.jsx)(`rect`,{transform:`rotate(45 10.627 11)`,x:-3.143,y:10,width:27.54,height:2,rx:1}),(0,K.jsx)(`rect`,{transform:`rotate(-45 10.627 11)`,x:-3.143,y:10,width:27.54,height:2,rx:1})]})]})}),Cce=t({default:()=>wce}),wce=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M6 7H3.995A2.997 2.997 0 0 0 1 9.999V17A3 3 0 0 0 4.001 20H20A3 3 0 0 0 23 17.001V10A2.996 2.996 0 0 0 20.005 7H18l-1.443-2.164C16.25 4.374 15.547 4 15.003 4H8.997c-.55 0-1.242.368-1.554.836L6 7z`,id:`IcPhotosJobdetails-a`}),(0,K.jsx)(`mask`,{id:`IcPhotosJobdetails-c`,x:0,y:0,width:22,height:16,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcPhotosJobdetails-a`})}),(0,K.jsx)(`ellipse`,{id:`IcPhotosJobdetails-b`,cx:12,cy:13,rx:5,ry:5}),(0,K.jsx)(`mask`,{id:`IcPhotosJobdetails-d`,x:0,y:0,width:10,height:10,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcPhotosJobdetails-b`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`use`,{stroke:`#868F9A`,mask:`url(#IcPhotosJobdetails-c)`,strokeWidth:2,strokeLinejoin:`round`,xlinkHref:`#IcPhotosJobdetails-a`}),(0,K.jsx)(`use`,{stroke:`#868F9A`,mask:`url(#IcPhotosJobdetails-d)`,strokeWidth:2,xlinkHref:`#IcPhotosJobdetails-b`}),(0,K.jsx)(`circle`,{fill:`#868F9A`,cx:19,cy:11,r:1})]})]}),Tce=t({default:()=>Ece}),Ece=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 56 68`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`4em`,height:`4em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M50.799 49.799C55.866 44.732 59 37.732 59 30 59 14.536 46.464 2 31 2S3 14.536 3 30c0 7.732 3.134 14.732 8.201 19.799L31 69.598l19.799-19.799z`,id:`IcPin2-a`}),(0,K.jsx)(`mask`,{id:`IcPin2-b`,x:0,y:0,width:56,height:67.598,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcPin2-a`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-3 -2)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h62v70H0z`}),(0,K.jsx)(`use`,{strokeOpacity:.25,stroke:`#979797`,mask:`url(#IcPin2-b)`,fill:`#FF5722`,xlinkHref:`#IcPin2-a`})]})]}),Dce=t({default:()=>Oce}),Oce=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h36v36H0z`}),(0,K.jsx)(`path`,{fill:`#FFF`,d:`M27.042 4.414L4.415 27.041 3 25.627 25.628 3zM20.6 20.6a1.5 1.5 0 1 1-2.12-2.119 1.5 1.5 0 0 1 2.12 2.12zM5.398 28.026l1.061 1.06a2 2 0 0 0 2.829 0l4.95-4.948 6.717-1.061 2.122-2.122 1.06-6.718 4.95-4.95a2 2 0 0 0 0-2.827l-1.06-1.061L5.398 28.026zM24.136 22.015l-2.121 2.12 7.424 7.426a1.501 1.501 0 0 0 2.122-2.121l-7.425-7.425zM4 21.75a.747.747 0 0 1-.517-.206C.907 19.094.281 14.296.256 14.093a.75.75 0 0 1 1.488-.186c.006.044.587 4.471 2.773 6.549A.75.75 0 0 1 4 21.75M20.5 5.25a.745.745 0 0 1-.576-.271C18.253 2.972 18.25 1.074 18.25.994c.003-.414.333-.793.756-.744a.75.75 0 0 1 .744.751c.001.068.031 1.462 1.326 3.02A.748.748 0 0 1 20.5 5.25`})]})}),kce=t({default:()=>Ace}),Ace=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h36v36H0z`}),(0,K.jsxs)(`g`,{fill:`#FFF`,children:[(0,K.jsx)(`path`,{d:`M21.064 12.435a4.333 4.333 0 1 0-6.128 6.129 4.333 4.333 0 0 0 6.128-6.129`}),(0,K.jsx)(`path`,{d:`M27.192 6.308c-5.076-5.077-13.306-5.077-18.384 0-5.076 5.076-5.077 13.308 0 18.384L18 33.885l3.064-3.063-9.192-9.193c-3.383-3.384-3.385-8.871 0-12.255a8.664 8.664 0 0 1 12.256 0 8.665 8.665 0 0 1 0 12.256c-1.117 1.117-2.346 1.739-3.89 2.237l3.89 3.89 3.064-3.063c5.078-5.077 5.078-13.308 0-18.385`})]})]})}),jce=t({default:()=>Mce});function Mce(e){return(0,K.jsx)(`svg`,{width:`1.5em`,height:`1.5em`,viewBox:`0 0 34 34`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M9 9.29V8.07H7.024a1 1 0 01-.794-1.607L9 2.843h10.323v3.224h-5.137L12.162 7.36v1.93H9z`,fill:`#FFF`}),(0,K.jsx)(`path`,{fill:`#FFF`,d:`M7.483 9.206h6.266v1.823H7.483zM14.178 7.128h2.28v2.078l1.941 1.823-4.22-1.74zM13.07 11.817H8.486l-3.308 7.317a2 2 0 00-.178.824v9.92a2 2 0 002 2h11.114a2 2 0 002-2v-8.81a2 2 0 00-.908-1.676l-5.824-3.797-.312-3.778z`}),(0,K.jsx)(`path`,{d:`M19.72 4.647L26.305 1M19.764 4.976l7.594 2.152M23.207 4.298h4.15`,stroke:`#FFF`,strokeWidth:.6,strokeLinecap:`round`,strokeDasharray:1})]})})}var Nce=t({default:()=>Pce}),Pce=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h36v36H0z`}),(0,K.jsx)(`path`,{d:`M17.8 11.8c-.5-1.6-.5-2.8-.5-3 0-.2-.1-.3-.1-.5s.1-.5.1-.7c0-.1-.1-.3 0-.4v-.7c0-.3.2-.7.2-1.1 0-.1.1-.1 0-.2v.1-.1c0-.2.1-.4.1-.5 0-.4.2-.9.3-1.4.1-.1.1-.2.1-.3 0-.1.1-.1.1-.2 0 0-.1.1-.2.1.1-.3.3-.6.5-.8-.1 0-.1.2-.2.3.1-.1.2-.3.3-.4-.2.1-.4.5-.5.6 0-.1.1-.1.1-.2-.3.3-.4.8-.6 1.2v-.3c-.4.6-.4 1.1-.7 1.7-.1 0 0-.1 0-.1v-1c.1-.4.2-.7.2-1.1-.1.1-.1.2-.3.3-.1-.4 0-.7.1-1.1.1-.2.1-.3.3-.6 0-.1.1-.2.1-.2-.3.3-.6.7-.7 1.1-.1-.1.1-.4.1-.6-.3.3-.4.7-.6 1V2.1c0-.1-.1-.2-.1-.3 0-.2.1-.3.1-.4-.2.1-.1.4-.2.6-.1.2-.2.2-.3.4-.1.3-.1.6-.2.8v-.1c-.3-.1-.3-.1-.4 0v-.3c-.2.5-.5.6-.5 1.1 0 .3 0 .7-.3 1-.1-.3-.1-.7 0-1-.1.4-.3.7-.4 1.1-.3-.5-.5-1.6-.8-2.1V3c-.1-.1-.1-.3-.2-.4-.2.4 0 1.4 0 1.8.1.3-.1.5 0 .8v.3c0 .2 0 .3.1.4.2.5.4.7.6 1.3 0-.1-1.2-1.6-1.4-1.7 0 .1-.2-.3-.4-.4v.1c-.1-.2-.5-.8-.7-1-.1 0 0 0-.1.1-.1-.2-1-.8-1.1-.9v.1c-.1 0 0-.1-.1-.1s0-.2-.1-.2c0 .5.9 2.2 1 2.7h-.2c-.1 0 0-.1-.1-.1-.2.3.4.6.2.9-.1-.1-.2-.1-.2-.2 0 .1.1.2.1.3-.2 0-.2 0-.1.1-.2 0-.6-.5-.7-.5C9.3 6.3 7.7 5 7.2 5c-.1 0-.3.1-.4 0v.1h-.1c.1.3.9.9 1 1.2-.1 0-.3-.3-.4-.4 0 .1.3.4.4.5h-.1c.1.3.2.5.4.9 0 .2.1.3.2.5.1.1.1.2.1.3-.2 0-.3-.2-.6-.3-.1-.1-.4-.1-.5-.3-.4-.2-.5-.6-.9-.8-.1-.1-.3.4-.4.3-.2-.1-.5-.4-.6-.3-.1 0 0 .2-.1.2V7h-.7s.1 0 .1.1h-.4c.3.2 1.3.5 1.4.8-.1 0-.2-.1-.3.1-.2.2 1 1 1.1 1.2-.2.1-.4 0-.6.1-.2 0-.6-.3-.8-.3-.3-.3-.7-.2-.7-.5-.1.3.4.6.4 1-.3-.3-1.1-.7-1.1-.7l2.8 2.8c-.3-.1-3.5-1.3-3.8-1.4 0 .4.6.6.8 1.1 0 .1.9.9.9.9l-2.1-.4s3.1 1.9 3.4 2.2c-1.9-.6-3.5-.9-3.5-.9.1.3 1.3.8 1.5 1-.2.1-.7 0-.7 0l-1.3.1s2.9 1.1 3.2 1.2c-.3.3-.6.2-1 .2-.5 0-1-.1-1.5.1.1.1.2 0 .3 0 0 .1.6.2.5.2h.1c-.3.2-.8.1-1.2.6-.2 0-.4.1-.6.2.2 0 .3-.1.4-.1.1 0 .2.1.3.1h.6c-.3.1-.7.3-1 .5.1 0 .4-.1.5-.1-.2.1-.4.1-.6.3-.2.1-.3.3-.5.4.1 0 .3-.2.5-.3.1-.1.3-.1.5-.1.3-.1.7 0 1 0-.1.1-.2.1-.3.3.3 0 .7-.2 1.1-.2h.4c.3 0 .5-.1.8 0-.6.2-1.1.3-1.7.7h.2c-.3.3-.8.3-1.2.6.1 0 .1-.1.2-.1-.3.1-.6.3-.8.5.1-.1.3-.2.4-.3 0 .1-.1.1-.2.2.3-.1.5-.4.8-.4l-.1.1c.1 0 .1-.1.2-.1s.2-.1.4-.1c.1-.1.3-.1.5-.1.3-.1.6-.2.9-.2.2-.1.6-.2.7-.2 0 0 0 .1-.1 0 0 0 .1-.1.2 0 .2.1.5 0 .9-.1-.1 0-.3.2-.4.3.5-.2.5-.2.8-.2h.8c.2 0 .5-.1.7 0 0 0 .1 0 .1.1.6.2 1.8 0 3.5.3 1.158.124 2.939.624 4 .9l3.5-3.5c-.1-.3-.8-1.7-1.6-4.1zM31.6 29.4l-8-7.9-2.1 2.1 7.9 7.9c.6.6 1.5.6 2.1 0 .6-.5.6-1.5.1-2.1M20.454 16.918l-3.535 3.536 3.535 2.121 2.12-2.121z`,fill:`#FFF`})]})}),Fce=t({default:()=>Ice}),Ice=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h36v36H0z`}),(0,K.jsx)(`path`,{d:`M26.304 3.173L22.18 4.201 20.362 3.11l-7.277 1.814-1.093 1.818-4.124 1.03a1 1 0 0 0-.728 1.211l.484 1.94L28 5.842l-.484-1.94a.999.999 0 0 0-1.212-.729zM23 29.25a.75.75 0 0 1-1.5 0v-13.5a.75.75 0 0 1 1.5 0v13.5zm-4.25 0a.75.75 0 0 1-1.5 0v-13.5a.75.75 0 0 1 1.5 0v13.5zm-4.25 0a.75.75 0 0 1-1.5 0v-13.5a.75.75 0 0 1 1.5 0v13.5zM9 12v19.5a1.5 1.5 0 0 0 1.5 1.5h15a1.5 1.5 0 0 0 1.5-1.5V12H9z`,fill:`#FFF`})]})}),Lce=t({default:()=>Rce}),Rce=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h36v36H0z`}),(0,K.jsx)(`path`,{d:`M14.25 21a6.741 6.741 0 0 1-6.75-6.75 6.741 6.741 0 0 1 6.75-6.75A6.741 6.741 0 0 1 21 14.25 6.741 6.741 0 0 1 14.25 21zm9 0h-1.185l-.42-.405c1.875-2.181 2.798-5.191 2.148-8.377-.795-3.895-4.011-6.963-7.936-7.589A9.76 9.76 0 0 0 4.629 15.857c.626 3.925 3.694 7.141 7.589 7.936 3.186.65 6.196-.273 8.377-2.148l.405.42v1.185l7 6.987a1.58 1.58 0 0 0 2.233-.001l.003-.003a1.58 1.58 0 0 0 0-2.233l-6.986-7z`,fill:`#FFF`})]})}),zce=t({default:()=>Bce}),Bce=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h36v36H0z`}),(0,K.jsx)(`path`,{d:`M22.258 17.5h-4.5a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5zM29.25 26.5H1.75a.75.75 0 0 0 0 1.5h27.5a.75.75 0 0 0 0-1.5`,fill:`#FFF`}),(0,K.jsx)(`path`,{d:`M27 20H12.5a1 1 0 0 1-1-1s-.569-1.951 5.5-5c4.396-2.208 8.459-2 8.459-2a3 3 0 0 1 2.959 2.507L29 18a2 2 0 0 1-2 2m7.353-10.936l-3.072.615A3.101 3.101 0 0 0 28.5 8c-5.266 0-8.904.627-12.829 2.277l-.509-.897a.75.75 0 0 0-1.022-.282l-2.175 1.233a.75.75 0 0 0-.282 1.022l.39.689C5.022 16.075 1 23.63 1 24.5c0 .281.224.5.5.5h28.079c.269 0 .527-.109.715-.301l3.228-3.305c.293-.242.424-.628.339-.997l-2.141-9.276 2.927-.586a.749.749 0 0 0 .588-.882.747.747 0 0 0-.882-.589`,fill:`#FFF`})]})}),Vce=t({default:()=>Hce}),Hce=e=>(0,K.jsx)(`svg`,{width:`1.5em`,height:`1.5em`,viewBox:`0 0 32 32`,...e,children:(0,K.jsx)(`g`,{fill:`#FFF`,fillRule:`evenodd`,children:(0,K.jsx)(`path`,{d:`M12.78 24.566h-2.283v-.301a6.304 6.304 0 00-1.943-4.46 6.694 6.694 0 01-1.496-7.35 6.759
26.759 0 015.723-4.157v16.268zm7.833-10.42c-.414-3.339-3.063-5.966-6.42-6.369a8.106 8.106 0 00-.862-.048h-.011a7.333 7.333 0 00-6.77 4.517 7.26 7.26 0 001.615 7.945 5.73 5.73 0 011.782 4.08v.842H16.714v-.848a5.604 5.604 0 011.716-4.012 7.242 7.242 0 002.183-6.108zM13.111 30.486a1.486 1.486 0 01-1.027-.67h1.027v.67zm.22-.886h-1.594a1.69 1.69 0 001.594 1.12c.718 0 1.356-.45 1.596-1.12h-1.595zM12.78 27.927l-1.718-.011v-1.133h1.719v1.144zm.55-1.691h-2.818v1.68c0 .31.251.562.564.562h4.51a.565.565 0 00.565-.562v-1.68h-2.82zM13.56 5.936c.304 0 .55-.245.55-.547V1.734a.549.549 0 00-.55-.547.549.549 0 00-.55.547V5.39c0 .302.247.547.55.547M17.53 6.996a.556.556 0 00.505-.324l1.493-3.34a.547.547 0 00-.279-.722.552.552 0 00-.726.278l-1.496 3.338a.551.551 0 00.504.77M20.723 9.568a.548.548 0 00.368-.14l2.732-2.448a.54.54 0 00.042-.77.554.554 0 00-.777-.042l-2.732 2.446a.544.544 0 00.367.954M22.588 13.21a.51.51 0 00.17-.028l3.498-1.129a.543.543 0 00.352-.689.546.546 0 00-.691-.35l-3.498 1.13a.541.541 0 00-.352.688c.075.232.29.378.521.378M26.46 17.673c.28 0 .517-.21.548-.49a.551.551 0 00-.491-.602l-3.656-.383a.56.56 0 00-.605.488c-.031.302.189.571.49.602l3.657.383a.481.481 0 00.057.002M24.513 22.934c.19 0 .374-.098.478-.273a.55.55 0 00-.203-.748l-3.183-1.829a.557.557 0 00-.753.201.55.55 0 00.203.748l3.183 1.83c.086.047.18.071.275.071M20.584 26.953a.542.542 0 00.321-.105.54.54 0 00.123-.762l-2.16-2.96a.552.552 0 00-.768-.122.545.545 0 00-.123.764l2.162 2.957a.548.548 0 00.445.228`})})}),Uce=t({default:()=>Wce}),Wce=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`g`,{fill:`currentColor`,fillRule:`evenodd`,children:(0,K.jsx)(`path`,{d:`M18 27.5c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3zM13.3 9c0-2.6 2.1-4.7 4.7-4.7s4.7 2.1 4.7 4.7v7h-9.4V9zm15.2 7h-3V9c0-4.1-3.4-7.5-7.5-7.5S10.5 4.9 10.5 9v7h-3c-.8 0-1.5.7-1.5 1.5v14c0 .8.7 1.5 1.5 1.5h21c.8 0 1.5-.7 1.5-1.5v-14c0-.8-.7-1.5-1.5-1.5z`,fill:`currentColor`})})}),Gce=t({default:()=>Kce}),Kce=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h36v36H0z`}),(0,K.jsx)(`path`,{d:`M31.5 4.5c-.5-.6-1.5-.6-2.1-.1l-7.825 7.924a4.016 4.016 0 0 1 2.101 2.1L31.5 6.6c.6-.6.6-1.5 0-2.1M6.1 26.073c-.625-2.375 2.394-5.067 2.394-5.067s-.832 1.826-.832 4.237c0 2.125 1.342 3.83 1.342 3.83s-2.279-.625-2.904-3m20.404 1.75c1.472-.188 1.99-.659 2.499-1.284.05-2.266-.952-3.548-.952-3.548-.136-.23-.419-.286-.646-.12 0 0-2.299 1.59-4.551 1.712-1.541.083-2.62-.452-3.521-1.396-.437-.458-.76-1.382-.76-1.382s-.487 1.23-.569 1.968c-.268 2.414.8 3.9.8 3.9s-2.196-.867-2.3-4c-.143-4.266 4.733-6.755 6.015-8.005-.013-1.112-1.282-2.23-2.3-2.262-.825.062-9.55 1.15-13.677 5.01C1.362 23.261 2.817 27.7 4.304 29.6c1.465 1.871 5.883 2.837 8.5 2.073 2.244-.655 3.476-1.458 6-1 2.523.458 4.977 1.862 4.977 1.862.531.308 1.225.448 1.482.318 0 0 2.559-.959 3.541-4.165.026-.085.05-.169.072-.252-.617.528-1.189 1.135-3.272.787-2.083-.348-2.812-2.369-2.812-2.369s2.093 1.176 3.712.97`,fill:`#FFF`})]})}),qce=t({default:()=>Jce}),Jce=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M20.478 30.089c6.162-.246 11.26-5.344 11.505-11.505.25-6.25-4.35-11.531-10.326-12.37-.885-.124-1.664.6-1.664 1.494v.004c0 .757.567 1.372 1.316 1.483 4.872.722 8.505 5.386 7.523 10.619-.67 3.577-3.547 6.452-7.124 7.124-5.694 1.068-10.715-3.328-10.715-8.84h4.793a.5.5 0 0 0 .353-.853l-6.292-6.293a.502.502 0 0 0-.708 0l-6.292 6.293a.5.5 0 0 0 .353.854h4.793c0 6.76 5.667 12.262 12.485 11.99z`,fill:`#FFF`,fillRule:`evenodd`})}),Yce=t({default:()=>Xce}),Xce=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h36v36H0z`}),(0,K.jsx)(`path`,{d:`M34.978 27.356l-1.5-5c-.005-.015-.016-.026-.022-.04a.5.5 0 0 0-.18-.225.493.493 0 0 0-.092-.048c-.014-.006-.024-.017-.04-.022-.014-.004-.029 0-.042-.004a.507.507 0 0 0-.201 0c-.016.003-.03 0-.045.004-.016.005-.026.016-.041.023a.514.514 0 0 0-.164.108.475.475 0 0 0-.108.163c-.005.015-.017.026-.021.041L31.5 25.761l-1.021-3.405c-.005-.015-.017-.026-.023-.04a.417.417 0 0 0-.05-.094.439.439 0 0 0-.13-.13.45.45 0 0 0-.091-.049c-.015-.006-.026-.017-.041-.022-.014-.004-.027 0-.041-.004a.516.516 0 0 0-.203 0c-.014.003-.028 0-.043.004-.017.005-.027.016-.043.023a.514.514 0 0 0-.163.108.475.475 0 0 0-.107.163c-.006.015-.018.026-.023.041L28.5 25.761l-1.021-3.405c-.005-.015-.017-.026-.023-.04a.417.417 0 0 0-.05-.094.439.439 0 0 0-.13-.13.45.45 0 0 0-.091-.049c-.015-.006-.026-.017-.041-.022-.014-.004-.028 0-.041-.004a.516.516 0 0 0-.203 0c-.014.003-.028 0-.043.004-.017.005-.029.017-.043.023a.496.496 0 0 0-.27.271c-.006.015-.018.026-.023.041L25.5 25.761l-1.021-3.405c-.005-.016-.017-.026-.023-.04a.487.487 0 0 0-.273-.274c-.014-.005-.024-.016-.04-.02-.014-.005-.027-.002-.04-.005a.51.51 0 0 0-.203 0c-.014.003-.028 0-.043.004-.017.005-.029.017-.043.023a.496.496 0 0 0-.27.271c-.006.015-.018.026-.023.041L22.5 25.761l-1.021-3.405c-.005-.016-.017-.026-.023-.04a.487.487 0 0 0-.273-.274c-.014-.005-.024-.016-.04-.02-.014-.005-.027-.002-.04-.005a.51.51 0 0 0-.202 0c-.014.003-.03 0-.044.004-.017.005-.029.017-.043.023a.556.556 0 0 0-.165.11.454.454 0 0 0-.055.067.428.428 0 0 0-.05.094c-.006.015-.018.026-.023.041l-1.02 3.405-1.023-3.405c-.004-.016-.016-.028-.023-.044a.496.496 0 0 0-.272-.27c-.014-.006-.024-.017-.04-.02-.012-.005-.027-.002-.04-.005a.51.51 0 0 0-.207 0c-.014.003-.027 0-.04.004-.015.004-.025.015-.039.021a.46.46 0 0 0-.163.107.463.463 0 0 0-.11.163c-.006.016-.018.027-.024.044L16.5 25.76l-1.021-3.403c-.004-.016-.016-.028-.023-.044a.496.496 0 0 0-.274-.27c-.014-.006-.024-.017-.039-.02-.014-.005-.027-.002-.04-.005a.516.516 0 0 0-.207 0c-.014.003-.027 0-.04.004-.014.004-.024.015-.037.02a.494.494 0 0 0-.275.271c-.007.016-.019.027-.024.044L13.5 25.76l-1.021-3.403c-.004-.016-.016-.028-.023-.044a.496.496 0 0 0-.274-.27c-.014-.006-.024-.017-.039-.02-.014-.005-.027-.002-.04-.005a.5.5 0 0 0-.207 0c-.014.003-.027 0-.04.004-.014.004-.024.015-.037.02a.48.48 0 0 0-.275.271c-.007.016-.019.027-.024.044L10.5 25.76l-1.021-3.403c-.004-.016-.016-.028-.023-.044a.496.496 0 0 0-.274-.27c-.014-.006-.024-.017-.039-.02-.013-.005-.026-.002-.04-.005a.507.507 0 0 0-.207 0c-.013.003-.027 0-.04.004-.014.004-.024.015-.038.021a.498.498 0 0 0-.226.182.496.496 0 0 0-.048.088c-.007.016-.019.028-.024.044L7.5 25.76l-1.021-3.403c-.005-.016-.016-.028-.024-.044a.496.496 0 0 0-.272-.27c-.014-.006-.024-.017-.04-.02-.013-.005-.026-.002-.04-.005a.51.51 0 0 0-.207 0c-.013.003-.026 0-.04.004-.014.004-.024.015-.038.021a.46.46 0 0 0-.164.107.463.463 0 0 0-.11.163c-.006.016-.018.027-.023.044L4.5 25.76l-1.022-3.403c-.004-.016-.016-.028-.023-.044a.496.496 0 0 0-.272-.27c-.014-.006-.024-.017-.04-.02-.013-.005-.026-.002-.04-.005a.516.516 0 0 0-.208 0c-.013.003-.026 0-.038.004-.015.004-.025.015-.039.02a.48.48 0 0 0-.273.271c-.007.015-.02.027-.024.044l-1.5 5a.5.5 0 1 0 .958.287l1.02-3.403 1.022 3.403c.003.01.014.015.018.025a.485.485 0 0 0 .159.225c.01.01.022.011.034.02.04.024.077.051.124.065a.478.478 0 0 0 .288 0c.046-.014.085-.04.123-.066.012-.008.024-.01.035-.019a.485.485 0 0 0 .16-.225c.003-.01.014-.015.017-.025l1.02-3.403 1.022 3.403c.003.01.014.015.018.025a.485.485 0 0 0 .159.225c.01.01.022.011.034.02.04.024.077.051.124.065a.478.478 0 0 0 .288 0c.046-.014.085-.04.123-.066.012-.008.024-.01.035-.019a.485.485 0 0 0 .16-.225c.003-.01.014-.015.017-.025l1.02-3.403 1.021 3.403c.005.01.014.015.019.025a.485.485 0 0 0 .159.225c.01.01.022.011.034.02.04.024.078.051.125.065a.478.478 0 0 0 .287 0c.046-.014.085-.04.123-.066.013-.008.024-.01.036-.019a.485.485 0 0 0 .158-.225c.005-.01.014-.015.018-.025l1.02-3.403 1.021 3.403c.005.01.014.015.019.025a.485.485 0 0 0 .159.225c.01.01.022.011.034.02.04.024.078.051.125.065a.478.478 0 0 0 .287 0c.046-.014.085-.04.123-.066.013-.008.024-.01.036-.019a.485.485 0 0 0 .158-.225c.005-.01.014-.015.018-.025l1.02-3.403 1.021 3.403c.005.01.015.015.018.025a.485.485 0 0 0 .16.225c.01.01.023.011.035.02.038.024.076.051.123.065a.478.478 0 0 0 .287 0c.047-.014.085-.04.124-.066.012-.008.024-.01.035-.019a.485.485 0 0 0 .16-.225c.003-.01.014-.015.017-.025L18 24.24l1.021 3.403c.003.01.014.014.017.024a.49.49 0 0 0 .16.227c.01.008.023.01.034.018.04.025.078.052.125.066a.478.478 0 0 0 .287 0c.047-.014.086-.04.125-.066.01-.008.023-.01.
2033-.018a.498.498 0 0 0 .16-.228c.003-.009.014-.013.017-.023l1.02-3.405 1.023 3.405c.003.01.013.014.016.023a.503.503 0 0 0 .16.228c.01.008.023.01.034.018.038.025.078.052.125.066a.478.478 0 0 0 .287 0c.047-.014.086-.04.125-.066.01-.008.023-.01.033-.018a.498.498 0 0 0 .16-.228c.003-.009.014-.013.017-.023l1.02-3.405 1.023 3.405c.003.01.013.014.016.023a.503.503 0 0 0 .16.228c.01.008.023.01.034.018.038.025.078.052.125.066a.478.478 0 0 0 .287 0c.047-.014.086-.04.125-.066.01-.008.023-.01.033-.018a.498.498 0 0 0 .16-.228c.003-.009.014-.013.017-.023l1.02-3.405 1.023 3.405c.003.01.013.014.016.023a.503.503 0 0 0 .16.228c.01.008.023.01.034.018.038.025.078.052.125.066a.478.478 0 0 0 .287 0c.047-.014.086-.04.125-.066.01-.008.023-.01.033-.018a.498.498 0 0 0 .16-.228c.003-.009.014-.013.017-.023l1.02-3.405 1.023 3.405c.003.01.013.014.016.023a.503.503 0 0 0 .16.228c.01.008.023.01.034.018.038.025.078.052.125.066a.478.478 0 0 0 .287 0c.047-.014.086-.04.125-.066.01-.008.023-.01.033-.018a.498.498 0 0 0 .16-.228c.003-.009.014-.013.017-.023l1.02-3.405 1.023 3.405a.5.5 0 1 0 .956-.287M33.25 17.5H5.387c.352-2.103 2.26-4.633 4.14-5.335l.824 1.3c.261.481.81.577 1.219.215l1.185-1.048a1.154 1.154 0 0 1 1.489 0l1.185 1.048c.409.362 1.08.362 1.489 0l1.185-1.048a1.154 1.154 0 0 1 1.489 0l1.184 1.048c.41.362 1.081.362 1.49 0l1.184-1.048a1.155 1.155 0 0 1 1.49 0l1.185 1.048c.409.362 1.08.362 1.489 0l1.184-1.048a1.155 1.155 0 0 1 1.49 0l1.184 1.048c.412.364 1.089.378 1.47-.029 0 0 1.058-.47 1.058-3.06C34 8 33.109 8 30.435 8H13C4.839 8 1.721 15.396 1.213 19.307A1.501 1.501 0 0 0 2.7 21h30.55a1.75 1.75 0 1 0 0-3.5`,fill:`#FFF`})]})}),Zce=t({default:()=>Qce}),Qce=e=>(0,K.jsx)(`svg`,{width:`1.5em`,height:`1.5em`,...e,viewBox:`0 0 36 36`,children:(0,K.jsxs)(`g`,{id:`ic_pin_lighton-copy`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`rect`,{id:`Rectangle-3`,x:`0`,y:`0`,width:`36`,height:`36`}),(0,K.jsx)(`polygon`,{id:`Rectangle-8`,fill:`#FFFFFF`,transform:`translate(17.353553, 18.000000) rotate(45.000000) translate(-17.353553, -18.000000) `,points:`15 0.692307692 15.8825825 2.07692308 16.4709709 0 17.3535534 2.07692308 18.2361359 0 18.8245243 2.07692308 19.7071068 0.692307692 19.7071068 35.3076923 18.8245243 33.9230769 18.2361359 36 17.3535534 33.9230769 16.4709709 36 15.8825825 33.9230769 15 35.3076923`}),(0,K.jsx)(`polygon`,{id:`Rectangle-8-Copy-3`,fill:`#FFFFFF`,transform:`translate(17.500000, 18.000000) rotate(-45.000000) translate(-17.500000, -18.000000) `,points:`15 0.692307692 15.9375 2.07692308 16.5625 0 17.5 2.07692308 18.4375 0 19.0625 2.07692308 20 0.692307692 20 35.3076923 19.0625 33.9230769 18.4375 36 17.5 33.9230769 16.5625 36 15.9375 33.9230769 15 35.3076923`})]})}),$ce=t({default:()=>ele}),ele=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h36v36H0z`}),(0,K.jsx)(`path`,{d:`M21.188 12.665a.707.707 0 0 0 .682-.896l-.942-3.418 2.488-2.102a.708.708 0 1 0-.457-1.25h-3.062l-1.24-3.095c-.215-.538-1.1-.538-1.315 0l-1.238 3.095h-3.062a.709.709 0 0 0-.458 1.249l2.488 2.107-.942 3.382a.708.708 0 0 0 1.116.75l2.752-2.132 2.753 2.159a.7.7 0 0 0 .437.15zM9.417 21.014a.7.7 0 0 0 .83.032.706.706 0 0 0 .29-.778l-.943-3.417 2.488-2.102a.712.712 0 0 0 .208-.784.706.706 0 0 0-.665-.466H8.563l-1.238-3.095c-.217-.539-1.1-.539-1.317 0L4.77 13.5H1.708a.707.707 0 1 0-.458 1.249l2.488 2.107-.942 3.382a.707.707 0 0 0 1.116.75l2.752-2.133 2.753 2.16zM34.957 13.965a.708.708 0 0 0-.665-.466H31.23l-1.238-3.095c-.216-.538-1.1-.538-1.316 0l-1.239 3.095h-3.06a.708.708 0 0 0-.459 1.249l2.487 2.108-.94 3.38a.708.708 0 0 0 1.115.75l2.751-2.131 2.754 2.159a.7.7 0 0 0 .83.032.707.707 0 0 0 .29-.777l-.943-3.417 2.488-2.103a.711.711 0 0 0 .208-.784M30.042 26.25H26.98l-1.238-3.097c-.217-.538-1.101-.538-1.317 0l-1.238 3.096h-3.062a.707.707 0 1 0-.458 1.249l2.488 2.107-.942 3.381a.71.71 0 0 0 1.116.75l2.752-2.132 2.753 2.16a.706.706 0 0 0 .829.032.706.706 0 0 0 .29-.778l-.942-3.417 2.488-2.102a.712.712 0 0 0 .208-.784.706.706 0 0 0-.665-.466M15.875 26.25h-3.062l-1.238-3.097c-.217-.538-1.1-.538-1.317 0L9.02 26.25H5.958a.707.707 0 1 0-.458 1.249l2.488 2.107-.942 3.381
2a.71.71 0 0 0 1.116.75l2.752-2.132 2.753 2.16a.706.706 0 0 0 .83.032.706.706 0 0 0 .29-.778l-.943-3.417 2.488-2.102a.712.712 0 0 0 .208-.784.706.706 0 0 0-.665-.466`,fill:`#FFF`})]})}),tle=t({default:()=>nle}),nle=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 32 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-2-6h36v36H-2z`}),(0,K.jsx)(`path`,{d:`M31.2 12H28c0-6.6-5.4-12-12-12-1.6 0-3.1.3-4.5.9-1 .4-1.2 1.7-.5 2.4.4.4 1 .6 1.6.3 1.1-.4 2.2-.6 3.4-.6 5 0 9 4 9 9h-3.3c-.4 0-.7.5-.4.9l4.8 4.8c.2.2.5.2.7 0l4.8-4.8c.3-.3.1-.9-.4-.9M19.4 20.4c-1 .4-2.2.6-3.3.6-5 0-9-4-9-9h3.3c.4 0 .7-.5.4-.9L6 6.3c-.2-.2-.5-.2-.7 0L.5 11.1c-.5.4-.2.9.2.9H4c0 6.6 5.4 12 12 12 1.6 0 3.1-.3 4.5-.9 1-.4 1.2-1.7.5-2.4-.4-.4-1-.6-1.6-.3`,fill:`#FFF`})]})}),rle=t({default:()=>ile}),ile=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h36v36H0z`}),(0,K.jsx)(`path`,{d:`M31.5 4.5c-.5-.6-1.5-.6-2.1-.1l-7.825 7.924a4.016 4.016 0 0 1 2.101 2.1L31.5 6.6c.6-.6.6-1.5 0-2.1zM20.005 23.913l.9-2.316-6.502-6.502-2.316.9zM21.408 20.379l.98-2.47c.713-2.612-1.684-5.01-4.297-4.297l-2.47.98 5.787 5.787zM10.869 16.498L1.999 20c0 1.13.133 2.214.36 3.253 1.232-.056 2.864-.122 2.839-.174l-2.326 1.94a13.507 13.507 0 0 0 2.41 4.188c1.336-.552 3.165-1.56 3.117-1.607l-1.576 3.144a13.493 13.493 0 0 0 4.09 2.36c.858-1.042 2.197-2.486 2.138-2.504l-.28 3.046c1.033.225 2.109.354 3.229.254l3.502-8.769-8.633-8.633z`,fill:`#FFF`})]})}),ale=t({default:()=>ole}),ole=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 36h36V0H0z`}),(0,K.jsx)(`path`,{d:`M14 27.5c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M25.022 1.562c-3.783.48-6.522 3.878-6.522 7.691V16h-15c-.825 0-1.5.675-1.5 1.5v14c0 .825.675 1.5 1.5 1.5h21c.825 0 1.5-.675 1.5-1.5v-14c0-.825-.675-1.5-1.5-1.5h-3.15V9.205c0-2.427 1.771-4.598 4.187-4.833A4.655 4.655 0 0 1 30.65 9v5.575a1.425 1.425 0 0 0 2.85 0V9a7.505 7.505 0 0 0-8.478-7.438`,fill:`#FFF`})]})}),sle=t({default:()=>cle}),cle=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h36v36H0z`}),(0,K.jsx)(`path`,{d:`M33.003 31h-1.976l-6.034-19.938a1.017 1.017 0 0 0-1.237-.707.983.983 0 0 0-.698 1.219L29 31h-2.003A.996.996 0 0 0 26 32c0 .552.453 1 .997 1h6.006A.996.996 0 0 0 34 32c0-.552-.453-1-.997-1M7 31a3 3 0 1 1 0-6 3 3 0 0 1 0 6m0-8a5 5 0 1 0 .001 10.001A5 5 0 0 0 7 23`,fill:`#FFF`}),(0,K.jsx)(`path`,{d:`M9 18H6a2 2 0 0 0-2 2v2.237a6.471 6.471 0 0 1 3-.737 6.5 6.5 0 0 1 6.183 8.5H23a1 1 0 0 0 1-1c0-6.075-8.925-11-15-11M17.436 13.932c1.748.803 2.695 1.339 3.014 2.382.38 1.247-.203 2.003-.84 3.046a.749.749 0 1 0 1.28.78c.8-1.31 1.549-2.445.994-4.264-.454-1.49-1.636-2.303-3.82-3.307-3.54-1.628-4.565-2.708-4.565-4.82 0-2.541 1.708-4.25 4.25-4.25 3.02 0 4.75 1.733 4.75 4.75a.75.75 0 0 0 1.5 0C24 4.396 21.607 2 17.75 2 14.366 2 12 4.366 12 7.75c0 3.114 1.832 4.525 5.437 6.183M18.085 31a1.5 1.5 0 1 0 2.829 0h-2.829z`,fill:`#FFF`})]})}),lle=t({default:()=>ule}),ule=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 36h36V0H0z`}),(0,K.jsx)(`path`,{d:`M26.5 6.999h-5a.501.501 0 0 1-.5-.5c0-.275.225-.5.5-.5h5c.275 0 .5.225.5.5s-.225.5-.5.5m-11.5 1c-.825 0-1.5-.675-1.5-1.5s.675-1.5 1.5-1.5 1.5.675 1.5 1.5-.675 1.5-1.5 1.5m-4.5 0c-.825 0-1.5-.675-1.5-1.5s.675-1.5 1.5-1.5 1.5.675 1.5 1.5-.675 1.5-1.5 1.5m-2.499-5A2 2 0 0 0 6 5V9.5h24V5.013a2 2 0 0 0-1.999-2L8.001 3zM18 12.999c4.965 0 9 4.035 9 9s-4.035 9-9 9-9-4.035-9-9 4.035-9 9-9m-10 20h20a2 2 0 0 0 2-2v-20H6v20a2 2 0 0 0 2 2`,fill:`#FFF`}),(0,K.jsx)(`path`,{d:`M21 20.999c1.709 0 3.105.674 3.988 1.24.003-.08.012-.16.012-.24a7 7 0 0 0-7-7c-3.788 0-6.865 3.01-6.988 6.768.875.565 2.26 1.232 3.988 1.232 2.984 0 3.78-2 6-2`,fill:`#FFF`})]})}),dle=t({default:()=>fle}),fle=e=>(0,K.jsx)(`svg`,{width:`1.5em`,height:`1.5em`,viewBox:`0 0 34 34`,...e,children:(0,K.jsx)(`path`,{d:`M19.5 28.746a.801.801 0 01-.312.061.826.826 0 01-.763-.532c-.172-.44.03-.94.453-1.118 3.969-1.68 3.828-6.407 3.82-6.608-.018-.473.334-.873.789-.894h.035c.438 0 .803.357.825.816.011.25.216 6.133-4.846 8.275m5.086-12.51c-.73-1.305-1.657-2.5-2.587-3.669-2.286-2.86-4.25-5.9-5.234-9.522-.273-1.008-.497-2.03-.741-3.045-.674 3.678-1.963 7.027-4.08 10.005-1.365 1.927-2.897 3.737-4.162 5.73C5.5 19.333 5.4 23.141 7.548 26.81c2.2 3.757 5.595 5.398 9.783 4.843 7.179-.949 10.75-9.152 7.256-15.417`,fill:`#FFF`,fillRule:`evenodd`})}),ple=t({default:()=>mle}),mle=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 36 36`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 36h36V0H0z`}),(0,K.jsx)(`path`,{d:`M25.941 27.965c-1.312.532-3.107.387-4.238.387l-9.546-1.343c-.566 0-1.132-.424-1.132-.99 0-.283.071-.637.283-.85.212-.211.425-.282.707-.282l4.314-.353c.212-.071.424-.142.495-.354.07-.212 0-.424-.212-.636l-9.829-7.425a.776.776 0 0 1-.424-.707c0-.283 0-.565.141-.848.353-.495 1.061-.637 1.485-.354l7.283 4.738c.283.14.566.14.707-.142.212-.212.142-.565 0-.707l-7.283-7.283c-.495-.354-.495-1.061-.07-1.485a1.11 1.11 0 0 1 1.555 0l7.354 7.354c.212.212.495.212.707 0 .212-.212.212-.495.141-.707l-4.454-7c-.354-.495-.213-1.203.353-1.485.283-.142.495-.213.85-.142.282 0 .494.212.635.495l5.515 7.92c.213.212.425.283.637.212.212-.071.353-.354.353-.636l-1.202-5.445c-.14-.566.212-1.202.778-1.344.283 0 .566 0 .85.142.211.212.423.424.494.778l1.485 4.737c.282.99.848 1.98 1.555 2.687 2.393 2.393 2.856 3.754 3.231 6.316l4.437 2.82C33.782 20.668 32 17.779 32 14c0-3.1.6-7.5 1-9 .1-.4 0-.8-.3-1-1-.8-3.6-2-6.6-2-6.1 0-8 2-12 2-3.1 0-7-.8-8.8-1.5-.5-.2-1.1 0-1.3.5-.6 1.2-2 3.2-2 6 0 5.9 2 10 2 14 0 3-.5 6.7-1 7.9-.1.4 0 .8.3 1.1 1 .8 3.7 2 6.6 2 5.9 0 8-1 12-1 3.2 0 7.3.6 9 1 .272.068.583-.011.822-.19l-5.78-5.845z`,fill:`#FFF`})]})}),hle=t({default:()=>gle}),gle=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 38 46`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M32.435 32.435A18.94 18.94 0 0 0 38 19C38 8.507 29.493 0 19 0S0 8.507 0 19a18.94 18.94 0 0 0 5.565 13.435L19 45.87l13.435-13.435zM11.352 12.059a.504.504 0 0 1 .002-.705.494.494 0 0 1 .705-.002l2.832 2.832a.504.504 0 0 1-.002.705.494.494 0 0 1-.705.002l-2.832-2.832zm.002 11.83a.494.494 0 0 1-.002-.705l2.832-2.832a.504.504 0 0 1 .705.002.494.494 0 0 1 .002.705l-2.832 2.832a.504.504 0 0 1-.705-.002zm9-9a.494.494 0 0 1-.002-.705l2.832-2.832a.504.504 0 0 1 .705.002.494.494 0 0 1 .002.705l-2.832 2.832a.504.504 0 0 1-.705-.002zM8 17.5c0-.276.215-.5.498-.5h4.004c.275 0 .498.232.498.5 0 .276-.215.5-.498.5H8.498A.504.504 0 0 1 8 17.5zm9.5-4.5a.494.494 0 0 1-.5-.498V8.498c0-.275.232-.498.5-.498.276 0 .5.215.5.498v4.004a.504.504 0 0 1-.5.498zm.852 5.016a.264.264 0 0 0-.337.336l2.632 7.369a.264.264 0 0 0 .435.097l1.655-1.656 3.236 3.235c.104.104.27.102.372 0l1.052-1.053a.264.264 0 0 0 0-.372l-3.235-3.234 1.656-1.657a.264.264 0 0 0-.097-.433l-7.369-2.632z`,id:`IcPinclickFre-a`}),(0,K.jsx)(`mask`,{id:`IcPinclickFre-b`,x:0,y:0,width:38,height:45.87,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcPinclickFre-a`})})]}),(0,K.jsx)(`use`,{mask:`url(#IcPinclickFre-b)`,xlinkHref:`#IcPinclickFre-a`,stroke:`#FFF`,strokeWidth:2,fill:`#FFF`,fillRule:`evenodd`})]}),_le=t({default:()=>vle}),vle=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 38 46`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M32.435 32.435A18.94 18.94 0 0 0 38 19C38 8.507 29.493 0 19 0S0 8.507 0 19a18.94 18.94 0 0 0 5.565 13.435L19 45.87l13.435-13.435zM11.352 12.059a.504.504 0 0 1 .002-.705.494.494 0 0 1 .705-.002l2.832 2.832a.504.504 0 0 1-.002.705.494.494 0 0 1-.705.002l-2.832-2.832zm.002 11.83a.494.494 0 0 1-.002-.705l2.832-2.832a.504.504 0 0 1 .705.002.494.494 0 0 1 .002.705l-2.832 2.832a.504.504 0 0 1-.705-.002zm9-9a.494.494 0 0 1-.002-.705l2.832-2.832a.504.504 0 0 1 .705.002.494.494 0 0 1 .002.705l-2.832 2.832a.504.504 0 0 1-.705-.002zM8 17.5c0-.276.215-.5.498-.5h4.004c.275 0 .498.232.498.5 0 .276-.215.5-.498.5H8.498A.504.504 0 0 1 8 17.5zm9.5-4.5a.494.494 0 0 1-.5-.498V8.498c0-.275.232-.498.5-.498.276 0 .5.215.5.498v4.004a.504.504 0 0 1-.5.498zm.852 5.016a.264.264 0 0 0-.337.336l2.632 7.369a.264.264 0 0 0 .435.097l1.655-1.656 3.236 3.235c.104.104.27.102.372 0l1.052-1.053a.264.264 0 0 0 0-.372l-3.235-3.234 1.656-1.657a.264.264 0 0 0-.097-.433l-7.369-2.632z`,fill:`#FFF`,fillRule:`evenodd`})}),yle=t({default:()=>ble}),ble=({color:e,...t})=>(0,K.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...t,color:e||`#36ACB2`,children:(0,K.jsxs)(`g`,{id:`icons/ic_add`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{id:`Oval-2`,
2stroke:`currentColor`,cx:`12.5`,cy:`12.5`,r:`7.5`}),(0,K.jsx)(`rect`,{id:`Rectangle-55`,fill:`currentColor`,x:`12`,y:`8`,width:`1`,height:`9`,rx:`0.5`}),(0,K.jsx)(`rect`,{id:`Rectangle`,fill:`currentColor`,x:`8`,y:`12`,width:`9`,height:`1`,rx:`0.5`})]})}),xle=t({default:()=>Sle}),Sle=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 14 14`,width:`1em`,height:`1em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-5-5h24v24H-5z`}),(0,K.jsx)(`path`,{d:`M8 8v5.01c0 .546-.444.99-1 .99a1 1 0 0 1-1-.99V8H.99A.993.993 0 0 1 0 7a1 1 0 0 1 .99-1H6V.99C6 .445 6.444 0 7 0a1 1 0 0 1 1 .99V6h5.01c.546 0 .99.444.99 1a1 1 0 0 1-.99 1H8z`,fillOpacity:.9,fill:Wp})]})}),Cle=t({default:()=>wle}),wle=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M9.979 7.829l-.015-6.82a1 1 0 1 0-2 0l.015 6.82H.993a.997.997 0 0 0-.993 1c0 .556.445 1 .993 1h6.99l.015 6.99a1 1 0 1 0 2 0l-.015-6.99h7.024a.997.997 0 0 0 .993-1c0-.556-.445-1-.993-1H9.979z`,fill:Wp,fillRule:`evenodd`})}),Tle=t({default:()=>Ele}),Ele=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1em`,height:`1em`,...e,children:(0,K.jsx)(`path`,{d:`M9.979 7.829l-.015-6.82a1 1 0 1 0-2 0l.015 6.82H.993a.997.997 0 0 0-.993 1c0 .556.445 1 .993 1h6.99l.015 6.99a1 1 0 1 0 2 0l-.015-6.99h7.024a.997.997 0 0 0 .993-1c0-.556-.445-1-.993-1H9.979z`,fill:`#FFF`,fillRule:`evenodd`})}),Dle=t({default:()=>Ole}),Ole=()=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`13`,height:`13`,viewBox:`0 0 13 13`,children:(0,K.jsxs)(`g`,{transform:`translate(-713 -613)`,children:[(0,K.jsxs)(`g`,{fill:`#fff`,stroke:Wp,transform:`translate(713 615)`,children:[(0,K.jsx)(`rect`,{stroke:`none`,width:`13`,height:`8`}),(0,K.jsx)(`rect`,{fill:`none`,x:`0.5`,y:`0.5`,width:`12`,height:`7`})]}),(0,K.jsxs)(`g`,{fill:`#fff`,stroke:Wp,transform:`translate(715 620)`,children:[(0,K.jsx)(`rect`,{stroke:`none`,width:`9`,height:`6`}),(0,K.jsx)(`rect`,{fill:`none`,x:`0.5`,y:`0.5`,width:`8`,height:`5`})]}),(0,K.jsxs)(`g`,{fill:`#fff`,stroke:Wp,transform:`translate(715 613)`,children:[(0,K.jsx)(`rect`,{stroke:`none`,width:`9`,height:`3`}),(0,K.jsx)(`rect`,{fill:`none`,x:`0.5`,y:`0.5`,width:`8`,height:`2`})]}),(0,K.jsxs)(`g`,{fill:`#fff`,stroke:Wp,transform:`translate(715 617)`,children:[(0,K.jsx)(`rect`,{stroke:`none`,width:`2`,height:`1`}),(0,K.jsx)(`rect`,{fill:`none`,x:`0.5`,y:`0.5`,width:`1`})]})]})}),kle=t({default:()=>Ale}),Ale=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 18 20`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M17 7a5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5 5 5 0 0 1 5 5z`,id:`IcProfile-a`}),(0,K.jsx)(`mask`,{id:`IcProfile-c`,x:0,y:0,width:10,height:10,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcProfile-a`})}),(0,K.jsx)(`path`,{d:`M3 22v-2.006A6.001 6.001 0 0 1 8.994 14h6.012A6.001 6.001 0 0 1 21 19.994V22`,id:`IcProfile-b`}),(0,K.jsx)(`mask`,{id:`IcProfile-d`,x:0,y:0,width:18,height:8,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcProfile-b`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-3 -2)`,stroke:`currentColor`,strokeWidth:2,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`use`,{mask:`url(#IcProfile-c)`,strokeLinejoin:`round`,xlinkHref:`#IcProfile-a`}),(0,K.jsx)(`use`,{mask:`url(#IcProfile-d)`,xlinkHref:`#IcProfile-b`})]})]}),jle=t({default:()=>Mle}),Mle=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M1 1h22v22H1z`}),(0,K.jsx)(`path`,{d:`M10.167 14.75S8.792 14.292 8.792 12c-.757 0-.757-1.833 0-1.833 0-.307-1.375-3.667.916-3.209.459-1.833 5.5-1.833 5.959 0 .318 1.273-.459 2.983-.459 3.209.758 0 .758 1.833 0 1.833 0 2.292-1.375 2.75-1.375 2.75v2.292c2.27.851 4.52 1.555 5.67 2.36A10.508 10.508 0 0 0 22.543 12c0-5.823-4.72-10.542-10.542-10.542C6.177 1.458 1.458 6.178 1.458 12a10.51 10.51 0 0 0 3.048 7.413c1.22-.843 3.623-1.6 5.66-2.371V14.75z`,stroke:`#6B757F`,strokeLinejoin:`round`}),(0,K.jsx)(`path`,{d:`M4.506 19.413A10.51 10.51 0 0 0 12 22.542c2.936 0 5.59-1.201 7.503-3.14`,stroke:`#6B757F`,strokeLinejoin:`round`})]})}),Nle=t({default:()=>Ple}),Ple=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 24 22`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{stroke:`currentColor`,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,K.jsx)(`path`,{d:`M3.5 9v12.5h6v-7h5v7h6V9`}),(0,K.jsx)(`path`,{d:`M.5 11.5L12 0l11.5 11.5`})]})}),Fle=t({default:()=>Ile}),Ile=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 18 22`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M0 1.991C0 .891.893 0 1.995 0h14.01C17.107 0 18 .89 18 1.991V20.01c0 1.1-.893 1.991-1.995 1.991H1.995A1.992 1.992 0 0 1 0 20.009V1.99z`,id:`IcReceipts-a`}),(0,K.jsx)(`mask`,{id:`IcReceipts-b`,x:0,y:0,width:18,height:22,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcReceipts-a`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-3-1h24v24H-3z`}),(0,K.jsx)(`use`,{mask:`url(#IcReceipts-b)`,xlinkHref:`#IcReceipts-a`,stroke:`#6B757F`,strokeWidth:2}),(0,K.jsx)(`path`,{fill:`#6B757F`,d:`M4 8h10v1H4zM6 5h8v1H6zM5 11h9v1H5zM4 14h10v1H4zM9 17h5v1H9z`})]})]}),Lle=t({default:()=>Rle}),Rle=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 154 28`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`rect`,{fillOpacity:.5,fill:`#000`,width:154,height:28,rx:14}),(0,K.jsx)(`rect`,{fillOpacity:.8,fill:`#333`,width:154,height:28,rx:14}),(0,K.jsx)(`path`,{d:`M37.148 18h1.862v-4.046h1.19L42.818 18h2.016l-2.814-4.326c1.246-.322 2.226-1.12 2.226-2.688v-.056c0-2.044-1.54-2.94-3.738-2.94h-3.36V18zm1.862-5.376V9.432h1.498c1.19 0 1.904.392 1.904 1.54v.056c0 1.064-.658 1.596-1.904 1.596H39.01zm10.388 5.516c1.876 0 3.122-.84 3.36-2.38H51.12c-.126.714-.658 1.12-1.68 1.12-1.26 0-1.96-.784-2.016-2.17h5.362v-.49c0-2.618-1.638-3.696-3.458-3.696-2.086 0-3.64 1.512-3.64 3.78v.112c0 2.31 1.554 3.724 3.71 3.724zm-1.946-4.564c.168-1.134.854-1.82 1.876-1.82 1.05 0 1.694.56 1.778 1.82h-3.654zm6.846 6.93h1.694v-3.654c.392.714 1.232 1.288 2.394 1.288 1.89 0 3.248-1.428 3.248-3.78v-.112c0-2.366-1.414-3.724-3.248-3.724-1.078 0-1.988.63-2.394 1.33v-1.176h-1.694v9.828zm3.668-3.71c-1.232 0-2.03-.77-2.03-2.408v-.112c0-1.624.84-2.422 2.016-2.422 1.106 0 1.946.798 1.946 2.422v.112c0 1.568-.686 2.408-1.932 2.408zM63.202 18h1.694V7.29h-1.694V18zm5.67.14c1.12 0 1.764-.406 2.24-1.036V18h1.666v-4.802c0-2.002-1.288-2.674-2.926-2.674-1.638 0-2.996.714-3.136 2.422h1.638c.084-.728.518-1.148 1.4-1.148.994 0 1.33.49 1.33 1.47v.378h-.91c-2.1 0-3.752.616-3.752 2.324 0 1.526 1.106 2.17 2.45 2.17zm.406-1.218c-.84 0-1.176-.406-1.176-1.022 0-.896.826-1.19 2.114-1.19h.868v.728c0 .938-.77 1.484-1.806 1.484zm8.652 1.218c1.988 0 3.262-1.19 3.388-2.87h-1.554c-.098 1.036-.868 1.568-1.764 1.568-1.246 0-2.03-.84-2.03-2.436v-.112c0-1.512.826-2.408 1.988-2.408.896 0 1.54.406 1.68 1.386h1.638c-.196-2.016-1.722-2.744-3.346-2.744-2.044 0-3.696 1.47-3.696 3.794v.112c0 2.338 1.596 3.71 3.696 3.71zm8.064 0c1.876 0 3.122-.84 3.36-2.38h-1.638c-.126.714-.658 1.12-1.68 1.12-1.26 0-1.96-.784-2.016-2.17h5.362v-.49c0-2.618-1.638-3.696-3.458-3.696-2.086 0-3.64 1.512-3.64 3.78v.112c0 2.31 1.554 3.724 3.71 3.724zm-1.946-4.564c.168-1.134.854-1.82 1.876-1.82 1.05 0 1.694.56 1.778 1.82h-3.654zM94.366 18h1.862v-3.808h1.4c2.142 0 3.668-.938 3.668-3.052v-.056c0-2.1-1.47-3.094-3.71-3.094h-3.22V18zm1.862-5.152V9.432h1.358c1.19 0 1.89.462 1.89 1.652v.056c0 1.106-.658 1.708-1.89 1.708h-1.358zM102.794 18h1.694v-7.322h-1.694V18zm.826-8.526c.56 0 1.008-.42 1.008-.966 0-.56-.448-.98-1.008-.98s-1.008.42-1.008.98c0 .546.448.966 1.008.966zm6.132 8.666c1.988 0 3.262-1.19 3.388-2.87h-1.554c-.098 1.036-.868 1.568-1.764 1.568-1.246 0-2.03-.84-2.03-2.436v-.112c0-1.512.826-2.408 1.988-2.408.896 0 1.54.406 1.68 1.386h1.638c-.196-2.016-1.722-2.744-3.346-2.744-2.044 0-3.696 1.47-3.696 3.794v.112c0 2.338 1.596 3.71 3.696 3.71zm7.336-.014c.518 0 .882-.084 1.148-.182V16.6c-.238.098-.49.14-.826.14-.532 0-.84-.294-.84-.938v-3.85h1.61v-1.274h-1.61v-1.61h-1.694v1.61h-.98v1.274h.98v4.004c0 1.386.756 2.17 2.212 2.17zm5.124.014c1.19 0 1.96-.574 2.324-1.288V18h1.694v-7.322h-1.694v4.354c0 1.162-.798 1.75-1.708 1.75-.98 0-1.442-.504-1.442-1.61v-4.494h-1.694v4.69c0 1.946 1.078 2.772 2.52 2.772zm6.02-.14h1.694v-3.808c0-1.554.896-2.03 2.38-2.044v-1.582c-1.232.014-1.918.56-2.38 1.484v-1.372h-1.694V18zm8.778.14c1.876 0 3.122-.84 3.36-2.38h-1.638c-.126.714-.658 1.12-1.68 1.12-1.26 0-1.96-.784-2.016-2.17h5.362v-.49c0-2.618-1.638-3.696-3.458-3.696-2.086 0-3.64 1.512-3.64 3.78v.112c0 2.31 1.554 3.724 3.71 3.724zm-1.946-4.564c.168-1.134.854-1.82
21.876-1.82 1.05 0 1.694.56 1.778 1.82h-3.654z`,fill:`#FFF`}),(0,K.jsx)(`path`,{d:`M8 2h24v24H8z`}),(0,K.jsx)(`path`,{d:`M21.5 20.5h-5a3 3 0 0 1-3-3v-8M18.5 7.5h5c1.656 0 3 1.344 3 3v8`,stroke:`#FFF`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,K.jsx)(`path`,{stroke:`#FFF`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M10.5 12.5l3-3 3 3M23.5 15.5l3 3 3-3`})]})}),zle=t({default:()=>Ble}),Ble=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 6 12`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M.733 1L6 6.243.733 11.486`,stroke:`#858E99`,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Vle=t({default:()=>Hle}),Hle=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`22`,height:`22`,viewBox:`0 0 22 22`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(-369 -470)`,children:[(0,K.jsxs)(`g`,{fill:`none`,stroke:`#e5e7ee`,transform:`translate(369 470)`,children:[(0,K.jsx)(`rect`,{stroke:`none`,width:`22`,height:`22`,rx:`2`}),(0,K.jsx)(`rect`,{fill:`none`,x:`0.5`,y:`0.5`,width:`21`,height:`21`,rx:`1.5`})]}),(0,K.jsxs)(`g`,{transform:`translate(382.01 476.908) rotate(90)`,children:[(0,K.jsx)(`line`,{fill:`none`,stroke:`#535562`,strokeLinecap:`round`,y1:`4.036`,x2:`4.034`,transform:`translate(0 0)`}),(0,K.jsx)(`line`,{fill:`none`,stroke:`#535562`,strokeLinecap:`round`,x1:`4.034`,y1:`4.036`,transform:`translate(4.037 0)`})]})]})}),Ule=t({default:()=>Wle}),Wle=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M9 6l5.25 6L9 18`,stroke:Wp,strokeWidth:1.5,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Gle=t({default:()=>Kle}),Kle=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`g`,{stroke:Wp,strokeWidth:1.5,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,K.jsx)(`path`,{d:`M13 6l5.25 6L13 18M7 6l5.25 6L7 18`})})}),qle=t({default:()=>Jle}),Jle=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 23`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(0 -1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{stroke:`#29333D`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M23.5 21.5h-5v-20h-13v20h-5`}),(0,K.jsx)(`path`,{stroke:`#29333D`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M10.5 3.5l8-2v20l-8 2z`}),(0,K.jsx)(`rect`,{fill:`#29333D`,x:10,y:13,width:3,height:1,rx:.5})]})}),Yle=t({default:()=>Xle}),Xle=()=>(0,K.jsxs)(`svg`,{fill:`#fff`,xmlns:`http://www.w3.org/2000/svg`,height:`24`,viewBox:`0 0 24 24`,width:`24`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`}),(0,K.jsx)(`path`,{d:`M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47zm1.01 5.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32zM13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93z`})]}),Rm=t({default:()=>Zle}),Zle=()=>(0,K.jsxs)(`svg`,{fill:`#fff`,xmlns:`http://www.w3.org/2000/svg`,height:`24`,viewBox:`0 0 24 24`,width:`24`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`}),(0,K.jsx)(`path`,{d:`M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47h2.02zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03zm3.89-2.42l1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48z`})]}),Qle=t({default:()=>$le}),$le=e=>(0,K.jsx)(`svg`,{width:`24px`,height:`24px`,viewBox:`0 0 24 24`,...e,children:(0,K.jsxs)(`g`,{id:`icons/ic_save`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M7,5.5 C6.72385763,5.5 6.5,5.72385763 6.5,6 L6.5,18 C6.5,18.2761424 6.72385763,18.5 7,18.5 L18,18.5 C18.2761424,18.5 18.5,18.2761424 18.5,18 L18.5,8.45348386 C18.5,8.32212163 18.4483042,8.19603605 18.3560877,8.1024831 L15.9376536,5.64899924 C15.8436871,5.55367089 15.7154211,5.5 15.5815659,5.5 L7,5.5 Z`,id:`Rectangle-15-Copy`,stroke:`currentColor`}),(0,K.jsx)(`path`,{d:`M8.5,5.5 L8.5,7 C8.5,7.27614237 8.72385763,7.5 9,7.5 L14,7.5 C14.2761424,7.5 14.5,7.27614237 14.5,7 L14.5,5.5 L8.5,5.5 Z`,id:`Rectangle-17-Copy`,stroke:`currentColor`}),(0,K.jsx)(`rect`,{id:`Rectangle-18-Copy`,stroke:`currentColor`,x:`8.5`,y:`10.5`,width:`8`,height:`6`,rx:`1`}),(0,K.jsx)(`rect`,{id:`Rectangle-19-Copy-2`,fill:`currentColor`,x:`10`,y:`12`,width:`5`,height:`1`,rx:`0.5`}),(0,K.jsx)(`rect`,{id:`Rectangle-19-Copy-3`,fill:`currentColor`,x:`10`,y:`14`,width:`5`,height:`1`,rx:`0.5`})]})}),eue=t({default:()=>tue}),tue=({fill:e})=>
2(0,K.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`13.2`,height:`15.2`,viewBox:`0 0 13.2 17.2`,children:[(0,K.jsx)(`defs`,{}),(0,K.jsxs)(`g`,{transform:`translate(-971.5 -150)`,children:[(0,K.jsxs)(`g`,{stroke:e||`#36ACB2`,fill:`none`,transform:`translate(971.5 150)`,children:[(0,K.jsx)(`circle`,{fill:e||`#36ACB2`,stroke:`none`,cx:`7`,cy:`7`,r:`7`}),(0,K.jsx)(`circle`,{fill:`#fff`,cx:`7`,cy:`7`,r:`6.5`})]}),(0,K.jsx)(`line`,{stroke:e||`#36ACB2`,fill:`none`,strokeLinecap:`round`,x2:`3`,y2:`4`,transform:`translate(983 162.5)`})]})]}),nue=t({default:()=>rue}),rue=e=>{let t=(0,B.useId)(),n=`IcSelectPhoto-a-${t}`,r=`IcSelectPhoto-b-${t}`,i=`IcSelectPhoto-c-${t}`;return(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`2em`,height:`2em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`circle`,{id:n,cx:12,cy:12,r:11}),(0,K.jsxs)(`filter`,{x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,filterUnits:`objectBoundingBox`,id:r,children:[(0,K.jsx)(`feOffset`,{in:`SourceAlpha`,result:`shadowOffsetOuter1`}),(0,K.jsx)(`feGaussianBlur`,{stdDeviation:1,in:`shadowOffsetOuter1`,result:`shadowBlurOuter1`}),(0,K.jsx)(`feComposite`,{in:`shadowBlurOuter1`,in2:`SourceAlpha`,operator:`out`,result:`shadowBlurOuter1`}),(0,K.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0`,in:`shadowBlurOuter1`})]}),(0,K.jsx)(`mask`,{id:i,x:0,y:0,width:22,height:22,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#${n}`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`use`,{fill:`#000`,filter:`url(#${r})`,xlinkHref:`#${n}`}),(0,K.jsx)(`use`,{stroke:`#FFF`,mask:`url(#${i})`,strokeWidth:2,fillOpacity:.35,fill:`#FFF`,xlinkHref:`#${n}`})]})]})},iue=t({default:()=>aue}),aue=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`2em`,height:`2em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`circle`,{id:`a`,cx:12,cy:12,r:11}),(0,K.jsxs)(`filter`,{x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,filterUnits:`objectBoundingBox`,id:`IcSelectedPhoto2-b`,children:[(0,K.jsx)(`feOffset`,{in:`SourceAlpha`,result:`shadowOffsetOuter1`}),(0,K.jsx)(`feGaussianBlur`,{stdDeviation:1,in:`shadowOffsetOuter1`,result:`shadowBlurOuter1`}),(0,K.jsx)(`feComposite`,{in:`shadowBlurOuter1`,in2:`SourceAlpha`,operator:`out`,result:`shadowBlurOuter1`}),(0,K.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0`,in:`shadowBlurOuter1`})]}),(0,K.jsx)(`mask`,{id:`IcSelectedPhoto2-c`,x:0,y:0,width:22,height:22,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcSelectedPhoto2-a`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`use`,{fill:`#000`,filter:`url(#IcSelectedPhoto2-b)`,xlinkHref:`#IcSelectedPhoto2-a`}),(0,K.jsx)(`use`,{stroke:`#FFF`,mask:`url(#IcSelectedPhoto2-c)`,strokeWidth:2,fill:Wp,xlinkHref:`#IcSelectedPhoto2-a`}),(0,K.jsx)(`path`,{fill:Wp,d:`M6 13.02l1.41-1.41L10 14.19l6.59-6.59L18 9.02l-8 8z`})]})]}),oue=t({default:()=>sue}),sue=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`circle`,{id:`IcSelectedPhotoBlank-a`,cx:12,cy:12,r:11}),(0,K.jsxs)(`filter`,{x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,filterUnits:`objectBoundingBox`,id:`IcSelectedPhotoBlank-b`,children:[(0,K.jsx)(`feOffset`,{in:`SourceAlpha`,result:`shadowOffsetOuter1`}),(0,K.jsx)(`feGaussianBlur`,{stdDeviation:1,in:`shadowOffsetOuter1`,result:`shadowBlurOuter1`}),(0,K.jsx)(`feComposite`,{in:`shadowBlurOuter1`,in2:`SourceAlpha`,operator:`out`,result:`shadowBlurOuter1`}),(0,K.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0`,in:`shadowBlurOuter1`})]}),(0,K.jsx)(`mask`,{id:`IcSelectedPhotoBlank-c`,x:0,y:0,width:22,height:22,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcSelectedPhotoBlank-a`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`use`,{fill:`#000`,filter:`url(#IcSelectedPhotoBlank-b)`,xlinkHref:`#IcSelectedPhotoBlank-a`}),(0,K.jsx)(`use`,{stroke:`#FFF`,mask:`url(#IcSelectedPhotoBlank-c)`,strokeWidth:2,fill:Wp,xlinkHref:`#IcSelectedPhotoBlank-a`})]})]}),cue=t({default:()=>lue}),lue=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`g`,{fill:e.color||`#36ACB2`,fillRule:`evenodd`,children:(0,K.jsx)(`path`,{d:`M2.01 21L23 12 2.01 3 2 10l15 2-15 2z`})})}),uue=t({default:()=>due}),due=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 15`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M11 4V0l7 7-7 7V9.9c-5 0-8.5 1.6-11 5.1C1 10 4 5 11 4`,fill:`#FFF`,fillRule:`evenodd`})}),fue=t({default:()=>pue}),pue=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 22 22`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M7.263 18.447a7.958 7.958 0 0 0 3.528 1.462L11 22h2l.21-2.09a7.958 7.958 0 0 0 3.527-1.463l1.627 1.331 1.414-1.414-1.33-1.627a7.958 7.958 0 0 0 1.461-3.528L22 13v-2l-2.09-.21a7.958 7.958 0 0 0-1.463-3.527l1.331-1.627-1.414-1.414-1.627 1.33a7.958 7.958 0 0 0-3.528-1.461L13 2h-2l-.21 2.09a7.958 7.958 0 0 0-3.527 1.463L5.636 4.222 4.222 5.636l1.33 1.627a7.958 7.958 0 0 0-1.461 3.528L2 11v2l2.09.21a7.958 7.958 0 0 0 1.463 3.527l-1.331 1.627 1.414 1.414 1.627-1.33z`,id:`IcSettings-a`}),(0,K.jsxs)(`mask`,{id:`IcSettings-c`,x:-1,y:-1,width:22,height:22,children:[(0,K.jsx)(`path`,{fill:`#fff`,d:`M1 1h22v22H1z`}),(0,K.jsx)(`use`,{xlinkHref:`#IcSettings-a`})]}),(0,K.jsx)(`path`,{d:`M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0z`,id:`IcSettings-b`}),(0,K.jsxs)(`mask`,{id:`IcSettings-d`,x:-1,y:-1,width:8,height:8,children:[(0,K.jsx)(`path`,{fill:`#fff`,d:`M8 8h8v8H8z`}),(0,K.jsx)(`use`,{xlinkHref:`#IcSettings-b`})]})]}),(0,K.jsxs)(`g`,{transform:`translate(-1 -1)`,strokeWidth:2,stroke:`#FFF`,fill:`none`,fillRule:`evenodd`,strokeLinejoin:`round`,children:[(0,K.jsx)(`use`,{mask:`url(#IcSettings-c)`,xlinkHref:`#IcSettings-a`}),(0,K.jsx)(`use`,{mask:`url(#IcSettings-d)`,strokeLinecap:`round`,xlinkHref:`#IcSettings-b`})]})]}),mue=t({default:()=>hue}),hue=({color:e,...t})=>(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...t,color:e||`#FF4B0A`,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{id:`a`,d:`M.032.038h5.28v4.886H.033z`})}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M8.992 11.5c1.463 0 2.639-1.09 2.639-2.444 0-1.351-1.18-2.444-2.64-2.443-1.46 0-2.64 1.095-2.641 2.445 0 1.35 1.181 2.443 2.642 2.442m-4.403 5.389v2.178c0 .43.19.691.623.848.92.331 1.884.465 2.863.524.879.054 1.757.033 2.632-.069.722-.084 1.433-.217 2.11-.473.381-.144.579-.418.579-.796l-.001-4.323a1.5 1.5 0 0 0-.032-.317c-.176-.803-.868-1.325-1.765-1.326-1.738-.003-3.476-.002-5.214 0-.142 0-.288.011-.427.041-.818.176-1.363.81-1.367 1.591-.004.707 0 1.415-.001 2.122`,fill:`#FFF`}),(0,K.jsx)(`path`,{d:`M4.59 16.889c0-.708-.004-1.415 0-2.122.004-.78.549-1.415 1.367-1.59.139-.03.285-.041.427-.041 1.738-.003 3.476-.004 5.214-.001.897.001 1.589.523 1.765 1.326a1.5 1.5 0 0 1 .032.317c.002 1.44.001 2.882 0 4.323 0 .378-.197.652-.578.796-.677.256-1.388.39-2.11.473-.875.102-1.753.123-2.632.07-.979-.06-1.943-.194-2.863-.525-.434-.157-.623-.419-.623-.848V16.89M8.992 11.5c-1.46 0-2.642-1.091-2.642-2.442 0-1.35 1.182-2.445 2.64-2.445 1.46 0 2.64 1.092 2.64 2.443 0 1.354-1.175 2.443-2.638 2.444`,fill:`currentColor`}),(0,K.jsx)(`path`,{d:`M14.933 18.436v-.142-3.08c-.002-1.633-1.308-3.011-3.055-3.223-.072-.01-.145-.015-.234-.024.282-.429.665-.7 1.18-.799.135-.026.276-.033.415-.033 1.717-.002 3.435-.003 5.152 0 .889 0 1.572.478 1.774 1.244.035.131.05.27.05.406.003 1.437.003 2.874.002 4.311 0 .39-.192.657-.582.804-.682.257-1.397.388-2.124.472a16.04 16.04 0 0 1-2.51.071c-.016 0-.032-.003-.068-.007`,fill:`currentColor`}),(0,K.jsxs)(`g`,{transform:`translate(12.526 5)`,children:[(0,K.jsx)(`mask`,{id:`b`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#a`})}),(0,K.jsx)(`path`,{d:`M2.67.038c1.46-.001 2.642 1.09 2.643 2.44 0 1.352-1.18 2.446-2.64 2.446-1.462 0-2.64-1.089-2.641-2.442C.03 1.13 1.208.038 2.669.038`,fill:`currentColor`,mask:`url(#b)`})]})]})]}),gue=t({default:()=>_ue}),_ue=({color:e,...t})=>(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...t,color:e||`#FF4B0A`,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{id:`a`,d:`M8.693 0H0v14.79h17.387V0z`})}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`path`,{d:`M14.071 6.772V4L21 9.81l-6.929 5.81v-3.365c-.53.04-1.032.06-1.53.118-1.642.192-3.213.619-4.67 1.401-2.205 1.183-3.836 2.882-4.815 5.163A.108.108 0 0 1 3 19c.012-2.03.338-3.996 1.222-5.853.895-1.882 2.249-3.364 4.04-4.462 1.774-1.087 3.725-1.677 5.81-1.9
213z`,fill:`currentColor`})]})]}),vue=t({default:()=>yue}),yue=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 10 10`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M3.94 5L.757 8.182a.749.749 0 0 0 0 1.06.748.748 0 0 0 1.06 0L5 6.061l3.182 3.181a.749.749 0 0 0 1.06 0 .748.748 0 0 0 0-1.06L6.061 5l3.181-3.182a.749.749 0 0 0 0-1.06.748.748 0 0 0-1.06 0L5 3.939 1.818.758a.749.749 0 0 0-1.06 0 .748.748 0 0 0 0 1.06L3.939 5z`,fill:`#1976D2`,fillRule:`evenodd`})}),bue=t({default:()=>xue}),xue=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 10 10`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M3.94 5L.757 8.182a.749.749 0 0 0 0 1.06.748.748 0 0 0 1.06 0L5 6.061l3.182 3.181a.749.749 0 0 0 1.06 0 .748.748 0 0 0 0-1.06L6.061 5l3.181-3.182a.749.749 0 0 0 0-1.06.748.748 0 0 0-1.06 0L5 3.939 1.818.758a.749.749 0 0 0-1.06 0 .748.748 0 0 0 0 1.06L3.939 5z`,fill:`#FF5722`,fillRule:`evenodd`})}),Sue=t({default:()=>Cue}),Cue=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`path`,{d:`M4.5 6c0-.276.22-.5.498-.5h13.004c.275 0 .498.229.498.5v11c0 .276-.22.5-.498.5H4.998A.503.503 0 0 1 4.5 17V6z`,stroke:`#868F9A`}),(0,K.jsx)(`path`,{d:`M6 19.5h14c.277 0 .5-.217.5-.505V7`,stroke:`#868F9A`}),(0,K.jsx)(`path`,{d:`M12 11V8h-1v3H8v1h3v3h1v-3h3v-1h-3z`,fill:`#868F9A`})]})}),wue=t({default:()=>Tue}),Tue=e=>(0,K.jsx)(`svg`,{width:`16px`,height:`16px`,viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,K.jsx)(`g`,{id:`Symbols`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:(0,K.jsxs)(`g`,{id:`icons/calendar/ic_sm_filter`,children:[(0,K.jsx)(`polygon`,{id:`Shape`,points:`0 0 16 0 16 16 0 16`}),(0,K.jsx)(`rect`,{id:`Rectangle-3`,fill:`currentColor`,x:`2`,y:`5`,width:`12`,height:`1`}),(0,K.jsx)(`rect`,{id:`Rectangle-3-Copy`,fill:`currentColor`,x:`2`,y:`10`,width:`12`,height:`1`}),(0,K.jsx)(`circle`,{id:`Oval-2`,stroke:`currentColor`,fill:`#FFFFFF`,cx:`10.5`,cy:`5.5`,r:`1.5`}),(0,K.jsx)(`circle`,{id:`Oval-2-Copy`,stroke:`currentColor`,fill:`#FFFFFF`,cx:`5.5`,cy:`10.5`,r:`1.5`})]})})}),Eue=t({default:()=>Due}),Due=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 15 15`,width:`1em`,height:`1em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-5-4h24v24H-5z`}),(0,K.jsx)(`path`,{d:`M6 11c-2.762 0-5-2.241-5-5.001A5 5 0 1 1 6 11zm8.646 3.646a.495.495 0 0 0 .006-.699l-4.09-4.061A5.967 5.967 0 0 0 12 5.999 6.006 6.006 0 0 0 6 0C2.691 0 0 2.691 0 5.999A6.007 6.007 0 0 0 6 12a5.97 5.97 0 0 0 3.854-1.408l4.09 4.062a.503.503 0 0 0 .702-.008z`,fill:`#868F9A`})]})}),Oue=t({default:()=>kue}),kue=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 15 15`,width:`1em`,height:`1em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-5-4h24v24H-5z`}),(0,K.jsx)(`path`,{d:`M6 11c-2.762 0-5-2.241-5-5.001A5 5 0 1 1 6 11zm8.646 3.646a.495.495 0 0 0 .006-.699l-4.09-4.061A5.967 5.967 0 0 0 12 5.999 6.006 6.006 0 0 0 6 0C2.691 0 0 2.691 0 5.999A6.007 6.007 0 0 0 6 12a5.97 5.97 0 0 0 3.854-1.408l4.09 4.062a.503.503 0 0 0 .702-.008z`,fill:`#fff`})]})}),Aue=t({default:()=>jue}),jue=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 20 14`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-2-5h24v24H-2z`}),(0,K.jsx)(`path`,{d:`M11.5 13.5h-5a3 3 0 0 1-3-3v-8M8.5.5h5c1.656 0 3 1.344 3 3v8`,stroke:`#FFF`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,K.jsx)(`path`,{stroke:`#FFF`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M.5 5.5l3-3 3 3M13.5 8.5l3 3 3-3`})]})}),Mue=t({default:()=>Nue}),Nue=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 16`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,opacity:.5,children:[(0,K.jsx)(`path`,{d:`M0-4h24v24H0z`}),(0,K.jsx)(`path`,{d:`M.66 15h1.06l1.56-4.38h6.44L11.3 15h1.12L7.28.7H5.8L.66 15zM6.5 1.62l2.9 8.1H3.6l2.9-8.1zm12 13.54c1.76 0 2.88-.74 3.54-1.76V15h1.06V8.08c0-2.66-1.48-3.7-3.66-3.7-1.98 0-3.78.92-4.02 3.12h1.04c.24-1.54 1.36-2.22 2.94-2.22 1.84 0 2.64.84 2.64 2.8v.94h-2.18c-2.58 0-4.9.74-4.9 3.16 0 1.98 1.48 2.98 3.54 2.98zm.08-.86c-1.72 0-2.56-.78-2.56-2.12 0-1.88 1.7-2.34 3.88-2.34h2.14v1.78c0 1.56-1.54 2.68-3.46 2.68z`,fill:`#FFF`})]})}),Pue=t({default:()=>Fue}),Fue=e=>
2(0,K.jsxs)(`svg`,{viewBox:`0 0 26 26`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`circle`,{id:`IcSmVerify2-a`,cx:12,cy:12,r:11}),(0,K.jsxs)(`filter`,{x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,filterUnits:`objectBoundingBox`,id:`IcSmVerify2-b`,children:[(0,K.jsx)(`feOffset`,{in:`SourceAlpha`,result:`shadowOffsetOuter1`}),(0,K.jsx)(`feGaussianBlur`,{stdDeviation:1,in:`shadowOffsetOuter1`,result:`shadowBlurOuter1`}),(0,K.jsx)(`feComposite`,{in:`shadowBlurOuter1`,in2:`SourceAlpha`,operator:`out`,result:`shadowBlurOuter1`}),(0,K.jsx)(`feColorMatrix`,{values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0`,in:`shadowBlurOuter1`})]}),(0,K.jsx)(`mask`,{id:`IcSmVerify2-c`,x:0,y:0,width:22,height:22,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcSmVerify2-a`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M1 1h24v24H1z`}),(0,K.jsxs)(`g`,{transform:`translate(1 1)`,children:[(0,K.jsx)(`use`,{fill:`#000`,filter:`url(#IcSmVerify2-b)`,xlinkHref:`#IcSmVerify2-a`}),(0,K.jsx)(`use`,{stroke:`#FFF`,mask:`url(#IcSmVerify2-c)`,strokeWidth:2,fill:Wp,xlinkHref:`#IcSmVerify2-a`})]}),(0,K.jsxs)(`g`,{transform:`translate(7 8)`,fill:`#FFF`,children:[(0,K.jsx)(`path`,{d:`M3 2H.999A.994.994 0 0 0 0 3.003v4.994C0 8.551.456 9 1.002 9h9.996A.996.996 0 0 0 12 7.997V3.003A.998.998 0 0 0 11.001 2H9L8 0H4L3 2zm3 5.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z`}),(0,K.jsx)(`circle`,{cx:6,cy:5,r:1.5})]})]})]}),Iue=t({default:()=>Lue}),Lue=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 14 11`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M13 1.5l-8.5 8L1 6`,strokeWidth:2,stroke:Wp,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Rue=t({default:()=>zue}),zue=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 22 15`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M0 4h22v9.008c0 1.1-.89 1.992-1.991 1.992H1.99C.891 15 0 14.1 0 13.008V4z`,id:`IcSubscription-a`}),(0,K.jsx)(`mask`,{id:`IcSubscription-c`,x:0,y:0,width:22,height:11,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcSubscription-a`})}),(0,K.jsx)(`path`,{d:`M0 2C0 .895.89 0 1.991 0H20.01C21.109 0 22 .888 22 2v2H0V2z`,id:`IcSubscription-b`}),(0,K.jsx)(`mask`,{id:`IcSubscription-d`,x:0,y:0,width:22,height:4,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcSubscription-b`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-1-5h24v24H-1z`}),(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`use`,{stroke:`#6B757F`,mask:`url(#IcSubscription-c)`,strokeWidth:2,xlinkHref:`#IcSubscription-a`}),(0,K.jsx)(`path`,{fill:`#6B757F`,d:`M4 7h8v1H4z`}),(0,K.jsx)(`use`,{stroke:`#6B757F`,mask:`url(#IcSubscription-d)`,strokeWidth:2,xlinkHref:`#IcSubscription-b`})]})]})]}),Bue=t({default:()=>Vue}),Vue=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 19`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{stroke:`#6B757F`,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,K.jsx)(`path`,{d:`M.927 8.2l2.787 4.15L6.919 8.51M23.5 12.5l-2.786-4.15-3.206 3.838`}),(0,K.jsx)(`path`,{d:`M20.677 8.387c.834 4.408-2.273 8.729-6.51 9.729a8.5 8.5 0 0 1-7.93-2.224M3.719 12.325C2.406 7.442 5.689 2.65 10.257 1.572a8.492 8.492 0 0 1 8.324 2.641`})]})}),Hue=t({default:()=>Uue}),Uue=e=>(0,K.jsx)(`svg`,{width:`13px`,height:`16px`,viewBox:`0 0 13 16`,...e,children:(0,K.jsx)(`g`,{id:`Symbols`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:(0,K.jsx)(`g`,{id:`Property/Checklists`,transform:`translate(-556.000000, -319.000000)`,children:(0,K.jsx)(`g`,{id:`Group-6-Copy`,transform:`translate(546.000000, 310.000000)`,children:(0,K.jsx)(`g`,{id:`icons/ic_tag`,transform:`translate(4.000000, 5.000000)`,children:(0,K.jsxs)(`g`,{id:`Group`,transform:`translate(12.000000, 11.500000) rotate(-25.000000) translate(-12.000000, -11.500000) translate(8.000000, 4.000000)`,children:[(0,K.jsx)(`path`,{d:`M0.686804446,3.30381875 C0.568700438,3.39872376 0.5,3.54206244 0.5,3.69357322 L0.5,14 C0.5,14.2761424 0.723857625,14.5 1,14.5 L7,14.5 C7.27614237,14.5 7.5,14.2761424 7.5,14 L7.5,3.69357322 C7.5,3.54206244 7.43129956,3.39872376 7.31319555,3.30381875 L4.31319555,0.893104465 C4.13026963,0.746110422 3.86973037,0.746110422 3.68680445,0.893104465 L0.686804446,3.30381875 Z`,id:`Rectangle-12`,stroke:`currentColor`}),(0,K.jsx)(`circle`,{id:`Oval`,stroke:`currentColor`,cx:`4`,cy:`5`,r:`1`}),(0,K.jsx)(`rect`,{id:`Rectangle-14`,fill:`currentColor`,x:`2`,y:`11`,width:`4`,height:`1`,rx:`0.5`})]})})})})})}),Wue=t({default:()=>Gue}),Gue=e=>
2(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`circle`,{id:`IcTaskRemain-a`,cx:12,cy:12,r:9}),(0,K.jsxs)(`mask`,{id:`IcTaskRemain-c`,x:-1,y:-1,width:20,height:20,children:[(0,K.jsx)(`path`,{fill:`#fff`,d:`M2 2h20v20H2z`}),(0,K.jsx)(`use`,{xlinkHref:`#IcTaskRemain-a`})]}),(0,K.jsx)(`rect`,{id:`IcTaskRemain-b`,x:7,y:11,width:10,height:2,rx:1}),(0,K.jsx)(`mask`,{id:`IcTaskRemain-d`,x:0,y:0,width:10,height:2,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcTaskRemain-b`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`use`,{stroke:`#868F9A`,mask:`url(#IcTaskRemain-c)`,strokeWidth:2,xlinkHref:`#IcTaskRemain-a`}),(0,K.jsx)(`use`,{stroke:`#868F9A`,mask:`url(#IcTaskRemain-d)`,strokeWidth:2,xlinkHref:`#IcTaskRemain-b`})]})]}),Kue=t({default:()=>que}),que=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 20 14`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M.5.994A.5.5 0 0 1 1.008.5h17.984c.28 0 .508.226.508.494v12.012a.5.5 0 0 1-.508.494H1.008a.504.504 0 0 1-.508-.494V.994z`,stroke:`#868F9A`}),(0,K.jsx)(`path`,{fill:`#868F9A`,d:`M3 3h12v1H3zM3 7h14v1H3zM3 5h6v1H3zM3 9h8v1H3z`})]})}),Jue=t({default:()=>Yue}),Yue=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M2.5 5.994a.5.5 0 0 1 .508-.494h17.984c.28 0 .508.226.508.494v12.012a.5.5 0 0 1-.508.494H3.008a.504.504 0 0 1-.508-.494V5.994z`,stroke:`#868F9A`}),(0,K.jsx)(`path`,{fill:`#868F9A`,d:`M5 8h12v1H5zM5 12h14v1H5zM5 10h6v1H5zM5 14h8v1H5z`})]})}),Xue=t({default:()=>Zue}),Zue=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 30 30`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M16 16v5.997A.999.999 0 0 1 15 23c-.552 0-1-.438-1-1.003V16H8.003A.999.999 0 0 1 7 15c0-.552.438-1 1.003-1H14V8.003A.999.999 0 0 1 15 7c.552 0 1 .438 1 1.003V14h5.997A.999.999 0 0 1 23 15c0 .552-.438 1-1.003 1H16z`,fill:e.fill||`#868F9A`,fillRule:`evenodd`,fillOpacity:.9})}),Que=t({default:()=>$ue}),$ue=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`path`,{d:`M1.66 19h1.06l1.56-4.38h6.44L12.3 19h1.12L8.28 4.7H6.8L1.66 19zM7.5 5.62l2.9 8.1H4.6l2.9-8.1zm10 13.54c1.76 0 2.88-.74 3.54-1.76V19h1.06v-6.92c0-2.66-1.48-3.7-3.66-3.7-1.98 0-3.78.92-4.02 3.12h1.04c.24-1.54 1.36-2.22 2.94-2.22 1.84 0 2.64.84 2.64 2.8v.94h-2.18c-2.58 0-4.9.74-4.9 3.16 0 1.98 1.48 2.98 3.54 2.98zm.08-.86c-1.72 0-2.56-.78-2.56-2.12 0-1.88 1.7-2.34 3.88-2.34h2.14v1.78c0 1.56-1.54 2.68-3.46 2.68z`,fill:`#868F9A`})]})}),ede=t({default:()=>tde}),tde=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M1.66 19h1.06l1.56-4.38h6.44L12.3 19h1.12L8.28 4.7H6.8L1.66 19zM7.5 5.62l2.9 8.1H4.6l2.9-8.1zm10 13.54c1.76 0 2.88-.74 3.54-1.76V19h1.06v-6.92c0-2.66-1.48-3.7-3.66-3.7-1.98 0-3.78.92-4.02 3.12h1.04c.24-1.54 1.36-2.22 2.94-2.22 1.84 0 2.64.84 2.64 2.8v.94h-2.18c-2.58 0-4.9.74-4.9 3.16 0 1.98 1.48 2.98 3.54 2.98zm.08-.86c-1.72 0-2.56-.78-2.56-2.12 0-1.88 1.7-2.34 3.88-2.34h2.14v1.78c0 1.56-1.54 2.68-3.46 2.68z`,fill:`#FFF`,fillRule:`evenodd`})}),nde=t({default:()=>rde}),rde=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 22 20`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M-1-3h24v24H-1z`}),(0,K.jsx)(`path`,{d:`M14 0H5c-.83 0-1.54.5-1.84 1.22L.14 8.27C.05 8.5 0 8.74 0 9v2c0 1.1.9 2 2 2h5.08a1 1 0 0 1 .98 1.204l-.7 3.366-.03.32c0 .41.17.79.44 1.06a1.5 1.5 0 0 0 2.115-.005l5.535-5.535c.36-.36.58-.86.58-1.41V2c0-1.1-.9-2-2-2zm4 1v10a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1z`,fill:`#6B757F`,className:`inherit`,fillRule:`nonzero`})]})}),ide=t({default:()=>ade}),ade=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 22 20`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M23 23H-1V-1h24z`}),(0,K.jsx)(`path`,{d:`M8 20h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73V9c0-1.1-.9-2-2-2h-5.08a1 1 0 0 1-.98-1.204l.7-3.366.03-.32c0-.41-.17-.79-.44-1.06a1.5 1.5 0 0 0-2.115.005L6.58 6.59C6.22 6.95 6 7.45 6 8v10c0 1.1.9 2 2 2zm-4-1V9a1 1 0 0 0-1-1H1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z`,fill:`#6B757F`,className:`inherit`,fillRule:`nonzero`})]})}),ode=t({default:()=>sde}),sde=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 48 48`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M12 13h24v24H12z`}),(0,K.jsx)(`path`,{d:`M27 16h-9c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h5.08a1 1 0 0 1 .98 1.204l-.7 3.366-.03.32c0 .41.17.79.44 1.06a1.5 1.5 0 0 0 2.115-.005l5.535-5.535c.36-.36.58-.86.58-1.41V18c0-1.1-.9-2-2-2zm4 1v10a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V17a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1z`,className:`inherit`,fill:`#6B757F`,fillRule:`nonzero`})]})}),cde=t({default:()=>lde}),lde=e=>(0,K.jsxs)(`svg`,{width:`1.5em`,height:`1.5em`,viewBox:`0 0 24 24`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`clipPath`,{id:`prefix__a`,children:(0,K.jsx)(`path`,{"data-name":`Path 430`,d:`M13.421-22.394h-1.013A.408.408 0 0112-22.8v-4.765a.408.408 0 01.408-.408h1.013a.408.408 0 01.408.408v4.765a.408.408 0 01-.408.406z`,transform:`translate(-12 27.976)`,fill:`#868f9a`,clipRule:`evenodd`})}),(0,K.jsx)(`clipPath`,{id:`prefix__b`,children:(0,K.jsx)(`path`,{"data-name":`Path 429`,d:`M19.587-48H0v19.587h19.587z`,transform:`translate(0 48)`,fill:`#868f9a`})}),(0,K.jsx)(`clipPath`,{id:`prefix__c`,children:(0,K.jsx)(`path`,{"data-name":`Path 433`,d:`M25.652-30.719l-2.744 2.735a.612.612 0 01-.866 0 .612.612 0 01-.173-.517l.274-1.967a.408.408 0 00-.348-.461.408.408 0 00-.077 0l-2.37.122a1.02 1.02 0 01-1.071-.966 1.02 1.02 0 01.054-.382l1.506-4.4a.816.816 0 01.772-.552h4.466a.816.816 0 01.816.816v5a.816.816 0 01-.239.572z`,transform:`translate(-18.276 37.116)`,fill:`#868f9a`,clipRule:`evenodd`})})]}),(0,K.jsxs)(`g`,{"data-name":`Thumbs Down`,children:[(0,K.jsx)(`g`,{"data-name":`Group 352`,children:(0,K.jsxs)(`g`,{"data-name":`Group 353`,children:[(0,K.jsx)(`g`,{"data-name":`Group 348`,transform:`translate(14.43 6.881)`,clipPath:`url(#prefix__a)`,children:(0,K.jsx)(`g`,{"data-name":`Group 347`,transform:`translate(-12.861 -5.834)`,clipPath:`url(#prefix__b)`,children:(0,K.jsx)(`path`,{"data-name":`Path 428`,d:`M16.731 13.456h-5.91V3.794h5.91z`,fill:`#868f9a`})})}),(0,K.jsx)(`g`,{"data-name":`Group 350`,transform:`translate(6.082 6.881)`,clipPath:`url(#prefix__c)`,children:(0,K.jsx)(`g`,{"data-name":`Group 349`,transform:`translate(-4.513 -5.834)`,clipPath:`url(#prefix__b)`,children:(0,K.jsx)(`path`,{"data-name":`Path 431`,d:`M14.169 17.187h-11.7V3.795h11.7z`,fill:`#868f9a`})})})]})}),(0,K.jsxs)(`g`,{"data-name":`Oval 5`,transform:`translate(1.926 1.938)`,fill:`none`,stroke:`#868f9a`,strokeMiterlimit:10,children:[(0,K.jsx)(`circle`,{cx:9,cy:9,r:9,stroke:`none`}),(0,K.jsx)(`circle`,{cx:9,cy:9,r:9.5})]})]})]}),ude=t({default:()=>dde}),dde=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 48 48`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M36 36H12V12h24z`}),(0,K.jsx)(`path`,{d:`M21 33h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2c0-1.1-.9-2-2-2h-5.08a1 1 0 0 1-.98-1.204l.7-3.366.03-.32c0-.41-.17-.79-.44-1.06a1.5 1.5 0 0 0-2.115.005L19.58 19.59c-.36.36-.58.86-.58 1.41v10c0 1.1.9 2 2 2zm-4-1V22a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z`,className:`inherit`,fill:`#6B757F`,fillRule:`nonzero`})]})}),fde=t({default:()=>pde}),pde=e=>(0,K.jsxs)(`svg`,{width:`1.5em`,height:`1.5em`,viewBox:`0 0 24 24`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`clipPath`,{id:`clip-path`,children:(0,K.jsx)(`path`,{id:`Path_427`,"data-name":`Path 427`,d:`M14.186-23.11A11.307,11.307,0,0,0,25.372-34.534,11.307,11.307,0,0,0,14.186-45.957,11.307,11.307,0,0,0,3-34.534,11.307,11.307,0,0,0,14.186-23.11Z`,transform:`translate(-3 45.957)`,fill:`none`,clipRule:`evenodd`})}),(0,K.jsx)(`clipPath`,{id:`clip-path-2`,children:(0,K.jsx)(`path`,{id:`Path_430`,"data-name":`Path 430`,d:`M12.408-27.976h1.013a.408.408,0,0,1,.408.408V-22.8a.408.408,0,0,1-.408.408H12.408A.408.408,0,0,1,12-22.8v-4.765A.408.408,0,0,1,12.408-27.976Z`,transform:`translate(-12 27.976)`,fill:`#868f9a`,clipRule:`evenodd`})}),(0,K.jsx)(`clipPath`,{id:`clip-path-3`,children:(0,K.jsx)(`path`,{id:`Path_429`,"data-name":`Path 429`,d:`M0-28.413H19.587V-48H0Z`,transform:`translate(0 48)`,fill:`#868f9a`})}),(0,K.jsx)(`clipPath`,{id:`clip-path-4`,children:(0,K.jsx)(`path`,{id:`Path_433`,"data-name":`Path 433`,d:`M18.516-34.2l2.744-2.735a.612.612,0,0,1,.866,0,.612.612,0,0,1,.173.517l-.274,1.967a.408.408,0,0,0,.348.461.408.408,0,0,0,.077,0l2.37-.122a1.02,1.02,0,0,1,1.071.966,1.02,1.02,0,0,1-.054.382l-1.506,4.4a.816.816,0,0,1-.772.552H19.092a.816.816,0,0,1-.816-.816v-5A.816.816,0,0,1,18.516-34.2Z`,transform:`translate(-18.276 37.116)`,f
2ill:`#868f9a`,clipRule:`evenodd`})})]}),(0,K.jsxs)(`g`,{id:`Thumbs_Up`,"data-name":`Thumbs Up`,transform:`translate(-432.074 -398.062)`,children:[(0,K.jsxs)(`g`,{id:`Group_351`,"data-name":`Group 351`,transform:`translate(430.513 445)`,children:[(0,K.jsx)(`g`,{id:`Group_348`,"data-name":`Group 348`,transform:`translate(7.643 -37.327)`,clipPath:`url(#clip-path-2)`,children:(0,K.jsx)(`g`,{id:`Group_347`,"data-name":`Group 347`,transform:`translate(-4.897 -8.171)`,clipPath:`url(#clip-path-3)`,children:(0,K.jsx)(`path`,{id:`Path_428`,"data-name":`Path 428`,d:`M7-32.976h5.91v9.662H7Z`,transform:`translate(-4.144 39.107)`,fill:`#868f9a`})})}),(0,K.jsx)(`g`,{id:`Group_350`,"data-name":`Group 350`,transform:`translate(10.203 -41.057)`,clipPath:`url(#clip-path-4)`,children:(0,K.jsx)(`g`,{id:`Group_349`,"data-name":`Group 349`,transform:`translate(-7.458 -4.441)`,clipPath:`url(#clip-path-3)`,children:(0,K.jsx)(`path`,{id:`Path_431`,"data-name":`Path 431`,d:`M13.276-42.116h11.7v13.392h-11.7Z`,transform:`translate(-7.858 44.517)`,fill:`#868f9a`})})})]}),(0,K.jsxs)(`g`,{id:`Oval_5`,"data-name":`Oval 5`,transform:`translate(434 400)`,fill:`none`,stroke:`#868f9a`,strokeMiterlimit:`10`,strokeWidth:`1`,children:[(0,K.jsx)(`circle`,{cx:`9`,cy:`9`,r:`9`,stroke:`none`}),(0,K.jsx)(`circle`,{cx:`9`,cy:`9`,r:`9.5`,fill:`none`})]})]})]}),mde=t({default:()=>hde}),hde=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 15 11`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`path`,{d:`M.497 5.003a.501.501 0 0 0 0 1h12.567l-3.671 3.67a.508.508 0 0 0-.004.711.496.496 0 0 0 .714-.006l4.522-4.522a.5.5 0 0 0 0-.721L10.103.613a.51.51 0 0 0-.714-.007.497.497 0 0 0 .005.713l3.684 3.684H.497z`,fill:`#88929B`,fillRule:`evenodd`})}),gde=t({default:()=>_de}),_de=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`path`,{d:`M17.5 8v9.497c0 1.106-.9 2.003-1.992 2.003H8.492c-1.1 0-1.992-.902-1.992-2.003V8`,stroke:`#868F9A`}),(0,K.jsx)(`path`,{d:`M9 6H5v1h14V6h-4V4.999A.992.992 0 0 0 14.01 4H9.99a1 1 0 0 0-.99.999V6zm1-1h4v1h-4V5zM10 10h1v6h-1zM13 10h1v6h-1z`,fill:`#868F9A`})]})}),vde=t({default:()=>yde}),yde=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M9.336 3.982C9.426 3.44 9.951 3 10.491 3h4.018c.547 0 1.065.443 1.155.982L16 6H9l.336-2.018z`,id:`IcTrash2-a`}),(0,K.jsx)(`mask`,{id:`IcTrash2-b`,x:0,y:0,width:7,height:3,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcTrash2-a`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h24v24H0z`}),(0,K.jsx)(`path`,{d:`M18.5 6l-.431 12.5c-.038 1.104-.97 2-2.061 2H8.992c-1.1 0-2.023-.885-2.061-2L6.5 6`,stroke:Wp}),(0,K.jsx)(`path`,{fill:Wp,d:`M4.5 5h16v1h-16z`}),(0,K.jsx)(`use`,{stroke:Wp,mask:`url(#IcTrash2-b)`,strokeWidth:2,xlinkHref:`#IcTrash2-a`}),(0,K.jsx)(`path`,{fill:Wp,d:`M9 8h1v9H9zM15 8h1v9h-1zM12 8h1v9h-1z`})]})]}),bde=t({default:()=>xde}),xde=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M9.336 3.982C9.426 3.44 9.951 3 10.491 3h4.018c.547 0 1.065.443 1.155.982L16 6H9l.336-2.018z`,id:`IcTrash3-a`}),(0,K.jsx)(`mask`,{id:`IcTrash3-b`,x:0,y:0,width:7,height:3,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcTrash3-a`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M18.5 6l-.431 12.5c-.038 1.104-.97 2-2.061 2H8.992c-1.1 0-2.023-.885-2.061-2L6.5 6`,stroke:`#FFF`}),(0,K.jsx)(`path`,{fill:`#FFF`,d:`M4.5 5h16v1h-16z`}),(0,K.jsx)(`use`,{stroke:`#FFF`,mask:`url(#b)`,strokeWidth:2,xlinkHref:`#IcTrash3-a`}),(0,K.jsx)(`path`,{fill:`#FFF`,d:`M9 8h1v9H9zM15 8h1v9h-1zM12 8h1v9h-1z`})]})]}),Sde=t({default:()=>Cde}),Cde=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 17 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`#6B757F`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M14 2.983l-.43 12.499c-.03.833-.737 1.518-1.562 1.518H4.992a1.575 1.575 0 0 1-1.561-1.518L3 2.982l-1 .035.431 12.5A2.575 2.575 0 0 0 4.992 18h7.016c1.364 0 2.513-1.112 2.56-2.484L15 3.017l-1-.034z`}),(0,K.jsx)(`path`,{d:`M.5 2h16v1H.5z`}),(0,K.jsx)(`path`,{d:`M10.677 1.147c-.01-.06-.112-.147-.168-.147H6.491c-.054 0-.159.089-.168.147L6.18 2h4.64l-.143-.853zM5.337.982C5.426.44 5.95 0 6.49 0h4.018c.547 0 1.065.443 1.155.982L12 3H5L5.336.982zM5 5h1v9H5zM11 5h1v9h-1zM8 5h1v9H8z`})]})}),wde=t({default:()=>Tde}),Tde=e=>
2(0,K.jsxs)(`svg`,{viewBox:`0 0 24 24`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`path`,{d:`M9.336 3.982C9.426 3.44 9.951 3 10.491 3h4.018c.547 0 1.065.443 1.155.982L16 6H9l.336-2.018z`,id:`IcTrashSolid-a`}),(0,K.jsx)(`mask`,{id:`IcTrashSolid-b`,x:0,y:0,width:7,height:3,fill:e.color||`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#IcTrashSolid-a`})})]}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M19 5l-.438 14.006c-.034 1.101-.964 1.994-2.07 1.994H8.508c-1.11 0-2.037-.895-2.071-1.994L6 5h13zM9 8h1v9H9V8zm3 0h1v9h-1V8zm3 0h1v9h-1V8z`,fill:e.color||`#fff`}),(0,K.jsx)(`path`,{fill:e.color||`#fff`,d:`M4.5 5h16v1h-16z`}),(0,K.jsx)(`use`,{stroke:e.color||`#fff`,mask:`url(#IcTrashSolid-b)`,strokeWidth:2,xlinkHref:`#IcTrashSolid-a`})]})]}),Ede=t({default:()=>Dde}),Dde=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 19 21`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(-3 -1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M5.5 5v15.007c0 .824.675 1.493 1.498 1.493h11.004c.827 0 1.498-.667 1.498-1.493V5`,stroke:`#FFF`}),(0,K.jsx)(`path`,{d:`M10 3V2h5v1h-5zm6-1.001A1 1 0 0 0 15.01 1H9.99a.992.992 0 0 0-.99.999V3H4.008a.51.51 0 0 0-.508.5c0 .276.228.5.5.5h17c.276 0 .5-.232.5-.5a.5.5 0 0 0-.508-.5H16V1.999z`,fill:`#FFF`}),(0,K.jsx)(`rect`,{fill:`#FFF`,x:9,y:7,width:1,height:11,rx:.5}),(0,K.jsx)(`rect`,{fill:`#FFF`,x:15,y:7,width:1,height:11,rx:.5}),(0,K.jsx)(`rect`,{fill:`#FFF`,x:12,y:7,width:1,height:11,rx:.5})]})}),Ode=t({default:()=>kde}),kde=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 48 48`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{fill:`#FF5722`,cx:24,cy:24,r:24}),(0,K.jsx)(`path`,{d:`M34.993 14.82c-.677.434-2.232 1.065-3 1.065v.001a4.81 4.81 0 0 0-8.164 4.396c-3.603-.094-7.544-1.9-9.916-4.99-1.458 2.524-.196 5.331 1.459 6.354-.567.043-1.61-.065-2.1-.544-.033 1.676.772 3.896 3.71 4.701-.566.304-1.567.217-2.003.152.153 1.415 2.134 3.264 4.3 3.264-.772.893-3.677 2.512-6.936 1.997a14.452 14.452 0 0 0 7.524 2.127c7.76 0 13.786-6.289 13.462-14.047l-.003-.027.003-.06c0-.024-.003-.047-.003-.07a8.297 8.297 0 0 0 2.331-2.463c-.393.216-1.57.65-2.667.757.704-.38 1.746-1.624 2.003-2.613`,fill:`#FFF`})]})}),Ade=t({default:()=>jde}),jde=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h18v18H0z`}),(0,K.jsx)(`path`,{d:`M13.744 16H4.256a.754.754 0 0 1-.756-.75V9H1.75c-.423 0-.498-.22-.187-.492l6.874-6.016a.874.874 0 0 1 1.126 0l6.874 6.016c.315.275.227.492-.187.492H14.5v6.25c0 .412-.339.75-.756.75zM8.25 14.5h1.5V13h-1.5v1.5zm.75-9a3 3 0 0 0-3 3h1.5C7.5 7.675 8.175 7 9 7s1.5.675 1.5 1.5c0 1.5-2.25 1.313-2.25 3.75h1.5c0-1.688 2.25-1.875 2.25-3.75a3 3 0 0 0-3-3z`,fill:`#868F9A`,fillRule:`nonzero`})]})}),Mde=t({default:()=>Nde}),Nde=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 20`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{stroke:Wp,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,K.jsx)(`path`,{d:`M16.799 13.9h2.396s4.305-.561 4.305-4.783a4.774 4.774 0 0 0-4.955-4.774A6.687 6.687 0 0 0 12.5.508a6.69 6.69 0 0 0-6.676 6.294 3.587 3.587 0 0 0-4.324 3.51c0 3.645 3.826 3.588 3.826 3.588H8.19M12.5 8.5v11`}),(0,K.jsx)(`path`,{d:`M15.5 11.5l-3-3-3 3`})]})}),Pde=t({default:()=>Fde}),Fde=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,fill:`currentColor`,children:(0,K.jsx)(`path`,{d:`M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z`})}),zm=t({default:()=>Bm}),Bm=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,fill:`currentColor`,children:(0,K.jsx)(`path`,{d:`M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46A11.804 11.804 0 001 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z`})}),Vm=t({default:()=>Hm}),Hm=e=>
2(0,K.jsx)(`svg`,{viewBox:`0 0 22 22`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{transform:`translate(-1 -1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{stroke:`#FF5722`,cx:12,cy:12,r:10.5}),(0,K.jsx)(`path`,{d:`M11.424 13.99c.01.282.24.51.513.51h.162a.519.519 0 0 0 .511-.51l.242-7.61A.845.845 0 0 0 12 5.5a.839.839 0 0 0-.849.88l.273 7.61z`,fill:`#FF5722`}),(0,K.jsx)(`circle`,{fill:`#FF5722`,cx:12.005,cy:17.005,r:1.125})]})}),Um=t({default:()=>Wm}),Wm=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{fill:`#FF4B0A`,cx:12,cy:12,r:10}),(0,K.jsx)(`path`,{d:`M11.424 13.99c.01.282.24.51.513.51h.162a.519.519 0 0 0 .511-.51l.242-7.61A.845.845 0 0 0 12 5.5a.839.839 0 0 0-.849.88l.273 7.61z`,fill:`#FFF`}),(0,K.jsx)(`circle`,{fill:`#FFF`,cx:12.005,cy:17.005,r:1.125})]})}),Gm=t({default:()=>Km}),Km=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h18v18H0z`}),(0,K.jsx)(`path`,{d:`M.75 15.75h16.5L9 1.5.75 15.75zm9-2.25h-1.5V12h1.5v1.5zm0-3h-1.5v-3h1.5v3z`,fill:`currentColor`})]})}),qm=t({default:()=>Jm}),Jm=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M0 0h18v18H0z`}),(0,K.jsx)(`path`,{d:`M5.25 8.25v1.5h7.5v-1.5h-7.5zM9 1.5C4.86 1.5 1.5 4.86 1.5 9c0 4.14 3.36 7.5 7.5 7.5 4.14 0 7.5-3.36 7.5-7.5 0-4.14-3.36-7.5-7.5-7.5zM9 15c-3.308 0-6-2.693-6-6 0-3.308 2.692-6 6-6 3.307 0 6 2.692 6 6 0 3.307-2.693 6-6 6z`,fill:`#1B5E20`})]})}),Ym=t({default:()=>Xm}),Xm=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 12 12`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{fill:`#FFF`,cx:6,cy:6,r:6}),(0,K.jsx)(`path`,{fill:`#A0AAB5`,d:`M4.06 3l5.304 5.303-1.06 1.061L3 4.061z`}),(0,K.jsx)(`path`,{fill:`#A0AAB5`,d:`M3 8.303L8.303 3l1.061 1.06-5.303 5.304z`})]})}),Zm=t({default:()=>Qm}),Qm=e=>(0,K.jsx)(`svg`,{version:`1.1`,id:`Layer_1`,xmlns:`http://www.w3.org/2000/svg`,x:`0px`,y:`0px`,viewBox:`0 0 50.2 46`,style:{enableBackground:`new 0 0 50.2 46 `},width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{className:`inherit`,fill:`currentColor`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M47.2,11.1v1.2v3.3v4.7v5.5v5.6v5.1v3.9v2v0.1v0l0,0.1c0,0.2,0.1-0.3,0-0.1l-0.1,0.2c0,0,0,0.1,0,0.1c0,0,0.1-0.3,0.1-0.2 3 c0,0.1-0.1,0.1-0.1,0.2c0,0-0.1,0.2,0,0c0.1-0.2,0,0,0,0L47,43.2c-0.1,0.1,0.1-0.1,0.1-0.1c0,0-0.1,0-0.1,0.1l-0.2,0.1 4 c-0.1,0.1,0.2-0.1,0.2-0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1,0-0.2,0c0,0,0.4,0,0.1,0h-0.1h0h-0.1h-1.5h-3h-4.2h-5h-5.5h-5.7h-5.4h-4.9h-4 5 H4.5H3.3h0c0,0-0.1,0-0.1,0c-0.1,0,0.2,0,0.2,0c0,0-0.1,0-0.1,0L3,43.2c-0.1,0,0.2,0.1,0.2,0.1c0,0-0.1,0-0.1-0.1 6 c-0.1,0-0.1-0.1-0.2-0.1c0.2,0.1,0.2,0.2,0.1,0.1l-0.1-0.1c0,0-0.2-0.2-0.1,0s0,0-0.1-0.1l0-0.1C2.7,42.7,2.8,43,2.8,43 7 c0-0.1,0-0.1-0.1-0.2c0,0,0-0.1,0-0.1c0-0.1,0,0.2,0,0.2c0,0,0-0.1,0-0.2v-0.3v-2.4v-4.1v-5.2v-5.6v-5.4V15v-3v-0.7v-0.1v0l0-0.1 8 c0-0.1,0,0.2,0,0.2c0-0.1,0-0.1,0-0.2c0-0.1,0.1-0.3,0-0.1s0,0,0-0.1s0.2-0.3,0-0.1s0,0,0.1-0.1L3,10.6c0.1-0.1-0.1,0.1-0.1,0.1 9 c0.1,0,0.2-0.1,0.2-0.1c0,0,0.1,0,0.1-0.1c0,0-0.3,0.1-0.2,0.1l0.2-0.1c0.2-0.1-0.3,0-0.1,0h0.1h0h0.1h0.5h2.3h3.7h4.7h5.3h5.7h5.6 10 h5.2h4.5h3.4h2h0.3h0h0c0,0,0.1,0,0.1,0c0,0-0.3-0.1-0.2,0l0.3,0.1c0.2,0.1-0.2-0.1-0.1,0l0.2,0.1c0.2,0.1-0.2-0.2,0,0l0.2,0.2 11 c0.2,0.2-0.1-0.2,0-0.1l0.1,0.2c0.1,0.1-0.1-0.2-0.1-0.2c0,0,0,0.1,0,0.1L47.2,11.1c0,0.1,0-0.2,0-0.2C47.2,11,47.2,11.1,47.2,11.1 12 c0,0.7,0.6,1.4,1.4,1.4c0.7,0,1.4-0.6,1.4-1.4c0-1.8-1.5-3.3-3.3-3.3h-0.3h-1.9h-3.4h-4.5h-5.3h-5.7H20h-5.4H9.9H6.2H3.9H3.4 13 C2.5,7.8,1.7,8.1,1,8.7c-0.7,0.6-1,1.6-1,2.5v0.7v2.9v4.6v5.5v5.7v5.3V40v2.4l0,0.5C0.1,44.6,1.5,46,3.3,46h1.1h2.7h4h4.9h5.5h5.7 14 h5.6H38h4.2h3h1.4c0.9,0,1.8-0.3,2.5-1c0.6-0.7,0.9-1.5,0.9-2.4v-1.9v-3.9v-5.1V26v-5.6v-4.8v-3.3v-1.2c0-0.7-0.6-1.4-1.4-1.4 15 C47.9,9.8,47.2,10.4,47.2,11.1L47.2,11.1L47.2,11.1z M27.8,19.4v2.5v2.9c0,0,0,0,0,0.1c-0.1-0.4,0.5-0.9,0.9-0.9c-0.1,0-0.1,0-0.2,0 16 h-1.2h-3.7H22c-0.2,0-0.5,0-0.7,0c0.4-0.1,0.9,0.4,0.9,0.9c0,0,0,0,0-0.1v-0.4v-1.6v-3.3v-0.2c0,0-0.1,0.5-0.1,0.4 17 c-0.1,0.1-0.2,0.2-0.3,0.3c0,0-0.4,0.2-0.4,0.1c0,0,0.1,0,0.1,0c0.3,0,0.6,0,1,0h3.6h2.6c0,0,0.1,0,0.1,0s-0.2,0-0.2,0 18 C28,20.1,27.8,19.8,27.8,19.4c0,0.7,0.6,1.4,1.4,1.4c0.7,0,1.4-0.6,1.4-1.4c-0.1-1.1-0.8-1.9-1.9-1.9h-0.2h-1.2h-4h-1.5
19 c-0.6,0-1.2,0.1-1.7,0.5c-0.5,0.5-0.6,1.2-0.6,1.9v1.8v3.2c0,1.1,0.9,1.9,2,2h1h3.9h2.4c1,0,1.9-0.9,1.9-1.9c0-0.1,0-0.2,0-0.2v-1.5 20 v-3.6v-0.2c0-0.7-0.6-1.4-1.4-1.4S27.8,18.6,27.8,19.4L27.8,19.4L27.8,19.4z`}),(0,K.jsx)(`path`,{d:`M47.2,11v2.2l0,2.3l0,0.3l0,0.1c0,0.2,0-0.2,0-0.2c0,0.2-0.1,0.4-0.1,0.6c-0.1,0.3-0.2,0.7-0.3,1c-0.1,0.2,0.1-0.3,0,0 21 l-0.1,0.2l-0.3,0.5l-0.3,0.4L46,18.5c0,0,0.2-0.2,0.1-0.1L46,18.5c-0.2,0.3-0.5,0.5-0.7,0.7l-0.2,0.2c-0.2,0.2,0.2-0.1,0,0l-0.4,0.3 22 c-0.3,0.2-0.6,0.3-0.9,0.5c0,0,0.3-0.1,0.2-0.1l-0.1,0.1l-0.2,0.1l-0.5,0.2l-0.5,0.1l-0.1,0c0.3,0-0.1,0-0.2,0l-0.6,0h-0.4h-1.9h-6 23 c-1.3,0-2.7,0-4,0h-0.1l1.4,1.4v-1.4c0-0.5,0.1-1.2-0.1-1.7c-0.2-0.8-1-1.4-1.8-1.4h-0.2h-1.3h-3.9h-1.5c-0.5,0-1,0-1.4,0.3 24 c-0.6,0.4-0.9,1.1-0.9,1.8v0.8V22l1.4-1.4H14H9.7H8.6H8.4c-0.3,0-0.5,0-0.8,0c-0.2,0,0.1,0,0.1,0c-0.1,0-0.1,0-0.2,0l-0.4-0.1 25 c-0.3-0.1-0.5-0.1-0.8-0.2l-0.2-0.1c0.4,0.1,0.2,0.1,0.1,0L5.8,20c-0.2-0.1-0.5-0.3-0.7-0.4c-0.1-0.1-0.4-0.3-0.1,0 26 c-0.1-0.1-0.2-0.2-0.3-0.3c-0.2-0.2-0.4-0.4-0.6-0.6l-0.2-0.3c0.3,0.3,0.1,0.1,0,0l-0.2-0.2c-0.1-0.2-0.3-0.4-0.4-0.7l-0.2-0.4 27 c-0.1-0.2,0.1,0.3,0,0.1L3.1,17C3,16.8,3,16.5,2.9,16.2l-0.1-0.4l0-0.2c0.1,0.4,0,0.1,0,0l0-0.8v-2.1V11v0c0,0,0-0.2,0-0.2 28 c0,0.2,0,0.3,0,0.1c0-0.1,0-0.1,0-0.2l-0.1,0.2c0,0,0-0.1,0.1-0.1c0-0.1,0.1-0.1,0.1-0.2c0,0.1-0.2,0.2,0,0.1c0.1-0.1,0.2-0.1-0.1,0 29 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1-0.1c-0.3,0.2-0.2,0.1-0.1,0c0.2,0,0.3,0-0.1,0c0,0,0.1,0,0.1,0h0H4h5.2h8.4h9.8h9.3h7.1h3h0 30 c0,0,0.2,0,0.1,0l-0.2,0c0,0,0.1,0,0.1,0c0,0,0.1,0,0.1,0l-0.2-0.1c0,0,0.1,0,0.1,0.1c0.1,0,0.1,0.1,0.2,0.1c0,0-0.3-0.2-0.1-0.1 31 c0,0,0.1,0.1,0.1,0.2l-0.1-0.2c0,0,0.1,0.1,0.1,0.1C47.2,10.8,47.2,10.8,47.2,11c0.1,0.1-0.1-0.4,0-0.1L47.2,11l0-0.1L47.2,11 32 c0,0.7,0.6,1.4,1.4,1.4c0.7,0,1.4-0.6,1.4-1.4c0-1.7-1.4-3.1-3.1-3.1h-0.2h-1.5h-6.3h-9.1h-10h-9H4.6H3.3c-0.3,0-0.6,0-1,0.1 33 C0.9,8.3,0,9.6,0,11v3.9c0,2.4,1,4.7,2.7,6.3c1.6,1.4,3.6,2.2,5.8,2.2h3h8.7h0.6c0.7,0,1.4-0.6,1.4-1.4v-1.2v-0.9c0-0.1,0-0.3,0-0.5 34 c0,0.1-0.1,0.3-0.1,0.4s-0.2,0.2-0.3,0.3c0,0-0.4,0.2-0.4,0.1h0c0.1,0,0.2,0,0.3,0H23h3.6H28c0.2,0,0.4,0,0.6,0 35 c-0.3,0-0.6-0.2-0.7-0.4c0-0.1-0.1-0.4-0.1-0.4c0,0,0,0.2,0,0.2v0.9V22c0,0.7,0.6,1.4,1.4,1.4h3.5h6.2c1.4,0,2.8,0.1,4.2-0.1 36 c3.2-0.5,6-3.1,6.7-6.3c0.2-1,0.2-2,0.2-3v-2.8V11c0-0.7-0.6-1.4-1.4-1.4C47.9,9.6,47.2,10.2,47.2,11L47.2,11L47.2,11z`}),(0,K.jsx)(`path`,{d:`M33.1,7.8h-5.5h-8.7h-2l1.4,1.4v-6V2.9v0c0,0,0-0.1,0-0.1c0-0.2-0.1,0.4,0,0.1c0,0,0-0.1,0-0.1c0,0.2-0.1,0.2,0,0.1 37 c0,0,0.2-0.2,0,0c-0.2,0.2,0,0,0.1,0s0.2-0.2,0,0c-0.2,0.2,0,0,0,0c0.1-0.1,0.1,0-0.1,0c0,0,0.1,0,0.1,0c0.2-0.1-0.3,0-0.1,0l0.1,0 38 h0h0.2h2.2h7.6h2.7h0.5h0h0.1c0.3,0-0.3-0.1-0.1,0c0,0,0.1,0.1,0.2,0c0,0-0.3-0.2-0.1,0c0,0,0.1,0.1,0.1,0.1l-0.1-0.1 39 c0,0,0.1,0,0.1,0.1c0,0,0.1,0.1,0.1,0.1c-0.2-0.1-0.2-0.2-0.1-0.1c0.1,0.2,0,0.1,0-0.1c0,0,0,0.1,0,0.1c0.1,0.2,0-0.2,0-0.1 40 c0,0,0,0.1,0,0.2v0V9v0.2c0,0.7,0.6,1.4,1.4,1.4s1.4-0.6,1.4-1.4V3.1c0-0.8-0.2-1.6-0.8-2.2C33.1,0.3,32.3,0,31.5,0h-2.2h-7.9h-2.7 41 c-0.1,0-0.3,0-0.4,0c-1.6,0-2.8,1.3-2.9,2.9V9v0.2c0,0.7,0.6,1.4,1.4,1.4h5.5h8.7h2c0.7,0,1.4-0.6,1.4-1.4 42 C34.5,8.4,33.9,7.8,33.1,7.8L33.1,7.8z`})]})}),$m=t({default:()=>eh}),eh=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 26 30`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`#FF5722`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M3.928 21.222L12.706 30l2.926-2.926-8.778-8.778a8.276 8.276 0 1 1 11.703 0c-1.066 1.067-2.24 1.66-3.715 2.137l3.715 3.715 2.927-2.926c4.847-4.848 4.847-12.708 0-17.556-4.849-4.848-12.708-4.848-17.556 0-4.848 4.848-4.849 12.708 0 17.556z`}),(0,K.jsx)(`path`,{d:`M15.632 15.37a4.138 4.138 0 1 0-5.853-5.852 4.138 4.138 0 0 0 5.853 5.852`})]})}),th=t({default:()=>nh}),nh=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 65 65`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{fill:`#FF5916`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M18.565 15.51a18.671 18.671 0 0 0 0 26.596L32 55.406l4.479-4.434-13.435-13.3a12.448 12.448 0 0 1 0-17.73c4.947-4.897 12.968-4.896 17.912 0a12.447 12.447 0 0 1 0 17.731c-1.632 1.618-3.43 2.517-5.685 3.238l5.685 5.628 4.48-4.433a18.673 18.673 0 0 0 0-26.597c-7.421-7.345-19.45-7.346-26.87 0`}),(0,K.jsx)(`path`,{d:`M36.479 33.24a6.225 6.225 0 0 0-.001-8.866c-2.471-2.448-6.483-2.448-8.955 0a6.224 6.224 0 0 0 0 8.867c2.472 2.448 6.483 2.448 8.956 0`})]})}),rh=t({default:()=>ih}),ih=e=>
42(0,K.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:26,height:27,viewBox:`0 0 7 7`,...e,children:[(0,K.jsx)(`path`,{d:`M0 0h7v7H0z`,style:{fill:`none`,fillOpacity:1,stroke:`none`}}),(0,K.jsx)(`path`,{d:`M15.176.347v3.27M1.001 7.984h19.63M6.457.347v3.27m-2.19 8.738h2.19m2.177 0h8.734M4.266 16.709h2.19m2.177 0h6.543m-1.088 4.37H1.001V3.616h19.63V14.54m-1.087 10.908c1.45 0 2.829-.588 3.859-1.597a5.488 5.488 0 0 0 1.596-3.857c0-1.447-.58-2.848-1.596-3.857a5.458 5.458 0 0 0-9.315 3.857c0 1.446.58 2.832 1.596 3.857a5.522 5.522 0 0 0 3.86 1.597Zm-.537-6.554 1.625 1.1-1.625 1.085Zm0 0`,style:{fill:`none`,strokeWidth:2,strokeLinecap:`butt`,strokeLinejoin:`miter`,stroke:`#36ACB2`,strokeOpacity:1,strokeMiterlimit:4},transform:`scale(.26923 .25926)`}),(0,K.jsx)(`path`,{d:`M-121.498-748.497H1579.5v2320.99H-121.498Zm0 0`,style:{fill:`none`,strokeWidth:23,strokeLinecap:`butt`,strokeLinejoin:`miter`,stroke:`#000`,strokeOpacity:1,strokeMiterlimit:4},transform:`scale(.26923 .25926)`}),(0,K.jsx)(`path`,{d:`M-10234.497-1265.504H7310.498V5826.5h-17544.995Zm0 0`,style:{fill:`none`,strokeWidth:23,strokeLinecap:`butt`,strokeLinejoin:`miter`,stroke:`#36ACB2`,strokeOpacity:1,strokeMiterlimit:4},transform:`scale(.26923 .25926)`})]}),ah=t({default:()=>oh}),oh=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`g`,{className:`inherit`,fill:`none`,fillRule:`evenodd`,children:(0,K.jsx)(`path`,{d:`M0 4.007A1 1 0 0 1 .993 3h16.014A1 1 0 0 1 18 4.007v12.986A1 1 0 0 1 17.007 18H.993A1 1 0 0 1 0 16.993V4.007zm2 4.99v6.006c0 .544.45.997 1.007.997h11.986c.557 0 1.007-.446 1.007-.997V8.997C16 8.453 15.55 8 14.993 8H3.007C2.45 8 2 8.446 2 8.997zM2 .999A.997.997 0 0 1 3 0c.552 0 1 .443 1 .999V3H2V.999zM14 .999A.997.997 0 0 1 15 0c.552 0 1 .443 1 .999V3h-2V.999z`})})}),sh=t({default:()=>ch}),ch=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsx)(`g`,{className:`inherit`,fill:`none`,fillRule:`evenodd`,children:(0,K.jsx)(`path`,{d:`M.99 17.908c-.547 0-.86-.428-.686-.955 0 0 1.014-3.756 3.087-5.315 2.919-2.196 6.135-2.566 9.451-1.026 3.072 1.427 4.74 6.37 4.74 6.37.199.511-.084.926-.63.926H.99zM4.785 4.104C4.789 1.834 6.673-.016 8.96 0c2.314.016 4.16 1.848 4.156 4.124-.004 2.27-1.875 4.11-4.176 4.102-2.304-.007-4.16-1.848-4.156-4.122`})})}),lh=t({default:()=>uh}),uh=({color:e,...t})=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 19`,width:`1.5em`,height:`1.5em`,...t,children:(0,K.jsx)(`path`,{fill:`currentColor`,d:`M17.009 9.077a1.02 1.02 0 0 0-.992 1.02v7.896a.994.994 0 0 1-.99 1.004H11.87a.995.995 0 0 1-.99-.996v-3.726a.997.997 0 0 0-.992-.996H8.442a.996.996 0 0 0-.992.996v3.728a.99.99 0 0 1-.992.997h-3.16a1 1 0 0 1-.993-1.004v-7.893a.998.998 0 0 0-.99-1.004H.99c-.547 0-.67-.31-.27-.699l7.553-7.323a1.042 1.042 0 0 1 1.442-.004l7.562 7.29c.399.385.282.704-.27.714z`,fillRule:`evenodd`})}),dh=t({default:()=>fh}),fh=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{className:`inherit`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M13.602 16.476c-2.555 1.809-6.483 2.16-9.649-.04C.598 14.105-.749 9.743.635 5.878 2.016 2.02 5.563-.05 8.813.004v.155c0 2.885 0 5.771.003 8.657 0 .084.029.181.074.252 1.54 2.427 3.084 4.85 4.628 7.276l.084.132`}),(0,K.jsx)(`path`,{d:`M10.695 8.575c-.004-2.395-.003-4.79-.003-7.185v-.145c2.508-.078 5.645 1.533 6.842 4.937 1.179 3.353-.117 6.985-2.845 8.812-.175-.274-3.994-6.334-3.994-6.419z`})]})}),ph=t({default:()=>mh}),mh=e=>(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...e,children:(0,K.jsxs)(`g`,{className:`inherit`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M4.01552177,13.8237598 L4.05102606,17.995405 L2.05102606,17.995405 L2.01561543,13.8347648 C0.842273341,13.4273697 0,12.3120466 0,11 C0,9.69378117 0.834807627,8.58254212 2,8.17070571 L2,8.8817842e-15 L4,8.8817842e-15 L4,8.17070571 C5.16519237,8.58254212 6,9.69378117 6,11 C6,12.3004114 5.17259901,13.4075728 4.01552177,13.8237598 Z M3,12 C3.55228475,12 4,11.5522847 4,11 C4,10.4477153 3.55228475,10 3,10 C2.44771525,10 2,10.4477153 2,11 C2,11.5522847 2.44771525,12 3,12 Z`}),(0,K.jsx)(`path`,{d:`M15.9950512,13.8310385 L15.9837502,18.0124085 L13.9837502,18.0124085 L13.9950607,13.8275436 C12.8324491,13.4143158 12,12.3043724 12,11 C12,9.69378117 12.8348076,8.58254212 14,8.17070571 L14,-2.66453526e-14 L16,-2.66453526e-14 L16,8.17070571 C17.1651924,8.58254212 18,9.69378117 18,11 C18,12.3080673 17.1628279,13.4206026 15.9950512,13.8310385 Z M15,12 C15.5522847,12 16,11.5522847 16,11 C16,10.4477153 15.5522847,10 15,10 C14.4477153,10 14,10.4477153 14,11 C14,11.5522847 14.4477153,12 15,12 Z`}),(0,K.jsx)(`path`,{d:`M10,14.4876464 L10,17.9916855 L8,17.9916855 L8,14.4876464 C6.83480763,14.07581 6,12.964571 6,11.6583521 C6,10.3505161 6.83687603,9.23814294 8.00432933,8.8275314 L8.03715773,-8.17124146e-14 L10.0371577,-8.17124146e-14 L10.004318,8.83058776 C11.1672542,9.24364086 12,10.3537474 12,11.6583521 C12,12.964571 11.1651924,14.07581 10,14.4876464 Z M9,12.6583521 C9.55228475,12.6583521 10,12.2106369 10,11.6583521 C10,11.1060674 9.55228475,10.6583521 9,10.6583521 C8.44771525,10.6583521 8,11.1060674 8,11.6583521 C8,12.2106369 8.44771525,12.6583521 9,12.6583521 Z`,transform:`translate(9.000000, 8.995843) scale(1, -1) translate(-9.000000, -8.995843) `})]})}),hh=t({default:()=>gh}),gh=({color:e,...t})=>
42(0,K.jsx)(`svg`,{viewBox:`0 0 18 18`,width:`1.5em`,height:`1.5em`,...t,children:(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`rect`,{fill:`currentColor`,width:18,height:18,rx:1}),(0,K.jsx)(`path`,{d:`M8.44 12.596l-.708-.707 6.014-6.014a.495.495 0 0 1 .704.004.504.504 0 0 1 .003.704l-6.014 6.013zm-.708.707l-.353.354a.5.5 0 0 1-.7.006l-2.842-2.841a.493.493 0 0 1 .006-.7.5.5 0 0 1 .7-.007l3.19 3.188z`,stroke:`#fff`})]})}),_h=t({default:()=>vh}),vh=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,...e,children:(0,K.jsx)(`path`,{d:`M132.893 310.534l-30.081 10.911L91.9 291.364l30.081-10.911zm138.659-9.462l-77.856-46.72-41.616 15.152 10.944 30.064 27.28-9.92 82.144 49.28 97.6-65.072L480 315.088V480H32V347.2l40.8-14.848-10.928-30.048L0 324.8V512h512V292.912l-146.048-54.768zM0 0v278.848l66.576-24.224-10.928-30.064L32 233.152V32h448v168.912l-114.048-42.768-94.4 62.928-77.856-46.72-47.84 17.392 10.944 30.064 33.504-12.16 82.144 49.28 97.6-65.072L512 247.088V0zm96.656 243.686L85.721 213.63l30.07-10.941 10.935 30.055z`})}),yh=t({default:()=>bh}),bh=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,...e,children:(0,K.jsx)(`path`,{d:`M132.893 310.534l-30.081 10.911L91.9 291.364l30.081-10.911zm138.659-9.462l-77.856-46.72-41.616 15.152 10.944 30.064 27.28-9.92 82.144 49.28 97.6-65.072L480 315.088V480H32V347.2l40.8-14.848-10.928-30.048L0 324.8V512h512V292.912l-146.048-54.768zM0 0v278.848l66.576-24.224-10.928-30.064L32 233.152V32h448v168.912l-114.048-42.768-94.4 62.928-77.856-46.72-47.84 17.392 10.944 30.064 33.504-12.16 82.144 49.28 97.6-65.072L512 247.088V0zm96.656 243.686L85.721 213.63l30.07-10.941 10.935 30.055z`})}),xh=t({default:()=>Sh}),Sh=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:Wp,width:`24px`,height:`24px`,...e,children:(0,K.jsx)(`path`,{d:`M14 2L6.39 9.61 4 11l3 3-6 6 1.41 1.41 6-6 3 3 1.39-2.39L22 10l-8-8zM7.41 12.83l-1.42-1.41L14 3.42l1.41 1.41L7.41 12.83zM14 11l-1 1-1.59-1.59 1-1L14 11zm2-1l-3.41 3.41-1-1L15 9l1 1zm2 2l-1 1-1.59-1.59L17 11l1 1z`})}),Ch=t({default:()=>wh}),wh=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 123 30`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{id:`Plogo-a`,d:`M0 30h122.12V.03H0`})}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`mask`,{id:`Plogo-b`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#Plogo-a`})}),(0,K.jsx)(`path`,{d:`M100.928 3.667c-4.848 4.847-4.849 12.707 0 17.555L109.706 30l2.926-2.926-8.778-8.778a8.276 8.276 0 1 1 11.703 0c-1.066 1.067-2.24 1.66-3.715 2.137l3.715 3.715 2.927-2.926c4.847-4.848 4.847-12.708 0-17.556-4.849-4.848-12.708-4.848-17.556 0`,fill:`#FF5722`,mask:`url(#Plogo-b)`}),(0,K.jsx)(`path`,{d:`M112.632 15.37a4.138 4.138 0 1 0-5.853-5.852 4.138 4.138 0 0 0 5.853 5.852`,fill:`#FF5722`}),(0,K.jsx)(`path`,{d:`M9.214 17.587v-.188c0-2.485-1.219-3.704-2.93-3.704-1.782 0-3.002 1.242-3.002 3.704v.188c0 2.462 1.173 3.657 3.025 3.657 1.876 0 2.907-1.266 2.907-3.657zM0 11.373h3.4v1.923c.68-1.172 2.11-2.204 3.915-2.204 3.001 0 5.346 2.228 5.346 6.284v.187c0 4.056-2.298 6.33-5.346 6.33-1.9 0-3.283-.937-3.915-2.133v6.05H0V11.372zM13.999 11.373h3.4v2.345c.773-1.641 1.969-2.508 3.961-2.532v3.165c-2.508-.023-3.962.798-3.962 3.142v6.143h-3.4V11.373M31.372 17.587v-.165c0-2.344-1.102-3.751-3.001-3.751-1.875 0-3.001 1.36-3.001 3.705v.187c0 2.345 1.079 3.752 3.001 3.752 1.9 0 3.001-1.407 3.001-3.728zm-9.472.047v-.188c0-3.845 2.79-6.354 6.471-6.354s6.448 2.462 6.448 6.284v.187c0 3.869-2.79 6.33-6.471 6.33-3.658 0-6.448-2.437-6.448-6.26zM45.137 17.587v-.188c0-2.485-1.22-3.704-2.93-3.704-1.783 0-3.002 1.242-3.002 3.704v.188c0 2.462 1.172 3.657 3.024 3.657 1.876 0 2.908-1.266 2.908-3.657zm-9.215-6.214h3.4v1.923c.68-1.172 2.11-2.204 3.916-2.204 3 0 5.345 2.228 5.345 6.284v.187c0 4.056-2.297 6.33-5.345 6.33-1.9 0-3.283-.937-3.916-2.133v6.05h-3.4V11.372zM58.385 16.18c-.117-1.852-1.055-2.743-2.673-2.743-1.524 0-2.556 1.008-2.814 2.743h5.487zm-8.98 1.477v-.187c0-3.87 2.743-6.378 6.307-6.378 3.165 0 5.979
421.852 5.979 6.237v.938h-8.84c.094 2.04 1.196 3.212 3.048 3.212 1.571 0 2.345-.68 2.556-1.712h3.212c-.398 2.65-2.508 4.127-5.861 4.127-3.705 0-6.401-2.321-6.401-6.237zM62.981 11.373h3.4v2.345c.773-1.641 1.97-2.508 3.962-2.532v3.165c-2.509-.023-3.962.798-3.962 3.142v6.143h-3.4V11.373M71.727 5.817h3.376v17.819h-3.376zM80.966 22.393l-4.877-11.02h3.657l2.978 7.363 2.743-7.363h3.26L82.09 27.81h-3.283l2.158-5.416`,fill:`#333D46`})]})]}),Th=t({default:()=>Eh}),Eh=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 123 30`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{id:`Plogo-a`,d:`M0 30h122.12V.03H0`})}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`mask`,{id:`Plogo-b`,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#Plogo-a`})}),(0,K.jsx)(`path`,{d:`M100.928 3.667c-4.848 4.847-4.849 12.707 0 17.555L109.706 30l2.926-2.926-8.778-8.778a8.276 8.276 0 1 1 11.703 0c-1.066 1.067-2.24 1.66-3.715 2.137l3.715 3.715 2.927-2.926c4.847-4.848 4.847-12.708 0-17.556-4.849-4.848-12.708-4.848-17.556 0`,fill:`#36ACB2`,mask:`url(#Plogo-b)`}),(0,K.jsx)(`path`,{d:`M112.632 15.37a4.138 4.138 0 1 0-5.853-5.852 4.138 4.138 0 0 0 5.853 5.852`,fill:`#36ACB2`}),(0,K.jsx)(`path`,{d:`M9.214 17.587v-.188c0-2.485-1.219-3.704-2.93-3.704-1.782 0-3.002 1.242-3.002 3.704v.188c0 2.462 1.173 3.657 3.025 3.657 1.876 0 2.907-1.266 2.907-3.657zM0 11.373h3.4v1.923c.68-1.172 2.11-2.204 3.915-2.204 3.001 0 5.346 2.228 5.346 6.284v.187c0 4.056-2.298 6.33-5.346 6.33-1.9 0-3.283-.937-3.915-2.133v6.05H0V11.372zM13.999 11.373h3.4v2.345c.773-1.641 1.969-2.508 3.961-2.532v3.165c-2.508-.023-3.962.798-3.962 3.142v6.143h-3.4V11.373M31.372 17.587v-.165c0-2.344-1.102-3.751-3.001-3.751-1.875 0-3.001 1.36-3.001 3.705v.187c0 2.345 1.079 3.752 3.001 3.752 1.9 0 3.001-1.407 3.001-3.728zm-9.472.047v-.188c0-3.845 2.79-6.354 6.471-6.354s6.448 2.462 6.448 6.284v.187c0 3.869-2.79 6.33-6.471 6.33-3.658 0-6.448-2.437-6.448-6.26zM45.137 17.587v-.188c0-2.485-1.22-3.704-2.93-3.704-1.783 0-3.002 1.242-3.002 3.704v.188c0 2.462 1.172 3.657 3.024 3.657 1.876 0 2.908-1.266 2.908-3.657zm-9.215-6.214h3.4v1.923c.68-1.172 2.11-2.204 3.916-2.204 3 0 5.345 2.228 5.345 6.284v.187c0 4.056-2.297 6.33-5.345 6.33-1.9 0-3.283-.937-3.916-2.133v6.05h-3.4V11.372zM58.385 16.18c-.117-1.852-1.055-2.743-2.673-2.743-1.524 0-2.556 1.008-2.814 2.743h5.487zm-8.98 1.477v-.187c0-3.87 2.743-6.378 6.307-6.378 3.165 0 5.979 1.852 5.979 6.237v.938h-8.84c.094 2.04 1.196 3.212 3.048 3.212 1.571 0 2.345-.68 2.556-1.712h3.212c-.398 2.65-2.508 4.127-5.861 4.127-3.705 0-6.401-2.321-6.401-6.237zM62.981 11.373h3.4v2.345c.773-1.641 1.97-2.508 3.962-2.532v3.165c-2.509-.023-3.962.798-3.962 3.142v6.143h-3.4V11.373M71.727 5.817h3.376v17.819h-3.376zM80.966 22.393l-4.877-11.02h3.657l2.978 7.363 2.743-7.363h3.26L82.09 27.81h-3.283l2.158-5.416`,fill:`#333D46`})]})]}),Dh=t({default:()=>Oh}),Oh=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`,...e,children:(0,K.jsx)(`path`,{d:`M132.893 310.534l-30.081 10.911L91.9 291.364l30.081-10.911zm138.659-9.462l-77.856-46.72-41.616 15.152 10.944 30.064 27.28-9.92 82.144 49.28 97.6-65.072L480 315.088V480H32V347.2l40.8-14.848-10.928-30.048L0 324.8V512h512V292.912l-146.048-54.768zM0 0v278.848l66.576-24.224-10.928-30.064L32 233.152V32h448v168.912l-114.048-42.768-94.4 62.928-77.856-46.72-47.84 17.392 10.944 30.064 33.504-12.16 82.144 49.28 97.6-65.072L512 247.088V0zm96.656 243.686L85.721 213.63l30.07-10.941 10.935 30.055z`})}),kh=t({default:()=>Ah}),Ah=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 22 22`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`circle`,{id:`ReportproblemRemoveImage-a`,cx:12,cy:12,r:11}),(0,K.jsx)(`mask`,{id:`ReportproblemRemoveImage-b`,x:0,y:0,width:22,height:22,fill:`#fff`,children:(0,K.jsx)(`use`,{xlinkHref:`#ReportproblemRemoveImage-a`})})]}),(0,K.jsxs)(`g`,{transform:`translate(-1 -1)`,fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`circle`,{fillOpacity:.8,fill:`#333`,cx:12,cy:12,r:11}),(0,K.jsx)(`use`,{stroke:`#FFF`,mask:`url(#ReportproblemRemoveImage-b)`,opacity:.5,xlinkHref:`#ReportproblemRemoveImage-a`}),(0,K.jsx)(`path`,{d:`M8.5 8.5l7 7M8.5 15.5l7-7`,stroke:`#FFF`,strokeWidth:1.5,strokeLinecap:`round`})]})]}),jh=t({default:()=>Mh}),Mh=()=>(0,K.jsx)(`svg`,{width:`108`,height:`108`,viewBox:`0 0 108 108`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,K.jsx)(`path`,{d:`M54 0C43.3198 0 32.8795 3.16704 23.9992 9.10064C15.119 15.0342 8.19766 23.4679 4.11053 33.3351C0.0233964 43.2023 -1.04598 54.0599 1.03762 64.5349C3.12122 75.0098 8.26422 84.6317 15.8163 92.1838C23.3683 99.7358 32.9902 104.879 43.4651 106.962C53.9401 109.046 64.7977 107.977 74.6649 103.889C84.5321 99.8023 92.9658 92.881 98.8994 84.0008C104.833 75.1205 108 64.6802 108 54C107.983 39.6835 102.289 25.9581 92.1652 15.8348C82.0419 5.71148 68.3165 0.0168133 54 0ZM54 101.647C44.5763 101.647 35.3643 98.8526 27.5287 93.6171C19.6932 88.3815 13.5862 80.9401 9.97988 72.2337C6.37359 63.5274 5.43002 53.9471 7.26849 44.7045C9.10696 35.4619 13.6449 26.972 20.3085 20.3084C26.972 13.6449 35.4619 9.10694 44.7045 7.26846C53.9472 5.42999 63.5274 6.37356 72.2338 9.97986C80.9401 13.5861 88.3816 19.6932 93.6171 27.5287C98.8526 35.3642 101.647 44.5763 101.647 54C101.633 66.6325 96.6086 78.7436 87.6761 87.6761C78.7436 96.6086 66.6325 101.633 54 101.647ZM29.6471 43.4118C29.6471 42.3647 29.9576 41.3411 30.5393 40.4705C31.12
421 39.5999 31.9478 38.9213 32.9152 38.5206C33.8826 38.1199 34.9471 38.0151 35.974 38.2194C37.001 38.4236 37.9443 38.9279 38.6847 39.6683C39.4251 40.4086 39.9293 41.352 40.1336 42.3789C40.3379 43.4059 40.233 44.4704 39.8323 45.4377C39.4316 46.4051 38.7531 47.2319 37.8825 47.8137C37.0118 48.3954 35.9883 48.7059 34.9412 48.7059C33.5371 48.7059 32.1905 48.1481 31.1977 47.1553C30.2048 46.1624 29.6471 44.8158 29.6471 43.4118ZM78.353 43.4118C78.353 44.4588 78.0425 45.4824 77.4607 46.353C76.879 47.2236 76.0522 47.9022 75.0848 48.3029C74.1174 48.7036 73.053 48.8084 72.026 48.6041C70.999 48.3999 70.0557 47.8957 69.3153 47.1553C68.5749 46.4149 68.0707 45.4715 67.8664 44.4446C67.6622 43.4176 67.767 42.3532 68.1677 41.3858C68.5684 40.4184 69.247 39.5916 70.1176 39.0099C70.9882 38.4281 72.0118 38.1176 73.0588 38.1176C74.4629 38.1176 75.8095 38.6754 76.8023 39.6683C77.7952 40.6611 78.353 42.0077 78.353 43.4118ZM77.9241 77.8235C78.3039 78.5495 78.3885 79.3941 78.1602 80.1809C77.9319 80.9678 77.4085 81.636 76.6992 82.046C75.9898 82.456 75.1496 82.5761 74.3538 82.3811C73.558 82.1862 72.8684 81.6914 72.4288 81C68.2782 73.8317 61.7347 69.8823 54 69.8823C46.2653 69.8823 39.7059 73.8317 35.5712 81C35.2922 81.4832 34.8909 81.8844 34.4076 82.1632C33.9244 82.442 33.3762 82.5886 32.8183 82.5882C32.26 82.5898 31.7116 82.4417 31.23 82.1594C30.5028 81.7368 29.9728 81.0429 29.7565 80.2301C29.5401 79.4172 29.655 78.5518 30.0759 77.8235C35.3277 68.7388 44.0471 63.5294 54 63.5294C63.953 63.5294 72.6724 68.7388 77.9241 77.8235Z`,fill:`#36ACB2`})}),Nh=t({default:()=>Ph}),Ph=e=>(0,K.jsxs)(`svg`,{id:`prefix__Layer_1`,xmlns:`http://www.w3.org/2000/svg`,x:0,y:0,viewBox:`0 0 180 38`,xmlSpace:`preserve`,...e,children:[(0,K.jsx)(`style`,{children:`.prefix__st1{fill:#fff}`}),(0,K.jsx)(`path`,{d:`M4 0h172c2.2 0 4 1.8 4 4v30c0 2.2-1.8 4-4 4H4c-2.2 0-4-1.8-4-4V4c0-2.2 1.8-4 4-4z`,fill:`#635bff`}),(0,K.jsx)(`path`,{className:`prefix__st1`,d:`M26.4 18.6c0-2.3 1.3-3.9 3-3.9 1.3 0 2.2.8 2.5 2l1.8-.6c-.6-1.9-2.1-3.1-4.3-3.1-2.9 0-5 2.3-5 5.6s2.1 5.6 5 5.6c2.2 0 3.7-1.2 4.3-3.1l-1.8-.6c-.3 1.3-1.2 2-2.5 2-1.8 0-3-1.6-3-3.9zM42 20.1c0-2.4-1.6-4.1-3.8-4.1s-3.8 1.6-3.8 4.1 1.6 4.1 3.8 4.1c2.3 0 3.8-1.7 3.8-4.1zm-5.7 0c0-1.6.8-2.6 2-2.6s2 1 2 2.6-.8 2.6-2 2.6-2-1-2-2.6zm7.1 3.9h1.8v-4.6c0-1.1.8-1.7 1.6-1.7 1 0 1.4.7 1.4 1.7V24H50v-5.2c0-1.7-1-2.8-2.6-2.8-1 0-1.7.5-2.2 1v-.8h-1.8V24zm8.5 0h1.8v-4.6c0-1.1.8-1.7 1.6-1.7 1 0 1.4.7 1.4 1.7V24h1.8v-5.2c0-1.7-1-2.8-2.6-2.8-1 0-1.7.5-2.2 1v-.8h-1.8V24zm11.8.2c1.6 0 2.8-.8 3.4-2.2l-1.5-.6c-.2.8-.9 1.3-1.8 1.3-1.2 0-2-.8-2.1-2.2h5.5v-.6c0-2.2-1.2-3.9-3.5-3.9-2.2 0-3.8 1.8-3.8 4.1 0 2.4 1.5 4.1 3.8 4.1zm-.1-6.7c1.1 0 1.7.8 1.7 1.6h-3.6c.2-1.1 1-1.6 1.9-1.6zm6.2 2.6c0-1.6.8-2.5 2.1-2.5 1 0 1.5.6 1.8 1.5l1.5-.8c-.4-1.3-1.6-2.2-3.3-2.2-2.2 0-3.9 1.7-3.9 4.1s1.6 4.1 3.9 4.1c1.7 0 2.9-1 3.3-2.3l-1.5-.8c-.2.9-.8 1.5-1.8 1.5-1.3-.1-2.1-1-2.1-2.6zm6.6 1.9c0 1.6.8 2.1 2.3 2.1.5 0 .9 0 1.2-.1v-1.5h-.7c-.6 0-1.1-.1-1.1-.8v-4.1h1.7v-1.5h-1.7v-2.3h-1.8v2.3h-1.1v1.5h1.1l.1 4.4zm11.7-5.9l-1.4 5.2-1.4-5.2h-1.8l2.4 7.9h1.6l1.4-5.2 1.4 5.2h1.6l2.4-7.9h-1.8L91 21.3l-1.4-5.2h-1.5zm7.1-1H97v-1.8h-1.9l.1 1.8zm1.8 1h-1.8V24H97v-7.9zm2 5.9c0 1.6.8 2.1 2.3 2.1.5 0 .9 0 1.2-.1v-1.5h-.7c-.6 0-1.1-.1-1.1-.8v-4.1h1.7v-1.5h-1.7v-2.3H99v2.3h-1.1v1.5H99V22zm4.9 2h1.8v-4.6c0-1.1.8-1.7 1.6-1.7 1 0 1.4.7 1.4 1.7V24h1.8v-5.2c0-1.7-1-2.8-2.6-2.8-1 0-1.7.5-2.2 1v-3.7h-1.8V24zM141.5 26.4v-3c.4.3.9.7 1.9.7 1.9 0 3.6-1.5 3.6-4.9 0-3.1-1.7-4.8-3.6-4.8-1 0-1.7.5-2.1.9l-.1-.6h-2.3V27l2.6-.6zm1.2-9.7c1 0 1.6 1.1 1.6 2.5 0 1.5-.6 2.5-1.6 2.5-.6 0-1-.2-1.3-.5v-4c.4-.2.7-.5 1.3-.5zM152.1 24.2c1.3 0 2.2-.3 3-.7v-2.2c-.7.4-1.5.6-2.6.6s-1.9-.4-2.1-1.7h5.2v-1c0-2.8-1.3-4.9-3.8-4.9s-4.1 2.2-4.1 4.9c0 3.3 1.8 5 4.4 5zm-.3-7.7c.6 0 1.3.5 1.3 1.7h-2.8c.1-1.1.8-1.7 1.5-1.7zM132 17.5c.6-.9 1.7-.7 2-.6v-2.5c-.4-.1-1.6-.4-2.1.8l-.2-.8h-2.3v9.4h2.6v-6.3zM120 21.2c0 .5-.4.6-1 .6-.9 0-2-.4-2.9-.9v2.6c1 .4 2 .6 2.9.6 2.2 0 3.7-1.1 3.7-3 0-3.2-4-2.6-4-3.8 0-.4.3-.6.9-.6.8 0 1.8.2 2.6.7v-2.6c-.9-.4-1.7-.5-2.6-.5-2.1 0-3.6 1.1-3.6 3 0 3.1 4 2.6 4 3.9zM126.4 24.2c.8 0 1.5-.2 1.9-.4v-2.2c-.3.1-2 .6-2-1v-3.8h2v-2.3h-2v-2.3l-2.6.6v8.6c0 1.6 1.1 2.8 2.7 2.8zM134.9 11.6v2.1l2.7-.5V11l-2.7.6zM137.5 14.5h-2.6v9.3h2.6v-9.3z`})]}),Fh=t({default:()=>Ih}),Ih=e=>(0,K.jsxs)(`svg`,{id:`prefix__Layer_1`,x:0,y:0,viewBox:`0 0 468 222.5`,xmlSpace:`preserve`,...e,children:[(0,K.jsx)(`style`,{children:`.prefix__st0{fill-rule:evenodd;clip-rule:evenodd;fill:#6772e5}`}),(0,K.jsx)(`path`,{className:`prefix__st0`,d:`M414 113.4c0-25.6-12.4-45.8-36.1-45.8-23.8 0-38.2 20.2-38.2 45.6 0 30.1 17 45.3 41.4 45.3 11.9 0 20.9-2.7 27.7-6.5v-20c-6.8 3.4-14.6 5.5-24.5 5.5-9.7 0-18.3-3.4-19.4-15.2h48.9c0-1.3.2-6.5.2-8.9zm-49.4-9.5c0-11.3 6.9-16 13.2-16 6.1 0 12.6 4.7 12.6 16h-25.8zM301.1 67.6c-9.8 0-16.1 4.6-19.6 7.8l-1.3-6.2h-22v116.6l25-5.3.1-28.3c3.6 2.6 8.9 6.3 17.7 6.3 17.9 0 34.2-14.4 34.2-46.1-.1-29-16.6-44.8-34.1-44.8zm-6 68.9c-5.9 0-9.4-2.1-11.8-4.7l-.1-37.1c2.6-2.9 6.2-4.9 11.9-4.9 9.1 0 15.4 10.2 15.4 23.3 0 13.4-6.2 23.4-15.4 23.4zM223.8 61.7l25.1-
425.4V36l-25.1 5.3zM223.8 69.3h25.1v87.5h-25.1zM196.9 76.7l-1.6-7.4h-21.6v87.5h25V97.5c5.9-7.7 15.9-6.3 19-5.2v-23c-3.2-1.2-14.9-3.4-20.8 7.4zM146.9 47.6l-24.4 5.2-.1 80.1c0 14.8 11.1 25.7 25.9 25.7 8.2 0 14.2-1.5 17.5-3.3V135c-3.2 1.3-19 5.9-19-8.9V90.6h19V69.3h-19l.1-21.7zM79.3 94.7c0-3.9 3.2-5.4 8.5-5.4 7.6 0 17.2 2.3 24.8 6.4V72.2c-8.3-3.3-16.5-4.6-24.8-4.6C67.5 67.6 54 78.2 54 95.9c0 27.6 38 23.2 38 35.1 0 4.6-4 6.1-9.6 6.1-8.3 0-18.9-3.4-27.3-8v23.8c9.3 4 18.7 5.7 27.3 5.7 20.8 0 35.1-10.3 35.1-28.2-.1-29.8-38.2-24.5-38.2-35.7z`})]}),Lh=t({default:()=>Rh}),Rh=e=>(0,K.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:15,height:10,...e,children:[(0,K.jsx)(`g`,{"data-name":`Group 393`,children:(0,K.jsxs)(`g`,{"data-name":`Rectangle 136`,transform:`translate(1 1)`,fill:`none`,stroke:e.fill||`#36acb2`,children:[(0,K.jsx)(`rect`,{width:13,height:8,rx:.5,stroke:`none`}),(0,K.jsx)(`rect`,{x:-.5,y:-.5,width:14,height:9,rx:1})]})}),(0,K.jsxs)(`g`,{"data-name":`Group 392`,fill:`none`,stroke:e.fill||`#36acb2`,children:[(0,K.jsx)(`path`,{"data-name":`Line 82`,d:`m1.5 1.5 6 6`}),(0,K.jsx)(`path`,{"data-name":`Line 83`,d:`m13.5 1.5-6 6`})]})]}),zh=t({default:()=>Bh}),Bh=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:14.526,height:12.245,...e,children:(0,K.jsxs)(`g`,{"data-name":`Group 587`,children:[(0,K.jsx)(`g`,{"data-name":`Group 68`,children:(0,K.jsxs)(`g`,{"data-name":`Path 3`,fill:`none`,children:[(0,K.jsx)(`path`,{d:`M8.577 11.745H.741c-.133 0-.241-.119-.241-.265V.765C.5.62.608.5.741.5h6.125c.587.664 1.574 1.637 1.953 2.007v8.973c0 .146-.109.265-.242.265Z`}),(0,K.jsx)(`path`,{d:`M1 1v10.245h7.319V2.717A48.74 48.74 0 0 1 6.643 1H1M.741 0h6.354c.656.78 2.224 2.296 2.224 2.296v9.184a.754.754 0 0 1-.742.765H.741A.754.754 0 0 1 0 11.48V.765C0 .343.332 0 .741 0Z`,fill:e.fill||`#36acb2`})]})}),(0,K.jsx)(`path`,{"data-name":`Path 4`,d:`M5.235 9.305s.905-6.2 8.94-5.498`,fill:`none`,stroke:e.fill||`#36acb2`,strokeWidth:1.00045}),(0,K.jsxs)(`g`,{"data-name":`Group 79`,fill:`none`,stroke:e.fill||`#36acb2`,children:[(0,K.jsx)(`path`,{"data-name":`Line 36`,d:`m10.819.746 3 3`}),(0,K.jsx)(`path`,{"data-name":`Line 37`,d:`m10.819 6.746 3-3`})]})]})}),Vh=t({default:()=>Hh}),Hh=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:13,height:13,...e,children:(0,K.jsxs)(`g`,{"data-name":`Group 80`,fill:`none`,stroke:e.fill||`#36acb2`,children:[(0,K.jsxs)(`g`,{"data-name":`Rectangle 51`,children:[(0,K.jsx)(`path`,{stroke:`none`,d:`M0 2h13v8H0z`}),(0,K.jsx)(`path`,{d:`M.5 2.5h12v7H.5z`})]}),(0,K.jsxs)(`g`,{"data-name":`Rectangle 52`,children:[(0,K.jsx)(`path`,{stroke:`none`,d:`M2 7h9v6H2z`}),(0,K.jsx)(`path`,{d:`M2.5 7.5h8v5h-8z`})]}),(0,K.jsxs)(`g`,{"data-name":`Rectangle 53`,children:[(0,K.jsx)(`path`,{stroke:`none`,d:`M2 0h9v3H2z`}),(0,K.jsx)(`path`,{d:`M2.5.5h8v2h-8z`})]}),(0,K.jsxs)(`g`,{"data-name":`Rectangle 54`,transform:`translate(2 4)`,children:[(0,K.jsx)(`path`,{stroke:`none`,d:`M0 0h2v1H0z`}),(0,K.jsx)(`rect`,{x:.5,y:.5,width:1})]})]})}),Uh=t({default:()=>Wh}),Wh=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 10 9`,xmlnsXlink:`http://www.w3.org/1999/xlink`,width:`1.5em`,height:`1.5em`,...e,children:[(0,K.jsx)(`defs`,{children:(0,K.jsx)(`path`,{id:`a`,d:`M0 2h10v7H0z`})}),(0,K.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,children:[(0,K.jsx)(`path`,{d:`M7 0a1 1 0 0 1 1 1v1.4H7V0zM3 0v2.4H2V1a1 1 0 0 1 1-1z`,fill:`#D8D8D8`}),(0,K.jsx)(`path`,{d:`M3 0h4a1 1 0 0 1 1 1H2a1 1 0 0 1 1-1z`,fill:`#D8D8D8`}),(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`use`,{fill:`#D3D6D9`,xlinkHref:`#a`}),(0,K.jsx)(`path`,{stroke:`#D3D6D9`,d:`M.5 2.5h9v6h-9z`})]}),(0,K.jsx)(`path`,{d:`M4.667 4.5v.267a.333.333 0 1 0 .666 0V4.5h-.666z`,stroke:`#29333D`}),(0,K.jsx)(`path`,{stroke:`#29333D`,d:`M.5 4.5h9v1h-9z`})]})]}),Gh=t({default:()=>Kh}),Kh=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:Wp,width:`24px`,height:`24px`,...e,children:(0,K.jsx)(`path`,{d:`M21 5l-3-3H6L3 5v3h18V5zm-2 0H5l1.5-1.5h11L19 5zM5 9v11c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V9H5zm6 5H9l4-4 4 4h-2v4h-4v-4z`})}),qh=t({default:()=>Jh}),Jh=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:Wp,width:`24px`,he
42ight:`24px`,...e,children:(0,K.jsx)(`path`,{d:`M3.27 3 2 4.27l7.47 7.47L8 13l-6 6 1.41 1.41 6-6 1.26 1.26 2.09 5.01 2.12-2.12 5.46 5.46 1.27-1.27L3.27 3zm13.54 8.6L22 10l-8-8-1.87 1.87 3.38 7.73z`})}),Yh=t({default:()=>Xh}),Xh=e=>(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:e.width,height:e.height,...e,children:(0,K.jsx)(`path`,{fill:`currentColor`,d:`M12 2.85L21.15 19a1 1 0 01-.866 1.5H3.716a1 1 0 01-.866-1.5L12 2.85zm0 2.829L4.866 18.5h14.268L12 5.679zM12 16a1 1 0 110 2 1 1 0 010-2zm0-7a1 1 0 011 1v4a1 1 0 11-2 0v-4a1 1 0 011-1z`})}),Zh=`AddTask.AlertRed.IcEmptyAdd.IcPlusOrange.ArrowGreyLeft.IcError404.IcError1.IcPlusWhite.ArrowGreyRight.IcError500.Bigcheck.BigGreenTick.IcEvent.Bigtick.IcExpandLess.IcExpandMore.IcSendMessage.IcVisibility.IcVisibilityOff.IcCancel.Ic16PxCheck.IcExpandMore2.IcActiveProblemReported.IcAirbnb.IcExpandMore3.IcCostCapture.IcProfile.IcMenu.IcDrag.IcExport.IcCheckedCheckbox.IcPrint.IcSearch.IcDockUndock.IcEditPencilCircle.IcCloseLightGray.IcClosePrimary.IcAirbnb2.IcExpandMore4.IcSmFilter.IcProfile2.IcApartment.IcFacebook.IcProperties.IcApp.IcGoLeft.IcReceipts.IcAtLocation.IcGoRight.IcReplacePic.IcBack.IcGradient.IcRightArrow.IcBadge1.IcChecklistLibrary.IcChecklistPin.IcChecklistSlides.IcChecklistUser.IcGradientGrey.IcRightChevron.IcBadgeChecklist.IcGradientPopover.IcRightDoubleChevron.IcBadgeChecklistBig.IcGradientWhite.IcRooms.IcBadgeExperienced.IcGrid.IcSelectPhoto.IcBadgeExperiencedBig.IcHelp.IcSelectedPhoto2.IcBadgeFastresponder.IcSave.IcSelectedPhotoBlank.IcBadgeFastresponderBig.IcInfocvv.IcTag.IcSent.IcBadgeLoved.IcItemCheck.IcSettings.IcBadgeLovedBig.IcItemCheck2.IcShare.IcBadgeProperly101.IcJobs.IcSharedwith.IcBadgeProperly101Big.IcLeftArrow.IcSmCloseBlue.IcClose2.IcBadgePunctual.IcLeftChevron.IcSmCloseOrange.IcBadgePunctualBig.IcLeftDoubleChevron.IcSmDuplicate.IcBath.IcLightbulb.IcSmFind.IcBeds.IcMailSolid.IcSmFindWhite.IcBigBookings.IcMerge.IcSmReplace.IcBigJobs.IcMessageSolid.IcSmText.IcBigJobsOrange.IcMessageSolid2.IcSmVerify2.IcBigProfile.IcMessenger.IcStroke.IcBigProperties.IcMinus.IcBank.IcCardAmex.IcCardDiners.IcCardDiscover.IcCardJcb.IcCardVisa.IcCardMastercard.IcSubscription.IcBigProperties2.IcMoreGrey.IcSync.IcBigPropertiesGrey.IcMorePrimary.IcTaskRemain.IcBigSent.IcMoreWhite.IcTemplate.IcCalendar.IcMove.IcTemplatePopover2.IcCamera.IcNext.IcTextPlus.IcCamera2.IcNoPhoto.IcTextPopover.IcCamera3.IcNotAtLocation.IcTextWhite.IcCameraSolid.IcNotifications.IcThumbDown.IcCameraWhite.IcOrbirental.IcThumbUp.IcCheckFinished.IcPassword.IcThumbsDown2.IcThumbsDown3.IcCheckOrange.IcBgPhonedl.IcPassword2.IcThumbsUp2.IcThumbsUp3.IcCheckWhite.IcPayment1.IcTimeArrow.IcChecked.IcPayment2.IcTrash.IcCheckicon.IcPayment3.IcLeftArrowDetailView.IcRightArrowDetailView.IcTrash2.IcChevron.IcPhotosJobdetails.IcTrash3.IcClock.IcClock2.IcTrash4.IcClose.IcPin2.IcTrashSolid.IcCloseCc.IcPinCleanglass.IcPinDisinfect.IcPinSeal.IcConnect.IcDisconnect.IcTrashWhite.IcCloseSlider.IcPinCustom.IcTwitter.IcCloseWhite.IcPinDust.IcUndefAtLocation.IcCloseWhite2.IcPinEmptytrash.IcUpload.IcComment.IcPinFind.IcWarning.IcComment2.IcPinIron.IcWarningEvent.IcComments.IcPinLighton.IcWarningProblems.IcCompany.IcPinLock.IcWarningUnfinished.IcCompanyCreate.IcPinMop.IcXIcon.IcCompanyNew.IcPinRefill.Logo.IcContacts.IcPinScrub.Logoproperly.IcCopyWhite.IcPinStage.NavCalendar.IcDefaultSettings.IcPinStripreplace.NavContacts.IcDeskstopicon.IcPinSweep.IcDownloadImage.NavProperties.IcDeskstopiconwhite.IcPinUnlock.NavReports.NavSettings.NavAutoscheduling.IcDownArrow.IcPinVacuum.NavTodos.IcDuplicate.IcPinWash.Plogo.PlogoTeal.IcDuplicate2.IcPinWater.IcDuplicateWhite3.IcPinWipe.IcEditGrey.IcPinclickFre.IcEditPencil.IcEditPencilPrimary.IcPinclickFre2.ReportproblemRemoveImage.IcEditicon.IcPlus.TeamIcon.IcEmail.IcPlus2.StripeLogo.StripeConnect.IcActive.IcDollar.IcMissingFeedback.IcRotateRight.IcRotateLeft.Add.Drag.Preview.DragArrow.Duplicate.Delete.ArrowDown.Edit.Photo.BackArrowCompact.NextArrowCompact.Jobs.DefaultView.TableExport.TableEmailExport.TablePrint.ArrowUp.Expand.IcDownArrowThin.IcCameraWhiteFilled.SadFace.IcCircularExclamation.Archive.Unarchive.Pin.Unpin.WarningTriangleIcon.GetClearingLogo.ExternalLink`.split(`.`),Qh=e=>(0,K.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,id:`Livello_1`,x:0,y:0,viewBox:`0 0 3
42010.18 3840.78`,style:{enableBackground:`new 0 0 3010.18 3840.78`},xmlSpace:`preserve`,...e,children:[(0,K.jsx)(`style`,{children:`.st3{fill:#c3dca5}.st4{fill:#17757a}`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_1_`,gradientUnits:`userSpaceOnUse`,x1:6883.679,y1:5418.48,x2:6883.679,y2:5418.48,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.346,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`,stopOpacity:0}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_1_)`},d:`M5252.18 5418.48h3263`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000105417104342376110410000015838705808605137819_`,gradientUnits:`userSpaceOnUse`,x1:998.163,y1:3840.78,x2:998.163,y2:2796.271,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000105417104342376110410000015838705808605137819_)`},d:`m1447.19 2796.27-153.4 528.04c0 137.62-76.58 257.35-189.44 318.93-.26.14-.52.3-.79.44-4.55 2.47-9.18 4.81-13.84 7.09-.76.37-1.51.76-2.27 1.12-4.18 2.01-8.43 3.89-12.7 5.74-1.3.56-2.59 1.15-3.9 1.69-3.77 1.58-7.6 3.05-11.43 4.51-1.85.7-3.69 1.43-5.55 2.09-3.36 1.21-6.77 2.33-10.18 3.44-2.35.77-4.69 1.56-7.04 2.27-3.02.92-6.09 1.75-9.14 2.6-2.74.75-5.47 1.53-8.23 2.22-2.81.71-5.66 1.32-8.5 1.96-2.99.67-5.97 1.37-8.96 1.96-2.78.55-5.59 1.01-8.39 1.5-3.04.53-6.08 1.09-9.14 1.54-3.02.45-6.06.79-9.1 1.16-2.85.35-5.69.74-8.54 1.02-3.74.37-7.51.61-11.28.86-2.17.15-4.34.36-6.51.47-5.99.29-12.01.46-18.08.46-92.9-.01-185.8-35.46-256.68-106.34l.21-.21c-21.82-21.82-57.34-22-78.94-.39l-30.13 30.13c-21.6 21.6-21.42 57.13.39 78.94 100.82 100.82 232.95 151.24 365.09 151.27h.06c8.55 0 17.1-.23 25.64-.65 3.43-.17 6.82-.5 10.24-.73 5.01-.35 10.03-.65 15.03-1.14 4.39-.43 8.73-1.03 13.09-1.57 3.98-.49 7.97-.93 11.94-1.52 4.7-.69 9.35-1.55 14-2.36 3.63-.64 7.26-1.23 10.88-1.94 4.64-.92 9.23-1.98 13.83-3.02 3.65-.83 7.31-1.62 10.95-2.53 4.32-1.08 8.59-2.28 12.87-3.47 3.93-1.09 7.86-2.16 11.77-3.34 3.81-1.16 7.57-2.42 11.34-3.66 4.37-1.44 8.75-2.87 13.09-4.43 3.15-1.13 6.26-2.35 9.38-3.54 4.93-1.88 9.85-3.77 14.72-5.81 2.41-1.01 4.79-2.08 7.18-3.12 5.49-2.39 10.96-4.82 16.39-7.41 1.7-.81 3.38-1.68 5.07-2.51 5.98-2.93 11.93-5.95 17.82-9.13 1.07-.58 2.12-1.19 3.18-1.78 6.36-3.49 12.68-7.1 18.92-10.88.55-.33 1.09-.69 1.63-1.02 6.62-4.04 13.17-8.22 19.64-12.59.12-.08.24-.17.37-.26 26.87-18.18 52.46-39.06 76.25-62.86l-.06-.06c93.43-93.46 147.46-223.93 147.46-366.53l3.79-526.65`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000043430392731832690310000005182112841467647361_`,gradientUnits:`userSpaceOnUse`,x1:414.24,y1:3001.831,x2:1447.186,y2:3001.831,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000043430392731832690310000005182112841467647361_)`},d:`M1370.49 2494.35c-42.18 0-76.7 34.51-76.7 76.7v412.27c0 203.51-166.54 376.34-370.01 372.53-197.32-3.7-356.14-164.81-356.14-363.01v-421.79c0-42.18-34.51-76.7-76.7-76.7-42.18 0-76.7 34.51-76.7 76.7v410.16c0 289.55 236.96 533.5 526.46 528.01 280.63-5.32 506.49-234.47 506.49-516.38v-421.79c0-42.18-34.52-76.7-76.7-76.7z`}),(0,K.jsx)(`circle`,{className:`st3`,cx:1369.57,cy:2992.84,r:77.62}),(0,K.jsx)(`circle`,{className:`st4`,cx:491.4,cy:2992.84,r:77.16}),(0,K.jsx)(`circle`,{className:`st4`,cx:622.04,cy:3637.56,r:77.62}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000118387856089514463620000008659595400973274540_`,gradientUnits:`userSpaceOnUse`,x1:77.617,y1:3509.312,x2:77.617,y2:2119.243,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000118387856089514463620000008659595400973274540_)`},d:`M77.62 3509.31c-42.69 0-77.62-34.93-77.62-77.62V2196.85c0-42.69 34.93-77.62 77.62-77.62 42.69 0 77.62 34.93 77.62 77.62V3431.7c-.01 42.69-34.93 77.61-77.62 77.61z`}),(0,K.jsx)(`circle`,{className:`st4`,cx:77.62,cy:3432.61,r:77.62}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000039854620348517356720000016271200181484342151_`,gradientUnits:`userSpaceOnUse`,x1:78.156,y1:1240.025,x2:78.156,y2:3510.781,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000039854620348517356720000016271200181484342151_)`},d:`M78.16 3510.78c-42.69 0-77.62-34.93-77.62-77.62V1317.64c0-42.69 34.93-77.62 77.62-77.62 42.69 0 77.62 34.93 77.62 77.62v2115.52c-.01 42.69-34.93 77.62-77.62 77.62z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000160892617293807476870000018014839705751704478_`,gradientUnits:`userSpaceOnUse`,x1:1985.608,y1:2079.829,x2:1253.117,y2:1553.836,gradientTransform:`rotate(24.314 1478.025 1848.516)`,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000160892617293807476870000018014839705751704478_)`},d:`M2092.33 1938.81c41.75 18.87 56.03 70.73 30.48 108.76-138.01 205.42-408.04 287.37-641.09 182.05-233.05-105.31-349.99-362.14-287.02-601.47 11.66-44.3 60.02-67.86 101.77-48.99l5.69 2.57c32.79 14.82 49.88 51.1 40.79 85.92-43.89 168.07 38.31 348.25 201.94 422.19 163.15 73.73 352.08 16.9 449.46-126.18 20.56-30.21 58.99-42.47 92.29-27.42l5.69 2.57z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000077306642338228002370000012372858526223293352_`,gradientUnits:`userSpaceOnUse`,x1:2494.668,y1:2272.971,x2:2494.668,y2:1240.025,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000077306642338228002370000012372858526223293352_)`},d:`M2494.67 2272.97c-42.69 0-77.62-34.93-77.62-77.62v-877.71c0-42.69 34.93-77.62 77.62-77.62 42.69 0 77.62 34.93 77.62 77.62v877.71c-.01 42.69-34.93 77.62-77.62 77.62z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000133494041374897109490000002028164729153384322_`,gradientUnits:`userSpaceOnUse`,x1:2417.052,y1:1756.498,x2:2933.524,y2:1756.498,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000133494041374897109490000002028164729153384322_)`},d:`M2572.28 2015.9v179.45c0 42.69-34.93 77.62-77.62 77.62-42.69 0-77.62-34.93-77.62-77.62V1756.5c0-285.24 231.23-516.47 516.47-516.47v153.4c-200.52 0-363.07 162.55-363.07 363.07l1.84 259.4z`}),(0,K.jsx)(`circle`,{className:`st4`,cx:2494.67,cy:1756.5,r:77.62}),(0,K.jsx)(`circle`,{className:`st3`,cx:2933.52,cy:1316.68,r:76.65}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000029729056516786286470000005573068301142967472_`,gradientUnits:`userSpaceOnUse`,x1:2152.906,y1:2252.54,x2:2152.906,y2:2252.54,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#17757a`}})]}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000033334083867175229430000009995894230733850761_`,gradientUnits:`userSpaceOnUse`,x1:1693.105,y1:1837.282,x2:1693.105,y2:1243.696,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000033334083867175229430000009995894230733850761_)`},d:`M1339.58 1837.28h812c30.78 0 55.97-25.19 55.97-55.97v-22.32h.85c0-5.69-.67-11.2-.85-16.85v-3.77c0-.44-.24-.8-.25-1.24-11.54-274.38-236.98-493.44-514.19-493.44-284.59 0-515.29 230.71-515.29 515.29 0 26.62 2.02 52.76 5.91 78.29l155.85.01zm353.53-440.54c173.77 0 318.79 122.41 353.96 285.66h-707.93c35.16-163.25 180.2-285.66 353.97-285.66z`}),(0,K.jsx)(`circle`,{className:`st3`,cx:1693.11,cy:1320.19,r:76.55}),(0,K.jsx)(`circle`,{className:`st4`,cx:2057.82,cy:2007.04,r:76.79}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000147215006799680032970000010905293271456863362_`,gradientUnits:`userSpaceOnUse`,x1:153.365,y1:2940.248,x2:153.365,y2:3973.194,gradientTransform:`rotate(-90 -81.814 1010.807)`,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000147215006799680032970000010905293271456863362_)`},d:`M2880.57 517.39c0 285.24-231.23 516.47-516.47 516.47s-516.47-231.23-516.47-516.47h153.4c0 200.52 162.55 363.07 363.07 363.07 200.52 0 363.07-162.55 363.07-363.07h153.4z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000006694416945050640340000001483432607827714215_`,gradientUnits:`userSpaceOnUse`,x1:669.838,y1:3973.194,x2:669.838,y2:2940.248,gradientTransform:`rotate(-90 -81.814 1010.807)`,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000006694416945050640340000001483432607827714215_)`},d:`M2727.17 517.39c0-200.52-162.55-363.07-363.07-363.07-200.52 0-363.07 162.55-363.07 363.07h-153.4C1847.63 232.15 2078.86.92 2364.1.92s516.47 231.23 516.47 516.47h-153.4z`}),(0,K.jsx)(`circle`,{className:`st3`,cx:2365.02,cy:77.62,r:77.62}),(0,K.jsx)(`circle`,{className:`st4`,cx:2365.02,cy:957.17,r:77.62}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_000000801783866362782067500000136520107983360
4273385_`,gradientUnits:`userSpaceOnUse`,x1:77.617,y1:.918,x2:77.617,y2:1346.493,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000080178386636278206750000013652010798336073385_)`},d:`M77.62 1346.49c-42.69 0-77.62-34.93-77.62-77.62V78.53C0 35.85 34.93.92 77.62.92c42.69 0 77.62 34.93 77.62 77.62v1190.34c-.01 42.69-34.93 77.61-77.62 77.61z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000132792923889342715480000004265781660226370714_`,gradientUnits:`userSpaceOnUse`,x1:1032.948,y1:1079.598,x2:.001,y2:1079.598,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000132792923889342715480000004265781660226370714_)`},d:`M501.08 1.14C225.22 9.17 0 253.22 0 529.2v1551.56c0 42.69 34.93 77.51 77.62 77.51 42.69 0 77.62-34.93 77.62-77.62V886.19c102.81 100.72 247.36 159.01 405.45 145.83 249.26-20.79 450.75-223.02 470.58-472.37C1055.87 250.15 807.4-7.76 501.08 1.14zm15.39 879.33c-188.25 0-343-143.28-361.24-326.74v-51.48l-1.08.11c7.94-193.49 166.87-348.04 362.32-348.04 200.52 0 363.07 162.56 363.07 363.08S717 880.47 516.47 880.47z`}),(0,K.jsx)(`circle`,{className:`st4`,cx:957.16,cy:517.39,r:77.62}),(0,K.jsx)(`circle`,{className:`st3`,cx:77.62,cy:517.39,r:77.62}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000042007499191544759250000007062820132878916017_`,gradientUnits:`userSpaceOnUse`,x1:1330.762,y1:1033.864,x2:1330.762,y2:.918,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000042007499191544759250000007062820132878916017_)`},d:`M1330.76 1033.86c-42.69 0-77.62-34.93-77.62-77.62V78.53c0-42.69 34.93-77.62 77.62-77.62 42.69 0 77.62 34.93 77.62 77.62v877.71c0 42.7-34.93 77.62-77.62 77.62z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000119092801963451562570000009191355083526922915_`,gradientUnits:`userSpaceOnUse`,x1:1253.146,y1:517.391,x2:1769.619,y2:517.391,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000119092801963451562570000009191355083526922915_)`},d:`M1408.38 776.8v179.45c0 42.69-34.93 77.62-77.62 77.62-42.69 0-77.62-34.93-77.62-77.62V517.4c0-285.24 231.23-516.47 516.47-516.47v153.4c-200.52 0-363.07 162.55-363.07 363.07l1.84 259.4z`}),(0,K.jsx)(`circle`,{className:`st4`,cx:1330.76,cy:517.39,r:77.62}),(0,K.jsx)(`circle`,{className:`st3`,cx:1769.62,cy:77.57,r:76.65}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000062907291276131430900000001552458061356029348_`,gradientUnits:`userSpaceOnUse`,x1:7979.363,y1:-7515.398,x2:7979.363,y2:-4443.925,gradientTransform:`rotate(180 4028.49 -2002.309)`,children:[(0,K.jsx)(`stop`,{offset:.43,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`,stopOpacity:0}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000062907291276131430900000001552458061356029348_)`},d:`M77.62 439.31c42.69 0 77.62 34.93 77.62 77.62v2916.24c0 42.69-34.93 77.62-77.62 77.62-42.69 0-77.62-34.93-77.62-77.62V516.92c0-42.69 34.93-77.61 77.62-77.61z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000050633030821948090090000011486753619867880331_`,gradientUnits:`userSpaceOnUse`,x1:1033.487,y1:2375.405,x2:.54,y2:2375.405,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000050633030821948090090000011486753619867880331_)`},d:`M501.62 1240.25C225.76 1248.27.54 1492.33.54 1768.3v1664.97c0 42.69 34.93 77.51 77.62 77.51 42.69 0 77.62-34.93 77.62-77.62V2125.3c102.81 100.72 247.36 159.01 405.45 145.83 249.26-20.79 450.75-223.02 470.58-472.37 24.6-309.51-223.87-567.42-530.19-558.51zm15.39 879.32c-188.25 0-343-143.28-361.24-326.74v-51.48l-1.08.11c7.94-193.49 166.87-348.04 362.32-348.04 200.52 0 363.07 162.56 363.07 363.08s-162.55 363.07-363.07 363.07z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000069372756970373490350000014764458053554312069_`,gradientUnits:`userSpaceOnUse`,x1:7979.363,
42y1:-7515.4,x2:7979.363,y2:-5584.845,gradientTransform:`rotate(180 4028.49 -2002.309)`,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.346,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`,stopOpacity:0}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000069372756970373490350000014764458053554312069_)`},d:`M77.62 1580.23c42.69 0 77.62 34.93 77.62 77.62v1775.32c0 42.69-34.93 77.62-77.62 77.62-42.69 0-77.62-34.93-77.62-77.62V1657.85c0-42.7 34.93-77.62 77.62-77.62z`}),(0,K.jsx)(`circle`,{className:`st3`,cx:77.62,cy:1756.5,r:77.62}),(0,K.jsx)(`circle`,{className:`st4`,cx:957.16,cy:1756.5,r:77.62})]}),$h=e=>(0,K.jsxs)(`svg`,{id:`Livello_1`,xmlns:`http://www.w3.org/2000/svg`,x:0,y:0,viewBox:`0 0 6720.18 1497.38`,style:{enableBackground:`new 0 0 6720.18 1497.38`},xmlSpace:`preserve`,...e,children:[(0,K.jsx)(`style`,{children:`.st4{fill:#c3dca5}.st5{fill:#17757a}`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_1_`,gradientUnits:`userSpaceOnUse`,x1:8450.846,y1:10663.603,x2:8450.846,y2:10663.603,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.346,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`,stopOpacity:0}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_1_)`},d:`M6819.35 10663.6h3263`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000166661597657181171000000006320124572408462513_`,gradientUnits:`userSpaceOnUse`,x1:1749.575,y1:1217.174,x2:1112.459,y2:759.669,gradientTransform:`rotate(24.314 3044.907 7093.897)`,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000166661597657181171000000006320124572408462513_)`},d:`M4499.34 918.42c36.31 16.41 48.73 61.52 26.51 94.6-120.04 178.67-354.91 249.95-557.62 158.35-202.7-91.6-304.42-314.98-249.65-523.15 10.14-38.53 52.21-59.02 88.52-42.61l4.95 2.24c28.52 12.89 43.39 44.45 35.48 74.73-38.18 146.18 33.32 302.9 175.64 367.22 141.9 64.13 306.23 14.7 390.94-109.75 17.89-26.28 51.31-36.94 80.27-23.85l4.96 2.22z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000144333961021887955810000000370157002621545639_`,gradientUnits:`userSpaceOnUse`,x1:6329.622,y1:1497.38,x2:6329.622,y2:588.874,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000144333961021887955810000000370157002621545639_)`},d:`m6720.18 588.87-133.42 459.28c0 119.7-66.61 223.84-164.78 277.4-.23.12-.45.26-.68.38-3.96 2.15-7.98 4.19-12.04 6.17-.66.32-1.31.66-1.98.98-3.64 1.74-7.33 3.39-11.05 4.99-1.13.49-2.25 1-3.39 1.47-3.28 1.37-6.61 2.66-9.95 3.92-1.61.61-3.21 1.24-4.83 1.82-2.93 1.05-5.89 2.03-8.85 3-2.04.67-4.08 1.35-6.13 1.98-2.63.8-5.29 1.52-7.95 2.26-2.38.66-4.76 1.33-7.16 1.93-2.45.61-4.92 1.15-7.39 1.71-2.6.58-5.19 1.19-7.8 1.71-2.42.48-4.86.88-7.3 1.3-2.65.46-5.29.95-7.95 1.34-2.62.39-5.27.68-7.92 1.01-2.48.3-4.95.65-7.43.89-3.25.32-6.53.53-9.81.75-1.89.13-3.77.31-5.66.41-5.21.26-10.45.4-15.72.4-80.8-.01-161.6-30.84-223.26-92.49l.18-.18c-18.98-18.98-49.88-19.13-68.66-.34l-26.2 26.2c-18.79 18.79-18.63 49.69.34 68.66 87.69 87.69 202.62 131.55 317.55 131.57h.06c7.44 0 14.87-.2 22.3-.56 2.99-.15 5.93-.43 8.9-.64 4.36-.3 8.72-.57 13.07-.99 3.82-.37 7.6-.9 11.39-1.37 3.46-.43 6.93-.81 10.38-1.32 4.09-.6 8.13-1.34 12.18-2.06 3.16-.56 6.31-1.07 9.46-1.69 4.04-.8 8.03-1.72 12.03-2.63 3.18-.72 6.36-1.41 9.52-2.2 3.76-.94 7.48-1.99 11.2-3.02 3.42-.95 6.84-1.88 10.24-2.91 3.31-1.01 6.58-2.1 9.87-3.18 3.8-1.25 7.61-2.5 11.38-3.85 2.74-.99 5.44-2.04 8.16-3.08 4.29-1.63 8.56-3.28 12.81-5.05 2.1-.88 4.17-1.81 6.25-2.71 4.78-2.07 9.54-4.19 14.25-6.44 1.48-.71 2.94-1.46 4.41-2.18 5.2-2.55 10.38-5.17 15.5-7.94.93-.5 1.84-1.03 2.77-1.54 5.53-3.04 11.03-6.17 16.46-9.46.48-.29.94-.6 1.42-.89 5.76-3.52 11.46-7.15 17.09-10.95.11-.07.21-.15.32-.22 23.37-15.81 45.63-33.98 66.32-54.67l-.05-.05c81.27-81.29 128.26-194.78 128.26-318.8l3.29-458.12`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000100377338145198554440000017766195622212796312_`,gradientUnits:`userSpaceOnUse`,x1:5821.73,y1:767.668,x2:6720.179,y2:767.668,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000100377338145198554440000017766195622212796312_)`},d:`M6653.47 326.27c-36.69 0-66.71 30.02-66.71 66.71v358.59c0 177.01-144.85 327.34-321.83 324.02-171.63-3.21-309.77-143.35-309.77-315.74V392.98c0-36.69-30.02-66.71-66.71-66.71s-66.71 30.02-66.71 66.71v356.75c0 251.85 206.11 464.03 457.91 459.26 244.09-4.63 440.54-203.94 440.54-449.14V392.98c-.01-36.69-30.03-66.71-66.72-66.71z`}),(0,K.jsx)(`circle`,{className:`st4`,cx:6652.67,cy:759.85,r:67.51}),(0,K.jsx)(`circle`,{className:`st5`,cx:5888.85,cy:759.85,r:67.12}),(0,K.jsx)(`circle`,{className:`st5`,cx:6002.47,cy:1320.62,r:67.51}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000145770122879213553650000001556133529514328232_`,gradientUnits:`userSpaceOnUse`,x1:5528.937,y1:1209.072,x2:5528.937,y2:0,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000145770122879213553650000001556133529514328232_)`},d:`M5528.94 1209.07c-37.13 0-67.51-30.38-67.51-67.51V67.51c0-37.13 30.38-67.51 67.51-67.51 37.13 0 67.51 30.38 67.51 67.51v1074.05c0 37.13-30.38 67.51-67.51 67.51z`}),(0,K.jsx)(`circle`,{className:`st5`,cx:5528.94,cy:1142.36,r:67.51}),(0,K.jsx)(`circle`,{className:`st4`,cx:5528.94,cy:67.51,r:67.51}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000069366192194766988400000006601394816728283789_`,gradientUnits:`userSpaceOnUse`,x1:4849.297,y1:1209.072,x2:4849.297,y2:310.623,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000069366192194766988400000006601394816728283789_)`},d:`M4849.3 1209.07c-37.13 0-67.51-30.38-67.51-67.51V378.13c0-37.13 30.38-67.51 67.51-67.51 37.13 0 67.51 30.38 67.51 67.51v763.43c0 37.13-30.38 67.51-67.51 67.51z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000033369262226656520490000010901610304921905081_`,gradientUnits:`userSpaceOnUse`,x1:4781.787,y1:759.847,x2:5231.012,y2:759.847,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000033369262226656520490000010901610304921905081_)`},d:`M4916.81 985.48v156.09c0 37.13-30.38 67.51-67.51 67.51-37.13 0-67.51-30.38-67.51-67.51V759.85c0-248.1 201.12-449.22 449.22-449.22v133.42c-174.41 0-315.8 141.39-315.8 315.8l1.6 225.63z`}),(0,K.jsx)(`circle`,{className:`st5`,cx:4849.3,cy:759.85,r:67.51}),(0,K.jsx)(`circle`,{className:`st4`,cx:5231.01,cy:377.3,r:66.67}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000077321107309801159940000009609450487541825688_`,gradientUnits:`userSpaceOnUse`,x1:6756.825,y1:6377.63,x2:6756.825,y2:7276.079,gradientTransform:`rotate(-90 1485.353 6255.93)`,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000077321107309801159940000009609450487541825688_)`},d:`M2505.5 759.85c0 248.1-201.12 449.22-449.22 449.22s-449.22-201.12-449.22-449.22h133.42c0 174.41 141.39 315.8 315.8 315.8s315.8-141.39 315.8-315.8h133.42z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000146493702406197672480000003220871488492322212_`,gradientUnits:`userSpaceOnUse`,x1:7206.049,y1:7276.079,x2:7206.049,y2:6377.63,gradientTransform:`rotate(-90 1485.353 6255.93)`,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000146493702406197672480000003220871488492322212_)`},d:`M2372.08 759.85c0-174.41-141.39-315.8-315.8-315.8s-315.8 141.39-315.8 315.8h-133.42c0-248.1 201.12-449.22 449.22-449.22s449.22 201.
4212 449.22 449.22h-133.42z`}),(0,K.jsx)(`circle`,{className:`st4`,cx:2057.08,cy:377.34,r:67.51}),(0,K.jsx)(`circle`,{className:`st5`,cx:2057.08,cy:1142.36,r:67.51}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000113350665684124048100000009635436257456960908_`,gradientUnits:`userSpaceOnUse`,x1:67.511,y1:310.623,x2:67.511,y2:1480.994,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000113350665684124048100000009635436257456960908_)`},d:`M67.51 1480.99c-37.13 0-67.51-30.38-67.51-67.51V378.13c0-37.13 30.38-67.51 67.51-67.51 37.13 0 67.51 30.38 67.51 67.51v1035.35c0 37.13-30.38 67.51-67.51 67.51z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000021825149568447647400000001629537928584966059_`,gradientUnits:`userSpaceOnUse`,x1:898.451,y1:895.81,x2:.001,y2:895.81,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000021825149568447647400000001629537928584966059_)`},d:`M435.84 310.82C195.9 317.8 0 530.08 0 770.11v643.46c0 37.13 30.38 67.42 67.51 67.42 37.13 0 67.51-30.38 67.51-67.51v-332.86c89.42 87.6 215.15 138.31 352.66 126.84 216.81-18.08 392.06-193.98 409.31-410.86 21.4-269.2-194.72-493.53-461.15-485.78zm13.39 764.83c-163.74 0-298.34-124.63-314.2-284.19v-44.78l-.94.09c6.91-168.3 145.15-302.72 315.14-302.72 174.41 0 315.8 141.39 315.8 315.8s-141.39 315.8-315.8 315.8z`}),(0,K.jsx)(`circle`,{className:`st5`,cx:832.53,cy:759.85,r:67.51}),(0,K.jsx)(`circle`,{className:`st4`,cx:67.51,cy:759.85,r:67.51}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000140721717965549750140000013048491832926126258_`,gradientUnits:`userSpaceOnUse`,x1:2747.432,y1:310.623,x2:2747.432,y2:1480.994,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000140721717965549750140000013048491832926126258_)`},d:`M2747.43 1480.99c-37.13 0-67.51-30.38-67.51-67.51V378.13c0-37.13 30.38-67.51 67.51-67.51 37.13 0 67.51 30.38 67.51 67.51v1035.35c0 37.13-30.38 67.51-67.51 67.51z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000183236212650023645270000001199773997020325263_`,gradientUnits:`userSpaceOnUse`,x1:3578.373,y1:895.81,x2:2679.922,y2:895.81,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000183236212650023645270000001199773997020325263_)`},d:`M3115.76 310.82c-239.94 6.98-435.83 219.26-435.83 459.29v643.46c0 37.13 30.38 67.42 67.51 67.42 37.13 0 67.51-30.38 67.51-67.51v-332.86c89.42 87.6 215.15 138.31 352.66 126.84 216.81-18.08 392.06-193.98 409.31-410.86 21.39-269.2-194.73-493.53-461.16-485.78zm13.39 764.83c-163.74 0-298.34-124.63-314.2-284.19v-44.78l-.94.09c6.91-168.3 145.15-302.72 315.14-302.72 174.41 0 315.8 141.39 315.8 315.8s-141.39 315.8-315.8 315.8z`}),(0,K.jsx)(`circle`,{className:`st5`,cx:3511.99,cy:759.85,r:67.51}),(0,K.jsx)(`circle`,{className:`st4`,cx:2746.96,cy:759.85,r:67.51}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000031169754166354751710000013346480453981709730_`,gradientUnits:`userSpaceOnUse`,x1:4552.035,y1:1191.301,x2:4552.035,y2:1191.301,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#17757a`}})]}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000085939095564121736220000001008051464506994583_`,gradientUnits:`userSpaceOnUse`,x1:4152.104,y1:830.113,x2:4152.104,y2:313.815,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000085939095564121736220000001008051464506994583_)`},d:`M3844.61 830.11h706.27c26.77 0 48.68-21.91 48.68-48.68v-19.41h.74c0-4.95-.58-9.75-.74-14.66v-3.28c0-.38-.21-.7-.22-1.08-10.04-238.65-206.13-429.19-447.24-429.19-247.53 0-448.2 200.67-448.2 448.2 0 23.15 1.76 45.89 5.14 68.1h135.57zm307.49-383.18c151.14 0 277.28 106.47 307.88 248.46h-615.75c30.58-141.98 156.73-248.46 307.87-248.46z`}
42),(0,K.jsx)(`circle`,{className:`st4`,cx:4152.1,cy:380.35,r:66.58}),(0,K.jsx)(`circle`,{className:`st5`,cx:4469.33,cy:977.77,r:66.8}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000000198717532079899500000000062558868922174898_`,gradientUnits:`userSpaceOnUse`,x1:1157.487,y1:1209.072,x2:1157.487,y2:310.623,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000000198717532079899500000000062558868922174898_)`},d:`M1157.49 1209.07c-37.13 0-67.51-30.38-67.51-67.51V378.13c0-37.13 30.38-67.51 67.51-67.51 37.13 0 67.51 30.38 67.51 67.51v763.43c0 37.13-30.38 67.51-67.51 67.51z`}),(0,K.jsxs)(`linearGradient`,{id:`SVGID_00000147200485999541013830000013368018031036155533_`,gradientUnits:`userSpaceOnUse`,x1:1089.977,y1:759.847,x2:1539.202,y2:759.847,children:[(0,K.jsx)(`stop`,{offset:0,style:{stopColor:`#c5dda6`}}),(0,K.jsx)(`stop`,{offset:.5,style:{stopColor:`#6aa6cf`}}),(0,K.jsx)(`stop`,{offset:1,style:{stopColor:`#14566c`}})]}),(0,K.jsx)(`path`,{style:{fill:`url(#SVGID_00000147200485999541013830000013368018031036155533_)`},d:`M1225 985.48v156.09c0 37.13-30.38 67.51-67.51 67.51-37.13 0-67.51-30.38-67.51-67.51V759.85c0-248.1 201.12-449.22 449.22-449.22v133.42c-174.41 0-315.8 141.39-315.8 315.8l1.6 225.63z`}),(0,K.jsx)(`circle`,{className:`st5`,cx:1157.49,cy:759.85,r:67.51}),(0,K.jsx)(`circle`,{className:`st4`,cx:1539.2,cy:377.3,r:66.67})]}),eg=()=>(0,K.jsxs)(`svg`,{viewBox:`0 0 15 24`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`rect`,{id:`path-1`,x:`0`,y:`0.5`,width:`15`,height:`1.5`}),(0,K.jsx)(`path`,{d:`M8,17.5 L15,17.5 C14.9632187,13 19,11.6400003 19,7.5 C19,3.35786438 15.6421356,0 11.5,0 C7.35786438,0 4,3.35786438 4,7.5 C4,11.6400003 8,13.0193348 8,17.5 Z`,id:`path-3`}),(0,K.jsx)(`mask`,{id:`mask-4`,maskContentUnits:`userSpaceOnUse`,maskUnits:`objectBoundingBox`,x:`0`,y:`0`,width:`15`,height:`17.5`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#path-3`})})]}),(0,K.jsx)(`g`,{id:`send-job-request`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:(0,K.jsx)(`g`,{id:`send-request-/-select-cleaners-2`,transform:`translate(-16.000000, -61.000000)`,children:(0,K.jsx)(`g`,{id:`tip-dialog-copy`,transform:`translate(0.000000, 49.000000)`,children:(0,K.jsxs)(`g`,{id:`icons-/-ic_lightbulb`,transform:`translate(12.000000, 12.000000)`,children:[(0,K.jsx)(`rect`,{id:`Rectangle-15`,fill:`#FF5722`,fillRule:`evenodd`,x:`8`,y:`18.5`,width:`7`,height:`1`,rx:`0.5`}),(0,K.jsx)(`rect`,{id:`Rectangle-15-Copy`,fill:`#FF5722`,fillRule:`evenodd`,x:`8`,y:`20.5`,width:`7`,height:`1`,rx:`0.5`}),(0,K.jsxs)(`g`,{id:`Oval-33`,strokeWidth:`1`,fillRule:`evenodd`,transform:`translate(4.000000, 22.000000)`,children:[(0,K.jsx)(`mask`,{id:`mask-2`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#path-1`})}),(0,K.jsx)(`g`,{id:`Mask`}),(0,K.jsx)(`path`,{d:`M7.5,2 C8.6045695,2 9.5,1.1045695 9.5,2.77555756e-17 L5.5,2.77555756e-17 C5.5,1.1045695 6.3954305,2 7.5,2 Z`,fill:`#FF5722`,mask:`url(#mask-2)`})]}),(0,K.jsx)(`path`,{d:`M11.5,10.5 L11.5,16.5`,id:`Line`,stroke:`#FF5722`,strokeWidth:`1`,strokeLinecap:`round`}),(0,K.jsx)(`use`,{id:`Oval-10`,stroke:`#FF5722`,mask:`url(#mask-4)`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,xlinkHref:`#path-3`}),(0,K.jsx)(`polyline`,{id:`Stroke-324`,stroke:`#FF5722`,strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`,points:`14.5 9.5 13 11 11.5 9.5 10 11 8.5 9.5`})]})})})})]}),tg=({fill:e})=>(0,K.jsx)(`svg`,{viewBox:`0 0 15 15`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,children:(0,K.jsx)(`g`,{id:`Symbols`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:(0,K.jsx)(`g`,{id:`list-/-search`,transform:`translate(-21.000000, -16.000000)`,children:(0,K.jsx)(`g`,{id:`ic_sm_find`,transform:`translate(16.000000, 12.000000)`,children:(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`rect`,{id:`bounds`,x:`0`,y:`0`,width:`24`,height:`24`}),(0,K.jsx)(`path`,{d:`M11,15 C8.238,15 6,12.759 6,9.999 C6,7.238 8.238,5 11,5 C13.761,5 16,7.238 16,9.999 C16,12.759 13.761,15 11,15 L11,15 Z M19.6465,18.6465 C19.8417327,18.4512673 19.8420492,18.1361525 19.6517576,17.9471901 L15.562,13.886 C16.457,12.838 17,11.481 17,9.999 C17,6.691 14.309,4 11,4 C7.691,4 5,6.691 5,9.999 C5,13.308 7.691,16 11,16 C12.467,16 13.811,15.469 14.854,14.592 L18.9446791,18.6541116 C19.1370514,18.8451405 19.4569771,18.8360229 19.6465,18.6465 L19.6465,18.6465 Z`,fill:e||`#868F9A`})]})})})})}),ng=()=>
42(0,K.jsxs)(`svg`,{viewBox:`0 0 64 64`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`circle`,{id:`send-svg-1`,cx:`36`,cy:`36`,r:`32`}),(0,K.jsx)(`mask`,{id:`send-svg-2`,maskContentUnits:`userSpaceOnUse`,maskUnits:`objectBoundingBox`,x:`0`,y:`0`,width:`64`,height:`64`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#send-svg-1`})})]}),(0,K.jsx)(`g`,{id:`send-job-request`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:(0,K.jsx)(`g`,{id:`-confirmation`,transform:`translate(-368.000000, -155.000000)`,children:(0,K.jsx)(`g`,{id:`Group-2`,transform:`translate(218.000000, 151.000000)`,children:(0,K.jsxs)(`g`,{id:`ic_big_sent`,transform:`translate(146.000000, 0.000000)`,children:[(0,K.jsx)(`path`,{d:`M35.9990289,42.1578947 C29.6822682,42.1578947 24.1017513,40.7813998 19.9919703,39.2006014 C17.7107248,38.3231993 15.3985122,40.4776269 16.1417234,42.8104843 C18.2725571,49.4846388 23.369428,57.9473684 36.0005035,57.9473684 C48.6315789,57.9473684 53.7269752,49.4846388 55.8592835,42.8104843 C56.5995455,40.4776269 54.2873329,38.3217246 52.0060874,39.2006014 C47.8963065,40.7813998 42.3157895,42.1578947 35.9990289,42.1578947 Z`,id:`Emoji-Icon`,fill:`#36ACB2`,fillRule:`evenodd`}),(0,K.jsx)(`use`,{id:`Oval-2`,stroke:`#36ACB2`,mask:`url(#send-svg-2)`,strokeWidth:`4`,xlinkHref:`#send-svg-1`}),(0,K.jsx)(`circle`,{id:`Oval-3`,fill:`#36ACB2`,fillRule:`evenodd`,cx:`26.5`,cy:`26.5`,r:`3.5`}),(0,K.jsx)(`circle`,{id:`Oval-3-Copy`,fill:`#36ACB2`,fillRule:`evenodd`,cx:`45.5`,cy:`26.5`,r:`3.5`}),(0,K.jsx)(`path`,{d:`M35.9999594,48 C29.4999188,48 23.1712862,46.6932429 19.4430177,43.939173 C18.414122,43.1793277 19.3380585,41.1466674 20.5753942,41.5531995 C24.3332287,42.7890569 27.5,44.25 36.0014377,44.25 C44.5028754,44.25 47.6696467,42.7890569 51.4274812,41.5531995 C52.6618603,41.1466674 53.5857968,43.1793277 52.5569012,43.939173 C48.8286327,46.6932429 42.5,48 35.9999594,48 Z`,id:`Path`,fill:`#FFFFFF`,fillRule:`evenodd`})]})})})})]}),rg=()=>(0,K.jsxs)(`svg`,{viewBox:`0 0 456 413`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`polygon`,{id:`path-1`,points:`3.79201969e-16 6.19943333 3.79201969e-16 0.557433333 5.64176667 0.557433333 5.64176667 6.19943333`}),(0,K.jsx)(`polygon`,{id:`path-3`,points:`0.491695397 0.44 6.67218569 0.44 6.67218569 6.61843569 0.491695397 6.61843569 0.491695397 0.44`}),(0,K.jsx)(`polygon`,{id:`path-5`,points:`0 413 456 413 456 0 0 0`})]}),(0,K.jsx)(`g`,{id:`Pathflow-ver-6`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:(0,K.jsx)(`g`,{id:`Job-Sent`,transform:`translate(-530.000000, -273.000000)`,children:(0,K.jsxs)(`g`,{id:`Page-1`,transform:`translate(530.000000, 273.000000)`,children:[(0,K.jsx)(`path`,{d:`M412,365 C414.208525,365 416,366.791475 416,369 C416,371.208525 414.208525,373 412,373 C409.791475,373 408,371.208525 408,369 C408,366.791475 409.791475,365 412,365 Z`,id:`Fill-1`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M226.5,51 C224.01455,51 222,53.0151134 222,55.5012594 C222,57.9848866 224.01455,60 226.5,60 C228.98545,60 231,57.9848866 231,55.5012594 C231,53.0151134 228.98545,51 226.5,51`,id:`Fill-3`,fill:`#D6D8D8`}),(0,K.jsxs)(`g`,{id:`Group-7`,transform:`translate(0.000000, 191.000000)`,children:[(0,K.jsx)(`mask`,{id:`mask-2`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#path-1`})}),(0,K.jsx)(`g`,{id:`Clip-6`}),(0,K.jsx)(`path`,{d:`M2.82076667,0.557433333 C1.2621,0.557433333 -0.000233333333,1.81976667 -0.000233333333,3.37843333 C-0.000233333333,4.9371 1.2621,6.19943333 2.82076667,6.19943333 C4.37943333,6.19943333 5.64176667,4.9371 5.64176667,3.37843333 C5.64176667,1.81976667 4.37943333,0.557433333 2.82076667,0.557433333`,id:`Fill-5`,fill:`#D6D8D8`,mask:`url(#mask-2)`})]}),(0,K.jsx)(`path`,{d:`M313.504844,19.9582027 C315.138373,20.2324528 316.684522,19.1281715 316.958799,17.4948059 C317.23065,15.8614404 316.128685,14.3154465 314.495156,14.0411964 C312.861627,13.7693733 311.315478,14.8712277 311.041201,16.5045932 C310.76935,18.1379588 311.871315,19.6839526 313.504844,19.9582027`,id:`Fill-8`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M412.076506,136.591719 C411.574286,139.588199 413.597583,142.421278 416.591679,142.923495 C419.588177,143.425711 422.421274,141.402427 422.923494,138.40835 C423.425714,135.41187 421.402417,132.576388 418.408321,132.076574 C415.411823,131.574357 412.578726,133.595239 412.076506,136.591719`,id:`Fill-10`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M107.5,367 C109.98545,367 112,364.984887 112,362.498741 C112,360.015113 109.98545,358 107.5,358 C105.01455,358 103,360.015113 103,362.498741 C103,364.984887 105.01455,367 107.5,367`,id:`Fill-12`,fill:`#D6D8D8`}),(0,K.jsxs)(`g`,{id:`Group-16`,transform:`translate(117.000000, 0.000000)`,children:[(0,K.jsx)(`mask`,{id:`mask-4`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#path-3`})}),(0,K.jsx)(`g`,{id:`Clip-15`}),(0,K.jsx)(`path`,{d:`M0.53475,3.0185 C0.25225,4.701 1.38975,6.2935 3.07225,6.576 C4.75475,6.856 6.34725,5.721 6.62975,4.0385 C6.90975,2.356 5.77475,0.7635 4.09225,0.481 C2.40975,0.201 0.81725,1.336 0.53475,3.0185`,id:`Fill-14`,fill:`#D6D8D8`,mask:`url(#mask-4)`})]}),(0,K.jsx)(`path`,{d:`M172.545287,336 L40.4547135,336 C32.4721105,336 26,329.529089 26,321.547965 L26,66.4520355 C26,58.468411 32.4721105,52 40.4547135,52 L172.545287,52 C180.52789,52 187,58.468411 187,66.4520355 L187,321.547965 C187,329.529089 180.52789,336 172.545287,336`,id:`Fill-17`,fill:`#546E7A`}),(0,K.jsx)(`path`,{d:`M169.718189,287 L42.2818112,287 C38.8113352,287 36,284.192159 36,280.728489 L36,91.2740044 C36,87.8078414 38.8113352,85 42.2818112,85 L169.718189,85 C173.186168,85 176,87.8078414 176,91.2740044 L176,280.728489 C176,284.192159 173.186168,287 169.718189,287`,id:`Fill-19`,fill:`#FFFFFF`}),(0,K.jsx)(`path`,{d:`M140.397887,72 L88.6021127,72 C87.7168008,72 87,71.3731672 87,70.5989736 L87,70.4010264 C87,69.6268328 87.7168008,69 88.6021127,
4269 L140.397887,69 C141.283199,69 142,69.6268328 142,70.4010264 L142,70.5989736 C142,71.3731672 141.283199,72 140.397887,72`,id:`Fill-21`,fill:`#FFFFFF`}),(0,K.jsx)(`path`,{d:`M79,70 C79,72.2103929 77.2084257,74 75.001267,74 C72.7915743,74 71,72.2103929 71,70 C71,67.7896071 72.7915743,66 75.001267,66 C77.2084257,66 79,67.7896071 79,70`,id:`Fill-23`,fill:`#FFFFFF`}),(0,K.jsx)(`path`,{d:`M120,312 C120,319.731603 113.731603,326 106,326 C98.2683967,326 92,319.731603 92,312 C92,304.268397 98.2683967,298 106,298 C113.731603,298 120,304.268397 120,312`,id:`Fill-25`,fill:`#37474F`}),(0,K.jsx)(`path`,{d:`M167.732524,283 L46.2674763,283 C43.3569639,283 41,280.596939 41,277.635204 L41,265.367347 C41,262.403061 43.3569639,260 46.2674763,260 L167.732524,260 C170.643036,260 173,262.403061 173,265.367347 L173,277.635204 C173,280.596939 170.643036,283 167.732524,283`,id:`Fill-27`,fill:`#FF7043`}),(0,K.jsx)(`path`,{d:`M74,108.5 C74,112.090805 71.0888889,115 67.5012346,115 C63.9111111,115 61,112.090805 61,108.5 C61,104.909195 63.9111111,102 67.5012346,102 C71.0888889,102 74,104.909195 74,108.5`,id:`Fill-29`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M57.1832323,130 L78.8170795,130 C80.9315714,130 81.806099,126.778165 80.0923273,125.308423 L73.0204989,119.247945 C69.0964657,115.882413 63.7106862,116.338714 60.225177,120.329453 L55.6710808,125.545397 C54.2597394,127.161357 55.2224759,130 57.1832323,130`,id:`Fill-31`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M121.190178,108 L91.8098224,108 C91.3637971,108 91,107.611702 91,107.135638 L91,101.864362 C91,101.385638 91.3637971,101 91.8098224,101 L121.190178,101 C121.638695,101 122,101.385638 122,101.864362 L122,107.135638 C122,107.611702 121.638695,108 121.190178,108`,id:`Fill-33`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M163.187639,117 L91.8123609,117 C91.3649375,117 91,116.
42667173 91,116.259119 L91,114.740881 C91,114.330547 91.3649375,114 91.8123609,114 L163.187639,114 C163.637562,114 164,114.330547 164,114.740881 L164,116.259119 C164,116.667173 163.637562,117 163.187639,117`,id:`Fill-35`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M163.187639,124 L91.8123609,124 C91.3649375,124 91,123.667173 91,123.259119 L91,121.740881 C91,121.330547 91.3649375,121 91.8123609,121 L163.187639,121 C163.637562,121 164,121.330547 164,121.740881 L164,123.259119 C164,123.667173 163.637562,124 163.187639,124`,id:`Fill-37`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M163.187639,130 L91.8123609,130 C91.3649375,130 91,129.667173 91,129.259119 L91,127.740881 C91,127.330547 91.3649375,127 91.8123609,127 L163.187639,127 C163.637562,127 164,127.330547 164,127.740881 L164,129.259119 C164,129.667173 163.637562,130 163.187639,130`,id:`Fill-39`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M74,162.5 C74,166.090805 71.0888889,169 67.5012346,169 C63.9111111,169 61,166.090805 61,162.5 C61,158.909195 63.9111111,156 67.5012346,156 C71.0888889,156 74,158.909195 74,162.5`,id:`Fill-41`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M57.1832323,184 L78.8170795,184 C80.9315714,184 81.806099,180.778165 80.0923273,179.308423 L73.0204989,173.247945 C69.0964657,169.882413 63.7106862,170.338714 60.225177,174.329453 L55.6710808,179.545397 C54.2597394,181.161357 55.2224759,184 57.1832323,184`,id:`Fill-43`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M121.190178,162 L91.8098224,162 C91.3637971,162 91,161.611702 91,161.135638 L91,155.864362 C91,155.385638 91.3637971,155 91.8098224,155 L121.190178,155 C121.638695,155 122,155.385638 122,155.864362 L122,161.135638 C122,161.611702 121.638695,162 121.190178,162`,id:`Fill-45`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M163.187639,171 L91.8123609,171 C91.3649375,171 91,170.667173 91,170.259119 L91,168.740881 C91,168.330547 91.3649375,168 91.8123609,168 L163.187639,168 C163.637562,168 164,168.330547 164,168.740881 L164,170.259119 C164,170.667173 163.637562,171 163.187639,171`,id:`Fill-47`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M163.187639,178 L91.8123609,178 C91.3649375,178 91,177.667173 91,177.259119 L91,175.740881 C91,175.330547 91.3649375,175 91.8123609,175 L163.187639,175 C163.637562,175 164,175.330547 164,175.740881 L164,177.259119 C164,177.667173 163.637562,178 163.187639,178`,id:`Fill-49`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M163.187639,185 L91.8123609,185 C91.3649375,185 91,184.667173 91,184.259119 L91,182.740881 C91,182.330547 91.3649375,182 91.8123609,182 L163.187639,182 C163.637562,182 164,182.330547 164,182.740881 L164,184.259119 C164,184.667173 163.637562,185 163.187639,185`,id:`Fill-51`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M74,216.5 C74,220.090805 71.0888889,223 67.5012346,223 C63.9111111,223 61,220.090805 61,216.5 C61,212.909195 63.9111111,210 67.5012346,210 C71.0888889,210 74,212.909195 74,216.5`,id:`Fill-53`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M57.1832323,239 L78.8170795,239 C80.9315714,239 81.806099,235.778165 80.0923273,234.308423 L73.0204989,228.247945 C69.0964657,224.882413 63.7106862,225.338714 60.225177,229.329453 L55.6710808,234.545397 C54.2597394,236.161357 55.2224759,239 57.1832323,239`,id:`Fill-55`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M121.190178,216 L91.8098224,216 C91.3637971,216 91,215.611702 91,215.135638 L91,209.864362 C91,209.385638 91.3637971,209 91.8098224,209 L121.190178,209 C121.638695,209 122,209.385638 122,209.864362 L122,215.135638 C122,215.611702 121.638695,216 121.190178,216`,id:`Fill-57`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M163.187639,226 L91.8123609,226 C91.3649375,226 91,225.667173 91,225.259119 L91,223.740881 C91,223.330547 91.3649375,223 91.8123609,223 L163.187639,223 C163.637562,223 164,223.330547 164,223.740881 L164,225.259119 C164,225.667173 163.637562,226 163.187639,226`,id:`Fill-59`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M163.187639,232 L91.8123609,232 C91.3649375,232 91,231.667173 91,231.259119 L91,229.740881 C91,229.330547 91.3649375,229 91.8123609,229 L163.187639,229 C163.637562,229 164,229.330547 164,229.740881 L164,231.259119 C164,231.667173 163.637562,232 163.187639,232`,id:`Fill-61`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M163.187639,239 L91.8123609,239 C91.3649375,239 91,238.667173 91,238.259119 L91,236.740881 C91,236.330547 91.3649375,236 91.8123609,236 L163.187639,236 C163.637562,236 164,23
426.330547 164,236.740881 L164,238.259119 C164,238.667173 163.637562,239 163.187639,239`,id:`Fill-63`,fill:`#D6D8D8`}),(0,K.jsx)(`mask`,{id:`mask-6`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#path-5`})}),(0,K.jsx)(`g`,{id:`Clip-66`}),(0,K.jsx)(`polygon`,{id:`Fill-65`,fill:`#37474F`,mask:`url(#mask-6)`,points:`46 139.688 169 139.688 169 138 46 138`}),(0,K.jsx)(`polygon`,{id:`Fill-67`,fill:`#37474F`,mask:`url(#mask-6)`,points:`45 195.688 168 195.688 168 194 45 194`}),(0,K.jsx)(`polygon`,{id:`Fill-68`,fill:`#37474F`,mask:`url(#mask-6)`,points:`44 251.688 167 251.688 167 250 44 250`}),(0,K.jsx)(`path`,{d:`M54.2828635,119 L47.7146025,119 C47.3192905,119 47,118.678175 47,118.282863 L47,111.717137 C47,111.321825 47.3192905,111 47.7146025,111 L54.2828635,111 C54.6781755,111 55,111.321825 55,111.717137 L55,118.282863 C55,118.678175 54.6781755,119 54.2828635,119`,id:`Fill-69`,fill:`#FF7043`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M54.2828635,174 L47.7146025,174 C47.3192905,174 47,173.678175 47,173.282863 L47,166.717137 C47,166.321825 47.3192905,166 47.7146025,166 L54.2828635,166 C54.6781755,166 55,166.321825 55,166.717137 L55,173.282863 C55,173.678175 54.6781755,174 54.2828635,174`,id:`Fill-70`,fill:`#FF7043`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M54.2828635,229 L47.7146025,229 C47.3192905,229 47,228.678175 47,228.282863 L47,221.717137 C47,221.321825 47.3192905,221 47.7146025,221 L54.2828635,221 C54.6781755,221 55,221.321825 55,221.717137 L55,228.282863 C55,228.678175 54.6781755,229 54.2828635,229`,id:`Fill-71`,fill:`#FF7043`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M375.977938,413 L174.022062,413 C165.172232,413 158,405.83706 158,396.998696 L158,104.003797 C158,95.1654329 165.172232,88 174.022062,88 L375.977938,88 C384.827768,88 392,95.1654329 392,104.003797 L392,396.998696 C392,405.83706 384.827768,413 375.977938,413`,id:`Fill-72`,fill:`#37474F`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M370,356 L180,356 L180,124.20021 C180,120.774832 182.770932,118 186.188998,118 L363.811002,118 C367.229068,118 370,120.774832 370,124.20021 L370,356 Z`,id:`Fill-73`,fill:`#FFFFFF`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M363.893455,370 L186.106545,370 C182.733453,370 180,367.307629 180,363.985234 L180,355 L370,355 L370,363.985234 C370,367.307629 367.266547,370 363.893455,370`,id:`Fill-74`,fill:`#FF7043`,mask:`url(#mask-6)`}),(0,K.jsx)(`polygon`,{id:`Fill-75`,fill:`#D6D8D8`,mask:`url(#mask-6)`,points:`195 171.692 357 171.692 357 170 195 170`}),(0,K.jsx)(`polygon`,{id:`Fill-76`,fill:`#D6D8D8`,mask:`url(#mask-6)`,points:`195 195.692 357 195.692 357 194 195 194`}),(0,K.jsx)(`polygon`,{id:`Fill-77`,fill:`#37474F`,mask:`url(#mask-6)`,points:`195 151.626 217 151.626 217 150 195 150`}),(0,K.jsx)(`polygon`,{id:`Fill-78`,fill:`#37474F`,mask:`url(#mask-6)`,points:`220 179.626 242 179.626 242 178 220 178`}),(0,K.jsx)(`polygon`,{id:`Fill-79`,fill:`#FF7043`,mask:`url(#mask-6)`,points:`220 187.626 242 187.626 242 186 220 186`}),(0,K.jsx)(`polygon`,{id:`Fill-80`,fill:`#37474F`,mask:`url(#mask-6)`,points:`195 158.626 217 158.626 217 157 195 157`}),(0,K.jsx)(`polygon`,{id:`Fill-81`,fill:`#37474F`,mask:`url(#mask-6)`,points:`195 135.626 321 135.626 321 134 195 134`}),(0,K.jsx)(`polygon`,{id:`Fill-82`,fill:`#37474F`,mask:`url(#mask-6)`,points:`195 142.626 321 142.626 321 141 195 141`}),(0,K.jsx)(`polygon`,{id:`Fill-83`,fill:`#D6D8D8`,mask:`url(#mask-6)`,points:`195 211.692 357 211.692 357 210 195 210`}),(0,K.jsx)(`polygon`,{id:`Fill-84`,fill:`#37474F`,mask:`url(#mask-6)`,points:`195 203.626 217 203.626 217 202 195 202`}),(0,K.jsx)(`polygon`,{id:`Fill-85`,fill:`#D6D8D8`,mask:`url(#mask-6)`,points:`195 340 357 340 357 220 195 220`}),(0,K.jsx)(`polygon`,{id:`Fill-86`,fill:`#FFFFFF`,mask:`url(#mask-6)`,points:`203 251 349 251 349 227 203 227`}),(0,K.jsx)(`polygon`,{id:`Fill-87`,fill:`#FFFFFF`,mask:`url(#mask-6)`,points:`203 294 273 294 273 257 203 257`}),(0,K.jsx)(`polygon`,{id:`Fill-88`,fill:`#FFFFFF`,mask:`url(#mask-6)`,points:`203 335 273 335 273 298 203 298`}),(0,K.jsx)(`polygon`,{id:`Fill-89`,fill:`#FFFFFF`,mask:`url(#mask-6)`,points:`279 294 348 294 348 257 279 257`}),(0,K.jsx)(`polygon`,{id:`Fill-90`,fill:`#FFFFFF`,mask:`url(#mask-6)`,points:`279 335 348 335 348 298 279 298`}),(0,K.jsx)(`path`,{d:`M213,184 C213,187.864761 209.867201,191 206,191 C202.135239,191 199,187.864761 199,184 C199,180.135239 202.135239,177 206,177 C209.8
4267201,177 213,180.135239 213,184`,id:`Fill-91`,fill:`#D6D8D8`,mask:`url(#mask-6)`}),(0,K.jsx)(`polygon`,{id:`Fill-92`,fill:`#37474F`,mask:`url(#mask-6)`,points:`210 244.626 232 244.626 232 243 210 243`}),(0,K.jsx)(`polygon`,{id:`Fill-93`,fill:`#37474F`,mask:`url(#mask-6)`,points:`210 287.626 232 287.626 232 286 210 286`}),(0,K.jsx)(`polygon`,{id:`Fill-94`,fill:`#37474F`,mask:`url(#mask-6)`,points:`287 287.626 309 287.626 309 286 287 286`}),(0,K.jsx)(`polygon`,{id:`Fill-95`,fill:`#37474F`,mask:`url(#mask-6)`,points:`209 329.626 231 329.626 231 328 209 328`}),(0,K.jsx)(`polygon`,{id:`Fill-96`,fill:`#37474F`,mask:`url(#mask-6)`,points:`286 329.626 308 329.626 308 328 286 328`}),(0,K.jsx)(`path`,{d:`M364.126818,325 L355,319.502667 L446.377783,167.670621 C447.359215,166.038367 449.476517,165.512556 451.108085,166.494401 L454.331367,168.435662 C455.960444,169.417507 456.488524,171.538191 455.504601,173.167954 L364.126818,325 Z`,id:`Fill-97`,fill:`#546E7A`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M355,320 L355.181769,329.486248 C355.189138,329.871868 355.577238,330.116094 355.906386,329.94385 L364,325.671183 L355,320 Z`,id:`Fill-98`,fill:`#37474F`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M286.0265,399.625953 C281.263798,405.715007 272.464991,406.789985 266.373509,402.027235 C260.284515,397.261996 259.209548,388.463101 263.974739,382.374047 C268.737442,376.284993 277.536249,375.210015 283.625242,379.972765 C289.716724,384.738004 290.789203,393.536899 286.0265,399.625953`,id:`Fill-99`,fill:`#546E7A`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M297.397887,106 L245.602113,106 C244.716801,106 244,105.373167 244,104.598974 L244,104.401026 C244,103.626833 244.716801,103 245.602113,103 L297.397887,103 C298.283199,103 299,103.626833 299,104.401026 L299,104.598974 C299,105.373167 298.283199,106 297.397887,106`,id:`Fill-100`,fill:`#FFFFFF`,mask:`url(#mask-6)`})]})})})]}),ig=()=>(0,K.jsx)(`svg`,{viewBox:`0 0 472 373`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,children:(0,K.jsx)(`g`,{id:`Pathflow-ver-6`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,opacity:`0.6`,children:(0,K.jsx)(`g`,{id:`Download-App-or-Send-Job`,transform:`translate(-479.000000, -307.000000)`,children:(0,K.jsx)(`g`,{id:`Group`,transform:`translate(479.000000, 307.000000)`,children:(0,K.jsxs)(`g`,{id:`Page-1`,children:[(0,K.jsx)(`path`,{d:`M443,70 C443,83.2551893 432.255736,94 419.001221,94 C405.746706,94 395,83.2551893 395,70 C395,56.7448107 405.746706,46 419.001221,46 C432.255736,46 443,56.7448107 443,70 Z`,id:`Fill-1`,fill:`#FF7043`}),(0,K.jsx)(`path`,{d:`M37,86 L102,86 C102,86 68.9476613,41 37,86`,id:`Fill-3`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M20,87 L56,87 C56,87 37.6949573,62.25 20,87`,id:`Fill-5`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M277,56 L342,56 C342,56 308.947661,11 277,56`,id:`Fill-7`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M261,56 L297,56 C297,56 278.694957,31.25 261,56`,id:`Fill-9`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M406,143 L471,143 C471,143 437.947661,98 406,143`,id:`Fill-11`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M389,143 L425,143 C425,143 406.694957,118.25 389,143`,id:`Fill-13`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M3,370 L472,370`,id:`Stroke-15`,stroke:`#455A64`,strokeWidth:`5`}),(0,K.jsx)(`path`,{d:`M359,206 L112,206 L112,153.430714 C112,151.535886 113.541514,150 115.443286,150 L355.559165,150 C357.458486,150 359,151.535886 359,153.430714 L359,206 Z`,id:`Fill-17`,fill:`#546E7A`}),(0,K.jsx)(`polygon`,{id:`Fill-19`,fill:`#546E7A`,points:`101 368 371 368 371 206 101 206`}),(0,K.jsx)(`path`,{d:`M101,206 L220.963286,85.706964 C229.941013,76.7045594 244.518806,76.7732801 253.413315,85.8615855 L371,206 L101,206 Z`,id:`Fill-21`,fill:`#37474F`}),(0,K.jsx)(`path`,{d:`M287.965391,368 L182.034609,368 C180.358744,368 179,366.644219 179,364.972008 L179,359.030426 C179,357.355781 180.358744,356 182.034609,356 L287.965391,356 C289.641256,356 291,357.355781 291,359.030426 L291,364.972008 C291,366.644219 289.641256,368 287.965391,368`,id:`Fill-22`,fill:`#D6D8D8`}),(0,K.jsx)(`polygon`,{id:`Fill-23`,fill:`#FFFFFF`,points:`123 287 178 287 178 242 123 242`}),(0,K.jsx)(`path`,{d:`M181.961988,295 L119.040454,295 C117.360268,295 116,293.644219 116,291.972008 L116,286.030426 C116,284.355781 117.360268,283 119.040454,283 L181.961988,283 C183.639732,283 185,284.355781 185,286.030426 L185,291.972008 C185,293.644219 183.639732,295 181.9
4261988,295`,id:`Fill-24`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M178,242 L123,242 L123,237.965598 C123,235.223228 125.347801,233 128.243832,233 L172.756168,233 C175.652199,233 178,235.223228 178,237.965598 L178,242 Z`,id:`Fill-25`,fill:`#D6D8D8`}),(0,K.jsx)(`polygon`,{id:`Fill-26`,fill:`#FFFFFF`,points:`292 288 347 288 347 243 292 243`}),(0,K.jsx)(`path`,{d:`M349.961988,296 L287.040454,296 C285.360268,296 284,294.644219 284,292.972008 L284,287.030426 C284,285.355781 285.360268,284 287.040454,284 L349.961988,284 C351.639732,284 353,285.355781 353,287.030426 L353,292.972008 C353,294.644219 351.639732,296 349.961988,296`,id:`Fill-27`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M347,243 L292,243 L292,238.965598 C292,236.223228 294.347801,234 297.243832,234 L341.756168,234 C344.652199,234 347,236.223228 347,238.965598 L347,243 Z`,id:`Fill-28`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M267,357 L205,357 L205,260.442625 C205,257.435894 207.425608,255 210.41964,255 L261.58036,255 C264.574392,255 267,257.435894 267,260.442625 L267,357 Z`,id:`Fill-29`,fill:`#FF7043`}),(0,K.jsx)(`polygon`,{id:`Fill-30`,fill:`#37474F`,points:`136 151 160 151 160 133 136 133`}),(0,K.jsx)(`polygon`,{id:`Fill-31`,fill:`#FF7043`,points:`129 132 168 132 168 122 129 122`}),(0,K.jsx)(`path`,{d:`M85,255.5 C85,278.972549 65.9720033,298 42.4987821,298 C19.0279967,298 0,278.972549 0,255.5 C0,232.027451 19.0279967,213 42.4987821,213 C65.9720033,213 85,232.027451 85,255.5`,id:`Fill-32`,fill:`#FF7043`}),(0,K.jsx)(`path`,{d:`M43,277 L67,239`,id:`Stroke-33`,stroke:`#546E7A`}),(0,K.jsx)(`path`,{d:`M42,277 L20,263`,id:`Stroke-34`,stroke:`#546E7A`}),(0,K.jsx)(`path`,{d:`M43,242 L43,368`,id:`Stroke-35`,stroke:`#546E7A`}),(0,K.jsx)(`path`,{d:`M472,255.5 C472,278.972549 452.972003,298 429.498782,298 C406.027997,298 387,278.972549 387,255.5 C387,232.027451 406.027997,213 429.498782,213 C452.972003,213 472,232.027451 472,255.5`,id:`Fill-36`,fill:`#FF7043`}),(0,K.jsx)(`path`,{d:`M430,277 L454,239`,id:`Stroke-37`,stroke:`#546E7A`}),(0,K.jsx)(`path`,{d:`M430,277 L408,263`,id:`Stroke-38`,stroke:`#546E7A`}),(0,K.jsx)(`path`,{d:`M430,242 L430,368`,id:`Stroke-39`,stroke:`#546E7A`}),(0,K.jsx)(`path`,{d:`M257,309.5 C257,311.985981 254.985981,314 252.5,314 C250.014019,314 248,311.985981 248,309.5 C248,307.014019 250.014019,305 252.5,305 C254.985981,305 257,307.014019 257,309.5`,id:`Fill-40`,fill:`#546E7A`}),(0,K.jsx)(`path`,{d:`M142.263825,76 L136.874471,87.0030269 C135.550686,89.7033674 141.623673,98.7954975 141.623673,98.7954975 C143.457164,101.311389 143.45958,104.751986 141.626089,107.270337 L136,115`,id:`Stroke-41`,stroke:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M153.36935,82 L148.748248,91.3117114 C147.614908,93.5943298 152.818523,101.289595 152.818523,101.289595 C154.393012,103.417916 154.393012,106.329969 152.823397,108.460739 L148,115`,id:`Stroke-42`,stroke:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M457.5,320 C455.567541,320 454,321.567541 454,323.5 C454,325.432459 455.567541,327 457.5,327 C459.432459,327 461,325.432459 461,323.5 C461,321.567541 459.432459,320 457.5,320`,id:`Fill-43`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M46.5,147 C44.0145495,147 42,149.015113 42,151.501259 C42,153.984887 44.0145495,156 46.5,156 C48.9854505,156 51,153.984887 51,151.501259 C51,149.015113 48.9854505,147 46.5,147`,id:`Fill-44`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M69,335 C67.3424318,335 66,336.342432 66,338 C66,339.657568 67.3424318,341 69,341 C70.6575682,341 72,339.657568 72,338 C72,336.342432 70.6575682,335 69,335`,id:`Fill-45`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M257.504844,5.95820273 C259.138373,6.23245282 260.684522,5.12817149 260.958799,3.49480593 C261.23065,1.86144037 260.128685,0.315446521 258.495156,0.041196434 C256.861627,-0.230626661 255.315478,0.87122767 255.041201,2.50459323 C254.76935,4.13795879 255.871315,5.68395264 257.504844,5.95820273`,id:`Fill-46`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M408.076506,181.591719 C407.574286,184.588199 409.597583,187.421278 412.591679,187.923495 C415.588177,188.425711 418.421274,186.402427 418.923494,183.40835 C419.425714,180.41187 417.402417,177.576388 414.408321,177.076574 C411.411823,176.574357 408.578726,178.595239 408.076506,181.591719`,id:`Fill-47`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M185.5,92 C187.98545,92 190,89.9848866 190,87.4987406 C190,85.0151134 187.98545,83 185.5,83 C183.01455,83 181,85.0151134 181,87.4987406 C181,89.9848866 183.01455,92 185.5,92`,id:`Fill-48`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M316.041797,93.5048441 C315.767547,95.1383732 316.871829,96.6845219 318.505194,96.9587994 C320.13856,97.2306498 321.684553,96.1286851 321.958804,94.4951559 C322.230627,92.8616268 321.128772,91.3154781 319.495407,91.0412006 C317.862041,90.7693502 316.316047,91.8713149 316.041797,93.5048441`,id:`Fill-49`,fill:`#D6D8D8`})]})})})})}),ag=()=>
42(0,K.jsxs)(`svg`,{viewBox:`0 0 594 345`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`polygon`,{id:`company-path-1`,points:`0 345 593.795 345 593.795 0.614 0 0.614`}),(0,K.jsx)(`path`,{d:`M0.2376,6.91252678 C0.261115353,8.64637499 0.974347733,10.2133477 2.113,11.352 L6.642,15.88 L11.17,11.352 C12.328,10.194 13.045,8.593 13.045,6.824 C13.045,3.287 10.178,0.421 6.642,0.421 C3.1345682,0.421 0.284997901,3.23928258 0.2376,6.73543735 L0.2376,6.91252678 L0.2376,6.91252678 Z`,id:`company-path-3`}),(0,K.jsx)(`path`,{d:`M0.703,6.721 C0.703,8.489 1.419,10.09 2.578,11.249 L7.106,15.777 L11.634,11.249 C12.793,10.09 13.51,8.489 13.51,6.721 C13.51,3.184 10.643,0.318 7.106,0.318 C3.57,0.318 0.703,3.184 0.703,6.721 Z`,id:`company-path-5`}),(0,K.jsx)(`path`,{d:`M0.219807287,7.22326288 C0.22022233,7.17031157 0.221284153,7.11722137 0.223,7.064 C0.33489432,3.60226948 3.17263728,0.872156331 6.6092611,0.867007295 L6.62927929,0.867007295 C6.69594367,0.867102617 6.76342412,0.868146748 6.83,0.871 C8.598,0.928 10.174,1.696 11.295,2.892 L15.674,7.563 L11.003,11.943 C9.807,13.064 8.184,13.729 6.417,13.671 C2.96943141,13.5598196 0.246635757,10.7445323 0.219807287,7.32527162 L0.219807287,7.22326288 L0.219807287,7.22326288 Z`,id:`company-path-7`})]}),(0,K.jsx)(`g`,{id:`Pathflow-ver-6`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,opacity:`0.6`,children:(0,K.jsx)(`g`,{id:`Window-Shopping`,transform:`translate(-10139.000000, -1757.000000)`,children:(0,K.jsxs)(`g`,{id:`Page-1`,transform:`translate(10139.000000, 1756.000000)`,children:[(0,K.jsx)(`polygon`,{id:`Fill-1`,fill:`#37474F`,points:`389.744 81.699 416.139 81.699 416.139 77.798 389.744 77.798`}),(0,K.jsx)(`polygon`,{id:`Fill-2`,fill:`#546E7A`,points:`390.688 95.325 416.139 95.325 416.139 81.666 390.688 81.666`}),(0,K.jsx)(`polygon`,{id:`Fill-3`,fill:`#37474F`,points:`390.688 106.137 393.441 106.137 393.441 95.325 390.688 95.325`}),(0,K.jsx)(`path`,{d:`M399.5621,87.0505 L409.3131,87.0505`,id:`Stroke-4`,stroke:`#37474F`}),(0,K.jsxs)(`g`,{id:`Group-111`,transform:`translate(0.000000, 0.386000)`,children:[(0,K.jsx)(`path`,{d:`M408.537,71.6342 C408.537,74.8532 405.927,77.4632 402.708,77.4632 C399.489,77.4632 396.879,74.8532 396.879,71.6342 C396.879,68.4152 399.489,65.8052 402.708,65.8052 C405.927,65.8052 408.537,68.4152 408.537,71.6342 Z`,id:`Fill-5`,fill:`#FF7043`}),(0,K.jsx)(`path`,{d:`M402.7082,60.2078 L402.7082,65.8058`,id:`Stroke-7`,stroke:`#37474F`}),(0,K.jsx)(`polygon`,{id:`Fill-9`,fill:`#37474F`,points:`407.3656 49.4576 402.9416 49.4576 398.5166 49.4576 394.9086 61.1046 402.9416 61.1046 410.9736 61.1046`}),(0,K.jsx)(`path`,{d:`M384.738,268.0878 L213.886,268.0878 C212.626,268.0878 211.604,267.0658 211.604,265.8058 L211.604,175.6108 L387.02,175.6108 L387.02,265.8058 C387.02,267.0658 385.998,268.0878 384.738,268.0878`,id:`Fill-11`,fill:`#D6D8D8`}),(0,K.jsx)(`mask`,{id:`company-mask-2`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#company-path-1`})}),(0,K.jsx)(`g`,{id:`Clip-14`}),(0,K.jsx)(`polygon`,{id:`Fill-13`,fill:`#37474F`,mask:`url(#company-mask-2)`,points:`211.604 175.733 387.02 175.733 387.02 165.259 211.604 165.259`}),(0,K.jsx)(`polygon`,{id:`Stroke-15`,stroke:`#FFFFFF`,strokeWidth:`0.5`,mask:`url(#company-mask-2)`,points:`252.63 268.088 272.268 268.088 272.268 175.611 252.63 175.611`}),(0,K.jsx)(`polygon`,{id:`Stroke-16`,stroke:`#FFFFFF`,strokeWidth:`0.5`,mask:`url(#company-mask-2)`,points:`272.21 268.088 291.848 268.088 291.848 175.611 272.21 175.611`}),(0,K.jsx)(`polygon`,{id:`Stroke-17`,stroke:`#FFFFFF`,strokeWidth:`0.5`,mask:`url(#company-mask-2)`,points:`291.79 268.088 311.428 268.088 311.428 175.611 291.79 175.611`}),(0,K.jsx)(`polygon`,{id:`Stroke-18`,stroke:`#FFFFFF`,strokeWidth:`0.5`,mask:`url(#company-mask-2)`,points:`311.37 268.088 331.008 268.088 331.008 175.611 311.37 175.611`}),(0,K.jsx)(`polygon`,{id:`Stroke-19`,stroke:`#FFFFFF`,strokeWidth:`0.5`,mask:`url(#company-mask-2)`,points:`330.95 268.088 350.588 268.088 350.588 175.611 330.95 175.611`}),(0,K.jsx)(`polygon`,{id:`Stroke-20`,stroke:`#FFFFFF`,strokeWidth:`0.5`,mask:`url(#company-mask-2)`,points:`350.531 268.088 370.169 268.088 370.169 175.611 350.531 175.611`}),(0,K.jsx)(`polygon`,{id:`Stroke-21`,stroke:`#FFFFFF`,strokeWidth:`0.5`,mask:`url(#company-mask-2)`,points:`370.111 268.088 389.749 268.088 389.749 175.611 370.111 175.611`}),(0,K.jsx)(`polygon`,{id:`Stroke-22`,stroke:`#FFFFFF`,strokeWidth:`0.5`,mask:`url(#company-mask-2)`,points:`201.046 205.826 389.749 205.826 389.749 185.072 201.046 185.072`}),(0,K.jsx)(`polygon`,{id:`Stroke-23`,stroke:`#FFFFFF`,strokeWidth:`0.5`,mask:`url(#company-mask-2)`,points:`201.046 226.58 389.749 226.58 389.749 205.826 201.046 205.826`}),(0,K.jsx)(`polygon`,{id:`Stroke-24`,stroke:`#FFFFFF`,strokeWidth:`0.5`,mask:`url(#company-mask-2)`,points:`201.046 247.334 389.749 247.334 389.749 226.58 201.046 226.58`}),(0,K.jsx)(`path`,{d:`M358.8127,173.3972 L245.6927,173.3972 C245.0057,173.3972 244.4487,172.8402 244.4487,172.1532 L244.4487,169.4072 C244.4487,168.7202 245.0057,168.1632 245.6927,168.1632 L358.8127,168.1632 C359.4997,168.1632 360.0567,168.7202 360.0567,169.4072 L360.0567,172.1532 C360.0567,172.8402 359.4997,173.3972 358.8127,173.3972`,id:`Fill-25`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M343.6534,195.7116 L260.3564,195.7116 C259.6184,195.7116 259.0204,195.1136 259.0204,194.3756 L259.0204,191.4286 C259.0204,190.6906 259.6184,190.0926 260.3564,190.0926 L343.6534,190.0926 C344.3914,190.0926 344.9894,190.6906 344.9894,191.4286 L344.9894,194.3756 C344.9894,195.1136 344.3914,195.7116 343.6534,195.7116`,id:`Fill-26`,fill:`#37474F`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M380.1578,216.2033 L322.5248,216.2033 C321.7868,216.2033 321.1888,215.6053 321.1888,214.8673 L321.1888,211.9203 C321.1888,211.1823 321.7868,210.5843 322.5248,210.5843 L380.1578,210.5843 C380.8958,210.5843 381.4938,211.1823 381.4938,211.9203 L381.4938,214.8673 C381.4938,215.6053 380.8958,216.2033 380.1578,216.2033`,id:`Fill-27`,fill:`#37474F`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M339.5678,237.6631 L281.7358,237.6631 C280.9988,237.6631 280.4008,237.0651 280.4008,236.3271 L280.4008,233.3801 C280.4008,232.6421 28
420.9988,232.0441 281.7358,232.0441 L339.5678,232.0441 C340.3058,232.0441 340.9038,232.6421 340.9038,233.3801 L340.9038,236.3271 C340.9038,237.0651 340.3058,237.6631 339.5678,237.6631`,id:`Fill-28`,fill:`#37474F`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M287.5206,244.9306 L276.5366,244.9306 C275.7996,244.9306 275.2016,244.3326 275.2016,243.5946 L275.2016,240.6476 C275.2016,239.9096 275.7996,239.3116 276.5366,239.3116 L287.5206,239.3116 C288.2586,239.3116 288.8566,239.9096 288.8566,240.6476 L288.8566,243.5946 C288.8566,244.3326 288.2586,244.9306 287.5206,244.9306`,id:`Fill-29`,fill:`#FF5722`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M346.2612,244.9306 L335.2772,244.9306 C334.5402,244.9306 333.9422,244.3326 333.9422,243.5946 L333.9422,240.6476 C333.9422,239.9096 334.5402,239.3116 335.2772,239.3116 L346.2612,239.3116 C346.9992,239.3116 347.5972,239.9096 347.5972,240.6476 L347.5972,243.5946 C347.5972,244.3326 346.9992,244.9306 346.2612,244.9306`,id:`Fill-30`,fill:`#FF5722`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M326.71,223.3647 L315.726,223.3647 C314.989,223.3647 314.391,222.7667 314.391,222.0287 L314.391,219.0817 C314.391,218.3437 314.989,217.7457 315.726,217.7457 L326.71,217.7457 C327.448,217.7457 328.046,218.3437 328.046,219.0817 L328.046,222.0287 C328.046,222.7667 327.448,223.3647 326.71,223.3647`,id:`Fill-31`,fill:`#FF5722`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M384.1946,223.3647 L373.2106,223.3647 C372.4736,223.3647 371.8756,222.7667 371.8756,222.0287 L371.8756,219.0817 C371.8756,218.3437 372.4736,217.7457 373.2106,217.7457 L384.1946,217.7457 C384.9326,217.7457 385.5306,218.3437 385.5306,219.0817 L385.5306,222.0287 C385.5306,222.7667 384.9326,223.3647 384.1946,223.3647`,id:`Fill-32`,fill:`#FF5722`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M360.3248,258.032 L263.7848,258.032 C263.0468,258.032 262.4488,257.434 262.4488,256.696 L262.4488,253.749 C262.4488,253.011 263.0468,252.413 263.7848,252.413 L360.3248,252.413 C361.0628,252.413 361.6608,253.011 361.6608,253.749 L361.6608,256.696 C361.6608,257.434 361.0628,258.032 360.3248,258.032`,id:`Fill-33`,fill:`#37474F`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M268.8769,265.1935 L257.8929,265.1935 C257.1559,265.1935 256.5579,264.5955 256.5579,263.8575 L256.5579,260.9105 C256.5579,260.1725 257.1559,259.5745 257.8929,259.5745 L268.8769,259.5745 C269.6149,259.5745 270.2129,260.1725 270.2129,260.9105 L270.2129,263.8575 C270.2129,264.5955 269.6149,265.1935 268.8769,265.1935`,id:`Fill-34`,fill:`#FF5722`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M364.3616,265.1935 L353.3776,265.1935 C352.6406,265.1935 352.0426,264.5955 352.0426,263.8575 L352.0426,260.9105 C352.0426,260.1725 352.6406,259.5745 353.3776,259.5745 L364.3616,259.5745 C365.0996,259.5745 365.6976,260.1725 365.6976,260.9105 L365.6976,263.8575 C365.6976,264.5955 365.0996,265.1935 364.3616,265.1935`,id:`Fill-35`,fill:`#FF5722`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M269.4655,202.8802 L258.4815,202.8802 C257.7445,202.8802 257.1465,202.2822 257.1465,201.5442 L257.1465,198.5972 C257.1465,197.8592 257.7445,197.2612 258.4815,197.2612 L269.4655,197.2612 C270.2035,197.2612 270.8015,197.8592 270.8015,198.5972 L270.8015,201.5442 C270.8015,202.2822 270.2035,202.8802 269.4655,202.8802`,id:`Fill-36`,fill:`#FF5722`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M346.2612,202.8802 L335.2772,202.8802 C334.5402,202.8802 333.9422,202.2822 333.9422,201.5442 L333.9422,198.5972 C333.9422,197.8592 334.5402,197.2612 335.2772,197.2612 L346.2612,197.2612 C346.9992,197.2612 347.5972,197.8592 347.5972,198.5972 L347.5972,201.5442 C347.5972,202.2822 346.9992,202.8802 346.2612,202.8802`,id:`Fill-37`,fill:`#FF5722`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M219.837,171.6921 C219.575,172.8671 218.411,173.6071 217.236,173.3451 C216.062,173.0831 215.322,171.9191 215.584,170.7441 C215.845,169.5701 217.01,168.8301 218.184,169.0921 C219.359,169.3531 220.099,170.5171 219.837,171.6921`,id:`Fill-38`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M227.608,171.6921 C227.346,172.8671 226.182,173.6071 225.007,173.3451 C223.833,173.0831 223.093,171.9191 223.355,170.7441 C223.616,169.5701 224.781,168.8301 225.955,169.0921 C227.13,169.3531 227.87,170.5171 227.608,171.6921`,id:`Fill-39`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M235.3791,171.6921 C235.1171,172.8671 233.9531,173.6071 232.7781,173.3451 C231.6041,173.0831 230.8641,171.9191 231.1261,170.7441 C231.3871,169.5701 232.5521,168.8301 233.7261,169.0921 C234.9011,169.3531 235.6411,170.5171 235.3791,171.6921`,id:`Fill-40`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`polygon`,{id:`Fill-41`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`,points:`215.034 189.969 249.206 189.969 249.206 188.905 215.034 188.905`}),(0,K.jsx)(`polygon`,{id:`Fill-42`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`,points:`215.034 194.147 249.206 194.147 249.206 193.083 215.034 193.083`}),(0,K.jsx)(`polygon`,{id:`Fill-43`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`,points:`215.034 198.325 249.206 198.325 249.206 197.261 215.034 197.261`}),(0,K.jsx)(`polygon`,{id:`Fill-44`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`,points:`215.034 231.488 249.206 231.488 249.206 230.424 215.034 230.424`}),(0,K.jsx)(`polygon`,{id:`Fill-45`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`,points:`215.034 235.666 249.206 235.666 249.206 234.602 215.034 234.602`}),(0,K.jsx)(`polygon`,{id:`Fill-46`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`,points:`215.034 239.844 249.206 239.844 249.206 238.78 215.034 238.78`}),(0,K.jsx)(`polygon`,{id:`Fill-47`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`,points:`215.034 210.454 249.206 210.454 249.206 209.39 215.034 209.39`}),(0,K.jsx)(`polygon`,{id:`Fill-48`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`,points:`215.034 214.632 249.206 214.632 249.206 213.568 215.034 213.568`}),(0,K.jsx)(`polygon`,{id:`Fill-49`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`,points:`215.034 218.809 249.206 218.809 249.206 217.745 215.034 217.745`}),(0,K.jsx)(`polygon`,{id:`Fill-50`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`,points:`215.034 254.625 249.206 254.625 249.206 253.561 215.034 253.561`}),(0,K.jsx)(`polygon`,{id:`Fill-51`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`,points:`215.034 258.803 249.206 258.803 249.206 257.739 215.034 257.739`}),(0,K.jsx)(`polygon`,{id:`Fill-52`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`,points:`215.034 262.981 249.206 262.981 249.206 261.917 215.034 261.917`}),(0,K.jsx)(`polygon`,{id:`Stroke-53`,stroke:`#FFFFFF`,strokeWidth:`0.5`,mask:`url(#company-mask-2)`,points:`205.289 268.088 252.63 268.088 252.63 175.611 205.289 175.611`}),(0,K.jsx)(`path`,{d:`M388.6879,106.1945 L512.9549,106.1945`,id:`Stroke-54`,stroke:`#37474F`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`polygon`,{id:`Fill-55`,fill:`#455A64`,mask:`url(#company-mask-2)`,points:`406.445 105.615 421.768 105.615 421.768 100.179 406.445 100.179`}),(0,K.jsx)(`polygon`,{id:`Fill-56`,fill:`#455A64`,mask:`url(#company-mask-2)`,points:`485.637 105.615 500.96 105.615 500.96 100.179 485.637 100.179`}),(0,K.jsx)(`path`,{d:`M494.8574,85.4299 L413.4674,85.4299 C408.0404,85.4299 403.6414,81.0309 403.6414,75.6039 C403.6414,70.1779 408.0404,65.7789 413.4674,65.7789 L494.8574,65.7789 C500.2844,65.7789 504.6834,70.1779 504.6834,75.6039 C504.6834,81.0309 500.2844,85.4299 494.8574,85.4299`,i
42d:`Fill-57`,fill:`#546E7A`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`polygon`,{id:`Fill-58`,fill:`#37474F`,mask:`url(#company-mask-2)`,points:`403.641 100.18 504.683 100.18 504.683 85.06 403.641 85.06`}),(0,K.jsx)(`polygon`,{id:`Fill-59`,fill:`#37474F`,mask:`url(#company-mask-2)`,points:`412.064 65.865 496.26 65.865 496.26 57.486 412.064 57.486`}),(0,K.jsx)(`polygon`,{id:`Fill-60`,fill:`#546E7A`,mask:`url(#company-mask-2)`,points:`412.064 57.541 496.26 57.541 496.26 49.162 412.064 49.162`}),(0,K.jsx)(`path`,{d:`M496.2602,53.3513 L412.0642,53.3513`,id:`Stroke-61`,stroke:`#37474F`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M447.7585,65.7165 L430.9435,65.7165 C429.2455,65.7165 427.8705,64.3405 427.8705,62.6435 L427.8705,45.8285 C427.8705,44.1305 429.2455,42.7555 430.9435,42.7555 L447.7585,42.7555 C449.4555,42.7555 450.8315,44.1305 450.8315,45.8285 L450.8315,62.6435 C450.8315,64.3405 449.4555,65.7165 447.7585,65.7165`,id:`Fill-62`,fill:`#FF7043`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M478.7018,65.7165 L464.8158,65.7165 C463.1178,65.7165 461.7428,64.3405 461.7428,62.6435 L461.7428,48.7575 C461.7428,47.0595 463.1178,45.6845 464.8158,45.6845 L478.7018,45.6845 C480.3988,45.6845 481.7748,47.0595 481.7748,48.7575 L481.7748,62.6435 C481.7748,64.3405 480.3988,65.7165 478.7018,65.7165`,id:`Fill-63`,fill:`#FF7043`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M460.9316,65.7165 L450.3196,65.7165 C448.6226,65.7165 447.2466,64.3405 447.2466,62.6435 L447.2466,52.0315 C447.2466,50.3345 448.6226,48.9585 450.3196,48.9585 L460.9316,48.9585 C462.6286,48.9585 464.0046,50.3345 464.0046,52.0315 L464.0046,62.6435 C464.0046,64.3405 462.6286,65.7165 460.9316,65.7165`,id:`Fill-64`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`polyline`,{id:`Stroke-65`,stroke:`#37474F`,mask:`url(#company-mask-2)`,points:`446.7924 19.4959 453.9264 13.6239 461.0604 19.4959`}),(0,K.jsx)(`polygon`,{id:`Fill-66`,fill:`#546E7A`,mask:`url(#company-mask-2)`,points:`442.138 33.907 465.731 33.907 465.731 18.243 442.138 18.243`}),(0,K.jsx)(`polygon`,{id:`Fill-67`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`,points:`445.229 31.199 462.531 31.199 462.531 21.305 445.229 21.305`}),(0,K.jsx)(`path`,{d:`M534.4466,339.7211 L544.0776,339.7211 C544.8866,339.7211 545.3826,338.8321 544.9586,338.1411 L542.0236,333.3641 C541.8356,333.0581 541.5026,332.8711 541.1436,332.8711 L536.8046,332.8711 C536.5756,332.8711 536.3576,332.9411 536.1776,333.0831 C535.3876,333.7031 533.2516,335.6741 533.4046,338.7241 C533.4326,339.2791 533.8926,339.7211 534.4466,339.7211`,id:`Fill-68`,fill:`#FF7043`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`polygon`,{id:`Stroke-69`,stroke:`#455A64`,strokeWidth:`5`,mask:`url(#company-mask-2)`,points:`354.611 132.714 568.064 132.714 568.064 3.115 354.611 3.115`}),(0,K.jsx)(`polygon`,{id:`Stroke-70`,stroke:`#455A64`,strokeWidth:`5`,mask:`url(#company-mask-2)`,points:`191.81 280.941 405.263 280.941 405.263 151.342 191.81 151.342`}),(0,K.jsx)(`path`,{d:`M489.6753,43.9944 L489.6753,64.9624 C489.6753,65.0024 489.6793,65.0374 489.6903,65.0754 C490.0103,66.2074 495.4383,84.2244 515.6283,77.8204 C515.6283,77.8204 527.8193,75.6174 528.6053,62.0284 L528.6053,39.6254 L494.0443,39.6254 C491.6313,39.6254 489.6753,41.5814 489.6753,43.9944`,id:`Fill-71`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M245.5555,207.6059 L244.6635,208.7999 C244.1905,209.4329 243.2935,209.5629 242.6605,209.0899 L220.5045,192.5389 C219.8705,192.0659 219.7405,191.1689 220.2135,190.5359 L221.1065,189.3409 C221.5795,188.7079 222.4755,188.5779 223.1095,189.0509 L245.2655,205.6029 C245.8985,206.0759 246.0285,206.9729 245.5555,207.6059`,id:`Fill-72`,fill:`#37474F`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M0,342.5 L593.795,342.5`,id:`Stroke-73`,stroke:`#455A64`,strokeWidth:`5`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M318.0017,194.3047 L313.2047,184.1567 C311.4007,180.3397 313.0537,175.4617 316.5287,174.3437 L316.5287,174.3437 C319.1317,173.5057 325.8117,172.9957 326.8717,176.0337 L332.1277,197.3967 L321.0577,201.8957 L318.0017,194.3047`,id:`Fill-74`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`polygon`,{id:`Fill-75`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`,points:`510.0937 87.8257 513.0937 68.4517 523.1247 68.4517 524.0097 87.8257`}),(0,K.jsx)(`polygon`,{id:`Fill-76`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`,points:`493.1402 227.0141 502.8542 333.0251 509.0512 333.0251 512.1992 231.9561`}),(0,K.jsx)(`polygon`,{id:`Fill-77`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`,points:`523.3611 236.0575 536.4021 333.0255 541.5521 333.0255 543.6981 232.2555`}),(0,K.jsx)(`path`,{d:`M551.086,146.4359 L546.26,151.8209 C546.168,151.9249 546.082,152.0359 546.006,152.1559 C545.112,153.5719 539.563,162.8329 545.453,165.8369 C546.4,166.3199 547.649,165.5859 548.058,164.3059 C549.184,160.7809 551.56,154.0399 553.848,151.9769 C554.536,151.3569 554.839,150.3299 554.609,149.4829 L553.907,146.9039 C553.545,145.5729 552.077,145.3299 551.086,146.4359`,id:`Fill-78`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M465.7779,71.3578 C465.7779,71.3578 464.7949,62.5138 467.0059,62.2678 C467.0059,62.2678 470.6909,61.0398 469.4629,68.6558 L469.4629,90.5578 L464.7039,95.3168 L464.7039,83.3958 C464.7039,83.3958 454.7229,82.4128 465.7779,71.3578`,id:`Fill-79`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M460.3958,97.7141 L466.2798,89.2141 C467.7338,87.1141 470.9278,87.4601 471.9058,89.8201 C474.3558,95.7301 478.5098,104.1731 482.2518,104.1731 C488.0078,104.1731 493.5318,104.1731 500.9598,92.5301 L502.7458,89.6351 C504.6448,86.5551 509.3948,88.4651 508.6348,92.0021 L503.6538,115.1801 C503.5078,115.8571 503.1528,116.4721 502.6288,116.9251 C498.1078,120.8341 475.5868,137.
426871 460.0648,100.7811 C459.6408,99.7751 459.7738,98.6121 460.3958,97.7141`,id:`Fill-80`,fill:`#FF7043`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M536.975,113.5312 L552.491,127.8242 C554.214,129.4112 554.559,132.0012 553.311,133.9842 L547.672,142.9482 C546.81,144.3192 546.945,146.0922 548.005,147.3162 L554.282,154.5632 C556.077,156.6352 559.426,156.0872 560.467,153.5522 L573.293,129.7632 C578.75,120.6352 550.52,106.6032 539.767,95.4182 C537.555,93.1172 533.686,94.8632 533.93,98.0452 L534.77,108.9832 C534.903,110.7232 535.691,112.3482 536.975,113.5312`,id:`Fill-81`,fill:`#FF7043`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M499.5435,94.6432 L493.8035,170.5392 C493.1335,176.7392 497.4295,208.4542 503.4205,210.1872 C514.6155,213.4262 522.2895,230.8592 539.5335,222.5082 C544.2185,220.2402 543.6135,175.7372 543.3255,170.5392 L542.3965,107.2092 C541.9365,98.8912 537.2775,91.3222 529.9455,87.3692 C529.3895,87.0692 528.8135,86.7752 528.2165,86.4882 C520.9305,82.9902 512.3255,82.9472 505.4095,87.1292 C502.4055,88.9462 499.8935,91.4092 499.5435,94.6432`,id:`Fill-82`,fill:`#F4511E`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M493.8039,170.5395 L543.3259,170.5395 C544.7729,170.5395 545.9719,171.6615 546.0679,173.1055 L546.0859,173.3655 C546.1919,174.9575 544.9239,176.3055 543.3289,176.2975 L493.7899,176.0365 C492.1599,176.0285 490.8959,174.6125 491.0709,172.9925 L491.0709,172.9925 C491.2219,171.5975 492.3999,170.5395 493.8039,170.5395`,id:`Fill-83`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M493.1402,176.0334 L475.9342,223.8364 C475.9342,223.8364 535.4052,249.3694 564.1702,228.0374 L543.3282,176.2974 L493.1402,176.0334 Z`,id:`Fill-84`,fill:`#263238`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M494.8756,339.7211 L510.5236,339.7211 C510.5236,339.7211 510.6896,337.7451 510.3276,335.9011 C509.9936,334.1981 510.1846,332.9641 508.6666,332.9951 L500.0576,333.0251 C500.0576,333.0251 493.7576,333.2921 494.8756,339.7211`,id:`Fill-85`,fill:`#FF7043`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M530.0529,63.6947 C530.0529,63.6947 549.8929,48.2727 525.0019,34.2997 C524.7019,34.1317 524.3899,33.9897 524.0659,33.8757 C520.9949,32.7877 505.0529,27.8527 498.7669,40.1517 C498.5249,40.6247 498.3659,41.1367 498.2639,41.6577 C497.8219,43.9067 496.8279,50.2207 498.5369,54.5817 C500.2809,59.0347 500.3039,64.0027 498.2099,68.3017 C496.9669,70.8547 496.3709,73.2847 497.5729,74.6107 C497.5729,74.6107 496.4339,77.1717 504.3529,84.9397 C505.1959,85.7667 505.7749,86.8347 505.9799,87.9987 C506.3999,90.3717 506.4199,94.3347 502.8439,96.9707 C502.8439,96.9707 496.1459,101.5837 498.1919,105.8797 C498.1919,105.8797 500.7249,109.9697 504.1999,112.8157 C505.4759,113.8597 506.3249,115.3467 506.4129,116.9917 C506.5329,119.2437 505.9839,122.3257 502.8439,124.6517 C497.2969,128.7627 496.3429,133.0307 507.1069,132.9277 C507.2379,132.9257 507.3749,132.9207 507.5049,132.9117 L546.6319,130.2627 C552.4909,129.8667 554.2369,121.8317 548.9369,119.3037 C548.8599,119.2677 535.2199,109.1167 535.2199,107.3117 C535.2199,107.3117 534.5319,98.1987 539.9309,95.6547 C540.4239,95.4227 540.9049,95.1827 541.3329,94.8457 C543.4619,93.1697 549.4129,87.7597 546.4529,81.6417 C546.0399,80.7887 545.3749,80.0867 544.5929,79.5507 C541.5309,77.4487 532.7249,71.3387 531.4979,69.7657 C530.0099,67.8567 528.3259,65.2717 530.0529,63.6947`,id:`Fill-86`,fill:`#37474F`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M494.0386,36.0605 C499.4236,32.4195 509.2806,28.0695 520.6936,33.9605 L503.5546,42.3715 C503.4456,42.4645 503.3386,42.5565 503.2296,42.6495 C499.3576,48.0425 494.1276,49.0975 489.6756,45.5885 L489.6756,44.2985 C489.6756,40.9965 491.3026,37.9095 494.0386,36.0605`,id:`Fill-87`,fill:`#37474F`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M142.2169,143.7489 C142.2169,143.7489 113.5799,295.2099 125.8529,329.3309 L111.5349,329.3309 C111.5349,329.3309 82.8979,227.8019 111.5349,143.7489 L142.2169,143.7489 Z`,id:`Fill-88`,fill:`#263238`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M132.8046,143.7489 L168.1086,143.7489 C168.1086,143.7489 157.1876,302.7409 168.1086,329.3309 L150.4566,329.3309 L127.0166,185.3049 L132.8046,143.7489 Z`,id:`Fill-89`,fill:`#263238`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M113.775,329.3305 L96.716,331.8645 C92.823,332.4435 89.941,335.7855 89.941,339.7215 L89.941,339.7215 L128.125,339.7215 L124.989,329.3305 L113.775,329.3305 Z`,id:`Fill-90`,fill:`#E64A19`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M155.2361,329.3305 L135.7001,331.8645 C131.2421,332.4435 127.9411,335.7855 127.9411,339.7215 L127.9411,339.7215 L171.6691,339.7215 L168.0781,329.3305 L155.2361,329.3305 Z`,id:`Fill-91`,fill:`#FF7043`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M384.3589,330.5143 C384.3589,330.5143 374.1649,330.5143 375.2529,339.7213 L390.4749,339.7213 L403.6419,322.4123 C403.6419,322.4123 398.4489,316.1513 394.4619,320.2023 L384.3589,330.5143 Z`,id:`Fill-92`,fill:`#E64A19`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`polygon`,{id:`Fill-93`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`,points:`377.2196 311.9607 395.9486 319.1597 388.12
4266 326.6687 377.2196 323.3757`}),(0,K.jsx)(`polygon`,{id:`Fill-94`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`,points:`351.9677 326.1809 358.9537 332.8719 344.2457 332.3509 342.5067 330.4649`}),(0,K.jsx)(`path`,{d:`M107.6483,74.1935 L88.6443,98.5355 C84.0673,104.3985 76.9343,107.8995 69.5133,107.3915 C62.4653,106.9075 56.6193,103.1915 52.7113,97.8515 C51.8073,96.6165 51.1863,95.4045 50.9983,94.2735 L43.3833,101.2245 C43.3833,101.2245 70.3033,152.9935 110.3633,108.4815 L107.6483,74.1935 Z`,id:`Fill-95`,fill:`#FF7043`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M62.4851,74.5627 L75.1331,108.8937 C75.7011,110.4357 74.5601,112.0717 72.9171,112.0717 L44.7621,112.0717 C43.7521,112.0717 42.8541,111.4297 42.5271,110.4747 L30.7821,76.1437 C30.2581,74.6107 31.3971,73.0177 33.0171,73.0177 L60.2691,73.0177 C61.2581,73.0177 62.1431,73.6347 62.4851,74.5627`,id:`Fill-96`,fill:`#37474F`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M82.8127,24.1759 L82.8127,48.1129 C82.8127,48.1129 84.5397,54.7759 87.7567,50.9459 C90.9737,47.1169 89.2087,25.9779 89.2087,25.9779 L82.8127,24.1759 Z`,id:`Fill-97`,fill:`#37474F`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M105.5909,138.0272 C105.5909,138.0272 105.5909,118.8832 102.6899,113.0822 C102.6899,113.0822 80.6459,67.4962 134.0159,68.8252 C134.0159,68.8252 192.6479,70.8892 165.3829,176.4692 C165.3829,176.4692 140.1059,204.2552 100.0789,187.4322 L105.5909,138.0272 Z`,id:`Fill-98`,fill:`#F4511E`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M86.5082,26.9155 L86.5082,49.3175 C86.5082,54.6115 88.3622,59.8265 92.0382,63.6375 C96.1982,67.9515 103.1502,71.3805 114.3152,67.8385 C114.3152,67.8385 127.3752,65.4775 128.2182,50.9185 L128.2182,26.9155 L86.5082,26.9155 Z`,id:`Fill-99`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M290.4174,144.789 L290.4174,167.191 C290.4174,172.485 292.2714,177.7 295.9474,181.511 C300.1074,185.825 307.0594,189.254 318.2244,185.712 C318.2244,185.712 331.2844,183.351 332.1274,168.792 L332.1274,144.789 L290.4174,144.789 Z`,id:`Fill-100`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M92.9498,46.9279 C92.9498,47.6029 92.4028,48.1509 91.7268,48.1509 C91.0518,48.1509 90.5048,47.6029 90.5048,46.9279 C90.5048,46.2529 91.0518,45.7049 91.7268,45.7049 C92.4028,45.7049 92.9498,46.2529 92.9498,46.9279`,id:`Fill-101`,fill:`#000000`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M299.7585,163.2379 C299.7585,163.9129 299.2115,164.4609 298.5355,164.4609 C297.8605,164.4609 297.3135,163.9129 297.3135,163.2379 C297.3135,162.5629 297.8605,162.0149 298.5355,162.0149 C299.2115,162.0149 299.7585,162.5629 299.7585,163.2379`,id:`Fill-102`,fill:`#000000`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M145.637,101.3813 C149.119,115.0433 156.486,153.1253 145.582,199.7713 L155.323,201.8953 C155.323,201.8953 194.768,149.6283 163.661,90.5923 C160.112,83.8583 151.641,83.9553 147.345,90.7913 L147.345,90.7913 C145.377,93.9223 144.74,97.8603 145.637,101.3813`,id:`Fill-103`,fill:`#FF7043`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M117.4613,78.1387 L128.2973,78.1387 C131.7403,78.1387 134.1313,81.5677 132.9393,84.7977 L127.5213,99.4877 C125.9303,103.8017 119.8293,103.8017 118.2383,99.4877 L112.8193,84.7977 C111.6283,81.5677 114.0183,78.1387 117.4613,78.1387`,id:`Fill-104`,fill:`#FFFFFF`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M125.1085,90.6333 L120.3475,90.6333 C117.8235,90.6333 115.7765,88.5873 115.7765,86.0623 L115.7765,57.1183 C115.7765,54.5943 117.8235,52.5473 120.3475,52.5473 L125.1085,52.5473 C127.6325,52.5473 129.6795,54.5943 129.6795,57.1183 L129.6795,86.0623 C129.6795,88.5873 127.6325,90.6333 125.1085,90.6333`,id:`Fill-105`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M122.8796,102.723 L122.8796,192.842`,id:`Stroke-106`,stroke:`#FFFFFF`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M35.9617,91.283 C35.9617,91.283 41.4677,87.417 45.3087,90.403 C49.1497,93.39 38.7847,99.535 38.7847,99.535 L35.9617,91.283 Z`,id:`Fill-107`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M145.5819,199.7714 C145.5819,199.7714 139.0549,208.5684 140.9629,214.2934 C142.8719,220.0184 155.3229,201.8954 155.3229,201.8954 L145.5819,199.7714 Z`,id:`Fill-108`,fill:`#F0CDBB`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M106.5551,47.625 C106.5551,48.3 106.0081,48.848 105.3321,48.848 C104.6571,48.848 104.1101,48.3 104.1101,47.625 C104.1101,46.95 104.6571,46.402 105.3321,46.402 C106.0081,46.402 106.5551,46.95 106.5551,47.625`,id:`Fill-109`,fill:`#000000`,mask:`url(#company-mask-2)`}),(0,K.jsx)(`path`,{d:`M73.6922,10.3082 C77.5722,19.5612 88.1482,37.3742 112.2082,37.9002 C112.4232,37.9052 118.8882,37.4692 119.1012,37.4342 C120.8332,37.1482 126.7472,38.3712 124.5912,48.1122 C123.9902,50.8242 127.2832,52.4722
42129.6792,57.1182 C129.6792,57.1182 131.4662,56.0612 133.4952,51.4372 C136.4932,44.6042 139.1992,34.4712 135.5022,24.3912 C135.5022,24.3912 130.0262,4.8462 116.0892,4.8462 L77.0462,4.8462 C74.3892,4.8462 72.6142,7.7362 73.6922,10.3082`,id:`Fill-110`,fill:`#37474F`,mask:`url(#company-mask-2)`})]}),(0,K.jsxs)(`g`,{id:`Group-114`,transform:`translate(397.000000, 35.386000)`,children:[(0,K.jsx)(`mask`,{id:`company-mask-4`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#company-path-3`})}),(0,K.jsx)(`g`,{id:`Clip-113`}),(0,K.jsx)(`path`,{d:`M11.1696,11.3523 C12.3286,10.1933 13.0456,8.5923 13.0456,6.8243 C13.0456,3.2873 10.1786,0.4203 6.6416,0.4203 C3.1046,0.4203 0.2376,3.2873 0.2376,6.8243 C0.2376,8.5923 0.9546,10.1933 2.1136,11.3523 L6.6416,15.8803 L11.1696,11.3523 Z`,id:`Fill-112`,fill:`#FF5722`,mask:`url(#company-mask-4)`})]}),(0,K.jsxs)(`g`,{id:`Group-117`,transform:`translate(477.000000, 29.386000)`,children:[(0,K.jsx)(`mask`,{id:`company-mask-6`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#company-path-5`})}),(0,K.jsx)(`g`,{id:`Clip-116`}),(0,K.jsx)(`path`,{d:`M11.6347,11.2491 C12.7937,10.0901 13.5107,8.4891 13.5107,6.7211 C13.5107,3.1841 10.6437,0.3171 7.1067,0.3171 C3.5697,0.3171 0.7027,3.1841 0.7027,6.7211 C0.7027,8.4891 1.4197,10.0901 2.5787,11.2491 L7.1067,15.7771 L11.6347,11.2491 Z`,id:`Fill-115`,fill:`#FF5722`,mask:`url(#company-mask-6)`})]}),(0,K.jsxs)(`g`,{id:`Group-120`,transform:`translate(378.000000, 82.386000)`,children:[(0,K.jsx)(`mask`,{id:`company-mask-8`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#company-path-7`})}),(0,K.jsx)(`g`,{id:`Clip-119`}),(0,K.jsx)(`path`,{d:`M11.2952,2.8914 C10.1742,1.6954 8.5972,0.9274 6.8302,0.8704 C3.2952,0.7564 0.3372,3.5294 0.2232,7.0644 C0.1092,10.5994 2.8822,13.5574 6.4162,13.6714 C8.1842,13.7284 9.8072,13.0634 11.0032,11.9424 L15.6752,7.5634 L11.2952,2.8914 Z`,id:`Fill-118`,fill:`#FF5722`,mask:`url(#company-mask-8)`})]}),(0,K.jsxs)(`g`,{id:`Group-139`,transform:`translate(229.000000, 128.386000)`,children:[(0,K.jsx)(`path`,{d:`M104.1011,73.4998 C97.0051,73.0978 80.0421,84.6888 62.5391,79.5918 C48.9871,75.6438 40.5131,61.3538 24.4341,51.8068 L17.6061,57.1018 C17.6061,57.1018 30.0651,84.1978 57.9631,95.1138 C71.5651,100.4358 89.1911,95.2598 108.4431,91.7808 C115.1431,90.5698 117.3441,83.3188 112.6721,77.8118 L112.6721,77.8118 C110.5331,75.2888 107.3461,73.6838 104.1011,73.4998`,id:`Fill-121`,fill:`#E64A19`}),(0,K.jsx)(`path`,{d:`M24.4341,51.8065 C24.4341,51.8065 16.3951,41.5285 10.9981,41.6125 C5.6001,41.6965 17.7001,57.2025 17.7001,5
427.2025 L24.4341,51.8065 Z`,id:`Fill-123`,fill:`#F0CDBB`}),(0,K.jsx)(`polygon`,{id:`Fill-125`,fill:`#263238`,points:`95.8927 181.7634 148.2197 197.2114 155.7237 183.9604 82.2727 162.4534`}),(0,K.jsx)(`path`,{d:`M111.4302,203.4056 L125.3542,197.0996 L94.3762,167.7846 C94.3762,167.7846 153.0582,182.7386 158.7072,163.1946 L89.5252,139.0126 L61.0762,140.5716 C57.4882,140.7686 54.0592,142.3836 51.8512,145.2186 C49.4022,148.3636 49.0392,152.0196 55.0192,157.6706 C59.8402,162.2266 60.1512,161.8846 65.2012,166.1866 L111.4302,203.4056 Z`,id:`Fill-127`,fill:`#37474F`}),(0,K.jsx)(`path`,{d:`M82.0134,137.4591 C85.2934,130.1931 92.1514,110.0751 88.2604,74.8441 C87.7314,70.0471 91.1324,65.3811 95.9284,64.8401 C101.2084,64.2451 108.5704,66.0301 116.8994,75.5491 C116.8994,75.5491 155.2074,106.2831 162.0864,152.9101 C163.2214,160.6051 156.9384,167.3451 149.1904,166.6491 C139.4984,165.7781 114.8934,150.5471 110.3904,148.5661 C103.9714,145.7421 95.9984,141.0631 83.9554,140.6071 C82.3704,140.5471 81.3604,138.9051 82.0134,137.4591`,id:`Fill-129`,fill:`#F4511E`}),(0,K.jsx)(`path`,{d:`M103.1274,75.7262 C96.0874,77.4462 82.0294,96.6112 63.2684,96.7502 C49.3834,96.8522 32.5684,83.7702 14.8644,79.4472 L12.8784,88.1412 C12.8784,88.1412 35.6044,118.0492 67.8974,118.9072 C81.3314,119.2642 101.4114,108.8952 112.3574,96.5812 C125.2844,82.0392 106.2854,74.9542 103.1274,75.7262`,id:`Fill-131`,fill:`#FF7043`}),(0,K.jsx)(`path`,{d:`M14.8645,79.4471 C14.8645,79.4471 7.0545,73.5311 1.9165,75.1881 C-3.2205,76.8441 12.8785,88.1411 12.8785,88.1411 L14.8645,79.4471 Z`,id:`Fill-133`,fill:`#F0CDBB`}),(0,K.jsx)(`path`,{d:`M73.5177,23.5008 L73.5177,23.5008 C73.5217,21.4288 71.8737,19.6448 69.5887,19.2478 L63.8787,18.2548 C59.9877,17.5778 58.6047,13.2808 61.4817,10.8528 C68.9217,4.5738 82.3327,-3.4722 96.4677,3.9908 C104.7657,8.3718 109.6427,16.4958 109.6847,25.0818 C109.7287,34.3268 108.9157,47.6498 104.2607,52.9398 C104.2607,52.9398 102.1627,56.8448 94.4587,56.4158 C91.9897,56.2778 90.0277,54.5058 89.9157,52.3058 C89.7457,48.9898 88.2787,37.5878 89.0017,31.8898 C89.3147,29.4278 89.0767,27.1228 85.7877,25.8238 C82.7737,24.6328 79.6797,26.4248 78.9937,29.5918 C78.5617,31.5868 75.8327,31.8068 75.0497,29.9218 C74.0917,27.6178 73.5147,24.7998 73.5177,23.5008`,id:`Fill-135`,fill:`#37474F`}),(0,K.jsx)(`path`,{d:`M109.7702,204.1573 C109.7702,204.1573 95.9222,205.6183 95.8662,211.7213 L134.0072,211.7213 L129.9542,204.8713 L109.7702,204.1573 Z`,id:`Fill-137`,fill:`#FF7043`})]})]})})})]}),og=()=>(0,K.jsxs)(`svg`,{width:`392px`,height:`369px`,viewBox:`0 0 392 369`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`polygon`,{id:`path-1`,points:`3.25030259e-16 5.92068571 3.25030259e-16 0.393828571 4.8358 0.393828571 4.8358 5.92068571 0 5.92068571`}),(0,K.jsx)(`polygon`,{id:`path-3`,points:`0.278121506 0.018 5.92885549 0.018 5.92885549 4.96154855 0.278121506 4.96154855 0.278121506 0.018`}),(0,K.jsx)(`polygon`,{id:`path-5`,points:`0 369 392 369 392 0 0 0`})]}),(0,K.jsx)(`g`,{id:`Pathflow-ver-6`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,opacity:`0.6`,children:(0,K.jsx)(`g`,{id:`Confirmation-Message`,transform:`translate(-576.000000, -274.000000)`,children:(0,K.jsxs)(`g`,{id:`Page-1`,transform:`translate(576.000000, 274.000000)`,children:[(0,K.jsx)(`path`,{d:`M345.5,305 C347.432459,305 349,306.567541 349,308.5 C349,310.432459 347.432459,312 345.5,312 C343.567541,312 342,310.432459 342,308.5 C342,306.567541 343.567541,305 345.5,305 Z`,id:`Fill-1`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M190,43 C187.790711,43 186,44.5673104 186,46.5009796 C186,48.4326896 187.790711,50 190,50 C192.209289,50 194,48.4326896 194,46.5009796 C194,44.5673104 192.209289,43 190,43`,id:`Fill-3`,fill:`#D6D8D8`}),(0,K.jsxs)(`g`,{id:`Group-7`,transform:`translate(0.000000, 160.000000)`,children:[(0,K.jsx)(`mask`,{id:`mask-2`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#path-1`})}),(0,K.jsx)(`g`,{id:`Clip-6`}),(0,K.jsx)(`path`,{d:`M2.4178,0.393828571 C1.0818,0.393828571 -0.0002,1.6304 -0.0002,3.15725714 C-0.0002,4.68411429 1.0818,5.92068571 2.4178,5.92068571 C3.7538,5.92068571 4.8358,4.68411429 4.8358,3.15725714 C4.8358,1.6304 3.7538,0.393828571 2.4178,0.393828571`,id:`Fill-5`,fill:`#D6D8D8`,mask:`url(#mask-2)`})]}),(0,K.jsx)(`path`,{d:`M263.08737,15.9651689 C264.448644,16.1937107 265.737102,15.2734762 265.9
4265666,13.9123383 C266.192208,12.5512003 265.273904,11.2628721 263.91263,11.0343304 C262.551356,10.8078111 261.262898,11.7260231 261.034334,13.087161 C260.807792,14.448299 261.726096,15.7366272 263.08737,15.9651689`,id:`Fill-8`,fill:`#D6D8D8`}),(0,K.jsx)(`path`,{d:`M346.062596,114.756861 C345.651689,117.208526 347.307114,119.5265 349.756828,119.937405 C352.208509,120.348309 354.526497,118.692894 354.937404,116.243195 C355.348311,113.79153 353.692886,111.47159 351.243172,111.062651 C348.791491,110.651747 346.473503,112.305195 346.062596,114.756861`,id:`Fill-10`,fill:`#D6D8D8`}),(0,K.jsxs)(`g`,{id:`Group-14`,transform:`translate(98.000000, 0.000000)`,children:[(0,K.jsx)(`mask`,{id:`mask-4`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#path-3`})}),(0,K.jsx)(`g`,{id:`Clip-13`}),(0,K.jsx)(`path`,{d:`M0.317485714,2.0816 C0.0592,3.4276 1.0992,4.7016 2.63748571,4.9276 C4.17577143,5.1516 5.63177143,4.2436 5.89005714,2.8976 C6.14605714,1.5516 5.10834286,0.2776 3.57005714,0.0516 C2.03177143,-0.1724 0.575771429,0.7356 0.317485714,2.0816`,id:`Fill-12`,fill:`#D6D8D8`,mask:`url(#mask-4)`})]}),(0,K.jsx)(`path`,{d:`M293.579811,311 L124.420189,311 C117.007511,311 111,304.993824 111,297.582793 L111,63.4172067 C111,56.0082661 117.007511,50 124.420189,50 L293.579811,50 C300.992489,50 307,56.0082661 307,63.4172067 L307,297.582793 C307,304.993824 300.992489,311 293.579811,311`,id:`Fill-15`,fill:`#546E7A`}),(0,K.jsx)(`path`,{d:`M288,274 L129,274 L129,80.1842094 C129,77.3201325 131.318833,75 134.179214,75 L282.820786,75 C285.681167,75 288,77.3201325 288,80.1842094 L288,274 Z`,id:`Fill-17`,fill:`#FFFFFF`}),(0,K.jsx)(`path`,{d:`M282.889786,286 L134.110214,286 C131.287469,286 129,283.666612 129,280.787203 L129,273 L288,273 L288,280.787203 C288,283.666612 285.712531,286 282.889786,286`,id:`Fill-19`,fill:`#FF7043`}),(0,K.jsx)(`mask`,{id:`mask-6`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#path-5`})}),(0,K.jsx)(`g`,{id:`Clip-22`}),(0,K.jsx)(`polygon`,{id:`Fill-21`,fill:`#D6D8D8`,mask:`url(#mask-6)`,points:`141 120 277 120 277 118 141 118`}),(0,K.jsx)(`polygon`,{id:`Fill-23`,fill:`#37474F`,mask:`url(#mask-6)`,points:`159 89 177 89 177 87 159 87`}),(0,K.jsx)(`polygon`,{id:`Fill-24`,fill:`#37474F`,mask:`url(#mask-6)`,points:`141 103 213 103 213 101 141 101`}),(0,K.jsx)(`polygon`,{id:`Fill-25`,fill:`#37474F`,mask:`url(#mask-6)`,points:`141 108 213 108 213 106 141 106`}),(0,K.jsx)(`path`,{d:`M153,89 C153,92.3126525 150.314744,95 147,95 C143.687348,95 141,92.3126525 141,89 C141,85.6873475 143.687348,83 147,83 C150.314744,83 153,85.6873475 153,89`,id:`Fill-26`,fill:`#D6D8D8`,mask:`url(#mask-6)`}),(0,K.jsx)(`polygon`,{id:`Fill-27`,fill:`#D6D8D8`,mask:`url(#mask-6)`,points:`141 167 277 167 277 165 141 165`}),(0,K.jsx)(`polygon`,{id:`Fill-28`,fill:`#37474F`,mask:`url(#mask-6)`,points:`159 136 177 136 177 134 159 134`}),(0,K.jsx)(`polygon`,{id:`Fill-29`,fill:`#37474F`,mask:`url(#mask-6)`,points:`141 149 213 149 213 147 141 147`}),(0,K.jsx)(`polygon`,{id:`Fill-30`,fill:`#37474F`,mask:`url(#mask-6)`,points:`141 157 213 157 213 155 141 155`}),(0,K.jsx)(`path`,{d:`M153,135 C153,138.312652 150.314744,141 147,141 C143.687348,141 141,138.312652 141,135 C141,131.687348 143.687348,129 147,129 C150.314744,129 153,131.687348 153,135`,id:`Fill-31`,fill:`#D6D8D8`,mask:`url(#mask-6)`}),(0,K.jsx)(`polygon`,{id:`Fill-32`,fill:`#D6D8D8`,mask:`url(#mask-6)`,points:`141 213 277 213 277 211 141 211`}),(0,K.jsx)(`polygon`,{id:`Fill-33`,fill:`#37474F`,mask:`url(#mask-6)`,points:`159 182 177 182 177 180 159 180`}),(0,K.jsx)(`polygon`,{id:`Fill-34`,fill:`#37474F`,mask:`url(#mask-6)`,points:`141 196 213 196 213 194 141 194`}),(0,K.jsx)(`polygon`,{id:`Fill-35`,fill:`#37474F`,mask:`url(#mask-6)`,points:`141 202 213 202 213 200 141 200`}),(0,K.jsx)(`path`,{d:`M152,181 C152,184.312652 149.314744,187 146,187 C142.687348,187 140,184.312652 140,181 C140,177.687348 142.687348,175 146,175 C149.314744,175 152,177.687348 152,181`,id:`Fill-36`,fill:`#D6D8D8`,mask:`url(#mask-6)`}),(0,K.jsx)(`polygon`,{id:`Fill-37`,fill:`#D6D8D8`,mask:`url(#mask-6)`,points:`141 260 277 260 277 258 141 258`}),(0,K.jsx)(`polygon`,{id:`Fill-38`,fill:`#37474F`,mask:`url(#mask-6)`,points:`159 228 177 228 177 226 159 226`}),(0,K.jsx)(`polygon`,{id:`Fill-39`,fill:`#37474F`,mask:`url(#mask-6)`,points:`141 242 213 242 213 240 141 240`}),(0,K.jsx)(`polygon`,{id:`Fill-40`,fill:`#37474F`,mask:`url(#mask-6)`,points:`141 248 213 248 213 246 141 246`}),(0,K.jsx)(`path`,{d:`M152,228 C152,231.312652 149.314744,234 146,234 C142.687348,234 140,231.312652 140,228 C140,224.687348 142.687348,222 146,222 C149.314744,222 152,224.687348 152,228`,id:`Fill-41`,fill:`#D6D8D8`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M254.313423,61 L168.686577,61 C161.128978,61 155,54.8185034 155,47.1914028 L155,43.969043 C155,40.120467 158.092893,37 161.907461,37 L261.092539,37 C264.907107,37 268,40.120467 268,43.969043 L268,47.1914028 C268,54.8185034 261.871022,61 254.313423,61`,id:`Fill-42`,fill:`#37474F`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M226,29.5 C226,37.5079925 219.50846,44 211.501044,44 C203.49154,44 197,37.5079925 197,29.5 C197,21.4920075 203.49154,15 211.501044,15 C219.50846,15 226,21.4920075 226,29.5`,id:`Fill-43`,fill:`#37474F`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M214,29 C214,31.2095626 212.210018,33 210.001017,33 C207.792016,33 206,31.2095626 206,29 C206,26.7904374 207.792016,25 210.001017,25 C212.210018,25 214,26.7904374 214,29`,id:`Fill-44`,fill:`#FFFFFF`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M125,70 C125,101.479674 99.4796739,127 68,127 C36.5203261,127 11,101.479674 11,70 C11,38.5203261 36.5203261,13 68,13 C99.4796739,13 125,38.5203261 125,70`,id:`Fill-45`,fill:`#37474F`,mask:`url(#mask-6)`}
42),(0,K.jsx)(`path`,{d:`M41.119253,100.047784 C41.0763255,100.096922 41.0720327,100.154605 41.0484226,100.210152 C40.8831517,100.588298 41.1578877,101.045491 41.6150657,100.996354 L46.4615814,100.466522 C48.4856134,100.246471 49.992369,98.5074265 49.9172458,96.4842385 L49.7798778,92.8758282 L54.5190748,91.209422 C56.0644651,90.6667718 57.2921918,89.472514 57.8717132,87.944975 L59.8699887,82.6915227 C60.4044362,81.2857595 61.4432819,80.1278209 62.7890593,79.4420306 C63.9781512,78.8352879 65.0406071,78.0106304 65.9227674,77.0129231 L76,65.6001772 C74.9375442,65.1857121 73.9223086,64.6473347 72.9457078,64 L41.119253,100.047784 Z`,id:`Fill-46`,fill:`#FFFFFF`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M77.3126724,61.6362846 L70.483958,55.480221 C69.9392349,54.9893509 69.885384,54.1372344 70.3659001,53.5783649 C70.8443451,53.0173705 71.6748924,52.9642461 72.2196154,53.4551162 L79.0483299,59.6111798 C79.593053,60.1020499 79.6469039,60.9541664 79.1663878,61.5130358 C78.6879428,62.0740302 77.8573955,62.1271547 77.3126724,61.6362846 L77.3126724,61.6362846 Z M40.0768129,94.5543314 L39.631507,94.1527104 L67.5366541,61.5746602 L67.9819601,61.9741562 L40.0768129,94.5543314 Z M86.220862,50.869017 C84.6508997,52.7049986 81.9272845,52.8856218 80.1398472,51.2727629 C78.3503388,49.659904 78.1763588,46.8676818 79.7463211,45.0338251 C80.9041164,43.6802136 82.6853401,43.244593 84.2594448,43.743963 C84.3070821,43.7588378 84.3505771,43.7694627 84.4002857,43.7885875 C84.9097985,43.9692107 85.3985994,44.241208 85.829407,44.6300792 C87.6168443,46.2429381 87.7928954,49.0351602 86.220862,50.869017 L86.220862,50.869017 Z M90.6097143,39.0498848 C84.0295426,33.1169439 74.0070527,33.7799373 68.2263605,40.530995 C63.5185449,46.0261902 63.1415883,53.8269875 66.6874661,59.7514284 L38.3328707,92.8564733 C36.3797382,95.1344506 36.5992844,98.604541 38.8196004,100.606271 C39.337398,101.073766 40.0602434,101.114141 40.6298207,100.784769 C40.6505326,100.731645 40.6567462,100.67427 40.69817,100.625396 L71.40978,64.7706283 C72.3521716,65.4144969 73.3318446,65.9499916 74.3550127,66.3622375 C80.398746,68.7974632 87.5194983,67.3057281 92.0533339,62.0145308 C97.8360973,55.2634731 97.1878147,44.9828256 90.6097143,39.0498848 L90.6097143,39.0498848 Z`,id:`Fill-47`,fill:`#C6C6C6`,mask:`url(#mask-6)`}),(0,K.jsx)(`polygon`,{id:`Fill-48`,fill:`#37474F`,mask:`url(#mask-6)`,points:`281.475739 193 269 185.436454 324.524261 96 337 103.561478`}),(0,K.jsx)(`polygon`,{id:`Fill-49`,fill:`#546E7A`,mask:`url(#mask-6)`,points:`269 185 269.023997 199 282 192.678368`}),(0,K.jsx)(`polygon`,{id:`Fill-50`,fill:`#FF7043`,mask:`url(#mask-6)`,points:`337.811118 102 325 94.216545 333.188882 81 346 88.781326`}),(0,K.jsx)(`path`,{d:`M93.5,205 C91.567541,205 90,206.567541 90,208.5 C90,210.432459 91.567541,212 93.5,212 C95.432459,212 97,210.432459 97,208.5 C97,206.567541 95.432459,205 93.5,205`,id:`Fill-51`,fill:`#D6D8D8`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M223.5,336 C221.014812,336 219,338.014812 219,340.5 C219,342.985188 221.014812,345 223.5,345 C225.985188,345 228,342.985188 228,340.5 C228,338.014812 225.985188,336 223.5,336`,id:`Fill-52`,fill:`#D6D8D8`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M392,223.5 C392,249.181283 371.181283,270 345.5,270 C319.818717,270 299,249.181283 299,223.5 C299,197.818717 319.818717,177 345.5,177 C371.181283,177 392,197.818717 392,223.5`,id:`Fill-53`,fill:`#37474F`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M369.157573,215.505855 C368.539068,216.12308 367.574369,216.129531 366.915757,215.55962 C361.047347,210.47128 354.212129,207.841086 346.391101,207.864743 C338.675621,207.888399 331.933284,210.486334 326.092317,215.531662 C325.298604,216.215556 324.114367,216.135983 323.379761,215.387571 C322.824584,214.824112 322.180748,214.168176 321.604461,213.585361 C320.74531,212.716516 320.808638,211.286361 321.752227,210.512142 C323.675292,208.933595 326.778372,206.503407 328.904087,205.38294 C333.4996,202.959204 338.38009,201.541953 343.539224,201.126886 C344.00363,201.090326 344.468036,201.047313 344.930332,201.008602 C344.987327,201.002151 345.044323,201 345.101318,201 L348.124182,201 C348.265615,201.019355 348.407048,201.045163 348.548481,201.058066 C349.688387,201.
42169898 350.832516,201.240868 351.96609,201.397863 C356.728367,202.06025 361.203557,203.612989 365.391659,206.013069 C367.487821,207.215259 369.440439,208.613154 371.26429,210.18955 C372.184659,210.985276 372.256431,212.406828 371.395168,213.269222 C370.831547,213.834832 369.894291,214.770347 369.157573,215.505855`,id:`Fill-54`,fill:`#FFFFFF`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M364.659441,225.605082 C364.149989,226.098826 363.35516,226.105102 362.811885,225.646924 C357.979491,221.577719 352.352267,219.473029 345.911188,219.491858 C339.556779,219.510688 334.003541,221.590271 329.192286,225.626003 C328.541202,226.172051 327.564576,226.109286 326.959999,225.508843 C326.503394,225.059034 325.972803,224.536 325.497174,224.069453 C324.789015,223.372772 324.843976,222.230465 325.619781,221.611193 C327.203098,220.347542 329.758813,218.403947 331.509129,217.506421 C335.295139,215.56701 339.311565,214.433072 343.560521,214.102515 C343.943139,214.071133 344.325756,214.037658 344.708374,214.006276 C344.75488,214.002092 344.801386,214 344.847892,214 L347.338076,214 C347.454341,214.016737 347.570606,214.035566 347.686871,214.046027 C348.625446,214.135989 349.568249,214.192477 350.500483,214.318005 C354.423897,214.847315 358.108439,216.090044 361.558338,218.010626 C363.285401,218.973009 364.891971,220.092302 366.39496,221.351768 C367.151739,221.98987 367.210929,223.1259 366.50277,223.816305 C366.03771,224.268206 365.266133,225.017191 364.659441,225.605082`,id:`Fill-55`,fill:`#FFFFFF`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M359.384003,231.736737 C359.033257,232.066001 358.48238,232.069945 358.10894,231.76434 C354.772731,229.051355 350.885646,227.647544 346.439431,227.661345 C342.050986,227.673175 338.217544,229.059242 334.895778,231.750538 C334.443935,232.115292 333.771329,232.071916 333.352498,231.673644 C333.03889,231.371982 332.671639,231.023001 332.343589,230.713453 C331.854608,230.248144 331.891746,229.487089 332.42818,229.073044 C333.521681,228.231151 335.285724,226.93578 336.494765,226.3364 C339.10885,225.044972 341.881803,224.289832 344.815686,224.067036 C345.079776,224.047319 345.343867,224.025631 345.607958,224.003943 C345.640969,224.001972 345.671917,224 345.704929,224 L347.423581,224 C347.504047,224.009858 347.584512,224.02366 347.664977,224.031546 C348.312824,224.090696 348.962735,224.128157 349.60852,224.212938 C352.317513,224.565862 354.861449,225.393953 357.242392,226.673551 C358.434926,227.314336 359.544933,228.06159 360.580664,228.90151 C361.104719,229.325414 361.145983,230.084498 360.657002,230.543891 C360.335142,230.845553 359.802834,231.344379 359.384003,231.736737`,id:`Fill-56`,fill:`#FFFFFF`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M344.859197,247 C344.300274,246.855828 343.723125,246.75836 343.184453,246.559362 C340.47489,245.556249 338.719142,242.71139 339.037081,239.882776 C339.37527,236.863286 341.602862,234.499677 344.512908,234.073252 C348.196536,233.531084 351.491348,236.05511 351.953067,239.769062 C352.382385,243.223099 349.814578,246.52078 346.36991,246.939082 C346.288907,246.949235 346.209929,246.979694 346.128925,247 L344.859197,247 Z`,id:`Fill-57`,fill:`#C6C6C6`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M131,316 C131,345.27148 107.271945,369 78.0010392,369 C48.7301335,369 25,345.27148 25,316 C25,286.72852 48.7301335,263 78.0010392,263 C107.271945,263 131,286.72852 131,316`,id:`Fill-58`,fill:`#37474F`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M89.8333842,343 L65.1666158,343 C64.2861069,343 63.5328753,342.379579 63.3805598,341.527781 L57,306 L98,306 L91.6215267,341.527781 C91.4671247,342.379579 90.7138931,343 89.8333842,343`,id:`Fill-59`,fill:`#C6C6C6`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M101.40846,308 L54.5915398,308 C53.7127239,308 53,307.191207 53,306.193933 L53,302.806067 C53,301.808793 53.7127239,301 54.5915398,301 L101.40846,301 C102.287276,301 103,301.808793 103,302.806067 L103,306.193933 C103,307.191207 102.287276,308 101.40846,308`,id:`Fill-60`,fill:`#FFFFFF`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M86,301 L70,301 L70,299.148944 C70,296.304577 71.9822634,294 74.4262078,294 L81.57591,294 C84.0198544,294 86,296.304577 8
426,299.148944 L86,301 Z`,id:`Fill-61`,fill:`#C6C6C6`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M69.7101828,336 L68.2898172,336 C67.5770235,336 67,335.530151 67,334.949749 L67,315.050251 C67,314.469849 67.5770235,314 68.2898172,314 L69.7101828,314 C70.4229765,314 71,314.469849 71,315.050251 L71,334.949749 C71,335.530151 70.4229765,336 69.7101828,336`,id:`Fill-62`,fill:`#37474F`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M77.7101828,336 L76.2898172,336 C75.5770235,336 75,335.530151 75,334.949749 L75,315.050251 C75,314.469849 75.5770235,314 76.2898172,314 L77.7101828,314 C78.4229765,314 79,314.469849 79,315.050251 L79,334.949749 C79,335.530151 78.4229765,336 77.7101828,336`,id:`Fill-63`,fill:`#37474F`,mask:`url(#mask-6)`}),(0,K.jsx)(`path`,{d:`M86.7101828,336 L85.2898172,336 C84.5770235,336 84,335.530151 84,334.949749 L84,315.050251 C84,314.469849 84.5770235,314 85.2898172,314 L86.7101828,314 C87.4229765,314 88,314.469849 88,315.050251 L88,334.949749 C88,335.530151 87.4229765,336 86.7101828,336`,id:`Fill-64`,fill:`#37474F`,mask:`url(#mask-6)`})]})})})]}),sg=()=>(0,K.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 335 154`,version:`1.1`,children:[(0,K.jsxs)(`defs`,{children:[(0,K.jsx)(`rect`,{id:`illustration-radar-svg-1`,x:`157`,y:`93`,width:`10`,height:`44`,rx:`5`}),(0,K.jsx)(`mask`,{id:`illustration-radar-svg-2`,maskContentUnits:`userSpaceOnUse`,maskUnits:`objectBoundingBox`,x:`0`,y:`0`,width:`10`,height:`44`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#illustration-radar-svg-1`})}),(0,K.jsx)(`rect`,{id:`illustration-radar-svg-3`,x:`81.7027958`,y:`18.593354`,width:`3`,height:`40`,rx:`1.5`}),(0,K.jsx)(`mask`,{id:`illustration-radar-svg-4`,maskContentUnits:`userSpaceOnUse`,maskUnits:`objectBoundingBox`,x:`0`,y:`0`,width:`3`,height:`40`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#illustration-radar-svg-3`})}),(0,K.jsx)(`rect`,{id:`illustration-radar-svg-5`,x:`27.3314755`,y:`77.4779221`,width:`10`,height:`27.7071068`,rx:`5`}),(0,K.jsx)(`mask`,{id:`illustration-radar-svg-6`,maskContentUnits:`userSpaceOnUse`,maskUnits:`objectBoundingBox`,x:`0`,y:`0`,width:`10`,height:`27.7071068`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#illustration-radar-svg-5`})}),(0,K.jsx)(`rect`,{id:`illustration-radar-svg-7`,x:`1.70530257e-13`,y:`-8.52651283e-14`,width:`115`,height:`10`,rx:`5`}),(0,K.jsx)(`mask`,{id:`illustration-radar-svg-8`,maskContentUnits:`userSpaceOnUse`,maskUnits:`objectBoundingBox`,x:`0`,y:`0`,width:`115`,height:`10`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#illustration-radar-svg-7`})}),(0,K.jsx)(`rect`,{id:`illustration-radar-svg-9`,x:`231.338626`,y:`8.02492801`,width:`3`,height:`7`,rx:`1.5`}),(0,K.jsx)(`mask`,{id:`illustration-radar-svg-10`,maskContentUnits:`userSpaceOnUse`,maskUnits:`objectBoundingBox`,x:`0`,y:`0`,width:`3`,height:`7`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#illustration-radar-svg-9`})}),(0,K.jsx)(`rect`,{id:`illustration-radar-svg-11`,x:`241.972553`,y:`13.1654663`,width:`3`,height:`10`,rx:`1.5`}),(0,K.jsx)(`mask`,{id:`illustration-radar-svg-12`,maskContentUnits:`userSpaceOnUse`,maskUnits:`objectBoundingBox`,x:`0`,y:`0`,width:`3`,height:`10`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#illustration-radar-svg-11`})}),(0,K.jsx)(`rect`,{id:`illustration-radar-svg-13`,x:`248.268969`,y:`26.6312125`,width:`3`,height:`7`,rx:`1.5`}),(0,K.jsx)(`mask`,{id:`illustration-radar-svg-14`,maskContentUnits:`userSpaceOnUse`,maskUnits:`objectBoundingBox`,x:`0`,y:`0`,width:`3`,height:`7`,fill:`white`,children:(0,K.jsx)(`use`,{xlinkHref:`#illustration-radar-svg-13`})})]}),(0,K.jsx)(`g`,{id:`Page-1`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:(0,K.jsx)(`g`,{id:`Desktop-Copy`,transform:`translate(-334.000000, -146.000000)`,children:(0,K.jsxs)(`g`,{id:`Group-5`,transform:`translate(334.000000, 144.000000)`,children:[(0,K.jsx)(`path`,{d:`M133,128.000008 C133.60006,142.772585 146.404369,154.57377 162.112047,154.57377 C177.819725,154.57377 190.624034,142.772585 191.224094,128.000008 L133,128 Z`,id:`Combined-Shape`,stroke:`#FF4B0A`,fill:`#FBE9E7`,transform:`translate(162.112047, 141.286885) rotate(180.000000) translate(-162.112047, -141.286885) `}),(0,K.jsx)(`rect`,{id:`Rectangle`,fill:`#FF4B0A`,x:`0`,y:`154`,width:`335`,height:`1`,rx:`0.5`}),(0,K.jsx)(`ellipse`,{id:`Oval-5`,stroke:`#FF4B0A`,fill:`#FF4B0A`,cx:`162`,cy:`134.5`,rx:`7`,ry:`3.5`}),(0,K.jsx)(`use`,{id:`Rectangle-5`,stroke:`#FF4B0A`,mask:`url(#illustration-radar-svg-2)`,strokeWidth:`2`,fill:`#FFFFFF`,xlinkHref:`#illustration-radar-svg-1`}),(0,K.jsxs)(`g`,{id:`Group-4`,transform:`translate(136.000000, 0.000000)`,stroke:`#FF4B0A`,children:[(0,K.jsx)(`use`,{id:`Rectangle-8`,mask:`url(#illustration-radar-svg-4)`,strokeWidth:`2`,transform:`translate(83.202796, 38.593354) rotate(50.000000) translate(-83.202796, -38.593354) `,xlinkHref:`#illustration-radar-svg-3`}),(0,K.jsx)(`use`,{id:`Rectangle-7`,mask:`url(#illustration-radar-svg-6)`,strokeWidth:`2`,fill:`#FFFFFF`,transform:`translate(32.331475, 91.331475) rotate(45.000000) translate(-32.331475, -91.331475) `,xlinkHref:`#illustration-radar-svg-5`}),(0,K.jsx)(`g`,{id:`Group-2`,transform:`translate(59.558599, 63.009790) rotate(50.000000) translate(-59.558599, -63.009790) translate(2.058599, 33.509790)`,children:(0,K.jsxs)(`g`,{id:`Group-3`,transform:`translate(0.000000, -0.000000)`,children:[(0,K.jsx)(`path`,{d:`M2,8.0000154 C3.1542769,36.3513329 27.7846749,59 57.9999997,59 C88.2153245,59 112.845722,36.3513329 113.999999,8.0000154 L1.99999937,8 Z`,id:`Comb
42ined-Shape-Copy`,fill:`#FFFFFF`}),(0,K.jsx)(`use`,{id:`Rectangle-6`,mask:`url(#illustration-radar-svg-8)`,strokeWidth:`2`,fill:`#FBE9E7`,xlinkHref:`#illustration-radar-svg-7`})]})}),(0,K.jsx)(`circle`,{id:`Oval-4`,fill:`#FBE9E7`,cx:`26`,cy:`98`,r:`10`}),(0,K.jsx)(`ellipse`,{id:`Oval-6`,fill:`#FBE9E7`,cx:`98`,cy:`26.3905582`,rx:`5`,ry:`5`})]}),(0,K.jsx)(`use`,{id:`Rectangle-9`,stroke:`#FF4B0A`,mask:`url(#illustration-radar-svg-10)`,strokeWidth:`2`,fill:`#FBE9E7`,transform:`translate(232.838626, 11.524928) rotate(25.000000) translate(-232.838626, -11.524928) `,xlinkHref:`#illustration-radar-svg-9`}),(0,K.jsx)(`use`,{id:`Rectangle-9-Copy-2`,stroke:`#FF4B0A`,mask:`url(#illustration-radar-svg-12)`,strokeWidth:`2`,fill:`#FBE9E7`,transform:`translate(243.472553, 18.165466) rotate(50.000000) translate(-243.472553, -18.165466) `,xlinkHref:`#illustration-radar-svg-11`}),(0,K.jsx)(`use`,{id:`Rectangle-9-Copy`,stroke:`#FF4B0A`,mask:`url(#illustration-radar-svg-14)`,strokeWidth:`2`,fill:`#FBE9E7`,transform:`translate(249.768969, 30.131213) rotate(75.000000) translate(-249.768969, -30.131213) `,xlinkHref:`#illustration-radar-svg-13`})]})})})]}),cg=()=>(0,K.jsx)(`svg`,{version:`1.1`,id:`Livetype`,xmlns:`http://www.w3.org/2000/svg`,x:`0px`,y:`0px`,viewBox:`0 0 110 40`,enableBackground:`new 0 0 110 40`,xmlSpace:`preserve`,children:(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`path`,{fill:`#A6A6A6`,d:`M103.371,0H6.625C6.372,0,6.119,0,5.866,0.001C5.652,0.002,5.443,0.005,5.23,0.01 43 c-0.465,0.016-0.934,0.04-1.394,0.125c-0.467,0.082-0.9,0.22-1.32,0.436C2.098,0.783,1.72,1.057,1.385,1.386 44 C1.056,1.721,0.783,2.098,0.57,2.517C0.355,2.936,0.217,3.37,0.135,3.837c-0.087,0.46-0.11,0.929-0.126,1.394 45 C0.004,5.444,0.002,5.652,0.001,5.866C0,6.119,0,6.372,0,6.625v26.753c0,0.248,0,0.506,0.001,0.756 46 c0.001,0.211,0.003,0.426,0.008,0.639c0.016,0.471,0.04,0.934,0.126,1.389c0.082,0.473,0.22,0.906,0.435,1.33 47 c0.212,0.408,0.485,0.799,0.815,1.121c0.335,0.334,0.712,0.613,1.131,0.824c0.419,0.217,0.853,0.344,1.32,0.438 48 c0.46,0.08,0.929,0.105,1.394,0.115c0.213,0.004,0.422,0.006,0.636,0.008C6.119,40,6.372,40,6.625,40h96.747 49 c0.252,0,0.506,0,0.76-0.002c0.211-0.002,0.426-0.004,0.641-0.008c0.463-0.01,0.932-0.035,1.393-0.115 50 c0.461-0.094,0.895-0.221,1.32-0.438c0.42-0.211,0.797-0.49,1.127-0.824c0.328-0.322,0.607-0.713,0.818-1.121 51 c0.217-0.424,0.354-0.857,0.436-1.33c0.082-0.455,0.111-0.918,0.123-1.389c0.008-0.213,0.01-0.428,0.01-0.639 52 C110,33.885,110,33.627,110,33.379V6.625c0-0.254,0-0.506-0.002-0.76c0-0.213-0.002-0.421-0.01-0.635 53 c-0.012-0.465-0.041-0.934-0.123-1.394c-0.082-0.467-0.219-0.901-0.436-1.32c-0.211-0.419-0.49-0.796-0.818-1.131 54 c-0.33-0.329-0.707-0.603-1.127-0.815c-0.426-0.215-0.859-0.354-1.32-0.436c-0.461-0.086-0.93-0.11-1.393-0.125 55 c-0.215-0.005-0.43-0.007-0.641-0.008C103.877,0,103.623,0,103.371,0L103.371,0z`}),(0,K.jsx)(`path`,{d:`M103.371,0.985l0.752,0.001c0.207,0.001,0.416,0.003,0.619,0.013c0.379,0.009,0.818,0.027,1.246,0.108 56 c0.395,0.071,0.727,0.18,1.051,0.342c0.32,0.166,0.615,0.38,0.875,0.638c0.258,0.258,0.473,0.552,0.639,0.876 57 c0.162,0.322,0.271,0.654,0.342,1.05c0.076,0.423,0.096,0.865,0.105,1.24c0.006,0.207,0.008,0.415,0.008,0.625 58 c0.002,0.25,0.002,0.496,0.002,0.748v26.753c0,0.246,0,0.502-0.002,0.75c0,0.207-0.002,0.416-0.008,0.621 59 c-0.01,0.377-0.029,0.818-0.105,1.244c-0.07,0.387-0.18,0.725-0.342,1.053c-0.166,0.318-0.381,0.613-0.639,0.875 60 c-0.26,0.254-0.555,0.467-0.877,0.627c-0.322,0.174-0.654,0.277-1.047,0.35c-0.434,0.074-0.893,0.104-1.244,0.111 61 c-0.205,0.004-0.412,0.006-0.623,0.008c-0.25,0.002-0.502,0.002-0.752,0.002H6.625c-0.002,0-0.005,0-0.007,0 62 c-0.249,0-0.497,0-0.748-0.002c-0.203-0.002-0.412-0.004-0.617-0.008c-0.349-0.008-0.81-0.037-1.241-0.111 63 c-0.395-0.072-0.727-0.176-1.051-0.35c-0.323-0.16-0.617-0.373-0.875-0.627c-0.257-0.262-0.471-0.557-0.638-0.875 64 c-0.161-0.328-0.271-0.666-0.341-1.055c-0.082-0.426-0.099-0.865-0.108-1.242c-0.01-0.207-0.012-0.416-0.013-0.621l0-0.6v-0.15 65 V6.625v-0.15l0-0.598c0.001-0.208,0.003-0.416,0.013-0.624c0.009-0.374,0.026-0.814,0.108-1.241c0.07-0.394,0.18-0.727,0.341-1.05 66 C1.615,2.639,1.83,2.345,2.087,2.087c0.257-0.257,0.551-0.472,0.875-0.639c0.323-0.161,0.655-0.27,1.05-0.341
67 C4.438,1.026,4.878,1.008,5.253,1C5.46,0.99,5.668,0.988,5.876,0.987l0.749-0.001H103.371`}),(0,K.jsx)(`g`,{children:(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M30.128,19.784c-0.029-3.223,2.639-4.791,2.761-4.864c-1.511-2.203-3.853-2.504-4.676-2.528 68 c-1.967-0.207-3.875,1.177-4.877,1.177c-1.022,0-2.565-1.157-4.228-1.123c-2.14,0.033-4.142,1.272-5.24,3.196 69 c-2.266,3.923-0.576,9.688,1.595,12.858c1.086,1.553,2.355,3.287,4.016,3.227c1.625-0.068,2.232-1.037,4.193-1.037 70 c1.943,0,2.513,1.037,4.207,0.998c1.744-0.029,2.842-1.561,3.89-3.127c1.255-1.781,1.759-3.533,1.779-3.623 71 C33.507,24.924,30.161,23.646,30.128,19.784z`}),(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M26.928,10.306c0.874-1.093,1.472-2.58,1.306-4.089c-1.265,0.056-2.847,0.875-3.758,1.944 72 c-0.806,0.942-1.526,2.486-1.34,3.938C24.557,12.205,26.016,11.382,26.928,10.306z`})]})}),(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M49.479,13.092c-0.609,0.23-1.252,0.345-1.929,0.345c-1.006,0-1.792-0.273-2.358-0.82 73 c-0.584-0.565-0.876-1.342-0.876-2.33c0-0.981,0.312-1.771,0.937-2.367c0.625-0.597,1.446-0.895,2.465-0.895 74 c0.652,0,1.177,0.096,1.575,0.289l-0.224,0.82c-0.386-0.174-0.842-0.261-1.37-0.261c-0.702,0-1.262,0.202-1.678,0.606 75 c-0.429,0.423-0.643,1.007-0.643,1.752s0.205,1.333,0.615,1.761c0.391,0.41,0.926,0.615,1.603,0.615 76 c0.422,0,0.727-0.043,0.913-0.13v-1.706h-1.146V9.979h2.115V13.092z`}),(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M54.727,10.893c0,0.18-0.013,0.333-0.037,0.457h-3.02c0.013,0.447,0.159,0.789,0.438,1.025 77 c0.255,0.211,0.584,0.317,0.988,0.317c0.447,0,0.854-0.072,1.221-0.214l0.159,0.699c-0.429,0.187-0.936,0.28-1.52,0.28 78 c-0.702,0-1.253-0.207-1.654-0.62c-0.4-0.413-0.601-0.967-0.601-1.664c0-0.683,0.187-1.252,0.559-1.706 79 c0.392-0.484,0.919-0.727,1.584-0.727c0.652,0,1.146,0.242,1.482,0.727C54.593,9.853,54.727,10.328,54.727,10.893z M53.767,10.632 80 c0.006-0.298-0.059-0.556-0.196-0.773c-0.174-0.28-0.441-0.419-0.801-0.419c-0.33,0-0.597,0.137-0.802,0.41 81 c-0.168,0.218-0.267,0.479-0.298,0.783H53.767z`}),(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M58.324,9.598h-1.109v2.199c0,0.559,0.196,0.839,0.588,0.839c0.18,0,0.329-0.016,0.447-0.046l0.027,0.764 82 c-0.198,0.075-0.459,0.112-0.782,0.112c-0.397,0-0.708-0.121-0.932-0.364c-0.224-0.242-0.335-0.649-0.335-1.221V9.598h-0.662 83 V8.843h0.662v-0.83l0.987-0.298v1.128h1.109V9.598z`}),(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M63.264,7.491c0,0.18-0.06,0.326-0.178,0.438c-0.117,0.112-0.27,0.168-0.457,0.168 84 c-0.167,0-0.309-0.058-0.424-0.173c-0.115-0.115-0.172-0.259-0.172-0.433s0.059-0.317,0.178-0.429 85 c0.117-0.112,0.264-0.168,0.438-0.168s0.32,0.056,0.438,0.168C63.204,7.174,63.264,7.317,63.264,7.491z M63.151,13.372h-1.007 86 V8.843h1.007V13.372z`}),(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M67.074,9.598h-1.108v2.199c0,0.559,0.196,0.839,0.587,0.839c0.18,0,0.33-0.016,0.447-0.046l0.027,0.764 87 c-0.197,0.075-0.459,0.112-0.781,0.112c-0.398,0-0.709-0.121-0.933-0.364c-0.224-0.242-0.335-0.649-0.335-1.221V9.598h-0.662 88 V8.843h0.662v-0.83l0.987-0.298v1.128h1.108V9.598z`}),(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M75.033,11.07c0,0.696-0.198,1.268-0.596,1.715c-0.417,0.46-0.97,0.69-1.659,0.69 89 c-0.665,0-1.194-0.221-1.589-0.662c-0.396-0.441-0.592-0.998-0.592-1.668c0-0.702,0.203-1.277,0.61-1.724 90 c0.406-0.447,0.955-0.671,1.645-0.671c0.665,0,1.199,0.221,1.604,0.662C74.841,9.84,75.033,10.393,75.033,11.07z M73.989,11.103 91 c0-0.417-0.09-0.775-0.27-1.075c-0.212-0.361-0.513-0.542-0.904-0.542c-0.404,0-0.712,0.181-0.923,0.542 92 c-0.18,0.299-0.271,0.664-0.271,1.093c0,0.418,0.091,0.776,0.271,1.075c0.218,0.361,0.522,0.542,0.913,0.542 93 c0.386,0,0.687-0.184,0.904-0.551C73.896,11.882,73.989,11.52,73.989,11.103z`}),(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M80.299,13.372h-1.006v-2.594c0-0.8-0.305-1.2-0.914-1.2c-0.298,0-0.54,0.11-0.727,0.331 94 c-0.187,0.22-0.279,0.479-0.279,0.776v2.687h-1.007v-3.234c0-0.398-0.013-0.83-0.037-1.295h0.885l0.047,0.708h0.028 95 c0.118-0.22,0.292-0.402,0.521-0.547c0.273-0.169,0.578-0.254,0.914-0.254c0.422,0,0.773,0.137,1.053,0.41 96 c0.348,0.335,0.521,0.835,0.521,1.5V13.372z`})]}),(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M47.046,19.04c0,0.382-0.125,0.691-0.375,0.928c-0.25,0.237-0.573,0.355-0.968,0.355 97 c-0.355,0-0.655-0.122-0.899-0.365s-0.365-0.549-0.365-0.918c0-0.368,0.125-0.671,0.375-0.908c0.25-0.237,0.559-0.355,0.928-0.355 98 c0.368,0,0.678,0.118,0.928,0.355C46.921,18.368,47.046,18.671,47.046,19.04z M46.809,31.502h-2.133v-9.599h2.133V31.502z`}),(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M58.283,19.988h-3.811v11.514h-2.133V19.988h-3.792V18.19h9.736V19.988z`}),(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M67.171,31.502h-1.876l-0.118-1.461h-0.04c-0.672,1.119-1.686,1.678-3.041,1.678 99 c-0.948,0-1.705-0.296-2.271-0.889c-0.672-0.724-1.008-1.816-1.008-3.278v-5.648h2.134v5.293c0,1.844,0.632,2.765,1.896,2.765 100 c0.948,0,1.606-0.461,1.976-1.382c0.092-0.237,0.138-0.507,0.138-0.81v-5.866h2.133v6.833 101 C67.092,29.646,67.118,30.567,67.171,31.502z`}),(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M78.39,31.502h-2.133v-5.496c0-1.695-0.646-2.542-1.936-2.542c-0.633,0-1.146,0.233-1.541,0.699 102 c-0.395,0.466-0.593,1.015-0.593,1.646v5.693h-2.133v-6.854c0-0.842-0.026-1.758-0.079-2.745h1.877l0.099,1.501h0.059 103 c0.25-0.467,0.619-0.854,1.106-1.158c0.579-0.36,1.225-0.54,1.936-0.54c0.896,0,1.639,0.29,2.231,0.869 104 c0.737,0.711,1.106,1.771,1.106,3.18V31.502z`}),(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M89.271,26.248c0,0.383-0.026,0.705-0.079,0.969h-6.399c0.026,0.947,0.336,1.672,0.929,2.172 105 c0.54,0.447,1.237,0.672,2.094,0.672c0.947,0,1.81-0.151,2.587-0.455l0.336,1.482c-0.909,0.395-1.982,0.592-3.22,0.592 106 c-1.487,0-2.656-0.438-3.505-1.313c-0.85-0.876-1.274-2.05-1.274-3.525c0-1.448,0.396-2.653,1.186-3.614 107 c0.829-1.027,1.948-1.541,3.357-1.541c1.382,0,2.429,0.513,3.14,1.541C88.988,24.043,89.271,25.051,89.271,26.248z M87.237,25.695 108 c0.013-0.632-0.126-1.178-0.415-1.639c-0.369-0.593-0.935-0.889-1.698-0.889c-0.698,0-1.265,0.289-1.698,0.869 109 c-0.356,0.461-0.566,1.014-0.633,1.658H87.237z`}),(0,K.jsx)(`path`,{fill:`#FFFFFF`,d:`M97.508,28.744c0,0.893-0.329,1.609-0.987,2.147c-0.659,0.538-1.567,0.808-2.726,0.808 110 c-1.094,0-2.021-0.217-2.785-0.651l0.454-1.58c0.737,0.448,1.521,0.671,2.351,0.671c1.093,0,1.639-0.4,1.639-1.204 111 c0-0.355-0.118-0.648-0.355-0.879c-0.236-0.23-0.658-0.458-1.264-0.682c-1.712-0.632-2.567-1.554-2.567-2.765 112 c0-0.83,0.316-1.521,0.948-2.074s1.468-0.829,2.508-0.829c0.948,0,1.758,0.193,2.43,0.58l-0.454,1.533 113 c-0.619-0.368-1.271-0.554-1.956-0.554c-0.447,0-0.797,0.105-1.046,0.316c-0.251,0.209-0.376,0.479-0.376,0.807 114 c0,0.329,0.132,0.599,0.396,0.809c0.224,0.197,0.658,0.414,1.304,0.65C96.678,26.479,97.508,27.443,97.508,28.744z`})]})]})}),lg=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjMAAACnCAYAAADkOt2+AAAAAXNSR0IArs4c6QAAQABJREFUeAHtnQfcHEX5x4fQlI4hNCmBCIRQjYCGmgCigNKUXhKIhSIQSADpAQUCBCK9BwIBJPQivTcBQRBCR3pCF/hLL9n/812ZY25vd2bvbu/eK8/z+bzv7u3OTvnN7swzT5vpTA10zjnnzD7zzDMvHEXRYtNPP/2PJIul5W9++T2HHHvVkKU+oggoAoqAIqAIKAJdgsB00033ufAMH0pzX5bj5F69ej361VdfTfnOd77z6hZbbPF1tTBMV80DkyZNmvOLL774gxS6qRS+sDw7j1RImZdqQNS0ioAioAgoAoqAIpBE4HO58KbwFi/I31nbbbfdJckEvt+5mJkLL7xwUclkB/nbR5iX2X0Z6j1FQBFQBBQBRUARUATqROAZYWqOnHHGGa8USc1HobyCzMxFF120hWQyVv4WlL/pfRl+/vnnZtq0ab4kek8RUAQUAUVAEVAEuhwBYVLMDDPMEEIBVdRk+dtBJDVP+RJnMjMTJkzoLYWNlExGijRmJjeTjz/+2Lz44ovm2WefNS+88IKZMmWKef/995WRcUHSc0VAEVAEFAFFQBHIREBsb80888xjFl10UdO/f3/Tr1+/+FxMWZLPvCOCkj/+5z//uXCPPfZAHVVBmWyRcExnS+qNXJuYr7/+2tx9993myiuvNB9++KH58ssvKzLUC4qAIqAIKAKKg
114CKgCIQQQJuDMIS/+++/33z3u981iyyyiNlhhx3MYost5j7eRxic03r37j2/XDzSvWHPKyQz48eP7yPc0jnCxPzSJhLpjJk8ebK57LLLzPPPP28v61ERUAQUAUVAEVAEFIFCEZhpppnMWmutZTbYYAMz33zzlfIWXmSa/I0VQcqhO+6442elG3JSIcuRTA4WRmZDN9Ett9xixo4dq4yMC4qeKwKKgCKgCCgCikDhCIjXtIHvGDNmjPnggw9K+aMpEtpLBC5bli5+c+JKZqYTY9/fyfWT5S9WPyGREXdsc/XVVyef09+KgCKgCCgCioAioAg0FIHZZ5/diJ2MWWaZZdxyPhL+ZMttt932enuxxMycf/75y4qdzK1yI5bp4JV07bXXmksuqcrV2+arR0VAEVAEFAFFQBFQBOpGYNZZZzVHHHGE6dOnjxHpjM3vWTlZfZtttnmXCyU1k0Ty3V1+z8tF6JFHHjGXX375/37of0VAEVAEFAFFQBFQBHoAATyoMXVxVU5SjR+IdGaYrU7MzEycOHGAXPiN/MUsD/oqJDISWtim06MioAgoAoqAIqAIKAI9gsDrr79ubr/9doP5yzc0vUhp/nTxxRcTA8/0Gj16NAzNvhjWcIGESGSmTp3KTyVFQBFQBBQBRUARUAR6HIHrr78+duN2KvId4Vn25Hcv8en+vlgHr25vvv322+bOO++0P/WoCCgCioAioAgoAopAjyPw6aefmksvvbQsQK8wM+uJfe8svWSHysWlhgvZWj7zzDMG/ZSSIqAIKAKKgCKgCCgCrYQAse4kErBbpSXeeeed3r2EqxksV2e2dx577LEyrsde16MioAgoAoqAIqAIKAI9icD//d//mTfeeKNUBTGRmVXizqyGncwgexV7GfZbUlIEFAFFQBFQBBQBRaDVECBsTAqfshbMzHK2smwWmXB9srf0qAgoAoqAIqAIKAKKQI8j8O9//7usDiKI+SHMTB971RXd2Gt6VAQUAUVAEVAEFAFFoFUQeOutt8qqIqqmeXvJvxntVSyFlRQBRUARUAQUAUVAEWhVBJK8ivAxMyOZUVIEFAFFQBFQBBQBRaBtEVBmpm27TiuuCCgCioAioAgoAiCgzIy+B4qAIqAIKAKKgCLQ1ggoM9PW3aeVVwQUAUVAEVAEFAFlZvQdUAQUAUVAEVAEFIG2RkCZmbbuPq28IqAIKAKKgCKgCCgz0+bvwIwzzmjmnHNO87Of/cycfvrp5oknnjCXXXZZm7dKq68IKAKKgCKgCORHYIb8STVlKyEwzzzzmB133NH8/Oc/NyuuuKL53ve+V6qeRnEuQaEnbYQATPkf/vAHM9NMM5Vqfcstt5h777239LubT1ZZZRWz4YYblkEwduxY89///rfsmv5oHgL0B/1iiQ0QTzjhBPtTj01EQJmZJoJdb1ESGMjMP//8ZujQoeaggw4ys846a2qW7mSQmqALLspu8DE+HGUTMoMEa/rppze9en0rjPz666/NF198YQjAxITw0UcfGfYnU+oZBOaYYw6z//77l73Xn3zyiTIz33THyiuvbA455JCyzjnjjDOUmSlDpLk/NthgA7PrrruWCn3hhReUmSmh0dwTZWaai3fNpcHI7LbbbvHfUkstZfidRR9//HHWra65PnHiRNOvXz8z++yzm9lmm83A1MDkzTDDt688jAyTJbuwvv3224b9Pq655hpz7bXXms8++6xrsNKGKgKKgCLQ7gh8O7K3e0s6uP6LL764OemkkwyrgDz0zjvv5EnW0WlWW221WIrlayTSGqRbffr0iRmfQYMGme222868+eab5rDDDjNXXHFFzOT48tB7ioAioAgoAj2PwLcy956vi9YgBYH111/f3HzzzYZjXnr55ZfzJtV0KQigyjvllFPMddddZ5CCKSkCikB3IPDd737XLLHEEt3R2A5rpUpmWrRDUSNtuumm5qyzzioz7g1VF5uPp59+OpSs6+4/9NBDMZaok7CPwX4Gg1MGrh/96Edm2WWXjc+5DmFbg43C/fffb37961+bO+64o+sw0wYrAt2AwJJLLmlWWmmleLzFK3TChAlm991374amd1QblZlp0e4cNmxYrFrKMvLNqvaXX34Z235k3e/W6w8//LA5++yzU5sP4zLvvPOatdZay5x88skGTzFLeImdeeaZ8WD34Ycf2st6VAQUgQ5AgG9/9OjRZssttyxzDuiApnVdE1TN1IJd/uMf/9iMGTOmzKsjbzUx/lXJTF60/pdu2rRpsZ3MJZdcYtZYYw1z3333lXk1/eAHPzAYFOMVpaQIKAKdhQALRtfLsbNa1z2tUWamxfp6kUUWiW01kBTUQsTlePfdd2t5VJ8RBJ555pnY9f2NN94ow4N4EsT0UVIEFAFFQBFoPQRUzdRifYJExlVzVFM93IkPP/zwah7RtCkI4KJNHJ9zzjmn5AKPDROi6KuvvjrlicpLuIBjc7PqqqvGQQ0xKiaOCm7gr7/+uvnXv/5l7rrrrviIZMhH6623nll66aVLSaZOnWouvfTS0u/kCXZArucb9j6PP/54MlnpdzL/559/3lx//fWl+5xgS7TZZpuZBRdcML6OBPDyyy8377//fuzyvs4665if/vSnZsCAAWauueaK2/nkk0+aG2+80dx0001leTXyBzgNHjzY/PCHPzSLLrpo7Jb/+eefx5I3omMjdeOPGEN5iVX7csstF6sal19+ecOCA/UjfUxsotdee81gk0U7X3nllbzZltLxbpEv/cA7w7vCNey7Hn300RhD1KTNJsahIUOGxO3GEH7uueeOJRj0+bPPPmv+8Y9/xLZkeb0nF154YbPRRhuVwiMgQca5AaKsjTfe2OCFSEgFPA3xKnzggQficAksMoqkNddcM35H6Fu8RV1aYYUVzJ577uleMvfcc4/55z//WXYt9IM+ZRGEPc58880Xx7TCOePWW281V111VRwWIpRH8j7vHJL7tddeOx5XFlhggfj7I1Dqc889F48pLGgJ3td1dNFFF0X2b++99yZimP71EAYykEVi8yI2vLXRDTfcoH33Td+JZKUMRPFOqgobGeQiYQDK8hAmJ1ceIraOJk2aFEkMm0gYlbI87A+ZTCOZCKMTTzwxkonLm+8BBxxgH4uPwgx504vdT1l6cTH3ppdBuiz9n/70p4r0EqMnuv3220vp3nrrrUiMpiOZ1KO77747EoYhta1cv/jiiyOJ81ORZ3KskckuxqRUiJzst99+wefIh/xpN5iCbRrRF8LwRzKZRDK55Mq3d+/ekcQeioR5y8yXsr766qtIDMujbbfdNle+btsPPPDA+Nm0elNn3qNRo0ZFEh25olnCXFZdnlt21rkwp5FMvPF4lPYOc42xijRia5arDsJAxO20jeC9oHxhmCKRJscY2nv2aL+TLbbYIlcZWe1JXh83bpwtItcR/JN58JtxxSVZCMTpdtlll/hdTMMO3J566qlImNbUPNPKsdeYqyXIZ+q3ZvtEmPZImJyq87ZltMNRnDdKfMs3/MsUYxkZjsrM9BwjJ7FOIlnhud9F1efiddPRL3A1H1m9zAxlSTTaskGDCSs0AMmqKZIooFX13YMPPhjJajSz79Zdd92y/BjgRQKSml4CBEYvvvhiWXoYCln5pqbv27dvxSQi4dkr0spKORJpTSlfWflFm2yySfT3v/+9DKNSAueE+orxdUWeyf6slZkRCUwkq9FgPZwqxRiJJClYp4EDB8YMkPus7xxmaqeddgrmS9thBMVzxssk2bJglO644w77s3QsmpkRu7BIpLtVLaqYRCUycbDNP/nJTyIxoi/V/W9/+1skqttIJFCla1kn7733XiSSm2AZyXcq63cjmZnf/OY3MQOa1RaugxmLAwnqmatNInGMRDrny7LsHguetO84C492u57GzKjNjPRiK5CsPMxCCy1Uc1VkpRyLY2vOQB+sQACxskzEpeuoWhCDZxGiZNQziMldQrSM2goPtdNOO60sT9Kxtwubg1q3cPdZzpPibUTjiOvTaLHFFjMiTSi7ReRj1BdphB2QW+6rr74aq0ySaWWkNMLMlS4Tj0OkSkYmqJIqrnQzcUJ9hw8fXlWspEQWmT9xr0dsLwxfWT1Q0YiEKd6/7IgjjohVFm4m4DR+/HgjzJx7ueL8pZdeKnkH8o3JJBi76g8WVdbmm28ef3PuO4IxKbj079+/Iq/kBVQZ22+/fYXxKWoc3iPUBWy1ARHFmjIbTTIRx++qGymbvkel+Lvf/c6MGDEiVi+59UAlRpDJpGrGTcO5ixO/UUkKQxMHreS3j1Dr/fWvf60qTIUvv0bdQ+3Dhr98Hz4CM1R4f/7zn33JSvfwsiSEhCU8K+kL1L7f//73jUgwS+8Kabh2zDHHlO1zZp/t2KNKZnpOGiMvVYkrl3gmZZx1NT9YJSPyd/Pr9vMiJDOsbFhpu4RKIA1bVEui/3eTRrJdQrTzzjtHwiyUPYMIWDynytLyA5F1Mq0tS7ZYKEuPRCRNPSURjFNX+mmqI1Rporsvy3efffYpq6stXya3SBiusrT8oI3CoEViZxCRhvqLzU6sPksmfuyxx6JZZpklNX/KqUUyI261ZZIl6nPooYdGYt9RVo7Y8URHHnlkrA5z63XbbbdFSJ1sO5NH2iOMWCSMRITUInmfPuCeK11AErXvvvtWpHWfRUqRfLdQUfzyl7+MZCIsPct7RfnC4LjVLp0XKZlB3QN+LvGepY0tSOXETsNNGqviZMIt1d1tL+e8I2ntADvUMrYtvCNiExKJTU5Z/vyQCTwz/2R5vt/0JVIR3gskRC4JMxLf4779Q82all9SzUQ+SHAvvPDCWDJCObwjtI2xI6l2Ql0rjEdq3rY8YRTLnkP9nSbJFQY6QhVuiXoMHTrUm7cto92OaZIZVTM5DEVPdSgixORLbl/IPMejjz66I1/YevqjCGZGjD7LxOL0BeLptHph74Q9hiX602fvwSCKnYBLU6ZMiSf0tPxRibjvCO1DNZlMKy7kcZakxZ7BEmqYZFrqIEa6NkksGkdlk0zHbyZ1MToupbUnMHBpkzyMDZOzSzDdTGhp+XOtWmYG1ZmLOWXBcGXlD5Pgqsps3ZiYs57Jex3bJ5dgPrOeBUuYKJdggFC5ZD2DzQjqwiRZBiDruWquJ5lVmC3fRCsG4RWM81/+8pfMNqQxM7ynO+ywQ+ozIj2raDN15N2qpl2+tDD0YtRfBqtsHZM7/zRmBnVQlvoIdav7HfP+wgxn1VEC+pUxvagbffZeIukryx9mif
114ctK/92vZ7GzKiaSXqzpwlRI2LHWgivmGOPPbaWR/WZAAIywgVSfHt75MiRZXFo8Agi2F4W4X0gthVlone8WPCySCPRrxu8mCyhdsCrxiVZ0ZZUOWygiXrFEmomNtt0CXUUYnFL1LkaLwgCNO6xxx5GJlmbRemISur3v/996Tcn1K8eVWpZZvIDtYYwUmWXZTIt++3+QGUjUhsjk4l7OVYboQqrh/CUcomoslnEPVQsLslKvuTZ416352LcH3s22d9FH3k38JCxxLvP+yMMtr1UcWTvMrHjKbu+1VZbVaXawHMwyzMPFZ8wL2X5oxYUZqbsWqv9YGdzooynEeOEuxEwKmBUnlmEh5ursiI6MerOLCJWljtOEOJDmMis5B11vb4vuKOg6JnGsMkh+v5aCFsMbB40rkwt6IWfYaJMTnJiiFjxIIMNbqUu4bYKw+IjXIRx67VEWSIlsD/Ljtgb4P5rCcaAgd0l3gVsCyDyvfLKK2N3UH5jWyIqDE5LZN2o7QXct2U1bn8Gj6I2iuPyZCVkonMHbtxtqUcRxOSLO7hLuKbee++97qWKc/rlkUceKbuOOzd1y0Oyyo1dz0UiEk8S2C5hD4Tdk0u4GmdR0q5JVDuxnUqSyXKfZ3IMtc1NX+05rvy4Xlvi3cVmJ0S43ruE3Riuw3mJ7VqsXVDaM6LmKgtgyftNH7Qq0U9JTNy6YuuCXZolFrHYt2TR6quvXjYGMWYwTmT9sYggJIJL3bLXVGuzuG6PdOg5ewIlV5d5msqkus0221QYNuZ5VtPkQ0BExRWrTKQXSWLlk5R6MPGEJDswDjAdLlPimwgYyNivC2IwI1oxhpkQg6KI6+Nz/rHixZAUBoU4F5C49patgn/1q1+VSQRZaYfqHGf0zT+YaR+RF3XAKBaijrW862llIFVKMgziDp+WtOIa8WBcg2ikU6z20yRM9mFW0OAlrteGiNAwM0jHsiSqyffB5sORmC2udEG830yeWC0u4+vmV8R5ktGl3/KUh2Q4SWBLXJY8BAPqI6QQvEcW57xMpy/PRt6jH31MKWWDrUssTLJomWWWKbuFNJJ30EdJSQwL5m4gZWZ6uJdtgKhqqkHAKiY13bagGtSqT4saxx08GVTTgpeJrUdF5jATIWJFnhzYGHiY6FhhJYkAYi65KilWrAR2s4TUBGkOz1hmRtyMYzUPQfsoww2sRzC/aoPbkX+I0toReibPfRgkyyTZ9GkTq73nHpMMKcEMs1b7TKJIsFAZDho0qDSpuvmlndvJN+0eK3H3PsHhehJL6phUe6GmDEkWec5VafAbSvse/nen8n+Iec6DS2WuPXclxMhQs2q+CVcNzLO+xQ7306ioBURa3q10TdVMPdwbYnBZNrD5qsOHf9111xl2dlVGxodUMfeIaOtOOrj7SgyXisxZoScpr7oGuxOXKM8t072HesTd7BLmBTsbCMYLEb8lG1lVYtjYS7FUhMi40Iorrlgm2ZAAZjVFJC1l3uQTmDGX0aR4n7rCrV5SApPFyPAMEZzBkqPbL6zAsefAJZkdlnHHzktI/FziHQhN6m76Rpwn3fmpU55JF4Y8Scl+Sd7X3/kRcO1l8j9VnlKMjMsvdOgvlcz0cMdioOUOkmnVYaDDEE8s5w0Gjt3ycqZh0axrqBGSdjBIO9ImHdcuxNYvj20I/Z5UR9C3WZMI9zAAxOgWYkLHTua8886LpQZWXI3kBVsDCAaIOlMW6ZHSiKdNHC/HvndMXBigthOBUZIRTDIJWe1JpoMJSutXJChsX+FO9KiEMIyVkBYleyTK+cUvflHql6xy7XWkHi6hwrJ94V5v5nlSQkidYEpCkhH7zrl1zSPRcdPreTYCSfzZ8Dak3k3m1khbq2RZPflbmZmeRF/KThsM3CohtmTgJAAY4vG0QddNr+f1I8DEctRRR5nkpIdHURqleXxgdOczBCQfxL9Juw8kP74+xmByt912K6lFkB7BzGA4bCfEc889tzTRY5MAc4Pon/sEucPeBpWTJdQcedRiNn0rHGEIkpIY2kRgtRBhp+YSE3ly0uC+xOwpY2QoD/UuBpa+PnLzTjtP2scgXYPRTJNyuM8n30f3Xr3nvCdWHUlejEsYBEsIAG/WSJaThBpcqRgEcO5w+x1pYN794YqpQfvkomqmHu6r5OqS6rACxzZD4h3EHhNECWWwqWcA7eFmtlXxqPGSXkVMQFnSC9xyk6tt7Fl86gsAYbJIumVa9VAWYDA7rs0Hm9khRcIYGGLCdevJJH3CCSeUsiOKKDYibrm8W8kJtvRAi57gQo7azyUi8obsA5A4IEVxiZVu8juEuXCNhEnP5oCTJ09O/Q4tI+nmm3XOpoku88RGh25/pD0HA2pVhGn3672GtM4lpFHJDRjd+/Y86cWFxIwNVNuZWklNlmQM+d6V0hFQZiYdl6ZdJVQ9KgEmMULdw7gQCh23UyzXGTyVmoeAbJoXMwPuagjpGKHc0yQw1Azj2aQUhkHedXVNawG7cLueBqzMcaf2EfYe7vYGEvgu9rKx6iqYneRqWgJ1lTx1MBTGkNV1ByWkfHIy99WhFe7BPMoGl2VVQUrgxkopu/nND7x2kpM07trJ9sM8uOolHveJ91EX5yX6yFXFwID54uOQL/F5XMlJ3rLypuO94z22xPuf9HCy99xjUhXLu+m6HrtpW/U82ffWDq0V6pt0TceDtRrGuRXa0Kw6KDNTI9IYZjGRYBtRDyfPnhsYFyIN2HXXXQ060VdeeSUeWPJIYpiccN8jHgEqB/7YPwgDz74ShySkxqqx+R33GCtjCTcei3DB1B0w6BMMr32E9MNVe6DWGT16dIVrt80DlYhs6FdWjuyk643bwrOs6HHRtsT7x75elh599NGKWDEYDVsvLNpFejtgIwXM69Jsy2iVI8y/yxTQNtmOIfN7xEBadiAvwxx7J9RyaZS0XUp6/Nhn+MZct3h7PeuIJCxpwE+sqWSQQfs8Y83BBx8cf8/2WtFHmGQ3rgxYos5kXEkjxjxsh1zXYZh+9rtqJ6LOLhNH3Rk/GQNagQiWyDdqiYUu32uS0bb3u/mozEzO3mcg++Mf/xhvjMbKg9UvTAfn2BxgaCnbCsSuc6zqGkmsqmXvl3iCIkomwdQYiBAV88fGe7LXk0H9gb0EMR/YiAx1hNK3CKBygPm74IIL4uiqMBdJw10JO29k35hMo1ybG33gSkyYDHiOAT/5PrCKx84l6QXF++N6K9m8k0dXjE8eMMOW6H8G6CRZg2CuYwtivSSQbmRJnJJ5tNpvvj8kGi7Tj2QNSVMSWyQNTAIw+ZZ4jv5JivK5DyOTdDvecMMNKyQ/THrXXHNNSc1n8/YdkSoRJdatN+lhiGGAbd9wjfyxAyJadPI94n6RhIOBS2CIyjJNtQGjA+PIe26J2FdZ0XxtmlY8IilzCUaBvnD7wW2nm7bR5yxCiOrrEvGOkOS7dm/ufeqKipR3JqTqdp9r+3PdaPLbzR6lM4lfH//JxB/tuOOOkbisxnvcyIpYxp58JJNDvI+NqCYiWfGX8rR5V3sUMXQkkpvouOOOi4RpikQsmq8iiVS0QWJxxPsLsZGbDI51163atjQrvTCbZa0HM/YG4jp/nPv6lH1p2PNKVt25MWKjN5kYy8qlDPqMzevGjBkTyYQasb+KS6JeitI2gszCin6Tlb2bRXwuk0kk9jCp9WX/oSRRt6x9cZJly6BYsTcT30YyXfK3MNulYoXJir+pZBr7W6RZZfvQ8KBvfyueEzVdlLZJq0xQEfvg0IfCOEay6CjVw56wJ48wr5ltYO+hJMkqPt4kVHYkLuVLu5LfpKymg3viyIRZtkkmZZEXe3YJcxyJlC3evNFep77steOSqMwy629xrebIRqMiYXSLiPuEDUnHjh0bsW8ReCe/HVHBRWLT461L2t5MoqbyPpPc/0kC+UVsvllNm0JpRX1X0R76ge+Jdon0L2Jj0LR8knsziT1bajr32TvvvLMMXzZAde8nz0WFHMkCtewZfgjDHYn9VSQq7kjUhPG+Y7w3vCPUn41dhSHz5p0sq11+8926vIucT9GNJh0Gho6U1Xq84y2TWRHEICcr/9KOsNW8LEwgwl3Hk28RdUnmIWqN1B1xq6ljq6ZNMjPJtvt+M0Cw83MtbYOhEWNaX/YV95hsxeC0qvL233//inyYvLPqzOZ0SRIvnkjUBJnPuHm1KjNDHRnsZQWbbJ73t0ik4m/dbWPauUhdvPnYmxJUz57GRyZ7kWx4seW+BDUsey7rB8wYOyW7G4OSlvctrd61XqOfYdSqISZOUc0E69GqzAxYpe1i72IgBv2p7WsGM0P9YNrF49CtUvCcOYzNZGt9F1r5uTRmprH6EEGjXQj7F1QxuF0i7k9GF621HXhFINZHlIlr76hRo4xvrwzUHIgRzz//fCOrAoPxprVvqLUOWc+xJw1B1QiJ30hPiazyW+U6qh36BjXT4MGDY7G66zFUTT3xVMH9GfVHUhfv5iOTXez1gauvSACDaiz3Wc7ZesC10RGmOba3SqazvwkLn/SUQo2CqqbdCZsC4u1gV8I3k0Uy6caqV9R/RD8OuUKTD98ufZmVFjXuiBEjYmN9N/w/KqGQhxKBFYcMGRKrnLI2+KRfccXFAwv3+WS6om3ieC+FUTYiETEiQahQhbnY8n4TLJDxzLXjctO0yzn2SqjUeEfSyFU5pd1v9DW8DTF1YEsSVE/0k48INyA7xAe9+3x5tNu96RDV2EoD0vHHH29/dsUR/SKGgdga4LbaLN0ogYwwPGQSxYgRvTSGmey7AWPVbMIQEo8d9LOhD6XZdaulPDxW2J2YcODEcsFmAsbSEvp9Jj72LqqVcbF5ZR3xMNp6663jiZOJDaNJBiXsV4i4i8FvrSQr6HiPIGt8jo0Hkx2TXxZhC+CGR2dTvGqYGYyaYbYt8d4ymfuIPsA2CZKlZGyf4xrtus/SP6R3bUOwR6tmI1XKwgsH+xYiJPObdmLThj0HtmRZE5Zbl+R5XzGmJ9IvBrH0K7Zy2OYQxNAylaRxbXV4v2BY8hD13HnnneO64+FGnnhZYVBLsEZLeGy5nnYskpJhAWzaIo4sePCwxAMO7zzeL94z2s5YkcXkpZUNbnwHvLuWeP/onywijICNkUQayud7raUPs8pwr7OvEcwuhrbMBfQzdmV8r2l9yffkGuNiSB0aT5LvCSEGkmEG3DqlncPY8I5jAwZGEN8J9l8wlrznnTCOp7Wda4xDOAA4NLXrmRkM2Q499NAyF1kHoK465eUXlUccybSRA2RXgaqNVQQUAUVAESgUgTRmpmvVTKwSxPDK4BrtxvooFPE2y4wV0/Dhw2PPqFZxTWwzCLW6ioAi
114oAgoAj2AQFcyM0zaMDHYryhVIoDNB2LVouyGKkvQK4qAIqAIKAKKQHEIdB0zQ7RNtglAAmHtDYqDszNywmZhvfXWi/eE6mnDt85AVFuhCCgCioAi0EgEuo6ZGTlyZBxMqJGgdkre66+/fmw93ynt0XYoAoqAIqAIdCYCXcPMYJmO9Tfut6HN6Dqzq6tvFRIavHFU3VQ9dvqEIqAIKAKKQPMQ6Bpmhi0Axo0bV+YW2DyY268k3GhxfWPPGNy2lRQBRUARUAQUgVZF4NvAG61awwLqhYRhtOx54gtWV0AxHZMFcR8IIJjw4++Y9mlDFAFFQBFQBDoLga5gZoieOWzYsM7quQa1BkaG6KgEXVJSBBQBRUARUATaAYGOZ2bwWCLcuBt1sh06pifqSHjyLbfc0hCdWEkRUAQUAUVAEWgXBDreZoZw3IQgV/IjQDj8rbbaytx0003+hHpXEVAEFAFFQBFoMQQ6WjLDXi9nnHGGxpPJ8dKxSd8NN9yQI6UmUQQUAUVAEVAEWguBjpbMEMmWPyU/AmxWd9xxx/kT6V1FQBFQBBQBRaBFEehoZmbTTTdtUdhbp1qvvfaaWXPNNb27LbdObbUmioAioAgoAopAJQIdzcysscYalS3WK2UInH322WbKlCll1/SHIqAIKAKKgCLQTgh0LDPDrs/LLrtsO/VF0+tKMDyYGSVFQBFQBBQBRaCdEehYZmbzzTc3ukli9qtJhN9jjz3WTJ06NTuR3lEEFAFFQBFQBNoAgY5lZoYOHdoG8PdcFd966y1z6qmn9lwFtGRFQBFQBBQBRaAgBDrSNXuOOeYwq6yySkEQdWY2Dz74oHn//fc7s3E1tIrNR2eZZZZcTxKTh0jJSopAHgTmnHNOg9p73nnnjVXfSy65pJl//vkN19kAd9q0afH+ZywwMMh/+umnzauvvmoIYsk3+sknn+QpRtMoAl2NQEcyM/369dOIv4HX+r777jNMykr/Q2CvvfYyeaV5uLKzA7uSIuBDgLAQv/vd78zKK68cMy8wNOwTl4c+/fRT895775k333zTsPCYMGGCefjhhw3qYSVFQBGoRKAjmZlFF120sqV6pQyBhx56qOx3N/9AKsN+VP37988FAxuW9u3b17z88su50mui7kGAd2ngwIHmwAMPrIvhxd5voYUWiv9WWmkls/POO5t77rnHHHHEEebOO+/UhUj3vFLa0pwI5Fsm5MysVZItuOCCrVKVlqwHq7snnniiJevWE5Waa665cjMy1I99vkaNGtUTVdUyWxgBGBkkKLfddltdjExaE3nnBg8ebEaPHq2ODWkA6bWuR6AjmZl55pmn6zvWBwC6+f/85z++JF11j3hE1b4zW2yxhZl99tm7CidtbDYCP/rRj2JbFzZqbaQX5T//+U+118ruBr3TxQh0JDMz99xzd3GXhpv+3HPPhRN1UYo999wzNsSspskYmS+33HLVPKJpOxQBNrO97rrrzGKLLdbwFl5xxRUNL0MLUATaEYGOZGZmnXXWduyLptX53XffbVpZrV4QxuKDBg2qupozzTST+fGPf1z1c/pAZyEAQ3vLLbfEBr6Nbtkbb7xh7r///kKLwZsKG7Cf/vSnhearmSkCzUagIw2AGynmbXYHNaI8dSv+FtWNN964Js83JgGeHTdu3LeZ6VnXIXDaaaeZam30iLz9zDPPxJ5KAAZj/P3vf98svvji5jvf+U4mhpdeeqn54osvMu9Xc4MFH55Wu+yyS1w2jNIPfvCDarLQtIpASyHQkczMDDN0ZLMKe3Fmm222wvJq54wwqhwyZEhmE7ArYtDHsDONcL1FtfDSSy+l3dZrHY7AwQcfbFZbbbVgKwmBcPfdd5u//vWv5t577zXPP/98qjcS4xZMDV51P/zhD+O8Mfrle/3888/NNddcEywrKwExbpBArrrqqmb11Vc32Pi47zXfgpIi0M4I6Kzfzr1XY93Vpuh/wLEKXmGFFTJRJBYP9xdZZJHUNEwGw4cPNwcddFDqfb3YuQjgmv/b3/422EAC4hHD6JRTTgnGiIHpeeWVV+K/m266Kc6bb/W4446LPZleeOGFYHlpCVCl3nHHHWbhhRdOu63XFIGOQKAjbWZYxShlI9AMQ8Xs0lvnDitVVsJZxISCPYSP8GrKGznYl4/eay8E1lprLbPAAgt4K406abvttjMnn3xykJHJyogIwDvttFMspXn99dezkgWvoxZVUgQ6GYGOZGY+++yzTu6zutuGpEHtiky8Ys6KyEosHoKTXXbZZd6JaL755lNbg7rfyPbLYLPNNjM+dTbvz8UXXxz/FdE6bFq+/vrrIrLSPBSBjkSgI5mZjz76qCM7q6hGoR9nf5huJhg6nwfHyxLdlz1yEM/79rDCnkH3AeuuN2nGGWc0a665prfReAzus88+3jR6UxFQBIpDoCOZmQ8++KA4hDo0JwwMu5nWXnttw6SURX/729/iDQBRWf7973/PShbvtYNXk1L3IIDXEVGjfcR2IToO+RDSe4pAsQh0JDPDBm1KfgTwxMlSsfif7Iy7MDNZhNHmVVddVbqNusm3wd+6664btJ8oZaYnbY9AHpszdr1WUgQUgeYh0JHeTG+//XbzEGzTkgj4hjcOu/N2I/lUQ7hkszO2pX/961+xK22WJAevKAw9jz32WPtIyxypM1IEXMypJypGjEG//PJLg23Z//3f/5kPP/wwlkK1TKWlItR7zjnnjN2SeU+tfQoeP9SbWEnUuyfsSDQoZ3FvCn1LNG2M6G0/s8iiX21ff/LJJ/F7yjvbakTd8TjDBpF3lHojkcPGqV7iW+XbZdsU8iceEUekxfb7xaSC76Bbx3EX445kZqZMmeK2Uc9TEFhmmWXiWBPEveg2wt3aFyBs6tSpxo2SjO0MA0gWMwN+eDWdeOKJcbqi8Nxjjz1Mnz59UrNjEMPdN8s+DJsgXIeJUzL//PPHjAETBm2AmSH4Gt42MG7EybngggvM5ZdfXndQNgbbkSNHlsUwcRvAxHTUUUe5l8rO8S7De2f99deP98tiMLcDOQkZxG29cWO+6KKLYiPbZk50PimdbUwe6Y1NW9SRyRTski7YTLZMuj4C5z/96U++JPG9Bx98MN66IZjQk4B6YnPEN4O6+3vf+15cP/qZ95NJHEaGPuV9YbJmPznGqgsvvNA89dRTntyru8W7Stuz6LDDDkuNCUT/8iztwAkA2znqTr3xgsRAPM97klYuTPy2225rfvWrX8XeluBD/ixG+HbJl3LABsaJxftdd91lzj333EKxSatbS1+TwSCyf3vvvXcklW37PxkQI1EVSJ8r+RCQ0OiRfIBt39/VvrMyIPpgiSZNmlSGiQwgkWzw531GBttI4nmUPVdtvZLpH3nkkcwy33nnnahv374V5S211FLRqaeeGslAl/ls1o1nn3022mSTTSKZ+CryTdYt67dILSIZYLOKiGQFGclkVZa/rM
114QjMUiPJJ5KJExW5rNZNyT+SiSDfyTMWlm+WXWs97psTJpVldJ1YYbrwrGWOopkIxL7rlIdGnEiDHTNGAtTHe2www7R5MmTax6fhcGJbrjhhmidddaJhPmpuS4W39B33bt377IyhNGIfvOb30RiypAJr4RziBgzbBl5jqQXBik64IADvN9PZqFyQySW0VlnnRUNGDCg6vLz1LGV0tAPlm/55jilI21m3nzzTd0VWt68EGE3I4NCKFlH3ZfByfz617/2tolNA12ScSKOFeJeS56T7/LLL5+8XNdvn+iY1S0rWUv8PuSQQ8w999xjdt5557J7Nk3oiIcbIfOJNFvtLuI2b1bT4JVFqBJYebpESH3qTXA5VrfVEkHhxo8fH0fZZdPHRtOTTz4ZVG/xPhxzzDGNrkpb5I+kBSnhAw88EEsPkAojYaiFeM9//vOfm2uvvTY2zPcFvcyTf8i+0v3GUH8hwTzzzDNjaVKe/POm+f3vfx9Lnv785z9XfB958+DbEkYr/pb23XffmjHOW16rpetIZga9JUabSn4EGFCYSLqJCOOO7jmLUGFcf/31FbcJRe9z0WbA3nLLLSueq+cCdckil5lBBH3kkUcawuujlqp1oqAs8iUgHHZChL2vlhB/+5gw6mb3MqLeRx99tDnppJMM4fbrqTd9St8yya200krVVruq9KjmYGhChB0VqoJuJlScIimMVaKLLrpoYU4HMBkwMrfeeqsRaY93Tysf/qiwfMQ7CqGqu/rqq80vf/nLut7TZFkw9meffbaxe3zV8w3YvFFLjRkzJt43DtVUt1BHMjN03pVXXtktfVhXOzfYYINcYdnrKqSFHhYVgbc2IsIus5exidFP33777fZn6nGjjTaKB73UmzVcpMwsgunAEJVJHKkE+nuuFUUwHNjQsKNyNYQnWGgzRCY4CEZGVNuFTg42dD+r90aSqCK9EijKxkYJO4Zhw4Y1siotm/dCCy1kCHGAVKYWiVuehiFBPOecc2KpZJ70yTS+BQppLTOApIOxskiCkcG+Zscddywy21Jeu+22m5kwYUJhDGQp4xY96Vhm5sYbbwwOqi3aJ02tFhMghqSsaruBfIHykOgxSWVRiJlhtYhRY1Hk25aDfqM8dj4mzk0j3OyRlhBjp1r1WWhXdia53XffPZYKFsmAWdxZTSPtIR5MowjpHRIaH7HKxhOFVfdf/vIXA6PVLYQBOt/SwIEDC2VW0/DjHdpvv/1i6aRlPtLSpV3zLRhIT/9hpPyHP/yh0G8MlRCMLl6loW+XcQlX/8ceeyz+Y6NSn9TWthNcGI/41rqBOpaZQReKt4NSGAFWTeiBQx9VOKfWTtG3b1+vCoJVGgNGFonBdNat0nUGD1RORZBPwkEZiLzHjRvnVZvVWw9sP0444YSqsgkNtHiAYN9ThEg9q2IwDrfddpvXUyXr2TzXeU/sZpCh9EyweKYRSO+Pf/xjQ9sdqksz7uM5df7558e7dOcpD1f7Sy65JPbgYVGF+ggGnUVWSA1k82fsIuJytareEDOD9ASmw6qbbHn1HgnjkCfY5sSJE2PPS2zB2EuOP/BBZQeDFbL5oZ6HH354rMatt86t/nxxcukWbCl67WrF5C3YjKZUiRUUg/M222xjxFOmKWU2u5ARI0Z4GQ1WP77N/HAJfe211ypcX9124PKNRKOIOBM+yQyMwK677prKgCIZwXaEv3/84x8xU8/qjklGvJ1id21UYquuumquiRUbGsTseQ1amZx8NHTo0NR6M3GhlkDVx47lhFiAoWNCwTgZJki8reLVbEhtAT5IB1iV5nE59tU37R5GzhgsM/mCaYioD7YMuKVj43HeeefFNhjPPfdcUF0Vytvex/gaJjFpvI3rMDu7w5hmEd/8nnvumXW7dB2pgI9o5/7775/L3opvBHuRM844I+5rN9/HH388NkTHDgzbI+qGpI38swhJBDuMY+/lW5S4z2eFNrBpfvazn3nDONh01Ry33nrrmBHxtYX2835lSYOxS4PZ4xvHfZxxO8sWkO8eSSLfT4h5q6YdLZfWdW/qFNdsATl2i5MPWMYcpWoQkMmkKpdCi3WrH3EZFrWAFwqZCIJt5xvxkRjARquttlownzx4iarEV1TqPdyrZTfnXOWLLUfszpmaUeKiSFsiUTflylcG2MTT4Z/CJEb9+/cP5i8TQOwamzf0gjB2DXWRlkjSEdjUQsJgRnxvedqd533JSiNSqgh8fSSxhoLYZ+XvXhe7El8xpXu4ES+33HK5yxTGNNgGmznu6Xzvbr2yzkVSZh9LPeIKnkXPPPNMJF5IkTBZkTBSEa7xsniORHriLZvnfCQMY1XvrEhpI/FC9GUZ3yPsQhYO7XZdFjjd4ZotHRMT7p5K1SGAkdud4gnWaRtRysAZG2RmoYEEALfLEGFsSNTcLEL9I0xC1u2qrmN
114Mm5dIyy7NgwcPzi0VQhXAqjdk+0EdsM9hRdkIYnWJXYIM8sHsZVSOV/Oo2AjBECLUA6jifKvgUB6++2xEikdgLfswoRrhe5NYJ+bmm2+O3xtwbldCWjZq1Khg9ZGAIhV84okngmltAp5BQpjnHUENs95669lHvceQpAJpj0u8f/Q5IS2ECY2lSkQLx4sPSSqSK99eboceeqh3bEUaidTUN8a49eEcqSuu3SFpVLUquGQ5Lf+7kyUz8nHVHIAoyOZ2eAKCfolrbiQDbkdw8yKm9gbqkgEqdzvFuNzb+zJA5l4ZygCRWa4YjXrLcW+yGpWJOzMvXzkbbrhhLgmNDLQVAe/S8hU3drdqmedIVwhaJuLxmuotbs8RkrAQEWCQFXNaXYu6tummm8YY5pUYZdWZ704YtUKDWTZLMiNbhERIm3wEPhIHqea+EDuTSJgGXxHxvUcffTRX4DhhRIN52QTUXdRiNdddVNA2q9Qj+YsHUs35IyX0YcO4VOsYUdR3UlQ+XSeZQYeMV4NS9QigX8eGBsPgvmI42+6EsV3W6lxGljhYXN42IrnyEatrwpnXS754LW7eGAEiDQrp/91n3HNidSAdCZGor3J5a7FKzUOEqB8+fHjNXoe4jvN9038+Ily9qP58Seq+RygI3P7r3R6E74528e21U0BLJBjYvoScCJCWYy9UK2FPleddRTpTtHs+330eyVNW2zbffPOsW/F18me8rZWQzCDByiLGJezsOpU61pvJdtjpp59e6H45Nt9uOBIng8lGwuobjDZ9e5i0Mh4YQPriyyBqxlA2L919993BCRRRcWhgz1ueLx0T+dixY43YyviSee8hHifeS4h5ghlEnJ3FFHoLSblJ+ISQaDzlsbJLEr496PHCRJtX7VCWeZU/eIeYQFFFhtzTfVmjrhkyZEjM0OByzHfY6rTyyiubFVdc0VtNDMMxwg8ZiPsyQR1MhOuQxxzv6FZbbVXYu4qBNGqaWtSJtj0+5ooFAN8xC/BaCXWxT8VFvhifF/X91lrPRj3X8cwML2G9A2ajwG+XfPHCwD2RFRXxEdqNWI0kdd9uG5BsVMMMwNyFvJWw0cGLoNGEOzmRSeslvLTo4xDhuWMj+IbS+u6LSD32jgpJVXx5cI9+y2Mbh71FMwZxGGOCxMGMsCkijGKthP0V4e2vuOKKeDPDWvNpxnN4/YQIZg/vrXqJTWDTonQn80U6w9hVBGGPlscNOqssJG4wfFnEZpHV2BBl5RPCBQ8/vC07kTqemYGTzzPYdWLnFtkmJgKM0+oZnIusT968iPERMlxFpF+NwR0YhMTB7Kqb3L04b52rSYeqBkakCLrqqquCK0OiDhPjol7CzZ3dyOsljB/ZrTzEFMGANStoHXWB4cW4WuwYDOqDPEbWaVjAhMMosF9YM96ntDrkuUZohxChggtJVEJ52PvEEAoReBXBzNCfl112mYEBr5XYD85n3M13nMegPVQ+Lt0+QuqHurgTqeOZGToNr43QYNeJnVt0m/J4+xRdZr35EWcINVMWMUAxGVZLxMfwqWWI+cAKvdHEaq5WW5lk3WT36SBTx4BchGSGCb4owrskJCmjLDZWbTYRaJGo09jsENTt5ZdfrqkKxLNBQtOqqt48sXZkN+ma2p720IMPPph2uewaWPUtwN4PiUye8soKT/wI7dFFbJx6VEy2uBBDhLTPF2/I5tOOx3K/s3ZsQY46M+Az4LFKUqoNAVaa9X7QtZVc31OImn3ROwmsOHny5KoLQdSNdMG3DcT2228fR3xF9dAoevjhhwvLGoYAWw/fYMdgaPdWqrVgFhZFiNRt+UhnxHslyGQ1Y0dtWyf3iD0ELsX8HX/88bERNdtQ4I5OQMA86i/SsIEmz2MzgsS5VYh3gi0qfAQGuKAXRairwCArUBzlYLPG918vE8XcUQ/eSIdDkqsBAwYU4qyC5MVHYNIM9bevDo261xXMDOARBZRdgH0vf6NAbvd8kV6gu29H6RbiXZ8hLowOO2LXQiHdMytDDE9R3zSKpk6dWljWGGb++9//9q5mmVR9kq48leE9qsf+IK0MGAVxMU+7VbpWhHqslFmNJ3xLvG94PxGnhO0NMCzNw9BQJGmRNBcp2aqxKaXHUN/5VCgkZGuZvFsTlDL2nLBAgCH2LSZ4vIgI8GxDUQ8xToRsDcWt3fDXaOI9C9Wl0XVoVP5dw8ygS8zz8jcK6HbOF3e/Bx54oO2agL7ct7EkDcK2hb9GER4MGOg2ihEsOl+YmZBLcBGqjqLrnYepS4b5b1Sf58kXuytUC9hzYY8xevRos8wyywSZGjyb2BKB0PRFqCXy1DWUBoYhxIzxXhVNSFVDzEy9jDd1rtcmjXHIt6AqGhdffp3MzHSFzQydiwGeBAj09bPey0AAA1kM1NqNUPP0tFsrq612kgbm6edWXNmx6g8xSD39LmR9P8SVQWoMU5OH2GkZ76xWoTw2VKhli6Y8DCy7XtdL1TgHpJWF9LdVmBnq1ypMcBpW9VzrGmYGkIj/gEeOUn4EmCTY4TU0UeTPsTkp0R2zg3VPE6qEIlaHzWpHnoEutApvVl3dcurxNHHz6alzvjNi+OClE/rWwB+VWqv0Qx4msV6GIK1f8sSraQWMYP5boR5gyLuV5xtPw7vVr3UVM8OAgTg3NFi0eqc1s34SUj+2o2hmmUWUhUFis1xxffXFlgBjz3YhjBVD1IqDoS+OkG1PPUacNo9GHokZhNdLnlgsxDHK01eNrG81eTdCmpcnz7zRqKtpS7Vpkcq0CjMD01+U92O1ODQ6fdfYzFggZZfa2KugpzwbbD3a4UjAQQJ/tSPhHeDzymlmm3baaSdzxBFHeF25m1kfX1l57ErqiW7rK7uee6gTQhMGzEKrEwsuQiBgcO8jYoXAKPvCA/ieL/JeHqlLEXZWyTrniZcSMjQPef8ky6zlN/ZRoQU0YRHYsLLRxEKk1vAAja5bvfl3HTOD++nJJ59sTjnllHqx6/jn0eWzC2w7EiqmPKv1ZrSNQZddgvME+mpGfXxlyGZ4vtvxvUbYPwQLDSTIY7eRx8YiUExTbmMwHmJmMCptxkScp8F5VPd9C4j3kqwLBtMhChnv5lGRhcoI3cfzKqQGnTRpkjnwwANDWel9DwJdx8yABQHPtt1223iC8WDT1bcQdbfrx0XsDtl52Nt/L730kjnssMO8afLcRNS///77B6Pirrvuug1hZojxURQhtg95dhHTJU+AulCdijaIzMOEtQtjzrfHBOibaOmrIvs+1F+++8RbQvLgk4zh8YQhfFGqPqRSyy67rK9a8T1c9nua2M8pxMy0QtiAnsap3vK7kpnhg2KiJkQ44dmVyhFAz0z8i1pDsJfn1vxfm2yyiZl77rm9Bd98881mwoQJ3jR5bjKAw6iEBiO8VRpBoVg31ZRJMLyQ9wffTh6PJ1+5MDJFqh3og5CLLpMtgfXagcCYb8/HzPgYh2a38fXXX48jR7OIyCI8elDt445eBC255JLB2DaMY62wLx/fS8h2B2yQJIfSFYFdp+bRVQbAbieyuyjhwZUqESAE+6233lp5ow2usFoNhQ6nGewTUwQxSV577bXBrIhE6hvsgxlkJCDfogipTIiZQWLA5FUv4eVVFMHIhNRM2Ja0wsSWt80hd37sMEKr/bxlFZEOSWeIinQn923aaOtBaP+QzYxN28gjNmYhCVGfPn0Mf0q1I9C1zAyDAa6QL8teKSHjrNrhbb8nMfrF3qQVjTzzoIkBa0j8TH+zg29RRDRXJnkfwSQ0Yq8mJnLfCt5Xp+Q9NjQMeYggMuebqZcGDx7sVUvkzR8JxV577RWM4wEjU9Qmh3nrVms6pFYhQ2wMhYv0KvNt+ZGnHQSwCxESzBCTFsrD3ievEPGetgIzQz1DC2ckrEiblGpHoGuZGSBjtbbvvvuaPPEKaoe4fZ7EHgL1W71qhJ5sMdKF0CqdaKRFRiSF8QsNVmCyxx57FDaYW4xpa8jOxab1HTEoHTp0qC9JfA9vwCI8aJAosTdRvbTIIosEozzDvLaD8bXFAmPxkE0RUoe84xbtD0lx2K+nHoNiJN0hIthfHg+kUD5IMEKRvcnjvvvuaxk3ZAK2+uyFWETsvvvuoabrfQ8CXc3MgAseOxdffHHXS2cY8NiyoB13xnbf76222iooXSB2TtG66XPPPdfADPpo4YUXDm4453s+7R6r+OHDh9cl5WDiPPzww4MTDZKAorwAsQ846KCD6mbu2Hsr5IIP83XXXXelwddy11CTssVBiKyRcCgd9+m3kBQHiUk9wR1hcn2TNfVA+kCfhxg10mYR7w273MN8+4j2sodVqxCq2dBGm6jH86jIW6VNrVaPrmdmWLHAEbfLYNeoFwhPDwxn8672GlWPevLFw4EtDHxEwKgiDH+TZTz77LO5vHyGDBmSfLTu37vssovZeOONa84HVdV2220XfP7uu+/OFdAtmNE3CVhd51lhZ+VHvQ8++ODg5IjrcL2bBSbrAGNahJQhmS/9uOmmmyYvV/y+8cYbcy/A+KbzfNch9WxFJZwLqHTwEg3RsGHD4s1XQ+my7rNxax58WKTiZdVKhMt9iI477jiz+OKLh5Lp/RQEup6ZARPsHRgU0UN3IyGVOfTQQ00rxg+ppj+w+Qit2NhstBER
114MKi1xkUAABCOSURBVLE1IvBViNggsGjCPfz44483Sy21VNVZE/8DqVLIOBmpU9F7m2GnwQSYJ15IsmHUm+1JQvVmsTJmzJjCbcBgmmFgR44cGU8+9UgbbNt+8YtfxDtqhzwscY2/4YYb7GPBI7ZCeeyFNthgg2BevgREVw/ZqCBZOeSQQ4I2QWnlIIFDghiy62IcHzduXFoWPXqNvbdCtnV4RcL0EPRTqToElJn5Bi/0q9gMFK1+qK47eib1WWedFavbeqb0YkrFEDSPiLboFbqtPSL2PCuv1VZbLehSavOs5sjkzoag1TBLMBGs8PMwE4jJWe0WTbiD4w02cODA3FkjQWAyJ6R/iDD0boS6AcYDo+5jjjnG4P3HRAX2tTA1qF9g6mAWQ3YrMGf77bdfcFJ0cWECDQWPIz2RqvMY1rp5u+cshgj+FqKf/OQn5pZbbonVTqG09j5SMEJp5HlPUHm1ohs+i50999wzKFHj/cabNI8Nm8XHd0SK2BUkH1Bk//bee+9IGt3VfyeccIIIKrqH7rjjjkgG4LbvczFgjB5//PFgx4mIumFtlf2gIrHPCNZBvJpy1eGoo44K5pVMIN5GkQTxi2Sij8QOoqIcUcVFMlhGEkcoEsPl5OOpv0WSFYn3UUVeWWPFxIkTU/PxXRQ1SCSr7rje1DGZt6zGI1mtRqNGjYpECubLqnRPGMxIbGoq8krmXe1vsS2JyDuNJCR9JBHGI1HbRWussUbcHmE0I5mMI2FaImHeIjHYjsT4OZLAjpFIECIx5k3LKvWahBSIJIZS1W0aMWJEan7Ji7I1QSQTbiQMbiTG5XF9ZTKMsRfD5GC5fAOvvvpqMtvU37Rl0KBBqe+p7RPeYWF+IllsRsLIpebjXhQX8bje9vnQke8gROuvv36w3aFy3Pt33nlnqMjSfYmHFYnqMRLVUyRSLW89ZEEXvxsioY3WWWedSKTtkXjxRWJf5X3OrVu7nItEtsS3fMO/TJmOE2lATA8//HAsrra/u/GI6JtVX6OCnLUSpqzYVlxxxbbdssDFkgiwqJB8m+9hFIgnRCPViawe2dHYR6gnkIaEDIaFmYmDF/rySrsnI2GsVmEvosmTJxuZXOJkeP4gvkYVh1QhrxQBg2ncn/OSMDNxhO286W06pA6oAFFVUG+kQdSRTUNZrWLsjNdN3oBxqKF23nnnwqWtbBx6xhln2GqnHukDwj8gseO9o6+5BqFqweAWGy8MfvO2B7sXpBq1BJ6j74kFk6fP6Qc89Kg/RP2QGCG1zhMLBekj0pGQCpC8Mc7GMPbMM880119/fUnVzTuK2ni33XaLvd7yhB8gL+z+CIiZlwgOynfmI9Rv1aj1fHlxD08+JIYhKZzNh3eHkAh8G0icsG9ECsZ1vmPUb6inGAP5RhgDmcds/qTD6/Htt9+2Wbb9kXfrtNNOc9sxdQb3l56b+IXhI0LMJ6uGjoWEfWqIJ9MuId5DHcH2FD5Ghudxn24kI0MZl1xyiZGVnHfSQOwLMyOSJB6pi2BYGMDcCZFzJn3+QpGJfYUz+eLhFhrsfXmk3bPMFvVziYnW1rted3OROBoMo4tWG8N80L8hog94H0PvZCgfe5/JjPbUwsiQBwwtqh3GthDRD2mMCIwZE2TIM4p3ho1V+bMTalaZMHQwP/xB2PbwflQb9wZG5sgjj6w62Kf73WTVsejr9CFqSjbxDcUTomzeORgWy7RUWx+e32yzzczpp59e7aNtlV5tZlK6C4nF5ptvbtplY7qUJngvMVgQwA07oU4gPtZdd93V2xTajISh0cSKi4nHR0xwRTHKohYtrWZ9ZdZy75FHHjGDBw8ufEVHX7AvVsgYspY68wzG2DC3oUm3lvyRTBQZvThPHWDIdtxxx5hRzpM+Kw1GsXm8mrKehzFBqhQiJAF45WAcXS0zifFztYwM5Yn6MWaekCpVQ0g2eoKQHhFSodr61lrXbbbZptZH2+Y5ZWYyugp3zlVWWSU27stIUtNlVh5MeMRzwTKfKMRbbrll7G4I94wRHhsXYhCIu3jRkgRWaIhiEel2CmF4iRGlj+hP1FCNJgwtQ0wwK1/RaRdSFYwK8Q4pkjFggGUVzwDIarwRhCsvBo4hxq/aspHIoEorYjPMtLIxWOavWcQqHjXHVVddVVJT1Vr2PffcE+dT6/NIMUKeRDZv3iFUcfvss09D93jje0MVhZoKJrla6gnJjK3jNddcY9jioQgJrc0z60jAwmqZxKy8Wva6Nf7lqAbAlcbPsoqOxEtEvpP6CMM6DDPlharKGAujL2FwqjISzKqpDPBRv379qipfXtyWTy8Sl6wml64L8xaJBKcpbREPl1K5WScyiQcNr/MYAAvDEbcJw+Y8xsdZ9XGviy66LqxCBsCyko6EcY/rjYGurN7d4ms6l8kzqrfeed51kU5E4k1USJ19DRWpUsR7nadO1aYRFbqvaO89DHyrLQ/D7bxGwd7CEzeFkY8wTq62Pm76PN9Y0QbAbvmcM8ZLIMCGv1PiCVYXVsl69+TvNANglcxIj/gIsexGG20Ub3tACPFqiJ1vsaHANgUjRmwPqo1xgph2/Pjxcch6JCoEfMP4S77r3FXBoJI4JBieFRnGP3cFGpgQQ8o8m86hUkMc3Qw677zzguJ1bBKQyBVFuIXzfiCZqKWdPIM0Rjxs4pVuLXnU0hZcmtdee20jHh41idxRJVFvpJqs0Btdb8o7+uij45g+SFBxy65WlZKFE9803yfqUNSQsrjMSlrXdVRwJ510UtVjEYXmlcy4FSR43fLLLx9LaZBCVDN2uflwjqQQifUwCb6Hui+Py3kyj1b7zfsj3maGgJrYtVQ7z2S1B6zYkwyVH8EG8+yflZVXO1wPK0DboRUNriNW/ccee2wcpIsjzAkfNfpjK6bkA2UgZbCD2YABYVAqSoyOgRsTFn/oedG3MngTfwFdNnYjti6IePlAYMRgpg444ICGinobDL83e9rNgIYXkY/y7J3ke76aewzeiNhDxrd54rvkLZc+J84MunjUEqMlgNnSSy8de82AkevFwrtq3xEGPCL7skdZT0VMpXwGcpgabIAw/oVJ9dWbbxIGlXY2KnaQD3uYDoLx8YdhJt8jTEJfiffDuMAfmPPHd2m/TbC3+DNe8J2ywLn99tvNqaeeWthu7r66s/ca+4RRHnY0eG66eFNXW0/qyB/vCV5Htaq9GQfHjh0b/6FihRFEjW/tcNzxi7q75YMR3lWoxmEkQztQ+9qevPf0008Hx45meAHxPaIG5A/7PxbQHMHI9o3FKO1d4nk7/8DAMN6xUGiUujWJYyv8VtfsGnqBAYvgTYSdxhqdlwjpB3YZDHJMCkXaMGRVkZdc1EaG+mCYiGcAxIBDXeDEkQ4ptScCSPJwHfURE6ioiCuSMJnybiyxxBKxVFBik8SeNQx62G1hJIv9FIN5UStBW4mQazZ1wMA+jcFkoMbFlFU3jDqMAgbTTG5M+iwUYF6Z0LBN4norES7FuEHzPXKOnYJ1waaedpHBN0pbmGzoBxYrPUUw3RZvvMnoA+rJGEY9eT8kfk68AW2ReGN7RF8jtQYvpJUwNxDvKAwQjAT44HUJQ9NtRH/wPrFvFt8wLuowNZB9l8AFr0a+ab6Jeoy82wVf3hV1zS6gtzBe5K+nidUSkxF/SoqAiwADHfFs+GsnYrJk4mrXkAEsHtptAfHKK68Y/ppNMElFM9LNbkOjyxNbyzjmEnGXlPwIqM2MHx+9qwgoAoqAIqAIKAItjoAyMy3eQVo9RUARUAQUAUVAEfAjoMyMHx+9qwgoAoqAIqAIKAItjoAyMy3eQVo9RUARUAQUAUVAEfAjoMyMHx+9qwgoAoqAIqAIKAItjoAyMy3eQVo9RUARUAQUAUVAEfAjoMyMHx+9qwgoAoqAIqAIKAItjoAyMy3eQVo9RUARUAQUAUVAEfAjoMyMHx+9qwgoAoqAIqAIKAItjoAyMy3eQVo9RUARUAQUAUVAEfAjoMyMHx+9qwgoAoqAIqAIKAItjoAyMy3eQVo9RUARUAQUAUVAEfAjoMyMHx+9qwgoAoqAIqAIKAItjsAMLV4/rZ4i0LUIvPvuu+aFF17wtv+///2v935P3GQnZF+9p02bZj7++OOeqJqWqQgoAh2KwHQXXnjhV9NNN930tO/xxx83Y8aM6dCmarMUAUVAEVAEFAFFoN0RmGeeecyJJ55YakYURa+hZnrfXunTp4891aMioAgoAoqAIqAIKAIth0Dv3r2TdXqvl9Cz9up8881nZpllFvtTj4qAIqAIKAKKg
114CKgCLQUAosttliyPk/2Ev31Q/aqMDamX79+9qceFQFFQBFQBBQBRUARaBkExCzGLL300mX1ETXT/b3k3+1y9St7Z4UVVrCnelQEFAFFQBFQBBQBRaBlEJh11lnNQgst5NbnixlmmOFWmJln5Oqb9s6AAQNU1WTB0KMioAgoAoqAIqAItAwCCy64oMEA2KGX33777Td7zTzzzK8KQ/O4vbHIIouY5ZZbzv7UoyKgCCgCioAioAgoAj2OwPTTT28222wzM+OMM5bqgoppjz32+G+vLbbY4gvRQZ1k72A3M2zYMDPbbLPZS3pUBBQBRUARUAQUAUWgRxEYNGiQWXbZZd06RMKznCIXojgC8DbbbHOjcDc3c4FUc845Z8z9wNgoKQKKgCKgCCgCioAi0JMIwJdssskmxuFLhG2Jztp6660fpl4lbkWkM0fK71I40bXXXtuoMXBPdp2WrQgoAoqAIqAIKAIwML/97W/NAgssUAJDGJk3v/7661KU3xIzI2HR75eb50nKWDoz00wzmREjRpiVVlqp9LCeKAKKgCKgCCgCioAi0CwEsJPZaaedzMCBAw1u2ZDwKtPk75gddtjh5fiC/PvfHftLjhdddNGdclhL/mL66quvzLhx48yjjz5qL+lREVAEFAFFQBFQBBSBhiIgLtdm5MiRFVoiYWRO2HbbbUe4hZckM/aiMC+7SMJSVGAy23vvvc32229v5phjDptMj4qAIqAIKAKKgCKgCDQEgf79+5v99tuvgpGRwm4Ub6bDk4VWSGZIcOqpp84911xz/UNOF5e/UppPP/3UjB8/3jz00EPmyy+/JKmSIqAIKAKKgCKgCCgCdSOAbYyEizFi1GvWXXfdZH4iZ4lufP75538xevToacmbJUYleWPixIkDJGNcnga79yQz8+qrr5onn3zSPPXUU+bFF180H3zwgZtEzxUBRUARUAQUAUVAEQgigE0Mhr1LLLGEIWjv8ssvb2afffbkc18J73G2aI4OGjp06HvJm/zOZGZsYrGhOVEyGS6GN5k7UH700UdGIvAZjkqKgCKgCCgCioAioAj4EICJwd16/vnnN5izZBAOSe8KD7KX2MhcmJEmvpyZg31IvJxGyl4I1wkzM0qu/dRed48E2NMgey4ieq4IKAKKgCKgCCgCdSDwtTAxZ4lJy8kSyPfJUD5ByYybwQUXXPBz4ab2kQKWFebme3IvyAy5z+u5IqAIKAKKgCKgCCgCGQh8Jtffkr87xUb3gOHDh0/NSFdxuSpmhqcnTZo0k+itlhCGZoD8XFOYmoFyvoSc95bzCu8onlFSBBQBRUARUAQUAUXARUB4hy+Fb3hNrj0t5w/I+YPTpk17WlRKU+Q8jnnnpved/z9XWEgTSSkdZgAAAABJRU5ErkJggg==`,ug=({byWidth:e,...t})=>(0,K.jsx)(`img`,{style:{width:`100%`,height:`100%`},...t,src:lg}),dg=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoYAAAD6CAYAAAA89YbqAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAANhJJREFUeNrsnQucFNWZt98xKHIxghKUL7iA65U1goFdXDUq+/lLolkjBCNqgkh0veTLt15Wk5glQRY3qysqaBTvgCYSkygaN2ZVbprVSGAELyGCIAwgw8AIA8MwA3Pp7X9BtTVtT1d1d1Xf5nl+v56Zvkx3dZ3qPk+957zvqYjFYgYAAAAAcAC7AAAAAAAQQwAAAABADAEAAAAAMQQAAAAAxBAAAAAAEEMAAAAAQAwBAAAAADEEAAAAAMQQAAAAABBDAAAAAEAMAQAAAAAxBAAAAADEEAAAAAAQQwAAAABADAEAAAAAMQQAAAAAxBAAAAAAEEMAAAAAQAwBAAAAADEEAAAAAMQQAAAAABBDAAAAAEAMAQAAAAAxBAAAAADEEAAAAAAQQwAAAABADAEAAAAAMQQAAAAAxBAAAAAAEEMAAAAAQAwBAAAAADEEAAAAAMQQAAAAABBDAAAAAEAMAQAAAAAxBAAAAADEEAAAAAAQQwAAAABADAEAAAAAMQQAAACAMqFLZ3mjY8eOHdCtW7fRXbt2PSn++xiaHgAAANJRX1//x9bW1prGxsa5Tz/9dFVneM8VsVisbN/cFVdc8R99+/b9Zv/+/QccdthhXTjEAQAAIBuqq6sbN23atLKmpub2J5988mnEsERQZLBfv36zjz322NORQQAAAAibbdu2tbzzzjuzH3rooSsRwyLm6quvfnTEiBHf6datWwWHLQAAAEQtiEuWLLl51qxZ0xDDIkJRwiFDhiwfNGhQr1T319bW2ooVK6yqqsq5iK1btzoXAAAAAC8DBgywHj16JP4ePHiwnXjiida9e/eUj6+srFy+YcOGUeUwD7HkxXDcuHFjTz311J+nGjZ+7bXXnIukEAAAACAXhg8fbueee64jicloDuLixYtPLHU5LGkxlBSOHDlyTvLQcdzc7YknniAiCAAAAKGjCGLcQZxoohcNLb/55pvfLuXklJIVw1RSuHv3bkcIFSUEAAAAiJIxY8Y4Fy+lHjksSTHUnMIzzzxztXf4WFI4ZcqUxBxCAAAAgKhR9PDGG29sN/9Qchi/rXspvp+SXPlEiSZIIQAAABQa5THIQeQiLv369et20003LUMM84BK0nizj5FCAAAAKCRykAcffLDdbcOGDRt6+eWXX48YRoiGkFWn0Hub5hQihQAAAFBIli5das8880y724477rhJiGGEaEUTb7KJso9JNAEAAIBiQGKo2skuGuEstahhSYmhlrnzXle0EAAAAKBYSB5SLrWoYcmI4RVXXPEf3oQTRQqpUwgAAADFhLvSmouihpdeeukZiGHI9O3b95ve6wwhAwAAQDHy+9//vt313r17/wtiGDL9+/dPlBd31z4GAAAAKDaUiOKlT58+pyKGIaJsZO8wMlIIAAAAxYpK6XmHkwcMGHAEYhgi3bp1G+29TnkaAAAAKGb+8pe/eD2mQkEuxDAkunbtehJiCAAAAKVCQ0NDu+vJQS7EMAfiO/MYDjEAAAAoFbwRw1LiAJoOAAAAABBDAAAAAEAMAQAAAAAxBAAAAADEEAAAAAAQQwAAAABADAEAAAAAMQQAAACAgHRhFwDkn6FDh9qECRPsnHPOsd69e1tjY2Pivm7dutm7775rc+bMseeee87q6uoCPefll19uAwcOzGp7Fi1a5FzE2Wef7Vxyxfuc2Wz/rbfemvi7UNvUEdqW8ePH22mnnWaf+9znbPv27Tm3X6p9oP+dNm1a1v8/a9YsW7duHR84AAhOLBYr+st111236Kmnnoq5l8GDB8e06cV86THoiNiJE8fETn/+B7HTf/uD2BfuHBc76vKzYwf27lH0284luktcKGIrV66MbdmyJeZHXBZjNTU1senTp8d69erl+9xr1qyJZcsTTzyReB79HQZxscto33i3f+fOne3uK9Q2JV9GjRoVq62tdS5B2m/Tpk2x22+/PVD7pWrDbdu2OcdMNvtQr53J/3LhwiXci1zF6y7xk8nrS8G5GEqOgBOnXmNnvDLR7Fsn26bjDrJNxx5kjecfbX0nftXOev3f7PifjLEDD+vBjupExMXAZs6cac8++6wdd9xxTpTJj4MPPtj69u1rV155pX344YdOlLGz0NLSUnTtp0ij2vDwww93LkHar1+/fjqxdSKI2bSfosnxDsV5/UzxRqEBAILCUHLI9L/mVuv21b+zpY0LLFaxPyqr3/FLbXODfeYzB9j/ufyL9qVLT7O1D82ztff8np3WCaSwsrLSjjzySOvevXu7+3bs2GG7d+9OdOQahuzSpYv16NEj8Vj91mXevHmOJGp4EvLbfhK7/v37f+q+jz/+2Gk/tZm3/bziL0HU/6r9NHVg+fLlGcvhD3/4Q+cCAIAYltLO7NXHen37X+ytbT3jHftO69p1aUIKY/svLdZmVS3b7aMuB9ig6//BBl52lr1z85P28bw/swPLWAqPPvrodrdrTtqSJUtsxowZnxI9/c+oUaPslltusSOOOMIOPfRQ5/ZDDjnELrrookBiqOe/9957A2+nd97d448/7kQoUzF69Gg7+eSTE9dfffXVDufshTGXr9Db1JEU7tq1y15++WWbMmXKp0RPc/wuvfRS+973vudIncRQKMr44osv2nnnnZeR
114HOr/r776avvlL3+ZsVQCACCGBeTIS75nqyt6OiLY0DDW+X3QwUsTUmie382xmK1q3mJdD+1ix8+60lre22zv/r9Z1rimhh1ZRjz55JNOpNDLxo0b7fzzz++wk1fCgZIGdPnRj35kN998sxMxlIhIOILiTd7IhHQJGhJcr4Tpcdm+TilskyRccufS0NBgtbW1TvJJR0kduv2nP/2pPfDAA3bPPffYmDFjHKkXGlpesGCBs81+SSlbtmxxphK4gjp79mwbMmQIHyoAiBTmGIZp2V84zZpi+69IDneNtT17hn9KCmP6sf96k7XY282bbOPgrjbi9Yl2wvRxzD8sExT1O+OMMxJDwpKKVatW2Re+8IXAkR8Jxg033OBIoWQS8tt+EjEN67vtt3TpUmeuYJBMX4mfMs8V+a2vr0/cLtHUCYMfra2t7eRxwIABzokCAABiWCLUHdg9IYXu7931Y21v0/CUUuj9XRdrtMV71lvLhcfb31dOsYE3n8sOLXEeffTRdkkDGt4dMWJERuVLhCKHSGHh20+RQslipu13//33O9HDpqamxG2nn366b2khDSErYunOQdWUgptuuimrRBQAAMSwAPQceno7KXR/N+4ca82Sww6k0Blq3v/YjW077K0Da6z7TWfZl1bcbod9+W/YsSVIcs09SeG4ceMylgoonvZTjcBs20+JI4o4uihqeNddd/n+n6LFSlDy/h/JRwCAGJYIdW2flsKEHNbF5bBxWFopTMw/rGizNa0f29uH7bC/fupKG7bgB3bI3w1iB5cQKn7sLWlSXV0dajIGlF77KdrnjRqOHDnS/zslLqLf/e532wmp5lOGUewbAAAxjJhdbaml0P3dFJfDliQ5TJZC7++mWIstb9lk6/+mqw357xvtb35+lXU5nPmHpcBXvvKVxN8aCrzzzjvZKZ28/RTp80YNVasxSG1D/d/bb7+duJ5LbUMAAD/ISg4bVwRj+/9O+t20bax1jf/+TM/KtFLoPMX+33XWaG+2rLcjv9rfRrw9xaqffMM+vOU37OsixltcWDJQiGhh0MzcsJaJo/3So6if6h66kUhlKgeVOw1jL168OJGlTG1DAEAMS0UKY/5yuOfjsXZQ/M/PHFLpK4Xe2zbH6m1r1wbrf/UwO23M39oHP3nGtv7yT+z3IsRb4kSRoSBZrCtXrnSKIwdFUaRvfOMbHb7+pEmTAj8XYph7+wXBO5Ss5BJFDIPse73+9OnT7fvf/76ThEJtQwBADMtMDvfG5fDAA1LIYQdSaPuHnVsqYraubbtV9+lixzx4sfW/9h/sg+8/bbsWr2XfFylBlybTahleIfFDq2xA8bRfEDZv3tyu5mImw8EqXXTVVVclCp5T2xAAooA5hmFLYfLvNHMOm7eOtZZdwwJLoVVUJB6j+Yfvtm22dSd3tRNfucFOeIr5h8VKVALnrqgBpdN+ycXOM81yTi6XQ21DAAgbIoZRyGFylNCsw8hhy5Z9K6Qc8NnKwFLo/a35h0taN9qRXzvKhv/DbbZ59uu28T9/by0fN9AWBcQ7ZKjhYdWs8xuOlOh1tOyb97n+6q/+yvlby7J1hMqrdDTMnExYw6Sdvf2C4F1DWa+R6TCwHq9kFC2NqMLpbm1D1UmkFBIAIIalIIVB5LBmrH1mvxxmIoXmyWrW/MPagxus/7XDbPiFf2vr7vq9bX5gEW1SILRqhVcGVF5EharT4a6Q0hGSk7feequdsKSDeYPhtJ9WPgnSfn5o6Peggw5KXNdqKNnIpmobKmvaPV7c2obaxnQnCwAAQWAoOWwxTDN0nO6+1s1jrW3nsKyk0KXF2pz5h8sP32G9bv+aDf3DD63XV0+iXQrAvHnz2l3Xese5oo7fO6ypqCBE334SsDDaT8PA3vbLNqmF2oYAgBh2IjmM7RiWlRR60frL77dtdeYfDvz1lXbCnKvs4GOPoG3yiDJIVZrEpV+/fjl33IoUeecVJssnhIeSOsJsP0ULp0yZ0i4q/NJLL2X9fIoQeqcduLUNe/bsSeMBAGJYVFKYqxxWj7U2Rw6zk8J2kYVYoy1v3WR15x1lJ/3hZht4x4UkqOQJzQXzikWuRYklJUcddVTiuqKFM2fOZEdHRPIwfK7tpzmAffr0add+kydPzmkbx4wZY1u2bGm3jUcffTSNBwCIYbnJYdumsRarG5aTFHrR/MPlB9eaXTvMhi6eaEd+92zaKQ+ozpx3uFdRp3fffTdjuVCtuxdeeKFdKZsNGzZQvy5iLrzwQtu6dWvi+mc/+1mnyHSm7aes4S9/+cvtor2vv/56zsks+n+dHLjHmJ7fu7IKAABiWExSmLMcXtRODrOVQhd3/uF7feqZf5gnFHV6/vnn22W49u/f31asWBF4WFJSoSFj7xCh5pZpLV+Ivv0kgloSTygJ5fOf/7wj90GWspNAPvPMM3bjjTe2W3dZIjdu3LhQtlErn+zcuTNxXdsIAJALZCVHIYcZZCSnuy/20UX7RpR7V+YkhV7c+Ye9Tu7mzD9seW2trb7+l9b0QQ1tFwETJkyw0047zREKt9NW5PDZZ591on5anUQC4k0kUPaxxHHq1KlO5rFb0NiVwokTJwaKFgZdEs+VILKYP40ETvta9QJd8dJlwYIFtmTJEpsxY4Yz38+LpFHR4rFjx1rXrl3bzSvU9IJzzjkn1NIyWi7vV7/6VbtSOAAAiGGxSmGucrjxon33H1YZ6qbum3/YaH3OOMyGvvVjp7QN9Q+jYcSIETZ//nwbPHhwYjhRw8K6PP744052qkqXuGgNXclHcvkarcAhKbz//vt9XzPTJfE0Nw0xTPE5iQucRE9yKPHylojR8LDadu/evYn2O/DAAx2Zl/wno1IyksKwpwCo3X73u98lahsCAOQCQ8lhi2GWQ8dp75Mcbh8WySbXxhrszdb1zvzD4X++jfmHEcnFsGHDnDp4XgF0BUPCITFzL14BcdHwo0qUBJFCiEYOFSVMLhGkaK63/ZQglCyFmkpQVVVlX/rSlyKbF6qM9T179tBYAIAYdho53BCdHArNP1x6cI0z/3D48luZfxgB1157rX3961+3d955p11SQ0dobpuiTBp2/uIXv5hzgeVSotjWgZYcnn/++c5qMqtWrQrUfjt27HBEUqWLND0gUynMZB9o+77zne+0O/HIZN1tAAAXhpLDlsIch47T3rdh/7By78pINl8JKpp/2HPQQXYM8w8jQcN+Q4YMcUTh0ksvta997Ws2aNAg5z4NFUsG9Hv16tU2Z84cZ/5a0PloKl+SbTmVoBmyP/nJT5zh70z/L8rtj3KbUrXf8ccf70QQL774YkcWJWBqM1fmJGeVlZXOvL/k+YdRtqFeSyceXshcB4CMVSYWixX9Rl5//fWLRowYcZZ7/bbbbnMyO4uO5bFPxM797f07rPuO+lVkcuilT0UPO+aAw5l/CAAAkCGaV6554S4vvfTSDbNmzZpW7NvNUHKomp3idwkOK7skzz/sf8t5tDEAAEAZgxgih7648w8PvuUsO3XNHcw/BAAAQAwhKyksEznU/MPVbR/b8sN3OPUPVSCb9ZcBAAAQQ+ikcihUIFvrL687uatT//CYhy5j/WUAAADEEDKSwjKSQ6EC2Zp/2HTJ8cw/BAAAQAyhs8uh2Ni2g/mHAAAAiCEgh/tINf+w54hBHAcAAACIIULYGeVQeOcfnjDvBjthzlXMPwQAAEAMkcPOKodC8w+Xtm60uvOOcuYfDrzjQo4LAAAAxLCTSiFy6LA5Vu/MP1SB7FuqbrTLvt6HYwQAAAAxRA47qxxq/uGhu1faD2ofs9m3HWlLfz3UThvak+MEAAAAMUQOO5scDmnaYovWz7FDm3eYNb5nwwats9d/cYLNve8E69O7C8cKAAAAYljmQogcfiKFVXOsV+ueT25srTNrWGqjvlRna+cPt2k/GmhduiCIAAAAiCFyWLZy6EjhuiQp9NK82XrGltp1l5itXzTUrht/JMcOAABAgSFUE5UcxpL+Tndbqt8WwX2SQ9G7MnopXBuXwrY97aU4mViL2d511q/nZpv2g4E2btSRduu96+y/FtZxDHXAwIEDnUuvXr1s6NChidvXrVvnXMSiRYvYUQAAgBgWpRB2Mjl0pPDDAFLopa3JrOl9G/bXveyFBwfac/Ob7Id3rrOVa5s6/SF19tln26hRoxwJPOusswL/X1VVlSOIujz33HNWV4dsAwAAYogc5lEOE1LYmoEUetH8w8blNuqsI+2cM06yx35da7f9bKPVbm/pVIeQIoK33nqrI4SHHnp
114oVs8xYMAAGz9+vHOZOXOmPf/88zZr1ixHEgGSj7fLL7+8w/sVidaxU27oMxY22lfLly93LlFvn9rEHSUAQAyLXQo7oRwOafRECnOlZbP1PKDWrvt2f7voa0Ptjgc32vRZm8v+8FF0UJ1BJpHBoFxwwQXORZHE66+/HkGEdmI4adKkDu9/9dVXy1IM073nXNmxY0ciWp/tvvPbPj0/YghRQPJJFHLo/d3R32WUkOJI4Zo0iSbZ4M4/POQ9m/avvWzpb4faP/7fXmXbMasDWbhwYSRS6EWRxLlz5zqdil4XAMJHkX6diClaL3lLF5EFQAyRw7KSQ0cKV4cshe0Esclsz/s27Lh19sIjcYF69CQ7/uiDy+ZQUfROw07qRPKJBFSvq9cHgGhPxiSI+rx5E8YAEMPOJISdRA4dKfwgQin0ovmHTXGBOnOzvb9wqE2bNND6HFa6MyGUVawo4T333JP1PMIwohp6fQ11aXsAIDqGDBliy5YtI3oIiCFyWJ5y6EjhqjxJYTtBrDVrfNOuG2/27ivD7YKvlN76y5IwDeXmO0rYEUpQ0fYghwDRo+ghcgjFDMknUclhkIQTv/uLNCHFkcKVGZakCZvmdXbkZzfbcw+fYNdP7mLTHy+N5BQNJUnCso0SKhFAQ1IqP+PWLvTWNFQCi/7O9PkVzdD/kpQCkB85FOWY1AOIIfgJYZnJ4ZDdnkhhRYH3tzP/cLlNm3SCbd/ZYk/8praoDw8le2QjhW6pGf1vR/UIk4VOcqiohC5BXm/ChAlIIUCe5TCs0jYAYcJQchRymO7vEh5WdqRwZQGGj/3Y+77df1v/op5z6M4pzEQKZ8+ebYMGDXLqGWZapNpNLJGMTp482SmfkU4KiVwAtGfkyJFWUVER+NK7d28bPXq087kNCp87QAw7ixSWoRw6Uvh+EUrhfnoetM6+Nbp45xuqA9BwbRDefvttO+WUU5xoX651yiSTqo0oQVTkESkEiAZ91nQCp8+tTuj0OfZD3wnMNwTEEDksOTksdil0aKuzzx9RnCukKHIXNNFE0QYNA4c9vKROS5FHiSBSCBAtOqHT5zhI9DCKFVgAEEPkMDI5nHV3lS36/gfWq6G16Hd7fX3xrQesSJ1KwgRBohZ19EAiqGgkUggQPfo8+0UOVeeQ+oaAGJa7EJaJHM761Z02vvJl6/VhN7OZw8yaincOX9Mesw/XF1/EMKh85VPUFI1ECgHyJ4dhPAYAMUQOCyqHM5++0y6LS2GCzYcUtRxuqDb73cLi2iYN3QZZ4m769OmIGkCZohMxvyFlIoaAGCKHRS2HM395p41f+opZrCJRPSchh48Xnxx+XGf2Lz81q9tZXIdBkLlDqkvIsnQA5Y1fKaio10gHQAyLSQhLTA5nzrnTLotLYUIIU8nhY8Uhhy2tZjW1ZtdNMXthQXEdCioW7ZeFrBIyDCEBlD+qQQqAGCKHJSeHj8+ZauOWvJIosl3Mcqjo4Op1Zv/0r2a/+G3xHQZBooDTpk3LuRwNABQ/mdQgBUAMy1EKS1AOH/vFVLvsT684N8Q8VphWDh/NvxzubjL7qMbsjkfM/n6s2QsLi+8wUDFrv/I0ihZKDAEAAIoJlsSLQg6zXf4u1/uzXD7vsZ/vk0LnaoXtl8OYVey/P/EUksP4jRXJcvhPlWbdos0I3ttstr3e7OXXzX58n1nVR8V7CCjpxA8lm3SWKIJK9rhrOKeaZK/9oAn6Gm7L95Cbtkfbpm1MtW2K6Lrblu+ly3QcuduXjLs9pbCMofse9Fv7uZTfSy77oBg/izqJdae86GTVXYe9UJ9HQAyRwyKQw8eemGrjFr+S2PRYLEM5rI7L4SNxObwqGjnUPMIdcSFcvtLs32aYvba0+Js/VUeeTLlHC9XhSGw0pB5kxRdFWCdNmuR0ThIE7Z+oREzbpu3S/E7VkEuHkgLGjx/v/F1VVZXYtqimAKjjVtKS9l265RPdZAU38qyLe6KRrjN3l0rMR/tnso/d96ITpnKcYuH3naBjK0rcddPTJbnoeHPvT/486phM1yZqa78T4jBWcvI7vt0TzSAn54AY5lcIS0QOH519l417c1578ctWDh/eL4fdw5HDtjaznbvNaraZTXnQ7Bf/VT6dgArelvPcQnUS6kgyWRfa2zlJxHRRxnZYnYlXVnTJZtskONddd51zUfkRPU9YUV9tm4TIldBM9pc6cFfC1IkXOsNVbZ/NPtbjtW/1PrQvymlFED8Zj+okSFHBTJbjTPd5VFkttUmqY17b71fIX+2aa5v6ya3IZK1qSA1zDKOQw+S/i3DO4T4p3J99HKtI+KJ5
1145ND9h0BzDl05bMz9XGNXXAg/2GB2x2Nmp15SWlLoCkQuZ7yliqJdbgeRjXiliiStXbs2lAiXu8ygJCqMbVNHKWENIzKh59BzZSqFyR343LlzC5rl7rZ/rvvYlV09l4S51JEM+X0nRDGMrmNh2bJlWUthMpJ2tUmqYXF9p+lEzm97wnhPQfY3IIbIYYZy+Oisu+zbf/QMH4cphw9lL4dNe81qPo6f8f3W7CtXm90eF8O6+tJq+iDDyOUohq54hdUJeZFoKuqRrSS4HaRf55ytjOXSEUl69RxhyKqYOXNm2bS/nkuflVTzEkvp+0CS60fYYqiIaxTHgj5DapNUcuhXpF//m8uJlI4Dv2ih5JRKD7nDUHKUcliEw8qPOFI4LyF+FRWfyF6F5LAilvuwsuTwmuDDys48wl1mf1gWl4Cfm732VnkfGmEmnajjCSKjYUQ90m2DOraw5CYViqZ1lLziJ4VRy5I6fnVamUZE1HkrClMOJwWShSjaX3KoY0vHWKkla0mCgqxopKHPMN+bjsMojyu1s9pbbeIdAtd79YuOutMdsj2JyuV7ChBD5DDFbY/MjEvhG/P237Tvxsjk8MG4HF6bXg7deYQaNp4+x+wXL5Z+k+c7Yhg0IpErHWUoSgqilkKvJKjzCSpg+ZBCr7iqkwyaVBR1550vFMWNuv29clgKuAlEQacGhCkzeu18JLapvfVZTD5R02unm2uopBZtYzZRPb/PvRJ4yKJGDItbBItMDh9+PC6Fr89L2F6h5VDzCD+qjZ9l/lf8Yb8pvSFjyE4Knn/++XZRBj1HkFViMhWwTDtIN/vS22G5pT2CDkGrQ3TLfKRDnWkmwup2eN5t03P41crMB5KDoPvHzerWPtJ7cdtekbUgmcsSqHxGhCQimchopseyUEJHmEOfmSR9adjVPVa1DTredfHLiPcKu/aRNyrqRg3T/b+bAJZpW/htE9FCxBA5zOD+hx+725HCfdJn+ZPDTXE5nBGXw+9+IoeaR6h6hM/Gv4/u/Hm8s9jEIVMqUZBUX8RBpCBVSZVUsqT7g2TU6nWTJS6VsATp3CQrer50Q37qKPWYIB2+G0VJNzQYZHjR7bj1uh2JpptlnY+IcSokQUHkVO2v7Uz1vtWObka12j9dm+l96jnyNYcsl2SgIKg6QdilgyTdficzOjnT66bbj0Haw/0settVx73aNN2+03NnI4ZBTuwgHEg+iUoO092Wx4SUhx+92771P/MSN3qTSD75syIhfu1uDyMhRXL4wDBr2dXFtm43++83zC6eaPa9/0QKS1kMdT3IUKg6P3doLZ0suR3ahAkTfJ9TnVW66ECQkhZCc7vcch7pUIejx02ePNn3OdUhp+v0tG1BBFOvpf2RLvqo/an9cMoppzgdY74JEqFx299vH+t+vV+/91EuUSGdkEQxNC6Z0/4ePXq0I4DJ6PPlZsH7tYeeR+3nd7wnJ5T4tZE+v5nMxw2SdJLupBMQQ+TQ8/dDj7hS6Apd/uWwNf7gTesOssoZA+2Kfzcb/YPyTi4JUo+slLMsM5WCTJMG1CFJdIJEczraj0GiEZJCdU6ZbJvecxBxTff6QfabXiMTAXKlOp9yqNfz66wzbf8gxbfTtXupkM3nIlN0MiNhGzRokDNcrWNDohg0Wu2eeGg7/YpvJwuupDOVlCafIAUlyOc5k/cFiGGnlcOHHt4nhZ8WuvzJYW1Ls/1p1067e9N6O/WZ1fbCH8q/yYN82Zd6x6YhTL9hNjcikk3nJ0G44YYbsuowFNnzi8i5hbOzQR2QXwHdjiIiQebS6bmz6eS0z/JZwzDI0F4m7e9GboPMvczHyi1RIWHSfsnXcLheR/srm6x59/vMb3+nqhTgN79XJxVBvwf9StzoM0OJGsQQOfS5/8G4FF76h/lphC5aOdzZ2mIrGhtsVk21nfeXZXbXpqpO09xBvqBKJbuyo/cVpBZZptG4VB2LX8HcVNsRpPPLVaDUUfpF57LZNncuXi5RIr99FhZ+x7Df1AHvPpHUqs5k0Dl9hSzinS06UdLwro6LQgx56jXd13UTTNxkHrfigJs4ov3rlT0dV+mO91SRYz2f3zB0kKh4kJMpooXhQ/JJvuQwTwkpD85QpHB+QuI6TiLZn3Ri4SWk7Im12samPfZmQ51N3bTO3mnY1emaOogYZlqLLx1hlWfQF3C6SJv3fQVZ8i+M7fJLRlGH4RZWDrptYUQX1MFq29IlfaTaDr9tC2OeVNAEnlzQPk/XWbtrHneExMRNOMl22cTkdi9mIXSTpQo5B86NGKZbuzr5uPGuDa59nelx5VdkW985Gn1It1/8TgLC+q4BxLBs5fDBGffsixRakuhFLIctbTGrbtljf9m9y35Ws8Fe3L61Uze1ojbpvkSVyen3hZiJGIbxxZhJFNNPbMM6g1enpM4pnYQkC4LfMHJY26bnSSeGyfKiv/0kKIxtc6M7UdYV9BsC1PGY6tiWCKijz7bMjo4FyYb2U7EmGmgbdeKhfeCW5ikkmdZUTD7xctcGz2b+qtopXWazbk9XBFzb7nes5KNmY2eEoeR8y2G623IYVp4hKXxtviUP6yb+jGhYeUvzXvtTww776cYP7bz33+r0Uuh2zn6EscZu2FEgv84+qHyFeQbv91xeSclncXF1/n5DZd5t85MpPVdY86SijqD4HSvJdSolJnpvWvovGynUvDwNw7q1KfMlhSNHjnROnjO5uLUv9Z4LLYXuMH0YZXeyPdHwEze/DH4/CWcYGTEsTfHLgxw6UvjqfI/XRS+H9S2t9t7uXfZgzQb7elwIH9mykfbPoGMupnlSftEsb1ZikPWKw+wQ/WQpk0SesOff+W2bV6D8ZCrMyfOFFhI3S1qd9vbt253IaqbrVCtCpWxaZdXqJIoadZkLmYZx87EiUS5iqJPMjj4bft+RSCFiiBx2cP+MB6bZJa/OTxhb1HK4N9ZmHzQ12G/rttioVctsykdrrK61hXZP6hj9SjxoqLlYklD8voC9ohvm/Mh8i2EU7VwuMpcJficHkoGFCxdmFamSvKtcj1u8m2zTzFG0sliWW1R01y+LP1XUMEjSCcPIiCFymOLvB+53pdBTVDoiOWyN/9i4t8le3bnNrl77Z5uw5l1bv6eRts7hS6tYvtj8hrWZ3A2ZiGE20UHJg+pXupFGyI58rZ0e5nehTiCSjym/k1UdLxS0RgyRw6TbHvhZXAoXzf90yZgI5HDr/nmEt2/60P5xZaW9Xr+d9vVBnZvfhG0NoxS6Jlu6LEUX7zBeviNbfhHBQkaUwoyellJty7D2uaLqqlfpZsyWUtS0WAlaGN3d9x3No9Ttut9vHm0Q1K5+0zi8IkjSCWKIHGYhh/fHpfDiRfOThC58Oaxrbbb3dtfbQ1vX26hVlfbo1g20aUDckiZ+3HPPPXkfnnXRWbrfNmriv/fMPMhZej6FKRNJCbuMi9+2eUUnk/mI5S6ZivZIPPKdTFLu6BjyO8Z1surKuPZ9R6MBul336znVVn5TY/zIJAnFbwRDkslJBGKIHHrk8P77ptklCxckiV+4ctjQ2mofNO2232zbbGNWv2X//tFq2xGXRMj8yzBImQd9CQdJ6ggbRTX9JqenmvSf6RJZueD3XF7hCjLkHZaAqWP1y872bpufGOq5wjoGop67mk2nrGNG6z8rmUTRIaYnhE+QSgd6TKbRtjC+n9zSUx2hUQv3uPUbRSFaiBgih56/7793ml0cl8JEQkjIctgSf4KqvY02b2etXbvuXfv/VX9mHmEOKBISZGhHcpZvOZQU+g3XdFQOwq9TDyvjOsgE9GRJ8Rv6CmvoPsh79G5bEBEKo4SROtdM5/hFKYaK7rilZtyyNRANQYq7ZyPket4wspv9vgv1mfI7ft2i24AYIodxfjZ9mo1dsKC90IUoh9V799jS3Tts0kcr7ZI1b9kbu5hHGAZBlnYTihipw83HsLJkL0jGaEdf5H6di95LGFErP4lTJ5EsKX7bpved61CrmzGbDg3BB7ktk44zjH0WBpI7v6ixIuWKDuo4yLYjVzsVIpJermSb1BPWiZ7f0nr6bPp9BogWIoblJ39ZyuF906fbxQsWJolfOHKoIeI/N9bbfTVr7RsfLLVfb6umHUNGX6xBhpR1piyxiapzVyer5w8ihZLZjjqSIB29/jeXTl37wG++VKrtCNL55Zr1mm41h3Tb5rff1P65yKEkLNtVRbLp5NPhrvySy7HqrhxSimuLlwva92EUyBYaQfH77KX7zPsttQiIYaeRw/umxaVw/oL0K5FkIYeNbW32wZ4GeyYugt9cs9Tu3bKWeYQRRliCnnWrQ1VCigQuzCQCvb62I0gChr6A08lpkNpkkpxsI0USCu2DIIKWTNAakrlET/w6yo46sCCZ6io1kk2ERvssn0NsQSI3er/ZyqH+V5FnHUeqiajXI3qYG5l+n0RxTOUS8Sv0etOIIRSFHLpS2F7qcpPDvXEh3DePcKt9r+pdu27De7ZhL/MI8xFhUeHeoEhe1q5d63SQ2UZM1JG6QpjJKgiSQr95ZEEiW3oPep5MOvSgiQkS047mqwXZNsldplFNPa/2Yy6dX5COUa+RSdRYHbj2WT5XudC+9zs5cOfOZiKHblQ7OfKpgs1ED/3bxO+4DHq8R3VMBTlucvnOAcSwrOXwvrvvtbGJSKHlLIcqUF3d3GRv7Npmkze9b99aW2lvNGyjnfKIRCQTOXQFRhETfaHq/yVOHXW0+tJXxympkIhqOTJJRibJCFqGLEg0Tdujx/qhqI8bMU3XKSmaoW0OIrCKuqXrJLT9QeZ1at9KNvwidNqn6iSDFA5WtDKd/Gm7g5T+cKPG6UTIXYc431LofS9+EVBXDvVYPynxi2p7o4fwafxOqNQWfnLtHlPLli2L7JjKJlqv+bkkLuWPLuyCiOUwlvn998al8CInUhh/QEXMeUiFVw518/5/lvhVVHwih87t8Rv3PWYfHzfvtXXNu21u3SZ78uMNDBkXWA7dqFAmqFOUyIQ13ycVOpPPJFKlDiRI5rA6GL1ft26aOid9ybvJBeqo/Eq/JL+uXyeh9xFEmLTt2jZXsPS8bhKQti3I+0uWG7/hLj1GguOHBEmPU6a1tk3P6+43bV9Y2aK5RH+03/yG/bWNkmpd1MFr/+q96JLNe2FIOTU6sfKb/+rKtZvd6z1W1Q75mKOqY1knbpnUFeVkADHs1HJ47/5IYUL0YtnLYX2sxWqa99h/76ixhz9eZxv27qY9ikQO3YnYhV7k3kXRv0yTXvQeJE5BI1Z6jDqeXD
114ofyWuQTkLyofcTVMBd8c4F1ekLMgyux6jIcJB5lELSnIk45xO1RSZJL7m2vyS50KsFFStuUf0gkW0d74VcT1nffUHFUBJL3cv8wlByvuQwwP1OpHDewvZDwc6PTxehTjesvCfWZuv3NtqLcSH85w1v24+rVyCFRXh2rw41jCWnckFDgRrezrazDTIUGxaZSkE2Q/e5CGsmc6DUgWc716rYUPvn4zjWa+gzQwJC+uMq11VK8iWGQbeTuYWIYaeVw+lxKfzmvP3DS7GKrOSwpS1mm5ub7I+7ttm/bX7frlm/zP7IPMKixR2yVKSpELgdba4lICS5WjYrSEmeXMQrGynIhxwq2pqNHOt/ykEO1SZqmyDzOpHC6NtCUfwwP4sa/o+ibYN87+h9UNAaMeyUcjj9rnvtolcWthe/DOVwW2uzLW+ss/trP7QJ65fas3Ufsb9LBJ0RqxhwviRBX7aSUUlpWGuOutmnUUSOtK1B5u6l64DCWO811X7Uqh65DG3qfUlcw+rI8xUh7UgOgyQk5eukoDOfcGp/hXFM6fMc1YhAkCVDWUsbMSxb8Uv3mGl33WfffGWheY0vEznc1dZiK5vqbc62DXblhrfsga1rSC4pQdzMXVcQo4i+uULoLk8WxXuQHGr+XBjbryjFKaecEsq2uuIaVnRWbeRmUocROdG25RKVcSW10AWAJcmS8DAiTBJ5PVcuJwWdWQ51fPqttpMO/W+UQq4kIr+5yRS0Lgwkn0Qhh7Fgj5k29T5nTuG+OoOxfc64P8skkWwiOayIJXzSTUjZa622qbnRKndvt/tqV9uKpp3s+zISRDcjVpdcJuu7QzHuJR/oLN8traNLpokTki79f9gTzt21q73blknGsVu4Wu8v7NIZej51wm65oaBt7rav/ifbDlz/l07kMo0qu2V2Mn0v3hMC7eeopcBPXgsto7lunzusnGk7KEqoz4n3+yKskQUvfid86WqVQsQaE4vFin4j4wf1ohEjRiRSmG677TZbsWJF8W3ohk8VFuy487zzk0hhhSfduMIrj+YJMO6Xw9Z4e21t3WMr4yL48LY1Nq9+C0dxJ0Bf7ooqueU90nUGbjkY/Y7iCz1TtM3qoNJtu1vGJt/zidxSKe6+7Wh/avvymRnpnhhou1LtM+82JQtCuu90dbb5Shbyvhd3H3dUQ889Vt2SQRDdMaXjPLkd3O8L93OYj23Ra6aLGCpaXOrZyIMHD7aJEycmrr/00ks3xE94ir72DhHDyJS7Yzm8Jy6FF76y0PNF7sph+sjhtrY9tmbPLvtdfbXNqF3NPu5E5FtMwkQdQLHWISsWeU4lpNlEzPxq/BVCuvRe8hmxhnCPqShQBDOdFCpaSokaxLDTyOHdihS+vMgxwZgnQphODuvbWqy6udEW7Kqxe2pXMocQAFLit/wcc/WgGPCLWjO3sLCQfBImzXtTy2GSFMZc6bOKtGsbN8fabN2eBnupvtqu/miJ3VrzHlIIUGZoWE/RtDBW9NBQYTqKMToKnU8K083tVdIRYlhYiBiGyZ4mswMPSimHd99xn13oRAr3S6A50wZTRg7b4nfUNDfZqr077bFta2z+rhr2LUAZIQlUB6khNbeT1GT8XFf18BNDhueg0PglnSCFhYeIYZgsW5zy5rvu+FlcCl9NiJ9LqshhbeseW7Z7u02rXWmXrn8DKQQoIzTUq45Pc/20JJ43cqIlyvyGgtPhlcxURFmAGiAIio77VQJgXeTCQ8QwTD7e2oEULvpkDeNUaxvHf+yKtdrG5gZ7sX6TPbp9te1kyBig7PBbV9ot9ZLpkK+E0i8SQ/IHFJogJWqYB1t4iBiGydLXzVpa2knhmJcWJRWubr+2seYRrtm7y16ur7bLN/7R7q79C1IIUKb4RUMkjW4x7kyk0E84BUN0UEhUJuess87KSRwBMSw95j5lVr3B+XPq7ffHpfDVT4QwSQ5b43991Nxob+zeajdvfsv+uXqJbWzezT4EKHMx9FsVRoK3bNkyp5NMVVvR29Hq+fRYPykkEgOFxk/6NNWBGpbFAUPJYbIz/sX70FT719gRNuaNd/cNE1fsHz42N9nEbHNLk33U0mC/3lllT9WtZb8BdBIkZ0o6mTt3ru9jJ02a5FySa7q5BaODrigjEc01qQUgF3QSM378eN+TJkAMy5PZD9iWvz7dVjZ3t76f6WYHVRzgzCdstTZraGuJS+Fue3HXJnt6x1rb2caQMUBnQ3P9FMHz6yhdNPzmNwSXjlyWywMIA7+6hSpRwxxYxLCseWTN6/bigT3svB6ft8Fd99Umq2rZZR/urbdFDZsRQgA6Sud3UDnM+jx1/7rTAIVCEW6/iDXRQsSwU/BRc4M9UreKHQEABZHDQqyLDJCMamummwOrqQ6cvBQXJJ8AABRQDidPnhz68+o5kUIoBoIUtGaqA2IIAACejvOUU04JpQC1nkPPRdkPKJYTHwpalx4MJQMAFBgVtFamsS6aj3XBBRdk9P/PP/+808Gy5B0UE4oEpouIqzwNJWoQQwAA6ACJnS5uSRoVr9ZF11N1qO7jAYoRZRqTbYwYAgBAjijSQqcKAIWAOYYAAAAAgBgCAAAAAGIIAAAAAIghAAAAAJSsGDY2Nq6mqQAAAKBUOPHEExHDqNizZ8973ut+BTMBAAAACkmPHj3aXW9sbJyLGIZE8s5EDAEAAKCY8UYM4x4Te/rpp6sQw5DQzty2bVuLe33w4MEccQAAAFCUdO/evV0Qq6qqqqZUtr1kkk82btyYMO0+ffoghwAAAFCUDB8+vN312traNxHDkNmyZcuvvdfPPPNMjjwAAAAoOs4999x217dv334XYhgyjz322C3e4WSJ4ec+9zmOPgAAACgaNKLpHUZeu3Zt3VNPPfU/iGEEfPDBB697r1922WUcgQAAAFA0XHPNNe2ur1q1anIpbX9JiWF1dfV4Zfa414cNG8aQMgAAABQFY8aMcfIgXBQtnDVr1jTEMCKUnbx48eLHvbcpakj5GgAAACgkSjiRGHoptWhhyYmheOihh66UgbvXlRL+4x//GDkEAACAgiAHSR5CrqysXF5q0cKSFEPx9ttvD/UmoiCHAAAAUAiUbCIHkYu4VFdXN06dOvWUUnw/JSmGGlJ+8803v+2db+jKIXMOAQAAIB9o6HjixImfksLFixefWKrvqSIWi5Vsg4wbN27syJEj53Tr1q3Ce3tlZaU98cQTtnXrVo5aAAAACBVFCeMO8qmRSo1mKnD15JNPPo0YFlAOTz311J8fdthhXZLve+2115zLihUrOIoBAAAgJ5RgouLV3nWQXdxIYamsiVy2YijGjh07YMiQIcsHDRrUK9X9tbW1jhxWVVU5F6FoIhFFAAAASEaRwB49eiT+VoRQMugdMvaiRJMNGzaMKnUpLBsxdLn66qsfHTFixHeSh5YBAAAAwkZDx0uWLLm5FLOPO4UYCkUP+/XrN/vYY489PdXwMgAAAECuQvjOO+/MVgm9cntvZSeGXq644or/6Nu37zf79+8/AEkEAACAbNEcwk2bNq2sqam5vZSTSzq1GHpRJLFbt26ju3btelL89zEc4gAAAJCO+vr6P7a2ttY0NjbOLYf5g4ghAAAAAATmAHYBAAAAACCGAAAAAIAYAgAAAABiCAAAAACIIQAAAAAghgAAAACAGAIAAAAAYggAAAAAiCEAAAAAIIYAAAAAgBgCAAAAAGIIAAAAAIghAAAAACCGAAAAAIAYAgAAAABiCAAAAACIIQAAAAAghgAAAACAGAIAAAAAYggAAAAAiCEAAAAAIIYAAAAAgBgCAAAAAGIIAAAAAIghAAAAACCGAAAAAIAYAgAAAABiCAAAAACIIQAAAAAghgAAAACAGAIAAAAAYggAAAAAiCEAAAAAIIYAAAAAgBgCAAAAAGIIAAAAAIghAAAAACCGAAAAAIAYAgAAAABiCAAAAABlwv8KMADLbPZ1PyQJdgAAAABJRU5ErkJggg==`,fg=({byWidth:e,...t})=>(0,K.jsx)(`img`,{style:{width:`100%`,height:`100%`},...t,src:dg}),pg=({fill:e})=>
114(0,K.jsx)(`svg`,{viewBox:`0 0 14 10`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,children:(0,K.jsx)(`g`,{id:`Symbols`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,children:(0,K.jsx)(`g`,{id:`checkbox-on`,transform:`translate(-5.000000, -7.000000)`,fill:e||`#FFFFFF`,children:(0,K.jsx)(`path`,{d:`M5.71637809,12.8811328 C5.3207334,12.5007052 5.32470703,11.8800894 5.71640491,11.5034568 L5.68359509,11.5350047 C6.07925459,11.1545629 6.71947598,11.1533423 7.11986139,11.5383283 L10,14.3076923 L16.8850105,7.68748995 C17.2798883,7.30779974 17.924707,7.3122183 18.3164049,7.68885088 L18.2835951,7.65730297 C18.6792546,8.0377448 18.6796852,8.65414881 18.2787059,9.03970591 L10.7212941,16.3064479 C10.3229344,16.6894862 9.67193604,16.6845539 9.28362191,16.3111749 L5.71637809,12.8811328 Z`,id:`Shape`})})})}),mg=()=>(0,K.jsx)(`svg`,{viewBox:`0 0 12 11`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,children:(0,K.jsx)(`g`,{id:`Symbols`,stroke:`none`,strokeWidth:`1`,fill:`none`,fillRule:`evenodd`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,K.jsx)(`g`,{id:`checkbox-on`,transform:`translate(-6.000000, -6.000000)`,strokeWidth:`2`,stroke:`#FFFFFF`,children:(0,K.jsx)(`polyline`,{id:`Checkmark`,points:`7.5 12 11.1428571 16 17 7.5`})})})}),hg={display:`flex`,alignItems:`center`,justifyContent:`center`},gg={width:`100%`,maxHeight:`100%`},_g={height:`100%`,maxWidth:`100%`},vg={"& svg":{width:`100%`,height:`100%`}},Ide={width:`4em`,maxWidth:`4em`},Lde=({onClick:e,disabled:t})=>t?`not-allowed`:e?`pointer`:`inherit`,Y=e=>{let{children:t,component:n,byHeight:r,byWidth:i,color:a,height:o,width:s,inlineBlock:c,disabled:l,onClick:u,iconId:d,margin:f,src:p,style:m={}}=e,h=c&&`inline-block`,g=Lde({onClick:u,disabled:l}),_={...m,margin:f,minWidth:0,minHeight:0,height:o,width:s,display:h,cursor:g},v=n||`div`,y=p?(0,K.jsx)(`img`,{style:_,src:p||``}):t||null,b=(0,B.useCallback)(e=>{d&&rd(d,{component:`Icon`}),u&&u(e)},[u,d]);return(0,K.jsx)(I,{component:v,style:_,...u&&!l?{onClick:b}:{},"data-testid-icon-has-click":!!u,"data-testid-icon-id":d,sx:{color:a,...hg,...(!!i||!!r)&&vg,...!!i&&gg,...!!r&&_g,...!!r&&!!i&&Ide},children:y})},Rde=Object.assign({"./svgr/Add.jsx":km,"./svgr/AddTask.jsx":jm,"./svgr/AlertRed.jsx":Nm,"./svgr/Archive.jsx":Fm,"./svgr/ArrowDown.jsx":fne,"./svgr/ArrowGreyLeft.jsx":mne,"./svgr/ArrowGreyRight.jsx":gne,"./svgr/ArrowUp.jsx":vne,"./svgr/BackArrowCompact.jsx":bne,"./svgr/BigGreenTick.jsx":Sne,"./svgr/Bigcheck.jsx":wne,"./svgr/Bigtick.jsx":Ene,"./svgr/DefaultView.jsx":One,"./svgr/Delete.jsx":Ane,"./svgr/Drag.jsx":Mne,"./svgr/DragArrow.jsx":Pne,"./svgr/Duplicate.jsx":Ine,"./svgr/Edit.jsx":Rne,"./svgr/Expand.jsx":Bne,"./svgr/ExternalLink.jsx":Hne,"./svgr/GetClearingLogo.jsx":Wne,"./svgr/Ic16PxCheck.jsx":Kne,"./svgr/IcActive.jsx":Jne,"./svgr/IcActiveProblemReported.jsx":Xne,"./svgr/IcAirbnb.jsx":Qne,"./svgr/IcAirbnb2.jsx":ere,"./svgr/IcApartment.jsx":nre,"./svgr/IcApp.jsx":ire,"./svgr/IcAtLocation.jsx":ore,"./svgr/IcBack.jsx":cre,"./svgr/IcBadge1.jsx":ure,"./svgr/IcBadgeChecklist.jsx":fre,"./svgr/IcBadgeChecklistBig.jsx":mre,"./svgr/IcBadgeExperienced.jsx":gre,"./svgr/IcBadgeExperiencedBig.jsx":vre,"./svgr/IcBadgeFastresponder.jsx":bre,"./svgr/IcBadgeFastresponderBig.jsx":Sre,"./svgr/IcBadgeLoved.jsx":wre,"./svgr/IcBadgeLovedBig.jsx":Ere,"./svgr/IcBadgeProperly101.jsx":Ore,"./svgr/IcBadgeProperly101Big.jsx":Are,"./svgr/IcBadgePunctual.jsx":Mre,"./svgr/IcBadgePunctualBig.jsx":Pre,"./svgr/IcBank.jsx":Ire,"./svgr/IcBath.jsx":Rre,"./svgr/IcBeds.jsx":Bre,"./svgr/IcBgPhonedl.jsx":Hre,"./svgr/IcBigBookings.jsx":Wre,"./svgr/IcBigJobs.jsx":Kre,"./svgr/IcBigJobsOrange.jsx":Jre,"./svgr/IcBigProfile.jsx":Xre,"./svgr/IcBigProperties.jsx":Qre,"./svgr/IcBigProperties2.jsx":eie,"./svgr/IcBigPropertiesGrey.jsx":nie,"./svgr/IcBigSent.jsx":iie,"./svgr/IcCalendar.jsx":oie,"./svgr/IcCamera.jsx":cie,"./svgr/IcCamera2.jsx":uie,"./svgr/IcCamera3.jsx":pie,"./svgr/IcCameraSolid.jsx":hie,"./svgr/IcCameraWhite.jsx":_ie,"./svgr/IcCameraWhiteFilled.jsx":yie,"./svgr/IcCancel.jsx":xie,"./svgr/IcCardAmex.jsx":Cie,"./svgr/IcCardDiners.jsx":Tie,"./svgr/IcCardDiscover.jsx":Die,"./svgr/IcCardJcb.jsx":kie,"./svgr/IcCardMastercard.jsx":jie,"./svgr/IcCardVisa.jsx":Nie,"./svgr/IcCheckFinished.jsx":Fie,"./svgr/IcCheckOrange.jsx":Lie,"./svgr/IcCheckWhite.jsx":zie,"./svgr/IcChecked.jsx":Vie,"./svgr/IcCheckedCheckbox.jsx":Uie,"./svgr/IcCheckicon.jsx":Gie,"./svgr/IcChecklistLibrary.jsx":qie,"./svgr/IcChecklistPin.jsx":Yie,"./svgr/IcChecklistSlides.jsx":Zie,"./svgr/IcChecklistUser.jsx":$ie,"./svgr/IcChevron.jsx":tae,"./svgr/IcCircularExclamation.jsx":rae,"./svgr/IcClock.jsx":aae,"./svgr/IcClock2.jsx":sae,"./svgr/IcClose.jsx":lae,"./svgr/IcClose2.jsx":dae,"./svgr/IcCloseCc.jsx":pae,"./svgr/IcCloseLightGray.jsx":hae,"./svgr/IcClosePrimary.jsx":_ae,"./svgr/IcCloseSlider.jsx":yae,"./svgr/IcCloseWhite.jsx":xae,"./svgr/IcCloseWhite2.jsx":Cae,"./svgr/IcComment.jsx":Tae,"./svgr/IcComment2.jsx":Dae,"./svgr/IcComments.jsx":kae,"./svgr/IcCompany.jsx":jae,"./svgr/IcCompanyCreate.jsx":Nae,"./svgr/IcCompanyNew.jsx":Fae,"./svgr/IcConnect.
114jsx":Lae,"./svgr/IcContacts.jsx":zae,"./svgr/IcCopyWhite.jsx":Vae,"./svgr/IcCostCapture.jsx":Uae,"./svgr/IcDefaultSettings.jsx":Gae,"./svgr/IcDeskstopicon.jsx":qae,"./svgr/IcDeskstopiconwhite.jsx":Yae,"./svgr/IcDisconnect.jsx":Zae,"./svgr/IcDockUndock.jsx":$ae,"./svgr/IcDollar.jsx":toe,"./svgr/IcDownArrow.jsx":roe,"./svgr/IcDownArrowThin.jsx":aoe,"./svgr/IcDownloadImage.jsx":soe,"./svgr/IcDrag.jsx":loe,"./svgr/IcDuplicate.jsx":doe,"./svgr/IcDuplicate2.jsx":poe,"./svgr/IcDuplicateWhite3.jsx":hoe,"./svgr/IcEditGrey.jsx":_oe,"./svgr/IcEditPencil.jsx":yoe,"./svgr/IcEditPencilCircle.jsx":xoe,"./svgr/IcEditPencilPrimary.jsx":Coe,"./svgr/IcEditicon.jsx":Toe,"./svgr/IcEmail.jsx":Doe,"./svgr/IcEmptyAdd.jsx":koe,"./svgr/IcError1.jsx":joe,"./svgr/IcError404.jsx":Noe,"./svgr/IcError500.jsx":Foe,"./svgr/IcEvent.jsx":Loe,"./svgr/IcExpandLess.jsx":zoe,"./svgr/IcExpandMore.jsx":Voe,"./svgr/IcExpandMore2.jsx":Uoe,"./svgr/IcExpandMore3.jsx":Goe,"./svgr/IcExpandMore4.jsx":qoe,"./svgr/IcExport.jsx":Yoe,"./svgr/IcFacebook.jsx":Zoe,"./svgr/IcGoLeft.jsx":$oe,"./svgr/IcGoRight.jsx":tse,"./svgr/IcGradient.jsx":rse,"./svgr/IcGradientGrey.jsx":ase,"./svgr/IcGradientPopover.jsx":sse,"./svgr/IcGradientWhite.jsx":lse,"./svgr/IcGrid.jsx":dse,"./svgr/IcHelp.jsx":pse,"./svgr/IcInfocvv.jsx":hse,"./svgr/IcItemCheck.jsx":_se,"./svgr/IcItemCheck2.jsx":yse,"./svgr/IcJobs.jsx":xse,"./svgr/IcLeftArrow.jsx":Cse,"./svgr/IcLeftArrowDetailView.jsx":Tse,"./svgr/IcLeftChevron.jsx":Dse,"./svgr/IcLeftDoubleChevron.jsx":kse,"./svgr/IcLightbulb.jsx":jse,"./svgr/IcMailSolid.jsx":Nse,"./svgr/IcMenu.jsx":Fse,"./svgr/IcMerge.jsx":Lse,"./svgr/IcMessageSolid.jsx":zse,"./svgr/IcMessageSolid2.jsx":Vse,"./svgr/IcMessenger.jsx":Use,"./svgr/IcMinus.jsx":Gse,"./svgr/IcMissingFeedback.jsx":qse,"./svgr/IcMoreGrey.jsx":Yse,"./svgr/IcMorePrimary.jsx":Zse,"./svgr/IcMoreWhite.jsx":$se,"./svgr/IcMove.jsx":tce,"./svgr/IcNext.jsx":rce,"./svgr/IcNoPhoto.jsx":ace,"./svgr/IcNotAtLocation.jsx":sce,"./svgr/IcNotifications.jsx":lce,"./svgr/IcOrbirental.jsx":dce,"./svgr/IcPassword.jsx":pce,"./svgr/IcPassword2.jsx":hce,"./svgr/IcPayment1.jsx":_ce,"./svgr/IcPayment2.jsx":yce,"./svgr/IcPayment3.jsx":xce,"./svgr/IcPhotosJobdetails.jsx":Cce,"./svgr/IcPin2.jsx":Tce,"./svgr/IcPinCleanglass.jsx":Dce,"./svgr/IcPinCustom.jsx":kce,"./svgr/IcPinDisinfect.jsx":jce,"./svgr/IcPinDust.jsx":Nce,"./svgr/IcPinEmptytrash.jsx":Fce,"./svgr/IcPinFind.jsx":Lce,"./svgr/IcPinIron.jsx":zce,"./svgr/IcPinLighton.jsx":Vce,"./svgr/IcPinLock.jsx":Uce,"./svgr/IcPinMop.jsx":Gce,"./svgr/IcPinRefill.jsx":qce,"./svgr/IcPinScrub.jsx":Yce,"./svgr/IcPinSeal.jsx":Zce,"./svgr/IcPinStage.jsx":$ce,"./svgr/IcPinStripreplace.jsx":tle,"./svgr/IcPinSweep.jsx":rle,"./svgr/IcPinUnlock.jsx":ale,"./svgr/IcPinVacuum.jsx":sle,"./svgr/IcPinWash.jsx":lle,"./svgr/IcPinWater.jsx":dle,"./svgr/IcPinWipe.jsx":ple,"./svgr/IcPinclickFre.jsx":hle,"./svgr/IcPinclickFre2.jsx":_le,"./svgr/IcPlus.jsx":yle,"./svgr/IcPlus2.jsx":xle,"./svgr/IcPlusOrange.jsx":Cle,"./svgr/IcPlusWhite.jsx":Tle,"./svgr/IcPrint.jsx":Dle,"./svgr/IcProfile.jsx":kle,"./svgr/IcProfile2.jsx":jle,"./svgr/IcProperties.jsx":Nle,"./svgr/IcReceipts.jsx":Fle,"./svgr/IcReplacePic.jsx":Lle,"./svgr/IcRightArrow.jsx":zle,"./svgr/IcRightArrowDetailView.jsx":Vle,"./svgr/IcRightChevron.jsx":Ule,"./svgr/IcRightDoubleChevron.jsx":Gle,"./svgr/IcRooms.jsx":qle,"./svgr/IcRotateLeft.jsx":Yle,"./svgr/IcRotateRight.jsx":Rm,"./svgr/IcSave.jsx":Qle,"./svgr/IcSearch.jsx":eue,"./svgr/IcSelectPhoto.jsx":nue,"./svgr/IcSelectedPhoto2.jsx":iue,"./svgr/IcSelectedPhotoBlank.jsx":oue,"./svgr/IcSendMessage.jsx":cue,"./svgr/IcSent.jsx":uue,"./svgr/IcSettings.jsx":fue,"./svgr/IcShare.jsx":mue,"./svgr/IcSharedwith.jsx":gue,"./svgr/IcSmCloseBlue.jsx":vue,"./svgr/IcSmCloseOrange.jsx":bue,"./svgr/IcSmDuplicate.jsx":Sue,"./svgr/IcSmFilter.jsx":wue,"./svgr/IcSmFind.jsx":Eue,"./svgr/IcSmFindWhite.jsx":Oue,"./svgr/IcSmReplace.jsx":Aue,"./svgr/IcSmText.jsx":Mue,"./svgr/IcSmVerify2.jsx":Pue,"./svgr/IcStroke.jsx":Iue,"./svgr/IcSubscription.jsx":Rue,"./svgr/IcSync.jsx":Bue,"./svgr/IcTag.jsx":Hue,"./svgr/IcTaskRemain.jsx":Wue,"./svgr/IcTemplate.jsx":Kue,"./svgr/IcTemplatePopover2.jsx":Jue,"./svgr/IcTextPlus.jsx":Xue,"./svgr/IcTextPopover.jsx":Que,"./svgr/IcTextWhite.jsx":ede,"./svgr/IcThumbDown.jsx":nde,"./svgr/IcThumbUp.jsx":ide,"./svgr/IcThumbsDown2.jsx":ode,"./svgr/IcThumbsDown3.jsx":cde,"./svgr/IcThumbsUp2.jsx":ude,"./svgr/IcThumbsUp3.jsx":fde,"./svgr/IcTimeArrow.jsx":mde,"./svgr/IcTrash.jsx":gde,"./svgr/IcTrash2.jsx":vde,"./svgr/IcTrash3.jsx":bde,"./svgr/IcTrash4.jsx":Sde,"./svgr/IcTrashSolid.jsx":wde,"./svgr/IcTrashWhite.jsx":Ede,"./svgr/IcTwitter.jsx":Ode,"./svgr/IcUndefAtLocation.jsx":Ade,"./svgr/IcUpload.jsx":Mde,"./svgr/IcVisibility.jsx":Pde,"./svgr/IcVisibilityOff.jsx":zm,"./svgr/IcWarning.jsx":Vm,"./svgr/IcWarningEvent.jsx":Um,"./svgr/IcWarningProblems.jsx":Gm,"./svgr/IcWarningUnfinished.jsx":qm,"./svgr/IcXIcon.jsx":Ym,"./svgr/Jobs.jsx":Zm,"./svgr/Logo.jsx":$m,"./svgr/Logoproperly.jsx":th,"./svgr/NavAutoscheduling.jsx":rh,"./svgr/NavCalendar.jsx":ah,"./svgr/NavContacts.jsx":sh,"./svgr/NavProperties.jsx":lh,"./svgr/NavReports.jsx":dh,"./svgr/NavSettings.jsx":ph,"./svgr/NavTodos.jsx":hh,"./svgr/NextArrowCompact.jsx":_h,"./svgr/Photo.jsx":yh,"./svgr/Pin.jsx":xh,"./svgr/Plogo.jsx":Ch,"./svgr/PlogoTeal.jsx":Th,"./svgr/Preview.jsx":Dh,"./svgr/ReportproblemRemoveImage.jsx":kh,"./svgr/SadFace.jsx":jh,"./svgr/StripeConnect.jsx":Nh,"./svgr/StripeLogo.jsx":Fh,"./svgr/TableEmailExport.jsx":Lh,"./svgr/TableExport.jsx":zh,"./svgr/TablePrint.jsx":Vh,"./svgr/TeamIcon.jsx":Uh,"./svgr/Unarchive.jsx":Gh,"./svgr/Unpin.jsx":qh,"./svgr/WarningTriangleIcon.jsx":Yh});
114Zh.forEach(e=>{let t=Rde[`./svgr/${e}.jsx`];if(t&&t.default){let n=t.default;Y[e]=({...t})=>(0,K.jsx)(Y,{iconId:e,...t,children:(0,K.jsx)(n,{color:t.color,style:{pointerEvents:`none`,...t.style}})})}}),Y.Logo=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)(Qh,{})}),Y.LogoFull=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)($h,{})}),Y.LightBulb=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)(eg,{})}),Y.Search=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)(tg,{})}),Y.SearchWhite=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)(tg,{fill:`#fff`})}),Y.Sent=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)(ng,{})}),Y.IllustrationTablet=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)(rg,{})}),Y.IllustrationHouse=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)(ig,{})}),Y.IllustrationCompany=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)(ag,{})}),Y.IllustrationImportant=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)(og,{})}),Y.IllustrationRadar=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)(sg,{})}),Y.AppBadgeIOS=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)(cg,{})}),Y.AppBadgeIOSType2=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)(ug,{...e})}),Y.AppBadgeAndroid=e=>(0,K.jsx)(Y,{...e,children:(0,K.jsx)(fg,{...(0,Pf.default)(e,[`byWidth`,`byHeight`])})}),Y.Checked=e=>(0,K.jsx)(Y,{...e,height:`16px`,width:`14px`,children:(0,K.jsx)(pg,{})}),Y.CheckedWhite=e=>(0,K.jsx)(Y,{...e,height:`11px`,width:`12px`,children:(0,K.jsx)(mg,{})}),Y.propTypes={style:V.default.shape({}),byWidth:V.default.bool,byHeight:V.default.bool,height:V.default.string,width:V.default.string,color:V.default.string,disabled:V.default.bool,onClick:V.default.func,src:V.default.string};var yg=class extends B.Component{constructor(e){super(e),k(this,`returnToFirst`,(e,t)=>e+1===t?0:e+1),k(this,`returnToLast`,(e,t)=>e-1==-1?t-1:e-1),k(this,`handleNext`,()=>{let{emblaApi:e,images:t,onIndexChange:n}=this.props,r=t.length,{activeStep:i}=this.state;if(e){let t=this.returnToFirst(i,r);e.scrollTo(t),this.setState({activeStep:t}),n(t)}}),k(this,`handleBack`,()=>{let{emblaApi:e,images:t,onIndexChange:n}=this.props,{activeStep:r}=this.state,i=t.length;if(e){let t=this.returnToLast(r,i);e.scrollTo(t),this.setState({activeStep:t}),n(t)}}),k(this,`renderImage`,e=>{let{rotation:t,height:n,magnify:r}=this.props,i={display:`block`,maxWidth:`100%`,overflow:`hidden`,width:`auto`,margin:`0 auto`},a=t===0?``:`a_${t}`,o=iu(e.image,a,``);if(r)return(0,K.jsx)(Gn,{height:(Number.isNaN(Number(n))?0:n)-200,width:`auto`,src:o,zoomImgSrc:o,alt:e.image,style:i,mgWidth:250,mgHeight:250});let s={height:(Number.isNaN(Number(n))?0:n)-200,...i};return(0,K.jsx)(`img`,{src:o,alt:e.image,style:s})}),this.state={activeStep:0,requestNextImage:!1,requestPreviousImage:!1}}componentDidMount(){let{startingIndex:e}=this.props;this.setState({activeStep:e})}componentDidUpdate(e){let{requestNextImage:t,requestPreviousImage:n,activeStep:r}=this.state,{onRequestHandled:i,downloadImageHandler:a,downloadImage:o,images:s,propertyTitle:c,jobTitle:l,emblaApi:u}=this.props;t&&this.handleNext(),n&&this.handleBack(),o&&a&&(dne(iu(s[r].image,``,`jpg`,s[r].date),`${l}-${c}-${r}.jpg`),a()),u&&!e.emblaApi&&r!==0&&u.scrollTo(r,!1),(t||n)&&i()}static getDerivedStateFromProps(e,t){let{requestNextImage:n,requestPreviousImage:r}=e;return n===t.requestNextImage?r===t.requestPreviousImage?null:{requestPreviousImage:r}:{requestNextImage:n}}render(){let{theme:e,images:t,magnify:n,emblaRef:r}=this.props,{activeStep:i}=this.state,a=t.length,o={pointerEvents:n?`auto`:null};return(0,K.jsxs)(I,{sx:{maxWidth:`1440px`,flexGrow:1,position:`relative`,margin:`0 auto`},children:[(0,K.jsx)(`div`,{ref:r,style:{overflow:`hidden`},children:(0,K.jsx)(`div`,{style:{display:`flex`},children:t.map((e,t)=>(0,K.jsx)(`div`,{style:{flex:`0 0 100%`,minWidth:0,...n?{display:`flex`,justifyContent:`center`}:{}},children:Math.abs(i-t)<=2?this.renderImage(e):null},e.image))})}),(0,K.jsx)(I,{sx:{background:`transparent`,height:`100%`,maxWidth:`calc(100% + 128px)`,position:`absolute`,top:0,left:0,right:0,bottom:0,display:`flex`,alignItems:`flex-end`,pointerEvents:n?`none`:null},children:(0,K.jsx)(dt,{steps:a,position:`static`,activeStep:i,sx:{background:`transparent !important`,width:`100%`,height:`100%`,"& .MuiMobileStepper-dot":{backgroundColor:`var(--color-white)`},"& .MuiMobileStepper-dotActive":{backgroundColor:Wp},"& .MuiMobileStepper-dots":{alignSelf:`flex-end`,marginBottom:`-60px`}},nextButton:(0,K.jsx)(dn,{style:o,sx:{padding:`4px 5px !important`,borderRadius:`4px !important`,minHeight:`32px`,backgroundColor:`rgba(0, 0, 0, 0.26)`},size:`small`,onClick:this.handleNext,children:e.direction===`rtl`?(0,K.jsx)(dr,{sx:{fontSize:24}}):(0,K.jsx)(Pr,{sx:{fontSize:24}})}),backButton:(0,K.jsx)(dn,{style:o,sx:{padding:`4px 5px !important`,borderRadius:`4px !important`,minHeight:`32px`,backgroundColor:`rgba(0, 0, 0, 0.26)`},size:`small`,onClick:this.handleBack,children:e.direction===`rtl`?(0,K.jsx)(Pr,{sx:{fontSize:24}}):(0,K.jsx)(dr,{sx:{fontSize:24}})})})})]})}};yg.propTypes={theme:V.default.shape({}).isRequired,images:V.default.arrayOf(V.default.shape({})).isRequired,onIndexChange:V.default.func,startingIndex:V.default.number,onRequestHandled:V.default.func.isRequired,rotation:V.default.number,magnify:V.default.bool,emblaRef:V.default.oneOfType([
114V.default.func,V.default.shape({current:V.default.any})]),emblaApi:V.default.shape({})},yg.defaultProps={onIndexChange:()=>{},startingIndex:0,rotation:0,magnify:!1};var zde=e=>{let{startingIndex:t,onIndexChange:n,...r}=e,i=D(),[a,o]=pn({loop:!1,direction:i.direction===`rtl`?`rtl`:`ltr`});(0,B.useEffect)(()=>{o&&t!==void 0&&o.scrollTo(t,!1)},[o,t]);let s=(0,B.useCallback)(()=>{if(!o)return;let e=o.selectedScrollSnap();n&&n(e)},[o,n]);return(0,B.useEffect)(()=>{if(o)return o.on(`select`,s),()=>{o.off(`select`,s)}},[o,s]),(0,K.jsx)(yg,{...r,startingIndex:t,onIndexChange:n,theme:i,emblaRef:a,emblaApi:o})},bg={top:0,right:0,left:0,bottom:0,backgroundRepeat:`no-repeat`,backgroundPosition:`center center`,backgroundSize:`cover`,height:`100%`},Bde={"image--round":{borderRadius:`3px`},"image--team":{borderRadius:`5px`,height:`88px`,width:`88px`,position:`relative`,backgroundColor:`var(--color-grey-light)`},"image--company":{borderRadius:`5px`,height:`120px`,width:`120px`,position:`relative`,backgroundColor:`var(--color-grey-light)`}},xg=e=>e?e.reduce((e,t)=>({...e,...Bde[t]}),{}):{},Sg=({children:e,image:t,type:n})=>(0,K.jsx)(I,{sx:{...bg,...xg(n),backgroundImage:`url("${t}")`},children:e});Sg.Circle=({children:e,image:t,type:n,size:r})=>{let i=`${r||200}px`;return(0,K.jsx)(I,{sx:{...bg,...xg(n),width:i,height:i,borderRadius:`50%`,backgroundImage:`url("${t}")`},children:e})},Sg.Rectangular=({children:e,image:t,type:n,width:r,height:i,borderRadius:a})=>(0,K.jsx)(I,{sx:{...bg,...xg(n),width:r||`180px`,height:i||`135px`,borderRadius:a||`14px`,backgroundImage:`url("${t}")`},children:e}),Sg.Small=({pic:e})=>(0,K.jsx)(I,{sx:{height:`48px`,width:`48px`,borderRadius:`8px`,backgroundColor:`var(--color-checklist-grey)`,backgroundSize:`cover`,backgroundPosition:`center center`,...au(e,nu.SMALL)}}),Sg.propTypes={children:V.default.node,image:V.default.string,type:V.default.arrayOf(V.default.oneOf([`image--round`,`image--team`,`image--company`]))};
114var Cg=({children:e=null,rightSider:t=null,rightSiderStyle:n={}})=>(0,K.jsxs)(I,{sx:{position:`relative`,px:2,display:`flex`,alignItems:`stretch`,gap:.5,"&::after":{content:`""`,position:`absolute`,bottom:0,left:0,right:0,height:`1px`,bgcolor:`var(--color-border)`}},children:[e,t&&(0,K.jsx)(I,{sx:{position:`absolute`,right:12,top:0,bottom:0,display:`flex`,alignItems:`center`,...n},children:t})]});Cg.propTypes={children:V.default.node,rightSider:V.default.node,rightSiderStyle:V.default.shape({})};var wg=e=>{let{component:t,componentPropsFunc:n=()=>({}),onClick:r=()=>{},active:i=!1,children:a=null,"data-testid":o=null}=e,s=t||Yg,c=t?n(e):{type:i?`medium`:`grey`};return(0,K.jsx)(I,{component:`div`,onClick:(0,B.useCallback)(e=>{ad(o||(typeof a==`string`?a:`tab`),typeof a==`string`?a:o||`tab`,{component:`TabBar.Item`,wasActive:i}),r(e)},[r,o,a,i]),"data-testid":o,sx:{cursor:`pointer`,display:`flex`,alignItems:`center`,position:`relative`,px:1.5,py:t?0:1.5,borderRadius:1,transition:`all 0.2s cubic-bezier(0.4, 0, 0.2, 1)`,"&::after":{content:`""`,position:`absolute`,bottom:0,left:0,right:0,height:`2px`,bgcolor:i?`primary.main`:`transparent`,transition:`background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1)`,zIndex:1},"&:hover":{bgcolor:`action.hover`,"&::after":{bgcolor:i?`primary.main`:`grey.500`}},"&:active":{bgcolor:`action.selected`}},children:(0,K.jsx)(s,{...c,children:a})})};wg.propTypes={component:V.default.elementType,componentPropsFunc:V.default.func,onClick:V.default.func,active:V.default.bool,children:V.default.node,"data-testid":V.default.string},Cg.Item=wg;var Vde=()=>{},Hde=gn.create(Un),Tg=({height:e=300,width:t=500,title:n,actionsLeft:r,actionsRight:i,onClose:o,show:s,headerChildren:c=()=>{},children:l,block:u,contentTheme:d,variableContentHeight:f,childrenContainerClassName:p,...m})=>{let h=(0,B.useRef)(s);(0,B.useEffect)(()=>{s&&!h.current&&od(m[`data-testid`]||n||`modal`,Ju.OPEN,{component:`Modal`,has_title:!!n}),h.current=s},[s,m,n]);let g={width:t,height:e},_=n?(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,p:3,height:`72px`,width:`100%`,borderBottom:`1px solid var(--color-gray-200)`},children:[(0,K.jsx)(Jg,{type:`medium nomargin`,children:n}),c()]}):null,v=r||[],y=i||[],b=({label:e,action:t,disabled:n})=>(0,K.jsx)(q,{types:[`size-medium`,n?`type-flat-grey`:`type-flat-primary`],onClick:!n&&t||Vde,children:e},e),x=(v&&v.length>0||y&&y.length>0)&&(0,K.jsxs)(I,{sx:{width:`100%`,bottom:0,display:`flex`,alignItems:`center`,justifyContent:`space-between`,background:`var(--color-white)`,height:`50px`,textAlign:`right`,borderTop:`1px solid var(--color-gray-200)`},children:[(0,K.jsx)(I,{sx:{display:`flex`},children:v.map(e=>b(e))}),(0,K.jsx)(I,{sx:{display:`flex`},children:y.map(e=>b(e))})]})||null;return(0,K.jsx)(a,{"data-testid":m[`data-testid`],sx:{outline:`none`,display:`flex`,justifyContent:`center`,m:1.5,alignItems:`center`,zIndex:100},open:s,onClose:o,slotProps:{backdrop:{sx:{backgroundColor:`rgba(0, 0, 0, 0.5)`}}},children:(0,K.jsxs)(Hde,{"data-theme":d,variants:wd,initial:`hidden`,animate:`visible`,exit:`exit`,transition:bd.snappy,sx:{position:`absolute`,overflowY:`auto`,maxHeight:`100%`,maxWidth:`100%`,outline:`none`,borderRadius:`7px`,display:u?`block`:`flex`,justifyContent:`center`,alignItems:`center`,boxShadow:`0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--color-border)`,"&::-webkit-scrollbar":{width:0,background:`transparent`}},style:g,children:[_,(0,K.jsx)(I,{sx:{padding:u?`0`:`24px`,minHeight:f?`80%`:``,height:f?`auto`:`100%`,width:`100%`},className:p,children:l}),x]})})},Eg=V.default.arrayOf(V.default.shape({action:V.default.func.isRequired,label:V.default.string.isRequired,bold:V.default.bool}));
114Tg.propTypes={onClick:V.default.func,onClose:V.default.func,actionsLeft:Eg,actionsRight:Eg,show:V.default.bool.isRequired,height:V.default.oneOfType([V.default.number,V.default.oneOf([`auto`])]),width:V.default.number,contentTheme:V.default.oneOf([`light`,`dark`]),children:V.default.node,childrenContainerClassName:V.default.string};var Ude={fontFamily:`var(--primaryFont)`,color:`var(--color-model-headline)`,fontWeight:500,fontSize:`18px`,lineHeight:`24px`},Wde={fontFamily:`var(--primaryFont)`,marginTop:`var(--space-tiny)`,color:`var(--color-loading-txt)`,fontWeight:`normal`,fontSize:`16px`,lineHeight:`24px`},Gde={display:`flex`,justifyContent:`flex-end`,marginTop:`36px`,"& > *:last-child":{marginLeft:`24px`}};Tg.H1=({children:e,center:t})=>(0,K.jsx)(I,{sx:{...Ude,...t&&{textAlign:`center`}},children:e}),Tg.Text=({children:e,center:t})=>(0,K.jsx)(I,{sx:{...Wde,...t&&{textAlign:`center`}},children:e}),Tg.Ok=({onClick:e,children:t,disabled:n,loading:r,...i})=>(0,K.jsx)(q,{"data-testid":i[`data-testid`],disabled:n,isLoading:r,onClick:t=>{od(i[`data-testid`]||`modal`,Ju.CONFIRM,{button:`ok`,component:`Modal.Ok`}),e&&e(t)},types:[`type-flat-primary`,`size-large`,`variant-close`],children:t||U(`modal.ok`)}),Tg.Options=({children:e,center:t})=>(0,K.jsx)(I,{sx:{...Gde,...t&&{justifyContent:`center`,"& > *:last-child":{marginLeft:`inherit`}}},children:e}),Tg.Cancel=({onClick:e,children:t,disabled:n,loading:r,...i})=>(0,K.jsx)(q,{"data-testid":i[`data-testid`],onClick:t=>{od(i[`data-testid`]||`modal`,Ju.CANCEL,{button:`cancel`,component:`Modal.Cancel`}),e&&e(t)},disabled:n,isLoading:r,types:[`type-flat-grey`,`size-large`,`variant-close`,`fontw-normal`],children:t||U(`modal.cancel`)});var X=Tg,Kde={color:`var(--color-model-headline)`,fontWeight:500,fontSize:`18px`,lineHeight:`24px`},qde={marginTop:`8px`,color:`var(--color-loading-txt)`,fontWeight:`normal`},Jde={display:`flex`,justifyContent:`flex-end`,marginTop:`36px`,"& > *:last-child":{marginLeft:`24px`}},Dg=({message1:e,message2:t,onClose:n,noPrompt:r,isReconnect:i,headerCancel:a,...o})=>(0,K.jsxs)(Tg,{height:i?``:170,width:500,...o,children:[a&&(0,K.jsx)(I,{className:`modal-header__text`,sx:{width:`100%`,height:`20px`},children:(0,K.jsx)(I,{component:`span`,sx:{float:`right`,cursor:`pointer`},onClick:n,children:(0,K.jsx)(Y.IcXIcon,{fill:`var(--color-model-headline)`,width:`24px`,byWidth:!0})})}),(0,K.jsx)(I,{sx:{...Kde,...r&&{textAlign:`center`}},children:e}),t?(0,K.jsx)(I,{sx:{...qde,...r&&{textAlign:`center`}},children:t}):(0,K.jsx)(I,{sx:{height:`32px`}}),!r&&(0,K.jsx)(I,{sx:{...Jde,...i&&{marginTop:`22px`}},children:(0,K.jsx)(q,{onClick:n,types:[`type-flat-primary`,`size-large`,`variant-close`],children:U(`properties.loading_fail_property_ok`)})})]});Dg.ImageUpload=B.memo(({onCloseLimitError:e,onCloseUploadError:t,showLimitError:n,showUploadError:r})=>{let{minSize:i,maxSize:a}=ru;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Dg,{message1:U(`upload.image_size_limit_error`,{minSize:i/1024,maxSize:a/1024/1024}),message2:U(`calendar.load_error_2`),onClose:e,show:n,height:180}),(0,K.jsx)(Dg,{message1:U(`upload.image_upload_failed`),message2:U(`calendar.load_error_2`),show:r,onClose:t})]})}),Dg.propTypes={message1:V.default.string.isRequired,message2:V.default.string.isRequired,show:V.default.bool};var Og={outline:`none`,display:`flex`,justifyContent:`center`,m:1.5,alignItems:`center`,zIndex:100},kg={transition:`none!important`},Ag={position:`absolute`,overflowY:`auto`,maxHeight:`100%`,maxWidth:`100%`,outline:`none`,borderRadius:`7px`,display:`flex`,justifyContent:`center`,alignItems:`center`,boxShadow:`0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--color-border)`,"&::-webkit-scrollbar":{width:0,background:`transparent`}},Yde={position:`absolute`,top:`-45px`,left:0,right:0,display:`flex`,alignItems:`center`,justifyContent:`center`},jg=({show:e,onClose:t,"data-testid":n})=>(0,K.jsx)(a,{"data-testid":n,style:{position:`absolute`,width:`100%`,height:`100%`},open:!!e,sx:Og,onClose:t,"aria-labelledby":`loading`,slotProps:{backdrop:{sx:kg}}
114,children:(0,K.jsx)(I,{sx:{...Ag,width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,K.jsx)(hf,{})})});jg.propTypes={show:V.default.bool.isRequired,onClose:V.default.func,"data-testid":V.default.string};var Mg=({show:e,onClose:t,children:n,id:r,"data-testid":i})=>(0,K.jsx)(a,{id:r,"data-testid":i,sx:Og,open:!!e,onClose:t,"aria-labelledby":`modal`,slotProps:{backdrop:{sx:kg}},children:(0,K.jsx)(Un,{sx:{...Ag,width:490,display:`block`},children:n})});Mg.propTypes={show:V.default.bool.isRequired,onClose:V.default.func,children:V.default.node,id:V.default.string,"data-testid":V.default.string};var Ng=({show:e,onClose:t,children:n,"data-testid":r})=>(0,K.jsx)(a,{"data-testid":r,open:!!e,onClose:t,sx:Og,"aria-labelledby":`popup`,slotProps:{backdrop:{sx:kg}},children:(0,K.jsxs)(Un,{sx:{...Ag,overflow:`visible`,width:500,padding:`45px 24px 24px`},children:[(0,K.jsx)(I,{sx:Yde,children:(0,K.jsx)(Y.Logoproperly,{width:`3em`,byWidth:!0})}),n]})});Ng.propTypes={show:V.default.bool.isRequired,onClose:V.default.func,children:V.default.node,"data-testid":V.default.string};var Pg=({show:e,onClose:t,children:n,id:r,style:i,"data-testid":o})=>(0,K.jsx)(a,{id:r,"data-testid":o,sx:Og,open:!!e,onClose:t,"aria-labelledby":`modal`,slotProps:{backdrop:{sx:kg}},style:i,children:(0,K.jsx)(Un,{sx:{...Ag,overflowY:`auto`,width:800,display:`block`},children:n})});Pg.propTypes={show:V.default.bool.isRequired,onClose:V.default.func,children:V.default.node,id:V.default.string,style:V.default.object,"data-testid":V.default.string};var Fg=({show:e,onClose:t,children:n,id:r,style:i,"data-testid":o})=>(0,K.jsx)(a,{id:r,"data-testid":o,sx:Og,open:!!e,onClose:t,"aria-labelledby":`modal`,slotProps:{backdrop:{sx:kg}},style:i,children:(0,K.jsx)(Un,{sx:{...Ag,width:`900px`,margin:`0 auto`,display:`block`},children:n})});Fg.propTypes={show:V.default.bool.isRequired,onClose:V.default.func,children:V.default.node,id:V.default.string,style:V.default.object,"data-testid":V.default.string};var Ig=B.forwardRef(({title:e,children:t,placement:n=`top`,disableHoverListener:r=!1,styleOverwrite:i,tooltipSxOverwrite:a,...o},s)=>(0,K.jsx)(qn,{title:e,style:i,arrow:!0,placement:n,disableHoverListener:r,slotProps:{tooltip:{sx:{bgcolor:`var(--color-text)`,fontSize:`12px`,lineHeight:`14px`,p:`8px 16px`,maxWidth:`250px`,...a}},arrow:{sx:{color:`var(--color-text)`}},popper:{sx:{opacity:.9}}},children:(0,K.jsx)(`div`,{ref:s,...o,children:t})}));Ig.propTypes={title:V.default.oneOfType([V.default.node,V.default.string]).isRequired,children:V.default.node.isRequired,placement:V.default.oneOf([`bottom-end`,`bottom-start`,`bottom`,`left-end`,`left-start`,`left`,`right-end`,`right-start`,`right`,`top-end`,`top-start`,`top`]),disableHoverListener:V.default.bool};var Lg=({children:e,popoverContent:t,anchorOrigin:n={vertical:`bottom`,horizontal:`center`},transformOrigin:r={vertical:`top`,horizontal:`center`},hasPadding:i=!1,width:a=266,hasArrow:o=!1,arrowPosition:s={vertical:`top`,horizontal:`center`}
114,hasDarkBackground:c=!1,hasLightBackground:l=!1,onClose:u,styleOverwrite:d,paperOverflow:f})=>{let[p,m]=(0,B.useState)(null),h=(0,B.useCallback)(e=>{od(`popover`,Ju.OPEN,{component:`PopoverDefault`}),m(e.currentTarget)},[]),g=(0,B.useCallback)(()=>{od(`popover`,Ju.CLOSE,{component:`PopoverDefault`}),m(null),typeof u==`function`&&u()},[u]),_=(0,B.useCallback)(e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),h(e))},[h]);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Je,{open:!!p,anchorEl:p,anchorOrigin:{vertical:s.vertical===`bottom`?`top`:n.vertical,horizontal:n.horizontal},transformOrigin:{vertical:s.vertical===`bottom`?`bottom`:r.vertical,horizontal:r.horizontal},slotProps:{paper:{sx:(()=>{let e={color:`var(--color-text)`,boxShadow:`0 4px 12px 0 rgba(0, 0, 0, 0.16)`,marginTop:`16px`};return c&&(e={...e,backgroundColor:`var(--color-text)`,color:`var(--color-white)`,marginLeft:`50px`,marginTop:`0`}),l&&(e={...e,backgroundColor:`var(--color-white)`,color:`var(--color-real-black)`,marginLeft:`50px`,marginTop:`0`}),o&&(e.overflowY=`inherit`,e.overflowX=`inherit`,e[`&:before`]={content:`""`,display:`block`,border:`10px solid transparent`,left:`calc( 50% - 10px )`,position:`absolute`,borderRadius:`2px`},s.vertical===`top`?(e.marginTop=`12px`,e[`&:before`].top=`-20px`,e[`&:before`].borderBottom=`10px solid var(--color-text)`):s.vertical===`bottom`?(e.marginTop=`-5px`,e[`&:before`].bottom=`-20px`,e[`&:before`].borderTop=`10px solid var(--color-text)`):s.vertical===`left`&&(e[`&:before`].left=`-19px`,e[`&:before`].bottom=`15px`,e[`&:before`].borderRight=`10px solid var(--color-text)`),s.horizontal===`right`&&(e[`&:before`].right=`41px`,e[`&:before`].left=`auto`)),f&&(e.overflow=f),e})()}},onClose:g,children:(0,K.jsx)(I,{sx:{margin:i?`10px`:`0`,padding:i?`10px`:`0`,width:`${a}px`,...d},children:t({closePopup:g,openPopup:h})})}),(0,K.jsx)(`div`,{role:`button`,tabIndex:0,"aria-haspopup":`true`,"aria-expanded":!!p,onClick:h,onKeyDown:_,style:{width:l?`100%`:`auto`,height:l?`100%`:`auto`},children:e})]})};Lg.propTypes={popoverContent:V.default.func.isRequired,arrowPosition:V.default.shape({vertical:V.default.oneOf([`top`,`bottom`,`left`]),horizontal:V.default.oneOf([`center`,`right`])}),children:V.default.node.isRequired,width:V.default.number,hasPadding:V.default.bool,hasArrow:V.default.bool,hasDarkBackground:V.default.bool,hasLightBackgroun
114d:V.default.bool,anchorOrigin:V.default.shape({vertical:V.default.string,horizontal:V.default.string}),transformOrigin:V.default.shape({vertical:V.default.string,horizontal:V.default.string}),onClose:V.default.func,styleOverwrite:V.default.object,paperOverflow:V.default.string};var Rg={textAlign:`center`},zg={color:`var(--color-primary)`,fontWeight:600,fontSize:`20px`},Bg={display:`flex`,marginLeft:`-40px`,listStyle:`none`},Vg={marginLeft:`5px`},Hg={color:Wp,textDecoration:`none`,"&:hover":{color:Gp}},Xde=({propertyType:e,config:t})=>e?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{sx:Rg,children:(0,K.jsx)(I,{component:`span`,sx:zg,children:U(`probadge_modal.projob`)})}),(0,K.jsx)(X.Text,{children:(0,K.jsx)(O,{i18nKey:`probadge_modal.projob_explanation`,components:{msg:(0,K.jsx)(`a`,{style:Hg,className:`text-l6m`,target:`_blank`,rel:`noopener noreferrer`,href:t.proMPSatisfactionGuaranteeUrl,"aria-label":`Marketplace Satisfaction Guarantee`}),tos:(0,K.jsx)(`a`,{style:Hg,className:`text-l6m`,target:`_blank`,rel:`noopener noreferrer`,href:t.proTOSUrl,"aria-label":`Terms of Service`})}})})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{sx:Rg,children:(0,K.jsx)(I,{component:`span`,sx:zg,children:U(`probadge_modal.header`)})}),(0,K.jsx)(X.Text,{children:U(`probadge_modal.sub_header`)}),(0,K.jsx)(X.Text,{children:(0,K.jsxs)(`ul`,{children:[(0,K.jsxs)(I,{component:`li`,sx:Bg,children:[(0,K.jsx)(Y.Bigcheck,{width:`20px`}),(0,K.jsxs)(I,{component:`span`,sx:Vg,children:[` `,U(`probadge_modal.content_1`)]})]}),(0,K.jsx)(gm,{}),(0,K.jsxs)(I,{component:`li`,sx:Bg,children:[(0,K.jsx)(Y.Bigcheck,{width:`20px`}),(0,K.jsxs)(I,{component:`span`,sx:Vg,children:[` `,U(`probadge_modal.content_2`)]})]}),(0,K.jsx)(gm,{}),(0,K.jsxs)(I,{component:`li`,sx:Bg,children:[(0,K.jsx)(Y.Bigcheck,{width:`20px`}),(0,K.jsx)(I,{component:`span`,sx:Vg,children:U(`probadge_modal.content_3`)})]}),(0,K.jsx)(gm,{}),(0,K.jsxs)(I,{component:`li`,sx:Bg,children:[(0,K.jsx)(Y.Bigcheck,{width:`20px`}),(0,K.jsx)(I,{component:`span`,sx:Vg,children:(0,K.jsx)(O,{i18nKey:`probadge_modal.content_6`,components:{msg:(0,K.jsx)(`a`,{style:Hg,href:t.proMPSatisfactionGuaranteeUrl,"aria-label":`Marketplace Satisfaction Guarantee`})}})})]})]})}),(0,K.jsx)(X.Text,{children:U(`probadge_modal.conclusion`)})]}),Ug=({openProModal:e,onClickfunc:t,propertyType:n,config:r})=>(0,K.jsxs)(X,{height:n?200:450,onClick:t,onClose:t,show:e,children:[Xde({propertyType:n,config:r}),(0,K.jsx)(X.Options,{children:(0,K.jsx)(X.Ok,{onClick:t,children:U(`modal.ok`)})})]});Ug.propTypes={openProModal:V.default.bool.isRequired,onClickfunc:V.default.func.isRequired,propertyType:V.default.bool.isRequired};var Zde=_i.default.bind({"text-color--primary":`_text-color--primary_8u25q_2`,textColorPrimary:`_text-color--primary_8u25q_2`,"text-type-title-1":`_text-type-title-1_8u25q_6 font-primaryFont`,textTypeTitle1:`_text-type-title-1_8u25q_6 font-primaryFont`,"text-type-title-2":`_text-type-title-2_8u25q_14 font-primaryFont`,textTypeTitle2:`_text-type-title-2_8u25q_14 font-primaryFont`,"text-type-title-3":`_text-type-title-3_8u25q_22 font-primaryFont`,textTypeTitle3:`_text-type-title-3_8u25q_22 font-primaryFont`,"text-type-xlarge":`_text-type-xlarge_8u25q_30 font-primaryFont`,textTypeXlarge:`_text-type-xlarge_8u25q_30 font-primaryFont`,"text-type-large":`_text-type-large_8u25q_39 font-primaryFont`,textTypeLarge:`_text-type-large_8u25q_39 font-primaryFont`,"text-type-regular":`_text-type-regular_8u25q_48 font-primaryFont`,textTypeRegular:`_text-type-regular_8u25q_48 font-primaryFont`,"text-type-small":`_text-type-small_8u25q_57 font-primaryFont`,textTypeSmall:`_text-type-small_8u25q_57 font-primaryFont`,"text-type-micro":`_text-type-micro_8u25q_65 font-primaryFont`,textTypeMicro:`_text-type-micro_8u25q_65 font-primaryFont`,white:`_white_8u25q_73`,red:`_red_8u25q_76`,"blue-grey":`_blue-grey_8u25q_79`,blueGrey:`_blue-grey_8u25q_79`,grey:`_grey_8u25q_82`,"dark-grey":`_dark-grey_8u25q_85`,darkGrey:`_dark-grey_8u25q_85`,greyloading:`_greyloading_8u25q_88`,noresult:`_noresult_8u25q_91`,"cut-text":`_cut-text_8u25q_94 cut-text`,cutText:`_cut-text_8u25q_94 cut-text`,greylight:`_greylight_8u25q_97`,orange:`_orange_8u25q_100`,inline:`_inline_8u25q_103`,block:`_block_8u25q_
114106`,normal:`_normal_8u25q_109`,narrow:`_narrow_8u25q_112`,medium:`_medium_8u25q_115`,regular:`_regular_8u25q_116`,bold:`_bold_8u25q_119`,"half-width":`_half-width_8u25q_123`,halfWidth:`_half-width_8u25q_123`,uppercase:`_uppercase_8u25q_126`,nomargin:`_nomargin_8u25q_129`,reseth1:`_reseth1_8u25q_135`,"details-view-gray":`_details-view-gray_8u25q_139`,detailsViewGray:`_details-view-gray_8u25q_139`,"regular--grey":`_regular--grey_8u25q_143`,regularGrey:`_regular--grey_8u25q_143`});function Qde(e){return typeof e==`string`?(e||``).replace(/\s([^\s<]+)\s*$/,`\xA0$1`):e}var Wg=e=>{let{children:t}=e;return(0,K.jsx)(Qg,{clazz:`text-type-title-1`,component:`h1`,...e,children:t})},Gg=e=>{let{children:t}=e;return(0,K.jsx)(Qg,{clazz:`text-type-title-2`,component:`h2`,...e,children:t})},Kg=e=>{let{children:t}=e;return(0,K.jsx)(Qg,{clazz:`text-type-title-3`,component:`h3`,...e,children:t})},qg=e=>{let{children:t}=e;return(0,K.jsx)(Qg,{clazz:`text-type-xlarge`,...e,children:t})},Jg=e=>{let{children:t}=e;return(0,K.jsx)(Qg,{clazz:`text-type-large`,...e,children:t})},Yg=e=>{let{children:t}=e;return(0,K.jsx)(Qg,{clazz:`text-type-regular`,...e,children:t})},Xg=e=>{let{children:t}=e;return(0,K.jsx)(Qg,{clazz:`text-type-small`,...e,children:t})},Zg=e=>{let{children:t}=e;return(0,K.jsx)(Qg,{clazz:`text-type-micro`,...e,children:t})},Qg=e=>{let{clazz:t,component:n,style:r,color:i,children:a,type:o}=e,s=n||`span`,c=i&&{color:i}||{};return(0,K.jsx)(s,{style:{...r||{},...c},...e,className:Zde(t,o),children:Qde(a)})},$g=({children:e,size:t})=>(0,K.jsx)(I,{sx:{fontFamily:`var(--primaryFont)`,alignItems:`center`,justifyContent:`flex-start`,display:`flex`,position:`relative`,fontSize:`14px`,color:`var(--color-text)`,fontWeight:500,letterSpacing:`0px`,lineHeight:`18px`,height:`48px`,...t===`small`&&{fontFamily:`var(--primaryFont)`,fontSize:`12px`,lineHeight:`14px`,fontWeight:500,height:`32px`,color:`var(--color-black)`},...t===`small-grey`&&{fontFamily:`var(--primaryFont)`,fontSize:`18px`,lineHeight:`24px`,fontWeight:500,height:`32px`,color:`var(--color-dark-grey)`}},children:e});$g.propTypes={children:V.default.node,size:V.default.oneOf([`small`])};var e_={fontFamily:`var(--primaryFont)`,fontSize:`18px`,lineHeight:`24px`,color:`var(--color-primary)`,height:`47px`,display:`flex`,flexDirection:`row`,alignItems:`center`,padding:`0 14px`,userSelect:`none`,justifyContent:`space-between`,cursor:`pointer`},$de={height:`24px`,width:`24px`,display:`flex`,justifyContent:`center`,alignItems:`center`},t_=({onClick:e,label:t,icon:n,wrap:r,right:i,extraPadding:a,onlyTxtCursor:o,paddingRight:s,noPadding:c,disabled:l,black:u,wrapKey:d,center:f,isEmpty:p,...m})=>{let h=(0,K.jsx)(`div`,{"data-testid":d,children:t});r&&!l&&(h=r(h));let g={...i&&{justifyContent:`flex-end`},...f&&{justifyContent:`center`},...a&&{padding:`0 24px`},...s&&{padding:`0 14px 0 0`},...c&&{padding:0},...o&&{cursor:`inherit`},...l&&{color:`var(--color-grey)`,cursor:`default`},...u&&{color:`var(--color-black)`}};return(0,K.jsxs)(I,{onClick:l?Fu.default:e,sx:{...e_,...g},children:[!p&&(0,K.jsx)(I,{component:`span`,"data-testid":m[`data-testid`],sx:o?{cursor:`pointer`}:{},children:h}),n&&!p&&(0,K.jsx)(I,{sx:$de,children:(0,K.jsx)(n,{width:`24px`,byWidth:!0})})]})};t_.Wrap=e=>(0,K.jsx)(I,{sx:{...e_,justifyContent:`flex-end`,padding:`0 24px`},children:e.children}),t_.propTypes={onClick:V.default.func,label:V.default.string.isRequired,extraPadding:V.default.bool,right:V.default.bool,paddingRight:V.default.bool,noPadding:V.default.bool,icon:V.default.func,wrap:V.default.func};var n_=e(Hee()),efe=e=>(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(Y.IcReceipts,{margin:`0 8px`,width:`1em`,color:`#6B757F`}),(0,K.jsx)(Yg,{type:`greyloading`,children:e.group||U(`booking_detail.additional_information_group`)})]}),(0,K.jsx)(gm,{})]}),tfe=e=>e?.filter(e=>!!e).length>0,nfe=(e,t)=>e?`${e} · ${t}`:t,rfe=e=>e?.length===1?e[0]:e.reduce(nfe,``),ife=(e,t)=>tfe(e.pictures)?(0,K.jsx)(qn,{title:`Open images`,children:(0,K.jsx)(br,{onClick:()=>t(e.pictures),size:`large`,children:(0,K.jsxs)(Ht,{container:!0,direction:`row`,sx:{alignItems:`center`,justifyContent:`center`},children:[(0,K.jsx)(Ht,{children:(0,K.jsx)(Xg,{style:{marginRight:`6px`,lineHeight:`24px`},children:e.pictures.length})}),(0,K.jsx)(Ht,{children:(0,K.jsx)(Y.IcNoPhoto,{width:`1em`})})]})})}):null,afe=(e,t)=>
114(0,K.jsxs)(`div`,{children:[efe(t[0]),t.map(t=>(0,K.jsxs)(I,{sx:{margin:`0 32px`},children:[(0,K.jsxs)(Ht,{container:!0,sx:{alignItems:`center`,justifyContent:`space-between`},children:[(0,K.jsxs)(Ht,{children:[(0,K.jsx)(Xg,{type:`medium`,children:t.label}),(0,K.jsx)(gm,{})]}),(0,K.jsx)(Ht,{children:ife(t,e)})]}),(0,K.jsx)(`div`,{children:(0,K.jsx)(Xg,{children:rfe(t.value)})}),(0,K.jsx)(_m,{})]},t.label+t.group+t.value)),(0,K.jsx)(`div`,{children:(0,K.jsx)(Dm,{type:`relative`})}),(0,K.jsx)(_m,{})]},JSON.stringify(t)),ofe=({openPictures:e,otherAttributes:t=[]})=>{let n=(0,n_.default)(t,`group`);return(0,K.jsx)(`div`,{children:Object.values(n).map(t=>afe(e,t))})},sfe=(e,t)=>e?`${e} · ${t}`:t,cfe=e=>e?.length===1?e[0]:e?.reduce(sfe,``)||``,lfe=e=>e?.some(Boolean),ufe=e=>(0,K.jsx)(Yf,{type:`textarea`,hover:!1,styleOverwrite:{backgroundColor:`transparent`},isFirst:!0,isLast:!0,disabled:!0,value:cfe(e)}),dfe=(e,t,n,r)=>(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(Ht,{container:!0,sx:{alignItems:`center`,justifyContent:`space-between`},children:[(0,K.jsx)(Ht,{children:(0,K.jsxs)($g,{children:[r.group&&`${r.group} | `,r.label]})}),(0,K.jsx)(Ht,{children:lfe(r.pictures)&&(0,K.jsx)(qn,{title:`Open images`,children:(0,K.jsx)(br,{onClick:()=>n(r.pictures),size:`large`,children:(0,K.jsxs)(Ht,{container:!0,direction:`row`,sx:{alignItems:`center`,justifyContent:`center`},children:[(0,K.jsx)(Ht,{children:(0,K.jsx)(Xg,{style:{marginRight:`6px`,lineHeight:`24px`},children:r.pictures.length})}),(0,K.jsx)(Ht,{children:(0,K.jsx)(Y.IcNoPhoto,{width:`1em`})})]})})})})]}),(0,K.jsx)(`div`,{children:ufe(r.value)}),(0,K.jsx)(_m,{}),(0,K.jsx)(_m,{}),(0,K.jsx)(_m,{})]}
114,r.group+r.label+r.value),ffe=(e,t,n)=>{let r=n.length-1;return(0,K.jsx)(`div`,{children:n.map((n,i)=>dfe(r,e,t,n,i))},JSON.stringify(n))},r_=({readonly:e=!0,openPictures:t=()=>{},otherAttributes:n=[]})=>{let r=(0,n_.default)(n,e=>e.group);return(0,K.jsx)(`div`,{children:Object.values(r).map(n=>ffe(e,t,n))})},pfe=Wi(),mfe=[`places`];function i_(){return yee({googleMapsApiKey:pfe.GOOGLE_MAPS_KEY,libraries:mfe})}var hfe={fields:[`address_components`,`formatted_address`,`geometry`,`place_id`]},gfe=` 115 .pac-container { 116 border-radius: 12px !important; 117 border: 1px solid var(--color-gray-200) !important; 118 box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important; 119 margin-top: 8px !important; 120 overflow: hidden !important; 121 background: var(--color-white) !important; 122 font-family: inherit !important; 123 z-index: 1000 !important; 124 backdrop-filter: blur(10px) !important; 125 animation: slideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important; 126 transform-origin: top !important; 127 } 128 129 @keyframes slideIn { 130 from { 131 opacity: 0 !important; 132 transform: translateY(-8px) scale(0.95) !important; 133 } 134 to { 135 opacity: 1 !important; 136 transform: translateY(0) scale(1) !important; 137 } 138 } 139 140 .pac-item { 141 border-bottom: 1px solid var(--color-gray-100) !important; 142 padding: 14px 18px !important; 143 font-size: 15px !important; 144 line-height: 1.4 !important; 145 color: var(--color-gray-700) !important; 146 cursor: pointer !important; 147 transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important; 148 position: relative !important; 149 } 150 151 .pac-item:hover { 152 background: linear-gradient(90deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%) !important; 153 transform: translateX(2px) !important; 154 border-left: 3px solid var(--color-primary) !important; 155 padding-left: 15px !important; 156 } 157 158 .pac-item-selected { 159 background: linear-gradient(90deg, var(--color-primary-light) 0%, var(--color-primary-lighter) 100%) !important; 160 border-left: 4px solid var(--color-primary) !important; 161 padding-left: 14px !important; 162 box-shadow: inset 0 1px 0 0 rgba(54, 172, 178, 0.1) !important; 163 } 164 165 .pac-item:last-child { 166 border-bottom: none !important; 167 } 168 169 .pac-item:first-child { 170 border-top-left-radius: 12px !important; 171 border-top-right-radius: 12px !important; 172 } 173 174 .pac-item:last-child { 175 border-bottom-left-radius: 12px !important; 176 border-bottom-right-radius: 12px !important; 177 } 178 179 .pac-item-query { 180 color: var(--color-gray-800) !important; 181 font-weight: 600 !important; 182 display: block !important; 183 margin-bottom: 2px !important; 184 } 185 186 .pac-matched { 187 color: var(--color-primary) !important; 188 font-weight: 700 !important; 189 background: rgba(54, 172, 178, 0.1) !important; 190 padding: 1px 3px !important; 191 border-radius: 3px !important; 192 } 193 194 .pac-item-query .pac-matched { 195 color: var(--color-primary) !important; 196 background: rgba(54, 172, 178, 0.15) !important; 197 } 198 199 .pac-secondary-text { 200 color: var(--color-gray-500) !important; 201 font-size: 13px !important; 202 font-weight: 400 !important; 203 line-height: 1.3 !important; 204 display: block !important; 205 } 206 207 .pac-icon { 208 background-image: none !important; 209 width: 32px !important; 210 height: 32px !important; 211 margin-right: 14px !important; 212 margin-top: 0px !important; 213 background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%) !important; 214 border-radius: 8px !important; 215 display: flex !important; 216 align-items: center !important; 217 justify-content: center !important; 218 flex-shrink: 0 !important; 219 border: 1px solid var(--color-gray-200) !important; 220 } 221 222 .pac-icon::before { 223 content: "ð" !important; 224 font-size: 14px !important; 225 } 226 227 .pac-item:hover .pac-icon { 228 background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%) !important; 229 border-color: var(--color-primary) !important; 230 transform: scale(1.05) !important; 231 } 232 233 .pac-item:hover .pac-icon::before { 234 filter: grayscale(1) brightness(0) invert(1) !important; 235 } 236 237 .pac-logo { 238 padding: 8px 12px !important; 239 border-top: 1px solid var(--color-gray-100) !important; 240 background: var(--color-gray-50) !important; 241 } 242 243 .pac-logo::after { 244 opacity: 0.6 !important; 245 transform: scale(0.8) !important; 246 } 247 248 /* Loading state */ 249 .pac-container:empty::before { 250 content: "Searching..." !important; 251 display: block !important; 252 padding: 16px 18px !important; 253 color: var(--color-gray-400) !important; 254 font-style: italic !important; 255 text-align: center !important; 256 } 257`,_fe=()=>{let e=`place-autocomplete-styles`;if(!document.getElementById(e)){let t=document.createElement(`style`);t.id=e,t.textContent=gfe,document.head.appendChild(t)}},a_=({onPlaceSelect:e,placeholder:t=`Enter an address`,className:n=``,style:r={},types:i=[`geocode`],disabled:a=!1})=>{let[o,s]=(0,B.useState)(null),[c,l]=(0,B.useState)(!1),[u,d]=(0,B.useState)(!1);(0,B.useEffect)(()=>{_fe()},[]);let{isLoaded:f,loadError:p}=i_(),m=(0,B.useCallback)(e=>{s(e)},[]),h=(0,B.useCallback)(()=>
257{if(o){let t=o.getPlace();t&&e&&e(t)}},[o,e]),g={...hfe,...i&&i.length>0&&{types:i}},_={position:`relative`,width:`100%`,...r},v={width:`100%`,padding:`14px 16px 14px 48px`,border:`1px solid ${c?`var(--color-primary)`:u?`var(--color-gray-400)`:`var(--color-gray-300)`}`,borderRadius:`8px`,fontSize:`16px`,lineHeight:`1.5`,boxSizing:`border-box`,outline:`none`,fontFamily:`inherit`,backgroundColor:`var(--color-white)`,color:`var(--color-gray-700)`,transition:`all 0.15s ease-in-out`,boxShadow:c?`0 0 0 3px rgba(54, 172, 178, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.05)`:`0 1px 2px 0 rgba(0, 0, 0, 0.05)`,"::placeholder":{color:`var(--color-gray-400)`}},y={position:`absolute`,left:`16px`,top:`50%`,transform:c?`translateY(-50%) scale(1.05)`:`translateY(-50%) scale(1)`,color:c?`var(--color-primary)`:`var(--color-gray-500)`,pointerEvents:`none`,zIndex:1,transition:`all 0.15s ease-in-out`};return p?(0,K.jsxs)(I,{sx:_,children:[(0,K.jsx)(Y.IcSearch,{style:y}),(0,K.jsx)(`input`,{type:`text`,placeholder:`Error loading Google Maps`,disabled:!0,className:n,style:{...v,borderColor:`var(--color-error)`,color:`var(--color-gray-500)`,backgroundColor:`var(--color-error-light)`}})]}):f?(0,K.jsxs)(I,{sx:_,children:[(0,K.jsx)(Y.IcSearch,{style:y}),(0,K.jsx)(vee,{onLoad:m,onPlaceChanged:h,options:g,children:(0,K.jsx)(`input`,{type:`text`,placeholder:t,disabled:a,className:n,style:v,onFocus:()=>l(!0),onBlur:()=>l(!1),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)})})]}):(0,K.jsxs)(I,{sx:_,children:[(0,K.jsx)(Y.IcSearch,{style:y}),(0,K.jsx)(`input`,{type:`text`,placeholder:`Loading...`,disabled:!0,className:n,style:{...v,color:`var(--color-gray-400)`,backgroundColor:`var(--color-gray-50)`}})]})};a_.propTypes={onPlaceSelect:V.default.func.isRequired,placeholder:V.default.string,className:V.default.string,style:V.default.shape({}),types:V.default.arrayOf(V.default.string),disabled:V.default.bool};var vfe={droparea:`_droparea_1c9p8_2`,"droparea--hidden":`_droparea--hidden_1c9p8_8`,dropareaHidden:`_droparea--hidden_1c9p8_8`,"droparea__inner--small":`_droparea__inner--small_1c9p8_12`,dropareaInnerSmall:`_droparea__inner--small_1c9p8_12`,droparea__txt:`_droparea__txt_1c9p8_13 label`,dropareaTxt:`_droparea__txt_1c9p8_13 label`,"droparea__inner--set":`_droparea__inner--set_1c9p8_17`,dropareaInnerSet:`_droparea__inner--set_1c9p8_17`,droparea__icon:`_droparea__icon_1c9p8_18`,dropareaIcon:`_droparea__icon_1c9p8_18`,"droparea__inner--property":`_droparea__inner--property_1c9p8_24`,dropareaInnerProperty:`_droparea__inner--property_1c9p8_24`,droparea__inner:`_droparea__inner_1c9p8_12`,dropareaInner:`_droparea__inner_1c9p8_12`,"droparea__inner--permission":`_droparea__inner--permission_1c9p8_44`,dropareaInnerPermission:`_droparea__inner--permission_1c9p8_44`,"droparea__inner--cursor":`_droparea__inner--cursor_1c9p8_53`,dropareaInnerCursor:`_droparea__inner--cursor_1c9p8_53`,"droparea__inner--light":`_droparea__inner--light_1c9p8_73`,dropareaInnerLight:`_droparea__inner--light_1c9p8_73`,"droparea__inner--drag-active":`_droparea__inner--drag-active_1c9p8_90`,dropareaInnerDragActive:`_droparea__inner--drag-active_1c9p8_90`},o_={host:1,cleaner:2},s_={pms:`proPartners`,reports:`reports`,webapp:`webapp`,fullPartnerMode:`fullPartnerMode`,companyModule:`companyModule`},c_={LOADED:`loaded`,NOTLOADED:`notloaded`,LOADING:`loading`},l_={edit:`edit`,sendmore:`sendmore`,normal:`normal`,prefill:`prefill`,problemSchedule:`problemSchedule`,draftJobEdit:`draftJobEdit`,forwarding:`forwarding`},u_={LOADING_MODAL:`LOADING_MODAL`,CONTACT_DELETE_MODAL:`CONTACT_DELETE_MODAL`,EDIT_PROPERTY_ERROR_MODAL:`EDIT_PROPERTY_ERROR_MODAL`,CREATE_PROPERTY_ERROR_MODAL:`CREATE_PROPERTY_ERROR_MODAL`,CREATE_PROPERTY_SUBSCRIPTION_ERROR_MODAL:`CREATE_PROPERTY_SUBSCRIPTION_ERROR_MODAL`,CANNOT_SEND_PROPERTY_JOBS_PERMISSION:`CANNOT_SEND_PROPERTY_JOBS_PERMISSION`,RECURLY_PAYMENT_DECLINED:`RECURLY_PAYMENT_DECLINED`,TOO_LATE_FOR_REMOTE_INSPECTION:`TOO_LATE_FOR_REMOTE_INSPECTION`,REMOTE_INSPECTION_COMPLIANCE_NOT_MET:`REMOTE_INSPECTION_COMPLIANCE_NOT_MET`},d_=`mediaUpload`,f_={yes:`yes`,no:`no`},p_={PENDING:`pending`,COMPLETED:`completed`},m_={ITEM_MISSING:`item_missing`,DEEP_CLEAN_NEEDED:`deep_clean_needed`,STAGE_ROOM_AS_PER_REFERENCE_PHOTO:`stage_room_as_per_reference_photo`,PLEASE_CHECK_LIGHTS:`please_check_lights`,OTHER:`other`},{minSize:yfe,maxSize:bfe}=ru,h_=_i.default.bind(vfe),xfe={idle:{scale:1,transition:{...bd.snappy}},dragOver:{scale:1.02,transition:{...bd.gentle}}},Sfe={initial:{scale:.8,opacity:0}
257,animate:{scale:1,opacity:1,transition:{duration:yd.medium,ease:xd.easeOut}},exit:{scale:.8,opacity:0,transition:{duration:yd.fast,ease:xd.easeIn}}},Cfe={uploading:{boxShadow:[`0 0 0 2px rgba(54, 172, 178, 0.3)`,`0 0 0 4px rgba(54, 172, 178, 0.6)`,`0 0 0 2px rgba(54, 172, 178, 0.3)`],transition:{duration:1.5,repeat:1/0,ease:`easeInOut`}},idle:{boxShadow:`0 0 0 0px rgba(54, 172, 178, 0)`}},g_=({onDropAccepted:e,state:t,text:n,type:r,imageUploadErrored:i,setGlobalLoadingAction:a})=>{let[o,s]=(0,B.useState)(!1),c=(0,B.useCallback)(e=>{s(!0),hd(`file_upload_rejected`,`File rejected due to size or type constraints`,{component:`UploadArea`,type:r,file_count:e?.length||0})},[r]),l=(0,B.useCallback)(t=>{if(t?.length>0){let e=t[0];md(`upload_area`,{type:e.type,size:e.size,count:t.length},{component:`UploadArea`,upload_type:r})}e&&e(t)},[e,r]),u=()=>{a(d_)},{getRootProps:d,getInputProps:f,isDragActive:p}=Jt({multiple:!1,maxSize:bfe,minSize:yfe,accept:{"image/*":[]},onDropAccepted:l,onDropRejected:c}),m=t===`loading`;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(gn.div,{className:h_(`droparea`,{"droparea--hidden":t===`hidden`}),variants:Cfe,animate:m?`uploading`:`idle`,children:[(0,K.jsx)(Qr,{mode:`wait`,children:!m&&(0,K.jsxs)(gn.div,{variants:xfe,initial:`idle`,animate:p?`dragOver`:`idle`,...d({style:{width:`100%`,height:`100%`,borderRadius:`inherit`}}),children:[(0,K.jsx)(`input`,{...f()}),(0,K.jsxs)(gn.div,{className:h_(`droparea__inner`,`droparea__inner--cursor`,{"droparea__inner--set":t===`set`,"droparea__inner--small":r===`small`,"droparea__inner--permission":r===`permission`,"droparea__inner--property":r===`property`,"droparea__inner--drag-active":p}),animate:{borderStyle:p?`solid`:`dashed`,borderWidth:p?`2px`:`0px`,borderColor:p?`rgba(54, 172, 178, 0.8)`:`transparent`,backgroundColor:p?`rgba(54, 172, 178, 0.1)`:void 0},transition:{duration:yd.fast},children:[(0,K.jsx)(gn.div,{className:h_(`droparea__icon`),animate:{scale:p?1.1:1,y:p?-5:0},transition:{...bd.gentle},children:(0,K.jsx)(Y.IcNoPhoto,{color:`#fff`})}),(0,K.jsx)(gn.div,{className:h_(`droparea__txt`),animate:{opacity:p?.8:1},transition:{duration:yd.fast},children:n})]})]},`dropzone`)}),m&&(0,K.jsx)(gn.div,{className:h_(`droparea__inner`,`droparea__inner--light`),initial:{opacity:0}
257,animate:{opacity:.75},transition:{duration:yd.normal}})]}),(0,K.jsx)(Dg.ImageUpload,{onCloseLimitError:()=>s(!1),showLimitError:o,showUploadError:i,onCloseUploadError:u})]})};g_.IconOverlay=({isSet:e,text:t})=>(0,K.jsxs)(gn.div,{className:h_(`droparea__inner`,`droparea__inner--cursor`,{"droparea__inner--set":e,"droparea__inner--small":e}),variants:Sfe,initial:`initial`,animate:`animate`,exit:`exit`,children:[!e&&(0,K.jsx)(gn.div,{className:h_(`droparea__icon`),initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{...bd.gentle,delay:.1},children:(0,K.jsx)(Y.IcNoPhoto,{color:`#fff`})}),e||(0,K.jsx)(gn.div,{className:h_(`droparea__txt`),initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:yd.normal,delay:.15},children:t})]}),g_.propTypes={onDropAccepted:V.default.func.isRequired,setGlobalLoadingAction:V.default.func.isRequired,imageUploadErrored:V.default.bool.isRequired,text:V.default.oneOfType([V.default.string,V.default.element]),type:V.default.string,state:V.default.oneOf([`loading`,`dropable`,`hidden`,`set`])},g_.IconOverlay.propTypes={isSet:V.default.bool,text:V.default.oneOfType([V.default.string,V.default.element])};var __=e(Fe()),v_=({icon:e=null,label:t,isExpanded:n,onClick:r,fieldCount:i})=>{let a=Y[e],o=`var(--color-primary, #36ACB2)`;
257return(0,K.jsxs)(I,{onClick:r,sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`12px 16px`,cursor:`pointer`,borderRadius:`8px`,mx:1,mt:.5,backgroundColor:n?`var(--color-primary-light, rgba(54, 172, 178, 0.08))`:`transparent`,"&:hover":{backgroundColor:n?`var(--color-primary-light, rgba(54, 172, 178, 0.12))`:`var(--color-gray-50, #F8F8F8)`}},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1.5},children:[a&&(0,K.jsx)(a,{color:n?o:`var(--color-gray-600, #6B757F)`,width:`20px`,height:`20px`}),(0,K.jsx)(x,{sx:{fontWeight:600,fontSize:`14px`,color:n?o:`var(--color-gray-800, #484848)`},children:t}),(0,K.jsxs)(x,{sx:{fontSize:`12px`,color:`var(--color-gray-400, #999999)`,ml:.5},children:[`(`,i,`)`]})]}),(0,K.jsx)(I,{sx:{transform:n?`rotate(180deg)`:`rotate(0deg)`,transition:`transform 0.15s ease`,display:`flex`,alignItems:`center`},children:(0,K.jsx)(Y.IcExpandMore,{width:`18px`,height:`18px`,color:n?o:`var(--color-gray-400, #999999)`})})]})};v_.propTypes={icon:V.default.string,label:V.default.string.isRequired,isExpanded:V.default.bool.isRequired,onClick:V.default.func.isRequired,fieldCount:V.default.number.isRequired};var y_=({label:e,onClick:t})=>(0,K.jsx)(I,{onClick:t,sx:{padding:`10px 16px 10px 52px`,cursor:`pointer`,borderRadius:`6px`,mx:1,my:.25,"&:hover":{backgroundColor:`var(--color-gray-50, #F8F8F8)`,"& .MuiTypography-root":{color:`var(--color-primary, #36ACB2)`}}},children:(0,K.jsx)(x,{sx:{fontSize:`14px`,color:`var(--color-gray-600, #6B757F)`,transition:`color 0.15s ease`},children:e})});y_.propTypes={label:V.default.string.isRequired,onClick:V.default.func.isRequired};var b_=({filterSchema:e={filters:[]},onSelect:t=()=>{}})=>{let{filters:n}=e||{},[r,i]=(0,B.useState)(()=>n&&n.length>0?{[n[0].categoryId]:!0}:{}),[a,o]=(0,B.useState)(``),s=(0,B.useCallback)(e=>{i(t=>({...t,[e]:!t[e]}))},[]),c=(0,B.useMemo)(()=>{if(!a.trim())return n||[];let e=a.toLowerCase();return(n||[]).map(t=>({...t,fields:(t.fields||[]).filter(t=>t.label.toLowerCase().includes(e))})).filter(e=>e.fields.length>0)},[n,a]),l=(0,B.useCallback)(({id:e,type:n,label:r})=>{t({id:e,type:n,label:r})},[t]);return!n||n.length===0?(0,K.jsx)(I,{sx:{padding:`24px`,textAlign:`center`},children:(0,K.jsx)(x,{sx:{color:`var(--color-gray-500, #888888)`,fontSize:`14px`},children:U(`common.no_filters_available`)||`No filters available`})}):(0,K.jsxs)(I,{sx:{py:1},children:[(0,K.jsx)(I,{sx:{px:2,pb:1.5},children:(0,K.jsx)(yn,{fullWidth:!0,size:`small`,placeholder:U(`list_view.search`),value:a,onChange:e=>o(e.target.value),slotProps:{input:{startAdornment:(0,K.jsx)(It,{position:`start`,children:(0,K.jsx)(Y.IcSearch,{width:`18px`,height:`18px`,color:`var(--color-gray-400, #999999)`})}),sx:{fontSize:`14px`,borderRadius:`8px`,"& fieldset":{borderColor:`var(--color-gray-200, #eeeeee)`},"&:hover fieldset":{borderColor:`var(--color-primary, #36ACB2)`},"&.Mui-focused fieldset":{borderColor:`var(--color-primary, #36ACB2)`}}}}})}),(0,K.jsx)(I,{sx:{maxHeight:`380px`,overflowY:`auto`,pb:1},children:c.length===0?(0,K.jsx)(I,{sx:{padding:`24px`,textAlign:`center`},children:(0,K.jsx)(x,{sx:{color:`var(--color-gray-500, #888888)`,fontSize:`14px`},children:U(`common.no_results_found`)||`No results found`})}):c.map(({categoryId:e,categoryIcon:t,categoryLabel:n,fields:i})=>(0,K.jsxs)(I,{children:[(0,K.jsx)(v_,{icon:t,label:n,isExpanded:!!r[e]||a.trim()!==``,onClick:()=>s(e),fieldCount:i.length}),(0,K.jsx)(Kr,{in:!!r[e]||a.trim()!==``,children:(0,K.jsx)(I,{sx:{pb:.5},children:(i||[]).map(({id:e,label:t,type:n})=>(0,K.jsx)(y_,{label:t,onClick:()=>l({id:e,type:n,label:t})},e))})})]},e))})]})};b_.propTypes={filterSchema:V.default.shape({filters:V.default.arrayOf(V.default.shape({categoryId:V.default.string.isRequired,categoryIcon:V.default.string,categoryLabel:V.default.string.isRequired,fields:V.default.arrayOf(V.default.shape({id:V.default.string.isRequired,label:V.default.string.isRequired,type:V.default.string.isRequired}))}))}),onSelect:V.default.func};var x_=e=>e&&e.format(`YYYY-MM-DD`),S_=e=>e&&(0,z.default)(e).format(`MMM D, YYYY`),C_=()=>!1,wfe=e=>{let{value:t,onValue:n}=e,[r,i]=t||[],[a,o]=(0,B.useState)(null),s=!!a,c=(0,z.default)(r).isValid()?(0,z.default)(r):null,l=(0,z.default)(i).isValid()?(0,z.default)(i):null,u=()=>c&&l?`${S_(c)} - ${S_(l)}`:c?`${S_(c)} - ...`:``,d=({startDate:e,endDate:t})=>{n([x_(e),x_(t)]),e&&t&&o(null)},f=e=>{o(e.currentTarget)},p=()=>{o(null)};return(0,K.jsxs)(I,{sx:{maxWidth:280},children:[(0,K.jsx)(yn,{fullWidth:!0,size:`small`,placeholder:U(`calendar.filter_select_date_range`),value:u(),onClick:f,slotProps:{input:{readOnly:!0,endAdornment:(0,K.jsx)(It,{position:`end`,children:(0,K.jsx)(gr,{sx:{fontSize:18,color:`var(--color-grey, #999)`}})}),sx:{cursor:`pointer`,fontFamily:`"Plus Jakarta Sans", sans-serif`,fontSize:`14px`,"& input":{cursor:`pointer`}}}},sx:{"& .MuiOutlinedInput-root":{backgroundColor:`transparent`,color:`inherit`,"& fieldset":{borderColor:`var(--color-border, rgba(255, 255, 255, 0.23))`},"&:hover fieldset":{borderColor:`var(--color-primary, #36ACB2)`},"&.Mui-focused fieldset":{borderColor:`var(--color-primary, #36ACB2)`}},"& .MuiInputBase-input":{color:`inherit`}}}),(0,K.jsxs)(Je,{open:s,anchorEl:a,onClose:p,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},slotProps:{paper:{sx:{mt:1,p:2,backgroundColor:`var(--color-bg-paper)`,color:`var(--color-text)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-lg)`,borderRadius:2}}}
257,children:[(0,K.jsx)(x,{variant:`subtitle2`,sx:{mb:2,fontWeight:600,color:`var(--color-header)`},children:U(`calendar.filter_select_date_range`)}),(0,K.jsx)(cp,{numberOfMonths:2,isDayBlocked:C_,isOutsideRange:C_,startDate:c,endDate:l,onDatesChange:d}),(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`flex-end`,mt:2},children:(0,K.jsx)(dn,{variant:`outlined`,size:`small`,onClick:p,sx:{color:`var(--color-primary)`,borderColor:`var(--color-primary)`,"&:hover":{borderColor:`var(--color-primary)`,bgcolor:`var(--color-primary-light)`}},children:U(`calendar.filter_apply`)})})]})]})},Tfe=e=>e&&e.format(`YYYY-MM-DD`),Efe=e=>{let{value:t,onValue:n,onBlur:r,onFocus:i}=e,[a]=t||[];return(0,K.jsx)(I,{sx:{maxWidth:280},children:(0,K.jsx)(up,{block:!0,isDayBlocked:()=>!1,isOutsideRange:()=>!1,date:(0,z.default)(a).isValid()?(0,z.default)(a):null,onClose:r,onFocusChange:({focused:e})=>{e?i(e):r()},onDateChange:e=>n([Tfe(e)])})})},w_=({value:e=[],onValue:t,suggestions:n=[]})=>{let r=e&&e[0],i=(n||[]).find(({value:e})=>e===r)||null;return(0,K.jsx)(I,{sx:{flexGrow:1},children:(0,K.jsx)(Zn,{options:n||[],getOptionLabel:e=>e.label||``,value:i,onChange:(e,n)=>{t(n?[n.value]:[])},isOptionEqualToValue:(e,t)=>e.value===t.value,renderInput:e=>(0,K.jsx)(yn,{...e,fullWidth:!0}),size:`small`})})};w_.propTypes={value:V.default.arrayOf(V.default.string),onValue:V.default.func.isRequired,suggestions:V.default.arrayOf(V.default.shape({}))};var T_=e=>t=>e(t.target.value),E_=e=>e===0||!!e,D_=e=>e&&(0,z.default)(e).isValid()&&(0,z.default)(e).format(`L`)||``,O_=e=>e&&e.format(`YYYY-MM-DD`),k_=e=>Array.isArray(e)&&e.length>0?e[0]:void 0,Dfe=e=>Array.isArray(e)?e.slice(1):[],A_={select:{isValid:e=>(e||[]).filter(e=>!!e).length>0,prettyPrint:({label:e,enumOptions:t,value:n})=>`${e} ${(n||[]).map(e=>{let{label:n}=(t||[]).find(t=>t.value===e)||{};return n||``}).filter(e=>!!e).join(`, `)}`,onSelect:()=>{},render:()=>null},date:{isValid:e=>e&&e[0]&&(0,z.default)(e[0]).isValid(),onSelect:({value:e,onValue:t})=>{(!e||e.length!==1)&&t([O_((0,z.default)(k_(e||[])).isValid()?(0,z.default)(k_(e||[])):(0,z.default)())])},prettyPrint:({label:e,value:t})=>t&&`${e} ${D_(t[0])}`,render:e=>(0,K.jsx)(Efe,{...e})},dateRange:{isValid:e=>e&&e[0]&&(0,z.default)(e[0]).isValid()&&e[1]&&(0,z.default)(e[1]).isValid(),onSelect:({value:e,onValue:t})=>{(!e||e.length!==2)&&t([O_((0,z.default)(k_(e||[])).isValid()?(0,z.default)(k_(e||[])):(0,z.default)()),null])},prettyPrint:({label:e,value:t})=>t&&`${e} ${D_(t[0])} ${t&&t[1]&&`and`||``} ${D_(t[1])}`,render:e=>(0,K.jsx)(wfe,{...e})},numberRange:{isValid:e=>e&&e.length===2&&E_(e[0])&&E_(e[1]),prettyPrint:({value:e,label:t})=>`${t||``} ${e&&e[0]||``} ${e&&e[1]&&`and`||``} ${e&&e[1]||``}`,onSelect:({value:e,onValue:t})=>{(!e||e.length!==2)&&t([k_(e||[]),void 0])},render:({value:e,onValue:t})=>(0,K.jsxs)(I,{sx:{display:`flex`,gap:1.5,maxWidth:280},children:[(0,K.jsx)(yn,{type:`number`,size:`small`,placeholder:`From`,value:k_(e||[])??``,onChange:T_(n=>t([n,e[1]])),sx:{flex:1,"& .MuiOutlinedInput-root":{backgroundColor:`transparent`,color:`inherit`,"& fieldset":{borderColor:`var(--color-border, rgba(255, 255, 255, 0.23))`},"&:hover fieldset":{borderColor:`var(--color-primary, #36ACB2)`},"&.Mui-focused fieldset":{borderColor:`var(--color-primary, #36ACB2)`}},"& .MuiInputBase-input":{color:`inherit`}}}),(0,K.jsx)(yn,{type:`number`,size:`small`,placeholder:`To`,value:Dfe(e||[])[0]??``,onChange:T_(n=>t([e[0],n])),sx:{flex:1,"& .MuiOutlinedInput-root":{backgroundColor:`transparent`,color:`inherit`,"& fieldset":{borderColor:`var(--color-border, rgba(255, 255, 255, 0.23))`},"&:hover fieldset":{borderColor:`var(--color-primary, #36ACB2)`},"&.Mui-focused fieldset":{borderColor:`var(--color-primary, #36ACB2)`}},"& .MuiInputBase-input":{color:`inherit`}}})]})},number:{isValid:e=>e&&E_(e[0]),prettyPrint:({value:e,label:t})=>`${t||``} ${e||``}`,onSelect:({value:e,onValue:t})=>{(!e||e.length!==1)&&t([k_(e||[])])},render:({value:e,onValue:t})=>(0,K.jsx)(I,{sx:{maxWidth:280},children:(0,K.jsx)(yn,{type:`number`,size:`small`,fullWidth:!0,placeholder:`Enter value`,value:k_(e||[])??``,onChange:T_(e=>t([e])),sx:{"& .MuiOutlinedInput-root":{backgroundColor:`transparent`,color:`inherit`,"& fieldset":{borderColor:`var(--color-border, rgba(255, 255, 255, 0.23))`},"&:hover fieldset":{borderColor:`var(--color-primary, #36ACB2)`},"&.Mui-focused fieldset":{borderColor:`var(--color-primary, #36ACB2)`}},"& .MuiInputBase-input":{color:`inherit`}}})})},autocomplete:{isValid:e=>e&&!!e[0],prettyPrint:({value:e,label:t})=>`${t||``} ${e||``}`,onSelect:({value:e,onValue:t})=>{(!e||e.length!==1)&&t([k_(e||[])])},render:e=>(0,K.jsx)(w_,{...e})}
257,string:{isValid:e=>e&&!!e[0],prettyPrint:({value:e,label:t})=>`${t||``} ${e||``}`,onSelect:({value:e,onValue:t})=>{(!e||e.length!==1)&&t([k_(e||[])])},render:({value:e,onValue:t})=>(0,K.jsx)(I,{sx:{maxWidth:280},children:(0,K.jsx)(yn,{type:`text`,size:`small`,fullWidth:!0,placeholder:`Enter value`,value:k_(e||[])??``,onChange:T_(e=>t([e])),sx:{"& .MuiOutlinedInput-root":{backgroundColor:`transparent`,color:`inherit`,"& fieldset":{borderColor:`var(--color-border, rgba(255, 255, 255, 0.23))`},"&:hover fieldset":{borderColor:`var(--color-primary, #36ACB2)`},"&.Mui-focused fieldset":{borderColor:`var(--color-primary, #36ACB2)`}},"& .MuiInputBase-input":{color:`inherit`}}})})},empty:{isValid:()=>!0,prettyPrint:({label:e})=>`${e||``}`,onSelect:({value:e,onValue:t})=>{e!==null&&t(null)},render:null}},j_=({onChange:e,initValue:t=null,suggestions:n=[],options:r=[]})=>{let[i,a]=(0,B.useState)(()=>t||(r||[])[0]||{}),[o,s]=(0,B.useState)(null),c=(0,B.useRef)(!1);(0,B.useEffect)(()=>{!c.current&&t&&(a(t),c.current=!0)},[t]);let l=(0,B.useCallback)(({value:t,type:n,label:r,id:i})=>{e({id:i,operator:i,label:r,value:t,type:n,pretty:A_[n]&&A_[n].prettyPrint({label:r,value:t})})},[e]),u=(0,B.useCallback)((e,t,n)=>{a(r=>{let i={...r,id:e,label:t,type:n};return setTimeout(()=>l({value:r.value,type:n,label:t,id:e}),0),i})},[l]),d=(0,B.useCallback)(e=>{a(t=>{let n={...t,value:e};return setTimeout(()=>l({value:e,type:t.type,label:t.label,id:t.id}),0),n})},[l]),f=(0,B.useCallback)(e=>s(e||!0),[]),p=(0,B.useCallback)(()=>s(null),[]),m=(0,B.useCallback)(e=>{let t=A_[e];return!t||(t.onSelect({value:i.value,onValue:d}),!t.render)?null:(0,K.jsx)(I,{sx:{pt:1.5,px:2,pb:1,width:`100%`},children:t.render({value:i.value,focus:o,suggestions:n,onValue:d,onBlur:p,onFocus:f})})},[i.value,o,n,d,p,f]),h=(0,B.useCallback)(({id:e,label:t,type:n})=>{let r=i.id===e,a=r&&!!n;return(0,K.jsxs)(I,{sx:{mb:.5},children:[(0,K.jsxs)(I,{onClick:()=>u(e,t,n),sx:{display:`flex`,alignItems:`center`,padding:`10px 8px`,cursor:`pointer`,borderRadius:`8px`,mx:1,backgroundColor:r?`var(--color-primary-light, rgba(54, 172, 178, 0.08))`:`transparent`,"&:hover":{backgroundColor:r?`var(--color-primary-light, rgba(54, 172, 178, 0.12))`:`var(--color-gray-50, #F8F8F8)`}},children:[(0,K.jsx)(nt,{checked:r,size:`small`,disableRipple:!0,sx:{p:.5,color:`var(--color-gray-300, #cccccc)`,"&.Mui-checked":{color:`var(--color-primary, #36ACB2)`}}}),(0,K.jsx)(x,{sx:{fontSize:`14px`,color:r?`var(--color-gray-800, #484848)`:`var(--color-gray-600, #6B757F)`,fontWeight:r?500:400,ml:1},children:t})]}),a&&m(n)]},e)},[i.id,u,m]);return(0,K.jsx)(I,{sx:{px:1,py:1.5},children:(r||[]).map(e=>h(e))})};j_.propTypes={onChange:V.default.func.isRequired,initValue:V.default.shape({}),suggestions:V.default.arrayOf(V.default.shape({})),options:V.default.arrayOf(V.default.shape({}))};var M_=[{id:`is`,label:U(`calendar.filter_schema.is`),type:`string`},{id:`isNot`,label:U(`calendar.filter_schema.is_not`),type:`string`},{id:`contains`,label:U(`calendar.filter_schema.contains`),type:`string`},{id:`any`,label:U(`calendar.filter_schema.has_any_value`),type:`empty`}];function N_(e){return(0,K.jsx)(j_,{...e,options:M_})}N_.options=M_,N_.propTypes={onChange:V.default.func.isRequired,initValue:V.default.shape({})};var P_=[{id:`equals`,label:U(`calendar.filter_schema.equals`),type:`number`},{id:`notEquals`,label:U(`calendar.filter_schema.does_not_equal`),type:`number`},{id:`lessThan`,label:U(`calendar.filter_schema.is_less_than`),type:`number`},{id:`greaterThan`,label:U(`calendar.filter_schema.is_greater_than`),type:`number`},{id:`between`,label:U(`calendar.filter_schema.is_between`),type:`numberRange`},{id:`any`,label:U(`calendar.filter_schema.has_any_value`),type:`empty`}],F_=e=>(0,K.jsx)(j_,{...e,options:P_});F_.options=P_;var I_=[{id:`true`,label:U(`calendar.filter_schema.is_true`),type:`empty`},{id:`false`,label:U(`calendar.filter_schema.is_false`),type:`empty`}],L_=e=>(0,K.jsx)(j_,{...e,options:I_});L_.options=I_;var R_=[{id:`anyOf`,value:`anyOf`,label:U(`calendar.filter_schema.is_any_of`),type:`select`},{id:`allOf`,value:`allOf`,label:U(`calendar.filter_schema.is_all_of`),type:`select`},{id:`noneOf`,value:`noneOf`,label:U(`calendar.filter_schema.is_none_of`),type:`select`}],z_=class extends B.PureComponent{constructor(e){super(e),k(this,`getValueLabels`,e=>{let{options:t}=this.props;return(e||[]).map(e=>{let n=t.find(({value:t})=>t===e);return n&&n.label})}),k(this,`getPretty`,(e,t)=>`${e} ${this.getValueLabels(t).join(`, `)}`),k(this,`isSelected`,e=>this.state.value.indexOf(e)!==-1),k(this,`handleSelectClick`,({value:e})=>{let{onChange:t}=this.props,n=this.isSelected(e)?this.state.value.filter(t=>t!==e):[...this.state.value,e];this.setState({value:n}),t({id:this.state.id,operator:this.state.operator,label:this.state.label,type:`select`,pretty:this.getPretty(this.state.label,n),value:n})}),k(this,`handleOperatorClick`,e=>{this.setState({anchorEl:e.currentTarget})}),k(this,`handleOperatorClose`,()=>{this.setState({anchorEl:null})}),k(this,`handleOperatorChange`,({label:e,value:t})=>{let{onChange:n}=this.props;this.setState({id:t,operator:t,label:e,anchorEl:null}),n({id:t,operator:t,label:e,type:`select`,pretty:this.getPretty(e,this.state.value),value:this.state.value})}),this.state=e.initValue||{id:R_[0].value,operator:R_[0].value,label:R_[0].label,pretty:null,type:`select`,value:[]}}render(){let{options:e}
257=this.props,{anchorEl:t,label:n}=this.state;return(0,K.jsxs)(I,{sx:{px:2,py:1},children:[(0,K.jsxs)(I,{onClick:this.handleOperatorClick,sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`10px 12px`,borderRadius:`6px`,border:`1px solid var(--color-gray-200, #eeeeee)`,cursor:`pointer`,mb:1.5,"&:hover":{borderColor:`var(--color-gray-300, #cccccc)`}},children:[(0,K.jsx)(x,{sx:{fontSize:`14px`,color:`var(--color-gray-700, #535562)`},children:n}),(0,K.jsx)(Y.IcExpandMore,{width:`18px`,height:`18px`,color:`var(--color-gray-400, #999999)`})]}),(0,K.jsx)(Ae,{id:`select-operator-menu`,anchorEl:t,open:!!t,onClose:this.handleOperatorClose,slotProps:{paper:{sx:{minWidth:`200px`}}},children:R_.map(({label:e,value:t})=>(0,K.jsx)(fe,{selected:t===this.state.operator,onClick:()=>this.handleOperatorChange({label:e,value:t}),sx:{fontSize:`14px`,"&.Mui-selected":{backgroundColor:`var(--color-primary-light, #D0F4F6)`,color:`var(--color-primary, #36ACB2)`},"&.Mui-selected:hover":{backgroundColor:`var(--color-primary-light, #D0F4F6)`}},children:e},t))}),(0,K.jsx)(I,{children:(e||[]).map(({label:e,value:t})=>{let n=this.isSelected(t);return(0,K.jsxs)(I,{onClick:()=>this.handleSelectClick({label:e,value:t}),sx:{display:`flex`,alignItems:`center`,padding:`8px 4px`,cursor:`pointer`,borderRadius:`6px`,"&:hover":{backgroundColor:`var(--color-gray-50, #F8F8F8)`}},children:[(0,K.jsx)(Hr,{checked:n,size:`small`,disableRipple:!0,sx:{p:.5,color:`var(--color-gray-300, #cccccc)`,"&.Mui-checked":{color:`var(--color-primary, #36ACB2)`}}}),(0,K.jsx)(x,{sx:{fontSize:`14px`,color:n?`var(--color-gray-800, #484848)`:`var(--color-gray-600, #6B757F)`,fontWeight:n?500:400,ml:1},children:e})]},t)})})]})}};z_.propTypes={onChange:V.default.func.isRequired,options:V.default.arrayOf(V.default.shape({value:V.default.string,label:V.default.string})).isRequired,initValue:V.default.shape({})},z_.options=R_;function B_({onSave:e=()=>{}}){let[t,n]=(0,B.useState)(null),[r,i]=(0,B.useState)(``),a=(0,B.useCallback)(()=>{n(null),i(``)},[]),o=(0,B.useCallback)(t=>{t.preventDefault(),r&&(e(r),a())},[r,e,a]),s=(0,B.useCallback)(e=>{n(e.currentTarget)},[]),c=(0,B.useCallback)(e=>{i(e.target.value)},[]);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(q,{types:[`size-small`,`type-flat-grey`],onClick:s,children:(0,K.jsxs)(Ht,{container:!0,sx:{alignItems:`center`},children:[(0,K.jsx)(Ht,{sx:{mr:1},children:(0,K.jsx)(Y.IcSave,{width:`1.75em`})}),(0,K.jsx)(Ht,{children:U(`calendar.filter_save`)})]})}),(0,K.jsx)(Je,{anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},anchorEl:t,open:!!t,onClose:a,children:(0,K.jsx)(I,{sx:{padding:`16px`,width:`380px`},children:(0,K.jsxs)(`form`,{onSubmit:o,children:[(0,K.jsx)($g,{children:U(`calendar.filter_new`)}),(0,K.jsx)(Yf,{type:`text`,value:r,onChange:c}),(0,K.jsx)(Ht,{container:!0,sx:{justifyContent:`flex-end`,m:`16px 0`},children:(0,K.jsx)(Ht,{children:(0,K.jsx)(q,{type:`submit`,children:U(`reports.save`)})})})]})})})]})}B_.propTypes={onSave:V.default.func};function V_({onLoad:e=()=>{},onDelete:t,savedFilters:n=[]}){let[r,i]=(0,B.useState)(null),a=(0,B.useCallback)(()=>{i(null)},[]),o=(0,B.useCallback)(t=>{e(t),a()},[e,a]),s=(0,B.useCallback)(e=>{i(e.currentTarget)},[]),c=(0,B.useCallback)(e=>{t(e)},[t]);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(q,{types:[`size-small`,`type-flat-grey`],onClick:s,children:(0,K.jsxs)(Ht,{container:!0,sx:{alignItems:`center`},children:[(0,K.jsx)(Ht,{sx:{mr:1},children:(0,K.jsx)(Y.IcSmFilter,{width:`1em`})}),(0,K.jsx)(Ht,{children:U(`calendar.filter_load`)})]})}),(0,K.jsx)(Je,{anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},anchorEl:r,open:!!r,onClose:a,children:(0,K.jsx)(I,{sx:{padding:`8px 0`,minWidth:`300px`},children:(0,K.jsx)(Ot,{children:n.map(e=>(0,K.jsxs)($r,{onClick:()=>o(e),children:[(0,K.jsx)(Tt,{primary:e.filterName}),(0,K.jsx)(_,{children:(0,K.jsx)(br,{disableRipple:!0,"aria-label":U(`calendar.filter_delete`),onClick:()=>c(e.filterName),size:`large`,children:(0,K.jsx)(Y.IcTrash,{width:`1em`})})})]},e.filterName))})})})]})}V_.propTypes={onLoad:V.default.func,onDelete:V.default.func.isRequired,savedFilters:V.default.arrayOf(V.default.shape({filterName:V.default.string.isRequired,filters:V.default.arrayOf(V.default.shape({})).isRequired}))};var H_=[{id:`on`,label:U(`calendar.filter_schema.onlabel`),type:`date`},{id:`between`,label:U(`calendar.filter_schema.between`),type:`dateRange`},{id:`today`,label:U(`calendar.today`),type:`empty`},{id:`tomorrow`,label:U(`calendar.filter_schema.tomorrow`),type:`empty`},{id:`next7Days`,label:U(`calendar.filter_schema.next_seven_days`),type:`empty`}
257,{id:`next30Days`,label:U(`calendar.filter_schema.next_thirty_days`),type:`empty`},{id:`last7Days`,label:U(`calendar.filter_schema.last_seven_days`),type:`empty`},{id:`last30Days`,label:U(`calendar.filter_schema.last_thirty_days`),type:`empty`}],U_=B.memo(({initValue:e=null,...t})=>(0,K.jsx)(j_,{...t,initValue:e,options:H_}));U_.propTypes={onChange:V.default.func.isRequired,initValue:V.default.shape({})},U_.options=H_;var W_=[{id:`is`,label:U(`calendar.filter_schema.is`),type:`autocomplete`},{id:`isNot`,label:U(`calendar.filter_schema.is_not`),type:`autocomplete`},{id:`contains`,label:U(`calendar.filter_schema.contains`),type:`string`},{id:`any`,label:U(`calendar.filter_schema.has_any_value`),type:`empty`}],G_=B.memo(({initValue:e=null,...t})=>{let[n,r]=(0,B.useState)(null),{getGraphqlAutocomplete:i,autocomplete:a}=t;(0,B.useEffect)(()=>{let{graphqlSchema:e,graphqlKey:t}=a||{};if(!e||!t){R.default.error(`CalendarFilterAutocomplete without autocomplete information`,a);return}let n=cne(i({graphqlSchema:e,graphqlKey:t}));return n.promise.then(e=>r(e)).catch(e=>R.default.info(`CalendarFilterAutocomplete isCanceled`,e.isCanceled)),()=>{n&&n.cancel()}},[i,a]);let o=(0,B.useMemo)(()=>{let{value:t}=e||{},[r]=t||[];return(!n||n.length===0)&&r?[{label:r,value:r}]:n},[e,n]);return(0,K.jsx)(j_,{...t,initValue:e,suggestions:o,options:W_})});G_.propTypes={onChange:V.default.func.isRequired,getGraphqlAutocomplete:V.default.func.isRequired,initValue:V.default.shape({}),autocomplete:V.default.shape({graphqlSchema:V.default.any,graphqlKey:V.default.string})},G_.options=W_;var K_={borderRadius:`4px`,margin:`4px 8px`,color:`var(--color-gray-800)`,backgroundColor:`var(--color-gray-200)`,"& .MuiChip-deleteIcon":{color:`var(--color-gray-600)`,"&:hover":{color:`var(--color-gray-800)`}}},Ofe={background:`var(--color-red-light)`,color:`var(--color-red)`,"&:hover":{background:`var(--color-red-light-darker)`},"&:focus":{background:`var(--color-red-light-darker)`},"&:active":{background:`var(--color-red-light-darker)`}},q_=(0,B.memo)(({isChipInvalid:e,loadFilterItemClicked:t=!1,isMounted:n=!1,...r})=>(0,K.jsx)(_n,{sx:e?{...K_,...Ofe}:K_,...r}));q_.propTypes={isChipInvalid:V.default.bool.isRequired,loadFilterItemClicked:V.default.bool,isMounted:V.default.bool};var kfe=`autocomplete`,J_=`string`,Y_=`enum`,X_=`bool`,Z_=`number`,Q_=`date`,$_={[kfe]:G_,[J_]:N_,[Z_]:F_,[X_]:L_,[Y_]:z_,[Q_]:U_,DEFAULT:N_},ev=({initFilter:e=null,filterSchema:t={},onChange:n,onSubmit:r,onSave:i,onLoad:a,onDelete:o,getGraphqlAutocomplete:s,onHeightChange:c=()=>{},handleSubmit:l,savedFilters:u=[]})=>{let d=(0,B.useRef)(null),f=(0,B.useCallback)(e=>$_[e]||$_.DEFAULT,[]),p=(0,B.useCallback)(e=>A_[e]||A_.string,[]),m=(0,B.useCallback)((e,t)=>{let n=(0,Lf.default)((t.filters||[]).map(({fields:e})=>e));return(e||[]).map(({id:e,operator:t,value:r})=>{let i=n.find(({id:t})=>t===e);if(!i){R.default.warn(`Unknown filter input`,{id:e,operator:t,value:r});return}let{options:a}=i,{options:o=[]}=f(i&&i.type)||{},s=o.find(({id:e})=>e===t)||{},c=p(s.type);return{selectedFilter:{id:e,label:i&&i.label,type:i&&i.type},selectedFilterValue:{id:t,operator:t,value:r,label:s.label,type:s.type,pretty:c.prettyPrint({value:r,enumOptions:a,label:s.label})}}}).filter(e=>!!e&&!!e.selectedFilter&&!!e.selectedFilter.label)},[f,p]),h=e&&e.length>0&&m(e,t)||[],[g,_]=(0,B.useState)(null),[v,y]=(0,B.useState)(h),[b,x]=(0,B.useState)(null),[S,C]=(0,B.useState)(!1),[w,T]=(0,B.useState)(!1),E=!!g;(0,B.useEffect)(()=>{T(!0)},[]);let D=(0,B.useCallback)(e=>{let t=t=>{let{selectedFilterValue:n}=e[t]||{},{value:r,type:i}=n||{},a=A_[i];return!n||!a||!a.isValid(r)};return(e||[]).filter((e,n)=>!t(n)).filter(e=>!!e&&!!e.selectedFilter&&!!e.selectedFilterValue).map(({selectedFilter:e,selectedFilterValue:t})=>({id:e&&e.id,operator:t&&t.id,value:t.value})).filter(({id:e,operator:t})=>!!e&&!!t)},[]),ee=(0,B.useCallback)(()=>D(v),[v,D]),te=(0,B.useCallback)(e=>{y(e),n(D(e))},[n,D]),ne=(0,B.useCallback)(({filters:e})=>{a(e),y(m(e,t)),C(!0),setTimeout(()=>{C(!1)},1e3)},[a,t,m]),re=(0,B.useCallback)(e=>{o(e)},[o]),O=(0,B.useCallback)(e=>{let t=e.currentTarget.getBoundingClientRect();x(v.length),_({top:t.bottom,left:t.left})},[v.length]),ie=(0,B.useCallback)((e,t)=>{let n=e.currentTarget.getBoundingClientRect();x(t),_({top:n.bottom,left:n.left})},[]),ae=(0,B.useCallback)(({id:e,label:t,type:n})=>{let r=b??0;x(r),r===v.length?te([...v,{selectedFilter:{id:e,label:t,type:n}}]):te([...v.slice(0,r),{selectedFilter:{id:e,label:t,type:n}},...v.slice(r+1)])},[b,v,te]),oe=(0,B.useCallback)(()=>{b===v.length?te(v):te([...v.slice(0,b),null,...v.slice(b+1)]),requestAnimationFrame(()=>{if(d.current){let e=d.current.getBoundingClientRect();_({top:e.bottom,left:e.left})}})},[b,v,te]),se=(0,B.useCallback)(()=>{let{selectedFilter:e}=v[b]||{};return!e},[v,b]),ce=(0,B.useCallback)(()=>
257{if(se()){let e=b,t=[...v.slice(0,e),...v.slice(e+1)];y(t),r(D(t))}_(null)},[se,b,v,r,D]),le=(0,B.useCallback)(e=>{let t=[...v.slice(0,e),...v.slice(e+1)];y(t),r(D(t))},[v,r,D]),ue=(0,B.useCallback)(e=>{let{selectedFilterValue:t}=v[e]||{},{value:n,type:r}=t||{},i=A_[r];return!t||!i||!i.isValid(n)},[v]),de=(0,B.useCallback)(()=>ue(b),[b,ue]),fe=(0,B.useCallback)(e=>{e.preventDefault(),!de()&&(r(ee()),_(null))},[de,ee,r]),pe=(0,B.useCallback)(e=>{let t=ee();t&&t.length>0&&i({filterName:e,filters:t})},[ee,i]),me=(0,B.useCallback)(({id:e,label:t,type:n,value:r,pretty:i}={})=>{let a=v[b]||{};b===v.length?te([...v,{...a,selectedFilterValue:{id:e,label:t,type:n,value:r,pretty:i}}]):te([...v.slice(0,b),{...a,selectedFilterValue:{id:e,label:t,type:n,value:r,pretty:i}},...v.slice(b+1)])},[b,v,te]),he=(0,B.useCallback)(e=>(!E||E&&e!==b)&&ue(e),[E,b,ue]),ge=(0,B.useCallback)(e=>{let t=v[b]||{},{selectedFilter:n}=t,r=f(n?.type);return(0,K.jsx)(`form`,{onSubmit:fe,children:(0,K.jsxs)(I,{children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,px:1.5,py:1.5,borderBottom:`1px solid var(--color-gray-100, #F0F0F0)`},children:[(0,K.jsx)(I,{onClick:oe,sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:36,height:36,cursor:`pointer`,borderRadius:`8px`,"&:hover":{backgroundColor:`var(--color-gray-50, #F8F8F8)`}},children:(0,K.jsx)(Y.IcLeftArrow,{width:`18px`,height:`18px`,color:`var(--color-gray-500, #888888)`})}),(0,K.jsx)(I,{sx:{ml:1,fontSize:`15px`,fontWeight:600,color:`var(--color-gray-800, #484848)`},children:n?.label||U(`calendar.filter_add_property`)})]}),(0,K.jsx)(I,{sx:{maxHeight:`340px`,overflowY:`auto`},children:(0,K.jsx)(r,{...e,getGraphqlAutocomplete:s,initValue:t.selectedFilterValue,onChange:me})}),(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`flex-end`,px:2,py:2,borderTop:`1px solid var(--color-gray-100, #F0F0F0)`},children:(0,K.jsx)(I,{component:`button`,type:`submit`,onClick:fe,sx:{padding:`10px 24px`,backgroundColor:`transparent`,color:`var(--color-primary, #36ACB2)`,border:`1px solid var(--color-primary, #36ACB2)`,borderRadius:`8px`,fontSize:`14px`,fontWeight:600,cursor:`pointer`,transition:`all 0.15s ease`,"&:hover":{backgroundColor:`var(--color-primary, #36ACB2)`,color:`white`}},children:U(`checkout.apply`)})})]})})},[v,b,f,fe,oe,s,me]),_e=(0,B.useCallback)(()=>{let{filters:e}=t||{},n=v[b],{selectedFilter:r}=n||{},i=n&&r&&(0,Lf.default)((e||[]).map(({fields:e})=>e)).find(({id:e})=>e===r.id);return n?ge(i):(0,K.jsx)(b_,{filterSchema:t,onSelect:ae})},[t,v,b,ge,ae]),ve=(0,B.useCallback)(({selectedFilter:e,selectedFilterValue:t},n)=>{let r=n===void 0?!1:he(n);return`${e&&e.label||``} ${r?U(`calendar.filter_category.is_missing_value`):t&&t.pretty||``}`},[he]),ye=v&&v.length>0,be=u&&u.length>0;return(0,K.jsx)(__.default,{onHeightReady:c,children:(0,K.jsx)(Ht,{container:!0,style:{height:`100%`},sx:{alignItems:`center`},children:(0,K.jsx)(`form`,{onSubmit:l,children:(0,K.jsxs)(Ht,{container:!0,style:{display:`flex`,justifyContent:`space-between`},sx:{alignItems:`center`},children:[(v||[]).filter(e=>!!e).map((e,t)=>{let n=e?.selectedFilter?.id||`filter-${t}`;return(0,K.jsx)(Ht,{children:(0,K.jsx)(q_,{label:ve(e,t),onDelete:()=>le(t),onClick:e=>ie(e,t),isChipInvalid:he(t),loadFilterItemClicked:S,isMounted:w})},n)}),(0,K.jsxs)(Ht,{style:{margin:`4px 6px`},children:[(0,K.jsx)(`div`,{ref:d,children:(0,K.jsx)(q,{types:[`size-small`,`type-border-primary`],onClick:O,children:(0,K.jsxs)(Ht,{container:!0,sx:{alignItems:`center`},children:[(0,K.jsx)(Ht,{sx:{height:`14px`,mr:1},children:(0,K.jsx)(Y.IcPlus,{width:`1.5em`,byWidth:!0})}),(0,K.jsx)(Ht,{children:U(`calendar.filter_add_property`)})]})})}),(0,K.jsx)(Je,{anchorReference:`anchorPosition`,anchorPosition:g,open:E,onClose:ce,slotProps:{paper:{sx:{borderRadius:`12px`,boxShadow:`var(--shadow-lg, 0px 10px 40px rgba(0, 0, 0, 0.15))`,border:`1px solid var(--color-border, #e0e0e0)`,backgroundColor:`var(--color-bg-paper, #fff)`,color:`var(--color-text, #1a1a1a)`}}},children:(0,K.jsx)(I,{sx:{width:`360px`,maxHeight:`520px`},children:_e()})})]}),ye&&(0,K.jsx)(Ht,{children:(0,K.jsx)(B_,{saving:!1,onSave:pe})}),be&&(0,K.jsx)(Ht,{children:(0,K.jsx)(V_,{loading:!1,savedFilters:u,onDelete:re,onLoad:ne})})]})})})})};ev.propTypes={onChange:V.default.func.isRequired,onSubmit:V.default.func.isRequired,onSave:V.default.func.isRequired,onLoad:V.default.func.isRequired,onDelete:V.default.func.isRequired,getGraphqlAutocomplete:V.default.func.isRequired,handleSubmit:V.default.func.isRequired,onHeightChange:V.default.func,initFilter:V.default.arrayOf(V.default.shape({})),savedFilters:V.default.arrayOf(V.default.shape({filterName:V.default.string,filters:V.default.arrayOf(V.default.shape({}))})),filterSchema:V.default.shape({filters:V.default.arrayOf(V.default.shape({type:V.default.oneOf([J_,Y_,X_,Z_,Q_])}))})};var Afe=e=>(0,z.default)().subtract(Uc(e),`m`),jfe=e=>{let t=Afe(e);return t.hours()*60+t.minutes()},Mfe=(e,t)=>
257{let n=jfe(e);return n+(t-n%t)},Nfe=({name:e,value:t,onChange:n,disabled:r,timezone:i,warning:a,showErrorMsg:o,error:s})=>(0,K.jsx)(ep,{name:e,disabled:r,value:t,showErrorMsg:o,error:s,minTime:a===`Same day`?Mfe(i,15):0,onChange:e=>n(e.target.value)}),Pfe=({name:e,value:t,onChange:n,disabled:r})=>(0,K.jsx)(tp,{name:e,disabled:r,value:t,onChange:e=>n(e.target.value)}),Ffe=({value:e,onChange:t,isDayBlocked:n})=>(0,K.jsx)(sp,{isDayBlocked:n,daySize:sn(D().breakpoints.up(`sm`))?60:40,date:e||null,onDateChange:e=>t(e)}),tv=({children:e})=>(0,K.jsx)(x,{variant:`body2`,sx:{fontFamily:`"Plus Jakarta Sans", sans-serif`,fontSize:`13px`,fontWeight:600,color:`text.secondary`,marginBottom:`12px`,textTransform:`uppercase`,letterSpacing:`0.5px`},children:e});function Ife({date:e,time:t,duration:n,disabled:r,changeDate:i,changeTime:a,changeDuration:o,hintText:s,timezone:c,isPrefill:l,isStartTimeValid:u}){let[d,f]=(0,B.useState)(e),[p,m]=(0,B.useState)(t),[h,g]=(0,B.useState)(n);(0,B.useEffect)(()=>{f(e)},[e]),(0,B.useEffect)(()=>{m(t)},[t]),(0,B.useEffect)(()=>{g(n)},[n]);let _=(0,B.useCallback)(e=>{let t=z.default.tz(c).format(`YYYYMMDD`);return(0,z.default)(e.format(`YYYYMMDD`)).isBefore(t)},[c]),v=(0,B.useCallback)(e=>{f(e),i&&i(e)},[i]),y=(0,B.useCallback)(e=>{m(e),a&&a(e)},[a]),b=(0,B.useCallback)(e=>{g(e),o&&o(e)},[o]);return(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:3},children:[!l&&(0,K.jsxs)(I,{children:[(0,K.jsx)(tv,{children:U(`job_request.start_date`)}),(0,K.jsx)(Ffe,{isDayBlocked:_,value:d,onChange:v})]}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:3,flexWrap:`wrap`},children:[(0,K.jsxs)(I,{sx:{flex:`1 1 200px`,maxWidth:280},children:[(0,K.jsx)(tv,{children:U(`job_request.start_time`)}),Nfe({value:p,onChange:y,disabled:r,showErrorMsg:!u,error:u?``:U(`job_request.start_time_error`),name:`time`})]}),(0,K.jsxs)(I,{sx:{flex:`1 1 200px`,maxWidth:280},children:[(0,K.jsx)(tv,{children:U(`job_request.duration`)}),Pfe({disabled:r,name:`duration`,onChange:b,value:h})]})]}),s&&(0,K.jsx)(I,{sx:{mt:1},children:(0,K.jsx)(Tf,{children:s})})]})}var Lfe=e=>(0,z.default)().subtract(Uc(e),`m`),Rfe=e=>{let t=Lfe(e);return t.hours()*60+t.minutes()},zfe=(e,t)=>{let n=Rfe(e);return n+(t-n%t)},nv=({name:e,value:t,onChange:n,disabled:r,timezone:i,warning:a,showErrorMsg:o,error:s})=>(0,K.jsx)(ep,{name:e,disabled:r,value:t,minTime:a===`Same day`?zfe(i,15):0,error:s,showErrorMsg:o,onChange:e=>n(e.target.value)}),Bfe=({name:e,value:t,onChange:n,disabled:r,error:i,showErrorMsg:a})=>(0,K.jsx)(tp,{name:e,disabled:r,value:t,error:i,showErrorMsg:a,onChange:e=>n(e.target.value)}),rv=({children:e})=>(0,K.jsx)(x,{variant:`body2`,sx:{fontFamily:`"Plus Jakarta Sans", sans-serif`,fontSize:`13px`,fontWeight:600,color:`text.secondary`,marginBottom:`12px`,textTransform:`uppercase`,letterSpacing:`0.5px`},children:e}),iv=({id:e,value:t,onChange:n,isDayBlocked:r})=>(0,K.jsx)(up,{id:e,date:t||null,onDateChange:e=>n(e),isDayBlocked:r,block:!0});function av({scheduledStartDate:e,scheduledEndDate:t,scheduledStartTime:n,scheduledEndTime:r,duration:i,disabled:a,changeScheduledStartDate:o,changeScheduledEndDate:s,changeScheduledStartTime:c,changeScheduledEndTime:l,changeDuration:u,isEndTimeValid:d,isStartTimeValid:f,isDurationValid:p,timezone:m}){let[h,g]=(0,B.useState)(e),[_,v]=(0,B.useState)(t),[y,b]=(0,B.useState)(n),[x,S]=(0,B.useState)(r),[C,w]=(0,B.useState)(i);(0,B.useEffect)(()=>{g(e)},[e]),(0,B.useEffect)(()=>{v(t)},[t]),(0,B.useEffect)(()=>{b(n)},[n]),(0,B.useEffect)(()=>{S(r)},[r]),(0,B.useEffect)(()=>{w(i)},[i]);let T=(0,B.useCallback)(e=>{let t=z.default.tz(m).format(`YYYYMMDD`);return(0,z.default)(e.format(`YYYYMMDD`)).isBefore(t)},[m]),E=(0,B.useCallback)(e=>{g(e),o&&o(e)},[o]),D=(0,B.useCallback)(e=>{v(e),s&&s(e)},[s]),ee=(0,B.useCallback)(e=>{b(e),c&&c(e)},[c]),te=(0,B.useCallback)(e=>{S(e),l&&l(e)},[l]),ne=(0,B.useCallback)(e=>{w(e),u&&u(e)},[u]);return(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:3,px:2},children:[(0,K.jsxs)(I,{sx:{display:`flex`,gap:2,flexWrap:`wrap`,alignItems:`flex-start`},children:[(0,K.jsxs)(I,{sx:{flex:`1 1 200px`,maxWidth:280},children:[(0,K.jsx)(rv,{children:U(`job_request.start_after`)}),(0,K.jsx)(iv,{id:`scheduledStartDate`,isDayBlocked:T,value:h,onChange:E})]}),(0,K.jsxs)(I,{sx:{flex:`1 1 200px`,maxWidth:280},children:[(0,K.jsx)(rv,{children:U(`job_request.start_time`)}),nv({value:y,onChange:ee,disabled:a,showErrorMsg:!f,error:f?``:U(`job_request.start_time_error`),name:`scheduledStartTime`})]})]}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:2,flexWrap:`wrap`,alignItems:`flex-start`},children:[(0,K.jsxs)(I,{sx:{flex:`1 1 200px`,maxWidth:280},children:[(0,K.jsx)(rv,{children:U(`job_request.finish_before`)}),(0,K.jsx)(iv,{id:`scheduledEndDate`,isDayBlocked:T,value:_,onCh
257ange:D})]}),(0,K.jsxs)(I,{sx:{flex:`1 1 200px`,maxWidth:280},children:[(0,K.jsx)(rv,{children:U(`job_request.end_time`)}),nv({value:x,onChange:te,disabled:a,showErrorMsg:!d,error:d?``:U(`job_request.end_time_error`),name:`scheduledEndTime`})]})]}),(0,K.jsxs)(I,{sx:{maxWidth:280},children:[(0,K.jsx)(rv,{children:U(`job_request.duration`)}),Bfe({disabled:a,name:`duration`,onChange:ne,showErrorMsg:!p,value:C,error:p?``:U(`job_request.duration_error`)})]})]})}rv.propTypes={children:V.default.node},iv.propTypes={id:V.default.string.isRequired,value:V.default.oneOfType([V.default.instanceOf(Date),V.default.object]),onChange:V.default.func.isRequired,isDayBlocked:V.default.func},av.propTypes={scheduledStartDate:V.default.oneOfType([V.default.instanceOf(Date),V.default.object]),scheduledEndDate:V.default.oneOfType([V.default.instanceOf(Date),V.default.object]),scheduledStartTime:V.default.oneOfType([V.default.string,V.default.number]),scheduledEndTime:V.default.oneOfType([V.default.string,V.default.number]),duration:V.default.oneOfType([V.default.string,V.default.number]),disabled:V.default.bool,changeScheduledStartDate:V.default.func,changeScheduledEndDate:V.default.func,changeScheduledStartTime:V.default.func,changeScheduledEndTime:V.default.func,changeDuration:V.default.func,isEndTimeValid:V.default.bool,isStartTimeValid:V.default.bool,isDurationValid:V.default.bool,timezone:V.default.string};var Vfe=e=>(e||`REGULAR`).toString().toLowerCase()===`flexible`?uo:lo,ov=({jobStartTimeType:e=lo,jobStartDate:t=null,jobStartTime:n=0,duration:r=0,onChangeJobStartTimeType:i=()=>{},changeDate:a=()=>{},changeTime:o=()=>{},changeDuration:s=()=>{},changeScheduledStartDate:c=()=>{},changeScheduledEndDate:l=()=>{},changeScheduledStartTime:u=()=>{},changeScheduledEndTime:d=()=>{},hintText:f=``,timezone:p=``,isPrefill:m=!1,scheduledStartDate:h=null,scheduledEndDate:g=null,scheduledStartTime:_=0,scheduledEndTime:v=0,isStartTimeValid:y=!0,isEndTimeValid:b=!0,isDurationValid:x=!0})=>{let S={display:`flex`,flexWrap:`wrap`,marginBottom:20,marginLeft:20,marginTop:20},C=Vfe(e),w=n==null?``:n.toString(),T=r==null?``:r.toString(),E=h||t,D=g||E,ee=_==null?w:_.toString(),te=v==null?ee:v.toString();return R.default.info(`JobTimeFormSimple`,{isPrefill:m,jobStartTimeType:C}),(0,K.jsxs)(K.Fragment,{children:[!m&&(0,K.jsxs)(`div`,{style:S,children:[(0,K.jsx)(Cp,{name:`jobStartTimeType`,selected:C===`REGULAR`,value:`fixed`,onChange:()=>i(`REGULAR`),label:U(`job_request.fixed_time`),id:`jobStartTypeFixed`}),(0,K.jsx)(Cp,{name:`jobStartTimeType`,selected:C===`FLEXIBLE`,value:`fixed`,onChange:()=>i(`FLEXIBLE`),label:U(`job_request.flexible_time`),id:`jobStartTypeFlexible`})]}),C===`FLEXIBLE`?(0,K.jsx)(av,{changeScheduledStartDate:c,changeScheduledEndDate:l,changeScheduledStartTime:u,changeScheduledEndTime:d,changeDuration:s,scheduledStartDate:E,scheduledEndDate:D,scheduledStartTime:ee,scheduledEndTime:te,duration:T,hintText:f,timezone:p,isStartTimeValid:y,isEndTimeValid:b,isDurationValid:x}):(0,K.jsx)(Ife,{changeDate:a,changeTime:o,changeDuration:s,date:t,time:w,duration:T,hintText:f,timezone:p,isPrefill:m,isStartTimeValid:y})]})};ov.propTypes={jobStartTimeType:V.default.string,jobStartDate:V.default.oneOfType([V.default.string,V.default.instanceOf(Date),V.default.object]),jobStartTime:V.default.number,duration:V.default.number,onChangeJobStartTimeType:V.default.func,changeDate:V.default.func,changeTime:V.default.func,changeDuration:V.default.func,changeScheduledStartDate:V.default.func,changeScheduledEndDate:V.default.func,changeScheduledStartTime:V.default.func,changeScheduledEndTime:V.default.func,hintText:V.default.string,timezone:V.default.string,isPrefill:V.default.bool,scheduledStartDate:V.default.oneOfType([V.default.string,V.default.instanceOf(Date),V.default.object]),scheduledEndDate:V.default.oneOfType([V.default.string,V.default.instanceOf(Date),V.default.object]),scheduledStartTime:V.default.oneOfType([V.default.string,V.default.number]),scheduledEndTime:V.default.oneOfType([V.default.string,V.default.number]),isStartTimeValid:V.default.bool,isEndTimeValid:V.default.bool,isDurationValid:V.default.bool};var{MILEAGE:sv,DURATION:cv,COST:lv}=Ka,Hfe=(e,t)=>
257e===`miles`?ju(t):e===`duration`?`min`:e===`cost`?Gl(t):``;function uv({countryCode:e,firstInput:t,secondInput:n,firstInputName:r,secondInputName:i,tempImages:a,onChange:o,handleCancel:s,handleSave:c,handleFileUpload:l,handleImageChange:u,showErrorModal:d,isImageLoading:f,showImageRangeError:p,renderErrorModal:m,onLoadImage:h,handleOnInputFileClick:g}){return(0,K.jsxs)(I,{children:[(0,K.jsx)(ym,{}),(0,K.jsxs)(I,{children:[(0,K.jsx)(I,{sx:{m:`20px`,width:`140px`},children:(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,value:t,"data-testid":r,name:r,placeholder:`00.00 ${Hfe(r,e)}`,type:`text`,onChange:o,preventNegativeValues:!0})}),(0,K.jsx)(I,{sx:{m:`20px`,width:`450px`},children:(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,value:n,showErrorMsg:!0,"data-testid":i,name:i,placeholder:U(`jobdetails.costs.textArea_placeholder`),type:`textarea`,maxLength:200,onChange:o,textAreaHeight:106})}),p?(0,K.jsx)(I,{"data-testid":`message_cannot_add_more_than_5_images`,sx:{fontSize:`12px`,textAlign:`center`,color:`red`},children:U(`job_request.task_image_range_error`)}):(0,K.jsxs)(I,{children:[(0,K.jsx)(Y.IcCameraSolid,{onClick:e=>l(e)}),(0,K.jsx)(`input`,{type:`file`,id:`pictureIdentifiers`,style:{display:`none`},accept:`image/*`,onChange:e=>u(e),onClick:g})]}),(0,K.jsx)(ym,{}),d?m():null,(0,K.jsxs)(I,{sx:{display:`flex`,flexWrap:`wrap`,justifyContent:`center`,overflow:`hidden`,mx:`10px`},children:[(0,K.jsx)(I,{sx:{height:`24px`,display:`flex`,justifyContent:`center`},children:f?(0,K.jsx)(J,{variant:`circular`,width:24,height:24}):null}),(0,K.jsx)(At,{sx:{flexWrap:`nowrap`,transform:`translateZ(0)`,width:1e3,height:`auto`,overflowY:`auto`},cols:3,rowHeight:130,spacing:1,children:a?.map(e=>(0,K.jsx)(we,{cols:1,children:(0,K.jsx)(`img`,{src:ou(e),alt:e,onLoad:h})},e))})]})]}),(0,K.jsx)(ym,{}),(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`row`,justifyContent:`center`},children:[(0,K.jsx)(q,{"data-testid":`cancel_button`,onClick:s,types:[`type-border-grey`,`size-medium`],children:U(`checklist.cancel`)}),(0,K.jsx)(I,{sx:{m:`10px`}}),(0,K.jsx)(q,{"data-testid":`save_button`,onClick:c,types:[`type-full-primary`,`size-medium`],disabled:!t||f,children:U(`checklist.save`)})]}),(0,K.jsx)(ym,{})]})}var dv=class extends B.Component{constructor(e){super(e),k(this,`onChange`,e=>{Kf(e),this.setState({[e.target.name]:e.target.value})}),k(this,`handleChange`,(e,t)=>{this.setState({type:t})}),k(this,`handleCancel`,()=>{let{close:e}=this.props;this.setState({miles:``,milesDetails:``,duration:``,durationDetails:``,cost:``,costDetails:``}),e()}),k(this,`handleSave`,()=>{let{miles:e,milesDetails:t,duration:n,durationDetails:r,cost:i,costDetails:a,costs:o,type:s}=this.state,{close:c,data:l,tempMilesImages:u,tempDurationImages:d,tempCostImages:f}=this.props,p={};s===sv&&(p.type=sv,p.value=e,p.note=t,p.pictureIdentifiers=u),s===cv&&(p.type=cv,p.value=n,p.note=r,p.pictureIdentifiers=d),s===lv&&(p.type=lv,p.value=i,p.note=a,p.pictureIdentifiers=f),o.push(p),c(),l(o)}),k(this,`handleImageChange`,e=>{e.preventDefault();let{onUploadPic:t,costType:n}=this.props,{type:r}=this.state,i=new FileReader,a=e.target.files[0];if(!a){this.setState({isMilesImageLoading:!1,isDurationImageLoading:!1,isCostImageLoading:!1});return}let{size:o}=a,{minSize:s,maxSize:c}=ru;if(o<s||o>c){this.setState({isMilesImageLoading:!1,isDurationImageLoading:!1,isCostImageLoading:!1,showErrorModal:!0,show:!0});return}i.onloadend=()=>a,i.readAsDataURL(a),n(r),t(a),r===sv&&this.setState({isMilesImageLoading:!0}),r===cv&&this.setState({isDurationImageLoading:!0}),r===lv&&this.setState({isCostImageLoading:!0})}),k(this,`handleFileUpload`,e=>{e.preventDefault(),document.getElementById(`pictureIdentifiers`).click(e)}),k(this,`handleOnInputFileClick`,e=>{e.target.value=``}),k(this,`onLoadImage`,()=>{this.setState({isMilesImageLoading:!1,isDurationImageLoading:!1,isCostImageLoading:!1})}),k(this,`renderErrorModal`,()=>{let{show:e}=this.state;return(0,K.jsx)(Dg.ImageUpload,{onCloseLimitError:()=>this.setState({show:!1}),showLimitError:e})}),this.state={type:sv,miles:``,milesDetails:``,cost:``,costDetails:``,duration:``,durationDetail
257s:``,costs:[],show:!0,isMilesImageLoading:!1,isDurationImageLoading:!1,isCostImageLoading:!1,showErrorModal:!1,showMilesImageRangeError:!1,showDurationImageRangeError:!1,showCostImageRangeError:!1,imageUploadErrored:this.props.imageUploadErrored}}static getDerivedStateFromProps(e,t){return e.imageUploadErrored===t.imageUploadErrored?null:{...t,isMilesImageLoading:!1,isDurationImageLoading:!1,isCostImageLoading:!1}}render(){let{type:e,miles:t,milesDetails:n,duration:r,durationDetails:i,cost:a,costDetails:o,isMilesImageLoading:s,isDurationImageLoading:c,isCostImageLoading:l,showErrorModal:u,showMilesImageRangeError:d,showDurationImageRangeError:f,showCostImageRangeError:p}=this.state,{open:m,tempMilesImages:h,tempDurationImages:g,tempCostImages:_,countryCode:v}=this.props;!d&&!f&&!p&&(h?.length===5&&this.setState({showMilesImageRangeError:!0}),g?.length===5&&this.setState({showDurationImageRangeError:!0}),_?.length===5&&this.setState({showCostImageRangeError:!0}));let y={showErrorModal:u,onChange:this.onChange,handleCancel:this.handleCancel,handleSave:this.handleSave,handleFileUpload:this.handleFileUpload,handleImageChange:this.handleImageChange,onLoadImage:this.onLoadImage,renderErrorModal:this.renderErrorModal,handleOnInputFileClick:this.handleOnInputFileClick};return(0,K.jsx)(I,{children:m&&(0,K.jsx)(I,{sx:{bgcolor:`background.paper`,width:490},children:(0,K.jsxs)(On,{position:`static`,color:`inherit`,children:[(0,K.jsx)(I,{sx:{display:`flex`,m:`10px`,justifyContent:`center`},children:U(`jobdetails.costs.add_cost_time`)}),(0,K.jsx)(I,{children:(0,K.jsx)(Dm,{type:`relative`})}),(0,K.jsxs)(ei,{value:e,onChange:this.handleChange,slotProps:{indicator:{style:{background:`#36ACB2`}}},children:[(0,K.jsx)(Et,{label:`Mileage`,value:sv}),(0,K.jsx)(Et,{label:`Duration`,value:cv}),(0,K.jsx)(Et,{label:`Cost`,value:lv})]}),e===sv&&(0,K.jsx)(uv,{countryCode:v,firstInputName:`miles`,secondInputName:`milesDetails`,firstInput:t,secondInput:n,tempImages:h,isImageLoading:s,showImageRangeError:d,...y}),e===cv&&(0,K.jsx)(uv,{firstInputName:`duration`,secondInputName:`durationDetails`,firstInput:r,secondInput:i,tempImages:g,isImageLoading:c,showImageRangeError:f,...y}),e===lv&&(0,K.jsx)(uv,{countryCode:v,firstInputName:`cost`,secondInputName:`costDetails`,firstInput:a,secondInput:o,tempImages:_,isImageLoading:l,showImageRangeError:p,...y})]})})})}};dv.propTypes={open:V.default.bool.isRequired,onUploadPic:V.default.func.isRequired,costType:V.default.func.isRequired,tempMilesImages:V.default.arrayOf(V.default.string),tempDurationImages:V.default.arrayOf(V.default.string),tempCostImages:V.default.arrayOf(V.default.string),close:V.default.func.isRequired,data:V.default.func.isRequired,countryCode:V.default.string.isRequired,imageUploadErrored:V.default.bool},uv.propTypes={firstInput:V.default.string.isRequired,countryCode:V.default.string,tempImages:V.default.arrayOf(V.default.string),secondInput:V.default.string.isRequired,firstInputName:V.default.string.isRequired,secondInputName:V.default.string.isRequired,onChange:V.default.func.isRequired,handleCancel:V.default.func.isRequired,handleSave:V.default.func.isRequired,handleFileUpload:V.default.func.isRequired,handleImageChange:V.default.func.isRequired,showErrorModal:V.default.bool.isRequired,isImageLoading:V.default.bool.isRequired,showImageRangeError:V.default.bool.isRequired,renderErrorModal:V.default.func,handleOnInputFileClick:V.default.func,onLoadImage:V.default.func.isRequired};var Ufe=5;function fv({active:e,taskDescription:t=``,taskTitle:n=``,tempTaskImages:r=[],imageUploadErrored:i=!1,onUploadTaskPic:a,onCancelForm:o,onSubmitForm:s,changeTaskTitle:c,changeTaskDescription:l}){let[u,d]=(0,B.useState)(n),[f,p]=(0,B.useState)(t),[m,h]=(0,B.useState)(!e),[g,_]=(0,B.useState)(!1),[v,y]=(0,B.useState)(!1),[b,x]=(0,B.useState)(!0),[S,C]=(0,B.useState)(!1),w=(0,B.useRef)(i);(0,B.useEffect)(()=>{i!==w.current&&(_(!1),w.current=i)},[i]),(0,B.useEffect)(()=>{S&&r.length===0&&C(!1),!S&&r.length===Ufe&&C(!0)},[r.length,S]);let T=(0,B.useCallback)(()=>{d(``),p(``),h(e=>!e),_(!1)},[]),E=(0,B.useCallback)(()=>{let e={title:u,task:f,expanded:m,isImageLoading:g};d(``),p(``),h(e=>!e),_(!1),o(e)},[u,f,m,g,o]),D=(0,B.useCallback)(e=>{c(e.target.value),d(e.target.value)},[c]),ee=(0,B.useCallback)(e=>{l(e.target.value),p(e.target.value)},[l]),te=(0,B.useCallback)(()=>{_(!1)},[]),ne=(0,B.useCallback)(e=>{e.preventDefault(),s({title:u,task:f,expanded:m,isImageLoading:g}),d(``),p(``),h(e=>!e)},[s,u,f,m,g]),re=(0,B.useCallback)(e=>{e.preventDefault();let t=new FileReader,[n]=e.target.files;if(!n){_(!1);return}let{size:r}=n,{minSize:i,maxSize:o}=ru;if(r<i||r>o){_(!1),y(!0),x(!0);return}t.onloadend=()=>
257n,t.readAsDataURL(n),a(n),_(!0)},[a]),O=(0,B.useCallback)(e=>{e.target.value=``},[]),ie=(0,B.useCallback)(e=>{e.preventDefault(),document.getElementById(`task_image`).click(e)},[]),ae=(0,B.useCallback)(()=>{x(!1)},[]);return m?(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`center`,alignItems:`center`},children:(0,K.jsx)(q,{"data-testid":`add_button`,onClick:T,types:[`type-border-primary`,`size-medium`],children:U(`job_request.add`)})}):(0,K.jsx)(I,{sx:{width:`100%`},children:(0,K.jsx)(I,{children:(0,K.jsxs)(`form`,{onSubmit:ne,id:`task-form`,children:[(0,K.jsx)($g,{size:`small`,children:U(`properties.title`)}),(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,value:u,"data-testid":`task-title`,placeholder:U(`job_request.enter_title`,{}),type:`text`,maxLength:80,onChange:D}),(0,K.jsx)(ym,{}),(0,K.jsx)($g,{size:`small`,children:U(`job_request.task`)}),(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,value:f,showErrorMsg:!0,"data-testid":`task-note`,placeholder:U(`job_request.enter_task`,{}),type:`textarea`,maxLength:200,onChange:ee,textAreaHeight:106}),(0,K.jsx)(ym,{}),S?(0,K.jsx)(I,{"data-testid":`message_cannot_add_more_than_5_images`,sx:{fontSize:`12px`,textAlign:`center`,color:`red`},children:U(`job_request.task_image_range_error`)}):(0,K.jsxs)(I,{children:[(0,K.jsx)(Y.IcCameraSolid,{onClick:ie}),(0,K.jsx)(`input`,{type:`file`,id:`task_image`,style:{display:`none`},accept:`image/*`,onChange:re,onClick:O})]}),(0,K.jsx)(ym,{}),v&&(0,K.jsx)(Dg.ImageUpload,{onCloseLimitError:ae,showLimitError:b}),(0,K.jsxs)(I,{sx:{display:`flex`,flexWrap:`wrap`,justifyContent:`space-around`,overflow:`hidden`},children:[(0,K.jsx)(I,{sx:{height:`24px`,display:`flex`,justifyContent:`center`},children:g?(0,K.jsx)(J,{variant:`circular`,width:24,height:24}):null}),(0,K.jsx)(At,{sx:{flexWrap:`nowrap`,transform:`translateZ(0)`,width:1e3,height:`auto`,overflowY:`auto`},cols:3,rowHeight:130,spacing:1,children:r.map(e=>(0,K.jsx)(we,{cols:1,children:(0,K.jsx)(`img`,{src:ou(e),alt:e,onLoad:te})},e))})]}),(0,K.jsx)(ym,{}),(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`row`,justifyContent:`center`},children:[(0,K.jsx)(q,{"data-testid":`cancel_button`,onClick:E,types:[`type-border-grey`,`size-medium`],children:U(`checklist.cancel`,{})}),(0,K.jsx)(I,{sx:{m:`10px`}}),(0,K.jsx)(q,{"data-testid":`task-save-button`,onClick:ne,types:[`type-full-primary`,`size-medium`],disabled:!(u&&f)||g,children:U(`checklist.save`,{})})]})]})})})}fv.propTypes={active:V.default.bool.isRequired,onUploadTaskPic:V.default.func.isRequired,onCancelForm:V.default.func.isRequired,tempTaskImages:V.default.arrayOf(V.default.string),onSubmitForm:V.default.func.isRequired,changeTaskTitle:V.default.func.isRequired,changeTaskDescription:V.default.func.isRequired,imageUploadErrored:V.default.bool,taskDescription:V.default.string,taskTitle:V.default.string};var Wfe=({date:e=null,onDateChange:t,block:n=!1,id:r=void 0,isDayBlocked:i=void 0,isOutsideRange:a=void 0})=>{let[o,s]=(0,B.useState)(()=>(0,z.default)(e)),[c,l]=(0,B.useState)(!1);return(0,B.useEffect)(()=>{e&&s((0,z.default)(e))},[e]),(0,K.jsx)(up,{date:o,onDateChange:(0,B.useCallback)(e=>{s(e),t(e)},[t]),focused:c,onFocusChange:({focused:e})=>l(e),block:n,id:r,isDayBlocked:i,isOutsideRange:a})};Wfe.propTypes={block:V.default.bool,id:V.default.string,isDayBlocked:V.default.func,isOutsideRange:V.default.func,date:V.default.oneOfType([V.default.instanceOf(Date),V.default.object]),onDateChange:V.default.func.isRequired};var Gfe=e=>{let{showProgress:t,steps:n,activeStep:r}=e;return t?(0,K.jsx)(Xr,{sx:{flexBasis:`100%`},activeStep:r,orientation:`horizontal`,children:n.map(e=>(0,K.jsx)(te,{children:(0,K.jsx)(oe,{})},e))}):null},Kfe=e=>{let t=D(),{textAlign:n,children:r,onClose:i}=e;return(0,K.jsxs)(Ie,{sx:{flexBasis:`100%`,padding:t.spacing(2),paddingBottom:0,textAlign:n},children:[r,i?(0,K.jsx)(br,{"aria-label":`Close`,sx:{position:`absolute`,right:0,top:0,color:`var(--color-grey)`},onClick:i,size:`large`,children:(0,K.jsx)(Y.IcClose2,{})}):null]})},qfe=e=>{let t=D(),{textAlign:n,children:r}=e;return(0,K.jsx)(Ut,{sx:{flexBasis:`100%`,padding:t.spacing(2),textAlign:n},children:r})},Jfe=e=>{let{justifyContent:t,children:n}=e;return(0,K.jsx)(en,{sx:{flexBasis:`100%`,position:`relative`,margin:0,borderTop:`1px solid var(--color-border)`,justifyContent:t},children:n})}
257,pv=({steps:e,activeStep:t,showProgress:n=!1,showBackButton:r=!1,showNextButton:i=!0,showFinishButton:a=!0,showErrorButton:o=!1,showActionsLeft:s=!0,backLabel:c=U(`job_request.wizard.back`),nextLabel:l=U(`job_request.wizard.next`),finishLabel:u=U(`job_request.wizard.finish`),errorLabel:d=U(`job_request.wizard.error`),nextEnabled:f=!0,finishEnabled:p=!0,onStep:m=()=>{},onFinish:h=()=>{},onError:g=()=>{},onClose:_=()=>{},actionsLeft:v=void 0,textAlign:y=`left`,style:b={},loading:S=!1,centerActions:C=!1})=>{let w=D(),T=()=>!(t<e.length-1),E=(e,t)=>{m&&m(e,t)},ee=()=>{t!==0&&E(t,t-1)},te=()=>{T()||E(t,t+1)},ne=()=>{T()&&h&&h()},re=()=>{g&&g()},O=()=>t&&s?(0,K.jsx)(q,{onClick:ee,disabled:t===0,types:[`type-flat-grey`,`size-medium`],children:c}):null,ie=()=>T()?null:(0,K.jsx)(q,{onClick:te,disabled:!f,types:[`type-flat-primary`,`size-medium`],styleOverwrite:{minWidth:0,height:`22px`},children:l}),ae=()=>T()?(0,K.jsx)(q,{onClick:ne,disabled:!p,types:[`type-flat-primary`,`size-medium`],styleOverwrite:{minWidth:0},children:u}):null,oe=()=>(0,K.jsx)(q,{onClick:re,types:[`type-flat-primary`,`size-medium`],styleOverwrite:{minWidth:0},children:d}),se=C||o||a&&T()?`space-around`:null,ce=e[t];return ce?(0,K.jsxs)(`div`,{style:{...b,position:`relative`,display:`flex`,flexWrap:`wrap`,flexDirection:`column`},children:[(0,K.jsx)(Kfe,{textAlign:y,onClose:_,children:ce.label}),(0,K.jsx)(Gfe,{showProgress:n,steps:e,activeStep:t}),(0,K.jsx)(qfe,{style:{overflowY:`scroll`},textAlign:y,children:(0,K.jsx)(x,{component:`div`,gutterBottom:!0,children:ce.content})}),(0,K.jsxs)(Jfe,{justifyContent:se,children:[(0,K.jsx)(`span`,{style:{position:`absolute`,left:w.spacing(2),zIndex:1},children:v}),r&&O(),o&&oe(),a&&ae(),i&&ie()]}),S?(0,K.jsx)(xf,{}):``]}):null};pv.propTypes={steps:V.default.arrayOf(V.default.shape({})).isRequired,activeStep:V.default.number.isRequired,showProgress:V.default.bool,showBackButton:V.default.bool,showNextButton:V.default.bool,showFinishButton:V.default.bool,showErrorButton:V.default.bool,showActionsLeft:V.default.bool,backLabel:V.default.string,nextLabel:V.default.string,finishLabel:V.default.string,errorLabel:V.default.string,nextEnabled:V.default.bool,finishEnabled:V.default.bool,onStep:V.default.func,onFinish:V.default.func,onError:V.default.func,onClose:V.default.func,actionsLeft:V.default.node,textAlign:V.default.oneOf([`inherit`,`start`,`end`,`left`,`right`,`center`,`justify`]),style:V.default.shape({}),loading:V.default.bool,centerActions:V.default.bool};var mv={width:26,height:26,borderRadius:`100%`,bgcolor:`rgba(255, 255, 255, 0.95)`,border:`2px solid ${Wp}`,display:`flex`,justifyContent:`center`,alignItems:`center`},Yfe={width:20,height:20,ml:.25,borderRadius:`100%`,bgcolor:`rgba(255, 255, 255, 0.5)`,border:`2px solid rgba(54, 172, 178, 0.4)`,display:`flex`,justifyContent:`center`,alignItems:`center`},Xfe={width:12,height:12,borderRadius:`100%`,bgcolor:Wp},Zfe=e=>{let{active:t,completed:n}=e;return n?(0,K.jsx)(I,{sx:mv,children:(0,K.jsx)(Y.Ic16PxCheck,{width:`14px`,height:`14px`,style:{color:Wp}})}):t?(0,K.jsx)(I,{sx:mv,children:(0,K.jsx)(I,{sx:Xfe})}):(0,K.jsx)(I,{sx:Yfe})},hv=({title:e=``,subtext:t=``,steps:n=[],activeStep:r=0,children:i=null,imageUrl:a=null,logo:o=!1,renderLargeImage:s=!1})=>(0,K.jsxs)(I,{sx:{display:`flex`,minHeight:`100vh`,bgcolor:`var(--color-bg)`,"@media (min-width: 1920px)":{maxHeight:`100vh`}},children:[(0,K.jsxs)(I,{sx:{width:`45%`,minHeight:`100vh`,position:`relative`,overflow:`hidden`,background:`linear-gradient(135deg, #36ACB2 0%, #3FC1B5 50%, #58D5C9 100%)`,"@media (max-width: 768px)":{display:`none`}},children:[(0,K.jsx)(I,{sx:{position:`absolute`,top:0,left:0,right:0,bottom:0,opacity:.1,background:` 258 radial-gradient(circle at 20% 20%, rgba(255,255,255,0.4) 0%, transparent 40%), 259 radial-gradient(circle at 80% 80%, rgba(255,255,255,0.3) 0%, transparent 40%) 260 `,pointerEvents:`none`}}),o&&(0,K.jsx)(Sn,{in:!0,timeout:500,children:(0,K.jsx)(I,{sx:{position:`absolute`,top:32,left:32,zIndex:10},children:(0,K.jsx)(Y,{children:(0,K.jsx)(Y.LogoFull,{width:`140px`,height:`50px`,byWidth:!0})})})}),(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`flex-start`,height:`100%`,padding:`80px 48px 48px`,position:`relative`,zIndex:1},children:[(0,K.jsx)(Sn,{in:!0,timeout:600,children:(0,K.jsx)(x,{variant:`h2`,sx:{color:`#FFFFFF`,fontWeight:700,fontSize:`clamp(2rem, 3vw, 3rem)`,lineHeight:1.2,maxWidth:`10em`,mb:2,textShadow:`0 2px 20px rgba(0,0,0,0.1)`},children:e})}),typeof t==`function`?(0,K.jsx)(Sn,{in:!0,timeout:700,children:t()}):t&&(0,K.jsx)(Sn,{in:!0,timeout:700,children:(0,K.jsx)(x,{variant:`body1`,sx:{color:`rgba(255, 255, 255, 0.9)`,fontSize:`1.1rem`,lineHeight:1.6,maxWidth:`28em`,mb:4},children:t})}),(0,K.jsx)(Sm,{}),(0,K.jsx)(Sn,{in:!0,timeout:800,children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,width:`100%`,mt:`auto`}
260,children:[n?.length?(0,K.jsx)(Xr,{activeStep:r,orientation:`vertical`,sx:{bgcolor:`transparent`,padding:0,"& .MuiStepConnector-line":{borderColor:`rgba(255, 255, 255, 0.3)`,minHeight:`24px`}},connector:(0,K.jsx)(uee,{sx:{padding:0,"& .MuiStepConnector-line":{borderColor:`rgba(255, 255, 255, 0.3)`}}}),children:n.map(({label:e,id:t})=>(0,K.jsx)(te,{children:(0,K.jsx)(oe,{sx:{"& .MuiStepLabel-label":{color:`rgba(255, 255, 255, 0.7)`,fontSize:`0.95rem`,fontWeight:500,"&.Mui-completed":{color:`rgba(255, 255, 255, 0.8)`},"&.Mui-active":{color:`#FFFFFF`,fontWeight:600}}},slots:{stepIcon:Zfe},children:e},`stepLabel-${t}`)},`step-${t}`))}):null,a&&(0,K.jsx)(I,{component:`img`,src:a,alt:``,loading:`lazy`,sx:{minHeight:s?`36vh`:`25vh`,maxHeight:s?`50vh`:`35vh`,maxWidth:`60%`,objectFit:`contain`,ml:`auto`}})]})})]}),(0,K.jsx)(I,{sx:{position:`absolute`,bottom:0,left:0,right:0,height:`3px`,background:`linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent)`}})]}),(0,K.jsxs)(I,{sx:{width:`55%`,minHeight:`100vh`,overflowY:`auto`,bgcolor:`var(--color-bg)`,position:`relative`,"@media (max-width: 768px)":{width:`100%`}},children:[(0,K.jsx)(I,{sx:{position:`absolute`,top:0,left:0,right:0,height:`200px`,background:`linear-gradient(180deg, rgba(54, 172, 178, 0.03) 0%, transparent 100%)`,pointerEvents:`none`,zIndex:0}}),(0,K.jsx)(I,{sx:{position:`relative`,zIndex:1},children:i})]})]});hv.propTypes={title:V.default.string,subtext:V.default.oneOfType([V.default.string,V.default.func]),steps:V.default.arrayOf(V.default.shape({})),activeStep:V.default.number,children:V.default.node,imageUrl:V.default.string,logo:V.default.bool,renderLargeImage:V.default.bool};var gv=({children:e=null})=>(0,K.jsx)(I,{component:`table`,sx:{width:`100%`,borderSpacing:0,borderCollapse:`separate`},children:e});gv.propTypes={children:V.default.node};var _v=({children:e=null})=>(0,K.jsx)(`thead`,{children:e});_v.propTypes={children:V.default.node};var vv=({children:e=null})=>(0,K.jsx)(`tbody`,{children:e});vv.propTypes={children:V.default.node};var yv=({children:e=null,isHead:t=!1})=>(0,K.jsx)(I,{component:`tr`,sx:{height:`48px`,...!t&&{"&:nth-of-type(odd)":{backgroundColor:`var(--color-table-grey)`}},...t&&{"&:nth-of-type(odd)":{backgroundColor:`transparent`}}},children:e});
260yv.propTypes={children:V.default.node,isHead:V.default.bool};var bv=({children:e=null,onClick:t=null,isUnderlined:n=!1,isHead:r=!1})=>{let i=r?`txt--l6m`:`txt--l5`;return(0,K.jsx)(I,{component:`td`,onClick:t,sx:{padding:`10px`,...n&&{textDecoration:`underline`,cursor:`pointer`}},children:(0,K.jsx)(mj,{modifier:[i,`color--black`],children:e})})};bv.propTypes={children:V.default.node,onClick:V.default.func,isUnderlined:V.default.bool,isHead:V.default.bool},gv.Head=_v,gv.Body=vv,gv.Row=yv,gv.Col=bv;var xv=_i.default.bind({"small-steps__ul":`_small-steps__ul_1m81d_1`,smallStepsUl:`_small-steps__ul_1m81d_1`,"small-steps__txt":`_small-steps__txt_1m81d_20`,smallStepsTxt:`_small-steps__txt_1m81d_20`,"small-steps__head":`_small-steps__head_1m81d_27`,smallStepsHead:`_small-steps__head_1m81d_27`,"small-steps__txt--big":`_small-steps__txt--big_1m81d_33`,smallStepsTxtBig:`_small-steps__txt--big_1m81d_33`}),Sv=({title:e=``,steps:t=[],size:n=`small`})=>(0,K.jsxs)(`div`,{className:xv(`small-steps__txt`,{"small-steps__txt--big":n===`big`}),children:[(0,K.jsx)(`div`,{className:xv(`small-steps__head`),children:e}),(0,K.jsx)(`ul`,{className:xv(`small-steps__ul`),children:(0,H.default)(t,(e,t)=>e?(0,K.jsxs)(`li`,{children:[(0,K.jsx)(Y.IcItemCheck2,{width:`1.2em`,height:`1.2em`}),(0,K.jsx)(`span`,{style:{marginLeft:`4px`},children:e.note})]},t):null)})]});Sv.propTypes={title:V.default.string,size:V.default.string,steps:V.default.arrayOf(V.default.shape({note:V.default.string}))};var Cv=({children:e})=>(0,K.jsx)(I,{sx:{height:`52px`,position:`relative`,display:`flex`,alignItems:`center`},children:e});Cv.propTypes={children:V.default.node.isRequired};var Qfe={position:`absolute`,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,border:0},wv={width:40,height:40,minWidth:40,borderRadius:`8px`,border:`1px solid var(--color-border-light)`,background:`var(--surface-raised, var(--color-bg-elevated))`,display:`flex`,alignItems:`center`,justifyContent:`center`},Tv={border:0,background:`transparent`,color:`var(--color-primary)`,cursor:`pointer`,display:`inline-flex`,alignItems:`center`,gap:`8px`,fontFamily:`var(--primaryFont)`,fontSize:`13px`,fontWeight:600,lineHeight:`18px`,padding:`8px 0`},Ev=({myBoxIcon:e,text:t})=>(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,minWidth:0},children:[(0,K.jsx)(I,{sx:wv,children:e}),(0,K.jsx)(I,{sx:{ml:`12px`,minWidth:0},children:(0,K.jsx)(Xg,{style:{display:`block`,color:`var(--color-text)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},title:t,children:t})})]});Ev.propTypes={myBoxIcon:V.default.node.isRequired,text:V.default.string.isRequired};var Dv=({onClick:e})=>(0,K.jsx)(I,{component:`button`,type:`button`,onClick:e,sx:{...Tv,color:`var(--color-primary)`,"&:hover":{color:`var(--color-primary-hover)`}},children:(0,K.jsx)(Xg,{type:`orange`,children:U(`accountprovidersection.edit`)})});Dv.propTypes={onClick:V.default.func.isRequired};var Ov=({data:e,onSync:t,onReconnect:n,onDisconnect:r,hasConnectionIssue:i,showReconnect:a})=>{let o=[{key:`re_import`,"data-testid":`AccountProviderSection_re_import`,name:U(`account.re_import`),onClick:()=>t(e)},...(a||i)&&n?[{key:`re_connect`,"data-testid":`AccountProviderSection_re_connect`,name:U(`account.re_connect`),onClick:()=>n(e)}]:[],{key:`disconnect`,"data-testid":`AccountProviderSection_disconnect`,name:U(`account.delete_account`),onClick:()=>r(e)}];return(0,K.jsx)(Lg,{popoverContent:e=>(0,K.jsx)(Ad,{closePopover:e.closePopup,items:o}),hasArrow:!0,width:180,children:(0,K.jsxs)(I,{"data-testid":`AccountProviderSection_menu_trigger`,sx:{cursor:`pointer`,p:`8px`,m:`-8px`,display:`flex`,alignItems:`center`,justifyContent:`center`,minWidth:`44px`,minHeight:`44px`},title:U(`accountprovidersection.edit`),children:[(0,K.jsx)(I,{component:`span`,sx:Qfe,children:U(`accountprovidersection.edit`)}),(0,K.jsx)(Y.IcMorePrimary,{byWidth:!0,height:`24px`,width:`24px`})]})})};Ov.propTypes={data:V.default.shape({}).isRequired,onSync:V.default.func.isRequired,onReconnect:V.default.func,onDisconnect:V.default.func.isRequired,hasConnectionIssue:V.default.bool,showReconnect:V.default.bool};var kv=({icon:e,text:t,isClean:n,isConnect:r,isAdd:i,isEdit:a,isLast:o,isFirst:s,onConnect:c,onAdd:l,isMerge:u,onClick:d,onEdit:f,onSync:p,onReconnect:m,onDisconnect:h,showReconnect:g,data:_,hasError:v,onboardingMobile:y})=>{let b=n?{backgroundColor:`transparent`,border:`1px solid transparent`,padding:`0`,minHeight:`24px`,he
260ight:`auto`}:{...y&&{boxShadow:`0 2px 6px 0 rgba(146, 146, 146, 0.3)`},backgroundColor:i?`transparent`:`var(--color-white)`,borderColor:i?`transparent`:`var(--color-border-light)`,height:`auto`,minHeight:i?`auto`:`72px`,padding:i?`0`:`14px 16px`,boxShadow:i?`none`:`var(--shadow-sm)`};u&&(b.cursor=`pointer`);let x=typeof e==`string`?(0,K.jsx)(Y,{src:e,byWidth:!0,height:`22px`,width:`22px`}):(0,K.jsx)(e,{height:`22px`,width:`22px`}),S=({lastSync:e})=>e?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(hm,{}),(0,K.jsx)(Zg,{style:{display:`block`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},type:`grey`,title:e?(0,z.default)(e).format(`lll`):``,children:(e=>e&&`${U(`properties.ical_last_synced`)} ${(0,z.default)(e).from()}`)(e)||``})]}):null;return n?(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`10px`,pt:`4px`,pb:`2px`},children:[(0,K.jsx)(I,{sx:{...wv,width:32,height:32,minWidth:32},children:x}),(0,K.jsx)(Xg,{style:{color:`var(--color-text-secondary)`,letterSpacing:`0.02em`},children:t})]}):(0,K.jsxs)(fm,{isLast:o,isFirst:s,onClick:d,focus:v,styleOverwrite:b,children:[!a&&!i&&!r&&(0,K.jsx)(Ev,{myBoxIcon:x,text:t}),i&&(0,K.jsxs)(I,{component:`button`,type:`button`,onClick:l,sx:{...Tv,"&:hover":{color:`var(--color-primary-hover)`}},children:[x,(0,K.jsx)(Xg,{type:`orange`,children:U(`accountprovidersection.add_account`)})]}),r&&(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,width:`100%`,alignItems:`center`,gap:`16px`},children:[(0,K.jsx)(Ev,{myBoxIcon:x,text:t}),y?(0,K.jsx)(I,{component:`button`,type:`button`,onClick:c,"aria-label":U(`accountprovidersection.connect`),sx:{border:0,background:`transparent`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,minWidth:36,minHeight:36},children:(0,K.jsx)(Y.IcPlusOrange,{byWidth:!0,height:`12px`,width:`12px`})}):(0,K.jsx)(q,{types:[`type-border-primary`,`size-medium`],onClick:c,children:U(`accountprovidersection.connect`)})]}),a&&!v&&(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,width:`100%`,alignItems:`center`,gap:`16px`},children:[(0,K.jsxs)(I,{sx:{minWidth:0,display:`flex`,alignItems:`center`},children:[(0,K.jsx)(I,{sx:wv,children:x}),(0,K.jsxs)(I,{sx:{ml:`12px`,minWidth:0},children:[(0,K.jsx)(Xg,{style:{display:`block`,color:`var(--color-text)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},title:t,children:t}),S(_)]})]}),p&&h?(0,K.jsx)(Ov,{data:_,onSync:p,onReconnect:m,onDisconnect:h,hasConnectionIssue:v,showReconnect:g}):(0,K.jsx)(Dv,{onClick:()=>f(_)})]}),a&&v&&(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,width:`100%`,alignItems:`center`,flexWrap:`wrap`,gap:`10px 16px`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,minWidth:0,flex:`1 1 260px`},children:[(0,K.jsx)(I,{sx:{...wv,borderColor:`var(--color-red-light-darker)`},children:(0,K.jsx)(Y.IcError1,{byWidth:!0})}),(0,K.jsx)(I,{sx:{ml:`12px`,minWidth:0},children:(0,K.jsx)(Xg,{style:{display:`block`,color:`var(--color-text)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},title:t,children:t})})]}),(0,K.jsx)(I,{className:`text-l7`,sx:{color:`var(--color-no-result)`,lineHeight:`18px`},children:U(`account.connected_account_warning`)}),p&&h?(0,K.jsx)(Ov,{data:_,onSync:p,onReconnect:m,onDisconnect:h,hasConnectionIssue:v,showReconnect:g}):(0,K.jsx)(Dv,{onClick:()=>f(_)})]})]})},Av=({text:e,icon:t,accounts:n=[],onConnect:r=()=>{},onAdd:i=()=>{},onEdit:a=()=>{},onSync:o,onReconnect:s,onDisconnect:c,showReconnect:l=!1,onboardingMobile:u=!1})=>(0,K.jsxs)(K.Fragment,{children:[n.length===0&&(0,K.jsx)(kv,{icon:t,isLast:!0,isFirst:!0,onEdit:a,onConnect:r,onAdd:i,isConnect:!0,text:e,onboardingMobile:u}),n.length!==0&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(kv,{icon:t,text:e,isClean:!0}),(0,H.default)(n,(e,n)=>(0,K.jsx)(kv,{hasError:e.connectionIssue,data:e,icon:t,isEdit:!0,text:e.resolvedName||e.label,onEdit:a,onSync:o,onReconnect:s,onDisconnect:c,showReconnect:l,onConnect:r,onAdd:i,isFirst:n===0,onboardingMobile:u},n)),(0,K.jsx)(kv,{onEdit:a,icon:Y.IcPlus2,isAdd:!0,isLast:!0,onConnect:r,onAdd:i,onboardingMobile:u})]})]}),$fe=()=>(0,K.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,K.jsx)(`rect`,{x:`9`,y:`9`,width:`11`,height:`11`,rx:`2`}),(0,K.jsx)(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`})]}),epe=()=>(0,K.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,K.jsx)(`path`,{d:`M20 6 9 17l-5-5`})});
260Av.Box=kv,Av.Light=({icon:e,id:t,children:n,text:r})=>{let[i,a]=B.useState(!1),o=B.useRef(null);B.useEffect(()=>()=>clearTimeout(o.current),[]);let s=B.useCallback(()=>{t!=null&&(navigator.clipboard?.writeText(String(t)),a(!0),clearTimeout(o.current),o.current=setTimeout(()=>a(!1),1500))},[t]);return(0,K.jsxs)(I,{sx:{display:`flex`,p:`14px 20px`,position:`relative`,alignItems:`center`,gap:`16px`,borderRadius:`10px`,background:`var(--surface-ground, var(--color-bg))`,border:`1px solid var(--color-border)`},children:[e&&(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:36,height:36,borderRadius:`8px`,background:`var(--color-gray-50, rgba(128, 128, 128, 0.08))`,flexShrink:0},children:(0,K.jsx)(I,{component:`img`,src:e,alt:r||``,sx:{height:22,width:22,objectFit:`contain`}})}),(0,K.jsxs)(I,{sx:{flex:1,justifyContent:`center`,display:`flex`,flexDirection:`column`,gap:`4px`,minWidth:0},children:[r&&(0,K.jsx)(Xg,{type:`medium`,children:r}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`8px`,minWidth:0},children:[(0,K.jsx)(Zg,{type:`grey`,children:U(`account.property_id`)}),(0,K.jsxs)(I,{component:`button`,type:`button`,onClick:s,title:U(i?`account.copied`:`account.copy_id`),"aria-label":`${U(`account.copy_id`)}: ${t}`,sx:{minWidth:0,display:`inline-flex`,alignItems:`center`,gap:`6px`,padding:`3px 7px`,border:`1px solid transparent`,borderRadius:`7px`,background:`transparent`,cursor:`pointer`,font:`inherit`,fontSize:`14px`,fontWeight:600,lineHeight:1,color:i?`var(--color-success, #2e7d32)`:`var(--color-text)`,transition:`background 0.15s ease, border-color 0.15s ease, color 0.15s ease`,"&:hover":{borderColor:i?`var(--color-success, #2e7d32)`:`var(--color-border, rgba(128, 128, 128, 0.24))`,background:`var(--color-gray-50, rgba(128, 128, 128, 0.1))`},"&:focus-visible":{outline:`2px solid var(--color-primary, #2bb3a3)`,outlineOffset:`2px`}},children:[(0,K.jsx)(I,{component:`span`,sx:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t}),(0,K.jsx)(I,{component:`span`,sx:{display:`inline-flex`,flexShrink:0,opacity:.7},children:i?(0,K.jsx)(epe,{}):(0,K.jsx)($fe,{})})]})]})]}),n]})},Av.propTypes={text:V.default.string.isRequired,onAdd:V.default.func,onConnect:V.default.func,onEdit:V.default.func,onSync:V.default.func,onReconnect:V.default.func,onDisconnect:V.default.func,showReconnect:V.default.bool,accounts:V.default.arrayOf(V.default.shape({resolvedName:V.default.string,connectionIssue:V.default.bool,label:V.default.string,lastSync:V.default.string})),icon:V.default.oneOfType([V.default.string,V.default.elementType]).isRequired,onboardingMobile:V.default.bool};var jv=!0,tpe=(e,t)=>jv&&un({message:e,data:t}),npe=(e,t)=>{jv&&Vu(`webapp`,e,JSON.stringify(t))},Mv=(e,t)=>{R.default.info(`tracking event`,e,t),npe(e,t),tpe(e,t)},Nv=e=>{jv=e},rpe=()=>{Mv(`Log In Complete`)},ipe=e=>{Mv(`Toggle Mode`,{role:e})},ape=e=>{Mv(`Calendar search query`,{query:e})},ope=e=>{Mv(`Calendar filter`,{filter:e})},spe=(e,t)=>{Mv(`Calendar filter save`,{filterName:e,filters:t})},cpe=()=>{Mv(`Calendar cancel toggle`)},lpe=()=>{Mv(`Merge Properties Open`)},upe=(e,t)=>{Mv(`Property tag change`,{change:e,propertyId:t})},Pv=e=>{Mv(`Property Duplicate Banner Action`,{answer:e})},dpe=()=>{Mv(`Merge Property Success`)},fpe=()=>{Mv(`Property Duplicate Banner Shown`)},ppe=e=>{Mv(`Host Activity Open`,{jobRequestId:e})},mpe=e=>{Hu(e),Mv(`Webapp Page Change`,{pagepath:e})},hpe=(e,t)=>{Mv(`App opened`,{loggedIn:e,role:t})},gpe=()=>{Mv(`logout`)},_pe=()=>{Mv(`Show Error Screen`)},vpe=()=>{Mv(`Settings Profile Page`,{role:1})},ype=()=>{Mv(`Invite Contact Start`)},bpe=()=>{Mv(`Invite Contact Existing`)},xpe=()=>{Mv(`Invite Contact New`)},Fv=()=>{Mv(`Add Contact Successful`)},Spe=()=>{Mv(`Show Log In Screen`)},Cpe=()=>{Mv(`Show Sign Up Screen`)},Iv=()=>{Mv(`Sign Up Complete`),Uu(`GOOGLE_ADWORDS_SIGNUP_CONVERSION_ID`)},wpe=(e,t)=>{Mv(`Assign Job Flow Started`,{source:e,action:t})},Tpe=(e,t)=>{Mv(`Autoscheduler Flow Started`,{source:e,action:t})},Epe=(e,t)=>{Mv(`upcoming_schedule_opened`,{recurrence_unit:e,repeat_every:t})},Dpe=(e,t,n,r,i,a,o,s,c)=>{Mv(`Assign Job Sent`,{checklistId:e,numOfCleaners:t,daysToJob:n,endDaysToJob:r,eventId:i,countChecklists:a,checklistsCommaSeperated:o,isEdit:s,jobStartTimeType:c})},Ope=()=>{Mv(`Create Property Started`)},Lv=e=>{Mv(`Create Property Created`,{propertyId:e})},kpe=e=>{Mv(`Property Delete`,{propertyId:e})},Ape=e=>{Mv(`Property Edit Details`,{propertyId:e})},Rv=e=>{Mv(`Edit Property Address`,{propertyId:e})},jpe=e=>{Mv(`Checklist Delete`,{checklistId:e})},Mpe=()=>{Mv(`Checklist Edit Description Done`)},Npe=()=>{Mv(`Checklist Edit Description`)},zv=()=>{Mv(`Checklist Add Slide`)}
260,Ppe=()=>{Mv(`Checklist Slide Delete`)},Fpe=()=>{Mv(`Checklist Slide Duplicate`)},Ipe=e=>{Mv(`Checklist Created`,{checklistId:e})},Lpe=e=>{Mv(`Checklist Add Pin`,{checklistId:e})},Rpe=e=>{Mv(`Checklist Add Pin Note`,{checklistId:e})},zpe=()=>{Mv(`Partner Open`)},Bv=e=>{Mv(`Partner Connect Start`,{partner:e})},Bpe=()=>{Mv(`Assign Job View Suggested`)},Vpe=()=>{Mv(`Assign Job View Suggested Confirmed`)},Vv=()=>{Mv(`Assign Job Select Cleaner`)},Hv=()=>{Mv(`Assign Job Show Cleaners`)},Uv=e=>{Mv(`Assign Select Property`,{propertyId:e})},Wv=e=>{Mv(`Assign Select Job`,{jobId:e})},Gv=()=>{Mv(`Assign Job Added Myself`)},Hpe=e=>{Mv(`Host Send To Mobile Action`,{type:e})},Upe=()=>{Mv(`Duplicate Checklist into other Property Webapp`)},Wpe=()=>{Mv(`Send Jobrequest to more cleaners Webapp`)},Gpe=()=>{Mv(`Create report`)},Kpe=()=>{Mv(`Save report`)},Kv=()=>{Mv(`Export report`)},qpe=e=>{Mv(`Pricing Pro Feature`,{attemptedAction:e})},Jpe=()=>{Mv(`Pricing Visit Receipt Page`)},qv=()=>{Mv(`Pricing Click on Update Details`)},Ype=()=>{Mv(`Pricing Click Cancel Subscription`)},Xpe=()=>{Mv(`Pricing Thank You Upgrade Modal`),Uu(`GOOGLE_ADWORDS_SUBSCRIPTION_CONVERSION_ID`)},Zpe=e=>{Mv(`Pricing Limit Reached`,{remainingJobRequests:e})},Jv=e=>{Mv(`Event Skipped`,{eventId:e})},Yv=()=>{Mv(`user_interaction_payment_method_page_view`,{event_category:`user_engagement`,event_label:`payment_method_page`})},Xv=(e,t=`add`)=>{Mv(`user_interaction_payment_method_modal_open`,{event_category:`user_engagement`,event_label:`payment_method_modal`,modal_type:t,eventId:e})},Zv=e=>{Mv(`user_success_payment_method_update`,{event_category:`user_conversion`,event_label:`payment_method_update`,eventId:e})},Qv=e=>{Mv(`user_success_subscription_reinstatement`,{event_category:`user_conversion`,event_label:`subscription_reactivation`,eventId:e})},Qpe=e=>{Mv(`user_interaction_reinstate_subscription_link`,{event_category:`user_conversion`,event_label:`subscription_reinstatement`,eventId:e})},$pe=(e,t=!1)=>{Mv(`Checklist Viewed`,{checklistId:e,isFirstView:t})},eme=(e,t={})=>{Mv(`Post Login First Action`,{action:e,...t})},$v=e=>{let t=`properly_first_view_${e}`;return localStorage.getItem(t)?!1:(localStorage.setItem(t,`true`),!0)},tme=()=>{let e=$v(`calendar`);Mv(`Calendar Viewed`,{isFirstView:e}),e&&Mv(`Feature First Use`,{feature:`calendar`})},nme=()=>{let e=$v(`jobs`);Mv(`Jobs Viewed`,{isFirstView:e}),e&&Mv(`Feature First Use`,{feature:`jobs`})},rme=()=>{let e=$v(`todos`);Mv(`Todos Viewed`,{isFirstView:e}),e&&Mv(`Feature First Use`,{feature:`todos`})},ime=()=>{let e=$v(`contacts`);Mv(`Contacts Viewed`,{isFirstView:e}),e&&Mv(`Feature First Use`,{feature:`contacts`})},ame=()=>{let e=$v(`property_list`);Mv(`Property List Viewed`,{isFirstView:e}),e&&Mv(`Feature First Use`,{feature:`property_list`})},ome=()=>{let e=$v(`reports`);Mv(`Reports Viewed`,{isFirstView:e}),e&&Mv(`Feature First Use`,{feature:`reports`})},sme=(e=`main`)=>{let t=$v(`settings`);Mv(`Settings Viewed`,{isFirstView:t,section:e}),t&&Mv(`Feature First Use`,{feature:`settings`})},cme=(e=`profile`)=>{let t=$v(`account`);Mv(`Account Viewed`,{isFirstView:t,section:e}),t&&Mv(`Feature First Use`,{feature:`account`})},lme=()=>{let e=$v(`permissions`);Mv(`Permissions Viewed`,{isFirstView:e}),e&&Mv(`Feature First Use`,{feature:`permissions`})},ume=()=>{let e=$v(`autoscheduling`);Mv(`AutoScheduling Viewed`,{isFirstView:e}),e&&Mv(`Feature First Use`,{feature:`autoscheduling`})},dme=()=>{let e=$v(`job_request`);Mv(`Job Request Viewed`,{isFirstView:e}),e&&Mv(`Feature First Use`,{feature:`job_request`})},fme=()=>{let e=$v(`library`);Mv(`Library Viewed`,{isFirstView:e}),e&&Mv(`Feature First Use`,{feature:`library`})},pme=()=>{let e=$v(`pricing`);Mv(`Pricing Viewed`,{isFirstView:e}),e&&Mv(`Feature First Use`,{feature:`pricing`})},mme=(e,t)=>
260{Mv(`Trial Banner Shown`,{phase:e,daysRemaining:t})},hme=e=>{Mv(`Trial Banner Upgrade Click`,{phase:e})},ey=e=>{Mv(`Trial Modal Shown`,{modalType:e})},gme=()=>{Mv(`Trial Expired Overlay Shown`)},_me=()=>{Mv(`Pro Integrations Card Shown`)},vme=()=>{Mv(`Pro Integrations Card Click`)},yme=(e=``)=>e.split(/\s+by\s+/i)[0],ty=({proIntegrations:e=[],onUpgradeClick:t})=>((0,B.useEffect)(()=>{_me()},[]),(0,K.jsxs)(I,{sx:{borderRadius:`var(--radius-md, 10px)`,border:`1px solid var(--color-border-light)`,background:`var(--color-white)`,boxShadow:`var(--shadow-sm)`,p:{xs:`20px`,sm:`24px`}},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:{xs:`stretch`,sm:`center`},justifyContent:`space-between`,gap:2,flexDirection:{xs:`column`,sm:`row`}},children:[(0,K.jsxs)(I,{sx:{minWidth:0,maxWidth:620},children:[(0,K.jsx)(Kg,{type:`nomargin`,children:U(`account.pro_integrations_title`)}),(0,K.jsx)(I,{sx:{mt:1},children:(0,K.jsx)(Yg,{type:`greyloading`,children:U(`account.pro_integrations_subtitle`)})})]}),(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`flex-start`,flexShrink:0},children:(0,K.jsx)(q,{onClick:t,types:[`type-full-primary`,`size-medium`],"data-testid":`pro-integrations-upgrade-btn`,styleOverwrite:{width:`100%`},children:U(`account.pro_integrations_cta`)})})]}),(0,K.jsx)(I,{role:`list`,sx:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(104px, 1fr))`,gap:{xs:1.25,sm:1.5},mt:3},children:e.map(e=>{let t=yme(e.label);return(0,K.jsxs)(I,{role:`listitem`,"data-testid":`pro-integration-tile`,sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:`8px`,p:`12px 10px`,borderRadius:`8px`,background:`var(--surface-raised, var(--color-bg-elevated))`,border:`1px solid var(--color-border-light)`,minHeight:88,minWidth:0},children:[(0,K.jsx)(I,{"aria-hidden":`true`,sx:{width:32,height:32,display:`flex`,alignItems:`center`,justifyContent:`center`},children:e.icon?(0,K.jsx)(Y,{src:e.icon,byWidth:!0,height:`28px`,width:`28px`}):(0,K.jsx)(Y.IcConnect,{byWidth:!0,height:`28px`,width:`28px`})}),(0,K.jsx)(Xg,{type:`grey`,title:e.label,style:{wordBreak:`break-word`,fontSize:`11px`,textAlign:`center`,lineHeight:`14px`,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`,maxWidth:`100%`,minHeight:`28px`},children:t})]},e.id)})})]}));ty.propTypes={proIntegrations:V.default.arrayOf(V.default.shape({id:V.default.string,label:V.default.string,icon:V.default.string})),onUpgradeClick:V.default.func.isRequired};var bme={display:`flex`,alignItems:`center`,gap:`8px`,marginBottom:`12px`},xme={fontSize:`13px`,fontWeight:600,color:`var(--color-text-secondary)`,textTransform:`uppercase`,letterSpacing:`0.5px`},Sme={display:`flex`,alignItems:`stretch`,gap:`12px`,padding:`12px`,backgroundColor:`var(--surface-raised)`,borderRadius:`8px`,border:`1px solid var(--color-border-light)`},Cme={flex:1,minWidth:0},wme={fontSize:`11px`,fontWeight:500,color:`var(--color-text-tertiary)`,textTransform:`uppercase`,letterSpacing:`0.3px`,marginBottom:`4px`},Tme={fontSize:`14px`,fontWeight:600,color:`var(--color-text)`,lineHeight:1.3},Eme={fontSize:`13px`,fontWeight:500,color:`var(--color-text-secondary)`,marginTop:`2px`},Dme={display:`flex`,alignItems:`center`,justifyContent:`center`,padding:`0 4px`,color:`var(--color-text-tertiary)`},Ome={fontSize:`11px`,fontWeight:500,color:`var(--color-text-secondary)`,marginBottom:`8px`,padding:`4px 8px`,backgroundColor:`var(--surface-overlay)`,borderRadius:`4px`,display:`inline-block`},ny=({label:e,date:t,timeZone:n})=>(0,K.jsxs)(I,{sx:Cme,children:[(0,K.jsx)(x,{sx:wme,children:e}),(0,K.jsx)(x,{sx:Tme,children:t.tz(n).format(`MMM D, YYYY`)}),(0,K.jsx)(x,{sx:Eme,children:t.tz(n).format(`h:mm A`)})]}),ry=({arrivalDate:e,departureDate:t,timeZone:n,timezoneLabel:r})=>(0,K.jsxs)(I,{sx:{marginBottom:r?`12px`:0},children:[r&&(0,K.jsx)(x,{sx:Ome,children:r}),(0,K.jsxs)(I,{sx:Sme,children:[(0,K.jsx)(ny,{label:U(`calendar.check_in`),date:e,timeZone:n}),(0,K.jsx)(I,{sx:Dme,children:(0,K.jsx)(Y.IcTimeArrow,{})}),(0,K.jsx)(ny,{label:U(`calendar.check_out`),date:t,timeZone:n})]})]}),kme=({arrivalDate:e,departureDate:t,propertyTimeZone:n,currentTimeZone:r})=>{let i=qc(n,r);return(0,K.jsxs)(I,{children:[(0,K.jsxs)(I,{sx:bme,children:[(0,K.jsx)(Y.IcCalendar,{width:`14px`,color:`var(--color-text-secondary)`}),(0,K.jsx)(x,{sx:xme,children:U(`calendar.booking_dates`)})]}),i?(0,K.jsx)(ry,{arrivalDate:e,departureDate:t,timeZone:n}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(ry,{arrivalDate:e,departureDate:t,timeZone:n,timezoneLabel:`${U(`calendar.property_time`)} (${z.default.tz(n).format(`z`)})`}),(0,K.jsx)(ry,{arrivalDate:e,departureDate:t,timeZone:r,timezoneLabel:`${U(`calendar.your_time`)} (${z.default.tz(r).format(`z`)})`})]})]})},Ame={display:`flex`,alignItems:`center`,gap:`8px`,marginBottom:`12px`},jme={fontSize:`13px`,fontWeight:600,color:`var(--color-text-secondary)`,textTransform:`uppercase`,letterSpacing:`0.5px`},Mme={display:`flex`,flexWrap:`wrap`,gap:`16px`,padding:`12px`,backgroundColor:`var(--surface-raised)`,borderRadius:`8px`,border:`1px solid var(--color-border-light)`},Nme={display:`flex`,alignItems:`center`,gap:`6px`},iy={fontSize:`13px`,fontWeight:500,color:`var(--color-text)`},ay={fontSize:`12px`,color:`var(--color-text-secondary)`,marginTop:`8px`,paddingTop:`8px`,borderTop:`1px solid var(--color-border-light)`,width:`100%`},oy=e=>`${e.quantity} ${Sc(e.bedDisplayType)}${e.twinable?`, Twinable`:``}`,sy=e=>e&&e.length>0?e.map(oy):``,cy=({bedConfiguration:e})=>{let t=sy(e);return!t||t.length===0?null:(0,K.jsx)(x,{sx:ay,children:t.join(` ⢠`)})},ly=({hideLabel:e,hasPropertyInformation:t,generalDetails:n,bedConfiguration:r})=>t&&(0,K.jsxs)(I,{children:[!e&&(0,K.jsxs)(I,{sx:Ame,children:[(0,K.jsx)(Vt,{s
260x:{fontSize:`14px`,color:`var(--color-text-secondary)`}}),(0,K.jsx)(x,{sx:jme,children:U(`job_request.property_information`)})]}),(0,K.jsxs)(I,{sx:Mme,children:[n.map(({value:e,icon:t})=>(0,K.jsxs)(I,{sx:Nme,children:[t,(0,K.jsx)(x,{sx:iy,children:e})]},e)),r&&(0,K.jsx)(cy,{bedConfiguration:r})]})]}),uy=(e,t)=>`${e} ${U(`${t}${e===1?`_singular`:`_plural`}`)}`,dy={fontSize:`16px`,color:`var(--color-text-tertiary)`},fy=({type:e,numOfBedrooms:t,numOfBathrooms:n,numOfBeds:r,...i})=>({type:e,numOfBedrooms:t,numOfBathrooms:n,numOfBeds:r,...i,generalDetails:[{value:e},{icon:(0,K.jsx)(Dr,{sx:dy}),value:t&&`${uy(t,`job_request.num_bedrooms`)}`},{icon:(0,K.jsx)(Ve,{sx:dy}),value:r&&`${uy(r,`job_request.num_beds`)}`},{icon:(0,K.jsx)(_e,{sx:dy}),value:n&&`${uy(n,`job_request.num_baths`)}`}].filter(({value:e})=>!!e)}),py=e=>Array.isArray(e)&&e.filter(e=>!!e),my=({type:e,numOfBathrooms:t,numOfBedrooms:n,numOfBeds:r,bedConfiguration:i})=>{let a=py(i);return!!e||!!t||!!n||!!r||a&&a.length>0},hy=({hideLabel:e,type:t,numOfBathrooms:n,numOfBedrooms:r,numOfBeds:i,bedConfiguration:a})=>{let o=fy({type:t&&Sc(t),numOfBathrooms:n,numOfBedrooms:r,numOfBeds:i,bedConfiguration:py(a)||[]});return ly({hideLabel:!!e,hasPropertyInformation:my({type:t,numOfBathrooms:n,numOfBedrooms:r,numOfBeds:i,bedConfiguration:a}),...o})},gy={display:`flex`,alignItems:`center`,gap:`8px`,marginBottom:`12px`},_y={fontSize:`13px`,fontWeight:600,color:`var(--color-text-secondary)`,textTransform:`uppercase`,letterSpacing:`0.5px`},vy={display:`flex`,alignItems:`center`,gap:`16px`,padding:`12px`,backgroundColor:`var(--surface-raised)`,borderRadius:`8px`,border:`1px solid var(--color-border-light)`},yy={fontSize:`14px`,fontWeight:600,color:`var(--color-text)`},by={fontSize:`13px`,color:`var(--color-text-secondary)`,marginTop:`2px`},xy=e=>`${e} ${U(e===1?`calendartile.guest_singular`:`calendartile.guest_plural`)}`,Sy=({guestName:e,numberOfGuests:t,title:n})=>(0,K.jsxs)(I,{children:[(0,K.jsxs)(I,{sx:gy,children:[(0,K.jsx)(Y.IcProfile,{width:`14px`,color:`var(--color-text-secondary)`}),(0,K.jsx)(x,{sx:_y,children:U(`booking_detail.guest_information_group`)})]}),(0,K.jsx)(I,{sx:vy,children:(0,K.jsxs)(I,{children:[(0,K.jsx)(x,{sx:yy,children:e&&e!==`Guest`?e:n||`Guest`}),(0,K.jsx)(x,{sx:by,children:xy(t)})]})})]}),Cy={display:`flex`,flexDirection:`column`,gap:`20px`},wy={padding:0},Ty={borderColor:`var(--color-border-light)`},Ey={marginTop:`12px`},Dy=e=>({type:e.type||U(`calendar.not_available`),numOfBedrooms:e.numOfBedrooms||0,numOfBathrooms:e.numOfBathrooms||0,numOfBeds:e.numOfBeds||0,bedConfiguration:e.bedConfiguration,hasPropertyInformation:!!(e.type||e.numOfBedrooms||e.numOfBathrooms||e.numOfBeds||e.bedConfiguration)}),Oy=({openPictures:e=()=>{},booking:t,property:n})=>{if(!t||!n)return null;let{id:r,guestData:i,guestName:a,title:o,numberOfGuests:s,arrivalDate:c,departureDate:l,otherAttributes:u,tags:d}=t||{},f={},{timeZone:p}=n||{};f.firstName=a||i?.firstName||``,f.lastName=i?.lastName||``,f.BookingTitle=o||i?.title||``;let m={otherAttributes:u||[],key:`dynamicField`},h=Dy(n);return(0,K.jsxs)(I,{sx:Cy,"data-testid-booking-id":r,children:[(0,K.jsxs)(I,{sx:wy,children:[(0,K.jsx)(kme,{currentTimeZone:z.default.tz.guess(),propertyTimeZone:p,arrivalDate:z.default.utc(c),departureDate:z.default.utc(l)}),d&&d.length>0&&(0,K.jsx)(I,{sx:Ey,children:(0,K.jsx)(uf,{tags:d})})]}),h.hasPropertyInformation&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Or,{sx:Ty}),(0,K.jsx)(I,{sx:wy,children:(0,K.jsx)(hy,{...h,compact:!0})})]}),(0,K.jsx)(Or,{sx:Ty}),(0,K.jsx)(I,{sx:wy,children:(0,K.jsx)(Sy,{guestName:`${f.firstName||``} ${f.lastName||``}`.trim(),numberOfGuests:s||0,title:f.BookingTitle,compact:!0})}),u&&u.length>0&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Or,{sx:Ty}),(0,K.jsx)(I,{sx:wy,children:(0,K.jsx)(ofe,{openPictures:e,...m,compact:!0})})]})]})};Oy.propTypes={openPictures:V.default.func,booking:V.default.shape({id:V.default.string.isRequired,guestData:V.default.shape().isRequired,numberOfGuests:V.default.number,arrivalDate:V.default.string.isRequired,departureDate:V.default.string.isRequired,otherAttributes:V.default.arrayOf(V.default.string),tags:V.default.arrayOf(V.default.string)}).isRequired,property:V.default.shape({type:V.default.string,numOfBedrooms:V.default.number.isRequired,numOfBathrooms:V.default.number.isRequired,numOfBeds:V.default.number.isRequired,bedConfiguration:V.default.arrayOf(V.default.string)}).isRequired};var ky={padding:`20px 24px`,overflowY:`auto`},Ay={display:`flex`,alignItems:`center`,justifyContent:`center`,width:`32px`,he
260ight:`32px`,padding:0,border:`none`,borderRadius:`6px`,backgroundColor:`transparent`,cursor:`pointer`,transition:`background-color 0.15s ease, transform 0.1s ease`,"&:hover":{backgroundColor:`rgba(255, 50, 48, 0.12)`},"&:hover svg, &:hover svg line":{stroke:`var(--color-red)`},"&:active":{transform:`scale(0.94)`}},jy=e=>{let{show:t=!1,handleCancel:n=null,renderChildren:r=null}=e,[i,a]=(0,B.useState)(t),o=()=>{a(!i),n&&n()};return(0,K.jsx)(Tg,{show:i,enforceFocus:!0,height:`auto`,width:520,title:U(`calendar.booking_details`),onClose:o,headerChildren:()=>(0,K.jsx)(I,{component:`button`,onClick:o,sx:Ay,"aria-label":`close`,children:(0,K.jsx)(Y.IcCloseLightGray,{})}),block:!0,variableContentHeight:!0,children:(0,K.jsx)(I,{sx:ky,children:r&&r(e)})})};jy.propTypes={show:V.default.bool,handleCancel:V.default.func,renderChildren:V.default.func};var My=`STORE_SAVED_FILTERS_KEY`,Ny=()=>vi.get(My)||[],Py=({filterName:e,filters:t})=>{let n=[...Ny().filter(({filterName:t})=>t!==e),{filterName:e,filters:t}];return vi.set(My,n),n},Fy=e=>{let t=Ny().filter(({filterName:t})=>e!==t);return vi.set(My,t),t};function Iy({filterSchema:e,initFilter:t,onHeightChange:n=()=>{},getGraphqlAutocomplete:r=()=>Promise.resolve([]),onChange:i,onSave:a=()=>{}}){let[o,s]=(0,B.useState)(Ny),c=(0,B.useRef)(i);(0,B.useEffect)(()=>{c.current=i},[i]);let l=(0,B.useMemo)(()=>(0,Xf.default)(e=>c.current(e),500,{maxWait:2e3}),[]);(0,B.useEffect)(()=>()=>{l.cancel()},[l]);let u=(0,B.useCallback)(e=>{i(e)},[i]),d=(0,B.useCallback)(e=>{R.default.info(`Calendar filter handleChange`,e),l(e)},[l]);return(0,K.jsx)(ev,{filterSchema:e,initFilter:t,savedFilters:o,onSubmit:u,onSave:(0,B.useCallback)(({filterName:e,filters:t})=>{R.default.info(`Handle calendar filter save`,{filterName:e,filters:t}),s(Py({filterName:e,filters:t})),a({filterName:e,filters:t})},[a]),onLoad:(0,B.useCallback)(e=>{R.default.info(`Handle calendar filter load`,e),i(e)},[i]),onDelete:(0,B.useCallback)(e=>{R.default.info(`Handle calendar filter delete`,e),s(Fy(e))},[]),onChange:d,onHeightChange:n,getGraphqlAutocomplete:r})}Iy.propTypes={filterSchema:V.default.arrayOf(V.default.shape({})).isRequired,initFilter:V.default.arrayOf(V.default.shape({})).isRequired,onSave:V.default.func,onChange:V.default.func.isRequired,onHeightChange:V.default.func,getGraphqlAutocomplete:V.default.func};var Ly=(e,t)=>{let n=(0,z.default)(e),r=(0,z.default)(t),i=n.format(`D`),a=n.format(`MMMM`),o=r.format(`D`),s=r.format(`MMMM`);return{calendarTitle:`${a===s?i:`${i} ${a}`} - ${o} ${s}`,calendarYear:r.format(`YYYY`)}},Ry=({fromDate:e,toDate:t,goLeftFull:n,goLeft:r,goRight:i,goRightFull:a})=>!e||!t?null:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,userSelect:`none`},children:[(0,K.jsx)(I,{sx:{cursor:`pointer`},children:(0,K.jsx)(Y.IcLeftDoubleChevron,{onClick:n})}),(0,K.jsx)(I,{sx:{cursor:`pointer`},children:(0,K.jsx)(Y.IcLeftChevron,{onClick:r})}),(0,K.jsx)(I,{sx:{fontFamily:`var(--primaryFont)`,fontSize:`16px`,fontWeight:400,lineHeight:`24px`,color:`var(--color-text)`,minWidth:`350px`,textAlign:`center`,paddingLeft:`24px`,paddingRight:`24px`},children:`${Ly(e,t).calendarTitle}, ${Ly(e,t).calendarYear}`}),(0,K.jsx)(I,{sx:{cursor:`pointer`},children:(0,K.jsx)(Y.IcRightChevron,{onClick:i})}),(0,K.jsx)(I,{sx:{cursor:`pointer`},children:(0,K.jsx)(Y.IcRightDoubleChevron,{onClick:a})})]});Ry.propTypes={goLeft:V.default.func.isRequired,goLeftFull:V.default.func.isRequired,goRight:V.default.func.isRequired,goRightFull:V.default.func.isRequired,fromDate:V.default.shape({}).isRequired,toDate:V.default.shape({}).isRequired};var zy=_i.default.bind({"calendar-booking":`_calendar-booking_5st00_2`,calendarBooking:`_calendar-booking_5st00_2`,"calendar-booking__inner":`_calendar-booking__inner_5st00_13`,calendarBookingInner:`_calendar-booking__inner_5st00_13`,"calendar-booking__txt":`_calendar-booking__txt_5st00_21 input-error`,calendarBookingTxt:`_calendar-booking__txt_5st00_21 input-error`,"calendar-booking--first":`_calendar-booking--first_5st00_45`,calendarBookingFirst:`_calendar-booking--first_5st00_45`,"calendar-booking--last":`_calendar-booking--last_5st00_69`,calendarBookingLast:`_calendar-booking--last_5st00_69`,"calendar-booking--iscanceled":`_calendar-booking--iscanceled_5st00_92`,calendarBookingIscanceled:`_calendar-booking--iscanceled_5st00_92`}),By=e=>e<1200?100:e<1300?120:e<1400?140:e<1500?160:180,Vy=({width:e,middleHasTitle:t,cancelledTxt:n,title:r,bookingLength:i})=>{let a=By(e),o=t?a+20:a,s=(t?1:i)*o,c=t?`32px`:`18px`,l=t?.6:1;return(0,K.jsx)(`div`,{"data-days":i,style:{fontWeight:500,width:`${s}px`,paddingLeft:c,opacity:l},className:zy(`calendar-booking__txt`),children:(0,K.jsxs)(`span`,{children:[n,r]})})},Hy=({isFirstDay:e,width:t,calendarEventId:n,onClick:r,type:i,bookingLength:a,isCanceled:o,title:s=null})=>{let c=o?`${U(`calendar.canceled`)} `:``,l=i===`start`,u=e&&i===`middle`,d=u||l;return(0,K.jsxs)(`div`,{title:`${c} ${s}`,role:`button`,tabIndex:0,onClick:()=>r&&r(),"data-testid":`calendar-event-id-${n}`,className:zy(`calendar-booking`,{"calendar-booking--iscanceled":o,"calendar-booking--first":i===`start`,"calendar-booking--last":i===`end`}),children:[(0,K.jsx)(`div`,{className:zy(`calendar-booking__inner`)}),d&&(0,K.jsx)(Vy,{width:t,middleHasTitle:u,cancelledTxt:c,title:s,bookingLength:a})]})};Hy.propTypes={type:V.default.oneOf([`start`,`middle`,`end`]).isRequired,calendarEventId:V.default.string.isRequired,title:V.default.string,bookingLength:V.default.number.isRequired,isFirstDay:V.default.bool.isRequired,isCanceled:V.default.bool.isRequired};var Uy=e=>{let{isHead:t,propertyName:n=`noProperty`,children:r,...i}=e;return(0,K.jsx)(I,{"data-testid-property":n,"data-testid":`calendar-row`,sx:t?{display:`flex`,flexDirection:`row`,alignItems:`stretch`,gap:`6px`,margin:`0 8px`,minHeight:`47px`,height:`47px`}:{display:`flex`,flexDirection:`row`,gap:`6px`,margin:`0 8px 8px 8px`,height:`100%`,minHeight:`120px`},...i,children:r})};Uy.propTypes={isHead:V.default.bool,propertyName:V.default.string};var Wy=_i.default.bind({calendar__col:`_calendar__col_147o1_2`,calendarCol:`_calendar__col_147o1_2`,"calendar__col--minheight":`_calendar__col--minheight_147o1_11`,calendarColMinheight:`_calendar__col--minheight_147o1_11`,"calendar__col--headline":`_calendar__col--headline_147o1_14 normal`,calendarColHeadline:`_calendar__col--headline_147o1_14 normal`,"calendar__col--clickable":`_calendar__col--clickable_147o1_22`,calendarColClickable:`_calendar__col--clickable_147o1_22`,"calendar__col--selected":`_calendar__col--selected_147o1_28`,calendarColSelected:`_calendar__col--selected_147o1_28`,"calendar__col--secondary":`_calendar__col--secondary_147o1_32`,calendarColSecondary:`_calendar__col--secondary_147o1_32`,"calendar__col--darkboder":`_calendar__col--darkboder_147o1_35`,calendarColDarkboder:`_calendar__col--darkboder_147o1_35`,"calendar__col--minwidth":`_calendar__col--minwidth_147o1_38`,calendarColMinwidth:`_calendar__col--minwidth_147o1_38`,"calendar__col--inactive":`_calendar__col--inactive_147o1_42`,calendarColInactive:`_calendar__col--inactive_147o1_42`,"calendar__col--empty":`_calendar__col--empty_147o1_45`,calendarColEmpty:`_calendar__col--empty_147o1_45`,"calendar__col--masterdetail":`_
260calendar__col--masterdetail_147o1_48`,calendarColMasterdetail:`_calendar__col--masterdetail_147o1_48`,"calendar__col--inactiveProperty":`_calendar__col--inactiveProperty_147o1_51`,calendarColInactiveProperty:`_calendar__col--inactiveProperty_147o1_51`});function Gy({isInactive:e=!1,isInactiveProperty:t=!1,isHead:n=!1,isToday:r=!1,isWeekend:i=!1,onClick:a=null,children:o=null,id:s=void 0,style:c=void 0,"data-testid":l,"data-testid-calendar-head-index":u,"data-testid-date-value":d,"data-day-index":f}){let p=(0,B.useMemo)(()=>Wy(`calendar__col`,`calendar__col--day`,`calendar__col--default`,{"calendar__col--inactive":e,"calendar__col--headline":n,"calendar__col--clickable":!n&&!!a,"calendar__col--selected":r,"calendar__col--secondary":i&&!r,"calendar__col--inactiveProperty":t}),[e,n,a,r,i,t]),m=r?`-today`:``;return(0,K.jsx)(`div`,{id:s,style:c,"data-testid":l,"data-testid-calendar-head-index":u,"data-testid-date-value":d,"data-day-index":f,"data-testid-calendar-cell":n?`calendar-head${m}`:`calendar-date-cell-${m}`,className:p,onClick:a,children:o})}Gy.propTypes={isInactive:V.default.bool,isInactiveProperty:V.default.bool,isHead:V.default.bool,isToday:V.default.bool,isWeekend:V.default.bool,onClick:V.default.func,children:V.default.node,id:V.default.string,style:V.default.shape({}),"data-testid":V.default.string,"data-testid-calendar-head-index":V.default.number,"data-testid-date-value":V.default.string,"data-day-index":V.default.number};var Ky=(0,yc.default)(e=>(0,z.default)(e,[`YYYYMMDD`]).format(`ddd D`));function qy({hasVerticalScroll:e=!1,filterDays:t=[],dates:n=[],propertiesCountText:r=``,searchQuery:i=``,setSearchQuery:a}){let[o,s]=(0,B.useState)(i),c=(0,B.useCallback)(e=>{s(e),a(e)},[a]),l=(0,B.useCallback)(e=>{let n=e=>t&&t.length===0||t.indexOf(e)!==-1;return(0,H.default)(e,(e,t)=>(0,K.jsx)(Gy,{"data-testid":`headercol`,"data-testid-calendar-head-index":t,"data-testid-date-value":e,isInactive:!n(e),isHead:!0,isToday:Ac(e,`YYYYMMDD`),isWeekend:jc(e,`YYYYMMDD`),children:Ky(e)},`headrow${e}`))},[t]),u=U(`properties.search_for_address`,{n:r});return(0,K.jsx)(`div`,{style:{minWidth:e?`${960-pu()}px`:`960px`,width:e?`calc(100% - ${pu()}px)`:`100%`,padding:`4px 0`,position:`relative`,zIndex:10,backgroundColor:`var(--surface-ground)`},children:(0,K.jsxs)(Uy,{isHead:!0,children:[(0,K.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,maxWidth:`264px`,minWidth:`264px`,background:`var(--surface-base)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-sm, 6px)`,boxShadow:`var(--shadow-sm)`,height:`100%`},children:(0,K.jsx)($f,{blank:!0,placeholder:u,value:o,iconLocation:`left`,onChange:c})}),(0,K.jsx)(`div`,{style:{display:`flex`,flex:1,background:`var(--surface-base)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-sm, 6px)`,boxShadow:`var(--shadow-sm)`,overflow:`hidden`},children:l(n)})]})})}qy.propTypes={hasVerticalScroll:V.default.bool,filterDays:V.default.arrayOf(V.default.string),dates:V.default.arrayOf(V.default.string),propertiesCountText:V.default.string,searchQuery:V.default.string,setSearchQuery:V.default.func.isRequired};var Jy=_i.default.bind({calendar__col:`_calendar__col_1f2w1_2`,calendarCol:`_calendar__col_1f2w1_2`,"calendar__col--property":`_calendar__col--property_1f2w1_7`,calendarColProperty:`_calendar__col--property_1f2w1_7`,"calendar__col--minheight":`_calendar__col--minheight_1f2w1_18`,calendarColMinheight:`_calendar__col--minheight_1f2w1_18`,"calendar__col--headline":`_calendar__col--headline_1f2w1_21 normal`,calendarColHeadline:`_calendar__col--headline_1f2w1_21 normal`,"calendar__col--day":`_calendar__col--day_1f2w1_28`,calendarColDay:`_calendar__col--day_1f2w1_28`,"calendar__col--selected":`_calendar__col--selected_1f2w1_31`,calendarColSelected:`_calendar__col--selected_1f2w1_31`,"calendar__col--darkboder":`_calendar__col--darkboder_1f2w1_35`,calendarColDarkboder:`_calendar__col--darkboder_1f2w1_35`,"calendar__col--minwidth":`_calendar__col--minwidth_1f2w1_38`,calendarColMinwidth:`_calendar__col--minwidth_1f2w1_38`,"calendar__col--empty":`_calendar__col--empty_1f2w1_42`,calendarColEmpty:`_calendar__col--empty_1f2w1_42`})(`calendar__col`,`calendar__col--property`,`calendar__col--minwidth`,`calendar__col--darkboder`,`calendar__col--centeredleft`,`calendar__col--minheight`),Yy={display:`flex`};function Xy({children:e=null}){return(0,K.jsx)(`div`,{style:Yy,className:Jy,children:e})}Xy.propTypes={children:V.default.node};var Zy=({calendarEvent:e,hasCanceled:t})=>{let n=kte(e),r=Ate(e),i=Ote(e),a=Dte(e),o=Sl(e);return(0,K.jsx)(Px,{isInProgress:n,isFinished:r,isIncomplete:i,hasProblem:a,isChanged:Cl(e),isCanceled:o,hasCanceled:!!t})};Zy.propTypes={calendarEvent:V.default.shape({}).isRequired,hasCanceled:V.default.bool};var Qy=({calendarEvent:e,small:t=!1,handleClick:n,showCleanerInfo:r=!0})=>{let i=(0,G.default)(e,[`reminder`,`title`]),a=(0,G.default)(e,[`jobRequest`,`title`]),o=jte(e),s=e.type===3&&i!==a?i:o,c=(0,G.default)(e,[`jobRequest`,`cleanerName`]),l=pl(e),u=l>1?` +${l-1}`:``,d=(...e)=>n(...e),f=r?`${c} ${u}`.trim():``,p=[a,i,o,f].map(e=>String(e||``).trim()).filter(e=>!!e).join(` 261`);return(0,K.jsxs)(Ix,{eventId:e.id,onClick:d,isEventBig:!0,title:p,status:Pl(e),children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:[(0,K.jsxs)(I,{component:`span`,sx:{fontWeight:500,flex:1,paddingRight:`5px`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:[$te(e),` -`,a||U(Ll(e))]}),(0,K.jsx)(Zy,{calendarEvent:e,hasCancelled:!0})]}),!t&&(0,K.jsx)(`div`,{children:s}),r&&!t&&(0,K.jsx)(`div`,{children:f})]})};Qy.propTypes={small:V.default.bool,showCleanerInfo:V.default.bool,calendarEvent:V.default.shape({}).isRequired};var $y={"calendar-color__row":`_calendar-color__row_6i2ec_2`,calendarColorRow:`_calendar-color__row_6i2ec_2`,"calendar-color__row--small":`_calendar-color__row--small_6i2ec_6`,calendarColorRowSmall:`_calendar-color__row--small_6i2ec_6`,"calendar-color__date":`_calendar-color__date_6i2ec_11`,calendarColorDate:`_calendar-color__date_6i2ec_11`,"calendar-color__name":`_calendar-color__name_6i2ec_12`,calendarColorName:`_calendar-color__name_6i2ec_12`,"calendar-color__status":`_calendar-color__status_6i2ec_17`,calendarColorStatus:`_calendar-color__status_6i2ec_17`,"calendar-color__status-small":`_calendar-color__status-small_6i2ec_21 cut-txt`,calendarColorStatusSmall:`_calendar-color__status-small_6i2ec_21 cut-txt`,"calendar-color__icons":`_calendar-color__icons_6i2ec_27`,calendarColorIcons:`_calendar-color__icons_6i2ec_27`,"calendar-color__icons--small":`_calendar-color__icons--small_6i2ec_37`,calendarColorIconsSmall:`_calendar-color__icons--small_6i2ec_37`,"calendar-color__btnspace":`_
261calendar-color__btnspace_6i2ec_46`,calendarColorBtnspace:`_calendar-color__btnspace_6i2ec_46`,"calendar-color__btnwrap":`_calendar-color__btnwrap_6i2ec_52`,calendarColorBtnwrap:`_calendar-color__btnwrap_6i2ec_52`,"calendar-color__pbottom":`_calendar-color__pbottom_6i2ec_57`,calendarColorPbottom:`_calendar-color__pbottom_6i2ec_57`,"calendar-color__event":`_calendar-color__event_6i2ec_61`,calendarColorEvent:`_calendar-color__event_6i2ec_61`,"calendar-color__event--inline":`_calendar-color__event--inline_6i2ec_68`,calendarColorEventInline:`_calendar-color__event--inline_6i2ec_68`,"calendar-color__loading":`_calendar-color__loading_6i2ec_77`,calendarColorLoading:`_calendar-color__loading_6i2ec_77`,"calendar-color__loading-inner":`_calendar-color__loading-inner_6i2ec_78`,calendarColorLoadingInner:`_calendar-color__loading-inner_6i2ec_78`,"calendar-color__event-icon-wrap":`_calendar-color__event-icon-wrap_6i2ec_96`,calendarColorEventIconWrap:`_calendar-color__event-icon-wrap_6i2ec_96`,"calendar-color__event-name":`_calendar-color__event-name_6i2ec_104 text-l7m`,calendarColorEventName:`_calendar-color__event-name_6i2ec_104 text-l7m`,"calendar-color__event-name--haswarning":`_calendar-color__event-name--haswarning_6i2ec_123`,calendarColorEventNameHaswarning:`_calendar-color__event-name--haswarning_6i2ec_123`,"calendar-color__event-address":`_calendar-color__event-address_6i2ec_127 text-tiles-calendar`,calendarColorEventAddress:`_calendar-color__event-address_6i2ec_127 text-tiles-calendar`,"calendar-color__event-top":`_calendar-color__event-top_6i2ec_133`,calendarColorEventTop:`_calendar-color__event-top_6i2ec_133`,"calendar-color__event-info":`_calendar-color__event-info_6i2ec_138 text-tiles-calendar`,calendarColorEventInfo:`_calendar-color__event-info_6i2ec_138 text-tiles-calendar`,"calendar-color__event-warn":`_calendar-color__event-warn_6i2ec_143 text-tiles-calendar`,calendarColorEventWarn:`_calendar-color__event-warn_6i2ec_143 text-tiles-calendar`,"calendar-color__bar":`_calendar-color__bar_6i2ec_167`,calendarColorBar:`_calendar-color__bar_6i2ec_167`,"calendar-color__bar--cancelled":`_calendar-color__bar--cancelled_6i2ec_178`,calendarColorBarCancelled:`_calendar-color__bar--cancelled_6i2ec_178`,"calendar-color__bar--delayed":`_calendar-color__bar--delayed_6i2ec_182`,calendarColorBarDelayed:`_calendar-color__bar--delayed_6i2ec_182`,"calendar-color__bar--finished":`_calendar-color__bar--finished_6i2ec_186`,calendarColorBarFinished:`_calendar-color__bar--finished_6i2ec_186`,"calendar-color__bar--progress":`_calendar-color__bar--progress_6i2ec_190`,calendarColorBarProgress:`_calendar-color__bar--progress_6i2ec_190`,"calendar-color__bar--accepted":`_calendar-color__bar--accepted_6i2ec_194`,calendarColorBarAccepted:`_calendar-color__bar--accepted_6i2ec_194`,"calendar-color__bar--pending":`_calendar-color__bar--pending_6i2ec_198`,calendarColorBarPending:`_calendar-color__bar--pending_6i2ec_198`,"calendar-color__bar-wrap":`_calendar-color__bar-wrap_6i2ec_202`,calendarColorBarWrap:`_calendar-color__bar-wrap_6i2ec_202`,"calendar-color__bar-content":`_calendar-color__bar-content_6i2ec_207`,calendarColorBarContent:`_calendar-color__bar-content_6i2ec_207`},eb=e(pee()),tb={"calendar-job--small":`_calendar-job--small_1ii1z_2`,calendarJobSmall:`_calendar-job--small_1ii1z_2`,"calendar-job--event":`_calendar-job--event_1ii1z_13`,calendarJobEvent:`_calendar-job--event_1ii1z_13`,"calendar-job--eventsmall":`_calendar-job--eventsmall_1ii1z_18`,calendarJobEventsmall:`_calendar-job--eventsmall_1ii1z_18`,"calendar-job--eventbig":`_calendar-job--eventbig_1ii1z_23`,calendarJobEventbig:`_calendar-job--eventbig_1ii1z_23`,"calendar-job--smaller":`_calendar-job--smaller_1ii1z_27`,calendarJobSmaller:`_calendar-job--smaller_1ii1z_27`,"calendar-color__row":`_calendar-color__row_1ii1z_42`,calendarColorRow:`_calendar-color__row_1ii1z_42`,"calendar-color__row--small":`_calendar-color__row--small_1ii1z_45`,calendarColorRowSmall:`_calendar-color__row--small_1ii1z_45`,"calendar-color__date":`_calendar-color__date_1ii1z_49`,calendarColorDate:`_calendar-color__date_1ii1z_49`,"calendar-color__name":`_calendar-color__name_1ii1z_49`,calendarColorName:`_calendar-color__name_1ii1z_49`,"calendar-color__status":`_calendar-color__status_1ii1z_53`,calendarColorStatus:`_calendar-color__status_1ii1z_53`,"calendar-color__status-small":`_calendar-color__status-small_1ii1z_56 cut-txt`,calendarColorStatusSmall:`_calendar-color__status-small_1ii1z_56 cut-txt`,"calendar-color__icons":`_calendar-color__icons_1ii1z_61`,calendarColorIcons:`_calendar-color__icons_1ii1z_61`,"calendar-color__icons--small":`_calendar-color__icons--small_1ii1z_69`,calendarColorIconsSmall:`_calendar-color__icons--small_1ii1z_69`,"calendar-color__btnspace":`_
261calendar-color__btnspace_1ii1z_76`,calendarColorBtnspace:`_calendar-color__btnspace_1ii1z_76`,"calendar-color__btnwrap":`_calendar-color__btnwrap_1ii1z_81`,calendarColorBtnwrap:`_calendar-color__btnwrap_1ii1z_81`,"calendar-color__pbottom":`_calendar-color__pbottom_1ii1z_85`,calendarColorPbottom:`_calendar-color__pbottom_1ii1z_85`,"calendar-color__event":`_calendar-color__event_1ii1z_88`,calendarColorEvent:`_calendar-color__event_1ii1z_88`,"calendar-color__event--inline":`_calendar-color__event--inline_1ii1z_94`,calendarColorEventInline:`_calendar-color__event--inline_1ii1z_94`,"calendar-color__loading":`_calendar-color__loading_1ii1z_102`,calendarColorLoading:`_calendar-color__loading_1ii1z_102`,"calendar-color__loading-inner":`_calendar-color__loading-inner_1ii1z_102`,calendarColorLoadingInner:`_calendar-color__loading-inner_1ii1z_102`,"calendar-color__event-name":`_calendar-color__event-name_1ii1z_118 text-l7m`,calendarColorEventName:`_calendar-color__event-name_1ii1z_118 text-l7m`,"calendar-color__event-name--haswarning":`_calendar-color__event-name--haswarning_1ii1z_134`,calendarColorEventNameHaswarning:`_calendar-color__event-name--haswarning_1ii1z_134`,"calendar-color__event-address":`_calendar-color__event-address_1ii1z_137 text-tiles-calendar`,calendarColorEventAddress:`_calendar-color__event-address_1ii1z_137 text-tiles-calendar`,"calendar-color__event-top":`_calendar-color__event-top_1ii1z_142`,calendarColorEventTop:`_calendar-color__event-top_1ii1z_142`,"calendar-color__event-info":`_calendar-color__event-info_1ii1z_146 text-tiles-calendar`,calendarColorEventInfo:`_calendar-color__event-info_1ii1z_146 text-tiles-calendar`,"calendar-color__event-warn":`_calendar-color__event-warn_1ii1z_150 text-tiles-calendar`,calendarColorEventWarn:`_calendar-color__event-warn_1ii1z_150 text-tiles-calendar`,"calendar-color__bar":`_calendar-color__bar_1ii1z_171`,calendarColorBar:`_calendar-color__bar_1ii1z_171`,"calendar-color__bar--cancelled":`_calendar-color__bar--cancelled_1ii1z_181`,calendarColorBarCancelled:`_calendar-color__bar--cancelled_1ii1z_181`,"calendar-color__bar--delayed":`_calendar-color__bar--delayed_1ii1z_184`,calendarColorBarDelayed:`_calendar-color__bar--delayed_1ii1z_184`,"calendar-color__bar--finished":`_calendar-color__bar--finished_1ii1z_187`,calendarColorBarFinished:`_calendar-color__bar--finished_1ii1z_187`,"calendar-color__bar--progress":`_calendar-color__bar--progress_1ii1z_190`,calendarColorBarProgress:`_calendar-color__bar--progress_1ii1z_190`,"calendar-color__bar--accepted":`_calendar-color__bar--accepted_1ii1z_193`,calendarColorBarAccepted:`_calendar-color__bar--accepted_1ii1z_193`,"calendar-color__bar--pending":`_calendar-color__bar--pending_1ii1z_196`,calendarColorBarPending:`_calendar-color__bar--pending_1ii1z_196`,"calendar-color__bar-wrap":`_calendar-color__bar-wrap_1ii1z_199`,calendarColorBarWrap:`_calendar-color__bar-wrap_1ii1z_199`,"calendar-color__bar-content":`_calendar-color__bar-content_1ii1z_203`,calendarColorBarContent:`_calendar-color__bar-content_1ii1z_203`},nb=_i.default.bind({"calendar-color__row":`_calendar-color__row_xyiln_2`,calendarColorRow:`_calendar-color__row_xyiln_2`,"calendar-color__row--small":`_calendar-color__row--small_xyiln_6`,calendarColorRowSmall:`_calendar-color__row--small_xyiln_6`,"calendar-color__date":`_calendar-color__date_xyiln_11`,calendarColorDate:`_calendar-color__date_xyiln_11`,"calendar-color__name":`_calendar-color__name_xyiln_12`,calendarColorName:`_calendar-color__name_xyiln_12`,"calendar-color__status":`_calendar-color__status_xyiln_17`,calendarColorStatus:`_calendar-color__status_xyiln_17`,"calendar-color__status-small":`_calendar-color__status-small_xyiln_21 cut-txt`,calendarColorStatusSmall:`_calendar-color__status-small_xyiln_21 cut-txt`,"calendar-color__icons":`_calendar-color__icons_xyiln_27`,calendarColorIcons:`_calendar-color__icons_xyiln_27`,"calendar-color__icons--small":`_calendar-color__icons--small_xyiln_37`,calendarColorIconsSmall:`_calendar-color__icons--small_xyiln_37`,"calendar-color__btnspace":`_calendar-color__btnspace_xyiln_46`,calendarColorBtnspace:`_calendar-color__btnspace_xyiln_46`,"calendar-color__btnwrap":`_calendar-color__btnwrap_xyil
261n_52`,calendarColorBtnwrap:`_calendar-color__btnwrap_xyiln_52`,"calendar-color__pbottom":`_calendar-color__pbottom_xyiln_57`,calendarColorPbottom:`_calendar-color__pbottom_xyiln_57`,"calendar-color__event":`_calendar-color__event_xyiln_61`,calendarColorEvent:`_calendar-color__event_xyiln_61`,"calendar-color__event--inline":`_calendar-color__event--inline_xyiln_68`,calendarColorEventInline:`_calendar-color__event--inline_xyiln_68`,"calendar-color__loading":`_calendar-color__loading_xyiln_77`,calendarColorLoading:`_calendar-color__loading_xyiln_77`,"calendar-color__loading-inner":`_calendar-color__loading-inner_xyiln_78`,calendarColorLoadingInner:`_calendar-color__loading-inner_xyiln_78`,"calendar-color__event-name":`_calendar-color__event-name_xyiln_96 text-l7m`,calendarColorEventName:`_calendar-color__event-name_xyiln_96 text-l7m`,"calendar-color__event-name--haswarning":`_calendar-color__event-name--haswarning_xyiln_115`,calendarColorEventNameHaswarning:`_calendar-color__event-name--haswarning_xyiln_115`,"calendar-color__event-address":`_calendar-color__event-address_xyiln_119 text-tiles-calendar`,calendarColorEventAddress:`_calendar-color__event-address_xyiln_119 text-tiles-calendar`,"calendar-color__event-top":`_calendar-color__event-top_xyiln_125`,calendarColorEventTop:`_calendar-color__event-top_xyiln_125`,"calendar-color__event-info":`_calendar-color__event-info_xyiln_130 text-tiles-calendar`,calendarColorEventInfo:`_calendar-color__event-info_xyiln_130 text-tiles-calendar`,"calendar-color__event-warn":`_calendar-color__event-warn_xyiln_136 text-tiles-calendar`,calendarColorEventWarn:`_calendar-color__event-warn_xyiln_136 text-tiles-calendar`,"calendar-color__bar":`_calendar-color__bar_xyiln_160`,calendarColorBar:`_calendar-color__bar_xyiln_160`,"calendar-color__bar--cancelled":`_calendar-color__bar--cancelled_xyiln_171`,calendarColorBarCancelled:`_calendar-color__bar--cancelled_xyiln_171`,"calendar-color__bar--delayed":`_calendar-color__bar--delayed_xyiln_175`,calendarColorBarDelayed:`_calendar-color__bar--delayed_xyiln_175`,"calendar-color__bar--finished":`_calendar-color__bar--finished_xyiln_179`,calendarColorBarFinished:`_calendar-color__bar--finished_xyiln_179`,"calendar-color__bar--progress":`_calendar-color__bar--progress_xyiln_183`,calendarColorBarProgress:`_calendar-color__bar--progress_xyiln_183`,"calendar-color__bar--accepted":`_calendar-color__bar--accepted_xyiln_187`,calendarColorBarAccepted:`_calendar-color__bar--accepted_xyiln_187`,"calendar-color__bar--pending":`_calendar-color__bar--pending_xyiln_191`,calendarColorBarPending:`_calendar-color__bar--pending_xyiln_191`,"calendar-color__bar-wrap":`_calendar-color__bar-wrap_xyiln_195`,calendarColorBarWrap:`_calendar-color__bar-wrap_xyiln_195`,"calendar-color__bar-content":`_calendar-color__bar-content_xyiln_200`,calendarColorBarContent:`_calendar-color__bar-content_xyiln_200`}),rb=(e,t)=>e===`default`||(0,eb.default)([`accepted`,`pending`,`delayed`,`cancelled`],e)===-1?`${t}primary`:`${t}${e}`,ib=({handleClick:e=()=>()=>{},mode:t=`schedule`,color:n=`default`,data:r={},title:i,mainBtnConfig:a,subBtnConfig:o})=>{let s=t===`cancel`?`cancel`:``,c=i||U(`calendartile.modes.${t}`),l=a||[rb(n,`type-full-`),`size-small`,`flex-1`,`miwidth-130`],u=o||[rb(n,`type-border-`),`size-small`,`flex-1`,`miwidth-0`];return(0,K.jsxs)(`div`,{className:nb(`calendar-color__btnwrap`),children:[(0,K.jsx)(q,{types:l,"data-id":s,onClick:e(t,r),children:c}),(0,K.jsx)(`div`,{className:nb(`calendar-color__btnspace`)}
261),(0,K.jsx)(q,{types:u,"data-id":`skip`,onClick:e(`skip`,r),children:U(`calendartile.modes.skip`)})]})};ib.propTypes={mode:V.default.oneOf([`edit`,`sendmore`,`cancel`,`schedule`]).isRequired,color:V.default.string,title:V.default.oneOfType([V.default.string,V.default.bool]),data:V.default.shape({}),handleClick:V.default.func.isRequired};var ab=()=>(0,K.jsxs)(I,{sx:{position:`absolute`,zIndex:1,top:0,left:0,right:0,bottom:0,display:`flex`,flexDirection:`column`,gap:.5,padding:.5,background:`var(--color-white)`,opacity:.95},children:[(0,K.jsx)(J,{height:28,variant:`rounded`}),(0,K.jsx)(J,{height:28,variant:`rounded`}),(0,K.jsx)(J,{height:28,variant:`rounded`})]}),ob=_i.default.bind(tb),sb=({start:e,end:t,eventId:n,statusLabel:r,color:i,cleaner:a,extraCleanersCount:o,needsCTA:s,handleClick:c,isLoading:l,mode:u,isPaired:d,statusRaw:f,eventStatusRaw:p,calendarEvent:m,hasCanceled:h,children:g,canSendJobsPermission:_,seeCleanerNamesPermission:v})=>{let y=ene(f,p),b=W.StateStarted===f?``:t;return(0,K.jsxs)(Ix,{eventId:n,onClick:ub(c(`jobrequest`,m),`data-id`,[`skip`,`cancel`]),isEvent:!0,isPaired:d,status:i,children:[g,l&&(0,K.jsx)(ab,{}),(0,K.jsxs)(`div`,{className:ob(`calendar-color__row`),children:[(0,K.jsxs)(`div`,{className:ob(`calendar-color__date`),children:[e,` -`,b]}),(0,K.jsx)(`div`,{className:ob(`calendar-color__status`),children:r})]}),(0,K.jsxs)(`div`,{className:ob(`calendar-color__row`),children:[(0,K.jsx)(`div`,{className:ob(`calendar-color__name`),children:v&&`${a} ${o}`.trim()||``}),(0,K.jsx)(`div`,{className:ob(`calendar-color__icons`),children:(0,K.jsx)(Zy,{calendarEvent:m,hasCanceled:h})})]}),_&&s&&(0,K.jsx)(ib,{handleClick:c,title:y,mode:u,color:i,data:m})]})},cb=({calendarEvent:e,canSendJobsPermission:t,seeCleanerNamesPermission:n,handleClick:r,isLoading:i,isPaired:a,children:o})=>{if(!Qc(e))return null;let s=Bte(e),c=Vte(e),l=dl(e),u=xl(e),d=pl(e),f=d>1?` +${d-1}`:``;return(0,K.jsx)(sb,{eventId:e.id,needsCTA:gl(e),start:s,end:c,statusLabel:U(Ll(e)),statusRaw:l,eventStatusRaw:xl(e),cleaner:e.jobRequest.cleanerName,extraCleanersCount:f,calendarEvent:e,hasCanceled:!a,handleClick:r,isLoading:i,isPaired:a,mode:Il(e.type,l,u),color:Pl(e),canSendJobsPermission:t,seeCleanerNamesPermission:n,children:o})};cb.propTypes={calendarEvent:V.default.shape({}).isRequired,handleClick:V.default.func.isRequired};function lb(e,t,n,r=0){return e&&e.parentElement&&r<t?n(e)?[!0,r]:lb(e.parentElement,t,n,r+1):[!1]}function ub(e,t,n){return r=>{lb(r.target,10,e=>(0,eb.default)(n,e.getAttribute(t))!==-1)[0]||e(r)}}var db=_i.default.bind({"calendar-color__row":`_calendar-color__row_xyiln_2`,calendarColorRow:`_calendar-color__row_xyiln_2`,"calendar-color__row--small":`_calendar-color__row--small_xyiln_6`,calendarColorRowSmall:`_calendar-color__row--small_xyiln_6`,"calendar-color__date":`_calendar-color__date_xyiln_11`,calendarColorDate:`_calendar-color__date_xyiln_11`,"calendar-color__name":`_calendar-color__name_xyiln_12`,calendarColorName:`_calendar-color__name_xyiln_12`,"calendar-color__status":`_calendar-color__status_xyiln_17`,calendarColorStatus:`_calendar-color__status_xyiln_17`,"calendar-color__status-small":`_calendar-color__status-small_xyiln_21 cut-txt`,calendarColorStatusSmall:`_calendar-color__status-small_xyiln_21 cut-txt`,"calendar-color__icons":`_calendar-color__icons_xyiln_27`,calendarColorIcons:`_calendar-color__icons_xyiln_27`,"calendar-color__icons--small":`_calendar-color__icons--small_xyiln_37`,calendarColorIconsSmall:`_calendar-color__icons--small_xyiln_37`,"calendar-color__btnspace":`_calendar-color__btnspace_xyiln_46`,calendarColorBtnspace:`_calendar-color__btnspace_xyiln_46`,"calendar-color__btnwrap":`_calendar-color__btnwrap_xyiln_52`,calendarColorBtnwrap:`_calendar-color__btnwrap_xyiln_52`,"calendar-color__pbottom":`_calendar-color__pbottom_xyiln_57`,calendarColorPbottom:`_calendar-color__pbottom_xyiln_57`,"calendar-color__event":`_calendar-color__event_xyiln_61`,calendarColorEvent:`_calendar-color__event_xyiln_61`,"calendar-color__event--inline":`_calendar-color__event--inline_xyiln_68`,calendarColorEventInline:`_calendar-color__event--inline_xyiln_68`,"calendar-color__loading":`_calendar-color__loading_xyiln_77`,calendarColorLoading:`_calendar-color__loading_xyiln_77`,"calendar-color__loading-inner":`_calendar-color__loading-inner_xyiln_78`,calendarColorLoadingInner:`_calendar-color__loading-inner_xyiln_78`,"calendar-color__event-name":`_calendar-color__event-name_xyiln_96 text-l7m`,calendarColorEventName:`_calendar-color__event-name_xyiln_96 text-l7m`,"calendar-color__event-name--haswarning":`_calendar-color__event-name--haswarning_xyiln_115`,calendarColorEventNameHaswarning:`_calendar-color__event-name--haswarning_xyiln_115`,"calendar-color__event-address":`_calendar-color__event-address_xyiln_119 text-tiles-calendar`,calendarColorEventAddress:`_calendar-color__event-address_xyiln_119 text-tiles-calendar`,"calendar-color__event-top":`_calendar-color__event-top_xyil
261n_125`,calendarColorEventTop:`_calendar-color__event-top_xyiln_125`,"calendar-color__event-info":`_calendar-color__event-info_xyiln_130 text-tiles-calendar`,calendarColorEventInfo:`_calendar-color__event-info_xyiln_130 text-tiles-calendar`,"calendar-color__event-warn":`_calendar-color__event-warn_xyiln_136 text-tiles-calendar`,calendarColorEventWarn:`_calendar-color__event-warn_xyiln_136 text-tiles-calendar`,"calendar-color__bar":`_calendar-color__bar_xyiln_160`,calendarColorBar:`_calendar-color__bar_xyiln_160`,"calendar-color__bar--cancelled":`_calendar-color__bar--cancelled_xyiln_171`,calendarColorBarCancelled:`_calendar-color__bar--cancelled_xyiln_171`,"calendar-color__bar--delayed":`_calendar-color__bar--delayed_xyiln_175`,calendarColorBarDelayed:`_calendar-color__bar--delayed_xyiln_175`,"calendar-color__bar--finished":`_calendar-color__bar--finished_xyiln_179`,calendarColorBarFinished:`_calendar-color__bar--finished_xyiln_179`,"calendar-color__bar--progress":`_calendar-color__bar--progress_xyiln_183`,calendarColorBarProgress:`_calendar-color__bar--progress_xyiln_183`,"calendar-color__bar--accepted":`_calendar-color__bar--accepted_xyiln_187`,calendarColorBarAccepted:`_calendar-color__bar--accepted_xyiln_187`,"calendar-color__bar--pending":`_calendar-color__bar--pending_xyiln_191`,calendarColorBarPending:`_calendar-color__bar--pending_xyiln_191`,"calendar-color__bar-wrap":`_calendar-color__bar-wrap_xyiln_195`,calendarColorBarWrap:`_calendar-color__bar-wrap_xyiln_195`,"calendar-color__bar-content":`_calendar-color__bar-content_xyiln_200`,calendarColorBarContent:`_calendar-color__bar-content_xyiln_200`}),fb=({children:e})=>(0,K.jsx)(`div`,{className:db(`calendar-color__bar-wrap`),children:(0,K.jsx)(`div`,{className:db(`calendar-color__bar-content`),children:e})}),pb=({handleRowActions:e,rowData:t})=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Ig,{title:U(`permissions.modal.send`),children:(0,K.jsx)(br,{edge:`end`,size:`small`,onClick:e(t,Za.SEND_DRAFT_JOB),children:(0,K.jsx)(Y.IcSendMessage,{byWidth:!0,width:`24px`,height:`24px`})})}),(0,K.jsx)(Ig,{title:U(`permissions.edit`),children:(0,K.jsx)(br,{edge:`end`,size:`small`,onClick:e(t,Za.EDIT_DRAFT_JOB),children:(0,K.jsx)(Y.IcEditicon,{byWidth:!0,width:`24px`,height:`24px`})})}),(0,K.jsx)(Ig,{title:U(`properties.delete_trigger`),children:(0,K.jsx)(br,{edge:`end`,size:`small`,onClick:e(t,Za.DELETE_DRAFT_JOB),children:(0,K.jsx)(Y.IcTrash2,{byWidth:!0,width:`24px`,height:`24px`})})})]});pb.propTypes={handleRowActions:V.default.func.isRequired,rowData:V.default.shape({}).isRequired};var mb=_i.default.bind($y),hb=`recurring`,gb=class extends B.PureComponent{constructor(...e){super(...e),k(this,`handleClick`,(e,t)=>n=>{let{handlePopoverClose:r,handleBtn:i}=this.props;r.closePopup(),i(t,e),e!==`cancel`&&e!==`skip`&&n.stopPropagation()}),k(this,`handleDraftJobActions`,(e,t)=>n=>{let{handlePopoverClose:r,handleDraftJobActions:i}=this.props;r.closePopup(),i(e,t),n.stopPropagation()})}componentWillUnmount(){this.unmounted=!0}getEdgeCaseColor(e){return Cl(e)||Sl(e)?`cancelled`:e.jobRequestColor}render(){let{calendarEvent:e,seeCleanerNamesPermission:t,canSendJobsPermission:n}=this.props,r={handleClick:this.handleClick,calendarEvent:e,handleRowActions:this.handleDraftJobActions},i=nl(e),a=tl(e),o=$c(e);return i?(0,K.jsx)(fb,{color:this.getEdgeCaseColor(e),children:(0,K.jsx)(vb,{children:(0,K.jsx)(cb,{canSendJobsPermission:n,seeCleanerNamesPermission:t,eventId:e.id,isPaired:!0,...r,children:(0,K.jsx)(yb,{isInline:!0,...(0,Pf.default)(r,`isLoading`),seeCleanerNamesPermission:t,canSendJobsPermission:n})})})}):a?(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(fb,{children:(0,K.jsx)(vb,{children:(0,K.jsx)(yb,{eventId:e.id,...r,seeCleanerNamesPermission:t,canSendJobsPermission:n})})})}):o?(0,K.jsx)(fb,{children:(0,K.jsx)(vb,{children:(0,K.jsx)(cb,{eventId:e.id,...r,canSendJobsPermission:n,seeCleanerNamesPermission:t})})}):(R.default.error(`CalendarColorTile - nothing`),null)}},_b={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1,transition:{...bd.snappy,duration:yd.normal}},hover:{y:-2,boxShadow:`0 4px 12px rgba(0,0,0,0.12)`,transition:{duration:yd.fast}}},vb=({children:e})=>(0,K.jsx)(gn.div,{className:mb(`calendar-color__pbottom`),variants:_b,initial:`initial`,animate:`animate`,whileHover:`hover`,children:e});
261vb.propTypes={children:V.default.node.isRequired};var yb=({eventId:e,canSendJobsPermission:t,calendarEvent:n,handleClick:r,isInline:i,handleRowActions:a})=>{let o=hl(n),s=ul(n),c=Sl(n),l=Cl(n),u=c||l,d=tl(n),f=d?void 0:Pl(n),p=gl(n),m=Nte(n),h=n?.reminder?.type===hb,g=n?.startTime,_=n?.timeZone,v=B.useMemo(()=>{if(!g||!_)return!0;let e=z.default.utc(g).tz(_);return(0,z.default)().tz(_).diff(e,`days`)<2},[g,_]),y=U(s||p?`calendartile.todo`:`calendartile.job`),b=dl(n),x=xl(n),S=Gte(n),C=Pte(n,e=>`${e} ${U(e===1?`calendartile.guest_singular`:`calendartile.guest_plural`)}`),w=t&&p&&d&&!h,T=t&&d&&!p&&m;return(0,K.jsxs)(`div`,{"data-testid-reminder-event-id":e,className:mb(`calendar-color__event`,{"calendar-color__event--inline":i}),children:[(0,K.jsxs)(`div`,{className:mb(`calendar-color__event-top`),children:[(0,K.jsxs)(`div`,{className:mb(`calendar-color__event-info`),children:[y,` `]}),u&&(0,K.jsxs)(`div`,{className:mb(`calendar-color__event-warn`),children:[(0,K.jsx)(Y.IcWarningEvent,{}),c&&(0,K.jsx)(`span`,{children:U(`calendartile.cancelled`)}),l&&(0,K.jsx)(`span`,{children:U(`calendartile.changed`)})]}),h&&!m&&(0,K.jsx)(Ig,{title:U(`properties.kind.recurring`),children:(0,K.jsx)(Ce,{color:`primary`})})]}),(0,K.jsx)(`div`,{className:mb(`calendar-color__event-top`),children:(0,K.jsx)(`div`,{className:mb(`calendar-color__event-name`),children:(0,K.jsx)(`span`,{children:o})})}),(0,K.jsx)(`div`,{className:mb(`calendar-color__event-address`),children:S}),(0,K.jsxs)(`div`,{className:mb(`calendar-color__event-info`),children:[C,` `]}),w&&(0,K.jsx)(ib,{handleClick:r,mode:Il(b,x),color:f,data:n}),h&&!m&&(0,K.jsxs)(`div`,{className:mb(`calendar-color__btnwrap`),children:[v&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(q,{"data-testid":`reminder_attach`,onClick:r(`attach`,n),types:[`type-full-primary`,`size-small`,`flex-1`],ClassName:mb(`calendar-color__btnwrap`),children:U(`todos.reminder.attach`)}),(0,K.jsx)(`div`,{className:mb(`calendar-color__btnspace`)})]}),(0,K.jsx)(q,{"data-testid":`reminder_ignore`,onClick:r(`skip`,n),types:[`type-border-primary`,`size-small`,`flex-1`],children:U(`todos.reminder.ignore`)})]}),T&&(0,K.jsx)(`div`,{className:mb(`calendar-color__event-icon-wrap`),children:(0,K.jsx)(pb,{handleRowActions:a,rowData:n})})]})};gb.propTypes={calendarEvent:V.default.shape({}).isRequired,handleBtn:V.default.func.isRequired,canSendJobsPermission:V.default.bool.isRequired,seeCleanerNamesPermission:V.default.bool.isRequired,handlePopoverClose:V.default.shape({}).isRequired,handleDraftJobActions:V.default.func},yb.propTypes={eventId:V.default.string,canSendJobsPermission:V.default.bool,calendarEvent:V.default.shape({}).isRequired,handleClick:V.default.func.isRequired,isInline:V.default.bool,handleRowActions:V.default.func};var bb=({events:e,seeCleanerNamesPermission:t=!1,canSendJobsPermission:n=!1,handlePopoverClose:r,handleBtn:i=()=>{},handleDraftJobActions:a})=>{let[o,s]=(0,B.useState)(0);return(0,K.jsxs)(I,{sx:{position:`relative`},children:[(0,K.jsx)(I,{sx:{maxHeight:`200px`,padding:`0 12px 0 4px`,overflowY:`auto`,overflowX:`hidden`},"data-testid":`properly-tooltip-scroll`,children:(0,K.jsx)(__.default,{onHeightReady:e=>s(e),children:(0,H.default)(e,e=>(0,K.jsx)(gb,{handleBtn:i,calendarEvent:e,canSendJobsPermission:n,seeCleanerNamesPermission:t,handlePopoverClose:r,handleDraftJobActions:a},`RenderList-item-${e.id}`))})}),o>200&&(0,K.jsx)(I,{sx:{position:`absolute`,bottom:0,left:0,zIndex:2,right:`10px`,width:`100%`,paddingLeft:`10px`,paddingRight:`10px`},children:(0,K.jsx)(Y.IcGradientPopover,{height:`12px`,byHeight:!0})})]})};bb.propTypes={handlePopoverClose:V.default.shape({}).isRequired,handleBtn:V.default.func,events:V.default.arrayOf(V.default.shape({})).isRequired,seeCleanerNamesPermission:V.default.bool,canSendJobsPermission:V.default.bool,handleDraftJobActions:V.default.func.isRequired};var xb=({isBigTile:e=!1,children:t={}})=>(0,K.jsx)(I,{"data-testid":`tagwrap`,sx:{padding:`0 12px`,marginBottom:`4px`,height:e?`auto`:`20px`,display:`flex`,justifyContent:`center`},children:t});xb.propTypes={isBigTile:V.default.bool,children:V.default.node};var Sb=e=>e?.reminder?.title??``,Cb=(e,t)=>
261`${e}+${t.id}`,wb=e=>e.reduce(Cb,``),Tb={fontFamily:`var(--primaryFont)`,fontSize:`11px`,lineHeight:`14px`,color:`var(--color-loading-txt)`,width:`100%`,display:`flex`,alignItems:`center`,justifyContent:`flex-start`,cursor:`pointer`},Eb={padding:`10px 0 6px 0`};function Db(e){let t=e?.autoSchedulerId;return(0,K.jsx)(Kd,{square:!0,isFull:!0,isFlex:!0,isClickable:!0,isEventTag:!0,isPending:!!t,children:Sb(e)})}function Ob(e){return(0,K.jsx)(I,{sx:Tb,children:U(`calendar.more`,{num:e})})}function kb(e=[],t){return{visibleEvents:e.slice(0,t),moreEvents:e.slice(t)}}function Ab({canSendJobsPermission:e=!1,isInactiveProperty:t=!1,seeCleanerNamesPermission:n=!1,maxEvents:r,onEventAction:i,events:a=[],handleDraftJobActions:o}){let s=(0,B.useCallback)(e=>{e.target.getAttribute(`data-testid`)!==`tagwrap`&&e.stopPropagation()},[]),c=(0,B.useCallback)(()=>{let{visibleEvents:e,moreEvents:t}=kb(a,r);return t.length>0&&r>1?kb(a,r-1):{visibleEvents:e,moreEvents:t}},[a,r]),l=(0,B.useCallback)((t,r)=>(0,K.jsx)(I,{sx:Eb,className:`tile list`,children:(0,K.jsx)(bb,{seeCleanerNamesPermission:!!n,canSendJobsPermission:e,handleBtn:i,events:t,handlePopoverClose:r,handleDraftJobActions:o})}),[n,e,i,o]),u=(0,B.useCallback)((e,t)=>(0,K.jsx)(Qy,{showCleanerInfo:!!n,handleClick:t,calendarEvent:e}),[n]),d=(0,B.useCallback)((e,t)=>(0,K.jsx)(Qy,{small:!0,handleClick:t,calendarEvent:e,showCleanerInfo:!!n}),[n]),f=(0,B.useCallback)((e,n,r)=>{if(!e)return null;let a=Array.isArray(e)?e:[e],o=Array.isArray(e)?wb(e):e.id,s=`calendar-event-${e.id}`,c=a.length,f=!n&&Qc(e),p=!n&&tl(e),m=!n&&nl(e),h=n||m||p,g=h||t?()=>{}:()=>i(e,`jobrequest`),[_]=a||[],v=r?u(_,g):d(_,g),y=(0,K.jsxs)(xb,{isBigTile:r,children:[n?Ob(c):null,f?v:null,p?Db(e):null]},s);return h?(0,K.jsx)(Lg,{id:o,popoverContent:e=>l(a,e),hasArrow:!0,children:(0,K.jsx)(`div`,{children:y})},s):y},[t,i,u,d,l]),p=a&&a.length===0,m=a&&a.length===1;if(p)return null;let{visibleEvents:h,moreEvents:g}=c(),_=g&&g.length>0,v=m&&r>=3;return(0,K.jsxs)(`div`,{onClick:s,"data-max":r,children:[(h||[]).map(e=>f(e,!1,v)),_&&f(g,!0,!1)]})}Ab.propTypes={canSendJobsPermission:V.default.bool,isInactiveProperty:V.default.bool,seeCleanerNamesPermission:V.default.bool,maxEvents:V.default.number.isRequired,onEventAction:V.default.func.isRequired,events:V.default.oneOfType([V.default.arrayOf(V.default.shape({})),V.default.shape({})]),handleDraftJobActions:V.default.func.isRequired};var jb=138,Mb=20,Nb=10,Pb=200,Fb=200,Ib=B.memo(e=>{let{expandSize:t,renderRow:n,renderNoProperties:r,onPropertiesRendered:i=()=>{},totalPropertiesCount:a,hasVerticalScroll:o=!1,onHasVerticalScrollChange:s=()=>{}}=e,c=(0,B.useRef)(null),l=(0,B.useRef)(null),[u,d]=(0,B.useState)(0),f=(0,B.useCallback)(({overscanStartIndex:e,overscanStopIndex:t})=>{let n=Math.floor(e/Mb)*Mb,r=Math.ceil(t/Mb)*Mb;i({overscanStartIndex:n===e?Math.max(n-Nb,0):n,overscanStopIndex:r===t?r+Nb:r})},[i]),p=(0,B.useMemo)(()=>(0,Xf.default)(f,Pb,{maxWait:Fb,trailing:!0,leading:!0}),[f]);l.current=p,(0,B.useEffect)(()=>()=>{p&&p.cancel()},[p]);let m=(0,B.useRef)(t);(0,B.useEffect)(()=>{let e=t!==m.current;m.current&&e&&(R.default.info(`Recomputing row height`),c.current&&c.current.recomputeRowHeights()),m.current=t},[t]);let h=(0,B.useCallback)(({index:e}={})=>{let n=(t||{})[e];return n>=3?n*22+76:jb},[t]),g=(0,B.useCallback)(({key:e,index:t,style:r,width:i})=>n(e,t,r,i),[n]),_=(0,B.useCallback)(()=>r(),[r]);return(0,B.useEffect)(()=>{let e=u<a*jb;o!==e&&s(e)},[u,a,o,s]),(0,K.jsx)(`div`,{style:{background:`var(--surface-ground)`,height:`100%`,overflow:`hidden`},children:(0,K.jsx)(Ft,{children:({height:e,width:t})=>(e!==u&&Promise.resolve().then(()=>d(e)),(0,K.jsx)(ui,{ref:c,overscanRowCount:Nb,onRowsRendered:l.current,disableHeader:!0,rowStyle:{height:jb},width:t,height:e,rowCount:a,rowHeight:h,estimatedRowSize:jb*a,noRowsRenderer:_,rowRenderer:({key:e,index:n,style:r})=>g({key:e,index:n,style:r,width:t})}))})})});Ib.propTypes={renderRow:V.default.func,onPropertiesRendered:V.default.func,totalPropertiesCount:V.default.number.isRequired,renderNoProperties:V.default.func.isRequired,expandSize:V.default.shape({}),hasVerticalScroll:V.default.bool,onHasVerticalScrollChange:V.default.func};var Lb=e(rn()),Rb={"calendar__col--headline":`_calendar__col--headline_yoaef_2 normal`,calendarColHeadline:`_calendar__col--headline_yoaef_2 normal`,"calendar__col--day":`_calendar__col--day_yoaef_9`,calendarColDay:`_calendar__col--day_yoaef_9`,"calendar__col--selected":`_calendar__col--selected_yoaef_12`,calendarColSelected:`_calendar__col--selected_yoaef_12`,"calendar__col--darkboder":`_calendar__col--darkboder_yoaef_16`,calendarColDarkboder:`_calendar__col--darkboder_yoaef_16`,"calendar__col--minwidth":`_calendar__col--minwidth_yoaef_19`,calendarColMinwidth:`_calendar__col--minwidth_yoaef_19`,"calendar__col--empty":`_calendar__col--empty_yoaef_23`,calendarColEmpty:`_calendar__col--empty_yoaef_23`,"calendar__col--masterdetail":`_
261calendar__col--masterdetail_yoaef_26`,calendarColMasterdetail:`_calendar__col--masterdetail_yoaef_26`,calendar__property:`_calendar__property_yoaef_40`,calendarProperty:`_calendar__property_yoaef_40`,"calendar__property-l1":`_calendar__property-l1_yoaef_44 input`,calendarPropertyL1:`_calendar__property-l1_yoaef_44 input`,"calendar__property-l2":`_calendar__property-l2_yoaef_48 input-error`,calendarPropertyL2:`_calendar__property-l2_yoaef_48 input-error`,calendar__bookingwrap:`_calendar__bookingwrap_yoaef_53`,calendarBookingwrap:`_calendar__bookingwrap_yoaef_53`,calendar__bookingwrapwrap:`_calendar__bookingwrapwrap_yoaef_58`,calendarBookingwrapwrap:`_calendar__bookingwrapwrap_yoaef_58`,calendar__btnwrap:`_calendar__btnwrap_yoaef_61`,calendarBtnwrap:`_calendar__btnwrap_yoaef_61`},zb=e=>{let[t,n]=(0,B.useState)(!1);return(0,B.useEffect)(()=>{let t=e.current;t&&n(t.scrollWidth>t.clientWidth)},[e]),t},Bb=(0,B.memo)(e=>{let{id:t,pictureUrl:n=null,apt:r,zip:i,state:a,city:o,street:s,incompleteAddress:c,isSharedProperty:l,isSharingProperty:u,isInactiveProperty:d,...f}=e,{propertyOwnerName:p,collaboratorData:m,...h}=f||{},g=(0,B.useRef)(null),_=(0,B.useRef)(null),v=zb(g),y=zb(_),{title:b,streetLine:S,cityStateLine:C,zipLine:w}=(0,B.useMemo)(()=>({title:e.title||``,streetLine:oc({street:s,apt:r}),cityStateLine:[o,a].filter(Boolean).join(`, `),zipLine:i}),[e.title,s,r,i,a,o]),T=(0,B.useMemo)(()=>!v&&!y?``:[b,S,C,w].filter(Boolean).join(` 262`),[b,S,C,w,v,y]);return(0,K.jsxs)(I,{"data-testid-property-id":t,title:b,...h,sx:{display:`flex`,alignItems:`center`,gap:1.5,py:.75,px:1,cursor:`pointer`,width:`100%`,...d&&{backgroundColor:`var(--color-gray-100)`}},children:[(0,K.jsx)(I,{sx:{width:56,height:56,minWidth:56,borderRadius:`8px`,overflow:`hidden`,flexShrink:0,"& > div":{width:`100%`,height:`100%`,borderRadius:`8px`}},children:(0,K.jsx)(Qd,{type:`community`,text:Ko(b),picture:n})}),(0,K.jsx)(qn,{title:T,placement:`top`,arrow:!0,disableHoverListener:!T,slotProps:{tooltip:{sx:{whiteSpace:`pre-line`,maxWidth:300}}},children:(0,K.jsxs)(I,{sx:{flex:1,minWidth:0,overflow:`hidden`,py:.25},children:[(0,K.jsx)(x,{ref:g,sx:{fontWeight:600,fontSize:`14px`,lineHeight:1.35,color:`var(--color-text)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:b}),S&&(0,K.jsx)(x,{ref:_,sx:{fontSize:`12px`,lineHeight:1.35,color:`var(--color-text-secondary)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:S}),C&&(0,K.jsx)(x,{sx:{fontSize:`12px`,lineHeight:1.35,color:`var(--color-text-secondary)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:C}),w&&(0,K.jsx)(x,{sx:{fontSize:`12px`,lineHeight:1.35,color:`var(--color-text-secondary)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:w})]})}),(0,K.jsx)(bA,{id:t,collaboratorData:m,propertyOwnerName:p,isSharingProperty:u,isSharedProperty:l,incompleteAddress:c,isInactiveProperty:d})]})});Bb.propTypes={id:V.default.string.isRequired,pictureUrl:V.default.string,title:V.default.string,apt:V.default.string,street:V.default.string,state:V.default.string,city:V.default.string,zip:V.default.string,collaboratorData:V.default.shape({}),propertyOwnerName:V.default.string,incompleteAddress:V.default.bool,isSharedProperty:V.default.bool,isSharingProperty:V.default.bool,isInactiveProperty:V.default.bool};var Vb=_i.default.bind(Rb),Hb=3,Ub=5,Wb=class extends B.PureComponent{getBookingPositionType(e,t){return Ol(e,t)?`start`:Ml(e,t)?`end`:`middle`}ensureCorrectHeight(e){let{index:t,expandSize:n,onExpand:r}=this.props,i=n!==e&&e>=Hb,a=!Number.isNaN(n)&&n!==e&&e<Hb&&n>=Hb;(i||a)&&(R.default.warn(`Booking lines is greater than or equal to 3`,{totalBookingEvents:e,needsExpanding:i,needsShrinking:a}),r(t,e))}renderSingleBooking(e,t,n){let{width:r,onBookingClick:i}=this.props,a=this.getBookingPositionType(e,t),o=Lte(e);return(0,K.jsx)(Hy,{width:r,calendarEventId:e.id,onClick:()=>{R.default.info(`DEBUG calendar event`,e.id,t,e),i&&i(e)},isFirstDay:n,isCanceled:Sl(e),title:Rte(e),bookingLength:o||1,type:a},`booking-${e.id}`)}renderBookingsInner(e){let t=[];return e?(0,Lb.default)(e)?(t.push(e[0]),t.push(e[1]),t):[e]:t}renderBookings(e,t,n,r,i){return(0,H.default)(r,(n,a)=>{let o=this.renderBookingsInner(n[e]);if(!(0,G.default)(r,[a+1,e])&&o.length===0)return null;let s=t===0;return(0,K.jsx)(`div`,{"data-testid":`calendar-booking-${i}-${e}`,onClick:e=>e.stopPropagation(),className:Vb(`calendar__bookingwrap`),children:o.map(t=>this.renderSingleBooking(t,e,s))},`calendar-booking-${i}-${e}-${a}`)})}
262renderJobRequest(e,t,n){let{seeCleanerNamesPermission:r,canSendJobsPermission:i,onEventAction:a,handleDraftJobActions:o}=this.props;return(0,K.jsx)(Ab,{canSendJobsPermission:i,isInactiveProperty:n,seeCleanerNamesPermission:r,onEventAction:a,maxEvents:e,events:(0,bo.default)(t,[e=>tl(e),`createdAt`],[`desc`,`desc`]),handleDraftJobActions:o})}renderCellContent(e,t,n,r,i,a,o,s){let c=Gb((0,If.default)(r,(t,n)=>n&&n[e]?t+1:t,0),i.length,Math.max(s,Ub)),l=(0,K.jsx)(I,{sx:{padding:`4px 0 2px`},children:this.renderBookings(e,t,n,r,a)}),u=this.renderJobRequest(c,i,o);return(0,K.jsxs)(`div`,{className:Vb(`calendar__cellwrap`),children:[l,u]})}render(){let{property:e,goToProperty:t,canSendJobsPermission:n,openJobRequest:r,propertyBookings:i,propertyOtherEvents:a,sharingProperty:o,sharedProperty:s,propertyOwnerName:c,collaboratorData:l,dates:u,shouldFilterCanceledEvents:d,filterDays:f,index:p,isInactiveProperty:m}=this.props,h=!!e,{address:g}=e||{},_=e&&(e.id||e.objectId),v=e&&e.timeZone,y=ac(g,e),b=nne(Object.keys(i||{}).map(e=>i[e]).filter(e=>d?!Sl(e):!0),u,e.timeZone),x=b.length;this.ensureCorrectHeight(x);let S=e=>f&&f.length===0||f.indexOf(e)!==-1,C=(0,H.default)(u,(e,t)=>{let i=u[t+1],o=e.slice(2),s=n&&!m?()=>(R.default.info(`Opening job request on `,e,_,v),r(e,_,v)):null,c=Object.keys(a[String(o)]||{}).map(e=>a[String(o)][e]),l=d?c.filter(e=>!Ete(e)):c;return(0,K.jsx)(Gy,{id:`${e}/${_}`,"data-day-index":t,isInactive:!S(e),isToday:Ac(e,`YYYYMMDD`),isWeekend:jc(e,`YYYYMMDD`),onClick:s,isInactiveProperty:m,children:this.renderCellContent(e,t,i,b,l,_,m,x)},`calendar-property-col-${_}-${e}`)}),{globalPropertyPictureUrl:w}=this.props;return(0,K.jsxs)(Uy,{propertyName:e.title,children:[(0,K.jsx)(Xy,{children:h&&(0,K.jsx)(Bb,{id:_,pictureUrl:w,"data-testid-property-index":p,isSharedProperty:!!s,isSharingProperty:o,isInactiveProperty:m,incompleteAddress:y,propertyOwnerName:c,collaboratorData:l,onClick:()=>t(_),title:e.title,...e.address})},`calendar-property-col-${_}`),(0,K.jsx)(I,{sx:{display:`flex`,flex:1,background:`var(--surface-base)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-sm, 6px)`,boxShadow:`var(--shadow-sm)`,overflow:`hidden`,transition:`box-shadow 0.2s ease`,"&:hover":{boxShadow:`var(--shadow-md)`}},children:C})]})}};Wb.propTypes={seeCleanerNamesPermission:V.default.bool.isRequired,canSendJobsPermission:V.default.bool.isRequired,filterDays:V.default.arrayOf(V.default.string),property:V.default.shape({id:V.default.string.isRequired,timeZone:V.default.string.isRequired}),onExpand:V.default.func,width:V.default.number,propertyBookings:V.default.shape().isRequired,propertyOtherEvents:V.default.shape().isRequired,dates:V.default.arrayOf(V.default.string).isRequired,currentUser:V.default.shape({}).isRequired,propertyOwnerName:V.default.string,sharedProperty:V.default.bool.isRequired,sharingProperty:V.default.bool.isRequired,collaboratorData:V.default.shape().isRequired,preFilledDurationNewJobRequest:V.default.number,goToProperty:V.default.func.isRequired,openJobRequest:V.default.func.isRequired,onEventAction:V.default.func.isRequired,onBookingClick:V.default.func,handleDraftJobActions:V.default.func.isRequired,globalPropertyPictureUrl:V.default.string},Wb.defaultProps={preFilledDurationNewJobRequest:60,propertyOwnerName:``,width:0,onBookingClick:()=>{},onExpand:()=>{},property:{},filterDays:[],globalPropertyPictureUrl:null};function Gb(e,t,n){if(e>=n)return 1;let r=n-e;return r>0?r:1}var Kb=({children:e,border:t=!1})=>(0,K.jsx)(I,{sx:{pt:3,pb:1,px:2},children:(0,K.jsx)(x,{variant:`subtitle1`,sx:{fontWeight:600,color:`text.secondary`},children:e})});Kb.propTypes={border:V.default.bool,children:V.default.node.isRequired};var qb=e=>e?(0,K.jsx)(I,{component:`span`,sx:{color:`var(--color-primary)`},children:`*`}):null,Jb=({label:e,isRequired:t,id:n,children:r,icon:i})=>(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(I,{component:`label`,htmlFor:n,sx:{fontFamily:`var(--primaryFont)`,fontSize:`12px`,lineHeight:`14px`,fontWeight:500,paddingBottom:`6px`,display:`block`,color:`var(--color-text)`},children:[e,` `,i,` `,qb(t)]}),r]}),Yb=35;function Xb({title:e,description:t,pictureIdentifiers:n,onDelete:r}){let i=(0,B.useCallback)(()=>{r(e,t)},[r,e,t]);return(0,K.jsx)(`div`,{children:(0,K.jsxs)(Ht,{container:!0,direction:`row`,wrap:`nowrap`,sx:{alignItems:`center`,justifyContent:`space-between`},children:[(0,K.jsx)(Ht,{size:{sm:10},sx:{border:`1px solid var(--color-grey-light)`,borderRadius:`4px`,margin:`8px`,padding:`8px 0 8px 24px`,transition:`background 200ms ease`,cursor:`pointer`},children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)($g,{children:e.length<Yb?e:e.slice(0,Yb)+`..`}),t&&(0,K.jsx)(Yg,{children:t.length<Yb?t:t.slice(0,Yb)+`..`}),(0,K.jsx)(ym,{}),(0,K.jsx)(I,{sx:{margin:`10px`,marginLeft:`0px`,display:`flex`,flexWrap:`wrap`,justifyContent:`space-around`,overflow:`hidden`},children:(0,K.jsx)(At,{sx:{flexWrap:`nowrap`,transform:`translateZ(0)`,width:1e3,height:`auto`,overflowY:`auto`}
262,cols:3,rowHeight:80,spacing:1,children:n.map(e=>(0,K.jsx)(we,{cols:1,children:(0,K.jsx)(`img`,{src:ou(e),alt:e})},e))})})]})}),(0,K.jsx)(Ht,{children:(0,K.jsx)(Y.IcTrashSolid,{onClick:i,color:Wp,style:{textAlign:`center`,height:`4em`}})})]})})}Xb.propTypes={onDelete:V.default.func.isRequired,title:V.default.string.isRequired,description:V.default.string.isRequired,pictureIdentifiers:V.default.arrayOf(V.default.string).isRequired};var Zb=_i.default.bind({checklist__header:`_checklist__header_1rz2p_2 normal`,checklistHeader:`_checklist__header_1rz2p_2 normal`,"checklist__header--primary":`_checklist__header--primary_1rz2p_18`,checklistHeaderPrimary:`_checklist__header--primary_1rz2p_18`,"checklist__header--white":`_checklist__header--white_1rz2p_23`,checklistHeaderWhite:`_checklist__header--white_1rz2p_23`,"checklist__header--themed":`_checklist__header--themed_1rz2p_27`,checklistHeaderThemed:`_checklist__header--themed_1rz2p_27`,"checklist__header--dark":`_checklist__header--dark_1rz2p_31`,checklistHeaderDark:`_checklist__header--dark_1rz2p_31`,"checklist__header--black":`_checklist__header--black_1rz2p_37`,checklistHeaderBlack:`_checklist__header--black_1rz2p_37`,"checklist__header-part":`_checklist__header-part_1rz2p_41`,checklistHeaderPart:`_checklist__header-part_1rz2p_41`,bold:`_bold_1rz2p_45`,flex:`_flex_1rz2p_48`,orange:`_orange_1rz2p_52`,pointer:`_pointer_1rz2p_55`,grey:`_grey_1rz2p_58`,"checklist__header-space":`_checklist__header-space_1rz2p_62`,checklistHeaderSpace:`_checklist__header-space_1rz2p_62`,"checklist__header-main":`_checklist__header-main_1rz2p_67`,checklistHeaderMain:`_checklist__header-main_1rz2p_67`,"checklist__header-main--opacity":`_checklist__header-main--opacity_1rz2p_85`,checklistHeaderMainOpacity:`_checklist__header-main--opacity_1rz2p_85`,"pointer--opacity":`_pointer--opacity_1rz2p_89`,pointerOpacity:`_pointer--opacity_1rz2p_89`}),Qb=({onClose:e,onDone:t,onEdit:n,onCancel:r,onRemove:i,hasSelectedItems:a,onDuplicate:o,isLoading:s,text:c,type:l,onSelect:u,canSelect:d,canRemove:f,selectedCount:p,onCloseKey:m,onDoneKey:h,onEditKey:g,onCancelKey:_,onRemoveKey:v,onDuplicateKey:y,onSelectKey:b})=>l===`multi`?(0,K.jsxs)(`div`,{className:Zb(`checklist__header`,`checklist__header--black`),children:[(0,K.jsx)(`div`,{onClick:e,"data-testid":m,className:Zb(`checklist__header-part`,`grey`,`pointer`),children:U(`checklist.cancel`)}),(0,K.jsx)(`div`,{className:Zb(`checklist__header-main`),children:c}),s&&(0,K.jsx)(`div`,{className:Zb(`checklist__header-part`,`bold`,`orange`,`pointer`),children:(0,K.jsx)(J,{variant:`circular`,width:20,height:20})}),!s&&(0,K.jsx)(`div`,{onClick:t,"data-testid":h||`multi-done-button`,className:Zb(`checklist__header-part`,`bold`,`orange`,`pointer`),children:U(`checklist.done`)})]}):l===`merge`?(0,K.jsxs)(`div`,{className:Zb(`checklist__header`,`checklist__header--black`),children:[(0,K.jsx)(`div`,{onClick:e,"data-testid":m,className:Zb(`checklist__header-part`,`grey`,`pointer`),children:U(`account.merge_property.cancel`)}),(0,K.jsx)(`div`,{className:Zb(`checklist__header-main`),children:c}),s&&(0,K.jsx)(`div`,{className:Zb(`checklist__header-part`,`bold`,`orange`,`pointer`),children:(0,K.jsx)(J,{variant:`circular`,width:20,height:20})}),!s&&(0,K.jsx)(`div`,{onClick:t,"data-testid":h||`merge-done-button`,className:Zb(`checklist__header-part`,`bold`,`orange`,`pointer`),children:U(`account.merge_property.merge`)})]}):l===`dark`?(0,K.jsxs)(`div`,{className:Zb(`checklist__header`,`checklist__header--themed`),children:[(0,K.jsx)(`div`,{onClick:e,"data-testid":m,className:Zb(`checklist__header-part`,`flex`,`pointer`),children:(0,K.jsx)(Y.IcClose,{margin:`0 4px`})}),(0,K.jsx)(`div`,{className:Zb(`checklist__header-main`),children:U(`checklist.overview`)}),(0,K.jsx)(`div`,{onClick:n,"data-testid":g,className:Zb(`checklist__header-part`,`pointer`),children:U(`checklist.edit_slides`)})]}):l===`orange`?(0,K.jsxs)(`div`,{className:Zb(`checklist__header`,`checklist__header--white`),children:[(0,K.jsx)(`div`,{className:Zb(`checklist__header-part`)}),(0,K.jsxs)(`div`,{className:Zb(`checklist__header-main`,{"checklist__header-main--opacity":!a}),children:[(0,K.jsxs)(`span`,{className:Zb(`pointer`),onClick:o,"data-testid":y,children:[(0,K.jsx)(Y.IcDuplicateWhite3,{margin:`0 4px`}),` `,U(`checklist.duplicate`)]}),(0,K.jsx)(`span`,{className:Zb(`checklist__header-space`)}),(0,K.jsxs)(`span`,{className:Zb(`pointer`),onClick:i,"data-testid":v,children:[(0,K.jsx)(Y.IcTrash3,{margin:`0 4px`}),` `,U(`checklist.remove`)]})]}),(0,K.jsx)(`div`,{onClick:r,"data-testid":_,className:Zb(`checklist__header-part`,`bold`,`pointer`),children:U(`checklist.cancel`)})]}):l===`orangegallery`?(0,K.jsxs)(`div`,{className:Zb(`checklist__header`,`checklist__header--white`,`checklist__header--primary`),children:[(0,K.jsx)(`div`,{className:Zb(`checklist__header-part`)}),(0,K.jsxs)(`div`,{className:Zb(`checklist__header-main`),children:[(0,K.jsxs)(`span`,{children:[(0,K.jsx)(`span`,{style:{display:`inline-block`,minWidth:`12px`},children:p}),` ${U(`properties.selected`)}`]}),(0,K.jsx)(`span`,{className:Zb(`checklist__header-space`)}),(0,K.jsxs)(`span`,{className:Zb(`pointer`,{"pointer--opacity":!d}),onClick:u,"data-testid":b,children:[(0,K.jsx)(Y.IcDuplicateWhite3,{margin:`0 4px`}),` `,U(`checklist.set_as_p_p`)]}),(0,K.jsx)(`span`,{className:Zb(`checklist__header-space`)}),(0,K.jsxs)(`span`,{className:Zb(`pointer`,{"pointer--opacity":!f}),onClick:i,"data-testid":v,children:[(0,K.jsx)(Y.IcTrash3,{margin:`0 4px`}),` `,U(`checklist.remove`)]})]}),(0,K.jsx)(`div`,{onClick:r,"data-testid":_,className:Zb(`checklist__header-part`,`bold`,`pointer`),children:U(`checklist.cancel`)})]}):(0,K.jsx)(`div`,{});Qb.propTypes={onClose:V.default.func,onDone:V.default.func,onEdit:V.default.func,onCancel:V.default.func,onRemove:V.default.func,hasSelectedItems:V.default.bool,isLoading:V.default.bool,onDuplicate:V.default.func,text:V.default.string,selectedCount:V.default.number,type:V.default.oneOf([`orange`,`dark`,`multi`,`merge`,`orangegallery`])};var $b=({children:e})=>(0,K.jsx)(I,{sx:{background:`var(--color-bg-paper)`,padding:`var(--space-base)`,boxShadow:`var(--shadow-card)`,borderRadius:`8px`,border:`1px solid var(--color-border)`},children:(0,K.jsx)(`div`,{children:e})});$b.propTypes={children:V.default.node.isRequired};var ex=_i.default.bind({"checklist-overlay":`_checklist-overlay_12ioe_2`,checklistOverlay:`_checklist-overlay_12ioe_2`,"checklist-overlay--dark":`_checklist-overlay--dark_12ioe_14`,checklistOverlayDark:`_checklist-overlay--dark_12ioe_14`,"checklist-overlay__header":`_checklist-overlay__header_12ioe_18`,checklistOverlayHeader:`_checklist-overlay__header_12ioe_18`,"checklist-overlay__header--primary":`_checklist-overlay__header--primary_12ioe_22`,checklistOverlayHeaderPrimary:`_checklist-overlay__header--primary_12ioe_22`,"checklist-overlay__header--dark":`_checklist-overlay__header--dark_12ioe_25`,checklistOverlayHeaderDar
262k:`_checklist-overlay__header--dark_12ioe_25`,"checklist-overlay__content-wrap":`_checklist-overlay__content-wrap_12ioe_29`,checklistOverlayContentWrap:`_checklist-overlay__content-wrap_12ioe_29`,"checklist-overlay__content":`_checklist-overlay__content_12ioe_29`,checklistOverlayContent:`_checklist-overlay__content_12ioe_29`,"checklist-overlay__content--grey":`_checklist-overlay__content--grey_12ioe_45`,checklistOverlayContentGrey:`_checklist-overlay__content--grey_12ioe_45`,"checklist-overlay__content-inner":`_checklist-overlay__content-inner_12ioe_48`,checklistOverlayContentInner:`_checklist-overlay__content-inner_12ioe_48`,"checklist-overlay__griditem":`_checklist-overlay__griditem_12ioe_55`,checklistOverlayGriditem:`_checklist-overlay__griditem_12ioe_55`,"checklist-overlay__gridrow":`_checklist-overlay__gridrow_12ioe_58`,checklistOverlayGridrow:`_checklist-overlay__gridrow_12ioe_58`,"checklist-overlay__griditem-overlay":`_checklist-overlay__griditem-overlay_12ioe_61`,checklistOverlayGriditemOverlay:`_checklist-overlay__griditem-overlay_12ioe_61`,"checklist-overlay__griditem-overlay--selected":`_checklist-overlay__griditem-overlay--selected_12ioe_68`,checklistOverlayGriditemOverlaySelected:`_checklist-overlay__griditem-overlay--selected_12ioe_68`,"checklist-overlay__griditem-overlay--loading":`_checklist-overlay__griditem-overlay--loading_12ioe_71`,checklistOverlayGriditemOverlayLoading:`_checklist-overlay__griditem-overlay--loading_12ioe_71`,"checklist-overlay__griditem-overlay--hover":`_checklist-overlay__griditem-overlay--hover_12ioe_76`,checklistOverlayGriditemOverlayHover:`_checklist-overlay__griditem-overlay--hover_12ioe_76`,"checklist-overlay__griditem-overlay--left":`_checklist-overlay__griditem-overlay--left_12ioe_84`,checklistOverlayGriditemOverlayLeft:`_checklist-overlay__griditem-overlay--left_12ioe_84`,"checklist-overlay__griditem-overlay-icon":`_checklist-overlay__griditem-overlay-icon_12ioe_84`,checklistOverlayGriditemOverlayIcon:`_checklist-overlay__griditem-overlay-icon_12ioe_84`,"checklist-overlay__griditem-overlay-num":`_checklist-overlay__griditem-overlay-num_12ioe_94 text-type-micro`,checklistOverlayGriditemOverlayNum:`_checklist-overlay__griditem-overlay-num_12ioe_94 text-type-micro`}),tx=class extends B.Component{focus(){this.elementRef&&this.elementRef.focus()}componentDidMount(){this.focus()}componentDidUpdate(e){!e.show&&this.props.show&&this.focus()}render(){let{show:e,children:t,background:n,zIndex:r,isRoot:i}=this.props;return e?(0,K.jsx)(`div`,{style:{zIndex:r},ref:e=>{this.elementRef=e},tabIndex:`-1`,className:ex(`checklist-overlay`,{"checklist-overlay--dark":n===`dark`,app:i}),children:t}):null}};tx.TaskForm=({children:e})=>(0,K.jsx)(`div`,{children:(0,K.jsx)(fv,{children:e})}),tx.Header=({children:e,type:t})=>(0,K.jsx)(`div`,{className:ex(`checklist-overlay__header`,{"checklist-overlay__header--primary":t===`orange`,"checklist-overlay__header--dark":t===`dark`}),children:e}),tx.GridRow=({children:e,spacing:t=`0`,style:n={}})=>{let r=t/2*-1,i={marginLeft:r,marginRight:r,...n};return(0,K.jsx)(`div`,{className:ex(`checklist-overlay__gridrow`),style:i,children:e})},tx.GridItem=({children:e,spacing:t,itemPerRow:n,style:r={}})=>{let i={padding:t/2,maxWidth:`${100/n}%`,...r};return(0,K.jsx)(`div`,{className:ex(`checklist-overlay__griditem`),style:i,children:e})},tx.GridItemOverlay=({children:e,mode:t,left:n,number:r,hasHover:i})=>(0,K.jsxs)(`div`,{"data-testid":`property-images`,className:ex(`checklist-overlay__griditem-overlay`,{"checklist-overlay__griditem-overlay--selected":t===`selected`||t===`num`,"checklist-overlay__griditem-overlay--loading":t===`loading`,"checklist-overlay__griditem-overlay--hover":i,"checklist-overlay__griditem-overlay--left":n}),children:[t===`loading`&&(0,K.jsx)(J,{variant:`circular`,width:40,height:40}),t===`open`&&(0,K.jsx)(`div`,{"data-testid":`property-images-icon`,className:ex(`checklist-overlay__griditem-overlay-icon`),children:(0,K.jsx)(Y.IcCameraWhite,{})}),t===`canselect`&&(0,K.jsx)(`div`,{"data-testid":`property-images-icon`,className:ex(`checklist-overlay__griditem-overlay-icon`),children:(0,K.jsx)(Y.IcSelectPhoto,{})}),t===`selected`&&(0,K.jsx)(`div`,{"data-testid":`property-images-icon`,className:ex(`checklist-overlay__griditem-overlay-icon`),children:(0,K.jsx)(Y.IcSelectedPhoto2,{})}),t===`num`&&(0,K.jsxs)(`div`,{"data-testid":`property-images-icon`,className:ex(`checklist-overlay__griditem-overlay-icon`),children:[(0,K.jsx)(Y.IcSelectedPhotoBlank,{}),(0,K.jsx)(`div`,{className:ex(`checklist-overlay__griditem-overlay-num`),children:r})]}),e]}),tx.Content=({children:e,type:t,style:n})=>(0,K.jsx)(`div`,{className:ex(`checklist-overlay__content`,`checklist-overlay__content--${t}`),style:n,children:e}),tx.ContentWrap=({children:e,style:t})=>(0,K.jsx)(`div`,{className:ex(`checklist-overlay__content-wrap`),style:t,children:e}),tx.ContentInner=({children:e,style:t})=>(0,K.jsx)(`div`,{className:ex(`checklist-overlay__content-inner`),style:t,children:e}),tx.propTypes={show:V.default.bool,background:V.default.string,children:V.default.node};var nx={border:`1px dashed var(--color-primary)`,padding:`var(--space-small)`,borderRadius:`2px`,display:`flex`,background:`var(--color-primary-light)`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`},rx={color:`var(--color-primary)`,marginTop:`4px`},ix={marginTop:`16px`,background:`var(--color-white)`,border:`1px solid var(--color-primary)`,borderRadius:`4px`,color:`var(--color-primary)`,padding:`3px 24px`},ax=({children:e=null,onClick:t})=>(0,K.jsxs)(I,{sx:nx,onClick:t,children:[(0,K.jsx)(Y.IcUpload,{}),(0,K.jsx)(I,{sx:rx,className:`text-type-small`,children:U(`checklist.uploaddrag`)}),(0,K.jsx)(I,{sx:ix,className:`text-type-small`,children:U(`checklist.select_file`)}),e]});ax.propTypes={children:V.default.node,onClick:V.default.func.isRequired};var ox=_i.default.bind({item:`_item_1bund_2`,"item--actionable":`_item--actionable_1bund_13`,itemActionable:`_item--actionable_1bund_13`,"item--active":`_item--active_1bund_16`,itemActive:`_item--active_1bund_16`,"item--nopadding":`_item--nopadding_1bund_19`,itemNopadding:`_item--nopadding_1bund_19`,"item--grey":`_item--grey_1bund_22`,itemGrey:`_item--grey_1bund_22`,item__inner:`_item__inner_1bund_24`,itemInner:`_item__inner_1bund_24`,"item__inner-inner":`_item__inner-inner_1bund_37`,itemInnerInner:`_item__inner-inner_1bund_37`,"item__inner-spacer":`_item__inner-spacer_1bund_46`,itemInnerSpacer:`_item__inner-spacer_1bund_46`,item__image:`_item__image_1bund_52`,itemImage:`_item__image_1bund_52`,item__icon:`_item__icon_1bund_57`,itemIcon:`_item__icon_1bund_57`}),sx=({image:e,active:t,needsVerify:n,title:r,steps:i,noPadding:a,children:o,color:s,stepsSize:c,onClick:l,identifier:u,isRawImage:d,style:f,...p})=>{let m=(e,t)=>
262({backgroundImage:`url(${t?e:iu(e,nu.SMALL_LARGE)})`}),h={};u&&(h[`data-ident`]=u),f&&(h.style=f);let g=l||function(){};return(0,K.jsx)(`div`,{...h,"data-testid":p[`data-testid`],onClick:g,className:ox(`item`,{"item--actionable":!!l,"item--active":t,"item--nopadding":a,"item--grey":s===`grey`}),children:(0,K.jsxs)(`div`,{className:ox(`item__inner`),children:[(0,K.jsx)(`div`,{className:ox(`item__inner-spacer`)}),(0,K.jsxs)(`div`,{className:ox(`item__inner-inner`),children:[e&&(0,K.jsx)(`div`,{className:ox(`item__image`),style:m(e,d),children:n&&(0,K.jsx)(`div`,{className:ox(`item__icon`),children:(0,K.jsx)(Y.IcSmVerify2,{})})}),!e&&(0,K.jsx)(Sv,{size:c,steps:i,title:r}),o]})]})})};sx.propTypes={image:V.default.string,title:V.default.string,color:V.default.string,identifier:V.default.string,onClick:V.default.func,children:V.default.node,active:V.default.bool,isRawImage:V.default.bool,noPadding:V.default.bool,stepsSize:V.default.string,steps:V.default.arrayOf(V.default.shape({note:V.default.string})),needsVerify:V.default.bool};var cx=_i.default.bind({textarea:`_textarea_8qmpg_1 text-type-small`,description:`_description_8qmpg_22 text-type-small`}),lx=({defaultValue:e=``,autoFocus:t=!1,disabled:n=!1,dataKey:r=``,actions:i={},placeholder:a=``,...o})=>(0,K.jsx)(`div`,{children:(0,K.jsx)(qe,{defaultValue:e,autoFocus:t,disabled:n,"data-testid":r,...i,placeholder:a,className:cx(`textarea`),...o})});lx.propTypes={defaultValue:V.default.string,autoFocus:V.default.bool,disabled:V.default.bool,dataKey:V.default.string,actions:V.default.shape({}),placeholder:V.default.string};var ux=_i.default.bind({"checklist-image-list":`_checklist-image-list_3kk08_1`,checklistImageList:`_checklist-image-list_3kk08_1`,"checklist-image-list__inner":`_checklist-image-list__inner_3kk08_38`,checklistImageListInner:`_checklist-image-list__inner_3kk08_38`,"checklist-image-list__box":`_checklist-image-list__box_3kk08_42`,checklistImageListBox:`_checklist-image-list__box_3kk08_42`,"checklist-image-list__box--image":`_checklist-image-list__box--image_3kk08_51`,checklistImageListBoxImage:`_checklist-image-list__box--image_3kk08_51`,"checklist-image-list__text":`_checklist-image-list__text_3kk08_57`,checklistImageListText:`_checklist-image-list__text_3kk08_57`,"checklist-image-list__icon":`_checklist-image-list__icon_3kk08_63`,checklistImageListIcon:`_checklist-image-list__icon_3kk08_63`,"checklist-image-list__icon--orange":`_checklist-image-list__icon--orange_3kk08_80`,checklistImageListIconOrange:`_checklist-image-list__icon--orange_3kk08_80`,"checklist-image-list__icon--white":`_checklist-image-list__icon--white_3kk08_84`,checklistImageListIconWhite:`_checklist-image-list__icon--white_3kk08_84`,"checklist-image-list__left":`_checklist-image-list__left_3kk08_91`,checklistImageListLeft:`_checklist-image-list__left_3kk08_91`,"checklist-image-list__right":`_checklist-image-list__right_3kk08_97`,checklistImageListRight:`_checklist-image-list__right_3kk08_97`,"checklist-image-list__right--flex":`_checklist-image-list__right--flex_3kk08_101`,checklistImageListRightFlex:`_checklist-image-list__right--flex_3kk08_101`,"checklist-image-list__icon-small--trash":`_checklist-image-list__icon-small--trash_3kk08_105`,checklistImageListIconSmallTrash:`_checklist-image-list__icon-small--trash_3kk08_105`,"checklist-image-list__icon-small--cam":`_checklist-image-list__icon-small--cam_3kk08_112`,checklistImageListIconSmallCam:`_checklist-image-list__icon-small--cam_3kk08_112`,"checklist-image-list__icon-small":`_checklist-image-list__icon-small_3kk08_105`,checklistImageListIconSmall:`_checklist-image-list__icon-small_3kk08_105`,"checklist-image-list__icon-remove":`_checklist-image-list__icon-remove_3kk08_123`,checklistImageListIconRemove:`_checklist-image-list__icon-remove_3kk08_123`,"checklist-image-list__title":`_checklist-image-list__title_3kk08_131 text-type-small`,checklistImageListTitle:`_checklist-image-list__title_3kk08_131 text-type-small`,"checklist-image-list--active":`_checklist-image-list--active_3kk08_139`,checklistImageListActive:`_checklist-image-list--active_3kk08_139`,"checklist-image-list--dragging":`_checklist-image-list--dragging_3kk08_153`,checklistImageListDragging:`_checklist-image-list--dragging_3kk08_153`,"checklist-image-list--hover":`_checklist-image-list--hover_3kk08_157`,checklistImageListHover:`_checklist-image-list--hover_3kk08_157`,"checklist-image-list--open":`_checklist-image-list--open_3kk08_171`,checklistImageListOpen:`_checklist-image-list--open_3kk08_171`,"checklist-image-list--red":`_checklist-image-list--red_3kk08_184`,checklistImageListRed:`_checklist-image-list--red_3kk08_184`});function dx(e){return{backgroundImage:`url(${iu(e,nu.SMALL)})`}}function fx({iconImage:e,title:t,active:n=!1,isEmpty:r=!1,defaultValue:i=``,iconBg:a,onDelete:o,canHaveImg:s=!1,isEnter:c=!1,open:l=!1,onChange:u,pictureUrl:d,onRemoveImage:f,isDragging:p=!1,isRed:m=!1,dragDisable:h=!1,isReadOnly:g=!1,iconColor:_,stepId:v,realIndex:y,directUpload:b=!1,setUploadState:x,openErrorModal:S,checklistDirectTaskImageUpload:C,connectDragSource:w}){let[,T]=(0,B.useState)(h),E=(0,B.useCallback)(e=>{T(!1),setTimeout(()=>
262{e.target.focus()},0)},[]),D=(0,B.useCallback)(e=>{e.target.value=``},[]),ee=(0,B.useCallback)((e,t,n)=>{let[r]=n.target.files,{size:i}=r,{minSize:a,maxSize:o}=ru;if(i<a||i>o){S();return}C(e,t,r)},[S,C]),te=(0,B.useCallback)(()=>{b||x({isOpen:!0,do:{mode:`replacetaskimg`,stepId:`${v}`,taskIndex:y}})},[b,x,v,y]),ne=(0,B.useCallback)(()=>{let e=`upload-new-photo-${y}-${v}`;return(0,K.jsxs)(K.Fragment,{children:[b&&(0,K.jsx)(`input`,{accept:`image/*`,onChange:e=>ee(v,y,e),onClick:D,className:ux(`checklist__upload_input`),id:e,type:`file`,style:{display:`none`}}),(0,K.jsx)(`label`,{htmlFor:e,"data-testid":`newTaskImage`,onClick:b?Fu.default:te,style:{cursor:`inherit`},children:(0,K.jsx)(Y.IcCamera2,{})})]})},[v,y,b,ee,D,te]),re=n||l,O=(0,B.useMemo)(()=>{let t=Eu(e).icon;return e===`other`?()=>(0,K.jsx)(Y.IcItemCheck,{color:_}):Y[t]||Y.IcItemCheck},[e,_]),ie=(0,B.useCallback)(e=>{h?setTimeout(()=>{T(!0),u(e)},0):setTimeout(()=>{u(e)},100)},[h,u]),ae=(0,B.useCallback)(e=>t=>{if(t.key===`Enter`&&!t.shiftKey){if(t.preventDefault(),e===`selectinputbox`){let e=cu(t.target,`[data-testid="checklistbox"]`);if(e){let t=e.querySelector(`[data-testid="checklist_enternewfield"]`);t&&t.focus()}}e===`blur`&&t.target.blur()}},[]),oe=s||c?`blur`:`selectinputbox`,se=(0,B.useMemo)(()=>{let e=c?{onChange:u,"data-testid":`checklist_enternewfield`}:{onBlur:ie};return e.onKeyPress=ae(oe),e},[c,u,ie,ae,oe]);return(0,K.jsx)(`div`,{"data-testid":`checklist_task_line_outer`,className:ux(`checklist-image-list`,{"checklist-image-list--active":n,"checklist-image-list--open":l,"checklist-image-list--red":m,"checklist-image-list--dragging":p,"checklist-image-list--hover":!n&&!l}),children:!r&&(0,K.jsxs)(`div`,{className:ux(`checklist-image-list__inner`),children:[!c&&(0,K.jsxs)(`div`,{className:ux(`checklist-image-list__left`),children:[(0,K.jsx)(`div`,{className:ux(`checklist-image-list__icon`,{"checklist-image-list__icon--white":a===`white`,"checklist-image-list__icon--orange":a===`orange`}),children:w?w((0,K.jsx)(`div`,{style:{cursor:`move`},children:(0,K.jsx)(O,{})})):(0,K.jsx)(O,{})}),t&&(0,K.jsx)(`div`,{className:ux(`checklist-image-list__title`),children:t})]}),c&&(0,K.jsx)(`div`,{className:ux(`checklist-image-list__left`),children:(0,K.jsx)(`div`,{className:ux(`checklist-image-list__icon`),children:(0,K.jsx)(Y.IcTextPlus,{})})}),(0,K.jsx)(`div`,{onClick:h?E:Fu.default,className:ux(`checklist-image-list__text`),children:(0,K.jsx)(lx,{defaultValue:i,autoFocus:n,disabled:g,dataKey:`checklist_text_area`,actions:se,placeholder:U(`checklist.enter_detail`)})}),!re&&!c&&(0,K.jsxs)(`div`,{"data-testid":`checklist_task_delete_btn`,className:ux(`checklist-image-list__right`,`checklist-image-list__right--flex`),children:[s&&!g&&(0,K.jsx)(`div`,{className:ux(`checklist-image-list__icon-small`),children:ne()}),!g&&(0,K.jsx)(`div`,{onMouseDown:o,className:ux(`checklist-image-list__icon-small`),"data-testid":`checklist-delete-task-icon`,children:(0,K.jsx)(Y.IcTrash,{})})]}),re&&s&&(0,K.jsxs)(`div`,{className:ux(`checklist-image-list__right`,`checklist-image-list__right--flex`),children:[!d&&(0,K.jsx)(`div`,{className:ux(`checklist-image-list__box`),children:!g&&(0,K.jsx)(`div`,{className:ux(`checklist-image-list__icon-small`,`checklist-image-list__icon-small--cam`),children:ne()})}),d&&(0,K.jsx)(`div`,{style:dx(d),className:ux(`checklist-image-list__box`,`checklist-image-list__box--image`),children:!g&&(0,K.jsx)(`div`,{className:ux(`checklist-image-list__icon-remove`),children:(0,K.jsx)(Y.ReportproblemRemoveImage,{onClick:f})})}),!g&&(0,K.jsx)(`div`,{onMouseDown:o,className:ux(`checklist-image-list__icon-small`,`checklist-image-list__icon-small--trash`),children:(0,K.jsx)(Y.IcTrash,{})})]})]})})}fx.propTypes={iconImage:V.default.string,defaultValue:V.default.string,pictureUrl:V.default.string,onDelete:V.default.func,onRemoveImage:V.default.func,onChange:V.default.func,dragDisable:V.default.bool,iconBg:V.default.string,title:V.default.string,canHaveImg:V.default.bool,isEmpty:V.default.bool,isRed:V.default.bool,isDragging:V.default.bool,isEnter:V.default.bool,active:V.default.bool,open:V.default.bool,checklistDirectTaskImageUpload:V.default.func,directUpload:V.default.bool,stepId:V.default.string,realIndex:V.default.number,setUploadState:V.default.func,openErrorModal:V.default.func,isReadOnly:V.default.bool,iconColor:V.default.string,connectDragSource:V.default.func};var px=_i.default.bind({"checklist-tile-prop":`_checklist-tile-prop_1oluc_2`,checklistTileProp:`_checklist-tile-prop_1oluc_2`,"checklist-tile-prop__icon":`_checklist-tile-prop__icon_1oluc_6`,checklistTilePropIcon:`_checklist-tile-prop__icon_1oluc_6`,"checklist-tile-prop__canvas":`_checklist-tile-prop__canvas_1oluc_18`,checklistTilePropCanvas:`_checklist-tile-prop__canvas_1oluc_18`,"checklist-tile-prop__canvas--dashed":`_checklist-tile-prop__canvas--dashed_1oluc_38`,checklistTilePropCanvasDashed:`_checklist-tile-prop__canvas--dashed_1oluc_38`,"checklist-tile-prop__plus-icon":`_checklist-tile-prop__plus-icon_1oluc_52`,checklistTilePropPlusIcon:`_checklist-tile-prop__plus-icon_1oluc_52`,"checklist-tile-prop__fillflex":`_checklist-tile-prop__fillflex_1oluc_61`,checklistTilePropFillflex:`_checklist-tile-prop__fillflex_1oluc_61`,"checklist-tile-prop__canvas--grey":`_checklist-tile-prop__canvas--grey_1oluc_66`,checklistTilePropCanvasGrey:`_checklist-tile-prop__canvas--grey_1oluc_66`,"checklist-tile-prop__canvas--hover":`_checklist-tile-prop__canvas--hover_1oluc_75`,checklistTilePropCanvasHover:`_checklist-tile-prop__canvas--hover_1oluc_75`,"checklist-tile-prop__canvas-layer":`_checklist-tile-prop__canvas-layer_1oluc_84`,checklistTilePropCanvasLayer:`_checklist-tile-prop__canvas-layer_1oluc_84`,"checklist-tile-prop__image":`_checklist-tile-prop__image_1oluc_89`,checklistTilePropImage:`_checklist-tile-prop__image_1oluc_89`,"checklist-tile-prop__image__hovered":`_checklist-tile-prop__image__hovered_1oluc_94`,checklistTilePropImageHovered:`_checklist-tile-prop__image__hovered_1oluc_94`,"checklist-tile-prop__canvas-layer-icon":`_checklist-tile-prop__canvas-layer-icon_1oluc_99`,checklistTilePropCanvasLayerIcon:`_checklist-tile-prop__canvas-layer-icon_1oluc_99`,"checklist-tile-prop__canvas--greytouch":`_checklist-tile-prop__canvas--greytouch_1oluc_106`,checklistTilePropCanvasGreytouch:`_checklist-tile-prop__canvas--greytouch_1oluc_106`,"checklist-tile-prop__badge":`_checklist-tile-prop__badge_1oluc_181`,checklistTilePropBadge:`_checklist-tile-prop__badge_1oluc_181`,"checklist-tile-prop__info-bar":`_checklist-tile-prop__info-bar_1oluc_201`,checklistTilePropInfoBar:`_checklist-tile-prop__info-bar_1oluc_201`,"checklist-tile-prop__info-dot":`_checklist-tile-prop__info-dot_1oluc_219`,checklistTilePropInfoDot:`_checklist-tile-prop__info-dot_1oluc_219`,"checklist-tile-prop__title":`_checklist-tile-prop__title_1oluc_233`,checklistTilePropTitle:`_checklist-tile-prop__title_1oluc_233`,"checklist-tile-prop__subtitle":`_checklist-tile-prop__subtitle_1oluc_243`,checklistTilePropSubtitle:`_checklist-tile-prop__subtitle_1oluc_243`,"checklist-tile-prop__meta":`_checklist-tile-prop__meta_1oluc_251`,checklistTilePropMeta:`_checklist-tile-prop__meta_1oluc_251`}),mx=e=>{if(!e)return null;
262let t=new Date-new Date(e),n=Math.floor(t/(1e3*60*60*24));return n===0?`Today`:n===1?`Yesterday`:n<7?`${n} days ago`:n<30?`${Math.floor(n/7)} weeks ago`:n<365?`${Math.floor(n/30)} months ago`:`${Math.floor(n/365)} years ago`},hx=class extends B.PureComponent{constructor(...e){super(...e),k(this,`handleClick`,(e,t)=>{let n=e.target.getAttribute(`data-ele`)===`outer`,{onClick:r}=this.props;R.default.info(`ChecklistTileProperties handleClick`,e,{force:t,isNotMorePopoverClick:n}),r&&(t||n)&&r(e)})}renderPopoverOverlay(e){let{slideCount:t,isDefaultChecklist:n,taskCount:r,onSetDefault:i,onDuplicate:a,onDuplicateOther:o,onDuplicateLibrary:s,onDelete:c}=this.props;return(0,K.jsx)(Ad,{smallPadding:!0,mediumPrimaryText:!0,closePopover:e,items:[...n||Number(t)+Number(r)>0?[{"data-testid":`checklist_settings_button`,name:U(`checklist.set_default_settings`),onClick:i,icon:(0,K.jsx)(Y.IcDefaultSettings,{})}]:[],{"data-testid":`checklist_duplicate_button`,name:U(`checklist.duplicate`),onClick:a,icon:(0,K.jsx)(Y.IcDuplicate2,{})},{"data-testid":`checklist_duplicate_into_other_button`,name:U(`checklist.duplicate_into_other`),onClick:o,icon:(0,K.jsx)(Y.IcDuplicate2,{})},{"data-testid":`checklist_duplicate_into_library_button`,name:U(`checklist.duplicate_into_library`),onClick:s,icon:(0,K.jsx)(Y.IcDuplicate2,{})},{"data-testid":`checklist_delete_button`,name:U(`checklist.delete`),onClick:c,icon:(0,K.jsx)(Y.IcTrash2,{})}]})}render(){let{title:e,subTitle:t,type:n,id:r,isLoading:i,isHovered:a,isTouch:o,isShowOnly:s,isDefaultChecklist:c,createdAt:l,slideCount:u,taskCount:d}=this.props,f=mx(l);return(0,K.jsxs)(`div`,{className:px(`checklist-tile-prop`),"data-testid-id":r,"data-testid":`property-checklist-container`,children:[(0,K.jsxs)(`div`,{id:`item-tile-id-${r}`,className:px(`checklist-tile-prop__canvas`,{"checklist-tile-prop__canvas--dashed":n===`dashed`,"checklist-tile-prop__canvas--grey":n===`image`,"checklist-tile-prop__canvas--greytouch":o,"checklist-tile-prop__canvas--hover":a}),children:[c&&n===`image`&&(0,K.jsx)(`div`,{className:px(`checklist-tile-prop__badge`),children:`Default`}),(0,K.jsxs)(`div`,{"data-ele":`outer`,onClick:e=>this.handleClick(e,!0),children:[i&&(0,K.jsx)(`div`,{"data-ele":`outer`,className:px(`checklist-tile-prop__fillflex`),children:(0,K.jsxs)(`div`,{style:{width:`100%`,padding:`8px`},children:[(0,K.jsx)(J,{height:40}),(0,K.jsx)(`div`,{style:{marginTop:`8px`},children:(0,K.jsx)(J,{height:20})})]})}),n===`dashed`&&!i&&(0,K.jsx)(`div`,{"data-ele":`outer`,className:px(`checklist-tile-prop__fillflex`),children:(0,K.jsx)(`div`,{className:px(`checklist-tile-prop__plus-icon`),children:(0,K.jsx)(Y.IcPlusOrange,{onClick:e=>this.handleClick(e,!0)})})}),n===`image`&&!i&&(0,K.jsxs)(`div`,{className:px(`checklist-tile-prop__fillflex`),children:[(0,K.jsx)(`div`,{className:px(`checklist-tile-prop__image`),children:(0,K.jsx)(Y.IcBigJobs,{width:`46px`,height:`46px`,byWidth:!0})}),(0,K.jsx)(`div`,{className:px(`checklist-tile-prop__image__hovered`),children:(0,K.jsx)(Y.IcBigJobsOrange,{width:`50px`,height:`50px`,byWidth:!0})})]}),(0,K.jsx)(`div`,{"data-ele":`outer`,className:px(`checklist-tile-prop__canvas-layer`)})]}),n===`image`&&!i&&(0,K.jsxs)(`div`,{className:px(`checklist-tile-prop__info-bar`),children:[(0,K.jsx)(Y.IcBigJobs,{width:`14px`,height:`14px`,byWidth:!0}),(0,K.jsxs)(`span`,{children:[u,` Slides`]}),(0,K.jsx)(`span`,{className:px(`checklist-tile-prop__info-dot`),children:`â¢`}),(0,K.jsxs)(`span`,{children:[d,` Tasks`]})]}),!s&&(0,K.jsx)(Lg,{popoverKey:r,popoverContent:e=>this.renderPopoverOverlay(e.closePopup),width:300,hasArrow:!0,arrowPosition:{vertical:`bottom`},children:(0,K.jsx)(`div`,{className:px(`checklist-tile-prop__canvas-layer-icon`),children:(0,K.jsx)(`div`,{"data-testid":`button_checklist_open_popover`,className:px(`checklist-tile-prop__icon`),children:(0,K.jsx)(Y.IcMorePrimary,{width:`1.5em`,byWidth:!0})})})})]}),(0,K.jsx)(`div`,{className:px(`checklist-tile-prop__title`),children:(0,K.jsx)(Xg,{children:e})}),n===`image`&&f&&(0,K.jsx)(`div`,{className:px(`checklist-tile-prop__meta`),children:(0,K.jsx)(Zg,{type:`grey`,children:f})}),n===`dashed`&&t&&(0,K.jsx)(`div`,{className:px(`checklist-tile-prop__subtitle`),children:(0,K.jsx)(Zg,{type:`grey`,children:t})})]})}};hx.propTypes={title:V.default.string,type:V.default.oneOf([`dashed`,`image`]),id:V.default.string,onClick:V.default.func.isRequired,onDelete:V.default.func,onSetDefault:V.default.func,onDuplicate:V.default.func,onDuplicateOther:V.default.func,onDuplicateLibrary:V.default.func,slideCount:V.default.number,taskCount:V.default.number,isDefaultChecklist:V.default.bool,isLoading:V.default.bool,isShowOnly:V.default.bool,isHovered:V.default.bool,isTouch:V.default.bool,subTitle:V.default.string,createdAt:V.default.oneOfType([
262V.default.string,V.default.instanceOf(Date)])},hx.defaultProps={slideCount:0,taskCount:0,isDefaultChecklist:!1,createdAt:null};var gx=e(ke()),_x=_i.default.bind({tags:`_tags_sm40y_2`,"tags--hasmore":`_tags--hasmore_sm40y_5`,tagsHasmore:`_tags--hasmore_sm40y_5`,tag:`_tag_sm40y_2 text-type-small`,red:`_red_sm40y_18`,"red--right":`_red--right_sm40y_25`,redRight:`_red--right_sm40y_25`,tag__inner:`_tag__inner_sm40y_31`,tagInner:`_tag__inner_sm40y_31`,tag__icon:`_tag__icon_sm40y_35`,tagIcon:`_tag__icon_sm40y_35`,"tag__align-space":`_tag__align-space_sm40y_44`,tagAlignSpace:`_tag__align-space_sm40y_44`,"tag--primary":`_tag--primary_sm40y_48`,tagPrimary:`_tag--primary_sm40y_48`,"tag--blue":`_tag--blue_sm40y_52`,tagBlue:`_tag--blue_sm40y_52`,"tag-simple":`_tag-simple_sm40y_58 text-l7`,tagSimple:`_tag-simple_sm40y_58 text-l7`,"tag-simple--blue":`_tag-simple--blue_sm40y_63`,tagSimpleBlue:`_tag-simple--blue_sm40y_63`}),vx=(e,t,n)=>(0,K.jsx)(`div`,{className:_x(`tag`,{"tag--primary":!t.isCommunity,"tag--blue":t.isCommunity}),children:(0,K.jsxs)(`div`,{className:_x(`tag__inner`),children:[(0,K.jsx)(`div`,{"data-testid":`cleaner-name`,children:`${t.cleaner.firstName} ${t.cleaner.lastName}`}),(0,K.jsx)(`div`,{onClick:(e=>t=>{t.stopPropagation(),e(t)})(e.bind(null,t.contactId)),className:_x(`tag__icon`),children:t.isCommunity?(0,K.jsx)(Y.IcSmCloseBlue,{}):(0,K.jsx)(Y.IcSmCloseOrange,{})})]})},n),yx=(e,t,n)=>{let r=n===e-1;return(0,K.jsxs)(`div`,{className:_x(`tag-simple`,{"tag-simple--primary":!t.isCommunity,"tag-simple--blue":t.isCommunity}),children:[(0,K.jsx)(`div`,{className:_x(`tag__inner`),children:(0,K.jsxs)(`div`,{className:_x(`tag__align-space`),children:[`${t.cleaner.firstName} ${t.cleaner.lastName}`,!r&&`,`]})}),t.proMarketProperty&&!!ps(t?.rawCleaner)&&(0,K.jsx)(ef,{withTooltip:!0})]},n)},bx=({children:e,wrapperComponent:t,data:n})=>t?(0,K.jsx)(t,{leftOverCleaners:n,children:e}):e,xx=({items:e,onRemove:t,limit:n,type:r,wrapperComponent:i,children:a})=>{let o=n?(0,gx.default)(e).slice(0,n):(0,gx.default)(e),s=(0,gx.default)(e).slice(n),c=Object.keys(e||{}).length,l=n&&c>n,u=r===`simple`,d=u?yx.bind(null,o.length):vx.bind(null,t);return(0,K.jsxs)(`div`,{className:_x(`tags`,{"tags--hasmore":l&&u}),children:[!a&&(0,H.default)(o,d),a&&a,l&&(0,K.jsx)(`span`,{className:_x(`red`,{"red--right":u}),children:(0,K.jsxs)(bx,{data:s,wrapperComponent:i,children:[`+`,c-n]})})]})};xx.propTypes={onRemove:V.default.func,limit:V.default.number,type:V.default.oneOf([`simple`])};function Sx(e){let[t,n]=(0,B.useState)(!1),r=e=>e.charAt(0).toUpperCase()+e.slice(1),{comment:i,cssStyle:a,timeZone:o}=e,s=(0,z.default)(i.time).tz(o).format(`YYYY-MM-DD HH:mm:ss`),c=i.pictureIdentifier?iu(i.pictureIdentifier,nu.ORIGINAL):null,l=i.pictureIdentifier?iu(i.pictureIdentifier,``,`jpg`,s):null,u=a===`senderCard`;return(0,K.jsxs)(I,{sx:{alignSelf:u?`flex-end`:`flex-start`,width:`90%`,backgroundColor:u?`var(--color-comment-user-bg)`:`var(--color-comment-other-bg)`,mt:`10px`,borderRadius:u?`10px 10px 0 10px`:`10px 10px 10px 0`,boxShadow:`none`},children:[(0,K.jsxs)(I,{sx:{p:`10px 10px 24px`},children:[c&&(0,K.jsx)(I,{component:`img`,src:c,alt:``,sx:{cursor:`pointer`,maxWidth:`100%`,mb:`10px`},onClick:()=>n(!0)}),(0,K.jsx)(I,{sx:e=>({fontSize:e.typography.pxToRem(15),wordWrap:`break-word`,color:`var(--color-text)`}),children:i.comment}),(0,K.jsxs)(I,{sx:e=>({fontSize:e.typography.pxToRem(10),mt:`5px`,width:`38%`,float:`left`,color:`var(--color-text-secondary)`}),children:[r(i.senderFirstname),` `,r(i.senderLastname)]}),(0,K.jsx)(I,{sx:e=>({fontSize:e.typography.pxToRem(10),mt:`5px`,float:`right`,color:`var(--color-text-secondary)`}),children:(0,z.default)(i.time).tz(o).format(`ddd, MMM Do, h:mm a`)})]}),l&&(0,K.jsx)(de,{open:t,close:()=>n(!1),slides:[{src:l,download:{filename:i.pictureIdentifier||`comment_image`}}],plugins:[ut],carousel:{finite:!0},controller:{closeOnBackdropClick:!0},render:{buttonPrev:()=>null,buttonNext:()=>null}})]})}Sx.propTypes={comment:V.default.shape({}).isRequired,cssStyle:V.default.string.isRequired,timeZone:V.default.string.isRequired};var Cx=B.memo(({name:e,about:t,pic:n,adminEmails:r,onEdit:i})=>{let a=(0,B.useMemo)(()=>!r||r.length===0?`-`:(0,H.default)((0,bo.default)(r,e=>!e.active),e=>(0,K.jsx)(mj,{modifier:[`txt--l7`,e.active?`color--black`:`color--grey`],children:e.email},e.email)),[r]);
262return(0,K.jsxs)(I,{sx:{position:`relative`,padding:`24px`,height:`auto`,background:`var(--color-white)`,flexDirection:`column`},children:[(0,K.jsx)(I,{sx:{position:`absolute`,right:10,top:10},children:(0,K.jsx)(Lg,{width:150,popoverContent:e=>(0,K.jsx)(Ad,{closePopover:e.closePopup,items:[{key:`Company_edit`,"data-testid":`Company_edit`,name:U(`permissions.edit`),onClick:i}]}),hasArrow:!0,children:(0,K.jsx)(Y.IcMorePrimary,{byWidth:!0,width:`24px`})})}),(0,K.jsx)(Sg,{type:[`image--company`],image:iu(n,nu.PROFILE_PICTURE)}),(0,K.jsx)(wm,{type:`vertical`,size:`12px`}),(0,K.jsx)(mj,{modifier:[`txt--l3m`,`color--black`,`helper--wordbreak`],children:e}),(0,K.jsx)(wm,{type:`vertical`,size:`16px`}),(0,K.jsx)(Dm,{type:[`relative`,`grey`]}),(0,K.jsx)(wm,{type:`vertical`,size:`9px`}),(0,K.jsxs)(I,{sx:{textAlign:`left`,width:`100%`},children:[(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--grey`],children:U(`permissions.company_box_l1`)}),(0,K.jsx)(wm,{type:`vertical`,size:`4px`}),a,(0,K.jsx)(wm,{type:`vertical`,size:`16px`}),(0,K.jsx)(Dm,{type:[`relative`,`grey`]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(wm,{type:`vertical`,size:`9px`}),(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--grey`],children:U(`permissions.company_box_l2`)}),(0,K.jsx)(wm,{type:`vertical`,size:`4px`}),(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--black`],children:t||`-`})]})]})]})});Cx.propTypes={name:V.default.string,about:V.default.string,pic:V.default.string,adminEmails:V.default.arrayOf(V.default.shape({email:V.default.string,active:V.default.bool})),onEdit:V.default.func};var wx=e(Pee()),Tx=e=>({backgroundImage:`url(${iu(e,nu.PROFILE_PICTURE)})`});function Ex(e,t,n){if(t)return r=>{let i=(0,eb.default)(e,n);t(i===-1?0:i,r)}}var Dx=({images:e,onClick:t,itemsPerRow:n=6,height:r=80,rowsPerSlide:i=3})=>{let a=`${100/n}%`,o=(0,wx.default)(e,n*i),[s,c]=pn({loop:!1,align:`start`}),l=(0,B.useCallback)(()=>{c&&c.scrollPrev()},[c]),u=(0,B.useCallback)(()=>{c&&c.scrollNext()},[c]),[d,f]=B.useState(!1),[p,m]=B.useState(!1),h=(0,B.useCallback)(()=>{c&&(f(c.canScrollPrev()),m(c.canScrollNext()))},[c]);B.useEffect(()=>{if(c)return h(),c.on(`select`,h),c.on(`reInit`,h),()=>{c.off(`select`,h),c.off(`reInit`,h)}},[c,h]);let g=(i,o)=>(0,K.jsx)(I,{sx:{flex:`0 0 100%`,minWidth:0},children:(0,H.default)((0,wx.default)(i,n),(n,i)=>(0,K.jsx)(I,{sx:{display:`flex`,marginRight:`-8px`,marginBottom:`8px`},children:(0,H.default)(n,(n,i)=>(0,K.jsx)(I,{"data-testid":`${n}${i}`,onClick:Ex(e,t,n),sx:{maxWidth:a,width:a,height:r,paddingRight:`8px`,cursor:`pointer`},children:(0,K.jsx)(I,{sx:{height:`100%`,width:`100%`,backgroundSize:`cover`,backgroundColor:`color-profile-background`,borderRadius:`4px`},style:Tx(n)})},`${n}${i}`))},i))},o);return(0,K.jsxs)(I,{sx:{position:`relative`,width:`100%`},children:[o.length>1&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(br,{onClick:l,disabled:!d,sx:{position:`absolute`,left:-40,top:`50%`,transform:`translateY(-50%)`,zIndex:1,backgroundColor:`rgba(0,0,0,0.3)`,color:`white`,"&:hover":{backgroundColor:`rgba(0,0,0,0.5)`},"&.Mui-disabled":{opacity:.3,color:`white`}},size:`small`,children:(0,K.jsx)(ree,{fontSize:`small`})}),(0,K.jsx)(br,{onClick:u,disabled:!p,sx:{position:`absolute`,right:-40,top:`50%`,transform:`translateY(-50%)`,zIndex:1,backgroundColor:`rgba(0,0,0,0.3)`,color:`white`,"&:hover":{backgroundColor:`rgba(0,0,0,0.5)`},"&.Mui-disabled":{opacity:.3,color:`white`}},size:`small`,children:(0,K.jsx)(tee,{fontSize:`small`})})]}),(0,K.jsx)(I,{ref:s,sx:{overflow:`hidden`,width:`100%`},children:(0,K.jsx)(I,{sx:{display:`flex`},children:o.map((e,t)=>g(e,t))})})]})};Dx.propTypes={images:V.default.arrayOf(V.default.string).isRequired,onClick:V.default.func.isRequired,itemsPerRow:V.default.number,height:V.default.number,rowsPerSlide:V.default.number};var Ox=_i.default.bind({"detailed-view":`_detailed-view_d3pv8_2`,detailedView:`_detailed-view_d3pv8_2`,floating:`_floating_d3pv8_13`,visible:`_visible_d3pv8_16`,"opened-views":`_opened-views_d3pv8_29`,openedViews:`_opened-views_d3pv8_29`,"core-view":`_core-view_d3pv8_33`,coreView:`_core-view_d3pv8_33`,extended:`_extended_d3pv8_36`,"no-transitions":`_no-transitions_d3pv8_45`,noTransitions:`_no-transitions_d3pv8_45`,view:`_view_d3pv8_58`,current:`_current_d3pv8_70`,"with-notifications":`_with-notifications_d3pv8_76`,withNotifications:`_with-notifications_d3pv8_76`,header:`_header_d3pv8_96`,"title-section":`_title-section_d3pv8_112`,titleSection:`_title-section_d3pv8_112`,title:`_title_d3pv8_112`,"title-text":`_title-text_d3pv8_126`,titleText:`_title-text_d3pv8_126`,controls:`_controls_d3pv8_137`,"control-btn":`_control-btn_d3pv8_144`,controlBtn:`_control-btn_d3pv8_144`,active:`_active_d3pv8_167`,"control-btn-close":`_
262control-btn-close_d3pv8_199`,controlBtnClose:`_control-btn-close_d3pv8_199`,tabs:`_tabs_d3pv8_208`,tab:`_tab_d3pv8_208`,body:`_body_d3pv8_255`,"component-ct":`_component-ct_d3pv8_261`,componentCt:`_component-ct_d3pv8_261`}),kx=class extends B.Component{constructor(e){super(e),k(this,`refreshCurrentElement`,()=>{let{currentElement:e}=this.state;e?.id&&typeof e.sharedDataResolver==`function`&&this.fetchSharedCurrentElementData(e)}),k(this,`togglePopUpStatus`,()=>{this.setState(e=>({isPopUp:!e.isPopUp})),this.resetTranslate()}),k(this,`toggleExpansionStatus`,()=>this.setState(e=>({isExtended:!e.isExtended}))),k(this,`hideCurrentElement`,()=>{let{currentElement:e,openedViews:t}=this.state,n=t.findIndex(t=>t.id===e.id),r=this.getDefaultCurrentElementObject();if(t[n-1])r=t[n-1];else if(t[n+1])r=t[n+1];else{this.resetTranslate(),this.setState({visible:!1,isExtended:!1,isPopUp:!1});let{onClose:e}=this.props;e&&e()}let i=[...t];i.splice(n,1),this.setState({openedViews:i}),this.openElement(r,!0)});let{tabs:t}=this.props;this.dragInfo={active:!1,currentX:null,currentY:null,initialX:null,initialY:null,xOffset:0,yOffset:0},this.rafId=null,this.boundMouseMove=this.handleDocumentMouseMove.bind(this),this.boundMouseUp=this.handleDocumentMouseUp.bind(this),this.boundTouchMove=this.handleDocumentTouchMove.bind(this),this.boundTouchEnd=this.handleDocumentMouseUp.bind(this),this.state={visible:!1,isPopUp:!1,isExtended:!1,curTab:t.length?t[0].id:null,openedViews:[],lockedTransitions:!1,translate:{x:null,y:null},currentElement:this.getDefaultCurrentElementObject()}}getDefaultCurrentElementObject(){return{id:null,title:``,data:{}}}getViewDisplayButton(e,t,n,r){let i=!1,a=!1;return n?.MANAGER_TYPE===`JOBS`&&r&&(i=n.jobHasNotifications(r,e.id),a=n.jobHasVerificationsPhotosNotifications(r,e.id)),(0,K.jsx)(`div`,{className:Ox(`view`,{current:e.id===t.id,"with-notifications":i}),onClick:()=>this.openElement(e),children:(0,K.jsx)(Ig,{title:e.title,children:(0,K.jsx)(Qd,{type:`large`,text:e.title,picture:e.imageUrl||e?.data?.imageUrl,extractLetters:!0,isNewLayout:!0,invertedColorScheme:i,withShadow:i,showNewPhotoNotification:a})})},e.id)}getTabElement(e,t=`default`,n,r){let{curTab:i}=this.state,a=!1;if(n?.MANAGER_TYPE===`JOBS`&&r)switch(e.id){case`comments`:a=n.jobHasCommentsNotifications(r,t);break;case`feedback`:a=n.jobHasVerificationsPhotosNotifications(r,t);break;default:}return(0,K.jsx)(`div`,{className:Ox(`tab`,{current:i===e.id,"with-notifications":a}),id:e?.name?.replace(/\s/g,`-`),onClick:()=>this.showTab(e),children:e.name},`${e.id}-${t}`)}getTabComponent(e,t=`default`){let{curTab:n,currentElement:r,isExtended:i}=this.state,{notificationsManagerInstance:a,notifications:o,refreshKey:s}=this.props;if(e.component){let c=e.component,l=n===e.id;return(0,K.jsx)(`span`,{className:Ox(`component-ct`,{visible:l}),children:(0,K.jsx)(c,{data:r.data,sharedData:r.sharedData,jobEvents:r.jobEvents,extendedLayout:i,isVisible:l,notificationsManagerInstance:a,notifications:o,refreshKey:s})},`${e.id}-${t}`)}return``}setTranslate(e,t){this.rafId&&cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(()=>{this.setState({lockedTransitions:!0,translate:{x:e,y:t}}),this.rafId=null})}openElement(e,t=!1){let{openedViews:n}=this.state,r=e;if(!t){let e=[...n];if(!e.find(e=>e.id===r.id))e.push(r);else{let t=e.findIndex(e=>e.id===r.id);e[t]=r}this.setState({openedViews:e})}r.sharedDataResolver&&this.fetchSharedCurrentElementData(r),this.setState({currentElement:r},()=>{let{onElementChange:e}=this.props;e&&r.id&&e(r.id)})}async fetchSharedCurrentElementData(e){let t={...e};t.sharedData||(t.sharedData={});let n=e.id,r=await e.sharedDataResolver(e.id),i=new Date,a=new Date;a.setMonth(i.getMonth()-3);let o=[];r?.job?.scheduledStartTime&&new Date(r.job.scheduledStartTime)>=a&&(o=await e.getJobEvents(e.id)),e.fromRoute&&this.setState(e=>{let i=[...e.openedViews],a=i.findIndex(e=>e.id===n);if(a!==-1){let e=`${r?.property?.title}${r?.job?.title?` (${r?.job?.title})`:``}`;i[a].title=e,t.title=e,t.fromRoute=!1}return{openedViews:i}});let{currentElement:s}=this.state;s.id===n&&(t.sharedData=r,t.jobEvents=o,this.setState({currentElement:t}))}showView(e){this.openElement(e),this.setState({visible:!0})}showTab(e){this.setState({curTab:e.id}),ad(e.id,e.name,{component:`DetailedView`})}handleStatusBarMouseDown(e){let{isPopUp:t}=this.state;if(!t)return;let n=e.type===`touchstart`?e.touches[0].clientX:e.clientX,r=e.type===`touchstart`?e.touches[0].clientY:e.clientY;this.dragInfo.initialX=n-this.dragInfo.xOffset,this.dragInfo.initialY=r-this.dragInfo.yOffset,this.dragInfo.active=!0,document.addEventListener(`mousemove`,this.boundMouseMove),document.addEventListener(`mouseup`,this.boundMouseUp),document.addEventListener(`touchmove`,this.boundTouchMove,{passive:!1}),document.addEventListener(`touchend`,this.boundTouchEnd)}handleDocumentMouseUp(){this.dragInfo.active&&(this.dragInfo.initialX=this.dragInfo.currentX,this.dragInfo.initialY=this.dragInfo.currentY,this.dragInfo.active=!1,this.removeDragListeners(),this.resetTransitionsLock())}handleDocumentMouseMove(e){this.dragInfo.active&&(e.preventDefault(),this.processDragMove(e.clientX,e.clientY))}handleDocumentTouchMove(e){this.dragInfo.active&&(e.preventDefault(),this.processDragMove(e.touches[0].clientX,e.touches[0].clientY))}processDragMove(e,t){let n=e-this.dragInfo.initialX,r=t-this.dragInfo.initialY;n=Math.max(-(window.innerWidth-100),Math.min(n,window.innerWidth-100)),r
262=Math.max(-10,Math.min(r,window.innerHeight-100)),this.dragInfo.currentX=n,this.dragInfo.currentY=r,this.dragInfo.xOffset=n,this.dragInfo.yOffset=r,this.setTranslate(n,r)}removeDragListeners(){document.removeEventListener(`mousemove`,this.boundMouseMove),document.removeEventListener(`mouseup`,this.boundMouseUp),document.removeEventListener(`touchmove`,this.boundTouchMove),document.removeEventListener(`touchend`,this.boundTouchEnd)}resetTranslate(){this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.removeDragListeners(),this.resetTransitionsLock(),this.setState({translate:{x:null,y:null}}),this.dragInfo.currentX=null,this.dragInfo.currentY=null,this.dragInfo.initialX=null,this.dragInfo.initialY=null,this.dragInfo.xOffset=0,this.dragInfo.yOffset=0}resetTransitionsLock(){this.setState({lockedTransitions:!1})}componentWillUnmount(){this.rafId&&cancelAnimationFrame(this.rafId),this.removeDragListeners()}render(){let{tabs:e,notificationsManagerInstance:t,notifications:n,headerActions:r}=this.props,{visible:i,currentElement:a,openedViews:o,isPopUp:s,lockedTransitions:c,translate:l,isExtended:d}=this.state;return(0,K.jsxs)(`div`,{className:Ox(`detailed-view`,{visible:i,floating:s,"no-transitions":c,extended:d}),style:{transform:l.x!==null&&l.y!==null?`translate3d(${l.x}px, ${l.y}px, 0)`:void 0},children:[(0,K.jsx)(`div`,{className:Ox(`opened-views`),children:o.map(e=>this.getViewDisplayButton(e,a,t,n))}),(0,K.jsxs)(`div`,{className:Ox(`core-view`),children:[(0,K.jsxs)(`div`,{className:Ox(`header`),onMouseDown:e=>this.handleStatusBarMouseDown(e),onTouchStart:e=>this.handleStatusBarMouseDown(e),children:[(0,K.jsx)(`div`,{className:Ox(`title-section`),children:(0,K.jsx)(`div`,{className:Ox(`title`),children:(0,K.jsxs)(Ig,{title:a.title,children:[(0,K.jsx)(`span`,{className:Ox(`title-text`),children:a.title}),a?.sharedData?.job?.isProMarketplaceJob&&(0,K.jsx)(ef,{small:!0,additionalStyle:{marginLeft:`8px`}})]})})}),(0,K.jsxs)(`div`,{className:Ox(`controls`),children:[r&&r(a),(0,K.jsx)(Ig,{title:d?`Collapse`:`Expand`,children:(0,K.jsx)(`button`,{type:`button`,className:Ox(`control-btn`,{active:d}),onClick:this.toggleExpansionStatus,"aria-label":d?`Collapse panel`:`Expand panel`,children:(0,K.jsx)(Y.Expand,{})})}),(0,K.jsx)(Ig,{title:s?`Dock panel`:`Float panel`,children:(0,K.jsx)(`button`,{type:`button`,className:Ox(`control-btn`,{active:s}),onClick:this.togglePopUpStatus,"aria-label":s?`Dock panel`:`Float panel`,children:(0,K.jsx)(u,{sx:{fontSize:16}})})}),(0,K.jsx)(Ig,{title:`Close`,children:(0,K.jsx)(`button`,{type:`button`,className:Ox(`control-btn`,`control-btn-close`),onClick:this.hideCurrentElement,"aria-label":`Close panel`,children:(0,K.jsx)(Y.IcCloseLightGray,{})})})]})]}),(0,K.jsx)(`div`,{className:Ox(`tabs`),children:e.map(e=>this.getTabElement(e,a.id,t,n))}),(0,K.jsx)(`div`,{className:Ox(`body`),children:e.map(e=>this.getTabComponent(e,a.id))})]})]})}};kx.propTypes={tabs:V.default.arrayOf(V.default.shape({})).isRequired,notificationsManagerInstance:V.default.instanceOf(Object),notifications:V.default.shape({}),headerActions:V.default.func,onClose:V.default.func,onElementChange:V.default.func},kx.defaultProps={notificationsManagerInstance:null,notifications:{},headerActions:null,onClose:null,onElementChange:null};var Ax=gn.create(I),jx={red:{bg:`var(--color-badge-red-bg)`,text:`var(--color-badge-red-text)`,glow:`rgba(239, 68, 68, 0.3)`},blue:{bg:`var(--color-badge-blue-bg)`,text:`var(--color-badge-blue-text)`,glow:`rgba(59, 130, 246, 0.3)`},green:{bg:`var(--color-badge-green-bg)`,text:`var(--color-badge-green-text)`,glow:`rgba(34, 197, 94, 0.3)`}
262,"light-blue":{bg:`var(--color-badge-blue-bg)`,text:`var(--color-badge-blue-text)`,glow:`rgba(6, 182, 212, 0.3)`},pink:{bg:`var(--color-badge-pink-bg)`,text:`var(--color-badge-pink-text)`,glow:`rgba(236, 72, 153, 0.3)`},orange:{bg:`var(--color-badge-orange-bg)`,text:`var(--color-badge-orange-text)`,glow:`rgba(249, 115, 22, 0.3)`},default:{bg:`var(--color-badge-default-bg)`,text:`var(--color-badge-default-text)`,glow:`rgba(107, 114, 128, 0.2)`}},Mx={display:`inline-block`,padding:`6px 12px`,borderRadius:`var(--radius-sm, 6px)`,fontSize:`11px`,fontWeight:600,textAlign:`center`,minWidth:`80px`,lineHeight:1,transition:`box-shadow 0.2s ease`},Nx=({text:e,color:t,size:n=`medium`,glow:r=!1})=>{let i=jx[t]||jx.default;return(0,K.jsx)(Ax,{sx:{...Mx,backgroundColor:i.bg,color:i.text,...r&&{boxShadow:`0 0 12px ${i.glow}, 0 2px 4px rgba(0, 0, 0, 0.1)`},...n===`small`&&{padding:`4px 8px`,fontSize:`9px`,minWidth:`60px`},...n===`large`&&{padding:`8px 16px`,fontSize:`12px`,minWidth:`100px`}},initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:bd.snappy,whileHover:r?{scale:1.02}:void 0,children:e})};Nx.propTypes={text:V.default.string.isRequired,color:V.default.string,size:V.default.oneOf([`small`,`medium`,`large`]),glow:V.default.bool};var Px=({isInProgress:e,isFinished:t,isIncomplete:n,hasProblem:r,hasCanceled:i,isCanceled:a,isChanged:o})=>{let s=[];return(e||t)&&r&&s.push((0,K.jsx)(Y.IcWarningProblems,{color:`#FF3B30`},`warnicon3`)),t&&n&&s.push((0,K.jsx)(Y.IcWarningUnfinished,{},`warnicon1`)),t&&!n&&s.push((0,K.jsx)(Y.IcCheckFinished,{},`warnicon2`)),(i&&a||o)&&s.push((0,K.jsx)(Y.IcWarningEvent,{height:`18px`,width:`18px`},`warnicon4`)),s.length===0?null:(0,K.jsx)(`span`,{style:{display:`flex`,height:`16px`},children:s})};Px.propTypes={isInProgress:V.default.bool,isFinished:V.default.bool,isIncomplete:V.default.bool,hasProblem:V.default.bool,hasCanceled:V.default.bool,isCanceled:V.default.bool,isChanged:V.default.bool};var Fx=_i.default.bind({"calendar-job__inner":`_calendar-job__inner_1ov9w_3 text-tiles-calendar`,calendarJobInner:`_calendar-job__inner_1ov9w_3 text-tiles-calendar`,"calendar-job--small":`_calendar-job--small_1ov9w_19`,calendarJobSmall:`_calendar-job--small_1ov9w_19`,"calendar-job--event":`_calendar-job--event_1ov9w_30`,calendarJobEvent:`_calendar-job--event_1ov9w_30`,"calendar-job--eventsmall":`_calendar-job--eventsmall_1ov9w_35`,calendarJobEventsmall:`_calendar-job--eventsmall_1ov9w_35`,"calendar-job--eventbig":`_calendar-job--eventbig_1ov9w_40`,calendarJobEventbig:`_calendar-job--eventbig_1ov9w_40`,"calendar-job--smaller":`_calendar-job--smaller_1ov9w_44`,calendarJobSmaller:`_calendar-job--smaller_1ov9w_44`,"calendar-job__inner--pending":`_calendar-job__inner--pending_1ov9w_59`,calendarJobInnerPending:`_calendar-job__inner--pending_1ov9w_59`,"calendar-job__inner--pendingChanges":`_calendar-job__inner--pendingChanges_1ov9w_66`,calendarJobInnerPendingChanges:`_calendar-job__inner--pendingChanges_1ov9w_66`,"calendar-job__inner--accepted":`_calendar-job__inner--accepted_1ov9w_73`,calendarJobInnerAccepted:`_calendar-job__inner--accepted_1ov9w_73`,"calendar-job__inner--progress":`_calendar-job__inner--progress_1ov9w_80`,calendarJobInnerProgress:`_calendar-job__inner--progress_1ov9w_80`,"calendar-job__inner--finished":`_calendar-job__inner--finished_1ov9w_87`,calendarJobInnerFinished:`_calendar-job__inner--finished_1ov9w_87`,"calendar-job__inner--delayed":`_calendar-job__inner--delayed_1ov9w_94`,calendarJobInnerDelayed:`_calendar-job__inner--delayed_1ov9w_94`,"calendar-job__inner--cancelled":`_calendar-job__inner--cancelled_1ov9w_101`,calendarJobInnerCancelled:`_calendar-job__inner--cancelled_1ov9w_101`,"calendar-color__row":`_calendar-color__row_1ov9w_108`,calendarColorRow:`_calendar-color__row_1ov9w_108`,"calendar-color__row--small":`_calendar-color__row--small_1ov9w_111`,calendarColorRowSmall:`_calendar-color__row--small_1ov9w_111`,"calendar-color__date":`_calendar-color__date_1ov9w_115`,calendarColorDate:`_calendar-color__date_1ov9w_115`,"calendar-color__name":`_calendar-color__name_1ov9w_115`,calendarColorName:`_calendar-color__name_1ov9w_115`,"calendar-color__status":`_calendar-color__status_1ov9w_119`,calendarColorStatus:`_calendar-color__status_1ov9w_119`,"calendar-color__status-small":`_calendar-color__status-small_1ov9w_122 cut-txt`,calendarColorStatusSmall:`_calendar-color__status-small_1ov9w_122 cut-txt`,"calendar-color__icons":`_calendar-color__icons_1ov9w_127`,calendarColorIcons:`_calendar-color__icons_1ov9w_127`,"calendar-color__icons--small":`_calendar-color__icons--small_1ov9w_135`,calendarColorIconsSmall:`_calendar-color__icons--small_1ov9w_135`,"calendar-color__btnspace":`_
262calendar-color__btnspace_1ov9w_142`,calendarColorBtnspace:`_calendar-color__btnspace_1ov9w_142`,"calendar-color__btnwrap":`_calendar-color__btnwrap_1ov9w_147`,calendarColorBtnwrap:`_calendar-color__btnwrap_1ov9w_147`,"calendar-color__pbottom":`_calendar-color__pbottom_1ov9w_151`,calendarColorPbottom:`_calendar-color__pbottom_1ov9w_151`,"calendar-color__event":`_calendar-color__event_1ov9w_154`,calendarColorEvent:`_calendar-color__event_1ov9w_154`,"calendar-color__event--inline":`_calendar-color__event--inline_1ov9w_160`,calendarColorEventInline:`_calendar-color__event--inline_1ov9w_160`,"calendar-color__loading":`_calendar-color__loading_1ov9w_168`,calendarColorLoading:`_calendar-color__loading_1ov9w_168`,"calendar-color__loading-inner":`_calendar-color__loading-inner_1ov9w_168`,calendarColorLoadingInner:`_calendar-color__loading-inner_1ov9w_168`,"calendar-color__event-name":`_calendar-color__event-name_1ov9w_184 text-l7m`,calendarColorEventName:`_calendar-color__event-name_1ov9w_184 text-l7m`,"calendar-color__event-name--haswarning":`_calendar-color__event-name--haswarning_1ov9w_200`,calendarColorEventNameHaswarning:`_calendar-color__event-name--haswarning_1ov9w_200`,"calendar-color__event-address":`_calendar-color__event-address_1ov9w_203 text-tiles-calendar`,calendarColorEventAddress:`_calendar-color__event-address_1ov9w_203 text-tiles-calendar`,"calendar-color__event-top":`_calendar-color__event-top_1ov9w_208`,calendarColorEventTop:`_calendar-color__event-top_1ov9w_208`,"calendar-color__event-info":`_calendar-color__event-info_1ov9w_212 text-tiles-calendar`,calendarColorEventInfo:`_calendar-color__event-info_1ov9w_212 text-tiles-calendar`,"calendar-color__event-warn":`_calendar-color__event-warn_1ov9w_216 text-tiles-calendar`,calendarColorEventWarn:`_calendar-color__event-warn_1ov9w_216 text-tiles-calendar`,"calendar-color__bar":`_calendar-color__bar_1ov9w_237`,calendarColorBar:`_calendar-color__bar_1ov9w_237`,"calendar-color__bar--cancelled":`_calendar-color__bar--cancelled_1ov9w_247`,calendarColorBarCancelled:`_calendar-color__bar--cancelled_1ov9w_247`,"calendar-color__bar--delayed":`_calendar-color__bar--delayed_1ov9w_250`,calendarColorBarDelayed:`_calendar-color__bar--delayed_1ov9w_250`,"calendar-color__bar--finished":`_calendar-color__bar--finished_1ov9w_253`,calendarColorBarFinished:`_calendar-color__bar--finished_1ov9w_253`,"calendar-color__bar--progress":`_calendar-color__bar--progress_1ov9w_256`,calendarColorBarProgress:`_calendar-color__bar--progress_1ov9w_256`,"calendar-color__bar--accepted":`_calendar-color__bar--accepted_1ov9w_259`,calendarColorBarAccepted:`_calendar-color__bar--accepted_1ov9w_259`,"calendar-color__bar--pending":`_calendar-color__bar--pending_1ov9w_262`,calendarColorBarPending:`_calendar-color__bar--pending_1ov9w_262`,"calendar-color__bar-wrap":`_calendar-color__bar-wrap_1ov9w_266`,calendarColorBarWrap:`_calendar-color__bar-wrap_1ov9w_266`,"calendar-color__bar-content":`_calendar-color__bar-content_1ov9w_270`,calendarColorBarContent:`_calendar-color__bar-content_1ov9w_270`}),Ix=e=>(0,K.jsx)(`div`,{title:e.title||``,onClick:e.onClick,"data-testid":`calendar-event`,"data-testid-event":e.status,"data-id":e[`data-id`]||e.id,className:Fx(`calendar-job__inner`,{"calendar-job--small":e.small},{"calendar-job--event":e.isEvent},{"calendar-job--eventsmall":e.isEventSmall},{"calendar-job--eventbig":e.isEventBig},{"calendar-job--smaller":e.smaller},`calendar-job__inner--${e.status}`),children:e.children});Ix.propTypes={id:V.default.string,title:V.default.string,status:V.default.oneOf([`delayed`,`pending`,`accepted`,`cancelled`,`progress`,`finished`,`pendingChanges`]).isRequired,small:V.default.bool,smaller:V.default.bool,isEvent:V.default.bool,isEventSmall:V.default.bool,isEventBig:V.default.bool};var Lx={background:`var(--surface-ground, var(--color-bg))`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-md, 10px)`,padding:`16px`,marginBottom:`8px`,position:`relative`,cursor:`pointer`,display:`flex`,alignItems:`center`,gap:`24px`,overflow:`hidden`,transition:`all 0.2s ease`,"&:hover":{borderColor:`var(--color-primary)`,boxShadow:`var(--shadow-md), 0 0 0 1px var(--color-primary-alpha-10)`,transform:`translateY(-1px)`,"& .cell-l1":{color:`var(--color-text)`},"& .cell-l2":{color:`var(--color-text)`},"& .cell-l3":{color:`var(--color-text-secondary)`}}},Rx={fontFamily:`'Plus Jakarta Sans', Helvetica, Arial, sans-serif`,fontSize:`15px`,fontWeight:`600`,lineHeight:`20px`,color:`var(--color-text)`},zx={fontFamily:`'Plus Jakarta Sans', Helvetica, Arial, sans-serif`,fontSize:`14px`,fontWeight:`500`,lineHeight:`18px`,color:`var(--color-text)`},Bx={fontFamily:`'Plus Jakarta Sans', Helvetica, Arial, sans-serif`,fontSize:`13px`,lineHeight:`18px`,color:`var(--color-text-secondary)`},Vx=e=>{switch(e){case`accepted`:return`light-blue`;
262case`progress`:return`pink`;case`finished`:return`green`;case`delayed`:return`orange`;case`pending`:case`pendingChanges`:return`default`;case`cancelled`:return`red`;default:return`default`}},Hx=({cleaner:e,status:t,startDate:n,endDate:r,startTime:i,endTime:a,location:o,onClick:s,jobRequest:c,id:l})=>{let{jobStartTimeType:u,duration:d}=c||{},f=Bl(c),p=Gs(c),m=u===uo,h=(0,K.jsx)(Px,{isInProgress:Vs(c),isFinished:p.isComplete,hasProblem:p.hasProblem,isIncomplete:p.isIncomplete}),g=(0,K.jsxs)(`span`,{children:[`Duration:`,Kc(d)]}),_=(0,K.jsx)(`span`,{children:`\xA0`}),v=(0,K.jsxs)(I,{sx:{width:`320px`,marginRight:`16px`},children:[(0,K.jsxs)(`span`,{children:[(0,K.jsx)(I,{component:`span`,className:`cell-l2`,sx:zx,children:n}),_,(0,K.jsx)(I,{component:`span`,className:`cell-l2`,sx:zx,children:i})]}),(0,K.jsxs)(I,{component:`span`,className:`cell-l2`,sx:zx,children:[_,`-`,_]}),(0,K.jsxs)(`span`,{children:[(0,K.jsx)(I,{component:`span`,className:`cell-l2`,sx:zx,children:r===n?``:r}),r!==n&&_,(0,K.jsx)(I,{component:`span`,className:`cell-l2`,sx:zx,children:a})]}),(0,K.jsxs)(I,{className:`cell-l3`,sx:Bx,children:[m?`Flexible - `:``,g]})]});return(0,K.jsxs)(I,{onClick:s,"data-id":l,sx:Lx,children:[(0,K.jsx)(qn,{title:f,placement:`top`,enterDelay:300,children:(0,K.jsx)(I,{className:`cell-l1`,sx:{...Rx,width:`160px`,marginRight:`16px`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:f})}),v,e&&(0,K.jsx)(I,{className:`cell-l3`,sx:{...Bx,width:`240px`,marginRight:`16px`,flexGrow:1},children:e}),o&&(0,K.jsx)(I,{className:`cell-l3`,sx:{...Bx,width:`240px`,marginRight:`16px`,flexGrow:1},children:o}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`8px`,flexShrink:0},children:[h,(0,K.jsx)(Nx,{text:t,color:Vx(Ro(c,e,t)),size:`medium`})]})]})},Ux=e(Tee()),Wx=e(zee()),Gx=e(Sr()),Kx=e=>{switch(e){case Ua.Pending:return U(`jobdetails.pending`);case Ua.PendingChanges:return U(`jobdetails.pendingChanges`);case Ua.Declined:return U(`jobdetails.declined`);case Ua.DeclinedChanges:return U(`jobdetails.declined`);case Ua.Accepted:return U(`jobstatus.accepted`);case Ua.InProgress:return U(`jobstatus.started`);case Ua.Finished:return U(`jobstatus.completed`);case Ua.Viewed:return U(`jobstatus.seen`);case Ua.CanceledByHost:return U(`jobdetails.canceled`);case Ua.CanceledByCleaner:return U(`jobdetails.canceled`);default:return``}},qx=e=>{if(typeof e?.getPropertyLines==`function`)return e.getPropertyLines();let{propertyData:t,title:n}=e||{};if(!t)return[];let r=[];return n!==t.street&&r.push(t.title),t.street&&r.push(t.street),r.push(`${t.city||``} ${t.countryCode||``} ${t.zip||``}`),t.country&&r.push(t.country),r},Jx=e=>{if(typeof e?.getCleanerString==`function`)return e.getCleanerString();let t=e?.requestedCleaners||[];if(t.length===0)return``;let n=t[0]?.userData;if(!n)return``;let r=`${n.firstName||``} ${(n.lastName||``).substring(0,1)}.`;return t.length>1?`${r} (+${t.length-1})`:r},Yx=(e,t)=>{let n=(e||[]).filter(e=>e.id===t);return n.length?n[0].status:``},Xx=e=>{if(typeof e?.getStatusString==`function`)return e.getStatusString();let{status:t,statusString:n}=e||{};return n===`viewed`?`jobstatus.seen`:{1:`jobstatus.pending`,2:`jobstatus.accepted`,3:`jobstatus.cancelled`,4:`jobstatus.declined`,5:`jobstatus.started`,6:`jobstatus.started`,7:`jobstatus.completed`,8:`jobstatus.cancelled`,9:`jobstatus.pendingChanges`,11:`jobstatus.scheduled`}[t]||void 0};function Zx(e,t,n,r){return(0,H.default)(e,e=>{try{let i={},a,o=qx(e),s=o.length?o.join(`, `):``;if(n===`cleaner`&&(i.cleaner=Jx(e)),n===`property`){i.location=s;let t=Yx(e.requestedCleaners,r);a=Xx(e)===`jobstatus.delayed`?U(`jobstatus.delayed`):Kx(t)}else a=U(Xx(e));let{propertyData:c,scheduledStartTime:l,scheduledEndTime:u,duration:d}=e||{},{timeZone:f}=c||{};f||R.default.warn(`There is no timezone information for the current job request`,e);let p=(0,z.default)(l).tz(f),m=u?(0,z.default)(u).tz(f):p.clone().add(d,`m`);return(0,B.createElement)(Hx,{startTime:p.format(`LT`),startDate:p.format(`L`),endTime:m.format(`LT`),endDate:m.format(`L`),onClick:t?n=>(R.default.info(`Handle JobRequestCell click`,{jobRequest:e},`event`,n),t(e,n)):void 0,status:a,jobRequest:e,...i,id:e.jobId,key:e.jobId})}catch(t){return R.default.error(`Error rendering job request`,t),R.default.error(`Job request`,e),null}})}function Qx(e){return typeof e?.getScheduledStartTime==`function`?e.getScheduledStartTime()||e.getActualStartTime():e?.scheduledStartTime||e?.actualStartTime}function $x(e,t,n,r,i){let a=(0,Wx.default)([gx.default,Gx.default,e=>e?(0,Gx.default)(e.items):{scheduledStartTime:(0,z.default)().subtract(2,`month`).toDate()}]),o=n?e=>n(a.bind(null,t),e):Fu.default,s=U(i?`properties.try_to_fetch`:`properties.load_more`);return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(ym,{}),r&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(I,{sx:{background:`var(--surface-ground, var(--color-bg))`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-md, 10px)`,padding:`16px`,marginBottom:`8px`,display:`flex`,alignItems:`center`,gap:`24px`},children:[(0,K.jsx)(I,{sx:{width:`160px`,marginRight:`16px`},children:(0,K.jsx)(J,{variant:`rounded`,width:100,height:20})}),(0,K.jsxs)(I,{sx:{width:`320px`,marginRight:`16px`},children:[(0,K.jsx)(J,{variant:`rounded`,width:200,height:18,style:{marginBottom:4}}),(0,K.jsx)(J,{variant:`rounded`,width:110,height:18})]}),(0,K.jsx)(I,{sx:{flex:1,marginRight:`16px`},children:(0,K.jsx)(J,{variant:`rounded`,width:160,height:18})}),(0,K.jsx)(J,{variant:`rounded`,width:72,height:28,sx:{borderRadius:`14px`}})]}),(0,K.jsxs)(I,{sx:{background:`var(--surface-ground, var(--color-bg))`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-md, 10px)`,padding:`16px`,marginBottom:`8px`,display:`flex`,alignItems:`center`,gap:`24px`},children:[(0,K.jsx)(I,{sx:{width:`160px`,marginRight:`16px`},children:(0,K.jsx)(J,{variant:`rounded`,width:120,height:20})}),(0,K.jsxs)(I,{sx:{width:`320px`,marginRight:`16px`},children:[(0,K.jsx)(J,{variant:`rounded`,width:180,height:18,style:{marginBottom:4}}),(0,K.jsx)(J,{variant:`rounded`,width:100,height:18})]}),(0,K.jsx)(I,{sx:{flex:1,marginRight:`16px`},children:(0,K.jsx)(J,{variant:`rounded`,width:140,height:18})}),(0,K.jsx)(J,{variant:`rounded`,width:68,height:28,sx:{borderRadius:`14px`}})]})]}),!r&&e&&(0,K.jsx)(q,{onClick:o,types:[`type-flat-primary`,`size-medium`,`fontw-normal`,`fonts-12`,`width-flex`,`height-24`],children:s})]})}var eS=()=>(0,K.jsxs)(I,{sx:{background:`var(--surface-ground, var(--color-bg))`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-md, 10px)`,padding:`16px`,marginBottom:`8px`,display:`flex`,alignItems:`center`,gap:`24px`},children:[(0,K.jsx)(I,{sx:{width:`160px`,marginRight:`16px`},children:(0,K.jsx)(J,{variant:`rounded`,width:110,height:20})}),(0,K.jsxs)(I,{sx:{width:`320px`,marginRight:`16px`},children:[(0,K.jsx)(J,{variant:`rounded`,width:220,height:18,style:{marginBottom:4}}),(0,K.jsx)(J,{variant:`rounded`,width:120,height:18})]}),(0,K.jsx)(I,{sx:{flex:1,marginRight:`16px`,width:`240px`},children:(0,K.jsx)(J,{variant:`rounded`,width:180,height:18})}),(0,K.jsx)(I,{sx:{width:`100px`,minWidth:`100px`},children:(0,K.jsx)(J,{variant:`rounded`,width:72,height:28,sx:{borderRadius:`14px`}})})]}),tS=({ascending:e=!1,jobRequestsArray:t,isLoading:n,hasError:r,onClick:i=()=>{},mode:a=`property`,onLoadMore:o=()=>{},isLoadingPagination:s=!1,hasMore:c=!1,contactId:l=``})=>{if(n)return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(J,{variant:`rounded`,width:200,height:24,style:{margin:`24px 0 16px`}}),(0,K.jsx)(eS,{}),(0,K.jsx)(eS,{}),(0,K.jsx)(eS,{})]});if(r)return(0,K.jsxs)(I,{sx:{fontSize:`18px`,lineHeight:`24px`,display:`flex`,height:`165px`,width:`100%`,justifyContent:`center`,flexDirection:`column`,textAlign:`center`,alignItems:`center`,color:`var(--color-no-result)`},children:[(0,K.jsx)(`div`,{children:U(`properties.jobs_error_loading_l1`)}),(0,K.jsx)(`div`,{children:U(`properties.jobs_error_loading_l2`)})]});let u=t||[],d=`DDMMYYYY`,f={};
262function p(){u.forEach(e=>{let t=(0,z.default)(Qx(e)).tz(ko(e)).format(d);t in f?f[t].push(e):f[t]=Array(e)})}p();let m=e?`asc`:`desc`,h=(0,If.default)((0,H.default)((0,bo.default)((0,Ux.default)(f),e=>(0,z.default)(e,d).unix(),[m]),e=>f[e]),(e,t,n)=>{let r=(0,z.default)(Qx(t[0])).tz(ko(t[0]));return{...e,[n]:{month:r,isFutureDate:r.isAfter(),items:(0,bo.default)(t,e=>new Date(e.scheduledStartTime).getTime(),[m])}}},{});return u.length===0&&!n?(0,K.jsxs)(`div`,{children:[(0,K.jsx)(I,{sx:{fontSize:`18px`,lineHeight:`24px`,display:`flex`,height:`165px`,width:`100%`,justifyContent:`center`,flexDirection:`column`,textAlign:`center`,alignItems:`center`,color:`var(--color-no-result)`},children:U(`properties.no_job_results`)}),$x(c,h,o,s,!0)]}):(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(vm,{}),(0,H.default)(h,e=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(vm,{}),(0,K.jsx)(Kb,{border:!0,children:(0,z.default)(e.month).format(`ddd, Do MMM YYYY`)}),Zx(e.items,i,a,l)]},e.month))]}),$x(c,h,o,s)]})};tS.propTypes={jobRequestsArray:V.default.arrayOf(V.default.object).isRequired,isLoading:V.default.bool.isRequired,hasError:V.default.bool.isRequired,ascending:V.default.bool,hasMore:V.default.bool,isLoadingPagination:V.default.bool,mode:V.default.oneOf([`cleaner`,`property`]),contactId:V.default.string,onClick:V.default.func,onLoadMore:V.default.func};var nS={"job-request__time-row":`_job-request__time-row_1enlb_2`,jobRequestTimeRow:`_job-request__time-row_1enlb_2`,"job-request__time-row-name":`_job-request__time-row-name_1enlb_10`,jobRequestTimeRowName:`_job-request__time-row-name_1enlb_10`,"job-request__time-cell":`_job-request__time-cell_1enlb_15`,jobRequestTimeCell:`_job-request__time-cell_1enlb_15`,"job-request__time-cell--small":`_job-request__time-cell--small_1enlb_19`,jobRequestTimeCellSmall:`_job-request__time-cell--small_1enlb_19`,"job-request__time-cell--relative":`_job-request__time-cell--relative_1enlb_22`,jobRequestTimeCellRelative:`_job-request__time-cell--relative_1enlb_22`,"job-request__mycleaner":`_job-request__mycleaner_1enlb_28`,jobRequestMycleaner:`_job-request__mycleaner_1enlb_28`,"job-request__mycleaner--nomargin":`_job-request__mycleaner--nomargin_1enlb_32`,jobRequestMycleanerNomargin:`_job-request__mycleaner--nomargin_1enlb_32`,"job-request__mycleaner__all":`_job-request__mycleaner__all_1enlb_35`,jobRequestMycleanerAll:`_job-request__mycleaner__all_1enlb_35`,"job-request__mycleaner__all--marginlr":`_job-request__mycleaner__all--marginlr_1enlb_43`,jobRequestMycleanerAllMarginlr:`_job-request__mycleaner__all--marginlr_1enlb_43`,"job-request__mycleaner__all--small":`_job-request__mycleaner__all--small_1enlb_47`,jobRequestMycleanerAllSmall:`_job-request__mycleaner__all--small_1enlb_47`,"job-request__mycleaner__space":`_job-request__mycleaner__space_1enlb_51`,jobRequestMycleanerSpace:`_job-request__mycleaner__space_1enlb_51`,"job-request__mycleaner__head":`_job-request__mycleaner__head_1enlb_55`,jobRequestMycleanerHead:`_job-request__mycleaner__head_1enlb_55`,"job-request__mycleaner__head--nomargin":`_job-request__mycleaner__head--nomargin_1enlb_63`,jobRequestMycleanerHeadNomargin:`_job-request__mycleaner__head--nomargin_1enlb_63`,"job-request__mycleaner__head-txt":`_job-request__mycleaner__head-txt_1enlb_
26266 text-type-small`,jobRequestMycleanerHeadTxt:`_job-request__mycleaner__head-txt_1enlb_66 text-type-small`,"job-request__mycleaner__head-txt-marginleft":`_job-request__mycleaner__head-txt-marginleft_1enlb_71`,jobRequestMycleanerHeadTxtMarginleft:`_job-request__mycleaner__head-txt-marginleft_1enlb_71`,"job-request__price-info":`_job-request__price-info_1enlb_76`,jobRequestPriceInfo:`_job-request__price-info_1enlb_76`,"job-request__price-info--small":`_job-request__price-info--small_1enlb_82`,jobRequestPriceInfoSmall:`_job-request__price-info--small_1enlb_82`,"job-request__price":`_job-request__price_1enlb_76`,jobRequestPrice:`_job-request__price_1enlb_76`,"job-request__textarea":`_job-request__textarea_1enlb_92`,jobRequestTextarea:`_job-request__textarea_1enlb_92`,"job-request__textarea--defaultmodal":`_job-request__textarea--defaultmodal_1enlb_95`,jobRequestTextareaDefaultmodal:`_job-request__textarea--defaultmodal_1enlb_95`,"job-request__cut":`_job-request__cut_1enlb_99 cut-txt`,jobRequestCut:`_job-request__cut_1enlb_99 cut-txt`,"job-request-sidebar-text__main":`_job-request-sidebar-text__main_1enlb_105 text-l7`,jobRequestSidebarTextMain:`_job-request-sidebar-text__main_1enlb_105 text-l7`,"job-request-sidebar-text__main--blue":`_job-request-sidebar-text__main--blue_1enlb_109`,jobRequestSidebarTextMainBlue:`_job-request-sidebar-text__main--blue_1enlb_109`,"job-request-sidebar-text__main--cuttxt":`_job-request-sidebar-text__main--cuttxt_1enlb_112 cut-txt`,jobRequestSidebarTextMainCuttxt:`_job-request-sidebar-text__main--cuttxt_1enlb_112 cut-txt`,"job-request-sidebar-text__sub":`_job-request-sidebar-text__sub_1enlb_115 text-l7`,jobRequestSidebarTextSub:`_job-request-sidebar-text__sub_1enlb_115 text-l7`,"job-request-sidebar-text__light":`_job-request-sidebar-text__light_1enlb_119 text-l7`,jobRequestSidebarTextLight:`_job-request-sidebar-text__light_1enlb_119 text-l7`,"job-request-sidebar-text__orange":`_job-request-sidebar-text__orange_1enlb_123 text-l7`,jobRequestSidebarTextOrange:`_job-request-sidebar-text__orange_1enlb_123 text-l7`,"job-request-sidebar-text__orange--orange":`_job-request-sidebar-text__orange--orange_1enlb_127`,jobRequestSidebarTextOrangeOrange:`_job-request-sidebar-text__orange--orange_1enlb_127`,"job-request-sidebar-text__orange--blue":`_job-request-sidebar-text__orange--blue_1enlb_130`,jobRequestSidebarTextOrangeBlue:`_job-request-sidebar-text__orange--blue_1enlb_130`,"job-request-sidebar-text__orange--inline":`_job-request-sidebar-text__orange--inline_1enlb_133`,jobRequestSidebarTextOrangeInline:`_job-request-sidebar-text__orange--inline_1enlb_133`,"job-request__timepreview":`_job-request__timepreview_1enlb_137`,jobRequestTimepreview:`_job-request__timepreview_1enlb_137`,"job-request__timepreview-col":`_job-request__timepreview-col_1enlb_140`,jobRequestTimepreviewCol:`_job-request__timepreview-col_1enlb_140`,jobinfo:`_jobinfo_1enlb_144`,jobinfo__pic:`_jobinfo__pic_1enlb_147`,jobinfoPic:`_jobinfo__pic_1enlb_147`,"jobinfo__pic--lift":`_jobinfo__pic--lift_1enlb_150`,jobinfoPicLift:`_jobinfo__pic--lift_1enlb_150`,jobinfo__txt:`_jobinfo__txt_1enlb_153`,jobinfoTxt:`_jobinfo__txt_1enlb_153`,"jobinfo__txt--widthpic":`_jobinfo__txt--widthpic_1enlb_157`,jobinfoTxtWidthpic:`_jobinfo__txt--widthpic_1enlb_157`,"jobinfo--cleaner":`_jobinfo--cleaner_1enlb_160`,jobinfoCleaner:`_jobinfo--cleaner_1enlb_160`,topbar:`_topbar_1enlb_164`,"topbar--bright":`_topbar--bright_1enlb_171`,topbarBright:`_topbar--bright_1enlb_171`,topbar__title:`_topbar__title_1enlb_175 text-l5m`,topbarTitle:`_topbar__title_1enlb_175 text-l5m`,"topbar__title--lefttop":`_topbar__title--lefttop_1enlb_189`,topbarTitleLefttop:`_topbar__title--lefttop_1enlb_189`,topbar__btns:`_topbar__btns_1enlb_202`,topbarBtns:`_topbar__btns_1enlb_202`,"topbar__btns--left":`_topbar__btns--left_1enlb_210`,topbarBtnsLeft:`_topbar__btns--left_1enlb_210`,"topbar__btns--right":`_topbar__btns--right_1enlb_213`,topbarBtnsRight:`_topbar__btns--right_1enlb_213`,checkable:`_checkable_1enlb_218`,"checkable--hovered":`_checkable--hovered_1enlb_231`,checkableHovered:`_checkable--hovered_1enlb_231`,"checkable--notclickable":`_checkable--notclickable_1enlb_234`,checkableNotclickable:`_checkable--notclickable_1enlb_234`,"checkable--blue":`_checkable--blue_1enlb_240`,checkableBlue:`_checkable--blue_1enlb_240`,"checkable--active":`_checkable--active_1enlb_243`,checkableActive:`_checkable--active_1enlb_243`,"checkable--disabled":`_checkable--disabled_1enlb_250`,checkableDisabled:`_checkable--disabled_1enlb_250`,"checkable--fullwidth":`_checkable--fullwidth_1enlb_255`,checkableFullwidth:`_checkable--fullwidth_1enlb_255`,checkable__checkbox:`_checkable__checkbox_1enlb_259`,checkableCheckbox:`_checkable__checkbox_1enlb_259`,"checkable__post-check":`_checkable__post-check_1enlb_266`,checkablePostCheck:`_checkable__post-check_1enlb_266`,checkable__check:`_checkable__check_1enlb_259 text-l7`,checkableCheck:`_checkable__check_1enlb_259 text-l7`,"checkable__check--hover":`_checkable__check--hover_1enlb_287`,checkableCheckHover:`_checkable__check--hover_1enlb_287`,"checkable__check--active":`_checkable__check--active_1enlb_290`,checkableCheckActive:`_checkable__check--active_1enlb_290`,"checkable__check--blue":`_checkable__check--blue_1enlb_293`,checkableCheckBlue:`_checkable__check--blue_1enlb_293`,"checkable__check--disabled":`_checkable__check--disabled_1enlb_297`,checkableCheckDisabled:`_checkable__check--disabled_1enlb_297`,jobrequest__contentwrap:`_jobrequest__contentwrap_1enlb_309`,jobrequestContentwrap:`_jobrequest__contentwrap_1enlb_309`,jobrequest__icon:`_jobrequest__icon_1enlb_316`,jobrequestIcon:`_jobrequest__icon_1enlb_316`,jobrequest__icon_plus:`_jobrequest__icon_plus_1enlb_322`,jobrequestIconPlus:`_jobrequest__icon_plus_1enlb_322`,"jobrequest__icon_plus--hover":`_jobrequest__icon_plus--hover_1enlb_340`,jobrequestIconPlusHover:`_jobrequest__icon_plus--hover_1enlb_340`,jobrequest__datebox:`_jobrequest__datebox_1enlb_344`,jobrequestDatebox:`_jobrequest__datebox_1enlb_344`,"jobrequest__datebox--flex":`_jobrequest__datebox--flex_1enlb_350`,jobrequestDateboxFlex:`_jobrequest__datebox--flex_1enlb_350`,"jobrequest__datebox--small":`_jobrequest__datebox--small_1enlb_354`,jobrequestDateboxSmall:`_jobrequest__datebox--small_1enlb_354`,jobrequest__spacerwrap:`_jobrequest__spacerwrap_1enlb_358`,jobrequestSpacerwrap:`_jobrequest__spacerwrap_1enlb_358`,"jobrequest__spacerwrap--growflex":`_jobrequest__spacerwrap--growflex_1enlb_361`,jobrequestSpacerwrapGrowflex:`_jobrequest__spacerwrap--growflex_1enlb_361`,"jobrequest__spacerwrap--flex":`_jobrequest__spacerwrap--flex_1enlb_364`,jobrequestSpacerwrapFlex:`_jobrequest__spacerwrap--flex_1enlb_364`,"jobrequest__spacerwrap--isrelative":`_jobrequest__spacerwrap--isrelative_1enlb_367`,jobrequestSpacerwrapIsrelative:`_jobrequest__spacerwrap--isrelative_1enlb_367`,jobrequest__centerflex:`_jobrequest__centerflex_1enlb_371`,jobrequestCenterflex:`_jobrequest__centerflex_1enlb_371`,"job-request-permission":`_job-request-permission_1enlb_385`,jobRequestPermission:`_job-request-permission_1enlb_385`,"job-request-permission__right":`_job-request-permission__right_1enlb_393`,jobRequestPermissionRight:`_job-request-permission__right_1enlb_393`,jobrequest__tabcleaner:`_jobrequest__tabcleaner_1enlb_400 text-l7`,jobrequestTabcleaner:`_jobrequest__tabcleaner_1enlb_400 text-l7`,"jobrequest__tabcleaner--active":`_jobrequest__tabcleaner--active_1enlb_405 text-l7m`,jobrequestTabcleanerActive:`_jobrequest__tabcleaner--active_1enlb_405 text-l7m`,jobrequest__cleanerbox:`_jobrequest__cleanerbox_1enlb_409 text-l7`,jobrequestCleanerbox:`_jobrequest__cleanerbox_1enlb_409 text-l7`,"jobrequest__cleanerbox-title":`_jobrequest__cleanerbox-title_1enlb_416`,jobrequestCleanerboxTitle:`_jobrequest__cleanerbox-title_1enlb_416`,"jobrequest__cleanerbox--noborder":`_jobrequest__cleanerbox--noborder_1enlb_420`,jobrequestCleanerboxNoborder:`_jobrequest__cleanerbox--noborder_1enlb_420`,jobrequest__propertyinfo:`_jobrequest__propertyinfo_1enlb_424`,jobrequestPropertyinfo:`_jobrequest__propertyinfo_1enlb_424`,"jobrequest__propertyinfo-pic":`_jobrequest__propertyinfo-pic_1enlb_431`,jobrequestPropertyinfoPic:`_jobrequest__propertyinfo-pic_1enlb_431`,"job-request-content":`_job-request-content_1enlb_436`,jobRequestContent:`_job-request-content_1enlb_436`,"job-request-sidebar-box":`_job-request-sidebar-box_1enlb_447`,jobRequestSidebarBox:`_job-request-sidebar-box_1enlb_447`,"job-request-sidebar-box--active":`_job-request-sidebar-box--active_1enlb_461`,jobRequestSidebarBoxActive:`_job-request-sidebar-box--active_1enlb_461`,"job-request-sidebar-box--small":`_job-request-sidebar-box--small_1enlb_464`,jobRequestSidebarBoxSmall:`_job-request-sidebar-box--small_1enlb_464`,"job-request-sidebar-box--hover":`_job-request-sidebar-box--hover_1enlb_467`,jobRequestSidebarBoxHover:`_job-request-sidebar-box--hover_1enlb_467`,"job-request-sidebar-box--disabled":`_job-request-sidebar-box--disabled_1enlb_467`,jobRequestSidebarBoxDisabled:`_job-request-sidebar-box--disabled_1enlb_467`,"job-request-sidebar-box--viewonly":`_job-request-sidebar-box--viewonly_1enlb_474`,jobRequestSidebarBoxViewonly:`_job-request-sidebar-box--viewonly_1enlb_474`,"job-request-sidebar-box__inner":`_job-request-sidebar-box__inner_1enlb_475`,jobRequestSidebarBoxInner:`_job-request-sidebar-box__inner_1enlb_475`,"job-request-sidebar-box__indicator":`_job-request-sidebar-box__indicator_1enlb_479`,jobRequestSidebarBoxIndicator:`_job-request-sidebar-box__indicator_1enlb_479`,"job-request-sidebar-box__overlay":`_job-request-sidebar-box__overlay_1enlb_488`,jobRequestSidebarBoxOverlay:`_job-request-sidebar-box__overlay_1enlb_488`,"job-request-sidebar-box__title":`_job-request-sidebar-box__title_1enlb_504 text-l7m`,jobRequestSidebarBoxTitle:`_job-request-sidebar-box__title_1enlb_504 text-l7m`,"job-request-sidebar-box--istitlerequired":`_job-request-sidebar-box--istitlerequired_1enlb_511`,jobRequestSidebarBoxIstitlerequired:`_job-request-sidebar-box--istitlerequired_1enlb_511`,"job-request-wrap":`_job-request-wrap_1enlb_516`,jobRequestWrap:`_job-request-wrap_1enlb_516`,"job-request-sidebar":`_job-request-sidebar_1enlb_105`,jobRequestSidebar:`_job-request-sidebar_1enlb_105`,"job-request-sidebar__overlay":`_job-request-sidebar__overlay_1enlb_539`,jobRequestSidebarOverlay:`_job-request-sidebar__overlay_1enlb_539`,"loading-overlay":`_loading-overlay_1enlb_550`,loadingOverlay:`_loading-overlay_1enlb_550`,"loading-overlay__bg":`_loading-overlay__bg_1enlb_563`,loadingOverlayBg:`_loading-overlay__bg_1enlb_563`,"permission-box":`_permission-box_1enlb_574`,permissionBox:`_permission-box_1enlb_574`,"permission-box--selected":`_permission-box--selected_1enlb_581`,permissionBoxSelected:`_permission-box--selected_1enlb_581`,"permission-box__checkable":`_permission-box__checkable_1enlb_585`,permissionBoxCheckable:`_permission-box__checkable_1enlb_585`,jobinfo__properlypro:`_jobinfo__properlypro_1enlb_592`,jobinfoProperlypro:`_jobinfo__properlypro_1enlb_592`,"jobinfo__properlypro--override":`_jobinfo__properlypro--override_1enlb_597`,jobinfoProperlyproOverride:`_jobinfo__properlypro--override_1enlb_597`,"job-request-popover__text":`_job-request-popover__text_1enlb_
262603 text-l7`,jobRequestPopoverText:`_job-request-popover__text_1enlb_603 text-l7`,"job-request-popover":`_job-request-popover_1enlb_603 clickable`,jobRequestPopover:`_job-request-popover_1enlb_603 clickable`},rS=_i.default.bind(nS);function iS({children:e,isBlue:t,cutText:n,type:r=`main`}){return(0,K.jsx)(`div`,{className:rS({"job-request-sidebar-text__main--blue":t,"job-request-sidebar-text__main--cuttxt":n,"job-request-sidebar-text__main":r===`main`,"job-request-sidebar-text__sub":r===`sub`,"job-request-sidebar-text__light":r===`light`}),children:(0,K.jsx)(`span`,{"data-testid":`job-request-text-main`,children:e})})}function aS({children:e,...t}){return(0,K.jsx)(iS,{type:`sub`,...t,children:e})}function oS({children:e,...t}){return(0,K.jsx)(iS,{type:`light`,...t,children:e})}function sS({children:e,onClick:t,color:n=`orange`,isInline:r}){return(0,K.jsx)(`div`,{onClick:t,className:rS(`job-request-sidebar-text__orange`,{"job-request-sidebar-text__orange--orange":n===`orange`,"job-request-sidebar-text__orange--blue":n===`blue`,"job-request-sidebar-text__orange--inline":r}),children:e})}var cS=_i.default.bind(nS);function lS(e){return(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(rC.LightTxt,{children:[U(`job_request.start_time`),`:`]}),` `,(0,K.jsx)(rC.NormalTxt,{children:e.startTime}),(0,K.jsx)(`span`,{style:{width:10,display:`inline-block`}}),(0,K.jsxs)(rC.LightTxt,{children:[U(`job_request.duration`),`:`]}),` `,(0,K.jsx)(rC.NormalTxt,{children:e.duration})]})}lS.propTypes={startTime:V.default.string.isRequired,duration:V.default.string.isRequired};var uS=e=>{let{hideDate:t=!1,startDate:n=``,startTime:r,endDate:i=``,endTime:a,duration:o,jobStartTimeType:s}=e,c=s?.toLowerCase()===`flexible`;return(0,K.jsxs)(`div`,{className:cS(`job-request__timepreview`),children:[!t&&(0,K.jsxs)(`div`,{className:cS(`job-request__timepreview-col`),children:[(0,K.jsx)(iS,{children:U(c?`job_request.start_after`:`job_request.start_date`)}),(0,K.jsx)(aS,{children:n}),c&&(0,K.jsx)(aS,{children:r})]}),(0,K.jsxs)(`div`,{className:cS(`job-request__timepreview-col`),children:[(0,K.jsx)(iS,{children:U(c?`job_request.finish_before`:`job_request.start_time`)}),(0,K.jsx)(aS,{children:c?i:r}),c&&(0,K.jsx)(aS,{children:a})]}),(0,K.jsxs)(I,{className:cS(`job-request__timepreview-col`),sx:{paddingRight:0},children:[(0,K.jsx)(iS,{children:U(`job_request.duration`)}),(0,K.jsx)(aS,{children:o})]})]})};uS.propTypes={startTime:V.default.string.isRequired,startDate:V.default.string,duration:V.default.string.isRequired,jobStartTimeType:V.default.string.isRequired,endTime:V.default.string.isRequired,endDate:V.default.string,hideDate:V.default.bool};var dS=class{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p){this.objectId=e,this.userId=t?t.getId():void 0,this.userData=t,this.numOfJobRequestsDone30=n,this.numOfHosts=r,this.signedUpDate=i,this.numOfJobRequestsDone=a,this.propertyPhotos=o,this.offeredServices=s,this.badges=c,this.responseTime=l,this.numOfProperties=u||0,this.listSuggestedCleaner=d,this.stripeEnabled=f,this.features=p}setData(e){this.getOwnProps(e,this)}getData(){return this.getOwnProps(this)}getOwnProps(e,t){let n=t||{};return(0,zs.default)(e,(e,t)=>{n[t]=e}),n}getId(){return this.objectId}getProStatus(){return this.listSuggestedCleaner&&!this.marketplaceBlacklisted&&!this.marketplaceSuspended}getUserData(){return this.userData}get userInitials(){return Go((0,G.default)(this,[`userData`,`firstName`]),(0,G.default)(this,[`userData`,`lastName`]))}get userPicture(){return(0,G.default)(this,[`userData`,`pictureUrl`])}},fS=_i.default.bind(nS);function pS(e){let{contacts:t,isBlue:n,onClick:r,selectedCleaners:i,onClickBtn:a,hasButton:o,currentUserId:s,proMarketProperty:c}=e;return(0,K.jsx)(`div`,{children:(0,H.default)(t,(e,l)=>{let u={};if(n){u.activeBlue=!0,u.title=Jo(e,!0,s);let t=e.numOfHosts>1?U(`job_request.clients`):U(`job_request.client`);u.subTitle=`${e.numOfJobRequestsDone} ${U(`job_request.total_jobs`)} ⢠263 ${e.numOfHosts} ${t}`}else{let t=Yo(e);u.title=Jo(e,!1,s),u.subTitleColor=t.color?`orange`:void 0,u.subTitle=t.value}let d=i[e.userData.objectId]!==void 0;return(0,K.jsx)(Kj,{hasButton:o,picture:{text:Go(e.userData.firstName,e.userData.lastName),picture:e.userData.pictureUrl},type:`community`,onClick:t=>r(e,d,t),active:d,showProBadge:c&&ps(e),noHover:d,noBorderBottom:l===t.length-1,...u,children:o&&(0,K.jsx)(q,{onClick:t=>a(e,d,t),types:[`type-border-grey`,`size-small`],children:U(`job_request.view`)})},e.objectId)})})}pS.propTypes={isBlue:V.default.bool,hasButton:V.default.bool,contacts:V.default.oneOfType([
263V.default.arrayOf(V.default.object),V.default.arrayOf(V.default.instanceOf(dS))]),onClick:V.default.func.isRequired,onClickBtn:V.default.func,selectedCleaners:V.default.shape({}).isRequired,currentUserId:V.default.string.isRequired,proMarketProperty:V.default.bool};function mS({children:e,title:t,noBorder:n}){return(0,K.jsxs)(`div`,{className:fS(`jobrequest__cleanerbox`,{"jobrequest__cleanerbox--noborder":n}),children:[t&&(0,K.jsx)(`div`,{className:fS(`jobrequest__cleanerbox-title`),children:t}),e]})}function hS(e){return e<=15?`color--rt-green`:e>15&&e<240?`color--rt-orange`:e>=240?`color--rt-red`:`color--black`}var gS=({responseTime:e,size:t=`small`})=>{let n=t===`small`?`txt--l6`:`txt--l5`,r=e&&e>0?Lc(e):U(`job_request.na_na`);return(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`left`},children:[(0,K.jsx)(at,{sx:{fontSize:18,color:`var(--color-text-secondary)`}}),(0,K.jsx)(wm,{type:`horizontal`,size:`10px`}),(0,K.jsxs)(mj,{componentClass:`span`,modifier:[n,`color--black`],children:[U(`job_request.typical_reponse`),`:`]}),(0,K.jsx)(wm,{type:`horizontal`,size:`10px`}),(0,K.jsx)(mj,{componentClass:`span`,modifier:[n,hS(e)],children:r})]})};function _S(e,t){return(0,If.default)(t,(t,n)=>(n&&(0,eb.default)(e,n)!==-1&&t.push({id:n}),t),[])}var vS=({badges:e,size:t=`small`})=>(0,K.jsx)(I,{sx:{display:`flex`},children:(0,H.default)(e,({id:e})=>(0,K.jsxs)(I,{sx:{display:`flex`},children:[(0,K.jsx)(Pd,{badgeId:e,size:t}),(0,K.jsx)(wm,{type:`horizontal`,size:`8px`})]},e))}),yS=(0,B.memo)(function({isOpen:e,config:t,cleaner:n,onOpenImageSlider:r}){let i=n instanceof dS,a=!!n?.contactId,o;o=i?n:a?n.profile:{};let{listSuggestedCleaner:s}=n,c=o||{},l=(0,G.default)(c,[`userData`,`email`]),u=(0,G.default)(c,[`userData`,`phone`]),d=(0,G.default)(t,[`badgeOrder`]),f=(0,G.default)(c,[`userData`,`bio`]),p=(0,G.default)(c,[`badges`],[]),m=(0,G.default)(c,[`userData`,`firstName`]),h=(c.offeredServices||[]).map(pa).join(`, `),g=_S(p,d);return e?(0,K.jsxs)(`div`,{children:[(0,K.jsx)(mS,{noBorder:!0,children:(0,K.jsx)(gS,{responseTime:c.responseTime})}),f&&(0,K.jsxs)(mS,{title:U(`job_request.about_user`),children:[`\xA0`,f]}),!s&&(0,K.jsxs)(mS,{title:U(`account.contact`),children:[l&&(0,K.jsx)(`div`,{children:l}),u&&(0,K.jsx)(`div`,{children:u})]}),g.length>0&&(0,K.jsx)(mS,{title:U(`job_request.badges_title`),children:(0,K.jsx)(vS,{badges:g})}),h&&(0,K.jsx)(mS,{title:U(`job_request.services_user`),children:h}),c.propertyPhotos&&c.propertyPhotos.length>0&&(0,K.jsx)(mS,{title:U(`contacts.properties_cleaned`,{name:m}),children:(0,K.jsx)(Dx,{itemsPerRow:3,height:44,onClick:r,images:c.propertyPhotos})})]}):null});yS.propTypes={cleaner:V.default.oneOfType([V.default.instanceOf(dS).isRequired,V.default.object.isRequired]).isRequired};var bS=_i.default.bind(nS);function xS(e){return(0,K.jsx)(`div`,{className:bS(`job-request__price`),children:e.children})}function SS(e){return(0,K.jsx)(`div`,{className:bS(`job-request__price-info`,{"job-request__price-info--small":e.isSmall}),children:e.children})}var CS=_i.default.bind(nS);function wS({isActive:e,number:t,isHovered:n,isBlue:r,isDisabled:i,isClickable:a}){return(0,K.jsxs)(`div`,{className:CS(`checkable__check`,{"checkable__check--hover":n,"checkable__check--active":e,"checkable__check--blue":r,"checkable__check--disabled":!a||i}),children:[e&&t&&(0,K.jsx)(`span`,{children:t}),(e&&!t||!a&&!i)&&(0,K.jsx)(Y.IcCheckicon,{})]})}function TS({children:e,isActive:t,type:n,number:r,onChange:i,isBlue:a,isDisabled:o,isClickable:s=!0,isHoverable:c=!0,hasClickHole:l=!0,sendMoreMode:u,...d}){let{isHovered:f,hoverProps:p}=Pp();return(0,K.jsxs)(`label`,{...d,...p,className:CS(`checkable`,{"checkable--hovered":c&&f,"checkable--active":t,"checkable--blue":a,"checkable--disabled":o,"checkable--notclickable":!s,"checkable--fullwidth":n===`fullwidth`}),children:[l&&(0,K.jsx)(`div`,{className:CS(`checkable__post-check`),children:(0,K.jsx)(wS,{isHovered:c&&f,isActive:t,isBlue:a,isDisabled:o,number:r,isClickable:s})}),e,(0,K.jsx)(`input`,{className:CS(`checkable__checkbox`),onChange:(s||u&&o)&&i||Fu.default,checked:!!t,type:`checkbox`})]})}var ES=_i.default.bind(nS);function DS({type:e,picType:t=`normal`,txtMod:n={},liftPic:r,order:i=[`text`,`pic`],showProBadge:a=!1,probadgeAlignmentOverride:o=!1,...s}){let c=()=>t===`custom`?s.pic:s.pic?(0,K.jsx)(Sg.Small,{pic:s.pic}):(0,K.jsx)(I,{sx:{width:`48px`,height:`48px`,"& > div":{width:`48px`,height:`48px`}},children:(0,K.jsx)(Qd,{text:Ko(s.l1),type:`community`})});return(0,K.jsx)(`div`,{className:ES(`jobinfo`,{"jobinfo--cleaner":e===`cleaner`}),children:(0,H.default)(i,(t,l)=>t===`pic`?(0,K.jsxs)(`div`,{className:ES(`jobinfo__pic`,{"jobinfo__pic--lift":r}),children:[c(),a&&(0,K.jsx)(`div`,{className:ES(`jobinfo__properlypro`,{"jobinfo__properlypro--override":o}),children:(0,K.jsx)(ef,{small:!0,withTooltip:e===`cleaner`})})]},l):t===`text`?(0,K.jsxs)(`div`,{className:ES(`jobinfo__txt`,{"j
263obinfo__txt--widthpic":n.withpic}),style:{paddingLeft:l===i.length-1?10:0,paddingRight:l===0?10:0},children:[(0,K.jsx)(iS,{cutText:!0,children:s.l1}),(0,K.jsx)(aS,{cutText:!0,children:s.l2}),(0,K.jsx)(oS,{cutText:!0,children:s.l3})]},l):null)})}function OS({row:e,key:t,style:n,ctx:{handleClick:r,isActiveFunc:i,isDisabledFunc:a,isHoverableFunc:o,hasClickHoleFunc:s,isClickableFunc:c}}){return(0,K.jsx)(tx.GridRow,{style:n,spacing:`12`,children:(0,H.default)(e,(e,t)=>{let n=zo(e);return(0,K.jsx)(tx.GridItem,{spacing:`12`,itemPerRow:`2`,children:(0,K.jsx)(TS,{"data-testid":`jobrequestsend_propertyitem`,onChange:r(e),isActive:i(e),isDisabled:a(e),isHoverable:o(e),hasClickHole:s(e),isClickable:c(e),children:(0,K.jsx)(DS,{order:[`pic`,`text`],txtMod:{withpic:!0},l1:n.l1,l2:n.l2,l3:n.l3,pic:n.pic,showProBadge:e?.proMarketProperty})})},t)})},t)}function kS({properties:e,handleClick:t,isActiveFunc:n,isDisabledFunc:r=()=>!1,isClickableFunc:i=()=>!0,isHoverableFunc:a=()=>!0,hasClickHoleFunc:o=()=>!0,height:s,width:c}){let l=(0,wx.default)(e.filter(e=>!e?.failedAtRecurly),2);return(0,K.jsx)(`div`,{"data-testid":`job-request-property-list`,children:(0,K.jsx)(ui,{height:s,rowHeight:86,rowCount:l.length,rowRenderer:Co({data:l,handler:OS,ctx:{handleClick:t,isActiveFunc:n,isDisabledFunc:r,isClickableFunc:i,isHoverableFunc:a,hasClickHoleFunc:o}}),width:c})})}var AS=_i.default.bind(nS);function jS({children:e}){return(0,K.jsx)(`div`,{className:AS(`job-request-content`),children:e})}function MS({id:e,children:t}){return(0,K.jsx)(`div`,{id:e,className:AS(`jobrequest__contentwrap`),children:t})}function NS({left:e,top:t,right:n,bottom:r,children:i,flexGrow:a,isFlex:o,isRelative:s,minHeight:c,style:l}){return(0,K.jsx)(I,{sx:{paddingLeft:e,paddingRight:n,paddingTop:t,paddingBottom:r,minHeight:c,...l},className:AS(`jobrequest__spacerwrap`,{"jobrequest__spacerwrap--growflex":a,"jobrequest__spacerwrap--flex":o,"jobrequest__spacerwrap--isrelative":s}),children:i})}function PS({icon:e}){return(0,K.jsx)(e,{className:AS(`jobrequest__icon`)})}function FS({children:e}){return(0,K.jsx)(`div`,{className:AS(`jobrequest__centerflex`),children:e})}var IS=({children:e})=>(0,K.jsx)(`div`,{className:AS(`job-request-wrap`),id:`jobrequestflow`,children:e}),LS=({children:e,disableClick:t})=>(0,K.jsxs)(`div`,{className:AS(`job-request-sidebar`),children:[e,t&&(0,K.jsx)(`div`,{className:AS(`job-request-sidebar__overlay`)})]}),RS=({hideLoader:e})=>(0,K.jsxs)(`div`,{className:AS(`loading-overlay`),children:[(0,K.jsx)(`div`,{className:AS(`loading-overlay__bg`)}),(0,K.jsx)(I,{sx:{marginLeft:`320px`},children:!e&&(0,K.jsx)(hf,{})})]});function zS({nextText:e,disabledNext:t,onClickNext:n,title:r,backText:i,canNext:a,canBack:o,onClickBack:s,nextIsLoading:c}){return(0,K.jsxs)(`div`,{className:AS(`topbar`),children:[(0,K.jsx)(`div`,{className:AS(`topbar__title`),children:(0,K.jsx)(`span`,{children:r})}),(0,K.jsx)(`div`,{className:AS(`topbar__btns`,`topbar__btns--left`),children:o&&(0,K.jsx)(q,{"data-testid":`headbar_go_back`,onClick:s,types:[`type-border-primary`,`size-large`,`height-36`,`border-trans`,`background-trans`,`padding-no`,`miwidth-0`,`fontw-normal`],children:i})}),(0,K.jsx)(`div`,{className:AS(`topbar__btns`,`topbar__btns--right`),children:a&&(0,K.jsxs)(q,{"data-testid":`headbar_go_next`,disabled:t||c,onClick:t?Fu.default:n,types:[`type-full-primary`,`size-medium`],children:[!c&&e,c&&(0,K.jsx)(hf,{type:`white`})]})})]})}
263function BS({title:e,belowTitle:t}){return(0,K.jsxs)(`div`,{className:AS(`topbar`,`topbar--bright`),children:[(0,K.jsx)(`div`,{title:e,className:AS(`topbar__title`,`topbar__title--lefttop`),children:(0,K.jsx)(`span`,{children:e})}),t]})}var VS=_i.default.bind(nS),HS=({children:e,isActive:t,title:n,onClick:r,isDisabled:i,id:a,isSmall:o,isTitleRequired:s,modifiers:c,...l})=>{let{isHovered:u,hoverProps:d}=Pp();return(0,K.jsxs)(`button`,{type:`button`,...l,...d,"data-testid":`sidebarsendjob-${a}`,disabled:i,onClick:i?void 0:r,className:VS(`job-request-sidebar-box`,{"job-request-sidebar-box--active":t,"job-request-sidebar-box--hover":u,"job-request-sidebar-box--disabled":i,"job-request-sidebar-box--small":o},(0,H.default)(c,e=>`job-request-sidebar-box--${e}`)),children:[(0,K.jsx)(`div`,{className:VS(`job-request-sidebar-box__title`,{"job-request-sidebar-box--istitlerequired":s}),children:n}),(0,K.jsx)(`div`,{className:VS(`job-request-sidebar-box__inner`),children:e}),t&&(0,K.jsx)(`div`,{className:VS(`job-request-sidebar-box__indicator`)}),i&&(0,K.jsx)(`div`,{className:VS(`job-request-sidebar-box__overlay`)})]})},US=()=>(0,K.jsx)(`div`,{className:VS(`job-request-sidebar-box__empty`),children:`-`}),WS=_i.default.bind(nS);function GS({popoverContent:e,closePopup:t}){return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`span`,{className:WS(`job-request-popover__text`),children:e}),(0,K.jsx)(_m,{}),(0,K.jsx)(q,{styleOverwrite:{margin:`0 auto`},types:[`type-border-grey`,`size-small`],onClick:t,children:U(`checklist.close`)})]})}function KS({children:e,popoverContent:t,width:n,arrowPosition:r,hasPadding:i,hasArrow:a}){return(0,K.jsx)(`div`,{className:WS(`job-request-popover`),children:(0,K.jsx)(Lg,{popoverKey:`jobRequestPopover`,width:n,hasPadding:i,hasArrow:a,arrowPosition:r,popoverContent:e=>(0,K.jsx)(GS,{popoverContent:t,closePopup:e.closePopup}),children:e})})}var qS=_i.default.bind(nS);function JS({text:e,rightComponent:t,paddingRight:n}){return(0,K.jsxs)(I,{className:qS(`job-request-permission`),sx:{paddingRight:n},children:[(0,K.jsx)(iS,{cutText:!0,children:e}),(0,K.jsx)(`div`,{className:qS(`job-request-permission__right`),children:t()})]})}var YS=({children:e,selected:t,onClick:n,disabled:r})=>(0,K.jsxs)(`div`,{className:qS(`permission-box`,{"permission-box--selected":t}),onClick:!r&&n||Fu.default,children:[e,(0,K.jsx)(`div`,{className:qS(`permission-box__checkable`),children:(0,K.jsx)(Dp,{onChange:Fu.default,selected:t,disabled:r})})]}),XS=`var(--color-warning, #f59e0b)`,ZS=`var(--color-error, #ef4444)`,QS=`var(--color-text-tertiary, #9ca3af)`,$S=({cleaner:e,onRemove:t=()=>{}})=>{let n=!e.isExternal,{status:r}=e,i={[Ua.Pending]:{dot:XS,label:U(`jobdetails.pending`)},[Ua.PendingChanges]:{dot:XS,label:U(`jobdetails.pendingChanges`)},[Ua.Viewed]:{dot:XS,label:U(`jobstatus.seen`)},[Ua.Declined]:{dot:ZS,label:U(`jobdetails.declined`)},[Ua.DeclinedChanges]:{dot:ZS,label:U(`jobdetails.declined`)},[Ua.CanceledByHost]:{dot:ZS,label:U(`jobdetails.canceled`)},[Ua.CanceledByCleaner]:{dot:ZS,label:U(`jobdetails.canceled`)},[Ua.AcceptedByOtherCleaner]:{dot:QS,label:U(`jobstatus.accepted_by_other_user`)}},a={dot:`#888780`,label:r},o=r?i[r]??a:null,s=`${e.userData?.firstName??``} ${e.userData?.lastName??``}`.trim();return(0,K.jsx)(Ig,{title:e.isExternal?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{children:s}),(0,K.jsx)(I,{sx:{opacity:.7,fontSize:`11px`,marginTop:`2px`},children:U(`job_request.assigned_external_cleaner`)})]}):s,children:(0,K.jsxs)(I,{"data-testid":`assigned-cleaner-chip`,"data-testid-id":e.userData?.objectId,"data-testid-is-own":n,sx:{display:`inline-flex`,alignItems:`center`,gap:`7px`,padding:`5px 9px 5px 5px`,borderRadius:`999px`,border:`1px solid`,borderColor:n?`var(--color-primary)`:`var(--color-grey)`,background:n?`var(--color-white)`:`rgba(29, 39, 48, 0.04)`,minWidth:`140px`,maxWidth:`140px`,transition:`border-color 0.15s ease`},children:[(0,K.jsx)(Qd,{picture:e.userData?.pictureIdentifier,text:ms(e),type:`assignedCleaner`}),(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,minWidth:`67px`},children:[(0,K.jsx)(I,{component:`span`,title:s,sx:{fontSize:`12px`,fontWeight:500,color:n?`var(--color-black)`:`var(--color-grey)`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`110px`,lineHeight:1.2},children:s}
263),o&&(0,K.jsxs)(I,{component:`span`,sx:{display:`flex`,alignItems:`center`,gap:`4px`,fontSize:`10px`,color:`var(--color-grey)`,marginTop:`2px`,lineHeight:1},children:[(0,K.jsx)(I,{component:`span`,sx:{display:`inline-block`,width:`6px`,height:`6px`,borderRadius:`50%`,flexShrink:0,backgroundColor:o.dot}}),o.label]})]}),n?(0,K.jsx)(br,{size:`small`,onClick:()=>t(e),"aria-label":`Remove ${s}`,"data-testid":`assigned-cleaner-remove`,sx:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:`16px`,height:`16px`,minWidth:`16px`,borderRadius:`50%`,border:`none`,color:`var(--color-grey)`,cursor:`pointer`,padding:0,marginLeft:`1px`,transition:`background 0.15s ease, color 0.15s ease`,"&:hover":{color:`var(--color-black)`,background:`none`}},children:(0,K.jsx)(Y.IcCloseLightGray,{})}):(0,K.jsx)(Y.IcPinLock,{style:{color:`var(--color-grey)`,width:`20px`,height:`20px`}})]})})};$S.propTypes={cleaner:V.default.shape({isExternal:V.default.bool,status:V.default.string,userData:V.default.shape({firstName:V.default.string,lastName:V.default.string,pictureIdentifier:V.default.string,objectId:V.default.string})}).isRequired,onRemove:V.default.func};var eC=({cleaners:e={},onRemove:t=()=>{}})=>{let n=Object.values(e).filter(Boolean),[r,i]=(0,B.useState)(!1);if(!n.length)return null;let a=r?n:n.slice(0,3),o=n.length-3,s=n.length>3;return(0,K.jsx)(I,{sx:{display:`grid`,gridTemplateColumns:`repeat(1, 1fr)`,gap:`12px`,rowGap:0,px:`24px`,py:`10px`,maxHeight:`200px`,overflow:`auto`},children:(0,K.jsxs)(I,{"data-testid":`assigned-cleaners-section`,children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,mb:`10px`},children:[(0,K.jsxs)(I,{component:`span`,sx:{display:`flex`,alignItems:`center`,gap:`6px`,color:`var(--color-text-secondary, #6b7280)`,letterSpacing:`0.05em`,fontSize:`12px`,fontWeight:500,padding:`5px 0px 5px 5px`},children:[U(`job_request.assigned_cleaners`),(0,K.jsx)(I,{component:`span`,sx:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,minWidth:`18px`,height:`18px`,padding:`0 5px`,borderRadius:`999px`,background:`rgba(29, 39, 48, 0.08)`,fontSize:`10px`,fontWeight:500,color:`var(--color-text-secondary, #6b7280)`},children:n.length})]}),s&&(0,K.jsx)(I,{component:`button`,onClick:()=>i(e=>!e),"aria-expanded":r,"data-testid":`assigned-cleaners-toggle`,sx:{background:`none`,border:`none`,padding:0,fontSize:`11px`,fontWeight:500,color:`var(--color-primary, #1D9E75)`,cursor:`pointer`,lineHeight:1,"&:hover":{opacity:.75}},children:U(r?`job_request.assigned_cleaners_collapse`:`job_request.assigned_cleaners_show_all`)})]}),(0,K.jsxs)(I,{sx:{display:`flex`,flexWrap:`wrap`,gap:`7px`,alignItems:`center`,paddingBottom:`10px`},children:[a.map(e=>{let n=e.userData?.objectId;return(0,K.jsx)($S,{cleaner:e,onRemove:t},n)}),!r&&s&&(0,K.jsxs)(I,{component:`button`,onClick:()=>i(!0),"data-testid":`assigned-cleaners-more`,sx:{display:`inline-flex`,alignItems:`center`,gap:`5px`,padding:`5px 12px`,borderRadius:`999px`,border:`0.5px dashed rgba(29, 39, 48, 0.25)`,background:`transparent`,fontSize:`12px`,fontWeight:500,color:`rgba(29, 39, 48, 0.5)`,cursor:`pointer`,transition:`background 0.15s ease, color 0.15s ease`,"&:hover":{background:`rgba(29, 39, 48, 0.05)`,color:`rgba(29, 39, 48, 0.75)`}},children:[`+`,o,` `,U(`job_request.assigned_cleaners_more`)]})]})]})})};eC.propTypes={cleaners:V.default.object,onRemove:V.default.func};var tC=({children:e=null,finalPrice:t,setPrice:n,offeredPriceLimit:r,parseNumber:i,finalCurrency:a})=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Cm,{}),(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`center`,alignItems:`center`},children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Yf,{currency:a,value:t===0?``:t,autoFocus:!0,"data-testid":`jobrequestsend_price`,placeholder:U(`job_request.enter_price`),styleOverwrite:{backgroundColor:`var(--color-white)`},onKeyDown:e=>e.key===`.`&&e.preventDefault(),onChange:e=>e.target.value<=r?i(e.target.value,n(e)):null,isFirst:!0,isLast:!0,type:`price`}),e]})})]});tC.propTypes={children:V.default.node,finalPrice:V.default.oneOfType([
263V.default.number,V.default.string]).isRequired,setPrice:V.default.func.isRequired,offeredPriceLimit:V.default.number.isRequired,parseNumber:V.default.func.isRequired,finalCurrency:V.default.string.isRequired};var nC=_i.default.bind({"job-c-section":`_job-c-section_qhjnr_2`,jobCSection:`_job-c-section_qhjnr_2`,"job-c-section--clickable":`_job-c-section--clickable_qhjnr_8`,jobCSectionClickable:`_job-c-section--clickable_qhjnr_8`,"job-c-section__inner":`_job-c-section__inner_qhjnr_12`,jobCSectionInner:`_job-c-section__inner_qhjnr_12`,"job-c-section__content":`_job-c-section__content_qhjnr_18`,jobCSectionContent:`_job-c-section__content_qhjnr_18`,"job-c-section__content--bigger":`_job-c-section__content--bigger_qhjnr_23`,jobCSectionContentBigger:`_job-c-section__content--bigger_qhjnr_23`,"job-c-section__content--grey":`_job-c-section__content--grey_qhjnr_27`,jobCSectionContentGrey:`_job-c-section__content--grey_qhjnr_27`,"job-c-section__btn":`_job-c-section__btn_qhjnr_33`,jobCSectionBtn:`_job-c-section__btn_qhjnr_33`,"job-c-section__icon":`_job-c-section__icon_qhjnr_38`,jobCSectionIcon:`_job-c-section__icon_qhjnr_38`,"job-c-section__icon--disabled":`_job-c-section__icon--disabled_qhjnr_54`,jobCSectionIconDisabled:`_job-c-section__icon--disabled_qhjnr_54`,"job-c-section__name":`_job-c-section__name_qhjnr_60`,jobCSectionName:`_job-c-section__name_qhjnr_60`,"job-c-section__name--withauto":`_job-c-section__name--withauto_qhjnr_64`,jobCSectionNameWithauto:`_job-c-section__name--withauto_qhjnr_64`,"job-c-section__name--big":`_job-c-section__name--big_qhjnr_67`,jobCSectionNameBig:`_job-c-section__name--big_qhjnr_67`}),rC=({active:e,open:t,name:n,nameActive:r,children:i,disabled:a,onClick:o,canNext:s,disabledNext:c,onClickNext:l,nextText:u,disabledButShow:d,nameWidthAuto:f,...p})=>{let m=e?r:n;return(0,K.jsxs)(`div`,{"data-testid":p[`data-testid`],className:nC(`job-c-section`,{"job-c-section--clickable":!a}),onClick:a?()=>{}:o,children:[(0,K.jsx)(Dm,{type:[`bottom`,`light`]}),(0,K.jsxs)(`div`,{className:nC(`job-c-section__inner`),children:[(0,K.jsxs)(`div`,{className:nC(`job-c-section__name`,{"job-c-section__name--withauto":f}),children:[!a&&e&&(0,K.jsx)(Yg,{type:`orange`,children:m}),!a&&!e&&(0,K.jsx)(Yg,{children:m}),a&&(0,K.jsx)(Yg,{type:`greylight`,children:m})]}),(!a||d)&&(0,K.jsx)(`div`,{className:nC(`job-c-section__content`,{"job-c-section__content--bigger":s,"job-c-section__content--grey":d}),children:i}),a&&!d&&(0,K.jsx)(`div`,{className:nC(`job-c-section__icon`,`job-c-section__icon--disabled`),children:(0,K.jsx)(Y.IcExpandMore,{})}),!a&&!(s&&t)&&(0,K.jsx)(`div`,{className:nC(`job-c-section__icon`),children:t?(0,K.jsx)(Y.IcExpandLess,{}):(0,K.jsx)(Y.IcExpandMore,{})}),s&&t&&(0,K.jsx)(`div`,{className:nC(`job-c-section__btn`),children:(0,K.jsx)(q,{disabled:c,onClick:a?()=>{}:e=>{e.stopPropagation(),l()},types:[`type-full-primary`,`size-medium`,`height-32`],children:u})})]})]})};rC.Checkbox=({title:e,onClick:t,isSelected:n})=>(0,K.jsxs)(`div`,{className:nC(`job-c-section`),children:[(0,K.jsx)(Dm,{type:[`bottom`,`light`]}),(0,K.jsxs)(`div`,{className:nC(`job-c-section__inner`),children:[(0,K.jsx)(`div`,{className:nC(`job-c-section__name`,`job-c-section__name--big`),children:(0,K.jsx)(Yg,{children:e})}),(0,K.jsx)(`div`,{className:nC(`job-c-section__icon`),children:(0,K.jsx)(Dp,{style:{height:18,width:18},type:`quarter`,selected:n,onChange:t})})]})]}),rC.NormalTxt=({children:e})=>(0,K.jsx)(Yg,{type:`greyloading`,children:e}),rC.LightTxt=({children:e})=>(0,K.jsx)(Yg,{type:`noresult`,children:e}),rC.propTypes={active:V.default.bool,open:V.default.bool,nextText:V.default.string.isRequired,disabled:V.default.bool,disabledButShow:V.default.bool,disabledNext:V.default.bool,name:V.default.string.isRequired,nameActive:V.default.string.isRequired,onClick:V.default.func,onClickNext:V.default.func,children:V.default.node};var iC=e($ee()),aC=e(S()),oC=e(see()),sC={index:{},setIndex(e,t){this.index[e]=t},getIndex(e){return this.index[e]?this.index[e]:(R.default.error(`index not found`,e),{search:()=>[],query:()=>[]})}},cC={maxCountSetupSupport:1,maxCountOwnerAccess:-1,maxCountServiceProviderAccess:-1,partnerModule:!0},lC={maxCountSetupSupport:1,maxCountOwnerAccess:0,maxCountServiceProviderAccess:0,partnerModule:!0};function uC({isFullPartnerMode:e,companyModule:t}){return e?{...cC,companyModule:t}:{...lC,companyModule:t}}var dC={allRights:!0,createChecklists:!0,createProperties:!0,seeAllProperties:!0,seeCleanerNames:!0,seePrice:!0,seeProblems:!0,seeVerificationPhotos:!0,sendJobs:!0};
263function fC(e,t,n){return!e||!t?!1:e.ownerRole===fo(t)||n}function pC(e,t){return!e||!t?!1:e.assignedToUserId===t.objectId}function mC(e,t){return!e||!t?!1:e.hostId===t.objectId||e.senderId===t.objectId}function hC(e,t,n,r){return!!(fC(e,t,r)||pC(n,t)||mC(n,t))}function gC(e,t,n,r){return hC(e,t,n,r)&&fC(e,t,r)}function _C(e,t){return!!(e||!e&&t)}function vC({propertyOwner:e,user:t}){return(0,G.default)((0,G.default)(t,[`teams`],{}),[e,`rights`],dC)}function yC({propertyOwner:e,user:t}){return(0,G.default)(vC({propertyOwner:e,user:t}),[`sendJobs`],!1)}function bC({propertyOwner:e,user:t}){return(0,G.default)(vC({propertyOwner:e,user:t}),[`seeCleanerNames`],!0)}function xC(e){let t=(0,G.default)(e,[`user`]),n=(0,G.default)(e,[`jobrequest`]),r=(0,G.default)(e,[`property`]),i=(0,G.default)(e,[`user`,`teams`],{}),a=(0,G.default)(e,[`user`,`isStandaloneUser`],!1),o=(0,G.default)(e,[`user`,`subscription`,`features`],``),s=(0,G.default)(e,[`user`,`subscription`,`currentPlanId`]),c=a&&s===oo.STAFF,l=o?.includes(s_.fullPartnerMode),u=(0,G.default)(e,[`property`,`ownerRole`]),d=vC({propertyOwner:u,user:e.user}),f=fo(e.user),p=(0,G.default)(i,[f,`rights`],dC),m=(0,G.default)(i,[f,`name`]),h=(0,G.default)(p,[`seeAllProperties`],!1),g=(0,G.default)(p,[`sendJobs`],!1),_=(0,G.default)(d,[`seeAllProperties`],!1),v=(0,G.default)(d,[`partnerFeedback`],!1);return{canSeeFullNav:a,isStandalone:a,teamName:m||``,canSendJobs:yC({user:e.user,propertyOwner:u}),seeCleanerNames:bC({user:e.user,propertyOwner:u}),seeVerificationPhotos:(0,G.default)(d,[`seeVerificationPhotos`],!1),canCreateChecklists:(0,G.default)(d,[`createChecklists`],!1),canSendJobsGlobal:(0,G.default)(p,[`sendJobs`],!1),canSeePriceAndPayments:(0,G.default)(d,[`seePrice`],!1),hasAllRights:(0,G.default)(p,[`allRights`],!1),canEditThisProperty:(0,G.default)(d,[`createProperties`],!1),hasAllRightsForProperty:(0,G.default)(d,[`allRights`],!1),isOwnerProperty:r&&cc(r.ownerRole,t),canForwardJobs:(0,G.default)(p,[`forwardJobs`],!1),canAcceptJobs:(0,G.default)(p,[`acceptJobs`],!1),canSeeTaskLeftPhotos:(0,G.default)(d,[`seeVerificationPhotos`],!1),canCreateProperties:h&&!c,canUpgradeToCreateProperties:h&&c,canEditDeleteProperty:_,isFullPartnerMode:l,settingsUandP:uC({isFullPartnerMode:l,companyModule:o?.includes(s_.companyModule)}),canViewThumbsUpComments:hC(r,t,n,v),canEditThumbsUpComments:gC(r,t,n,v),canSeeReportsIconSidebar:_C(a,g)}}var SC=t({isPropertyInactive:()=>rw,jobRequestsOfContact:()=>Bme,mapJobRequestWithContacts:()=>tw,selectCleanerRequests:()=>JC,selectCollGroupedByType:()=>fw,selectCollaborators:()=>HC,selectConfig:()=>sw,selectContact:()=>cw,selectContactMemorized:()=>zme,selectContacts:()=>KC,selectContactsSearch:()=>Kme,selectCurrentUser:()=>FC,selectCurrentUserEmail:()=>DC,selectCurrentUserId:()=>EC,selectCurrentUserLoggedIn:()=>jC,selectCurrentUserLoggingOut:()=>MC,selectCurrentUserName:()=>OC,selectCurrentUserSignupAt:()=>AC,selectCurrentUserSubscription:()=>IC,selectCurrentUserTeams:()=>kC,selectEntryDataByCollectionName:()=>Rme,selectFilteredCollaborators:()=>uw,selectGlobal:()=>CC,selectGlobalHasAccess:()=>ZC,selectGlobalModal:()=>pw,selectGlobalModalResolved:()=>mw,selectGlobalPersistent:()=>wC,selectHasInvitedPartners:()=>dw,selectIfProMarketPropertyExists:()=>VC,selectInactiveProperties:()=>iw,selectIsUserAllowedFeature:()=>Aw,selectJobLoadingState:()=>xw,selectJobRequest:()=>aw,selectJobRequestData:()=>XC,selectJobRequestSend:()=>YC,selectJobRequestWithCleaners:()=>ew,selectJobRequests:()=>qC,selectJobRequestsWithCleaners:()=>$C,selectJobs:()=>WC,selectJobsByProperty:()=>Lme,selectLoadingState:()=>bw,selectLoadingStateMeta:()=>Ew,selectMoreReducer:()=>ow,selectOwnerProperties:()=>RC,selectPhotoFeedback:()=>Sw,selectPhotoFeedbackById:()=>Hme,selectPhotoFeedbackByJobRequest:()=>ww,selectPhotoGroupedByImageId:()=>Tw,selectPlans:()=>Ime,selectPreloadStatus:()=>hw,selectProperties:()=>PC,selectPropertiesByAllowedSendJobs:()=>zC,selectPropertiesFiltered:()=>LC,selectPropertiesIdsByAllowedSendJobs:()=>BC,selectPropertiesSearch:()=>Gme,selectProperty:()=>nw,selectPropertyCollaborators:()=>yw,selectPropertyMemorized:()=>lw,selectRedirectLocation:()=>TC,selectReports:()=>Pme,selectSearch:()=>Ow,selectSearchData:()=>kw,selectSearchQuery:()=>gw,selectSkills:()=>GC,selectSlider:()=>_w,selectTeams:()=>UC,selectTrigger:()=>Fme,selectUserEmailAutoPopulate:()=>NC,selectUserPlanData:()=>QC,selectVericationPhotosOfJobRequest:()=>Cw}),CC=e=>e.globalReducer,wC=e=>e.globalReducer.persistent,TC=A(CC,e=>e.persistent?.redirectLocation),EC=e=>(0,G.default)(e.currentUser,[`user`,`objectId`]),DC=e=>(0,G.default)(e.currentUser,[`user`,`email`]),OC=e=>(0,G.default)(e.currentUser,[`user`,`firstName`]),kC=e=>(0,G.default)(e.currentUser,[`user`,`teams`]),AC=e=>(0,G.default)(e.currentUser,[`user`,`signUpAt`]),jC=e=>(0,G.default)(e.currentUser,[`isLoggedIn`]),MC=e=>
263(0,G.default)(e.currentUser,[`isLoggingOut`]),NC=e=>(0,G.default)(e.currentUser,[`userEmail`]),PC=A(CC,e=>e.persistent?.properties?.data),FC=A(e=>e.currentUser,e=>(0,G.default)(e,[`user`])),IC=A(FC,e=>(0,G.default)(e,[`subscription`])),LC=A(PC,e=>(0,oC.default)(e||{},e=>!e.deleted&&!e.sample&&!e.mergedTo&&!e.toBeDeleted)),RC=A(PC,FC,(e,t)=>(0,oC.default)(e||{},e=>!e.deleted&&cc(e.ownerRole,t)&&!e.mergedTo&&!e.toBeDeleted&&!e.sample)),zC=A(LC,FC,(e,t)=>(0,oC.default)(e,e=>yC({propertyOwner:e.ownerRole,user:t}))),BC=A(zC,e=>(0,gx.default)(e).map(e=>e.objectId)),VC=A(zC,e=>(0,gx.default)(e).some(e=>!!e.proMarketProperty)),Pme=A(CC,e=>e.persistent?.reports?.data),HC=A(CC,e=>e.persistent?.collaborators?.data),UC=A(CC,e=>e.persistent?.teams?.data),WC=e=>e.globalReducer.persistent?.jobs?.data,GC=e=>e.globalReducer.persistent?.skills?.data,Fme=A(CC,e=>e.persistent?.trigger?.data),Ime=e=>e.globalReducer.persistent?.plans?.data,Lme=e=>t=>(0,oC.default)(t.globalReducer.persistent?.jobs?.data||{},t=>t.defaultProperty===e),KC=e=>e.globalReducer.persistent?.contacts?.data,Rme=(e,t)=>n=>n.globalReducer.persistent?.[e]?.data?.[t],qC=A(CC,e=>e.persistent?.jobRequests?.data),JC=A(CC,e=>e.persistent?.cleanerRequest?.data),YC=e=>e.jobRequestSend,XC=A(YC,e=>e?.jobRequestData),ZC=A(FC,e=>xC({user:e})),QC=A(e=>e.currentUser,e=>e&&e.user&&e.user.subscription&&e.user.subscription.currentPlanId?{userData:e.user}:(R.default.info(`selectUserPlanData - invalid 1`),!1)),$C=A(qC,KC,(e,t)=>t.contactId,(e,t,n)=>(0,If.default)(e||{},(e,t)=>(t.propertyId===n&&e.push(t),e),[]),{memoize:ae,argsMemoize:ae}),ew=e=>A(qC,KC,(t,n)=>{let r=n||{},i=t?.[e];if(!i)return;let a=(0,H.default)(i.requestedCleaners,e=>({...e,contact:r[e.contactId]}));return{...i,requestedCleaners:a}}),tw=e=>A(KC,t=>{let n=t||{};if(!e)return;let r=(0,H.default)(e.recipients,e=>{let t=(0,fc.default)(n,t=>t.userData.objectId===e.id);return{...e,contact:t,contactId:t.objectId}});return{...e,recipients:r}}),nw=e=>A(PC,t=>t?.[e]),rw=e=>A(PC,t=>t?.[e]?.failedAtRecurly),iw=A(PC,e=>(0,oC.default)(e||{},e=>e.failedAtRecurly===!0)),aw=e=>A(qC,t=>t?.[e]),ow=e=>e.moreReducer,sw=A(ow,e=>e?.parseConfig),cw=e=>A(KC,t=>t?.[e]),zme=()=>A(KC,(e,t)=>t.id,(e,t)=>e?.[t]),lw=()=>A(PC,(e,t)=>t.id,(e,t)=>e?.[t]),Bme=e=>A(qC,t=>(0,oC.default)(t||{},t=>(0,fc.default)(t.requestedCleaners,{contactId:e})!==void 0)),uw=A(HC,FC,(e,t)=>{let n={},r=e||{};return n.internal=(0,xo.default)(r,e=>go(e)===`internal`&&e.userId!==t.objectId),n.external=(0,xo.default)(r,e=>go(e)===`external`&&e.userId!==t.objectId&&e.enabled),n}),dw=A(uw,e=>e.external.length>0),fw=A(uw,e=>(0,n_.default)((0,xo.default)((0,aC.default)(e.internal,e.external),e=>go(e)===`external`),e=>fte(e))),pw=e=>t=>t.moreReducer.modals?.[e],mw=e=>A(pw(e),e=>{let t=e||void 0;return{raw:e,js:t,isOpen:(0,G.default)(t,[`value`]),meta:(0,G.default)(t,[`meta`])}}),hw=e=>e.moreReducer.preloadStatus,gw=e=>t=>t.moreReducer.searchQueries?.[e],_w=e=>e.moreReducer.sliderState;function vw(e,t,n){let r=e||{};return r[t]=n,r}function Vme(e){return(0,If.default)(e,(e,t)=>{let n=t.userData||{},{userId:r}=t,i=(0,G.default)(t,[`rights`,`seeAllProperties`]);return t.internal||(t.properties&&(0,xc.default)(t.properties,t=>{e[t]=vw(e[t],r,n)}),i&&(e.all=vw(e.all,r,n))),e},{})}var yw=A(HC,e=>Vme(e||{})),bw=e=>A(t=>t.moreReducer.loadingStates?.[e],e=>{let t=e?.value;return{isLoading:!t||t===1,isLoadingFull:t===1,isLoaded:t===2,isErrored:t===3,isLoadingPartial:t===-1,errorRaw:t>2?t:!1,isUntouched:t===void 0}}),xw=e=>e.moreReducer.loadingStates?.jobrequest_init?.value,Sw=e=>e.globalReducer.persistent?.photofeedback?.data,Hme=e=>t=>Sw(t)?.[e],Ume=e=>A(aw(e),e=>e?.checklists),Cw=e=>A(Ume(e),e=>e?.map(e=>e?.verificationPhotos)),ww=A(Sw,(e,t)=>t.jobSnapshotId,(e,t)=>(0,oC.default)(e||{},e=>e.jobSnapshotId===t),{memoize:ae,argsMemoize:ae}),Tw=A(A(ww,(e,t)=>t.imageId,(e,t)=>(0,oC.default)(e,e=>e.pictureUrl===t),{memoize:ae,argsMemoize:ae}),e=>{let t=(0,n_.default)((0,gx.default)(e)||[],e=>e.type),n=(0,G.default)(t,[`comment`,0]),r=(0,G.default)(t,[`thumbs`,0]);return{hasComment:!!n,hasUpOrDown:!!r,comment:n,thumbs:r}},{memoize:ae,argsMemoize:ae}),Ew=(e,t)=>n=>n.moreReducer.loadingStates?.[e]?.meta?.[t],Wme=e=>String(e||``),Dw=(e,t)=>{let n=Wme(t),r=e.query(e=>{e.term(iC.default.tokenizer(n),{usePipeline:!0,boost:100}),e.term(iC.default.tokenizer(n),{usePipeline:!1,wildcard:iC.default.Query.wildcard.LEADING|iC.default.Query.wildcard.TRAILING,boost:20}),e.term(iC.default.tokenizer(n),{usePipeline:!1,editDistance:1})}),i=Math.floor(.666*r.length),a=Math.max(r[50]&&i>50&&r[i].score||0,.7);return r.filter(({score:e})=>e>=a)},Ow=(e,t)=>A(t,t=>{let n=sC.getIndex(e),r=t||{};return e=>e?Dw(n,e).map(e=>r[e.ref]):(0,gx.default)(r)}),Gme=A(Ow(`properties`,PC),e=>t=>Lo(Uo(e(t)))),Kme=Ow(`contacts`,KC);function qme(e,t){return(0,H.default)((0,xo.default)(t,t=>e[t.ref]),t=>e[t.ref])}var kw=(e,t,n)=>A(n,gw(t),(t,n)=>{let r=!n||n===``,i=t||{};return{result:r?(0,gx.default)(i):qme(i,Dw(sC.getIndex(e),n)),searchQuery:n}}),Aw=(e,t)=>{let n=e.currentUser?.user?.subscription;return!n||!n.features?!1:n.features.includes(t)},jw=()=>(e,t)=>(0,G.default)(t,[`meta`])||{};function Jme(){return A(FC,jw(),(e,t)=>nw(jw()(e,t).propertyId)(e),(e,t)=>aw(jw()(e,t).jobSnapshotId)(e),(e,t,n,r)=>({...t,user:e,property:n,jobrequest:r}))}var Mw=({meta:e={},hasAccessFormatter:t=()=>!1,render:n,renderWithPermission:r,renderCallee:i})=>{let a=(0,B.useMemo)(()=>Jme(),[]),o=j(t=>a(t,{meta:e})),s=(0,B.useCallback)(e=>xC(e),[]),c=(0,B.useCallback)(e=>{let n=s(e);return{hasAccessRaw:n,hasAccessRes:t(n)}},[s,t]),l=(0,B.useCallback)(e=>{let{hasAccessRes:t}=c({...o,...e});return t},[o,c]);if(r){let{hasAccessRes:e,hasAccessRaw:t}=c(o);if(e)return r(t)}if(n){let{hasAccessRes:e}=c(o);return n(e)}return i?i(l):null};Mw.propTypes={render:V.default.func,renderWithPermission:V.default.func,hasAccessFormatter:V.default.func,renderCallee:V.default.func,meta:V.default.shape({})};var Yme={buttonBase:{padding:`11px 24px`}},Nw=({jobData:e=null,onEdit:t,onCancel:n,onDuplicate:r,iconSize:i=`large`,popoverKey:a=`jobActionsMenu`,showWrapper:o=!1})=>{if(!e)return null;let{propertyId:s}=e,{jobType:c}=e,l=c!==ite,u=Js(e),d=qs(e),f=e=>{let i=[];return u&&l&&i.push({"data-testid":`editJobRequest`,name:U(`jobdetails.edit`),onClick:()=>{nd(`job_action_edit`,{component:`JobActionsMenu`}),t(),e()}}),u&&d&&i.push({"data-testid":`cancelJobRequest`,name:U(`jobdetails.cancel`),onClick:()=>{nd(`job_action_cancel`,{component:`JobActionsMenu`}),n(),e()}}),i.push({"data-testid":`duplicateJobRequest`,name:U(`jobdetails.duplicate`),onClick:()=>{nd(`job_action_duplicate`,{component:`JobActionsMenu`}),r(),e()}}),i},p=(0,K.jsx)(Lg,{popoverKey:a,hasArrow:!0,width:230,popoverContent:e=>(0,K.jsx)(Ad,{closePopover:e.closePopup,items:f(e.closePopup),styleOverwrite:Yme,disableTypography:!0}),children:(0,K.jsx)(`div`,{children:(0,K.jsx)(br,{edge:`end`,"data-testid":`job-actions-menu-button`,size:i,sx:i===`small`?{display:`flex`,alignItems:`center`,justifyContent:`center`,width:32,height:32,padding:0,border:`none`,borderRadius:`6px`,backgroundColor:`transparent`,cursor:`pointer`,transition:`background-color 0.15s ease, transform 0.1s ease`,"&:hover":{backgroundColor:`var(--color-black-alpha-10)`},"&:active":{transform:`scale(0.94)`}}:void 0,children:i===`small`?(0,K.jsx)(ee,{sx:{fontSize:16,color:`var(--color-text)`}}):(0,K.jsx)(Y.IcMenu,{})})})});return(0,K.jsx)(Mw,{meta:{propertyId:s},hasAccessFormatter:e=>e.canSendJobs,render:e=>e?o?(0,K.jsx)(`div`,{id:`jobdetails-edit`,children:p}):p:null})};Nw.propTypes={jobData:V.default.shape({jobId:V.default.string,propertyId:V.default.string,jobType:V.default.string,status:V.default.string}),onEdit:V.default.func.isRequired,onCancel:V.default.func.isRequired,onDuplicate:V.default.func.isRequired,iconSize:V.default.oneOf([`small`,`medium`,`large`]),popoverKey:V.default.string,showWrapper:V.default.bool};var Pw=({problems:e,openProblemPics:t,openJobRequestModal:n,onProblemSelect:r,tasks:i,onChangeProblemStatus:a,jobRequest:o,isdefaultExpanded:s,bilableTime:c,totalMileage:l,totalCost:u,countryCode:d,resolvedProblemUserName:f,costs:p,openCostModal:m,openSourceJobSummary:h,renderLeft:g,timezone:_})=>(0,K.jsxs)(I,{sx:{width:`100%`,mt:`7px`},children:[e.length?(0,K.jsx)(Fw,{problems:e,openProblemPics:t,openJobRequestModal:n,onProblemSelect:r,tasks:i,onChangeProblemStatus:a,jobRequest:o,isdefaultExpanded:s,resolvedProblemUserName:f,openSourceJobSummary:h,renderLeft:g,timezone:_}):null,(0,K.jsx)(Rw,{bilableTime:c,totalMileage:l,totalCost:u,countryCode:d,openProblemPics:t,costs:p,openCostModal:m,timezone:_})]});Pw.propTypes={openProblemPics:V.default.func,bilableTime:V.default.number,totalMileage:V.default.number,totalCost:V.default.number,countryCode:V.default.string,problems:V.default.arrayOf(V.default.shape({})).isRequired,costs:V.default.arrayOf(V.default.shape({})).isRequired,timezone:V.default.string.isRequired};var Fw=({problems:e,openProblemPics:t,openJobRequestModal:n=()=>{},onProblemSelect:r,onChangeProblemStatus:i,jobRequest:a={sourceProblems:{}},isdefaultExpanded:o=!1,resolvedProblemUserName:s=``,sourceJob:c=!1,renderLeft:l,openSourceJobSummary:u,tasks:d,timezone:f})=>{let p=()=>e.map(n=>n?(0,K.jsx)(Iw,{problem:n,problems:e,openProblemPics:t,onProblemSelect:r,onChangeProblemStatus:i,tasks:d,jobRequest:a,resolvedProblemUserName:s,sourceJob:c,timezone:f},n.id):null),m=e=>{u(e)},{sourceProblems:h}=a,g=h?.sourceJobSnapshotId||null;return(0,K.jsx)(I,{sx:{width:`100%`,mt:`7px`},children:g&&l?(0,K.jsxs)(an,{sx:{m:`7px auto`,border:`1px solid var(--color-border)`,backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-xl)`,boxShadow:`none`,"&:before":{display:`none`},"&.Mui-expanded":{margin:`7px auto`}}
263,elevation:0,children:[(0,K.jsx)(Bn,{sx:{p:`0 15px`},expandIcon:(0,K.jsx)(Y.IcExpandMore3,{width:`24px`,byWidth:!0}),children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1,flex:1},children:[(0,K.jsx)(Y.AddTask,{}),(0,K.jsx)(x,{sx:{fontSize:e=>e.typography.pxToRem(15),flexShrink:0,color:`var(--color-text)`,fontWeight:500},children:U(`jobdetails.view_linked_problem_report`)})]})}),(0,K.jsx)(I,{sx:{px:1.5,pt:1,pb:.5},children:p(e,t,r,i,d,a,s,c)}),(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`center`,borderTop:`1px solid var(--color-border)`,px:1.5,py:1.5},children:(0,K.jsx)(I,{component:`a`,onClick:()=>m(g),sx:{fontWeight:500,fontSize:e=>e.typography.pxToRem(14),color:`var(--color-primary)`,textDecoration:`none`,cursor:`pointer`,"&:hover":{textDecoration:`underline`}},children:U(`jobdetails.view_job_summary`)})})]}):(0,K.jsxs)(an,{sx:{m:`7px auto`,border:`1px solid var(--color-border)`,backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-xl)`,boxShadow:`none`,"&:before":{display:`none`},"&.Mui-expanded":{margin:`7px auto`}},defaultExpanded:o,elevation:0,children:[(0,K.jsx)(Bn,{sx:{p:`0 15px`},expandIcon:(0,K.jsx)(Y.IcExpandMore3,{width:`24px`,byWidth:!0}),children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1,flex:1},children:[(0,K.jsx)(Y.IcActiveProblemReported,{}),(0,K.jsx)(x,{sx:{fontSize:e=>e.typography.pxToRem(15),flexShrink:0,color:`var(--color-text)`,fontWeight:500},children:U(`account.problems_reported`)}),(0,K.jsx)(I,{sx:{flex:1}}),e?.length>0&&(0,K.jsx)(x,{sx:{fontSize:e=>e.typography.pxToRem(13),color:`var(--color-text-secondary)`,backgroundColor:`var(--color-bg-elevated)`,px:1,py:.25,borderRadius:`var(--radius-sm)`,fontWeight:500},children:e.length})]})}),(0,K.jsx)(I,{sx:{px:1.5,pt:1,pb:.5},children:p()}),(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`flex-end`,px:1.5,pb:1.5,pt:.5},children:(0,K.jsx)(q,{"data-testid":`schedule_a_problem_report_button`,onClick:n,types:[`size-medium`,`type-border-primary`],disabled:!d?.length,children:U(`problems.schedule_job`)})})]})})};Fw.propTypes={openProblemPics:V.default.func.isRequired,openJobRequestModal:V.default.func,onProblemSelect:V.default.func.isRequired,onChangeProblemStatus:V.default.func.isRequired,resolvedProblemUserName:V.default.string,isdefaultExpanded:V.default.bool,sourceJob:V.default.bool,jobRequest:V.default.shape({sourceProblems:V.default.shape({sourceJobSnapshotId:V.default.string})}),problems:V.default.arrayOf(V.default.shape({})).isRequired,tasks:V.default.arrayOf(V.default.shape({})).isRequired,renderLeft:V.default.bool.isRequired,openSourceJobSummary:V.default.func.isRequired,timezone:V.default.string.isRequired};var Xme=e=>e>3?U(`jobdetails.severity_high`):e===3?U(`jobdetails.severity_medium`):e>0&&e<3?U(`jobdetails.severity_low`):``,Zme=e=>e>3?`var(--color-orange)`:e===3?`var(--color-orange-delayed)`:e>0&&e<3?`var(--color-green)`:``;function Iw({problem:e,openProblemPics:t,problems:n,onProblemSelect:r,tasks:i,resolvedProblemUserName:a,timezone:o,jobRequest:s,onChangeProblemStatus:c,sourceJob:l}){let u=(0,B.useMemo)(()=>[{title:U(`problems.status.open`),value:Ga.OPEN,problemStatus:Ga.OPEN},{title:U(`problems.status.inProgress`),value:Ga.IN_PROGRESS,problemStatus:Ga.IN_PROGRESS},{title:U(`problems.status.resolved`),value:Ga.RESOLVED,problemStatus:Ga.RESOLVED},{title:U(`problems.status.ignored`),value:Ga.IGNORED,problemStatus:Ga.IGNORED}],[]),[d,f]=(0,B.useState)(e.status||Ga.OPEN),p=(0,B.useCallback)((t,n)=>{let r,i;t.forEach(t=>{let{value:a,problemStatus:o}=t;n.target.value===a&&(r=e.status,i=o)}),f(r),c(s,e,i,l)},[s,c,e,l]),m=(0,B.useCallback)(t=>{r(t,e)},[r,e]),h=(0,B.useCallback)((e,t)=>e?.some(e=>e.id===t.id),[]),g=(0,z.default)(e.date).tz(o).format(`llll`),_=(0,z.default)(e.lastUpdatedAt).tz(o).format(`llll`),v=e.status===Ga.RESOLVED,y=e.note&&e.note.replace(``,``);return(0,K.jsxs)(I,{sx:{backgroundColor:`var(--color-bg-elevated)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-lg)`,p:1.5,mb:1.5},children:[!!e.title&&(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[(0,K.jsx)(I,{sx:{flex:1},children:(0,K.jsx)(Dp,{label:e.title,"data-testid":`problem-report-${e.id}`,selected:h(i,e),onChange:m,isResolved:v})}),!!e.severity&&(0,K.jsx)(Md,{chipStyle:{backgroundColor:Zme(e.severity),c
263olor:`white`,fontSize:`12px`,height:`24px`},label:Xme(e.severity)})]}),!!y&&(0,K.jsx)(x,{sx:{pl:`32px`,mt:.75,fontSize:`13px`,color:`var(--color-text-secondary)`,lineHeight:1.5},children:y}),!!e.pictureIdentifiers&&e.pictureIdentifiers.length>0&&(0,K.jsx)(I,{sx:{display:`flex`,gap:1,mt:1.5,pl:`32px`,overflowX:`auto`,pb:.5,"&::-webkit-scrollbar":{height:4},"&::-webkit-scrollbar-thumb":{backgroundColor:`var(--color-border)`,borderRadius:2}},children:e.pictureIdentifiers.map(e=>(0,K.jsx)(I,{component:`img`,src:iu(e,nu.PROFILE_PICTURE),onClick:t(n,e),sx:{width:100,height:100,minWidth:100,objectFit:`cover`,borderRadius:`var(--radius-md)`,cursor:`pointer`,border:`1px solid var(--color-border)`,transition:`opacity 0.2s`,"&:hover":{opacity:.85}}},e))}),!!e.date&&(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,mt:1.5,pl:`32px`,gap:1},children:[(0,K.jsx)(Xg,{style:{color:`var(--color-text-secondary)`,fontSize:`12px`},children:g}),(0,K.jsx)(Qe,{size:`small`,value:d,onChange:e=>p(u,e),sx:{minWidth:120,height:30,fontSize:`13px`,color:`var(--color-text)`,backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-sm)`,"& .MuiOutlinedInput-notchedOutline":{borderColor:`var(--color-border)`},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:`var(--color-text-secondary)`},"& .MuiSelect-select":{py:.5}},children:u.map(e=>(0,K.jsx)(fe,{value:e.value,sx:{fontSize:`13px`},children:e.title},e.value))})]}),v&&e.lastUpdatedAt?(0,K.jsx)(I,{sx:{pl:`32px`,mt:1},children:(0,K.jsxs)(Xg,{style:{color:`var(--color-text-secondary)`,fontSize:`12px`},children:[U(`problems.resolved_on`,{date:_}),` · `,U(`problems.resolved_by`,{cleanerName:e.resolverName||a})]})}):null]})}Iw.propTypes={openProblemPics:V.default.func.isRequired,onProblemSelect:V.default.func.isRequired,onChangeProblemStatus:V.default.func.isRequired,resolvedProblemUserName:V.default.string,problem:V.default.shape({}).isRequired,jobRequest:V.default.shape({}).isRequired,problems:V.default.arrayOf(V.default.shape({})).isRequired,tasks:V.default.arrayOf(V.default.shape({})).isRequired,timezone:V.default.string.isRequired,sourceJob:V.default.shape({})};var Lw=({cost:{pictureIdentifiers:e,date:t,reporterName:n,value:r,type:i,note:a},costs:o,openProblemPics:s,countryCode:c,timezone:l})=>{let u=(0,z.default)(t).tz(l).format(`lll`),d=i?.toLowerCase()||`Type`,f=d.charAt(0).toUpperCase()+d.slice(1);return(0,K.jsxs)(I,{sx:{backgroundColor:`var(--color-bg-elevated)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-lg)`,p:1.5,mb:1.5},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:1},children:[(0,K.jsx)(x,{sx:{fontWeight:600,fontSize:`14px`,color:`var(--color-text)`},children:a||f}),r&&(0,K.jsx)(x,{sx:{fontSize:`14px`,color:`var(--color-text-secondary)`,fontWeight:500,whiteSpace:`nowrap`},children:Nu(i,r,c)})]}),e&&e.length>0&&(0,K.jsx)(I,{sx:{display:`flex`,gap:1,mt:1.5,overflowX:`auto`,pb:.5,"&::-webkit-scrollbar":{height:4},"&::-webkit-scrollbar-thumb":{backgroundColor:`var(--color-border)`,borderRadius:2}},children:e.map(e=>(0,K.jsx)(I,{component:`img`,src:iu(e,nu.PROFILE_PICTURE),onClick:s(o,e),sx:{width:100,height:100,minWidth:100,objectFit:`cover`,borderRadius:`var(--radius-md)`,cursor:`pointer`,border:`1px solid var(--color-border)`,transition:`opacity 0.2s`,"&:hover":{opacity:.85}}},e))}),(n||u)&&(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,mt:1.5,gap:1},children:[n&&(0,K.jsx)(Zg,{style:{color:`var(--color-text-secondary)`},children:n}),u&&(0,K.jsx)(Zg,{style:{color:`var(--color-text-secondary)`},children:u})]})]})};Lw.propTypes={openProblemPics:V.default.func.isRequired,countryCode:V.default.string,cost:V.default.shape({}),costs:V.default.arrayOf(V.default.shape({})),timezone:V.default.string.isRequired};var Rw=({totalCost:e,bilableTime:t,totalMileage:n,countryCode:r,costs:i,openProblemPics:a,openCostModal:o,timezone:s})=>(0,K.jsx)(I,{sx:{width:`100%`},children:(0,K.jsxs)(an,{sx:{m:`7px auto`,border:`1px solid var(--color-border)`,backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-xl)`,boxShadow:`none`,"&:before":{display:`none`},"&.Mui-expanded":{margin:`7px auto`}}
263,defaultExpanded:t||n||e,elevation:0,children:[(0,K.jsx)(Bn,{expandIcon:(0,K.jsx)(Y.IcExpandMore3,{width:`24px`,byWidth:!0}),sx:{p:`0 15px`},children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1,flex:1},children:[(0,K.jsx)(Y.IcCostCapture,{height:`24px`,width:`24px`,byWidth:!0}),(0,K.jsx)(x,{sx:{fontSize:e=>e.typography.pxToRem(15),flexShrink:0,color:`var(--color-text)`,fontWeight:500},children:U(`jobdetails.costs.cost_time`)}),(0,K.jsx)(I,{sx:{flex:1}}),i.length>0&&(0,K.jsx)(x,{sx:{fontSize:e=>e.typography.pxToRem(13),color:`var(--color-text-secondary)`,backgroundColor:`var(--color-bg-elevated)`,px:1,py:.25,borderRadius:`var(--radius-sm)`,fontWeight:500},children:i.length})]})}),(0,K.jsxs)(I,{sx:{px:1.5,pt:1,pb:.5},children:[i.map(e=>e?(0,K.jsx)(Lw,{cost:e,openProblemPics:a,countryCode:r,costs:i,timezone:s},(0,kd.default)()):null),(0,K.jsx)(zw,{totalCost:e,bilableTime:t,totalMileage:n,countryCode:r})]}),(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`flex-end`,px:1.5,pb:1.5,pt:.5},children:(0,K.jsx)(q,{"data-testid":`add_cost`,onClick:o,types:[`size-medium`,`type-border-primary`],children:U(`jobdetails.costs.add_cost`)})})]})});Rw.propTypes={bilableTime:V.default.number,totalMileage:V.default.number,totalCost:V.default.number,countryCode:V.default.string,costs:V.default.arrayOf(V.default.shape({})).isRequired,timezone:V.default.string.isRequired};var zw=({totalCost:e,bilableTime:t,totalMileage:n,countryCode:r})=>(0,K.jsxs)(I,{sx:{backgroundColor:`var(--color-bg-elevated)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-lg)`,p:1.5,mb:1.5},children:[(0,K.jsx)(x,{sx:{fontWeight:600,fontSize:`15px`,color:`var(--color-text)`,mb:1.5},children:U(`checkout.total`)}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:2},children:[(0,K.jsxs)(I,{sx:{flex:1},children:[(0,K.jsx)(x,{sx:{fontSize:`11px`,color:`var(--color-text-secondary)`,mb:.5},children:U(`reports.select.bilableTime`)}),(0,K.jsx)(x,{sx:{fontSize:`15px`,color:`var(--color-text)`,fontWeight:500},children:t?Au(Mu(t)):`0 hrs`})]}),(0,K.jsxs)(I,{sx:{flex:1},children:[(0,K.jsx)(x,{sx:{fontSize:`11px`,color:`var(--color-text-secondary)`,mb:.5},children:U(`jobdetails.costs.job_cost`)}),(0,K.jsxs)(x,{sx:{fontSize:`15px`,color:`var(--color-text)`,fontWeight:500},children:[Gl(r),` `,Mu(e)||0]})]}),(0,K.jsxs)(I,{sx:{flex:1},children:[(0,K.jsx)(x,{sx:{fontSize:`11px`,color:`var(--color-text-secondary)`,mb:.5},children:U(`jobdetails.costs.mileage`)}),(0,K.jsxs)(x,{sx:{fontSize:`15px`,color:`var(--color-text)`,fontWeight:500},children:[Mu(n),` `,ju(r)]})]})]})]});zw.propTypes={bilableTime:V.default.number,totalMileage:V.default.number,totalCost:V.default.number,countryCode:V.default.string};var Qme={view:`_view_19meb_1`,header:`_header_19meb_7`,filters:`_filters_19meb_15`,"search-ct":`_search-ct_19meb_15`,searchCt:`_search-ct_19meb_15`,"button-ct":`_button-ct_19meb_15`,buttonCt:`_button-ct_19meb_15`,controls:`_controls_19meb_35`,divider:`_divider_19meb_48`,"search-field-ct":`_search-field-ct_19meb_55`,searchFieldCt:`_search-field-ct_19meb_55`,button:`_button_19meb_15`,inner:`_inner_19meb_80`,"options-menu":`_options-menu_19meb_100`,optionsMenu:`_options-menu_19meb_100`,visible:`_visible_19meb_111`,option:`_option_19meb_100`,table:`_table_19meb_134`,navigation:`_navigation_19meb_142`,"fast-selector":`_fast-selector_19meb_150`,fastSelector:`_fast-selector_19meb_150`,"input-ct":`_input-ct_19meb_155`,inputCt:`_input-ct_19meb_155`,select:`_select_19meb_160`,summary:`_summary_19meb_165`,"pages-control":`_pages-control_19meb_170`,pagesControl:`_pages-control_19meb_170`,arrow:`_arrow_19meb_176`,disabled:`_disabled_19meb_185`,"navigation-controls":`_navigation-controls_19meb_193`,navigationControls:`_navigation-controls_19meb_193`,number:`_number_19meb_197`,current:`_current_19meb_208`,"day-range-input-ct":`_day-range-input-ct_19meb_218`,dayRangeInputCt:`_day-range-input-ct_19meb_218`},Bw=_i.default.bind({"table-filters":`_table-filters_qr842_1`,tableFilters:`_table-filters_qr842_1`,group:`_group_qr842_10`,tab:`_tab_qr842_1`,current:`_current_qr842_31`,"date-chip":`_date-chip_qr842_54`,dateChip:`_date-chip_qr842_54`,"toggle-tab":`_toggle-tab_qr842_60`,toggleTab:`_toggle-tab_qr842_60`,active:`_active_qr842_74`,disabled:`_disabled_qr842_86`}),$me={pending:`var(--color-badge-orange-bg)`,accepted:`var(--color-badge-blue-bg)`,inProgress:`var(--color-badge-pink-bg)`,finished:`var(--color-badge-green-bg)`,canceled:`var(--color-badge-red-bg)`,jobsReceived:`var(--color-badge-blue-bg)`,toDo:`var(--color-badge-orange-bg)`,toModify:`var(--color-badge-pink-bg)`,openProblems:`var(--color-badge-red-bg)`,active:`var(--color-badge-green-bg)`,favorites:`var(--color-badge-orange-bg)`},Vw=({scheduledFilter:e=null,currentMainTab:t=null,currentTimeTab:n=null,onMainFilterChange:r,onTimeFilterChange:i,mainFilters:a=[],timeFilters:o=[],customDateRange:s=null})=>{let c=e?.isActive,l=(0,B.useCallback)(e=>{let a=e.type===`main`?`main_filter`:`time_filter`,o=e.type===`main`?t:n;
263fd(a,e.id,{filter_name:e.name,previous_value:o,component:`TableFilters`,filter_category:e.type}),e.type===`main`?r(e.id):i(e.id)},[r,i,t,n]),u=(0,B.useMemo)(()=>{if(!s||!s.startDate||!s.endDate)return null;let e=(0,z.default)(s.startDate),t=(0,z.default)(s.endDate),n=(0,z.default)().year(),r=e.year()!==t.year()||e.year()!==n?`MMM D, YYYY`:`MMM D`;return`${e.format(r)} - ${t.format(r)}`},[s]),d=e=>{let r=e.type===`main`&&t===e.id||e.type===`time`&&n===e.id,i=e.id===`between`&&e.type===`time`&&r&&u,a=$me[e.id];return(0,K.jsxs)(`div`,{className:Bw(`tab`,{current:r,"has-indicator":!!a}),onClick:()=>l(e),children:[a&&(0,K.jsx)(`span`,{className:Bw(`status-indicator`),style:{backgroundColor:a}}),i?(0,K.jsx)(`span`,{className:Bw(`date-chip`),children:u}):e.name]},e.id)};return(0,K.jsxs)(`div`,{className:Bw(`table-filters`),children:[e&&(0,K.jsx)(`div`,{className:Bw(`toggle-tab`,{active:e.isActive}),onClick:e.onToggle,children:e.label}),a.length!==0&&(0,K.jsx)(`div`,{className:Bw(`group`,{disabled:c}),children:a.map(e=>d(e))}),o.length!==0&&(0,K.jsx)(`div`,{className:Bw(`group`,{disabled:c}),children:o.map(e=>d(e))})]})};Vw.propTypes={scheduledFilter:V.default.shape({isActive:V.default.bool.isRequired,label:V.default.string.isRequired,onToggle:V.default.func.isRequired}),mainFilters:V.default.arrayOf(V.default.shape({})),timeFilters:V.default.arrayOf(V.default.shape({})),currentMainTab:V.default.string,currentTimeTab:V.default.string,onMainFilterChange:V.default.func.isRequired,onTimeFilterChange:V.default.func.isRequired,customDateRange:V.default.shape({startDate:V.default.oneOfType([V.default.instanceOf(Date),V.default.string,V.default.object]),endDate:V.default.oneOfType([V.default.instanceOf(Date),V.default.string,V.default.object])})};var Hw=_i.default.bind({"custom-table-filters":`_custom-table-filters_14n8z_1`,customTableFilters:`_custom-table-filters_14n8z_1`,group:`_group_14n8z_12`,tab:`_tab_14n8z_18`,"tab-name":`_tab-name_14n8z_32`,tabName:`_tab-name_14n8z_32`,"management-modal":`_management-modal_14n8z_41`,managementModal:`_management-modal_14n8z_41`,"tabs-switcher":`_tabs-switcher_14n8z_41`,tabsSwitcher:`_tabs-switcher_14n8z_41`,bottom:`_bottom_14n8z_47`,current:`_current_14n8z_65`,main:`_main_14n8z_71`,button:`_button_14n8z_80`,settings:`_settings_14n8z_85`,"rules-list":`_rules-list_14n8z_86`,rulesList:`_rules-list_14n8z_86`,disabled:`_disabled_14n8z_106`,setting:`_setting_14n8z_85`,label:`_label_14n8z_134`,title:`_title_14n8z_151`,row:`_row_14n8z_172`,"semi-primary":`_semi-primary_14n8z_213`,semiPrimary:`_semi-primary_14n8z_213`,primary:`_primary_14n8z_222`,controls:`_controls_14n8z_233`,"search-header":`_search-header_14n8z_242`,searchHeader:`_search-header_14n8z_242`,"filters-list":`_filters-list_14n8z_246`,filtersList:`_filters-list_14n8z_246`,filter:`_filter_14n8z_246`,name:`_name_14n8z_263`,actions:`_actions_14n8z_272`,divider:`_divider_14n8z_284`}),ehe=e=>e&&e.format(`YYYY-MM-DD`),Uw=class extends B.Component{constructor(e){super(e),k(this,`removeCurrentFilter`,e=>{e.stopPropagation();let{onActiveFilterChange:t}=this.props;t(null)}),k(this,`saveFilter`,()=>{if(this.setFilterNameIfMissing(!0))return;let{onActiveFilterChange:e,localStorageKey:t}=this.props,{filters:n,currentFilter:r}=this.state,i=[...n],a=n.findIndex(e=>e.id===r.id),o=a<0;a>=0?i[a]=r:i.push(r),ed(qu.FILTER,o?Ju.CREATE:Ju.EDIT,{filter_id:r.id,filter_name:r.name,rules_all_count:r.rules?.all?.length||0,rules_any_count:r.rules?.any?.length||0,view_mode:t,component:`CustomTableFilters`}),e(r),this.setState({filters:i}),this.cacheFiltersOnLocalDevice(i),this.hideManagementModal()}),k(this,`cancelFilterEditing`,()=>{this.hideManagementModal()}),k(this,`toggleFiltersManagementModal`,()=>{let{isFiltersManagementModalVisible:e}=this.state;e?this.hideManagementModal():this.showManagementModal()}),k(this,`hideManagementModal`,()=>{this.setState({isFiltersManagementModalVisible:!1})}),this.LOCAL_STORAGE_KEY_ID=`customFilters`,this.state={filters:[],currentFilter:this.getDefaultFilterObject(),currentTab:`edit`,searchValue:``,isFiltersManagementModalVisible:!1,focusedInputs:[]}}getLocalStorageKeyId(){let{localStorageKey:e}=this.props;return`${this.LOCAL_STORAGE_KEY_ID}.${e}`}fetchFiltersFromLocalDevice(){let e=vi.get(this.getLocalStorageKeyId());e&&this.setState({filters:e})}cacheFiltersOnLocalDevice(e){let t=e;if(!e){let{filters:e}=this.state;t=e}vi.set(this.getLocalStorageKeyId(),t)}getDefaultFilterObject(){return{id:new Date().getTime()+Math.random().toString(36).substr(2,5),name:``,rules:{all:[],any:[]}}}getFilterTabElement(e){return(0,K.jsxs)(`div`,{className:Hw(`tab`,`current`),onClick:()=>this.showManagementModal(e),children:[(0,K.jsx)(`span`,{className:Hw(`tab-name`),children:e.name}),(0,K.jsx)(br,{size:`small`,onClick:this.removeCurrentFilter,sx:{p:.25,color:`var(--color-gray-400)`},children:(0,K.jsx)(Hn,{sx:{fontSize:14}})})]},e.id)}getFilterElement(e){return(0,K.jsxs)(`div`,{className:Hw(`filter`),children:[(0,K.jsx)(`div`,{className:Hw(`name`),children:e.name}),(0,K.jsxs)(`div`,{className:Hw(`actions`),children:[(0,K.jsx)(`div`,{className:Hw(`button`,`primary`),onClick:()=>this.applyFilter(e),children:U(`list_view.apply`)}
263),(0,K.jsx)(`div`,{className:Hw(`divider`)}),(0,K.jsx)(br,{size:`small`,onClick:()=>this.editFilter(e),sx:{border:`1px solid var(--color-border)`,borderRadius:`var(--radius-xs)`,color:`var(--color-primary)`,width:28,height:28},children:(0,K.jsx)(tte,{sx:{fontSize:16}})}),(0,K.jsx)(br,{size:`small`,onClick:()=>this.deleteFilter(e),sx:{border:`1px solid var(--color-border)`,borderRadius:`var(--radius-xs)`,color:`var(--color-primary)`,width:28,height:28},children:(0,K.jsx)(vn,{sx:{fontSize:16}})})]})]},e.id)}setRuleDetail(e,t,n,r){let{currentFilter:i}=this.state,a=i.rules[e].findIndex(e=>e.id===t.id);if(a>=0){let t={...i};t.rules[e][a][n]=r,this.setState({currentFilter:t})}}setRuleAttribute(e,t,n){this.setRuleAttributeField(e,t,``),this.setRuleCondition(e,t,``),this.setRuleValue(e,t,``),this.setRuleDetail(e,t,`attribute`,n)}setRuleAttributeField(e,t,n){this.setRuleCondition(e,t,``),this.setRuleValue(e,t,``),this.setRuleDetail(e,t,`attributeField`,n)}setRuleCondition(e,t,n){this.setRuleDetail(e,t,`condition`,n)}setRuleValue(e,t,n,r){let i=``;switch(r){case`number`:i=Number(n);break;default:i=n}this.setRuleDetail(e,t,`value`,i)}addFilterRule(e){let{currentFilter:t}=this.state,n={id:new Date().getTime()+Math.random().toString(36).substr(2,5),attribute:``,attributeField:``,condition:`is`,value:``},r={...t};r.rules[e].push(n),this.setState({currentFilter:r})}getSelectOption(e){return(0,K.jsx)(`option`,{value:e.value,children:e.name},e.value)}setInputFocus(e,t){let{focusedInputs:n}=this.state;n[e]=t,this.setState({focusedInputs:n})}getFilterRuleRow(e,t){let{ruleAttributes:n,ruleAttributeFields:r}=this.props,{focusedInputs:i}=this.state,a=[];return t.attribute&&t.attributeField&&([a]=r[t.attribute].filter(e=>e.value===t.attributeField)),(0,K.jsxs)(`div`,{className:Hw(`row`),children:[(0,K.jsx)(`select`,{onChange:n=>this.setRuleAttribute(e,t,n.target.value),value:t.attribute,children:n.map(e=>this.getSelectOption(e))}),(0,K.jsx)(`select`,{className:Hw({disabled:!t.attribute}),onChange:n=>this.setRuleAttributeField(e,t,n.target.value),value:t.attributeField,children:this.getAvailableRuleAttributeFields(t.attribute).map(e=>this.getSelectOption(e))}),(0,K.jsx)(`select`,{onChange:n=>this.setRuleCondition(e,t,n.target.value),value:t.condition,className:Hw({disabled:!t.attributeField}),children:this.availableConditions(a.fieldType).map(e=>this.getSelectOption(e))}),a.fieldType===`enum`&&(0,K.jsx)(`select`,{onChange:n=>this.setRuleValue(e,t,n.target.value,`enum`),value:t.value,className:Hw({disabled:!t.attribute||!t.condition}),children:[{value:``,name:`${U(`list_view.select`)}...`},...a.options].map(e=>this.getSelectOption(e))}),a.fieldType===`boolean`&&(0,K.jsx)(`select`,{onChange:n=>this.setRuleValue(e,t,n.target.value,`boolean`),value:t.value,className:Hw({disabled:!t.attribute||!t.condition}),children:[{value:``,name:`${U(`list_view.select`)}...`},{value:!0,name:`${U(`list_view.yeslabel`)}`},{value:!1,name:`${U(`list_view.nolabel`)}`}].map(e=>this.getSelectOption(e))}),a.fieldType===`date`&&(0,K.jsx)(up,{daySize:40,isDayBlocked:()=>!1,isOutsideRange:()=>!1,date:(0,z.default)(t.value).isValid()?(0,z.default)(t.value):null,focused:i[t.id],onFocusChange:({focused:e})=>this.setInputFocus(t.id,e),onDateChange:n=>this.setRuleValue(e,t,ehe(n),`date`),noBorder:!0}),a.fieldType!==`enum`&&a.fieldType!==`boolean`&&a.fieldType!==`date`&&(0,K.jsx)(`input`,{type:`text`,onInput:n=>this.setRuleValue(e,t,n.target.value,a.fieldType),value:t.value,className:Hw({disabled:!t.attribute||!t.condition})}),(0,K.jsx)(br,{size:`small`,onClick:()=>this.deleteRule(e,t),sx:{border:`1px solid var(--color-border)`,borderRadius:`50%`,width:24,height:24,flexShrink:0,color:`var(--color-text-secondary)`,"&:hover":{bgcolor:`var(--color-red-light)`,borderColor:`var(--color-red)`}},children:(0,K.jsx)(Hn,{sx:{fontSize:12}})})]},t.id)}availableConditions(e){let t=[];switch(e){case`enum`:t=[{value:`anyOf`,name:U(`list_view.any_of`)},{value:`allOf`,name:U(`list_view.all_of`)},{value:`noneOf`,name:U(`list_view.none_of`)}];break;case`number`:t=[{value:`equals`,name:U(`list_view.equals`)},{value:`notEquals`,name:U(`list_view.not_equals`)},{value:`lessThan`,name:U(`list_view.less_than`)},{value:`greaterThan`,name:U(`list_view.greater_than`)}
263,{value:`any`,name:U(`list_view.any`)}];break;case`date`:t=[{value:`on`,name:U(`calendar.filter_schema.onlabel`)},{value:`lessThan`,name:U(`list_view.less_than`)},{value:`greaterThan`,name:U(`list_view.greater_than`)}];break;case`boolean`:t=[{value:`equals`,name:U(`list_view.equals`)},{value:`notEquals`,name:U(`list_view.not_equals`)}];break;default:t=[{value:`is`,name:U(`list_view.is`)},{value:`isNot`,name:U(`list_view.is_not`)},{value:`contains`,name:U(`list_view.contains`)},{value:`any`,name:U(`list_view.any`)}]}return[{value:``,name:`${U(`list_view.select`)}...`},...t]}getAvailableRuleAttributeFields(e){let{ruleAttributeFields:t}=this.props;return e?t[e]:[]}deleteRule(e,t){let{currentFilter:n}=this.state,r=n.rules[e].findIndex(e=>e.id===t.id);if(r>=0){let t={...n};t.rules[e].splice(r,1),this.setState({currentFilter:t})}}updateSearchValue(e){this.setState({searchValue:e.toLowerCase()})}applyFilter(e){let{onActiveFilterChange:t,localStorageKey:n}=this.props;fd(`custom_filter_apply`,e.name,{filter_id:e.id,rules_all_count:e.rules?.all?.length||0,rules_any_count:e.rules?.any?.length||0,view_mode:n,component:`CustomTableFilters`}),t(e),this.hideManagementModal()}editFilter(e){this.setState({currentFilter:e}),this.showTab(`edit`)}deleteFilter(e){let{activeFilter:t,onActiveFilterChange:n,localStorageKey:r}=this.props,{filters:i}=this.state;ed(qu.FILTER,Ju.DELETE,{filter_id:e.id,filter_name:e.name,view_mode:r,component:`CustomTableFilters`});let a=[...i],o=i.findIndex(t=>t.id===e.id);o>=0&&a.splice(o,1),this.setState({filters:a}),t?.id===e.id&&n(null),this.cacheFiltersOnLocalDevice(a)}setFilterName(e){let{currentFilter:t}=this.state,n={...t};n.name=e,this.setState({currentFilter:n})}setFilterNameIfMissing(e){let{currentFilter:t}=this.state;if(!t.name){let t=new Date;return this.setFilterName(`${U(`list_view.filter_created_on`)} ${t.getDate()}/${t.getMonth()}/${t.getFullYear()}`),e&&setTimeout(()=>this.saveFilter(),50),!0}return!1}showManagementModal(e){let{localStorageKey:t}=this.props;ed(qu.MODAL,Ju.OPEN,{modal_type:`custom_filter`,editing_existing:!!e,filter_name:e?.name,view_mode:t,component:`CustomTableFilters`}),this.setState({currentFilter:e||this.getDefaultFilterObject()}),this.showTab(`edit`),this.setState({isFiltersManagementModalVisible:!0})}showTab(e){this.setState({currentTab:e})}componentDidMount(){this.fetchFiltersFromLocalDevice()}render(){let{activeFilter:e}=this.props,{filters:t,currentFilter:n,currentTab:r,searchValue:i,isFiltersManagementModalVisible:o}=this.state;return(0,K.jsxs)(`div`,{className:Hw(`custom-table-filters`),children:[e&&(0,K.jsx)(`div`,{className:Hw(`group`),children:this.getFilterTabElement(e)}),(0,K.jsx)(br,{size:`small`,onClick:this.toggleFiltersManagementModal,sx:{width:26,height:26,border:`1px solid var(--color-primary)`,"&:hover":{bgcolor:`var(--color-primary-alpha-10)`}}
263,children:(0,K.jsx)(Y.IcTextPlus,{fill:`#36ACB2`,style:{width:14,height:14}})}),(0,K.jsx)(a,{open:o,onClose:this.hideManagementModal,slotProps:{backdrop:{sx:{backgroundColor:`rgba(0, 0, 0, 0.5)`}}},children:(0,K.jsxs)(I,{className:Hw(`management-modal`),sx:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,width:560,maxHeight:`80vh`,bgcolor:`var(--color-bg-paper)`,borderRadius:`var(--radius-md)`,boxShadow:`0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--color-border)`,outline:`none`,display:`flex`,flexDirection:`column`,overflow:`hidden`},children:[(0,K.jsx)(br,{size:`small`,onClick:this.hideManagementModal,sx:{position:`absolute`,top:12,right:12,zIndex:10,color:`var(--color-text-secondary)`},children:(0,K.jsx)(Hn,{sx:{fontSize:18}})}),(0,K.jsxs)(`div`,{className:Hw(`tabs-switcher`),children:[(0,K.jsx)(`div`,{className:Hw(`tab`,{current:r===`edit`}),onClick:()=>this.showTab(`edit`),children:U(`list_view.create_filter`)}),(0,K.jsx)(`div`,{className:Hw(`tab`,{current:r===`saved`}),onClick:()=>this.showTab(`saved`),children:U(`list_view.saved_filters`)}),(0,K.jsx)(`div`,{className:Hw(`bottom`)})]}),(0,K.jsxs)(`div`,{className:Hw(`main`),children:[r===`edit`&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{className:Hw(`settings`),children:(0,K.jsxs)(`div`,{className:Hw(`setting`),children:[(0,K.jsxs)(`div`,{className:Hw(`label`),children:[U(`list_view.filter_name`),`:`]}),(0,K.jsx)(`input`,{type:`text`,value:n.name,onChange:e=>this.setFilterName(e.target.value)})]})}),(0,K.jsxs)(`div`,{className:Hw(`rules-list`),children:[(0,K.jsx)(`div`,{className:Hw(`title`),children:U(`list_view.show_results_that_match_all_conditions`)}),(0,K.jsx)(`div`,{className:Hw(`group`),children:n.rules.all.map(e=>this.getFilterRuleRow(`all`,e))}),(0,K.jsxs)(`div`,{className:Hw(`button`,`semi-primary`),onClick:()=>this.addFilterRule(`all`),children:[`+ `,U(`list_view.add`)]}),(0,K.jsx)(`div`,{className:Hw(`title`),children:U(`list_view.show_results_that_match_any_conditions`)}),(0,K.jsx)(`div`,{className:Hw(`group`),children:n.rules.any.map(e=>this.getFilterRuleRow(`any`,e))}),(0,K.jsxs)(`div`,{className:Hw(`button`,`semi-primary`),onClick:()=>this.addFilterRule(`any`),children:[`+ `,U(`list_view.add`)]})]}),(0,K.jsxs)(`div`,{className:Hw(`controls`),children:[(0,K.jsx)(`div`,{className:Hw(`button`,`primary`,{disabled:!n.name||!n.rules.all&&!n.rules.any}),onClick:this.saveFilter,children:U(`list_view.save`)}),(0,K.jsx)(`div`,{className:Hw(`button`),onClick:this.cancelFilterEditing,children:U(`list_view.cancel`)})]})]}),r===`saved`&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{className:Hw(`search-header`),children:(0,K.jsx)($f,{onChange:e=>this.updateSearchValue(e),value:i,iconLocation:`right`,placeholder:U(`list_view.filter_name`)})}),(0,K.jsx)(`div`,{className:Hw(`filters-list`),children:t.reduce((e,t)=>t.name.toLowerCase().includes(i)?[...e,this.getFilterElement(t)]:e,[])})]})]})]})})]})}};k(Uw,`defaultProps`,{localStorageKey:`all`,activeFilter:null,ruleAttributes:[],ruleAttributeFields:[]}),Uw.propTypes={localStorageKey:V.default.string,activeFilter:V.default.objectOf(V.default.shape({})),ruleAttributes:V.default.arrayOf(V.default.shape({})),ruleAttributeFields:V.default.arrayOf(V.default.shape({})),onActiveFilterChange:V.default.func.isRequired};var the={"table-legend":`_table-legend_q90o7_1`,tableLegend:`_table-legend_q90o7_1`,title:`_title_q90o7_13`,current:`_current_q90o7_26`,inner:`_inner_q90o7_30`,arrow:`_arrow_q90o7_44`,reversed:`_reversed_q90o7_58`,"disabled-sorting":`_disabled-sorting_q90o7_62`,disabledSorting:`_disabled-sorting_q90o7_62`,desc:`_desc_q90o7_66`},Ww=_i.default.bind({"row-check":`_row-check_1s97d_1`,rowCheck:`_row-check_1s97d_1`,extended:`_extended_1s97d_8`,compact:`_compact_1s97d_12`,check:`_check_1s97d_17`,checked:`_checked_1s97d_44`}),nhe={unchecked:{scale:1},checked:{scale:[1,1.1,1],transition:{duration:yd.normal,times:[0,.5,1]}}},rhe={unchecked:{scale:0,opacity:0},checked:{scale:1,opacity:1,transition:bd.snappy}},Gw=({renderAs:e=`row`,checked:t=!1,onCheckToggle:n,itemData:r=null})=>(0,K.jsx)(`div`,{className:Ww(`row-check`,{extended:e===`legend`,compact:e===`compact-row`,checked:t}),onClick:()=>{n(r)},children:(0,K.jsx)(gn.div,{className:Ww(`check`),variants:nhe,animate:t?`checked`:`unchecked`,whileHover:{scale:1.05},whileTap:{scale:.95},children:(0,K.jsx)(gn.div,{variants:rhe,animate:t?`checked`:`unchecked`,style:{display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,K.jsx)(Y.IcChecked,{fill:`#fff`})})})});Gw.propTypes={renderAs:V.default.oneOf([`legend`,`row`,`compact-row`]),onCheckToggle:V.default.func.isRequired,itemData:V.default.shape({}),checked:V.default.bool};var Kw=_i.default.bind(the),qw=({columns:e,disabledBulkActions:t=!1,reversedSort:n=!1,sortByColumn:r=null,onColumnClick:i})=>{let a=e=>(0,K.jsx)(`div`,{className:Kw(`title`,{current:r===e.id,reversed:n,"disabled-sorting":e.disabledSorting}),style:{width:`${e.width}px`},onClick:()=>e.disabledSorting?void 0:i(e.id),children:(0,K.jsx)(`div`,{className:Kw(`inner`),children:(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{children:[e.name,(0,K.jsx)(`div`,{className:Kw(`arrow`),children:(0,K.jsx)(Y.ArrowUp,{fill:`#36acb2`})})]}),e.nameDesc!==null&&(0,K.jsxs)(`div`,{className:Kw(`desc`),children:[`(`,e.nameDesc,`)`]})]})})},e.id);return(0,K.jsxs)(`div`,{className:Kw(`table-legend`),children:[t?(0,K.jsx)(`div`,{}):(0,K.jsx)(Gw,{onCheckToggle:()=>void 0,renderAs:`legend`}),e.filter(e=>e.isVisible===!0).map(e=>a(e))]})};qw.propTypes={columns:V.default.arrayOf(V.default.shape({})).isRequired,reversedSort:V.default.bool,sortByColumn:V.default.string,disabledBulkActions:V.default.bool,onColumnClick:V.default.func.isRequired};var Jw=_i.default.bind({"table-rows":`_table-rows_w3ufd_2`,tableRows:`_table-rows_w3ufd_2`,row:`_row_w3ufd_6`,"with-notification":`_with-notification_w3ufd_38`,withNotification:`_with-notification_w3ufd_38`,element:`_element_w3ufd_43`,"profile-picture-ct":`_profile-picture-ct_w3ufd_53`,profilePictureCt:`_profile-picture-ct_w3ufd_53`,"extra-count":`_extra-count_w3ufd_61`,extraCount:`_extra-count_w3ufd_61`,"text-inner":`_text-inner_w3ufd_76`,textInner:`_text-inner_w3ufd_76`,"empty-value":`_empty-value_w3ufd_84`,emptyValue:`_empty-value_w3ufd_84`,text:`_text_w3ufd_76`,"with-image":`_with-image_w3ufd_88`,withImage:`_with-image_w3ufd_88`,"with-extra-count":`_with-extra-count_w3ufd_92`,withExtraCount:`_with-extra-count_w3ufd_92`,badge:`_badge_w3ufd_102`,red:`_red_w3ufd_116`,blue:`_blue_w3ufd_121`,green:`_green_w3ufd_126`,"light-blue":`_light-blue_w3ufd_131`,lightBlue:`_light-blue_w3ufd_131`,pink:`_pink_w3ufd_136`,orange:`_orange_w3ufd_141`,"switch-container":`_switch-container_w3ufd_150`,switchContainer:`_switch-container_w3ufd_150`,"tablerow__row-element--actions":`_tablerow__row-element--actions_w3ufd_157`,tablerowRowElementActions:`_tablerow__row-element--actions_w3ufd_157`}),ihe=()=>({backgroundColor:`#FF5722`,color:`white`,height:`11px`,width:`25px`,borderRadius:`2px`,fontFamily:`Plus Jakarta Sans, Helvetica, Arial, sans-serif`,fontSize:`9px`,marginLeft:`4px`,lineHeight:`9px`,fontWeight:`500`}),Yw=({onRowClick:e,columns:t,disabledBulkActions:n=!1,onRowSelection:r,rows:i,isLoading:a=!1,currentMainTab:o,onRowActions:s})=>{let c=(0,B.useMemo)(()=>i.map(e=>e.id).join(`-`),[i]),l=t=>{e(t)},u=(e,t)=>
263n=>{s(e,t),n.stopPropagation()},d=(e,t)=>{let n=e.extraCount?(0,K.jsxs)(`div`,{className:Jw(`extra-count`),children:[`+`,e.extraCount]}):null;switch(e.type){case`text`:return(0,K.jsxs)(`div`,{className:Jw(`text`,{"with-image":e.includeNamedPicture}),children:[e.includeNamedPicture&&(0,K.jsx)(`div`,{className:Jw(`profile-picture-ct`),children:(0,K.jsx)(Qd,{type:`small`,text:e.text,picture:e.pictureUrl,extractLetters:!0,isNewLayout:!0,invertedColorScheme:e.hasNotifications||e.isForwardingEnabled&&!e.isForwarded&&o===`jobsReceived`,withShadow:e.hasNotifications||e.isForwardingEnabled&&!e.isForwarded&&o===`jobsReceived`,showNewPhotoNotification:e.hasNewPhoto,showProblemIcon:e.hasProblems,showForwarded:e.isForwardingEnabled&&e.isForwarded&&o===`jobsReceived`})}),(0,K.jsxs)(`div`,{className:Jw(`text-inner`,{"with-extra-count":n!==null,"empty-value":e.text===`-`}),children:[e.text,e.isProMarketplaceJob&&(0,K.jsx)(Md,{chipStyle:ihe(),label:U(`marketplace.probadge`),noOverflow:!0})]}),n]});case`badge`:return(0,K.jsx)(`div`,{className:Jw(`badge`,{red:e.badgeColor===`red`,blue:e.badgeColor===`blue`,green:e.badgeColor===`green`,"light-blue":e.badgeColor===`light-blue`,pink:e.badgeColor===`pink`,orange:e.badgeColor===`orange`}),children:e.text});case`switch`:return(0,K.jsx)(`div`,{className:Jw(`switch-container`),children:(0,K.jsx)(C,{checked:e.text===`active`,onChange:u(t,Xa.TOGGLE_AS_STATUS),name:Xa.TOGGLE_AS_STATUS})});
263case`job-actions`:return(0,K.jsx)(`div`,{className:Jw(`tablerow__row-element--actions`),children:(0,K.jsx)(pb,{handleRowActions:u,rowData:t})});case`autoscheduler-actions`:return(0,K.jsxs)(`div`,{className:Jw(`tablerow__row-element--actions`),children:[(0,K.jsx)(Ig,{title:U(`permissions.edit`),children:(0,K.jsx)(br,{edge:`end`,size:`small`,onClick:u(t,Xa.UPDATE_AS),children:(0,K.jsx)(Y.IcEditicon,{byWidth:!0,width:`24px`,height:`24px`})})}),(0,K.jsx)(Ig,{title:U(`properties.delete_trigger`),children:(0,K.jsx)(br,{edge:`end`,size:`small`,onClick:u(t,Xa.DELETE_AS),children:(0,K.jsx)(Y.IcTrash2,{byWidth:!0,width:`24px`,height:`24px`})})})]});default:return``}},f=(e,n,r)=>{let i=t[n]?t[n].width:180 .current,a=d(e,r),o=e.tooltipText&&(!e.showTooltipIfLongerThan||e.text.length>e.showTooltipIfLongerThan);return a&&(0,K.jsxs)(`div`,{className:Jw(`element`),style:{width:`${i}px`},children:[!o&&a,o&&(0,K.jsx)(Ig,{title:e.tooltipText,tooltipSxOverwrite:{backgroundColor:`var(--color-bg-paper)`,color:`var(--color-gray-900)`},children:a})]},`${n}-${e.text}`)},p=e=>{r(e)},m=e=>{let r=[];t.forEach(t=>{let n=e.elements.find(e=>e.columnId===t.id);n&&r.push(n)});let a=[];e.elements.forEach(e=>{!r.find(t=>t.columnId===e.columnId)&&e.showAnyway&&a.push(e)}),r=[...r,...a];let s=e.elements?.find(e=>e.type===`payload`),c=s?.text?.isForwardingEnabled&&!s?.text?.isForwarded&&o===`jobsReceived`,u=i.findIndex(t=>t.id===e.id);return(0,K.jsxs)(gn.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:yd.normal,delay:Math.min(u*.015,.3),ease:xd.easeOut},children:[(0,K.jsxs)(`div`,{className:Jw(`row`,{"with-notification":e.hasNotifications||c}),onClick:()=>l(e),children:[n?(0,K.jsx)(`div`,{}):(0,K.jsx)(Gw,{onCheckToggle:()=>p(e)}),r.map((n,r)=>!t[r]||t[r].isVisible?f(n,r,e):``)]}),(0,K.jsx)(`br`,{})]},e.id)};if(a){let e=t.filter(e=>e.isVisible!==!1);return(0,K.jsx)(`div`,{className:Jw(`table-rows`),children:[1,2,3,4,5,6,7,8,9,10].map(t=>(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{className:Jw(`row`),style:{cursor:`default`,pointerEvents:`none`},children:[(0,K.jsx)(`div`,{}),e.map((e,t)=>{let n=e.width||120;return t===0?(0,K.jsxs)(`div`,{className:Jw(`element`),style:{width:`${n}px`},children:[(0,K.jsx)(`span`,{style:{display:`inline-block`,verticalAlign:`middle`,marginRight:8},children:(0,K.jsx)(J,{height:24,width:24,variant:`rounded`})}),(0,K.jsx)(J,{height:12,width:Math.min(n-40,100),style:{display:`inline-block`,verticalAlign:`middle`}})]},e.id):e.id===`status`||e.id===`jobStatus`?(0,K.jsx)(`div`,{className:Jw(`element`),style:{width:`${n}px`},children:(0,K.jsx)(J,{height:22,width:70,variant:`rounded`})},e.id):(0,K.jsx)(`div`,{className:Jw(`element`),style:{width:`${n}px`},children:(0,K.jsx)(J,{height:12,width:Math.min(n-20,100),style:{marginTop:9}})},e.id)})]}),(0,K.jsx)(`br`,{})]},t))})}return(0,K.jsx)(`div`,{className:Jw(`table-rows`),children:i.map(e=>m(e))},c)};Yw.propTypes={columns:V.default.arrayOf(V.default.shape({})).isRequired,rows:V.default.arrayOf(V.default.shape({})).isRequired,isLoading:V.default.bool,disabledBulkActions:V.default.bool,currentMainTab:V.default.string,onRowClick:V.default.func.isRequired,onRowSelection:V.default.func.isRequired,onRowActions:V.default.func.isRequired};var Xw=_i.default.bind({"table-toolbar":`_table-toolbar_em6ts_1`,tableToolbar:`_table-toolbar_em6ts_1`,visible:`_visible_em6ts_15`,heading:`_heading_em6ts_19`,title:`_title_em6ts_26`,close:`_close_em6ts_30`,main:`_main_em6ts_38`,"search-header":`_search-header_em6ts_43`,searchHeader:`_search-header_em6ts_43`,col:`_col_em6ts_47`,"pick-col":`_pick-col_em6ts_54`,pickCol:`_pick-col_em6ts_54`,"drag-col":`_drag-col_em6ts_63`,dragCol:`_drag-col_em6ts_63`,grab:`_grab_em6ts_78`,grip:`_grip_em6ts_87`,"remove-bt":`_remove-bt_em6ts_100`,removeBt:`_remove-bt_em6ts_100`,list:`_list_em6ts_113`,order:`_order_em6ts_117`,"columns-box":`_columns-box_em6ts_126`,columnsBox:`_columns-box_em6ts_126`,"placeholder-title":`_placeholder-title_em6ts_130`,placeholderTitle:`_placeholder-title_em6ts_130`,controls:`_controls_em6ts_140`,button:`_button_em6ts_145`,primary:`_primary_em6ts_165`}),Zw=class extends B.Component{constructor(e){super(e),k(this,`save`,()=>{let{localColumns:e}=this.state,{onClose:t,onColumnsChange:n}=this.props;n(e),t()}),k(this,`close`,()=>{let{onClose:e}=this.props;e()}),this.state={searchValue:``,localColumns:[]},this.isSorting=!1}componentDidUpdate(e){let{isVisible:t,columns:n}=this.props;t&&e.isVisible!==t&&this.setState({localColumns:(0,bc.default)(n)})}getColumnElement(e){return(0,K.jsxs)(`div`,{className:Xw(`pick-col`),children:[(0,K.jsx)(Gw,{checked:e.isVisible,onCheckToggle:()=>this.toggleColumnVisibility(e.id),renderAs:`compact-row`}),e.name]},e.id)}getColumnSortableElement(e){return(0,K.jsxs)(`div`,{className:Xw(`drag-col`),draggable:!0,onDragStart:e=>this.columnDragStart(e),onDragOver:e=>this.columnDragOver(e),onDragEnd:e=>this.columnDragEnd(e),"data-id":e.id,children:[(0,K.jsx)(`div`,{className:Xw(`grab`),children:[...[,,,,,,]].map((e,t)=>(0,K.jsx)(`div`,{className:Xw(`grip`)},t))}),e.name,(0,K.jsx)(br,{size:`small`,onClick:()=>this.toggleColumnVisibility(e.id),className:Xw(`remove-bt`),sx:{p:.25,color:`var(--color-text-secondary)`,"&:hover":{color:`var(--color-red)`}},children:(0,K.jsx)(Hn,{sx:{fontSize:16}})})]},e.id)}
263columnDragStart(e){e.target.dataset.id&&(this.isSorting=!0,e.target.classList.add(`dragged`),e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`text/plain`,null),this.curDragElement=e.target)}isBefore(e,t){let n;if(t.parentNode===e.parentNode){for(n=e.previousSibling;n;n=n.previousSibling)if(n===t)return!0}return!1}columnDragOver(e){this.isSorting&&(e.preventDefault(),this.isBefore(this.curDragElement,e.target)?e.target.parentNode.insertBefore(this.curDragElement,e.target):e.target.parentNode.insertBefore(this.curDragElement,e.target.nextSibling),e.dataTransfer.dropEffect=`move`)}columnDragEnd(e){if(this.isSorting){e.target.classList.remove(`dragged`),this.curDragElement=null;let t=e.target.dataset.id,n=e.target,r=n.parentNode,i=Array.prototype.indexOf.call(r.children,n);this.handleSortEvent(t,i),this.isSorting=!1}}handleSortEvent(e,t){let{localColumns:n}=this.state,r=[...n],i=r.findIndex(t=>t.id===e);r.splice(t,0,r.splice(i,1)[0]),this.handleLocalColumnsChange(r)}toggleColumnVisibility(e){let{localColumns:t}=this.state,n=[...t],r=n.find(t=>t.id===e);r&&(r.isVisible=!r.isVisible),this.handleLocalColumnsChange(n)}handleLocalColumnsChange(e){this.setState({localColumns:e})}updateSearchValue(e){this.setState({searchValue:e.toLowerCase()})}render(){let{searchValue:e,localColumns:t}=this.state,{isVisible:n}=this.props;return(0,K.jsxs)(`div`,{className:Xw(`table-toolbar`,{visible:n}),children:[(0,K.jsxs)(`div`,{className:Xw(`heading`),children:[(0,K.jsx)(`div`,{className:Xw(`title`),children:U(`list_view.chooseWhichColumnsYouSee`)}),(0,K.jsx)(br,{size:`small`,onClick:this.close,className:Xw(`close`),sx:{color:`var(--color-text-secondary)`},children:(0,K.jsx)(Hn,{sx:{fontSize:20}})})]}),(0,K.jsxs)(`div`,{className:Xw(`main`),children:[(0,K.jsx)(`div`,{className:Xw(`search-header`),children:(0,K.jsx)($f,{iconLocation:`right`,onChange:e=>this.updateSearchValue(e),value:e})}),(0,K.jsx)(`div`,{className:Xw(`col`,`list`),children:t.reduce((t,n)=>n.name.toLowerCase().includes(e)?[...t,this.getColumnElement(n)]:t,[])}),(0,K.jsxs)(`div`,{className:Xw(`col`,`order`),children:[(0,K.jsxs)(`div`,{className:Xw(`title`),children:[U(`list_view.selectedColumns`),` (`,t.filter(e=>e.isVisible===!0).length,`)`]}),(0,K.jsxs)(`div`,{className:Xw(`columns-box`),children:[!t.filter(e=>e.isVisible===!0).length&&(0,K.jsx)(`div`,{className:Xw(`placeholder-title`),children:U(`list_view.selectColumnsFromTheLeftToGetStarted`)}),t.filter(e=>e.isVisible===!0).length&&t.filter(e=>e.isVisible===!0).map(e=>this.getColumnSortableElement(e))]})]})]}),(0,K.jsxs)(`div`,{className:Xw(`controls`),children:[(0,K.jsx)(`div`,{className:Xw(`button`,`primary`),onClick:this.save,children:U(`list_view.save`)}),(0,K.jsx)(`div`,{className:Xw(`button`),onClick:this.close,children:U(`list_view.cancel`)})]})]})}};Zw.propTypes={onColumnsChange:V.default.func.isRequired,onClose:V.default.func.isRequired,columns:V.default.arrayOf(V.default.shape({})).isRequired,isVisible:V.default.bool},Zw.defaultProps={isVisible:!1};var Qw=_i.default.bind(Qme),$w=[{title:`15`,value:`15`},{title:`50`,value:`50`},{title:`100`,value:`100`}],eT=()=>!1,tT=({rows:e=[],columns:t,isLoading:n=!1,sortByColumn:r=null,reversedSort:i=!1,totalResultsNumber:a=0,searchValue:o=``,pageNumber:s=1,resultsPerPage:c=$w[0].value,currentMainFilter:l=null,currentTimeFilter:u=null,currentCustomFilter:d=null,mainFilters:f=[],timeFilters:p=[],customFiltersLocalStorageKey:m=`all`,customFiltersRuleAttributes:h=[],customFiltersRuleAttributeFields:g=[],scheduledFilter:_=null,onRowClick:v,onRowSelection:y,disabledBulkActions:b=!1,disabledExports:x=!1,disableTableFilters:S=!1,disabledSearch:C=!1,disableTableToolbar:w=!1,onRowActions:T=()=>{},onReversedSortChange:E,onSortColumnChange:D,onSearchValueChange:ee,onPageNumberChange:te,onResultsPerPageChange:ne,onMainFilterChange:re,onTimeFilterChange:O,onCustomTimeDateChange:ie,onCustomFilterChange:ae,onColumnsChange:oe})=>{let se=(0,B.useRef)(null),[ce,le]=(0,B.useState)(!1),[ue,de]=(0,B.useState)(!1),[fe,pe]=(0,B.useState)(!1),[me,he]=(0,B.useState)(!1),[ge,_e]=(0,B.useState)({startDate:(0,z.default)().subtract(7,`d`),endDate:(0,z.default)()}),ve=(0,B.useCallback)(e=>{re(e)},[re]),ye=(0,B.useCallback)(()=>{he(!0)},[]),be=(0,B.useCallback)(()=>{he(!1)},[]),xe=(0,B.useCallback)(()=>{ie(ge),be()},[ie,ge,be]),Se=(0,B.useCallback)(e=>{let t=e;u===e&&(t=null),O(t),t===`between`&&(xe(),ye())},[u,O,xe,ye]),Ce=(0,B.useCallback)(e=>{ee(e)},[ee]),we=(0,B.useCallback)(()=>{o!==``&&ce||(le(!ce),ce||setTimeout(()=>{se.current?.focus()},50))},[o,ce]),Te=(0,B.useCallback)(e=>{ne(e)},[ne]),Ee=(0,B.useCallback)(e=>{te(e)},[te]),De=(0,B.useCallback)(()=>{Ee(s+1)},[Ee,s]),Oe=(0,B.useCallback)(()=>{Ee(s-1)},[Ee,s]),ke=(0,B.useCallback)(()=>a?Math.ceil(a/Number(c)):1,[a,c]),Ae=(0,B.useCallback)(()=>{pe(e=>!e)},[]),je=(0,B.useCallback)(()=>{},[]),Me=(0,B.useCallback)(()=>{},[]),Ne=(0,B.useCallback)(()=>{},[]),Pe=(0,B.useCallback)(()=>{},[]),Fe=(0,B.useCallback)(()=>{},[]),Ie=(0,B.useCallback)(e=>{r===e?i?(D(null),E(!1)):E(!0):D(e)},[r,i,D,E]),Le=(0,B.useCallback)(e=>{oe(e)},[oe]),Re=(0,B.useCallback)(()=>{de(e=>!e)},[]),ze=(0,B.useCallback)(e=>{ae(e)},[ae]),Be=(0,B.useCallback)((e,t)=>(0,K.jsx)(`div`,{className:Qw(`number`,{current:e+1===t}),onClick:()=>Ee(e+1),children:e+1},e),[Ee]),Ve=(0,B.useCallback)((e,t,n,r)=>{let i=[],a=e,o=t;if(e<1?(a=0,o=t-Math.abs(e)):e+t>r&&(o=r-e),o>=0)for(let e=a;
263e<a+o;e++)i.push(Be(e,n));return i},[Be]),He=ke(),Ue=s+3>He?s+3-He:0,We=s-3-1<1?4-s:0,Ge=Ve(s-3-1-Ue,3+Ue,s,He),Ke=Ve(s,3+We,s,He);return(0,K.jsxs)(`div`,{className:Qw(`view`),children:[(0,K.jsxs)(`div`,{className:Qw(`header`),children:[!S&&(0,K.jsxs)(`div`,{className:Qw(`filters`),children:[(0,K.jsx)(Vw,{scheduledFilter:_,mainFilters:f,currentMainTab:l,timeFilters:p,currentTimeTab:u,customDateRange:ge,onMainFilterChange:e=>ve(e),onTimeFilterChange:e=>Se(e)}),!_?.isActive&&(0,K.jsx)(Uw,{localStorageKey:m,ruleAttributes:h,ruleAttributeFields:g,activeFilter:d,onActiveFilterChange:e=>ze(e)})]}),(0,K.jsxs)(`div`,{className:Qw(`controls`),children:[!C&&(0,K.jsxs)(`div`,{className:Qw(`search-ct`),children:[ce&&(0,K.jsx)(`div`,{className:Qw(`search-field-ct`),children:(0,K.jsx)($f,{inputRef:se,onChange:e=>Ce(e),value:o,placeholder:U(`list_view.search`)})}),(0,K.jsx)(`div`,{className:Qw(`button-ct`),onClick:we,children:(0,K.jsx)(`div`,{className:Qw(`button`),children:(0,K.jsx)(`div`,{className:Qw(`inner`),children:(0,K.jsx)(Y.IcSearch,{fill:`#36AC
263B2`})})})})]}),!x&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{className:Qw(`divider`)}),(0,K.jsxs)(`div`,{className:Qw(`button-ct`),children:[(0,K.jsx)(`div`,{className:Qw(`button`),onClick:Ae,children:(0,K.jsxs)(`div`,{className:Qw(`inner`),children:[(0,K.jsx)(Y.TableExport,{fill:`#36ACB2`}),` `,U(`list_view.export`)]})}),(0,K.jsxs)(`div`,{className:Qw(`options-menu`,{visible:fe}),children:[(0,K.jsx)(`div`,{className:Qw(`option`),onClick:je,children:U(`list_view.csvFormat`)}),(0,K.jsx)(`div`,{className:Qw(`option`),onClick:Me,children:U(`list_view.pdfFormat`)}),(0,K.jsx)(`div`,{className:Qw(`option`),onClick:Ne,children:U(`list_view.excelFormat`)})]})]}),(0,K.jsx)(`div`,{className:Qw(`button-ct`),onClick:Pe,children:(0,K.jsx)(`div`,{className:Qw(`button`),children:(0,K.jsxs)(`div`,{className:Qw(`inner`),children:[(0,K.jsx)(Y.TableEmailExport,{fill:`#36ACB2`}),` `,U(`list_view.email`)]})})}),(0,K.jsx)(`div`,{className:Qw(`button-ct`),onClick:Fe,children:(0,K.jsx)(`div`,{className:Qw(`button`),children:(0,K.jsxs)(`div`,{className:Qw(`inner`),children:[(0,K.jsx)(Y.TablePrint,{fill:`#36AC
263B2`}),` `,U(`list_view.print`)]})})})]}),!w&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{className:Qw(`divider`)}),(0,K.jsxs)(`div`,{className:Qw(`button-ct`),children:[(0,K.jsx)(`div`,{className:Qw(`button`),onClick:Re,children:(0,K.jsx)(`div`,{className:Qw(`inner`),children:(0,K.jsx)(Y.IcMenu,{fill:`#36ACB2`})})}),(0,K.jsx)(Zw,{columns:t,onColumnsChange:e=>Le(e),onClose:()=>Re(),isVisible:ue})]})]})]})]}),(0,K.jsxs)(`div`,{className:Qw(`table`),children:[(0,K.jsx)(`div`,{className:Qw(`legend`),children:(0,K.jsx)(qw,{columns:t,onColumnClick:e=>Ie(e),sortByColumn:r,reversedSort:i,disabledBulkActions:b})}),(0,K.jsx)(`div`,{className:Qw(`rows`),children:(0,K.jsx)(Yw,{columns:t,rows:e,isLoading:n,disabledBulkActions:b,onRowClick:e=>v(e),onRowSelection:e=>y(e),onRowActions:T,currentMainTab:l})})]}),(0,K.jsxs)(`div`,{className:Qw(`navigation`),children:[(0,K.jsxs)(`div`,{className:Qw(`fast-selector`),children:[(0,K.jsxs)(`div`,{className:Qw(`input-ct`),children:[U(`list_view.rowsPerPage`),(0,K.jsx)(`div`,{className:Qw(`select`),children:(0,K.jsx)(Yf,{type:`select`,options:$w,value:c,onChange:e=>Te(e.target.value),styleOverwrite:{height:`22px`},isNewLayout:!0})})]}),(0,K.jsxs)(`div`,{className:Qw(`summary`),children:[(s===1?0:s*Number(c)-Number(c))+1,`-`,s*Number(c),` `,U(`list_view.of`),` `,a||`-`]})]}),(0,K.jsxs)(`div`,{className:Qw(`pages-control`),children:[(0,K.jsx)(`div`,{className:Qw(`arrow`,{disabled:s===1}),onClick:Oe,children:`<`}),(0,K.jsxs)(`div`,{className:Qw(`navigation-controls`),children:[Ge,Be(s-1,s),Ke]}),(0,K.jsx)(`div`,{className:Qw(`arrow`,{disabled:s===He}),onClick:De,children:`>`})]})]}),(0,K.jsxs)(X,{width:`auto`,height:`auto`,onClose:()=>be(),show:me,children:[(0,K.jsx)(`div`,{className:`modal-header__text`,style:{color:`var(--color-text)`,fontSize:`18px`,fontWeight:600,marginBottom:`16px`},children:(0,K.jsx)(`span`,{className:`modal-header__text-content`,children:U(`list_view.choose_date_range`)})}),(0,K.jsx)(X.Text,{children:(0,K.jsx)(`div`,{className:Qw(`day-range-input-ct`),children:(0,K.jsx)(cp,{isDayBlocked:eT,isOutsideRange:eT,startDate:ge.startDate,endDate:ge.endDate,onDatesChange:({startDate:e,endDate:t})=>_e({startDate:e,endDate:t}),numberOfMonths:2})})}),(0,K.jsx)(X.Options,{children:(0,K.jsx)(X.Ok,{onClick:xe,children:U(`list_view.continue`)})})]})]})};tT.propTypes={rows:V.default.arrayOf(V.default.shape({})),columns:V.default.arrayOf(V.default.shape({})).isRequired,isLoading:V.default.bool,sortByColumn:V.default.string,reversedSort:V.default.bool,totalResultsNumber:V.default.number,searchValue:V.default.string,pageNumber:V.default.number,resultsPerPage:V.default.oneOf($w.map(e=>e.value)),mainFilters:V.default.arrayOf(V.default.shape({})),currentMainFilter:V.default.string,timeFilters:V.default.arrayOf(V.default.shape({})),currentTimeFilter:V.default.string,customFiltersLocalStorageKey:V.default.string,customFiltersRuleAttributes:V.default.arrayOf(V.default.shape({})),customFiltersRuleAttributeFields:V.default.arrayOf(V.default.shape({})),currentCustomFilter:V.default.instanceOf(V.default.shape({})),scheduledFilter:V.default.shape({isActive:V.default.bool.isRequired,label:V.default.string.isRequired,onToggle:V.default.func.isRequired}),disabledExports:V.default.bool,disabledSearch:V.default.bool,disableTableFilters:V.default.bool,disableTableToolbar:V.default.bool,disabledBulkActions:V.default.bool,onReversedSortChange:V.default.func.isRequired,onSortColumnChange:V.default.func.isRequired,onSearchValueChange:V.default.func.isRequired,onPageNumberChange:V.default.func.isRequired,onResultsPerPageChange:V.default.func.isRequired,onMainFilterChange:V.default.func.isRequired,onTimeFilterChange:V.default.func.isRequired,onCustomTimeDateChange:V.default.func.isRequired,onCustomFilterChange:V.default.func.isRequired,onColumnsChange:V.default.func.isRequired,onRowClick:V.default.func.isRequired,onRowSelection:V.default.func.isRequired,onRowActions:V.default.func},Qn();var ahe=()=>{try{return ir()}catch{return null}},nT=(e=`unknown`)=>{let t=ahe(),n=(0,B.useRef)(null);return(0,B.useEffect)(()=>{t&&t.pathname!==n.current&&(td(t.pathname,{search:t.search,hash:t.hash}),n.current=t.pathname)},[t?.pathname,t?.search,t?.hash]),{trackClick:(0,B.useCallback)((t,n={})=>{nd(t,{component:e,...n})},[e]),trackIcon:(0,B.useCallback)((t,n={})=>{rd(t,{component:e,...n})},[e]),trackNav:(0,B.useCallback)((e,n=`link`)=>{id(t?.pathname||`unknown`,e,n)},[t?.pathname]),trackTab:(0,B.useCallback)((t,n,r={})=>{ad(t,n,{component:e,...r})},[e]),trackModalAction:(0,B.useCallback)((t,n,r={})=>{od(t,n,{component:e,...r})},[e]),trackField:(0,B.useCallback)((t,n,r={})=>{sd(t,n,{component:e,...r})},[e]),trackSelect:(0,B.useCallback)((t,n,r={})=>{cd(t,n,{component:e,...r})},[e]),trackDropdown:(0,B.useCallback)((t,n,r={})=>{ld(t,n,{component:e,...r})},[e]),trackDate:(0,B.useCallback)((t,n,r={})=>{ud(t,n,{component:e,...r})},[e]),trackSearch:(0,B.useCallback)((t,n,r={})=>{dd(t,n,{component:e,...r})},[e]),trackFilter:(0,B.useCallback)((t,n,r={})=>{fd(t,n,{component:e,...r})},[e]),trackExpand:(0,B.useCallback)((t,n,r={})=>{pd(t,n,{component:e,...r})},[e]),trackUpload:(0,B.useCallback)((t,n,r={})=>{md(t,n,{component:e,...r})},[e]),trackError:(0,B.useCallback)((t,n,r={})=>{hd(t,n,{component:e,...r})},[e]),createClickHandler:(0,B.useCallback)((t,n,r={})=>gd(t,n,{component:e,...r}),[e]),getTrackingId:(0,B.useCallback)(e=>_d(e?.target||e?.currentTarget),[]),ANALYTICS_ACTIONS:Ju,analytics:vd}},rT=(0,B.createContext)(),iT=`properly-theme-preference`,aT=()=>typeof window<`u`?window.matchMedia(`(prefers-color-scheme: dark)`).matches:!1,ohe=()=>{let e=vi.get(iT);return e===`dark`||e===`light`||e===`system`?e:`system`},she=({children:e})=>{let[t,n]=(0,B.useState)(ohe),[r,i]=(0,B.useState)(aT),a=(0,B.useMemo)(()=>t===`system`?r:t===`dark`,[t,r]);(0,B.useEffect)(()=>{document.documentElement.setAttribute(`data-theme`,a?`dark`:`light`)},[a]),(0,B.useEffect)(()=>{ed(qu.UI,`session_theme`,{feature:`dark_mode`,preference:t,resolved_mode:a?`dark`:`light`,system_is_dark:aT(),component:`ThemeContext`})},[]),(0,B.useEffect)(()=>{vi.set(iT,t)},[t]),(0,B.useEffect)(()=>{let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=e=>{i(e.matches)};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let o=(0,B.useCallback)(e=>{ed(qu.UI,Ju.CHANGE,{feature:`dark_mode`,mode:e,enabled:e===`dark`||e===`system`&&aT(),source:`setThemePreference`,component:`ThemeContext`}),n(e)},[]),s=(0,B.useCallback)(()=>{let e=a?`light`:`dark`;ed(qu.UI,Ju.TOGGLE,{feature:`dark_mode`,enabled:e===`dark`,source:`toggle`,component:`ThemeContext`}),n(e)}
263,[a]);return(0,K.jsx)(rT.Provider,{value:{isDarkMode:a,themePreference:t,toggleTheme:s,setThemePreference:o},children:e})},oT=()=>{let e=(0,B.useContext)(rT);if(!e)throw Error(`useThemeMode must be used within ThemeProvider`);return e},sT=[{elementType:`labels.text.fill`,stylers:[{color:`#9CA3AF`}]},{elementType:`labels.text.stroke`,stylers:[{color:`#FFFFFF`},{weight:3}]},{featureType:`administrative.country`,elementType:`labels.text.fill`,stylers:[{color:`#8B939E`}]},{featureType:`administrative.province`,elementType:`labels.text.fill`,stylers:[{color:`#A0A8B4`}]},{featureType:`administrative.locality`,elementType:`labels.text.fill`,stylers:[{color:`#8B939E`}]},{featureType:`administrative`,elementType:`geometry.stroke`,stylers:[{color:`#E0E3E7`}]},{featureType:`landscape.natural`,elementType:`geometry`,stylers:[{color:`#F0F2F4`}]},{featureType:`poi`,elementType:`geometry`,stylers:[{color:`#E8EAED`}]},{featureType:`poi`,elementType:`labels.text.fill`,stylers:[{color:`#B0B7BF`}]},{featureType:`poi.park`,elementType:`geometry.fill`,stylers:[{color:`#E4F0DC`}]},{featureType:`poi.park`,elementType:`labels.text.fill`,stylers:[{color:`#9CB496`}]},{featureType:`road`,elementType:`geometry`,stylers:[{color:`#FFFFFF`}]},{featureType:`road`,elementType:`geometry.stroke`,stylers:[{color:`#E8EAED`}]},{featureType:`road`,elementType:`labels.text.fill`,stylers:[{color:`#B0B7BF`}]},{featureType:`road.highway`,elementType:`geometry`,stylers:[{color:`#F5F5F5`}]},{featureType:`road.highway`,elementType:`labels.text.fill`,stylers:[{color:`#A0A8B4`}]},{featureType:`transit`,elementType:`labels.text.fill`,stylers:[{color:`#B8BFC7`}]},{featureType:`water`,elementType:`geometry`,stylers:[{color:`#D6EBF2`}]},{featureType:`water`,elementType:`labels.text.fill`,stylers:[{color:`#9CB8C4`}]}],cT=[{elementType:`geometry`,stylers:[{color:`#1C2128`}]},{elementType:`labels.text.stroke`,stylers:[{color:`#1C2128`},{weight:3}]},{elementType:`labels.text.fill`,stylers:[{color:`#4A5260`}]},{featureType:`administrative.country`,elementType:`labels.text.fill`,stylers:[{color:`#555D6B`}]},{featureType:`administrative.province`,elementType:`labels.text.fill`,stylers:[{color:`#4A5260`}]},{featureType:`administrative.locality`,elementType:`labels.text.fill`,stylers:[{color:`#555D6B`}]},{featureType:`administrative`,elementType:`geometry.stroke`,stylers:[{color:`#2D333B`}]},{featureType:`administrative.land_parcel`,elementType:`labels.text.fill`,stylers:[{color:`#3D4450`}]},{featureType:`landscape.natural`,elementType:`geometry`,stylers:[{color:`#22272E`}]},{featureType:`poi`,elementType:`geometry`,stylers:[{color:`#2D333B`}]},{featureType:`poi`,elementType:`labels.text.fill`,stylers:[{color:`#3D4450`}]},{featureType:`poi.park`,elementType:`geometry.fill`,stylers:[{color:`#253330`}]},{featureType:`poi.park`,elementType:`labels.text.fill`,stylers:[{color:`#3D5A3E`}]},{featureType:`road`,elementType:`geometry`,stylers:[{color:`#2D333B`}]},{featureType:`road`,elementType:`geometry.stroke`,stylers:[{color:`#333A44`}]},{featureType:`road`,elementType:`labels.text.fill`,stylers:[{color:`#3D4450`}]},{featureType:`road.highway`,elementType:`geometry`,stylers:[{color:`#333A44`}]},{featureType:`road.highway`,elementType:`geometry.stroke`,stylers:[{color:`#3D4450`}]},{featureType:`road.highway`,elementType:`labels.text.fill`,stylers:[{color:`#4A5260`}]},{featureType:`transit`,elementType:`geometry`,stylers:[{color:`#2D333B`}]},{featureType:`transit.station`,elementType:`labels.text.fill`,stylers:[{color:`#3D4450`}]},{featureType:`water`,elementType:`geometry`,stylers:[{color:`#161B22`}]},{featureType:`water`,elementType:`labels.text.fill`,stylers:[{color:`#2D333B`}]}],lT=`map-view-infowindow-styles`;function che(){if(document.getElementById(lT))return;let e=document.createElement(`style`);e.id=lT,e.textContent=` 264 .gm-style-iw-c { 265 padding: 0 !important; 266 border-radius: 14px !important; 267 box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0,0,0,0.1) !important; 268 background: rgba(255, 255, 255, 0.95) !important; 269 backdrop-filter: blur(24px) saturate(180%) !important; 270 -webkit-backdrop-filter: blur(24px) saturate(180%) !important; 271 overflow: hidden !important; 272 max-width: 320px !important; 273 border: 1px solid rgba(0, 0, 0, 0.08) !important; 274 } 275 .gm-style-iw-d { 276 overflow: hidden !important; 277 padding: 0 !important; 278 max-height: none !important; 279 } 280 .gm-style-iw-tc::after { 281 background: rgba(255, 255, 255, 0.95) !important; 282 } 283 .gm-ui-hover-effect { 284 display: none !important; 285 } 286 [data-theme="dark"] .gm-style-iw-c { 287 background: rgba(34, 39, 46, 0.95) !important; 288 box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0,0,0,0.3) !important; 289 border-color: rgba(255, 255, 255, 0.08) !important; 290 } 291 [data-theme="dark"] .gm-style-iw-tc::after { 292 background: rgba(34, 39, 46, 0.95) !important; 293 } 294 `,document.head.appendChild(e)}var uT={pending:`#4DD0E1`,accepted:`#64B5F6`,inprogress:`#CE93D8`,delayed:`#FFB74D`,canceled:`#EF9A9A`,declined:`#EF9A9A`,finished:`#81C784`,completed:`#81C784`,default:`#36ACB2`};function lhe(){return[{key:`pending`,color:`#4DD0E1`,label:U(`jobstatus.pending`)},{key:`accepted`,color:`#64B5F6`,label:U(`jobstatus.accepted`)}
294,{key:`inprogress`,color:`#CE93D8`,label:U(`jobstatus.started`)},{key:`delayed`,color:`#FFB74D`,label:U(`jobstatus.delayed`)},{key:`canceled`,color:`#EF9A9A`,label:U(`jobstatus.cancelled`)},{key:`finished`,color:`#81C784`,label:U(`jobstatus.completed`)}]}function uhe(e){let t=(e.status||``).toLowerCase();for(let[e,n]of Object.entries(uT))if(t.includes(e))return n;return uT.default}var dT={};function dhe(e,t){if(!window.google?.maps)return;let n=`${e}-${t}`;if(dT[n])return dT[n];let r=t?`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="42" viewBox="0 0 32 42"><ellipse cx="16" cy="39" rx="8" ry="3" fill="rgba(0,0,0,0.15)"/><path d="M16 0C7.163 0 0 7.163 0 16c0 12 16 24 16 24s16-12 16-24C32 7.163 24.837 0 16 0z" fill="${e}" stroke="rgba(0,0,0,0.3)" stroke-width="1.5"/><circle cx="16" cy="15" r="6.5" fill="white" opacity="0.95"/></svg>`:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="32" viewBox="0 0 24 32"><path d="M12 0C5.373 0 0 5.373 0 12c0 9 12 20 12 20s12-11 12-20C24 5.373 18.627 0 12 0z" fill="${e}" stroke="rgba(0,0,0,0.2)" stroke-width="1"/><circle cx="12" cy="11" r="4.5" fill="white" opacity="0.9"/></svg>`,i=t?32:24,a=t?42:32,o={url:`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(r)}`,scaledSize:new window.google.maps.Size(i,a),anchor:new window.google.maps.Point(i/2,a)};return dT[n]=o,o}var fhe={width:`100%`,height:`100%`},fT={backgroundColor:`var(--color-bg-paper, #fff)`,color:`var(--color-text)`,boxShadow:`0 2px 6px rgba(0,0,0,0.2)`,border:`1px solid var(--color-border, rgba(0,0,0,0.1))`,"&:hover":{backgroundColor:`var(--color-bg-elevated, #f5f5f5)`,boxShadow:`0 4px 12px rgba(0,0,0,0.25)`}};function phe(e,t){if(e.length>0){let t=0,n=0;return e.forEach(e=>{t+=e.position.lat,n+=e.position.lng}),{lat:t/e.length,lng:n/e.length}}if(t){let e=Object.values(t),n=0,r=0,i=0;if(e.forEach(e=>{let t=e.getLat?.()??e.location?.latitude,a=e.getLong?.()??e.location?.longitude;t!=null&&a!=null&&!isNaN(t)&&!isNaN(a)&&(r+=Number(t),i+=Number(a),n++)}),n>0)return{lat:r/n,lng:i/n}}return{lat:30,lng:0}}function mhe(e,t){let n=[];e.forEach(e=>{let r=e.property?.location?.latitude,i=e.property?.location?.longitude;if((r==null||i==null)&&e.property?.id&&t){let n=t[e.property.id];n&&(r=r??n.getLat?.()??n.location?.latitude,i=i??n.getLong?.()??n.location?.longitude)}r!=null&&i!=null&&!isNaN(r)&&!isNaN(i)&&n.push({id:e.id,position:{lat:Number(r),lng:Number(i)},row:e,color:uhe(e)})});let r={};return n.forEach(e=>{let t=`${e.position.lat.toFixed(4)},${e.position.lng.toFixed(4)}`;r[t]||(r[t]=[]),r[t].push(e)}),n.map(e=>{let t=r[`${e.position.lat.toFixed(4)},${e.position.lng.toFixed(4)}`];return{...e,siblings:t,siblingIndex:t.indexOf(e),siblingCount:t.length}})}function hhe(){dT={}}function pT({marker:e,onViewDetails:t,onNavigate:n,onClose:r}){let{row:i,siblingIndex:a,siblingCount:o}=e,s=new Bs(i),c=i.property?.title||`-`,l=i.job?.title||``,u=i.job?.scheduledStartTime,d=i.job?.scheduledEndTime,f=i.property?.timeZone,p=i.cleaners?.[0]?.name,m=i.property?.pictureIdentifier,h=i.property?.city,g=i.property?.country,_=U(s.getStatusString())||`-`,v=s.getStatusColor(),y=o>1,b=m?iu(m,nu.SMALL_LARGE):null,S=f||z.default.tz.guess(),C=u?(0,z.default)(u).tz(S).format(`MMM D, YYYY`):null,w=(()=>{if(!u)return null;let e=(0,z.default)(u).tz(S).format(`h:mm A`),t=d?(0,z.default)(d).tz(S).format(`h:mm A`):null;return t?`${e} â ${t}`:e})(),T=[h,g].filter(Boolean).join(`, `);return(0,K.jsxs)(I,{sx:{width:300,backgroundColor:`transparent`,fontFamily:`var(--primary-font)`,overflow:`hidden`},children:[(0,K.jsxs)(I,{sx:{height:140,position:`relative`,backgroundColor:`var(--surface-elevated, #2D333B)`,overflow:`hidden`},children:[b?(0,K.jsx)(I,{sx:{width:`100%`,height:`100%`,backgroundImage:`url(${b})`,backgroundSize:`cover`,backgroundPosition:`center`}}):(0,K.jsx)(I,{sx:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`linear-gradient(135deg, var(--color-primary-alpha-10) 0%, var(--surface-elevated, #2D333B) 100%)`},children:(0,K.jsx)(x,{sx:{fontSize:48,fontWeight:700,color:`var(--color-primary)`,opacity:.3},children:c.charAt(0).toUpperCase()})}),(0,K.jsx)(I,{sx:{position:`absolute`,inset:0,background:`linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 50%, rgba(0,0,0,0.15) 100%)`,pointerEvents:`none`}}),(0,K.jsx)(br,{size:`small`,"aria-label":U(`common.close`),onClick:e=>{e.stopPropagation(),r()},sx:{position:`absolute`,top:8,right:8,p:.5,backgroundColor:`rgba(0,0,0,0.45)`,backdropFilter:`blur(8px)`,WebkitBackdropFilter:`blur(8px)`,color:`#fff`,"&:hover":{backgroundColor:`rgba(0,0,0,0.65)`}},children:(0,K.jsx)(hr,{sx:{fontSize:14}})}),(0,K.jsx)(I,{sx:{position:`absolute`,bottom:10,left:12},children:(0,K.jsx)(Nx,{text:_,color:v,size:`small`,glow:!0})}),y&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(br,{size:`small`,onClick:e=>{e.stopPropagation(),n(-1)},sx:{position:`absolute`,top:`50%`,left:8,transform:`translateY(-50%)`,p:.25,backgroundColor:`rgba(0,0,0,0.4)`,backdropFilter:`blur(4px)`,color:`#fff`,"&:hover":{backgroundColor:`rgba(0,0,0,0.6)`}},children:(0,K.jsx)(Cn,{sx:{fontSize:18}})}),(0,K.jsx)(br,{size:`small`,onClick:e=>{e.stopPropagation(),n(1)},sx:{position:`absolute`,top:`50%`,right:8,transform:`translateY(-50%)`,p:.25,backgroundColor:`rgba(0,0,0,0.4)`,backdropFilter:`blur(4px)`,color:`#fff`,"&:hover":{backgroundColor:`rgba(0,0,0,0.6)`}},children:(0,K.jsx)(zr,{sx:{fontSize:18}})}),(0,K.jsxs)(I,{sx:{position:`absolute`,bottom:10,right:12,px:1,py:.25,borderRadius:`var(--radius-pill)`,backgroundColor:`rgba(0,0,0,0.5)`,backdropFilter:`blur(4px)`,color:`#fff`,fontSize:10,fontWeight:600},children:[a+1,` / `,o]})]})]}),(0,K.jsxs)(I,{sx:{p:`14px`},children:[(0,K.jsx)(x,{sx:{fontSize:15,fontWeight:700,color:`var(--color-header, var(--color-text))`,lineHeight:1.3,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,mb:`2px`},children:c}),T&&(0,K.jsx)(x,{sx:{fontSize:12,color:`var(--color-text-secondary)`,lineHeight:1.4,mb:`10px`},children:T}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:`8px`,mb:`12px`}
294,children:[C&&(0,K.jsxs)(I,{sx:{flex:1,backgroundColor:`var(--surface-elevated, var(--color-bg-elevated))`,borderRadius:`var(--radius-sm, 6px)`,border:`1px solid var(--color-border)`,p:`8px 10px`},children:[(0,K.jsx)(x,{sx:{fontSize:9,fontWeight:600,color:`var(--color-text-tertiary, var(--color-text-secondary))`,textTransform:`uppercase`,letterSpacing:`0.08em`,mb:`2px`},children:U(`detailed_view.date`)}),(0,K.jsx)(x,{sx:{fontSize:12,fontWeight:600,color:`var(--color-text)`},children:C})]}),w&&(0,K.jsxs)(I,{sx:{flex:1,backgroundColor:`var(--surface-elevated, var(--color-bg-elevated))`,borderRadius:`var(--radius-sm, 6px)`,border:`1px solid var(--color-border)`,p:`8px 10px`},children:[(0,K.jsx)(x,{sx:{fontSize:9,fontWeight:600,color:`var(--color-text-tertiary, var(--color-text-secondary))`,textTransform:`uppercase`,letterSpacing:`0.08em`,mb:`2px`},children:U(`detailed_view.time`)}),(0,K.jsx)(x,{sx:{fontSize:12,fontWeight:600,color:`var(--color-text)`},children:w})]})]}),(l||p)&&(0,K.jsxs)(I,{sx:{display:`flex`,gap:`8px`,mb:`12px`},children:[l&&(0,K.jsxs)(I,{sx:{flex:1,minWidth:0},children:[(0,K.jsx)(x,{sx:{fontSize:9,fontWeight:600,color:`var(--color-text-tertiary, var(--color-text-secondary))`,textTransform:`uppercase`,letterSpacing:`0.08em`,mb:`2px`},children:U(`list_view.legend.job_title`)}),(0,K.jsx)(x,{sx:{fontSize:12,color:`var(--color-text)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:l})]}),p&&(0,K.jsxs)(I,{sx:{flex:1,minWidth:0},children:[(0,K.jsx)(x,{sx:{fontSize:9,fontWeight:600,color:`var(--color-text-tertiary, var(--color-text-secondary))`,textTransform:`uppercase`,letterSpacing:`0.08em`,mb:`2px`},children:U(`detailed_view.service_provider`)}),(0,K.jsx)(x,{sx:{fontSize:12,color:`var(--color-text)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:p})]})]}),(0,K.jsx)(dn,{variant:`contained`,fullWidth:!0,onClick:t,sx:{py:`7px`,borderRadius:`var(--radius-sm, 6px)`,backgroundColor:`var(--color-primary)`,color:`#fff`,fontSize:12,fontWeight:600,textTransform:`none`,boxShadow:`none`,transition:`all var(--animation-fast) var(--ease-out)`,"&:hover":{backgroundColor:`var(--color-primary-hover)`,boxShadow:`var(--shadow-glow-primary)`}},children:U(`jobs.map_view_details`)})]})]})}
294pT.propTypes={marker:V.default.shape({row:V.default.shape({}),siblingIndex:V.default.number,siblingCount:V.default.number}).isRequired,onViewDetails:V.default.func.isRequired,onNavigate:V.default.func.isRequired,onClose:V.default.func.isRequired};function mT({collapsed:e,onToggle:t}){let n=lhe(),r=(0,B.useMemo)(()=>{let e=n.length;return`conic-gradient(${n.map((t,n)=>`${t.color} ${n/e*360}deg ${(n+1)/e*360}deg`).join(`, `)})`},[n.length]);return(0,K.jsx)(I,{sx:{position:`absolute`,top:12,left:52,zIndex:2,display:`flex`,alignItems:`center`,gap:`6px`,px:e?0:1.5,py:e?0:.75,borderRadius:`var(--radius-pill, 20px)`,backgroundColor:e?`transparent`:`var(--color-bg-paper, #fff)`,boxShadow:e?`none`:`0 2px 8px rgba(0,0,0,0.15)`,border:e?`none`:`1px solid var(--color-border, rgba(0,0,0,0.1))`,transition:`all 0.2s ease`},children:e?(0,K.jsx)(qn,{title:U(`jobs.map_legend`),placement:`right`,children:(0,K.jsx)(br,{size:`small`,onClick:t,sx:fT,children:(0,K.jsx)(I,{sx:{width:16,height:16,borderRadius:`50%`,background:r}})})}):(0,K.jsxs)(K.Fragment,{children:[n.map(e=>(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`4px`,flexShrink:0},children:[(0,K.jsx)(I,{sx:{width:8,height:8,borderRadius:`50%`,backgroundColor:e.color,flexShrink:0}}),(0,K.jsx)(x,{sx:{fontSize:10,fontWeight:500,color:`var(--color-text-secondary)`,whiteSpace:`nowrap`,lineHeight:1},children:e.label})]},e.key)),(0,K.jsx)(br,{size:`small`,onClick:t,sx:{p:.25,ml:.5,color:`var(--color-text-secondary)`},children:(0,K.jsx)(hr,{sx:{fontSize:12}})})]})})}mT.propTypes={collapsed:V.default.bool.isRequired,onToggle:V.default.func.isRequired};var hT=({rawResults:e=[],isLoading:t=!1,onMarkerClick:n=()=>{},propertiesData:r=null})=>{let{trackClick:a,trackExpand:o}=nT(`MapView`),[s,c]=(0,B.useState)(null),[l,u]=(0,B.useState)(!1),d=(0,B.useRef)(null),{isDarkMode:f}=oT(),{isLoaded:p,loadError:m}=i_(),h=(0,B.useMemo)(()=>mhe(e,r),[e,r]),g=(0,B.useRef)(null);g.current||(g.current=phe(h,r)),(0,B.useEffect)(()=>{p&&che()},[p]);let _=(0,B.useRef)(h);_.current=h;let v=(0,B.useCallback)(()=>{let e=_.current;if(!d.current||e.length===0)return;let t=new window.google.maps.LatLngBounds;e.forEach(e=>t.extend(e.position)),d.current.fitBounds(t,{top:50,bottom:50,left:50,right:50}),window.google.maps.event.addListenerOnce(d.current,`bounds_changed`,()=>{d.current&&d.current.getZoom()>13&&d.current.setZoom(13)})},[]),y=e=>{d.current=e,a(`map_loaded`,{action:`map_ready`,markerCount:h.length}),h.length>0&&v()};(0,B.useEffect)(()=>{d.current&&h.length>0&&v()},[v,e]);let b=(0,B.useCallback)(e=>{let t=(e.row?.status||``).toLowerCase();a(`map_marker_select`,{action:`select_marker`,jobId:e.id,status:t,hasSiblings:e.siblingCount>1,siblingCount:e.siblingCount}),c(e)},[a]),S=()=>{a(`map_infowindow_close`,{action:`close_infowindow`}),c(null)},C=e=>{a(`map_view_details`,{action:`view_job_details`,jobId:e.id,status:(e.row?.status||``).toLowerCase()}),c(null),n(e.id,e.row)};return(0,B.useEffect)(()=>{hhe(),d.current&&d.current.setOptions({styles:f?cT:sT})},[f]),m?(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,height:`100%`,minHeight:400,gap:1.5},children:[(0,K.jsx)(ii,{sx:{fontSize:48,color:`var(--color-text-muted, var(--color-text-secondary))`}}),(0,K.jsx)(x,{variant:`body1`,sx:{color:`var(--color-text-secondary)`},children:U(`jobs.map_load_error`)})]}):p?(0,K.jsxs)(I,{sx:{height:`100%`,width:`100%`,position:`relative`},children:[t&&(0,K.jsx)(I,{sx:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,zIndex:3,pointerEvents:`none`},children:(0,K.jsx)(hf,{})}),(0,K.jsx)(I,{sx:{position:`absolute`,top:12,left:12,zIndex:2},children:(0,K.jsx)(qn,{title:U(`jobs.map_recenter`),placement:`right`,children:(0,K.jsx)(br,{size:`small`,onClick:()=>{a(`map_recenter`,{action:`fit_all_markers`,markerCount:h.length}),v()},sx:fT,children:(0,K.jsx)(Xee,{sx:{fontSize:20}})})})}),(0,K.jsx)(mT,{collapsed:l,onToggle:()=>{u(e=>(o(`map_legend`,!e,{action:e?`expand`:`collapse`}),!e))}}),(0,K.jsxs)($t,{mapContainerStyle:fhe,center:g.current,zoom:4,onLoad:y,onClick:()=>{c(null)},options:{streetViewControl:!1,mapTypeControl:!1,panControl:!1,rotateControl:!1,scaleControl:!1,cameraControl:!1,fullscreenControl:!0,fullscreenControlOptions:{position:window.google.maps.ControlPosition.TOP_RIGHT},zoomControl:!0,zoomControlOptions:{position:window.google.maps.ControlPosition.RIGHT_TOP},minZoom:2,restriction:{latLngBounds:{north:85,south:-85,west:-180,east:180}
294,strictBounds:!0},styles:f?cT:sT},children:[h.map(e=>(0,K.jsx)(i,{position:e.position,icon:dhe(e.color,s?.id===e.id),onClick:()=>b(e),zIndex:s?.id===e.id?999:void 0},e.id)),s&&(0,K.jsx)(ht,{position:s.position,onCloseClick:S,options:{pixelOffset:new window.google.maps.Size(0,-8),maxWidth:320,disableAutoPan:!1},children:(0,K.jsx)(pT,{marker:s,onViewDetails:()=>C(s),onNavigate:e=>{a(`map_sibling_navigate`,{action:e>0?`next`:`previous`}),c(t=>{if(!t?.siblings)return t;let n=(t.siblingIndex+e+t.siblingCount)%t.siblingCount;return{...t.siblings[n],siblings:t.siblings,siblingIndex:n,siblingCount:t.siblingCount}})},onClose:S})})]})]}):(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`,minHeight:400},children:(0,K.jsx)(hf,{})})};hT.propTypes={rawResults:V.default.arrayOf(V.default.shape({})),isLoading:V.default.bool,onMarkerClick:V.default.func,propertiesData:V.default.shape({})};var gT=({paymentStatus:e})=>{let t=[{status:to.UNPROCESSED,styles:{backgroundColor:Jp,color:Zp}},{status:to.SUBMITTED,styles:{backgroundColor:Yp,color:Zp}},{status:to.PROCESSING,styles:{backgroundColor:Yp,color:Zp}},{status:to.PENDING,styles:{backgroundColor:Yp,color:Zp}},{status:to.SUCCEEDED,styles:{backgroundColor:qp,color:Zp}},{status:to.FAILED,styles:{backgroundColor:Jp,color:Zp}},{status:to.CANCELED,styles:{backgroundColor:Jp,color:Zp}},{status:to.UNKNOWN,styles:{backgroundColor:Qp,color:Zp}}];Object.values(to).includes(e)||(e=to.UNKNOWN);let n=(0,fc.default)(t,t=>t.status===(e&&e.toLowerCase()));return(0,K.jsx)(Md,{label:U(`payments.status.${e}`),chipStyle:n&&n.styles})};gT.propTypes={paymentStatus:V.default.string.isRequired};var _T=e=>e.account;A(_T,e=>e.updateNotificationState),A(_T,e=>e.passwordState),A(_T,e=>e.states),A(_T,e=>e.warningModal);var vT=A(A(_T,e=>e.connectedAccount),e=>Array.isArray(e)?e:[]),ghe=A(_T,e=>e.showFailedPaymentBanner),yT=A(vT,e=>e.some(e=>e?.connectionSettings?.some(e=>e?.connectionIssue))),_he=A(_T,e=>e.connectedAccountLoading);A(_T,e=>e.connectedAccountError);var vhe=A(_T,e=>e.disconnectAccountLoading),yhe=A(_T,e=>e.disconnectAccountError),bhe=A(vT,e=>e.filter(e=>qa.includes(e.partner))),xhe=A(vT,e=>e.filter(e=>Ja.includes(e.partner))),She=A(_T,e=>e.syncAccountLoading),Che=A(_T,e=>e.syncAccountError),bT=`USER_UPDATE_CURRENT_USER`,xT=`USER_PATCH_CURRENT_USER_SUBSCRIPTION`,ST=`RESET_USER_EMAIL_TO_AUTO_POPULATE`,CT=`LOGIN_SUCCESS_USER`,wT=`LOGIN_ERROR_USER`,TT=`LOGIN_ERROR_USER_RESET`,ET=`LOGIN_BECOME_USER`,whe=`LOGIN_REDIRECT_TO_LANDING_PAGE_SAGA`,DT=`LOGIN_SAGA`,OT=`LOGIN_SET_LOADING`,kT=`LOGIN_GATE_SAGA`,AT=`LOGIN_SET_USER_OVERRIDE`,jT=`LOGIN_USER_WITH_TOKEN`,MT=`SIGNUP_SUCCESS_USER`,NT=`LOGOUT_SUCCESS_USER`,PT=`RESET_PASSWORD_ERROR`,FT=`RESET_PASSWORD_SUCCESS`,The=`RESET_PASSWORD_VALIDATE`,IT=`RESET_PASSWORD_RESET`,Ehe=`RESET_PASSWORD_SAGA`,LT=`SETTINGS_COUNTRY_SUCCESS`,RT=`SETTINGS_GET_USER_FEATURES_REQUEST`,zT=`SETTINGS_SET_USER_FEATURE_FLAGS_SUCCESS`,BT=`SETTINGS_SET_USER_FEATURES_FAILURE`,VT=`SET_DASHBOARD_ADMIN_DETAILS`,Dhe=`SET_DASHBOARD_ADMIN_DETAILS_SAGA_WITH_DELAY`,HT=`SET_DASHBOARD_ADMIN_UNLOCKED`,Ohe=`PROPERTY_LOAD_PROPERTIES_FAILURE`,UT=`PROPERTY_DELETE_PROPERTY_SUCCESS`,WT=`PROPERTY_DELETE_PROPERTY_FAILURE`,GT=`PROPERTY_DELETE_PROPERTY_REQUEST`,KT=`PROPERTY_DELETE_PROPERTY_CANCEL_ERROR`,khe=`PROPERTY_SET_TMP_PROPERTY`,Ahe=`PROPERTY_UPDATE_TMP_PROPERTY`,jhe=`PROPERTY_UPDATE_PROPERTY_REQUEST_STATE`,qT=`PROPERTY_PROPERTIES_HIT`,JT=`PROPERTY_SET_CLONE_PROPERTY`,YT=`PROPERTY_SET_CLONE_PROPERTY_SELECT`,XT=`PROPERTY_MERGE`,ZT=`MERGE_PROPERTIES_SUCCESS`,QT=`MERGE_PROPERTIES_FAILURE`,$T=`RESET_MERGE_PROPERTIES_STATE`,eE=`PROPERTY_UPDATE_TAGS`,tE=`PROPERTY_NO_MERGE_SAGA`,nE=`PROPERTY_SET_ICAL_DATA`,rE=`PROPERTY_SET_INIT_ICAL_DATA`,iE=`PROPERTY_GET_ICALS_WITH_CONNECTION_ISSUES_SAGA`,aE=`PROPERTY_SET_PROPERTIES_WITH_CONNECTION_ISSUE`,oE=`PROPERTY_NEW_EDIT_SAGA`,sE=`CONTACTS_DELETE_CONTACT`,cE=`CONTACTS_SET_CONTACT_MODAL`,lE=`CONTACTS_SET_CONTACT_MODAL_DATA`,uE=`CONTACTS_RESET_CONTACT_MODAL_DATA`,dE=`CONTACTS_RESEND_INVITE_SAGA`,fE=`CONTACTS_FRESH_INVITE_SAGA`,pE=`CONTACTS_ADD_CONTACT_SAGA`,mE=`CONTACTS_CLOSE_MODAL_SAGA`,Mhe=`CONTACTS_DETAIL_PAGE_SAGA`,Nhe=`CONTACTS_SET_FETCHSTATE_CR`,hE=`CONTACT_GET_COMPLETED_SKILL_SAGA`,gE=`CONTACT_SAVE_COMPLETED_SKILLS_TO_STORE`,_E=`GLOBAL_SET_PRELOAD_DATA`,vE=`GLOBAL_SET_PRELOAD_STATUS`,yE=`GLOBAL_SET_GLOBAL_SEARCH_QUERY`,bE=`START_PRELOAD_SAGA`,xE=`UPDATE_COLLECTION_ENTRY`,SE=`UPDATE_COLLECTION_ENTRY_BATCH`,CE=`FILTER_COLLECTION_ENTRY_BATCH`,wE=`GLOBAL_LOGOUT`,TE=`SET_SLIDER_STATE`,EE=`GLOBAL_UPDATE_IN_BACKGROUND`,DE=`GLOBAL_PRE_LOGIN_SAGA`,OE=`GLOBAL_USER_REFETCH_SAGA`,Phe=`GLOBAL_PRE_LOGIN_SUCCESS`,kE=`SET_GLOBAL_LOADING_STATE`,AE=`GLOBAL_SET_MODAL`,jE=`JOB_REQUEST_INIT_SAGA`,ME=`JOB_REQUEST_SUBMIT`,NE=`JOB_REQUEST_SELECT_CHECKLIST`,PE=`JOB_REQUEST_CHANGE_JOB_TITLE`,FE=`JOB_REQUEST_CHANGE_JOB_TYPE`,IE=`JOB_REQUEST_CHANGE_JOB_FORWARD
294ING`,LE=`JOB_REQUEST_SELECT_CHECKLIST_TYPE`,Fhe=`JOB_REQUEST_OPEN_PAYWALL_MODAL`,RE=`JOB_REQUEST_CLOSE_PAYWALL_MODAL`,zE=`JOB_REQUEST_HANDLECLICK`,BE=`JOB_REQUEST_SET_OPEN_SECTION`,VE=`JOB_REQUEST_SET_DATA`,HE=`JOB_REQUEST_SET_COMMUNITY`,UE=`JOB_REQUEST_SET_STARTUPDATA`,WE=`JOB_REQUEST_RESET`,GE=`JOB_REQUEST_UNSET_CLEANERS`,KE=`JOB_REQUEST_LOAD_LIST`,qE=`JOB_REQUEST_LOAD_PHOTO`,JE=`JOB_REQUEST_UPDATE_PROBLEM`,YE=`JOB_REQUEST_SELECT_SKILL`,XE=`JOB_REQUEST_SET_HOST_STRIPE_STATUS`,ZE=`JOB_REQUEST_SET_RI_REQUEST_OPTION`,QE=`JOB_REQUEST_SET_JOB_REQUEST_ID_OF_RECENTLY_SENT_JOB`,$E=`JOB_DETAILS_SET_STRIPE_PAYMENT_DETAILS`,eD=`JOB_REQUEST_CHANGE_TASK_DESCRIPTION`,tD=`JOB_REQUEST_CHANGE_TASK_TITLE`,nD=`SET_DETAIL_VIEW_REFRESH_JOB_RESULTS_DATA`,rD=`JOB_REQUEST_SEND_DRAFT_JOB_SAGA`,iD=`JOB_REQUEST_DELETE_DRAFT_JOB_SAGA`,aD=`JOB_REQUEST_OPEN_MODAL_SAGA`,oD=`AUTOSCHEDULING_INIT_SAGA`,sD=`AUTOSCHEDULING_SUBMIT`,cD=`AUTOSCHEDULING_SELECT_CHECKLIST`,lD=`AUTOSCHEDULING_CHANGE_JOB_TITLE`,uD=`AUTOSCHEDULING_CHANGE_JOB_TYPE`,dD=`AUTOSCHEDULING_CHANGE_JOB_FORWARDING`,fD=`AUTOSCHEDULING_SELECT_CHECKLIST_TYPE`,pD=`AUTOSCHEDULING_HANDLECLICK`,mD=`AUTOSCHEDULING_SET_OPEN_SECTION`,hD=`AUTOSCHEDULING_SET_DATA`,gD=`AUTOSCHEDULING_SET_COMMUNITY`,_D=`AUTOSCHEDULING_SET_STARTUPDATA`,vD=`AUTOSCHEDULING_RESET`,yD=`AUTOSCHEDULING_UNSET_CLEANERS`,bD=`AUTOSCHEDULING_SELECT_SKILL`,xD=`AUTOSCHEDULING_CHANGE_TASK_DESCRIPTION`,SD=`AUTOSCHEDULING_CHANGE_TASK_TITLE`,CD=`AUTOSCHEDULING_CHANGE_TIME_CONFIG_SAGA`,wD=`AUTOSCHEDULING_CHANGE_EDITED_BOOKING_CONFIG_SAGA`,TD=`AUTOSCHEDULING_CHANGE_CANCELED_BOOKING_CONFIG_SAGA`,ED=`AUTOSCHEDULING_CHANGE_SERVICE_PROVIDER_CONFIG_SAGA`,DD=`AUTOSCHEDULING_CHANGE_RECURRENCE_CONFIG_SAGA`,OD=`AUTOSCHEDULING_TOGGLE_REFRESH`,kD=`AUTOSCHEDULING_TOGGLE_STATUS_SAGA`,AD=`AUTOSCHEDULING_DELETE_SAGA`,jD=`SET_DELETED_AUTOSCHEDULER_MODAL_VISIBILITY`,MD=`RECURRING_REMINDER_OPEN_EDITOR_SAGA`,ND=`REMINDER_LOAD_SAGA`,PD=`REMINDER_SUBMIT_SAGA`,FD=`REMINDER_DELETE_SAGA`,ID=`RECURRING_REMINDER_LOAD_HISTORY_SAGA`,LD=`SET_REMINDERS`,RD=`RECURRING_REMINDER_SET_HISTORY`,zD=`SET_REMINDER_DATA`,BD=`RECURRING_REMINDER_MERGE_FORM`,Ihe=`RECURRING_REMINDER_RESET`,VD=`REMINDER_ADD_SAGA`,HD=`REMINDER_CANCEL_DRAFT_SAGA`,UD=`REMINDER_OPEN_JOB_PICKER_SAGA`,WD=`REMINDER_ATTACH_TO_JOB_SAGA`,GD=`REMINDER_CLOSE_JOB_PICKER_SAGA`,KD=`SET_PARSE_CONFIG`,qD=`ACCOUNT_LOGOUT`,JD=`ACCOUNT_SET_PASSWORD_STORE`,Lhe=`ACCOUNT_CHANGE_PW_SAGA`,YD=`ACCOUNT_SET_STATE`,Rhe=`ACCOUNT_SEND_PW_SAGA`,XD=`ACCOUNT_SET_WARNING_MODAL`,ZD=`ACCOUNT_REDIRECT_PROVIDER_SAGA`,QD=`ACCOUNT_CONNECT_DIRECT_TO_PARTNER_SAGA`,$D=`ACCOUNT_REDIRECT_TO_MOBILE_SAGA`,eO=`ACCOUNT_FAILED_PAYMENT_BANNER_VISIBILITY`,tO=`connectedAccount/ACCOUNT_DISMISS_DISCONNECT_ERROR`,nO=`connectedAccount/ACCOUNT_GET_CONNECTED_ACCOUNT_REQUEST`,rO=`connectedAccount/ACCOUNT_GET_CONNECTED_ACCOUNT_SUCCESS`,iO=`connectedAccount/ACCOUNT_GET_CONNECTED_ACCOUNT_FAILURE`,aO=`connectedAccount/ACCOUNT_LEAVE_ACCOUNT_CONNECTIONS`,oO=`connectedAccount/ACCOUNT_DISMISS_SYNC_ERROR`,sO=`connectedAccount/ACCOUNT_SYNC_CONNECTED_ACCOUNT_REQUEST`,cO=`connectedAccount/ACCOUNT_SYNC_CONNECTED_ACCOUNT_SUCCESS`,lO=`connectedAccount/ACCOUNT_SYNC_CONNECTED_ACCOUNT_FAILURE`,uO=`connectedAccount/ACCOUNT_DISCONNECT_CONNECTED_ACCOUNT_REQUEST`,dO=`connectedAccount/ACCOUNT_DISCONNECT_CONNECTED_ACCOUNT_SUCCESS`,fO=`connectedAccount/ACCOUNT_DISCONNECT_CONNECTED_ACCOUNT_FAILURE`,pO=`JOB_DETAILS_OPEN_SAGA`,mO=`JOB_DETAILS_CLOSE_SAGA`,hO=`JOB_DETAILS_SET`,gO=`JOB_DETAILS_CANCEL_SAGA`,_O=`JOB_DETAILS_DUPLICATE_SAGA`,vO=`JOB_DETAILS_EDIT_SAGA`,yO=`JOB_DETAILS_COST_SAGA`,bO=`JOB_DETAILS_ADD_COST_SAGA`,xO=`JOB_DETAILS_ADD_COST_PICTURE_SAGA`,SO=`JOB_DETAILS_EDIT_CLOSE_SAGA`,CO=`JOB_DETAILS_COST_CLOSE_SAGA`,wO=`JOB_DETAILS_EDIT_CONTINUE_SAGA`,TO=`JOB_DETAILS_MORE_CLEANER_SAGA`,EO=`JOB_DETAILS_SCHEDULE_PROBLEMS_SAGA`,DO=`JOB_DETAILS_SET_SOURCE_JOB_PROBLEMS`,OO=`JOB_DETAILS_SET_RESOLVED_PROBLEM`,kO=`JOB_DETAILS_SET_TEMP_MILES_IMAGES`,AO=`JOB_DETAILS_SET_TEMP_DURATION_IMAGES`,jO=`JOB_DETAILS_SET_TEMP_COST_IMAGES`,MO=`JOB_DETAILS_SET_COST_TYPE`,NO=`JOB_DETAILS_SET_CHECKLISTS_VERIFICATION_PHOTOS`,PO=`JOB_DETAILS_OPEN_SOURCE_JOB`,FO=`JOB_DETAILS_SET_RI_REQUESTED`,IO=`SET_PROPERTIES_ELIGIBLE_FOR_RI`,LO=`GET_PROPERTIES_ELIGIBLE_FOR_RI`,RO=`SET_RI_JOB_STATUS`,zO=`JOB_DETAILS_FORWARD_JOB_SAGA`,BO=`SET_JOBS_NOTIFICATIONS`,VO=`CHECKLIST_DETAIL_HIT`,HO=`CHECKLIST_UPDATE_JOBINSTRUCTION`,UO=`CHECKLIST_SET_STATE`,WO=`CHECKLIST_SET_ACTIVE`,GO=`CHECKLIST_SET_TILEVIEW`,KO=`CHECKLIST_SET_TEXTTEMPLATE`,qO=`CHECKLIST_SET_UPLOADSTATE`,JO=`CHECKLIST_UPLOAD_PICS_SAGA`,zhe=`CHECKLIST_ADD_IMAGE_PROPERTY_SAGA`,YO=`CHECKLIST_SET_OR_UPDATE_PICTURE_SAGA`,XO=`CHECKLIST_SET_CURRENT_JOBINS_ID`,ZO=`CHECKLIST_STEP_MUTATOR_SAGA`,QO=`CHECKLIST_CREATE_CHECKLIST_SAGA`,$O=`CHECKLIST_UPDATE_CHECKLIST_SAGA`,ek=`CHECKLIST_TASK_MUTATOR_SAGA`,tk=`CHECKLIST_UPDATE_LAST_UPDATE_TIME`,nk=`CHECKLIST_SET_CURRENT_JOB_ID`,rk=`CHECKLIST_SET_LOADING_STATE`,ik=`CHECKLIST_SET_CLONE_CHECKLIST`,ak=`CHECKLIST_MULTI_CLONE`,ok=`CHECKLIST_SET_MODAL`,sk=`CHECKLIST_SET_MODAL_CLOSE`,Bhe=`CHECKLIST_DELETE_SAGA`,Vhe=`CHECKLIST_DELETE_WARNING_SAGA`,ck=`CHECKLIST_DIRECT_SLIDE_IMAGE_UPLOAD`,lk=`CHECKLIST_DIRECT_TASK_IMAGE_UPLOAD`,Hhe=`CHECKLIST_COPY_CHECKLIST_TO_LIBRARY_REQUEST`,Uhe=`CHECKLIST_COPY_CHECKLIST_TO_LIBRARY_SUCCESS`,Whe=`CHECKLIST_COPY_CHECKLIST_TO_LIBRARY_FAILURE`,uk=`CALENDAR_INIT`,dk=`CALENDAR_RESET`,fk=`CALENDAR_SET_DATES`,pk=`CALENDAR_SET_SEARCH_QUERY`,mk=`CALENDAR_SET_PROPERTY_VIEWPORT`,hk=`CALENDAR_LOAD_EVENTS_REQUEST`,gk=`CALENDAR_LOAD_EVENTS_SUCCESS`,_k=`CALENDAR_LOAD_EVENTS_FAILURE`,vk=`CALENDAR_LOAD_EVENTS_FAILURE_RESET`,yk=`CALENDAR_HANDLE_EVENT_BTN_SAGA`,bk=`CALENDAR_EVENT_CHANNEL_STOP_SAGA`,xk=`CALENDAR_EVENT_CHANNEL_START_SAGA`,Sk=`CALENDAR_ADD_LIVE_CALENDAR_EVENTS`,Ck=`CALENDAR_DELETE_LIVE_CALENDAR_EVENTS`,wk=`CALENDAR_SET_BACKDROP`,Tk=`CALENDAR_SET_MODALDATA`,Ek=`CALENDAR_SET_EVENT_FILTERS`,Dk=`CALENDAR_TOGGLE_CANCELED_EVENTS_FILTER`,Ok=`PRICING_OPEN_MODAL_SAGA`,kk=`PRICING_CLOSE_MODAL_SAGA`,Ak=`PRICING_SET_MODAL`,jk=`TODOS_INIT_SAGA`,Mk=`TODOS_LOAD_DATA`,Nk=`TODOS_LOAD_JOBS_DATA`,Pk=`TODOS_RESET`,Fk=`TODOS_SET_DATA`,Ik=`TODOS_HANDLE_CLICK_SAGA`,Lk=`TODOS_MERGE_EVENTS`,Rk=`REMINDER_ATTACHED_
294SAGA`,zk=`PERMISSION_INIT`,Bk=`PERMISSION_SET_LIST_DATA`,Vk=`PERMISSION_MERGE_LIST_DATA`,Hk=`PERMISSION_HANDLE_ACTION`,Uk=`PERMISSION_INIT_MODAL`,Wk=`PERMISSION_SET_SUBMIT_DATA`,Gk=`PERMISSION_RESET_SUBMIT_DATA`,Kk=`PERMISSIONS_OPEN_COMPANY_INVITE_MODAL_SAGA`,qk=`STRIPE_PM_GET_CUSTOMER_SAGA`,Ghe=`STRIPE_PM_GET_HOST_STATUS_SAGA`,Jk=`STRIPE_PM_ADD_CUSTOMER_PAYMENT_METHOD_SAGA`,Yk=`STRIPE_PM_REMOVE_CUSTOMER_PAYMENT_METHOD_SAGA`,Xk=`STRIPE_PM_ADD_CUSTOMER_SOURCE_SAGA`,Zk=`STRIPE_PM_REMOVE_CUSTOMER_SOURCE_SAGA`,Qk=`STRIPE_PM_ADD_PLAID_CUSTOMER_SOURCE_SAGA`,$k=`STRIPE_PM_SET_CUSTOMER`,eA=`STRIPE_PM_SET_CUSTOMER_LOADING_STATE`,tA=`STRIPE_PM_SET_HOST_STRIPE_STATUS`,nA=`STRIPE_PM_SETUP_INTENT_SAGA`,rA=`STRIPE_PM_SET_MODAL_STATE`,iA=`STRIPE_PM_RESET_MODAL_STATE`,aA=`STRIPE_PM_SET_INTENT_STATE`,oA=`STRIPE_PM_RESET_INTENT_STATE`,Z={main:`/`,deeplink:`/deeplink`,landingPage:`/calendar`,properties:`/properties/`,newProperties:`/properties/new`,propertyPage:e=>e&&`/properties/${e}/jobrequest`||`/properties/`,propertyPageGallery:e=>`/properties/${e}/gallery`,propertyPageJobRequests:e=>`/properties/${e}/jobrequest`,propertyPageSpecificJobRequest:(e,t)=>`/properties/${e}/jobrequest/${t}`,propertyPageDetails:e=>`/properties/${e}/details`,propertyPageHistory:e=>`/properties/${e}/history`,propertyPageChecklists:e=>`/properties/${e}/checklists`,propertyPageConnections:e=>`/properties/${e}/connections`,propertyPageEdit:e=>`/properties/${e}/edit`,propertyPageEvents:e=>`/properties/${e}/events`,propertyPageAutoScheduler:e=>`/properties/${e}/autoschedulers`,bookingPageFromProperty:(e,t)=>`/properties/${e}/jobrequest/booking/${t}`,jobs:`/jobs/`,jobsWithId:e=>`/jobs?search=${e}`,autoscheduling:`/autoscheduling/`,newAutoscheduler:e=>`/autoscheduling/new/${e}`,editAutoscheduler:(e,t)=>t?`/autoscheduling/${e}/${t}`:`/autoscheduling/${e}`,checklist:(e,t)=>
294`/checklists/${e}/${t}/`,library:`/library`,libraryCreateJob:`/library/createJob`,libraryChecklist:(e,t,n)=>n?`/library/published/${e||``}/${t||``}`:`/library/independent/${e||``}/${t||``}`,libraryChecklistClone:(e,t,n)=>n?`/library/clone/published/${e||``}/${t||``}`:`/library/clone/independent/${e||``}/${t||``}`,librarySkill:e=>`/library/skill/${e}`,account:`/account/`,accountConnectionsMobile:`/account-mobile`,oauth:`/account/oauth/`,accountNotifications:`/account/notifications/`,accountPassword:`/account/password/`,contacts:`/contacts/`,contactPage:(e,t)=>`/contacts/${e}/${t||`upcoming`}`,contactPageAll:e=>`/contacts/${e}/all`,bookingPageFromContacts:(e,t,n,r)=>`/contacts/${e}/${t}/booking/${n}/${r}`,newPassword:`/password/new`,resetPassword:`/password/reset`,login:`/login`,signup:`/hostSignUpForm`,verifyEmail:`/verify-email`,hostDownload:`/hostSignUpDownload`,signUpComplete:`/hostSignUpComplete`,calendar:`/calendar`,bookingPageFromCalendar:(e,t)=>`/calendar/event/${e}/${t}`,reports:`/reports/new`,reportPage:e=>`/reports/${e||`new`}`,bookingPageFromReports:(e,t,n)=>`/reports/${e||`new`}/booking/${t}/${n}`,settings:`/settings/connections`,settingsConnections:`/settings/connections`,settingsConnectionsEdit:(e,t)=>`/settings/connections/${e}/${t}`,settingsCompany:`/settings/company`,settingsPartner:`/settings/partner`,settingsPartnerShared:`/settings/partner/shared`,settingsPaymentMethods:`/settings/payment-methods`,settingsReceipts:`/settings/receipts`,settingsSubscription:`/settings/subscription`,todos:`/todos/`,bookingPageFromTodos:(e,t)=>`/todos/booking/${e}/${t}`,permissions:`/permissions/`,error:`/error`,error404:`/error404`,mobileSubscription:`mobile/subscription`,mobileUpgrade:`mobile/upgrade`,loginAs:e=>`/loginas/${e}/`},sA={propertyjobrequest:`jobrequest`,propertydetails:`details`,propertychecklists:`checklists`,propertyconnections:`connections`,propertyevents:`events`,propertyhistory:`history`,propertyAutoScheduler:`autoschedulers`},cA={jobrequest:Z.propertyPageJobRequests,details:Z.propertyPageDetails,checklists:Z.propertyPageChecklists,connections:Z.propertyPageConnections,events:Z.propertyPageEvents,autoschedulers:Z.propertyPageAutoScheduler,history:Z.propertyPageHistory};function Khe(){vi.remove(`properlynotstorage`)}function lA(){return vi.get(`properlynotstorage`)}function qhe(e){let t=lA();t=t?{...t,...e}:{...e},vi.set(`properlynotstorage`,t)}var uA=`properlyTrialNudges_`,Jhe=2160*60*60*1e3;function dA(e){let t=`${uA}${e}`,n;try{n=localStorage.getItem(t)}catch{return{}}if(!n)return{};let r;try{r=JSON.parse(n)}catch(e){console.warn(`[trial-nudge] corrupted storage record, clearing`,e);try{localStorage.removeItem(t)}catch{}return{}}let i=r.createdAt||r.updatedAt;if(i&&Date.now()-i>Jhe){try{localStorage.removeItem(t)}catch{}return{}}return r}function fA(e,t){try{let n=dA(e),r=n.createdAt||n.updatedAt||Date.now();localStorage.setItem(`${uA}${e}`,JSON.stringify({...n,...t,createdAt:r,updatedAt:Date.now()}))}catch{}}var Yhe=(e,t)=>`https://properly.recurly.com/account/invoices/${e}/?ht=${t}`,pA={ios:`https://itunes.apple.com/app/properly-visual-checklist/id1032619209?mt=8`,android:`https://play.google.com/store/apps/details?id=com.getproperly.properlyv2`},mA=1e6,Xhe=`https://help.getproperly.com`;function Zhe(){return Wn({pathname:`/login`,query:{loggedOut:`1`}})}function hA(e,t){return{type:YD,where:e,val:t}}function Qhe(e){return{type:JD,changeSet:e}}function $he(){window.open(Xhe)}function gA(){return gpe(),Khe(),{type:qD}}function ege(e,t){return{type:XD,data:e,reset:t}}function tge(e){return{type:ZD,data:e}}function nge(e,t,n=!1){return{type:QD,redirectPartnerId:e,reconnectId:t,mobile:n}}function _A(e,t,n,r,i){return{type:$D,status:e,externalMobileBrowserConnected:t,onboardingMobile:n,connectionSuccess:r,delayedRedirect:i}}var vA=()=>({type:nO}),rge=()=>({type:aO}),ige=(e,t)=>({type:rO,connectedAccounts:e,connectionSettingsCount:t}),age=e=>({type:iO,error:e}),oge=(e,t)=>({type:uO,id:e,mobile:t}),sge=e=>({type:dO,id:e}),cge=(e,t)=>({type:fO,error:t}),lge=()=>({type:tO}),uge=(e,t)=>({type:sO,id:e,partner:t}),dge=e=>({type:cO,id:e}),fge=(e,t)=>
294({type:lO,error:t}),pge=()=>({type:oO});function yA(e){return{type:eO,val:e}}var mge=()=>{let e=xe(),[t,n]=(0,B.useState)(!1),r=j(ghe);return(0,B.useEffect)(()=>{n(r)},[r]),t?(0,K.jsx)(I,{sx:{marginBottom:`20px`,display:`flex`,justifyContent:`center`,margin:`50px 100px 0 100px`,position:`relative`},children:(0,K.jsxs)(I,{sx:{borderRadius:`8px`,padding:`10px`,backgroundColor:`#fef2f2`,border:`1px solid #fecaca`,display:`flex`,zIndex:1},children:[(0,K.jsx)(Y.WarningTriangleIcon,{height:`40px`,width:`40px`,color:`red`}),(0,K.jsx)(Yg,{type:`medium`,style:{color:`#991b1b`,padding:`inherit`},children:U(`retry_payments.attention_required`)}),(0,K.jsx)(Yg,{style:{color:`#dc2626`,padding:`inherit`},children:(0,K.jsx)(O,{i18nKey:`retry_payments.banner_message`,components:{anchor:(0,K.jsx)(I,{component:`a`,sx:{color:`var(--color-primary)`,textDecoration:`none`},href:`/settings/subscription/`})}})}),(0,K.jsx)(q,{onClick:()=>{n(!1),e(yA(!1))},className:`close-button`,"aria-label":`Close alert`,children:`X`})]})}):null},hge=({objectId:e,onChange:t,pictureUrl:n,title:r,address:i,isActive:a})=>(0,K.jsx)(Hp,{"data-testid":`property-select-${e}`,isActive:a,onChange:t,children:(0,K.jsx)(Hp.Content,{pic:(0,K.jsx)(Sg.Small,{pic:n}),l1:r,l2:oc(i),l3:sc(i)})});hge.propTypes={objectId:V.default.string.isRequired,title:V.default.string,pictureUrl:V.default.string,address:V.default.shape({apt:V.default.string,state:V.default.string,city:V.default.string,zip:V.default.string}),isActive:V.default.bool.isRequired,onChange:V.default.func.isRequired};var bA=({isSharedProperty:e,incompleteAddress:t,isSharingProperty:n,isInactiveProperty:r,id:i,collaboratorData:a,propertyOwnerName:o})=>(0,K.jsxs)(K.Fragment,{children:[r&&(0,K.jsx)(Ig,{title:U(`retry_payments.inactive_property`),children:(0,K.jsx)(I,{component:`span`,sx:{color:`var(--color-error)`,display:`flex`},children:(0,K.jsx)(Y.IcWarningProblems,{color:`currentColor`,height:`20px`,width:`20px`,byWidth:!0})})}),e&&o&&(0,K.jsx)(Ig,{title:(e=>(0,K.jsxs)(K.Fragment,{children:[U(`permissions.shared_by`),` `,(0,K.jsx)(`strong`,{children:e})]}))(o),children:(0,K.jsx)(I,{component:`span`,sx:{color:`var(--color-text-secondary)`,display:`flex`},children:(0,K.jsx)(Y.IcShare,{color:`currentColor`,height:`20px`,width:`20px`,byWidth:!0})})}),n&&(0,K.jsx)(Ig,{title:(e=>(0,K.jsx)(cM,{collaboratorData:a,maxVisibleNames:1,preText:U(`permissions.shared_with`),propertyId:e}))(i),children:(0,K.jsx)(I,{component:`span`,sx:{color:`var(--color-text-secondary)`,display:`flex`},children:(0,K.jsx)(Y.IcSharedwith,{color:`currentColor`,height:`20px`,width:`20px`,byWidth:!0})})}),t&&(0,K.jsx)(I,{component:`span`,sx:{color:`var(--color-warning)`,display:`flex`},children:(0,K.jsx)(Y.IcWarning,{color:`currentColor`,height:`20px`,width:`20px`})})]}),xA=_i.default.bind({GridRow:`_GridRow_wfndn_2`,gridRow:`_GridRow_wfndn_2`,GridColumn:`_GridColumn_wfndn_7`,gridColumn:`_GridColumn_wfndn_7`,LeftSideGridContainer:`_LeftSideGridContainer_wfndn_12`,leftSideGridContainer:`_LeftSideGridContainer_wfndn_12`,LeftSideGrid:`_LeftSideGrid_wfndn_12`,leftSideGrid:`_LeftSideGrid_wfndn_12`,"gridRow__left-side-grid-header":`_gridRow__left-side-grid-header_wfndn_21`,gridRowLeftSideGridHeader:`_gridRow__left-side-grid-header_wfndn_21`,"gridRow__left-side-grid-header--no-photos":`_gridRow__left-side-grid-header--no-photos_wfndn_28`,gridRowLeftSideGridHeaderNoPhotos:`_gridRow__left-side-grid-header--no-photos_wfndn_28`,HeaderGrid:`_HeaderGrid_wfndn_34`,headerGrid:`_HeaderGrid_wfndn_34`,BodyGrid:`_BodyGrid_wfndn_39`,bodyGrid:`_BodyGrid_wfndn_39`,evenRow:`_evenRow_wfndn_44`,oddRow:`_oddRow_wfndn_46`,leftCell:`_leftCell_wfndn_50`,cell:`_cell_wfndn_60`,headerCell:`_headerCell_wfndn_61`}),SA=240,CA=220,wA=140,TA=160,EA=5,DA=8,OA=CA-24,gge=Math.round(OA*9/16),kA={width:`${OA}px`,height:`${gge}px`},_ge=[{photos:[{image:``,originalPhoto:``}]}];function AA({onPhotoClick:e=()=>{},isPhotoSelected:t=()=>{},checklistOptions:n=[],onChecklistChange:r=()=>{},selectedChecklistId:i=null,hasPhotos:a=!1,propertyPhotoRows:o=_ge,propertyPhotoColumns:s=[],verificationPhotosMode:c,disableHeader:l=!1,height:u=0,rowCount:d=0,columnCount:f=0}){let p=(0,B.useRef)(null),[m,h]=(0,B.useState)(!1),[_,v]=(0,B.useState)([]),[y,b]=(0,B.useState)(0),x=(0,B.useCallback)(e=>{r(e.target.value)},[r]),S=(0,B.useCallback)((e,t)=>{let n=o[t]||{},r=(n.photos||[]).filter(e=>e&&e.image),i=r.map(e=>({src:iu(e.image,``,`jpg`,n.scheduledStartTime),title:n.scheduledStartTime?(0,z.default)(n.scheduledStartTime).format(`L LT`):void 0,download:{filename:e.image||`photo`}})),a=r.findIndex(t=>t.image===e);v(i),b(a>=0?a:0),h(!0)},[o]),C=(0,B.useCallback)(({rowIndex:n,columnIndex:r,key:i,style:a})=>{let{photos:s}=o[n]||[],{image:c}=(s||[])[r]||{},l=!!c,u=c?t(c):!1;return(0,K.jsx)(I,{className:xA(`cell`),style:a,sx:{textAlign:`center`,display:`flex`,alignItems:`center`,justifyContent:`center`,p:`8px 12px`},children:c&&(0,K.jsxs)(I,{sx:{position:`relative`,"&:hover .photo-expand-icon":{opacity:1}},children:[(0,K.jsxs)(MA,{image:c,style:kA,onClick:()=>{p.current?.recomputeGridSize({columnIndex:r,rowIndex:n}),e(c)},children:[l&&(0,K.jsx)(I,{sx:{position:`absolute`,top:0,left:0,right:0,bottom:0,borderRadius:`var(--radius-sm, 6px)`,border:u?`2px solid var(--color-primary)`:`2px solid transparent`,transition:`border-color 0.15s, background-color 0.15s`,"&:hover":{backgroundColor:`rgba(255,255,255,0.15)`}}}),l&&(0,K.jsx)(I,{sx:{position:`absolute`,bottom:6,right:8,lineHeight:0,color:u?`var(--color-primary)`:`rgba(255,255,255,0.8)`,filter:u?`none`:`drop-shadow(0 1px 2px rgba(0,0,0,0.6))`},children:u?(0,K.jsx)(Ur,{sx:{fontSize:22}}):(0,K.jsx)(Pn,{sx:{fontSize:22}})})]}),(0,K.jsx)(I,{className:`photo-expand-icon`,onClick:e=>{e.stopPropagation(),S(c,n,r)},sx:{position:`absolute`,top:4,left:4,zIndex:2,width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`,borderRadius:`4px`,backgroundColor:`rgba(0,0,0,0.45)`,color:`#fff`,cursor:`pointer`,o
294pacity:0,transition:`opacity 0.15s`,"&:hover":{backgroundColor:`rgba(0,0,0,0.7)`}},children:(0,K.jsx)(ur,{sx:{fontSize:14}})})]})},i)},[o,t,e,S,c]),w=(0,B.useCallback)(({columnIndex:e,key:t,style:n})=>{let{title:r,originalPhoto:i}=s[e]||{};return(0,K.jsxs)(I,{className:xA(`headerCell`),style:n,sx:{textAlign:`center`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`flex-end`,p:`12px 8px 10px`,borderBottom:`1px solid var(--color-border)`},children:[(0,K.jsx)(MA,{image:i,style:kA}),(0,K.jsx)(I,{sx:{height:`8px`,flexShrink:0}}),(0,K.jsx)(I,{title:r,sx:{width:`100%`,px:`4px`,fontSize:`12px`,lineHeight:1.35,textAlign:`center`,overflow:`hidden`,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,textOverflow:`ellipsis`,wordBreak:`break-word`,color:`var(--color-text)`},children:r})]},t)},[s]),T=(0,B.useCallback)(({key:e,style:t})=>(0,K.jsxs)(I,{className:xA(`headerCell`),style:t,sx:{textAlign:`left`,display:`flex`,flexDirection:`column`,alignItems:`flex-start`,justifyContent:`center`,p:`16px 20px`,borderBottom:`1px solid var(--color-border)`,borderRight:`1px solid var(--color-border)`,backgroundColor:`var(--color-white)`},children:[(0,K.jsx)($g,{children:U(`checklist.select_checklist`)}),(0,K.jsx)(Yf,{name:`verificationPhotoChecklist`,styleOverwrite:{padding:`0px`,margin:`0px`,maxWidth:`${SA-40}px`,width:`100%`},isFirst:!0,isLast:!0,options:n,onChange:x,value:i,type:`select`})]},e),[n,x,i]),E=(0,B.useCallback)(({key:e,rowIndex:t,style:n})=>{let{jobTitle:r,scheduledStartTime:i,cleaner:a}=o[t]||[],s=r&&i&&a;return(0,K.jsx)(I,{className:xA(`leftCell`),style:n,sx:{p:`12px 20px`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`center`,borderBottom:`1px solid var(--color-border)`,borderRight:`1px solid var(--color-border)`,backgroundColor:`var(--color-white)`},children:s&&(0,K.jsxs)(I,{onClick:()=>R.default.info(`On click job`,{jobTitle:r,scheduledStartTime:i,cleaner:a}),sx:{cursor:`pointer`},children:[(0,K.jsx)(Jg,{component:`div`,type:`medium`,children:(0,z.default)(i).format(`L`)}),(0,K.jsx)(I,{title:r,sx:{mt:`2px`,fontSize:`13px`,color:`var(--color-loading-txt)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,maxWidth:`${SA-40}px`},children:r}),(0,K.jsx)(gm,{}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,minWidth:0},children:[(0,K.jsx)(Qd,{picture:a&&a.userData.pictureIdentifier}),(0,K.jsx)(I,{component:`span`,sx:{ml:`10px`,fontSize:`14px`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,maxWidth:`${SA-40-36-10}px`},children:a&&`${a.userData.firstName} ${a.userData.lastName}`})]})]})},e)},[o]);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(bt,{children:({onScroll:e,scrollLeft:t,scrollTop:n})=>(0,K.jsxs)(I,{className:xA(`GridRow`),sx:{position:`relative`,display:`flex`,flexDirection:`row`},children:[!l&&(0,K.jsxs)(I,{className:xA(`LeftSideGridContainer`,`gridRow__left-side-grid-header`,{"gridRow__left-side-grid-header--no-photos":!a}),sx:{flex:`0 0 ${SA}px`,zIndex:10},children:[(0,K.jsx)(g,{selectedChecklistId:i,cellRenderer:T,width:SA,height:TA,rowHeight:TA,columnWidth:SA,rowCount:1,columnCount:1}),!a&&(0,K.jsx)(Kg,{children:U(`checklist.no_photos`)})]}),(0,K.jsx)(I,{className:xA(`LeftSideGridContainer`),sx:{backgroundColor:`var(--color-white)`,position:`absolute`,left:0,top:l?0:TA,flex:`0 0 ${SA}px`,zIndex:10},children:(0,K.jsx)(g,{overscanColumnCount:EA,overscanRowCount:DA,cellRenderer:E,columnWidth:SA,columnCount:1,className:xA(`LeftSideGrid`),height:u-pu(),rowHeight:wA,rowCount:d,scrollTop:n,width:SA})}),(0,K.jsx)(I,{className:xA(`GridColumn`),sx:{display:`flex`,flexDirection:`column`,flex:`1 1 auto`},children:(0,K.jsx)(Ft,{disableHeight:!0,children:({width:n})=>(0,K.jsxs)(`div`,{children:[!l&&(0,K.jsx)(I,{sx:{height:TA,width:n-pu()},children:(0,K.jsx)(g,{className:xA(`HeaderGrid`),style:{left:SA},columnWidth:CA,columnCount:f,height:TA,overscanColumnCount:EA,cellRenderer:w,rowHeight:TA,rowCount:1,scrollLeft:t,width:n-pu()})}),(0,K.jsx)(I,{sx:{height:u,width:n},children:(0,K.jsx)(g,{ref:p,className:xA(`BodyGrid`),style:{left:SA},columnWidth:CA,columnCount:f,height:u,onScroll:e,overscanColumnCount:EA,overscanRowCount:DA,cellRenderer:C,rowHeight:wA,rowCount:d,width:n})})]})})})]})}),(0,K.jsx)(de,{open:m,close:()=>h(!1),index:y,slides:_,plugins:[ut],carousel:{finite:!0},controller:{closeOnBackdropClick:!0},styles:{container:{backgroundColor:`rgba(0, 0, 0, 0.92)`}}})]})}AA.propTypes={onPhotoClick:V.default.func,isPhotoSelected:V.default.func,checklistOptions:V.default.arrayOf(V.default.shape({})),onChecklistChange:V.default.func,selectedChecklistId:V.default.string,hasPhotos:V.default.bool,propertyPhotoRows:V.default.arrayOf(V.default.shape({cleaner:V.default.shape({}),photos:V.default.arrayOf(V.default.shape({image:V.default.string,originalPhoto:V.default.string}))})),propertyPhotoColumns:V.default.arrayOf(V.default.shape({title:V.default.string,originalPhoto:V.default.string})),verificationPhotosMode:V.default.bool.isRequired,disableHeader:V.default.bool,height:V.default.number,rowCount:V.default.number,columnCount:V.default.number};var jA=_i.default.bind({item:`_item_ju31f_2`,"item--actionable":`_item--actionable_ju31f_13`,itemActionable:`_item--actionable_ju31f_13`,"item--active":`_item--active_ju31f_16`,itemActive:`_item--active_ju31f_16`,"item--nopadding":`_item--nopadding_ju31f_19`,itemNopadding:`_item--nopadding_ju31f_19`,"item--grey":`_item--grey_ju31f_22`,itemGrey:`_item--grey_ju31f_22`,item__inner:`_item__inner_ju31f_26`,itemInner:`_item__inner_ju31f_26`,"item__inner-inner":`_item__inner-inner_ju31f_38`,itemInnerInner:`_item__inner-inner_ju31f_38`,"item__inner-spacer":`_item__inner-spacer_ju31f_47`,itemInnerSpacer:`_item__inner-spacer_ju31f_47`,item__image:`_item__image_ju31f_53`,itemImage:`_item__image_ju31f_53`,item__icon:`_item__icon_ju31f_58`,itemIcon:`_item__icon_ju31f_58`,"property-gallery-item-overlay__griditem-overlay":`_property-gallery-item-overlay__griditem-overlay_ju31f_65`,propertyGalleryItemOverlayGriditemOverlay:`_property-gallery-item-overlay__griditem-overlay_ju31f_65`,"property-gallery-item-overlay__griditem-overlay--selected":`_property-gallery-item-overlay__griditem-overlay--selected_ju31f_73`,propertyGalleryItemOverlayGriditemOverlaySelected:`_property-gallery-item-overlay__griditem-overlay--selected_ju31f_73`,"property-gallery-item-overlay__griditem-overlay--hover":`_property-gallery-item-overlay__griditem-overlay--hover_ju31f_76`,propertyGalleryItemOverlayGriditemOverlayHover:`_property-gallery-item-overlay__griditem-overlay--hover_ju31f_76`,"property-gallery-item-overlay__griditem-overlay-icon":`_property-gallery-item-overlay__griditem-overlay-icon_ju31f_79`,propertyGalleryItemOverlayGriditemOverlayIcon:`_property-gallery-item-overlay__griditem-overlay-icon_ju31f_79`}),MA=({image:e,active:t,noPadding:n,children:r,color:i,onClick:a,identifier:o,isRawImage:s,style:c,...l})=>{let u=(e,t)=>
294({backgroundImage:`url(${t?e:iu(e,``,`jpg`)})`}),d={};o&&(d[`data-ident`]=o);let f=a||function(){};return(0,K.jsx)(`div`,{...d,style:{width:`166px`,height:`93px`,...c},"data-testid":l[`data-testid`],onClick:f,className:jA(`item`,{"item--actionable":!!a,"item--active":t,"item--nopadding":n,"item--grey":i===`grey`}),children:(0,K.jsxs)(`div`,{className:jA(`item__inner`),children:[(0,K.jsx)(`div`,{className:jA(`item__inner-spacer`)}),(0,K.jsxs)(`div`,{className:jA(`item__inner-inner`),children:[e&&(0,K.jsx)(`div`,{className:jA(`item__image`),style:u(e,s)}),r]})]})})};MA.GridItemOverlay=({mode:e,hasHover:t})=>(0,K.jsxs)(`div`,{className:jA(`property-gallery-item-overlay__griditem-overlay`,{"property-gallery-item-overlay__griditem-overlay--selected":e===`selected`,"property-gallery-item-overlay__griditem-overlay--hover":t}),children:[e===`canselect`&&(0,K.jsx)(`div`,{className:jA(`property-gallery-item-overlay__griditem-overlay-icon`),children:(0,K.jsx)(Y.IcSelectPhoto,{width:`2em`,height:`2em`,byWidth:!0})}),e===`selected`&&(0,K.jsx)(`div`,{className:jA(`property-gallery-item-overlay__griditem-overlay-icon`),children:(0,K.jsx)(Y.IcSelectedPhoto2,{width:`2em`,height:`2em`,byWidth:!0})})]}),MA.propTypes={image:V.default.string,title:V.default.string,color:V.default.string,identifier:V.default.string,onClick:V.default.func,children:V.default.node,active:V.default.bool,isRawImage:V.default.bool,noPadding:V.default.bool};var NA={borderRadius:`inherit`,background:`var(--color-white)`,height:`100%`,width:`100%`,padding:`12px var(--space-tiny)`,"&:hover":{background:`rgba(0,0,0,0.04)`}},PA={position:`relative`,display:`flex`},FA={paddingRight:`8px`,paddingTop:`12px`},IA={padding:`3px var(--space-tiny)`,flex:1,alignItems:`center`,justifyContent:`flex-start`,textAlign:`left`,maxWidth:`calc(100% - 78px)`},LA={position:`relative`,height:`16px`},RA={position:`absolute`,height:`20px`,maxWidth:`100%`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},zA={color:`var(--color-loading-txt)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,fontSize:`12px`,lineHeight:`16px`},BA=({property:e,selected:t,onClick:n})=>{let{title:r,city:i}=e||{},a=e.address&&e.address.AddressArray&&e.address.AddressArray[0];return(0,K.jsx)(fm,{isFirst:!0,noPadding:!0,styleOverwrite:{height:72},isLast:!0,children:(0,K.jsx)(I,{sx:NA,children:(0,K.jsxs)(I,{sx:PA,children:[(0,K.jsx)(Sg.Small,{pic:e.pictureUrl}),(0,K.jsxs)(I,{sx:IA,children:[(0,K.jsx)(I,{className:`text-type-small`,sx:LA,children:(0,K.jsx)(I,{component:`span`,sx:RA,children:r||a})}),(0,K.jsx)(I,{sx:zA,children:a}),(0,K.jsx)(I,{sx:zA,children:i})]}),(0,K.jsx)(I,{sx:FA,children:(0,K.jsx)(Dp,{style:{height:22,width:22},type:`quarter`,selected:t,onChange:n})})]})})})};BA.propTypes={property:V.default.shape({}).isRequired,selected:V.default.bool,onClick:V.default.func};var VA=({tags:e,selectedTags:t,onChange:n})=>{let{t:r}=Dt(),[i,a]=(0,B.useState)(null);if(!e.length)return null;let s=e=>a(e.currentTarget),c=()=>a(null),l=e=>{n(t.includes(e)?t.filter(t=>t!==e):[...t,e])},u=()=>n([]),d=!!i;return(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,flexShrink:0},children:[(0,K.jsx)(I,{sx:{width:`1px`,height:`16px`,bgcolor:`var(--color-border-search)`,mx:.75}}),(0,K.jsx)(br,{size:`small`,onClick:s,"aria-label":r(`properties.filter_by_tags`),sx:{color:t.length>0?`var(--color-primary)`:`var(--color-grey)`,"&:hover":{color:`var(--color-primary)`,backgroundColor:`var(--color-primary-light)`}},children:(0,K.jsx)(Rr,{badgeContent:t.length,color:`primary`,children:(0,K.jsx)(o,{fontSize:`small`})})}),(0,K.jsxs)(Je,{open:d,anchorEl:i,onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},slotProps:{paper:{sx:{p:2,minWidth:200,maxWidth:320}}},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,mb:1.5},children:[(0,K.jsx)(x,{variant:`caption`,sx:{fontWeight:600,color:`var(--color-text)`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:r(`properties.filter_by_tags`)}),t.length>0&&(0,K.jsx)(x,{component:`button`,variant:`caption`,onClick:u,sx:{background:`none`,border:`none`,cursor:`pointer`,color:`var(--color-primary)`,p:0,"&:hover":{textDecoration:`underline`}},children:r(`properties.clear_tag_filters`)})]}),(0,K.jsx)(I,{sx:{display:`flex`,flexWrap:`wrap`,gap:.75},children:e.map(e=>(0,K.jsx)(_n,{label:e,size:`small`,variant:t.includes(e)?`filled`:`outlined`,onClick:()=>l(e),sx:{cursor:`pointer`,...t.includes(e)?{backgroundColor:`var(--color-primary)`,color:`#fff`,borderColor:`var(--color-primary)`}:{color:`var(--color-text)`,borderColor:`var(--color-gray-300)`}}},e))})]})]})};
294VA.propTypes={tags:V.default.arrayOf(V.default.string).isRequired,selectedTags:V.default.arrayOf(V.default.string).isRequired,onChange:V.default.func.isRequired};var HA={border:`1px solid var(--color-radio-border-idle)`,borderRadius:`2px`,minWidth:`266px`,width:`100%`,height:`auto`,position:`absolute`,marginTop:`4px`,background:`var(--color-white)`,zIndex:1e3,overflow:`hidden`},UA={left:0},WA={right:0},GA={width:`664px`,height:`400px`},KA={position:`fixed`,top:0,right:0,bottom:0,left:0,zIndex:999},qA=({children:e,onClose:t,isBig:n=!1,align:r=`left`,scrollIntoViewOnOpen:i=!1})=>{let a=(0,B.useRef)(null);return(0,B.useEffect)(()=>{if(!i)return;let e=requestAnimationFrame(()=>{a.current?.scrollIntoView({behavior:`smooth`,block:`nearest`})});return()=>cancelAnimationFrame(e)},[i]),(0,K.jsxs)(I,{children:[(0,K.jsx)(I,{ref:a,sx:{...HA,...n&&GA,...r===`left`&&UA,...r===`right`&&WA},onClick:e=>e.stopPropagation(),children:e}),(0,K.jsx)(I,{onClick:t,sx:KA})]})};qA.propTypes={children:V.default.node.isRequired,isBig:V.default.bool,onClose:V.default.func.isRequired,align:V.default.oneOf([`left`,`right`]),scrollIntoViewOnOpen:V.default.bool};var JA={color:`var(--color-grey)`,marginBottom:`4px`,fontSize:`12px`,lineHeight:`16px`},YA={padding:`8px 16px`,background:`transparent`,width:`100%`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},XA={color:`var(--color-no-result)`,"& span":{color:`var(--color-no-result)`}},ZA={color:`var(--color-no-result)`},QA={color:`var(--color-loading-txt)`},$A={minWidth:`16px`,marginRight:`10px`},ej={marginRight:`10px`},tj=({title:e,...t})=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(I,{sx:JA,children:e}),(0,K.jsx)(Yf,{"data-testid":`report-title`,isFirst:!0,isLast:!0,styleOverwrite:{backgroundColor:`var(--color-white)`,height:36},style:{padding:`6px 16px`},type:`text`,...t})]});tj.Dropdown=({title:e,input:t,onClick:n,isOpen:r,placeholder:i,greyAll:a,greyPart:o,pretxt:s,error:c,disabled:l,...u})=>{let d=!t&&i?i:t,f=d!==i&&s;return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(I,{sx:JA,children:e}),(0,K.jsxs)(fm,{onClick:l?Fu.default:n,isFirst:!0,noPadding:!0,hover:!l,error:c,focus:r,styleOverwrite:{height:36},isLast:!0,"data-testid":u[`data-testid`],children:[(0,K.jsxs)(I,{className:`text-type-small`,sx:{...YA,...a&&XA,...o&&ZA},children:[f?(0,K.jsxs)(`span`,{children:[s,`: `]}):null,(0,K.jsx)(I,{component:`span`,sx:f?QA:{},children:d})]}),(0,K.jsx)(I,{sx:ej,children:r?(0,K.jsx)(Y.IcExpandMore4,{}):(0,K.jsx)(Y.IcExpandMore3,{})})]})]})},tj.Select=({title:e,input:t,onClick:n,selected:r})=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(I,{sx:JA,children:e}),(0,K.jsxs)(fm,{isFirst:!0,noPadding:!0,hover:!0,styleOverwrite:{height:36},isLast:!0,children:[(0,K.jsx)(I,{className:`text-type-small`,sx:YA,children:t}),(0,K.jsx)(I,{sx:$A,children:(0,K.jsx)(Dp.Base,{onChange:n,small:!0,selected:r})})]})]});var nj=Kee(),rj=e=>{let{placeholder:t,onBlur:n,suggestions:r=[],onChange:i,value:a=[]}=e;return(0,K.jsx)(I,{sx:{flexGrow:1},children:(0,K.jsx)(Zn,{multiple:!0,freeSolo:!0,autoFocus:!0,options:r,getOptionLabel:e=>typeof e==`string`?e:e.inputValue?e.inputValue:e.label||``,value:a,onBlur:n,onChange:(e,t)=>
294{i(t.map(e=>typeof e==`string`?{label:e,value:e}:e.inputValue?{label:e.inputValue,value:e.inputValue}:e))},filterOptions:(e,t)=>{let n=nj(e,t),{inputValue:r}=t,i=e.some(e=>r===e.label);return r!==``&&!i&&n.push({inputValue:r,label:`Add "${r}"`}),n},isOptionEqualToValue:(e,t)=>e.value===t.value,slotProps:{paper:{sx:{backgroundColor:`var(--color-bg-paper)`}}},renderOption:(e,t)=>{let{key:n,...r}=e,i=!!t.inputValue;return(0,K.jsxs)(I,{component:`li`,...r,sx:{display:`flex`,alignItems:`center`,gap:1,color:`var(--color-text)`},children:[i&&(0,K.jsx)(_t,{sx:{fontSize:18,color:`var(--color-primary)`}}),(0,K.jsx)(x,{sx:{color:`var(--color-text)`},children:i?`Add "${t.inputValue}"`:t.label})]},n)},renderValue:(e,t)=>e.map((e,n)=>{let{key:r,...i}=t({index:n});return(0,K.jsx)(_n,{label:e.label,deleteIcon:(0,K.jsx)(Y.IcCancel,{}),sx:e=>({m:`${e.spacing(.5)} ${e.spacing(.25)}`,backgroundColor:`var(--color-gray-200)`,color:`var(--color-text)`}),...i},r)}),renderInput:e=>(0,K.jsx)(yn,{...e,autoFocus:!0,fullWidth:!0,placeholder:t})})})};rj.propTypes={};var ij=({initTags:e=[],onChange:t,onBlur:n,suggestions:r,buttonLabel:i,placeholder:a})=>{let[o,s]=(0,B.useState)(e?[...e]:[]),[c,l]=(0,B.useState)(!1),u=B.useRef(e);(0,B.useEffect)(()=>{e!==u.current&&(s([...e]),u.current=e)},[e]);let d=()=>{l(!0)};return c?(0,K.jsx)(I,{sx:{flexGrow:1,my:1.5},children:(0,K.jsx)(I,{sx:{borderRadius:`4px`},children:(0,K.jsx)(rj,{placeholder:a,suggestions:r,value:o,onChange:e=>{s(e),t(e)},onBlur:()=>{l(!1),n()}})})}):(0,K.jsxs)(I,{sx:{flexGrow:1,m:`23px 12px`,display:`flex`,alignItems:`center`,flexWrap:`wrap`},children:[(o||[]).map(({label:e})=>(0,K.jsx)(_n,{tabIndex:-1,label:e,onClick:d,sx:{m:.25,backgroundColor:`var(--color-gray-200)`,color:`var(--color-text)`,cursor:`pointer`}},e)),o&&o.length>0?(0,K.jsx)(qn,{title:i,arrow:!0,children:(0,K.jsx)(br,{size:`small`,onClick:d,sx:{ml:.5,color:`var(--color-grey)`,"&:hover":{color:`var(--color-primary)`,backgroundColor:`var(--color-primary-light)`}},children:(0,K.jsx)(_t,{fontSize:`small`})})}):(0,K.jsx)(q,{types:[`size-small`,`type-border-grey`],onClick:d,children:(0,K.jsxs)(Ht,{container:!0,direction:`row`,sx:{alignItems:`center`},children:[(0,K.jsx)(Ht,{style:{marginRight:`8px`},children:(0,K.jsx)(Y.IcTag,{})}),(0,K.jsx)(Ht,{children:i})]})})]})};ij.propTypes={onBlur:V.default.func.isRequired,onChange:V.default.func.isRequired,suggestions:V.default.arrayOf(V.default.shape({})).isRequired,initTags:V.default.arrayOf(V.default.shape({})),buttonLabel:V.default.string.isRequired,placeholder:V.default.string.isRequired};var aj=({count:e=0})=>(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`},children:[(0,K.jsxs)($g,{size:`small`,children:[(0,K.jsx)(Y.AddTask,{}),`\xA0 Add Task`]}),(0,K.jsxs)($g,{size:`small`,children:[e,` task`]})]});aj.propTypes={count:V.default.number};var oj=({task:e={title:``,note:``,pictureIdentifiers:[]},onDelete:t=()=>{}})=>(0,K.jsx)(Xb,{title:e.title,description:e.note,onDelete:t,pictureIdentifiers:e.pictureIdentifiers});oj.propTypes={task:V.default.shape({title:V.default.string,note:V.default.string,pictureIdentifiers:V.default.arrayOf(V.default.string)}),onDelete:V.default.func};var sj=({children:e=null,...t})=>(0,K.jsx)(fv,{...t,children:e});sj.propTypes={children:V.default.node};var cj=_i.default.bind({todosele:`_todosele_wy329_2`,"todosele--whitebg":`_todosele--whitebg_wy329_11`,todoseleWhitebg:`_todosele--whitebg_wy329_11`,"todosele--greybg":`_todosele--greybg_wy329_14`,todoseleGreybg:`_todosele--greybg_wy329_14`,"todosele--red":`_todosele--red_wy329_17`,todoseleRed:`_todosele--red_wy329_17`,"todosele--clickable":`_todosele--clickable_wy329_20`,todoseleClickable:`_todosele--clickable_wy329_20`,todosele__marker:`_todosele__marker_wy329_29`,todoseleMarker:`_todosele__marker_wy329_29`,todosele__inner:`_todosele__inner_wy329_39`,todoseleInner:`_todosele__inner_wy329_39`,todosele__main:`_todosele__main_wy329_45`,todoseleMain:`_todosele__main_wy329_45`,todosele__section:`_todosele__section_wy329_50`,todoseleSection:`_todosele__section_wy329_50`,"todosele__txt--l7m":`_todosele__txt--l7m_wy329_55 text-l7m`,todoseleTxtL7M:`_todosele__txt--l7m_wy329_55 text-l7m`,"todosele__txt--l7":`_todosele__txt--l7_wy329_55 text-l7`,todoseleTxtL7:`_todosele__txt--l7_wy329_55 text-l7`,"todosele__txt--l5":`_todosele__txt--l5_wy329_57 text-l5`,todoseleTxtL5:`_todosele__txt--l5_wy329_57 text-l5`,"todosele__txt--l5m":`_todosele__txt--l5m_wy329_58 text-l5m`,todoseleTxtL5M:`_todosele__txt--l5m_wy329_58 text-l5m`,"todosele__txt--l6m":`_todosele__txt--l6m_wy329_59 text-l6m`,todoseleTxtL6M:`_todosele__txt--l6m_wy329_59 text-l6m`,"todosele__txt--l6":`_todosele__txt--l6_wy329_59 text-l6`,todoseleTxtL6:`_todosele__txt--l6_wy329_59 text-l6`,"todosele__txt--l3m":`_todosele__txt--l3m_wy329_61 text-l3m`,todoseleTxtL3M:`_todosele__txt--l3m_wy329_61 text-l3m`,"todosele__txt--l4":`_todosele__txt--l4_wy329_62 text-l4`,todoseleTxtL4:`_todosele__txt--l4_wy329_62 text-l4`,"todosele__txt--l4m":`_todosele__txt--l4m_wy329_63 text-l4m`,todoseleTxtL4M:`_todosele__txt--l4m_wy329_63 text-l4m`,"todosele__color--black":`_todosele__color--black_wy329_65`,todoseleColorBlack:`_todosele__color--black_wy329_65`,"todosele__color--no-result":`_todosele__color--no-result_wy329_68`,todoseleColorNoResult:`_todosele__color--no-result_wy329_68`,"todosele__color--primary":`_todosele__color--primary_wy329_71`,todoseleColorPrimary:`_todosele__color--primary_wy329_71`,"todosele__color--orange":`_todosele__color--orange_wy329_74`,todoseleColorOrange:`_todosele__color--orange_wy329_74`,"todosele__color--grey":`_todosele__color--grey_wy329_77`,todoseleColorGrey:`_todosele__color--grey_wy329_77`,"todosele__color--grey2":`_todosele__color--grey2_wy329_80`,todoseleColorGrey2:`_todosele__color--grey2_wy329_80`,"todosele__color--red":`_todosele__color--red_wy329_83`,todoseleColorRed:`_todosele__color--red_wy329_83`,"todosele__color--rt-red":`_todosele__color--rt-red_wy329_86`,todoseleColorRtRed:`_todosele__color--rt-red_wy329_86`,"todosele__color--rt-orange":`_todosele__color--rt-orange_wy329_89`,todoseleColorRtOrange:`_todosele__color--rt-orange_wy329_89`,"todosele__color--rt-green":`_todosele__color--rt-green_wy329_92`,todoseleColorRtGreen:`_todosele__color--rt-green_wy329_92`,"todosele__text--left":`_todosele__text--left_wy329_95`,todoseleTextLeft:`_todosele__text--left_wy329_95`,"todosele__mtop-6":`_todosele__mtop-6_wy329_98`,todoseleMtop6:`_todosele__mtop-6_wy329_98`,"todosele__helper--cuttxt":`_todosele__helper--cuttxt_wy329_101 cut-txt`,todoseleHelperCuttxt:`_todosele__helper--cuttxt_wy329_101 cut-txt`,"todosele__helper--wordbreak":`_todosele__helper--wordbreak_wy329_102`,todoseleHelperWordbreak:`_todosele__helper--wordbreak_wy329_102`,"todosele__helper--clickable":`_todosele__helper--clickable_wy329_105`,todoseleHelperClickable:`_todosele__helper--clickable_wy329_105`,todosele__preele:`_todosele__preele_wy329_110`,todoselePreele:`_todosele__preele_wy329_110`,"todosele__icon--permission":`_todosele__icon--permission_wy329_114`,todoseleIconPermission:`_todosele__icon--permission_wy329_114`,"todosele__link--clickable":`_todosele__link--clickable_wy329_120`,todoseleLinkClickable:`_todosele__link--clickable_wy329_120`});function lj({children:e,isClickable:t=!1,onClick:n=()=>{},isRed:r=!1,modifier:i=[],isSelected:a,isExpanded:o=void 0}){return(0,K.jsx)(`div`,{onClick:t&&typeof n==`function`&&n||(()=>{}),tabIndex:`0`,role:`treeitem`,"aria-selected":a,"aria-expanded":o,className:cj(`todosele`,{"todosele--red":r,"todosele--clickable":t},(0,H.default)(i,e=>`todosele--${e}`)),children:e})}lj.propTypes={children:V.default.node.isRequired,isClickable:V.default.bool,onClick:V.default.func,isRed:V.default.bool,modifier:V.default.arrayOf(V.default.string),isSelected:V.default.bool.isRequired,isExpanded:V.default.bool};function uj({children:e}){return(0,K.jsx)(`div`,{className:cj(`todosele__inner`),children:e})}uj.propTypes={children:V.default.node.isRequired};function dj({children:e}){return(0,K.jsx)(`div`,{className:cj(`todosele__main`),children:e})}dj.propTypes={children:V.default.node.isRequired};function fj({children:e,width:t=`auto`,noPadding:n=!1,extraStyles:r={}}){let i=n?{padding:0,...r}:{...r};return(0,K.jsx)(I,{className:cj(`todosele__section`),sx:{width:t,...i},children:e})}fj.propTypes={children:V.default.node.isRequired,width:V.default.oneOfType([
294V.default.string,V.default.number]),noPadding:V.default.bool,extraStyles:V.default.shape({})};function pj({children:e}){return(0,K.jsx)(`div`,{className:cj(`todosele__marker`),children:e})}pj.propTypes={children:V.default.node.isRequired};function mj({modifier:e=[],children:t,preElement:n=null,componentClass:r=`div`,onClick:i=()=>{},styleOverwrite:a={}}){return(0,K.jsxs)(r,{style:a,onClick:i,className:cj((0,H.default)(e,e=>`todosele__${e}`)),children:[n&&(0,K.jsx)(`span`,{className:cj(`todosele__preele`),children:n}),t]})}mj.propTypes={modifier:V.default.arrayOf(V.default.string),children:V.default.node.isRequired,preElement:V.default.node,componentClass:V.default.string,onClick:V.default.func,styleOverwrite:V.default.shape({})};function hj({type:e,children:t}){return(0,K.jsx)(`div`,{className:cj(`todosele__icon--${e}`),children:t})}hj.propTypes={type:V.default.string.isRequired,children:V.default.node.isRequired};var gj,_j,vj=!1,yj=[];function bj(){vj||(vj=!0,gj=document.createElement(`canvas`),gj.style.position=`absolute`,gj.style[`z-index`]=`10000000000000000`,gj.style.top=`0`,gj.style.left=`0`,gj.style.height=`100%`,gj.style.width=`auto`,gj.style[`user-select`]=`none`,gj.style[`pointer-events`]=`none`,gj.width=window.innerWidth,gj.height=window.innerHeight,document.body.appendChild(gj),_j=gj.getContext(`2d`),setInterval(()=>{let e=0,t=yj.length;for(;e<t;)yj[e]&&yj[e].update()?e+=1:--t},1e3/60))}var xj=52,Sj=71/2,Cj=96/2;function wj(e,t,n,r,i){let a=t,o=n,s=r,c=i;s===0&&(s=2);let l=Dj();this.update=()=>{if(a+=s,o+=c,a<-Sj||a>gj.width+Sj){let e=yj.indexOf(this);return yj.splice(e,1),!1}return o>gj.height-Cj&&(o=gj.height-Cj,c=-c*.85),c+=.98,_j.drawImage(l,0,0,454,378,Math.floor(a-Sj),Math.floor(o-Cj),100,83),!0}}function Tj(e,t){xj>0?--xj:xj=51;let n=Math.floor(Math.random()*6-3)*2,r=new wj(xj,e,t,n,-Math.random()*16);yj.push(r)}function Ej(e,t){let n=Math.floor(Math.random()*3)*2,r=new wj(xj,e,t,n,-Math.random()*16);yj.push(r)}function Dj(){let e=document.createElement(`img`);return e.style.background=`#fff`,e.src=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAF6CAYAAACDavgnAAAABGdBTUEAALGPC/xhBQAAQABJREFUeAHsnQeYJUW1x3funRx2Z3Pendm8OxuAlSBRkgKKICBiemafPn34xByeATEjpieYEH2i+BQUE4iKIMKSFjazkc07m9g8Ozm837k7fenu6VQ9d2buvXP6+/pWdXXVqXP+Vfecyp0copcioAgoAorAoEdg7NixFaNHj/7u0KFDS48cObIeQLoGKyiFg1VwlVsRUAQUAUXgBAKTJk0qKywsvLmgoOCtyWTyQkLFMK4arPgkB6vgKrcioAgoAopACoHi4cOHfwGj+M5EIlGGO2LYsGEFhw8ffpS3LYMRIzWMg7HUVWZFQBFQBE4gkJw6derHMYbvwygOtUDp6uqaj3F8tntI1QoeNG5i0EiqgioCioAioAjYEUjU1ta+F4P4fu7hjheJRCnG8mOE1drDB4tfe4yDpaRVTkVAEVAEXkSgoKZm8nVDhhR8BqM48cXgF30YxklVVVUH6TU+SWj7i2/y36eGMf/LWCVUBBQBRcCBwIwZtS/v7Cz4MkZxhuOF64Eh1UWsUv3X0aNHt7te5fWjGsa8Ll4VThFQBBQBJwKzZtUuam8f8i2M4iLnm55PxCkjtHrEiBEPsxjneM8Y+Rmic4z5Wa4qlSKgCCgCPRCoqakZ19ra9TWGSU/t8dIngLhXYCBfzetBs71PDaNPZdBgRUARUATyDIES5Pky94UmcrG/McGQ6kcXL54z1yRdLsfVodRcLj3lXRFQBBSBaAgUsC3jY/T83s1dGi3JkCHEHUKPUdwRTU0djZMnFz+2d+/xtqjpczWe9hhzteSUb0VAEVAEIiLAAppLMXDv4q6MmCRtFK34nZ2d7zl0qHix9ZzPrhrGfC5dlU0RUAQUgSFDxrN45qP0+qZGBcPqKdrjc1RcBeEfJGykPTwf/WoY87FUVSZFQBFQBE4gkGAI9ZN4z44KiJdRZI5xCD1GGVa9YsqUKedDqyAqvVyMp4YxF0tNeVYEFAFFIAICo0aNehXG7CqMXaT1JEFGUbLjfQE9x4/gnRAh+5yNooYxZ4tOGVcEFAFFIBCB6srKSjnyLZIRCzOKVk70Hk+lF3oJz3lrP/JWMKsQ1VUEFAFFYDAiwDmo76C3eE4U2aMaRaElvUbu/8I7JQrtXIyjhjEXS015VgQUAUUgAIHq6uqp9OyuxjBWBERLvTIxihYtaNfxDceLeM5LG5KXQlmFp64ioAgoAoMRAQzjWzCKp4TJHscoCk3pNbLx/514PQ8gD8s329+rYcz2ElL+FAFFQBEwQICtGZMxihdyy0k3vldco2gjeBpzjXK0XN6tUFXDaCtl9SoCioAikOsIYBCvRIaTguTIgFG05hqvqqurc3zLMSjfXHmnhjFXSkr5VAQUAUUgHIFyTrk5D+M41C9qJoyiRZu9ja8oKUnOsp7zxVXDmC8lqXIoAorAoEdg2LBhZ2Cs6vyAyKRRlDyKiopGHTvWdC4LceTzVHlzqWHMm6JUQRQBRWCwIzB58uSLMH61Xjhk2iha9DDE544ZMyavFuGoYfSqQRqmCCgCikDuITDm+PHjC7wW3VhGzC4SWy5Sx7zZw6L67fQKCjrnkW4Od97Yk7wRJGqBajxFQBFQBPIRgaqqqtOQq8dB4XYjZsntNor0+poIa7XeB7lueu3tXVObm5ulxxjp2Lkg2tnyLm8EyRZAlQ9FQBFQBAYAgUKOf7uutLT0fHqM6U39biMmfLmNYnfYH3F3c4/x6nFKHLm86BFW0NraWlBSUlJPj3Uv0dpTkXP4J+/2n+RwWSjrioAioAiYIpAYPnx4HYtuZLP9NRip9LmoXkbMyyjSWyS468PEb8D9AK4Mjfa4wuiRVnqc/8L9+tatWx/CH6kH2iOjLAhQw5gFhaAsKAKKgCJgisCMGTOmd3R0fA5D9CqMVrU9fZgRs8cl/c4dO3Zcx1DsDgzsD0grB4Q7LhN6GNpOEv/12LFjHzxw4MB6/F0OYjnwoHOMOVBIyqIioAgoAjYExtbU1PwAo/gsw55v6o1RFJoYxpXt7e3bDh06tIsh0Z22fFJeE6MoCYgv1yUY2mfh83OjR4+udNPM9mc1jNleQsqfIqAIKAInEBjKdoybMDbPYXjejVHssYmfcPmYsAMvDF/g6lPiLyPBIeK1NzU1bcI9ahGIQ8+Wtoz0n2HucwlHx8m5rU7GrIhZ6KphzMJCUZYUAUVAEbAhUIIxfA/3WjbUfwpjM8L2Lu2Na8ToLa6GSJMQwihu5D4g/rj0JK39wvAugNYS+P/ohAkTyu3vstWvhjFbS0b5UgQUgcGOQGLixIkXYlCewbDcxp1eWOMGJq4Rwwge27Nnz1bcDqGJux1DdjAuPTdf1nMymSzBqH+lrKzsTnqP463wbHXVMGZryShfioAiMGgRGD9+/FQM4u+Ki4vvw0j5HvEmAPXSiG1ra2tL9RCF1pEjR3ZjxA6YDsdKWr/Lzh/+13D/BeM4
2941y9+NoSrYcyGUlAeFAFFQBE4gUApBvFjGMSlGJBXY6CKg4CxGx0rHr2+wDlFK564LCDdiHPYChs7dqz4j1jP4prQs6cTvxd/GN6FhP+V3vAZRMnKeUc1jO6S1GdFQBFQBPofgQIM4um1tbVLyPrLGI9RYSx4GZ0YRkzmF49Zee3du7extLT4gOxtlLAY9CxSnkbRoofBn4Txv5fFROeQIOuMoxrGdDGqRxFQBBSBAUGgCqP4TYzF37lPxuCFGopMGEXZb0h+z2KsUgtvRHL87EFMrMOVzf6Re55u1KLwR95jCwsLfz1lypSzSB8qszuPvnxWw9iX6CptRUARUAT8ESjgc03nYRQfx5B8AEMRab9fFKPjn2Vq+BSb19VOfhtaWlpkq4b7eoz39axWFdtpvDnfhD8xjtz/y7DqIjcTA/mcVVZ6IIHQvBUBRUAR6C8EZNN7RUXFjRiFd3FHMojCm4nRscsiBo58ZOVpB/4tuL/AKP5g9+7d++zxLD/G+jLivZshXZkHrCatdKISGExYYLOkzxWXP+g+tWXLltdBdqsP6X4NVsPYr3BrZoqAIjDIEShgXu0lDCH+AGNzsgkWcYwOxk2GS6Xrt5P79xzy/eODBw/KUGlqe0ZY/mIQOSaumk36J5H/+dwXc8uK0gpoJPGnbQh+48MF7Plzks/Pt23b9gHCDtnDB8KfFmogMtc8FQFFQBEYRAiUsE3hQxgbObB7uIncpkYHI9iB4WomLxkW/T4G5y+4jSZ5+sVl2HMq797JvsQ3wtcUMZAYerJymhPCjeYo4bmL4dvrd+7c+QPot/nl3x/hTkn6I0fNQxFQBBSBwYVAwaxZs2o5h/T7iH0BxsToc3/Ej9wTE4NIHscwSn/G/y0OB1+Gv08+A0VPciTXDQy3voU8JsBneoiVZyOjaFUHeo0HOATgmnXr1v2TMOP5TYtOb101jL1FUNMrAoqAIuCPQIL5umvpTX2Ve4p/NO83UY2iZRAxLL/HKH2DXtca3EjDpd45RwtFpsTChXNPb2xsu5G8z4HfEsIK4CcaAVcskZe09zN0++6VK1f2ONDcFb3PHgv7jLISVgQUAUVgECPAZ6HkkO+vMDz4FmyF8RmhUYwiRkQ+ptgE/fuYP/zy/v37V/SHQbSKlbxSFpDh1dEYs08g65sxkKPg3bjTZcmLLJdwmPkryeMn3AMypGrMvAWIuoqAIqAIKAKeCBSwUX8Bb36I4TitN0bCTh1a6eFJsYcYkHbClmBEbmRj/iP4B8SIWDzCT/G0adPeCW8fIazGRG7LKFq0oLEaQ3v1ihUrNlhh/elqj7E/0da8FAFFIN8RSM6cOfPfOH/0JpT9BIyFsbxuIyEEXEaxgzhbCPv61q1bf46bkUU1xoy6EsBHK/ImZs+efZT51P/GuM2Cz1AAvOSFznzObb2ULGRrSb8bfDWMrsLVR0VAEVAE4iAgQ6co9K9hFP8NZV8Wh4aXkcDgpHqKGBrZeiEn0tzJcOVNGMV68pAVnFlzwZvwmKiuri7m/hQsT0MmX+MYJC903oJgf+be1N8CqmHsb8Q1P0VAEcg3BAroJc7BCPwIg3VmkCEIEjzISGBwZNj0aebwPsnCGhk27fOFNUG8Br3rNo5JhkJHs43jg8Qd5xU/SF6Jj2E8mePizty+fbv0GvtVXjWMXiWmYYqAIqAIRENAhg6vYujwZrYtTEWZR0vliuVnJDCEsrjmIPd3MRDfwnV8+cJFJmse4bMDLMpZkVtDg+GtyOfoQfvJS1yHDMS7goAHuPc6XvTxgxrGPgZYySsCikB+IoDOL0Wyz9BLfB9GcahbqUeV2s9IQLed+zHofIT9iEsxNk6rETWDAYoHv41Dhw6dzV7HGWBzEXKmWg1+8nrhB42XcZBADcPT/WoY0xsyBwg7zVYRUAQUgZxDQL5CjzH8FUOFsgIzo0YRI9DJfRCjeBMG8dX0FJ/KNaNoFejRo0fXHz58+C6et0uYiVGU+GA8goPWT8NbJM/9dalh7C+kNR9FQBHIBwQKFiyY81IU/F+4ZZiv0KunE0VQLyMhvUSGIJcyNHslBvELGMScGDoNkhfDeA9yLBHj7h5qJiy9BcWPBnHO5t0Iv/d9Ea6GsS9QVZqKgCKQjwgkOdrtHU1N7XfTU1wYRan7geA2ihjXLnqJjRjG27Zs2fLK+vr6rF5g4yeXVzg4Hamurrqf3t82+3sD/BYwnFprT9vXfjWMfY2w0lcEFIGcR2DChAnlbMf4OgZMPig8wUCp95DdwyjKApvnof0WDvu+Af/+HolyPKCr69BDyLfWEsMQvxrwn0/aflsTo4bRKil1FQFFQBHwQIA5ronl5eW/4tV/YhQrDZW6g6LbKEJLPgl137Fjxy7DKP6G537fzO5gsI8eVq7cVQ+Gy5FP9mGGDp/a2QCzMnD/r7lz555PeL/MNaphtJeA+hUBRUARsCEwb96800tLS/+IYr6cu9BUqdtIORaeYAy7uI8wl/gFhk5fv2/fvgE5+szOX1/6wY3tG51PMVRcj9zGWWEc68DqM4sWLTqZxH1ut/o8A2MENIEioAgoAgOPQIL5xDfzlfvfYBBFGTuOZTNlz95TxDCIZdjAHsU3sMDmixiNY6b0cjE+i21XgOWuOLwLftxnc1D6RxYuXDg1Dg2TNGoYTdDSuIqAIjAYEChh0/6NLIb5Dsp4sgicqZ4idGTV6X2QfBVHuv1ZngcDoCIj31jcQY9xp6m89kYFeF2NcXxf95dLTElFjq+GMTJUGlERUATyHYG6ukkjULo/QYF/mJWn1SJvJowincQuaB5LJru+Csk3btq0aWO+Y+mWTxoBYCoHFUSeR7UbRaHHcwE4vo/7dTz22Xxj6iQCtwD6rAgoAorAYEOAXuJs5rF+iNxno8BTnYYMGUXZv7eN7QofX79+/W9NDEO+lcHo0aMncobqUxi4iWGyuY2ixLfKA3cfj29mfvZvEizvMnlpjzGTaCotRUARyEkEWPF4Mb2QezGI52bYKMqZof+qqKi4GqOYt6tOoxY6H1KWOcbv0YNuDkoTZBQlHZiOwfkG5VYXRCfuOzWMcZHTdIqAIpAPCCT4uO576Cn+DGU7xxLI6plYzyauKHXSy9BpCwbgdhbZXLd8+fJnCTJfjmmScY7EZW5V9oI+CDaeeIQZRUtMaMznI8038TzeCsuUq4YxU0gqHUVAEcg1BEqnT5/+FRTxV7nTyjUTRhGlfYD7o6xq/SDDfbtzDZi+5Bd8m/gI8cfAZw220TEMGtUoWvwR/wo+TXU9zxVWWCZcnWPMBIpKQxFQBHIKgaqqqlF89eF/GDZ9DQq62GI+A0aR+cTO9clk8Q0Mnf4depEXmlg8DBaXgxOuLS4uvgX8J4nMpkbRwgmMW+mdv4utL78gLCPfbdQeo4WuuoqAIjAoEMAgzhk7duw9LIa5NsNGUeYT/15SUn4NRvEBNYrB1WnXrl13g9Gt9BoPxzWKkoOUIWX5NY6Ne2lwjtHfqmGMjpXGVAQUgRxHYM6cOS8fNmzYPSjTc1HG6REzFLTRMWV2GESpo9xboPkDwt+0evXqNdDznD+zpxvsfsGI+cZb6LXfhd+xGMe0PMB+LL3Pm2fNGjstE7iqYcwEikpDEVAEsh2BBB8Wfg9zfnfQu5hnZ9ZUCbvSyiKbg3z94aONjY0f2bhxo2wj0CsiAmIQWZx0I2XyAI2L1DBo3PKggXJ6Z2fVJ2n8jIyYvW+0fjut3JcDfaEIKAKKQN8iUMrK08+RxXtQwMPsWcVVwkKDtJ3Q20Jv5QM6dGpH1cwvi5MwZotINZLThs6y9+RNKEnPHSP7VtYDLyed7EdtNUlvj5seSrAHql8RUAQUgXxAQBbZjBgx4jsYsKu4S+wy9dIodqCIlxQWdr5//fotq8RI2mmr3xyBuXNnXtLc3P4NUs4zNY5iFGmgpDKlLA5Q1q+lsfIwAY5Vr6kIEX50KDUCSBpFEVAEcg8BDOI8FtrcjcK8LpNGESUs55veNXRo63Xr1m1eoUYxM3Vj7dqNfwHLb0LNaHuL3SgKJ5T3yObm5hvxps65lTDTSw2jKWIaXxFQBLIdgYKhQ4dewv1rFnacx/yfY2QM5RtroY3sueM6znDdF1jo8R/PPrs91pcish28geSPb1LewZzt7eAc6YsjbqMovEv50hA6mznl9/FYHkceR4WJQ0DTKAKKgCKQRQgkmU/8d4zYJzGKE63hNYs/UZq8sx4ju2IUobUPhfshDgCXo91aIifWiEYIgHPl5MmTb6X83oDfdx2Mn1G0ypcyasX/eoztvTBgVOjaYzQqMo2sCCgCWYxA+dSpU7+CQvxSho1iJ0p4LUbxdRhF2
294VqgRrEPKwH4Nhw7duyzZPGwNEi8sgozipIGo1pMvC9TJ2Z70QgKU8MYhI6+UwQUgVxBYDxDZ3egCP8TAzYMpejgG2Ubt6fYkUwW/KOqqvg1GMVHoJORk1UczOlDDwQOHTq05eDBg1/mxXNu4xjFKFoEqQezuD/Ms2M1svXez1XD6IeMhisCikBOIMCG/VPoFfwGZl+LUSzJlFHECLYVFhbcUVCQfMPy5WvX82w0HJcT4GUxk4cPH36Q+cbbKM8XLDZNjKKVBvetnKf6atzI9s7ZrLJRUq8ioAgoAlmOQAEK72qM4RelZxBTafYQUXoo0DvO/cXKyuPfXbFiT0OPSIMgAPkTA90YgIdiGj3fwH0Xw+OluA7k4S/SSABluo1FU5fv3LlzlYOAz4PvxKZPfA1WBBQBRSAbEChm6PRDKMoPcI/NpFFEuL2sZP3ghg0b7kHxxt4kng0gxeVh4sSJo/nyyH+CbQ0YbI1Lp7fpBH94GM+Cqun4L8Wftow8RzKKwgP1YyqG9Qa8H+Q+LGFBV+SuZRARfacIKAKKQH8hwDaMERjF28jv0+jJTBpFGSp9jq0Yr8Uo/lqUcn/JlE358PHfUWAgHxO+GZzfBsaxtjxkSibKYXdJSYnsb0zPN5oYRRsfb0aeS3kOtXuhEWxE1asIKAKKwIAiUFlZKZv2fw0Tb6EXUJ7BnqJ8GeMfZWVlr8EoPobiHZSLbBi2HMHm+FvB4iruInC+ns9DnTaghU7ma9eufbCsrOin8HQwplGUXmOS9J+bN2/e3DB51DCGIaTvFQFFIBsQKJg9e/YVo0aNkpNsLhQllymjiKJth+YdHDD++ueee24Dz4NykU1tbe1wMP0+WIhRTE2z8TycYWUZsh4/kJVAymT//kO34f6RBTmxvnEp9YXh1FkY/ndSl6qC5BkshlHGpaPcQVjpO0VAERgYBEqY7/pka2vrD1Fuqda+KDmUtYMblGbkOSdJKItsuI+T7lMYxQ/wfcD9DoKD6AF8q1nEJJ/Nutoyipb44PMqjOarCZce5IBde/bsaSgu7voS/CyRsjNhxF5fkOPfMa5nkt5ZgWwE82XxjQhYyNmIY5l/qMN/MvccAJhIYY8GhOE8yz6WMgCVIRP59pfcjdzHaEXs5FT3dbxbQ/y1/AGfr6+vlwlaGU4xKgDi66UIKAKZQ2Acw3u38B9+DcqtVMjalZyVTRyjiB7YB9338+X335N+UM4nCn582WIouu9HeK8G26SFqeUSVsD7j/L8hBU2UO5zzz2/ge05r2c4vRYepkThw11feC5jhaosxJGvcOz1ouFrMb0iZ0mY8JzgzzKGwjoXQybd/vOp2KOkAMN4dIMk8b3+VNAWo7iB+6/cf2Gz6VNHjx4VYzkoh1mQWy9FoD8RKBg+fPjZNHS/xf/7ZOu/HfX/G8Qo/235D6/lfgcfyn2a//+gnE8UjMaMGVNVXl7+QzC+Fmx7GEWJY13Adht4fQK8Qld1Wmn6woXXwhkzZnwd4/ZeeE41lvzy8asvpJXvaL5jx44dPyNtD50eakj8MuzH8BSPLNeVVs35gPJ28j4Pd6gpD34gnfifBFMjjvQcj0DjLwy7/Jhhl8d5bupOpb3KYPj0rSJggkAJDd/r+Y/fwP9tnJWwN/9fiwb/YxkxerCpqenfd+/evcUKH4wuWzIqWO35Awzd68E20CgKPmDXhO57E7jdO9CNCcpwKitMfwxbF8G7px0Lqy8YxnWcoyob/zeKfPbLk6A9wgD6ZfNuNcuGL6MQ3gcQp8BLSRQj5sVzGEheaYLCpGIwBPsMcW7jT/YHNo5qbzIIMH2nCERAgB7iDIbJZGn+y/nPF1tJMvH/5T/bzi3K9BNbtmw5ZNEejC5zhmXILVte3gy2oUbRwgj9+yTH47115cr10uMe0Ku6uvp1jCp8Ff5r3IxErS9MoX2KXuPNpHcMpWejYUxysvopGMRP8Me4mLtShKZCG02s24GKCpI9TZDfTY/K0knr4wlA/jI9yb+TVuYv9VIEFIHoCJTQA5DRoI+6FZ37/yYkTfQBf8/USTak+XRh4dbvb9zYNaj/n+hUwfo7uO/gNl5nUlg4hD2Oic9v3LhxX/TizXxMeC+S+Wfqx7tFJisHk/pC3dhN2ktoKK200otrDIo9cYb9pYwbX87Yr3wuZr69wEz+BG6eTEByp/V69qIHrwQnzmRY4o9UuEM8/4TT4W954YUXdkNDh1m9gNQwReAEAgX0EE+lp/glHs/hv5PuJcprr/+biT6QRis061lQ9x4arfeTdtDOJwqeYFFEb/GreN+G31j/S3kwQ/t2tnCspQNTTm9LFjAOyEVZtlFv5lB/FuI/F95EERutVib+eGzOdQggw6nW1Jj/ctV+lLSIIdMrYPBz5DkvUx8VFf5NQZI0QZcJPflDQuth/pD/zQrXp/DLV7/1UgQUgRMIFLC6sJahsP/m8Ur+W9VuYEz+b+608sxfUOYTl6H43sbK00hnZHrRyZcwsEjScBe8Pwa2MpRqdNnLA0NUX1pa+J+rV6+TFb0DqtsYUn0vOxI+x0LMscjokAneQkcaibOP+xUsLFpuJXZSsUL7x03Q4jgbYb4G4Iu5C+MI5ceqvRCtOFFAsuK63d7QI9+nMZAfo8X6L+gOaCVyyxXwLHXD6y6aMGGC/KnKkakMXErpKRdTdsU8F1Kesjc2Va8Ik8aB7BVrI14779rAooV40so8nkjsOV5fP0Q260qvWm5rdZj2sgEjj69x9FrkU0Bvpo6M8ZKzN/83oUc9k037d0Pn+oEe8vOSr7/DwCLBAsYPgMuN+AM3t3vx5lUe/I/XsRjnP9hf+DB0rf+uV/I+DUOeoRj8H6FfXguf6b358BRqFC3GmAb7Ar1fGbVIDbMPlGGUvUk3I9BVyCHK1aj7awnj52YrPQzEko6Olo/v2LFb9gOJQRjIS8q+cNy4cdUYtsnwNhPcZhJWw1D2VJ4n4x9DZauggiV5TlBesepLWHlAO2UYIS+NhiPcu8lzF+42uQnfTMXdCi87WEV2kDDLmOJNX2pM01Bkp6eqqmoUw17vh7t3Uicm+nEZVl/80km41CWuZtybUHS34E8PjwWly+d3/H8wijXXdXUVfBv/aFNZg8oDfDew+PAGjONf8A9Yo3/hwrorGxtbZCHObJEPXiIbxe7425lnvBT/c/IcS9FJwpiXdOWvJe2XEKBGaASBLu9Nr2ynR4F1weOjDBl/bN26dU8jX19XpoKxY8eWs5iplj+F9MxfSp5ncM/glrMmHXUg2/ET/lB60vPck0wOWQeaK1j49CzDZas56mkr87rHkWvAWq/krZcLAc43HY1BfA9l9y7qoDS4fK/e1D/qhVjFPTSi3sv0xZ/wd/hmNIhezJ078/zm5nb5iHONqdhRygOc93N/iaHIH+MeM80jE/EZgSgrLS39Nr3Yt8JzMVXBmCy8X49x/D4J2xxK0ZiSQQJpLY4ePfq7ZC4b8lMT7FFAN8gip4wsOEiv505ZbESF2mMip09cqyyLwHkqyuhlVI7LiHs2eI8Ea+u9T/L8aKQgczPybsR9knsJOC9lK83zCC09B+1V+pZ+xl9IfZMh0/dRBqKsfHuIVs690QeUtRjBp1n09nYaR6lWv0V3MLuzZs2aB/53gc8iUxxMyoPGqSxy+gv67Eb+b8906zfTLHsVf9GiunMbGpplq8/iOIQKCjoeraoa/ubly5dvDVWWcTJwp+F09tPpIf0I4BZY70xAt9IEublKjwq1k8r03wz7/Ar5UuPbQXK63kn5JVnNK0Ofr+KWRscp3
294KktLq64gY+5ih8yB8plvQTnF8BF9p0+xJ/2EU4xeu7QoUPyAVqLgBpNC6zeuQkawTM47Pt6yLwWzD3nEN1Z9Kb+iRLm/gk0P06Lf1DvT7TjOnPmzDHU+19SBhfZw6P445YH/8dG8ruPfL/NgqenKJeWKPllIg75FjIiKfOE74f/chOaIi9Xa1FRwavWrt34t742jHJ029vJVL6wnf6DCBM8O/gGQKMxYXvifKCH/A8ePnz4gyjr1cgWpqTlI60nM+f2JnC8kko4AX8iqpGwYyf+fMDPLVPQsyUvQ24H8MuK4b+B/z9Qquvxyx85DP8g8oPxnfyZi1ldfip4fpA6eSH3sKhAWOVhjx9FH1DfpZwOUo4fYmHbL0gjozB6gQD4l6J7pTPyJvB1KtsQhOKWh50sZSMNTlkJ/H8Mcd6TTK7bumbNEGnAWA1Re/SM+Vmheiornb+LDDJdFOmyy1tQ0PXJDRs2fc0IsEi5vBipCOV9E4/Xk3H6PDs7E1bUKH8CK67b9aNHL0z+NJaCS7lUErLqssssftn7kg7zo9cfRgfejmLkbqGldQt8ucfqk1T0Wcjw79yvY4HMOAuLvsCvP+S1+A9y+7M8wLEd/DeC74PUnwd4foK5Klns06d/5iD5s/id/GcS/MdH0yh7NfXlXTwvBLvUNElUvuOWL/nJVgyZW367bsVwog0uUi6fw/0Yd3rjuzOW91Pc8vCmdqLRTVm1Q3cN/6c/wM+vNm3aJJ/26pNGDPSTHHV3MyOUMqcduiXFLS98/YI69c60QfATLGZ4BQXzPZh8I3d6E6mbCaENI73uKQK8GD4Z48abuuT5APcuFN0B/rhHyecozzL/VEiYfGWjFOMiy5bHw9dk3lfipi7ei5vatZ8J/sgjfUWhB2//hM8P0IOR3uNIsHwDz+/BPwOek2lieKLQs8e3+5FRe+4h9Y+ykPnfJfxZ7mdp+sP79+/fxnOf/KntZZPF/gKmRkqrqytPZkHH2/mvvIq6OTYOv3HqH+Uhp9i0Uu9vZTX1Z1nAJv9rvWwIMK8r+sJ4BWqc8rBl28PrR4//ksz53338+PHb+T9tpiwzugCRXuPF9Bq/Tv4n9WDKFuDFH6MPD7Hm49V9YRiHUzA/RdhXkXF6T4kXE71R6qTtxODJhLu05nfyB30c9xFAX8675+XsUlx5H3pRiZL82atpZUzG8PDZqvbT2Z1wJjSn807GqpPQkg+jRsart/KiAOTsVfk+3GhoVfeWnhsEpRevUUE9OML9DMdi/b2wsOvh9vaiNbSArZWw1giFG+58eC7k80TTqJfXoDxex39vDkLFWv0nYMSpf+Qt/+dtrDyUVad/j/r/lvwGy0UjWtYY/AJ855rIHKc8guhHpUeZbkXP/ohG5+37uCjTXo/OIH/l9OnTZYXsdX48+vFH3X6WLWEXRFb0fhnYw2VZNpeM9TtOPPdjAlDsyUP9xJetDvLnkEUqstXh1xizB9avX7+TPB2HwIYSixABgEvols8jz2tQBK8hSQ1hxeQVaCQzJa/FotKLZ8T6Az/qgqx2ZdtI14P8wf9+4MCBpayMlAUgZpXbYja73AQnikzghBo5meb1sHYSbmpRA/L2eqTHLmoQPfnf879rw/05GH+UhWoyGqSXCwE6JPLd2bsoo0tcrwIfs0G/SBlzPYZh+jyNnkfw92rRDnboWywCe6/ocLfwQfKS76otW7acm0nDOIbWyl0wcT4Zp+kGMeFm2O8Z0GSYVLrb6+nR/QYj9XOGUHYgREa74H75Szj5J8aPHz8FQyyfaHkDQbIPUOZTeMysvNBMX5nAL00Mj9LrWyOL4pa6uoX7CeD+J89LmAPbgj8XtovI/7aYxuBc/meXU1fkns/tmKvhf9dvRlH+49zr6VG8l88dPYY/0igQcgyqi/qWRP/egitfIkpPX4WB4NYHYqCos01CD6yLeZ/W5WG05L2bn
294oRBx6i+kL8c7P01Vo7/hO/gHiO9USNTeGc9xvdx5SAJB/9h/JHXMgzj+Y5EIkScC8vM/t2Rd5L2FXZGwpgIy8syiDD7DLS+wQbu+1l9JsNWA3oBuCwLfgn8ybLgi3geBY9JlAleJ6SEG1UKu2C9xc9OS/xKz/xPascwLn7UAflzP8ctoxxiMJ9tbGzcwfyKtIpF0duHYO1+XvXpJZW1hKMZZ1B3z8P/cu4z4FOG740PZA7j1AQ//luCi0yHfIWhre/hNobRH8zv6S2+Dfm/AcYjouLgLo9uo7gSPfuJsrKys6DzLqsuRKHppidpSB9b/8HPYTpB3y0tbfnWmjU7D0ErkoFEB09CP98OP6+w8x2FP/J8hDnGVzq1uJ1KdH9F95zi1WScpheFCb8spIAQrh13KXS+ggX/C6D0qmvtl1dvwzndXU71eCeK5R3QmgqfhRYO+GNXit7g5yWT0uvdnzTT+FE3GpPJAuZXutZC+zlayXKvZkHJduYsxQiIEhAjaWIo0/8/Wx2Q9BIudwVbKqbw31rEfTq3LGmfiyuL0BxXpuWNSo//vPS4G3H+l97CZ+k1yDy7XgEIoH/q0EO/BONFAdEcr7zKg/UZO5i/vZbOhzTeEuj1d+J+iro6mfhedStN04tepvQfdORknZs4ek4+EB/aMZI9tODxaepRnC2Cv9q8efPbAoVNS+3vke9h3QoDbwOY9GrJ3oDEH0JainsA4hZaivJ1admEnfUXlWg4rRvZV/gfMDsDJdez+xhRit7g55WF0ssuoxhUHtSbTt6/QDnKWbG7qP/1uHJ2rCxMeIF3R/iPNFDPmogrUwld7BMrYm6Gw9y7ylpbE1U00kZ0dLTRc0iM5/1Ublk0I/Pjw0ifXhBHuOclUYjreEfefdrIgz9pCMg6gd8zbPox5pm2OhjQB08EKKcyDvj4X4zaNZSbs9A8U3iPHFGXjspxaixa/D3J0j0zRhNOpT7dSvmfDP20jreT7q/6Ao9Lqefvg8el8OM5pM6c+LmsSv0muKRPvzHhj2r4e
294XqMX4gEpB0Em19Oa/8iDN4AE+m9SyZM2GjJny61DBtav2toaPj03r17N9nf54qfQ7lZg1T5RuS5AZ6ng0/gQh23XHHxc9OxnuPQk7IgfeqmPMSVK+Vi/B3P8oIKi5hWsIR4X9Cy17eUH3ripvzQSPmhJwRkKC8V7k3NOzSOvN6UToQqvb5tVFDXpIco21/+Su/woyxeWk89SCvmoLLRd0OG0CD/ODh8hnqaWhQVholXfeb/JgubPopBuJX0XosYq2pqar5KOb2ZsqmARvp/6UVPdAH0wljxfB9GD7rN0P8unaYv48oe49QFb4X0El+BYfwiNNLbNMLoWenFhbbMr17F4q570wLaI0TxUyDvhjE5zbzaim/ChJVGXBgSFPdxi7W+A7qy6jSnLwpqKL3pj+DKEOs4sMmqlno35tIYEeyBPKWM5Fn2he3leS/+vd3+AxKOEWtCjEbWQzQkEkUc/dTc3NKSoB3T0MiiJBqcrW3EExppK0k+Sd4V0aItpmdTwrsSWn3lzGFUkYfMh8hWlGrCR8gz8YdzjyRcvq02CldWleEtEPxShpN44gqkjvrLc7/3dOAj8qX8vWhkpf5RpmIQ/4Yy+jgLlGQONp42jVwC+RURQ3Amw4Y/BcdZUSTzqn/8F6Ucvs901SehIV+28b1YlHUGHyP4HyIsoqwGdE0F1WcbfPwOPp6m/oygV3sZcpzJnT5xyUte4vsabWg+j/25HLprHYrFFxHXCxbbnEWB3AET8pmi1GXKhJUOZlInWDB88l8Mnzyeb38OWjDnUIG/AlYvBSNf4xgXPwtHt2unB8ZS+cVJXfjlVJ11GKsnMXbPstF2He5OPh0jE9xZs3kdPpPUswp4G4VfVgRPQ64Z3LPgU+reZO5y3iWII8capYwn71M48+z7J3Dj5X4WEtB1BCs9BxyBD374UedkOKAVbP/MtpZPc+C3nIKiBjEQzZ4vwa+Shved1Psre77tGeJVHpQF0Hc9jDF4GynE0ES5EkxTX4Uhki8k1ZI+PSKGP6f/b/B/Kw2ETwDC0cjLem2IjWGyVz522WujCE0pmd9QMB/F3WHLIy+8YCTnFX4Bt45K1G9GESylxybjm6JwWnDX06r6Bz26v8HGs4zRWyu8zslmoOE7NabqxyO4pg5m4L0YS1l4cAqW/yTCZY5XDlIXzBPQsQym09Lx0uuSooKG4xU0cvpP7xDG9dDX8lImMkQljTNZOHE39VD2qsl2KzWIrrKI+siBJO+j3C6OEt+vfMF/G8ZRhmKjGkXJrpPe/d24v2MqTfa33gidGdApwu/800jsCJcff9SbCKl7RolDDxla6Zz9DmoyYnZibqcnad8QWWxzGxVcFtukFH0cJoQ6jMiBsrdhFD+Pm7UbdpHV16DZUUKGdClKGiaAp3B/Df8V3D02mVpp4+Jnpbdc6QqSD2fZDaEHntzM40PQ/mNlZfuTfEVFTmtJ82elyVcXHAonTJggQ7J1DN/K6suzkfVkMBiJXxYQpIwl+PQo20yVh4XtYKYH/jKsjs5sfwHDeDvP36JRJguL9OoFAhx3djL3z8F2fhgZv/pHmTRSJu9gPu3X0OiNbihggc5ieq6fh59zoVXK/yzdi4zLH3UlLKnnez95w+jB82/oLb4Hoql5SyMLz7zi+0j4JQAYKlzFZQImZbPz1zCKN8OQ+7BsId2vF/IU8jFf+WbhbMbQZ/M8AwZqqDjjKHAZsy4mTJSo/Sv28pVwWR0oS4nlTNadLLXfSIVbxbj9eIb9PkP8c6HZQ/kSnrri4melJ39RPNIzlLm9ldy/g//fcfjBFsK8JtGtpIPOBZsEJ7hUM7e5kGGg87hfRpgoFqnLKUMpcQh3/CfAUXuKEWuLVZ+pl9JIkxWza+kdfoMexm/AUf7zevUSAXAtoXNyB3rpDWGkrPKwx5P6jI4Sq3Mz+vcLuBlb9Y+xHsb/643oILET0+C1kPx8jaQff1QfO8uR/XHpkV8TmFxGo+1hKzOHErACvVyEns9c2c8okFPkfS+YkIU1N1Io3wa00D0pXrz0NkwUIJVrHHReiV++GSe9ivSkrRf9uPJ60ZKw3tCzFA/4Pc99D7TupLWzGbIyNB2vVvkxmsfhlHkhpxlN4o98FgbxFTyf3d0YkimGBP4kYZH/I3aoelO+djqWP9vpUe+60A0d1M3jQPYADcOv0UCTc4vFQOqVIQTonLwdUjdTH2Thmu/lV18wAFJU/2RV51tIvN2XQO9eFLC2YiJrUV5PXZADzaWjUSJVBL5SHQU//qg/sXKOS4/8BI+bweOzZJxuvEX908v3/35Iwn+DgdgnYsBAK4x8FSa+hr/fe4qsqqpAAb6SP/CHkUXmotLbTIJKIy7ofjTj0gM76R3KF0IepYL/gBaOHHygJ4L4AW0YDq7y0eeRYLoYfC8k+YWU1XTcUm7f4Vd3NnHL103Hes5WeqJU4LGT/1Sqd4j/R/QQ76KHKCfWxNNwltDq9kCA+jkBPfwr6sO5PV7aAoLqC+Wyj5NtXsvxeo/YkvSlt4AFdOOZ0rgKvfs6eFuAWwEfjp4kzwMyMkO+S48cOXIVh0nssIMQyTByIOtb2Zsn+1jGBIFuJ+z2i1In7Dvdc4ry5Yh+ueA5wUS1bL6XyWo5R3CsScZx5fXLIw49wQ6+j1OI96Owb8EgPoNfW+J+IGcwHNzLGF2Yh3sRPcjLqEfz8VeShRjKJK5jv2Wc8g1iN9voiTFEfvkvS53cwf1bcLh98+bNMnqhdTKoMHvxDpwTzOV9kUbIh/D7NuiD6ku3Dv4wOthvv2IvOIyUtGDMmDHTunuS15JiBnVGtnANyEfW+T+/gD69vPukH4cAoYaRLvFkhlDvBHCZL4u1Wo8Ckf7qXfQUP4y728FBHz7IZnvGvN8P8FKZRptmFVdev3xM6Qlu8C09QjGIX2Oi/FnwC1yp6Ze3hmcGAcqjiIZiLQ3F8ymLy6B6GmEyrCVDRBRx6kr/r4gzIC1hL2nhLPb/FxmlBygjFttwf0fV/F96hn32wVkv/gdzGPPjZ6CLf0IZzvPDIah8T6jgrt+jg2WBiexPHsirYPbs2ZWFhR3nNzZ2yH74M2FmKPxLQzPyFSRvGBHyPEbP+Vp6zg8QV0Y+HFf6D+wIffGhgNbyTTDwIVrKYtlffIMvyp++u0CepEDeTvznHAT66AE+k9OnTz+PvOVjyUbfJbNY6g3oFg27a0JPMINvbGH749xfpvAeBDtdTGMHNEv8lJN8LX0s5cs8Zdcr+I7neXQiJ8JeEeUom0ctg+n884Twb1JfQkilXpvQ665/0gATY9hMHZS5wrsJ/z3bLOQTb9o4iwJ6huJQx4qoYz+GXGoqy4tsWPlSdvWku5reopyDmk2XrPc4Hf5l28jLqFuV+FPzkEFMhsnrl7a7bh+jt/gmGnZ/Il4PoyhpA/+sbDdYxKKb2zGKiykcR14IEKklTLydzDu8he7qQ/j7fN5h5syRLKIZcQsAvBmGfYccHMK4HuKC7iKTfjShB9+idGS8+5tU4p+CWeBpFOlM1JM1CMhcNiuUZcHBGZTny3Bfyv9nDLe0iFNzlbgyBOupAEzqC3RCryB6oiggICMT8t+Uu5VV1WtJcz/v7mPYfgV1UBbM6TVACDBCcQXDj9LIn+TFQlD5SnzKUcr1BvTJbbjZ2sBO8r+5lIVwn4XHk6hzjjlIwtJXmLzpiC5PNw47qN/XYY+e5LWnUZRkTmvnJCQt4Vtg4j8wjEX2VzAdySjCiGxp+C8s809I06cFQqWR0+AXwOfPuRfwHCSbXRyHPy7oDiK2h6j0wCnVSwSn+w4fPvxZ7pX4+7whYWNVvX2IANWxhC1Bk1iEIMdpncp/6lRcGc0YzjsxmFJfxVBac5aWG2lkhnSel9Q/8hEFkLrJq0sURHdYK+5m3j3O/cihQ4eeYCHCdsJ0rtATzf4PpLwq6FHJCTev8co9in6huB/AKL6D9Lu8aGRZmJzL+inklhFG2ULnaDxGkdctj6Vbcf/KKV/v5rQl6T0HXr7Gg3nFU5ko/REMLrJTgNmoRlH+iD+jQD5Cmj79dAw8ilF8I5Xnm+Q5CgDsLEf2xwE9iHhUet0Ftw/3Gww5yxdFtJcYBGyevaP+lnEgwZjy8sQ0FsBOpx7XMnwp+8BkSHYYwz7luLLcvYgw2RsmX24RheFQGjzzKtWYklEH2dvaws25tol6wmVxzAbq2Fo+37OBQ/rlyx3aEwSobL7QwW+vqKj4OmUo5wc7rij6hfI+zH0tnZO/k9i3h+QgnAUPLJhcwEKjb8DKWdylyCqX0Rw5clv7vOVzWh9kGkCGTiNNA/gZRjE034aR93JLazZ18UeKZBQlMnHXb9my5Q24z5xI3Te/oijg9ZPw+Qn8ZYARKyNT0MMyiUoPfmUY6zkK7hN07+8HL22th4Gr7xWBQYAAemEEvadfoEsudYsbRb+IYeCSPXo3kj5jG/ndvPThc4EYyO7DUi6kwSjbPFINQuSXs5F72KNufSpGQAzgRhqVX6VRcDd+o0agbGTucbGXS3qJ51AwcY2iDJuKtV/Zg3gGA+CvZObMmd8EoPdCthBQYlGPUslMCEelB79SeH/l/gRzOctN8tC4ioAikN8IsHLzOs7vfKlbyqj6Bf24gRG7n5E+F42iiN2FXhQbcg23nPizmF4kQ8qd53F4z1TCysRQIifeIXK4xEHuZfj/AG737+PCH6uX7GkY6bFeQ8ZzsNCSYZw5jj/SW/wTTPfZlxrEKGLAbwWIt
294+JP4qZ4Nf2JWsmi0o1KD35l6fv/0Zr7NO7mqPQ1niKgCOQ/AmzP4FsNI3+JPkl/1k+kNtAvncT9NknW5wlaLejKJcgid59f7jmKIXV1dVPQ2WdiFFMHX6O0e3RXg7hC4cupFz8izp6geL15hyEsZjuGHCmXk0YRvmW49HYKWvZ1qlHsTWXQtIpAHiLA8OHr0A2n20WLahS70zzMoQsyp6ZTM3YQI/p79BgTia5L+Q4sJ32Y9xQxitJt/RVLi5+iUON14UIYxygWYhTlFB5ZZdVnPcVuWUQeqyvuu7xeWI5aaaErw6e3M8TxOTDqt8MOhEe9FAFFIPsRkN4im/llbjHdW4yqX0Q6dIx85f57eHNhFWpWFojDMDLRWdbU1HoB623GAKxRT7FbunpWUP1i1apVfXLkG8YwMX167Q24cnqDbKCOBapXJWMVICJ3yUIYGeIUwiLDDiZvdxD/EP7ZhC/ifZU7Uy96xO2BnxhF0t/FMPOXeK9G0Q2kPisCioA0sq8EhlMtKKLqFys+7h8YjXoUN56CtBEarF6HYWQz/2ks5Z7vpdTDAELpS89KVv88R/o+KZC6uhmXt7QMuYE8KjJlFKEjS7dkuGEPRvBh7t8StISv2R8gLCUHW1dowI34SS+NotC6D6N4I/ltw6+XIqAIKAIOBETHsMjk5xjD1PYMU6OIbjnGCvfbIdqnW+QcTOfhg8MwYhAupOdUK4UR4zo4fHjZn5YtW9MnvcX58+fXYRR/AV8T4DMGe87hTmgIEfnax2Pct9LCup/nJi/CVNZruc90v4taaaEv+2lWsMLqJiruBjcdfVYEFAFFQBBgGPUSdMVp4o+qXySudaFf7mG/nmyRs6aArFfqGiCQNozTpk0bxqGqCyiMMoP06agso+Uw1gbpLcocWkYvOQycIdr/hbYMZcaibVWybiPVDp3HGxsbb6ISPQRB3wlq5ktH0ZO+gviOQ8gtenZm4K/H8Gn3+72k/yJHES21x1e/IqAIKAIWAuiIEvTwHTxPMNQvKRLonyPomJ/zIKNdevUCgXTXsKysSD6nUxuHFgXSzBl3v1+2bIfsG8noBU8JDNP15PFy/LGsolXJMIoyh7iL549xluUrMYp/g1lfoyiCEPcK8n6JXSiLnj2MOJ5GkXDZsvKtzZs334c/440GOw/qVwQUgdxFgLOpz0RHLDbRL3ZpSftbDglZbg9TfzwE0j3G5ub2M7Ebtaa2RwqR6ykM47JuIxCPE59UCxfOPb2hoUW+Ai3fwDO+rEqGbLLw5dHy8vKPr1y58ikIRRmPrcAoXwaNUVbGFj3rWVzk9jSK5ClDqPeyAvWXxJHPR+mlCCgCikAPBNAT8pWJ76AnZuJ3vPfTL/ZIxDmGvrmLMFkoqFcvEbAMYzGgyjDlUBN6YiQoEJR/x4N04TO+ypKj3srYT3kHvNVJXqaXZcRgUYZO76qqKvrvZctWbotKhxbcxaRL9xYtevb00PY0it1xtoDL94iz3Z5G/YqAIqAI2BFgM/9sOhcyt+hQdCH6JU0CPfVHjj6T3qLOLaZRie9JFQKrLqdgfGpMyLxoJDoPFxeXP7ZmzZrjJumjxGVe8Ur4Opu8nE2oCIkt/qhYMpT5Q9wPL1u2NrJRJE0hE+FXUeGmSHYWPfFbV1ClhW/pkf6QBTdPWvHVVQQUAUXACwEOkb8SfVJnfxekX+zxUDVNxP0/wl6wh6s/PgIpwwioczEA46OScRqJxBLm6zZBI8rQZNQshnCqfFVDQ4OsBp0UOVF3RIs/KkwHX4m+A94+//zzzxvNf7LoRk6dSO0lsujZ+YBmUE9Roj7CEOq9xPNc6WqnpX5FQBEYvAjMnTt3FAsBz0PXVVgoRNAvVlT54sSDbAPTlahpRHrvSRlGuvALITU2Cjm3kWA1qnzHbW+UtCZxKisrrySvHlskwmhY/EmPjcr1+7Ky6i+ZGkXyKGAY9Woq3EyLnj3fsEorLThu2Uu0yZ5O/YqAIqAIuBFAx1yIrplvhYfpFyueuOgZtl533I23z47gtOc3WPxiGJP0jqZROOnWip/wbiPB/FljeXnyGVorGe0VyfYMKsdrqCyRjLXFr8Wf2ETSrqqoKP7SsmXLtlvvo7ps5p/E3OYpGP0kdBzJolRa4jzAeP/DuIErXh2E9UERUAQGHQLol0IM2yXoiokifBT94gJpKbpGDtbWFe8uYHrzmMAoDofAhDAiltGxx6NQ1yxb9pzJvJ09ua+finIBL0/xjeDxws4ffB0sKUnetGrVuliT0aSXYY3Z3I6colRa4rTB/z0kzPhiJAcz+qAIKAI5j8CsWbPmc6jKQvSX5/cFgwSUDgDvf1dTU7MjKJ6+M0cgQc9oMsnGBSW1Gx0rnhgJ7qU8Z3TCF2NUiLG+ArpTrbzCXDt/VBYZQv1Je/sQDhyI1YqSfZPn0Vt0YCLyQjqMFcHkURbcLMHV3mIoWhpBERjcCLA+41JphEfVLy60tpP2IdYytLjC9bGXCIhhnAK4I/zo2I2OFccqRNxnCWuwwjPhMre3ELqyydXZXfMh7uZPeCorK7tj/fr1x3ySBAbPmTNnBjTirg4Toyzj/dqCC0RZXyoCigAfWR/GB3XPAInKKI1uN2Lo7QfQf1sJ1y0abnB6+SxzjDK2PcyLjtvoSBwUf6rnhNvCKQtbcGU7RMYuDPWlEJsVhaCbP4YwhZfbVq9evTFKeq84RUVJhlG7ZljvLHmt5xB3JWeuPkya1pB4+loRUAQGOQJ8c/E01mnMjWMUSdNEB+BBFhYeHOQw9on4Mmw4EUVe5abuNjry3mUktjM2brQFwp2H+5kWEKOoVdJbLHe/cz/78PcQR6/9g7hxhzGTzc2tZxUUJFPnorrkdbPg9fwHAjM+5+qVkYYpAopAbiPQ3t56MRLUxJGisLDgKbairSBtXF0XJ9tBkyZBi2U0RkZ6junLx+g45tgwGltJkNEvaWCkT4bmnDQjPh4v/jDSrfQY5esbsYcx6+rqpJFQK9maGkXiH4X/f+FmdGjZBwINVgQUgRxGYOLEiaPb2jrkfOpiUzHQMV3JZOGDHR2Fu0zTavxoCIhNrLZH9TI6lIPDKHbHfx431jyePT+7n9Mfzud5mj3M7ffjDx6fYNnyY8SPvWwZ2vNJL8bRS143K+7np0m3yR2oz4qAIqAIuBEYMaLidMJCOwHudKL/uPeWlBTLaWN6/rIboAw9J1Dm6fNR/YyO1xg46aS1krHVULScSo8fPz4PHkr9ZPPjj94i7HT9iXQ7/dJGC+88hV7nOC95w9KT/yP0vjO6QjcsT32vCCgCuYlAU1Pn+eizKSbcW/qvoKDz0ZKSAllHEb5M3iQDjZtGQIZQU4bIAj39Bg/K3rfnhCETI5CxhTfMLdZAz3eLRhB/8LKDT0j9i/S9MdSFjY3NcrJ96EEH5OO4OA3veHV11VJtwTlg0QdFQBHwQABdN4YGuKx8tz7i4BHLGWTpPxrtrEBNPnToUHNG13c4c9MnMYwlFuh2OIKMosSjgMQwxh62tOclfng4CcezBVG5bRIAAEAASURBVBXGH8bsUXprm900TZ7ZJDsKmcabpLHi0n5YQad1C5hlDA+LtrqKgCKQXwigz+SLPTOjSuXSfxuqqyuWbtq0qTedgKhZD9p4CYxKCbcDgDCjyPt2emhHcDPWlacVJQtvehwB56oUKT7t/EkLqrW19WFe9GrZcmlpaS10Q08ASjFg+xH+WHa9NNMrdG1ZqFcRUATyCAGOnJSTtXxHx+yiuvUf6ZbU1+/vVSfATl/93gjIBn/HnJ7d6HgnSfUWZdFNxs5HpbCL5AQeKkHSnqe7Usg7D/7q9+7du5JXvVq2vG/fPhnaMOoxCn/wI+eyrl63bl1GFyKJrHopAopAfiGArhjBXccdOozq1n80vmVE6kE6Jb3qBOQXon0jjQylFlmkPYyO9crhUmCtFGzG5hchPhKajt6iu1IIAz78rWIYtd7BYIwHvkkpQxuOFbpBZCz+6LHyPcpimQjPJB5BWes7RUARyFEEONnrJHRG+gARPzEs/eJ6v4Yh1FWEZWykzkVfH7sREMOY6qX5GB1PoIgrBZOx+TQ+CDwZemOszLwqhR9/xF1OukNW2piu4DAGWuKGXnb+OLnueRLs7cYkNK1GUAQUgcGLACNjHCASPIxq1y8WUqL/uB/nuZcr7y2K6gYhIIYAvP1Xn/ok7mReLZPn802Fh1GSl1+loJXVgxWZX6S3KMOovd3PU0Fl9T0v1p6xm7+CgsT65uZm3aZhB0n9ioAi0AMBdEwZaynmo0PKerzsDnDrFwkW/SzDqOi7R3k83B1VnT5EoBCwjXt+FHDX7NmznSt2esEkrahJJB/mVym8jGJ3dkd27969DX9Pq2nAD8MbI8ljJHwEpvLijwq7itPtdX4xEDl9qQgoApyMJdvBpvsh4aVfrE4L6TZygMka0vZK1/nlreFOBGSDv7FhJE0BRkRWs0YaenRm2fOpvLx8PLTKuB0vrUrhCLQ9EF/Oaz1gC4rlxSiOg5Z8l9L38qu0hMv8oi6d9kVOXyg
294CioAggM48HV1T44WGn36xOgXowqdIJ4eq6NUPCMQyjPBVwRaJkkzxx7DsSL5/6LCKYUaxO2/pLfa6t0allG8v+i688au0bNI9SitO5xczVRGUjiKQpwjQ8E5UVlaeinFMTRnZxfTTL5ZRxJVpK5lf1NWoduD60C89PqNtDlKI3JXYMfkChsOYxeGTCkNdSTqMUkSjKGPvu8mzt/OL0pKT/YsOHixZQirtPnqsR6246ioCioAi4IOArLqvdb8L0S9W9N18/FxWoxrpaiuxuuYIyAb/yN8OtAoRQ1LY0tIun6rqtWGcNGlSCS2i9GemohpFEZW4cixSZP4ljdfF2L98Zsqxn1PiWfLa09j5687/uP29+hUBRUARcCPAynvZu+jY1B+mXywapFtGA3y79axu3yMgQ6mRFLu7EBlKlcPHe20YoVtKwaeGZe1GJ4ropMvIea0MifaQxS2v8OPB3x6Ce91jjSKrxlEEFIHcRYCpotPQH7LIMHVF1C+puOgnmV/s9VqKEznrbxQEpMcYahi9CpFtEsPIIHgZZwQOyF96asUeRic0NXzJ/GKvV2mRdyW00kbeS14v/uBdDGNzKKMaQRFQBAYtAuiJYg4QkS8HpUbGouoXAYzRNNEvy7gzdtKY0NUrGAExjIGLV/wKEUMhm/J7DD8GZ9fzbVVVm2wZKebu+TIkhJaUVJq0QQuJ7vsaDNJf1PCT14s/8s/IUK4vY/pCEVAEch4BhlGlp5gaRjXRLyI4umktC/w245UFOHr1EwIJlLuvYQwqRN7VwGPaoMTlt6NjmCwAimXc2OYhW016W2Gk15sy8EHyesnH8IhgpxPiXuBomCKgCKQQoFG9QDoSpvpFEpNOeot7U4T0p98QSLBV4iAF18O4RChEaQHJcGovr8NS+D3yDyMq/GXokmHcsgjy9sgO3GR+0byr24OSBigCikC+IoCOXYx+mUDvzyGiqD2vkSgrkuhl0j3D8xErTN3+QSBx6NChXRSYY54xipGgUCfTY+qxJ8eU7d27zYfOLf4Sia5MWEf5HqXx4QIiZ7dhNDbqphhpfEVAEchNBNCtpXLiDSv5i+0ShBnF7riHu0+70Q8U2MHrB7/MMW6lkNIrniyjY8/bqxCJVz1x4sQppO/VAhzSi2GJbFyc/KUqm7MZZmc8gn/69OnF8JD+wogk8ZLXh5RYde0x+oCjwYrAYEdg7ty5U8Cgxo5DVP1CvDVs09BDw+3g9ZNf5hi3Yhj2S35Oo3OCg6BCJL58XLhX84z0WDvJI9KxdG7+2tubfA/jPcF9+C/bTgqJle55BsnrpsYZq83EV8PoBkafFQFFIIVAcXFyAZ70B9BN9Av6bgVp050WhbT/EBDDKOfv7XUbHWEhrBB5v5hoIyVuL642DHPoJn0v/pqbO8Qop41aHB4YDk3ILWnD5LXTJ277+vXrQ/m2p1G/IqAIDC4E2tvb5PuLcuqNkX4hTRe3LLzxXRw5uJDsX2kTR48ePcL49z6MkyPnKEaCOPOZZ0xvWnUQiPjAUmYxLoF7Ab2MovDHJce4SY8v9lVdnZqnLIgib+xMNKEioAgMOgTQqSVtbV0z0JGlpvqF+Ad27dq1HtAijaYNOnD7WGDpKXWUlBTV03NM936iFiIGddSUKVPmUwEcc3QmPB85cqSV/HwNo59RpDUle3xGk5djUtsk7xNxT3xUQ+iZXPCcXLBgbhIeejXHapKnxlUEFIHcQWDhwtkT0SsTo+pTu2TovbWLFs2Rs6D1GgAEUkOIyWRiOQpeTnEx6u5LfAr+DJwT1kUCzC9ZceW5NDXIKEo28DwRJ3WahDzHuw6lZDZNC28Fra2dMsfp7GqbEtL4ioAikJ8IdAyZjX4cb9ro7gZj1e7dB4/kJzDZL1XKMLa1dcok7/Y4LRvSnf2SlyyqxUilaMUQWeYYe3yhIswoSj7wK8O4VTHyTCc5ciQR65CAbv60t5hGUj2KgCLgQCCZkI39qflFR3iEB7Zpry0uLm6IEFWj9AECKWO2du3abbRqtsZp2WAgph871nwmX8mIdTwcFaeTec59uOmP/UYxioIFBnUC4/cjeoMLn3PpIG+jcXyLP5ZSy/ym9hh7UwCaVhHIQwTQTUn04kxc+UCB0YU+OjZ8+LD1W7duTetEIwIaudcIWL28Vlooy6VATCmKkWB+8sLx44ePN01rxYfGDvypYQPL6FjvxIUvzxMiqHRjxo8fP5Uolhz2ZJH8VVVV7dCJvIHWzp9U/kiZaCRFQBEYVAjMmTNxOHpLpnqMrm79spGF+vUkjLy/2ygTjRyKQNqg7N9/4DFibwtNYYtgGQl6mme0tSXnYChirRDlSx3bIXvEomfLwtcoWnFYADQXf6zeqtA4duyYGMX0wiMJ87vc/LW0tPRyftMvJw1XBBSBXEagvv7YNPifYCKDpV9w1+7f36j7F03Ay3DctGFkOHM1LZzno9K3ClHiy+rUhoaGc2bPnh3LUJDvFu79GFZH9oR59hTtkUhTx7Ns24h7xd5HSU9ZFt+kMYzLgKZTBBSB/EKgpKRE9NK4qFLZ9Wki0bmag0d6rLuISkvj9R4Bu1JvYM7sWXp/vlsnrOzshWiFYSReyYb3WuvZxC0rK6vHuO61p4liFLvjL+CQXqOWmT0f/O3kFdhj9JJX+AMvmT/Q4VQXoPqoCAx2BDgfdT4YyHay0MuuX9Cj7aWlZWvq6+s9V+qHEtMIGUHAbhiH0Gt8gB7YpiDK9kK04omRIN2CmpqaC3BLrPCo7p49exowbjswyqkxdQOjKEOtMyZMmDCbvByyRM2beO3I5GsY/eSVhUoYc/m6SOw9nAY8alRFQBHIEQTQgRX0+OQzU6GNZg/9sq2oqGMrour84gCWt8OYYBiXofBXWQbKzZdHIbrnAK8ljRyaa3wVFXXJXsqDJkZRMoEnOQj9tAULFsT9BBbieveSI8grPcZY86rGAGkCRUARyAkEhg4dKp+YCl2M6KNf1jzzzLoXckLQPGbSYRiRs5XFKA/jHnbL7FOI7jnA0+k1nkOlMDYW7e2Jp8lzJ0bKnXXoM/m9tLi4QIZxnZOUoSlPRMAYN7gbA1HkJZ0Yxl6evBORSY2mCCgCuYLALBgNnF/00y+kW8WtG/sHuKTdhlEM3QMo/DV2vvwK0W3EiCe9tzeQ1niZMnsp1zNnt96eb1Q/Q5onNTW1nFRXF29Yk72QUhHTQxdR5UVWOUDdeOg4qlwaTxFQBHIPAfSRLLzx3djvp1/Qf13cq0kbus4j91DJLY57GMbDhw9vR+EvxeilNr37FaLbKFpiE37+5MmTXwqN0PF1K424GGOZ53sWN/KeQknXzV9RS0v7ucXFJ8f6cPIBLkilKqOhvFL5K4QPvRQBRUAREL3HUKrvxv4Q/XKY9RabQdF82EyhzygCPQwj1LuwE3fjbggpRE9GaC0l6YG9mZdjPCMEBDKM+xCGcXtAFMcrF3/n09qaSQTj4VSMuXxdpMFFL5UX/LiHi+08jGHRkPHJFnYC6lcEFIH8QYADQ0agRzznF8P0C7pmPXu69+cPGrkriZdhlE3vT2LfnqSg0sOLImKIkbCj8HJOpFlkD4jixyCvwECtjRLXXcl4nsLioXNIa7zZnzylMjbgOrIOkxeDOpJ8hzsS6YMioAgMWgTQBzUI38MwuvWVAOShX2QKq8f6DomrV/8i4GkYYaG9srLsD/To0703j0L05RQDU8QBuK/FNVopSh7N3I9xBw6n+lUyGHoN92RfxnxecM7rIWg22l9HkVd6x2PHjh2DnMaLjex5qV8RUATyAwFGy+QkLsf8op++ck9HoUdkfvF4fiCR21L4GcYh9fV7/8Zwucw1YiMChxM9EaCQr5o6deoMz5cBgcxx/oXXMs7ueQVVMvI8mfnNM0loNL+JjIe50yfZm8gLPxPIT/cyepaWBioCgwsB9ME8JB5tSR2kr6w44qJ/ZF5RRstkrYVeA4yAr2Hcv39/A8ca/YmTGPacKDMzTqkQwzFUF3MbbWfAMK7CMK0gT8cwruQeVsl4X0An7vVENZrfJL+DpE0NYZgYxW5EpuAaD992p1VHEVAE8gQBdF0Zc4xTcFMr1cP0lV1s0uzkaxq77GHqHzgEfA2jsHTkyJE/YCie9DJSYSxLpcBIXb14cV2P8fagtOTXzgT0Q8RxDG
2941GrWRUsAs4CWdBUB7ud+vWrZNzCQ/FMIpCqnb+/Pm9+iakmx99VgQUgdxDYNiwYRPQlSl9F1VfWVKie57Df9B6VndgEQg0jHyr8CA9uD/BouMc0zCWbZXilIaGZhlaMLoaGxvvI8FKK5GNnhXkNXGdeodhLGR+8yoeTIxVG6tL97Oq1XiZNPlNKy1NxtomkhZGPYqAIpAPCMjU0TgTfWUJjWHUjf0WGFngBhpG4Y9e459Q/s9E7TXaKwX+ZHv7kAtmziwwGmo8ePDgNvJ8nDw77PQsvMJ6dry/es6cOTVW/ChuYWHBZvI0/h4leU1mCnY0aUOxjMKHxlEEFIHcRAAdUMfiG1mM5xAgTF9JZOKIYWxyJNSHAUMgijLfi3F8GA4PhXHpZcQwbpdu2uRcpRVGR94fOnTo91QwPthpXskYwh11/PjxcyETeRHOnj37t1A5Q2W08y7y0tMsPXy4YSrhugDHDo76FYFBhAB6KlldXT2bNRkj7GJHMYroyKbdu3dvJJ3xiJU9L/VnDoEohlG+nCG9RllK7Ht5GUWpFNxzp0yZIhvvja7KysqnMXCORThRKpmVCWmvwZ9eHWaF+7kMo26HfuQxfru8YDN9xowZRr1iPz40XBFQBHIPAc6IlsM+JtNjTLfko+or4snG/n25J3X+chzJMLLxfgPKfxkF6LmU2G4kLKisSsG7JGnP5DZanbpjx45GvtMon8FKrdSy6Fn0w1zSncUhA5ENMnOpe0gjR8OFXm554W0WhjXWR5pDM9MIioAikPUIDB1aPhM9kF5oaKKv0DuynsJotCrrAclxBiMZRmTs5FSZB3G3uOV1Gwl5764UFPwFBBufEAOdv5P1KoxOF8MN7qwDn8mziO0m59OSi9qTO0Ca0EVGXvIyfDKbpdbVgQzpS0VAEchbBBhJlUWGqY39bv0XJjQ6ZQVxGsLi6fv+QyCqYRzS3Nz8BAW+3s6al5HwqhSEnTpx4kTZCG90rV69eldJSdES0sc6JglDdxnj/oGff7Ex1Mbw6w7yareFObx+8pLPjLq6OmP5HMT1QRFQBHISAf7/hTTe5cSbUV76L0goGvxd6FZZeBN42lcQDX2XeQQiG8aGhob9LMJZTUGmjizyMxJePTsqTjlGZxZu5PxEVCpZR0tLh2zdWGcqejd/J1Nha6KmZcHPc+TpeYhvkLzIVcwWk3niRs1L4ykCikB+IMAK+Oq2to4pSFPspf+CpERn7KLxXh8UR9/1PwJGhgrj9iQFuSPISHiJQHyZkD6J2/jbhZs2bZKTcJ6jwnV40fYKs/iD32JWp76EOJEMFhPg0iPuMZxq0bPn5W4Zwt9C3lfa46hfEVAE8h8BFtzUojvGmxpFQQY9srKk5JjOL2ZZNTEyjPS+VshwI8bRIYbbSDhedj9gXBbhNdl0n0oJ7VZ6qo9Ky8qLrjvMbcR4PpUWXaR8qdhbobfbTtNNT955yQt/YhiN51HtealfEVAEcg+Bzs62OeiE1PyiKffojeV793bEmioyzUvjR0fAy
294DDS5d+LoZCzU9PnmHoZCZ/s5xAea4EKi1seJ+1mH7rpYC8jBq8nceTbyHSkAA/DxbIAJz2s4UXPT17SyeZenWfsxhc8EnIHwK2vFIGcR0DqeGNjS3rhjYlA6JIuTulaUV9frxv7TYDrh7hGiouVl62lpcWbKc+jwpufkfDimwo0ed68eY7Nr17xvML4PqTkudlukN3x/IwY8aaxbSNqa05W324in0Y/erxzZ516Rr5KvuyxCDfSsK0nkTwKZDHSe6dPn/6TWbNmnQwmRXkkmoqiCKQR4LNz5eiKWm6j7VqiX7iPlpcXSYM/3dFIE1bPgCJgZBjhtJNR1Ocp0IMmRlEkFOXIApVxuKZ5igFuZZ/halzPfYZSyaDrANLij3A6coXTeRkpX4aLn4VevR89RyauB4zmSwka5goedI9gx1GA7YvB8a2Uw1McfvDb2tpaMZD63cpBVxvyW+DW1tZaRrSMvgFr6Sv+DysSia59+Y1QbkoXyVjYRWtt7diGATjk13Oyx3X7qQhSgWL1HlCwq6hQe9w0rUpmD7eMoi1MDGOkhT/0+taSfqctbeSeMbzIQp+ovVN7FnnlxxCOLCjoGCNCUeZS3pfjPoFx/BUfhVYDmVelPbiFwSjKKNHEqCjY9RU6dGlzs35RIyp2/RnP2DDC3G4MR6xVVFSKybNnz45koDxAeJ4wx4pReyWz4nsYRfn8lSylLrPiBLnsndwtC4ysOF70rHdul4o+k48zG29LcdPJ9WfKZUJHR0HKMFr4oTxKuK/h2Kwl06ZNu5P7JJ61B5nrhT3I+Wc0Surx+Cgw2PUVukKGT5euWbMmtf0tSnqN038IGBtG5vsOUKjGX6HorhT0JOLNwbEydT9KNj2Uaq9kFlyWEraeLbe74kY9Aae9rKxkDbQa/OhZdN0uBjVBmtOYX6twvxtMz5w4VAsOnpudKTdpoFzH/SiNiJ9xMtEplE+sUYTBhKnKmn0IUG9H8mHiGbihjX23vuL/gSo9JvuzdX4x+4o22rybnW++0djIs1Erx1YphlZUNMVdnCJ5ppY12+ilWQsyYhhyWZUa1TAOaW1tf4ohkp2kS9OP6uFPcg7za5GHVqLSzaV4lMUMMBgRhB84VdKQeCPuvxhi/SUnI50VRcHkEg7Ka34jgFGcgy6aGiall77iv/HM/v37e0wNhdHS9/2DgHGPEbbaUWCtUdlzVYqytrZhkT8FZc8DZdtJC+sQbjP521+FzgESXxbEhLbqLKLks4o0W6xnE5ehlVMqKkpkODWWnCZ5ZWNc5E6w2VnmdCMtQqJ+VJDmtfQyH6L3eD9D7a/HSMr3LQuFVjbKqDwpAoIADbvTMHCBC29c+i8FnDTiqdtLeIg1JZUioj99ikAcxdNJwXZE4cpdKUgnyi720MGkSROOUxkdRlkqWVDPpJtPGb6LPJ/FvqIXoLmB26jLKPJylx092nAWc2iRDhWIgmMuxZk9e1QlK/VGgYOz9RIiBPWimEbFBZTnXaWlpUswkJ9nq8dswnWYNQQ7fd3/CEh9ZV/3IvTRKL/c3fpP4om+YjSlixGpJ3ls9kur4QOLQBzDKIYt1Lh5VQoqQ+eKFSuMjI0FDxVR5u86oZE2yhGNYmplJIs+jGRlP+Nj5L3byj/Mtcvb1VVwVmVl0biwNPn4PpEYKnIbr8y144eymUmb5FMokKfoRd7NSlZZ1VoldSAfMVOZcg8BhlGnUR9lZMTzstdnK4JNX+3evn27LCbUK0sRiKNoChgqC+wN+FUKKpIYtVCj6o9VYgi9ilR6WyXzj257A8+m+T5B8k02Er5et7wo9ZNbWobUIm8cfH3zyYUXu3a9IMrCyDC68RM5pXy5qnh3BcOsf8RAruL+Frcs1ok8LC5E9FIEMo0AJ9acBs1aL7p+9dkagKL+yjDqXq+0GpYdCMRR3Ekqhe/wVkilaEHsdI/PEIICOotyen3S1CgSX4ZfjfI9ePCg7GVcT36BBtVLXno8FRji80g/6Fan0nCpA+/UVo0o5euFn1f5Eq+G+3qUylIW6zzD/flRo0bN5dm3LkbJX+MoAqYIUOeS5eXlZ1JPJ7jTRqnPpPsX6Y640+pz9iAQxzAWUfieLfawSkGFkJWlvt87DIFFeK3sNo4hUZ2vqchNixYtMv3emaynlm9BpreIOKlylE7AiTuku4j4k9xp8vkZnAu7V+pFOhM3CD8/nEgjZ7DOx/lsZWXlanqQYig/x9aPOtwyUVrcceq1X5Yargg4EBg2bFgNjV9ZkeqoZ/JI3XPERQ841kDQ0G5mmmYpkeLqQQd9fegbBBwFGyULKkUJxqnH1ocolYJKImesxqoQnKYix4zJ1yt65B2B7yNUSON8ye9fVPRNXvQjyHvShAkT5JSXpFf6PA2TI/8mR5EtAn6hZFBOSegs4v4c3tW4Kzmf9dtz5sw4ly+qDIUX4/odmqlGGPQIMCpyFiDMsgMRtT6jA59hNGqHPa36sw8BY8XBRvtKFI5jiDBqpcA4yT5E055bCjWMVBkGuZK8nE2yaJgeKC4+2hQt6ouxkHUrFVk+zuwYTo0iLxgVMuT8cqjFOjj9RS5yxzd06NAFcCu
294nDAVeUfALJOB6KfRQVgUYx5n438+pOw+3tLRsoDd5Fz3Ja7u3fwymBooLIX3MFAL8r5PU83Oglz7txrA+P0TaFzLFj9LpGwSMDePw4cNlf1raMJpUCpTXftIa99xE9LKyxGgMo7GREf5QmLtQlsaGkWw7Dx069BB/hnRFNpGX9Ocj80zhfzBcyHoaWE0KktUQvyBSqXd+9Agfx/06ePo1i3d2Msz6JPeNU6ZMORUey7mN634oMxoh7xFgi8YUGst11K1UA92v/tGY9sJC9oDLavc4usiLnob1EQLGyoFFJXKsW2qPnmGlkP07YhiNFsFYcnevdoy8qEPS2fjbtHz5Vjmxx/hiPuAh/gjPSUIbvTQd3jnmENIvTsSfSm/lfPAy+iSNnUau+KVO0JKus+qGF9+m+HnRsIdFpQdPck7rS4j/GbbtPE0vcie9yfvYa3o9xlIW8Mh7/X6kHVz1eyJAQ0uGUefKy6j1zyKEsVzNp/uet57VzV4EIm96t0QoKysbhzEYSi8sdKLZSiOuDEdyy3mnnk0pe1wvP5VQKmPkbQBWpZV8qcwyT+g4GMArD5+w3SjNZ+D7HFGe9jhBRtGKR5pX4b/Hes5Xl0U3C8Fjhp98VnnY30fBzx7f7u8NPequjDxcIjflMwTjuBf3Gc6e+MfMmTMXl5cfW79y5V5p1cNivPpq51X9+YMAC77ORpphMevfI6TVbRo5UB0cij4Kv/QYJ6BEZGGDI3qYkuN94759+2ItUSYvOWViPjR8T5mwM2OvtKRt5Xm7/b2pv7S08C+kcUyYh8lr5UG80/iU1Uvhw7gRYtHIBZf51POQcZoXr/bysN5Hxc+Kb3czTQ9DOZb7skSi8GZkeObo0bId9Cj/Ts/yU9znYCyHEa5zlPZCGIR+6kAx96k0tGV0wYFAWH3mfWtzc7MMozY4EupDViJgrKzHjBkzibm+oXZpwiqFxKUi7cGoGn+VQ9LKKRM48pXsUEPuVpr0GDei9HYJnbjXCy8cfhwe1pB+qtCIIq+VF3nL9o
294HLef6bFZZvLvINx5DcDvY9tmm4y0NkN8HPjVV/0EPxDafenE/ecg+hvrci30buH8P7P5uamp7gAGhpKLXyHGsEROjqlVsIjBgxYiZ1fTK3g/Eo9Zk4z+7Zs2ctCbW+ONDLzgdTw1iEGKNRTunWc5RKIaJTmcQ4GX2VQ9LJRW/kdJza1EPAj5fSRMEt4RuLBwOShb5CCTbwp3iEOdLzkaMMmqFp7BFIczG9Rln0UQhesRYf2ellm5+5xZfC0xw3X17lEbW+uGnJ80DRo9ykp1AHC3K/k0bSEIbUjiDLWoZhv43hfAJj+ezYsQX1a9bsl/Mv0/PoxDGrLCTWKzsRYL1ADeXs2C4WpT6jL2RV+yPc27NTMuXKjYCRYWRFXyWFXI2SSNGJUimsDEknhlHmbYwu8ipiKOt/MErGqx1JI4f1Pk6GsRbe2BlFKf8WeV/LvdgeHsWPDFV0HK9buHChbOzNqwvZkvSkvoE73S5YVCMGntJQkIPppbFFshOr/ey0xB+Vnjud33Nv6SGvDK+eAf0zoPUBVr4OaWrqbKitrdxM2EreLaXuPc2+35Es4JIpBJFRjaRfgeREeOdEylQOu09xS3n6Lryzi0O8A7t3736SMNnHrVcOIGBkGKury6qPH29PGcaolcLCAEUhQ0/Smja62B4yBwM3j/S+vPopOXhs4t1KMnTsQzRioDvy2rVrZSjtMR5PhmbokK49j+7ol8DPXSIHbt70Guk9yUZnOcggfRqSyMuzHQLf4VPifYM9h/9itagsUrocbMZwy8b9NMYm9ByZ+jz0FT0aP5VkuVBuZHiTZM9IQye3LLiQ3uV3qMsrUayrDxw4sImTlcRgdhBXDaaAxUV9SJf7iZAhUpGAaOAxgrcx1B0ZNfOtz908OxzSbaRjsFuSOV7oQ9Yi4GtsvDju7JStGomhVNJILSU7DRTCTp6NV4aS10Wkm22nZfeHKLknt23bJgY5I9cLL7zwW87nFAU+LSpBiz+U5rCGhoarFy+e+lTUtLkQD7kupYxkiDF1WfJaz+L61ReUxWFWOd+7efPmJ4j2Z+7/Gj9+/MvofX2INKfxXMEtc7QOK+tHj7ihlwl/ocSIEEaP96LoZTO43BcwLYAzZMjIkSO7uA8i2ma2jdwJFuuQa0My2bmtrW3ILnqaR9asWdNCVBmW5dXAGwbhO9MX8gs+BXV1QwobGqaO5ISrc+mVScPiFMJP5Z4GNt8mXglhgseAXfAhJ2/JV35M9V8b/A8o7wMGWo5mbGQYk8nikR0dLfL5H2NxUQj1JErPvUQhQD7VtLJvxx3jFT9MKVGB7yddr+YX7fli2Jaw+Ogp/iCyECgUBDd/PL/62LEi6TWmPqFlp52LfnqLY0aPHi3lk1ot7JZXZApSIqR7kJ64fV9XC0NOD5DsAYbth9Ozug6a7wZv+fBzMbRSRpLnWHCZ8heWSW/okVbqz8ju+1QaGGkjm0h0djU2Nh7BYO5C5i3Iu4X/wQ34t+Hfwbt6epzykVtpaAoYvPI2nNlU14QXeE0yVyfbHWpLShKLMIT/A+8nHT/eMRtIUoaHeI4RB95L/XLM7fHcr5fwzjGD38ctMK1/JGlbtGhG69Kla0X+eJW3X6XVzIwMY1tbQiqoDBcZXVSk5uHDy2TYyGgogRb1y0gjx4z1uMKUEn8maaE9ym1kjHtk5AxoY77ojyy8uJhgUWq+lxd//EGG8RHft5LoGd+EOfSCnt1lsLtIWPaSlzLwbVlTJ2Rf670kPSDp3RffqxPFfxv39+lFTqFn+Xriy/BkLTimjCR5hjZOLLqm/Fnp/Ny+pCdycVeDXzUy14nRtC7x05scwoInGY4XjPYQb3dNTc3PSbOP+PK8H/8RGhaHMKgL5s2bV0MY7bqGxp07d0o6SznL/zH9nySOFU7wixd4i0K3Li/MJUzuonHjxslB/9WU1xjyHwc/UwifCg1YqV0hfvKp4h1BJ0iJC79BjSjh0StfgvvtKmxvbys9sY7GLE/kbWluTqZ6/mYpNfZAIWBkGGFyhFRqq0JHZZr4/FHLj5HW84/nRYc0RfQavoc7zf1e/kRuHqDtUMI8L2EYdZM7bW+fGU4Vw/hG6IhR8LyC+IPvK9kb9yvcnO41wv9QlPGPcacEyesJEIGk24jxkwUJYXWii17kNuJ9hfurDGWPo6d6DeX7VpTubOhYRtKuvIn64hWHvxdT9/RlAz3klv/uaLnxpxuP9p6ncI4BkhOnUkaHedwWyqyB+MfBThakWXcLYbIl5V5ka5P/KXdq7pPwBL26/yOIubWCIp5ljq0EmjImXMYt+qCK+LKFq4T0DgMmWLkv4ZE0jmDSO/6/9pfCE89h9cSeJON+PpZd2NbWXmhvpETNBFnby8pSQ6npRkjUtBpvYBAwMoz0lkbwR0svsojCcvcfg17BcfkTRr5oES+mEsoKUAePQi/sT8Wfvos4vyWtZ28kMhPeEY8R/Ef+yGeThygDxxXGH2mKifMfJMrpuUaGUC9FhsVh8jrAsT2gWH/N405bUBRvFw2T3dzfJfJ36TkNp568gnryNspctsNUUC6O1a1x+fNjJpfpgU+J3Mg2MkjBEyctviWv/XwDMWISbr/saezhbr9Fzx4eZBS748lq9gE1jAxfF1HfjHSf8C7yIt/x1taEzjF2F2YuOM7aHcIxfyZZDBH5sv4EVIwDXV3lkbdq8CdL0DN4DenSizokU4uenQGfP9Xh48eP/4t4ffJnYn7nbmj3MGxR+UO+i+gNX4T74hiZXags98N3JR9qvRJ3GreDW5/ycMdpAKv7CIxcJxwEuh/4+smhHTt2/IrzJ1/BPY4DJM7l1fe4t8FHC3m04zrqQBT+vPKSsKjl65feHa70guegLby6e7eOcrTe9ZfLp6JkjtNontMqX9yjTU371TD2V2FlIB8jw0gBl5OnUxP6MGFVCnlNxT7M3FrkisFQ2UwU2JnQSFdEOz0rywAl9weOn9tixcu0yzL7F8j7Pu708U6G/MkXP94HX5MzzVt/0KO3+Cr4P03miez5BZSHPZrUhz8wzL3eEdj7h1bmz57EQH6AW1Yy1kLyPdwP0Ts9BG+tzH3hbY81nGVavmHiKL1oRlFwpPElo02ZXCsQVjw93nMkpei+tD7qEcEVYC9f6t3hzs5y4xX5LpL62I8IGBlGlE2kimGvFCILSvQoLa7IvQNWsL6GZAstHNz0JNxPCcNjJ/GlR9enm2lRvr+Ch6eFFxP+JL5c/NlPZU7nfNyc6jWOGFFQzRzrNfA97YQkJ379ysMeR/wUj1inu/DKwpG+urowvLs3bdp0+/PPP3/Rli1bxtCbPIm8Pw3fciC8zHfLcW7thIUayjjlGySY0vP///rgJoZxQHuMlFkFdSWu/jtIXYzcMfDBQIP7EQHH/F1YvlQO2UsUGM3rT0+FOlJfXy8T6KEXims8BuOnuMMkshc94QGanrRIt3Tz5s3LPV9mNnA35H7PfYrFq0U+iD8rTrf7bty/u8Ky+nHy5LrXNja2nIHM6d6igbwi2z937dr1DG5wRcosCu0YyrWQlPur3EVsu5nHysnLqV9Xwv8swmT+SBZEEfTiBJp4baISxVipp9JYP0rPHD/+62JU+rO+WMWVdmlYyXoCWWwUeHmVLwdY7CWRrAbWK0cQMDKMKIjU5lY/2bwqRbfStPZb+SVNhzO3eDn5yOZeY6PIH6iL3sidJN2TJti3nv+D10vJ9+XInjIUhkbiDPaqycd9c2KFKivzJpeWlv4IWSdZsJrIC05y/ZS0oigG8mpjqF22Dsh9E7esgJ6FXC/Hfzk8LqJMKhjpSBnKbmMZp3wh9+IV8P94MZKBb7DQA/8BN4zUBzkCMNAw+pUH9eggxerdkjcob43afwgYDaUyVu7bavOrFCgZMXCSzjetJS4Vr4phOvlGnhxUbtxSJ90u5pn+Ab1+aZ0xnLoHQ/EHRNsvMpgYCYmPjLJZ+HVsHB4hz9l8gW1y+PCqf8OV00hSl6m8pH2GLRqPkDjblEQbfK2hPL/JfQH3aFr5M+Hzbdy/YEv3VhpcjdT/1DwlZSZXaH1OgdT9E6c+29O7/YOJHvVGsE6PULix6I9npneGk4/MM3pefuUhc9psk5FpA6P64pmJBvYbAkY9RgofXdizfP0qBcojJQhpJJ9QI8wE98X8CeRL68ZGUTIiP5m72ir+/roaG/ffU1RU/XKGWl4N78Z/XpJcQotyTn/xGzcf9rItampqeyVlkzrYwNQopixJV9cPyH9nXB76MV0nQ/87yO8X3bdkXcbw6ywU5DmU1wWU22nINAJX5ojljyFlDzzOfXySMG59lrRe12CjB+aiP4z/W17YxQ2jfDkOs8DTMAaVB2mObtiwwWirWlweNV3mEAg1VvasqBw9VlYFVQorLekq8AcuMqECFbEa9QqUzhT8VtKUS3rfOUUrInGOsFpUTlI5boX1h7tly759LM68m/w3x8kPeYfyKZuza2trA4dp4tDOVBq+blLKCtS3Qe9koRmlPNx5U6bPciD8g4QP6OpCN18Gz00y/MqIxP8wX3kVvcpJ0rPkNJkzwON6epO/xpXj247jtnDLnHpquwh+R2tSHolnkPWLUaP8316MHe7LBXrgZaSnwqU2jwEPI7l7GMYw/Egjw6hqGM0hH9AURj1GOJXtCelhjbBKYUlG5ZCFNHJShu+FUTyVIQfZpO2IQ9pISoR497LydZ0jcf88dO3ff/Be9vVdgrKrAZPABoCdJQs/ZH4ZG9Wld5KVV3l5yctZcHMh/JZFLQ+7IOAiK4VvW758eS70Fu2sh/mP863OZXIT8bbuyMX0LCczJXA
294S5Xo6gyynUoXndP8HEgIF/gK5iQ8sPXuYfpkSN9ZISq7TAzM5bcepGPyE6qNwykuOw3Q0XqOUB3VAplnUMPZRufQVWSPDSCE3UEFSvESpFBbTxB2D31GprHeWy6Kbq4knqwPTl+TFnyL97OchThNxf817Gcvv90s+ZAz/f8a4n0bmMjcVetnxg/fFHKg8PjTRAESgt0jZddzW0TFkDr3bSOXhZhP5lmD4/0F4v8z9uvPv5+dWepbPy02+93TnLceqVbKXV77+LsfYLQKTBdSBebjjuOVEmpShJL5lNOVZzkxNGQR7femmGavnbqXNJXpFRUOKZ8wIn4qxZMu0S9GUTJ8+/UeUU7rnaoDfPvgx/txepmVQemYIGBlGDNBhlKO0/hMn/scvZkal8VWapJtITN/DxxcunD0dkndCM81PEL0Xcz3hI93fGNaSVrtjyModry+fOabswYqKimvhZYbAE5QX7x0tfzAdvX//4Ymkld5EeEsgiHgG38FPcv78+TdwHBbzanzzIUIjxZ09aTqSyYJb6S1ud78bRM+d7GOTfbVruu/f2mSXr01UYzTloPQZYD6LOjCb9zO4a7mHFhamRiEsgylJC1jUkTKc4g+rb5LAfrnrn7wz+b/ZaYm/r+nxGS7OYHXn2n/PHAVXAd5DpWEol4m84FpPEjWMKeRy5ydtiKKwzHzKbipJE3/eKnv8sD8V8aewenOsPY3d396evIKVf/OtsDB6VjxxiSubtKW3uNcePgD+feCzlF7jOeSdWqDixYPfn4q40luWIaOsuRYunMHngJqugucxcYyiCMLc5P3DhrU9jDdrDL7wlUVXB/s65UxfuaVx575kaHb4iBGVHFJQMBEFPYn/k7hTwFa2zchX5cdSRjLMLeaD16nep9U4swyo/FdSr8TltvIpIL3lT7vQs9Knwij/dIJ0JP5+kpXQ4pavpchhHuLKoxU/5ZeM8RRBN9DEyWuhab/gr2jz5gEdSh0OT8OEJy/+RFS//wfhu0gm2030yiEEjAzjhAmjdzQ0tBxGvrRhDKoUFg5UpvIJEybMpHIVEd+x0Z8/fRXG9pe8S9GMQs+i2+0+zmKIx/EPuOJFWT0J/9vgxdMwhvypakkXOA/bLW+/OPRiKpgn+zYfp17sVlRRGSBdEzLf+swz2/prX2lU1nIpngzN7pUbpldFYLyQYf0ysK+Qm3n7KspgKK58YDzlx+VdVzm7r2QxSSnPJayqLsKoSf0Tt5CwJEo9ZWgJSxk7wjugJV/dkEVF8vHdNoxzC/FE8UuDuRH/UQzZEd4f5Rb3EIvLDlKXxpD2q8S7mNvz4n0Po0h6Mbqhi/c8CWYokPzHcMs3JD35Q2bfnMBnJy8dOs83sr7IGgSMDCOjN/X8OaRlO1kkkEobVCnsUhJP9r9Jz85xjR079jz+OAv4UxnREyLQlFbpPdxS+Qb84lDrNSNGjJAWYuqAAjtDYX8q5J9A/BJ7moHyw0uirm7OW44fb74IvmMZa+qGXHeyKOkJ5LB6DwMl0mDKt51h/WMILHfWXBy8f5B5Vs4M9TYiQf8PdI40mo10VSYFh7cJ8CAb/B1kqd+h+o80u0nkLbSDmj5kEwKBwxpuRln1WU9lSLX+o1QKV/rTeXYsMBEFzNyKnBwzJQY9If8cex//iZstLbK9tMz3II9jbCroTy9CyIX8o3GyYij1/9s7FyC7kvOua+68NDMaSaPn6DHSjKRd7a603qzf2E4KltgJxqScUMVWBeyEBHBBChyIgxM7VComJhWCCRBXinKZQGIgqQISO8aB2DGOseMi2bWzeu5Kq9Vbq9WupBnNQ/Oe4fednT7b59zz6L733HvPnf1OzZ3z6v7666/7f/79bhYceGBubvED6D0quvkeEl/ic4s+18+cOnWqJQOifHVW9w23AJXSxcS+tjx8gCdZjq1lxMiKT9JkHTSlGiu5fK9ws0BNWSoSerSZBbyI8datWzNk4is0GQb9CZ5xfXh0dPQNkGH48WfQzSjNLt9Facx7YAdgkVrIl/AvTZdlqZGsUFqXGqMMtAiOPNAbd5xbCn6jh8xZxKY/we/t5pnPeY0UVygg/Orc3JxL05+PeHXbvhaQwmIVMbrgAzdb8VtTy0W95pLCO72nB5Ej+AwOF1IUh7i7eeLEiXuv+tL/7WQBL2KUiJFRTnPynkRP5q7Q3v6+N73poNSMgoPpSU9AcA/wM4+cz+hxe8eOoT+mRhKSkLPnBjoUvRAfzFtyAb2likxnibbVWC+bcSkfgd7e3h+k4PNedJf+J6/DxJfz0wy2+u+6o4CX+da7Y1kaLfLdMPnFjngS6fBMamst6WagskhBcWU3hfeAmJP0s/W3r8GTFNpL1aRt66fX6RbwJsbu7mCAydV0kclvBAQQ4LsXFjY/KB9gfl30LX43Z5njWMvxdQbTncVjpNmyFkFF+qGmJeBfdAW9CVvswXVLifHo0aOjTM34MXQ5YvRyPZv4Ev8Fxmj8MgWWy65+1d3rwwJ0xch2X8FcVpNf7JinkQ4FaiHGjbbbZl2DhSG6e7ZJeGn6pemC+8u8ixQG0tzq83JZwJsYz5y5KGT0vE80DAgode3kw/teOuEH+Y1SMznsI8e4JcMts37iV8fHx1s9RcOoFJ57ejpXAHIwjD18yIUvqGy/zbjmA9DLwtkfRs93+YZn0leat7n+XHf3wNeQ4d8M4Buwum8rC5A/pL95zuQXW/ksfPCdkKZUaVFp+rF168AedBvK0i9NKeL7AgsTVDUfp7nX5+WxgDcxovoMH/4TZBSnAS8JIPgb1CrGqFTJnn6HfE0h8iDYU1u29D/NpP7SzQ9ilC1D5Vci/SEuoMKNlKRb1ld67Nixv056/AD29foA2elLHK4h49M64MY3V78+3NOUepf8IdM6IhHOwwfut/LNSV0gJCKs8JtuGXgzBMnVIvnyhQulGRhYi/6vWz+1EOMGWeUFi13Ms5r90TRuyeQy4OZJpn58gGfD5rnL2cjj/E1aZa7gp2VEkqIviO+kdPlaf0ge6C05s1y3pFn4kUcOPzgzM/P3SJsxS5/cS5Me4pAPB7X4jk8+//zzOuAm13KvTwfDw8P3yGOSz8PDBR+42UzBLTIqNBTQ4Asap2TgjdRYvQ7wsEJ/vU7V8LJaeRzXRIwTExNPEYXMD6D90TTRNSCgxvdTPJM5cs7hG3nkt1lKnn/CwA5plinbgZorO1lYJCjdmvi6KIlb6aRvOjHyodp4//7yT3N+h4uexo1JD7knTSigrH5xcnJWljprehyMTnoutwXoqxNiDPvcXPFBXuugf3IHfps6ZYPwKrOz8yNYVfZi9DrQ+S7NsLKAuB5taAFnYorFbXZycvJrfBBlFZyqw/5ompc2CMhwPbjx3oVCZBHmSUpi0s8ZdOIb+WU404y6cW5uaZi4yWoioquzWviR+U5OzdPOQh0cbt++XQbb/DVJEwfngZOE9H1lYWHxX7CHoYzI1UMtkGgBMHGXqQ8BMfrig8K0DNJrKjESXi/9m3t8sCERfxUfq5dY4zXx+yhu9Ci3BWolxg00h36JqJ2IRy/ho1nXwJO4PO6fWly8fS0ebhnud+/eugu7UGP0I0XRHRJ9iVGhTSVGFkd4C7te/G1s6tykHU8P9JbjE9euXfvzMqSB6lBeC/T0TEOMG2RkqlehUWIEOe1mwF5Tp2ywitVOwt3pY1GDD9bff555vNIKpEcbWqBmYqQ5Vfr4vs5HMRx1ZTKFbYdaQGD8x+VReoN3lr916tTVUk6aXVjokDmZw/xMFJzP2OkacavaCNpZgKdDAL8V4H+UcN/s6jWeHsRTFnr4g0uXLv03ZJSuBu8aL3XXHAvMzfXL2qmTteADP3tYSUmWhmvaga7Svyg1VafDxgf4eg5iDJuNnQSoo9JYoGZilBiw/uF/5fSMXNuZQu7lIGN5lwxf9Zksj3cvMBL1Oc7+zGMEN+7cwci5NxBn59qXrQrTT67Tb9qUGiOg7aT0/Y8J/z2kGwOG8o+U9H2FJvVP4PvlfAnq4vVuAfL3DPioaWwA4wpkLWFZTLxpB7rKxgeyQXHuEccH/s6XcdR8bkTUQWCBuohxamrqHLWcP0LSPBkhYtKiSVHk8ZNVd0o3d3Et4j0sWHAMHZ2AZBsLP7KE2hXOTRm4wu4L7yPdfpg0C5e5svWJX8dBL+9Z93KZUvzPUzjSJtS4wfQ+zQJku+W75Buv0eSS/zh20c/Y1BojmJS9MbenRcY8j+ODODLOaOEy773iaeTpufUWqIsYRX0Wyf0tPrDfsaNCZiq0pmjJE2IsZYf2gw8+OAYgDgGSaAnBNkzCtYCK+F3r719tCuEPDQ2NkWYfJs0eSFCn6lEc9OKAJm1ZwOD3KBFrE2qVxfRBlgWYFvQi7+9nubHfmfwHme5kq8et5Lu6v1m2/LRrwukDJyOEnzmv1+hnywHPF8GGDkSzjdJm13VnsmefffZ5mhC/ACkEHc0WiXmbIiWTBSQrpUzCeBahYZ+mdwAN9MAC6+9EvNdKPia+lIRpjp5tOJAA+0b2vvw45+92MYXRz3Yr6cshg59+kZ/uHCDW0MPZAmBY8o7TGAE7/5Fnt/EJkKXZvAqezorFHDIwTbpEMrtFbP2M9zV8nOG+lAV4o6eesy1QNzGKeDLtZzl9Q2oSEFh2iClv0zKZkUeGG79586aAqrYAUsIt6HE3NbF3IUv6QZwOO76dnR1/dudOR019L06B4Yg0qhw+fPhDXL6f63CHkzT/tn7GjYCeD9siv48z4OaUea5ntYCrBcCz7D6TS4zx/Md9ZXx8UropCvlm5elLXpf1gnenuYvrJ+4EH/K94iwtW9NpfvV5+S1QSCZ77rnn7jC3UMhRiMv7yMpkRhhubkC8d819mc6ULo+jz8Po6FSateMrRAMxPgXRRFYEKTp+QtyA9u9QO5WPS+Zh62ccCuil4MPxH69evfr7PC9jAcWoq+eSWoC8Jfu5Ztam0vIfeW8ffpsyZYNWsIcIK3FEapp+phBPwfMsfps2wpyw9CjYAoUQo+hEk+oX+HD+LpnXa2RlXiYz8UWu9E2UshQGEN6Nbg8aXbPOCfE92d3ddyHLT73vBgcHd9GE+jPo+WierAT9wpIw/k9DrL+CjFJt9ZUXJ31fHgvcu3dPmt9TW0ey8h/fgP34zezzKyKm5PMKC18cJbyqgTdZ+knYkOMcA9Muc6kDb8QgbXoURozEf4VJ3p/i/C0yh1OmyMtkMZvKuoPOnfYxv4283cok+bcTl6G8QJLii5+vnDx5smEDbwC5NPN+jHCeqEU/Pg6meWiadP3oCxx5cvS9WiDDAjLBP7FvOgkfJv+tyRvhvClDdlGvtrLTzH706bQFOugnXRbPX79+veHjBWy99Lp4CxRJjKLddZpUf42z1O4yD5dMFhMgc+VKt5sGpPhO4nIspmvVbVJ8qWEvMgn4q4C/YROBaeb9ILW8Jwk/cz+7JP3MRwlClONfXrly5WtEzKnQU2UAfaAWeNUCy+S1l8lPkXyUlf+M4ciP0ofvNMXI+KnlTOvKGAS3x/brop+4x5/0vafWiG2Zel1eCxRNjBvob/w9ovufycSpJOaayWJmk8zm1Uwb89+I2w5qY9+H4ENZwtPii42eYn3R81l+63mHbm/k9/cJPwLyuMw0/fh4SW1RPmBfgRSlD7mUI4Lj8dH7cluARSGuQiBhYTAr/9kxwd1e+v6CTYPt50VfM3/xYWSGI1Jd9RM9wMsJTmHc5Jke7WeBwokRE6wwh+eXOP9hvFQo5vHJZOLeHAxSmeK6VAM+qC3KyLXHAXnq4sY58f2f+G9IMyo6bYEUPw75vsnYMOmco594eRHb/xxnacrWQy1QtwXWJr8HtSqH/BeGR57evGfPnmHOkSbO0EFBF8iXwXTBwBsf/eR7x3EavzrwpqC0aJWYRhCjxOUe28R8ggx2xiZHn0yWYBAZtVkqYqRk+f3E
294MbUZNSu+AEiGrP8fzoXXwuTDMTIy8hFkfz86pI6UzdJP7I//BdLvY7pAuFhDj6IsQNP+VWSN5+W/pPDwe5DnPUnvingGdgYYrDaKbn2++uH3FVpWrhehh8porQUaRYwbGH32bWoav0JmCTqifTNZ3CzIkWbUSL9E3E2T7/upMX4P8UocdOMQ3y9Ts27IQBb6FX+AJqe/hQ4DaTbJ0w9ClOMzTM34PDKW0+Toc7WArwXYgOAmeL7DL+KVglgw0CvysPpmlEcNG5kKKR5Aj315+KhWKyhIysT+xIFFSe71WXkt0DBilCjzUf0cp8/wgZ2rEQSh5fBfqtoi5PM2lHtDqKB1kQcq7CELIQjhFD4vkx0zDqKbLPk2ZqkUuXTRD/9PU/r913jUqRkR6+lNARaQeYyRASqOpChBj/Jr2MhUaqSPkPdlD0YJKzwc9XsGD9ISpEebW6ChxIhtVpnT80ky2+chgpDYHDNZxLT4abSukfDybui/+6vodDjuLo90xD2gOw3pPI3/QmtiyO1ZW/LtXXG9zL2Lfri9y4LoP8P5svGnZ7VAgRaYpxsiHJnq+T04gB4NG5m6b9++x8BIOPBG4uyqH584IcYyTimTaOjhYYGGkw1zemb7+mb/KR/tb5BxyGNOzSVVUSCzygCXhutbFXDygz3E403oFBkE4Eg6IlFWjim8L4Il334UO/8gv8TBQC76kUZC1p946aWXvsm5TE3XqKPHerEAxHiNuMz7fg/I2yN0E+Su3lSLnYZ4+lqAAAAsMklEQVSHhzexENWDhBHWSF31o9tohiUrzxFuWAGoRQf1Uw4LNIVoTp9+8Rof3I/wOyXLitUS9b6+jn78Rds3ahFUgB+2bXoC8EQG3biQjgSNDSaYu/iHAK7QId00oT6K7A+h186kKLroh3/ZNeO36fv8L8go29SYpGjpsza1AOT2PPlNtqDyigH5c5Ba3X7Ouev9egnGsQy6YTe1fcafKymKe/B1ltYx3ZfUGK/Nz00hRrHRxYsXnybzBM1z8gH2sZt81OfnO3qOHClFjbHCdjRCjCEBuZCOiS/+vkLJstC5i8jso2n3ZwHyG0049tlDv7OU5D+JXx1AYBtQrwu3AIXDiwgNBub5CiePPnj06NHCB+CwWfgxsBTM+fUhRdGfb5o0o0b6TX3jpe7LY4GmEaNEmdXE/hdNDjKNw7lkZT7qnDcuLY22vMbISNTD6H/cJKHRz9zLOQ1UgEfakv8AJzV9EOww7Ou9e/f+XUS/F12q7OOqH3pN8rH66Pnz56U5SA+1QEMtQO1KmlJf8Q1E8jPfkEMs2ZY64tpXprgH05Xe3mAt4eE0/GbJZRyFEGOhrUBZ4em7xlqgqcQoUWFO3G/yEf9X/CbyomZ/1GmC7WFicNP1jesIgL4H4Dwgz239jLssUPHuJM2UT3FeMu7rPUsTKiXoH0WXrXFZrvqRFnL8Mv2KX0WGV20+HqbeqwVcLEAhWZpRnQvIItPkZ84HGWRW6ACcnTt3DszMLB4hmE3o5RKF0A3u56htnuVBYbgOhetFSyzQCqJZZUTmr0IOv84vdbcMAwJjFe4z1/o07hp8rtBk+Q50GYrrJ+ESn7x5WH+EMykpF3JA0j00636E8+Nxga76AWrpV/wSafIbyCh8sYG4XnqvFlizwBJ576bkPxeLxPLzge7uDVUFQRc5aW527dp1YGVlcS/6pDlJfU5/6TlqjELyTnFJFaQvSmOBVhCjRH6ZD/EvkAn/E7+qj3EMBIGx+Hh3sa5oVVNhky25Dz2OJOmXR4q8n6TW+8foK0vbFXLQz/IkoKxqQvXRj/hcY+H3X0Ah2SdPD7VA0yxw//79F8h/qYVjo0g8P+Nn740bLycurGH8+J47OpYfWl5+bX1UT/9nZmZmCp+T7KmDOi/QAq0iRonCAuQog3F+B9II1xaMg0AcCulAKr1ctlLfDfQvvgEdRgGmqBUeeaQoDnHz/27cuPEsZ/8iaRjSaxfoMEw/y49zDgcByds0+yWVhNFlnv6aj7Pwu/SP6KEWaKoFwPQF8mDmQK+k/IyS3dTQDpD3CxuZyiqKMso8c7H9JOOs6XeCuOjE/iQDtemzlhINNpuhz+2fcP59PtyyHY10gkdMCXBM86Q0pUbmDUYcNuFm27atbwGQEfBY+qVqQNxwtirzAgurlTHg5iew1TvsQHPsZzsVmwpBf5bViWROZaELDUQC0hu1QIoFyIKXycOpA3Cy8jMtJdIfWEj3CjpsnJ6+/wDnwRRVEx+LfhwLAwMDp5mvXdXylehJH7aFBVpNjGKk8UuXLn2YTPZlyCNSm4qRTquJsbOrq0fAE5ZSY/plJfg9BrZ8G/eFjFqTATc0f74fXcLFlLM+IkmKocsJ7P5veDeZ9F6fqQUabYGpqSnZsSVxdxmH/BwMlClCRwby7AcP+31kGf3wd57r6/jV/kUfA5bcbRmIUUz0Yn9//0/xof/mWk2maiAL71ralMqqMtsBwW6Tnlybmqx5lHpG95M0e15MdeDxAlkVmnQ/RPjS9BMcBqTmXs5Z+vFuCn3+Gc5esP3otVqgyRaYBu9VxOiYnw+h65Yi9CW8h8HVXldZMf1Osx56aq3XVaa6K5cFykKMG06fPv3spk29H8E832aOkyyyHbeUEGPLmlIBjgy82S5KZZFOXOm1+1OcvYamp8jZQOlWlqJ7N78g7WIgDbxl6ScFD45fowb7NRxrKTfN0Pq8GRaQEdFXya/hNAeP/DxKc+q2IpQkTBk7MOwiK65fV9fqM3fudOjEfhfjtZGb0hCj2OyZZ848xZy8n+byBB/v+Ee7pcRI36LUFrdkkY7EIekA/DLHqe7RqMiR6SIfQIea5lGu6fYUg54+y7UudpyUWPqsqRZg39bzBBiM6IyTjiiShjfcbh0dHZWl4er6huG/h6XgZH3U3NpnXD90Y/Ba5RnGSWj/YlNzTeMDqytTNUI9Rkh+HbD8LBn1XIwcpT+tZfpCjDvQp6bJv/i9gu51D3ABwEKIsgekHFkDlRKTBiBPUxv/57y8nOhAH6oFmm+BF8iXr9SSnxkJKv2MUmCu+WCLtr18a8L1UdMEJenH9+D5CxcuXE3zo8/b1wItI5osk01OTv5vMuvP4eaSIUfA0+IaY4fUFr1BSDxepv9UhnLHa8BZJkh8t337dtk54+EkkKJbZp+n2JHjN5gy8o0idElUUB+qBTwtANavkZ9fJl9HfObl5zXHQoz9EY+eN4RzlF9kpHlcRBremOokXSSFLu8YD1vvW2OBUhKjmIJFx/8HtRtZV/WGfNTJnDIatGV9jAyY7QJAXb7JRG1xpre3Moffqk5TH1nYoZ/fO5HXW8tHBD8v0OTzHwhTR6H6GF7dNtoCd8F2ZC4jWMks5FkKCTF6TbGw/AaX4OIY4YWD6uLv00iRb5K02Mj8X8VT3Gjr4L60xCi2pXbzW2TAXyIDyqamQowt0/f69ZtSpI0Wa0XJjENAxbr7LH3VWSEOdenOSNTHEHYUOZEQXT4i2E6qi7+Ox+cinvVGLdB6Cyx0dVVekiwqqrjkZ6MyWBhjTELNS8Phv5OmVOlfTBzEk0WK6LnEovtn0GXe6KPn9WOBuj7WTTCDrKv67wHNp/hJySzKCk1QwARBTU1GzjnX+gyolpdXqeHNyxY5dem+Z8+Ot6PDiNFHzh4fkaeoLX4JL+EKQ7YcvVYLtNICnZ3dl8jLMx75OVCXb8LekZGRnbXqzjrD2yHFvWC16jto8GvLjul3iZHdV+33er1+LFCVIUoYtRXI8VNk4E+hW90jO+uIn4TtRCw2qCCzoeXl7s11hCtNNhVGvx3nHO5BFwNpqngpifP7bRxcTnWkL9QCLbRAZ+cG2bT4Nj8vLcBWJzgYAxfhQhc+AvB+EP+74n5s/Jp3CXh7lneRJmDjVs/tb4F2IEax8gpLl32R881WmZwtrwQEuVMc4qACUDump6cTm2pc43LkyJFB5IQl4wSQZol69vbt29/EgROpZwnSd2qBRlhgcXHlEuRW0yR5/D106NChmgbggCNZyWqHHac4fuVdEt54Js2ouj6qbbx1dN0uxNhykwMgGX2W2dGeBCr8dTCI6EH81gReiTglW2nyCeZZJYFU3GQcf8ouBtrkk2EgfdVaC7AzxQ008F4AYw1vh1j0YqCWGNA/OQqewl06kvCbhjdqt1JjnK0lXPVTfgsoMTqmEeT0IiBJbTrJAhX+ZPm23AnEaaqwCeo2ZPSngTTN39rz8/v378/d2idHhr5WCzTMArQGTZK3vWqMBm8UGMeWlma8uyrwJwPiRkyB08izI5mGN57fYwu8a7j1a/u1het1qS2gxOiYPOPj4zIJuWpdR/GeByrA9xDO6mlOlYUFen37YEQ35lrdYuX/cMkteaaHWqBkFlim1vgShOOUT228kb8P9vRsrKXQ2c9I7yGw2WXLM3ZJI8W191dYXMC7hmtk67n8FlBidE+jWYjpRX6RifqOoDpEP+Fe96CiLpeW5noAak1zOFkUQGqLWrKNmlTvSmYB+vAvo9J4nlpxvLFe6tY7dyZrmbKxCUwNxuVJ+DmkKE6kayKzW0Uc6dG+FlBi9Ei7iYmJs4AmbE51BRWl0m78yRzEmkbPraxUOqVk66Fq4BQSX6YJWAYMRcjcV466Vws02gLg4wphZBJjGt6ovUmTqBc+pF8SP7JoRiRqDqQoxCnNqDMRj3qzriygxOiRnADzDL9gZGwaSNOaOwHvcYKqaZAA/RkCeq8a45p+iwBfRqMqMXqkszptvgUowN2AcMJCZ1yDLLzJIBrcywIgzgcbfUuffWRAnAspSgC4k2+ALhzubO32c6jE6JFm9DPKgsc3s0CaJg6CqnkADpsSVwg3WrRNC4jnRj8+NrJw+SI/JcYMe+mr1lsAbEmfXWKN0eRnW0ubxCiMjvJONjJ3PpDZBz7CFhxbnoMQIXCn/lAHWeqkhBZQYvRLlJfp07hRY/PLUUq22/2Ce9X1Gik6pZX9EeGDscKqO9q/WIvR1U+zLTABroLtp+yA7fxsnsdJDDcHeBcufmHcZZ0rlWXWPg6WmXTpU4yIYsCPzF+UQqce69QCTh/bdRr3WqK1xE4ZsrFqOP0hDtI0oZROtzNtou7949Lky/OEj0jH0lKX1Bj1UAuU3QLzU1NTt8FTmF8T8nMiieFHiNGrm4L1i+m3r8jKOa4Llof2Y31Vmb+orTChRdbfhRKjZ5oCVlnxIphz5Qsq3Etzath84xo0JWkBYSYQUz4iHadOnXINRt2pBVpqARo4ZCedYDWZlPycSGLgY5g+Q6+5jMjvpObXSXheccbPMvOKpd/euWvDKwB1XAoLKDF6JgOryJwHG7d8SVGCEWLk8CrZij+GskuzTSoxpn1ECE/Aq2ksRtSj9BaA4F7idy8tP6eRGPm8C0x6TdlgNSqxhze5odvSamVJMOXtt/QJoAqGFtCPZmgKt4ve3rmrgEO2yXHzYLnC3yP0UUbWZrReZ13SVxjUGqvcIFMWGY88t0hb0tdrNGtEkN6oBZpoAZk0Dz6mMvJzmjaVjRs3hku7pTmyn6/hKQoc20H69XJltTuzoJruVd+0iwWUGD1T6tSpqxOQ0TWI0ZsZ6WesWrTYJXhALECsCi+HF
294IUwhRSVGF2MrG5abgG64Mcp1EUW6rcKean6gYMOaoxexHjt2rUOZHt9/9bwtlyprOrAm9TUWB8vvDLG+ohy3bFYvXv37jlAVTWCLkvyGqg2LSzM1jIAR4aGR5pS80hRdEHHLsjYa+JzVhz0nVqgkRageXOKGqP3wDbRiXwuy7s5f88IR2qLzjVGgzfCYNPvitYYG5kRSiDbOSOVQNfSqECTzzkA4rxWogGVRGB+fumB0dHRXp/IENYSJBeWUm15Rg7vqwYm4K7jkUceUWI0RtJzqS1AX/oE+ThYUSYpP2cpj3upMfq2jjgRo403aqarNOBUtd5k6abv2s8CSoy1pZnsH+dEjDaoJChaYI9u3eo3GRkwygo2ATHG5YnMrI8IE6dlFKzTB0Bk6aEWaJUFWMhipqen6z4FT9lc20sNcCGDb3yI0anGmIC31fn5ZV1Nyit12s+xEmMNaXbv3j3ZCSCXGBNAJSR2+JlnLm/yCRY5i/ijbyNzoE2iSAjVq3aaKEQfqgWaYAGIcYU8LltQeS+3hp/Nu3fvLrR1JAlvmGHl7NmzYetNE8yiQbTAAkqMtRn9PkC8lTUAJwlU+JEBMYcJ0mubHPwsIm+Zc0RbkZdXsqa2KcQY9RiRojdqgXJY4OTJkwu0VMqo1HCSv6tm9Bn2Dw4O+tQYM0Wn4RfM5c4pzhSsL9vCAkqMtSXTKrXGi3j1XtsRXO0aHh72mrKxZ88eIcVI25ILKUrUIE4hRk1nMYYeZbfAEgvmew9sWSOx7k2bgvmFdccxjRTzCqF1B6wCSmMB/WDWmBQQ1QV+VbsB5IGK9x2snCHb5DjbnhF3y4AybL5xJUWJGuuzyuLKWmOsMZ3VW1MtsEpe30j+dt4pw+CNngambAz65PPIKG8TSyPP3MvZB2+2P71uXws4f5zbN4oN0/wKgIkQoyuocHcErZyXhiMcaUoNmpd8QQqhCjFqOjcsG6jgAi0gcwulm8Fpp4wo3vybX+N6R+W9+jYJbxRqE0k1Lk/v29cC+sGsMe2YcyXLV4XE6AoqCQ6wCTH67AawgB+ZspHbp5gQnY1MnNZ0TjCMPiqdBXpZpL8PLOXm1zjeaIC5PzMzE+lu8IldXJ74TcMbz31qpj5qqNuSWCA3A5ZEz9KpMT09Lat0BIuJ+4BKIgKhCjE6j0wF8AuEsVhLHwc69rNclnPTVOkMrQq9niwgeyTmjqJOwtvy8tL0xYsXayLGJHlppAh2lRRfBzlSibH2RF6SaRuQ1VwcK2mgMkHhfozrQXOfdyaMeUaXeg9hF7l8aDYzDL7QYex5+up7tUCNFtgINjKJMY3EKG7KijnOxChzJXG/miYvrRAKtpUYa0zcdvKmxFhHarHVzXWAHGyTY8TkkaK4w832AwcObDN+8s7z8/MyoVh+XoeAHmLsw39hw9i9FFDHagEPC2zZskX6FlOJMYvEIDJZY9WZGJneIQN9shbgT9QcvMs3U8kx0Trr56ESYx1pCVBf5BcSowspSnD46QSYw65B37p1awnge83tMh8RdOqjdKzE6GpsddcyC5DHe8iviYPSTH62lbPxhl+vzYNHRkY68BMhOFueHY5ev/4soMRYR5oDrBsAdkJE1ACqg5Q+Xfv+ZB6jc40x+hFZ7aMkrsRYRzqr1+ZYgMKi1BariDGan1/VJY43an9eNUb8dyA3HF0al5cWY3AoZBoh1DS3+rx9LaDEWF/a3RJidAWVHRR9hqMsYZXabGS75ZoV/VediLH6I9LhM/o1FqzeqgWaZwGpMcYLi9X5ObkQyijxeTR1bkqVdfkJKyBGT/xqU2rzskTLQlJirMP0S0u3xpeW5scBtLcUAD/G0HSnkakAFx4NFi7ODCfpI4K/3hMnTmiNMdNy+rIMFgBH0oIStqIk5ec0EsOtV1PqWjCI85sChXslxjJklgbroMRYh4HPnbs9s7y8QdZMDVelcRVHaXVs27YBJ2IUmXNzc/OEEzb9xMNJ+4gQTj9udVRq3GB6XzoL0BzaDfEExJiWn9MKoRQAPWuMspjUivcuHhit4/HHH9bm1NLlnmIVUmKsz54rTNl4ERFTPmLWQL+3UunymbIxA8klDsDJ+YgIMYalcB891a1aoMkW6CSPd+bk5yqVhOBu374tO9A4N91ApNI94ezeCrSyupo/19Jyr5dtaAElxjoTDRC/CJgnXcVYoN8yNTUne8g5HYBYNnCt6me05IVycBuukMO11hhDy+hFmS1AXpUm/y7wFFHTzs+RF6/dSG1x6bXb/CuCEvfexAjeKtRsowrmB6cu2swCSox1JhhTIW4CXKcao01iAjDmFzrvsoHzKmK05ZloxD8ifGQGWEhca4zGQHourQXYdUaa/CP94fH8nKQ8eTzcyDvpfdKz69evB02pSe/SngneOCqLizrJP81G6+W5EmOdKQlYbiEit8aYRGL42w2onfr/aPqZ5iMR1hiT5KV8RKTGWDUEvs5oq3e1QOEWYOXCLvJ1+E1Kyc9V4cJwUvtL7X+v8sADcBeOSk16H39m8IY/mnqDAThxJ3q/jiwQZsJ1FKemRmV8fFwWEg8n+ScFbkBlvxPQQ3b7eOZUm8P9NKAMiDFNHh8IO4jgmmf9+FVirLKMPiibBcinMrcw+CYJPpLyc5LOeKmlWVTA4kSmNt64ZnurJC302XqygBJj/akppJhKjDaoTFAG9PRVjPDMaYsd/MgE5vkseUa+fSaMzrGxMZ3LaBtFr0trASFHgw9XJXEvVCU1QOfv2VqNsbokGQs0CW+yEpWEF3Oqt+vIAs4ZaR3FueiozAKyxKbUJFDZoOd6L8o4kRayZFTqAr+I/ra8yAvrhsnPA9xGPVrv9VItUAYLsELbCq0ozjVFS+fVRx8NplBE+iet90mXQmyZ5JaGX+YfK5aSLLqOnikx1p+YK5OTk3chKBkZFx5poLKbh9aIUfoAcw8WLJ9DZmS6hgspimDClPmSCuZcK6uDVlpgaWmuliZRUZldMnpkFSnnPE4Bc4XGlNQaYxZ+2XLOh4BbaVINu0YLKDHWaDjbGwT1MvcyajQ4skBl3MgZd7t6enqkNpd7yJJXUmM0Dl1JUdwTjhCjprUxnp5LaQGISgp+mbW4JMXBRSeFv8qxY+7EiJyVta2nqkTm4Rc9BUvOJFwVgD4ovQX0Y1lAEgGklxAj+8EJCTlvZQO5DY2NjTlN8u/v77wP+INaqQ8prkVvs6i2dq0ntUApLXDjhn/f3RreOPmNFIVMgVH1BH8X/EKoiqVS5qDilNIELsCW1OZeAWQzLqCyg8N9x9TU1HZAmpsOy8uTshbkfA2kKDt/DNIU6zQtxNZPr9UCzbQA/YtL5FXnMZ8Gb9TgOvGXiyE7LmBuBf+RplQjz3aXhLe+vj5tSrWNtA6vvTLTOox/UVG6AzZlOkVEXhKoIg646e3t3c0pNx3u3t0gg3zm7D7KuKyM+y0bmSSW8V5fqQVabgGISQaXORGjTWLgjNVyKpUzZzY4+ZWILiwsRAbf2PKMIdLwi1slRmOkdXrO/SCv03gXGq39+/dPAmip0YVHGqhCB2sXEJ0QYy5pUZqepQkn7MeMy8m6B8hD/HQuY5aR9F3LLUAeXQAPMgAn88BdpLsCP73z84vLYC7XryU4XCs1Lk/cZOEXHCoxWoZcj5dKjAWk6szMzDTgDPoYRVwWqBKCcyJG5k7JwJsI+SbIqnokoO/s3LBlcHA+l3yrPOsDtUATLQDhLJBfIyOv48GnkFjP+fPnvboKKMgGNcYUeZlTRsC3fDejzUNxRfW+rS2gxFhA8g0MzEx3dwdrmfqSopR8d6GCyyT/JZpr53zUNaBnahgDfHYoMfoYT9023QLkV9laLZUYTX62FZNCKBjqOHDgQC8nn5pcQIz4scU54Rc/XiQcCUBv2sICSowFJNOZM69AWJ2ylmlmSTMlqJ3Hjx/PJUZkyxZXMjI1MmAgRWZkdCxA3ox/bUpNM5Y+L4UFyN+RKUm2UmmkaOBAn6HMB3YmxpGREVpSos498Cseo4xqK6vXbW8BJcZiknCpq6vrHk1Bzp3/JlhIawfglukUuQfuZBePyEICSZ4SPiKDs7OzmtZJxtJnpbHA4OCgdBdU5e+E/FxVs4PUZD5wlOkyYkafveAhnDPpQYpSQ9UaY4Zt18Mr/VgWlIqMGbgJYLwHxwDI7f393U6T/CFGWZO16sNhRyHpI4K/TefOndMao20ovS6dBZi6JHk7kr+T8nMSiVH7k0UsnAkL99LyErS+JMnLMg6FYAlHa4xZRmrzd0qMBSXgzZu3XgZgstC387EG+q2MNnciRgQLMab2M6Z9RCDsQbZklCWz9FALlNkCkQFmafmZgl5VHKgBbuGhcz86Y3xECJD17/6g2VaJsSoF1tcDJcaC0hNgyvZTzsRoQE/hs39paX4I8sptBgLEqcRo5NnRMaDnPMDPabFy279eqwWabIEl8nEw8jorP6foJN0RzsS4sNCxCsEuJ5FsivzwMbXNniNHjui3M7TI+rvQxC0uTe+4NqXGQT87O7UNNVzSYhKCq6oxxuVJlAwpyjXvZdSe09Jz4l4PtUCLLCBEdT8vP6foNsRz5+4CFgKX0a8+8x7DYCnM9s3NzbngNfSjF+1lAU3cgtKLxcDHIaPcPsYk0M/Pb5BmoNy0QL4sJBAhxiR5Nima6FGj3eoShnGvZ7VAKyxAk/8M+TccFCM6JOXnuG7gQgq
294Xzt0FkJssCFDdJhsXHLsXvDHIrptlIHPxGvOqt21kAU3cghLrzp079wBnOMk/SWwaidE0swP3uc1AgFlGpYaT/NPkJTUP8UxK1JreSQmjz0pjgZ6eSmRKkgspivK4284pd9qTieiVK1eEFL2I0eANvHbt2LFDB98YY67Ds34oi0vUyOo3cbEGVPZzA3pqc0KMuc1AuBfirakPhvClxug8as/WU6/VAs2yQGdnr6w7HPTVG3y4hE2hdAcbCDsT46ZNm7yIMYbfnvn5ef12uiRMm7rRxC0u4WYBT2KNMQaqIEQb9IB6Jw9zQU0TzgxuJZzIWpEi0JYXBBD7hx9palJijNlFb8tlAVZqu01eluZU38UytjFaVKZsOB3gaEV+Lo7jeMNfN+Qdae51kaNu2scCSozFpRW8tSRNnZEjDip5GQc991JjzCVG5nlJ/6LssiFiwiMuL3xhXeBGiDG3Vmp50Uu1QNMtsLy8yhZuK9L64hU2mOhigNkOzrmju0Uw7oTYcgNJwi+6dTAv2Es/ddxeFlBiLC69VhmpNgEBhSPdkkCVRGK4kxqjy3SKhZ6ezsgE6CR5KVHyGrWXIkMfqwUaagHy8y0qizItyfuA7PbhyYkYJycn4bds9k3DLzrKeAD9dnqnUPt40MQtMK3oKwTUQT9gZK1SE0QaifF8J/0jLsTIRq6VcK5kmjwTXuwsfYy5tdKYH71VCzTVAisrd2WhDG9iFBLD397du3e7toqsQqSpNcY0UhQu5SejX50IuKnG08AKs4ASY2GmDOYLvgzYprNAlRLc1u3bt+eufgPwV+jbmKbJVvaS8+2DkSkhLuSboqI+Vgs03gLPPntTWl28iNHgDewdBB+ueXxFpmwkxcjIs9/ZeCMcIV/9dtoGWmfXmrgFJihzm2T1GxkgE5FqgyryYu0GILL/eGU7/nLTAzDfRd5cTitQUjCb3/KW75LBCVHlklzqM7VA6ywwDQ7GXYO3SQxcPDA8PCwtIy7HihQw4w5teeZdHL+4EWLUgWzGQOvwnPshXodxbliU9u/fPw5oIpP846DKCPwv8G4XH4UuIUjr18l1+EPeFPeRSf4ZMsNX+GPrqQ4Z5KNpHlpFL0pogWU2/pbmVFk3NfOIkxi1xTEKjLsyPb32kiCiE/zj8sQpbqpaZngmfYzalPqaLdfdlZZ6CkzSxcqikFY4MjUJVGnB4e8fjo6O/hjnoHmHc7CUm+0e0K/y0ehHbr+89zkAPUvCBQstCzEmNiH5yFO3aoFGWYBpF1eQPcEvleRSSGzbxMTEu3bu3Lnv9u3b0hwr5FpVK+TZhl27dkkhMWx2TZFXRYril0NrjK/aYd3+V2IsMGnnJ+fv9fX1TTEIJ7GkmRUUwJSBMcHgmDSQin8hxBpIUfz0zs2tbIV8Oy9fvpy6S3qWjvpOLdAMC1Dwu0w40pyaSIxp+JDuBd798ubNm+XnrGqWvCQh6Ce1xdyVqpL86rP2sIA2qxWYThs3bmSC/8qUT00xHrwvSOP+4/e2PPpUhuijdB21Fxel92qBpliAJtHrYCixn9HOz0aZFuBNSFFxZBJgHZ6VGAtMVGqKC52d3XcgIO8+QFGj0aBHv2F+YfNRgVFXUWqBwiwwPj4uo7tlIFvkaDQ+JDBHkpUao/OC5ZFI6E1bWECJscBkunDhAvvJbbgOqL2Gm4sKzQA9pPgj/N5PcFraLTDdVVThFrhHs+hdW2oz8OFIitItwSYg3dqUaifQOrtWYiw2QVdu3LgptUWvPrxmgR69tgDqX6Sf8Qmu/UbvFGsnlaYWyLLAPIPMWBpuNVjlqVn4kD5Kx2MjumnLi6Ox2tGZEmOxqbaPTv/3QD77XcU2G/T038h6kv8WcnzMVUd1pxZotgUgqRuEOdFsfDjG8/F9+/a9lVV2chflcJSnzkpmASXGAhOE1Wt+CNJ5i6vIVoEeHR+kxPvz6Dnsqqu6Uws00QKVtQJc1bQk1+bOJF2Lwhv46ULWBw8c2PVmwtH5jEnGbvNnSozFJeDmwcHBJwCNLAieexQFUhOQrzw+PO+n1vgk/rWvxBhRz6WwwJYtW0ZpeXkreZS5t68dZSBFow26HZ+cvP++Rx991H1eiPGs59JbQImxoCQCzG9HlFPzpC+J5alYh7yPHjx48NE8+fpeLdBMC7B91PcS3nE7zDKRosHb0tKGJzs7V47Yeur1+rCAEmNB6bht27bvQ9TBPHEGVLa7VoEeXfbw+3F0iZTMbd30Wi3QTAuwrGLf/Pz8XyJf7jbhtgofJnz7bOOX65HJydkneK+jvG0jrYNrJcZiElE2AX4MoGSO9LRBZYJtNegJ/0f27t3rVNM1OutZLdAoC9Dy8kYG3jxs5LcaH0YPOafg94d5tdd2p9ftbwElxgLSEDC/CQBnNqmkgCptLcZcrYqSh5wBpmR9kP5G110JcnVTB2qBWi3Q2dnxF/E7Jv7bgBRFx0fHxsbeirqZhWKJjx7tYwElxgLSimXW3sagm9RSYxaJUTpe5Wcfy9wk/UI3gFH2YwzvueC2ehcA16gxkOBJBg6FpXRXf+pOLVCkBY4d27lpfn7xMbDETjC15+csvNWib5Y83nWgqwxiG6pFtvoppwV0EfH606ULUnkAMCeO7swClTAb/s5wusrZ3vFi1VIrKInyXh7Jvo0VgCi/0AnXMu3iMOdBAWr4wuFiTb/NU1NT7zly5Mh3WL0nmFTt4FWdqAUKtcDi4hB5eOWg5G0w4SUb9wII2Xw4AIbIMIfIsu/Nc/vMe8GNwCuCnzV82E6TarJ/hb7RB65fv/6nEYd607YWUGKsP+mkf9F7FwAJFrJ7+tatW/+AVT6edlED9zJnqnLs2IbKzMxohTVZOwDjEs9WHnrooZ9k0MJPcl3T4gLI/iF2Bvkc/i/y00Mt0HQLQGqPzs3N7aslYPLvdUjsm/h9yfgXsuS3FPzl8CytJg/h/534DadbOZKisGkf/r8Xv3/OT7a60qPNLaDEWGcCDg0Nyei5qmYUF1AB2i/fv3//rKsKlGrtWmXEGx+GLkqtO/m4/CMBauRlwk1cP+6ZlzV5FKdKjAn20keNtwB4OEYe30le9g6M/Ps7AwMD/461gF8+c+aM4ARR6XiJB0CYm+hn/zTP/ybX3XF8iHvkpdZk8fM+nPwmv+viVo/2toD2MdaZfoBlOyI22WI8QPUc/gppukSPJWqPnwagfyIlZVuf+HWSfvir8Hs3bnNJNS5P79UCBVigi9riHvKg99QH8v49CqhfOHHixLXTp0/PCxb4pRYik3TF/TS7ekiLybkkfPA+lRRFHnq/eXh4+HCSbH3WfhZQYqwzzWhC2YKIYINhEeUDqt7e3lu+AM5SF1nXqPV9ETfjae6y9APcfxl/ic3CafL0uVqgCAswqX+Q/LfDV5bkZ35PQ6pXff3G3d+7d+8bIgscRQqWckthM+48co/uXezH+jYeJo41iDjWm9JbQImxziRaXFzsAxQBGLJIJx4MYFu8ePHibPx5vfd37tz5XfT5TpKcPP3Q6djIyMjBJL/6TC3QSAtAStvIf1VdEllhWvn52/hNLQxmybDfIWNhYGPP15D7onnOs1xSNG7BnfRR6rQnY5A2Pisx1pl4PT09nYgASxVpTolIywHVAu69mnsiwlNuCPMapds/4zdnO3HRDzed9FG+AX8SJz3UAk2zAPl2G3hwXnfUzs/k2XP0K0bye62KLyyv/l/6Kc+L/xz8JgXxOA+9a71JgvRZay2gxFi//VdpTvUlRQGdzH+KMmn9ugQSKH1/hYtwEI39ETFBZIBemoN0iThjKD03xQKQ4hB50mkbp3h+hhgnUTK7rdMxFs8999x1CrvP0xIkc4kdfb3qDP330yScOp/ZS5g6bqkFdFRqnebftWvX0vz8HPMRX6tkZZBOGBofgu6xsbFNnF/zGL6tWkUj0ufxmrPkK3SSIedX+D0S/4iIjxz9HsOJNGlNiFs91ALNsAA4EFLszQsrnp+ZsjQDgQ0xInsr+X7wlVdeWUSGMJr80nAjBdLgx3KI3fQNdtNHyQJQ3d3Hjx/fg8y76HMXN+HUDa5zD3TDW8dDOPw6P5lGpUebWkCJsc6Eo7Y4z4DOEAQ5pBOGBoC6abL58qFDh8JncdDLC1d5oRDrohZ5hHe4v79/G9NILlmi9FIt0FALQG69YCLze5SUn8HfAH4/Qy1PfhtYbMNZT1seUz0CfxBk0KeILs5yjEORhy4PHDt2bCNNu9PmuZ7bzwLalFpnmkFuAoBgUm+zSSxLdRv0xp2Lfvjr37FjhzYHGaPpuVkWyPwW1Zqf05RvlDwIdRRy7U8LV5+3hwUyM2N7RKG1WgIE6d+YcyGdNE0bBVI7PB/90EeqsTrs3DagXjfUAvQTLpJHEzv1yoaPuCFi+u1nk2WdCxw3UpvdKzHWmWDUGO+trCxKP0dNkmKgCmT4kFg80CLkEb4sK+c90Tqui96rBVwtQL69TyEzaHmx/RSRn5spjzjsBj+KHdvobXitxFhnojF6bYKlwKXW6H2UFfToNczaq+GiBd4RUw9qAU8LUMCcpHB53/ZWVnwYHZP0Y+DO0DPPPKPYMUZq07MSY50Jx8LdU4iQn9eRBKpW1xRNBNBj18BAp9PQeeNHz2qBeiwAHm7zCwuYZcaHxDNNP2qMPYyQ1abUejJDCfwqMdaZCKxPKmszhoB2EZcGqhI1x25bWFjUAQQuialuCrEAKzbdQVCwek0b4CN13jLfAvmmKjEWkitaJ0SJsX7br0xMTNyF1JxWsWkH0LPj46bu7k3aT1J/3lAJ7hYYB0MvtwM+qBVGYhVr6emgWVibUiMWar8bJcYC0owRdTcQk1trbBfQ02cqtUUdlVpA3lARzhZY7OracBnXkd1mYqTjLEwctghvHWwOoMTolVLlc6zEWECa0OGeS4wtAqlz7Gz9uFZidLacOizKAoODQ6cgwptGXhuSopBxBzXf3BV8TBz1XE4LKDEWkC4A4UWaV+6libJJx7gpM+jRrZ9ftL3IKK5ntUCDLDA7O3sS0ddEfJnx4aCf9jGKkdr4UGIsIPEgvluISVxbtN1IUcwB0fedOnUqc3muAsymItQCEQswwvsKBcwrtMCskgcj71xvyoA3ulakxUW/ra6JVkJ3mngFJAq7WdwGyLLocOQoA0gjCsVu0vTj49Sxe/du7WOM2UtvG2uBy5cvz/X19Z6mtpja+pKlQVp+bjbJMvhGpjrptzUrsUr+TmsFxSTQNKB8BUAHi4nDK0HHv4iWJiFzCEDte/M879wKebLTQJ5e+l4tULQFlpdXv4XMy+DkuI9s2fpNDhtfLcSbNKUqMQYp0p7/lBiLSTe2ner4PEAUgpR9FsWuITB4Lk1DFCSXs7bCqdJEwN4qeTMzM0FfT5VS+kAt0EALnD179unh4eGPkfeP0iQpGJK+7uAHroJ7wQRY6pAz7yqU4bpw37mwsBDscbr2HsgF7bFBX7k849beA7UD+RKT4D2ygzDWZHaB5wC/4kccCXg5DH6DZ/I86cDPd3heW1twkkB91nQL/H/pWQh+uxtnrQAAAABJRU5ErkJggg==`,e}var Oj=10,kj=32,Aj=36.5,jj=!1,Mj=B.memo(({children:e,onClick:t})=>{let[n,r]=(0,B.useState)(jj),[i,a]=(0,B.useState)(!1),[o,s]=(0,B.useState)(0),[c,l]=(0,B.useState)(0),u=(0,B.useRef)(null),d=(0,B.useRef)(null),f=(0,B.useRef)(null),p=(0,B.useCallback)(()=>{s(0),l(0),a(!1)},[]),m=(0,B.useCallback)(e=>{let{pageX:t,pageY:r}=e||{};n&&i&&(s(t),l(r),Tj(t,r))},[n,i]),h=(0,B.useCallback)(()=>{p(),d.current&&window.removeEventListener(`mousemove`,d.current),f.current&&window.removeEventListener(`mouseup`,f.current)},[p]),g=(0,B.useCallback)(()=>{n&&(a(!0),window.addEventListener(`mousemove`,m),window.addEventListener(`mouseup`,h))},[n,m,h]);(0,B.useEffect)(()=>{d.current=m,f.current=h},[m,h]),(0,B.useEffect)(()=>()=>{d.current&&window.removeEventListener(`mousemove`,d.current),f.current&&window.removeEventListener(`mouseup`,f.current)},[]);let _=(0,B.useCallback)(e=>{let i=e.detail===Oj,a=n&&e.detail>=1;if(i||a){n||(bj(),jj=!0,r(jj));let{pageX:t,pageY:i}=e||{};Ej(t,i)}else e.detail===1&&t&&t(e)},[n,t]),{top:v,left:y}=u.current&&u.current.getBoundingClientRect()||{};return(0,K.jsx)(I,{ref:u,sx:{position:`relative`},children:(0,K.jsx)(I,{onClick:_,sx:{position:`absolute`,top:c===0?0:`${c-Aj-v}px`,left:o===0?0:`${o-kj-y}px`},onMouseDown:g,children:e})})});Mj.propTypes={children:V.default.node.isRequired,onClick:V.default.func};var Nj=_i.default.bind({sidebar:`_sidebar_1ycvv_2`,"sidebar--absolute":`_sidebar--absolute_1ycvv_9`,sidebarAbsolute:`_sidebar--absolute_1ycvv_9`,sidebar__list:`_sidebar__list_1ycvv_17`,sidebarList:`_sidebar__list_1ycvv_17`,"sidebar__list-inner":`_sidebar__list-inner_1ycvv_53`,sidebarListInner:`_sidebar__list-inner_1ycvv_53`,"sidebar__list-inner-inner":`_sidebar__list-inner-inner_1ycvv_63`,sidebarListInnerInner:`_sidebar__list-inner-inner_1ycvv_63`,"sidebar__list-inner-inner--flushright":`_sidebar__list-inner-inner--flushright_1ycvv_71`,sidebarListInnerInnerFlushright:`_sidebar__list-inner-inner--flushright_1ycvv_71`,"sidebar__list-inner-inner--killoverflow":`_sidebar__list-inner-inner--killoverflow_1ycvv_74`,sidebarListInnerInnerKilloverflow:`_sidebar__list-inner-inner--killoverflow_1ycvv_74`,"sidebar__list-inner-inner--enableoverflow":`_sidebar__list-inner-inner--enableoverflow_1ycvv_78`,sidebarListInnerInnerEnableoverflow:`_sidebar__list-inner-inner--enableoverflow_1ycvv_78`,"sidebar__no-result":`_sidebar__no-result_1ycvv_82 label`,sidebarNoResult:`_sidebar__no-result_1ycvv_82 label`,sidebar__hr:`_sidebar__hr_1ycvv_94`,sidebarHr:`_sidebar__hr_1ycvv_94`}),Pj=({children:e,isAbsolute:t})=>(0,K.jsx)(`div`,{className:Nj(`sidebar`,{"sidebar--absolute":t}),children:e});Pj.List=({children:e,style:t})=>(0,K.jsx)(`div`,{className:Nj(`sidebar__list`),style:t,children:e}),Pj.ListInner=({children:e,id:t})=>(0,K.jsx)(`div`,{id:t,className:Nj(`sidebar__list-inner`),children:e}),Pj.ListInnerInner=({children:e,id:t,killOverflow:n,enableOverflow:r,flushRight:i})=>(0,K.jsx)(`div`,{id:t,className:Nj(`sidebar__list-inner-inner`,{"sidebar__list-inner-inner--killoverflow":n,"sidebar__list-inner-inner--enableoverflow":r,"sidebar__list-inner-inner--flushright":i}),children:e}),Pj.NoRes=({children:e})=>(0,K.jsx)(`div`,{className:Nj(`sidebar__no-result`),children:e}),Pj.Hr=()=>(0,K.jsx)(`hr`,{className:Nj(`sidebar__hr`)}),Pj.propTypes={children:V.default.node};var Fj=({isValid:e,label:t,activeTxt:n,onClickCancel:r,onClickMain:i})=>(0,K.jsxs)(I,{sx:{height:`48px`,display:`flex`,justifyContent:`space-between`,alignItems:`center`},children:[(0,K.jsx)(`div`,{children:(0,K.jsx)(Kg,{type:`nomargin`,children:t})}),(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`row`}
294,children:[(0,K.jsx)(q,{type:`button`,types:[`type-border-grey`,`size-large`],"data-testid":`property_edit_cancel`,onClick:r,children:U(`properties.cancel`)}),(0,K.jsx)(I,{sx:{width:`var(--space-tiny)`}}),(0,K.jsx)(q,{type:`button`,types:[`type-full-primary`,`size-large`],"data-testid":`property_edit_save`,fakeDisable:!e,onClick:i,children:n})]})]});Fj.propTypes={isValid:V.default.bool.isRequired,label:V.default.string.isRequired,activeTxt:V.default.string.isRequired,onClickCancel:V.default.func.isRequired,onClickMain:V.default.func.isRequired};var Ij=_i.default.bind({headbar__head:`_headbar__head_1uah4_3`,headbarHead:`_headbar__head_1uah4_3`,"headbar__head-middle":`_headbar__head-middle_1uah4_11 text-l5m`,headbarHeadMiddle:`_headbar__head-middle_1uah4_11 text-l5m`,"headbar__head-left":`_headbar__head-left_1uah4_31`,headbarHeadLeft:`_headbar__head-left_1uah4_31`,"headbar__head-controls":`_headbar__head-controls_1uah4_42`,headbarHeadControls:`_headbar__head-controls_1uah4_42`,"headbar__close-btn":`_headbar__close-btn_1uah4_54`,headbarCloseBtn:`_headbar__close-btn_1uah4_54`,"headbar__close-btn--back":`_headbar__close-btn--back_1uah4_82`,headbarCloseBtnBack:`_headbar__close-btn--back_1uah4_82`}),Lj=({middleText:e,onClose:t,rightPart:n=null,icon:r=null,iconPosition:i=`right`})=>{let a=r||Y.IcClose,o=i===`left`;return(0,K.jsxs)(`div`,{className:Ij(`headbar__head`),children:[o&&(0,K.jsx)(`div`,{className:Ij(`headbar__head-left`),children:(0,K.jsx)(`button`,{type:`button`,onClick:t,"data-testid":`headbar_go_back`,className:Ij(`headbar__close-btn`,`headbar__close-btn--back`),"aria-label":`Go back`,children:(0,K.jsx)(a,{})})}),(0,K.jsx)(`div`,{className:Ij(`headbar__head-middle`),children:(0,K.jsx)(`span`,{title:typeof e==`string`?e:``,children:e})}),(0,K.jsxs)(`div`,{className:Ij(`headbar__head-controls`),children:[n?n():null,!o&&(0,K.jsx)(`button`,{type:`button`,onClick:t,"data-testid":`headbar_go_back`,className:Ij(`headbar__close-btn`),"aria-label":`Close`,children:(0,K.jsx)(a,{})})]}),(0,K.jsx)(Dm,{type:[`bottom`,`light`]})]})};Lj.propTypes={middleText:V.default.oneOfType([V.default.string,V.default.shape({})]).isRequired,icon:V.default.func,onClose:V.default.func.isRequired,rightPart:V.default.func,iconPosition:V.default.oneOf([`left`,`right`])};var Rj=_i.default.bind({line:`_line_pap8g_2`,"master-detail":`_master-detail_pap8g_12`,masterDetail:`_master-detail_pap8g_12`,"master-detail--resizing":`_master-detail--resizing_pap8g_21`,masterDetailResizing:`_master-detail--resizing_pap8g_21`,"master-detail-master":`_master-detail-master_pap8g_30`,masterDetailMaster:`_master-detail-master_pap8g_30`,"resize-handle":`_resize-handle_pap8g_41`,resizeHandle:`_resize-handle_pap8g_41`,"resize-handle--active":`_resize-handle--active_pap8g_64`,resizeHandleActive:`_resize-handle--active_pap8g_64`,"master-detail-master--checklist":`_master-detail-master--checklist_pap8g_90`,masterDetailMasterChecklist:`_master-detail-master--checklist_pap8g_90`,"master-detail-detail":`_master-detail-detail_pap8g_111`,masterDetailDetail:`_master-detail-detail_pap8g_111`,"master-detail-cell":`_master-detail-cell_pap8g_117`,masterDetailCell:`_master-detail-cell_pap8g_117`,"master-detail-cell--btn":`_master-detail-cell--btn_pap8g_133`,masterDetailCellBtn:`_master-detail-cell__btn_pap8g_433`,"master-detail-cell--disabled":`_master-detail-cell--disabled_pap8g_140`,masterDetailCellDisabled:`_master-detail-cell--disabled_pap8g_140`,"master-detail-cell--inactive":`_master-detail-cell--inactive_pap8g_146`,masterDetailCellInactive:`_master-detail-cell--inactive_pap8g_146`,"master-detail-cell--property":`_master-detail-cell--property_pap8g_151`,masterDetailCellProperty:`_master-detail-cell--property_pap8g_151`,"master-detail-cell--reports":`_master-detail-cell--reports_pap8g_158`,masterDetailCellReports:`_master-detail-cell--reports_pap8g_158`,"master-detail-cell--settings":`_master-detail-cell--settings_pap8g_159`,masterDetailCellSettings:`_master-detail-cell--settings_pap8g_159`,"master-detail-cell--status":`_master-detail-cell--status_pap8g_167`,masterDetailCellStatus:`_master-detail-cell--status_pap8g_167`,"master-detail-cell--contact":`_master-detail-cell--contact_pap8g_180`,masterDetailCellContact:`_master-detail-cell--contact_pap8g_180`,"master-detail-cell__title":`_master-detail-cell__title_pap8g_186 text-type-regular`,masterDetailCellTitle:`_master-detail-cell__title_pap8g_186 text-type-regular`,"master-detail-cell__subTitle":`_master-detail-cell__subTitle_pap8g_192 text-type-small`,masterDetailCellSubTitle:`_master-detail-cell__subTitle_pap8g_192 text-type-small`,"master-detail-cell--active":`_master-detail-cell--active_pap8g_197`,masterDetailCellActive:`_master-detail-cell--active_pap8g_197`,"master-detail-cell__subTitle--primary":`_master-detail-cell__subTitle--primary_pap8g_205`,masterDetailCellSubTitlePrimary:`_master-detail-cell__subTitle--primary_pap8g_205`,"master-detail-cell--jobrequest":`_master-detail-cell--jobrequest_pap8g_209`,masterDetailCellJobrequest:`_master-detail-cell--jobrequest_pap8g_209`,"master-detail-cell--community":`_master-detail-cell--community_pap8g_222`,masterDetailCellCommunity:`_master-detail-cell--community_pap8g_222`,"master-detail-cell--noborderb":`_master-detail-cell--noborderb_pap8g_241`,masterDetailCellNoborderb:`_master-detail-cell--noborderb_pap8g_241`,"master-detail-cell--jobdetails":`_master-detail-cell--jobdetails_pap8g_245`,masterDetailCellJobdetails:`_master-detail-cell--jobdetails_pap8g_245`,"master-detail-cell__pic":`_master-detail-cell__pic_pap8g_271`,masterDetailCellPic:`_master-detail-cell__pic_pap8g_271`,"master-detail-cell__pic--right":`_master-detail-cell__pic--right_pap8g_277`,masterDetailCellPicRight:`_master-detail-cell__pic--right_pap8g_277`,"master-detail-cell--hover":`_master-detail-cell--hover_pap8g_284`,masterDetailCellHover:`_master-detail-cell--hover_pap8g_284`,"master-detail-cell--activeBlue":`_master-detail-cell--activeBlue_pap8g_313`,masterDetailCellActiveBlue:`_master-detail-cell--activeBlue_pap8g_313`,"master-detail-cell__pre-subtitle":`_master-detail-cell__pre-subtitle_pap8g_373 input-error`,masterDetailCellPreSubtitle:`_master-detail-cell__pre-subtitle_pap8g_373 input-error`,"master-detail-cell__flex":`_master-detail-cell__flex_pap8g_383`,masterDetailCellFlex:`_master-detail-cell__flex_pap8g_383`,"master-detail-cell__flex--spacebetween":`_master-detail-cell__flex--spacebetween_pap8g_388`,masterDetailCellFlexSpacebetween:`_master-detail-cell__flex--spacebetween_pap8g_388`,"cut-txt":`_cut-txt_pap8g_414 cut-txt`,cutTxt:`_cut-txt_pap8g_414 cut-txt`,"master-detail-cell__note":`_master-detail-cell__note_pap8g_418 text-l6`,masterDetailCellNote:`_master-detail-cell__note_pap8g_418 text-l6`,"master-detail-cell__inline-svg":`_master-detail-cell__inline-svg_pap8g_424`,masterDetailCellInlineSvg:`_master-detail-cell__inline-svg_pap8g_424`,"master-detail-cell__btn":`_master-detail-cell__btn_pap8g_433`,"master-detail-cell__properlypro":`_master-detail-cell__properlypro_pap8g_437`,masterDetailCellProperlypro:`_master-detail-cell__properlypro_pap8g_437`,"master-detail-cell__content-property":`_master-detail-cell__content-property_pap8g_443`,masterDetailCellContentProperty:`_master-detail-cell__content-property_pap8g_443`}),zj=({children:e,type:t,width:n})=>(0,K.jsx)(`div`,{className:Rj(`master-detail-master`,{"master-detail-master--checklist":t===`checklist`}),style:n?{width:n,minWidth:n,maxWidth:n}:void 0,children:e}),Bj=220,Vj=400,Hj=264,Uj=({type:e,noMaxWidth:t,resizable:n=!0,children:r})=>{let[i,a]=(0,B.useState)(Hj),[o,s]=(0,B.useState)(!1),c=(0,B.useRef)(null),l=(0,B.useRef)(null),u=(0,B.useCallback)(e=>{n&&(e.preventDefault(),s(!0))},[n]);(0,B.useEffect)(()=>
294{if(!n||!o)return;let e=e=>{l.current&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>{if(!c.current)return;let t=c.current.getBoundingClientRect(),n=e.clientX-t.left;a(Math.max(Bj,Math.min(Vj,n)))})},t=()=>{l.current&&cancelAnimationFrame(l.current),s(!1)};return document.addEventListener(`mousemove`,e),document.addEventListener(`mouseup`,t),document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`,()=>{l.current&&cancelAnimationFrame(l.current),document.removeEventListener(`mousemove`,e),document.removeEventListener(`mouseup`,t),document.body.style.cursor=``,document.body.style.userSelect=``}},[n,o]);let d=B.Children.map(r,e=>B.isValidElement(e)&&e.type===zj&&n?B.cloneElement(e,{width:i}):e);return(0,K.jsxs)(`div`,{ref:c,className:Rj(`master-detail`,e,{"master-detail--nomaxwidth":t,"master-detail--resizing":o&&n}),children:[d,n&&(0,K.jsx)(`div`,{className:Rj(`resize-handle`,{"resize-handle--active":o}),style:{left:i},onMouseDown:u})]})},Wj=({grey:e,children:t})=>(0,K.jsx)(`div`,{style:{background:e?`var(--color-bg-overlay)`:`transparent`},className:Rj(`master-detail-detail`),children:t});function Gj(e){switch(e){case`orange`:return`color--orange`;default:return`color--grey`}}var Kj=B.memo(e=>{let{type:t,picture:n,subTitleColor:r,title:i,pretitle:a,subTitle:o,proMarketProperty:s,alertIcon:c,picRight:l,svg:u,rightIcon:d,showProBadge:f,style:p,onClick:m,"data-testid":h,active:g,noHover:_,hasButton:v,activeBlue:y,noBorderBottom:b,disabled:x,isInactiveProperty:S,children:C,note:w,tooltipContent:T}=e,E=(e,t)=>{let n=(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{children:i}),a&&(0,K.jsx)(`div`,{children:a}),o&&(0,K.jsx)(`div`,{children:o})]});return(0,K.jsx)(`div`,{className:Rj({"master-detail-cell__content-property":e}),children:(0,K.jsx)(Ig,{title:n,placement:`top`,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(mj,{componentClass:`div`,modifier:[`txt--l6`,`color--black`,`helper--cuttxt`],children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[c&&(0,K.jsx)(I,{sx:{flexShrink:0,mr:`4px`},children:(0,K.jsx)(Y.IcError1,{height:`18px`,width:`18px`})}),(0,K.jsx)(I,{component:`span`,sx:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,minWidth:0},children:i}),s&&(0,K.jsx)(I,{sx:{flexShrink:0,ml:`4px`},children:(0,K.jsx)(ef,{small:!0})})]})}),(0,K.jsx)(mj,{componentClass:`div`,modifier:[`txt--l7`,`color--black`,`helper--cuttxt`],children:a}),(0,K.jsx)(mj,{componentClass:`div`,modifier:[`txt--l7`,Gj(t),`helper--cuttxt`],children:o})]})})})},D=(e,t,n)=>{if(e===`property`||e===`contact`)return E(t,n);let s=e===`jobdetails`&&`job-details-service-provider-name`;return(0,K.jsx)(`div`,{children:(0,K.jsxs)(Ig,{title:T,disableHoverListener:!T,children:[(0,K.jsxs)(`div`,{className:Rj(`master-detail-cell__title`),"data-testid":s,children:[i,e===`jobdetails`&&x&&(0,K.jsx)(Y.IcPinLock,{style:{color:`var(--color-grey)`,width:`15px`,height:`15px`}})]}),(0,K.jsx)(`div`,{className:Rj(`master-detail-cell__pre-subtitle`),children:a}),(0,K.jsx)(`div`,{className:Rj(`master-detail-cell__subTitle`,{"master-detail-cell__subTitle--primary":r}),children:o})]})})},ee=()=>(0,K.jsx)(`div`,{className:Rj(`master-detail-cell__pic`,{"master-detail-cell__pic--right":l}),children:u?(0,K.jsx)(`div`,{className:Rj(`master-detail-cell__inline-svg-composed`,`master-detail-cell__inline-svg`),children:u}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Qd,{picture:n.picture,text:n.text,type:`community`}),f&&(0,K.jsx)(`div`,{className:Rj(`master-detail-cell__properlypro`),children:(0,K.jsx)(ef,{small:!0})})]})}),te=()=>D(t,!!n,r),ne=()=>d?(0,K.jsx)(`div`,{className:Rj(`master-detail-cell__pic`,`master-detail-cell__pic--right`),children:(0,K.jsx)(`div`,{className:Rj(`master-detail-cell__inline-svg-composed`,`master-detail-cell__inline-svg`),children:d})}):null,re=n||d;return(0,K.jsxs)(`div`,{style:p,onClick:x?void 0:m,"data-testid":h,className:Rj(`master-detail-cell`,{"master-detail-cell--active":g,"master-detail-cell--hover":!x&&!_,"master-detail-cell--jobrequest":t===`jobrequest`,"master-detail-cell--contact":t===`contact`,"master-detail-cell--property":t===`property`,"master-detail-cell--reports":t===`reports`,"master-detail-cell--settings":t===`settings`,"master-detail-cell--status":t===`status`,"master-detail-cell--community":t===`community`,"master-detail-cell--btn":v,"master-detail-cell--jobdetails":t===`jobdetails`,"master-detail-cell--activeBlue":y,"master-detail-cell--noborderb":b,"master-detail-cell--disabled":x,"master-detail-cell--inactive":S}),children:[n&&(0,K.jsxs)(`div`,{className:Rj(`master-detail-cell__flex`,{"master-detail-cell__flex--spacebetween":l}),children:[l?te():ee(),l?ee():te(),ne()]}),!n&&d&&(0,K.jsxs)(`div`,{className:Rj(`master-detail-cell__flex`,`master-detail-cell__flex--spacebetween`),children:[te(),ne()]}),!re&&te(),v&&(0,K.jsx)(`div`,{className:Rj(`master-detail-cell__btn`),children:C}),w&&(0,K.jsx)(`div`,{className:Rj(`master-detail-cell__note`),children:w})]})}),qj=_i.default.bind({"page-padding":`_page-padding_13ewl_2`,pagePadding:`_page-padding_13ewl_2`,"page-padding--checklist":`_page-padding--checklist_13ewl_6`,pagePaddingChecklist:`_page-padding--checklist_13ewl_6`,"page-padding--property":`_page-padding--property_13ewl_9`,pagePaddingProperty:`_page-padding--property_13ewl_9`,"page-padding--permission":`_page-padding--permission_13ewl_12`,pagePaddingPermission:`_page-padding--permission_13ewl_12`,"page-padding--subscription":`_page-padding--subscription_13ewl_16`,pagePaddingSubscription:`_page-padding--subscription_13ewl_16`,"absolute-scroll":`_absolute-scroll_13ewl_20`,absoluteScroll:`_absolute-scroll_13ewl_20`,"page-flex-outer":`_page-flex-outer_13ewl_38`,pageFlexOuter:`_page-flex-outer_13ewl_38`,"page-flex-inner":`_page-flex-inner_13ewl_44`,pageFlexInner:`_page-flex-inner_13ewl_44`,"page-flex-inner--maxwidth":`_page-flex-inner--maxwidth_13ewl_50`,pageFlexInnerMaxwidth:`_page-flex-inner--maxwidth_13ewl_50`,"page-top-bar":`_page-top-bar_13ewl_54`,pageTopBar:`_page-top-bar_13ewl_54`}
294),Jj=({type:e,variation:t,id:n,children:r})=>(0,K.jsx)(`div`,{className:qj(`page-padding`,e,{"page-padding--checklist":t===`checklist`,"page-padding--property":t===`property`,"page-padding--permission":t===`permission`,"page-padding--subscription":t===`subscription`}),id:n,"data-testid":`page-padding`,children:r}),Yj=({grey:e,children:t})=>(0,K.jsx)(`div`,{style:{background:e?`var(--color-bg-overlay)`:`transparent`},className:qj(`page-flex-outer`),children:t}),Xj=({children:e})=>(0,K.jsx)(`div`,{className:qj(`page-top-bar`),children:e}),Zj=({children:e,maxWidth:t})=>(0,K.jsx)(`div`,{className:qj(`page-flex-inner`,{"page-flex-inner--maxwidth":t}),children:e}),Qj={topbar:`_topbar_1syei_2`,"topbar__logo-center":`_topbar__logo-center_1syei_18`,topbarLogoCenter:`_topbar__logo-center_1syei_18`,topbar__logo:`_topbar__logo_1syei_18`,topbarLogo:`_topbar__logo_1syei_18`,topbar__link:`_topbar__link_1syei_33`,topbarLink:`_topbar__link_1syei_33`,topbar__text:`_topbar__text_1syei_65`,topbarText:`_topbar__text_1syei_65`,topbar__backMobileOnly:`_topbar__backMobileOnly_1syei_72`,topbarBackMobileOnly:`_topbar__backMobileOnly_1syei_72`,desktopOnly:`_desktopOnly_1syei_78`,mobileOnly:`_mobileOnly_1syei_84`,topbar__nologo:`_topbar__nologo_1syei_89`,topbarNologo:`_topbar__nologo_1syei_89`,topbar__showOnDesktop:`_topbar__showOnDesktop_1syei_94`,topbarShowOnDesktop:`_topbar__showOnDesktop_1syei_94`,toast:`_toast_1syei_99`,"toast-is-shown":`_toast-is-shown_1syei_110`,toastIsShown:`_toast-is-shown_1syei_110`,success:`_success_1syei_116`},$j=`/static/logo-N2mbuoXh.webp`,eM=_i.default.bind(Qj);function tM(e){let{logo:t,centerLogo:n}=e,r=typeof t==`string`?(0,K.jsx)(Y.LogoFull,{byWidth:!0,src:t}):(0,K.jsxs)(Y,{children:[(0,K.jsx)(`div`,{className:eM(`mobileOnly`),children:(0,K.jsx)(`img`,{alt:`Logo`,height:`30px`,style:{margin:`10px`},src:$j})}),!e.mobileOnlyLogo&&(0,K.jsx)(`div`,{className:eM(`desktopOnly`),children:(0,K.jsx)(Y.LogoFull,{width:`123px`,height:`44px`,byWidth:!0})})]});return(0,K.jsxs)(`header`,{className:eM(`topbar`,{topbar__nologo:e.noLogo,topbar__showOnDesktop:e.showOnDesktop}),children:[e.renderBack&&(0,K.jsx)(`div`,{className:eM({topbar__backMobileOnly:e.renderBackMobileOnly}),children:(0,K.jsx)(Xg,{type:`grey`,children:(0,K.jsx)(`span`,{onClick:e.onClickBack,className:eM(`topbar__link`),children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(Y.IcLeftChevron,{width:`18px`,height:`10px`}),U(`job_request.back`,{})]})})})}),!e.noLogo&&(0,K.jsx)(`div`,{className:eM(`topbar__logo`,{"topbar__logo-center":n}),children:(0,K.jsx)(Mj,{children:r})}),(0,K.jsx)(`div`,{"data-testid":`toast-${e.showToast?`is-shown`:`is-not-shown`}`,className:eM(`toast`,`success`,{"toast-is-shown":e.showToast}),children:(0,K.jsx)(Xg,{children:e.message})}),(0,K.jsxs)(`div`,{children:[e.showSignUp&&(0,K.jsx)(`div`,{className:eM(`topbar__text`),children:(0,K.jsxs)(Xg,{type:`grey`,children:[U(`signup.no_account`),` `,(0,K.jsx)(`span`,{onClick:e.onClickCreate,className:eM(`topbar__link`),children:U(`signup.form.cta`,{})})]})}),e.showLogin&&(0,K.jsxs)(Xg,{type:`grey`,children:[U(`signup.have_account`),` `,(0,K.jsx)(`span`,{onClick:e.onClickLogin,className:eM(`topbar__link`),children:U(`signup.login`,{})})]}),!e.showSignUp&&!e.showLogin&&!n&&(0,K.jsx)(I,{sx:{width:138}})]})]})}tM.propTypes={message:V.default.string,logo:V.default.oneOfType([V.default.func,V.default.node,V.default.string,V.default.bool]),onClickCreate:V.default.func,onClickLogin:V.default.func,onClickBack:V.default.func,showToast:V.default.bool,showSignUp:V.default.bool,showLogin:V.default.bool,centerLogo:V.default.bool,showOnDesktop:V.default.bool,renderBack:V.default.bool,renderBackMobileOnly:V.default.bool,noLogo:V.default.bool,mobileOnlyLogo:V.default.bool};var nM={app:`_app_3w4r6_15`},rM=`${[`Plus Jakarta Sans`,`Helvetica`,`Arial`,`sans-serif`].join(`,`)} !important`,iM=it(),Q=e=>`var(${e})`,aM=it({cssVariables:!1,palette:{mode:`light`,primary:{main:`#36ACB2`,dark:`#2d9499`,light:`#D0F4F6`,contrastText:`#FFFFFF`},secondary:{main:`#FF9800`,dark:`#F57C00`,light:`#FFB74D`},background:{default:`#F5F5F5`,paper:`#FFFFFF`},text:{primary:`#29333D`,secondary:`#6B757F`,disabled:`#9AA2B1`},divider:`#E5E7EB`,error:{main:`#F85149`,light:`#FBE9E7`},warning:{main:`#D29922`,light:`#FFF8E1`},success:{main:`#3FB950`,light:`#E8F5E9`},info:{main:`#58A6FF`,light:`#E3F2FD`},grey:{50:`#F8F8F8`,100:`#F0F0F0`,200:`#EEEEEE`,300:`#CCCCCC`,400:`#999999`,500:`#888888`,600:`#777777`,700:`#6B757F`,800:`#535562`,900:`#484848`},action:{hover:`rgba(0, 0, 0, 0.04)`,selected:`rgba(0, 0, 0, 0.08)`,disabled:`rgba(0, 0, 0, 0.26)`,disabledBackgroun
294d:`rgba(0, 0, 0, 0.12)`}},typography:{fontFamily:rM,h1:{fontWeight:700},h2:{fontWeight:700},h3:{fontWeight:600},h4:{fontWeight:600},h5:{fontWeight:600},h6:{fontWeight:600}},shape:{borderRadius:8},shadows:[`none`,`0 1px 2px rgba(0, 0, 0, 0.05)`,`0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06)`,`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)`,`0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)`,`0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)`,`0 25px 50px -12px rgba(0, 0, 0, 0.25)`,...Array(18).fill(`0 25px 50px -12px rgba(0, 0, 0, 0.25)`)],components:{MuiCssBaseline:{styleOverrides:{body:{backgroundColor:Q(`--color-bg`),color:Q(`--color-text`),transition:`background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1)`}}},MuiButtonBase:{defaultProps:{disableRipple:!0},styleOverrides:{root:{fontFamily:rM,transition:`all 0.2s cubic-bezier(0.4, 0, 0.2, 1)`}}},MuiButton:{styleOverrides:{root:{fontFamily:rM,textTransform:`none`,fontWeight:600,borderRadius:`8px`,padding:`8px 16px`,transition:`all 0.2s cubic-bezier(0.4, 0, 0.2, 1)`,"&.MuiButton-containedPrimary":{backgroundColor:Q(`--color-primary`),"&:hover":{backgroundColor:Q(`--color-primary-hover`),boxShadow:`0 4px 12px rgba(54, 172, 178, 0.3)`}},"&.MuiButton-containedError":{backgroundColor:Q(`--color-orange`),color:Q(`--color-white`),"&:hover":{backgroundColor:Q(`--color-orange-hover`),boxShadow:`0 4px 12px rgba(255, 87, 34, 0.3)`}},"&.MuiButton-textPrimary":{color:Q(`--color-grey`),"&:hover":{backgroundColor:Q(`--color-black-alpha-05`),color:Q(`--color-grey-hover`)}},"&.MuiButton-outlinedPrimary":{borderColor:Q(`--color-primary`),color:Q(`--color-primary`),"&:hover":{borderColor:Q(`--color-primary-hover`),backgroundColor:Q(`--color-primary-light`)}}}}},MuiIconButton:{styleOverrides:{root:{transition:`all 0.2s cubic-bezier(0.4, 0, 0.2, 1)`,"&:hover":{backgroundColor:Q(`--color-black-alpha-05`)}}}},MuiInput:{defaultProps:{disableUnderline:!0},styleOverrides:{root:{fontFamily:rM,padding:0,"label + &":{marginTop:iM.spacing(3)}},input:{borderRadius:`8px`,backgroundColor:Q(`--color-bg-paper`),border:`1px solid`,borderColor:Q(`--color-border`),color:Q(`--color-text`),fontSize:16,padding:`10px 12px`,width:`calc(100% - 24px)`,transition:`all 0.2s cubic-bezier(0.4, 0, 0.2, 1)`,fontFamily:rM,"&:focus":{borderColor:Q(`--color-primary`),boxShadow:`0 0 0 3px rgba(54, 172, 178, 0.15)`},"&::placeholder":{color:Q(`--color-placeholder`),opacity:1}}}},MuiOutlinedInput:{styleOverrides:{root:{backgroundColor:Q(`--color-bg-paper`),transition:`all 0.2s cubic-bezier(0.4, 0, 0.2, 1)`,"& .MuiOutlinedInput-notchedOutline":{borderColor:Q(`--color-border`),transition:`border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1)`},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:Q(`--color-border-search`)},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:Q(`--color-primary`),borderWidth:`2px`}},input:{color:Q(`--color-text`),"&::placeholder":{color:Q(`--color-placeholder`),opacity:1}}}},MuiInputLabel:{styleOverrides:{root:{color:Q(`--color-placeholder`),"&.Mui-focused":{color:Q(`--color-primary`)}}}},MuiPaper:{styleOverrides:{root:{backgroundColor:Q(`--color-bg-paper`),backgroundImage:`none`,transition:`background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1)`},elevation1:{boxShadow:`0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08)`},elevation2:{boxShadow:`0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08)`},elevation3:{boxShadow:`0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08)`}}},MuiCard:{styleOverrides:{root:{borderRadius:`12px`,backgroundColor:Q(`--color-bg-paper`),border:`1px solid`,borderColor:Q(`--color-border`),transition:`all 0.3s cubic-bezier(0.4, 0, 0.2, 1)`,"&:hover":{borderColor:Q(`--color-border-search`)}}}},MuiCardContent:{styleOverrides:{root:{"&:last-child":{paddingBottom:16}}}},MuiTooltip:{styleOverrides:{tooltip:{fontFamily:rM,backgroundColor:Q(`--color-gray-800`),color:Q(`--color-gray-100`),fontSize:`0.75rem`,fontWeight:500,borderRadius:`6px`,padding:`6px 12px`,boxShadow:`0 4px 12px rgba(0, 0, 0, 0.15)`},arrow:{color:Q(`--color-gray-800`)}}},MuiListItem:{styleOverrides:{root:{fontFamily:rM,paddingTop:`11px`,paddingBottom:`11px`,transition:`background-color 0.15s ease`}}},MuiListItemButton:{styleOverrides:{root:{fontFamily:rM,paddingTop:`11px`,paddingBottom:`11px`,transition:`all 0.15s ease`,"&:hover":{backgroundColor:Q(`--color-black-alpha-05`)},"&.Mui-selected":{backgroundColor:Q(`--color-primary-light`),"&:hover":{backgroundColor:Q(`--color-primary-selection`)}}}}},MuiListItemIcon:{styleOverrides:{root:{minWidth:`40px`,color:Q(`--color-grey`)}}},MuiListItemText:{styleOverrides:{multiline:{marginTop:0,marginBottom:0},root:{margin:0},primary:{color:Q(`--color-text`)},secondary:{color:Q(`--color-item-description`)}}},MuiMenuItem:{styleOverrides:{root:{fontFamily:rM,color:Q(`--color-text`),borderRadius:`6px`,margin:`2px 8px`,padding:`8px 12px`,transition:`background-color 0.15s ease`,"&:hover":{backgroundColor:Q(`--color-black-alpha-05`)},"&.Mui-selected":{backgroundColor:Q(`--color-primary-light`),"&:hover":{backgroundColor:Q(`--color-primary-selection`)}}}}},MuiMenu:{styleOverrides:{paper:{borderRadius:`12px`,border:`1px solid`,borderColor:Q(`--color-border`),boxShadow:`0 10px 40px rgba(0, 0, 0, 0.15)`,marginTop:`4px`},list:{padding:`6px 0`}}},MuiPopover:{styleOverrides:{paper:{borderRadius:`12px`,border:`1px solid`,borderColor:Q(`--color-border`),boxShadow:`0 10px 40px rgba(0, 0, 0, 0.15)`}}},MuiModal:{styleOverrides:{root:{"& .MuiPaper-root":{transition:`none`}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:`16px`,backgroundColor:Q(`--color-bg-paper`),border:`1px solid`,borderColor:Q(`--color-border`),boxShadow:`0 25px 50px rgba(0, 0, 0, 0.25)`,transition:`none`}}},MuiDialogTitle:{styleOverrides:{root:{color:Q(`--color-header`),fontWeight:600}}},MuiDialogContent:{styleOverrides:{root:{color:Q(`--color-text`)}}},MuiTypography:{styleOverrides:{root:{fontFamily:rM,color:Q(`--color-text`)},body1:{fontSize:`.875rem`},h1:{color:Q(`--color-header`)},h2:{color:Q(`--color-header`)},h3:{color:Q(`--color-header`)},h4:{color:Q(`--color-header`)},h5:{color:Q(`--color-header`)},h6:{color:Q(`--color-header`)}}},MuiChip:{styleOverrides:{root:{fontFamily:rM,borderRadius:`8px`,fontWeight:500,transition:`all 0.2s ease`,"&.Mu
294iChip-colorPrimary":{backgroundColor:Q(`--color-primary-light`),color:Q(`--color-primary`)},"&.MuiChip-colorSuccess":{backgroundColor:Q(`--color-green-light`),color:Q(`--color-green`)},"&.MuiChip-colorError":{backgroundColor:Q(`--color-red-light`),color:Q(`--color-red`)},"&.MuiChip-colorWarning":{backgroundColor:Q(`--color-light-orange`),color:Q(`--color-orange`)},"&.MuiChip-colorInfo":{backgroundColor:Q(`--color-light-blue`),color:Q(`--color-blue`)}},outlined:{borderColor:Q(`--color-border`),"&:hover":{backgroundColor:Q(`--color-black-alpha-05`)}}}},MuiDivider:{styleOverrides:{root:{borderColor:Q(`--color-divider`)}}},MuiSwitch:{styleOverrides:{root:{padding:8},track:{borderRadius:12,backgroundColor:Q(`--color-grey-light`),opacity:1},thumb:{boxShadow:`0 2px 4px rgba(0, 0, 0, 0.2)`,backgroundColor:`#fff`},switchBase:{"&.Mui-checked":{color:`#fff`,"& + .MuiSwitch-track":{backgroundColor:Q(`--color-primary`),opacity:1}}}}},MuiCheckbox:{styleOverrides:{root:{color:Q(`--color-checkbox-border`),"&.Mui-checked":{color:Q(`--color-primary`)}}}},MuiRadio:{styleOverrides:{root:{color:Q(`--color-radio-border-idle`),"&.Mui-checked":{color:Q(`--color-primary`)}}}},MuiTabs:{styleOverrides:{root:{minHeight:44},indicator:{backgroundColor:Q(`--color-primary`),height:3,borderRadius:`3px 3px 0 0`}}},MuiTab:{styleOverrides:{root:{fontFamily:rM,textTransform:`none`,fontWeight:600,minHeight:44,color:Q(`--color-grey`),transition:`color 0.2s ease`,"&.Mui-selected":{color:Q(`--color-primary`)},"&:hover":{color:Q(`--color-text`)}}}},MuiAlert:{styleOverrides:{root:{borderRadius:`10px`,fontWeight:500,"&.MuiAlert-standard.MuiAlert-colorSuccess":{backgroundColor:Q(`--color-green-light`),color:Q(`--color-green`),"& .MuiAlert-icon":{color:Q(`--color-green`)}},"&.MuiAlert-standard.MuiAlert-colorError":{backgroundColor:Q(`--color-red-light`),color:Q(`--color-red`),"& .MuiAlert-icon":{color:Q(`--color-red`)}},"&.MuiAlert-standard.MuiAlert-colorWarning":{backgroundColor:Q(`--color-light-orange`),color:Q(`--color-orange`),"& .MuiAlert-icon":{color:Q(`--color-orange`)}},"&.MuiAlert-standard.MuiAlert-colorInfo":{backgroundColor:Q(`--color-light-blue`),color:Q(`--color-blue`),"& .MuiAlert-icon":{color:Q(`--color-blue`)}}}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Q(`--color-snackbar-bg`),color:Q(`--color-snackbar-text`),borderRadius:`10px`,fontWeight:500}}},MuiBadge:{styleOverrides:{badge:{"&.MuiBadge-colorPrimary":{backgroundColor:Q(`--color-primary`)},"&.MuiBadge-colorError":{backgroundColor:Q(`--color-notification`)}}}},MuiAvatar:{styleOverrides:{root:{backgroundColor:Q(`--color-profile-background`),color:Q(`--color-text`)}}},MuiSkeleton:{styleOverrides:{root:{backgroundColor:Q(`--color-skeleton`)}}},MuiBackdrop:{styleOverrides:{root:{backgroundColor:Q(`--color-backdrop`)}}},MuiTableCell:{styleOverrides:{root:{borderColor:Q(`--color-divider`),color:Q(`--color-text`)},head:{fontWeight:600,color:Q(`--color-header`),backgroundColor:Q(`--color-table-grey`)}}},MuiTableRow:{styleOverrides:{root:{"&:hover":{backgroundColor:Q(`--color-table-row-background-gray`)},"&.Mui-selected":{backgroundColor:Q(`--color-primary-light`),"&:hover":{backgroundColor:Q(`--color-primary-selection`)}}}}},MuiLinearProgress:{styleOverrides:{root:{borderRadius:4,backgroundColor:Q(`--color-gray-200`)},bar:{"&.MuiLinearProgress-colorPrimary":{backgroundColor:Q(`--color-primary`)}}}},MuiCircularProgress:{styleOverrides:{root:{"&.MuiCircularProgress-colorPrimary":{color:Q(`--color-primary`)}}}},MuiSlider:{styleOverrides:{root:{color:Q(`--color-primary`)},track:{backgroundColor:Q(`--color-primary`)},rail:{backgroundColor:Q(`--color-grey-light`)},thumb:{backgroundColor:Q(`--color-primary`),"&:hover, &.Mui-focusVisible":{boxShadow:`0 0 0 8px rgba(54, 172, 178, 0.16)`}}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:`12px`,border:`1px solid`,borderColor:Q(`--color-border`),boxShadow:`0 10px 40px rgba(0, 0, 0, 0.15)`},option:{borderRadius:`6px`,margin:`2px 8px`,color:Q(`--color-text`),"&:hover":{backgroundColor:Q(`--color-black-alpha-05`)},'&[aria-selected="true"]':{backgroundColor:Q(`--color-primary-light`)}},listbox:{color:Q(`--color-text`)},noOptions:{color:Q(`--color-text-secondary`)},clearIndicator:{color:Q(`--color-text-secondary`),"&:hover":{color:Q(`--color-text`)}},popupIndicator:{color:Q(`--color-text-secondary`),"&:hover":{color:Q(`--color-text`)}}}},MuiDrawer:{styleOverrides:{paper:{backgroundColor:Q(`--color-bg-paper`),borderColor:Q(`--color-border`)}}},MuiAppBar:{styleOverrides:{root:{backgroundColor:Q(`--color-bg-paper`),color:Q(`--color-text`),borderBottom:`1px solid`,borderColor:Q(`--color-border`),boxShadow:`none`}}},MuiToolbar:{styleOverrides:{root:{backgroundColor:`transparent`}}},MuiBreadcrumbs:{styleOverrides:{separator:{color:Q(`--color-grey`)}}},MuiLink:{styleOverrides:{root:{color:Q(`--color-blue`),textDecoration:`none`,"&:hover":{textDecoration:`underline`}}}}}}),oM=_i.default.bind(nM),sM=({children:e})=>(0,K.jsx)(`div`,{style:{outline:`none`}
294,tabIndex:-1,className:oM(`app`),children:(0,K.jsx)(Ree,{injectFirst:!0,children:(0,K.jsx)(ri,{theme:aM,children:(0,K.jsxs)(tn,{backend:Ue,children:[(0,K.jsx)(Nn,{}),e]})})})});sM.propTypes={children:V.default.node};var cM=({propertyId:e,collaboratorData:t,preText:n=null,maxVisibleNames:r=1,componentClass:i=`strong`})=>{let a=e=>(0,H.default)(e,e=>e.fullName?e.fullName:`${e.email} (${U(`permissions.pending`)})`),o=(e=>{if(r){let t=e.slice(0,r),n=e.slice(r,e.length);return{array:t,plus:n.length>0&&`+${n.length}`}}return{array:e}})((()=>{let n=[];return t[e]&&(n=[...n,...a(t[e])]),t.all&&(n=[...n,...a(t.all)]),n})());return(0,K.jsxs)(`span`,{children:[n&&(0,K.jsx)(`span`,{children:n}),(0,H.default)(o.array,(e,t)=>(0,K.jsxs)(i,{children:[e,t!==o.array.length-1&&`, `]},e)),o.plus&&(0,K.jsxs)(`span`,{children:[` `,o.plus]})]})};cM.propTypes={propertyId:V.default.string.isRequired,collaboratorData:V.default.shape({all:V.default.shape({})}).isRequired,preText:V.default.string,maxVisibleNames:V.default.number,componentClass:V.default.oneOfType([V.default.string,V.default.func,V.default.object])};var lM=_i.default.bind({"more-less__inner":`_more-less__inner_dea70_2`,moreLessInner:`_more-less__inner_dea70_2`,"more-less__inner--overflowvisible":`_more-less__inner--overflowvisible_dea70_7`,moreLessInnerOverflowvisible:`_more-less__inner--overflowvisible_dea70_7`,"more-less--plain":`_more-less--plain_dea70_11`,moreLessPlain:`_more-less--plain_dea70_11`,"more-less__txt":`_more-less__txt_dea70_15 text-type-small`,moreLessTxt:`_more-less__txt_dea70_15 text-type-small`,"more-less--open":`_more-less--open_dea70_22`,moreLessOpen:`_more-less--open_dea70_22`,"more-less__grad":`_more-less__grad_dea70_28`,moreLessGrad:`_more-less__grad_dea70_28`,"more-less__grad--grey":`_more-less__grad--grey_dea70_41`,moreLessGradGrey:`_more-less__grad--grey_dea70_41`}),uM=(0,B.memo)(({children:e,open:t,onClick:n,peekHeight:r,color:i,plain:a,maxHeight:o})=>{let[s,c]=(0,B.useState)(!1),l=(0,B.useRef)(null),[u,d]=(0,B.useState)(0);(0,B.useLayoutEffect)(()=>{l.current&&d(l.current.scrollHeight)},[e]),(0,B.useEffect)(()=>{if(t){let e=setTimeout(()=>{c(!0)},yd.slow*1e3);return()=>clearTimeout(e)}else c(!1)},[t]);let f=U(t?`contacts.see_less`:`contacts.see_more`),p=r?parseInt(r,10):48,m=o?parseInt(o,10):null;return(0,K.jsxs)(`div`,{className:lM(`more-less`,{"more-less--open":t,"more-less--plain":a,"more-less--hasmaxheight":o}),children:[(0,K.jsxs)(gn.div,{className:lM(`more-less__inner`,{"more-less__inner--overflowvisible":s}),initial:!1,animate:{height:a&&!t?0:t?m?Math.min(u,m):u:p},transition:{duration:yd.slow,ease:xd.easeOut},style:{overflow:s?`visible`:`hidden`},children:[(0,K.jsx)(`div`,{ref:l,children:e}),(0,K.jsx)(Qr,{children:!t&&(0,K.jsx)(gn.div,{className:lM(`more-less__grad`,{"more-less__grad--grey":i===`grey`}),initial:{opacity:0}
294,animate:{opacity:1},exit:{opacity:0},transition:{duration:yd.fast}})})]}),!a&&(0,K.jsx)(gn.div,{className:lM(`more-less__txt`),onClick:()=>n(!t),whileHover:{scale:1.02},whileTap:{scale:.98},children:f})]})});uM.propTypes={children:V.default.node,peekHeight:V.default.string,color:V.default.string,open:V.default.bool,plain:V.default.bool,maxHeight:V.default.string,onClick:V.default.func.isRequired};var dM=(0,yc.default)(Lc),fM=({responseTime:e})=>{let t=e&&e>0?dM(e):U(`job_request.na_na`);return(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`left`},children:[(0,K.jsx)(at,{sx:{fontSize:18,color:`var(--color-text-secondary)`}}),(0,K.jsx)(wm,{type:`horizontal`,size:`10px`}),(0,K.jsxs)(Yg,{children:[U(`job_request.typical_reponse`),`:`]}),(0,K.jsx)(wm,{type:`horizontal`,size:`10px`}),(0,K.jsx)(Yg,{style:{color:Ic(e)},children:t})]})};fM.propTypes={responseTime:V.default.oneOfType([V.default.string,V.default.number])};var pM=[{value:`light`,labelKey:`account.themeLight`,defaultLabel:`Light`,Icon:ye},{value:`dark`,labelKey:`account.themeDark`,defaultLabel:`Dark`,Icon:mee},{value:`system`,labelKey:`account.themeSystem`,defaultLabel:`Match browser`,Icon:jt}],mM=({isHoverMode:e=!1,onMouseEnter:t,onMouseLeave:n,onSelect:r})=>{let{themePreference:i,setThemePreference:a}=oT(),o=(0,B.useCallback)(e=>{a(e),r&&r(e)},[a,r]);return(0,K.jsxs)(I,{onMouseEnter:t,onMouseLeave:n,sx:{width:e?200:276,bgcolor:`var(--color-white)`,borderRadius:1,boxShadow:e?`0 4px 12px 0 rgba(0, 0, 0, 0.16)`:`none`},children:[e&&(0,K.jsx)(I,{sx:{px:2,py:1,borderBottom:`1px solid rgba(160,170,180,.2)`},children:(0,K.jsx)(x,{variant:`subtitle2`,sx:{fontWeight:500,fontSize:`12px`,color:`primary.main`,textTransform:`uppercase`,letterSpacing:`0.5px`},children:U(`account.theme`,`Theme`)})}),(0,K.jsx)(Ot,{sx:{py:.5},children:pM.map(({value:e,labelKey:t,defaultLabel:n,Icon:r})=>{let a=i===e;return(0,K.jsxs)($r,{onClick:()=>o(e),selected:a,"data-testid":`theme-option-${e}`,sx:{py:1,px:2,borderBottom:`1px solid rgba(160,170,180,.2)`,"&:last-child":{borderBottom:`none`},"&.Mui-selected":{bgcolor:`rgba(54, 172, 178, 0.08)`,"&:hover":{bgcolor:`rgba(54, 172, 178, 0.12)`}},"&:hover":{bgcolor:`rgba(0, 0, 0, 0.04)`}},children:[(0,K.jsx)(Yr,{sx:{minWidth:36,color:`primary.main`},children:(0,K.jsx)(r,{fontSize:`small`})}),(0,K.jsx)(Tt,{primary:U(t,n),slotProps:{primary:{sx:{fontSize:`12px`,lineHeight:`14px`,fontWeight:a?500:400,color:`primary.main`,padding:`4px 0`}}}}),a&&(0,K.jsx)(Te,{fontSize:`small`,sx:{color:`primary.main`,ml:1}})]},e)})})]})};mM.propTypes={isHoverMode:V.default.bool,onMouseEnter:V.default.func,onMouseLeave:V.default.func};var{RECAPTCHA_VERSION_V2:hM,RECAPTCHA_VERSION_V3:gM}=ro,_M=[],vM=(e=_M,t)=>e.indexOf(t)>-1,yM=()=>typeof window<`u`&&window.grecaptcha!==void 0&&window.grecaptcha.execute!==void 0,bM=1e4,xM=50,SM=()=>({reCaptchaToken:``,reCaptchaVersion:gM}),CM=e=>{let t=Error(e);return t.properlyErrorMsg=Sa,t},wM=(e=_M)=>{let t=B.useRef(null),[n,r]=B.useState(SM),i=B.useRef(n),a=B.useRef(),o=B.useRef(null),s=B.useRef(null),c=B.useRef(0),l=B.useRef(null),u=B.useRef(!1),d=vM(e,Sa),f=B.useRef(d),p=B.useRef(e),m=B.useRef(!1);B.useEffect(()=>(u.current=!0,()=>{u.current=!1,s.current&&(s.current.reject(Error(`reCAPTCHA component unmounted`)),s.current=null)}),[]);let h=B.useCallback(e=>{i.current=e,u.current&&r(e)},[]),g=B.useCallback((e,t)=>{t?(R.default.info(e,t),Lr(e,{extra:t})):(R.default.info(e),Lr(e))},[]),_=B.useCallback(()=>{let e=a.current,{reCaptchaVersion:t,reCaptchaToken:n}=i.current;l.current=null,e!==void 0&&window.grecaptcha?.reset&&window.grecaptcha.reset(e),t===hM&&n&&h({...i.current,reCaptchaToken:``})},[h]),v=B.useCallback(e=>{_(),s.current&&(s.current.reject(CM(e)),s.current=null)},[_]),y=B.useCallback(e=>{g(`Obtained v2 recaptcha token`,{reCaptchaVersion:hM,hasToken:!!e});let t={reCaptchaToken:e,reCaptchaVersion:hM};l.current=c.current,h(t),s.current&&(s.current.resolve(t),s.current=null)},[g,h]),b=B.useCallback(()=>{let{GOOGLE_RECAPTCHA_V2_SITE_KEY:e}=Wi(),n=a.current;return n===void 0?(n===void 0&&t.current&&e&&(a.current=window.grecaptcha.render(t.current,{sitekey:e,callback:y,"expired-callback":()=>v(`v2 reCAPTCHA expired`),"error-callback":()=>{g(`Error with v2 recaptcha`),v(`v2 reCAPTCHA failed`)}})),a.current):n},[g,y,v]),x=B.useCallback(()=>new Promise((e,t)=>
294{if(yM()){e();return}let n=Date.now(),r=setInterval(()=>{if(!u.current){clearInterval(r),t(Error(`reCAPTCHA component unmounted before Google was ready`));return}if(yM()){clearInterval(r),e();return}Date.now()-n>=bM&&(clearInterval(r),t(Error(`Timed out waiting for Google reCAPTCHA`)))},xM)}),[]),S=B.useCallback(()=>{if(o.current)return o.current;let{GOOGLE_RECAPTCHA_V3_SITE_KEY:e,GOOGLE_RECAPTCHA_V3_URL:t}=Wi(),n=`${t}?${[`render=${e}`].join(`&`)}`;return o.current=new Promise((e,t)=>{if(yM()){x().then(e).catch(t);return}if(typeof document>`u`){t(Error(`Google reCAPTCHA cannot load outside the browser`));return}if(!document.querySelector(`script[src="${n}"]`)){let e=document.createElement(`script`);e.src=n,e.async=!0,e.defer=!0,e.onerror=()=>t(Error(`Failed to load Google reCAPTCHA`)),document.body.appendChild(e)}x().then(e).catch(t)}).catch(e=>{throw o.current=null,e}),o.current},[x]),C=B.useCallback(async()=>{let{reCaptchaToken:e,reCaptchaVersion:t}=i.current,n=m.current,r=t===hM&&e&&l.current===c.current;if(n&&r)return{reCaptchaToken:e,reCaptchaVersion:t};if(await S(),m.current){b();let e=i.current;return e.reCaptchaVersion===hM&&e.reCaptchaToken&&l.current===c.current?{reCaptchaToken:e.reCaptchaToken,reCaptchaVersion:e.reCaptchaVersion}:(s.current&&s.current.reject(Error(`Superseded by newer reCAPTCHA submit`)),new Promise((e,t)=>{s.current={resolve:e,reject:t}}))}let{GOOGLE_RECAPTCHA_V3_SITE_KEY:a}=Wi(),o={reCaptchaToken:await window.grecaptcha.execute(a),reCaptchaVersion:gM};return h(o),o},[S,b,h]);return B.useEffect(()=>{let e=f.current;d&&!e&&(m.current=!0,c.current+=1,S().then(()=>{_(),b()}).catch(e=>{R.default.error(`Unable to render v2 reCAPTCHA`,e)})),f.current=d},[_,S,d,b]),B.useEffect(()=>{(e||[]).length>0&&e!==p.current&&!d&&_(),p.current=e},[e,_,d]),{reference:t,reCaptchaToken:n.reCaptchaToken,reCaptchaVersion:n.reCaptchaVersion,executeReCaptcha:C}},TM=({errors:e=_M,children:t})=>t(wM(e));TM.propTypes={errors:V.default.arrayOf(V.default.string),children:V.default.func.isRequired};var EM=_i.default.bind({"info-message":`_info-message_nh7tv_2`,infoMessage:`_info-message_nh7tv_2`,"info-message--vcenter":`_info-message--vcenter_nh7tv_10`,infoMessageVcenter:`_info-message--vcenter_nh7tv_10`,"info-message__row":`_info-message__row_nh7tv_13`,infoMessageRow:`_info-message__row_nh7tv_13`,"info-message__row--merge":`_info-message__row--merge_nh7tv_18`,infoMessageRowMerge:`_info-message__row--merge_nh7tv_18`,"info-message__row--mergeinner":`_info-message__row--mergeinner_nh7tv_23`,infoMessageRowMergeinner:`_info-message__row--mergeinner_nh7tv_23`,"info-message__row--noborderradius":`_info-message__row--noborderradius_nh7tv_28`,infoMessageRowNoborderradius:`_info-message__row--noborderradius_nh7tv_28`,"info-message__cancel":`_info-message__cancel_nh7tv_33 text-type-small`,infoMessageCancel:`_info-message__cancel_nh7tv_33 text-type-small`,"info-message__icon":`_info-message__icon_nh7tv_44`,infoMessageIcon:`_info-message__icon_nh7tv_44`,"info-message__icon--base":`_info-message__icon--base_nh7tv_49`,infoMessageIconBase:`_info-message__icon--base_nh7tv_49`,"info-message__icon--close":`_info-message__icon--close_nh7tv_52`,infoMessageIconClose:`_info-message__icon--close_nh7tv_52`,"info-message__text":`_info-message__text_nh7tv_59 text-type-small`,infoMessageText:`_info-message__text_nh7tv_59 text-type-small`,"info-message__text--small":`_info-message__text--small_nh7tv_65 text-l7`,infoMessageTextSmall:`_info-message__text--small_nh7tv_65 text-l7`,"info-message--red":`_info-message--red_nh7tv_69`,infoMessageRed:`_info-message--red_nh7tv_69`,"info-message--green":`_info-message--green_nh7tv_73`,infoMessageGreen:`_info-message--green_nh7tv_73`,"info-message--white":`_info-message--white_nh7tv_78`,infoMessageWhite:`_info-message--white_nh7tv_78`,"info-message--bg-jobrequest":`_info-message--bg-jobrequest_nh7tv_86`,infoMessageBgJobrequest:`_info-message--bg-jobrequest_nh7tv_86`,"info-message--small":`_info-message--small_nh7tv_92`,infoMessageSmall:`_info-message--small_nh7tv_92`,"info-message--small-fullwidth":`_info-message--small-fullwidth_nh7tv_96`,infoMessageSmallFullwidth:`_info-message--small-fullwidth_nh7tv_96`}),DM=({children:e=void 0,text:t,color:n,onClose:r=()=>{},icon:i=void 0,isMergeInfo:a=!1,isSmall:o=!1,isSmallFullWidth:s=!1,isPrompt:c=!1,isVcenter:l=!1,isHcenter:u=!1,spaceFunc:d=null,...f})=>{let p=a||c,m;return i===`light`&&(m=Y.IcLightbulb),i===`warning`&&(m=Y.IcWarning),(0,K.jsxs)(`div`,{...f,className:EM(`info-message`,{"info-message--red":n===`red`,"info-message--green":n===`green`,"info-message--white":n===`white`,"info-message--bg-jobrequest":n===`bg-jobrequest`,"info-message--small":o,"info-message--small-fullwidth":s,"info-message--vcenter":l,"info-message--hcenter":u}),children:[(0,K.jsxs)(`div`,{className:EM(`info-message__row`),children:[m&&(0,K.jsx)(`div`,{className:EM(`info-message__icon`,`info-message__icon--base`),children:(0,K.jsx)(m,{})}),(0,K.jsx)(`div`,{"data-testid":`info-message__text`,className:EM(`info-message__text`,{"info-message__text--small":o||s}),children:t}),!p&&(0,K.jsx)(`div`,{onClick:r,className:EM(`info-message__icon`,`info-message__icon--close`),children:(0,K.jsx)(Y.IcSmCloseOrange,{})})]}),e&&(0,K.jsxs)(`div`,{className:EM(`info-message__row`,`info-message__row--merge`),
294children:[d&&d(),(0,K.jsx)(`div`,{className:EM(`info-message__row`,`info-message__row--mergeinner`),children:e})]})]})};DM.propTypes={children:V.default.node,text:V.default.string.isRequired,onClose:V.default.func,isMergeInfo:V.default.bool,isSmall:V.default.bool,isSmallFullWidth:V.default.bool,isPrompt:V.default.bool,isVcenter:V.default.bool,isHcenter:V.default.bool,icon:V.default.oneOf([`light`,`warning`,void 0]),color:V.default.oneOf([`red`,`green`,`white`,`bg-jobrequest`]).isRequired,spaceFunc:V.default.func};var OM={2:{txt:U(`jobdetails.servicep_not_at_location`),icon:Y.IcNotAtLocation},1:{txt:U(`jobdetails.servicep_at_location`),icon:Y.IcAtLocation},0:{txt:U(`jobdetails.servicep_undef_location`),icon:Y.IcUndefAtLocation}},kM=({status:e})=>{let t=(0,B.useMemo)(()=>OM[e]||null,[e]);if(!t)return null;let{txt:n,icon:r}=t;return(0,K.jsx)(`span`,{children:(0,K.jsx)(Ig,{title:n,children:(0,K.jsx)(r,{})})})};kM.propTypes={status:V.default.number.isRequired};var AM=_i.default.bind({"no-properties":`_no-properties_78tzy_2`,noProperties:`_no-properties_78tzy_2`,"no-properties--maxwidth":`_no-properties--maxwidth_78tzy_9`,noPropertiesMaxwidth:`_no-properties--maxwidth_78tzy_9`,"no-properties--center":`_no-properties--center_78tzy_13`,noPropertiesCenter:`_no-properties--center_78tzy_13`,"no-properties__inner":`_no-properties__inner_78tzy_17`,noPropertiesInner:`_no-properties__inner_78tzy_17`,"no-properties__txt":`_no-properties__txt_78tzy_23`,noPropertiesTxt:`_no-properties__txt_78tzy_23`,"no-properties__txt-job":`_no-properties__txt-job_78tzy_28 text-type-regular`,noPropertiesTxtJob:`_no-properties__txt-job_78tzy_28 text-type-regular`,"no-properties__txt--grey":`_no-properties__txt--grey_78tzy_35 text-type-large`,noPropertiesTxtGrey:`_no-properties__txt--grey_78tzy_35 text-type-large`}),jM=[`error`,`jobrequesterror`,`community_service_provider_sample_property_error`,`job_already_scheduled`,`error_handled_from_api`],MM=({onClick:e=()=>{},showAction:t=!0,type:n=`notselected`,...r})=>n===`notselected`?(0,K.jsx)(`div`,{className:AM(`no-properties`),children:(0,K.jsxs)(`div`,{className:AM(`no-properties__inner`),children:[(0,K.jsx)(Y.IcBigPropertiesGrey,{width:`4em`,height:`4em`,byWidth:!0}),(0,K.jsx)(bm,{}),(0,K.jsx)(`div`,{className:AM(`no-properties__txt`,`no-properties__txt--grey`),children:(0,K.jsx)(`div`,{children:U(`properties.no_property_selected`)})})]})}):n===`noresults`?(0,K.jsx)(`div`,{className:AM(`no-properties`),children:(0,K.jsxs)(`div`,{className:AM(`no-properties__inner`),children:[(0,K.jsx)(Y.IcBigPropertiesGrey,{width:`4em`,height:`4em`,byWidth:!0}),(0,K.jsx)(bm,{}),(0,K.jsx)(`div`,{className:AM(`no-properties__txt`,`no-properties__txt--grey`),children:(0,K.jsx)(`div`,{children:U(`properties.no_property_found`)})})]})}):n===`noproperties`?(0,K.jsx)(`div`,{className:AM(`no-properties`),children:(0,K.jsxs)(`div`,{className:AM(`no-properties__inner`),children:[(0,K.jsx)(Sm,{}),(0,K.jsx)(Y.IcBigProperties,{width:`4em`,height:`4em`,byWidth:!0}),(0,K.jsx)(bm,{}),(0,K.jsx)(`div`,{className:AM(`no-properties__txt`),children:(0,K.jsx)(Jg,{children:U(`properties.no_properties`)})}),t&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Sm,{}),(0,K.jsx)(`div`,{"data-testid":`button_add_new_property`,children:(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`],onClick:e,children:U(`properties.new_properties`)})})]})]})}):n===`jobrequest`?(0,K.jsx)(`div`,{className:AM(`no-properties`),children:(0,K.jsxs)(`div`,{className:AM(`no-properties__inner`),children:[(0,K.jsx)(Y.IcBigSent,{width:`4em`,height:`4em`}),(0,K.jsx)(ym,{}),(0,K.jsx)(`div`,{children:(0,K.jsx)(Jg,{type:`medium`,children:r.line1})}),r.line2&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(gm,{}),(0,K.jsx)(`div`,{className:AM(`no-properties__txt-job`),children:r.line2})]}),(0,K.jsx)(bm,{}),(0,K.jsx)(`div`,{children:(0,K.jsx)(q,{onClick:e,types:[`size-large`,`type-border-primary`],"data-testid":`open-calendar-from-job-request`,children:r.closeText||U(`job_request.send_request_action`)})})]})}):jM.includes(n)?(0,K.jsx)(`div`,{className:AM(`no-properties`),children:(0,K.jsx)(`div`,{className:AM(`no-properties__inner`),children:(0,K.jsx)(Yf.ErrorMsg,{type:`medium`,children:r.message||(e=>{switch(e){case`jobrequesterror`:return U(`job_request.error_action_notsuccessful`);case`community_service_provider_sample_property_error`:return U(`job_request.community_service_provider_sample_property_error`);case`job_already_scheduled`:return U(`job_request.job_already_scheduled`);default:return R.default.warn(`Unknown error type: ${e}`),U(`job_request.error_action_notsuccessful`)}})(n)})})}):n===`sms`?(0,K.jsx)(`div`,{className:AM(`no-properties`),children:(0,K.jsxs)(`div`,{className:AM(`no-properties__inner`),children:[(0,K.jsx)(Y.IcBigSent,{width:`4em`,height:`4em`}),(0,K.jsx)(ym,{}),(0,K.jsx)(`div`,{children:(0,K.jsx)(Jg,{type:`medium`,children:U(`fueslider.smssend`)})})]})}):n===`invitecleaner`?(0,K.jsx)(`div`,{className:AM(`no-properties`),children:(0,K.jsxs)(`div`,{className:AM(`no-properties__inner`),children:[(0,K.jsx)(Sm,{}),(0,K.jsx)(Y.IcEmptyAdd,{}),(0,K.jsx)(bm,{}),(0,K.jsx)(`div`,{className:AM(`no-properties__txt`),children:(0,K.jsx)(Jg,{children:U(`contacts.invite_trusted_cleaner`)})}),(0,K.jsx)(Sm,{}),(0,G.default)(r,[`meta`,`hasBtn`])&&(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`],onClick:e,children:U(`contacts.invite_cleaner`)})]})}):n===`inviteteammember`?(0,K.jsx)(`div`,{className:AM(`no-properties`,`no-properties--maxwidth`,`no-properties--center`),children:(0,K.jsxs)(`div`,{className:AM(`no-properties__inner`),children:[(0,K.jsx)(Y.IcCompanyCreate,{height:`111px`,width:`111px`,byWidth:!0}),(0,K.jsx)(vm,{}),(0,K.jsx)(mj,{modifier:[`txt--l5m`,`color--black`],children:U(`permissions.inv
294ite_coll`)}),(0,K.jsx)(mj,{modifier:[`txt--l5`,`color--black`],children:U(`permissions.invite_coll_txt`)}),(0,K.jsx)(ym,{}),(0,K.jsx)(q,{types:[`type-full-primary`,`size-medium`],onClick:e,children:U(`permissions.invite`)})]})}):n===`inviteemployee`?(0,K.jsx)(`div`,{className:AM(`no-properties`,`no-properties--maxwidth`,`no-properties--center`),children:(0,K.jsxs)(`div`,{className:AM(`no-properties__inner`),children:[(0,K.jsx)(Y.IcCompanyCreate,{height:`90px`,width:`90px`,byWidth:!0}),(0,K.jsx)(wm,{type:`vertical`,size:`18px`}),(0,K.jsx)(mj,{modifier:[`txt--l4m`,`color--black`],children:U(`permissions.welcome`)}),(0,K.jsx)(wm,{type:`vertical`,size:`7px`}),(0,K.jsx)(mj,{modifier:[`txt--l4`,`color--black`],children:U(`permissions.welcome_l2`)}),(0,K.jsx)(wm,{type:`vertical`,size:`18px`}),(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`],onClick:e,children:U(`permissions.invite_team_member`)})]})}):n===`invitepartner`?(0,K.jsx)(`div`,{className:AM(`no-properties`,`no-properties--maxwidth`,`no-properties--center`),children:(0,K.jsxs)(`div`,{className:AM(`no-properties__inner`),children:[(0,K.jsx)(Y.IcCompanyCreate,{height:`90px`,width:`90px`,byWidth:!0}),(0,K.jsx)(wm,{type:`vertical`,size:`18px`}),(0,K.jsx)(mj,{modifier:[`txt--l4m`,`color--black`],children:U(`permissions.invite_partner_l1`)}),(0,K.jsx)(wm,{type:`vertical`,size:`7px`}),(0,K.jsx)(mj,{modifier:[`txt--l4`,`color--black`],children:U(`permissions.invite_partner_l2`)}),(0,K.jsx)(wm,{type:`vertical`,size:`18px`}),(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`],onClick:e,children:U(`permissions.start`)})]})}):n===`noeventsin7days`?(0,K.jsx)(`div`,{className:AM(`no-properties`),children:(0,K.jsxs)(`div`,{className:AM(`no-properties__inner`),children:[(0,K.jsx)(Y.Bigtick,{}),(0,K.jsx)(bm,{style:{width:`100%`}}),(0,K.jsx)(`div`,{className:AM(`no-properties__txt`),children:(0,K.jsx)(Jg,{children:U(`todos.nothingin7days`)})})]})}):n===`noeventsatall`?(0,K.jsx)(`div`,{className:AM(`no-properties`),children:(0,K.jsxs)(`div`,{className:AM(`no-properties__inner`),children:[(0,K.jsx)(Y.Bigtick,{}),(0,K.jsx)(bm,{style:{width:`100%`}}),(0,K.jsx)(`div`,{className:AM(`no-properties__txt`),children:(0,K.jsx)(Jg,{children:U(`todos.noeventsatall`)})})]})}):n===`payAndRequestRISuccess`?(0,K.jsx)(`div`,{className:AM(`no-properties`),children:(0,K.jsxs)(`div`,{className:AM(`no-properties__inner`),children:[(0,K.jsx)(Jg,{type:`medium`,children:U(`retail_remote_inspection.scheduled`)}),(0,K.jsx)(gm,{}),(0,K.jsx)(`div`,{className:AM(`no-properties__txt-job`),children:U(`retail_remote_inspection.scheduled_description`)})]})}):null;MM.propTypes={onClick:V.default.func,showAction:V.default.bool,type:V.default.oneOf([`noproperties`,`noeventsatall`,`noresults`,`notselected`,`invitecleaner`,`jobrequest`,`jobrequesterror`,`sms`,`inviteteammember`,`invitepartner`,`community_service_provider_sample_property_error`,`job_already_scheduled`,`error_handled_from_api`,`payAndRequestRISuccess`]),meta:V.default.shape({}),line1:V.default.string,line2:V.default.string,closeText:V.default.string,message:V.default.string};var NM=`/static/app_badge_android-DVYSxIWr.png`,PM=`/static/app_badge_ios-zyP1mT_r.png`,FM=e(Lt());function IM(e){try{return e()}catch{return!1}}function LM(e){try{let t=IM(()=>JSON.parse(e.message));if(t)switch(t.code){case va:case ya:return va;case Ca:return Ca;case xa:case ba:return ba;case wa:return wa;case Oa:return Oa;case Da:return Da;case Ta:return Ta;case Sa:return Sa;default:}let n=JSON.stringify(e);return/(.*)CanNotConnectPartnerUser(.*)/.test(n)?za:/(.*)DisabledByOwner(.*)/.test(n)?ka:/(.*)Failure verifying reCaptcha token(.*)/.test(n)?Sa:/(.*)Invalid session token(.*)/.test(n)?Aa:_a}catch(e){return R.default.error(`mapErrorToProperlyError`,e),_a}}var RM=class e extends FM.default.Error{constructor(e,t,n,r){super(e,t,n),this.properlyErrorMsg=n,this.latestVersion=r}static errorFromParse(t){return new e(t.code,t.message,LM(t),t.latestVersion)}},zM;function BM(e){zM=e}function VM(e){return e.length>1&&R.default.error(`too many args, just 1 allowed`),e[0]}function HM(e,t){return new Promise((t,n)=>{let r=zM&&zM.logout||Fu.default,i=(...e)=>{R.default.error(`requestHandler handleReject`,...e);let i=VM(e);if(i&&i.code&&i.code===107){t();return}let a=RM.errorFromParse(i);a.properlyErrorMsg===`InvalidSession`&&r(),n(a)},a=(...e)=>{t(VM(e))},o=e(a,i);if(o||R.default.warn(`There was no returned promise from a requestHandler function`,e),o&&o.then&&o.catch)return o.then(a).catch(i);Promise.resolve()},t)}var UM=class{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,ee,te,ne,re,O,ie,ae,oe,se,ce,le,ue){this.objectId=e,this.title=t,this.address=n,this.location=r,this.pictureUrl=i,this.timeZone=a,this.countryCode=o,this.numOfBedrooms=s,this.numOfBeds=c,this.numOfBathrooms=l,this.type=u,this.deleted=d,this.detailsAccess=f,this.detailsGarbage=p,this.detailsParking=m,this.detailsWifiName=h,this.detailsWifiDescription=g,this.detailsWifiPassword=_,this.detailsInformation=v,this.userId=y,this.pictureUrls=b,this.role=x,this.noMerge=S,this.mergedTo=C,this.partner=w,this.partnerPropertyId=T,this.defaultJob=E,this.hasUserTitle=D,this.sample=ee,this.ownerRole=te,this.propertyRole=ne,this.userData=re,this.toBeDeleted=O,this.otherAttributes=ie,this.bedConfiguration=ae,this.tags=oe,this.createdAt=ce,this.proMarketProperty=!!se,this.failedAt=le,this.failedAtRecurly=ue}setData(e){this.getOwnProps(e,this)}getData(){return this.getOwnProps(this)}notDefined(e){return!e||e===``}validate(){let e={};return this.notDefined(this.title)&&(e.title=!0),this.notDefined(this.address.street)&&(e[`address.street`]=!0),this.notDefined(this.address.zip)&&(e[`address.zip`]=!0),this.notDefined(this.address.country)&&(e[`address.country`]=!0),e}get ownerName(){return(0,G.default)(this,[`userData`,`fullNameCompany`],`Unknown`)}getOwnProps(e,t){let n=t||{};return(0,zs.default)(e,(e,t)=>{n[t]=e}),n}getId(){return this.objectId}getTitle(){return this.title}getCity(){return this.address&&this.address.city?this.address.city:``}getTimeZone(){return this.timeZone||`America/Los_Angeles`}getLong(){return this.location?.longitude}getLat(){return this.location?.latitude}get propertyAddress(){return(0,G.default)(this.address,[`AddressArray`],[]).join(`, `)}getSearchString(){return this.title?this.title:this.address&&this.address.AddressArray&&(0,Lb.default)(this.address.AddressArray)?this.address.AddressArray[0]:``}getAddress(){return this.address}},WM=class{constructor(e,t,n,r,i,a,o){this.objectId=e,this.title=t,this.filter=n,this.createdAt=r,this.updatedAt=i,this.user=a,this.deleted=o}setData(e){this.getOwnProps(e,this)}getData(){return this.getOwnProps(this)}getOwnProps(e,t){let n=t||{};return(0,zs.default)(e,(e,t)=>{n[t]=e}),n}},GM=class{constructor(e,t,n,r,i){this.objectId=e,this.steps=t||[],this.role=n,this.user=r,this.currency=i}getOwnProps(e,t){let n=t||{};return(0,zs.default)(e,(e,t)=>
294{n[t]=e,t===`steps`&&!e&&(n[t]=[])}),n}setData(e){this.getOwnProps(e,this)}getData(){return this.getOwnProps(this)}},KM=class{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f){this.objectId=e,this.firstName=t,this.lastName=n,this.shortName=r,this.email=i,this.phone=a,this.pictureUrl=o,this.bio=s,this.signedUp=c,this.signedUpDate=l,this.phoneCountryCode=u,this.phoneRegionalNumber=d,this.standAloneUser=f}setData(e){this.getOwnProps(e,this)}getData(){return this.getOwnProps(this)}getOwnProps(e,t){let n=t||{};return(0,zs.default)(e,(e,t)=>{n[t]=e}),n}getShortName(){return this.shortName}getFullName(){return`${this.firstName} ${this.lastName}`}getId(){return this.objectId}getPicture(){return this.pictureUrl}getInitials(){let e=``;return this.firstName&&(e+=this.firstName.charAt(0)),this.lastName&&(e+=this.lastName.charAt(0)),e}},qM=class{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){this.objectId=e,this.defaultProperty=t,this.title=n,this.totalStepCount=r,this.totalTaskCount=i,this.jobInstructionId=a,this.pictureUrl=o,this.totalVerificationCount=s,this.user=c,this.jobDescription=l,this.generalTasks=u,this.deleted=d,this.weight=f,this.role=p,this.createdAt=m,this.defaultSettings=h}getOwnProps(e,t){let n=t||{};return(0,zs.default)(e,(e,t)=>{n[t]=e}),n}setData(e){this.getOwnProps(e,this)}getData(){return this.getOwnProps(this)}getId(){return this.objectId}getTitle(){return this.title}},JM=class{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){this.objectId=e,this.subscriptionProviderSubscriptionId=t,this.subscriptionProviderToken=n,this.currentPlanTitle=r,this.priceType=i,this.price=a,this.allowedJobsMonth=o,this.jobsUsedMonth=s,this.nextRenewal=c,this.lastRenewal=l,this.currentPlanId=u,this.features=d,this.removePartnersTrialAccessBy=f,this.trialEnd=p,this.status=m,this.endOfGracePeriod=h}},YM=class{constructor(e,t,n,r,i){this.objectId=e,this.name=t,this.description=n,this.pictureUrl=r,this.adminEmails=i}get email(){return(0,G.default)((0,xo.default)(this.adminEmails,e=>!!e.active)[0],[`email`])}setData(e){this.getOwnProps(e,this)}getData(){return this.getOwnProps(this)}getOwnProps(e,t){let n=t||{};return(0,zs.default)(e,(e,t)=>{n[t]=e}),n}toJSON(){let e={};return e.email=this.email,(0,zs.default)(this,(t,n)=>{e[n]=t}),e}},XM=(0,yc.default)((e,t)=>(0,z.default)(e).tz(t)),ZM=(0,yc.default)(e=>(0,z.default)(e).toDate()),QM=(0,yc.default)((e,t)=>(0,z.default)(e).format(t));function $M(e){return e===`jobstatus.delayed`?`delayed`:e===`jobstatus.seen`||e===`jobstatus.pending`?`pending`:e===`jobstatus.accepted`?`accepted`:e===`jobstatus.cancelled`||e===`jobstatus.declined`?`cancelled`:e===`jobstatus.started`?`progress`:e===`jobstatus.completed`?`finished`:`accepted`}var eN=class{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b){this.objectId=e,this.type=t,this.jobRequestId=n,this.jobSnapshotId=v,this.bookingId=r,this.triggerId=i,this.propertyId=a,this.timeZone=o,this.propertyTitle=s,this.propertyAddress=g,this.startTime=c,this.endTime=l,this.status=u,this.eventStatus=d,this.needsCTA=f,this.deleted=!!p,this.payload=m,this.days=h,this.dateFormat=`YYYYMMDD`,this.createdAt=_,this.draftJobId=y,this.autoSchedulerId=b}get jobRequest(){return this.jobRequestResolved}get booking(){return this.bookingResolved}get reminder(){return this.triggerResolved}get jobRequestResolved(){return(0,G.default)(this,[`payload`,`jobRequest`])}get jobRequestIsDelayed(){return this.status===W.StateAccepted&&(0,z.default)().toDate()-this.startMomentDate>0}get startMoment(){return XM(this.startTime,this.timeZone)}get startMomentDate(){return ZM(this.startMoment)}get bookingResolved(){return(0,G.default)(this,[`payload`,`booking`])}get triggerResolved(){return(0,G.default)(this,[`payload`,`trigger`])}get bookingArrival(){return(0,G.default)(this.bookingResolved,[`arrivalDate`,`iso`])||this.bookingResolved.arrivalDate}get bookingDeparture(){return(0,G.default)(this.bookingResolved,[`departureDate`,`iso`])||this.bookingResolved.departureDate}get bookingArrivalMoment(){return XM(this.bookingArrival,this.timeZone)}get bookingDepartureMoment(){return XM(this.bookingDeparture,this.timeZone)}get bookingArrivalFormat(){return this.bookingResolved&&this.bookingResolved.arrivalLocalDay&&`20${this.bookingResolved.arrivalLocalDay}`||QM(this.bookingArrivalMoment,this.dateFormat)}get bookingDepartureFormat(){return this.bookingResolved&&this.bookingResolved.departureLocalDay&&`20${this.bookingResolved.departureLocalDay}`||QM(this.bookingDepartureMoment,this.dateFormat)}isBookingStartDay(e){return this.bookingArrivalFormat===e}isBookingEndDay(e){return this.bookingDepartureFormat===e}get bookingInfo(){return this.bookingResolved?{partner:this.bookingResolved.partner===`iCal`?this.bookingResolved.partner:Sc(this.bookingResolved.partner),guest:this.bookingResolved.guestName,arrivalDate:this.bookingArrivalMoment,departureDate:this.bookingDepartureMoment,numberOfGuests:this.bookingResolved.numberOfGuests}:{}}get jobRequestStatusString(){if(this.jobRequestIsDelayed)return`jobstatus.delayed`;if(this.status===W.StateCreated&&this.jobRequestResolved.seen)return`jobstatus.seen`;switch(this.status){case W.StateCreated:return`jobstatus.pending`;case W.StateAccepted:return`jobstatus.accepted`;case W.StateCancelled:case W.StateCleanerCancelled:return`jobstatus.cancelled`;case W.StateDeclined:return`jobstatus.declined`;case W.StateStarted:case W.StatePaused:return`jobstatus.started`;case W.StateFinished:return`jobstatus.completed`;default:return null}}matchSignature(e,t,n){return this.type===e&&this.status===t&&this.eventStatus===n}get bookingInfoFormatted(){let e=this.bookingInfo;if((0,Ux.default)(e).length===0)return``;let t=e.numberOfGuests>0?` ⢠${e.numberOfGuests} ${U(e.numberOfGuests===1?`calendartile.guest_singular`:`calendartile.guest_plural`)}`:``;return`${e.partner}: ${e.arrivalDate.format(`L`)} â ${e.departureDate.format(`L`)}${t} ⢠${e.guest}`}get jobRequestColor(){return $M(this.jobRequestStatusString)}},$=(e,t)=>{let n=e&&e.get?e.get(t):e[t];return n&&n.__type===`Date`?n.iso:n},tN=e=>e&&(e.id||e.objectId);function nN(e){return ote({objectId:e.id||e.objectId,firstName:$(e,`firstName`),lastName:$(e,`lastName`),email:$(e,`email`),phone:$(e,`phone`),phoneCountryCode:$(e,`phoneCountryCode`),phoneRegionalNumber:$(e,`phoneRegionalNumber`),isHost:$(e,`isHost`),isCleaner:$(e,`isCleaner`),pictureUrl:$(e,`pictureUrl`),bio:$(e,`bio`),phoneVerified:$(e,`phoneVerified`),notificationSettings:$(e,`notificationSettings`),role:$(e,`role`),connectedAccounts:$(e,`connectedAccounts`),hostFRESeen:$(e,`hostFRESeen`),webFRESeen:$(e,`webFRESeen`),subscription:$(e,`subscription`)?rN($(e,`subscription`)):null,language:$
294(e,`language`),permissions:$(e,`permissions`),teams:$(e,`teams`),rights:$(e,`rights`),isStandaloneUser:$(e,`isStandaloneUser`),actAsRole:$(e,`actAsRole`),personalRole:$(e,`personalRole`),hardRefresh:$(e,`hardRefresh`),companyName:$(e,`companyName`),signUpAt:$(e,`createdAt`)})}function rN(e){return new JM(e.id||e.objectId,$(e,`subscriptionProviderSubscriptionId`),$(e,`subscriptionProviderToken`),$(e,`currentPlanTitle`),$(e,`priceType`),$(e,`price`),$(e,`allowedJobsMonth`),$(e,`jobsUsedMonth`),$(e,`nextRenewal`),$(e,`lastRenewal`),$(e,`currentPlanId`),$(e,`features`),$(e,`removePartnersTrialAccessBy`),$(e,`trialEnd`),$(e,`status`),$(e,`endOfGracePeriod`))}function iN(e){return new UM(e.id||e.objectId,$(e,`title`),$(e,`address`),$(e,`location`),$(e,`pictureUrl`),$(e,`timeZone`),$(e,`countryCode`),$(e,`numOfBedrooms`),$(e,`numOfBeds`),$(e,`numOfBathrooms`),$(e,`type`),$(e,`deleted`),$(e,`detailsAccess`),$(e,`detailsGarbage`),$(e,`detailsParking`),$(e,`detailsWifiName`),$(e,`detailsWifiDescription`),$(e,`detailsWifiPassword`),$(e,`detailsInformation`),$(e,`user`)?$(e,`user`).id||$(e,`user`).objectId:null,$(e,`pictureUrls`),$(e,`role`)?$(e,`role`).id||$(e,`role`).objectId:null,$(e,`noMerge`),$(e,`mergedTo`),$(e,`partner`),$(e,`partnerPropertyId`),$(e,`defaultJob`)?$(e,`defaultJob`).id||$(e,`defaultJob`).objectId:void 0,$(e,`hasUserTitle`),$(e,`sample`),$(e,`ownerRole`),$(e,`propertyRole`),$(e,`userData`),$(e,`toBeDeleted`),$(e,`otherAttributes`),$(e,`bedConfiguration`),$(e,`tags`),$(e,`proMarketId`),$(e,`createdAt`),$(e,`failedAt`),$(e,`failedAtRecurly`))}function aN(e){return new WM(e.id,e.get(`title`),e.get(`filter`),e.get(`createdAt`),e.get(`updatedAt`),e.get(`user`),e.get(`deleted`))}function oN(e){return new eN(e.id||e.objectId,$(e,`type`),$(e,`jobRequestId`),$(e,`bookingId`),$(e,`triggerId`),$(e,`propertyId`),$(e,`timeZone`),$(e,`propertyTitle`),$(e,`startTime`),$(e,`endTime`),$(e,`status`),$(e,`eventStatus`),$(e,`needsCTA`),$(e,`deleted`),$(e,`payload`),$(e,`days`),$(e,`propertyAddress`),$(e,`createdAt`),$(e,`jobSnapshotId`),$(e,`draftJobId`),$(e,`autoSchedulerId`))}function sN(e){return new YM(e.objectId,e.name,e.description,e.pictureUrl,e.adminEmails)}function cN(e){return new KM(e.objectId,e.firstName,e.lastName,e.shortName,e.email,e.phone,e.pictureUrl,e.bio,e.signedUp,e.signedUpDate,e.phoneCountryCode,e.phoneRegionalNumber,e.standAloneUser)}function lN(e){let t=e&&!!e.get,n=n=>t?e.get(n):e[n];return fs(e.id||e.objectId,n(`ownerId`),n(`contactId`),n(`userData`)?cN(n(`userData`)):null,n(`lastJobSent`),n(`deleted`),n(`profile`)?dN(n(`profile`)):null,n(`isSuggested`))}function uN(e){return new qM(tN(e),tN($(e,`defaultProperty`)),$(e,`title`),$(e,`totalStepCount`),$(e,`totalTaskCount`),tN($(e,`jobInstructions`)),$(e,`pictureUrl`),$(e,`totalVerificationCount`),tN($(e,`user`)),$(e,`jobDescription`),$(e,`generalTasks`),$(e,`deleted`),$(e,`weight`),$(e,`role`)?tN($(e,`role`)):null,$(e,`createdAt`),$(e,`defaultSettings`))}function dN(e){let t=e&&!!e.get,n=n=>t?e.get(n):e[n];return new dS(e.id||e.objectId,n(`userData`)?cN(n(`userData`)):null,n(`numOfJobRequestsDone30`),n(`numOfHosts`),n(`signedUpDate`),n(`numOfJobRequestsDone`),n(`propertyPhotos`),n(`offeredServices`),n(`badges`),n(`responseTime`),n(`numOfProperties`),n(`listSuggestedCleaner`))}function fN(e){return ute(e.enabled,e.internal,e.properties,e.rights,e.userData,e.userId,e.teamId,e.createdAt,e.partnerType)}function pN(e){return new GM(tN(e),$(e,`steps`),$(e,`role`)?tN($(e,`role`)):null,$(e,`user`)?tN($(e,`user`)):null,$(e,`currency`))}var mN=4,hN=250,gN=Wi(),_N=gN.PARSE_SERVER_URL;function vN(){return{deleted:{$ne:!0}}}function yN(e){return{updatedAt:{$gte:{__type:`Date`,iso:e&&new Date(e).toISOString()}}}}var bN=e=>{let t=Math.max(50,Math.round(e/mN)),n=Math.min(hN,Math.round(e/t)-1);return e<50?[{limit:1e4,skip:0}]:[...Array(n)].map((e,n)=>({limit:t,skip:n*t})).concat([{limit:1e4,skip:n*t}])};function xN(e,t){return wN(`${_N}/classes/${e}/${t}`).then(t=>(e!==`_User`&&FM.default.Object.fromJSON({...t,className:e}),t)).catch(e=>(R.default.error(`Error fetching parse class id`,e),null))}function SN(e,t,n){return wN(`${_N}/functions/${e}`,`POST`,t,n).then(({result:e}={})=>e).catch(e=>(R.default.error(`Error fetching parse cloud function`,e),null))}function CN(){return wN(`${_N}/config`,`GET`,null,!0).then(({params:e}={})=>e||{}).catch(e=>(R.default.error(`Error fetching parse config`,e),{}))}function wN(e,t,n,r,i){let a=FM.default.User.current(),o=a&&a.getSessionToken(),s={"X-Parse-Application-Id":gN.APP_ID,"X-Parse-Javascript-Key":gN.JS_KEY};o?s[`X-Parse-Session-Token`]=o:R.default.warn(`Could not find session token for current user`,{currentUser:a,url:e,method:t,data:n,throwOnNon200:r});let c=n?{body:i?n:JSON.stringify(n)}:{};return fetch(e,{method:t||`GET`,headers:s,...c}).then(e=>{let t=e.status<200||e.status>=400;return r&&t?e.json().then(e=>{throw e}):e.json()}).catch(e=>(R.default.error(`Error fetching url`,e),null))}function TN(e,t,n,r){let i=FM.default.User.current(),a=i&&i.getSessionToken(),o={"X-Parse-Application-Id":gN.APP_ID,"X-Parse-Javascript-Key":gN.JS_KEY};a?o[`X-Parse-Session-Token`]=a:R.default.warn(`Could not find session token for current user`,{url:e,method:t});let s=n?{body:r?n:JSON.stringify(n)}:{};return fetch(e,{method:t||`GET`,headers:o,...s}).then(e=>{if(e.status<200||e.status>=400){let t=()=>Error(`Request failed with status ${e.status}`);return e.json().then(e=>{throw e&&Object.keys(e).length>0?e:t()},()=>{throw t()})}return e.json()})}function EN(e,t,n,r){let i=n&&`&where=${JSON.stringify(n)}`||``;return TN(`${_N}/classes/${e}?${encodeURI(`limit=${t}${i}`)}${r?`&${r}`:``}`).then(({results:t}={})=>
294{if(!Array.isArray(t))throw Error(`Invalid Parse class response for ${e}`);return t.forEach(t=>FM.default.Object.fromJSON({...t,className:e})),t})}var DN=Wi();FM.default.initialize(DN.APP_ID,DN.JS_KEY),FM.default.serverURL=DN.PARSE_SERVER_URL,FM.default.liveQueryServerURL=DN.PARSE_SERVER_LIVE_QUERY_URL,FM.default.CoreManager.set(`REQUEST_ATTEMPT_LIMIT`,0),FM.default.LiveQuery.on(`error`,e=>{R.default.info(`Error in websocket connection`,e)});function ON(){return FM.default.User.current().getSessionToken()}function kN(){let e=FM.default.User.current();if(e){let t=nN(e);return t.sessionToken=ON(),t}return null}function AN({format:e,columns:t,title:n,startDate:r,endDate:i,properties:a,cleaners:o,problemsReported:s,jobRequestStatus:c,jobType:l,inspectedBy:u}){return HM(()=>FM.default.Cloud.run(`downloadReport`,{format:e,columns:t,title:n,startDate:r,endDate:i,properties:a,cleaners:o,problemsReported:s,jobRequestStatus:c,jobType:l,inspectedBy:u}))}function jN({startDate:e,endDate:t,properties:n,cleaners:r,problemsReported:i,jobRequestStatus:a,inspectedBy:o,jobType:s,skip:c,limit:l}){return HM(()=>FM.default.Cloud.run(`fetchReport`,{skip:c,limit:l,startDate:e,endDate:t,properties:n,cleaners:r,problemsReported:i,jobRequestStatus:a,jobType:s,inspectedBy:o}))}function MN({reportProcessingId:e}){return HM(()=>FM.default.Cloud.run(`downloadStatus`,{reportProcessingId:e}))}function NN({skip:e,limit:t,startDate:n,endDate:r,cleaners:i,properties:a,jobRequestStatus:o}){return HM(()=>FM.default.Cloud.run(`fetchCleanerReport`,{skip:e,limit:t,startDate:n,endDate:r,cleaners:i,properties:a,jobRequestStatus:o}))}function PN({format:e,columns:t,title:n,startDate:r,endDate:i,cleaners:a,properties:o,jobRequestStatus:s}){return HM(()=>FM.default.Cloud.run(`downloadCleanerReport`,{format:e,columns:t,title:n,startDate:r,endDate:i,cleaners:a,properties:o,jobRequestStatus:s}))}function FN(e){return HM(()=>FM.default.Cloud.run(`resetPasswordForUsername`,{username:e}))}function IN(e){return HM(()=>FM.default.Cloud.run(`toggleRole`,{role:e}))}function LN(e,t){return HM(()=>FM.default.Cloud.run(`setNewPassword`,{password:e,token:t}))}function RN(){return FM.default.User.logOut()}function zN(e){return HM(()=>{let t=new FM.default.Query(`Report`);return t.limit(1e3),t.notEqualTo(`deleted`,!0),e&&t.greaterThan(`updatedAt`,new Date(e)),t.find().then(e=>e.map(e=>aN(e)))})}function BN(e){return HM(()=>{let t=new FM.default.Query(`Contact`);return t.include(`profile`),t.get(e).then(e=>lN(e))})}function VN(e){return HM(()=>new FM.default.Query(`Property`).get(e).then(e=>iN(e)))}function HN(e){return HM(()=>{let t=new FM.default.Query(`Job`);return t.notEqualTo(`deleted`,!0),t.limit(1e5),e&&t.greaterThan(`updatedAt`,new Date(e)),t.find().then(e=>e.map(e=>uN(e)))})}function UN(e){return HM(async()=>{let t=[],n=async(r=0)=>{let i=r*100,a=new(FM.default.Object.extend(`Property`));a.id=e;let o=new FM.default.Query(`Job`);o.notEqualTo(`deleted`,!0),o.equalTo(`defaultProperty`,a),o.skip(i),o.limit(100);let s=await o.find().then(e=>e.map(e=>uN(e)));t.push(...s),s?.length>=100&&await n(r+1)};return await n(),t})}function WN(e){switch(e){case`_User`:case`User`:return nN;case`Subscription`:return rN;case`Event`:return oN;default:throw Error(`mapClassToMapper - mapper not defined`,e)}}function GN(e,t,n){try{t(WN(e)(n))}catch(e){R.default.error(`mapParseLiveQueryObjectToLocalClass`,e)}}async function KN(e,t,n=[],r){try{let i=new FM.default.Query(e);i=r?r(i):i;let a=await i.subscribe();return(0,xc.default)(n,n=>{if(typeof a.on!=`function`)throw Error(`The subscription object does not have an on method.`);a.on(n,GN.bind(null,e,t))}),a.on(`error`,t=>{R.default.error(`Error in live query subscription`,t,e)}),a}catch(e){return R.default.error(`liveQueryGenerator`,e),null}}function qN(e){return e?HM(()=>FM.default.Cloud.run(`getSuggestedCleaners`,{longitude:yte(e),latitude:bte(e)}).then(e=>e.map(e=>dN(e)))):Promise.resolve([])}function JN(e){let t=``;for(let n=0;n<e;n+=1)t+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`.charAt(Math.floor(Math.random()*62));return`${t}`}function YN(e,t){let n=FM.default.User.current().id,r=FM.default.Object.extend(`Job`),i=FM.default.Object.extend(`User`),a=FM.default.Object.extend(`Property`),o=FM.default.Object.extend(`JobInstructions`),s=new r,c=new i,l=new o;(0,xc.default)((0,Ux.default)((0,Pf.default)(e,[`jobInstructionId`,`role`])),t=>{s.set(t,e[t])}),(0,xc.default)((0,Ux.default)(t),e=>{l.set(e,t[e])});let u=new a;return u.id=e.defaultProperty,c.id=e.user||n,l.set(`user`,c),s.set(`jobInstructions`,l),s.set(`user`,c),s.set(`defaultProperty`,u),HM(()=>s.save().then(e=>uN(e)))}var XN=e=>FM.default.User.become(e.sessionToken).then(()=>nN(FM.default.User.current())),ZN=e=>{let t={code:e?.response?.data?.code,message:e?.response?.data?.error};return RM.errorFromParse(t)};async function QN(e,t){try{let n={username:e?.trim(),password:t,_ApplicationId:DN.APP_ID,_JavaScriptKey:DN.JS_KEY},r=await fetch(DN.LOGIN_URL,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(n)});if(!r.ok){let e=await r.json(),t=Error(`Login failed`);throw t.response={data:e},t}let i=(await r.json()).result;return await XN(i)}catch(e){throw ZN(e)}}async function $N(e,t=!1){let{firstName:n,lastName:r,phoneRegionalNumber:i,phoneCountryCode:a,email:o,password:s,reCaptchaToken:c,reCaptchaVersion:l,language:u,campaign:d,referrer:f,content:p,medium:m,source:h,term:g,utm_source:_,partnerMode:v,hostSignupMode:y}=e;try{let e={firstName:n,lastName:r,phoneRegionalNumber:i,phoneCountryCode:i&&a,password:s,email:o,reCaptchaToken:c,reCaptchaVersion:l,role:1,language:u,campaign:d,referrer:f,content:p,medium:m,source:h,term:g,partnerMode:v,hostSignupMode:y,utm_source:_,_ApplicationId:DN.APP_ID,_JavaScriptKey:DN.JS_KEY},b=await fetch(DN.SIGNUP_URL,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!b.ok){let e=await b.json(),t=Error(`Signup failed`);throw t.response={data:e},t}let x=(await b.json()).result;return x.verificationPending||t||await XN(x),x}catch(e){throw ZN(e)}}function eP(e,t,n){let r=FM.default.Object.extend(`Job`),i=FM.default.Object.extend(`_User`),a=FM.default.Object.extend(`Property`),o=FM.default.Object.extend(`JobInstructions`),s=new r,c=new i,l=new o,u=new a;return u.id=e,c.id=n,l.set(`user`,c),s.set(`jobInstructions`,l),s.set(`title`,t),s.set(`user`,c),s.set(`defaultProperty`,u),l.set(`user`,c),l.set(`steps`,[]),HM(()=>s.save().then(e=>uN(e)))}async function tP(e){try{let t=new FormData;return t.append(`file`,e),{pictureUrl:(await wN(`${DN.API_BASE_URL}/upload/image`,`POST`,t,!0,!0))?.pictureUrl}}catch(e){throw R.default.error(`[uploadImage] Could not upload file to cloudinary`,e),e}}function nP(e,t){return HM(()=>FM.default.Cloud.run(`updatePassword`,{oldPassword:e,newPassword:t}))}function rP(e){return FM.default.Cloud.run(`generateTrackingLinkNew`,e).then(e=>e.link)}function iP(e){return Hpe(e),rP(hc()).then(e=>du(e),()=>{du(e===`iOS`?pA.ios:pA.android)})}function aP(e,t){let n=new(FM.default.Object.extend(`Job`));return n.id=e,(0,zs.default)(t,(e,t)=>{n.set(t,e)}),HM(()=>n.save().then(e=>uN(e)))}function oP(e,t){let n=new(FM.default.Object.extend(`JobInstructions`));return n.id=e,(0,zs.default)(t,(e,t)=>{t===`steps`&&!(0,Lb.default)(e)?n.set(t,[]):n.set(t,e)}),HM(()=>n.save().then(e=>pN(e)))}function sP(e,t,n){let r=new(FM.default.Object.extend(`Property`));try{n||(r.id=e),r.attributes.pictureUrls||r.set(`pictureUrls`,[]),(0,zs.default)(t,(e,n)=>{if(n===`pictureUrl`&&!e)r.set(n,``);else if(n===`location`)r.set(n,new FM.default.GeoPoint(t.location.latitude,t.location.longitude));else if(n===`defaultJob`){let t=FM.default.Object.extend(`Job`),i=null;e&&(i=new t,i.id=e),r.set(n,i)}else r.set(n,e)})}catch(e){throw R.default.error(`Error updating parse property`,e),e}if(n){let e=new FM.default.User;e.id=n,r.set(`user`,e)}return HM(()=>r.save().then(e=>iN(e)))}function cP(e){return R.default.info(`updateParseUser`,e),HM(()=>FM.default.Cloud.run(`updateUser2`,e).then(e=>nN(e)))}function lP(){return HM(()=>FM.default.Cloud.run(`resetPassword`,{type:`email`}))}function uP(){let e=e=>
294(Object.values(e).forEach(e=>{typeof e.rights?.doJob!=`boolean`&&(e.rights.doJob=e.rights?.sendJobs)}),e);return HM(()=>FM.default.Cloud.run(`getSharedWithMe`).then(t=>e(t)))}function dP(e){return HM(()=>FM.default.Cloud.run(`leaveCollaboration`,{teamId:e}))}function fP(e,t){return HM(()=>FM.default.Cloud.run(`removeCollaborator`,{teamId:t,userId:e}))}function pP(){return HM(()=>FM.default.Cloud.run(`requestPhoneVerificationCode`))}function mP(e){return HM(()=>FM.default.Cloud.run(`redeemPhoneVerificationCode`,{code:e}))}function hP(e){return HM(()=>FM.default.Cloud.run(`setReferrerFromWebapp`,{...e}))}function gP(e){return HM(()=>FM.default.Cloud.run(`addCollaborator`,e).then(e=>fN(e)))}function _P(e){return HM(()=>FM.default.Cloud.run(`editCollaborator`,e).then(e=>fN(e)))}function vP(e){return HM(()=>FM.default.Cloud.run(`editTeam`,e).then(e=>({team:sN(e.team),emailSend:e.emailSend})))}function yP(e){return HM(()=>FM.default.Cloud.run(`addContact`,e).then(e=>lN(e.contact)))}function bP(e){return HM(()=>FM.default.Cloud.run(`resendInvite`,e).then(e=>lN(e)))}function xP(e,t){return HM(()=>FM.default.Cloud.run(`resendInviteCollaborator`,{userId:e,teamId:t}))}function SP(e,t){return HM(()=>FM.default.Cloud.run(`reportHandler`,{action:e,params:t}).then(e=>aN(e)))}function CP(e){return FM.default.User.become(e).then(()=>nN(FM.default.User.current())).catch(()=>[_a])}function wP(){return FM.default.User.current()!==null}function TP(e){return HM(()=>FM.default.Cloud.run(`triggerEventLiveQueryUpdate`,{objectId:e}))}function EP(e){return HM(()=>FM.default.Cloud.run(`dashboardGetUserIntercomData`,{userId:e}))}function DP(e){return HM(()=>FM.default.Cloud.run(`loginWithGoogle`,{id_token:e}).then(e=>CP(e.sessionToken)))}function OP(e){return HM(()=>FM.default.Cloud.run(`linkGoogleAccount`,{id_token:e}))}function kP(){return HM(()=>FM.default.Cloud.run(`unlinkGoogleAccount`))}function AP(){return HM(()=>FM.default.Cloud.run(`isGoogleAccountLinked`))}var jP=()=>(0,K.jsxs)(I,{sx:{position:`relative`,textAlign:`center`,paddingTop:`var(--space-small)`},children:[(0,K.jsx)(Dm,{types:[`top`,`dark`]}),(0,K.jsx)(`div`,{children:(0,K.jsx)(Zg,{children:U(`signup.download.app_store_description`,{})})}),(0,K.jsx)(_m,{}),(0,K.jsx)(`button`,{style:{border:`none`,cursor:`pointer`,background:`none`},type:`button`,onClick:()=>iP(`iOS`),children:(0,K.jsx)(I,{component:`img`,alt:`Apple App Store`,src:PM,sx:{height:`40px`,margin:`0 5px`,cursor:`pointer`}})}),(0,K.jsx)(`button`,{style:{border:`none`,cursor:`pointer`,background:`none`},type:`button`,onClick:()=>iP(`android`),children:(0,K.jsx)(I,{component:`img`,alt:`Google Play Store`,src:NM,sx:{height:`40px`,margin:`0 5px`,cursor:`pointer`}})})]}),MP=({isUpgrade:e=!1,handleUpgrade:t=()=>{}})=>{let[n,r]=(0,B.useState)(!1),i=j(DC);return(0,B.useEffect)(()=>{r(wu()&&!Cu())},[]),n?(0,K.jsx)(I,{sx:{position:`fixed`,top:0,left:0,right:0,bottom:0,background:`var(--color-white)`,padding:`18px`,zIndex:2147483647},children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Y.LogoFull,{width:`100px`,byWidth:!0}),(0,K.jsx)(xm,{}),(0,K.jsx)(`div`,{children:(0,K.jsx)(Gg,{type:`nomargin`,children:U(`phoneoverlay.title`)})}),(0,K.jsx)(bm,{}),!e&&(0,K.jsx)(`div`,{children:(0,K.jsx)(Yg,{children:(0,K.jsx)(O,{i18nKey:`phoneoverlay.subtitle`,values:{email:i},components:{email:(0,K.jsx)(Kg,{style:{margin:`8px 0`,wordBreak:`break-all`}})}})})}),e&&(0,K.jsx)(q,{onClick:t,style:{border:`none`},types:[`type-full-primary`,`width-flex`,`size-large`],children:U(`phoneoverlay.upgrade_plan`,{})}),(0,K.jsx)(xm,{}),(0,K.jsx)(jP,{})]})}):null};MP.propTypes={handleUpgrade:V.default.func,isUpgrade:V.default.bool};var NP=({seconds:e,content:t})=>{let n=(0,B.useRef)(null);return(0,B.useEffect)(()=>(n.current=setInterval(()=>{},e*1e3),()=>{clearInterval(n.current)}),[e]),t()||null};NP.propTypes={seconds:V.default.string.isRequired,content:V.default.func.isRequired};var PP=`rgba(255, 255, 255, 0.7)`,FP=`var(--color-orange)`,IP=({icon:e,isActive:t,iconSize:n=`24px`,onClick:r,tooltip:i})=>{let a=(0,K.jsx)(br,{onClick:r,sx:{width:48,height:48,borderRadius:`50%`,background:`rgba(255, 255, 255, 0.08)`,transition:`all 0.2s ease`,"&:hover":{background:`rgba(255, 255, 255, 0.18)`,transform:`scale(1.08)`},"&:active":{transform:`scale(0.95)`}}
294,children:(0,K.jsx)(e,{byWidth:!0,width:n,height:n,color:t?FP:PP})});return i?(0,K.jsx)(qn,{title:i,placement:`top`,arrow:!0,children:a}):a};function LP(e,t){return e===`new`?{canSend:!0,canDone:!1,canDelete:!1,canEdit:!1}:e===`edit`?{canSend:!1,canDone:!0,canDelete:!1,canEdit:!1}:e===`view`?{canSend:!1,canDone:!1,canDelete:t,canEdit:t}:{}}function RP(e){switch(e){case`delete`:return{txt:U(`slider.delete_comment`),icon:Y.IcTrash2};case`edit`:return{txt:U(`slider.edit_comment`),icon:Y.IcEditGrey};default:return{txt:``,src:``}}}var zP=({onClick:e,icon:t})=>{let{txt:n,icon:r}=RP(t);return(0,K.jsx)(I,{onClick:e,sx:{cursor:`pointer`,opacity:.7,transition:`all 0.2s ease`,padding:`4px`,borderRadius:`4px`,"&:hover":{opacity:1,background:`rgba(0, 0, 0, 0.05)`}},children:(0,K.jsx)(Ig,{title:n,children:(0,K.jsx)(r,{})})})};function BP(e,t,n,r,i,a){if(e===`view`){let e=i?(0,z.default)(i).tz(a).format(`LT, ddd DD MMM`):``;return t&&(e+=` ⢠${U(`slider.viewed`)}`),e}return n-r}function VP(e,t,n,r,i){return e&&i.trim()?{btnHandler:t,btnTxt:U(`permissions.modal.send`)}:n&&i.trim()?{btnHandler:r,btnTxt:U(`checklist.done`)}:{}}var HP=({maxLength:e=500,value:t=``,isViewed:n,date:r,timeZone:i=`America/Los_Angeles`,onChange:a,onDelete:o,onDone:s,onSend:c,onEdit:l,hasEditPermissions:u,error:d,name:f,mode:p=`new`})=>{let{canSend:m,canDone:h,canEdit:g,canDelete:_}=LP(p,u),{btnHandler:v}=VP(m,c,h,s,t);return(0,K.jsxs)(I,{sx:{padding:`16px`,background:`var(--color-bg-paper, #fff)`,borderRadius:`12px`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,mb:2},children:[(0,K.jsx)(I,{component:`span`,sx:{fontSize:`16px`,fontWeight:600,color:`var(--color-text, #1a1a1a)`},children:f||U(`slider.comment`)}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:`8px`},children:[g&&(0,K.jsx)(zP,{onClick:l,icon:`edit`}),_&&(0,K.jsx)(zP,{onClick:o,icon:`delete`})]})]}),(0,K.jsx)(`textarea`,{disabled:!(m||h),maxLength:e,onChange:a,value:t,placeholder:U(`slider.write_a_comment`),autoFocus:!0,style:{width:`100%`,height:`120px`,padding:`12px`,fontSize:`14px`,lineHeight:`1.5`,border:`1px solid var(--color-border, #e0e0e0)`,borderRadius:`8px`,resize:`none`,outline:`none`,fontFamily:`inherit`,background:`var(--color-bg-elevated)`,color:`var(--color-text)`,boxSizing:`border-box`}}),d&&(0,K.jsx)(`div`,{style:{color:`#d32f2f`,fontSize:`12px`,marginTop:`8px`},children:d}),(0,K.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginTop:`16px`},children:[(0,K.jsx)(`span`,{style:{fontSize:`13px`,color:`var(--color-grey, #888)`},children:BP(p,n,e,t.length,r,i)}),(m||h)&&(0,K.jsx)(`button`,{type:`button`,onClick:v,disabled:!t.trim(),style:{background:t.trim()?`var(--color-primary, #36ACB2)`:`var(--color-grey, #ccc)`,color:`#fff`,border:`none`,borderRadius:`6px`,padding:`8px 16px`,fontSize:`14px`,fontWeight:500,cursor:t.trim()?`pointer`:`not-allowed`},children:U(m?`permissions.modal.send`:`checklist.done`)})]})]})},UP=v();function WP(e){return{type:_E,data:e}}function GP(){return Wn({pathname:Z.settingsSubscription})}function KP(){return{type:wE}}function qP(e){return{type:bT,user:e}}function JP(e){return{type:xT,patch:e}}function YP(e){return{type:KD,val:e}}function XP(){return{type:Phe}}function ZP(e,{force:t=!1}={}){return{type:bE,fromWhere:e,force:t}}function QP(e,t,n){return{type:xE,collectionName:e,id:t,changeSet:n}}function $P(e,t){return{type:yE,val:t,index:e}}function eF(e,t,n){return{type:EE,id:t,isPagination:n,collectionName:e}}function tF(e){return{type:TE,changeSet:e}}function nF(e,t,n){return{type:SE,collectionName:e,batchChange:t,isPagination:n}}function rF(e,t){return{type:CE,collectionName:e,filter:t}}function iF(e){return Wn(Z.propertyPage(e))}function aF(e){return Wn(e)}function oF(){return{type:DE}}function sF(e){return{type:LT,currentCountry:e}}function cF(e){return{type:vE,val:e}}function lF(){return{type:OE}}function uF(e,t,n){return{type:kE,key:e,value:t,meta:n}}function dF(e,t,n){return{type:AE,value:e,id:t,meta:n}}function fF(){return{type:ST}}var pF=e(Ye()),mF={"login-page-wrapper":`_login-page-wrapper_1r37g_2`,loginPageWrapper:`_login-page-wrapper_1r37g_2`,"login-logo-wrapper":`_login-logo-wrapper_1r37g_7`,loginLogoWrapper:`_login-logo-wrapper_1r37g_7`,"wizard-h1":`_wizard-h1_1r37g_49`,wizardH1:`_wizard-h1_1r37g_49`,"wizard-h1--dark":`_wizard-h1--dark_1r37g_68`,wizardH1Dark:`_wizard-h1--dark_1r37g_68`,"wizard-h1--passwordreset":`_wizard-h1--passwordreset_1r37g_72`,wizardH1Passwordreset:`_wizard-h1--passwordreset_1r37g_72`,"wizard-h1--login":`_wizard-h1--login_1r37g_77`,wizardH1Login:`_wizard-h1--login_1r37g_77`,"wizard-h1--lesstop":`_wizard-h1--lesstop_1r37g_82`,wizardH1Lesstop:`_wizard-h1--lesstop_1r37g_82`,"wizard-p":`_wizard-p_1r37g_86`,wizardP:`_wizard-p_1r37g_86`,"wizard-reset-password":`_wizard-reset-password_1r37g_92`,wizardResetPassword:`_wizard-reset-password_1r37g_92`,"wizard-container":`_wizard-container_1r37g_97`,wizardContainer:`_wizard-container_1r37g_97`,"wizard-container--dark":`_wizard-container--dark_1r37g_127`,wizardContainerDark:`_wizard-container--dark_1r37g_127`,"wizard-container--mobile":`_wizard-container--mobile_1r37g_158`,wizardContainerMobile:`_wizard-container--mobile_1r37g_158`,"wizard-container--big":`_wizard-container--big_1r37g_162`,wizardContainerBig:`_wizard-container--big_1r37g_162`,"wizard-container--noMinHeight":`_wizard-container--noMinHeight_1r37g_167`,wizardContainerNoMinHeight:`_wizard-container--noMinHeight_1r37g_167`,"wizard-container--centered":`_wizard-container--centered_1r37g_171`,wizardContainerCentered:`_wizard-container--centered_1r37g_171`,"wizard-inner":`_wizard-inner_1r37g_176`,wizardInner:`_wizard-inner_1r37g_176`,"wizard-loading":`_wizard-loading_1r37g_185`,wizardLoading:`_wizard-loading_1r37g_185`,"wizard-loading-is-waiting":`_wizard-loading-is-waiting_1r37g_191`,wizardLoadingIsWaiting:`_wizard-loading-is-waiting_1r37g_191`,"wizard-loading-status":`_wizard-loading-status_1r37g_195`,wizardLoadingStatus:`_wizard-loading-status_1r37g_195`,tos__link:`_tos__link_1r37g_202`,tosLink:`_tos__link_1r37g_202`,"forgot-password":`_forgot-password_1r37g_207 input`,forgotPassword:`_forgot-password_1r37g_207 input`,center:`_center_1r37g_220`,signup__text:`_signup__text_1r37g_225`,signupText:`_signup__text_1r37g_225`,"signup__text--prominent":`_signup__text--prominent_1r37g_230`,signupTextProminent:`_signup__text--prominent_1r37g_230`,"login-form-container":`_login-form-container_1r37g_247`,loginFormContainer:`_login-form-container_1r37g_247`,"google-signin__section":`_google-signin__section_1r37g_252`,googleSigninSection:`_google-signin__section_1r37g_252`,"google-signin__divider":`_google-signin__divider_1r37g_256`,googleSigninDivider:`_google-signin__divider_1r37g_256`,"google-signin__text":`_google-signin__text_1r37g_260`,googleSigninText:`_google-signin__text_1r37g_260`,signup__link:`_signup__link_1r37g_270`,signupLink:`_signup__link_1r37g_270`,wizard__clicktxt:`_wizard__clicktxt_1r37g_278 text-type-large`,wizardClicktxt:`_wizard__clicktxt_1r37g_278 text-type-large`,"wizard__clicktxt-wrap":`_wizard__clicktxt-wrap_1r37g_284`,wizardClicktxtWrap:`_wizard__clicktxt-wrap_1r37g_284`,"google-signin__alternative-text":`_google-signin__alternative-text_1r37g_346`,googleSigninAlternativeText:`_google-signin__alternative-text_1r37g_346`,"google-signin__button":`_google-signin__button_1r37g_354`,googleSigninButton:`_google-signin__button_1r37g_354`,"signup__prompt--top":`_signup__prompt--top_1r37g_414`,signupPromptTop:`_signup__prompt--top_1r37g_414`,"signup__link--inline":`_signup__link--inline_1r37g_459`,signupLinkInline:`_signup__link--inline_1r37g_459`,"login-container":`_login-container_1r37g_497`,loginContainer:`_login-container_1r37g_497`,"login-container--mobile-top-logo":`_login-container--mobile-top-logo_1r37g_502`,loginContainerMobileTopLogo:`_login-container--mobile-top-logo_1r37g_502`};function hF(){return{type:TT}}function gF(e,t){return Wn((0,gi.default)((0,pF.default)(e,[`search`]),{pathname:t}))}function _F(e){return gF(e,Z.signup)}function vF(e){return gF(e,Z.login)}function yF(){return Wn(Z.resetPassword)}function bF(e){return{type:MT,user:e}}function xF(e){return{type:CT,user:e}}function SF(e){return{type:wT,errors:e}}function CF(e){return{type:ET,token:e}}function wF(e){return{type:AT,val:e}}function TF(e,t,n=null){return{type:jT,token:e,redirectRoute:t,adminDetail
294s:n}}function EF(e){return $l(e)?U(`resetpassword.text_message`,{number:e}):U(`resetpassword.email_message`,{email:e})}function DF(e){return{type:FT,payload:{type:`success`,message:EF(e)}}}function OF(e){return{type:PT,payload:{type:`error`,message:U(`resetpassword.reset_error`,{user:e})}}}function kF(){return{type:IT}}function AF(e,t,n=`credentials`){return{type:DT,data:e,query:t,authMethod:n}}function jF(e){return{type:OT,val:e}}function MF({fromWhere:e,query:t,redirectRoute:n}){return{type:kT,fromWhere:e,query:t,redirectRoute:n}}var NF=_i.default.bind(mF),PF=e=>{let t=xe(),n=j(e=>e.loginSignUpReducers);(0,B.useEffect)(()=>{mc(e?.location?.search?r.parse(e.location.search):{})},[e?.location?.search]);let i=()=>(0,K.jsx)(`div`,{className:NF(`wizard-loading`),children:(0,K.jsx)(xf,{hasRandomMsg:!0})}),a=()=>(0,K.jsxs)(`div`,{className:NF(`wizard-inner`,{center:e.center}),children:[(0,K.jsx)(`h1`,{className:NF(`wizard-h1`,{"wizard-h1--passwordreset":e.withSubHeadline,"wizard-h1--login":!e.withSubHeadline}),children:e.title}),e.children]}),o=[`showSignUp`,`showToast`,`message`,`showLogin`],{loginLoading:s}=n,c=!e.useInlineLoading&&s,l=e.loading||c;return e.topBarOnly?(0,K.jsx)(`div`,{className:NF(`login-container`),children:(0,K.jsx)(tM,{...(0,pF.default)(e,o),onClickCreate:()=>t(_F(e.location)),onClickLogin:()=>t(vF(e.location)),onClickBack:e.onClickBack,renderBack:e.renderBack,renderBackMobileOnly:e.renderBackMobileOnly,noLogo:e.noLogo,mobileOnlyLogo:e.mobileOnlyLogo,showOnDesktop:!0})}):(0,K.jsxs)(`div`,{className:NF(`login-container`),children:[!e.hideTopBar&&(0,K.jsx)(tM,{...(0,pF.default)(e,o),onClickCreate:()=>t(_F(e.location)),onClickLogin:()=>t(vF(e.location)),onClickBack:e.onClickBack,renderBack:e.renderBack,renderBackMobileOnly:e.renderBackMobileOnly,noLogo:e.noLogo,mobileOnlyLogo:e.mobileOnlyLogo,centerLogo:e.centerLogo,showOnDesktop:e.showOnDesktop}),(0,K.jsx)(`div`,{children:(0,K.jsxs)(`div`,{className:NF(`wizard-container`,{"wizard-reset-password":e.withMaxWidth,"wizard-container--big":e.big,"wizard-container--mobile":e.isMobile,"wizard-container--noMinHeight":e.noMinHeight,"wizard-container--centered":e.centeredLayout}),children:[l&&i(),!l&&!e.big&&a(),!l&&e.big&&e.children]})})]})};PF.propTypes={title:V.default.string,showSignUp:V.default.bool,showLogin:V.default.bool,center:V.default.bool,withMaxWidth:V.default.bool,withSubHeadline:V.default.bool,loading:V.default.bool,location:V.default.shape({}),centeredLayout:V.default.bool,topBarOnly:V.default.bool,centerLogo:V.default.bool,hideTopBar:V.default.bool,useInlineLoading:V.default.bool,showOnDesktop:V.default.bool},PF.Headline=({title:e,withSubHeadline:t,lessSpaceTop:n})=>(0,K.jsx)(`h1`,{className:NF(`wizard-h1`,{"wizard-h1--passwordreset":t,"wizard-h1--login":!t,"wizard-h1--lesstop":n}),children:e}),Qn();var{GOOGLE_OAUTH_CLIENT_ID:FF}=Wi(),IF=_i.default.bind(mF),LF={show:!1,message:``},RF=()=>{let e=xe(),t=ir(),n=r.parse(t.search),{trackClick:i,trackError:a}=nT(`LoginComponent`),o=j(NC),{errors:s,loginLoading:c}=j(e=>e.loginSignUpReducers),l=c,[u,d]=(0,B.useState)(``),[f,p]=(0,B.useState)(``),[m,h]=(0,B.useState)(!1),[g,_]=(0,B.useState)(null),[v,y]=(0,B.useState)(LF),[b,x]=(0,B.useState)(!1),S=e=>{o||d(e.target.value)},C=e=>p(e.target.value),w=()=>{x(!b)},T=t=>{t.preventDefault(),i(`login_button`,{method:`email`}),e(AF({username:u,password:f},n))};return(0,B.useEffect)(()=>(Spe(),o&&d(o),()=>{e(hF()),e(fF())}),[o,e]),(0,B.useEffect)(()=>{let e={[_a]:U(`login.error`,{}),[Oa]:U(`login.error_user_not_found`,{}),[Ta]:``,[Da]:U(`login.error_wrong_login`,{}),[ka]:U(`login.account_disabled`,{}),[Ea]:U(`login.error`,{}),[ja]:U(`login.google_oauth_error`,{})},t=s.find(t=>t in e);if(!t)return;a(`login_validation_error`,t);let n=e[t];t===`GoogleNotConfigured`?y({show:!0,message:n}):(h(!0),_(n))},[s,a]),(0,K.jsxs)(I,{className:IF(`login-page-wrapper`),sx:{minHeight:`100vh`,width:`100%`,position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,bgcolor:`var(--color-bg)`},children:[(0,K.jsx)(Sn,{in:!0,timeout:800,children:(0,K.jsx)(I,{className:IF(`login-logo-wrapper`),sx:{position:`absolute`,top:40,left
294:48,zIndex:10,transition:`opacity 0.3s ease, transform 0.3s ease`,"&:hover":{transform:`scale(1.02)`},"@media (max-width: 768px)":{left:`50%`,transform:`translateX(-50%)`,top:28,"&:hover":{transform:`translateX(-50%) scale(1.02)`}}},children:(0,K.jsx)(Y,{children:(0,K.jsx)(Y.LogoFull,{width:`140px`,height:`50px`,byWidth:!0})})})}),(0,K.jsx)(Sn,{in:!0,timeout:600,children:(0,K.jsx)(I,{sx:{position:`relative`,zIndex:1,width:`100%`,maxWidth:`440px`,margin:`0 auto`,animation:`slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards`,"@keyframes slideUp":{from:{opacity:0,transform:`translateY(20px)`},to:{opacity:1,transform:`translateY(0)`}},"@media (max-width: 768px)":{maxWidth:`100%`,padding:`0 16px`}},children:(0,K.jsx)(PF,{location:t,title:U(`login.title`,{}),noLogo:!0,centeredLayout:!0,hideTopBar:!0,useInlineLoading:!0,children:(0,K.jsxs)(`div`,{className:IF(`login-form-container`),children:[(0,K.jsxs)(`form`,{onSubmit:T,children:[(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,error:m,"data-testid":`username`,placeholder:U(`login.email`,{}),type:`text`,autoComplete:`username`,value:o||u,onChange:S}),(0,K.jsx)(gm,{}),(0,K.jsxs)(I,{sx:{position:`relative`},children:[(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,error:g,showErrorMsg:!0,"data-testid":`password`,placeholder:U(`login.password`,{}),type:b?`text`:`password`,autoComplete:`current-password`,onChange:C}),(0,K.jsx)(br,{onClick:w,sx:{position:`absolute`,right:`12px`,top:`8px`,padding:`6px`,color:`var(--color-grey)`,zIndex:1e3,backgroundColor:`transparent`,borderRadius:`8px`,transition:`all 0.2s ease`,"&:hover":{color:`var(--color-primary)`,backgroundColor:`rgba(54, 172, 178, 0.08)`}},size:`small`,disableRipple:!0,"aria-label":b?`Hide password`:`Show password`,children:b?(0,K.jsx)(Y.IcVisibilityOff,{width:`20px`,height:`20px`}):(0,K.jsx)(Y.IcVisibility,{width:`20px`,height:`20px`})})]}),(0,K.jsx)(ym,{}),(0,K.jsx)(q,{type:`submit`,"data-testid":`login_button`,onClick:T,types:[`type-full-primary`,`width-flex`,`size-large`],disabled:l,children:l?(0,K.jsx)(hf,{type:`white`}):U(`login.login`,{})}),(0,K.jsx)(hm,{}),(0,K.jsx)(I,{sx:{textAlign:`center`,py:1.5},children:(0,K.jsx)(Xg,{type:`grey`,"data-testid":`forgot-password-link`,onClick:()=>{i(`forgot_password_link`),e(yF())},style:{cursor:`pointer`,transition:`color 0.2s ease`},children:U(`login.forgot_pw`)})})]}),(0,K.jsx)(fi,{clientId:FF,children:(0,K.jsxs)(`section`,{className:IF(`google-signin__section`),"aria-labelledby":`alternative-login-heading`,children:[(0,K.jsx)(`div`,{className:IF(`google-signin__divider`),role:`separator`,"aria-label":`Alternative login methods separator`,children:(0,K.jsx)(`span`,{className:IF(`google-signin__text`),id:`alternative-login-heading`,children:`OR`})}),(0,K.jsx)(`div`,{className:IF(`google-signin__button`),children:(0,K.jsx)(St,{onSuccess:t=>{i(`google_oauth_button`,{method:`google`,success:!0}),t.credential&&e(AF({idToken:t.credential},n,`google`))},onError:()=>{i(`google_oauth_button`,{method:`google`,success:!1}),a(`google_oauth_error`,`oauth_failed`),y({show:!0,message:U(`login.google_oauth_error`,{})})},text:`signin_with`,shape:`rectangular`,theme:`outline`,size:`large`,useOneTap:!1,auto_select:!1,width:`100%`})})]})}),(0,K.jsx)(`div`,{className:IF(`signup__prompt--top`),onClick:()=>e(_F(t)),children:(0,K.jsxs)(Xg,{type:`grey`,onClick:()=>e(_F(t)),children:[U(`signup.no_account`),(0,K.jsx)(`span`,{onClick:()=>e(_F(t)),className:IF(`signup__link--inline`),children:U(`signup.form.cta`,{})})]})})]})})})}),v.show&&(0,K.jsx)(wf,{open:!0,message:v.message,onClose:()=>y(LF),error:!0})]})},{RECAPTCHA_VERSION_V2:zF}=ro,BF=({reCaptchaValues:e,setRemoteErrors:t})=>{let{reCaptchaVersion:n,reCaptchaToken:r}=e,{clearErrors:i,formState:{errors:a},getValues:o}=pe(),s=o();return B.useEffect(()=>{a?.root?.type===`recaptcha`&&r&&n===zF&&(i(`root`),t([]))},[n,r,a,i,t]),(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`input`,{type:`hidden`,name:`reCaptchaToken`,"data-testid":`reCaptchaToken`,disabled:s.reCaptchaToken}),(0,K.jsx)(`input`,{type:`hidden`,name:`reCaptchaVersion`,"data-testid":`reCaptchaVersion`,disabled:s.reCaptchaVersion})]})};BF.propTypes={reCaptchaValues:V.default.shape({reCaptchaVersion:V.default.string,reCaptchaToken:V.default.string}).isRequired,setRemoteErrors:V.default.func.isRequired};var{RECAPTCHA_VERSION_V3:VF}=ro,HF=e=>{let t=(e||``).trim(),n=t.indexOf(` `);return n===-1?{firstName:t,lastName:``}:{firstName:t.substring(0,n),lastName:t.substring(n+1).trim()}},UF=e=>{let t={},n=t=>!e[t]?.trim();
294if([`fullName`,`email`,`password`].forEach(e=>{n(e)&&(t[e]=!0)}),Object.keys(t).length>0)return t.msg=U(`signup.error.please_fill_all_fields`),t;Object.keys(e).forEach(n=>{e[n]?.length>128&&(t[n]=!0,t.msg=U(`signup.error.max_length_exceeded`))});let{firstName:r,lastName:i}=HF(e.fullName);(!r||!i||r.length>64||r.length<3||tu(r)||i.length>64||tu(i))&&(t.msg=U(`signup.error.invalid_full_name`),t.fullName=!0);let a=eu(e.password);return a.status?e.email?.trim()&&!Ql(e.email)?(t.email=!0,t.msg=U(`signup.error.email_invalid`),t):t:(t.password=!0,t.msg=a.message,t)},WF=(e,t)=>{if(e.includes(`CloudCodeError`)){t({msg:U(`signup.error.cloud_code_error`)});return}if(e.includes(`EmailNotUnique`)){t({email:!0,msg:U(`signup.error.email_registered`)});return}if(e.includes(`FailedReCaptchaVerification`)){t({msg:U(`signup.error.failed_recaptcha_verification`),isRecaptchaError:!0});return}t({msg:U(`signup.error.cloud_code_error`)})},GF=({reCaptchaValues:e,preSetEmail:t})=>({reCaptchaToken:e.reCaptchaToken||``,reCaptchaVersion:e.reCaptchaVersion||VF,fullName:``,email:t||``,password:``}),KF=Wi(),qF=()=>FM.default.User.current()?FM.default.User.current().getSessionToken():null,JF=new le({typePolicies:{Query:{fields:{}}},dataIdFromObject:e=>e.id||void 0}),YF=new Xe({uri:({operationName:e}={})=>e?`${KF.API_GRAPHQL_BASE_URL}/?${e}`:KF.API_GRAPHQL_BASE_URL}),XF=new f(({operation:e,response:t,error:n})=>{lt.is(n)?(R.default.error(`[ERROR]: GraphQL error trying to execute ${e.operationName}:`,n.errors),e.query.definitions.some(e=>e.operation===`subscription`)&&(t.errors=void 0)):n&&R.default.error(`[ERROR]: GraphQL network error trying to execute ${e.operationName}:`,n)}),ZF=(e=null)=>{let t=()=>{let t=qF();return t===null?e:t},n=st((e,{headers:n})=>({headers:{...n,"X-Parse-Request-UUID":Xl(),"x-parse-session-token":t()}})),r=new Jn({uri:KF.API_GRAPHQL_BASE_SUBSCRIPTION_URL,options:{reconnect:!0,connectionParams:()=>({"X-Parse-Request-UUID":Xl(),"x-parse-session-token":t()})}}),i=De.split(({query:e})=>{let t=Ge(e);return t.kind===`OperationDefinition`&&t.operation===`subscription`},r,n.concat(YF));return new tt({link:De.from([XF,i]),cache:JF})},QF=ZF(),$F=e=>ZF(e),eI=F` 295 query GetSubscriptionForUser { 296 GetSubscriptionForUser { 297 error 298 result { 299 id 300 subscriptionProviderSubscriptionId 301 subscriptionProviderToken 302 currentPlanTitle 303 priceType 304 price 305 allowedJobsMonth 306 jobsUsedMonth 307 nextRenewal 308 lastRenewal 309 currentPlanId 310 features 311 removePartnersTrialAccessBy 312 trialEnd 313 createdAt 314 expiration 315 freeMonthsUsed 316 totalFreeMonths 317 updatedAt 318 start 319 status 320 endOfGracePeriod 321 } 322 } 323 } 324`,tI=F` 325 query getOwnerSubscription($ownerRole: String) { 326 getOwnerSubscription(ownerRole: $ownerRole) { 327 error 328 result { 329 currentPlanId 330 } 331 } 332 } 333`,nI=F` 334 query getBillingInfo { 335 getBillingInfo { 336 company 337 couponCode 338 firstName 339 lastName 340 address { 341 street1 342 city 343 region 344 country 345 postalCode 346 } 347 paymentMethod { 348 object 349 cardType 350 expMonth 351 expYear 352 lastFour 353 nameOnAccount 354 } 355 error 356 } 357 } 358`,rI=F` 359 query getUserSubscriptionPlans { 360 getUserSubscriptionPlans { 361 error 362 results { 363 id 364 planId 365 title 366 allowedJobsMonth 367 features 368 weight 369 provider 370 contactUs 371 priceType 372 price 373 highlights 374 mostPopular 375 provider 376 public 377 } 378 } 379 } 380`,iI=F` 381 query GetInvoicesForUser { 382 GetInvoicesForUser { 383 results { 384 id 385 total 386 number 387 lineItems { 388 id 389 description 390 state 391 type 392 } 393 created 394 state 395 closed 396 currency 397 } 398 error 399 } 400 } 401`,aI=F` 402 mutation CreateSubscriptionFromTokenMutation( 403 $accountCode: String 404 $token: String 405 $planCode: String 406 $subscriptionId: String 407 $quantity: Int 408 $companyName: String 409 $email: String 410 $couponCode: String 411 $vatNumber: String 412 $threeDSToken: String 413 $threeDSecureActionSource: String 414 $trial: Boolean 415 ) { 416 CreateSubscriptionFromToken( 417 accountCode: $accountCode 418 token: $token 419 planCode: $planCode 420 subscriptionId: $subscriptionId 421 quantity: $quantity 422 companyName: $companyName 423 email: $email 424 couponCode: $couponCode 425 vatNumber: $vatNumber 426 threeDSToken: $threeDSToken 427 threeDSecureActionSource: $threeDSecureActionSource 428 trial: $trial 429 ) { 430 error 431 message 432 threeDSecureActionTokenId 433 threeDSecureActionSource 434 } 435 } 436`;F` 437 mutation UpdateBillingInfoMutation( 438 $firstName: String 439 $lastName: String 440 $address1: String
441 $address2: String 442 $city: String 443 $state: String 444 $country: String 445 $zip: String 446 $companyName: String 447 $email: String 448 ) { 449 UpdateBillingInfo( 450 firstName: $firstName 451 lastName: $lastName 452 address1: $address1 453 address2: $address2 454 city: $city 455 state: $state 456 country: $country 457 zip: $zip 458 companyName: $companyName 459 email: $email 460 ) { 461 error 462 message 463 } 464 } 465`;var oI=class{constructor({id:e,planId:t,features:n,title:r,price:i,priceType:a,public:o,annual:s,weight:c,highlights:l,contactUs:u,mostPopular:d}){this.objectId=e,this.planId=t,this.features=n,this.title=r,this.price=i,this.priceType=a,this.public=o,this.annual=s,this.displayOrder=c,this.highlights=l,this.contactUs=u,this.mostPopular=d}},sI=async()=>{try{return(await QF.query({query:eI,fetchPolicy:`no-cache`})).data.GetSubscriptionForUser}catch(e){return R.default.error(`[GetSubscriptionForUser] ${e}`),e.apiError=!0,e}},cI=async({threeDSToken:e,threeDSecureActionSource:t,token:n,companyName:r,vatNumber:i,quantity:a,email:o,planCode:s,couponCode:c,subscriptionId:l,trial:u},d)=>{try{let f=(await(d?$F(d):QF).mutate({mutation:aI,variables:{token:n,companyName:r,vatNumber:i,quantity:a,email:o,planCode:s,couponCode:c,subscriptionId:l,threeDSToken:e,threeDSecureActionSource:t,trial:u},fetchPolicy:`no-cache`})).data?.CreateSubscriptionFromToken;if(f?.error)throw f;return f}catch(e){return R.default.error(`[createSubscriptionFromTokenApi] ${e.message}`),e.apiError=!0,e}},lI=async()=>{try{return(await QF.query({query:nI,fetchPolicy:`no-cache`})).data.getBillingInfo}catch(e){return R.default.error(`[getBillingInfo] ${e}`),e.apiError=!0,e}},uI=async()=>{try{let e=(await QF.query({query:rI,fetchPolicy:`cache-first`})).data?.getUserSubscriptionPlans?.results;if(e?.error)throw e;return e.map(e=>new oI(e))}catch(e){return R.default.error(`[getUserSubscriptionPlans] ${e}`),e.apiError=!0,e}},dI=async e=>{try{let t=(await QF.query({query:tI,variables:{ownerRole:e},fetchPolicy:`cache-first`})).data.getOwnerSubscription;if(t?.error)throw t;return t.result}catch(e){return R.default.error(`[getOwnerSubscription] ${e}`),e.apiError=!0,e}},fI=async()=>{try{let e=(await QF.query({query:iI,fetchPolicy:`no-cache`})).data.GetInvoicesForUser||{};if(e.error)throw e;return e.results}catch(e){return R.default.error(`[getInvoicesForUserApi] ${e}`),e.apiError=!0,e}},pI=`properly.signupVerify`;function mI(){return typeof window<`u`&&!!window.sessionStorage}function hI({userId:e,email:t,pollingToken:n,referrerParams:r}){if(mI())try{window.sessionStorage.setItem(pI,JSON.stringify({userId:e,email:t,pollingToken:n,referrerParams:r}))}catch{}}function gI(){if(!mI())return null;try{let e=window.sessionStorage.getItem(pI);if(!e)return null;let t=JSON.parse(e);return!t||typeof t!=`object`?null:t}catch{return null}}function _I(){if(mI())try{window.sessionStorage.removeItem(pI)}catch{}}function vI(e){let t=gI();t&&hI({...t,pollingToken:e})}var yI=()=>oo.PLATFORM_STANDARD,bI=({dispatchHostSignUpSuccess:e,dispatchLoginGateSaga:t,dispatchNavigate:n,setRemoteErrors:r,partnerMode:i})=>async(a,o)=>{try{let r={},s=hc();r=Xi()?{...a,reCaptchaToken:void 0,reCaptchaVersion:void 0}:{...a};let c=aa(),{firstName:l,lastName:u}=HF(r.fullName),{source:d,...f}=s,p={firstName:l,lastName:u,email:r.email?.trim(),password:r.password,reCaptchaToken:r.reCaptchaToken,reCaptchaVersion:r.reCaptchaVersion,language:c,...f,...d&&d!==`direct`?{source:d}:{},partnerMode:i},m=await $N(p);if(m.verificationPending){let e=m.email||p.email;o.resetForm(),hI({userId:m.userId,email:e,pollingToken:m.pollingToken,referrerParams:s}),n(Z.verifyEmail,{userId:m.userId,email:e,pollingToken:m.pollingToken,referrerParams:s,fromSignup:!0,partnerMode:i});return}let h=m;try{gu(h.objectId)}catch(e){R.default.warn(`[handleSignupSubmit] updateIntercom failed`,e)}try{await hP(s)}catch(e){R.default.warn(`[handleSignupSubmit] setReferrerFromWebapp failed`,e)}if(!i){let e=await cI({token:null,planCode:yI(),email:p.email,trial:!0},h.sessionToken);if(e?.apiError){let t=Error(`Subscription creation failed`);throw t.properlyErrorMsg=e.message||`UNKNOWN`,t}}try{Iv()}catch(e){R.default.warn(`[handleSignupSubmit] trackSignupComplete failed`,e)}o.resetForm(),e(h),t({fromWhere:`signup`})}catch(e){R.default.error(`[handleSignupSubmit] errors: `,e),WF([e.properlyErrorMsg],o.setErrors),r([e.properlyErrorMsg])}},xI={fontSize:`13px`,fontWeight:500,color:`var(--color-text)`,mb:`4px`,display:`block`,letterSpacing:`0.01em`},SI=({field:e,type:t,placeholder:n,twoSplit:r,styleOverwrite:i,isPhoneNumber:a,disabled:o,error:s,options:c,clearFormError:l,autoComplete:u,...d})=>{let{onChange:f,...p}=e,m=e=>{l&&l(),f(e)};return(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,"data-testid":d[`data-testid`],disabled:o,error:s,placeholder:U(n),type:t,isPhoneNumber:a,hover:a,twoSplit:r,styleOverwrite:i,preventNegativeValues:a,onChange:m,onInput:t=>{t.target.value!==e.value&&m(t)},options:c,autoComplete:u,...p})},CI=({label:e,inputName:t,error:n=``,type:r=``,width:i=``,disabled:a=!1,options:o=[]})=>{let{control:s,clearErrors:c,formState:{errors:l}}=pe(),u=()=>{Object.keys(l).length>0&&c()};return(0,K.jsxs)(I,{sx:{textAlign:`left`,width:i||`100%`},children:[(0,K.jsx)(I,{component:`label`,htmlFor:t,sx:xI,children:e}),(0,K.jsx)($e,{name:t,control:s,render:({field:e})=>SI({field:e,type:r||`text`,"data-testid":t,error:n,disabled:a,options:o,clearFormError:u})})]})};CI.propTypes={label:V.default.string.isRequired,inputName:V.default.string.isRequired,error:V.default.oneOfType([
465V.default.string,V.default.object]),width:V.default.string,disabled:V.default.bool,type:V.default.string,options:V.default.arrayOf(V.default.shape({}))};var wI=({label:e,inputName:t,error:n=``})=>{let[r,i]=(0,B.useState)(!1),{control:a,clearErrors:o,formState:{errors:s}}=pe(),c=()=>{Object.keys(s).length>0&&o()};return(0,K.jsxs)(I,{sx:{textAlign:`left`,width:`100%`},children:[(0,K.jsx)(I,{component:`label`,htmlFor:t,sx:xI,children:e}),(0,K.jsxs)(I,{sx:{position:`relative`},children:[(0,K.jsx)($e,{name:t,control:a,render:({field:e})=>SI({field:e,type:r?`text`:`password`,"data-testid":t,autoComplete:`new-password`,error:n,clearFormError:c})}),(0,K.jsx)(br,{onClick:()=>i(e=>!e),sx:{position:`absolute`,right:`12px`,top:`8px`,padding:`6px`,color:`var(--color-grey)`,zIndex:2,backgroundColor:`transparent`,borderRadius:`8px`,transition:`all 0.2s ease`,"&:hover":{color:`var(--color-primary)`,backgroundColor:`rgba(54, 172, 178, 0.08)`}},size:`small`,disableRipple:!0,"aria-label":r?`Hide password`:`Show password`,"data-testid":`toggle-password-visibility`,children:r?(0,K.jsx)(Y.IcVisibilityOff,{width:`20px`,height:`20px`}):(0,K.jsx)(Y.IcVisibility,{width:`20px`,height:`20px`})})]})]})};wI.propTypes={label:V.default.string.isRequired,inputName:V.default.string.isRequired,error:V.default.oneOfType([V.default.string,V.default.object])};var TI=[],EI={width:`20px`,height:`20px`},DI={"& > div":{margin:`auto`}},OI={display:`flex`,gap:`4px`,mt:`6px`,fontFamily:`var(--primaryFont)`,fontSize:`12px`,lineHeight:`14px`,fontWeight:400,"@media (max-width: 768px)":{m:0}},kI={width:`100%`,backgroundColor:`rgba(54, 172, 178, 0.35)`,cursor:`not-allowed`},AI={width:`100%`},jI={fontFamily:`var(--primaryFont)`,fontSize:`12px`,lineHeight:`14px`,fontWeight:400,textAlign:`center`,color:`#9ca3af`,mt:`12px`,letterSpacing:`0.01em`},MI={fontSize:13,verticalAlign:`-1px`,mr:`4px`},NI=()=>e=>{let t=UF(e);if(Object.keys(t).length===0)return{values:e,errors:{}};let n={};return Object.keys(t).forEach(e=>{e!==`msg`&&(n[e]={type:`manual`,message:t.msg||``})}),{values:e,errors:n}},PI=[`root`,`fullName`,`email`,`password`],FI=({errors:e=TI,preSetEmail:t=``,openLink:n,setRemoteErrors:r,partnerMode:i})=>{let a=xe(),o=j(e=>sw(e)),s=(...e)=>a(bF(...e)),c=(...e)=>a(MF(...e)),l=(e,t)=>a(Wn({pathname:e,state:t})),{reference:u,reCaptchaToken:d,reCaptchaVersion:f,executeReCaptcha:p}=wM(e),m=B.useMemo(()=>({reCaptchaToken:d,reCaptchaVersion:f}),[d,f]),h=ft({defaultValues:GF({reCaptchaValues:m,preSetEmail:t}),resolver:NI(),mode:`onSubmit`,reValidateMode:`onChange`}),{handleSubmit:g,formState:{errors:_,isSubmitting:v},setError:y,clearErrors:b,reset:x,setValue:S}=h,C=e=>()=>{let t=o[e];n(t)},w=()=>v?(0,K.jsx)(I,{sx:EI,children:(0,K.jsx)(hf,{type:`white`})}):U(i?`signup.create_account`:`signup.start_free_trial_button`),T=()=>({resetForm:()=>x(),setErrors:e=>{b();let t=Object.keys(e).filter(e=>e!==`msg`&&e!==`isRecaptchaError`);if(t.length===0&&e.msg){y(`root`,{type:e.isRecaptchaError?`recaptcha`:`manual`,message:e.msg});return}t.forEach(t=>{y(t,{type:`manual`,message:e.msg||``})})},setFieldValue:(e,t)=>S(e,t,{shouldValidate:!1})}),E=bI({dispatchHostSignUpSuccess:s,dispatchLoginGateSaga:c,dispatchNavigate:l,setRemoteErrors:r,partnerMode:i}),D=async e=>{let t=T();try{let n=Xi()?{}:await p();await E({...e,...n},t)}catch(e){let n=e?.properlyErrorMsg||`CloudCodeError`;WF([n],t.setErrors),r([n])}},ee=PI.map(e=>_[e]?.message).find(Boolean);return(0,K.jsx)(iee,{...h,children:(0,K.jsxs)(I,{component:`form`,onSubmit:g(D),children:[(0,K.jsx)(BF,{reCaptchaValues:m,setRemoteErrors:r}),(0,K.jsx)(CI,{inputName:`fullName`,label:`${U(`signup.placeholder.full_name`)}*`,error:_.fullName}),(0,K.jsx)(gm,{}),(0,K.jsx)(CI,{inputName:`email`,label:`${U(`signup.placeholder.email`)}*`,error:_.email,disabled:!!t}),(0,K.jsx)(gm,{}),(0,K.jsx)(wI,{inputName:`password`,label:`${U(`signup.placeholder.password`)}*`,error:_.password}),ee&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Yf.ErrorMsg,{children:ee}),(0,K.jsx)(gm,{})]}),(0,K.jsx)(I,{sx:DI,ref:u}),(0,K.jsx)(gm,{}),(0,K.jsx)(I,{sx:OI,"data-testid":`tos-text`,children:(0,K.jsx)(Zg,{children:(0,K.jsx)(O,{i18nKey:`signup.form.tos_confirmation`,values:{button:U(i?`signup.create_account`:`signup.start_free_trial_button`)},components:{tos:(0,K.jsx)(mj,{componentClass:`span`,modifier:[`txt--l7`,`color--primary`,`text--left`,`link--clickable`],onClick:C(`tosUrl`),"aria-label":`Terms of Service`}),privacy:(0,K.jsx)(mj,{componentClass:`span`,modifier:[`txt--l7`,`color--primary`,`text--left`,`link--clickable`],onClick:C(`privacyPolicyUrl`),"aria-label":`Privacy Policy`})}})})}),(0,K.jsx)(gm,{}),(0,K.jsx)(q,{type:`submit`,styleOverwrite:v?kI:AI,disabled:v,"data-testid":`signup_submit`,types:v?[`type-full-primary`,`size-large`,`width-flex`,`zindex-11`]:[`type-full-primary`,`width-flex`,`size-large`],children:w()}),!i&&(0,K.jsxs)(I,{sx:jI,children:[(0,K.jsx)(Iee,{sx:MI}),U(`signup.free_trial_note`)]})]})})};FI.propTypes={preSetEmail:V.default.string,openLink:V.default.func.isRequired,errors:V.default.arrayOf(V.default.string),setRemoteErrors:V.default.func.isRequired,partnerMode:V.default.bool},Qn();var II=[{title:`signup.feature_1_title`,desc:`signup.feature_1_desc`},{title:`signup.feature_2_title`,desc:`signup.feature_2_desc`},{title:`signup.feature_3_title`,desc:`signup.feature_3_desc`}],LI=[{title:`signup.partner.feature_1_title`,desc:`signup.partner.feature_1_desc`},{title:`signup.partner.feature_2_title`,desc:`signup.partner.feature_2_desc`}
465],RI={features:II,eyebrow:null,cardTitle:`signup.card_title`,cardSubtitle:`signup.card_subtitle`},zI={features:LI,eyebrow:`signup.partner.eyebrow`,cardTitle:`signup.partner.card_title`,cardSubtitle:`signup.partner.card_subtitle`},BI=e=>Array.isArray(e)?e.some(BI):e===!0||String(e).toLowerCase()===`true`,VI=e=>e?zI:RI,HI=e=>`color-mix(in srgb, var(--color-primary) ${e}%, transparent)`,UI=`linear-gradient(180deg, ${HI(15)} 0%, ${HI(8)} 25%, ${HI(2)} 50%, transparent 100%)`,WI=`linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(250,251,252,0.99) 50%, rgba(255,255,255,0.98) 100%)`,GI=`0 4px 24px rgba(0,0,0,0.08), 0 24px 48px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9)`,KI=`linear-gradient(90deg, transparent 0%, ${HI(40)} 20%, ${HI(60)} 50%, ${HI(40)} 80%, transparent 100%)`,qI=()=>{let e=xe(),t=ir(),{themePreference:n,setThemePreference:i}=oT(),a=(0,B.useRef)(null),o=r.parse(t.search),s=(0,G.default)(o,[`email`],``),c=BI((0,G.default)(o,[`partnerMode`],!1)),l=VI(c),u=j(e=>e?.currentUser||{}),d=u.isLoggedIn&&!u.isLoggingOut,[f,p]=(0,B.useState)([]),[m,h]=(0,B.useState)(!1);return(0,B.useEffect)(()=>{n&&n!==`light`&&(a.current=n)},[n]),(0,B.useEffect)(()=>(n&&n!==`light`&&i(`light`),()=>{a.current&&a.current!==`light`&&i(a.current)}),[]),(0,B.useEffect)(()=>{Cpe(),e(sF(Yl())),h(!0)},[e]),(0,K.jsxs)(I,{sx:{minHeight:`100vh`,display:`flex`,bgcolor:`var(--color-bg)`,position:`relative`,overflow:`hidden`},children:[(0,K.jsx)(I,{sx:{position:`absolute`,inset:0,background:UI,pointerEvents:`none`}}),(0,K.jsxs)(I,{sx:{width:`44%`,maxWidth:`560px`,minWidth:`380px`,display:{xs:`none`,md:`flex`},flexDirection:`column`,padding:`40px 48px`,position:`relative`,zIndex:1},children:[(0,K.jsx)(I,{children:(0,K.jsx)(Y.LogoFull,{width:`110px`,height:`38px`,byWidth:!0})}),(0,K.jsx)(I,{sx:{flex:1,display:`flex`,alignItems:`center`},children:(0,K.jsx)(I,{sx:{display:`flex`,flexDirection:`column`,gap:`36px`,maxWidth:`400px`},children:l.features.map(e=>(0,K.jsxs)(I,{sx:{borderLeft:`3px solid var(--color-primary)`,pl:2.5},children:[(0,K.jsx)(x,{sx:{fontSize:`15px`,fontWeight:700,color:`var(--color-text)`,mb:.5,fontFamily:`var(--primary-font)`},children:U(e.title)}),(0,K.jsx)(x,{sx:{fontSize:`14px`,color:`var(--color-text-secondary)`,lineHeight:1.55,fontFamily:`var(--primary-font)`},children:U(e.desc)})]},e.title))})})]}),(0,K.jsxs)(I,{sx:{flex:1,display:`flex`,flexDirection:`column`,position:`relative`,zIndex:1,minHeight:`100vh`},children:[(0,K.jsx)(PF,{loading:d,showLogin:!0,isMobile:Tu(),location:t,mobileOnlyLogo:!0,topBarOnly:!0}),(0,K.jsx)(I,{sx:{flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:{xs:`20px 16px 40px`,sm:`24px 48px 48px`}},children:(0,K.jsxs)(I,{sx:{maxWidth:`440px`,width:`100%`,position:`relative`,background:WI,borderRadius:`24px`,border:`1px solid rgba(0,0,0,0.08)`,boxShadow:GI,backdropFilter:`blur(20px)`,overflow:`hidden`,padding:{xs:`32px 24px`,sm:`40px`}},children:[(0,K.jsx)(I,{sx:{position:`absolute`,top:0,left:0,right:0,height:`1px`,background:KI,opacity:.8}}),l.eyebrow&&(0,K.jsx)(x,{sx:{display:`inline-flex`,alignItems:`center`,alignSelf:`flex-start`,fontSize:`11px`,fontWeight:700,color:`var(--color-primary)`,letterSpacing:`0.08em`,textTransform:`uppercase`,mb:1.25,fontFamily:`var(--primary-font)`},children:U(l.eyebrow)}),(0,K.jsx)(x,{sx:{fontSize:`28px`,fontWeight:700,color:`var(--color-text)`,letterSpacing:`-0.025em`,lineHeight:1.15,mb:.75,fontFamily:`var(--primary-font)`},children:U(l.cardTitle)}),(0,K.jsx)(x,{sx:{fontSize:`14px`,color:`var(--color-text-secondary)`,mb:3.5,lineHeight:1.5,fontFamily:`var(--primary-font)`},children:U(l.cardSubtitle)}),!d&&m&&(0,K.jsx)(FI,{openLink:lu,preSetEmail:s,errors:f,setRemoteErrors:p,partnerMode:c},`SignupForm`)]})})]})]})},JI=Wi(),YI=()=>{let e=xe(),t=t=>{t.preventDefault(),IN(o_.host).then(t=>e(xF(nN(t),!1))).then(()=>{ipe(o_.host),e(MF({fromWhere:`login`}))}).catch(e=>{R.default.error(e)})};return(0,K.jsxs)(PF,{center:!0,withSubHeadline:!0,title:U(`signup.download.title`,{}),"data-testid":`host-sign-up-download`,children:[(0,K.jsx)(Yg,{children:U(`signup.download.description`,{})}),(0,K.jsx)(bm,{}),(0,K.jsx)(q,{onClick:()=>window.open(JI.PROPERLY_DEEP_LINK_IOS_ANDROID_WEB,`_blank`,`noopener,noreferrer`),types:[`type-full-primary`,`width-flex`,`size-large`],children:U(`signup.download.cta`,{})}),(0,K.jsx)(bm,{}),(0,K.jsx)(q,{onClick:e=>t(e),types:[`type-flat-black`,`width-flex`,`size-medium`,`fontw-normal`],children:U(`signup.download.use_as_host`)}),(0,K.jsx)(bm,{}),(0,K.jsx)(jP,{})]})},XI=_i.default.bind(mF),ZI=()=>{let e=xe(),{user:t}=j(e=>e.currentUser),n=t?.email,r=t?.phone,i=``;return r&&(i=(0,K.jsxs)(`span`,{children:[(0,K.jsx)(O,{i18nKey:`signup.download.description_sent`,components:{phone:(0,K.jsx)(`strong`,{})},values:{phoneValue:r}}),(0,K.jsx)(`br`,{}),(0,K.jsx)(`br`,{})]})),(0,K.jsxs)(PF,{center:!0,withSubHeadline:!0,title:U(`signup.complete.title`,{}),children:[(0,K.jsxs)(Yg,{children:[i,(0,K.jsx)(O,{i18nKey:`signup.download.description_sent_2`,components:{username:(0,K.jsx)(`strong`,{})},values:{emailValue:n}})]}),(0,K.jsx)(bm,{}),(0,K.jsx)(fm,{isFirst:!0,isLast:!0,styleOverwrite:{padding:24,height:`auto`}
465,children:(0,K.jsxs)(`div`,{className:XI(`wizard__clicktxt-wrap`),children:[(0,K.jsx)(Xg,{children:U(`signup.complete.no_link`)}),(0,K.jsx)(gm,{}),(0,K.jsx)(`div`,{onClick:()=>e(Wn(Z.hostDownload)),className:XI(`wizard__clicktxt`),children:U(`signup.complete.send_to_different`)})]})}),(0,K.jsx)(_m,{}),(0,K.jsx)(fm,{isFirst:!0,isLast:!0,styleOverwrite:{padding:24,height:`auto`},children:(0,K.jsxs)(`div`,{className:XI(`wizard__clicktxt-wrap`),children:[(0,K.jsx)(Xg,{children:U(`signup.complete.questions`)}),(0,K.jsx)(gm,{}),(0,K.jsx)(`div`,{onClick:()=>xu(),className:XI(`wizard__clicktxt`),children:U(`signup.complete.chat`,{})})]})}),(0,K.jsx)(Sm,{}),(0,K.jsx)(jP,{})]})},QI={WAITING:`waiting`,VERIFYING:`verifying`,VERIFIED:`verified`,VERIFIED_VIA_LINK:`verified_via_link`,EXPIRED:`expired`,INVALID:`invalid`,SESSION_FAILED:`session_failed`},$I={ALREADY_VERIFIED:`ALREADY_VERIFIED`,TOKEN_EXPIRED:`TOKEN_EXPIRED`},eL=4e3,tL=5e3,nL={minHeight:`100vh`,width:`100%`,position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,bgcolor:`var(--color-bg)`},rL={position:`absolute`,top:40,left:48,zIndex:10,transition:`opacity 0.3s ease, transform 0.3s ease`,"&:hover":{transform:`scale(1.02)`},"@media (max-width: 768px)":{left:`50%`,transform:`translateX(-50%)`,top:28,"&:hover":{transform:`translateX(-50%) scale(1.02)`}}},iL={position:`relative`,zIndex:1,width:`100%`,maxWidth:`440px`,margin:`0 auto`,"@media (max-width: 768px)":{maxWidth:`100%`,padding:`0 16px`}},aL={display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,textAlign:`center`,padding:{xs:`48px 24px`,sm:`64px 48px`},minHeight:{xs:`580px`,sm:`660px`}},oL={fontSize:`22px`,fontWeight:600,color:`var(--color-text)`,letterSpacing:`-0.01em`,lineHeight:1.25,marginBottom:`12px`,fontFamily:`var(--primary-font)`},sL={fontSize:`14px`,color:`var(--color-text-secondary)`,lineHeight:1.55,fontFamily:`var(--primary-font)`},cL={...sL,fontSize:`13px`,marginTop:`16px`},lL={cursor:`pointer`,textDecoration:`underline`,color:`var(--color-primary)`,fontSize:`14px`,fontFamily:`var(--primary-font)`,fontWeight:500,marginTop:`20px`,display:`inline-block`},uL={background:`none`,border:`none`,padding:0,font:`inherit`,color:`var(--color-primary)`,cursor:`pointer`,textDecoration:`underline`,fontWeight:500},dL={...uL,cursor:`default`,color:`#999`},fL=_i.default.bind(mF);function pL({children:e}){return(0,K.jsxs)(I,{sx:nL,className:fL(`login-page-wrapper`),children:[(0,K.jsx)(Sn,{in:!0,timeout:800,children:(0,K.jsx)(I,{sx:rL,className:fL(`login-logo-wrapper`),children:(0,K.jsx)(Y,{children:(0,K.jsx)(Y.LogoFull,{width:`140px`,height:`50px`,byWidth:!0})})})}),(0,K.jsx)(Sn,{in:!0,timeout:600,children:(0,K.jsx)(I,{sx:iL,children:(0,K.jsx)(I,{className:fL(`wizard-container`),sx:aL,children:e})})})]})}pL.propTypes={children:V.default.node.isRequired},Qn();function mL(e){try{return e?.message?JSON.parse(e.message):{}}catch{return{}}}function hL({mountedRef:e,setStatus:t,setVerifyUserId:n,setVerifyEmail:r}){let i=xe(),[a,o]=on(),s=a.get(`token`),c=(0,B.useRef)(null);return(0,B.useEffect)(()=>{!s||c.current===s||(c.current=s,(async()=>{try{if(await FM.default.Cloud.run(`verifyEmail`,{token:s}),!e.current)return;o({},{replace:!0}),_I(),t(QI.VERIFIED_VIA_LINK)}catch(a){if(!e.current)return;let s=mL(a);o({},{replace:!0}),_I(),s.code===$I.ALREADY_VERIFIED?(t(QI.VERIFIED),i(Wn({pathname:Z.login}))):s.code===$I.TOKEN_EXPIRED?(n(s.userId),r(s.email),t(QI.EXPIRED)):t(QI.INVALID)}})())},[s,i,o,e,t,n,r]),{token:s}}function gL({token:e,pollingToken:t,referrerParams:n,mountedRef:r,setStatus:i,setPollSlow:a,setPollTimedOut:o}){let s=xe();(0,B.useEffect)(()=>{if(e||!t)return;let c=null,l=!1,u=Date.now(),d=async e=>{try{await FM.default.User.become(e)}catch(e){if(mr(e,{tags:{flow:`verify_email`,step:`become`}}),!r.current)return;i(QI.SESSION_FAILED);return}let t;try{t=nN(FM.default.User.current())}catch(e){if(mr(e,{tags:{flow:`verify_email`,step:`post_become`}}),!r.current)return;i(QI.SESSION_FAILED);return}if(r.current){_I();try{gu(t.objectId)}catch(e){mr(e,{tags:{flow:`verify_email`,step:`intercom`}})}try{Iv()}catch(e){mr(e,{tags:{flow:`verify_email`,step:`tracking`}})}if(n)try{await hP(n)}catch(e){mr(e,{tags:{flow:`verify_email`,step:`referrer`}})}r.current&&(s(bF(t)),s(MF({fromWhere:`signup`})))}},f=async()=>
465{if(l)return;try{let e=await FM.default.Cloud.run(`checkVerificationStatus`,{pollingToken:t});if(l||!r.current)return;if(e.verified&&e.sessionToken){i(QI.VERIFIED),await d(e.sessionToken);return}}catch{if(l||!r.current)return}let e=Date.now()-u;if(e>=6e5){r.current&&o(!0);return}e>=3e5&&r.current&&a(!0),c=setTimeout(f,eL)};return c=setTimeout(f,eL),()=>{l=!0,c&&clearTimeout(c)}},[e,t,n,s,r,i,a,o])}function _L({mountedRef:e,verifyUserId:t,verifyEmail:n,pollingToken:r,setPollingToken:i}){let[a,o]=(0,B.useState)(!1),[s,c]=(0,B.useState)(0),l=(0,B.useRef)(null);return(0,B.useEffect)(()=>()=>{l.current&&clearInterval(l.current)},[]),{handleResend:async()=>{if(!(!t||!n||a)){o(!0),c(60);try{let e={userId:t,email:n};r&&(e.pollingToken=r);let a=await FM.default.Cloud.run(`resendVerificationEmail`,e);a?.pollingToken&&(i(a.pollingToken),vI(a.pollingToken))}catch{}l.current&&clearInterval(l.current),l.current=setInterval(()=>{if(!e.current){clearInterval(l.current),l.current=null;return}c(e=>e<=1?(clearInterval(l.current),l.current=null,o(!1),0):e-1)},1e3)}},resendDisabled:a,resendLabel:a?`${U(`verify_email.resend`)} (${s}s)`:U(`verify_email.resend`)}}var vL=e=>t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),e())};function yL({onClick:e,children:t,sx:n}){return(0,K.jsx)(I,{component:`span`,onClick:e,onKeyDown:vL(e),role:`button`,tabIndex:0,sx:n||lL,children:t})}yL.propTypes={onClick:V.default.func.isRequired,children:V.default.node.isRequired,sx:V.default.object};function bL(){return(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,gap:`12px`},children:[(0,K.jsx)(I,{sx:{width:`20px`,height:`20px`},children:(0,K.jsx)(hf,{})}),(0,K.jsx)(I,{component:`span`,sx:sL,children:U(`verify_email.verifying`)})]})}function xL({dispatch:e}){return(0,B.useEffect)(()=>{let t=setTimeout(()=>{e(Wn({pathname:Z.login}))},tL);return()=>clearTimeout(t)},[e]),(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{component:`h2`,sx:oL,children:U(`verify_email.success`)}),(0,K.jsx)(I,{component:`p`,sx:sL,children:U(`verify_email.redirecting`)})]})}xL.propTypes={dispatch:V.default.func.isRequired};function SL({goToLogin:e}){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{component:`h2`,sx:oL,children:U(`verify_email.success`)}),(0,K.jsx)(I,{component:`p`,sx:{...sL,marginBottom:`24px`},children:U(`verify_email.return_or_login`)}),(0,K.jsx)(q,{onClick:e,children:U(`verify_email.go_to_login`)})]})}SL.propTypes={goToLogin:V.default.func.isRequired};function CL({verifyUserId:e,verifyEmail:t,handleResend:n,resendDisabled:r,resendLabel:i,goToSignup:a}){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{component:`h2`,sx:oL,children:U(`verify_email.expired`)}),e&&t?(0,K.jsx)(I,{sx:{marginTop:`12px`},children:(0,K.jsx)(q,{onClick:n,disabled:r,children:i})}):(0,K.jsx)(yL,{onClick:a,children:U(`verify_email.back_to_signup`)})]})}CL.propTypes={verifyUserId:V.default.string,verifyEmail:V.default.string,handleResend:V.default.func.isRequired,resendDisabled:V.default.bool.isRequired,resendLabel:V.default.string.isRequired,goToSignup:V.default.func.isRequired};function wL({goToSignup:e}){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{component:`h2`,sx:oL,children:U(`verify_email.invalid`)}),(0,K.jsx)(yL,{onClick:e,children:U(`verify_email.back_to_signup`)})]})}wL.propTypes={goToSignup:V.default.func.isRequired};function TL({goToLogin:e}){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{component:`p`,sx:sL,children:U(`verify_email.session_failed`)}),(0,K.jsx)(yL,{onClick:e,children:U(`verify_email.back_to_login`)})]})}TL.propTypes={goToLogin:V.default.func.isRequired};function EL({goToLogin:e}){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{component:`h2`,sx:oL,children:U(`verify_email.check_email_title`)}),(0,K.jsx)(I,{component:`p`,sx:sL,children:U(`verify_email.check_email_generic`)}),(0,K.jsx)(yL,{onClick:e,children:U(`verify_email.back_to_login`)})]})}EL.propTypes={goToLogin:V.default.func.isRequired};function DL({verifyEmail:e,pollSlow:t,pollTimedOut:n,handleResend:r,resendDisabled:i,resendLabel:a,goToSignup:o}){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{component:`h2`,sx:oL,children:U(`verify_email.check_email_title`)}),(0,K.jsxs)(I,{component:`p`,sx:sL,children:[U(`verify_email.sent_to`),` `,(0,K.jsx)(I,{component:`strong`,sx:{color:`var(--color-text)`,fontWeight:600},children:e})]}),(0,K.jsx)(I,{component:`p`,sx:{...sL,marginTop:`16px`},children:U(`verify_email.click_link`)}),(n||t)&&(0,K.jsx)(I,{component:`p`,sx:cL,children:U(n?`verify_email.poll_timed_out`:`verify_email.poll_slow`)}),(0,K.jsxs)(I,{component:`p`,sx:{...sL,marginTop:`24px`}
465,children:[U(`verify_email.no_email`),` `,(0,K.jsx)(`button`,{type:`button`,onClick:r,disabled:i,"aria-disabled":i,style:i?dL:uL,children:a})]}),(0,K.jsx)(yL,{onClick:o,sx:{...lL,marginTop:`12px`},children:U(`verify_email.use_different_email`)})]})}DL.propTypes={verifyEmail:V.default.string,pollSlow:V.default.bool.isRequired,pollTimedOut:V.default.bool.isRequired,handleResend:V.default.func.isRequired,resendDisabled:V.default.bool.isRequired,resendLabel:V.default.string.isRequired,goToSignup:V.default.func.isRequired},Qn();var OL=()=>{let e=xe(),t=ir(),n=t.state?.userId,r=t.state?.email,i=t.state?.pollingToken,a=t.state?.referrerParams,o=(0,B.useRef)(!0);(0,B.useEffect)(()=>(o.current=!0,()=>{o.current=!1}),[]);let[s]=on(),c=!!s.get(`token`),l=c?null:gI(),[u,d]=(0,B.useState)(c?QI.VERIFYING:QI.WAITING),[f,p]=(0,B.useState)(n||l?.userId||null),[m,h]=(0,B.useState)(r||l?.email||null),[g,_]=(0,B.useState)(i||l?.pollingToken||null),[v]=(0,B.useState)(a||l?.referrerParams||null),[y,b]=(0,B.useState)(!1),[x,S]=(0,B.useState)(!1),{token:C}=hL({mountedRef:o,setStatus:d,setVerifyUserId:p,setVerifyEmail:h});gL({token:C,pollingToken:g,referrerParams:v,mountedRef:o,setStatus:d,setPollSlow:b,setPollTimedOut:S});let{handleResend:w,resendDisabled:T,resendLabel:E}=_L({mountedRef:o,verifyUserId:f,verifyEmail:m,pollingToken:g,setPollingToken:_}),D=()=>e(Wn({pathname:Z.signup})),ee=()=>e(Wn({pathname:Z.login})),te;return te=u===QI.VERIFYING?(0,K.jsx)(bL,{}):u===QI.VERIFIED?(0,K.jsx)(xL,{dispatch:e}):u===QI.VERIFIED_VIA_LINK?(0,K.jsx)(SL,{goToLogin:ee}):u===QI.EXPIRED?(0,K.jsx)(CL,{verifyUserId:f,verifyEmail:m,handleResend:w,resendDisabled:T,resendLabel:E,goToSignup:D}):u===QI.INVALID?(0,K.jsx)(wL,{goToSignup:D}):u===QI.SESSION_FAILED?(0,K.jsx)(TL,{goToLogin:ee}):!f||!m?(0,K.jsx)(EL,{goToLogin:ee}):(0,K.jsx)(DL,{verifyEmail:m,pollSlow:y,pollTimedOut:x,handleResend:w,resendDisabled:T,resendLabel:E,goToSignup:D}),(0,K.jsx)(pL,{children:te})},kL=`/static/login-web-hkbk2aAF.webp`,AL=4200,jL={INITIAL:0,SUCCESS:1,ERROR:2},ML=()=>{let e=xe(),{trackClick:t,trackError:n}=nT(`ResetPassword`),[r,i]=(0,B.useState)(``),[a,o]=(0,B.useState)(!1),[s,c]=(0,B.useState)(jL.INITIAL),l=e=>Ql(e)||$l(e),u=e=>$l(e)?U(`resetpassword.text_message`,{number:e}):U(`resetpassword.email_message`,{email:e}),d=()=>{c(jL.INITIAL)},f=e=>{i(e.target.value),c(jL.INITIAL)},p=e=>{e.preventDefault(),t(`reset_password_submit`),l(r)?FN(r).then(()=>{t(`reset_password_success`),o(!1),c(jL.SUCCESS),setTimeout(d,AL)}).catch(()=>{n(`reset_password_error`,`request_failed`),o(!0),c(jL.ERROR)}):(n(`reset_password_validation_error`,`invalid_input`),o(!0),c(jL.INITIAL))},m=l(r),h=!m&&a;return s===jL.ERROR&&(h=U(`resetpassword.error_msg`,{username:r})),(0,K.jsx)(hv,{title:U(`login.reset`),logo:!0,imageUrl:kL,children:(0,K.jsxs)(PF,{center:!0,withMaxWidth:!0,withSubHeadline:!0,showToast:s===jL.SUCCESS,message:u(r),title:U(`login.reset`,{}),renderBack:!0,showOnDesktop:!0,onClickBack:()=>e(Wn(Z.login)),mobileOnlyLogo:!0,children:[(0,K.jsx)(Yg,{children:U(`login.enter_email`,{})}),(0,K.jsx)(bm,{}),(0,K.jsxs)(`form`,{onSubmit:p,children:[(0,K.jsx)(Yf,{"data-testid":`email-for-forgot-password`,isFirst:!0,isLast:!0,error:h,showErrorMsg:h?.length,placeholder:U(`login.email_phone`,{}),type:`text`,onChange:f}),(0,K.jsx)(ym,{}),(0,K.jsx)(q,{"data-testid":`forgot-password-button`,fakeDisable:!m,onClick:p,types:[`type-full-primary`,`width-flex`,`size-large`],children:U(`login.submit`,{})})]})]})})};Qn();var NL=()=>{let e=xe(),t=ir(),{trackClick:n,trackError:r}=nT(`NewPassword`),i=j(e=>e.loginSignUpReducers),[a,o]=(0,B.useState)({pw:``,pwRetype:``,validToken:!1,email:``,token:``,showErrors:!1,isSubmitting:!1,showSuccessMobile:!1,errorCode:U(`newpassword.nomatch`)});(0,B.useEffect)(()=>{let e=new URLSearchParams(t.search),n=e.get(`token`),r=e.get(`email`);n?o(e=>({...e,validToken:!0,email:r,token:n})):(R.default.error(`No token provided from route`,t),o(e=>({...e,validToken:!1})))},[t]);let s=(e,t)=>{let n=``,r=eu(e);r.status?e!==t&&(n=U(`newpassword.nomatch`)):n=r.message,o(e=>({...e,errorCode:n}))},c=e=>{let t=e.target.value;o(e=>({...e,pw:t})),s(t,a.pwRetype)},l=e=>{let t=e.target.value;o(e=>({...e,pwRetype:t})),s(a.pw,t)},u=t=>{t.preventDefault(),n(`new_password_submit`),s(a.pw,a.pwRetype),!a.errorCode&&a.validToken?(o(e=>({...e,showErrors:!1,errorCode:``,isSubmitting:!0})),LN(a.pw,a.token).then(t=>{n(`new_password_success`),wu()?o(e=>({...e,showSuccessMobile:!0,isSubmitting:!1})):e(CF(t.sessionToken))}).catch(e=>{r(`new_password_error`,`request_failed`),o(e=>({...e,errorCode:U(`newpassword.server_error`),showErrors:!0,isSubmitting:!1})),setTimeout(()=>{o(e=>({...e,errorCode:``,showErrors:!1}))},1e4),R.default.error(`handleSubmit - newpassword`,e)})):(r(`new_password_validation_error`,`validation_failed`),o(e=>({...e,showErrors:!0})))},d=a.showErrors?a.errorCode:!1,{isWaiting:f}=i;return(0,K.jsx)(hv,{title:U(`login.create_new`),logo:!0,imageUrl:kL,children:(0,K.jsxs)(PF,{center:!0,withMaxWidth:!0,withSubHeadline:!0,loading:f||a.isSubmitting,title:U(`login.create_new`,{}),mobileOnlyLogo:!0,children:[(0,K.jsx)(Yg,{type:a.validToken?`red`:``,children:a.validToken?(0,K.jsxs)(`span`,{children:[U(`login.enter_new_password`,{}),` `,(0,K.jsx)(Yg,{type:`bold`,children:a.email}),` `,U(`login.account`,{})]}):U(`login.invalid_token`)}),(0,K.jsx)(bm,{}),(0,K.jsxs)(`form`,{onSubmit:u,children:[!a.showSuccessMobile&&(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`span`,{style:{textAlign:`left`},children:[(0,K.jsx)(Yf,{placeholder:U(`login.new_password`,{}),styleOverwrite:{borderRadius:4},error:d,showErrorMsg:!0,type:`password`,onChange:c}),(0,K.jsx)(gm,{}),(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,error:d,placeholder:U(`login.retype_password`,{}),type:`password`,onChange:l})]}),(0,K.jsx)(ym,{}),(0,K.jsx)(q,{fakeDisable:!a.token||a.pw!==a.pwRetype||!!a.errorCode,onClick:u,types:[`type-full-primary`,`width-flex`,`size-large`],children:U(`login.submit`,{})}),(0,K.jsx)(ym,{})]}),a.showSuccessMobile&&(0,K.jsx)(`div`,{children:(0,K.jsx)(Xg,{children:U(`account.password_was_updated`)})})]})]})})};Qn();var PL=({isEntry:e})=>{let t=xe(),n=ir(),i=Rn();return(0,B.useEffect)(()=>{yu(!0),Nv(!1),R.default.info(`LoginAsComponent`);let a=r.parse(n.search),{search:o}=n,{id:s,redirectRoute:c,"*":l}=i||{},{sessionToken:u}=a||{},d=s||u,f=a?.redirectParams,p;if(f)try{p=ns(window.atob(f))}catch{R.default.error(`Could not decode redirectParam`)}if(!e&&d&&d!==`undefined`&&d!==`null`){let e=l?`${c}/${l}`:c;e&&!e.startsWith(`/`)&&(e=`/${e}
465`),t(TF(d,o&&e?e+o:e,p?{adminUsername:p.adminUsername,adminSession:p.adminSessionId,adminUserId:p.adminUserId}:null))}return()=>{t(wF(!1))}},[n.search,i?.id,i?.redirectRoute,i?.[`*`],e,t]),(0,K.jsx)(I,{sx:{height:`100%`,width:`100%`},children:(0,K.jsx)(xf,{})})};Qn();var FL={backgroundColor:`var(--surface-base)`,borderRadius:`16px`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-sm)`,p:2.5,position:`relative`,transition:`all 0.25s ease`,minHeight:420,display:`flex`,flexDirection:`column`,overflow:`visible`,"&:hover":{boxShadow:`var(--shadow-lg)`,transform:`translateY(-4px)`,borderColor:`var(--color-border-search)`}},IL={...FL,border:`2px solid var(--color-primary)`,backgroundColor:`var(--surface-base)`,"&:hover":{boxShadow:`var(--shadow-lg), 0 0 20px rgba(54, 172, 178, 0.15)`,transform:`translateY(-4px)`}},LL={...FL,border:`2px solid var(--color-primary)`,boxShadow:`var(--shadow-lg), 0 0 30px rgba(54, 172, 178, 0.2)`,zIndex:1,"&:hover":{boxShadow:`var(--shadow-xl), 0 0 40px rgba(54, 172, 178, 0.3)`,transform:`translateY(-4px)`}},RL={position:`absolute`,top:-14,left:`50%`,transform:`translateX(-50%)`,px:2.5,py:.75,borderRadius:`24px`,fontSize:11,fontWeight:700,textTransform:`uppercase`,letterSpacing:1,whiteSpace:`nowrap`,boxShadow:`var(--shadow-md)`},zL={...RL,backgroundColor:`var(--color-primary)`,color:`var(--color-real-white)`},BL={...RL,background:`linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%)`,color:`var(--color-real-white)`,animation:`pulse 2s infinite`,"@keyframes pulse":{"0%, 100%":{boxShadow:`0 0 0 0 rgba(54, 172, 178, 0.4)`},"50%":{boxShadow:`0 0 0 8px rgba(54, 172, 178, 0)`}}},VL={fontSize:18,fontWeight:700,color:`var(--color-text)`,textAlign:`center`,mb:.5,mt:.5,minHeight:48,display:`flex`,alignItems:`center`,justifyContent:`center`},HL={display:`flex`,alignItems:`center`,justifyContent:`center`,gap:.5,my:1.5,minHeight:60},UL={fontSize:24,fontWeight:700,color:`var(--color-primary)`,alignSelf:`flex-start`,mt:.5},WL={fontSize:44,fontWeight:800,lineHeight:1,color:`var(--color-text)`},GL={fontSize:12,color:`var(--color-text-secondary)`,ml:.5,maxWidth:70,lineHeight:1.3,alignSelf:`center`},KL={height:`1px`,backgroundColor:`var(--color-divider)`,my:1.5,mx:-1},qL={listStyle:`none`,p:0,m:0,flex:1,mb:1.5,minHeight:150},JL={display:`flex`,alignItems:`flex-start`,gap:1.5,py:.75,fontSize:13,color:`var(--color-text)`,lineHeight:1.4},YL={width:18,height:18,minWidth:18,borderRadius:`50%`,backgroundColor:`var(--color-primary)`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,mt:.25},XL={fontSize:12,color:`var(--color-text-secondary)`,textAlign:`center`,mb:2,lineHeight:1.5},ZL={color:`var(--color-primary)`,fontWeight:700},QL={fontSize:11,color:`var(--color-text-secondary)`,textAlign:`center`,mt:2,"& span":{color:`var(--color-primary)`,cursor:`pointer`,fontWeight:600,"&:hover":{textDecoration:`underline`}}},$L={display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,my:1.5,minHeight:60},eR={fontSize:32,fontWeight:800,color:`var(--color-primary)`},tR={fontSize:14,color:`var(--color-text-secondary)`,fontWeight:500},nR={mt:`auto`,pt:2},rR={width:`100%`,borderRadius:`12px`,padding:`14px 24px`,fontSize:`15px`,fontWeight:700,textTransform:`none`},iR={width:`100%`,borderRadius:`12px`,padding:`12px 24px`,fontSize:`14px`,fontWeight:600,textTransform:`none`},aR=({feature:e})=>{let t=/^\*(.*)\*$/.exec(e);return t?(0,K.jsx)(`strong`,{children:t[1]}):(0,K.jsx)(`span`,{children:e})};aR.propTypes={feature:V.default.string.isRequired};var oR=({title:e=``,planId:t=``,price:n=0,forwhat:r=``,features:i=[],mode:a=``,onContact:o=()=>{},nextRenewal:s=``,trialEnd:c=``,handleCancelClick:l=()=>{},planType:u=``,handleUpgradeClick:d=()=>{},subscriptionCanceled:f=!1,isRecommended:p=!1,showCurrentTrialUpgradeAction:m=!1,contactUs:h=!1})=>{let g=Vn(),_=a===`your`,v=u===`staff`,y=u===`trial`,b=_&&y,S=t===oo.COHOST,C=h||t===oo.REMOTE_INSPECTION,w=()=>{nd(`pricing_learn_more`,{component:`PricingCard`,planId:t,planTitle:e}),o(e)},T=()=>{nd(`pricing_upgrade`,{component:`PricingCard`,planId:t,planTitle:e,planType:u}),d()},E=()=>{nd(`pricing_contact_us`,{component:`PricingCard`,planId:t,planTitle:e,planType:u}),o(e)},D=()=>{nd(`pricing_cancel`,{component:`PricingCard`,planId:t,planTitle:e}),l()},ee=FL;return _&&!v?ee=IL:p&&!_&&(ee=LL),(0,K.jsxs)(I,{sx:ee,children:[_&&!v&&(0,K.jsx)(I,{sx:zL,children:U(`pricing.current_plan`)}),!_&&p&&(0,K.jsx)(I,{sx:BL,children:U(`pricing.most_popular`)}),!v&&(0,K.jsx)(x,{sx:VL,children:e}),h&&!_?(0,K.jsx)(I,{sx:$L,children:(0,K.jsx)(x,{sx:tR,children:U(`pricing.contact_us_quote`)})}):y?(0,K.jsxs)(I,{sx:$L,children:[(0,K.jsx)(x,{sx:eR,children:U(`pricing.free`)}),(0,K.jsx)(x,{sx:tR,children:U(`pricing.on_trial`)})]}):!v&&!S?(0,K.jsxs)(I,{sx:HL,children:[(0,K.jsx)(x,{component:`span`,sx:UL,children:`$`}),(0,K.jsx)(x,{component:`span`,sx:WL,children:n}),(0,K.jsx)(x,{component:`span`,sx:GL,children:r})]}):null,_&&!v&&(0,K.jsxs)(I,{sx:XL,children:[!f&&(0,K.jsx)(I,{children:y&&c?U(`account.will_end_soon`,{date:(0,z.default)(c).format(`L`)}):(0,K.jsx)(O,{i18nKey:`account.next_renew`,components:{date:(0,K.jsx)(I,{component:`span`,sx:ZL})},values:{dateValue:(0,z.default)(s).format(`L`)}})}),f&&(0,K.jsx)(O,{i18nKey:`account.subscription_expire`,components:{date:(0,K.jsx)(I,{component:`span`,sx:ZL})},values:{dateValue:(0,z.default)(s).format(`L`)}}),(0,K.jsx)(I,{sx:{mt:1,"& a":{textDecoration:`none`,fontWeight:600,cursor:`pointer`,"&:hover":{textDecoration:`underline`}}},children:(0,K.jsx)(O,{i18nKey:`account.update_billing_info`,components:{anchor:(0,K.jsx)(`a`,{style:{color:`var(--color-primary)`},href:`/settings/payment-methods/`,onClick:e=>{e.preventDefault(),e.stopPropagation(),Yv(),g(`/settings/payment-methods/`)}})}})})]}),!v&&i.length>0&&(0,K.jsx)(I,{sx:KL}),i.length>0&&(0,K.jsx)(I,{component:`ul`,sx:qL,children:i.map((t,n)=>(0,K.jsxs)(I,{component:`li`,sx:JL,children:[(0,K.jsx)(I,{sx:YL,children:(0,K.jsx)(Y.IcCheckicon,{height:`10px`,width:`10px`,fill:`var(--color-real-white)`})}),(0,K.jsx)(aR,{feature:t})]},`feature-${e}-${n}`))}),(0,K.jsxs)(I,{sx:nR,children:[v&&(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`,`fontw-normal`],styleOverwrite:rR,onClick:T,children:U(`pricing.upgrade_now`)}),b&&m&&(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`,`fontw-normal`],styleOverwrite:rR,onClick:T,children:U(`pricing.continue_with_this_plan`)}),!_&&!v&&p&&(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`,`fontw-normal`],styleOverwrite:rR,onClick:C?
465E:T,children:C?U(`pricing.contact_us`):t===oo.PLATFORM_PRO?U(`pricing.upgrade_to_plan`,{plan:e}):`${U(`pricing.upgrade`)} â`}),!_&&!v&&!p&&(0,K.jsx)(q,{types:[`type-border-primary`,`size-large`],styleOverwrite:iR,onClick:C?E:w,children:U(C?`pricing.contact_us`:`pricing.learn_more`)})]}),_&&!v&&!f&&(0,K.jsx)(I,{sx:QL,children:(0,K.jsx)(O,{i18nKey:`account.would_ulike_to_cancel`,components:{dowhat:(0,K.jsx)(`span`,{onClick:D})}})})]})};oR.propTypes={title:V.default.string,planId:V.default.string,trialEnd:V.default.oneOfType([V.default.string,V.default.instanceOf(Date)]),price:V.default.number,forwhat:V.default.string,features:V.default.arrayOf(V.default.string),mode:V.default.string,onContact:V.default.func,nextRenewal:V.default.string,handleCancelClick:V.default.func,planType:V.default.string,handleUpgradeClick:V.default.func,subscriptionCanceled:V.default.bool,isRecommended:V.default.bool,showCurrentTrialUpgradeAction:V.default.bool,contactUs:V.default.bool};var sR={position:`relative`,display:`flex`,flexDirection:`column`,minHeight:390,p:{xs:2.25,sm:2.75},borderRadius:`8px`,border:`1px solid var(--color-border)`,backgroundColor:`var(--surface-base)`,boxShadow:`var(--shadow-sm)`},cR={...sR,border:`2px solid var(--color-primary)`,boxShadow:`0 18px 42px rgba(54, 172, 178, 0.16)`},lR={position:`absolute`,top:-13,left:`50%`,transform:`translateX(-50%)`,px:2,py:.65,borderRadius:`999px`,backgroundColor:`var(--color-primary)`,color:`var(--color-real-white)`,fontSize:11,fontWeight:700,letterSpacing:`0.08em`,textTransform:`uppercase`,whiteSpace:`nowrap`,boxShadow:`var(--shadow-md)`},uR={minHeight:44,display:`flex`,alignItems:`center`,justifyContent:`center`,textAlign:`center`,fontSize:22,lineHeight:1.18,fontWeight:700,color:`var(--color-text)`,mt:1},dR={display:`flex`,alignItems:`center`,justifyContent:`center`,gap:.75,minHeight:74,my:1.5},fR={alignSelf:`flex-start`,mt:.8,color:`var(--color-primary)`,fontSize:24,fontWeight:800},pR={color:`var(--color-text)`,fontSize:50,lineHeight:1,fontWeight:800},mR={color:`var(--color-text-secondary)`,fontSize:13,lineHeight:1.3,maxWidth:92},hR={height:`1px`,backgroundColor:`var(--color-divider)`,my:1},gR={listStyle:`none`,p:0,m:0,flex:1},_R={display:`flex`,gap:1.2,py:.7,color:`var(--color-text)`,fontSize:13,lineHeight:1.35},vR={width:18,height:18,minWidth:18,mt:.05,borderRadius:`50%`,backgroundColor:`var(--color-primary)`,display:`flex`,alignItems:`center`,justifyContent:`center`},yR={mt:2},bR={width:`100%`,height:46,borderRadius:`6px`,fontSize:15,fontWeight:700};function xR(e){let t=/^\*(.*)\*$/.exec(e);return t?(0,K.jsx)(`strong`,{children:t[1]}):(0,K.jsx)(`span`,{children:e})}var SR=({title:e,planId:t,price:n,forwhat:r,features:i=[],isCurrentPlan:a=!1,isRecommended:o=!1,onSelect:s})=>{let c=i.slice(0,5);return(0,K.jsxs)(I,{sx:o?cR:sR,"data-plan-id":t,children:[o&&(0,K.jsx)(I,{sx:lR,children:U(`pricing.most_popular`)}),(0,K.jsx)(x,{component:`h3`,sx:uR,children:e}),(0,K.jsxs)(I,{sx:dR,children:[(0,K.jsx)(x,{component:`span`,sx:fR,children:`$`}),(0,K.jsx)(x,{component:`span`,sx:pR,children:n}),(0,K.jsx)(x,{component:`span`,sx:mR,children:r})]}),(0,K.jsx)(I,{sx:hR}),(0,K.jsx)(I,{component:`ul`,sx:gR,children:c.map((t,n)=>(0,K.jsxs)(I,{component:`li`,sx:_R,children:[(0,K.jsx)(I,{sx:vR,"aria-hidden":`true`,children:(0,K.jsx)(Y.IcCheckicon,{height:`10px`,width:`10px`,fill:`var(--color-real-white)`})}),xR(t)]},`${e}-${t}-${n}`))}),(0,K.jsx)(I,{sx:yR,children:(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`,`fontw-normal`],styleOverwrite:bR,onClick:s,children:a?U(`pricing.continue_with_this_plan`):U(`pricing.upgrade_to_plan`,{plan:e})})})]})};SR.propTypes={title:V.default.string.isRequired,planId:V.default.string.isRequired,price:V.default.number.isRequired,forwhat:V.default.string.isRequired,features:V.default.arrayOf(V.default.string),isCurrentPlan:V.default.bool,isRecommended:V.default.bool,onSelect:V.default.func.isRequired};var CR=e(se()),wR=ne(),TR=()=>{},ER={fontSize:`11px`,fontWeight:700,letterSpacing:`0.07em`,textTransform:`uppercase`,color:`var(--color-text-secondary)`,mb:1,display:`block`},DR={fontColor:`#29333D`,fontFamily:`Plus Jakarta Sans, -apple-system, BlinkMacSystemFont, sans-serif`,fontSize:`16px`,fontWeight:`400`,lineHeight:`20px`,padding:`0`,placeholder:{color:`#6B757F`},invalid:{fontColor:`#FF3230`}},OR=180,kR=[0,60,180,360],AR=440,jR={width:`100%`,height:AR,minHeight:AR},MR={...jR,overflowX:`auto`,overflowY:`auto`,"& .recurly-3ds-action":{width:`100%`,height:`100%`,minHeight:AR}},NR={py:2},PR={fontSize:22,fontWeight:700,color:`var(--color-black)`,mb:.75},FR={fontSize:14,color:`var(--color-text-secondary)`,lineHeight:1.55,mb:2},IR=/\b(card|credit|cvv|cvc|security code|expiration|expired|declin|transaction|token)\b/i,LR=/\b(address|postal|zip|country|city|state|first name|last name|billing address)\b/i,RR=new Set([`number`,`month`,`year`,`cvv`,`token_id`]),zR=new Set([`first_name`,`last_name`,`address1`,`address2`,`city`,`state`,`country`,`postal_code`]),BR={empty:!0,focused:!1,touched:!1,valid:!1},VR=(e,t)=>{let n=Array.isArray(e?.fields)?e.fields:[];return n.some(e=>RR.has(e))?`card`:n.some(e=>zR.has(e))?`payment`:IR.test(t||e?.message||``)?`card`:LR.test(t||e?.message||``)?`payment`:null},HR=()=>U(`recurly_payment.subscription_not_ready`),UR=({closeModal:e=TR,onCancel:t,subscriptionStatus:n=null,subscriptionProviderId:r=null,subscriptionPlanId:i=null,targetPlanCode:a=null,quantity:o=1,userEmail:s,recurlyData:c={},startRefetch:l,showSnackbarNotification:u,fetchBillingInfo:d,userId:f,onSubmittingChange:p=TR,onPaymentMethodSaved:m=TR})=>{let[h,g]=(0,B.useState)({firstName:``,lastName:``,company:``,address:``,city:``,state:``,country:``,postalCode:``}),[_,v]=(0,B.useState)(!1),[y,b]=(0,B.useState)(null),[x,S]=(0,B.useState)(null),[C,w]=(0,B.useState)(null),[T,E]=(0,B.useState)(null),[D,ee]=(0,B.useState)(!1),[te,ne]=(0,B.useState)(null),[re,O]=(0,B.useState)(!1),[ie,ae]=(0,B.useState)({number:BR,month:BR,year:BR,cvv:BR}),oe=a||i||oo.PLATFORM_STANDARD,se=n===co.STATUS_TRIAL&&!!a&&a===i,ce=!!a&&!se||n===co.STATUS_EXPIRED,le=!!a&&!se&&n!==co.STATUS_EXPIRED,ue=!!a&&!r&&n!==co.STATUS_EXPIRED&&!se&&(i===oo.STAFF||n===co.STATUS_INACTIVE||n===co.STATUS_FAILED||n===co.STATUS_TRIAL||!i),de=n!==co.STATUS_EXPIRED&&!ue&&!r,fe=B.useRef(),pe=B.useRef([]),me=(0,wR.useRecurly)(),he=B.useCallback(()=>{ne(null),b(null),S(null),w(null),E(null)},[]),ge=B.useCallback(()=>{ae({number:BR,month:BR,year:BR,cvv:BR}),ee(!1)},[]),_e=B.useCallback(()=>{typeof window>
465`u`||kR.forEach(e=>{let t=window.setTimeout(()=>{window.dispatchEvent(new window.Event(`resize`))},e);pe.current.push(t)})},[]),ve=()=>{_e()},ye=e=>t=>{te===`card`&&!t.empty&&he(),ae(n=>({...n,[e]:{empty:!!t.empty,focused:typeof t.focus==`boolean`?t.focus:n[e].focused,touched:n[e].touched,valid:!!t.valid}}))},be=e=>()=>{ae(t=>({...t,[e]:{...t[e],focused:!0}}))},xe=e=>()=>{ae(t=>({...t,[e]:{...t[e],focused:!1,touched:!0}}))};(0,B.useEffect)(()=>{g({firstName:c?.firstName,lastName:c?.lastName,company:c?.company,address:c?.address?.street1,city:c?.address?.city,state:c?.address?.region,country:c?.address?.country,postalCode:c?.address?.postalCode})},[]),(0,B.useEffect)(()=>{if(typeof window>`u`){O(!0);return}let e=window.setTimeout(()=>{O(!0),_e()},OR);return()=>{window.clearTimeout(e),pe.current.forEach(e=>{window.clearTimeout(e)}),pe.current=[]}},[_e]),(0,B.useEffect)(()=>{ee(Object.values(ie).every(e=>e.valid))},[ie]),(0,B.useEffect)(()=>(p(_),()=>{p(!1)}),[_,p]);let Se=e=>{if(e.target){te===`payment`&&he();let{name:t,value:n}=e.target;g(e=>({...e,[t]:n}))}},Ce=Object.values(ie).some(e=>e.touched&&!e.focused&&!e.empty&&!e.valid),we=async t=>{if(t.preventDefault(),!te){if(v(!0),b(null),de){b({msg:HR()}),v(!1);return}if(ce&&oe===oo.COHOST){b({msg:U(`pricing.contact_us`)}),v(!1);return}try{let t=await new Promise((e,t)=>{me.token(fe.current,(n,r)=>{n?(R.default.error(`[RecurlyPaymentMethodForm error]`,n),t(n)):(R.default.info(`[RecurlyPaymentMethodForm token]`,r),e(r))})});if(t?.id){E(t.id);let n=await cI({token:t.id,companyName:h.company,email:s,...ce&&{planCode:oe,trial:!1,quantity:o,...le&&r&&{subscriptionId:r}},...!ce&&{subscriptionId:r}});if(n.threeDSecureActionTokenId||n.error||n.apiError)throw n;u(U(`recurly_payment.successfully_payment_updated`)),m(),ce?(Qv(f),l()):Zv(f),d(),e()}else b({msg:`Error creating token`}),w(null)}catch(e){if(e.threeDSecureActionTokenId){S(e.threeDSecureActionTokenId),w(e.threeDSecureActionSource||null);return}let t=ss(e).details,n=VR(e,t);n&&(ne(n),S(null),w(null),E(null)),b({msg:n===`card`?U(`recurly_payment.card_not_verified`):t||U(`login.error`)});return}finally{v(!1)}}};return x?(0,K.jsxs)(I,{"data-theme":`light`,sx:NR,children:[(0,K.jsx)(I,{component:`h2`,sx:PR,children:U(`recurly_payment.three_ds_title`)}),(0,K.jsx)(I,{sx:FR,children:U(`recurly_payment.three_ds_body`)}),(0,K.jsx)(I,{"data-testid":`recurly-3ds-challenge`,style:jR,sx:MR,children:(0,K.jsx)(wR.ThreeDSecureAction,{className:`recurly-3ds-action`,actionTokenId:x,onToken:async t=>{if(v(!0),de){b({msg:HR()}),S(null),w(null),E(null),v(!1);return}try{if(t?.id){let n=!!T&&(C===`billing_info_update`||ce&&!(le&&r)),i=await cI({threeDSToken:t.id,threeDSecureActionSource:C,...n&&{token:T},companyName:h.company,email:s,...ce&&{planCode:oe,trial:!1,quantity:o,...le&&r&&{subscriptionId:r}},...!ce&&{subscriptionId:r}});if(i.threeDSecureActionTokenId){S(i.threeDSecureActionTokenId),w(i.threeDSecureActionSource||null),b(null);return}if(i.error||i.apiError)throw i;u(U(`recurly_payment.successfully_payment_updated`)),m(),e(),ce?(Qv(f),l()):Zv(f),d()}else b({msg:`Error creating token`}),w(null),E(null)}catch(e){R.default.error(`[RecurlyPaymentMethodForm.handle3DSecureSubmit] errors: `,e);let t=ss(e).details,n=VR(e,t);n&&ne(n),b({msg:n===`card`?U(`recurly_payment.card_not_verified`):t||U(`login.error`)}),S(null),w(null),E(null),ge()}finally{v(!1)}},onError:e=>{R.default.error(`3DS Error: `,e?.message||`Error creating token`),b({msg:e?.message||`Error creating token`}),S(null),w(null),E(null),ge()}})}),y?.msg&&(0,K.jsx)(I,{sx:{color:`var(--color-red)`,fontSize:13,mt:1.5},children:y.msg}),(0,K.jsx)(Dm,{type:[`relative`,`grey`]}),(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`flex-end`,gap:1,mt:2},children:(0,K.jsx)(q,{types:[`type-text`,`size-medium`],onClick:t||e,disabled:_,children:U(`modal.cancel`)})})]}):(0,K.jsx)(I,{"data-theme":`light`,children:(0,K.jsxs)(`form`,{onSubmit:we,ref:fe,"data-testid":`recurly-payment-method-form`,children:[(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:3,py:2},children:[(0,K.jsxs)(I,{children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,mb:1},children:[(0,K.jsx)(I,{component:`span`,sx:ER,children:U(`checkout.carddetails`)}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`4px`,color:`var(--color-text-secondary)`,fontSize:`11px`},children:[(0,K.jsx)(dee,{sx:{fontSize:`13px`}}),U(`checkout.secured`)]})]}),(0,K.jsxs)(I,{"data-testid":`recurly-card-fields`,"aria-invalid":Ce,sx:{border:`1px solid ${Ce?`var(--color-red)`:`var(--color-border)`}`,height:`50px`,borderRadius:`8px`,backgroundColor:`var(--color-white)`,dis
465play:`flex`,alignItems:`center`,gap:2,px:1.5,overflow:`hidden`,boxShadow:Ce?`0 0 0 3px rgba(255, 50, 48, 0.12)`:`var(--shadow-sm)`,transition:`border-color 150ms ease, box-shadow 150ms ease`,"& .recurly-card-element":{display:`block`,width:`100%`,height:`20px`,minHeight:`20px`},"& .recurly-card-element iframe":{display:`block`,width:`100% !important`,height:`20px !important`,minHeight:`20px`,border:0},"&:focus-within":{borderColor:Ce?`var(--color-red)`:`var(--color-primary)`,boxShadow:Ce?`0 0 0 3px rgba(255, 50, 48, 0.12)`:`0 0 0 3px var(--color-primary-alpha-10)`}},children:[(0,K.jsx)(I,{sx:{width:42,height:30,border:`1px solid var(--color-border)`,borderRadius:`4px`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`var(--color-text-secondary)`,flex:`0 0 auto`},children:(0,K.jsx)(ete,{sx:{fontSize:18}})}),re?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{sx:{flex:`1 1 auto`,minWidth:0},children:(0,K.jsx)(wR.CardNumberElement,{className:`recurly-card-element`,style:{...DR,placeholder:{...DR.placeholder,content:`Card number`}},onReady:ve,onChange:ye(`number`),onFocus:be(`number`),onBlur:xe(`number`),onSubmit:we})}),(0,K.jsxs)(I,{sx:{width:82,display:`flex`,alignItems:`center`,gap:.5,flex:`0 0 auto`},children:[(0,K.jsx)(I,{sx:{width:28},children:(0,K.jsx)(wR.CardMonthElement,{className:`recurly-card-element`,style:{...DR,placeholder:{...DR.placeholder,content:`MM`}},onReady:ve,onChange:ye(`month`),onFocus:be(`month`),onBlur:xe(`month`),onSubmit:we})}),(0,K.jsx)(I,{sx:{color:`#6B757F`,lineHeight:`20px`,flex:`0 0 auto`},children:`/`}),(0,K.jsx)(I,{sx:{width:28},children:(0,K.jsx)(wR.CardYearElement,{className:`recurly-card-element`,style:{...DR,placeholder:{...DR.placeholder,content:`YY`}},onReady:ve,onChange:ye(`year`),onFocus:be(`year`),onBlur:xe(`year`),onSubmit:we})})]}),(0,K.jsx)(I,{sx:{width:46,flex:`0 0 auto`},children:(0,K.jsx)(wR.CardCvvElement,{className:`recurly-card-element`,style:{...DR,placeholder:{...DR.placeholder,content:`CVV`}},onReady:ve,onChange:ye(`cvv`),onFocus:be(`cvv`),onBlur:xe(`cvv`),onSubmit:we})})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{sx:{flex:`1 1 auto`,minWidth:0,color:`#6B757F`,fontSize:`16px`,lineHeight:`20px`},children:`Card number`}),(0,K.jsx)(I,{sx:{width:82,color:`#6B757F`,fontSize:`16px`,lineHeight:`20px`,flex:`0 0 auto`},children:`MM / YY`}),(0,K.jsx)(I,{sx:{width:46,color:`#6B757F`,fontSize:`16px`,lineHeight:`20px`,flex:`0 0 auto`},children:`CVV`})]})]})]}),(0,K.jsxs)(I,{children:[(0,K.jsx)(I,{component:`span`,sx:ER,children:U(`checkout.cardholder_name`)}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:1.5,flexDirection:{xs:`column`,sm:`row`}},children:[(0,K.jsx)(Yf,{name:`firstName`,"data-recurly":`first_name`,type:`text`,onChange:Se,placeholder:U(`checkout.firstname`),value:h.firstName,required:!0}),(0,K.jsx)(Yf,{name:`lastName`,"data-recurly":`last_name`,type:`text`,onChange:Se,placeholder:U(`checkout.lastname`),value:h.lastName,required:!0})]})]}),(0,K.jsxs)(I,{children:[(0,K.jsx)(I,{component:`span`,sx:ER,children:U(`checkout.billingaddress`)}),(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:1.5},children:[(0,K.jsx)(Yf,{name:`address`,"data-recurly":`address1`,type:`text`,onChange:Se,placeholder:U(`checkout.address`),value:h.address,required:!0}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:1.5,flexDirection:{xs:`column`,sm:`row`}},children:[(0,K.jsx)(Yf,{name:`city`,"data-recurly":`city`,type:`text`,onChange:Se,placeholder:U(`checkout.city`),value:h.city,required:!0}),(0,K.jsx)(Yf,{name:`state`,"data-recurly":`state`,type:`text`,onChange:Se,placeholder:U(`checkout.state`),value:h.state}),(0,K.jsx)(Yf,{name:`postalCode`,"data-recurly":`postal_code`,type:`text`,onChange:Se,placeholder:U(`checkout.zip`),value:h.postalCode,required:!0})]}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:1.5,flexDirection:{xs:`column`,sm:`row`}},children:[(0,K.jsx)(Yf,{name:`country`,"data-recurly":`country`,type:`text`,onChange:Se,placeholder:U(`checkout.country`),value:h.country,required:!0}),(0,K.jsx)(Yf,{name:`company`,"data-recurly":`company`,type:`text`,onChange:Se,placeholder:U(`checkout.company`),value:h.company})]})]})]})]}),y?.msg&&(0,K.jsx)(I,{sx:{color:`var(--color-red)`,fontSize:13,mb:1.5},children:y.msg}),(0,K.jsx)(Dm,{type:[`relative`,`grey`]}),(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`flex-end`,gap:1,mt:2},children:[(0,K.jsx)(q,{types:[`type-text`,`size-medium`],onClick:t||e,disabled:_,children:U(`modal.cancel`)}),(0,K.jsx)(q,{types:[`type-full-primary`,`size-medium`],type:`submit`,disabled:_||!D||!!te,children:U(_?`recurly_payment.submitting`:`recurly_payment.submit`)})]})]})})};UR.propTypes={closeModal:V.default.func,onCancel:V.default.func,subscriptionStatus:V.default.string,subscriptionProviderId:V.default.string,subscriptionPlanId:V.default.string,targetPlanCode:V.default.string,quantity:V.default.number,userId:V.default.string,userEmail:V.default.string.isRequired,recurlyData:V.default.shape({}),startRefetch:V.default.func.isRequired,showSnackbarNotification:V.default.func.isRequired,fetchBillingInfo:V.default.func.isRequired,onSubmittingChange:V.default.func,onPaymentMethodSaved:V.default.func};var WR={p:{xs:`18px`,sm:`26px`},color:`var(--color-text)`},GR=440,KR=680,qR={width:`100%`,height:GR,minHeight:GR},JR={...qR,overflowX:`auto`,overflowY:`auto`,"& .pricing-3ds-action":{width:`100%`,height:`100%`,minHeight:GR}},YR={colorScheme:`light`,backgroundColor:`var(--color-bg-paper)`,color:`var(--color-text)`,minHeight:`100%`,width:`100%`},XR={fontSize:11,fontWeight:700,letterSpacing:`0.08em`,textTransform:`uppercase`,color:`var(--color-primary)`,mb:.75},ZR={fontSize:22,fontWeight:700,color:`var(--color-black)`,mb:.75},QR={fontSize:14,color:`var(--color-text-secondary)`,lineHeight:1.55,mb:2.25},$R={display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:2,p:`14px 16px`,mb:2,borderRadius:`8px`,border:`1px solid var(--color-border)`,background:`var(--color-bg)`,flexWrap:`wrap`},ez={display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:1.5,my:2,p:`12px 16px`,borderRadius:`8px`,background:`var(--color-primary-light-solid)`,border:`1px solid var(--color-primary-selection)`,flexWrap:`wrap`},tz={fontSize:12,color:`var(--color-text-secondary)`,mt:1.5},nz=({plan:e,propertyCount:t})=>!e||e.price===void 0||e.price===null?null:{amount:Zo(e.priceType===`property`?$o(t,e.planId):e.price/100||0),suffix:
465Qo(e.priceType,!1,!1)||U(`pricing.per_month`)};function rz({planTitle:e,priceDetails:t}){return(0,K.jsxs)(I,{sx:$R,children:[(0,K.jsxs)(I,{children:[(0,K.jsx)(x,{sx:{fontSize:12,color:`var(--color-text-secondary)`,mb:.5},children:U(`pricing.upgrade_plan_label`)}),(0,K.jsx)(x,{sx:{fontSize:18,fontWeight:700,color:`var(--color-black)`},children:e})]}),t&&(0,K.jsxs)(x,{sx:{fontSize:15,fontWeight:600,color:`var(--color-text)`},children:[`$`,t.amount,` `,t.suffix]})]})}rz.propTypes={planTitle:V.default.string.isRequired,priceDetails:V.default.shape({amount:V.default.oneOfType([V.default.string,V.default.number]).isRequired,suffix:V.default.oneOfType([V.default.string,V.default.bool]).isRequired})};function iz({planId:e=oo.PLATFORM_PRO,onClose:t,onComplete:n,showSnackbarNotification:r=()=>{},onBack:i,onBusyChange:a=()=>{},stepLabel:o=``,title:s,description:c}){let l=xe(),u=j(FC),d=j(RC),[f,p]=(0,B.useState)(`loading`),[m,h]=(0,B.useState)(null),[g,_]=(0,B.useState)(null),[v,y]=(0,B.useState)(null),[b,S]=(0,B.useState)(null),[C,w]=(0,B.useState)(!1),[T,E]=(0,B.useState)(null),[D,ee]=(0,B.useState)(null),te=f===`submitting`,ne=e===u?.subscription?.currentPlanId,re=u?.subscription?.status===co.STATUS_TRIAL&&ne,O=e===oo.COHOST||!!m?.contactUs,ie=u?.subscription?.status===co.STATUS_EXPIRED,ae=(0,B.useRef)(a);(0,B.useEffect)(()=>{ae.current=a}),(0,B.useEffect)(()=>{ae.current(te)},[te]);let oe=(0,B.useCallback)(e=>!e||e.priceType===`property`?1:e.priceType===`job`?0:1,[]),se=(0,B.useCallback)(()=>(0,G.default)(u,[`subscription`,`subscriptionProviderSubscriptionId`]),[u]),ce=se(),le=!ce&&!ie&&!re&&(u?.subscription?.currentPlanId===oo.STAFF||u?.subscription?.status===co.STATUS_INACTIVE||u?.subscription?.status===co.STATUS_FAILED||u?.subscription?.status===co.STATUS_TRIAL||!u?.subscription?.currentPlanId),ue=!ie&&!le&&!ce,de=(0,B.useCallback)(()=>{l(JP({hasPaymentMethod:!0}))},[l]);(0,B.useEffect)(()=>{let{RECURLY_PUBLIC_KEY:t,RECURLY_SDK_URL:n}=Wi();S(t),E(null),ee(null),p(`loading`);let r=()=>new Promise(e=>{if(window.recurly){e();return}let t=document.createElement(`script`);t.src=n,t.onload=e,t.onerror=e,document.head.appendChild(t)}),i=!1;return Promise.all([lI().catch(()=>null),uI().catch(()=>[]),r()]).then(([t,n])=>{if(i)return;h((0,CR.default)(Array.isArray(n)?n:[],`planId`)[e]||null);let r=t&&!t.apiError?t:null;y(r);let a=r?.lastFour||r?.paymentMethod?.lastFour;_(a||null),w(!0),p(a?`confirm`:`enter-card`)}),()=>{i=!0,ae.current(!1)}},[e]);let fe=(0,B.useCallback)(async(i,o=null)=>{if(!o&&O){E(U(`pricing.contact_us`)),p(i?`enter-card`:`confirm`);return}if(ue){E(U(`recurly_payment.subscription_not_ready`)),p(i?`enter-card`:`confirm`);return}p(`submitting`),E(null);try{let s=o||{token:i||null,email:u?.email,...re?{subscriptionId:se()}:{planCode:e,quantity:oe(m),...ie||le?{trial:!1}:{subscriptionId:ce}}},c=await cI(s);if(c?.threeDSecureActionTokenId){ee({actionTokenId:c.threeDSecureActionTokenId,actionSource:c.threeDSecureActionSource||null,retryArgs:s}),p(`three-ds`);return}if(c?.error||c?.apiError)throw Error(c?.message||c?.properlyErrorMsg||U(`checkout.error_load`));de(),l(lF()),r(U(`recurly_payment.successfully_payment_updated`)),a(!1),(n||t)()}catch(e){E(e?.message||U(`checkout.error_load`)),p(i?`enter-card`:`confirm`)}},[u,l,oe,se,O,ie,le,ue,re,de,a,t,n,m,e,r,ce]),pe=()=>{te||t()},me=(0,B.useCallback)(e=>{if(!D?.retryArgs||!e?.id){E(U(`checkout.error_load`)),ee(null),p(`confirm`);return}ee(null),fe(null,{...D.retryArgs,threeDSToken:e.id,threeDSecureActionSource:D.actionSource||null})},[fe,D]),he=(0,B.useCallback)(e=>{E(e?.message||U(`checkout.error_load`)),ee(null),p(`confirm`)},[]),ge=(0,B.useCallback)(()=>{a(!1),(n||t)()},[a,t,n]),_e=m?.title||e,ve=Object.keys(d||{}).length,ye=nz({plan:m,propertyCount:ve}),be=s||U(ne?`pricing.continue_payment_title`:`pricing.upgrade_payment_title`),Se=c||U(ne?`pricing.continue_payment_body`:`pricing.upgrade_payment_body`),Ce=U(ne?`pricing.confirm_payment_cta`:`pricing.upgrade_confirm_cta`),we=()=>(0,K.jsxs)(I,{sx:{py:5,textAlign:`center`},children:[(0,K.jsx)(hf,{}),(0,K.jsx)(x,{sx:{mt:2,fontSize:14,color:`var(--color-text-secondary)`},children:U(`pricing.upgrade_loading_title`)})]}),Te=()=>(0,K.jsxs)(K.Fragment,{children:[o&&(0,K.jsx)(x,{sx:XR,children:o}),(0,K.jsx)(x,{component:`h2`,sx:ZR,children:be}),(0,K.jsx)(x,{sx:QR,children:Se})]});return(0,K.jsx)(I,{sx:WR,children:f===`loading`?we():f===`three-ds`?!C||!b||!D?.actionTokenId?we():(0,K.jsxs)(I,{children:[o&&(0,K.jsx)(x,{sx:XR,children:o}),(0,K.jsx)(x,{component:`h2`,sx:ZR,children:U(`pricing.upgrade_3ds_title`)}),(0,K.jsx)(x,{sx:QR,children:U(`pricing.upgrade_3ds_body`)}
465),(0,K.jsx)(wR.RecurlyProvider,{publicKey:b,children:(0,K.jsx)(I,{"data-testid":`pricing-3ds-challenge`,style:qR,sx:JR,children:(0,K.jsx)(wR.ThreeDSecureAction,{className:`pricing-3ds-action`,actionTokenId:D.actionTokenId,onToken:me,onError:he})})})]}):f===`confirm`||f===`submitting`&&g?(0,K.jsxs)(I,{children:[Te(),(0,K.jsx)(rz,{planTitle:_e,priceDetails:ye}),(0,K.jsxs)(I,{sx:ez,children:[(0,K.jsxs)(I,{children:[(0,K.jsx)(x,{sx:{fontSize:13,fontWeight:700,color:`var(--color-text)`},children:U(`pricing.upgrade_card_on_file_title`)}),(0,K.jsx)(Xg,{children:U(`checkout.upgrade_using_card_on_file`,{lastFour:g})})]}),(0,K.jsx)(q,{types:[`type-flat-primary`,`size-small`],onClick:()=>{p(`enter-card`),E(null)},children:U(`checkout.use_different_card`)})]}),T&&(0,K.jsxs)(I,{sx:{color:`var(--color-red)`,fontSize:13,mb:1.5},children:[(0,K.jsx)(`strong`,{children:U(`pricing.upgrade_error_title`)}),(0,K.jsx)(I,{component:`span`,sx:{display:`block`,mt:.5},children:T})]}),(0,K.jsx)(x,{sx:tz,children:U(`pricing.upgrade_secure_payment`)}),(0,K.jsx)(Dm,{type:[`relative`,`grey`]}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:1,justifyContent:`space-between`,mt:2,flexWrap:`wrap`},children:[(0,K.jsx)(I,{children:i&&(0,K.jsx)(q,{types:[`type-text`,`size-medium`],onClick:i,disabled:te,children:U(`pricing.upgrade_back_to_plans`)})}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:1},children:[(0,K.jsx)(q,{types:[`type-text`,`size-medium`],onClick:pe,disabled:te,children:U(`modal.cancel`)}),(0,K.jsx)(q,{types:[`type-full-primary`,`size-medium`],onClick:()=>fe(null),disabled:te,children:te?U(`recurly_payment.submitting`):Ce})]})]})]}):!C||!b?we():(0,K.jsxs)(I,{children:[Te(),(0,K.jsx)(rz,{planTitle:_e,priceDetails:ye}),(0,K.jsx)(x,{sx:{fontSize:13,color:`var(--color-text-secondary)`,mb:-.5},children:U(`pricing.upgrade_card_entry_body`)}),T&&(0,K.jsxs)(I,{sx:{color:`var(--color-red)`,fontSize:13,mt:1.5},children:[(0,K.jsx)(`strong`,{children:U(`pricing.upgrade_error_title`)}),(0,K.jsx)(I,{component:`span`,sx:{display:`block`,mt:.5},children:T})]}),(0,K.jsx)(wR.RecurlyProvider,{publicKey:b,children:(0,K.jsx)(wR.Elements,{children:(0,K.jsx)(UR,{closeModal:ge,onCancel:g?()=>{p(`confirm`),E(null)}:void 0,showSnackbarNotification:r,fetchBillingInfo:()=>{},startRefetch:()=>l(lF()),subscriptionStatus:u?.subscription?.status,subscriptionProviderId:se(),subscriptionPlanId:u?.subscription?.currentPlanId,targetPlanCode:e,quantity:oe(m),userEmail:u?.email,userId:u?.objectId,recurlyData:v,onSubmittingChange:a,onPaymentMethodSaved:de})})})]})})}iz.propTypes={planId:V.default.string,onClose:V.default.func.isRequired,onComplete:V.default.func,showSnackbarNotification:V.default.func,onBack:V.default.func,onBusyChange:V.default.func,stepLabel:V.default.string,title:V.default.string,description:V.default.string};var az=({show:e,planId:t,onClose:n,onComplete:r,showSnackbarNotification:i,embedded:a=!1,onBack:o,onBusyChange:s,stepLabel:c,title:l,description:u})=>{let[d,f]=(0,B.useState)(``),[p,m]=(0,B.useState)(!1),h=i||f,g=(0,B.useCallback)(e=>{m(e),s&&s(e)},[s]);return e?a?(0,K.jsx)(I,{"data-theme":`light`,sx:YR,children:(0,K.jsx)(iz,{planId:t,onClose:n,onComplete:r,showSnackbarNotification:h,onBusyChange:g,onBack:o,stepLabel:c,title:l,description:u})}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(X,{show:e,onClose:()=>{p||n()},height:`auto`,variableContentHeight:!0,width:KR,block:!0,contentTheme:`light`,children:(0,K.jsx)(I,{"data-theme":`light`,sx:YR,children:(0,K.jsx)(iz,{planId:t,onClose:n,onComplete:r,showSnackbarNotification:h,onBusyChange:g,stepLabel:c,title:l,description:u})})}),!i&&(0,K.jsx)(wf,{open:!!d,message:d,onClose:()=>f(``),success:!0})]}):i?null:(0,K.jsx)(wf,{open:!!d,message:d,onClose:()=>f(``),success:!0})};az.propTypes={show:V.default.bool.isRequired,onClose:V.default.func.isRequired,onComplete:V.default.func,planId:V.default.string,showSnackbarNotification:V.default.func,embedded:V.default.bool,onBack:V.default.func,onBusyChange:V.default.func,stepLabel:V.default.string,title:V.default.string,description:V.default.string};function oz(e,t,n){return{type:Ok,kind:e,meta:t,attemptedAction:n}}function sz(e){return{type:Ak,data:e}}function cz(e){return{type:kk,kind:e}}var lz={minHeight:400,position:`relative`},uz={display:`grid`,gridTemplateColumns:{xs:`1fr`,sm:`repeat(2, 1fr)`,md:`repeat(3, 1fr)`,lg:`repeat(4, 1fr)`},gap:2.5,alignItems:`stretch`,pt:2},dz={display:`grid`,gridTemplateColumns:{xs:`1fr`,sm:`repeat(2, minmax(260px, 1fr))`},gap:{xs:2,sm:2.5},alignItems:`stretch`,p:{xs:`22px 18px 24px`,sm:`30px 34px 34px`}},fz={display:`flex`,flexDirection:{xs:`column`,md:`row`},gap:3,alignItems:`stretch`,pt:2}
465,pz={width:{xs:`100%`,md:360},flexShrink:0},mz={display:`flex`,flexDirection:`column`,gap:3,pt:2},hz={display:`flex`,flexWrap:`wrap`,gap:3},gz={display:`grid`,gridTemplateColumns:{xs:`1fr`,lg:`minmax(0, 720px) minmax(360px, 1fr)`},gap:3,alignItems:`stretch`,pt:2},_z={display:`grid`,gridTemplateColumns:{xs:`1fr`,sm:`repeat(2, minmax(260px, 1fr))`},gap:3,alignItems:`start`},vz={flex:1,p:3,backgroundColor:`var(--surface-base)`,borderRadius:`12px`,border:`1px solid var(--color-border)`,display:`flex`,flexDirection:`column`,justifyContent:`center`},yz={fontSize:24,fontWeight:700,color:`var(--color-text)`,mb:2},bz={fontSize:15,lineHeight:1.6,color:`var(--color-text-secondary)`},xz={display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:400},Sz=[oo.ADVANCED_2023,oo.PLATFORM_STANDARD,oo.PLATFORM_PRO],Cz=[oo.PLATFORM_STANDARD,oo.PLATFORM_PRO],wz=[oo.REMOTE_INSPECTION,oo.COHOST],Tz={[oo.PLATFORM_STANDARD]:[oo.PLATFORM_PRO,oo.REMOTE_INSPECTION,oo.COHOST],[oo.ADVANCED_2023]:wz,[oo.ADVANCED_LEGACY]:wz,[oo.PLATFORM_PRO]:wz,[oo.REMOTE_INSPECTION]:[oo.COHOST],[oo.COHOST]:[]},Ez={[oo.REMOTE_INSPECTION]:{titleKey:`pricing.ri_title`,descriptionKey:`pricing.ri_description`},[oo.COHOST]:{titleKey:`pricing.cohost_title`,descriptionKey:`pricing.cohost_description`}};function Dz(e){return(0,Lb.default)(e)?(0,If.default)(e,(e,t)=>e+U(t),``):(0,Rf.default)(e)?e.startsWith(`*`)?`*${U(e.replace(/(^\*)|(\*$)/g,``))}*`:U(e):``}function Oz(e){return(0,H.default)(e,e=>Dz(e))}var kz=({planId:e})=>{let t=Ez[e];return t?(0,K.jsxs)(I,{sx:vz,children:[(0,K.jsx)(x,{sx:yz,children:U(t.titleKey)}),(0,K.jsx)(x,{sx:bz,children:U(t.descriptionKey)})]}):null};kz.propTypes={planId:V.default.string.isRequired};var Az=({propertyCount:e=0,onUpgradePlan:t=null,showCurrentTrialUpgradeAction:n=!1,variant:r=`full`})=>{let i=xe(),a=j(e=>e.currentUser)||{},[o,s]=(0,B.useState)({plans:[],highlights:[],notes:[]}),[c,l]=(0,B.useState)(!0),[u,d]=(0,B.useState)(null),f=a?.user?.subscription,p=f?.currentPlanId,m=f?.status,h=r===`planPicker`,g=(0,B.useCallback)(async e=>{try{let t=await uI(),n=Tz[e],r=t?.filter(t=>t.public||t.planId===e||n?.includes(t.planId)||h&&Cz.includes(t.planId));s({plans:(0,So.default)(r,e=>e.displayOrder),highlights:da().highlights,highlightsCommon:da().highlightsCommon,notes:da().notes}),l(!1)}catch(e){R.default.error(`[getUserSubscriptionPlansApi]: Could not fetch plans ${e}`),l(!1)}},[h]);(0,B.useEffect)(()=>{g(p)},[p,g]),(0,B.useEffect)(()=>{pme()},[]);let _=e=>{bu(U(`pricing.contact_for_plan`,{plan_title:e}))},v=()=>{Ype(),i(oz(`contact`,{}))},y=e=>{if(t){t(e);return}d(e)},b=e=>!Sz.includes(e)&&e!==oo.COHOST&&e!==oo.REMOTE_INSPECTION&&e!==oo.STAFF,x=t=>{let n=b(p),r=Tz[p],i=h?t.filter(e=>{let t=Sz.includes(p)&&e.planId===p,n=e.planId===oo.PLATFORM_PRO&&p!==oo.PLATFORM_PRO,r=!Sz.includes(p)&&Cz.includes(e.planId);return t||n||r}):t.filter(e=>r?e.planId===p||r.includes(e.planId):!Sz.includes(p)&&!n?p===e.planId:!0);return i.sort((e,t)=>h?e.planId===p?-1:t.planId===p?1:Cz.indexOf(e.planId)-Cz.indexOf(t.planId):e.planId===p?-1:t.planId===p?1:e.displayOrder-t.displayOrder),(0,H.default)(i,t=>{let r=n&&p===t.planId?{...t,price:f?.price,priceType:f?.priceType}:t,i=``,a=null,o=null,s,c,l=b(r.planId);!h&&p===r.planId&&(i=`your`,a=f?.nextRenewal,o=f?.trialEnd),l||r.priceType!==`property`?s=r.price/100||0:r.priceType===`property`&&(s=$o(e,r.planId)),c=l?`legacy`:r.planId===oo.STAFF?`staff`:!h&&r.planId===p&&Sz.includes(r.planId)&&(m===co.STATUS_TRIAL||!f?.subscriptionProviderSubscriptionId)?`trial`:`new`;let u=h&&r.planId===oo.PLATFORM_PRO||r.planId===oo.PLATFORM_PRO&&p===oo.PLATFORM_STANDARD||r.planId===oo.PLATFORM_STANDARD&&!Sz.includes(p)&&(p===oo.STAFF||!p),d=r.planId===oo.COHOST||!!r.contactUs;return{title:r.title,planId:r.planId,price:parseFloat(Zo(s)),forwhat:Qo(r.priceType,!1,!1),features:Oz(r.highlights),contactUs:d,mode:i,onContact:_,nextRenewal:a,trialEnd:o,handleCancelClick:v,planType:c,handleUpgradeClick:()=>{y(r.planId===oo.STAFF?oo.PLATFORM_STANDARD:r.planId)},subscriptionCanceled:m===co.STATUS_CANCELED,isRecommended:u}})};return f?(0,K.jsxs)(I,{sx:lz,children:[!c&&(()=>{let e=x(o.plans),t=e.length===1,r=e.find(e=>e.planId===oo.COHOST),i=p===oo.COHOST,a=!!r&&i,s=p!==oo.REMOTE_INSPECTION&&!!Ez[p],c=s&&!t&&!i,l=(e,t)=>
465(0,K.jsx)(oR,{title:e.title,planId:e.planId,price:e.price,forwhat:e.forwhat,features:e.features,mode:e.mode,onContact:e.onContact,nextRenewal:e.nextRenewal,trialEnd:e.trialEnd,handleCancelClick:e.handleCancelClick,planType:e.planType,handleUpgradeClick:e.handleUpgradeClick,subscriptionCanceled:e.subscriptionCanceled,isRecommended:e.isRecommended,showCurrentTrialUpgradeAction:n,contactUs:e.contactUs},`plan-${e.planId}-${t}`),u=(e,t)=>(0,K.jsx)(SR,{title:e.title,planId:e.planId,price:e.price,forwhat:e.forwhat,features:e.features,isCurrentPlan:e.planId===p,isRecommended:e.isRecommended,onSelect:e.handleUpgradeClick},`plan-choice-${e.planId}-${t}`);if(h)return(0,K.jsx)(I,{sx:dz,children:e.map(u)});if(a){let t=e.filter(e=>e.planId!==oo.COHOST);return(0,K.jsxs)(I,{sx:mz,children:[t.length>0&&(0,K.jsx)(I,{sx:hz,children:t.map((e,t)=>(0,K.jsx)(I,{sx:pz,children:l(e,t)},`current-plan-${e.planId}-${t}`))}),(0,K.jsxs)(I,{sx:fz,children:[(0,K.jsx)(I,{sx:pz,children:l(r)}),(0,K.jsx)(kz,{planId:oo.COHOST})]})]})}if(c)return(0,K.jsxs)(I,{sx:gz,children:[(0,K.jsx)(I,{sx:_z,children:e.map(l)}),(0,K.jsx)(kz,{planId:p})]});if(t&&s){let[t]=e;return(0,K.jsxs)(I,{sx:fz,children:[(0,K.jsx)(I,{sx:pz,children:l(t)}),(0,K.jsx)(kz,{planId:p})]})}return(0,K.jsx)(I,{sx:uz,children:e.map(l)})})(),c&&(0,K.jsx)(I,{sx:xz,children:(0,K.jsx)(xf,{})}),!t&&(0,K.jsx)(az,{show:!!u,onClose:()=>d(null),planId:u||oo.PLATFORM_PRO})]}):null};Az.propTypes={propertyCount:V.default.number,onUpgradePlan:V.default.func,showCurrentTrialUpgradeAction:V.default.bool,variant:V.default.oneOf([`full`,`planPicker`])};var jz={backgroundColor:`var(--surface-base)`,borderRadius:`12px`,border:`1px solid var(--color-border)`,p:2.5,transition:`border-color 0.2s ease, box-shadow 0.2s ease`,"&:hover":{borderColor:`var(--color-primary)`,boxShadow:`var(--shadow-sm)`}},Mz={fontSize:13,fontWeight:600,color:`var(--color-text)`,mb:2},Nz={display:`flex`,alignItems:`center`,gap:3},Pz={flex:1,position:`relative`,pt:1},Fz={height:10,borderRadius:5,backgroundColor:`var(--color-gray-200)`,position:`relative`},Iz={height:`100%`,borderRadius:5,background:`linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-hover) 100%)`,position:`absolute`,top:0,left:0,transition:`width 0.1s ease-out`},Lz={...Iz,transition:`none`},Rz={width:48,height:48,borderRadius:`50%`,backgroundColor:`var(--surface-base)`,border:`3px solid var(--color-primary)`,boxShadow:`var(--shadow-lg)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`grab`,fontSize:14,fontWeight:700,color:`var(--color-primary)`,position:`absolute`,top:-19,left:-24,userSelect:`none`,transition:`box-shadow 0.15s ease, border-color 0.15s ease`,zIndex:2,"&:hover":{boxShadow:`var(--shadow-xl)`,borderColor:`var(--color-primary-hover)`},"&:active":{cursor:`grabbing`}},zz={position:`relative`,height:24,mt:1.5},Bz=(e,t)=>({position:`absolute`,left:`${e}%`,transform:`translateX(-50%)`,fontSize:12,fontWeight:t?700:500,color:t?`var(--color-primary)`:`var(--color-text-secondary)`,transition:`color 0.2s ease, font-weight 0.2s ease`}),Vz={width:72,height:56,borderRadius:`12px`,backgroundColor:`var(--color-primary)`,color:`var(--color-real-white)`,border:`none`,fontSize:20,fontWeight:700,textAlign:`center`,outline:`none`,cursor:`pointer`,transition:`background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease`,fontFamily:`inherit`,"&:hover":{backgroundColor:`var(--color-primary-hover)`,transform:`scale(1.02)`},"&:focus":{cursor:`text`,boxShadow:`0 0 0 4px var(--color-primary-light)`}},Hz={...Vz,cursor:`text`,boxShadow:`0 0 0 4px var(--color-primary-light)`},Uz=[{value:10,position:10},{value:30,position:30},{value:50,position:50},{value:70,position:70},{value:`100+`,position:97}],Wz=({propertyCount:e=0,updatePropertyCount:t=()=>{}})=>{let[n,r]=(0,B.useState)(0),[i,a]=(0,B.useState)(!1),[o,s]=(0,B.useState)(!1),[c,l]=(0,B.useState)(0),u=(0,B.useRef)(null),d=(0,B.useRef)(null),f=(0,B.useRef)(null),p=(0,B.useRef)(null),m=(0,B.useRef)(null),h=(0,B.useCallback)(e=>{let t=u.current?.offsetWidth||1;return Math.floor(e/t*100)},[]),g=(0,B.useCallback)(e=>{let t=u.current?.offsetWidth||1;return e>100?t:e/100*t},[]),_=(0,B.useCallback)(e=>{let t=Math.min(e,100);d.current&&(d.current.style.width=`${t}%`),f.current&&(f.current.textContent=e>100?`100+`:e)},[]),v=(0,B.useCallback)(e=>{e<0||(r(e),t(Number(e)))},[t]);(0,B.useEffect)(()=>{o||(r(e),_(e),l(g(e)))},[e,o,_,g]),(0,B.useEffect)(()=>
465{i&&p.current&&(p.current.focus(),p.current.select())},[i]),(0,B.useEffect)(()=>{let e=()=>{_(n),l(g(n))};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[n,_,g]);let y=()=>{s(!0)},b=(e,{x:t})=>{_(h(t)),l(t)},S=(e,{x:t})=>{v(h(t)),l(t),s(!1)},C=()=>{a(!0)},w=e=>{(e.key===`Enter`||e.key===`Escape`)&&(e.target.value===``&&r(0),a(!1))},T=e=>{e.target.value===``&&r(0),a(!1)},E=e=>{let t=String(e).match(/\d/g);if(t!==null){let e=t.join(``)*1;v(e),_(e),l(g(e))}else v(0),_(0),l(0)},D=n>100?100:n;return(0,K.jsxs)(I,{sx:jz,children:[(0,K.jsx)(x,{sx:Mz,children:U(`signup.no_of_properties`)}),(0,K.jsxs)(I,{sx:Nz,children:[(0,K.jsxs)(I,{sx:Pz,children:[(0,K.jsxs)(I,{sx:Fz,ref:u,children:[(0,K.jsx)(I,{ref:d,sx:o?Lz:Iz,style:{width:`${D}%`}}),(0,K.jsx)(df.default,{axis:`x`,bounds:{left:0},position:{x:c,y:0},onStart:y,onDrag:b,onStop:S,nodeRef:m,children:(0,K.jsx)(I,{ref:m,sx:Rz,children:(0,K.jsx)(`span`,{ref:f,children:n>100?`100+`:n})})})]}),(0,K.jsx)(I,{sx:zz,children:Uz.map(e=>{let t=typeof e.value==`number`&&n>=e.value;return(0,K.jsx)(x,{sx:Bz(e.position,t),children:e.value},e.value)})})]}),i?(0,K.jsx)(I,{component:`input`,sx:Hz,type:`number`,min:`0`,max:`99999`,step:`1`,value:n===0?``:n,onChange:e=>e.target.value<=99999?E(e.target.value):null,onKeyDown:e=>{e.key===`.`&&e.preventDefault(),w(e)},onBlur:T,ref:p}):(0,K.jsx)(I,{component:`button`,sx:Vz,onClick:C,type:`button`,children:n})]})]})};Wz.propTypes={propertyCount:V.default.number,updatePropertyCount:V.default.func};var Gz={account__bg:`_account__bg_itjoq_2`,accountBg:`_account__bg_itjoq_2`,"account__bg-white":`_account__bg-white_itjoq_8`,accountBgWhite:`_account__bg-white_itjoq_8`,"account__bg-relative":`_account__bg-relative_itjoq_14`,accountBgRelative:`_account__bg-relative_itjoq_14`,account__sidebar:`_account__sidebar_itjoq_18`,accountSidebar:`_account__sidebar_itjoq_18`,account__row:`_account__row_itjoq_22`,accountRow:`_account__row_itjoq_22`,account__forgot:`_account__forgot_itjoq_26`,accountForgot:`_account__forgot_itjoq_26`,account__col:`_account__col_itjoq_30`,accountCol:`_account__col_itjoq_30`,"account__col--start":`_account__col--start_itjoq_41`,accountColStart:`_account__col--start_itjoq_41`,"account__col--maxheight":`_account__col--maxheight_itjoq_46`,accountColMaxheight:`_account__col--maxheight_itjoq_46`,account__notification:`_account__notification_itjoq_50`,accountNotification:`_account__notification_itjoq_50`,"account__notification-right":`_account__notification-right_itjoq_58`,accountNotificationRight:`_account__notification-right_itjoq_58`,"account__notification-block":`_account__notification-block_itjoq_66`,accountNotificationBlock:`_account__notification-block_itjoq_66`,"account__notification-block--disabled":`_account__notification-block--disabled_itjoq_74`,accountNotificationBlockDisabled:`_account__notification-block--disabled_itjoq_74`,"account__section-head":`_account__section-head_itjoq_78`,accountSectionHead:`_account__section-head_itjoq_78`,"account__sub-section-head":`_account__sub-section-head_itjoq_84 text-type-small`,accountSubSectionHead:`_account__sub-section-head_itjoq_84 text-type-small`,account__flex:`_account__flex_itjoq_93`,accountFlex:`_account__flex_itjoq_93`,account__space:`_account__space_itjoq_99`,accountSpace:`_account__space_itjoq_99`,account__edit:`_account__edit_itjoq_103`,accountEdit:`_account__edit_itjoq_103`,"account__flex-end":`_account__flex-end_itjoq_107`,accountFlexEnd:`_account__flex-end_itjoq_107`,"profile-container":`_profile-container_itjoq_114`,profileContainer:`_profile-container_itjoq_114`,"profile-header":`_profile-header_itjoq_123`,profileHeader:`_profile-header_itjoq_123`,"profile-header-content":`_profile-header-content_itjoq_130`,profileHeaderContent:`_profile-header-content_itjoq_130`,"profile-body":`_profile-body_itjoq_135`,profileBody:`_profile-body_itjoq_135`,"profile-grid":`_profile-grid_itjoq_140`,profileGrid:`_profile-grid_itjoq_140`,"profile-main":`_profile-main_itjoq_147`,profileMain:`_profile-main_itjoq_147`,"profile-section":`_profile-section_itjoq_153`,profileSection:`_profile-section_itjoq_153`,"profile-section-title":`_profile-section-title_itjoq_165`,profileSectionTitle:`_profile-section-title_itjoq_165`,"profile-sidebar":`_profile-sidebar_itjoq_204`,profileSidebar:`_profile-sidebar_itjoq_204`,"profile-image-card":`_profile-image-card_itjoq_212`,profileImageCard:`_profile-image-card_itjoq_212`,"profile-save-section":`_profile-save-section_itjoq_220`,profileSaveSection:`_profile-save-section_itjoq_220`,"profile-info-card":`_profile-info-card_itjoq_239`,profileInfoCard:`_profile-info-card_itjoq_239`,"input-group":`_input-group_itjoq_246`,inputGroup:`_input-group_itjoq_246`,"input-row":`_input-row_itjoq_252`,inputRow:`_input-row_itjoq_252`,"team-info-card":`_team-info-card_itjoq_258`,teamInfoCard:`_team-info-card_itjoq_258`,"account-oauth-direct-container__loading":`_account-oauth-direct-container__loading_itjoq_305`,accountOauthDirectContainerLoading:`_account-oauth-direct-container__loading_itjoq_305`,"account-oauth-direct-container__wrapper":`_account-oauth-direct-container__wrapper_itjoq_315`,accountOauthDirectContainerWrapper:`_account-oauth-direct-container__wrapper_itjoq_315`,"account-oauth-direct-container__center"
465:`_account-oauth-direct-container__center_itjoq_320`,accountOauthDirectContainerCenter:`_account-oauth-direct-container__center_itjoq_320`,"account-oauth-direct-container__loadtext":`_account-oauth-direct-container__loadtext_itjoq_326`,accountOauthDirectContainerLoadtext:`_account-oauth-direct-container__loadtext_itjoq_326`,"account-oauth-direct-container__loadcontainer":`_account-oauth-direct-container__loadcontainer_itjoq_331`,accountOauthDirectContainerLoadcontainer:`_account-oauth-direct-container__loadcontainer_itjoq_331`,"accountAdapterEdit__vendor--icon":`_accountAdapterEdit__vendor--icon_itjoq_335`,accountAdapterEditVendorIcon:`_accountAdapterEdit__vendor--icon_itjoq_335`,account__profilepic:`_account__profilepic_itjoq_341`,accountProfilepic:`_account__profilepic_itjoq_341`,"profile-image-upload-hint":`_profile-image-upload-hint_itjoq_354`,profileImageUploadHint:`_profile-image-upload-hint_itjoq_354`,"account__flex-1":`_account__flex-1_itjoq_366`,accountFlex1:`_account__flex-1_itjoq_366`,"account__subscription-head":`_account__subscription-head_itjoq_377 text-l5m`,accountSubscriptionHead:`_account__subscription-head_itjoq_377 text-l5m`,"account__subscription-cancel":`_account__subscription-cancel_itjoq_381 text-l7`,accountSubscriptionCancel:`_account__subscription-cancel_itjoq_381 text-l7`,"account__payment_retry--container":`_account__payment_retry--container_itjoq_389`,accountPaymentRetryContainer:`_account__payment_retry--container_itjoq_389`,"account__payment_retry--header":`_account__payment_retry--header_itjoq_395`,accountPaymentRetryHeader:`_account__payment_retry--header_itjoq_395`,"account__payment_retry--titleSection":`_account__payment_retry--titleSection_itjoq_399`,accountPaymentRetryTitleSection:`_account__payment_retry--titleSection_itjoq_399`,"account__payment_retry--retryButton":`_account__payment_retry--retryButton_itjoq_404`,accountPaymentRetryRetryButton:`_account__payment_retry--retryButton_itjoq_404`,"account__payment_retry--title":`_account__payment_retry--title_itjoq_399`,accountPaymentRetryTitle:`_account__payment_retry--title_itjoq_399`,"account__payment_retry--alertSection":`_account__payment_retry--alertSection_itjoq_413`,accountPaymentRetryAlertSection:`_account__payment_retry--alertSection_itjoq_413`,"account__payment_retry--alertTitle":`_account__payment_retry--alertTitle_itjoq_420`,accountPaymentRetryAlertTitle:`_account__payment_retry--alertTitle_itjoq_420`,"account__payment_retry--alertDescription":`_account__payment_retry--alertDescription_itjoq_423`,accountPaymentRetryAlertDescription:`_account__payment_retry--alertDescription_itjoq_423`,"account__payment_retry--propertiesSection":`_account__payment_retry--propertiesSection_itjoq_426`,accountPaymentRetryPropertiesSection:`_account__payment_retry--propertiesSection_itjoq_426`,"account__payment_retry--propertyTitle":`_account__payment_retry--propertyTitle_itjoq_432`,accountPaymentRetryPropertyTitle:`_account__payment_retry--propertyTitle_itjoq_432`,"account__payment_retry--propertyFailedAt":`_account__payment_retry--propertyFailedAt_itjoq_435`,accountPaymentRetryPropertyFailedAt:`_account__payment_retry--propertyFailedAt_itjoq_435`,"account__payment_retry-Error":`_account__payment_retry-Error_itjoq_440`,accountPaymentRetryError:`_account__payment_retry-Error_itjoq_440`,"success-message":`_success-message_itjoq_446`,successMessage:`_success-message_itjoq_446`,"notification-header":`_notification-header_itjoq_455`,notificationHeader:`_notification-header_itjoq_455`,"notification-header-title":`_notification-header-title_itjoq_463`,notificationHeaderTitle:`_notification-header-title_itjoq_463`,"notification-header-channels":`_notification-header-channels_itjoq_468`,notificationHeaderChannels:`_notification-header-channels_itjoq_468`,"notification-channel-icon":`_notification-channel-icon_itjoq_474`,notificationChannelIcon:`_notification-channel-icon_itjoq_474`,"notification-list":`_notification-list_itjoq_488`,notificationList:`_notification-list_itjoq_488`,"notification-row":`_notification-row_itjoq_492`,notificationRow:`_notification-row_itjoq_492`,"notification-row-title":`_notification-row-title_itjoq_508`,notificationRowTitle:`_notification-row-title_itjoq_508`,"notification-row-toggles":`_notification-row-toggles_itjoq_514`,notificationRowToggles:`_notification-row-toggles_itjoq_514`,"notification-toggle":`_notification-toggle_itjoq_521`,notificationToggle:`_notification-toggle_itjoq_521`,"notification-toggle--disabled":`_notification-toggle--disabled_itjoq_528`,notificationToggleDisabled:`_notification-toggle--disabled_itjoq_528`},Kz=F` 466 query ConnectedAccount { 467 ConnectedAccount { 468 id 469 partner 470 label 471 icon 472 oAuthLink 473 474 connectionSettings { 475 id 476 label 477 lastSync 478 connectionIssue 479 migrated 480 } 481 } 482 } 483`,qz=F` 484 query Query($role: RoleType, $languageCode: String) { 485 notificationSetting(role: $role, languageCode: $languageCode) { 486 id 487 localizedTitle 488 notificationChannels { 489 id 490 type 491 status 492 isDisabled 493 } 494 } 495 } 496`,Jz=class{constructor({connectionSettings:e,icon:t,id:n,label:r,oAuthLink:i,partner:a,proRequired:o}){this.connectionSettings=e,this.icon=t,this.id=n,this.label=r,this.oAuthLink=i,this.partner=a,this.proRequired=o}},Yz=F` 497 mutation DisconnectConnectedAccount($connectionSettingsId: ID!) { 498 DeleteConnectionSetting(connectionSettingsId: $connectionSettingsId) { 499 id 500 label 501 } 502 } 503`,Xz=F` 504 mutation ReimportPropertiesMutation($connectionSettingsId: String!, $partner: String!) { 505 ReimportProperties(connectionSettingsId: $connectionSettingsId, partner: $partner) { 506 error 507 message 508 } 509 } 510`,Zz=F` 511 mutation SyncConnectionSetting($connectionSettingsId: ID!) { 512 SyncConnectionSetting(connectionSettingsId: $connectionSettingsId) { 513 error 514 message 515 } 516 } 517`,Qz=F`
518 mutation UpdateNotificationChannel($input: UpdateNotificationChannelInput!) { 519 UpdateNotificationChannel(input: $input) { 520 notificationChannel { 521 id 522 type 523 status 524 } 525 } 526 } 527`,$z=F` 528 mutation CollectPayment { 529 CollectPayment { 530 error 531 message 532 } 533 } 534`;F` 535 subscription listenForConnectedAccounts { 536 listenForConnectedAccounts { 537 id 538 partner 539 label 540 icon 541 oAuthLink 542 543 connectionSettings { 544 id 545 label 546 lastSync 547 connectionIssue 548 migrated 549 } 550 } 551 } 552`;function eB(){return QF.query({query:Kz,fetchPolicy:`network-only`,variables:{}}).then(({data:e,error:t})=>{if(t)throw R.default.error(`AccountApi - Error getting connected accounts`),t;let{ConnectedAccount:n}=e||{},r=n.map(e=>new Jz(e));return{connectedAccounts:r,connectionSettingsCount:(r||[]).reduce((e,t)=>e+(t.connectionSettings||[]).length,0)}})}function tB(e){return QF.mutate({mutation:Yz,fetchPolicy:`no-cache`,variables:{connectionSettingsId:e}}).then(({data:t,error:n})=>{if(n)throw R.default.error(`AccountApi - Error disconnected connected account`,e),n;let{DeleteConnectionSetting:r}=t||{};return r})}function nB(e,t){let n=t===`newbook`?Xz:Zz;return QF.mutate({mutation:n,fetchPolicy:`no-cache`,variables:t===`newbook`?{connectionSettingsId:e,partner:t}:{connectionSettingsId:e}}).then(({data:t,error:n})=>{if(n)throw R.default.error(`AccountApi - Error sync connected account`,e),n;let{SyncConnectionSetting:r}=t||{};if(r?.error)throw r;return r})}var rB=async()=>{try{let{data:e}=await QF.mutate({mutation:$z,fetchPolicy:`no-cache`})||{},t=e?.CollectPayment;if(t?.error)throw Error(t.message);return t}catch(e){throw R.default.error(`retryPaymentForFailedPropertiesAPi - Error attempting to collect payment`,e),e}},iB=_i.default.bind(Gz),aB=({inactiveProperties:e})=>{let t=xe(),[n,r]=(0,B.useState)(``),[i,a]=(0,B.useState)(!1),[o,s]=(0,B.useState)(!1),[c,l]=(0,B.useState)(!1),u=async()=>{l(!0);try{let e=await rB();l(!1),r(e.message),s(!0),t(ZP(`paymentRetry`,{force:!0}))}catch(e){l(!1),r(e.message),a(!0),s(!0)}},d=(0,B.useCallback)(async()=>{if(!c){l(!0);try{await u()}finally{setTimeout(()=>{l(!1)},2e3)}}},[u,c]),f=()=>{r(``),s(!1),a(!1)},p=Object.values(e);return(0,K.jsxs)(`div`,{className:iB(`account__payment_retry--container`),children:[(0,K.jsxs)(`div`,{className:iB(`account__payment_retry--header`),children:[(0,K.jsxs)(`div`,{className:iB(`account__payment_retry--titleSection`),children:[(0,K.jsx)(Y.WarningTriangleIcon,{height:`25px`,width:`25px`,color:`red`}),(0,K.jsx)(Jg,{className:iB(`account__payment_retry--title`),children:U(`retry_payments.failed_payment`)})]}),(0,K.jsx)(`div`,{className:iB(`account__payment_retry--retryButton`),children:(0,K.jsx)(q,{types:[`type-full-primary`,`size-medium`,`fontw-normal`],onClick:d,disabled:c,children:U(c?`retry_payments.processing`:`retry_payments.retry`)})})]}),(0,K.jsxs)(`div`,{className:iB(`account__payment_retry--alertSection`),children:[(0,K.jsx)(`div`,{className:iB(`account__payment_retry--alertTitle`),children:(0,K.jsx)(`span`,{children:U(`retry_payments.required`)})}),(0,K.jsx)(`div`,{className:iB(`account__payment_retry--alertDescription`),children:(0,K.jsx)(`span`,{children:U(`retry_payments.properties_failed_message.${p.length===1?`singular`:`plural`}`,{count:p.length})})})]}),(0,K.jsx)(`div`,{children:p.map(e=>(0,K.jsxs)(`div`,{className:iB(`account__payment_retry--propertiesSection`),children:[(0,K.jsx)(`div`,{className:iB(`account__payment_retry--propertyTitle`),children:(0,K.jsx)(Yg,{component:`div`,type:`bold`,children:e.title})}),(0,K.jsx)(`div`,{className:iB(`account__payment_retry--propertyFailedAt`),children:(0,K.jsx)(Yg,{children:U(`retry_payments.property_failed_on`,{date:(0,z.default)(e.failedAt).format(`MMM DD, YYYY`)})})})]},e.id||e.title))}),(0,K.jsx)(wf,{open:o,message:n,onClose:()=>f(),error:i,success:!i})]})},oB=e=>e.settings,sB=A(oB,e=>e.isAdminMode),cB=A(oB,e=>e.adminModeDetails),lB=A(oB,e=>e.adminModeUnlocked),uB=A(oB,e=>e.currentCountry);A(A(oB,e=>e.userFeatures),e=>e),A(oB,e=>e.userFeaturesLoading),A(oB,e=>e.userFeaturesError);var dB=A(A(oB,e=>e.userFeatureFlags),e=>e);A(oB,e=>e.userFeatureFlagsLoading),A(oB,e=>e.userFeatureFlagsError);
552var fB=e=>A(dB,t=>t.find(t=>t.name===e&&t.enabled)?.enabled||!1),pB=A(oB,e=>e.propertiesEligibleForRI),mB=e=>A(pB,t=>t.includes(e));function hB(e){return Wn(e)}var gB=()=>({type:RT}),_B=e=>({type:zT,userFeatureFlags:e}),vB=e=>({type:BT,error:e});function yB(e){return{type:IO,payload:e}}var bB=e=>({type:LO,error:e});function xB(e){return{type:VT,payload:e}}function SB(e){return{type:HT,payload:e}}var CB=(e=``)=>String(e).replace(/\/+$/,``)||`/`,wB=e=>{let t=CB(e);return t===`/settings`||t.startsWith(`/settings/`)};Qn();var TB={maxWidth:1200,mx:`auto`},EB={mb:2},DB={fontSize:{xs:24,md:28},fontWeight:700,color:`var(--color-text)`,mb:1},OB={fontSize:14,color:`var(--color-text-secondary)`,lineHeight:1.5,maxWidth:600},kB={mb:3,mt:3},AB={mb:4},jB=[oo.ADVANCED_2023,oo.PLATFORM_STANDARD,oo.PLATFORM_PRO],MB={display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,minHeight:`60vh`,textAlign:`center`,px:3},NB={fontSize:18,color:`var(--color-text-secondary)`,maxWidth:500,mb:3,lineHeight:1.6},PB={color:`var(--color-primary)`,textDecoration:`none`,fontWeight:500,"&:hover":{textDecoration:`underline`}},FB={float:`right`,cursor:`pointer`,p:1},IB={p:3},LB={display:`flex`,alignItems:`flex-start`,gap:2,mb:3},RB={color:`var(--color-primary)`,fontWeight:600},zB=()=>{let e=xe(),t=ir(),[n]=on(),r=j(IC)??{status:co.STATUS_ACTIVE,subscriptionProviderSubscriptionId:null,endOfGracePeriod:null,currentPlanId:oo.STAFF},i=j(FC),a=j(RC),o=j(iw),s=j(sB),c=j(lB),l=!!n.get(`thankyou`),u=!!n.get(`updateThankyou`),[d,f]=(0,B.useState)(0),[p,m]=(0,B.useState)(!1),[h,g]=(0,B.useState)(null),_=r?.status,v=!mo(i),y=ds(r?.currentPlanId),b=jB.includes(r?.currentPlanId),S=s&&!c&&wB(t.pathname);(0,B.useEffect)(()=>{l&&e(oz(`thankyou`,{})),u&&e(oz(`updateThankyou`,{}))},[l,e,u]),(0,B.useEffect)(()=>{_===co.STATUS_FAILED&&m(!0)},[_]),(0,B.useEffect)(()=>{f(Object.keys(a||{}).length)},[a]);let C=()=>{m(!1)},w=()=>{qv(),C(),e(aF(Z.settingsPaymentMethods))},T=(e=oo.PLATFORM_STANDARD)=>{qv(),C(),g(e)},E=()=>bu(U(`account.reactivate_subscription_request`)),D=()=>(0,K.jsx)(az,{show:!!h,onClose:()=>g(null),planId:h||oo.PLATFORM_PRO});return!r||!y||_===co.STATUS_INACTIVE||_===co.STATUS_EXPIRED?(0,K.jsxs)(I,{sx:MB,children:[S&&(0,K.jsx)(q,{types:[`type-border-primary`,`size-large`,`fontw-normal`],styleOverwrite:{marginBottom:24},onClick:()=>e(SB(!0)),children:`Unlock User Dashboard`}),(0,K.jsx)(Y.SadFace,{fill:`var(--color-primary-hover)`,byWidth:!0,height:`80px`,width:`80px`}),(0,K.jsx)(I,{sx:{mt:2,mb:2},children:(0,K.jsx)(Wg,{component:`div`,children:U(`error.oops`)})}),!y&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(x,{sx:NB,children:U(v?`account.invalid_plan_company`:`account.invalid_plan`)}),!v&&(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`,`fontw-normal`],onClick:E,children:U(`account.contact_success_manager`)})]}),_===co.STATUS_INACTIVE&&y&&r.subscriptionProviderSubscriptionId&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(x,{sx:NB,children:U(v?`account.company_suspended`:`account.suspended`)}),!v&&(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`,`fontw-normal`],onClick:w,children:U(`account.update_details`)})]}),_===co.STATUS_INACTIVE&&y&&!r.subscriptionProviderSubscriptionId&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(x,{sx:NB,children:U(v?`account.company_suspended`:`account.suspended_on_trail`)}),!v&&(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`,`fontw-normal`],onClick:()=>T(),children:U(`account.update_details`)})]}),_===co.STATUS_EXPIRED&&y&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(x,{sx:NB,children:v?U(`account.company_suspended`):(0,K.jsx)(O,{i18nKey:`account.expired`,components:{anchor:(0,K.jsx)(I,{component:`a`,sx:PB,href:`/settings/payment-methods/`,onClick:()=>{Qpe(i?.objectId)}})}})}),!v&&(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`,`fontw-normal`],onClick:E,children:U(`account.contact_success_manager`)})]}),D()]}):(0,K.jsx)(Jj,{type:`absolute-scroll`,variation:`subscription`,children:(0,K.jsxs)(I,{sx:TB,children:[(0,K.jsxs)(I,{sx:EB,children:[(0,K.jsx)(x,{sx:DB,children:U(`account.pricing_plans`)}),(0,K.jsx)(x,{sx:OB,children:U(`account.price_plan_txt`)})]}),Object.keys(o||{}).length>0&&(0,K.jsx)(I,{sx:AB,children:(0,K.jsx)(aB,{inactiveProperties:Object.values(o)})}),b&&(0,K.jsx)(I,{sx:kB,children:(0,K.jsx)(Wz,{propertyCount:d,updatePropertyCount:f})}),(0,K.jsx)(Az,{propertyCount:d,onUpgradePlan:T}),D(),(0,K.jsxs)(X,{show:p,height:`auto`,onClose:C,variableContentHeight:!0,children:[(0,K.jsx)(`div`,{className:`modal-header__text`,children:(0,K.jsx)(I,{component:`span`,sx:FB,onClick:C,children:(0,K.jsx)(Y.IcXIcon,{fill:`var(--color-primary-hover)`,width:`24px`,byWidth:!0})})}),(0,K.jsx)(X.Text,{children:(0,K.jsxs)(I,{sx:IB,children:[r.subscriptionProviderSubscriptionId&&r?.endOfGracePeriod&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(I,{sx:LB,children:[(0,K.jsx)(Y.IcCircularExclamation,{},`warnicon4`),(0,K.jsx)(x,{children:(0,K.jsx)(O,{i18nKey:`account.suspension_warning`,values:{date:(0,z.default)(r.endOfGracePeriod).format(`L`)},components:{date:(0,K.jsx)(I,{component:`span`,sx:RB})}})})]}),(0,K.jsx)(q,{types:[`type-full-primary`,`size-medium`,`fontw-normal`],styleOverwrite:{margin:`0 auto`,display:`block`},onClick:w,children:U(`account.update_details`)})]}),!r.subscriptionProviderSubscriptionId&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(I,{sx:LB,children:[(0,K.jsx)(Y.IcCircularExclamation,{},`warnicon4`),(0,K.jsx)(x,{children:(0,K.jsx)(O,{i18nKey:`account.suspension_warning_on_trial`,values:{date:(0,z.default)(r.endOfGracePeriod).format(`L`)},components:{date:(0,K.jsx)(I,{component:`span`,sx:RB})}})})]}),(0,K.jsx)(q,{types:[`type-full-primary`,`size-medium`,`fontw-normal`],styleOverwrite:{margin:`0 auto`,display:`block`},onClick:()=>T(),children:U(`account.update_details`)})]})]})})]})]})})},BB=()=>(0,K.jsx)(zB,{isMobile:!0}),VB=()=>{let e=xe();return(0,K.jsx)(MP,{handleUpgrade:()=>e(Wn(Z.mobileSubscription))})};Qn();var HB=()=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(N,{index:!0,element:(0,K.jsx)(RF,{})}),(0,K.jsx)(N,{path:`hostSignUpForm`,element:(0,K.jsx)(qI,{})}),(0,K.jsx)(N,{path:`hostSignUpDownload`,element:(0,K.jsx)(YI,{})}),(0,K.jsx)(N,{path:`hostSignUpComplete`,element:(0,K.jsx)(ZI,{})}),(0,K.jsx)(N,{path:`verify-email`,element:(0,K.jsx)(OL,{})}),(0,K.jsx)(N,{path:`login`,element:(0,K.jsx)(RF,{})}),(0,K.jsx)(N,{path:`password/reset`,element:(0,K.jsx)(ML,{})}),(0,K.jsx)(N,{path:`password/new`,element:(0,K.jsx)(NL,{})}),(0,K.jsx)(N,{path:`loginas`,element:(0,K.jsx)(PL,{})}),(0,K.jsx)(N,{path:`loginas/:id`,element:(0,K.jsx)(PL,{})}),(0,K.jsx)(N,{path:`loginas/:id/:redirectRoute/*`,element:(0,K.jsx)(PL,{})}),(0,K.jsx)(N,{path:`mobile/subscription`,element:(0,K.jsx)(BB,{})}),(0,K.jsx)(N,{path:`mobile/upgrade`,element:(0,K.jsx)(VB,{})}),(0,K.jsx)(N,{path:`entry`,element:(0,K.jsx)(PL,{isEntry:!0})})]});Qn();function UB(){let e=ir(),t=j(e=>e.currentUser);
552if(t===void 0)return(0,K.jsx)(xf,{});if(!t.isLoggedIn){let t=e.pathname+e.search;return(0,K.jsx)(Wr,{to:`${Z.login}?redirectUrl=${encodeURIComponent(t)}`,replace:!0})}return(0,K.jsx)(kn,{})}Qn();var WB=[/^\/?stripe-mobile\/connect/,/^\/?stripe\/connect/,/^\/?settings-mobile\/payment-methods-mobile/];function GB(e){return WB.some(t=>t.test(e))}function KB(){let e=ir(),t=j(e=>e.currentUser?.user);return t?GB(e.pathname)||t.isHost?(0,K.jsx)(kn,{}):(R.default.info(`RequireHostRole: Cleaner redirected from host-only route`,{pathname:e.pathname}),(0,K.jsx)(Wr,{to:Z.hostDownload,replace:!0})):(0,K.jsx)(xf,{})}var qB=e=>e.pricing?.modal,JB=A(A(IC,e=>e?.status===`trial`),IC,(e,t)=>e&&t?.hasPaymentMethod===!1),YB=A(IC,e=>e?.trialEnd?z.default.utc(e.trialEnd).startOf(`day`).diff(z.default.utc().startOf(`day`),`days`):null),XB=e=>!!e&&z.default.utc(e).isBefore(z.default.utc()),ZB=A(IC,e=>e?.status===`expired`&&!!e?.trialEnd&&!e?.lastRenewal||e?.status===`trial`&&XB(e.trialEnd)),QB=A(ZB,IC,(e,t)=>e&&t?.hasPaymentMethod===!1),$B={EARLY:`early`,MID:`mid`,WARNING:`warning`,URGENT:`urgent`,EXPIRED:`expired`},eV=e=>e==null?null:e>7?$B.EARLY:e>3?$B.MID:e>1?$B.WARNING:e>=0?$B.URGENT:$B.EXPIRED,tV=A(JB,YB,(e,t)=>e?eV(t):null);Qn();var nV=`PROPERLY_lastAllowedSubscriptionRoute`,rV=e=>`${e.pathname}${e.search||``}${e.hash||``}`,iV=()=>{try{return sessionStorage.getItem(nV)}catch{return null}},aV=e=>{try{sessionStorage.setItem(nV,e)}catch{}},oV=e=>{let t=iV();return t&&t!==e?t:e===Z.landingPage?null:Z.landingPage};function sV({feature:e}){let t=xe(),n=Vn(),r=ir(),i=j(e=>e.currentUser),a=j(lB),o=j(ZB),s=(0,B.useRef)(!1),c=i?.user?.subscription,l=!i?.user||!c||!Array.isArray(c.features),u=`loading`;l||(u=a?(0,eb.default)(c.features,e)===-1?`upgrade`:`allowed`:c.status===co.STATUS_INACTIVE||c.status===co.STATUS_EXPIRED||o||!ds(c.currentPlanId)?`denied`:(0,eb.default)(c.features,e)===-1?`upgrade`:`allowed`);let d=rV(r);return(0,B.useEffect)(()=>{u===`allowed`&&aV(d)},[u,d]),(0,B.useLayoutEffect)(()=>{if(u===`upgrade`&&!s.current){s.current=!0,R.default.warn(`RequireSubscription: Upgrade required`,{feature:e,currentFeatures:c?.features}),t(oz(`default`,{defaultKind:`upgradeplan`},e));let r=oV(d);r?n(r,{replace:!0}):n(-1)}},[u,d,t,e,n,c?.features]),u===`loading`?(0,K.jsx)(xf,{}):u===`denied`?(R.default.error(`RequireSubscription: Access denied`,{feature:e,hasSubscription:!!c,hasFeatures:!!c?.features}),(0,K.jsx)(Wr,{to:Z.settingsSubscription,replace:!0})):u===`upgrade`?(0,K.jsx)(xf,{}):(R.default.info(`RequireSubscription: Access granted`,{feature:e}),(0,K.jsx)(kn,{}))}var cV=t({selectActiveChecklist:()=>SV,selectChecklists:()=>lV,selectChecklistsJS:()=>uV,selectCloneChecklist:()=>pV,selectCloneChecklistJS:()=>mV,selectCurrentJobId:()=>hV,selectCurrentState:()=>gV,selectJobInstruction:()=>fV,selectJobInstructions:()=>dV,selectLastTimeUpdate:()=>_V,selectLoadingStates:()=>yV,selectModalData:()=>CV,selectTextTemplates:()=>xV,selectTileOverview:()=>vV,selectUploadState:()=>bV}),lV=e=>e.checklists,uV=e=>e.checklists,dV=A(lV,e=>e.jobInstructions),fV=e=>A(lV,t=>t.jobInstructions?.[e]),pV=A(lV,e=>e.cloneChecklist),mV=A(pV,e=>e),hV=A(lV,e=>e.currentJobId),gV=A(lV,e=>e.currentState),_V=A(lV,e=>e.lastTimeUpdate),vV=A(lV,e=>e.tileOverview),yV=A(lV,e=>e.loadingStates),bV=A(lV,e=>e.uploadView),xV=A(lV,e=>e.textTemplatesView),SV=A(lV,e=>e.activeChecklist),CV=A(lV,e=>e.modalChecklist),wV=`CHECKLIST_CREATE_NEW_CHECKLIST_IN_LIBRARY_REQUEST`,TV=`CHECKLIST_CREATE_NEW_CHECKLIST_IN_LIBRARY_SUCCESS`,EV=`CHECKLIST_CREATE_NEW_CHECKLIST_IN_LIBRARY_FAILURE`,DV=`LIBRARY_UPDATE_LIBRARY_SEARCH_QUERY`,OV=`LIBRARY_UPDATE_TABS_VALUE`,kV=`CHECKLIST_TOGGLE_DISPLAY_USER_CHECKLISTS`,AV=`CHECKLIST_TOGGLE_DISPLAY_PUBLISHED_CHECKLISTS`,jV=`CHECKLIST_CLONE_CHECKLIST_INTO_PROPERTIES_REQUEST`,MV=`CHECKLIST_CLONE_CHECKLIST_INTO_PROPERTIES_SUCCESS`,NV=`CHECKLIST_CLONE_CHECKLIST_INTO_PROPERTIES_FAILURE`,PV=`CHECKLIST_REMOVE_CHECKLIST_FROM_LIBRARY_REQUEST`,FV=`CHECKLIST_REMOVE_CHECKLIST_FROM_LIBRARY_SUCCESS`,IV=`CHECKLIST_REMOVE_CHECKLIST_FROM_LIBRARY_FAILURE`,LV=`CHECKLIST_LOAD_INDEPENDENT_CHECKLISTS_REQUEST`,RV=`CHECKLIST_LOAD_INDEPENDENT_CHECKLISTS_SUCCESS`,zV=`CHECKLIST_LOAD_INDEPENDENT_CHECKLISTS_FAILURE`,BV=`CHECKLIST_LOAD_SINGLE_CHECKLIST_REQUEST`,VV=`CHECKLIST_LOAD_SINGLE_CHECKLIST_SUCCESS`,HV=`CHECKLIST_LOAD_SINGLE_CHECKLIST_FAILURE`,UV=`CHECKLIST_LOAD_PUBLISHED_CHECKLISTS_REQUEST`,WV=`CHECKLIST_LOAD_PUBLISHED_CHECKLISTS_SUCCESS`,GV=`CHECKLIST_LOAD_PUBLISHED_CHECKLISTS_FAILURE`,KV=`SKILLS_LOAD_REQUEST`,qV=`SKILLS_LOAD_SUCCESS`,JV=`SKILLS_LOAD_FAILURE`,YV=`SKILL_LOAD_REQUEST`,XV=`SKILL_LOAD_SUCCESS`,ZV=`SKILL_LOAD_FAILURE`,QV=e=>({type:OV,value:e}),$V=(e,t)=>({type:DV,searchQuery:e,isSkill:t}),eH=()=>({type:kV}),tH=()=>({type:AV}),nH=e=>({type:MV,checklistId:e}),rH=(e,t)=>({type:NV,checklistId:e,error:t}),iH=e=>({type:PV,checklistId:e}),aH=e=>({type:FV,checklistId:e}),oH=(e,t)=>({type:IV,checklistId:e,error:t}),sH=()=>({type:LV}),cH=e=>({type:RV,checklists:e}),lH=e=>({type:zV,error:e}),uH=()=>({type:UV}),dH=e=>({type:WV,checklists:e}),fH=e=>({type:GV,error:e}),pH=(e,t,n)=>({type:BV,checklistId:e,checklistInstructionsId:t,published:n}),mH=(e,t,n,r,i)=>
552({type:VV,checklistId:e,checklistInstructionsId:t,published:i,checklist:n,checklistInstructions:r}),hH=e=>({type:HV,error:e}),gH=()=>({type:wV}),_H=(e,t,n,r)=>({type:TV,checklistId:e,checklistInstructionsId:t,checklist:n,checklistInstructions:r}),vH=e=>({type:EV,error:e}),yH=()=>({type:KV}),bH=e=>({type:qV,skills:e}),xH=e=>({type:JV,error:e}),SH=e=>({type:YV,skillId:e}),CH=(e,t)=>({type:XV,skillId:e,skill:t}),wH=e=>({type:ZV,error:e}),TH=e=>e&&e.toJS&&e||e,EH=e=>e,DH=(e,t)=>t&&t.checklistId,OH=e=>Object.keys(e).map(t=>e[t]),kH=e=>e.library,AH=A(A(kH,e=>e.userChecklists),EH),jH=A(A(kH,e=>e.publishedChecklists),EH),MH=A(kH,e=>e.singleChecklistLoading),NH=A(kH,e=>e.cloneChecklistIntoPropertiesSubmitting),PH=A(kH,e=>e.tabsValue),FH=A(kH,e=>e.hideUserChecklists),IH=A(kH,e=>e.hidePublishedChecklists),LH=A(AH,TH),RH=A(jH,TH),zH=A(LH,e=>OH(e||{})),BH=A(RH,IH,(e,t)=>t?[]:OH(e||{})),VH=A(LH,RH,DH,(e,t,n)=>e[n]||t[n]),HH=A(MH,DH,(e,t)=>!!e[t]);A(NH,DH,(e,t)=>!!e[t]);var UH=A(kH,e=>e.userChecklistsIsLoading||e.publishedChecklistsIsLoading),WH=A(kH,e=>e.userChecklistsHasError),GH=A(kH,e=>e.publishedChecklistsHasError),KH=A(kH,e=>e.checklistSearchQuery),qH=e=>A(e,e=>(0,iC.default)(function(){this.ref(`objectId`),this.field(`title`),OH(e||{}).forEach(function(e){this.add(e)},this)})),JH=qH(LH),YH=qH(RH),XH=(e,t)=>e.query(e=>{e.term(iC.default.tokenizer(t),{usePipeline:!0,boost:100}),e.term(iC.default.tokenizer(t),{usePipeline:!1,wildcard:iC.default.Query.wildcard.LEADING|iC.default.Query.wildcard.TRAILING,boost:20}),e.term(iC.default.tokenizer(t),{usePipeline:!1,editDistance:1})}),ZH=A(LH,zH,FH,JH,KH,(e,t,n,r,i)=>n?[]:i?XH(r,i).map(({ref:t})=>e[t]):t),QH=A(RH,BH,IH,YH,KH,(e,t,n,r,i)=>n?[]:i?XH(r,i).map(({ref:t})=>e[t]):t),$H=(e,t)=>t?.skillId,eU=(e,t)=>{let n=e.query(e=>{e.term(iC.default.tokenizer(t),{usePipeline:!0,boost:100}),e.term(iC.default.tokenizer(t),{usePipeline:!0,wildcard:iC.default.Query.wildcard.LEADING|iC.default.Query.wildcard.TRAILING,boost:20}),e.term(iC.default.tokenizer(t),{usePipeline:!0,editDistance:1})}),r=n.some(({score:e})=>e>=.7)?.7:n.slice(-1)[0]?.score??0;return n.filter(({score:e})=>e>=r)},tU=A(kH,e=>e.skillSearchQuery),nU=A(A(A(kH,e=>e.skills),e=>e),TH),rU=A(nU,e=>OH(e||{})),iU=A(nU,e=>(0,iC.default)(function(){this.ref(`skillId`),this.field(`title`),OH(e||{}).forEach(function(e){this.add(e)},this)})),aU=A(nU,$H,(e,t)=>e[t]),oU=A(kH,e=>e.singleSkillLoading),sU=A(kH,e=>e.singleSkillError),cU=A(nU,rU,iU,tU,(e,t,n,r)=>r?eU(n,r).map(({ref:t})=>e[t]):t),lU=A(kH,e=>e.skillsIsLoading),uU=A(kH,e=>e.skillsHasError),dU=Nt((e,t)=>{let n=VH(e,t),r=n&&n.jobInstructions,i=dV(e)[t.jobInstructionId]||r,a=WC(e)[t.checklistId]||n;return{isLoading:HH(e,t),readOnly:!!t.published,selectedJobInstruction:i,selectedChecklist:a}},(e,t)=>({push:t=>e(Wn(t)),locationHitChecklistDetail:(n,r)=>e(pH(r,n,!!t.published))}));function fU(e,t,n,r=!1){return{type:VO,id:e,jobId:t,isIndependent:!!n,isPublished:r}}function pU(e){return Wn(Z.propertyPageChecklists(e))}function mU(e,t){return{type:ck,index:e,image:t}}function hU(e,t,n){return{type:lk,stepId:e,taskIndex:t,image:n}}function gU(e){return{type:UO,val:e}}function _U(e){return{type:XO,val:e}}function vU(e){return{type:nk,val:e}}function yU(e){return{type:GO,val:e}}function bU(e){return{type:qO,val:e}}function xU(e,t){return{type:xE,collectionName:`jobs`,id:e,changeSet:t}}function SU(e,t){return{type:xE,collectionName:`properties`,id:e,changeSet:t}}function CU(e,t){return{type:JO,pics:e,propertyId:t}}function wU(){return{type:YO}}function TU({propertyId:e,role:t,user:n,title:r,redirectUrl:i,openInModal:a}){return{type:QO,propertyId:e,role:t,user:n,title:r,redirectUrl:i,openInModal:a}}function EU(e,t){return{type:$O,checklist:t,action:e}}function DU(e){return{type:KO,val:e}}function OU(e){return{type:Uhe,checklistId:e}}function kU(e,t){return{type:Whe,checklistId:e,error:t}}function AU(e){return{type:ik,val:e}}function jU(e,t,n,r){return{type:ak,propertyIdArray:e,checklistId:t,title:n,independent:r||!1}}function MU(e){return{type:WO,val:e}}function NU(e,t,n){let r=n?{query:{redirectUrl:n}}:{};return Wn({pathname:Z.checklist(e,t),...r})}function PU(e,t){return{type:HO,id:e,data:t}}function FU(e){return{type:tk,time:e}}function IU(e,t){return{type:rk,id:e,val:t}}function LU(e,t){return{type:ZO,action:e,meta:t}}function RU(e,t,n,r){return{type:ek,action:e,stepId:n,jobInstructionId:t,meta:r}}function zU(e){return{type:ok,obj:e}}function BU(e){return{type:sk,checklistId:e}}function VU(e,t){let n=t.jobInstructionId?dV(e)[t.jobInstructionId]:void 0,r=t.checklistId?WC(e)[t.checklistId]:void 0,i=r&&r.defaultProperty?PC(e)[r.defaultProperty]:void 0,a=bw(d_)(e)?.isErrored,o=gV(e,t);return{isLoading:o===1,isError:o===2,imageUploadErrored:a,lastTimeUpdated:_V(e,t),modalData:CV(e),selectedJobInstruction:n,selectedChecklist:r,selectedProperty:i}}var HU=Nt(VU,{locationHitChecklistDetail:fU,goToProperty:pU,setActiveChecklist:MU,setTextTemplate:DU,setGlobalLoadingState:uF,checklistDirectSlideUpload:mU,stepMutatorSaga:LU,updateChecklistSaga:EU,updateLastUpdatedTime:FU,push:Wn,setModalClose:BU}),UU=PC,WU=FC,GU=kw(`properties`,`checklist_clone_search`,PC);function KU(){return(e,t)=>{let{searchQuery:n,result:r}=GU(e),i=mV(e,t),a=UU(e,t),o=WU(e,t);return{navHidden:!0,isSubmitting:i.mode!==0,redirectOnSuccessRoute:`/library`,isLoading:!a||Object.keys(a).length===0,searchQuery:n,searchRes:r,selectedChecklists:i.selected,checklistTitle:null,properties:a,currentUser:o}}}function qU(e){return{push:t=>e(Wn(t)),loadChecklists:()=>{e(sH()),e(uH())},setCloneChecklist:(...t)=>e(AU(...t)),setSearchQuery:(...t)=>e($P(...t)),multiCloneSaga:(t,n,r)=>e(jU(t,n,r)),onClose:()=>e(Wn(Z.library))}}var JU=Nt(KU,qU),YU=({checklistId:e,onMouseEnter:t,onMouseLeave:n,canRemove:r,canSend:i,onSend:a,onDuplicate:o,onDuplicateIntoProperties:s,onRemove:c,skill:l=!1})=>{let[u,d]=(0,B.useState)(null),f=e=>{d(e.currentTarget)},p=e=>{e.stopPropagation(),d(null)},m=[].concat(i?[{id:`send`,label:U(`properties.send_job_request`),onClick:a}]:[],[{id:`duplicate`,disabled:!0,label:U(`checklist.duplicate`),onClick:o},{id:`duplicateIntoProperties`,label:U(`checklist.duplicate_into_properties`),onClick:s}],r?[{id:`remove`,label:U(`checklist.remove_from_library`),onClick:c}]:[]).filter(({disabled:e})=>!e);return l&&(m=m.filter(({id:e})=>e===`send`)),(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(br,{onMouseEnter:t,onMouseLeave:n,onClick:e=>{f(e),e.stopPropagation()},size:`large`,children:(0,K.jsx)(Y.IcMorePrimary,{width:`1em`,byWidth:!0})}),(0,K.jsx)(Ae,{anchorEl:u,open:!!u,onClose:p,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`right`},slotProps:{paper:{sx:{width:260}}},children:m.map(t=>(0,K.jsx)(fe,{onClick:n=>{p(n),t.onClick(e)},children:t.label},t.label))})]})};YU.propTypes={checklistId:V.default.string.isRequired,onMouseEnter:V.default.func.isRequired,onMouseLeave:V.default.func.isRequired,canRemove:V.default.bool.isRequired,canSend:V.default.bool.isRequired,onSend:V.default.func.isRequired,onDuplicate:V.default.func.isRequired,onDuplicateIntoProperties:V.default.func.isRequired,onRemove:V.default.func.isRequired,skill:V.default.bool};var XU=({children:e,onClick:t,...n})=>{let[r,i]=(0,B.useState)(!1),a=()=>i(!0),o=()=>i(!1);
552return(0,K.jsxs)(I,{onClick:t,sx:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,flexWrap:`nowrap`,border:`1px solid var(--color-grey-light)`,borderRadius:`var(--radius-md, 10px)`,m:1,p:`8px 0 8px 24px`,transition:`background 200ms ease`,cursor:`pointer`,background:`var(--color-white)`,...!r&&{"&:hover":{background:`var(--color-bg-elevated)`}}},id:`${n?.objectId||null}library-item-container`,children:[e,(0,K.jsx)(I,{sx:{minWidth:`10%`,maxWidth:`120px`,textAlign:`center`},id:`${n?.objectId||null}library-item-menu`,children:(0,K.jsx)(YU,{onMouseEnter:a,onMouseLeave:o,...n})})]})},ZU=()=>(0,K.jsx)(Ht,{sx:{height:`48px`,width:`1px`,background:`var(--color-grey-light)`,margin:`-24px 0`}}),QU=e=>e&&e.publisherLogo?(0,K.jsx)(`img`,{src:iu(e.publisherLogo,null,`svg`),height:`24px`,width:`24px`,style:{marginRight:`5px`,height:`24px`,width:`24px`}}):(0,K.jsx)(Y.IcChecklistUser,{}),$U=({title:e,slidesCount:t,tasksCount:n,publisherData:r,...i})=>(0,K.jsxs)(XU,{...i,children:[(0,K.jsx)(Ht,{sx:{width:`40%`,flexGrow:0},children:(0,K.jsx)(Yg,{children:e})}),(0,K.jsx)(ZU,{}),(0,K.jsx)(Ht,{sx:{width:`20%`,minWidth:`180px`,p:2},children:(0,K.jsxs)(Ht,{container:!0,sx:{justifyContent:`center`,alignItems:`center`},children:[QU(r),(0,K.jsx)(Yg,{children:r&&r.publisher||`User`})]})}),(0,K.jsx)(ZU,{}),(0,K.jsx)(Ht,{sx:{minWidth:`15%`,maxWidth:`160px`,textAlign:`center`},children:(0,K.jsxs)(Ht,{container:!0,sx:{justifyContent:`center`,alignItems:`center`},children:[(0,K.jsx)(Y.IcChecklistSlides,{}),(0,K.jsx)(Ht,{style:{minWidth:`24px`},children:(0,K.jsx)(Yg,{children:t||0})})]})}),(0,K.jsx)(ZU,{}),(0,K.jsx)(Ht,{sx:{minWidth:`15%`,maxWidth:`160px`,textAlign:`center`},children:(0,K.jsxs)(Ht,{container:!0,sx:{justifyContent:`center`,alignItems:`center`},children:[(0,K.jsx)(Y.IcChecklistPin,{}),(0,K.jsx)(Ht,{style:{minWidth:`24px`},children:(0,K.jsx)(Yg,{children:n||0})})]})}),(0,K.jsx)(ZU,{})]}),eW=()=>(0,K.jsx)(Ht,{sx:{height:`48px`,width:`1px`,background:`var(--color-grey-light)`,margin:`-24px 0`}}),tW=()=>(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,flexWrap:`nowrap`,border:`1px solid var(--color-grey-light)`,borderRadius:`var(--radius-md, 10px)`,m:1,p:`8px 0 8px 24px`,background:`var(--color-white)`},children:[(0,K.jsx)(Ht,{sx:{width:`40%`,flexGrow:0},children:(0,K.jsx)(J,{variant:`rounded`,width:`70%`,height:16})}),(0,K.jsx)(eW,{}),(0,K.jsx)(Ht,{sx:{width:`20%`,minWidth:`180px`,p:2},children:(0,K.jsxs)(Ht,{container:!0,sx:{justifyContent:`center`,alignItems:`center`},children:[(0,K.jsx)(J,{variant:`rounded`,width:24,height:24,sx:{borderRadius:`4px`,mr:`5px`}}),(0,K.jsx)(J,{variant:`rounded`,width:60,height:14})]})}),(0,K.jsx)(eW,{}),(0,K.jsx)(Ht,{sx:{minWidth:`15%`,maxWidth:`160px`,textAlign:`center`},children:(0,K.jsxs)(Ht,{container:!0,sx:{justifyContent:`center`,alignItems:`center`},children:[(0,K.jsx)(J,{variant:`rounded`,width:18,height:18}),(0,K.jsx)(Ht,{style:{minWidth:`24px`,display:`flex`,justifyContent:`center`},children:(0,K.jsx)(J,{variant:`rounded`,width:16,height:12})})]})}),(0,K.jsx)(eW,{}),(0,K.jsx)(Ht,{sx:{minWidth:`15%`,maxWidth:`160px`,textAlign:`center`},children:(0,K.jsxs)(Ht,{container:!0,sx:{justifyContent:`center`,alignItems:`center`},children:[(0,K.jsx)(J,{variant:`rounded`,width:18,height:18}),(0,K.jsx)(Ht,{style:{minWidth:`24px`,display:`flex`,justifyContent:`center`},children:(0,K.jsx)(J,{variant:`rounded`,width:16,height:12})})]})}),(0,K.jsx)(eW,{}),(0,K.jsx)(I,{sx:{minWidth:`10%`,maxWidth:`120px`,textAlign:`center`},children:(0,K.jsx)(J,{variant:`circular`,width:24,height:24,sx:{mx:`auto`}})})]}),nW=()=>(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,paddingBottom:`12px`,paddingRight:`4px`,paddingLeft:`28px`},children:[(0,K.jsx)(J,{variant:`rounded`,height:40,sx:{borderRadius:`var(--radius-md, 10px)`,flexGrow:1,mr:2}}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:1,ml:3,flexShrink:0},children:[(0,K.jsx)(J,{variant:`rounded`,width:190,height:36,sx:{borderRadius:`18px`}}),(0,K.jsx)(J,{variant:`rounded`,width:220,height:36,sx:{borderRadius:`18px`}})]})]}),rW=({itemCount:e=6})=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(nW,{}),(0,K.jsx)(I,{sx:{maxWidth:`1200px`,margin:`0 auto`}
552,children:Array.from({length:e}).map((e,t)=>(0,K.jsx)(Ht,{container:!0,wrap:`nowrap`,sx:{alignItems:`center`},children:(0,K.jsx)(Ht,{style:{flexGrow:1},children:(0,K.jsx)(tW,{})})},t))})]}),iW=()=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{sx:{width:`50%`},children:(0,K.jsx)(Xg,{type:`grey`,children:U(`properties.paste_ical_title`)})}),(0,K.jsx)(I,{sx:{width:`50%`,px:2,ml:3},children:(0,K.jsx)(Xg,{type:`grey`,children:U(`skills.steps`)})}),(0,K.jsx)(I,{sx:{minWidth:`10%`,maxWidth:`120px`,textAlign:`center`}})]}),aW=({type:e})=>(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,m:1,p:`8px 0 8px 24px`,color:`#C2CCD6`},children:[e===`checklist`&&(0,K.jsx)(Qb,{}),e===`skill`&&(0,K.jsx)(iW,{})]}),oW=e(jn()),sW={"main-wrapper":`_main-wrapper_1t0jc_2`,mainWrapper:`_main-wrapper_1t0jc_2`,"main-wrapper--color-grey":`_main-wrapper--color-grey_1t0jc_15`,mainWrapperColorGrey:`_main-wrapper--color-grey_1t0jc_15`,"main-wrapper__sidebar":`_main-wrapper__sidebar_1t0jc_19`,mainWrapperSidebar:`_main-wrapper__sidebar_1t0jc_19`,"main-wrapper__content":`_main-wrapper__content_1t0jc_28`,mainWrapperContent:`_main-wrapper__content_1t0jc_28`,"main-wrapper__content-inner":`_main-wrapper__content-inner_1t0jc_51`,mainWrapperContentInner:`_main-wrapper__content-inner_1t0jc_51`,"main-navigation":`_main-navigation_1t0jc_71`,mainNavigation:`_main-navigation_1t0jc_71`,"main-navigation-bg":`_main-navigation-bg_1t0jc_77`,mainNavigationBg:`_main-navigation-bg_1t0jc_77`,"main-navigation-inner":`_main-navigation-inner_1t0jc_83`,mainNavigationInner:`_main-navigation-inner_1t0jc_83`,"main-navigation-inner--nomaxwidth":`_main-navigation-inner--nomaxwidth_1t0jc_90`,mainNavigationInnerNomaxwidth:`_main-navigation-inner--nomaxwidth_1t0jc_90`,active:`_active_1t0jc_117`,"main-navigation-user-inner":`_main-navigation-user-inner_1t0jc_121`,mainNavigationUserInner:`_main-navigation-user-inner_1t0jc_121`,"main-navigation-user-wrap":`_main-navigation-user-wrap_1t0jc_127`,mainNavigationUserWrap:`_main-navigation-user-wrap_1t0jc_127`,"main-navigation-user":`_main-navigation-user_1t0jc_121`,mainNavigationUser:`_main-navigation-user_1t0jc_121`,"main-navigation-loader":`_main-navigation-loader_1t0jc_143`,mainNavigationLoader:`_main-navigation-loader_1t0jc_143`,"main-navigation-clickItem":`_main-navigation-clickItem_1t0jc_150`,mainNavigationClickItem:`_main-navigation-clickItem_1t0jc_150`,"main-navigation-clickItem--left":`_main-navigation-clickItem--left_1t0jc_158`,mainNavigationClickItemLeft:`_main-navigation-clickItem--left_1t0jc_158`,"main-navigation-clickItem--right":`_main-navigation-clickItem--right_1t0jc_161`,mainNavigationClickItemRight:`_main-navigation-clickItem--right_1t0jc_161`,"main-navigation-clickItem--middle":`_main-navigation-clickItem--middle_1t0jc_164`,mainNavigationClickItemMiddle:`_main-navigation-clickItem--middle_1t0jc_164`,"main-navigation-user-image":`_main-navigation-user-image_1t0jc_170`,mainNavigationUserImage:`_main-navigation-user-image_1t0jc_170`,"main-navigation-box":`_main-navigation-box_1t0jc_177`,mainNavigationBox:`_main-navigation-box_1t0jc_177`,"main-page":`_main-page_1t0jc_184`,mainPage:`_main-page_1t0jc_184`,"main-page-no-scroll":`_main-page-no-scroll_1t0jc_194`,mainPageNoScroll:`_main-page-no-scroll_1t0jc_194`,"main-page--grey":`_main-page--grey_1t0jc_197`,mainPageGrey:`_main-page--grey_1t0jc_197`,"main-page--nomax":`_main-page--nomax_1t0jc_200`,mainPageNomax:`_main-page--nomax_1t0jc_200`,"main-page--canoverlaynav":`_main-page--canoverlaynav_1t0jc_204`,mainPageCanoverlaynav:`_main-page--canoverlaynav_1t0jc_204`,"page-header":`_page-header_1t0jc_210`,pageHeader:`_page-header_1t0jc_210`,"page-header-left":`_page-header-left_1t0jc_234 page-title`,pageHeaderLeft:`_page-header-left_1t0jc_234 page-title`,"page-header-center":`_page-header-center_1t0jc_239`,pageHeaderCenter:`_page-header-center_1t0jc_239`,"page-header-right":`_page-header-right_1t0jc_244`,pageHeaderRight:`_page-header-right_1t0jc_244`,"page-padding":`_page-padding_1t0jc_249`,pagePadding:`_page-padding_1t0jc_249`},cW={nav:`_nav_1f012_1`,nav__icon:`_nav__icon_1f012_8`,navIcon:`_nav__icon_1f012_8`,nav__sections:`_nav__sections_1f012_13`,navSections:`_nav__sections_1f012_13`,"nav__sections-disable":`_nav__sections-disable_1f012_17`,navSectionsDisable:`_nav__sections-disable_1f012_17`,"nav__sections-item":`_nav__sections-item_1f012_22`,navSectionsItem:`_nav__sections-item_1f012_22`,"nav__sections-warning":`_nav__sections-warning_1f012_27`,navSectionsWarning:`_nav__sections-warning_1f012_27`,nav__user:`_nav__user_1f012_35`,navUser:`_nav__user_1f012_35`,"nav__user-btn":`_nav__user-btn_1f012_45`,navUserBtn:`_nav__user-btn_1f012_45`,"nav__user-warning":`_nav__user-warning_1f012_59`,navUserWarning:`_nav__user-warning_1f012_59`,"nav-section":`_nav-section_1f012_67`,navSection:`_nav-section_1f012_67`,"nav-section--active":`_nav-section--active_1f012_78`,navSectionActive:`_nav-section--active_1f012_78`,"nav-section__side":`_nav-section__side_1f012_82`,navSectionSide:`_nav-section__side_1f012_82`,"nav-section__box":`_nav-section__box_1f012_91`,navSectionBox:`_nav-section__box_1f012_91`,"nav-section__box--active":`_nav-section__box--active_1f012_101`,navSectionBoxActive:`_nav-section__box--active_1f012_101`,"nav-section__box-icon":`_nav-section__box-icon_1f012_105`,navSectionBoxIcon:`_nav-section__box-icon_1f012_105`,"nav-section__box-icon-notifications":`_nav-section__box-icon-notifications_1f012_111`,navSectionBoxIconNotifications:`_nav
552-section__box-icon-notifications_1f012_111`,nav__li:`_nav__li_1f012_128`,navLi:`_nav__li_1f012_128`,active:`_active_1f012_143`,"nav__li--left":`_nav__li--left_1f012_148`,navLiLeft:`_nav__li--left_1f012_148`,"nav__li--profile":`_nav__li--profile_1f012_156`,navLiProfile:`_nav__li--profile_1f012_156`,"nav__li--item":`_nav__li--item_1f012_164`,navLiItem:`_nav__li--item_1f012_164`,"nav__li--item--left":`_nav__li--item--left_1f012_173`,navLiItemLeft:`_nav__li--item--left_1f012_173`,"nav__li--item--right":`_nav__li--item--right_1f012_177`,navLiItemRight:`_nav__li--item--right_1f012_177`,"nav__li--item--middle":`_nav__li--item--middle_1f012_181`,navLiItemMiddle:`_nav__li--item--middle_1f012_181`},lW=_i.default.bind(cW),uW=({section:e={},active:t=!1,onClick:n=()=>{},notificationsNum:r=0,disable:i=!1,popover:a=null})=>{let[o,s]=(0,B.useState)(!1),c=e=>()=>{s(e)},l=(0,B.useCallback)(()=>{i||id(window.location.pathname,e.path,`nav_menu`),n(e)},[n,e,i]),u=()=>t?e.colorActive:o?e.colorHover:e.colorDefault,d=e.icon;return(0,K.jsxs)(`div`,{"data-testid":`navsection-${e.id}`,onClick:l,onMouseEnter:c(!0),onMouseLeave:c(!1),onFocus:c(!0),onBlur:c(!1),className:lW(`nav-section`,{"nav-section--active":t},{"nav__sections-disable":i}),children:[(0,K.jsx)(`div`,{className:lW(`nav-section__box`,{"nav-section__box--active":o}),children:(0,K.jsx)(Ig,{placement:`right`,title:e.name,children:(0,K.jsxs)(`div`,{className:lW(`nav-section__box-icon`),children:[d&&(0,K.jsx)(d,{byWidth:!0,color:u()}),r>0&&(0,K.jsx)(`div`,{className:lW(`nav-section__box-icon-notifications`),children:r})]})})}),o&&a,t&&(0,K.jsx)(`div`,{className:lW(`nav-section__side`)})]})};
552uW.propTypes={active:V.default.bool,onClick:V.default.func,section:V.default.shape({id:V.default.string,colorActive:V.default.string,colorHover:V.default.string,colorDefault:V.default.string,name:V.default.string}),disable:V.default.bool,popover:V.default.node,notificationsNum:V.default.number};var dW=e=>e.jobsNotifications,fW=A(dW,e=>e.notificationsCount),pW=e=>e.properties;A(pW,e=>e.loading),A(pW,e=>e.propertiesLoaded),A(pW,e=>e.loadingJobRequests);var mW=A(pW,e=>(0,G.default)(e,`propertyMergeResponse`)),hW=A(pW,e=>(0,G.default)(e,`propertyMergeError`));A(pW,e=>e.propertyBlueprint);var gW=A(pW,e=>e.cloneProperty);A(pW,e=>e.errorJobRequests);var _W=A(pW,e=>e.loadingDeleteProperty),vW=A(pW,e=>e.errorDeleteProperty),yW=A(pW,e=>e.errorDeletePropertyMessage);A(pW,e=>e.error),A(pW,e=>e.jobRequests),A(pW,e=>e.properties);var bW=A(pW,e=>e.icalData),xW=A(pW,e=>e.propertiesWithConnectionIssue);A(pW,e=>e.eventData),A(pW,e=>e.eventData?.meta),A(A(pW,e=>(0,G.default)(e.eventData?.editEvent,[`objectId`])),(e,t)=>t.trigger,pW,(e,t,n)=>e===t.objectId?{val:n.eventData?.editEvent,isActive:!0}:{val:t,isActive:!1},{memoize:ae,argsMemoize:ae});var SW=_i.default.bind(cW),CW={colorDefault:Wp,colorHover:Wp,colorActive:Gp},wW={jobs:{id:`jobs`,icon:Y.Jobs,...CW,path:Z.jobs,name:U(`topbar.jobs`)},autoscheduling:{id:`autoscheduling`,icon:Y.NavAutoscheduling,...CW,path:Z.autoscheduling,name:U(`autoscheduler.title`)},todos:{id:`todos`,icon:Y.NavTodos,...CW,path:Z.todos,name:U(`todos.headline`)},calendar:{id:`calendar`,icon:Y.NavCalendar,...CW,path:Z.calendar,name:U(`topbar.calendar`)},properties:{id:`properties`,icon:Y.NavProperties,...CW,path:Z.properties,name:U(`topbar.properties`)},library:{id:`library`,icon:Y.IcChecklistLibrary,...CW,path:Z.library,name:U(`topbar.library`)},contacts:{id:`contacts`,icon:Y.NavContacts,...CW,path:Z.contacts,name:U(`topbar.contacts`)},reports:{id:`reports`,icon:Y.NavReports,...CW,path:Z.reports,name:U(`topbar.reports`)},settings:{id:`settings`,icon:Y.NavSettings,...CW,path:Z.settings,name:U(`topbar.settings`)}},TW=(e,t)=>(0,H.default)(e,e=>t[e]),EW=(e,t)=>{switch(e){case`jobs`:return t;default:return null}},DW=e=>{switch(e){case`light`:return U(`account.themeLight`,`Light`);case`dark`:return U(`account.themeDark`,`Dark`);case`system`:return U(`account.themeSystem`,`Match browser`);default:return U(`account.theme`,`Theme`)}},OW=(e,t)=>{switch(e){case`light`:return(0,K.jsx)(Gr,{sx:{fontSize:20,color:`var(--color-primary)`}});case`dark`:return(0,K.jsx)(er,{sx:{fontSize:20,color:`var(--color-primary)`}});case`system`:return(0,K.jsx)(Tn,{sx:{fontSize:20,color:`var(--color-primary)`}});default:return t?(0,K.jsx)(er,{sx:{fontSize:20,color:`var(--color-primary)`}}):(0,K.jsx)(Gr,{sx:{fontSize:20,color:`var(--color-primary)`}})}},kW=({currentPage:e=``,popoverSections:t,mainSections:n,showCompanyInfo:r=!1})=>{let i=xe(),{isDarkMode:a,themePreference:o}=oT(),[s,c]=(0,B.useState)(!1),l=j(e=>(0,G.default)(e.currentUser,[`user`,`firstName`])),u=j(e=>(0,G.default)(e.currentUser,[`user`,`lastName`])),d=j(e=>(0,G.default)(e.currentUser,[`user`,`companyName`])),f=j(e=>(0,G.default)(e.currentUser,[`user`,`pictureUrl`])),p=j(yT),m=j(IC),h=j(fW),g=j(xW),_=j(iw),v=g?.length>0,y=Object.keys(_).length>0,b=j(lB),x=(0,B.useMemo)(()=>[{key:`user`,"data-testid":`nav-userprofile`,icon:(0,K.jsx)(I,{sx:{width:36,height:36,"& > div":{width:`100%`,height:`100%`}},children:(0,K.jsx)(Qd,{type:`community`,picture:f,text:Go(l,u),extractLetters:!0})}),isTitle:!0,name:`${l} ${u}`,onClick:()=>i(aF(Z.account)),secondaryName:r?(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--grey2`],preElement:(0,K.jsx)(Y.TeamIcon,{height:`10px`,width:`9px`,inlineBlock:!0,byWidth:!0}),children:(0,K.jsx)(`span`,{children:d})}):``},{key:`notifications`,"data-testid":`nav-notifications`,name:U(`account.notifications`),onClick:()=>i(aF(Z.accountNotifications))},{key:`password`,"data-testid":`nav-password`,name:U(`account.password`),onClick:()=>i(aF(Z.accountPassword))},{key:`help`,"data-testid":`nav-help`,name:U(`account.help`),onClick:()=>$he()},{key:`theme`,"data-testid":`nav-theme`,icon:OW(o,a),name:U(`account.theme`,`Theme`),secondaryName:DW(o),endIcon:(0,K.jsx)(Vr,{sx:{fontSize:18,color:`var(--color-text-secondary)`}}),onClick:()=>{},preventClose:!0,hasHoverSubmenu:!0},{key:`logout`,"data-testid":`nav-logout`,name:U(`titles.logout`),onClick:()=>
552i(gA())}],[l,u,f,r,d,i,a,o]),S=(0,B.useMemo)(()=>TW(n,wW),[n]),C=(0,B.useCallback)(()=>{i(aF(Z.landingPage))},[i]),w=(0,B.useCallback)(t=>{if(e!==t.id)switch(t.id){case`properties`:i(aF(t.path));break;case`reports`:case`settings`:case`contacts`:case`calendar`:case`todos`:case`library`:case`autoscheduling`:case`jobs`:i(aF(t.path));break;default:}},[e,i]),T=(0,B.useRef)(null),E=(0,B.useCallback)(()=>{T.current&&clearTimeout(T.current),c(!0)},[]),D=(0,B.useCallback)(()=>{T.current=setTimeout(()=>{c(!1)},150)},[]),ee=(0,B.useCallback)(()=>{T.current&&clearTimeout(T.current)},[]),te=(0,B.useCallback)(()=>{T.current=setTimeout(()=>{c(!1)},150)},[]),ne=(0,B.useCallback)(e=>(0,K.jsxs)(I,{sx:{position:`relative`,width:`100%`},children:[(0,K.jsx)(Ad,{closePopover:e,hasDivider:!0,isLightBackground:!0,items:(0,xo.default)(x,e=>t.includes(e.key)),onItemHover:e=>{e.hasHoverSubmenu?E():D()}}),s&&(0,K.jsx)(I,{sx:{position:`absolute`,left:`100%`,bottom:`48px`,ml:.5,zIndex:1},children:(0,K.jsx)(mM,{isHoverMode:!0,onMouseEnter:ee,onMouseLeave:te,onSelect:()=>{c(!1),e()}})})]}),[x,t,s,E,D,ee,te,(0,B.useMemo)(()=>(0,xo.default)(x,e=>t.includes(e.key)).findIndex(e=>e.key===`theme`),[x,t])]),re=ds(m?.currentPlanId),O=!b&&(m?.status===co.STATUS_EXPIRED||!re||m?.status===co.STATUS_INACTIVE||m?.status===co.STATUS_FAILED);return(0,K.jsxs)(`div`,{className:SW(`nav`),children:[(0,K.jsx)(`div`,{className:SW(`nav__icon`),children:(0,K.jsx)(Mj,{onClick:C,children:(0,K.jsx)(Y.Logo,{width:`46px`,height:`59px`})})}),(0,K.jsx)(`div`,{className:SW(`nav__sections`),children:(0,H.default)(S,t=>{let n=!b&&(m?.status===co.STATUS_EXPIRED||!re||m?.status===co.STATUS_INACTIVE)&&t.id!==`settings`;return(0,K.jsxs)(`div`,{className:SW(`nav__sections-item`),children:[(0,K.jsx)(uW,{active:e===t.id,onClick:n?()=>{}:w,disable:n,section:t,notificationsNum:EW(t.id,h)}),t.id===`properties`&&(v||y)||t.id===`settings`&&(p||O||y)?(0,K.jsx)(`div`,{className:SW(`nav__sections-warning`),children:(0,K.jsx)(Y.IcError1,{byWidth:!0})}):null]},`navitem-${t.id}`)})}),(0,K.jsx)(`div`,{className:SW(`nav__user`),id:`user-profile-id`,children:(0,K.jsx)(Lg,{hasArrow:!0,hasLightBackgroun
552d:!0,width:276,arrowPosition:{vertical:`left`},onClose:()=>c(!1),styleOverwrite:{overflow:`visible`},paperOverflow:`visible`,popoverContent:e=>ne(e.closePopup),children:(0,K.jsx)(`button`,{type:`button`,"data-testid":`user-profile-image-btn`,className:SW(`nav__user-btn`),children:(0,K.jsx)(Qd,{type:`community`,picture:f,text:Go(l,u),extractLetters:!0})})})})]})};kW.propTypes={currentPage:V.default.string,popoverSections:V.default.arrayOf(V.default.string).isRequired,mainSections:V.default.arrayOf(V.default.string).isRequired,showCompanyInfo:V.default.bool},kW.ClickItem=({children:e,onClick:t,side:n,...r})=>(0,K.jsx)(`li`,{onClick:t,className:SW(`nav__li`,`nav__li--item`,{[`nav__li--item--${n}`]:n}),...r,children:(0,K.jsx)(`div`,{children:e})});var AW=e=>e.jobDetails,jW=e=>e.jobDetails,MW=A(AW,e=>e.tempMilesImages),NW=A(AW,e=>e.tempDurationImages),PW=A(AW,e=>e.tempCostImages),FW=A(AW,e=>e.sourceJobProblems),IW=A(AW,e=>e.stripePaymentDetails),LW=A(AW,e=>e.resolvedProblem),RW=A(AW,e=>e.checklistsVerificationPhotos),zW=A(RW,e=>e.reduce((e,t)=>[...e,...t.verificationPhotos],[])),BW=e=>A(qC,(e,t)=>t,(t,n)=>{let r=t[n?.jobRequestId||e];return r?{jobRequest:r,mappedCleaners:(0,xo.default)((0,H.default)(r.requestedCleaners,e=>{let t=e.userData;return{request:e,contact:t&&{userData:t}}}),e=>e.contact)}:{}}),VW=A(ww,(e,t)=>t.images,(e,t)=>{let n=[];return Object.keys(e).forEach(t=>n.push(e[t].pictureUrl)),t.some(e=>!n.includes(e))}),HW=A(ww,(e,t)=>Cw(t.jobRequestId)(e),(e,t)=>t.jobRequestId,(e,t,n)=>{let r={commentsTotal:0,commentsViewed:0,thumbsUp:0,thumbsDown:0},i=(0,Lf.default)(t)?.map(({pictureIdentifier:e=``})=>e);return n?(0,If.default)(e,(e,t)=>{let n=i?.includes(t.pictureUrl);return xs(t)&&(e.commentsTotal+=1),xs(t)&&Cs(t)&&(e.commentsViewed+=1),n?(ws(t)&&(e.thumbsUp+=1),Ts(t)&&(e.thumbsDown+=1),e):e},r):r}),UW=A(AW,e=>e.isRIRequested),WW=A(AW,e=>e.jobStatusRI),GW=A(AW,e=>
552e.jobsDetailViewJobResultsRefreshData),KW=()=>(0,K.jsx)(jg,{show:!!j(mw(u_.LOADING_MODAL)).isOpen}),qW={pricing__thankyouhead:`_pricing__thankyouhead_lnwdx_1 text-l3m`,pricingThankyouhead:`_pricing__thankyouhead_lnwdx_1 text-l3m`,pricing__thankyoutxt:`_pricing__thankyoutxt_lnwdx_6 text-l6`,pricingThankyoutxt:`_pricing__thankyoutxt_lnwdx_6 text-l6`,pricing__messagered:`_pricing__messagered_lnwdx_11`,pricingMessagered:`_pricing__messagered_lnwdx_11`,pricing__messageinfo:`_pricing__messageinfo_lnwdx_22`,pricingMessageinfo:`_pricing__messageinfo_lnwdx_22`,"pricing__message-txt":`_pricing__message-txt_lnwdx_33 text-l5`,pricingMessageTxt:`_pricing__message-txt_lnwdx_33 text-l5`,"pricing__message-close":`_pricing__message-close_lnwdx_37`,pricingMessageClose:`_pricing__message-close_lnwdx_37`,pricing__messagewarning:`_pricing__messagewarning_lnwdx_41`,pricingMessagewarning:`_pricing__messagewarning_lnwdx_41`,"pricing__messagered-wrap":`_pricing__messagered-wrap_lnwdx_84`,pricingMessageredWrap:`_pricing__messagered-wrap_lnwdx_84`,pricing__planbox:`_pricing__planbox_lnwdx_110`,pricingPlanbox:`_pricing__planbox_lnwdx_110`,"pricing__planbox-wrap":`_pricing__planbox-wrap_lnwdx_123`,pricingPlanboxWrap:`_pricing__planbox-wrap_lnwdx_123`,"pricing__planbox-top":`_pricing__planbox-top_lnwdx_128`,pricingPlanboxTop:`_pricing__planbox-top_lnwdx_128`,"pricing__planbox-wrap--active":`_pricing__planbox-wrap--active_lnwdx_141`,pricingPlanboxWrapActive:`_pricing__planbox-wrap--active_lnwdx_141`,"pricing__planbox--small":`_pricing__planbox--small_lnwdx_154`,pricingPlanboxSmall:`_pricing__planbox--small_lnwdx_154`,"pricing__featurelist--slim":`_pricing__featurelist--slim_lnwdx_158`,pricingFeaturelistSlim:`_pricing__featurelist--slim_lnwdx_158`,"pricing__planbox-txt":`_pricing__planbox-txt_lnwdx_158 text-l6`,pricingPlanboxTxt:`_pricing__planbox-txt_lnwdx_158 text-l6`,"pricing__planbox-name":`_pricing__planbox-name_lnwdx_162 text-l5m`,pricingPlanboxName:`_pricing__planbox-name_lnwdx_162 text-l5m`,"pricing__planbox-price":`_pricing__planbox-price_lnwdx_169`,pricingPlanboxPrice:`_pricing__planbox-price_lnwdx_169`,"pricing__planbox-symbol":`_pricing__planbox-symbol_lnwdx_177`,pricingPlanboxSymbol:`_pricing__planbox-symbol_lnwdx_177`,"pricing__planbox-price-wrap":`_pricing__planbox-price-wrap_lnwdx_181`,pricingPlanboxPriceWrap:`_pricing__planbox-price-wrap_lnwdx_181`,"pricing__planbox-contactus":`_pricing__planbox-contactus_lnwdx_185`,pricingPlanboxContactus:`_pricing__planbox-contactus_lnwdx_185`,"pricing__planbox-price-dollar":`_pricing__planbox-price-dollar_lnwdx_193`,pricingPlanboxPriceDollar:`_pricing__planbox-price-dollar_lnwdx_193`,"pricing__planbox-price-usd":`_pricing__planbox-price-usd_lnwdx_200`,pricingPlanboxPriceUsd:`_pricing__planbox-price-usd_lnwdx_200`,"pricing__planbox-smalltxt":`_pricing__planbox-smalltxt_lnwdx_207 text-l6`,pricingPlanboxSmalltxt:`_pricing__planbox-smalltxt_lnwdx_207 text-l6`,"pricing__planbox-smalltxt--smaller":`_pricing__planbox-smalltxt--smaller_lnwdx_213`,pricingPlanboxSmalltxtSmaller:`_pricing__planbox-smalltxt--smaller_lnwdx_213`,"pricing__planbox-icon":`_pricing__planbox-icon_lnwdx_223`,pricingPlanboxIcon:`_pricing__planbox-icon_lnwdx_223`,pricing__infotxt:`_pricing__infotxt_lnwdx_232 text-l7`,pricingInfotxt:`_pricing__infotxt_lnwdx_232 text-l7`,pricing__mobilewrap:`_pricing__mobilewrap_lnwdx_237`,pricingMobilewrap:`_pricing__mobilewrap_lnwdx_237`,pricing__row:`_pricing__row_lnwdx_237`,pricingRow:`_pricing__row_lnwdx_237`,pricing__item:`_pricing__item_lnwdx_243`,pricingItem:`_pricing__item_lnwdx_243`,"pricing__item--reduced":`_pricing__item--reduced_lnwdx_252`,pricingItemReduced:`_pricing__item--reduced_lnwdx_252`,"pricing__row--full":`_pricing__row--full_lnwdx_261`,pricingRowFull:`_pricing__row--full_lnwdx_261`,"pricing__row--right":`_pricing__row--right_lnwdx_266`,pricingRowRight:`_pricing__row--right_lnwdx_266`,"pricing__item--big":`_pricing__item--big_lnwdx_280`,pricingItemBig:`_pricing__item--big_lnwdx_280`,pricing__plans:`_pricing__plans_lnwdx_285`,pricingPlans:`_pricing__plans_lnwdx_285`,"pricing__plans--nopadding":`_pricing__plans--nopadding_lnwdx_291`,pricingPlansNopadding:`_pricing__plans--nopadding_lnwdx_291`,pricing__headbottom:`_pricing__headbottom_lnwdx_295 text-l5m`,pricingHeadbottom:`_pricing__headbottom_lnwdx_295 text-l5m`,"pricing__headbottom--low":`_pricing__headbottom--low_lnwdx_300`,pricingHeadbottomLow:`_pricing__headbottom--low_lnwdx_300`,pricing__bottomtxt:`_pricing__bottomtxt_lnwdx_304 text-l6`,pricingBottomtxt:`_pricing__bottomtxt_lnwdx_304 text-l6`,"pricing__planbox-wrap--slim":`_pricing__planbox-wrap--slim_lnwdx_319`,pricingPlanboxWrapSlim:`_pricing__planbox-wrap--slim_lnwdx_319`,"pricing__planbox--slim":`_pricing__planbox--slim_lnwdx_328`,pricingPlanboxSlim:`_pricing__planbox--slim_lnwdx_328`,pricing__divider:`_pricing__divider_lnwdx_332`,pricingDivider:`_pricing__divider_lnwdx_332`,"expand__subs-box":`_expand__subs-box_lnwdx_337`,expandSubsBox:`_exp
552and__subs-box_lnwdx_337`,pricing__heighlight_title:`_pricing__heighlight_title_lnwdx_343`,pricingHeighlightTitle:`_pricing__heighlight_title_lnwdx_343`,"pricing__planbox-subscription":`_pricing__planbox-subscription_lnwdx_349`,pricingPlanboxSubscription:`_pricing__planbox-subscription_lnwdx_349`,"account__subscription-head":`_account__subscription-head_lnwdx_354`,accountSubscriptionHead:`_account__subscription-head_lnwdx_354`,"account__subscription-renew_date":`_account__subscription-renew_date_lnwdx_357`,accountSubscriptionRenewDate:`_account__subscription-renew_date_lnwdx_357`,"account__subscription-cancel":`_account__subscription-cancel_lnwdx_361`,accountSubscriptionCancel:`_account__subscription-cancel_lnwdx_361`,pricing__plan_description_container:`_pricing__plan_description_container_lnwdx_371`,pricingPlanDescriptionContainer:`_pricing__plan_description_container_lnwdx_371`,pricing__plan_description:`_pricing__plan_description_lnwdx_371`,pricingPlanDescription:`_pricing__plan_description_lnwdx_371`,pricing__plan_description_title:`_pricing__plan_description_title_lnwdx_378`,pricingPlanDescriptionTitle:`_pricing__plan_description_title_lnwdx_378`,"pricing__planbox-freeTrial":`_pricing__planbox-freeTrial_lnwdx_384`,pricingPlanboxFreeTrial:`_pricing__planbox-freeTrial_lnwdx_384`,pricing__heighlight:`_pricing__heighlight_lnwdx_343`,pricingHeighlight:`_pricing__heighlight_lnwdx_343`,"account__subscription-updatePaymentContainer":`_account__subscription-updatePaymentContainer_lnwdx_396`,accountSubscriptionUpdatePaymentContainer:`_account__subscription-updatePaymentContainer_lnwdx_396`,"account__subscription--updatePaymentLink":`_account__subscription--updatePaymentLink_lnwdx_401`,accountSubscriptionUpdatePaymentLink:`_account__subscription--updatePaymentLink_lnwdx_401`};function JW(){return HM(()=>SN(`getTeamsSubscriptionInfo`).then(e=>(0,H.default)(e,sN)))}function YW(){return HM(()=>SN(`getTeams`).then(e=>(0,H.default)(e,sN)))}function XW(){return HM(()=>SN(`getCollaborators`).then(e=>(0,H.default)(e,fN)))}var ZW=_i.default.bind(qW),QW=e=>
552e===0?U(`pricing.trial_ending_time_today`):e===1?U(`pricing.trial_ending_time_day`):U(`pricing.trial_ending_time_days`,{days:e});function $W(){let e=xe(),t=j(e=>e.currentUser),n=j(dw),r=j(tV),i=j(YB),[a,o]=(0,B.useState)(void 0),[,s]=(0,B.useState)(0),c=(0,B.useRef)(!1),l=(0,B.useRef)(new Set),u=(0,B.useCallback)(e=>(0,z.default)(e).diff((0,z.default)(),`days`),[]),d=(0,B.useCallback)(()=>{r&&hme(r),e(oz(`upgrade`,{}))},[e,r]),f=(0,B.useCallback)(()=>{e(oz(`upgrade`,{}))},[e]),p=(0,B.useCallback)(e=>()=>{qhe({[e]:!0}),s(e=>e+1)},[]),m=(0,B.useMemo)(()=>[{id:`exceed`,closeable:!0,meta:{},text:e=>(0,K.jsxs)(`div`,{children:[U(`pricing.exceed_limit`,{plan:e.currentPlanTitle}),` `,(0,K.jsx)(`span`,{onClick:f,children:U(`pricing.exceed_limit2`)}),` `,U(`pricing.exceed_limit3`)]}),showIf:(e,t)=>e.allowedJobsMonth>0&&e.jobsUsedMonth>=e.allowedJobsMonth&&mo(t)},{id:`trial_info`,closeable:!0,className:`pricing__messageinfo`,meta:{},text:()=>(0,K.jsxs)(`div`,{children:[U(`pricing.trial_info_banner`,{days:i}),` `,(0,K.jsx)(`span`,{onClick:d,children:U(`pricing.trial_info_cta`)})]}),showIf:(e,t)=>e.status===`trial`&&r===$B.MID&&mo(t)},{id:`trial_warning`,closeable:!0,className:`pricing__messageinfo`,meta:{},text:()=>(0,K.jsxs)(`div`,{children:[U(`pricing.trial_warning_banner`,{days:i}),` `,(0,K.jsx)(`span`,{onClick:d,children:U(`pricing.trial_info_cta`)})]}),showIf:(e,t)=>e.status===`trial`&&r===$B.WARNING&&mo(t)},{id:`trial_urgent`,closeable:!1,className:`pricing__messageinfo`,meta:{},text:()=>(0,K.jsxs)(`div`,{children:[U(`pricing.trial_urgent_banner`,{timeLeft:QW(i)}),` `,(0,K.jsx)(`span`,{onClick:d,children:U(`pricing.trial_info_cta`)})]}),showIf:(e,t)=>e.status===`trial`&&r===$B.URGENT&&mo(t)},{id:`trial_expired`,closeable:!1,className:`pricing__messagered`,meta:{},text:()=>(0,K.jsxs)(`div`,{children:[U(`pricing.trial_expired_banner`),` `,(0,K.jsx)(`span`,{onClick:d,children:U(`pricing.trial_info_cta`)})]}),showIf:(e,t)=>e.status===`trial`&&r===$B.EXPIRED&&mo(t)},{id:`expired`,closeable:!1,meta:{},text:e=>(0,K.jsx)(`div`,{children:(0,K.jsx)(O,{i18nKey:`pricing.expired_partner`,values:{days:u(e.removePartnersTrialAccessBy)},components:{btn:(0,K.jsx)(`span`,{onClick:d})}})}),showIf:(e,t,n,r)=>e.removePartnersTrialAccessBy&&mo(t)&&r.hasInvitedPartners},{id:`expired_admin`,closeable:!0,repeatable:!0,meta:{},text:(e,t)=>(0,K.jsxs)(`div`,{children:[U(`pricing.expired_partner_admin`,{name:(0,G.default)(t,[`userData`,`fullName`]),days:u(t.removePartnersTrialAccessBy)}),` `]}),showIf:(e,t,n)=>n.removePartnersTrialAccessBy}],[u,d,f,r,i]),h=(0,B.useMemo)(()=>{if(t.user)return t.user.subscription},[t.user]),g=(0,B.useMemo)(()=>(0,If.default)(m,(e,t)=>(t.repeatable&&a&&(0,xc.default)(a,n=>{e.push({...t,id:`${t.id}-${n.userId}`,meta:{...t.meta,userData:n.userData,removePartnersTrialAccessBy:n.removePartnersTrialAccessBy}})}),t.repeatable||e.push(t),e),[]),[m,a]),_=(0,B.useMemo)(()=>{let e=lA(),r=t=>e&&e[t];return(0,If.default)(g,(e,i)=>i.showIf(h,t.user,i.meta,{hasInvitedPartners:n})&&!r(i.id)?[...e,{...i,txt:i.text(h,i.meta),onClose:i.closeable&&p}]:e,[])},[g,h,t.user,n,p]),v=(0,B.useCallback)(({onClose:e,txt:t,id:n,className:r})=>(0,K.jsxs)(`div`,{className:ZW(r||`pricing__messagered`),children:[e&&(0,K.jsx)(Y.IcCloseWhite2,{onClick:e(n),className:ZW(`pricing__message-close`)}),(0,K.jsx)(`div`,{className:ZW(`pricing__message-txt`),children:t})]},n),[]),y=(0,B.useCallback)(e=>(0,K.jsx)(`div`,{className:ZW(`pricing__messagered-wrap`),children:(0,H.default)(e,e=>v(e))}),[v]),b=(0,B.useMemo)(()=>_.find(({id:e})=>e.startsWith(`trial_`)),[_]);return(0,B.useEffect)(()=>{if(b&&r){let e=`${b.id}:${r}`;l.current.has(e)||(l.current.add(e),mme(r,i))}},[r,i,b]),(0,B.useEffect)(()=>(JW().then(e=>{c.current||o(e)}).catch(e=>R.default.error(`Error while getting team subscription info`,e)),()=>{c.current=!0}),[]),!h||_.length===0?null:y(_)}Qn();var eG=()=>{},tG={display:`flex`,alignItems:`center`,justifyContent:`center`,zIndex:10001,px:2},nG={position:`relative`,overflow:`hidden`,background:`var(--color-white)`,borderRadius:`8px`,padding:{xs:`28px 20px 22px`,sm:`36px 42px 30px`},maxWidth:`540px`,width:`100%`,fontFamily:`var(--primaryFont)`,textAlign:`center`,boxShadow:`0 24px 72px rgba(15, 33, 40, 0.28), 0 0 0 1px rgba(41, 51, 61, 0.08)`,outline:`none`},rG={width:`58px`,height:`58px`,mx:`auto`,mb:`18px`,borderRadius:`50%`,dis
552play:`flex`,alignItems:`center`,justifyContent:`center`,background:`#fff4ed`,border:`1px solid #ffddce`,"& svg":{width:`38px`,height:`38px`}},iG={color:`var(--color-primary)`,fontSize:`11px`,fontWeight:700,letterSpacing:`0.08em`,textTransform:`uppercase`,margin:`0 0 8px`},aG={fontSize:{xs:`24px`,sm:`28px`},lineHeight:1.16,fontWeight:700,margin:`0 auto 14px`,color:`var(--color-text)`,maxWidth:`440px`},oG={color:`var(--color-text-secondary)`,fontSize:{xs:`15px`,sm:`16px`},lineHeight:1.6,margin:`0 auto`,maxWidth:`456px`},sG={display:`flex`,flexDirection:`column`,gap:`8px`,margin:`22px auto 0`,padding:`12px 14px`,borderRadius:`8px`,background:`var(--color-primary-light-solid)`,border:`1px solid var(--color-primary-selection)`,textAlign:`left`},cG={display:`flex`,alignItems:`center`,gap:`10px`,color:`var(--color-text)`,fontWeight:600,fontSize:`14px`,lineHeight:1.35},lG={width:`8px`,height:`8px`,borderRadius:`50%`,background:`var(--color-primary)`,flexShrink:0},uG={display:`flex`,flexDirection:`column`,gap:`10px`,mt:`30px`},dG={display:`flex`,alignItems:`center`,justifyContent:`center`,flexWrap:`wrap`,gap:`2px`},fG={width:`100%`,height:`48px`,fontSize:`16px`,fontWeight:600,borderRadius:`6px`},pG={width:`100%`,height:`42px`,fontWeight:600,borderRadius:`6px`},mG={minWidth:`0`,paddingLeft:`10px`,paddingRight:`10px`};function hG(){let{t:e}=Dt(),t=xe(),n=ir(),r=j(QB),i=j(qB),o=j(sB),s=j(lB),c=j(LC),l=c?Object.keys(c).length:0,u=(0,B.useRef)(!1),d=r&&!s&&i?.kind!==`upgrade`,f=o&&wB(n.pathname);return(0,B.useEffect)(()=>{d&&!u.current&&(gme(),u.current=!0)},[d]),d?(0,K.jsx)(a,{open:!0,onClose:eG,"aria-labelledby":`trial-expired-title`,"aria-describedby":`trial-expired-body`,sx:tG,slotProps:{backdrop:{sx:{backgroundColor:`rgba(10, 28, 32, 0.62)`}}},children:(0,K.jsxs)(I,{sx:nG,role:`dialog`,"aria-modal":`true`,children:[(0,K.jsx)(I,{sx:rG,"aria-hidden":`true`,children:(0,K.jsx)(Y.IcWarning,{width:`48px`,height:`48px`})}),(0,K.jsx)(I,{component:`p`,sx:iG,children:e(`pricing.trial_expired_overline`)}),(0,K.jsx)(I,{component:`h2`,id:`trial-expired-title`,sx:aG,children:e(`pricing.trial_expired_title`)}),(0,K.jsx)(I,{component:`p`,id:`trial-expired-body`,sx:oG,children:e(`pricing.trial_expired_body`)}),(0,K.jsxs)(I,{sx:sG,children:[(0,K.jsxs)(I,{sx:cG,children:[(0,K.jsx)(I,{component:`span`,sx:lG,"aria-hidden":`true`}),e(`pricing.trial_expired_data_safe`)]}),(0,K.jsxs)(I,{sx:cG,children:[(0,K.jsx)(I,{component:`span`,sx:lG,"aria-hidden":`true`}),l>0?e(`pricing.trial_expired_stats`,{properties:l}):e(`pricing.trial_expired_no_properties`)]})]}),(0,K.jsxs)(I,{sx:uG,children:[(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`,`width-flex`],onClick:()=>{t(oz(`upgrade`,{}))},styleOverwrite:fG,children:e(`pricing.trial_expired_cta`)}),f&&(0,K.jsx)(q,{types:[`type-border-primary`,`size-medium`],onClick:()=>{t(SB(!0))},styleOverwrite:pG,children:`Unlock User Dashboard`}),(0,K.jsxs)(I,{sx:dG,children:[(0,K.jsx)(q,{types:[`type-flat-primary`,`size-medium`],onClick:()=>{bu(e(`pricing.trial_expired_contact_msg`))},styleOverwrite:mG,children:e(`pricing.trial_expired_contact`)}),(0,K.jsx)(q,{types:[`type-flat-primary`,`size-medium`],onClick:()=>{t(gA())},styleOverwrite:mG,children:e(`titles.logout`)})]})]})]})}):null}var gG=[{key:`properties`,IconComponent:Y.NavProperties},{key:`scheduling`,IconComponent:Y.NavCalendar},{key:`team`,IconComponent:Y.NavContacts},{key:`reports`,IconComponent:Y.NavReports},{key:`airbnb`,IconComponent:Y.IcConnect}],_G=`https://getproperly.com/book-demo`,vG={campaign:`utm_campaign`,source:`utm_source`,content:`utm_content`,medium:`utm_medium`,term:`utm_term`,referrer:`utm_referrer`},yG=()=>{let e=new URL(_G),t=hc();return e.searchParams.set(`ref`,`webapp_trial_welcome_modal`),Object.entries(vG).forEach(([n,r])=>{t?.[n]&&e.searchParams.set(r,t[n])}),e.toString()},bG={position:`relative`,padding:{xs:`28px 24px 24px`,sm:`36px 44px 28px`},textAlign:`center`,fontFamily:`var(--primaryFont)`},xG={position:`absolute`,top:`10px`,right:`10px`,width:`28px`,height:`28px`,color:`var(--color-text-secondary)`,"& svg":{width:`14px`,height:`14px`},"&:hover":{color:`var(--color-text)`,backgroundColor:`var(--color-bg-hover, rgba(0, 0, 0, 0.05))`},"&:focus-visible":{outline:`2px solid var(--color-primary)`,outlineOffset:`2px`}},SG={width:`104px`,height:`104px`,mx:`auto`,mb:`18px`,borderRadius:`50%`,dis
552play:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,background:`var(--color-primary)`,color:`var(--color-real-white)`,boxShadow:`0 0 0 8px var(--color-primary-light-solid), 0 12px 28px rgba(54, 172, 178, 0.3)`,lineHeight:1},CG={color:`inherit`,fontSize:`44px`,fontWeight:800,letterSpacing:`-0.02em`,lineHeight:1},wG={color:`inherit`,fontSize:`11px`,fontWeight:700,letterSpacing:`0.14em`,textTransform:`uppercase`,marginTop:`8px`,opacity:.95},TG={fontSize:{xs:`24px`,sm:`28px`},lineHeight:1.2,fontWeight:700,color:`var(--color-text)`,letterSpacing:`-0.01em`,margin:`0 auto 8px`,maxWidth:`420px`},EG={color:`var(--color-text-secondary)`,fontSize:{xs:`14px`,sm:`15px`},lineHeight:1.55,margin:`0 auto`},DG={display:`flex`,flexDirection:`column`,gap:`12px`,padding:0,margin:`24px auto`,maxWidth:`320px`,listStyle:`none`,textAlign:`left`},OG={display:`flex`,alignItems:`center`,gap:`14px`,minWidth:0},kG={width:`32px`,height:`32px`,borderRadius:`10px`,background:`var(--color-primary-light-solid)`,color:`var(--color-primary)`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,"& svg":{width:`16px`,height:`16px`}},AG={fontSize:`14px`,lineHeight:1.35,fontWeight:500,color:`var(--color-text)`},jG={display:`flex`,flexDirection:`column`,alignItems:`center`,gap:`12px`},MG={width:`100%`,height:`48px`,borderRadius:`8px`,fontSize:`15px`,fontWeight:700},NG={display:`inline-flex`,alignItems:`center`,gap:`6px`,background:`transparent`,border:`none`,padding:`4px 8px`,fontSize:`13px`,fontWeight:600,color:`var(--color-text-secondary)`,cursor:`pointer`,fontFamily:`inherit`,transition:`color 0.15s ease`,"&:hover":{color:`var(--color-primary)`,"& > span":{transform:`translateX(3px)`}},"&:focus-visible":{outline:`2px solid var(--color-primary)`,outlineOffset:`2px`,borderRadius:`4px`}},PG={display:`inline-block`,fontSize:`14px`,lineHeight:1,transition:`transform 0.15s ease`},FG={opacity:0,y:8},IG={opacity:1,y:0},LG={duration:.28,ease:`easeOut`};function RG(){let{t:e}=Dt(),t=j(JB),n=j(YB),r=j(FC),i=r?.objectId,a=r?.firstName,o=mo(r),[s,c]=B.useState(!1);(0,B.useEffect)(()=>{if(!t||!i){c(!1);return}if(n===null||n<=2){c(!1);return}let e=dA(i);if(e.welcomeModalSeen||e.endingModalSeen){c(!1);return}c(!0),ey(`welcome`)},[t,i,n]);let l=()=>{i&&fA(i,{welcomeModalSeen:!0}),c(!1)},u=(e,t)=>{t!==`backdropClick`&&l()},d=()=>{window.open(yG(),`_blank`,`noopener,noreferrer`),l()};if(!s)return null;let f=a?e(`pricing.trial_welcome_title_named`,{name:a}):e(`pricing.trial_welcome_title`);return(0,K.jsx)(X,{show:s,onClose:u,width:520,height:`auto`,block:!0,variableContentHeight:!0,children:(0,K.jsxs)(I,{component:gn.div,initial:FG,animate:IG,transition:LG,sx:bG,children:[(0,K.jsx)(br,{"aria-label":e(`pricing.trial_welcome_close_label`),onClick:l,size:`small`,sx:xG,children:(0,K.jsx)(Y.IcClose2,{})}),(0,K.jsxs)(I,{sx:SG,"aria-hidden":`true`,children:[(0,K.jsx)(x,{component:`span`,sx:CG,children:n}),(0,K.jsx)(x,{component:`span`,sx:wG,children:e(`pricing.trial_welcome_hero_days_label`)})]}),(0,K.jsx)(x,{component:`h2`,sx:TG,children:f}),(0,K.jsx)(x,{sx:EG,children:e(`pricing.trial_welcome_features`)}),(0,K.jsx)(I,{component:`ul`,sx:DG,children:gG.map(({key:t,IconComponent:n})=>(0,K.jsxs)(I,{component:`li`,sx:OG,children:[(0,K.jsx)(I,{sx:kG,"aria-hidden":`true`,children:(0,K.jsx)(n,{})}),(0,K.jsx)(x,{sx:AG,children:e(`pricing.trial_welcome_feature_${t}`)})]},t))}),(0,K.jsxs)(I,{sx:jG,children:[(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`,`width-flex`],onClick:l,styleOverwrite:MG,children:e(`pricing.trial_welcome_cta`)}),o&&(0,K.jsxs)(I,{component:`button`,type:`button`,onClick:d,sx:NG,children:[e(`pricing.trial_welcome_demo_cta`),(0,K.jsx)(I,{component:`span`,"aria-hidden":`true`,sx:PG,children:`â`})]})]})]})})}var zG=(e,t)=>t===0?e(`pricing.trial_ending_time_today`):t===1?e(`pricing.trial_ending_time_day`):e(`pricing.trial_ending_time_days`,{days:t}),BG={padding:{xs:`28px 22px 24px`,sm:`36px 42px 30px`},textAlign:`center`,fontFamily:`var(--primaryFont)`},VG={width:`58px`,height:`58px`,mx:`auto`,mb:`18px`,borderRadius:`50%`,dis
552play:`flex`,alignItems:`center`,justifyContent:`center`,background:`#fff4ed`,border:`1px solid #ffddce`,"& svg":{width:`38px`,height:`38px`}},HG={fontSize:{xs:`24px`,sm:`28px`},lineHeight:1.18,fontWeight:700,color:`var(--color-text)`,margin:`0 auto 14px`,maxWidth:`430px`},UG={color:`var(--color-text-secondary)`,fontSize:{xs:`15px`,sm:`16px`},lineHeight:1.55,margin:`0 auto`,maxWidth:`450px`},WG={display:`flex`,alignItems:`center`,gap:`10px`,margin:`22px auto 0`,padding:`12px 14px`,borderRadius:`8px`,background:`var(--color-primary-light-solid)`,border:`1px solid var(--color-primary-selection)`,textAlign:`left`,maxWidth:`430px`},GG={width:`22px`,height:`22px`,borderRadius:`50%`,background:`var(--color-primary)`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},KG={fontSize:`14px`,lineHeight:1.4,fontWeight:600,color:`var(--color-text)`},qG={display:`flex`,flexDirection:`column`,alignItems:`stretch`,gap:`8px`,mt:`28px`},JG={width:`100%`,height:`46px`,borderRadius:`6px`,fontSize:`15px`,fontWeight:700},YG={alignSelf:`center`,height:`32px`,minWidth:`0`,paddingLeft:`12px`,paddingRight:`12px`,color:`var(--color-text-secondary)`};function XG(){let{t:e}=Dt(),t=xe(),n=j(JB),r=j(YB),i=j(FC)?.objectId,[a,o]=B.useState(!1);(0,B.useEffect)(()=>{if(!n||!i||r===null){o(!1);return}if(r>2||r<0){o(!1);return}let e=`day${r}`,t=dA(i).endingModalSeen||{};t[e]||(fA(i,{endingModalSeen:{...t,[e]:!0}}),o(!0),ey(`ending`))},[n,i,r]);let s=()=>{o(!1)},c=()=>{s(),t(oz(`upgrade`,{}))};if(!a)return null;let l=zG(e,r);return(0,K.jsx)(X,{show:a,onClose:s,width:560,height:`auto`,block:!0,variableContentHeight:!0,children:(0,K.jsxs)(I,{sx:BG,children:[(0,K.jsx)(I,{sx:VG,"aria-hidden":`true`,children:(0,K.jsx)(Y.IcWarning,{})}),(0,K.jsx)(x,{component:`h2`,sx:HG,children:e(`pricing.trial_ending_title`,{timeLeft:l})}),(0,K.jsx)(x,{sx:UG,children:e(`pricing.trial_ending_body`)}),(0,K.jsxs)(I,{sx:WG,children:[(0,K.jsx)(I,{component:`span`,sx:GG,"aria-hidden":`true`,children:(0,K.jsx)(Y.IcCheckicon,{width:`12px`,height:`12px`})}),(0,K.jsx)(x,{sx:KG,children:e(`pricing.trial_ending_reassurance`)})]}),(0,K.jsxs)(I,{sx:qG,children:[(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`,`width-flex`],onClick:c,styleOverwrite:JG,children:e(`pricing.trial_ending_cta`)}),(0,K.jsx)(q,{types:[`type-flat-black`,`size-small`],onClick:s,styleOverwrite:YG,children:e(`pricing.trial_ending_later`)})]})]})})}var ZG=`/favicon.ico`,QG=1e4,$G=({title:e,body:t,onClick:n,icon:r=ZG,duration:i=QG})=>{if(typeof Notification>`u`)return;let a=()=>{if(Notification.permission!==`granted`)return;let a=new Notification(e,{body:t,icon:r});n&&(a.onclick=n),setTimeout(()=>a.close(),i)};Notification.permission===`default`?Notification.requestPermission().then(a).catch(()=>{}):a()};function eK(e){return{type:BO,data:e}}var tK=F` 553 subscription listenForUpdates { 554 listenForUpdates { 555 type 556 subscriptionPayload { 557 ... on CommentMessage { 558 jobSnapshotId 559 commentId 560 } 561 ... on VerificationPhotoListenType { 562 jobSnapshotId 563 verificationPhoto { 564 pictureIdentifier 565 } 566 } 567 } 568 } 569 } 570`,nK=F` 571 fragment jobReportItem on jobReportItem { 572 note 573 pictureIdentifier 574 } 575`,rK=F` 576 fragment additionalReportFields on additionalReportFields { 577 report { 578 ...jobReportItem 579 } 580 } 581 ${nK} 582`,iK=F` 583 fragment stepFields on stepFields { 584 id 585 pictureIdentifier 586 note 587 room 588 section 589 title 590 isComplete 591 isVerificationRequired 592 isVerificationComplete 593 tasks { 594 ...taskFields 595 } 596 incompleteTaskCount 597 } 598 ${F` 599 fragment taskFields on taskFields { 600 id 601 icon 602 note 603 notePictureIdentifiers 604 value 605 isComplete 606 completedOn 607 centerX 608 centerY 609 } 610`} 611`,aK=F` 612 fragment verificationPhotoFields on verificationPhotoFields { 613 id 614 stepId 615 stepTitle 616 pictureIdentifier 617 date 618 } 619`,oK=F` 620 fragment checklistFields on checklistFields { 621 id 622 type 623 title 624 isOneOff 625 sourceProblemId 626 jobInstructionId 627 description 628 pictureIdentifier 629 totalTaskCount 630 totalVerificationPictureCount 631 steps { 632 ...stepFields 633 } 634 doneTaskCount 635 doneStepCount 636 verificationPhotos { 637 ...verificationPhotoFields 638 } 639 propertyIndependent 640 published 641 recurring 642 } 643 ${iK} 644 ${aK} 645`,sK=F` 646 fragment userFields on userFields { 647 id 648 firstName 649 lastName 650 profileId 651 pictureIdentifier 652 countryCode 653 phoneNumber 654 email 655 } 656`,cK=F` 657 fragment cleanerFields on cleanerFields { 658 id 659 status 660 contactId 661 note 662 date 663 companyName 664 isSuggested 665 userData { 666 ...userFields 667 } 668 isPro 669 isStripeEnabled 670 } 671 ${sK} 672`,lK=F`
673 fragment jobFields on jobFields { 674 id 675 title 676 duration 677 scheduledStartTime 678 scheduledEndTime 679 startTimeType 680 totalTaskCount 681 totalChecklistCount 682 totalVerificationPictureCount 683 offeredPrice 684 offeredPriceCurrency 685 note 686 sentOn 687 isMarketplaceJob 688 isMonetizedJob 689 isProMarketplaceJob 690 jobType 691 isForwardingEnabled 692 forwardedOfferedPrice 693 forwardedNote 694 } 695`,uK=F` 696 fragment problemFields on problemFields { 697 id #stepId 698 stepTitle 699 checklistId 700 checklistTitle 701 note 702 pictureIdentifiers 703 severity 704 date 705 title 706 status 707 resolverName 708 lastUpdatedAt 709 } 710`,dK=F` 711 fragment progressSummaryFields on progressSummaryFields { 712 id 713 actualStartTime 714 actualEndTime 715 startLocation { 716 latitude 717 longitude 718 } 719 endLocation { 720 latitude 721 longitude 722 } 723 completedTaskCount 724 problemCount 725 additionalReportCount 726 verificationPictureCount 727 bilableTime 728 totalMileage 729 totalCost 730 hasNewFeedback 731 } 732`,fK=F` 733 fragment propertyFields on propertyFields { 734 id 735 title 736 type 737 pictureIdentifier 738 location { 739 latitude 740 longitude 741 } 742 timeZone 743 city 744 state 745 country 746 apartment 747 street 748 zip 749 currencyCode 750 countryCode 751 zoomLevel 752 proMarketId 753 } 754`,pK=F` 755 fragment senderFields on senderFields { 756 id 757 companyName 758 userData { 759 ...userFields 760 } 761 } 762 ${sK} 763`,mK=F` 764 query joblist( 765 $role: RoleType! 766 $propertyId: String 767 $languageCode: String 768 $forHistory: Boolean 769 $scheduledToEndAfter: DateTime 770 $updatedAfter: DateTime 771 $offset: Int 772 $limit: Int 773 $cleanerId: String 774 $upcomingJobs: Boolean 775 ) { 776 JobList( 777 role: $role 778 propertyId: $propertyId 779 languageCode: $languageCode 780 forHistory: $forHistory 781 scheduledToEndAfter: $scheduledToEndAfter 782 updatedAfter: $updatedAfter 783 offset: $offset 784 limit: $limit 785 cleanerId: $cleanerId 786 upcomingJobs: $upcomingJobs 787 ) { 788 status 789 id 790 connections { 791 cleanerId 792 } 793 sender { 794 ...senderFields 795 } 796 property { 797 ...propertyFields 798 } 799 job { 800 ...jobFields 801 } 802 cleaners { 803 ...cleanerFields 804 } 805 checklists { 806 ...checklistFields 807 } 808 progress { 809 ...progressSummaryFields 810 } 811 problems { 812 ...problemFields 813 } 814 additionalInformationReport { 815 ...additionalReportFields 816 } 817 lastUpdatedAt 818 } 819 } 820 821 ${rK} 822 ${nK} 823 ${lK} 824 ${dK} 825 ${sK} 826 ${cK} 827 ${uK} 828 ${oK} 829 ${pK} 830 ${fK} 831`,hK=F` 832 query GetActiveProMarketplaceJobCount($languageCode: String, $roleType: RoleType) { 833 GetActiveProMarketplaceJobCount(languageCode: $languageCode, roleType: $roleType) { 834 pendingJobCount 835 acceptedJobCount 836 inprogressJobCount 837 finishedUnpaidJobCount 838 } 839 } 840`,gK=F` 841 query getJobNotifications { 842 getJobNotifications { 843 error 844 results { 845 jobSnapshotId 846 hasVerificationPhotos 847 hasComments 848 } 849 notificationsCount 850 } 851 } 852`,_K=F` 853 query GetJobListview( 854 $languageCode: String 855 $offset: Int 856 $limit: Int 857 $search: String 858 $sortOrder: SortingOrder 859 $filters: [ListViewFilters] 860 $sortColumn: String 861 $timeZone: String 862 $draftJobsMode: Boolean 863 ) { 864 getJobListview( 865 languageCode: $languageCode 866 offset: $offset 867 limit: $limit 868 search: $search 869 sortOrder: $sortOrder 870 filters: $filters 871 sortColumn: $sortColumn 872 timeZone: $timeZone 873 draftJobsMode: $draftJobsMode 874 ) { 875 info { 876 total 877 limit 878 offset 879 query 880 } 881 result { 882 id 883 status 884 property { 885 id 886 title 887 type 888 pictureIdentifier 889 timeZone 890 city 891 country 892 address 893 location { 894 latitude 895 longitude 896 } 897 details { 898 numberOfBedrooms 899 numberOfBathrooms 900 } 901 sharedBy 902 } 903 checklists { 904 title 905 } 906 progress { 907 actualStartTime 908 actualEndTime 909 actualTime 910 bilableTime 911 totalCost 912 totalMileage 913 verificationPhotoFeedbackComments 914 actualDuration 915 completedAndTotalSlides 916 completedAndTotalTasks 917 completedAndTotalVerificationPhotos 918 jobNoOfThumbsUp 919 jobNoOfThumbsDown 920 problemCount 921 } 922 cleaners { 923 name 924 status 925 } 926 additionalCleaners { 927 id 928 name 929 } 930 job { 931 scheduledStartTime 932 scheduledEndTime 933 scheduledTime 934 offeredPriceAndCurrency 935 sentOn 936 duration 937 title 938 jobType 939 isProMarketplaceJob 940 isForwardingEnabled 941 paymentDetails { 942 paymentId 943 paymentStatus 944 paymentAmountAndCurrency 945 paymentDate 946 } 947 } 948 isForwarded 949 booking { 950 arrivalDate 951 departureDate 952 numberOfGuests 953 partner 954 } 955 skillRequirements { 956 skillTitle 957 } 958 riFields { 959 riPending 960 riCompleted 961 } 962 schedulingDate 963 } 964 error 965 } 966 } 967`;function vK(e,t){return!!e.comments.find(e=>e.jobSnapshotId===t)}function yK(e,t,n){return!!e.verificationPhotos.find(e=>e.jobSnapshotId===t&&(!n||!e.isFromSubscription))}function bK(e,t,n=!1){return vK(e,t)||yK(e,t,n)}function xK(e,t,n){return!!e.comments.find(e=>e.jobSnapshotId===t&&e.commentId===n)}function SK(e,t,n){return!!e.verificationPhotos.find(e=>e.jobSnapshotId===t&&e.pictureIdentifier===n)}function CK(e){let t={};
967return[...e.comments,...e.verificationPhotos].forEach(e=>{t[e.jobSnapshotId]=!0}),Object.keys(t).length}var wK=()=>{let e=xe(),t=j(dW),n=j(sB),r=(0,B.useRef)(!0),i=(0,B.useRef)(1e3*40),a=(0,B.useRef)(null),o=(0,B.useRef)(null),s=(0,B.useRef)(null),c=(0,B.useRef)(!1),l=(0,B.useRef)(t);l.current=t;let u=(0,B.useCallback)((e,t)=>({jobSnapshotId:e,commentId:t}),[]),d=(0,B.useCallback)((e,t,n)=>({jobSnapshotId:e,pictureIdentifier:t,isFromSubscription:n}),[]),f=(0,B.useCallback)((e,t)=>{let n={comment:{title:U(`jobs.push_comment_title`),body:U(`jobs.push_comment_body`,{jobId:e})},verificationPhoto:{title:U(`jobs.push_verification_photo_title`),body:U(`jobs.push_verification_photo_body`,{jobId:e})}}[t];n&&$G({title:n.title,body:n.body,onClick:()=>{window.open(`/jobs/${e}`,`properly-job-${e}`)?.focus()}})},[]),p=(0,B.useCallback)(e=>{let t=l.current,n=(0,bc.default)(t);switch(e.type){case`comment`:xK(t,e.subscriptionPayload.jobSnapshotId,e.subscriptionPayload.commentId)||(n.comments.push(u(e.subscriptionPayload.jobSnapshotId,e.subscriptionPayload.commentId)),f(e.subscriptionPayload.jobSnapshotId,`comment`));break;case`verificationPhoto`:SK(t,e.subscriptionPayload.jobSnapshotId,e.subscriptionPayload.verificationPhoto.pictureIdentifier)||(n.verificationPhotos.push(d(e.subscriptionPayload.jobSnapshotId,e.subscriptionPayload.verificationPhoto.pictureIdentifier,!0)),f(e.subscriptionPayload.jobSnapshotId,`verificationPhoto`));break;default:}return n.notificationsCount=CK(n),n},[u,d,f]),m=(0,B.useCallback)(e=>{let t={comments:[],verificationPhotos:[],notificationsCount:e.notificationsCount,lastFetch:new Date};return e.results.forEach(e=>{let{jobSnapshotId:n}=e;e.hasComments&&t.comments.push(u(n,`UNKNOWN`)),e.hasVerificationPhotos&&t.verificationPhotos.push(d(n,`UNKNOWN`))}),t},[u,d]),h=(0,B.useCallback)(()=>{let{lastFetch:e}=l.current;return!c.current&&(!e||new Date().getTime()-e>i.current-1e3)},[]),g=(0,B.useCallback)(async()=>{if(h()){c.current=!0;let t=(await QF.query({query:gK,fetchPolicy:`no-cache`}).then(({data:e,errors:t})=>(t&&R.default.error(`Client get jobs notifications query error. Will try again automatically.`,t),e)).catch(e=>{R.default.error(`Client get jobs notifications query error. Will try again automatically.`,e)}))?.getJobNotifications;c.current=!1,t&&!t.error&&e(eK(m(t)))}clearTimeout(s.current),r.current&&(s.current=setTimeout(()=>{g()},i.current))},[h,m,e]),_=(0,B.useCallback)(()=>{a.current=QF.subscribe({query:tK,variables:{},fetchPolicy:`no-cache`}).subscribe({next:t=>{t.data?.listenForUpdates&&e(eK(p(t.data.listenForUpdates)))}})},[p,e]);return(0,B.useEffect)(()=>(r.current=!0,g(),n&&(i.current=1e3*10),o.current=setTimeout(()=>{_()},1e3),()=>{r.current=!1,clearTimeout(s.current),clearTimeout(o.current),a.current&&a.current.unsubscribe()}),[n,g,_]),null};function TK(){return Wn(Z.calendar)}function EK(e){return{type:jE,data:e}}function DK(e){return{type:ME,meta:e}}function OK(e,t){return{type:zE,meta:t}}function kK(e){return{type:NE,checklistId:e}}function AK(e){return{type:YE,skillId:e}}function jK(e){return{type:PE,title:e}}function MK(e){return{type:FE,jobType:e}}function NK(e){return{type:IE,isForwardingEnabled:e}}function PK(e){return{type:LE,checklistViewType:e}}function FK(){return{type:RE}}function IK(e,t){return{type:BE,key:e,meta:t}}function LK(e){return{type:VE,data:e}}function RK(e){return{type:HE,data:e}}function zK(e){return{type:UE,data:e}}function BK({cleaners:e}){return{type:GE,cleaners:e}}function VK(){return{type:WE}}function HK(e,t,n,r,i){return{type:JE,jobRequest:e,problem:t,problemStatus:n,sourceJob:r,skipJobModalOpen:i}}function UK(e){return{type:tD,taskTitle:e}}function WK(e){return{type:eD,taskDescription:e}}function GK(e){return{type:XE,status:e}}function KK(e){return{type:ZE,riOption:e}}function qK(e){return{type:QE,jobId:e}}var JK=(e,t,n,r,i,a,o)=>({type:rD,id:e,schedulingDate:t,closeModalFunc:n,setSuccessFunc:r,setErrorFunc:i,eventId:a,now:o}),YK=(e,t,n,r,i)=>({type:iD,id:e,closeModalFunc:t,setSuccessFunc:n,setErrorFunc:r,eventId:i});function XK(e){return{type:aD,meta:e}}var ZK=e(_r()),QK=F` 968 query bookingDetailsQuery($id: String, $propertyId: String) { 969 booking(id: $id) { 970 _id 971 objectId 972 arrivalDate 973 departureDate 974 guestId 975 propertyId 976 partnerBookingId 977 hostId 978 ownerRole 979 propertyRole 980 partner 981 partnerUserId 982 status 983 createdAt 984 updatedAt 985 hasEvents 986 otherAttributes { 987 group 988 label 989 value 990 pictures 991 } 992 tags 993 guestData { 994 firstName 995 lastName 996 pictureUrl 997 title 998 } 999 numberOfGuests 1000 } 1001 property(id: $propertyId) { 1002 _id 1003 objectId 1004 pictureUrl 1005 title 1006 pictureUrls 1007 deleted 1008 address { 1009 apt 1010 city 1011 country 1012 state 1013 street 1014 zip 1015 } 1016 user { 1017 _id 1018 email 1019 } 1020 rooms { 1021 _id 1022 title 1023 type 1024 } 1025 timeZone 1026 partner 1027 partnerPropertyId 1028 partnerUserId 1029 partnerPictureIds 1030 numOfBedrooms 1031 numOfBeds 1032 numOfBathrooms 1033 location 1034 type 1035 detailsAccess 1036 detailsGarbage 1037 detailsParking 1038 detailsWifiName 1039 detailsWifiPassword 1040 detailsWifiDescription 1041 detailsInformation 1042 sample 1043 hasUserTitle 1044 countryCode 1045 propertyRole 1046 ownerRole 1047 userData 1048 userDataVersion 1049 hasTrigger 1050 createdAt 1051 updatedAt 1052 acl 1053 bedConfiguration { 1054 bedType 1055 bedDisplayType 1056 quantity 1057 twinable 1058 } 1059 otherAttributes { 1060 group 1061 label 1062 value 1063 } 1064 tags 1065 } 1066 } 1067`,$K=({bookingId:e,propertyId:t})=>{let n=xe(),r=e=>n(tF({isOpen:!0,images:(e||[]).map(e=>({image:e}))})),{loading:i,error:a,data:o}=Kn(QK,{variables:{id:e,propertyId:t}});if(i)return(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:`20px`,p:0},children:[(0,K.jsx)(I,{sx:{padding:0},children:(0,K.jsx)(J,{height:80,variant:`rounded`})}),(0,K.jsx)(J,{height:1}),(0,K.jsxs)(I,{sx:{padding:0,display:`flex`,flexDirection:`column`,gap:.5},children:[(0,K.jsx)(J,{height:14,width:`25%`}),(0,K.jsx)(J,{height:18,width:`55%`}),(0,K.jsx)(J,{height:18,width:`45%`})]}),(0,K.jsx)(J,{height:1}),(0,K.jsxs)(I,{sx:{padding:0,display:`flex`,flexDirection:`column`,gap:.5},children:[(0,K.jsx)(J,{height:14,width:`20%`}),(0,K.jsx)(J,{height:18,width:`50%`})]}),(0,K.jsx)(J,{height:1}),(0,K.jsxs)(I,{sx:{padding:0,display:`flex`,flexDirection:`column`,gap:.5},children:[(0,K.jsx)(J,{height:18,width:`35%`}),(0,K.jsx)(J,{height:18,width:`50%`})]})]});if(a)return(0,K.jsx)(`div`,{children:(0,K.jsx)(Jg,{type:`orange`,children:`Something went wrong while getting your booking.`})});let{booking:s,property:c}=o;return!s||!c?(0,K.jsx)(`div`,{children:(0,K.jsx)(Yg,{type:`greyloading`,children:`Booking not found!`})}):(0,K.jsx)(Oy,{id:`bookingDetails`,openPictures:r,booking:{...s,id:s.objectId},property:{...c,id:c.objectId}})};$K.propTypes={bookingId:V.default.string.isRequired,propertyId:V.default.string.isRequired};var eq={boxShadow:`none`,borderBottom:`1px solid rgba(29,39,48,0.12)`,textAlign:`justify`,marginBottom:`-1px`},tq={color:`var(--color-text)`,"& .MuiAccordionSummary-content":{justifyContent:`center`,margin:`20p
1067x 125px !important`,minHeight:24,"&.Mui-expanded":{margin:`auto`},"&> :last-child":{paddingRight:0}},"& .MuiAccordionSummary-expandIconWrapper":{right:`110px`}},nq={position:`absolute`,top:`14px`,left:`120px`},rq={margin:`0 4px`},iq={color:`var(--color-primary)`,textDecoration:`none`},aq=class extends B.PureComponent{constructor(...e){super(...e),k(this,`state`,{selectedTagFilters:[]}),k(this,`handleTagFilterChange`,e=>this.setState({selectedTagFilters:e})),k(this,`handleClick`,e=>t=>{this.props.handleClickSaga(t,{action:`clickproperty`,id:e.objectId})}),k(this,`isActiveFunc`,e=>e.objectId===this.props.finalPropertyId)}getPropertyType(e){return U(e===`apartment`?`properties.apartment`:e===`house`?`properties.house`:`job_request.not_set`)}renderProInfo(){let{config:e}=this.props;return(0,K.jsxs)(an,{square:!0,sx:eq,children:[(0,K.jsxs)(Bn,{sx:tq,expandIcon:(0,K.jsx)(Y.IcExpandMore,{width:`24px`}),children:[(0,K.jsx)(I,{sx:nq,children:(0,K.jsx)(Y.LightBulb,{width:`17.5px`,height:`28px`,byHeight:!0})}),U(`marketplace.expansion_title`),(0,K.jsx)(I,{component:`span`,sx:rq,children:`Properly`}),(0,K.jsx)(I,{children:(0,K.jsx)(ef,{})})]}),(0,K.jsx)(Ln,{sx:{color:`var(--color-grey)`},children:(0,K.jsx)(I,{component:`span`,sx:{fontSize:`15px`},children:(0,K.jsx)(O,{i18nKey:`marketplace.expansion_content`,components:{msg:(0,K.jsx)(`a`,{className:`text-l6m`,style:iq,target:`_blank`,rel:`noopener noreferrer`,href:e.proMPSatisfactionGuaranteeUrl,"aria-label":`Marketplace Satisfaction Guarantee`}),tos:(0,K.jsx)(`a`,{className:`text-l6m`,style:iq,target:`_blank`,rel:`noopener noreferrer`,href:e.proTOSUrl,"aria-label":`Terms of Service`})}})})})]})}renderEvent({calendarEvent:e}){return R.default.info(`Job Request elements Property calendarEvent`,e),(0,K.jsxs)(MS,{id:`job-request-property-form`,children:[(0,K.jsx)(NS,{flexGrow:!0,left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,style:{overflow:`auto`},children:(0,K.jsx)($K,{bookingId:(0,G.default)(e,[`booking`,`id`])||(0,G.default)(e,[`bookingId`]),propertyId:(0,G.default)(e,[`property`,`id`])||(0,G.default)(e,[`propertyId`])})}),(0,K.jsx)(DM,{text:U(`job_request.view_eventsum`),isPrompt:!0,isVcenter:!0,isHcenter:!0,icon:`light`,color:`white`})]})}renderProperty({searchData:e,setSearchQuery:t,infoTextMsg:n,ordered:r,allPropertyTags:i=[],selectedTagFilters:a=[],onTagFilterChange:o}){let{doesProMarketPropertyExists:s}=this.props;return(0,K.jsxs)(MS,{id:`job-request-property-form`,children:[s&&this.renderProInfo(),(0,K.jsx)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`12px`,children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(I,{sx:{flex:1,minWidth:0,overflow:`hidden`},children:(0,K.jsx)($f,{onGrey:!0,"data-testid":`jobrequestsend_search_property`,placeholder:U(`job_request.search_property`),value:e.searchQuery,iconLocation:`left`,onChange:e=>t(`jobrequestnew_search`,e)})}),(0,K.jsx)(VA,{tags:i,selectedTags:a,onChange:o})]})}),(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{children:(0,K.jsx)(NS,{left:`24px`,top:`0px`,bottom:`12px`,right:`24px`,children:(0,K.jsx)(kS,{height:475,width:540,properties:r,handleClick:this.handleClick,isActiveFunc:this.isActiveFunc})})})})}),(0,K.jsx)(DM,{text:n,isPrompt:!0,isVcenter:!0,isHcenter:!0,icon:`light`,color:`white`})]})}render(){let{searchData:e,finalStartUpData:t,tagSourceProperties:n}=this.props,r=t?.event,i=t?.data?.startTime;if(r)return this.renderEvent({...this.props,calendarEvent:r,calendarEventTriggerTime:i});let a=(0,bo.default)(e.result,e=>wo(e),[`asc`]),o=(0,xo.default)(a,Wo),{selectedTagFilters:s}=this.state,c=[...new Set((n||a).flatMap(e=>e.tags||[]))].sort(),l=s.length>0?o.filter(e=>s.some(t=>e.tags?.includes(t))):o;return this.renderProperty({...this.props,ordered:l,allPropertyTags:c,selectedTagFilters:s,onTagFilterChange:this.handleTagFilterChange})}};aq.content=e=>{let t=e.finalStartUpData?.event,n=e.finalPropertyResolved?.proMarketProperty||!1;if(t){let n=vl(t),r=yl(t);return(0,K.jsx)(DS,{liftPic:!0,txtMod:{withpic:!0},l1:e.l1,l2:e.l2,l3:`${n}: ${r}`,pic:e.pic})}return(0,K.jsx)(DS,{txtMod:{withpic:!0},liftPic:!0,l1:e.l1,l2:e.l2,l3:e.l3,pic:e.pic,showProBadge:n,probadgeAlignmentOverride:!0})};function oq(e,t){return{type:xE,collectionName:`properties`,id:e,changeSet:t}}function sq(e,t){return upe(t,e),{type:eE,propertyId:e,tags:t}}function cq(){return{type:qT}}function lq(e){return{type:GT,propertyId:e}}function uq(e){return{type:UT,propertyId:e}}function dq(e,t){return{type:WT,propertyId:e,message:t}}function fq(){return{type:KT}}function pq(e){return e&&e.isOpen&&(lpe(),Pv(!0)),{type:JT,val:e}}function mq(e){return Pv(!1),{type:tE,propertyId:e}}function hq(e){return{type:XT,idArray:e}}function gq(e){return{type:ZT,payload:e}}function _q(e){return{type:QT,payload:e,error:!0}}function vq(){return{type:$T}}function yq(e){return Wn(Z.propertyPage(e))}function bq(e){return Wn(Z.propertyPageGallery(e))}function xq(e){return Wn(Z.propertyPageEdit(e))}function Sq(){return Wn(Z.properties)}function Cq(e){return Wn(Z.propertyPageDetails(e))}function wq(e){return Wn(Z.propertyPageHistory(e))}function Tq(e){return Wn(Z.propertyPageConnections(e))}function Eq(e){return Wn(Z.propertyPageEvents(e))}function Dq(e,t){let n=Z.propertyPageChecklists(e);return t?fn(n):Wn(n)}function Oq(e){return Wn(Z.propertyPageAutoScheduler(e))}function kq(){return Wn(Z.newProperties)}function Aq(e){return{type:nE,val:e}}function jq(e){return{type:rE,property:e}}var Mq=()=>({type:iE}),Nq=({val:e})=>({type:aE,val:e});function Pq(e){return{type:YT,val:e}}var Fq=(e,t)=>{switch(e){case`loading`:case`saved`:case`error`:return e;default:return t?`changed`:null}},Iq=({content:e,editPropertyId:t,watch:n})=>{let r=xe(),i=j(nw(t)),[a,o]=(0,B.useState)({}),[s,c]=(0,B.useState)(null),l=(0,B.useRef)(null);(0,B.useEffect)(()=>{let e={};
1067return n.forEach(t=>{e[t]=i?.[t]??``}),o(e),c(null),()=>clearTimeout(l.current)},[t,n]);let u=e=>a[e]??``,d=(e,t)=>{o(n=>({...n,[e]:t})),(s===`saved`||s===`error`)&&(c(null),clearTimeout(l.current))},f=e=>t=>{d(e,t.target.value)},p=()=>{let e={};n.forEach(t=>{e[t]=i?.[t]??``}),o(e),c(null),clearTimeout(l.current)},m=async()=>{c(`loading`),clearTimeout(l.current);let e=n.reduce((e,t)=>(e[t]=u(t),e),{});try{let n=await sP(t,e);r(oq(n?.objectId||t,n)),Ape(t),c(`saved`),l.current=setTimeout(()=>c(null),2e3)}catch(e){R.default.error(`Failed to save property details [${n.join(`, `)}] for ID ${t}:`,e),c(`error`),l.current=setTimeout(()=>c(null),3e3)}},h=i?n.some(e=>(a[e]??``)!==(i[e]??``)):n.some(e=>(a[e]??``)!==``);return e(f,p,m,h,Fq(s,h),u)};Iq.propTypes={content:V.default.func.isRequired,editPropertyId:V.default.string.isRequired,watch:V.default.arrayOf(V.default.string).isRequired};var Lq=B.memo(Iq),vge=[`detailsAccess`],yge=[`detailsGarbage`],bge=[`detailsParking`],xge=[`detailsWifiName`,`detailsWifiPassword`,`detailsWifiDescription`],Sge=[`detailsInformation`],Cge=e=>({"& .MuiOutlinedInput-root":{bgcolor:`var(--surface-ground, var(--color-bg))`,borderRadius:`10px`,fontSize:`14px`,transition:`all 0.2s ease`,"& fieldset":{borderColor:e?`var(--color-primary)`:`var(--color-border)`,borderWidth:e?`2px`:`1px`},"&:hover fieldset":{borderColor:`var(--color-primary-alpha-50, rgba(54, 172, 178, 0.5))`},"&.Mui-focused fieldset":{borderColor:`var(--color-primary)`,borderWidth:`2px`},"&.Mui-disabled":{bgcolor:`var(--surface-ground, var(--color-bg))`,"& fieldset":{borderColor:`var(--color-border)`}}},"& .MuiInputLabel-root":{color:`var(--color-text-secondary)`,fontSize:`14px`,"&.Mui-focused":{color:`var(--color-primary)`}},"& .MuiOutlinedInput-input":{color:`var(--color-text)`,"&::placeholder":{color:`var(--color-text-muted)`,opacity:.5,fontStyle:`italic`}}}),Rq=({label:e,value:t,onChange:n,placeholder:r,multiline:i=!1,rows:a=3,disabled:o,onSave:s,onCancel:c,changed:l,savingState:u,canSave:d,mono:f=!1})=>{let p=u===`loading`,m=d&&l&&!p;return(0,K.jsxs)(I,{children:[(0,K.jsx)(yn,{fullWidth:!0,label:e,value:t||``,onChange:n,placeholder:r,multiline:i,rows:a,disabled:o||p,variant:`outlined`,size:`small`,sx:{...Cge(l),...f&&{"& .MuiOutlinedInput-input":{fontSize:`13px`,letterSpacing:`0.02em`,color:`var(--color-text)`,"&::placeholder":{opacity:.4,fontStyle:`italic`}}}}}),p&&(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`flex-end`,mt:1.5},children:(0,K.jsx)(rr,{size:20,sx:{color:`var(--color-primary)`}})}),m&&(0,K.jsxs)(ot,{direction:`row`,spacing:1,sx:{justifyContent:`flex-end`,mt:1.5},children:[(0,K.jsx)(dn,{size:`small`,onClick:c,sx:{color:`var(--color-text-secondary)`,fontSize:`13px`,fontWeight:600,textTransform:`none`,"&:hover":{bgcolor:`var(--color-surface-hover, rgba(255, 255, 255, 0.05))`}},children:`Cancel`}),(0,K.jsx)(dn,{size:`small`,variant:`contained`,onClick:s,sx:{bgcolor:`var(--color-primary)`,color:`white`,fontSize:`13px`,fontWeight:600,textTransform:`none`,boxShadow:`none`,"&:hover":{bgcolor:`var(--color-primary-hover, #2a9a9f)`,boxShadow:`none`}},children:`Save`})]})]})};Rq.propTypes={label:V.default.string,value:V.default.string,onChange:V.default.func.isRequired,placeholder:V.default.string,multiline:V.default.bool,rows:V.default.number,disabled:V.default.bool,onSave:V.default.func,onCancel:V.default.func,changed:V.default.bool,savingState:V.default.string,canSave:V.default.bool,mono:V.default.bool};var zq=({title:e,description:t})=>(0,K.jsxs)(I,{sx:{mb:2},children:[(0,K.jsx)(x,{variant:`overline`,sx:{fontSize:`12px`,fontWeight:700,letterSpacing:`0.1em`,color:`var(--color-text)`,display:`block`,mb:.5},children:e}),t&&(0,K.jsx)(x,{variant:`body2`,sx:{fontSize:`13px`,color:`var(--color-text-secondary)`,lineHeight:1.5},children:t}),(0,K.jsx)(Or,{sx:{mt:1.5,borderColor:`var(--color-border)`}})]});zq.propTypes={title:V.default.string.isRequired,description:V.default.string};var Bq=({canEdit:e=!1,propertyId:t,isSingleColumn:n=!1})=>t?(0,K.jsx)(I,{sx:{py:1},children:(0,K.jsxs)(I,{sx:{display:`grid`,gridTemplateColumns:n?`1fr`:{xs:`1fr`,md:`1fr 1fr`},gap:6},children:[(0,K.jsxs)(ot,{spacing:5,children:[(0,K.jsxs)(I,{children:[(0,K.jsx)(zq,{title:U(`properties.access`),description:`Entry codes, lockbox locations, and access instructions`}),(0,K.jsx)(Lq,{watch:vge,editPropertyId:t,content:(t,n,r,i,a,o)=>
1067(0,K.jsx)(Rq,{value:o(`detailsAccess`),onChange:t(`detailsAccess`),placeholder:U(`properties.note_access`),multiline:!0,rows:4,disabled:!e,onSave:r,onCancel:n,changed:i,savingState:a,canSave:e})},`access-${t}`)]}),(0,K.jsxs)(I,{children:[(0,K.jsx)(zq,{title:U(`properties.parking`),description:`Parking spots, permits, and vehicle instructions`}),(0,K.jsx)(Lq,{watch:bge,editPropertyId:t,content:(t,n,r,i,a,o)=>(0,K.jsx)(Rq,{value:o(`detailsParking`),onChange:t(`detailsParking`),placeholder:U(`properties.note_parking`),multiline:!0,rows:4,disabled:!e,onSave:r,onCancel:n,changed:i,savingState:a,canSave:e})},`parking-${t}`)]}),(0,K.jsxs)(I,{children:[(0,K.jsx)(zq,{title:U(`properties.garbage`),description:`Bin locations and collection schedules`}),(0,K.jsx)(Lq,{watch:yge,editPropertyId:t,content:(t,n,r,i,a,o)=>(0,K.jsx)(Rq,{value:o(`detailsGarbage`),onChange:t(`detailsGarbage`),placeholder:U(`properties.note_garbage`),multiline:!0,rows:4,disabled:!e,onSave:r,onCancel:n,changed:i,savingState:a,canSave:e})},`garbage-${t}`)]})]}),(0,K.jsxs)(ot,{spacing:5,children:[(0,K.jsxs)(I,{children:[(0,K.jsx)(zq,{title:U(`properties.wifi`),description:`Network credentials for guests and service providers`}),(0,K.jsx)(Lq,{watch:xge,editPropertyId:t,content:(t,n,r,i,a,o)=>(0,K.jsxs)(ot,{spacing:2.5,children:[(0,K.jsx)(Rq,{label:`Network Name`,value:o(`detailsWifiName`),onChange:t(`detailsWifiName`),placeholder:`WiFi network name`,disabled:!e,changed:i,mono:!0}),(0,K.jsx)(Rq,{label:`Password`,value:o(`detailsWifiPassword`),onChange:t(`detailsWifiPassword`),placeholder:`WiFi password`,disabled:!e,changed:i,mono:!0}),(0,K.jsx)(Rq,{label:`Additional Notes`,value:o(`detailsWifiDescription`),onChange:t(`detailsWifiDescription`),placeholder:U(`properties.wifi_note`),multiline:!0,rows:2,disabled:!e,onSave:r,onCancel:n,changed:i,savingState:a,canSave:e})]})},`wifi-${t}`)]}),(0,K.jsxs)(I,{children:[(0,K.jsx)(zq,{title:U(`properties.important_note`),description:`Critical information for anyone visiting this property`}),(0,K.jsx)(Lq,{watch:Sge,editPropertyId:t,content:(t,n,r,i,a,o)=>(0,K.jsx)(Rq,{value:o(`detailsInformation`),onChange:t(`detailsInformation`),placeholder:U(`properties.important_note_note`),multiline:!0,rows:5,disabled:!e,onSave:r,onCancel:n,changed:i,savingState:a,canSave:e})},`info-${t}`)]})]})]})}):null;Bq.propTypes={canEdit:V.default.bool.isRequired,propertyId:V.default.string.isRequired,isSingleColumn:V.default.bool};function Vq({finalPropertyId:e,setSliderData:t,otherAttributes:n,infoTextMsg:r}){return(0,K.jsxs)(MS,{id:`job-request-property-details-form`,children:[(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{enableOverflow:!0,children:(0,K.jsxs)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,children:[(0,K.jsx)(Mw,{meta:{propertyId:e},hasAccessFormatter:e=>e.canEditDeleteProperty,render:t=>(0,K.jsx)(Bq,{isSingleColumn:!0,canEdit:t,propertyId:e})}),(0,K.jsx)(r_,{openPictures:e=>{t({isOpen:!0,images:(e||[]).map(e=>({image:e}))})},otherAttributes:n})]})})})}),(0,K.jsx)(DM,{text:r,isPrompt:!0,isVcenter:!0,isHcenter:!0,icon:`light`,color:`white`})]})}Vq.content=({propertyDetailTags:e})=>(0,K.jsx)(aS,{children:e});var wge=e=>e&&Math.ceil(Number(e)/15)*15,Tge=e=>{let t=(0,z.default)().subtract(Uc(e),`m`);return wge(t.hours()*60+t.minutes())||0},Ege=e=>e&&Number(e)>0?e:60,Hq=e=>e?(0,z.default)(e).get(`hour`)*60+(0,z.default)(e).get(`minute`):null,Uq=class extends B.PureComponent{constructor(...e){super(...e),k(this,`handleChangeStartTime`,e=>{z.default.isMoment(e)||(e=(0,z.default)(e)),this.props.handleClickSaga(!1,{action:`changeStartTime`,startTime:(0,z.default)(this.props.finalStartTime).clone().dayOfYear(e.dayOfYear()).year(e.year())})}),k(this,`handleChangeStartTimeHour`,e=>{this.props.handleClickSaga(!1,{action:`changeStartTime`,startTime:Vc(this.props.finalStartTime,e)})}),k(this,`handleChangeJobStartTimeType`,e=>{this.props.handleClickSaga(!1,{action:`changeJobStartTimeType`,jobStartTimeType:e})}),k(this,`handleChangeEndTime`,e=>{z.default.isMoment(e)||(e=(0,z.default)(e)),this.props.handleClickSaga(!1,{action:`changeEndTime`,endTime:(0,z.default)(this.props.finalEndTime).clone().dayOfYear(e.dayOfYear()).year(e.year())})}),k(this,`handleChangeEndTimeHour`,e=>{this.props.handleClickSaga(!1,{action:`changeEndTime`,endTime:Vc(this.props.finalEndTime,e)})}),k(this,`handleChangeDuration`,e=>{this.props.handleClickSaga(!1,{action:`changeDuration`,duration:e})}),k(this,`canSelectDate`,e=>{let t=(0,z.default)(e).isAfter(new Date),n=`Y-MM-DD`,r=(0,z.default)(e).format(n);if(this.props.resolvedProperty){let e=this.props.resolvedProperty?.timeZone||`America/Los_Angeles`,i=(0,z.default)().tz(e);i=(0,z.default)(i).format(n),t=(0,z.default)(r,[n]).isAfter(i)||(0,z.default)(r,[n]).isSame(i,`day`)}return this.props.finalMode===l_.normal?t:!0})}render(){let{finalMode:e,finalStartTime:t,finalEndTime:n,finalDuration:r,infoTextMsg:i,jobStartTimeType:a=`fixed`,resolvedProperty:o,isStartTimeValid:s,isEndTimeValid:c,isDurationValid:l}=this.props;t||R.default.warn(`No finalStartTime passed to JobRequestSectionTime`,this.props);let u=o&&o.timeZone||null,d=Ege(r),f=e=>u?(0,z.default)(e).tz(u).local(!0):(0,z.default)(e),p=t?f(t):new Date,m=n?f(n):p,h=Hq(t),g=Hq(n),_=h??Tge(u),v=g??_+Number(d);return(0,K.jsxs)(MS,{id:`job-request-time-form`,children:[(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{children:(0,K.jsx)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,flexGrow:!0,children:(0,K.jsx)(ov,{isStartTimeValid:s,isEndTimeValid:c,isDurationValid:l,timezone:u,jobStartTimeType:a,jobStartDate:p,jobStartTime:_,sc
1067heduledStartDate:p,scheduledEndDate:m,scheduledStartTime:_,scheduledEndTime:v,duration:d,changeDate:this.handleChangeStartTime,changeTime:e=>this.handleChangeStartTimeHour(e,15),changeDuration:this.handleChangeDuration,onChangeJobStartTimeType:this.handleChangeJobStartTimeType,changeScheduledStartDate:this.handleChangeStartTime,changeScheduledEndDate:this.handleChangeEndTime,changeScheduledStartTime:e=>this.handleChangeStartTimeHour(e,15),changeScheduledEndTime:e=>this.handleChangeEndTimeHour(e,15),isPrefill:e===l_.prefill})})})})}),(0,K.jsx)(DM,{text:i,isPrompt:!0,isVcenter:!0,isHcenter:!0,icon:`light`,color:`white`})]})}};Uq.content=({finalDuration:e,finalStartTime:t,finalEndTime:n,jobStartTimeType:r,finalMode:i})=>(0,K.jsx)(uS,{hideDate:i===l_.prefill,duration:Lc(e),startTime:(0,z.default)(t).format(`LT`),startDate:(0,z.default)(t).format(`L`),endTime:(0,z.default)(n).format(`LT`),endDate:(0,z.default)(n).format(`L`),jobStartTimeType:r===`fixed`||r===`REGULAR`?`Fixed`:`Flexible`});function Wq({title:e=``,changeJobTitle:t,changeJobType:n,changeJobForwarding:r,jobType:i=``,finalMode:a,isForwardingEnabled:o=!1}){let s=[{value:U(`job_request.select_type`),title:U(`job_request.select_type`)},...Hl()],[c]=(0,B.useState)(o);return(0,K.jsx)(MS,{id:`job-request-message-form`,children:(0,K.jsxs)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,flexGrow:!0,children:[(0,K.jsx)($g,{size:`small`,children:U(`job_request.type`)}),(0,K.jsx)(Yf,{"data-testid":`jobrequestsend_job_type`,placeholder:U(`job_request.select_type`),onChange:e=>n(e.target.value||``),value:i,styleOverwrite:{backgroundColor:`var(--color-white)`},isFirst:!0,isLast:!0,options:s,optionsBtn:!0,optionsColor:i?`normal`:`inactive`,style:{textAlign:`left`,fontSize:`16px`},type:`select`,defaultValueOfSelect:U(`job_request.select_type`)}),(0,K.jsx)(bm,{}),(0,K.jsx)($g,{size:`small`,children:U(`job_request.title`)}),(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,"data-testid":`jobrequestsend_title`,placeholder:U(`job_request.write_title`),onChange:e=>t(e.target.value||``),defaultValue:e,type:`input`}),(0,K.jsx)(bm,{}),(0,K.jsxs)(I,{sx:{display:`flex`,marginRight:`10px`,fontSize:`12px`},children:[(0,K.jsx)(Dp,{type:`small`,style:{height:20,width:20},name:`jobStartTimeType`,selected:o,value:!o,onChange:()=>!(a===`edit`&&c)&&r(!o),disabled:a===`edit`&&c,label:`Enable Job Forwarding`,id:`isForwardingEnabled`}),(0,K.jsx)(qn,{title:U(`job_request.forwarding_info`),placement:`top`,children:(0,K.jsx)(I,{component:`span`,sx:{display:`inline-block`},children:(0,K.jsx)(Y.IcInfocvv,{})})})]})]})})}Wq.propTypes={title:V.default.string,changeJobTitle:V.default.func.isRequired,changeJobType:V.default.func.isRequired,changeJobForwarding:V.default.func.isRequired,jobType:V.default.string,isForwardingEnabled:V.default.bool,finalMode:V.default.string.isRequired},Wq.content=({title:e,jobType:t})=>{let n=Vl(t);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(iS,{cutText:!0,children:n?U(`reports.jobTypes.${n}`):t}),(0,K.jsx)(iS,{cutText:!0,children:e})]})};function Gq({finalCurrency:e=``,finalPrice:t=``,finalCleaners:n,handleClickSaga:r,infoTextMsg:i,finalProperty:a,offeredPriceLimit:o}){let s=n??{},c=e=>t=>r(e,{action:`setprice`,value:t}),l=e=>(0,gx.default)(e).some(e=>ps(e));return(0,K.jsxs)(MS,{id:`job-request-price-form`,children:[(0,K.jsxs)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,flexGrow:!0,isRelative:!0,children:[(0,K.jsx)(xS,{children:(0,K.jsxs)(FS,{children:[(0,K.jsx)(tC,{parseNumber:qo,finalCurrency:e,finalPrice:t,offeredPriceLimit:o,setPrice:c}),(e=>a?.proMarketProperty&&l(e)?(0,K.jsx)(SS,{isSmall:!0,children:(0,K.jsx)(iS,{children:(0,K.jsx)(KS,{popoverContent:U(`job_request.offered_price_info_popover`),width:400,hasPadding:!0,hasArrow:!0,arrowPosition:{horizontal:`center`,vertical:`top`},children:(0,K.jsx)(DM,{text:U(`job_request.price_info`),isPrompt:!0,isSmall:!0,icon:`warning`,color:`bg-jobrequest`})})})}):(0,K.jsx)(SS,{isSmall:!0,children:(0,K.jsx)(iS,{children:(0,K.jsx)(DM,{text:U(`job_request.price_info`),isPrompt:!0,isSmall:!0,color:`bg-jobrequest`})})}))(s)]})}),(0,K.jsx)(_m,{})]}),(0,K.jsx)(DM,{text:i,isPrompt:!0,isVcenter:!0,isHcenter:!0,icon:`light`,color:`white`})]})}
1067Gq.propTypes={finalCurrency:V.default.string,finalPrice:V.default.oneOfType([V.default.number,V.default.string]),finalCleaners:V.default.shape({}),handleClickSaga:V.default.func.isRequired,infoTextMsg:V.default.string.isRequired,finalProperty:V.default.shape({proMarketProperty:V.default.bool}).isRequired,offeredPriceLimit:V.default.number.isRequired},Gq.content=({finalCurrency:e=``,finalPrice:t=``})=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(iS,{children:e}),(0,K.jsx)(aS,{children:t})]}),Gq.content.propTypes={finalCurrency:V.default.string,finalPrice:V.default.oneOfType([V.default.number,V.default.string]),finalCleaners:V.default.shape({})};var Kq=e(mn()),qq={"job-request__search":`_job-request__search_mssce_2`,jobRequestSearch:`_job-request__search_mssce_2`,"job-request__search-content":`_job-request__search-content_mssce_6`,jobRequestSearchContent:`_job-request__search-content_mssce_6`,"job-request__search-bg":`_job-request__search-bg_mssce_11`,jobRequestSearchBg:`_job-request__search-bg_mssce_11`,"job-request__bg":`_job-request__bg_mssce_21`,jobRequestBg:`_job-request__bg_mssce_21`,"job-request__bg--flex":`_job-request__bg--flex_mssce_27`,jobRequestBgFlex:`_job-request__bg--flex_mssce_27`,"job-request__msg":`_job-request__msg_mssce_34`,jobRequestMsg:`_job-request__msg_mssce_34`,"job-request__time-wrap":`_job-request__time-wrap_mssce_38`,jobRequestTimeWrap:`_job-request__time-wrap_mssce_38`,"job-request__time-overlay":`_job-request__time-overlay_mssce_43`,jobRequestTimeOverlay:`_job-request__time-overlay_mssce_43`,"job-request__clickoverlaydatepicker":`_job-request__clickoverlaydatepicker_mssce_52`,jobRequestClickoverlaydatepicker:`_job-request__clickoverlaydatepicker_mssce_52`,"job-request__to-cleaners":`_job-request__to-cleaners_mssce_62`,jobRequestToCleaners:`_job-request__to-cleaners_mssce_62`,"job-request__to-txt":`_job-request__to-txt_mssce_69`,jobRequestToTxt:`_job-request__to-txt_mssce_69`,"job-request__to":`_job-request__to_mssce_62`,jobRequestTo:`_job-request__to_mssce_62`,"job-request__community-wrap":`_job-request__community-wrap_mssce_83`,jobRequestCommunityWrap:`_job-request__community-wrap_mssce_83`,"job-request__community":`_job-request__community_mssce_83`,jobRequestCommunity:`_job-request__community_mssce_83`,"job-request__community-head":`_job-request__community-head_mssce_96`,jobRequestCommunityHead:`_job-request__community-head_mssce_96`,"job-request__price-wrap":`_job-request__price-wrap_mssce_101`,jobRequestPriceWrap:`_job-request__price-wrap_mssce_101`,"job-request__bg--ohidden":`_job-request__bg--ohidden_mssce_106`,jobRequestBgOhidden:`_job-request__bg--ohidden_mssce_106`,"job-request__full":`_job-request__full_mssce_110`,jobRequestFull:`_job-request__full_mssce_110`,"job-request__error":`_job-request__error_mssce_120 input-error`,jobRequestError:`_job-request__error_mssce_120 input-error`,"job-request__flex":`_job-request__flex_mssce_128`,jobRequestFlex:`_job-request__flex_mssce_128`,"job-request__defaultline":`_job-request__defaultline_mssce_132`,jobRequestDefaultline:`_job-request__defaultline_mssce_132`,cleaner__topbarwrap:`_cleaner__topbarwrap_mssce_141`,cleanerTopbarwrap:`_cleaner__topbarwrap_mssce_141`,"cleaner__topbarwrap-item":`_cleaner__topbarwrap-item_mssce_146 text-l7m`,cleanerTopbarwrapItem:`_cleaner__topbarwrap-item_mssce_146 text-l7m`,"cleaner__topbarwrap-item--end":`_cleaner__topbarwrap-item--end_mssce_152`,cleanerTopbarwrapItemEnd:`_cleaner__topbarwrap-item--end_mssce_152`,"cleaner__topbarwrap-select":`_cleaner__topbarwrap-select_mssce_155`,cleanerTopbarwrapSelect:`_cleaner__topbarwrap-select_mssce_155`,"jobRequest__sent-marketplace-email":`_jobRequest__sent-marketplace-email_mssce_164`,jobRequestSentMarketplaceEmail:`_jobRequest__sent-marketplace-email_mssce_164`},Jq=_i.default.bind(qq),Dge={boxShadow:`none`,borderBottom:`1px solid rgba(29,39,48,0.12)`,textAlign:`justify`,marginBottom:`-1px`},Oge={color:`var(--color-text)`,"& .MuiAccordionSummary-content":{justifyContent:`center`,margin:`20px 125px !important`,minHeight:24,"&.Mui-expanded":{margin:`auto`},"&> :last-child":{paddingRight:0}},"& .MuiAccordionSummary-expandIconWrapper":{right:`110px`}},kge={position:`absolute`,top:`14px`,left:`120px`},Age={margin:`0 4px`},Yq={color:`var(--color-primary)`,textDecoration:`none`},Xq=class extends B.Component{constructor(e){super(e),k(this,`handleSelectCleaner`,(e,t)=>{this.props.handleClickSaga(!1,{action:`setcleaner`,contact:e,set:!t})}),k(this,`handleAllCleaners`,(e,t)=>{let n=(0,gx.default)(this.selectedCleaners),r=(0,gx.default)(e).filter(e=>e?.userData?.objectId);if(!t){this.props.unsetJobRequestCleaners({cleaners:(0,CR.default)(n.filter(e=>e?.isDisabled),e=>e?.userData?.objectId)});return}let i=(0,Kq.default)(r,n,(e,t)=>e.userData?.objectId===t?.userData?.objectId);return i.length===0?this.selectedCleaners:(0,CR.default)(i,e=>e.userData?.objectId)}),k(this,`handleSelectCleaners`,(e,t)=>{e=this.handleAllCleaners(e,t),this.props.handleClickSaga(!1,{action:`setcleaners`,contacts:e})}),k(this,`handleEventClickCleaner`,e=>t=>{this.isDisabled(e)&&!this.isActive(e)?this.setState({isErrorModalOpen:!0}):this.handleSelectCleaner(e,!t.target.checked)}),k(this,`isActive`,e=>this.isSelected(e)&&this.isClickable(e)),k(this,`isSelected`,e=>{let t=e?.userData?.objectId;return!!(t&&this.selectedCleaners[t]!==void 0)}
1067),k(this,`isClickable`,e=>{let t=(0,oC.default)(this.selectedCleaners,(e,t)=>e.isDisabled?t:``);return this.isForwardingMode&&this.isSelected(e)?this.selectedCleaners[e.userData?.objectId]?.status!==Ua.InProgress:!(this.isSendMoreMode&&Object.keys(t).includes(e.userData?.objectId))}),k(this,`isDisabled`,e=>{let{finalPrice:t,proMarketProperty:n}=this.props;return this.isForwardingMode&&this.isSelected(e)?this.selectedCleaners[e.userData?.objectId]?.status===Ua.InProgress:this.isSendMoreMode&&n&&!t&&e.listSuggestedCleaner}),k(this,`isExternallyAdded`,e=>this.isSelected(e)?this.selectedCleaners[e.userData?.objectId]?.isExternal:!1),k(this,`openCleaner`,e=>t=>{t.stopPropagation(),t.preventDefault(),this.isCleanerOpen(e)||Hv(),this.setState({openCleaner:this.isCleanerOpen(e)?void 0:e.userData?.objectId})}),k(this,`handleOpenSlider`,e=>(t,n)=>{n.stopPropagation(),n.preventDefault();let r=(0,H.default)(e,e=>({image:e}));this.props.setSliderData({isOpen:!0,images:r,index:t})}),k(this,`renderCleaner`,(e,t)=>(n,r)=>{let i=e?`blue`:`orange`,a=e?n:n.profile||{},{proMarketProperty:o}=this.props;return(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(TS,{type:`fullwidth`,"data-testid-cleaner-index":r,"data-testid-is-community":e,"data-testid":`jobrequestsend_cleaneritem`,"data-testid-id":n.objectId,"data-testid-is-cleaner-me":this.props.currentUserId===n.contactId,"data-testid-is-clickable":!!this.isClickable(n),isBlue:e,onChange:this.handleEventClickCleaner(n),isActive:this.isActive(n),isClickable:this.isClickable(n)&&!this.isDisabled(n)&&!this.isExternallyAdded(n),isDisabled:this.isDisabled(n)&&!this.isActive(n),sendMoreMode:this.isSendMoreMode,children:[(0,K.jsx)(DS,{order:[`pic`,`text`],txtMod:{withpic:!0},picType:`custom`,type:`cleaner`,showProBadge:o&&ps(n),pic:(0,K.jsx)(Qd,{picture:hs(n),text:ms(n),type:`cleaner`}),l1:Jo(n,e,this.props.currentUserId),l2:e?Zq(n):gs(n),l3:(0,K.jsx)(sS,{color:i,isInline:!0,onClick:this.openCleaner(n),children:this.isCleanerOpen(n)?U(`job_request.hide_profile`):U(`job_request.view_profile`)})}),(0,K.jsx)(yS,{cleaner:n,config:t,onOpenImageSlider:this.handleOpenSlider(a.propertyPhotos,e),isOpen:this.isCleanerOpen(n)})]}),(0,K.jsx)(NS,{left:`0px`,top:`0px`,bottom:`12px`,right:`0px`})]},`${n.userId||n.userData?.objectId||n.objectId}-${r}`)}),k(this,`changeTab`,e=>()=>{this.setState({activeTab:e})}),this.state={activeTab:`normal`,query:``,isErrorModalOpen:!1}}get allCleaners(){return this.props.searchData.result}get selectedCleaners(){return this.props.finalCleaners}get communityCleaners(){return Object.values(this.props.communityCleaners||{})}get filteredCommunityCleaners(){let e=this.state.query.split(` `).filter(e=>!!e&&e.length>=2);return e.length===0?this.communityCleaners||[]:(this.communityCleaners||[]).filter(({userData:t})=>{let n=`${t.firstName||``} ${t.lastName||``}`.toLowerCase();return e.filter(e=>n.indexOf(e.toLowerCase())!==-1).length!==0})}get hasCCleaners(){return(this.communityCleaners||[]).length>0&&this.canSeeCCleaners}get canSeeCCleaners(){return this.props.finalMode!==l_.prefill}get isSendMoreMode(){let{finalMode:e}=this.props;return e===l_.sendmore}get isForwardingMode(){let{finalMode:e}=this.props;return e===l_.forwarding}mapToTabProps(e){return{isActive:e.active}}isCleanerOpen(e){return!!(e?.userData?.objectId&&e.userData.objectId===this.state.openCleaner)}isActiveTab(e){return this.state.activeTab===e}get filteredCleaners(){return(0,xo.default)(this.allCleaners,e=>!e.deleted)}get renderData(){let e={arrayLeft:[],arrayRight:[]};return this.hasCCleaners?(e.arrayLeft=this.filteredCleaners,e.arrayRight=this.filteredCommunityCleaners):e=(0,If.default)(this.filteredCleaners,(e,t,n)=>(n%2?e.arrayRight.push(t):e.arrayLeft.push(t),e),{arrayLeft:[],arrayRight:[]}),e}get allCleanersConcated(){let e=this.canSeeCCleaners?this.filteredCommunityCleaners:[];return(0,aC.default)(this.filteredCleaners,e)}get allCleanersConcatedFiltered(){return this.filteredCleaners.filter(e=>!this.isDisabled(e)&&e.userData?.objectId)}get filteredCleanersLength(){return(this.filteredCleaners||[]).length}get communityCleanersLength(){return(this.communityCleaners||[]).length}get selectedCleanersLength(){return(0,gx.default)(this.selectedCleaners).length}get areAllSelected(){let{selectedCleaners:e}=this;return this.allCleanersConcatedFiltered.filter(t=>!e[t.userData?.objectId]).length===0}selectAll(){let{areAllSelected:e}=this,t=((e,t)=>(0,If.default)(e,(e,n)=>(this.isExternallyAdded(n)&&t||(e[n.userData.objectId]=t?n:void 0),e),{}))(this.allCleanersConcatedFiltered,!e);this.handleSelectCleaners(t,!e)}handleSearch(e){let{setSearchQuery:t}=this.props;this.setState({query:e}),t(`jobrequestnew_searchcleaners`,e)}get totalContactsCount(){return(0,xo.default)(this.props.contacts,e=>!e.deleted).length}renderProInfo(){let{config:e}=this.props;return(0,K.jsxs)(an,{square:!0,sx:Dge,children:[(0,K.jsxs)(Bn,{sx:Oge,expandIcon:(0,K.jsx)(Y.IcExpandMore,{width:`24px`}),children:[(0,K.jsx)(I,{sx:kge,children:(0,K.jsx)(Y.LightBulb,{width:`17.5px`,height:`28px`,byHeight:!0})}),U(`marketplace.expansion_title`),(0,K.jsx)(I,{component:`span`,sx:Age,children:`Properly`}),(0,K.jsx)(I,{children:(0,K.jsx)(ef,{})})]}),(0,K.jsx)(Ln,{sx:{color:`var(--color-grey)`},children:(0,K.jsx)(I,{component:`span`,sx:{fontSize:`15px`},children:(0,K.jsx)(O,{i18nKey:`marketplace.expansion_content`,components:{msg:(0,K.jsx)(`a`,{className:`text-l6m`,style:Yq,target:`_blank`,rel:`noopener noreferrer`,href:e.proMPSatisfactionGuaranteeUrl,"aria-label":`Mar
1067ketplace Satisfaction Guarantee`}),tos:(0,K.jsx)(`a`,{className:`text-l6m`,style:Yq,target:`_blank`,rel:`noopener noreferrer`,href:e.proTOSUrl,"aria-label":`Terms of Service`})}})})})]})}renderHeader(){let{searchData:e}=this.props,{query:t}=this.state,n=this.canSeeCCleaners?this.communityCleanersLength:0,r=this.canSeeCCleaners?this.filteredCommunityCleaners.length:0,i=this.selectedCleanersLength,a=this.totalContactsCount+n,o=t?this.filteredCleanersLength+r:a;return(0,K.jsxs)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,children:[(0,K.jsx)(I,{className:Jq(`cleaner__topbarwrap`),sx:{width:`100%`,marginBottom:`12px`},children:(0,K.jsx)(Up,{selectedCount:i,queryCount:o,totalCount:a,value:e.searchQuery,onChange:e=>this.handleSearch(e),placeholder:U(`contacts.search_cleaner`),isSelected:this.areAllSelected,onSelect:()=>this.selectAll()})}),(0,K.jsxs)(I,{className:Jq(`cleaner__topbarwrap`),children:[(0,K.jsx)(`div`,{className:Jq(`cleaner__topbarwrap-item`),children:U(`job_request.my_service_providers`)}),(0,K.jsx)(`div`,{className:Jq(`cleaner__topbarwrap-item`,{"cleaner__topbarwrap-item--end":!this.hasCCleaners}),children:this.hasCCleaners&&U(`job_request.community_service_providers`)})]})]})}render(){let{renderData:e}=this,{proMarketProperty:t}=this.props,{isErrorModalOpen:n}=this.state,r=this.props.finalMode===l_.edit||this.props.finalMode===l_.normal;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(MS,{id:`job-request-cleaners-form`,children:[t&&this.renderProInfo(),r&&(0,K.jsx)(eC,{cleaners:this.selectedCleaners,onRemove:e=>this.handleSelectCleaner(e,!0)}),this.renderHeader(),(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{enableOverflow:!0,children:(0,K.jsx)(NS,{left:`24px`,top:`0px`,bottom:`12px`,right:`24px`,flexGrow:!0,children:(0,K.jsxs)(tx.GridRow,{spacing:`12`,children:[(0,K.jsx)(tx.GridItem,{spacing:`12`,itemPerRow:`2`,children:(0,H.default)(e.arrayLeft,this.renderCleaner(!1,this.props.config))}),(0,K.jsx)(tx.GridItem,{spacing:`12`,itemPerRow:`2`,children:(0,H.default)(e.arrayRight,this.renderCleaner(this.hasCCleaners,this.props.config))})]})})})})}),(0,K.jsx)(DM,{text:this.props.infoTextMsg(this.isActiveTab(`cc`)),isPrompt:!0,isVcenter:!0,isHcenter:!0,icon:`light`,color:`white`})]}),(0,K.jsx)(Dg,{message1:``,message2:U(`job_request.pro_cleaner_send_more_error`),show:n,onClose:()=>this.setState({isErrorModalOpen:!1})})]})}};function Zq(e){let t=e.numOfHosts||0,n=U(t>1||t===0?`contacts.clients`:`contacts.client`);return`${e.numOfJobRequestsDone||0} ${U(`contacts.total_jobs`)} ⢠${t} ${n}`}var jge=e=>e.map((e,t)=>{let n=`${e.cleaner.firstName} ${e.cleaner.lastName}`;return{"data-testid":t,isCommunityCleaner:e.isCommunity,name:n,secondaryName:e.isCommunity?Zq(e.rawCleaner):gs(e.rawCleaner)}}),Mge=e=>(0,K.jsx)(Ad,{isButton:!1,hasDivider:!0,isDenseStyle:!0,items:jge(e)});function Nge({children:e,leftOverCleaners:t}){return(0,K.jsx)(Lg,{popoverKey:`viewSelectedCleaners`,width:220,hasArrow:!0,popoverContent:()=>Mge(t),children:(0,K.jsx)(`span`,{children:e})})}function Pge({finalCleaners:e,finalProperty:t}){return(0,H.default)(e??{},e=>({isCommunity:!(e.profile&&e.userData),contactId:e.userData.objectId,rawCleaner:e,cleaner:{firstName:e.userData.firstName,lastName:e.userData.lastName},proMarketProperty:t?t.proMarketProperty:!1}))}Xq.content=({finalCleaners:e,finalProperty:t})=>(0,K.jsx)(xx,{type:`simple`,wrapperComponent:Nge,items:Pge({finalCleaners:e,finalProperty:t}),limit:1}),Xq.propTypes={};var Qq=e(jee()),$q=({finalPropertyId:e,finalChecklistIds:t,selectChecklist:n,selectChecklistViewType:r,isPropertiesActive:i,isTaskformActive:a,onClose:o,loadingStateChecklist:s,searchQuery:c,checklists:l,taskformlist:u,tempTaskImages:d,setSearchQuery:f,createChecklistSaga:p,finalPropertyResolved:m,setModalObj:h,handleClickSaga:g,infoTextMsg:_,changeTaskTitle:v,changeTaskDescription:y,taskTitleRedux:b,taskDescription:x,imageUploadErrored:S,setGlobalLoadingState:C})=>{let w=s,T=({objectId:e,jobInstructionId:t,jobInstructions:n,propertyIndependent:r,published:i})=>a=>{o(!0),a.stopPropagation(),a.preventDefault(),h({isOpen:!0,meta:{checklistId:e,jobInstructionId:t||n.objectId,isIndependent:r&&!i}})},E=e=>{g(!1,{action:`addTaskForm`,addTaskForm:e})},D=e=>{g(!1,{action:`cancelTaskForm`,cancelTaskForm:e})},ee=e=>{g(!1,{action:`addTaskPic`,addTaskPic:e})},te=(e,t)=>
1067{g(!1,{action:`deleteTaskForm`,deleteTaskTitle:e,deleteTaskDescription:t})},ne=()=>{C(d_)},re=!e&&i&&!a,O=(0,Qq.default)(t);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(MS,{id:`job-request-task-checklist-form`,children:(0,K.jsxs)(MS,{id:`job-request-checklist-form`,children:[(0,K.jsx)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,children:(0,K.jsxs)(Cg,{children:[(0,K.jsx)(Cg.Item,{"data-testid":`button_section_task_form`,onClick:()=>r(`taskform`),active:!i&&a,children:U(`job_request.add_extra_task`)}),(0,K.jsx)(Cg.Item,{"data-testid":`button_section_checklist_properties`,onClick:()=>r(`properties`),active:i&&!a,children:U(`titles.property_checklists`)}),(0,K.jsx)(Cg.Item,{"data-testid":`button_section_checklist_library`,onClick:()=>r(`library`),active:!i&&!a,children:U(`titles.library`)})]})}),(0,K.jsxs)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,children:[!re&&!a&&(0,K.jsx)($f,{onGrey:!0,"data-testid":`jobrequestsend_search_checklist`,placeholder:U(`job_request.search_checklist`),value:c,iconLocation:`left`,onChange:e=>f(`jobrequest_searchchecklist`,e)}),!re&&a&&(0,K.jsx)(`div`,{children:(0,K.jsx)(tx.GridRow,{children:(0,K.jsx)(tx.GridItem,{itemPerRow:`1`,spacing:`12`,children:(0,K.jsx)(aj,{count:u.length})})})})]}),(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{enableOverflow:!0,children:(0,K.jsxs)(NS,{left:`24px`,top:`0px`,bottom:`12px`,right:`24px`,children:[w&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Sm,{}),(0,K.jsx)(xf,{static:!0}),(0,K.jsx)(Sm,{})]}),!w&&re&&(0,K.jsx)(Yg,{children:U(`job_request.select_property`)}),!w&&a&&u&&u.map(e=>(0,K.jsx)(oj,{task:e,onDelete:te},e.title)),!w&&a&&(0,K.jsx)(tx.GridRow,{children:(0,K.jsx)(tx.GridItem,{itemPerRow:`1`,spacing:`12`,children:(0,K.jsx)(sj,{active:u.length===0,onSubmitForm:E,onCancelForm:D,onUploadTaskPic:ee,tempTaskImages:d,changeTaskTitle:v,changeTaskDescription:y,taskTitle:b,taskDescription:x,imageUploadErrored:S})})}),!w&&!a&&(0,H.default)((0,wx.default)(l,2),(e,t)=>(0,K.jsx)(tx.GridRow,{spacing:`12`,children:(0,H.default)(e,(e,t)=>{if(e.totalTaskCount===0)return null;let r=O[e.objectId]!==void 0;return(0,K.jsx)(tx.GridItem,{spacing:`12`,itemPerRow:`2`,children:(0,K.jsx)(TS,{number:Number(O[e.objectId])+1,"data-testid":`jobrequestsend_checklistitem-${e.objectId}`,onChange:()=>n(e.objectId),isActive:r,children:(0,K.jsx)(DS,{picType:`custom`,order:[`pic`,`text`],txtMod:{withpic:!0},l1:e.title,l2:es(e),l3:!e.published&&(0,K.jsx)(sS,{color:`orange`,isInline:!0,onClick:T(e),children:U(`job_request.edit_checklist`)}),pic:(0,K.jsx)(PS,{icon:r?Y.IcBigJobsOrange:Y.IcBigJobs})})})},t)})},t))]})})})}),(0,K.jsx)(DM,{text:_,isPrompt:!0,isVcenter:!0,isHcenter:!0,icon:`light`,color:`white`})]})}),(0,K.jsx)(Dg.ImageUpload,{showUploadError:S,onCloseUploadError:ne})]})},Fge=e=>e.filter(e=>e).map((e,t)=>({"data-testid":e.objectId,name:e.title,secondaryName:es(e),icon:(0,K.jsx)(wS,{isActive:!0,number:parseInt(t,10)+2})})),Ige=e=>(0,K.jsx)(Ad,{isButton:!1,hasDivider:!0,isDenseStyle:!0,items:Fge(e)});function Lge({children:e,leftOverCleaners:t}){return(0,K.jsx)(Lg,{popoverKey:`viewSelectedChecklists`,width:240,hasArrow:!0,popoverContent:()=>Ige(t),children:(0,K.jsx)(`span`,{children:e})})}$q.content=({checklistTitle:e,taskTitle:t,finalChecklistIds:n,allChecklists:r})=>(0,K.jsx)(`div`,{children:(0,K.jsxs)(xx,{type:`simple`,limit:1,wrapperComponent:Lge,items:n.map(e=>r[e]),children:[(0,K.jsx)(iS,{cutText:!0,children:e},`title${e}`),(0,K.jsx)(iS,{cutText:!0,children:t},`title${t}`)]})});var eJ=({finalSkills:e,selectSkill:t,loadingStateSkill:n=!1,searchQuery:r=``,skills:i=[],setSearchQuery:a,infoTextMsg:o})=>{let s=n,c=((e??[])||[]).reduce((e,t,n)=>(e[t.skillId]=n,e),{});return(0,K.jsx)(MS,{id:`job-request-skills-form`,children:(0,K.jsxs)(MS,{id:`job-request-skills-form`,children:[(0,K.jsx)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,children:(0,K.jsx)($f,{onGrey:!0,"data-testid":`jobrequestsend_search_skills`,placeholder:U(`skills.search`),value:r,iconLocation:`left`,onChange:e=>a(`jobrequest_searchskills`,e)})}),(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{enableOverflow:!0,children:(0,K.jsxs)(NS,{left:`24px`,top:`0px`,bottom:`12px`,right:`24px`,children:[s&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Sm,{}),(0,K.jsx)(xf,{static:!0}),(0,K.jsx)(Sm,{})]}
1067),(0,H.default)((0,wx.default)(i,2),(e,n)=>(0,K.jsx)(tx.GridRow,{spacing:`12`,children:(0,H.default)(e,(e,n)=>{let r=c[e.skillId]!==void 0;return(0,K.jsx)(tx.GridItem,{spacing:`12`,itemPerRow:`2`,children:(0,K.jsx)(TS,{number:Number(c[e.skillId])+1,"data-testid":`jobrequestsend_skillitem-${e.skillId}`,onChange:()=>t(e.skillId),isActive:r,children:(0,K.jsx)(DS,{picType:`custom`,order:[`pic`,`text`],txtMod:{withpic:!0},l1:e.title,l2:ts(e),pic:(0,K.jsx)(PS,{icon:r?Y.IcBigJobsOrange:Y.IcBigJobs})})})},n)})},n))]})})})}),(0,K.jsx)(DM,{text:o,isPrompt:!0,isVcenter:!0,isHcenter:!0,icon:`light`,color:`white`})]})})},Rge=e=>e.filter(e=>e).map((e,t)=>({"data-testid":e.objectId,name:e.title,secondaryName:ts(e),icon:(0,K.jsx)(wS,{isActive:!0,number:parseInt(t,10)+2})})),zge=e=>(0,K.jsx)(Ad,{isButton:!1,hasDivider:!0,isDenseStyle:!0,items:Rge(e)});function Bge({children:e,leftOverCleaners:t}){return(0,K.jsx)(Lg,{popoverKey:`viewSelectedSkills`,width:240,hasArrow:!0,popoverContent:()=>zge(t),children:(0,K.jsx)(`span`,{children:e})})}var tJ=({skillTitle:e=``,finalSkills:t=[],allSkills:n={},skillSubtitle:r})=>(0,K.jsxs)(xx,{type:`simple`,limit:1,wrapperComponent:Bge,items:(t||[]).map(e=>n[e?.skillId]),children:[(0,K.jsx)(iS,{cutText:!0,children:e},`title${e}`),(0,K.jsx)(aS,{children:r})]});eJ.propTypes={finalSkills:V.default.shape({}),selectSkill:V.default.func.isRequired,loadingStateSkill:V.default.bool,searchQuery:V.default.string,skills:V.default.arrayOf(V.default.shape({})),setSearchQuery:V.default.func.isRequired,infoTextMsg:V.default.string.isRequired},tJ.propTypes={skillTitle:V.default.string,finalSkills:V.default.arrayOf(V.default.shape({})),allSkills:V.default.shape({})},eJ.content=tJ;function nJ({finalMessage:e,handleClickSaga:t,infoTextMsg:n}){return(0,K.jsxs)(MS,{id:`job-request-message-form`,children:[(0,K.jsxs)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,flexGrow:!0,children:[(0,K.jsx)($g,{children:U(`job_request.description`)}),(0,K.jsx)(Yf,{autoFocus:!0,isFirst:!0,isLast:!0,"data-testid":`jobrequestsend_message`,placeholder:U(`job_request.write_description`),onChange:e=>t(e,{action:`typemessage`,value:e.target.value||``}),value:e,type:`textarea`})]}),(0,K.jsx)(DM,{text:n,isPrompt:!0,isVcenter:!0,isHcenter:!0,icon:`light`,color:`white`})]})}nJ.propTypes={finalMessage:V.default.string.isRequired,handleClickSaga:V.default.func.isRequired,infoTextMsg:V.default.string.isRequired},nJ.content=({finalMessage:e})=>(0,K.jsx)(iS,{cutText:!0,children:e});var rJ=({riOption:e,setRequestRiOption:t,config:n={},disableOptingForRI:r})=>{let i=e=>{t(e.target.value)};return(0,K.jsx)(MS,{id:`job-request-remote-inspection`,children:(0,K.jsxs)(NS,{left:`40px`,top:`40px`,bottom:`40px`,right:`40px`,flexGrow:!0,children:[(0,K.jsx)(Yg,{type:`greyloading`,children:(0,K.jsx)(O,{i18nKey:`retail_remote_inspection.description`,components:{t_and_c:(0,K.jsx)(mj,{componentClass:`span`,modifier:[`color--primary`,`link--clickable`],onClick:()=>uu(n.tosRIUrl)})}})}),(0,K.jsx)(Sm,{}),(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,height:`30%`,justifyContent:`space-evenly`},children:[(0,K.jsx)(I,{sx:{display:`flex`},children:(0,K.jsx)(Cp,{selected:e===f_.yes,onChange:i,value:f_.yes,label:U(`retail_remote_inspection.yes_request`),id:f_.yes,disabled:r})}),r&&(0,K.jsxs)(I,{sx:{display:`flex`,background:`var(--color-white)`,margin:`20px 0 30px 30px`,padding:`20px 20px 20px 10px`,borderRadius:`10px`},children:[(0,K.jsx)(Y.IcError1,{width:`60px`,height:`15px`,margin:`0 10px 0 0`}),(0,K.jsx)(Xg,{children:U(`retail_remote_inspection.compliance_failed`)})]}),(0,K.jsx)(I,{sx:{display:`flex`},children:(0,K.jsx)(Cp,{selected:e===f_.no,onChange:i,value:f_.no,label:U(`retail_remote_inspection.no_request`),id:f_.no})})]})]})})},iJ=({riOption:e})=>(0,K.jsx)(iS,{children:Sc(e)});iJ.propTypes={riOption:V.default.string.isRequired},rJ.content=iJ,rJ.propTypes={riOption:V.default.string.isRequired,setRequestRiOption:V.default.func.isRequired,config:V.default.shape({}).isRequired,disableOptingForRI:V.default.bool.isRequired};var aJ=`jobrequest_init`,oJ=`jobrequest_checklistloading`,sJ=`jobrequest_mainloadingstate`,cJ=bw(oJ),lJ=e=>{let t=e.cleaners;return(0,ZK.default)(t,e=>!!ps(e))},Vge={title:{title:()=>U(`job_request.title_type`),titleActive:()=>U(`job_request.write_title`),canNext:!0,optional:!0,contentTop:Wq.content,contentMain:Wq,infoText:({jobRequestSendMode:e})=>e===l_.prefill?U(`job_request.title_info_prefill`):U(`job_request.title_info`),isEmpty:e=>!e?.title,isEmptyOverride:e=>!e?.jobType,isValid:()=>!0,mapStateToProps:(e,t)=>{let n=hJ(e,t);return{title:n?.title,jobType:n?.jobType,finalMode:yJ(e),defaultTitle:n?.defaultJobTitle,isForwardingEnabled:n?.isForwardingEnabled}}},property:{title:()=>U(`job_request.property`),titleActive:()=>U(`job_request.choose_property`),contentTop:aq.content,contentMain:aq,canNext:!0,infoText:()=>U(`job_request.property_info`),isValid:e=>!!e?.propertyId,isEmpty:e=>!e?.propertyId,mapStateToProps:(e,t)=>{let n=hJ(e,t),r=PC(e,t),i=zC(e,t),a=VC(e,t);return{config:sw(e,t),doesProMarketPropertyExists:a,finalStartUpData:gJ(e,t),finalPropertyResolved:r[n?.propertyId],finalPropertyId:n?.propertyId,...zo(r[n?.propertyId]),tagSourceProperties:(0,gx.default)(i||{}),searchData:kw(`properties`,`jobrequestnew_search`,zC)(e,t)}}},propertyDetails:{optional:!0,nameWidthAuto:!0,contentTop:Vq.content,contentMain:Vq,canNext:!0,infoText:({isEmpty:e})=>U(e?`job_request.property_details_info`:`job_request.property_details_info_filled`),isValid:()=>!0,isEmpty:(e,t)=>{let n=t[e?.propertyId];return!n||uJ(n).length===0},title:()=>U(`job_request.property_details`),titleActive:()=>U(`job_request.enter_property_details`),mapStateToProps:(e,t)=>{let n=hJ(e,t),r=PC(e,t)[n?.propertyId];return{finalPropertyId:n?.propertyId,otherAttributes:r&&r.otherAttributes||[],propertyDetailTags:uJ(r).join(`, `)}}},checklist:{title:()=>U(`job_request.checklist`),titleActive:()=>U(`job_request.choose_checklist`),contentTop:$q.content,contentMain:$q,canNext:!0,isValid:()=>!0,infoText:()=>U(`job_request.checklist_info`),isEmpty:e=>{let t=(0,gx.default)(e?.checklistId||[]).length,{tasks:n}=e||{};return!t&&!(n||[]).length},mapStateToProps:(e,t)=>{let n=hJ(e,t),r=bw(d_)(e)?.isErrored,{tasks:i}=n||{},a=i||[],o=a.length>0?a[0]:null,s=o?o.title:null,c=n?.tempTaskImages,l=n?.taskTitle,u=n?.taskDescription,d=n?.propertyId,f=PC(e,t),p=WC(e,t),m=p[n?.checklistId?.[0]],h=(0,G.default)(m,[`title`],``),g=es(m),_=Yge(e),v=_===`properties`,y=_===`taskform`,{searchQuery:b,result:x}=kw(`jobs`,`jobrequest_searchchecklist`,WC)(e,t)||{},S=(0,xo.default)(x,e=>d&&e.defaultProperty&&e.defaultProperty===d),C=(0,xo.default)(x,e=>e.published||e.propertyIndependent),w=(0,xo.default)(v?S:C,e=>e.totalTaskCount!==0&&!e.deleted);return{finalPropertyId:d,finalPropertyResolved:f[n?.propertyId],finalChecklistIds:n?.checklistId,checklistTitle:h,isTaskformActive:y,taskformlist:a,taskTitle:s,isPropertiesActive:v,allChecklists:p,checklists:w,checklistViewType:_,checklistSubtitle:g,loadingStateChecklist:cJ(e).isLoadingFull,searchQuery:b,tempTaskImages:c,taskTitleRedux:l,taskDescription:u,imageUploadErrored:r}}},skills:{title:()=>U(`skills.requirements`),titleActive:()=>U(`skills.choose_requirements`),contentTop:eJ.content,contentMain:eJ,canNext:!0,isValid:()=>!0,infoText:()=>U(`skills.skill_info`),isEmpty:e=>!(0,gx.default)(e?.skills||[]).length,mapStateToProps:(e,t)=>{let n=hJ(e,t),r=GC(e,t),i=r[n?.skills?.[0]?.skillId],a=(0,G.default)(i,[`title`],``),o=ts(i),{searchQuery:s,result:c}=kw(`skills`,`jobrequest_searchskills`,GC)(e,t)||{},l=(0,xo.default)(c,e=>e);return{finalSkills:n?.skills,skillTitle:a,allSkills:r,skills:l,skillSubtitle:o,loadingStateChecklist:cJ(e).isLoadingFull,searchQuery:s}}},time:{canNext:!0,title:()=>U(`job_request.time`),titleActive:()=>U(`job_request.set_time`),contentTop:Uq.content,contentMain:Uq,infoText:({jobRequestSendMode:e})=>e===l_.prefill?U(`job_request.time_info_prefill`):U(`job_request.time_info`),isEmpty:e=>{let t=e?.jobStartTimeType,n=e?.startTime,r=e?.endTime,i=e?.duration;return t===`fixed`?!n||!i:!n||!r||!i},isValid:(e,t,n)=>
1067{let r=t[e?.propertyId],i=e?.startTime?Wc(e?.startTime):void 0,a=e?.endTime?Wc(e?.endTime):void 0;if(n?.mode===l_.forwarding)return!0;let o=e?.jobStartTimeType,s=e?.duration,c=new Date,l=(0,z.default)(i).isAfter(c);if(r&&(l=(0,z.default)(z.default.tz(i,To(r))).isAfter(c)),n?.mode===l_.prefill)return!!(s&&i);if(o===`REGULAR`||o===`fixed`)return!!(s&&i&&l);let u=a&&(0,z.default)(a).isAfter(i),d={startTime:i,endTime:a,nowTime:c,duration:s};if((o===`FLEXIBLE`||o===`flexible`)&&r){let e=z.default.tz(i,To(r)),t=z.default.tz(a,To(r));l=(0,z.default)(e).isAfter(c)&&(0,z.default)(t).isAfter(c)}return s&&i&&l&&u&&Yc(d)},mapStateToProps:(e,t)=>{let n=hJ(e,t),r=PC(e,t)[n?.propertyId],i=yJ(e),a=Jge(e,t),o=Xge(e,t),s=n?.duration,c=n?.jobStartTimeType,l=new Date,u=a&&(0,z.default)(a).isAfter(l),d=o&&(0,z.default)(o).isAfter(a);if(r){let e=r.timeZone||`America/Los_Angeles`,t=z.default.tz(a,e),n=z.default.tz(o,e);u=(0,z.default)(t).isAfter(l),d=(0,z.default)(n).isAfter(l)&&(0,z.default)(n).isAfter(t)}i===l_.prefill&&(u=!0,d=!0);let f={startTime:a,endTime:o,nowTime:l,duration:s},p=c?.toLowerCase()===`flexible`?Yc(f):!0;return{resolvedProperty:r,finalMode:i,isStartTimeValid:u,isEndTimeValid:d,isDurationValid:p,finalDuration:s,finalStartTime:a,finalEndTime:o,jobStartTimeType:c}}},cleaners:{title:()=>U(`job_request.cleaners`),titleActive:()=>U(`job_request.select_cleaners`),canNext:!0,contentTop:Xq.content,contentMain:Xq,isValid:(e,t,n)=>{let r=n?.mode,i=e?.cleaners||{},a=Object.keys(i).length,o=(0,gx.default)(i);return r===l_.forwarding?!0:r===l_.sendmore?!!a&&!o.every(e=>e.isDisabled):!!a},infoText:({jobRequestSendMode:e})=>t=>e===l_.prefill?U(`job_request.cleaners_info_prefill`):U(t?`job_request.cleaners_info_community`:`job_request.cleaners_info_normal`),isEmpty:e=>Object.keys(e?.cleaners||{}).length===0,mapStateToProps:(e,t)=>{let n=hJ(e,t),r=PC(e,t)[n?.propertyId],i=r&&!!r.sample||!1,a=Wge(e,t),o=[],s=yJ(e),c=s===l_.forwarding,l=KC(e,t),u=kw(`contacts`,`jobrequestnew_searchcleaners`,KC)(e,t);if(c){l=(0,xo.default)(l,e=>e.userData.standAloneUser!==!1);let e=u?.result;u.result=(0,xo.default)(e,e=>e.userData.standAloneUser!==!1)}return{proMarketProperty:c?!1:!!r?.proMarketProperty,finalMode:s,finalProperty:r,config:sw(e,t),finalPrice:n?.price,communityCleaners:i||c?o:a,contacts:l,currentUserId:EC(e,t),finalCleaners:n?.cleaners,searchData:u}}},price:{canNext:!0,nameWidthAuto:!0,title:()=>U(`job_request.offered_price`),titleActive:()=>U(`job_request.offered_price_op`),contentTop:Gq.content,contentMain:Gq,isValid:(e,t)=>{if(t[e?.propertyId]?.proMarketProperty){let t=e?.price;return!(lJ(e)&&!t)}return!0},infoText:({jobRequestSendMode:e,properties:t,jobRequestData:n})=>{let r=!!t[n?.propertyId]?.proMarketProperty||!1;return e===l_.prefill?U(`job_request.offered_price_info_prefill`):r&&lJ(n)?U(`job_request.offered_price_pro_info`):U(`job_request.offered_price_info`)},alsoHightLight:{message:!0},isEmpty:e=>{let t=e?.price,n=e?.currency;return!t||t===0||!n},mapStateToProps:(e,t)=>{let n=hJ(e,t),r=PC(e,t)[n?.propertyId],i=n?.cleaners,{offeredPriceLimitByCountryCode:a,suggestedCleanerCountries:o}=sw(e,t),s=mA;o?.includes(r?.countryCode)&&a&&(s=a[r?.countryCode]||a.DEFAULT);let c=yJ(e),l=n?.price;return{finalMode:c,finalProperty:r,finalCurrency:n?.currency,finalPrice:l,finalCleaners:i,offeredPriceLimit:s}}},message:{title:()=>U(`job_request.description`),titleActive:()=>U(`job_request.write_description`),canNext:!0,optional:!0,contentTop:nJ.content,contentMain:nJ,infoText:({jobRequestSendMode:e})=>e===l_.prefill?U(`job_request.message_info_prefill`):U(`job_request.message_info`),isEmpty:e=>{let t=e?.message;return!t||t===``},isValid:()=>!0,mapStateToProps:(e,t)=>({finalMessage:hJ(e,t)?.message})},requestRemoteInspection:{title:()=>U(`retail_remote_inspection.request`),isValid:()=>!0,isEmpty:()=>!1,optional:!0,contentTop:rJ.content,contentMain:rJ,mapStateToProps:(e,t)=>{let n=hJ(e,t),r=e_e(e,t),i=n.propertyOwnerPlanId===oo.REMOTE_INSPECTION,a=yJ(e),o=TJ(e,t);return{riOption:n.riOption,isHidden:r||a!==l_.normal||i,config:sw(e,t),disableOptingForRI:o}}}};function uJ(e){let t=[];return e?(e.detailsAccess&&t.push(U(`properties.access`)),e.detailsGarbage&&t.push(U(`properties.garbage`)),e.detailsParking&&t.push(U(`properties.parking`)),e.detailsWifiName&&t.push(U(`properties.wifi`)),e.detailsInformation&&t.push(U(`properties.important_note`)),t):t}var dJ=(0,pc.default)(Vge,(e,t)=>({...e,id:t})),fJ=[dJ.title,dJ.property,dJ.propertyDetails,dJ.checklist,dJ.skills,dJ.time,dJ.cleaners,dJ.price,dJ.message,dJ.requestRemoteInspection],pJ=(0,If.default)(fJ,(e,t,n)=>({...e,[t.id]:n}),{}),mJ=e=>e.jobRequestSend,Hge=A(mJ,e=>e.openSection),hJ=A(mJ,e=>e.jobRequestData),Uge=A(hJ,e=>e.checklistId),Wge=A(mJ,e=>e.communityCleaners),Gge=A(mJ,e=>e.hostStripeStatus),Kge=A(mJ,e=>e.jobRequestIdOfRecentlySentJob),gJ=A(mJ,e=>e.startupData),_J=A(hJ,e=>e.tasks),vJ=A(hJ,e=>e.riOption),yJ=A(mJ,e=>e.startupData?.mode),qge=A(mJ,e=>e.isPaywallModalOpen);A(mJ,e=>e.seenPaywallModal);var Jge=A(hJ,e=>{let{startTime:t}=e;return t?Jc(Wc(t)):void 0}),Yge=A(mJ,e=>e.checklistViewType),Xge=A(hJ,e=>{let{endTime:t}=e;return t?Jc(Wc(t)):void 0});function bJ(e,t){return function(){return R.default.error(`validation func missing ${e}`,t),!1}}function Zge(e,t){switch(e){case l_.sendmore:return{property:!0,propertyDetails:!0,checklist:!0,title:!0,time:!0,price:!0,message:!0,skills:!0,requestRemoteInspection:!0}
1067;case l_.forwarding:return t&&t===W.StateStarted?{property:!0,propertyDetails:!0,checklist:!0,title:!0,time:!0,skills:!0,price:!0,requestRemoteInspection:!0}:{property:!0,propertyDetails:!0,checklist:!0,title:!0,time:!0,skills:!0,requestRemoteInspection:!0};case l_.prefill:return{property:!0,propertyDetails:!0,checklist:!0};case l_.edit:return t&&(t===W.StateAccepted||t===W.StatePendingChanges)?{property:!0,cleaners:!0}:{property:!0,requestRemoteInspection:!0};default:return{}}}function Qge(e,{allSectionsLength:t,validCount:n}){switch(e){case l_.prefill:return!0;default:return n===t}}var xJ=A(Hge,hJ,PC,gJ,(e,t,n,r)=>{let i=0,a=r?.mode,o=r?.data,s=``;o&&(s=o.jobStatus);let c=(0,If.default)(dJ,(o,c,l)=>{let u={};return u.open=!!e[l],u.isSectionDisabled=!!Zge(a,s)[l],u.active=u.open,u.validFunc=c.isValid||bJ(`isValid`,c),u.emptyFunc=c.isEmpty||bJ(`isEmpty`,c),u.isValid=u.validFunc(t,n,r),u.isEmpty=u.emptyFunc(t,n,r),u.isEmptyOverride=c?.isEmptyOverride?.(t),u.infoTextMsg=c.infoText&&c.infoText({jobRequestSendMode:a,isEmpty:u.isEmpty,jobRequestData:t,properties:n}),u.prevSectionIndex=parseInt(pJ[l],10)-1,u.nextSectionIndex=parseInt(pJ[l],10)+1,u.prevSection=fJ[u.prevSectionIndex],u.nextSection=fJ[u.nextSectionIndex],u.sectionTitle=c.title(),u.prevSectionRes=o[(0,G.default)(u.prevSection,`id`)],u.prevSectionDisabled=!!(!u.prevSectionRes||u.prevSectionRes.isSectionDisabled),u.isValid&&(i+=1),o[l]={open:u.open,active:u.active,isValid:u.isValid,isSectionDisabled:u.isSectionDisabled,infoTextMsg:u.infoTextMsg,disabledNext:!u.isValid,optional:c.optional,isEmpty:u.isEmpty,isEmptyOverride:u.isEmptyOverride,sectionTitle:u.sectionTitle,prevSection:u.prevSection,nextSection:u.nextSection,prevSectionDisabled:u.prevSectionDisabled},o},{}),l=(e,t)=>{let n=parseInt(pJ[t],10);e===`next`?n+=1:e===`prev`&&--n;let r=null,i={};return n>=0&&n<fJ.length&&(i.sectionData=fJ[n],i.sectionRes=c[(0,G.default)(i.sectionData,`id`)],i.sectionDisabled=!!(!i.sectionRes||i.sectionRes.isSectionDisabled),r=i.sectionDisabled?l(e,i.sectionData.id):i),r},u=-1;(0,xc.default)(fJ,(e,n)=>{let i=c[e.id],a=c[(0,G.default)(i.nextSection,`id`)];if(c[e.id].nextSectionDisabled=!!(!a||a.isSectionDisabled),i.nextSectionDisabled&&i.nextSection){let e=l(`next`,i.nextSection.id);e&&(i.nextSection=e.sectionData,i.nextSectionDisabled=e.sectionDisabled)}if(i.prevSectionDisabled&&i.prevSection){let e=l(`prev`,i.prevSection.id);e&&(i.prevSection=e.sectionData,i.prevSectionDisabled=e.sectionDisabled)}let o=r?.event;e.id===`property`&&o&&(c[e.id].sectionTitle=hl(o)),u===-1&&(!i.isValid||e.id===`checklist`&&t.checklistId?.length===0||i.optional&&c[e.id].isEmpty)&&(u=n)});let d=Qge(a,{validCount:i,allSectionsLength:fJ.length});return{mappedSections:c,activeSection:(0,gx.default)(e)[0],isAllValid:d,jobRequestSendMode:a,meta:r,hightLightedSectionId:(0,G.default)(fJ[u],[`id`])}}),$ge=A(hJ,e=>e.skills),SJ=e=>A(hJ,WC,BW(e),(e,t,n)=>{let r=[];return n?.jobRequest?.checklists?.length>0?r=n?.jobRequest?.checklists:e.checklistId.forEach(e=>r.push(t[e])),r.reduce((e,t)=>(e&&(e.totalVerificationCountOfAllChecklists+=(t?.totalVerificationCount??0)+(t?.totalVerificationPictureCount??0)),e),{totalVerificationCountOfAllChecklists:0}).totalVerificationCountOfAllChecklists>=1}),CJ=e=>A(hJ,BW(e),(e,t)=>{let n=t?.jobRequest?.scheduledStartTime,r=e?.startTime||n,i=new Date;return i.setHours(i.getHours()+24),(0,z.default)(r).isAfter(i)}),wJ=e=>A(hJ,EC,BW(e),(e,t,n)=>{let r=e?.cleaners,i=[];return i=Object.keys(r)?.length>0?Object.keys(r):n?.jobRequest?.requestedCleaners?.map(e=>e?.id),i?.includes(t)}),TJ=A(SJ(),CJ(),wJ(),(e,t,n)=>!!(!t||n||!e)),e_e=A(hJ,sw,PC,(e,t,n)=>{let r=n[e.propertyId],{suggestedCleanerCountries:i}=t;return!i?.includes(r?.countryCode)}),t_e=[`property`,`time`],EJ=class extends B.PureComponent{constructor(...e){super(...e),k(this,`click`,e=>t=>{let{id:n}=this.props;e.action===`clickback`||e.action===`clickreset`?(id(n,e.prevSection||`reset`,`button`),nd(`job_request_section_${e.action}`,{component:`JobRequestSection`,sectionId:n,targetSection:e.prevSection||null})):e.action===`next`?(id(n,e.nextSection,`button`),nd(`job_request_section_next`,{component:`JobRequestSection`,sectionId:n,targetSection:e.nextSection})):e.action===`click`&&nd(`job_request_section_click`,{component:`JobRequestSection`,sectionId:e.sender}),this.props.handleClickSaga(t,e)}),k(this,`isDisabledController`,()=>{let{id:e,isEditMode:t,isProblemScheduleMode:n,isSectionDisabled:r,jobStatus:i}=this.props,a=(t||n)&&e===`property`,o=t&&e===`cleaners`&&i===W.StateAccepted;return a||r||o})}componentDidUpdate(){this.resetRIOption()}resetRIOption(){let{isHidden:e,disableOptingForRI:t,riOption:n}=this.props;(e||t)&&n===f_.yes&&this.props.setRequestRiOption(f_.no)}render(){let{isHidden:e,contentTop:t,contentMain:n,open:r,canOpen:i,id:a,showReset:o,prevSection:s,prevSectionDisabled:c,sectionTitle:l,isTitleRequired:u,isEmpty:d,isEmptyOverride:f,nextSection:p,nextSectionDisabled:m,nextText:h,isValid:g}=this.props;if(e)return null;let _=t,v=n,y=r&&i,b=f===void 0?d:d&&f;if(!_||!v)return R.default.error(`JobRequestSection - no main or top`,a,this.props),null;let x={};
1067o?(x.canBack=!0,x.onClickBack=this.click({action:`clickreset`,section:a}),x.backText=U(`job_request.reset`)):(x.canBack=s&&!c,x.onClickBack=this.click({action:`clickback`,prevSection:s}),x.backText=U(`job_request.back`));let S=t_e.includes(a);return i?(0,K.jsxs)(MS,{children:[y&&(0,K.jsx)(zS,{...x,canNext:p&&!m,title:l,nextText:h,disabledNext:!g,onClickNext:this.click({action:`next`,nextSection:p})}),y&&(0,K.jsx)(v,{...this.props})]}):(0,K.jsxs)(HS,{id:a,isSmall:!S,isDisabled:this.isDisabledController(),onClick:this.click({action:`click`,sender:a}),isActive:r,title:l,isTitleRequired:u,children:[!b&&(0,K.jsx)(_,{...this.props}),b&&(0,K.jsx)(US,{})]})}};function n_e(e,t){return t.mapStateToProps?t.mapStateToProps(e,t):{}}EJ.propTypes={sectionTitle:V.default.string.isRequired,id:V.default.string.isRequired,open:V.default.bool.isRequired,hideTopWhenOpen:V.default.bool,nameWidthAuto:V.default.bool,canNext:V.default.bool,canOpen:V.default.bool,showReset:V.default.bool,nextText:V.default.string,infoTextMsg:V.default.oneOfType([V.default.string,V.default.func]),active:V.default.bool.isRequired,isValid:V.default.bool,isHidden:V.default.bool};var r_e=Nt(n_e,{handleClickSaga:OK,selectChecklist:kK,selectSkill:AK,changeJobTitle:jK,changeJobType:MK,changeJobForwarding:NK,selectChecklistViewType:PK,setSearchQuery:$P,createChecklistSaga:TU,setModalObj:zU,setSliderData:tF,setGlobalLoadingState:uF,changeTaskTitle:UK,changeTaskDescription:WK,unsetJobRequestCleaners:BK,setRequestRiOption:KK})(EJ),DJ=0,OJ=1,i_e=2,kJ=e=>{let{text:t,icon:n}=e,r;switch(n){case`alert`:r=(0,K.jsx)(Y.AlertRed,{width:`1em`,byWidth:!0});break;case`success`:r=(0,K.jsx)(Y.IcActive,{width:`1em`,byWidth:!0});break;default:break}return(0,K.jsx)(tf,{style:{margin:`5px`},children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(Y.StripeLogo,{width:`4em`,byWidth:!0}),(0,K.jsx)(I,{component:`span`,sx:{display:`flex`,ml:`-.5em`,p:`0 .5em`},children:(0,K.jsx)(I,{component:`span`,sx:{width:`100%`,textAlign:`center`},children:`|`})}),r,(0,K.jsx)(I,{component:`span`,sx:{display:`flex`},children:(0,K.jsx)(I,{component:`span`,sx:{padding:`0 0 0 0.25em`},children:t})})]})})};function AJ(){return{style:{base:{color:Wp,"::placeholder":{color:Xp},":hover::placeholder":{color:Qp}},invalid:{color:Kp,iconColor:Kp}}}}function a_e(e,t,r,i,a,o,s){let{classes:c,config:l}=e,{name:u,setAsDefault:d}=t,f={width:`calc(50% + 0.5px)`,position:`absolute`,left:0,borderBottomRightRadius:0},p={zIndex:1,border:`1px solid ${Kp}`},m={width:`calc(50% + 0.5px)`,position:`absolute`,right:0,borderBottomLeftRadius:0};function h(e){return e?(0,K.jsx)(x,{style:{color:Qp},children:U(`job_request.wizard.set_as_default`)}):U(`job_request.wizard.set_as_default`)}return[{stepNumber:DJ,label:(0,K.jsx)(x,{variant:`h6`,children:U(`job_request.wizard.payment_method`)}),content:(0,K.jsx)(x,{component:`div`,children:(0,K.jsx)(O,{i18nKey:`job_request.wizard.payment_method_blurb`,components:{msg:(0,K.jsx)(`a`,{className:`${c?.link} text-l6m`,target:`_blank`,rel:`noopener noreferrer`,href:l.proMPSatisfactionGuaranteeUrl,"aria-label":`Marketplace Satisfaction Guarantee`}),tos:(0,K.jsx)(`a`,{className:`${c?.link} text-l6m`,target:`_blank`,rel:`noopener noreferrer`,href:l.proTOSUrl,"aria-label":`Terms of Service`})}})}),showActionsLeft:!0,nextLabel:U(`job_request.wizard.next`),onStepHandler(){let{resetIntentState:t}=e;return t(),Promise.resolve({stepNumber:DJ})}},{stepNumber:OJ,label:(0,K.jsx)(Y.StripeLogo,{margin:`auto`,width:`4em`,byWidth:!0}),content:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(fm,{hover:!0,isFirst:!0,isLast:!0,styleOverwrite:r&&r.elementType===`accountName`?{...p}:{},children:(0,K.jsx)(`input`,{value:u,"data-testid":`name`,placeholder:U(`account.name`,{}),type:`text`,autoComplete:`name`,onChange:e=>i&&i(e.target.value),style:{border:`none`,outline:`none`,width:`100%`,background:`transparent`,fontSize:`16px`,fontFamily:`"Helvetica Neue", Helvetica, sans-serif`}})}),(0,K.jsx)(_m,{}),(0,K.jsx)(fm,{hover:!0,isFirst:!0,styleOverwrite:r&&r.elementType===`cardNumber`?{...p}:{},children:(0,K.jsx)(`div`,{style:{width:`100%`},children:(0,K.jsx)(n,{options:{...AJ(),placeholder:`1234 1234 1234 1234`},onReady:a})})}),(0,K.jsxs)(Yf.TwoSplit,{children:[(0,K.jsx)(fm,{hover:!0,isLast:!0,styleOverwrite:r&&r.elementType===`cardExpiry`?{...f,...p}:f,children:(0,K.jsx)(`div`,{style:{width:`100%`},children:(0,K.jsx)(pt,{options:{...AJ(),placeholder:`MM / YY`},onReady:a})})}),(0,K.jsx)(fm,{hover:!0,isLast:!0,styleOverwrite:r&&r.elementType===`cardCvc`?{...m,...p}:m,children:(0,K.jsx)(`div`,{style:{width:`100%`},children:(0,K.jsx)(Zt,{options:{...AJ(),placeholder:`CVC`},onReady:a})})})]}),(0,K.jsx)(_m,{}),(0,K.jsx)(Ap,{small:!0,label:h(s),onChange:o,selected:s||d,disabled:s}),(0,K.jsx)(_m,{}),(0,K.jsx)(I,{sx:{color:Kp,minHeight:`14px`,lineHeight:1},role:`alert`,children:r?r.message:``})]}),showActionsLeft:!1,nextLabel:U(`job_request.wizard.continue`),async onStepHandler(e,t,n){let{stripe:r}=e,{name:i,cardNumberElement:a}=t;if(!(i&&i.trim())){let e={message:U(`job_request.wizard.name_invalid`),elementType:`accountName`};return Promise.resolve({error:e})}try{let{setupIntent:e,error:t}=await r.confirmCardSetup(n.clientSecret,{payment_method:{card:a,billing_details:{name:i}}});return Promise.resolve({stepNumber:OJ,setupIntent:e,error:t})}catch(e){throw e}}},{stepNumber:i_e,label:r?(0,K.jsx)(kJ,{text:U(`job_request.wizard.inactive`),icon:`alert`}):(0,K.jsx)(kJ,{text:U(`job_request.wizard.active`),icon:`success`}),content:(0,K.jsx)(x,{style:{color:Qp},variant:`h6`,children:r?r.message:U(`job_request.wizard.success`)}),showActionsLeft:!1,nextLabel:U(`job_request.wizard.next`)}]}var jJ=0,MJ=1,o_e=2,s_e={display:`flex`,alignItems:`center`},c_e={display:`flex`},l_e={padding:`0 0 0 0.25em`},NJ=e=>{let{key:t,text:n,icon:r}=e,i;switch(r){case`alert`:i=(0,K.jsx)(Y.AlertRed,{width:`1em`,byWidth:!0});break;case`success`:i=(0,K.jsx)(Y.IcActive,{width:`1em`,byWidth:!0});break;default:break}return(0,K.jsx)(tf,{style:{margin:`5px`},children:(0,K.jsxs)(`div`,{style:s_e,children:[i,(0,K.jsx)(`span`,{style:c_e,children:(0,K.jsx)(`span`,{style:l_e,children:n})})]})},t)};function u_e(e,t,n,r,i,a,o,s,c){let{routingNumber:l,accountNumber:u,accountHolderName:d,accountHolderType:f,setAsDefault:p}=t,m=[{value:`individual`,title:`Individual`},{value:`company`,title:`Company`}].map(({value:e,title:t})=>({value:e,title:t})),h={zIndex:1,border:`1px solid ${Kp}`};function g(e){return e?(0,K.jsx)(x,{style:{color:Qp},children:U(`job_request.wizard.set_as_default`)}):U(`job_request.wizard.set_as_default`)}return[{stepNumber:jJ,label:(0,K.jsx)(x,{variant:`h6`,children:U(`job_request.wizard.payment_method`)}),content:U(`job_request.wizard.payment_method_blurb`),showActionsLeft:!0,nextLabel:U(`job_request.wizard.next`),onStepHandler(){let{resetIntentState:t}=e;return t(),Promise.resolve({stepNumber:jJ})}},{stepNumber:MJ,label:(0,K.jsx)(x,{variant:`h6`,children:U(`job_request.wizard.bank_account_details`)}),content:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Yf,{value:l,isFirst:!0,isLast:!0,"data-testid":`routingNumber`,placeholder:U(`job_request.wizard.routing_number`,{}),type:`text`,autoComplete:`routingNumber`,onChange:e=>r&&r(e.target.value),styleOverwrite:n&&n.elementType===`accountRoutingNumber`?h:{}}),(0,K.jsx)(_m,{}),(0,K.jsx)(Yf,{value:u,isFirst:!0,isLast:!0,"data-testid":`accountNumber`,placeholder:U(`job_request.wizard.account_number`,{}),type:`text`,autoComplete:`accountNumber`,onChange:e=>i&&i(e.target.value),styleOverwrite:n&&n.elementType===`accountNumber`?h:{}}),(0,K.jsx)(_m,{}),(0,K.jsx)(Yf,{value:d,isFirst:!0,isLast:!0,"data-testid":`accountHolderName`,placeholder:U(`job_request.wizard.account_holder_name`,{}),type:`text`,autoComplete:`accountHolderName`,onChange:e=>a&&a(e.target.value),styleOverwrite:n&&n.elementType===`accountHolderName`?h:{}}),(0,K.jsx)(_m,{}),(0,K.jsx)(Yf,{value:f,"data-testid":`accountHolderType`,placeholder:U(`job_request.wizard.account_holder_type`,{}),type:`select`,autoComplete:`accountHolderType`,options:m,onChange:e=>o&&o(e.target.value),styleOverwrite:n&&n.elementType===`accountHolderType`?h:{}}),(0,K.jsx)(_m,{}),(0,K.jsx)(Ap,{small:!0,label:g(c),onChange:s,selected:c||p,disabled:c}),(0,K.jsx)(_m,{}),(0,K.jsx)(I,{sx:{color:Kp,minHeight:`14px`,lineHeight:1},role:`alert`,children:n?n.message:``})]}),showActionsLeft:!1,nextLabel:U(`job_request.wizard.continue`),async onStepHandler(e,t){let{stripe:n}=e,{routingNumber:r,accountNumber:i,accountHolderName:a,accountHolderType:o}=t;if(!(r&&r.trim())){let e={message:U(`job_request.wizard.routing_number_invalid`),elementType:`routingNumber`};return Promise.resolve({error:e})}if(!(i&&i.trim())){let e={message:U(`job_request.wizard.account_number_invalid`),elementType:`accountNumber`};return Promise.resolve({error:e})}if(!(a&&a.trim())){let e={message:U(`job_request.wizard.account_holder_name_invalid`),elementType:`accountHolderName`};return Promise.resolve({error:e})}try{let{error:e,token:t}=await n.createToken(`bank_account`,{country:`US`,currency:`usd`,routing_number:r,account_number:i,account_holder_name:a,account_holder_type:o});return Promise.resolve({stepNumber:MJ,token:t,error:e})}catch(e){throw e}}},{stepNumber:o_e,label:n?(0,K.jsx)(NJ,{text:U(`job_request.wizard.inactive`),icon:`alert`}):(0,K.jsx)(NJ,{text:U(`job_request.wizard.active`),icon:`success`}),content:(0,K.jsx)(x,{style:{color:Qp},variant:`h6`,children:n?n.message:U(`job_request.wizard.success`)}),showActionsLeft:!1,nextLabel:U(`job_request.wizard.next`)}]}
1067function d_e(){return{type:nA}}function PJ(e){return{type:eA,loading:e}}function FJ(e,t){return{type:rA,data:e,meta:t}}function IJ(){return{type:iA}}function LJ(){return{type:oA}}function f_e(e){return{type:aA,data:e}}function p_e(){return{type:qk}}function RJ(e){return{type:$k,data:e}}function m_e(e){return{type:tA,status:e}}function h_e(e,t){return{type:Jk,stripePaymentMethod:e,setAsDefault:t}}function g_e(e){return{type:Yk,stripePaymentMethodId:e}}function __e(e){return{type:Xk,stripeSourceToken:e}}function v_e(e){return{type:Zk,stripeSourceId:e}}function y_e(e,t){return{type:Qk,plaidPublicToken:e,plaidAccountId:t}}var zJ=e=>e.stripe,BJ=A(zJ,e=>e?.stripeCustomer),b_e=A(zJ,e=>e?.stripeCustomerLoading);A(zJ,e=>e?.hostStripeStatus);var x_e=A(zJ,e=>e?.modal),S_e=A(zJ,e=>e?.intent);A(BJ,e=>e?.defaultSource),A(BJ,e=>e?.defaultPaymentMethod);var C_e=2,w_e=3,T_e=0,E_e=1;function VJ({onClose:e=()=>{},onFinish:t=()=>{},textAlign:n,showProgress:r=!1,useMarketplace:i,useBankAccounts:a=!1,useCards:o=!0}){let s=xe(),c=fr(),l=Uee(),u=j(x_e),d=j(S_e),f=j(BJ),p=j(sw),m=u,h=d,g=f,_=(0,B.useMemo)(()=>{let{defaultPaymentMethod:e,cards:t,bankAccounts:n}=g||{},r=!(t&&t.length),i=!(n&&n.length);return!e||r&&i},[g]),[v,y]=(0,B.useState)(0),[b,x]=(0,B.useState)(!1),[S,C]=(0,B.useState)(!1),[w,T]=(0,B.useState)([]),[E,D]=(0,B.useState)(``),[ee,te]=(0,B.useState)(``),[ne,re]=(0,B.useState)(``),[ie,ae]=(0,B.useState)(``),[oe,se]=(0,B.useState)(`individual`),[ce,le]=(0,B.useState)(_),[ue,de]=(0,B.useState)(void 0),[fe,pe]=(0,B.useState)(void 0),[me,he]=(0,B.useState)(!1),ge=(0,B.useRef)({});ge.current={activeStep:v,name:E,routingNumber:ee,accountNumber:ne,accountHolderName:ie,accountHolderType:oe,setAsDefault:ce,cardNumberElement:fe,steps:w};let _e=(0,B.useCallback)(()=>s(LJ()),[s]),ve=(0,B.useMemo)(()=>({stripe:c,elements:l,useBankAccounts:a,useCards:o,useMarketplace:i,config:p,resetIntentState:_e}),[c,l,a,o,i,p,_e]),ye=(0,B.useCallback)((e,t)=>{let n,r=e=>{e?(D(e),T(ye({...ge.current,name:e}))):T(ye({...ge.current,name:e},{message:U(`job_request.wizard.name_invalid`),elementType:`accountName`}))},i=e=>{e.on(`change`,t=>{let{elementType:n}=t;if(n===`cardNumber`&&pe(e),t.error){let{message:e}=t.error;T(ye(ge.current,{message:e,elementType:n}))}else T(ye(ge.current))})},s=()=>{_||(le(e=>!e),T(ye({...ge.current,setAsDefault:!ge.current.setAsDefault})))};return o&&(n=a_e(ve,e,t,r,i,s,_)),a&&(n=u_e(ve,e,t,e=>{e?(te(e),T(ye({...ge.current,routingNumber:e}))):T(ye({...ge.current,routingNumber:e},{message:U(`job_request.wizard.routing_number_invalid`),elementType:`accountRoutingNumber`}))},e=>{e?(re(e),T(ye({...ge.current,accountNumber:e}))):T(ye({...ge.current,accountNumber:e},{message:U(`job_request.wizard.account_number_invalid`),elementType:`accountNumber`}))},e=>{e?(ae(e),T(ye({...ge.current,accountHolderName:e}))):T(ye({...ge.current,accountHolderName:e},{message:U(`job_request.wizard.account_holder_name_invalid`),elementType:`accountHolderName`}))},e=>{se(e),T(ye({...ge.current,accountHolderType:e}))},s,_)),n},[o,a,ve,_,e]),be=(0,B.useRef)(),Se=(0,B.useCallback)((e,t)=>{let{onStepHandler:n}=ge.current.steps[e]||{};if(!n){y(t),C(!1),T(ye(ge.current));return}he(!0),(async()=>{let e=ge.current.setAsDefault,{stepNumber:r,setupIntent:a,plaidPublicToken:o,plaidAccountId:c,token:l,error:u}=await n(ve,ge.current,h);if(u){T(ye(ge.current,u)),he(!1);return}if(i)switch(r){case T_e:s(d_e());break;case E_e:o&&s(y_e(o,c)),l&&s(__e(l)),a&&a.payment_method&&s(h_e(a.payment_method,e));break;default:break}de(t)})()},[ye,ve,h,i,s]);be.current=Se,(0,B.useEffect)(()=>{T(ye({activeStep:0,name:``,plaidPublicToken:``,plaidAccountId:``,routingNumber:``,accountNumber:``,accountHolderName:``,accountHolderType:`individual`,setAsDefault:_,cardNumberElement:void 0,steps:[]}))},[ye,_]),(0,B.useEffect)(()=>{me&&(m?.view===C_e?(s(IJ()),y(ue),he(!1)):m?.view===w_e&&(s(IJ()),y(ue),T(ye(ge.current,m.error)),he(!1),C(m.error)))},[me,m,ue,s,ye]),(0,B.useEffect)(()=>()=>{s(IJ()),s(LJ())},[s]);let Ce=(0,B.useCallback)(()=>{t()},[t]),we=(0,B.useCallback)(()=>v<w.length-1,[v,w.length]),Te=(0,B.useCallback)(()=>{e(we())},[e,we]),Ee=(0,B.useCallback)(()=>{v!==0&&(y(0),C(!1),T(ye(ge.current)))},[v,ye]),De=(0,B.useCallback)(()=>{y(0),C(!1),T(ye(ge.current))},[ye]),Oe=(0,B.useCallback)(async e=>{e.preventDefault();let t=await Gi();window.open(t.TOS_LINK,`_blank`)},[]),ke=(0,B.useCallback)(()=>(0,K.jsx)(Ap.Base,{small:!0,label:(0,K.jsx)(`span`,{style:{fontSize:`14px`},children:(0,K.jsx)(O,{i18nKey:`job_request.wizard.agree_terms_and_conditions`,components:{termsOfService:(0,K.jsx)(`span`,{style:{color:Wp,textDecoration:`none`},className:`text-l6m`,onClick:Oe})}})}),onChange:()=>x(e=>!e),selected:b}),[b,Oe]),Ae=(0,B.useMemo)(()=>w[v]?.showActionsLeft?ke():null,[v,w,ke]),je=w[v];return(0,K.jsx)(pv,{steps:w,activeStep:v,showProgress:r,showNextButton:!S,showFinishButton:!S,showErrorButton:!!S,nextLabel:je?.nextLabel,nextEnabled:b,onStep:Se,onFinish:Ce,onError:Ee,onReset:De,onClose:Te,actionsLeft:Ae,textAlign:n,style:{minHeight:`250px`,flex:1},loading:me})}VJ.propTypes={onClose:V.default.func,onFinish:V.default.func,textAlign:V.default.string,showProgress:V.default.bool,useMarketplace:V.default.bool.isRequired,useBankAccounts:V.default.bool,useCards:V.default.bool};var HJ=null;function D_e(){return HJ||(HJ=Fr(Wi().STRIPE_API_KEY)),HJ}function UJ({textAlign:e,showProgress:t=!1,onClose:n=()=>{},onFinish:r=()=>{},useMarketplace:i=!0,useBankAccounts:a=!1,useCards:o=!0}){return(0,K.jsx)(I,{sx:{display:`flex`,minHeight:`100%`,flexDirection:`column`},children:(0,K.jsx)(bee,{stripe:D_e(),children:(0,K.jsx)(VJ,{useMarketplace:i,textAlign:e,showProgress:t,onClose:n,onFinish:r,useBankAccounts:a,useCards:o})})})}UJ.propTypes={onClose:V.default.func,onFinish:V.default.func,textAlign:V.default.string,showProgress:V.default.bool,useBankAccounts:V.default.bool,useCards:V.default.bool,useMarketplace:V.default.bool};var O_e=`/static/PayAndRequestRI-CNoecEw1.png`,k_e=F` 1068 mutation requestRI($jobId: ID!, $languageCode: String) { 1069 requestRI(jobId: $jobId, languageCode: $languageCode) { 1070 id 1071 } 1072 } 1073`,A_e=F` 1074 mutation completeRI($jobId: ID!, $inspector: JobInspectorInput) { 1075 completeRI(jobId: $jobId, inspector: $inspector) { 1076 isRICompleted 1077 error 1078 message 1079 } 1080 } 1081`,j_e=F` 1082 mutation updateInspectors($jobSnapshotId: ID!, $inspector: JobInspectorInput) { 1083 updateInspectors(jobSnapshotId: $jobSnapshotId, inspector: $inspector) { 1084 error 1085 message 1086 } 1087 } 1088`,M_e=F` 1089 query getRIJobStatus($jobId: ID!) { 1090 getRIJobStatus(jobId: $jobId) { 1091 error 1092 riJobStatus 1093 inspectors { 1094 id 1095 firstName 1096 } 1097 } 1098 } 1099`,N_e=F` 1100 query getPropertiesEligibleForRI { 1101 getPropertiesEligibleForRI { 1102 error 1103 results 1104 } 1105 } 1106`,P_e=async e=>{try{return(await QF.mutate({mutation:k_e,variables:{jobId:e,languageCode:(0,pi.default)()},fetchPolicy:`no-cache`})).data?.requestRI}catch(e){return R.default.error(`[requestRemoteInspectionApi] ${e}`),e.apiError=!0,e}},WJ=async(e,t)=>{try{let n=(await QF.mutate({mutation:A_e,variables:{jobId:e,inspector:t},fetchPolicy:`no-cache`})).data?.completeRI;if(n.error)throw n.message;return n.isRICompleted}catch(e){throw R.default.error(`[completeRemoteInspectionApi] ${e}`),e}},GJ=async e=>{try{let t=await QF.query({query:M_e,variables:{jobId:e},fetchPolicy:`no-cache`});if(t.data?.getRIJobStatus.error)throw t.data;return t.data?.getRIJobStatus}catch(e){return R.default.error(`[getRIJobStatusApi] ${e.getRIJobStatus?.message}`),{apiError:!0,error:e}}},F_e=async()=>{try{return(await QF.query({query:N_e,fetchPolicy:`cache-first`})).data?.getPropertiesEligibleForRI}catch(e){return R.default.error(`[getPropertiesEligibleForRIApi] ${e}`),e.apiError=!0,e}},I_e=async(e,t)=>{try{let n=(await QF.mutate({mutation:j_e,variables:{jobSnapshotId:e,inspector:t},fetchPolicy:`no-cache`})).data?.updateInspectors;if(n.error)throw n.message;return!0}catch(e){throw R.default.error(`[completeRemoteInspectionApi] ${e}`),e}},L_e=()=>document.location.href.includes(`calendar`),KJ=()=>document.location.href.includes(`contacts`),R_e=()=>document.location.href.includes(`todos`),qJ=()=>document.location.href.includes(`reports`),z_e=()=>{let e=document.location.href.split(`/`)[5];return qJ()&&!e.includes(`?_k`)&&e||``},B_e=()=>{let e=document.location.href;return KJ()&&e.includes(`/accepted`)},V_e=()=>{let e=document.location.href;return KJ()&&e.includes(`/all`)},JJ=()=>{let e=document.location.href;return KJ()&&e.split(`/`)[5]||``};function H_e(e,t){return L_e()?Z.bookingPageFromCalendar(e,t):qJ()?Z.bookingPageFromReports(z_e(),e,t):R_e()?Z.bookingPageFromTodos(e,t):B_e()?Z.bookingPageFromContacts(JJ(),`accepted`,e,t):V_e()?Z.bookingPageFromContacts(JJ(),`all`,e,t):Z.bookingPageFromProperty(e,t)}function U_e(e){return Wn(Z.contactPage(e))}function W_e(e){return Wn(Z.jobsWithId(e))}function G_e(e,t){let n=H_e(e,t);return R.default.info(`showBookingDetails link`,e,t,n),Wn(n)}function YJ(e,t){return{type:pO,jobRequestId:e,isCleanerRequest:t}}function XJ(){return{type:mO}}function K_e(e,t){return{type:yO,noDelay:e,meta:t}}function ZJ(){return{type:CO}}function QJ(e,t,n,r){return{type:bO,meta:e,skipJobModalOpen:t,updateLocalCosts:n,jobsReceivedMode:r}}function $J(e){return{type:xO,meta:e}}function eY(e,t){return{type:vO,noDelay:e,meta:t}}function tY(){return{type:SO}}function q_e(){return{type:wO}}function nY(e){return{type:TO,noDelay:e}}function J_e(e){return{type:zO,jobRequestId:e}}function rY(e){return{type:gO,jobRequestId:e}}function iY(e){return{type:_O,jobRequestId:e}}function aY(e){return{type:hO,changeSet:e}}function oY(e,t){return{type:EO,jobRequestId:e,feedbacks:t}}function Y_e(e){return{type:DO,data:e}}function X_e(e){return{type:OO,data:e}}function Z_e(e){return{type:$E,data:e}}function Q_e(e){return{type:kO,data:e}}function $_e(e){return{type:AO,data:e}}function eve(e){return{type:jO,data:e}}function sY(e){return{type:MO,data:e}}function cY(e){return{type:NO,data:e}}function tve(e){return{type:PO,sourceJobSnapshotId:e}}function nve(e){return{type:FO,payload:e}}function lY(e){return{type:RO,payload:e}}function uY(e){return{type:nD,payload:e}}function dY({from:e,onClose:t=()=>{}}){let n=xe(),r=j(t=>Kge(t,{from:e})),i=j(jW),a=j(sw),o=(0,B.useMemo)(()=>e===`jobRequest`?r:i?.selectedJobRequestId,[e,r,i?.selectedJobRequestId]),[s,c]=(0,B.useState)(null),l=(0,B.useCallback)(r=>{Pu(r,`RECURLY_PAYMENT_DECLINED`)?(e===`jobRequest`?(t(),n(dF(!1,`jobrequest`,{}))):n(XJ()),n(dF(!0,u_.RECURLY_PAYMENT_DECLINED,{}))):c(`rejected`)},[e,t,n]),u=(0,B.useCallback)(async()=>{try{c(`pending`);let r=await P_e(o);
1106if(r.apiError)throw r;r?.id&&(e===`jobRequest`?(t(),n(IK(`payAndRequestRISuccess`))):c(`resolved`))}catch(e){l(e)}},[o,e,t,n,l]),d=(0,B.useCallback)(()=>{uu(a.tosRIUrl)},[a.tosRIUrl]),f=(0,K.jsx)(q,{types:[`size-large`,`type-full-primary`],onClick:u,disabled:!o||s===`pending`,isLoading:s===`pending`,children:U(`retail_remote_inspection.pay_and_request`).toUpperCase()}),p;return p=e===`jobRequest`?(0,K.jsxs)(I,{sx:{height:`100%`,display:`flex`,flexDirection:`column`},children:[f,(0,K.jsx)(gm,{}),(0,K.jsx)(q,{types:[`size-large`,`type-border-grey`],onClick:t,disabled:s===`pending`,children:U(`retail_remote_inspection.pay_and_request_skip`).toUpperCase()})]}):f,s===`resolved`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Jg,{type:`medium`,children:U(`retail_remote_inspection.scheduled`)}),(0,K.jsx)(gm,{}),(0,K.jsx)(Yg,{type:`greyloading`,children:U(`retail_remote_inspection.scheduled_description`)})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`img`,{src:O_e,alt:`payAndRequestRIImage`}),(0,K.jsx)(Yg,{type:`greyloading`,children:(0,K.jsx)(O,{i18nKey:`retail_remote_inspection.description`,components:{t_and_c:(0,K.jsx)(mj,{componentClass:`span`,modifier:[`color--primary`,`link--clickable`],onClick:d})}})}),(0,K.jsx)(_m,{}),p,s===`rejected`&&(0,K.jsx)(Yf.ErrorMsg,{type:`medium`,children:U(`job_request.error_action_notsuccessful`)})]})}dY.propTypes={from:V.default.oneOf([`jobRequest`]),onClose:V.default.func};var fY=({showPayAndRequestRI:e,onClose:t})=>(0,K.jsx)(X,{show:e,onClose:t,height:`auto`,childrenContainerClassName:``,sx:{"& .modal-children-container":{display:`flex`,flexDirection:`column`,alignItems:`center`}},children:(0,K.jsx)(dY,{from:`jobRequest`,onClose:t})});fY.propTypes={showPayAndRequestRI:V.default.bool.isRequired,onClose:V.default.func.isRequired};var pY=_i.default.bind(qq),rve=[`error`,`jobrequesterror`,`community_service_provider_sample_property_error`,`job_already_scheduled`,`error_handled_from_api`],mY=class extends B.PureComponent{constructor(e){super(e),k(this,`updateShowAndPayRequestRiIfNeeded`,()=>{let{activeSection:e,riOption:t}=this.props;t===f_.yes&&rve.includes(e?.id)&&this.setState({showPayAndRequestRI:!1})}),k(this,`checkMarketplaceCleaner`,e=>(0,ZK.default)(e,e=>!!ps(e))),k(this,`changeDefaultPrefill`,e=>()=>{let{handleClickSaga:t}=this.props;t(void 0,{action:`clickdefaultchange`,val:!e})}),k(this,`submitHandler`,()=>{let{submitSaga:e,proMarketProperty:t,hostStripeStatus:n,cleaners:r,riOption:i,jobRequestSendMode:a}=this.props;return nd(`submit_job_request`,{component:`JobRequestContainer`,mode:a,riOption:i}),this.setState({isButtonEnabled:!1}),t&&this.checkMarketplaceCleaner(r)&&!n?(od(`stripe_wizard_modal`,Ju.OPEN,{component:`JobRequestContainer`}),this.setState({showStripeWizardModal:!0})):i===f_.yes?(e(),this.setState({showPayAndRequestRI:!0})):e()}),k(this,`handlePayAndRequestRIClose`,(e,t)=>t===`backdropClick`||t===`escapeKeyDown`?null:this.setState({showPayAndRequestRI:!1})),k(this,`onClose`,e=>{let t=!0;return e&&(t=window.confirm(U(`job_request.wizard.confirm_leave`))),t===!0&&(od(`stripe_wizard_modal`,Ju.CLOSE,{component:`JobRequestContainer`}),this.setState({showStripeWizardModal:!1,isButtonEnabled:!0})),t}),k(this,`closeModal`,()=>{let{onClose:e}=this.props;od(`job_request_modal`,Ju.CLOSE,{component:`JobRequestContainer`}),e()}),k(this,`onFinish`,()=>{let{submitSaga:e}=this.props;return this.setState({showStripeWizardModal:!1}),e()}),k(this,`goToCalendar`,()=>{let{onClose:e,goToCalendar:t}=this.props;e(),t()}),k(this,`mapSectionToSuccessMessage`,(e,t,n,r)=>e===l_.prefill?{line1:U(`job_request.prefill_job_saved`)}:e===l_.draftJobEdit?{line1:U(`job_request.draft_job_updated`)}:t&&this.checkMarketplaceCleaner(n)?{line1:U(`job_request.send_request`),line2:(0,K.jsx)(O,{i18nKey:`job_request.send_request_pro_txt`,components:{msg:(0,K.jsx)(`a`,{className:pY(`jobRequest__sent-marketplace-email`),target:`_blank`,rel:`noopener noreferrer`,href:r.proMPSatisfactionGuaranteeUrl,"aria-label":`Marketplace Satisfaction Guarantee`}),email:(0,K.jsx)(`a`,{className:pY(`jobRequest__sent-marketplace-email`),href:`mailto:${eo.marketplaceEmail}`,"aria-label":`Email support`})}})}:{line1:U(`job_request.send_request`),line2:U(`job_request.send_request_txt`)}),k(this,`renderSection`,(e,t)=>{let{mappedSections:n,hightLightedSectionId:r,finalMode:i,onClose:a,startupData:o,jobRequest:s,isLoadingJobData:c}=this.props,l=n[e.id].active,u=r===e.id,d=i===l_.edit||i===l_.draftJobEdit,f
1106=i===l_.problemSchedule;return(0,K.jsx)(r_e,{canOpen:t,contentTop:e.contentTop,contentMain:e.contentMain,nameWidthAuto:e.nameWidthAuto,canNext:e.canNext,isEditMode:d,isProblemScheduleMode:f,nextText:U(`job_request.next`),mapStateToProps:e.mapStateToProps,hideTopWhenOpen:e.hideTopWhenOpen,id:e.id,showReset:i===l_.prefill,...n[e.id],isTitleRequired:!c&&!n[e.id].isValid,active:!!l||!!(u||this.highlightSectionAccWithOther(r,n[e.id],e.id)),onClose:a,jobRequestId:o.prevJobRequestId,jobStatus:s&&s.status},e.id)}),k(this,`renderSectionFull`,e=>{let{finalMode:t,proMarketProperty:n,cleaners:r,config:i}=this.props;switch(e.id){case`property`:case`propertyDetails`:case`checklist`:case`skills`:case`time`:case`cleaners`:case`price`:case`title`:case`message`:case`requestRemoteInspection`:return this.renderSection(dJ[e.id],!0);case`success`:return(0,K.jsx)(MM,{type:`jobrequest`,onClick:t===l_.draftJobEdit?this.closeModal:this.goToCalendar,closeText:t===l_.draftJobEdit&&U(`checklist.close`),...this.mapSectionToSuccessMessage(t,n,r,i)});case`payAndRequestRISuccess`:return(0,K.jsx)(MM,{type:`payAndRequestRISuccess`});case`error`:return(0,K.jsx)(MM,{type:`jobrequesterror`});case`community_service_provider_sample_property_error`:return(0,K.jsx)(MM,{type:`community_service_provider_sample_property_error`});case`job_already_scheduled`:return(0,K.jsx)(MM,{type:`job_already_scheduled`});case`error_handled_from_api`:return(0,K.jsx)(MM,{type:`error_handled_from_api`,message:e.metaval});default:return R.default.warn(`Unknown render section full`,e),null}}),this.state={isButtonEnabled:!0,showStripeWizardModal:!1,showPayAndRequestRI:!1}}componentDidMount(){let{initJobRequestSaga:e,startupData:t}=this.props;e(t),dme()}componentDidUpdate(){this.updateShowAndPayRequestRiIfNeeded()}componentWillUnmount(){this.setState({isButtonEnabled:!0})}get isMainLoading(){let{loadingState:e}=this.props;return e.isLoadingFull}get isSuccess(){let{loadingState:e}=this.props;return e.isLoaded}mapModeToSendButtonTxt(){let{jobRequestSendMode:e}=this.props;return e===l_.prefill?U(`checklist.save`):e===l_.draftJobEdit?U(`job_request.update_draft_job`):e===l_.forwarding?`Forward Job Request`:U(`job_request.send_job_request`)}highlightSectionAccWithOther(e,t,n){return(0,G.default)(dJ[e],[`alsoHightLight`,n])&&t.isEmpty}mapModeToHeader(){let{jobRequestSendMode:e,isDefaultPrefill:t}=this.props;return e===l_.prefill?{title:U(`job_request.prefill_job`),belowTitle:(0,K.jsxs)(`div`,{className:pY(`job-request__defaultline`),children:[(0,K.jsx)(aS,{children:U(`defaultsettings.set_default_yes_no`)}),(0,K.jsx)(`div`,{children:(0,K.jsx)(Ap,{style:{height:18,width:18},type:`quarter`,"data-testid":`default-job-request`,selected:t,onChange:this.changeDefaultPrefill(t)})})]})}:{title:U(`job_request.job_summary`)}}renderSidebar(){let{isAllValid:e}=this.props,{isButtonEnabled:t}=this.state,n=[`type-full-primary-job`,`size-large`,`border-rad-no`,`width-flex`,`miheight-62`];return(0,K.jsxs)(MS,{children:[(0,K.jsx)(BS,{...this.mapModeToHeader()}),fJ.map(e=>this.renderSection(e,!1)),(0,K.jsxs)(q,{"data-testid":`send_job_request_button`,disabled:!e||this.isSuccess||!t,onClick:this.submitHandler,types:this.isMainLoading?[...n,`zindex-11`]:n,children:[!this.isMainLoading&&this.mapModeToSendButtonTxt(),this.isMainLoading&&(0,K.jsx)(hf,{type:`white`})]})]})}render(){let{activeSection:e,loadingStateInit:t,isLoadingCreateChecklist:n}=this.props,{showStripeWizardModal:r,showPayAndRequestRI:i}=this.state;return(0,K.jsxs)(IS,{children:[(0,K.jsx)(LS,{disableClick:this.isSuccess,children:this.renderSidebar()}),(0,K.jsx)(jS,{children:e&&this.renderSectionFull(e)}),(t.isLoadingFull||n)&&(0,K.jsx)(RS,{}),this.isMainLoading&&(0,K.jsx)(RS,{hideLoader:!0}),r&&(0,K.jsx)(X,{id:`payment-intercept-wizard-modal`,height:350,show:r,onClose:this.onClose,block:!0,children:(0,K.jsx)(UJ,{onClose:this.onClose,onFinish:this.onFinish,textAlign:`center`})}),(0,K.jsx)(fY,{showPayAndRequestRI:i,onClose:this.handlePayAndRequestRIClose})]})}};function ive(){let e=xJ,t=bw(sJ),n=bw(aJ);return function(r,i){let a=i.startupData&&i.startupData.prevJobRequestId,o=yV(r,i),s=hJ(r),c=xw(r,i),l=Gge(r,i),u=aw(a)(r,i),d=o[`create${s?.propertyId}`]===1;return{config:sw(r,i),isLoadingJobData:c,isLoadingCreateChecklist:d,finalMode:yJ(r),isDefaultPrefill:s?.isDefault,startTime:s?.startTime,proMarketProperty:s?.proMarketProperty,cleaners:s?.cleaners,hostStripeStatus:l,loadingState:t(r),loadingStateInit:n(r),jobRequest:u,riOption:s?.riOption,...e(r)}}}mY.propTypes={jobRequest:V.default.shape({})},mY.defaultProps={jobRequest:{}};var ave=Nt(ive,{initJobRequestSaga:EK,handleClickSaga:OK,selectChecklist:kK,submitSaga:DK,goToCalendar:TK})(mY),hY=({isPaywallModalOpen:e=!1,onClose:t,onUpgrade:n})=>{let{trackClick:r,trackModalAction:i}=nT(`JobRequestPaywallModal`),a={display:`flex`,justifyContent:`space-around`,margin:`24px`},o=()=>{r(`paywall_upgrade_button`),n()},s=()=>{i(`paywall_modal`,`close`),t()};return(0,K.jsx)(Ng,{onClose:s,show:!!e,children:(0,K.jsxs)(I,{sx:{padding:`0 48px 24px`},children:[(0,K.jsx)(Kg,{children:U(`job_request.paywall_title`)}),(0,K.jsx)(Yg,{children:U(`job_request.paywall_content`)}),(0,K.jsxs)(I,{sx:a,children:[(0,K.jsx)(q,{types:[`size-large`,`type-full-primary`],onClick:o,children:U(`account.upgrade`)}),(0,K.jsx)(q,{types:[`size-large`,`type-border-primary`],onClick:s,children:U(`job_request.cancel`)})]})]})})};
1106hY.propTypes={isPaywallModalOpen:V.default.bool,onClose:V.default.func.isRequired,onUpgrade:V.default.func.isRequired};var ove=B.memo(()=>{let e=xe(),t=j((0,B.useMemo)(()=>mw(`jobrequest`),[])),n=j(qge),r=(n=!1)=>{e(dF(!1,`jobrequest`,n===!0?{...t?.meta,hiddenModalMode:!0}:{}))},i=(0,B.useCallback)(()=>{r(),e(FK()),e(GP())},[r,e]),a=(0,B.useCallback)(()=>{e(FK())},[e]),{meta:o,isOpen:s}=t;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Fg,{id:`jobrequestmodal`,style:{zIndex:`100 !important`},onClose:r,show:!!s,children:(0,K.jsx)(ave,{onClose:r,startupData:o})}),(0,K.jsx)(hY,{onUpgrade:i,onClose:a,isPaywallModalOpen:n})]})});function sve(e){return{type:oD,data:e}}function cve(e){return{type:sD,meta:e}}function gY(e,t){return{type:pD,meta:t}}function lve(e){return{type:cD,checklistId:e}}function uve(e){return{type:bD,skillId:e}}function dve(e){return{type:lD,title:e}}function fve(e){return{type:uD,jobType:e}}function pve(e){return{type:fD,checklistViewType:e}}function mve(e,t){return{type:mD,key:e,meta:t}}function hve(e){return{type:hD,data:e}}function _Y(e){return{type:gD,data:e}}function gve(e){return{type:_D,data:e}}function _ve({cleaners:e}){return{type:yD,cleaners:e}}function vve(){return{type:vD}}var vY=e=>({type:OD,refreshType:e});function yve(e){return{type:SD,taskTitle:e}}function bve(e){return{type:dD,isForwardingEnabled:e}}function xve(e){return{type:xD,taskDescription:e}}var Sve=e=>({type:CD,timeConfig:e}),Cve=e=>({type:wD,editedBookingConfig:e}),wve=e=>({type:TD,canceledBookingConfig:e}),Tve=e=>({type:ED,serviceProviderConfig:e}),Eve=e=>({type:DD,recurrenceConfig:e}),yY=e=>({type:jD,visible:e}),Dve=(e,t,n,r,i)=>({type:kD,id:e,status:t,closeModalFunc:n,setSuccessFunc:r,setErrorFunc:i}),Ove=(e,t,n,r)=>({type:AD,id:e,closeModalFunc:t,setSuccessFunc:n,setErrorFunc:r}),kve=[`property`,`time`],bY=e=>{let{isHidden:t=!1,contentTop:n,contentMain:r,open:i,canOpen:a=!0,id:o,showReset:s=!1,prevSection:c,prevSectionDisabled:l,sectionTitle:u,isTitleRequired:d,isEmpty:f,isEmptyOverride:p,nextSection:m,nextSectionDisabled:h,nextText:g=U(`job_request.next`),isValid:_=!1}=e,v=t=>n=>{t.action===`clickback`||t.action===`clickreset`?(id(o,t.prevSection||`reset`,`button`),nd(`autoscheduling_section_${t.action}`,{component:`AutoSchedulingSection`,sectionId:o,targetSection:t.prevSection||null})):t.action===`next`?(id(o,t.nextSection,`button`),nd(`autoscheduling_section_next`,{component:`AutoSchedulingSection`,sectionId:o,targetSection:t.nextSection})):t.action===`click`&&nd(`autoscheduling_section_click`,{component:`AutoSchedulingSection`,sectionId:t.sender}),e.handleClickSaga(n,t)};if(t)return null;let y=n,b=r,x=i&&a,S=p===void 0?f:f&&p;if(!y||!b)return R.default.error(`JobRequestSection - no main or top`,o,e),null;let C={};s?(C.canBack=!0,C.onClickBack=v({action:`clickreset`,section:o}),C.backText=U(`job_request.reset`)):(C.canBack=c&&!l,C.onClickBack=v({action:`clickback`,prevSection:c}),C.backText=U(`job_request.back`));let w=kve.includes(o);return a?(0,K.jsxs)(MS,{children:[x&&(0,K.jsx)(zS,{...C,canNext:m&&!h,title:u,nextText:g,disabledNext:!_,onClickNext:v({action:`next`,nextSection:m})}),x&&(0,K.jsx)(b,{...e})]}):(0,K.jsxs)(HS,{id:o,isSmall:!w,isDisabled:e.isSectionDisabled,onClick:v({action:`click`,sender:o}),isActive:i,title:u,isTitleRequired:d,children:[!S&&(0,K.jsx)(y,{...e}),S&&(0,K.jsx)(US,{})]})};function Ave(e,t){return t.mapStateToProps?t.mapStateToProps(e,t):{}}bY.propTypes={sectionTitle:V.default.string.isRequired,id:V.default.string.isRequired,open:V.default.bool.isRequired,hideTopWhenOpen:V.default.bool,nameWidthAuto:V.default.bool,canNext:V.default.bool,canOpen:V.default.bool,showReset:V.default.bool,nextText:V.default.string,active:V.default.bool.isRequired,isValid:V.default.bool,isHidden:V.default.bool};var jve=Nt(Ave,{handleClickSaga:gY,selectChecklist:lve,selectSkill:uve,changeJobTitle:dve,changeJobType:fve,selectChecklistViewType:pve,changeAutoschedulingJobForwarding:bve,setSearchQuery:$P,createChecklistSaga:TU,setModalObj:zU,setSliderData:tF,setGlobalLoadingState:uF,changeAutoschedulingTaskTitle:yve,changeAutoschedulingTaskDescription:xve,unsetJobRequestCleaners:_ve,changeAutoschedulingTimeConfigSaga:Sve,changeAutoschedulingEditedBookingConfigSaga:Cve,changeAutoschedulingCanceledBookingConfigSaga:wve,changeAutoschedulingServiceProviderConfigSaga:Tve,changeAutoschedulingRecurrenceConfigSaga:Eve})(bY),Mve=`property.sidebar.selectedTags`;function Nve(e){if(!e)return[];let t=vi.get(e);return Array.isArray(t)?t:[]}function xY(e,t,{storageKey:n,isTagSourceLoaded:r=!0}={}){let[i,a]=(0,B.useState)(()=>Nve(n)),o=(0,B.useCallback)(e=>{a(Array.isArray(e)?e:[])},[]),s=(0,B.useMemo)(()=>{let t=new Set;
1106return(e||[]).forEach(e=>(e.tags||[]).forEach(e=>t.add(e))),[...t].sort()},[e]),c=r||(e||[]).length>0;(0,B.useEffect)(()=>{c&&a(e=>{let t=e.filter(e=>s.includes(e));return t.length===e.length?e:t})},[s,c]);let l=(0,B.useRef)(i);return(0,B.useEffect)(()=>{l.current!==i&&(l.current=i,n&&vi.set(n,i))},[i,n]),{allPropertyTags:s,selectedTagFilters:i,setSelectedTagFilters:o,tagFilteredList:(0,B.useMemo)(()=>i.length>0?(t||[]).filter(e=>i.some(t=>e.tags?.includes(t))):t||[],[t,i])}}var SY=e=>{let{searchData:t,tagSourceProperties:n}=e,r=(0,bo.default)(t.result,e=>wo(e),[`asc`]),i=(0,xo.default)(r,Wo),{allPropertyTags:a,selectedTagFilters:o,setSelectedTagFilters:s,tagFilteredList:c}=xY(n||r,i),l=t=>n=>{e.handleClickSaga(n,{action:`clickproperty`,id:t.objectId})},u=t=>t.objectId===e.finalPropertyId;return(({searchData:e,setSearchQuery:t,ordered:n,allPropertyTags:r})=>(0,K.jsxs)(MS,{id:`job-request-property-form`,children:[(0,K.jsx)(I,{sx:{background:`#D9D9D91F`,padding:`12px`},children:(0,K.jsx)(Xg,{style:{marginLeft:`24px`},children:`Select a single property to apply an autoscheduler`})}),(0,K.jsx)(NS,{left:`24px`,top:`12px`,bottom:`4px`,right:`12px`,children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(I,{sx:{flex:1,minWidth:0,overflow:`hidden`},children:(0,K.jsx)($f,{onGrey:!0,"data-testid":`jobrequestsend_search_property`,placeholder:U(`job_request.search_property`),value:e.searchQuery,iconLocation:`left`,onChange:e=>t(`jobrequestnew_search`,e)})}),(0,K.jsx)(VA,{tags:r,selectedTags:o,onChange:s})]})}),(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{children:(0,K.jsx)(NS,{left:`24px`,top:`0px`,bottom:`12px`,right:`24px`,children:(0,K.jsx)(kS,{height:550,width:540,properties:n,handleClick:l,isActiveFunc:u})})})})})]}))({...e,ordered:c,allPropertyTags:a})};SY.content=e=>(0,K.jsx)(DS,{txtMod:{withpic:!0},liftPic:!0,l1:e.l1,l2:e.l2,l3:e.l3,pic:e.pic,showProBadge:e.finalPropertyResolved?.proMarketProperty,probadgeAlignmentOverride:!0});var CY=({finalPropertyId:e,setSliderData:t,otherAttributes:n})=>(0,K.jsx)(MS,{id:`job-request-property-details-form`,children:(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{enableOverflow:!0,children:(0,K.jsxs)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,children:[(0,K.jsx)(Mw,{meta:{propertyId:e},hasAccessFormatter:e=>e.canEditDeleteProperty,render:t=>(0,K.jsx)(Bq,{isSingleColumn:!0,canEdit:t,propertyId:e})}),(0,K.jsx)(r_,{openPictures:e=>{t({isOpen:!0,images:(e||[]).map(e=>({image:e}))})},otherAttributes:n})]})})})})});CY.content=({propertyDetailTags:e})=>(0,K.jsx)(aS,{children:e});var wY={DAYS:`days`,WEEKS:`weeks`,MONTHS:`months`},TY=500,Pve=(e,t)=>Math.min(t,e.daysInMonth()),Fve=({start:e,today:t,interval:n,count:r})=>{let i=[],a=e.clone(),o=0;for(;i.length<r&&o<TY;)a.isBefore(t)||i.push(a.clone()),a.add(n,`days`),o+=1;return i},Ive=({start:e,today:t,interval:n,daysOfWeek:r,count:i})=>{let a=[];if(!r.length)return[];let o=e.clone().startOf(`week`),s=e.clone(),c=0;for(;a.length<i&&c<TY*7;){let e=s.clone().startOf(`week`).diff(o,`weeks`);e>=0&&e%n===0&&r.includes(s.day())&&!s.isBefore(t)&&a.push(s.clone()),s.add(1,`day`),c+=1}return a},Lve=({start:e,today:t,interval:n,daysOfMonth:r,count:i})=>{let a=[];if(!r.length)return[];let o=[...r].sort((e,t)=>e-t),s=e.clone().startOf(`month`),c=s.clone(),l=0;for(;a.length<i&&l<TY;){if(c.diff(s,`months`)%n===0){let n=new Set;o.forEach(r=>{let i=Pve(c,r),o=c.clone().date(i),s=o.format(`YYYY-MM-DD`);!n.has(s)&&!o.isBefore(e)&&!o.isBefore(t)&&(n.add(s),a.push(o))})}c.add(1,`month`),l+=1}return a.sort((e,t)=>e.valueOf()-t.valueOf()).slice(0,i)},Rve=(e,t,n=3)=>{let{repeatEvery:r=`1`,repeatUnit:i=wY.WEEKS,daysOfWeek:a=[],daysOfMonth:o=[],startDate:s}=e||{},c=Math.max(parseInt(r,10)||1,1),l=z.default.tz(t).startOf(`day`),u={start:s?z.default.tz(s,t).startOf(`day`):l.clone(),today:l,interval:c,count:n};switch(i){case wY.DAYS:return Fve(u);case wY.WEEKS:return Ive({...u,daysOfWeek:a});case wY.MONTHS:return Lve({...u,daysOfMonth:o});default:return[]}},zve=(e,t)=>
1106{let n=e.diff(t,`days`);return n===0?U(`autoscheduler.relative_today`):n===1?U(`autoscheduler.relative_tomorrow`):U(`autoscheduler.relative_in_days`,{count:n})},Bve=e=>{let{repeatEvery:t=`1`,repeatUnit:n=wY.WEEKS,daysOfWeek:r=[],daysOfMonth:i=[]}=e||{},a=parseInt(t,10)||1,o=U(`autoscheduler.every_interval`,{interval:a,unit:U(`autoscheduler.unit_${n}_count`,{count:a})});if(n===wY.WEEKS&&r.length)return`${o} · ${[...r].sort((e,t)=>e-t).map(e=>(0,z.default)().day(e).format(`ddd`)).join(`, `)}`;if(n===wY.MONTHS&&i.length){let e=[...i].sort((e,t)=>e-t);return`${o} · ${U(`autoscheduler.days_prefix`)} ${e.join(`, `)}`}return o},Vve=e=>e==null||e===``?``:(0,z.default)().startOf(`day`).add(Number(e),`minutes`).format(`h:mm A`),Hve=({value:e={},propertyTimezone:t,count:n=3,timeConfig:r})=>{let i=(0,B.useMemo)(()=>z.default.tz(t).startOf(`day`),[t]),a=(0,B.useMemo)(()=>Rve(e,t,n),[e,t,n]),o=(0,B.useMemo)(()=>Bve(e),[e]),s=Vve(r?.startTime);return a.length?(0,K.jsxs)(I,{"data-testid":`next_occurrences`,sx:{backgroundColor:`var(--color-primary-light)`,border:`1px solid var(--color-primary-light)`,borderRadius:`12px`,p:2,mt:2},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`flex-start`,justifyContent:`space-between`,mb:2},children:[(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:.5},children:[(0,K.jsxs)(I,{sx:{display:`flex`,gap:1.5},children:[(0,K.jsx)(gr,{sx:{color:`var(--color-primary)`,fontSize:20,mt:`2px`}}),(0,K.jsx)(I,{sx:{fontSize:`13px`,color:`var(--color-loading-txt)`},children:U(`autoscheduler.upcoming_schedule`)})]}),(0,K.jsxs)(I,{sx:{fontSize:`10px`,ml:.5,color:`var(--color-text-secondary)`},children:[(0,K.jsx)(hee,{sx:{transform:`rotate(-35deg)`,fontSize:10,color:`var(--color-text-secondary)`,mr:.5}}),U(`autoscheduler.next_occurrences_subtitle`,{count:n})]})]}),(0,K.jsx)(I,{sx:{fontSize:`12px`,fontWeight:600,color:`var(--color-primary)`,backgroundColor:`var(--color-white)`,border:`1px solid var(--color-primary)`,borderRadius:`999px`,px:1.5,py:`4px`,whiteSpace:`nowrap`},children:o})]}),(0,K.jsx)(I,{sx:{display:`flex`,flexDirection:`column`,gap:`6px`},children:a.map(e=>(0,K.jsxs)(I,{"data-testid":`next_occurrence_${e.format(`YYYY-MM-DD`)}`,sx:{display:`flex`,alignItems:`center`,minHeight:`38px`,px:1,backgroundColor:`var(--color-white)`,borderRadius:`8px`},children:[(0,K.jsx)(I,{sx:{width:`34px`,flexShrink:0,fontSize:`12px`,fontWeight:700,color:`var(--color-primary)`},children:e.format(`ddd`)}),(0,K.jsxs)(I,{sx:{flex:1,minWidth:0,fontSize:`13px`,color:`var(--color-loading-txt)`},children:[e.format(`MMM D, YYYY`),s&&(0,K.jsxs)(I,{component:`span`,sx:{ml:.75,color:`var(--color-text-secondary)`},children:[`· `,s]})]}),(0,K.jsx)(I,{sx:{fontSize:`11px`,fontWeight:600,borderRadius:`999px`,px:1,py:`3px`,whiteSpace:`nowrap`,backgroundColor:`var(--color-gray-200)`,color:`var(--color-text-secondary)`},children:zve(e,i)})]},e.format(`YYYY-MM-DD`)))})]}):null},EY={DAYS:`days`,WEEKS:`weeks`,MONTHS:`months`},DY={[EY.DAYS]:7,[EY.WEEKS]:4,[EY.MONTHS]:12},OY=e=>Array.from({length:e},(e,t)=>({value:`${t+1}`,title:`${t+1}`})),kY={[EY.DAYS]:OY(DY[EY.DAYS]),[EY.WEEKS]:OY(DY[EY.WEEKS]),[EY.MONTHS]:OY(DY[EY.MONTHS])},Uve=(e,t)=>{let n=DY[t];return n&&parseInt(e,10)>n?`${n}`:e},AY={height:`30px`,width:`160px`,backgroundColor:`var(--color-white)`},jY=({value:e={},onChange:t,disabled:n=!1,showStartDate:r=!0,propertyTimezone:i,timeConfig:a})=>{let{repeatEvery:o=`1`,repeatUnit:s=EY.WEEKS,daysOfWeek:c=[],daysOfMonth:l=[],startDate:u}=e||{},[d,f]=(0,B.useState)(!1),p=[{value:EY.DAYS,title:U(`autoscheduler.unit_days`)},{value:EY.WEEKS,title:U(`autoscheduler.unit_weeks`)},{value:EY.MONTHS,title:U(`autoscheduler.unit_months`)}],m=z.default.tz(i).format(`YYYY-MM-DD`),h=u&&u<m,g=kY[s]||kY[EY.WEEKS],_=(0,B.useCallback)(n=>t?.({...e,...n}),[t,e]),v=(0,B.useCallback)(e=>{let t={repeatUnit:e};e===EY.MONTHS?t.daysOfWeek=[]:t.daysOfMonth=[];let n=Uve(o,e);n!==o&&(t.repeatEvery=n),_(t)},[_,o]),y=s===EY.DAYS||s===EY.WEEKS&&c.length>0||s===EY.MONTHS&&l.length>0,b=(0,B.useCallback)(()=>{f(e=>{let t=!e;return t&&Epe(s,o),t})},[s,o]);return(0,K.jsxs)(I,{children:[(0,K.jsx)($g,{size:`small`,children:U(`autoscheduler.repeat_every`)}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:`12px`},children:[(0,K.jsx)(Yf,{"data-testid":`recurrence_repeat_every`,styleOverwrite:AY,onChange:e=>_({repeatEvery:e.target.value}),value:o?.toString(),isFirst:!0,isLast:!0,options:g,optionsBtn:!0,disabled:n,style:{textAlign:`left`,fontSize:`14px`},type:`select`}),(0,K.jsx)(Yf,{"data-testid":`recurrence_repeat_unit`,styleOverwrite:AY,onChange:e=>v(e.target.value),value:s,isFirst:!0,isLast:!0,options:p,optionsBtn:!0,disabled:n,style:{textAlign:`left`,fontSize:`14px`},type:`select`})]}),(0,K.jsx)(_m,{}),s===EY.WEEKS&&(0,K.jsxs)(I,{children:[(0,K.jsx)($g,{size:`small`,children:U(`autoscheduler.on_days`)}),(0,K.jsx)(am,{value:c,onChange:e=>_({daysOfWeek:e}),disabled:n}),!c.length&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(hm,{}),(0,K.jsx)(Xg,{type:`greyloading`,children:U(`autoscheduler.select_days_hint`)})]})]}),s===EY.MONTHS&&(0,K.jsxs)(I,{children:[(0,K.jsx)($g,{size:`small`,children:U(`autoscheduler.on_dates`)}),(0,K.jsx)(um,{value:l,maxValue:10,onChange:e=>_({daysOfMonth:e}),disabled:n}),l.length>=10&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(hm,{}),(0,K.jsx)(Xg,{type:`greyloading`,children:U(`autoscheduler.dayOfMonthLim
1106itSelected`)})]}),!l.length&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(hm,{}),(0,K.jsx)(Xg,{type:`greyloading`,children:U(`autoscheduler.select_dates_hint`)})]}),sm(l)&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(hm,{}),(0,K.jsx)(Xg,{type:`greyloading`,children:U(`autoscheduler.month_end_clamp_hint`)})]})]}),r&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(_m,{}),(0,K.jsx)($g,{size:`small`,children:U(`autoscheduler.start_date`)}),h?(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(I,{sx:{px:2,py:1.5,border:`1px solid var(--color-gray-300)`,borderRadius:`6px`,backgroundColor:`var(--color-gray-50)`,color:`var(--color-text-primary)`,fontSize:`14px`,width:`fit-content`},children:(0,z.default)(u).format(`MM/DD/YYYY`)})}):(0,K.jsx)(up,{id:`recurrence_start_date`,date:u?(0,z.default)(u,`YYYY-MM-DD`,!0):null,onDateChange:e=>{_({startDate:e?(0,z.default)(e).format(`YYYY-MM-DD`):null})},isOutsideRange:e=>{if(!e)return!1;let t=z.default.tz(i).format(`YYYY-MM-DD`),n=u,r=n&&n<t?n:t;return e.format(`YYYY-MM-DD`)<r},block:!0}),!u&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(hm,{}),(0,K.jsx)(Xg,{type:`greyloading`,children:U(`autoscheduler.select_start_date_hint`)})]})]}),y&&(0,K.jsxs)(I,{sx:{mt:2},children:[(0,K.jsxs)(I,{component:`button`,type:`button`,onClick:b,disabled:n,sx:{display:`flex`,alignItems:`center`,gap:`6px`,padding:0,border:0,background:`transparent`,color:`var(--color-primary)`,fontSize:`14px`,fontWeight:500,cursor:n?`default`:`pointer`,"&:hover":{textDecoration:n?`none`:`underline`},width:`fit-content`},children:[(0,K.jsx)(I,{component:`span`,sx:{transition:`transform 0.2s ease`,transform:d?`rotate(90deg)`:`rotate(0deg)`,display:`flex`,alignItems:`center`},children:(0,K.jsx)(Gt,{sx:{fontSize:16}})}),(0,K.jsx)(I,{children:U(d?`autoscheduler.hide_upcoming_schedule`:`autoscheduler.preview_upcoming_schedule`)})]}),(0,K.jsx)(Kr,{in:d,timeout:`auto`,children:(0,K.jsx)(I,{sx:{mt:1.5},children:(0,K.jsx)(Hve,{value:e,propertyTimezone:i,timeConfig:a})})})]})]})};jY.propTypes={value:V.default.shape({repeatEvery:V.default.oneOfType([V.default.string,V.default.number]),repeatUnit:V.default.oneOf([`days`,`weeks`,`months`]),daysOfWeek:V.default.arrayOf(V.default.number),daysOfMonth:V.default.arrayOf(V.default.number),startDate:V.default.oneOfType([V.default.string,V.default.object])}),onChange:V.default.func.isRequired,disabled:V.default.bool,showStartDate:V.default.bool,propertyTimezone:V.default.string};var Wve={duration:`60`,startTime:`660`,endTime:`720`},MY=[...Rc(15)],Gve=[...zc(5,720)],NY={height:`30px`,width:`210px`,backgroundColor:`var(--color-white)`},PY={textAlign:`left`,fontSize:`14px`},Kve=(e={})=>{let{jobStartTimeType:t,startTime:n,endTime:r,duration:i}=e;return t!==`FLEXIBLE`||n==null||r==null||i==null?!1:parseInt(n,10)+parseInt(i,10)>parseInt(r,10)},FY=({value:e={},onChange:t,defaults:n=Wve,disabled:r=!1,testIdPrefix:i=`time`})=>{let{duration:a,jobStartTimeType:o,startTime:s,endTime:c}=e,l=o===`FLEXIBLE`?`flexible`:`fixed`,u=Kve(e),d=e=>()=>{r||t(e===`fixed`?{jobStartTimeType:lo,startTime:s??n.startTime,endTime:void 0,duration:a??n.duration}:{jobStartTimeType:uo,startTime:s??n.startTime,endTime:c??n.endTime,duration:a??n.duration})};return(0,K.jsxs)(I,{children:[(0,K.jsx)($g,{size:`small`,children:U(`job_request.duration`)}),(0,K.jsx)(Yf,{"data-testid":`${i}_select_duration`,placeholder:U(`autoscheduler.select_duration`),styleOverwrite:NY,onChange:e=>t({duration:e.target.value}),value:a?.toString()||`disabled`,isFirst:!0,isLast:!0,error:u&&U(`job_request.duration_error`),showErrorMsg:!0,options:Gve,optionsBtn:!0,optionsColor:a?`normal`:`inactive`,disabled:r,style:PY,type:`select`}),(0,K.jsx)(hm,{}),(0,K.jsx)($g,{size:`small`,children:U(`autoscheduler.select_start_time`)}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:3,my:1},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(Dp,{type:`small`,selected:l===`fixed`,onChange:d(`fixed`),"data-testid":`${i}_start_time_type_fixed`,disabled:r}),(0,K.jsx)(Xg,{type:l===`fixed`?`regular`:`greyloading`,style:{marginLeft:10},children:U(`job_request.fixed_time`)})]}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(Dp,{type:`small`,selected:l===`flexible`,onChange:d(`flexible`),"data-testid":`${i}_start_time_type_flexible`,disabled:r}),(0,K.jsx)(Xg,{type:l===`flexible`?`regular`:`greyloading`,style:{marginLeft:10},children:U(`job_request.flexible_time`)})]})]}),(0,K.jsxs)(I,{children:[(0,K.jsx)($g,{size:`small`,children:U(l===`flexible`?`autoscheduler.flexible_start_time`:`autoscheduler.start_time`)}),(0,K.jsx)(Yf,{"data-testid":`${i}_select_start_time`,placeholder:U(`autoscheduler.select_time`),styleOverwrite:NY,onCh
1106ange:e=>t({startTime:e.target.value}),value:s?.toString(),isFirst:!0,isLast:!0,options:MY,optionsBtn:!0,optionsColor:s==null?`inactive`:`normal`,disabled:r,style:PY,type:`select`}),l===`flexible`&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(hm,{}),(0,K.jsx)($g,{size:`small`,children:U(`autoscheduler.flexible_end_time`)}),(0,K.jsx)(Yf,{"data-testid":`${i}_select_end_time`,placeholder:U(`autoscheduler.select_time`),styleOverwrite:NY,onChange:e=>t({endTime:e.target.value}),value:c?.toString(),error:u&&U(`job_request.duration_error`),showErrorMsg:!0,isFirst:!0,isLast:!0,options:MY,optionsBtn:!0,optionsColor:c==null?`inactive`:`normal`,disabled:r,style:PY,type:`select`})]})]})]})};FY.propTypes={value:V.default.shape({duration:V.default.oneOfType([V.default.string,V.default.number]),jobStartTimeType:V.default.oneOfType([V.default.string,V.default.number]),startTime:V.default.oneOfType([V.default.string,V.default.number]),endTime:V.default.oneOfType([V.default.string,V.default.number])}),onChange:V.default.func.isRequired,defaults:V.default.shape({duration:V.default.string,startTime:V.default.string,endTime:V.default.string}),disabled:V.default.bool,testIdPrefix:V.default.string};var qve=js(),Jve={height:`30px`,width:`210px`,backgroundColor:`var(--color-white)`},IY=e=>{let{recurrenceConfig:t,timeConfig:n,changeAutoschedulingRecurrenceConfigSaga:r,changeAutoschedulingTimeConfigSaga:i,propertyTimezone:a}=e,o=t??{},s=n??{},c=e=>i({...s,...e});return(0,K.jsxs)(I,{sx:{p:`12px`},children:[(0,K.jsx)(jY,{value:o,onChange:e=>r(e),propertyTimezone:a,timeConfig:s}),(0,K.jsx)(ym,{}),(0,K.jsx)($g,{size:`small`,children:U(`autoscheduler.send_job_before`)}),(0,K.jsx)(Yf,{"data-testid":`recurring_select_lead_time`,placeholder:U(`autoscheduler.select_time`),styleOverwrite:Jve,onChange:e=>c({schedulingInterval:e.target.value}),value:s.schedulingInterval?.toString()||`disabled`,isFirst:!0,isLast:!0,options:qve,optionsBtn:!0,optionsColor:s.schedulingInterval?`normal`:`inactive`,style:{textAlign:`left`,fontSize:`14px`},type:`select`}),(0,K.jsx)(ym,{}),(0,K.jsx)(FY,{value:s,onChange:c,testIdPrefix:`recurring`})]})};IY.propTypes={recurrenceConfig:V.default.object,timeConfig:V.default.object,changeAutoschedulingRecurrenceConfigSaga:V.default.func.isRequired,changeAutoschedulingTimeConfigSaga:V.default.func.isRequired};var LY={"job-request__search":`_job-request__search_s7u0v_2`,jobRequestSearch:`_job-request__search_s7u0v_2`,"job-request__search-content":`_job-request__search-content_s7u0v_6`,jobRequestSearchContent:`_job-request__search-content_s7u0v_6`,"job-request__search-bg":`_job-request__search-bg_s7u0v_11`,jobRequestSearchBg:`_job-request__search-bg_s7u0v_11`,"job-request__bg":`_job-request__bg_s7u0v_21`,jobRequestBg:`_job-request__bg_s7u0v_21`,"job-request__bg--flex":`_job-request__bg--flex_s7u0v_27`,jobRequestBgFlex:`_job-request__bg--flex_s7u0v_27`,"job-request__msg":`_job-request__msg_s7u0v_34`,jobRequestMsg:`_job-request__msg_s7u0v_34`,"job-request__time-wrap":`_job-request__time-wrap_s7u0v_38`,jobRequestTimeWrap:`_job-request__time-wrap_s7u0v_38`,"job-request__time-overlay":`_job-request__time-overlay_s7u0v_43`,jobRequestTimeOverlay:`_job-request__time-overlay_s7u0v_43`,"job-request__clickoverlaydatepicker":`_job-request__clickoverlaydatepicker_s7u0v_52`,jobRequestClickoverlaydatepicker:`_job-request__clickoverlaydatepicker_s7u0v_52`,"job-request__to-cleaners":`_job-request__to-cleaners_s7u0v_62`,jobRequestToCleaners:`_job-request__to-cleaners_s7u0v_62`,"job-request__to-txt":`_job-request__to-txt_s7u0v_69`,jobRequestToTxt:`_job-request__to-txt_s7u0v_69`,"job-request__to":`_job-request__to_s7u0v_62`,jobRequestTo:`_job-request__to_s7u0v_62`,"job-request__community-wrap":`_job-request__community-wrap_s7u0v_83`,jobRequestCommunityWrap:`_job-request__community-wrap_s7u0v_83`,"job-request__community":`_job-request__community_s7u0v_83`,jobRequestCommunity:`_job-request__community_s7u0v_83`,"job-request__community-head":`_job-request__community-head_s7u0v_96`,jobRequestCommunityHead:`_job-request__community-head_s7u0v_96`,"job-request__price-wrap":`_job-request__price-wrap_s7u0v_101`,jobRequestPriceWrap:`_job-request__price-wrap_s7u0v_101`,"job-request__bg--ohidden":`_job-request__bg--ohidden_s7u0v_106`,jobRequestBgOhidden:`_job-request__bg--ohidden_s7u0v_106`,"job-request__full":`_job-request__full_s7u0v_110`,jobRequestFull:`_job-request__full_s7u0v_110`,"job-request__error":`_job-request__error_s7u0v_120 input-error`,jobRequestError:`_job-request__error_s7u0v_120 input-error`,"job-request__flex":`_job-request__flex_s7u0v_128`,jobRequestFlex:`_job-request__flex_s7u0v_128`,"job-request__defaultline":`_job-request__defaultline_s7u0v_132`,jobRequestDefaultline:`_job-request__defaultline_s7u0v_132`,"cleaner-render-schedule--header":`_cleaner-render-schedule--header_s7u0v_140`,cleanerRenderScheduleHeader:`_cleaner-render-schedule--header_s7u0v_140`,"cleaner_renderHeader--header":`_cleaner_renderHeader--header_s7u0v_141`,cleanerRenderHeaderHeader:`_cleaner_renderHeader--header_s7u0v_141`,"cleaner_renderHeader--subheader":`_cleaner_renderHeader--subheader_s7u0v_147`,cleanerRenderHeaderSubheader:`_cleaner_renderHeader--subheader_s7u0v_147`,"cleaner_renderHeader--borderBottom":`_cleaner_renderHeader--borderBottom_s7u0v_152`,cleanerRenderHeaderBorderBottom:`_cleaner_renderHeader--borderBottom_s7u0v_152`,"cleaner_renderHeader--search":`_cleaner_renderHeader--search_s7u0v_156`,cleanerRenderHeaderSearch:`_cleaner_renderHeader--search_s7u0v_156`,"cleaner_renderHeader--selectall":`_cleaner_renderHeader--selectall_s7u0v_163`,cleanerRenderHeaderSelectall:`_cleaner_renderHeader--selectall_s7u0v_163`,cleaner__topbarwrap:`_cleaner__topbarwrap_s7u0v_169`,cleanerTopbarwrap:`_cleaner__topbarwrap_s7u0v_169`,"cleaner__topbarwrap-item":`_cleaner__topbarwrap-item_s7u0v_175 text-l7m`,cleanerTopbarwrapItem:`_cleaner__topbarwrap-item_s7u0v_175 text-l7m`,"cleaner__topbarwrap-item--end":`_cleaner__topbarwrap-item--end_s7u0v_181`,cleanerTopbarwrapItemEnd:`_cleaner__topbarwrap-item--end_s7u0v_181`,"cleaner__topbarwrap-select":`_cleaner__topbarwrap-select_s7u0v_184`,cleanerTopbarwrapSelect:`_cleaner__topbarwrap-select_s7u0v_184`,"jobRequest__sent-marketplace-email":`_jobRequest__sent-marketplace-email_s7u0v_193`,jobRequestSentMarketplaceEmail:`_jobRequest__sent-marketplace-email_s7u0v_193`,"autoscheduling__booking-type--root":`_autoscheduling__booking-type--root_s7u0v_205`,autoschedulingBookingTypeRoot:`_autoscheduling__booking-type--root_s7u0v_205`,"autoscheduling__booking-type--subroot":`_autoscheduling__booking-type--subroot_s7u0v_215`,autoschedulingBookingTypeSubroot:`_autoscheduling__booking-type--subroot_s7u0v_215`,"autoscheduling__select-time-type--root":`_autoscheduling__select-time-type--root_s7u0v_221`,autoschedulingSelectTimeTypeRoot:`_autoscheduling__select-time-type--root_s7u0v_221`,"autoscheduling__time-and-duration--root":`_autoscheduling__time-and-duration--root_s7u0v_231`,autoschedulingTimeAndDurationRoot:`_autoscheduling__time-and-duration--root_s7u0v_231`,"autoscheduling__time-and-duration--subroot":`_autoscheduling__time-and-duration--subroot_s7u0v_237`,autoschedulingTimeAndDurationSubroot:`_autoscheduling__time-and-duration--subroot_s7u0v_237`,"autoscheduling__redited-booking--root":`_autoscheduling__redited-booking--root_s7u0v_242`,autoschedulingReditedBookingRoot:`_autoscheduling__redited-booking--root_s7u0v_242`,"autoscheduling__redited-booking--subroot":`_autoscheduling__redited-booking--subroot_s7u0v_247`,autoschedulingReditedBookingSubroot:`_autoscheduling__redited-booking--subroot_s7u0v_247`},RY=_i.default.bind(LY),Yve=[{value:`1`,title:`1 day`},{value:`2`,title:`2 days`},{value:`3`,title:`3 days`},{value:`4`,title:`4 days`},{value:`5`,title:`5 days`},{value:`6`,title:`6 days`},{value:`7`,title:`7 days`},{value:`8`,title:`8 days`},{value:`9`,title:`9 days`},{value:`10`,title:`10 days`},{value:`11`,title:`11 days`},{value:`12`,title:`12 days`},{value:`13`,title:`13 days`},{value:`14`,title:`14 days`},{value:`15`,title:`15 days`},{value:`21`,title:`21 days`}
1106,{value:`30`,title:`30 days`}],Xve=(e,t)=>{let n=Array.from({length:24},(e,t)=>({value:`${t+1}`,title:`${t+1} hr${t+1>1?`s`:``}`})),r=e=>({value:e,title:`${e} hrs`});return e===Xa.CHECKIN?t===`1`||t===1?n:t===`2`||t===2?[...n,r(`48`)]:[...n,r(`48`),r(`72`)]:[r(`0`),...n,r(`48`),r(`72`)]},zY=[...Rc(15)],Zve=(e,t)=>{if(e&&t===Xa.CHECKIN){let t=parseInt(e,10)*60;return[...zc(5,Math.min(720,t))]}return[...zc(5,720)]},BY={relativeStartTimeCheckin:`2`,relativeStartTimeCheckout:`0`,duration:`60`,startTime:`660`,endTime:`720`,schedulingInterval:`7`},VY=e=>{let{jobEventType:t=``,timeConfig:n,editedBookingConfig:r,canceledBookingConfig:i,finalMode:a,resolvedProperty:o}=e,s=n??{},c=r??{},l=i??{},u=o?.timeZone,[d,f]=(0,B.useState)(`relative`);(0,B.useEffect)(()=>{s?.jobStartTimeType&&f(s.jobStartTimeType===`REGULAR`?`fixed`:`flexible`)},[]);let p=n=>()=>{let{handleClickSaga:r,changeAutoschedulingTimeConfigSaga:i,changeAutoschedulingRecurrenceConfigSaga:o}=e;if(n===t||a===`edit`)return;if(r(!1,{action:`jobEventType`,jobEventType:n}),n===Xa.RECURRING){i({duration:BY.duration,schedulingInterval:`3`,startTime:BY.startTime,jobStartTimeType:lo}),o({repeatEvery:`1`,repeatUnit:`weeks`,daysOfWeek:[],daysOfMonth:[]});return}o({});let s={duration:BY.duration,schedulingInterval:BY.schedulingInterval};d===`relative`?s.relativeStartTime=n===Xa.CHECKIN?BY.relativeStartTimeCheckin:BY.relativeStartTimeCheckout:(s.startTime=BY.startTime,s.jobStartTimeType=d===`fixed`?lo:uo,d!==`fixed`&&(s.endTime=BY.endTime)),i(s)},m=(n={})=>{let{changeAutoschedulingTimeConfigSaga:r,serviceProviderConfig:i,changeAutoschedulingServiceProviderConfigSaga:a}=e;if(n.relativeStartTime&&(delete s.startTime,delete s.endTime,delete s.jobStartTimeType,t===Xa.CHECKIN&&parseInt(n.relativeStartTime,10)*60<parseInt(s.duration,10)&&(n.duration=n.relativeStartTime*60)),n.startTime&&delete s.relativeStartTime,n.jobStartTimeType===`REGULAR`&&delete s.endTime,n.schedulingInterval){let e=null;String(n.schedulingInterval)===`1`&&([`24`,`48`].includes(String(i?.resendAfter||``))&&(e=`12`),[`48`,`72`].includes(s?.relativeStartTime||``)&&(n.relativeStartTime=`24`)),String(n.schedulingInterval===`2`)&&(String(i?.resendAfter)===`48`&&(e=`24`),s?.relativeStartTime===`72`&&(n.relativeStartTime=`48`)),e&&a({...i,resendAfter:e})}r({...s,...n})},h=(t={})=>{let{changeAutoschedulingEditedBookingConfigSaga:n}=e;n({...c,...t})},g=(t={})=>{let{changeAutoschedulingCanceledBookingConfigSaga:n}=e;n({...l,...t})},_=()=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{sx:{padding:`12px`},children:(0,K.jsx)(Xg,{children:U(`autoscheduler.job_scheduled_at`)})}),(0,K.jsxs)(`div`,{className:RY(`autoscheduling__booking-type--root`),children:[(0,K.jsxs)(`div`,{className:RY(`autoscheduling__booking-type--subroot`),children:[(0,K.jsx)(Dp,{type:`small`,selected:t===Xa.CHECKIN,onChange:p(`checkIn`),"data-testid":`autoscheduler_select_booking_type_checkIn`,disabled:a===`edit`}),(0,K.jsx)(Xg,{type:t===Xa.CHECKIN?`regular`:`greyloading`,style:{marginLeft:`10px`},children:U(`autoscheduler.every_checkin`)})]}),(0,K.jsxs)(`div`,{className:RY(`autoscheduling__booking-type--subroot`),children:[(0,K.jsx)(Dp,{type:`small`,selected:t===Xa.CHECKOUT,onChange:p(`checkOut`),"data-testid":`autoscheduler_select_booking_type_checkOut`,disabled:a===`edit`}),(0,K.jsx)(Xg,{type:t===Xa.CHECKOUT?`regular`:`greyloading`,style:{marginLeft:`10px`},children:U(`autoscheduler.every_checkout`)})]}),(0,K.jsxs)(`div`,{className:RY(`autoscheduling__booking-type--subroot`),children:[(0,K.jsx)(Dp,{type:`small`,selected:t===Xa.RECURRING,onChange:p(Xa.RECURRING),"data-testid":`autoscheduler_select_booking_type_recurring`,disabled:a===`edit`}),(0,K.jsx)(Xg,{type:t===Xa.RECURRING?`regular`:`greyloading`,style:{marginLeft:`10px`},children:U(`autoscheduler.recurring_schedule`)})]})]})]}),v=e=>(0,K.jsxs)(`div`,{className:RY(`autoscheduling__time-and-duration--root`),children:[(0,K.jsx)(`div`,{className:RY(`autoscheduling__redited-booking--root`),children:(0,K.jsx)(Xg,{children:e===Xa.CHECKIN?U(`autoscheduler.select_scheduling_interval_checkin`):U(`autoscheduler.select_scheduling_interval_checkout`)})}),(0,K.jsx)(I,{sx:{display:`flex`},children:(0,K.jsxs)(`div`,{className:RY(`autoscheduling__time-and-duration--subroot`),children:[(0,K.jsxs)($g,{size:`small`,children:[U(`list_view.legend.scheduling_interval`),(0,K.jsx)(hm,{}),(0,K.jsx)(qn,{title:e===Xa.CHECKIN?U(`autoscheduler.select_scheduling_interval_checkin_tooltip`):U(`autoscheduler.select_scheduling_interval_checkout_tooltip`),placement:`top`,children:(0,K.jsx)(I,{component:`span`,sx:{dis
1106play:`inline-block`},children:(0,K.jsx)(Y.IcInfocvv,{})})})]}),(0,K.jsx)(Yf,{"data-testid":`autoscheduler_select_scheduling_interval_input`,placeholder:U(`autoscheduler.select_time`),styleOverwrite:{height:`30px`,width:`210px`,backgroundColor:`var(--color-white)`},onChange:e=>m({schedulingInterval:e.target.value}),value:s.schedulingInterval?.toString()||`disabled`,isFirst:!0,isLast:!0,options:Yve,optionsBtn:!0,optionsColor:s.schedulingInterval?`normal`:`inactive`,style:{textAlign:`left`,fontSize:`14px`},type:`select`})]})})]}),y=()=>{let{startTime:e,endTime:t,jobStartTimeType:n,duration:r}=s;return n!==`FLEXIBLE`||!e||!t||!r?null:parseInt(e,10)+parseInt(r,10)>parseInt(t,10)},b=e=>(0,K.jsxs)(`div`,{className:RY(`autoscheduling__time-and-duration--subroot`),children:[(0,K.jsx)($g,{size:`small`,children:U(`job_request.duration`)}),(0,K.jsx)(Yf,{"data-testid":`autoscheduler_select_duration_input`,placeholder:U(`autoscheduler.select_duration`),styleOverwrite:{height:`30px`,width:`210px`,backgroundColor:`var(--color-white)`},onChange:e=>m({duration:e.target.value}),value:s.duration?.toString()||`disabled`,isFirst:!0,isLast:!0,error:y()&&U(`job_request.duration_error`),showErrorMsg:!0,options:Zve(s.relativeStartTime,e),optionsBtn:!0,optionsColor:s.duration?`normal`:`inactive`,style:{textAlign:`left`,fontSize:`14px`},type:`select`})]}),x=e=>(0,K.jsxs)(I,{sx:{display:`flex`},children:[(0,K.jsxs)(`div`,{className:RY(`autoscheduling__time-and-duration--subroot`),children:[(0,K.jsxs)($g,{size:`small`,children:[e===Xa.CHECKIN?U(`autoscheduler.start_before_checkin`):U(`autoscheduler.start_after_checkout`),(0,K.jsx)(hm,{}),(0,K.jsx)(qn,{title:e===Xa.CHECKIN?U(`autoscheduler.select_relative_time_checkin_tooltip`):U(`autoscheduler.select_relative_time_checkout_tooltip`),placement:`top`,children:(0,K.jsx)(I,{component:`span`,sx:{display:`inline-block`},children:(0,K.jsx)(Y.IcInfocvv,{})})})]}),(0,K.jsx)(Yf,{"data-testid":`autoscheduler_select_time_before_input`,placeholder:U(`autoscheduler.select_time`),styleOverwrite:{height:`30px`,width:`210px`,backgroundColor:`var(--color-white)`},onChange:e=>m({relativeStartTime:e.target.value}),value:s.relativeStartTime?.toString()||`disabled`,isFirst:!0,isLast:!0,options:Xve(e,s.schedulingInterval),optionsBtn:!0,optionsColor:s.relativeStartTime==null?`inactive`:`normal`,style:{textAlign:`left`,fontSize:`14px`},type:`select`})]}),b(e)]}),S=e=>(0,K.jsxs)(I,{sx:{display:`flex`},children:[(0,K.jsxs)(`div`,{className:RY(`autoscheduling__time-and-duration--subroot`),children:[(0,K.jsx)($g,{size:`small`,children:e===Xa.CHECKIN?U(`autoscheduler.select_fixed_time_checkin`):U(`autoscheduler.select_fixed_time_checkout`)}),(0,K.jsx)(Yf,{"data-testid":`autoscheduler_select_time_fixed`,placeholder:U(`autoscheduler.select_time`),styleOverwrite:{height:`30px`,width:`210px`,backgroundColor:`var(--color-white)`},onChange:e=>m({startTime:e.target.value}),value:s.startTime?.toString(),isFirst:!0,isLast:!0,options:zY,optionsBtn:!0,optionsColor:s.startTime==null?`inactive`:`normal`,style:{textAlign:`left`,fontSize:`14px`},type:`select`})]}),b(e)]}),C=e=>(0,K.jsxs)(I,{sx:{display:`flex`},children:[(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{className:RY(`autoscheduling__time-and-duration--subroot`),children:[(0,K.jsx)($g,{size:`small`,children:e===Xa.CHECKIN?U(`autoscheduler.select_flexible_start_time_checkin`):U(`autoscheduler.select_flexible_start_time_checkout`)}),(0,K.jsx)(Yf,{"data-testid":`autoscheduler_select_time_fixed`,placeholder:U(`autoscheduler.select_time`),styleOverwrite:{height:`30px`,width:`210px`,backgroundColor:`var(--color-white)`},onChange:e=>m({startTime:e.target.value}),value:s.startTime?.toString(),isFirst:!0,isLast:!0,options:zY,optionsBtn:!0,optionsColor:s.startTime==null?`inactive`:`normal`,style:{textAlign:`left`,fontSize:`14px`},type:`select`})]}),(0,K.jsx)(hm,{}),(0,K.jsxs)(`div`,{className:RY(`autoscheduling__time-and-duration--subroot`),children:[(0,K.jsx)($g,{size:`small`,children:e===Xa.CHECKIN?U(`autoscheduler.select_flexible_end_time_checkin`):U(`autoscheduler.select_flexible_end_time_checkout`)}),(0,K.jsx)(Yf,{"data-testid":`autoscheduler_select_time_fixed`,placeholder:U(`autoscheduler.select_time`),styleOverwrite:{height:`30px`,width:`210px`,backgroundColor:`var(--color-white)`},onChange:e=>m({endTime:e.target.value}),value:s.endTime?.toString(),error:y(),isFirst:!0,isLast:!0,options:zY,optionsBtn:!0,optionsColor:s.endTime==null?`inactive`:`normal`,style:{textAlign:`left`,fontSize:`14px`},type:`select`})]})]}),b(e)]});return(0,K.jsx)(MS,{id:`job-request-time-form`,children:(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{children:(0,K.jsxs)(NS,{left:`12px`,top:`12px`,bottom:`12px`,right:`12px`,flexGrow:!0,children:[_(),t===Xa.RECURRING&&(0,K.jsx)(IY,{recurrenceConfig:e.recurrenceConfig,timeConfig:s,changeAutoschedulingRecurrenceConfigSaga:e.changeAutoschedulingRecurrenceConfigSaga,changeAutoschedulingTimeConfigSaga:e.changeAutoschedulingTimeConfigSaga,propertyTimezone:u}),t&&t!==Xa.RECURRING&&(0,K.jsxs)(K.Fragment,{children:[v(t),(e=>(0,K.jsxs)(`div`,{className:RY(`autoscheduling__time-and-duration--root`),children:[(0,K.jsx)(`div`,{className:RY(`autoscheduling__redited-booking--root`),children:(0,K.jsx)(Xg,{children:U(`autoscheduler.select_start_time`)})}),(0,K.jsxs)(`div`,{className:RY(`autoscheduling__select-time-type--root`),children:[(0,K.jsxs)(`div`,{className:RY(`autoscheduling__booking-type--subroot`),children:[(0,K.jsx)(Dp,{type:`small`,selected:d===`relative`,onChange:()=>{f(`relative`),m({relativeStartTime:e===Xa.CHECKIN?BY.relativeStartTimeCheckin:BY.relativeStartTimeCheckout,duration:BY.duration})},"data-testid":`autoscheduler_select_start_time_type_relative`}),(0,K.jsx)(Xg,{type:d===`relative`?`regular`:`greyloading`,style:{marginLeft:`10px`},children:e===Xa.CHECKIN?U(`autoscheduler.select_relative_to_checkin`):U(`autoscheduler.select_relative_to_checkout`)})]}),(0,K.jsxs)(`div`,{className:RY(`autoscheduling__booking-type--subroot`),children:[(0,K.jsx)(Dp,{type:`small`,selected:d===`fixed`,onChange:()=>
1106{f(`fixed`),m({startTime:BY.startTime,duration:BY.duration,jobStartTimeType:lo})},"data-testid":`autoscheduler_select_start_time_type_fixed`}),(0,K.jsx)(Xg,{type:d===`fixed`?`regular`:`greyloading`,style:{marginLeft:`10px`},children:U(`job_request.fixed_time`)})]}),(0,K.jsxs)(`div`,{className:RY(`autoscheduling__booking-type--subroot`),children:[(0,K.jsx)(Dp,{type:`small`,selected:d===`flexible`,onChange:()=>{f(`flexible`),m({startTime:BY.startTime,endTime:BY.endTime,duration:BY.duration,jobStartTimeType:uo})},"data-testid":`autoscheduler_select_start_time_type_flexible`}),(0,K.jsx)(Xg,{type:d===`flexible`?`regular`:`greyloading`,style:{marginLeft:`10px`},children:U(`job_request.flexible_time`)})]})]}),(0,K.jsx)(`div`,{className:RY(`cleaner_renderHeader--borderBottom`)}),d===`relative`&&x(e),d===`fixed`&&S(e),d===`flexible`&&C(e)]}))(t),(e=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{className:RY(`autoscheduling__redited-booking--root`),children:(0,K.jsx)(Xg,{children:e===Xa.CHECKIN?U(`autoscheduler.edited_checkin`):U(`autoscheduler.edited_checkout`)})}),(0,K.jsxs)(`div`,{className:RY(`autoscheduling__redited-booking--subroot`),children:[(0,K.jsx)(Dp,{type:`small`,selected:c.edit,onChange:e=>h({edit:e.target.checked}),"data-testid":`autoscheduler_select_edit_booking`}),(0,K.jsx)(Xg,{type:c.edit?`regular`:`greyloading`,style:{marginLeft:`10px`},children:U(`autoscheduler.edit_scheduled_job`)})]}),(0,K.jsx)(`div`,{className:RY(`cleaner_renderHeader--borderBottom`)}),(0,K.jsxs)(`div`,{className:RY(`autoscheduling__redited-booking--subroot`),children:[(0,K.jsx)(Dp,{type:`small`,selected:c.sendHostEmailNotification,onChange:e=>h({sendHostEmailNotification:e.target.checked}),"data-testid":`autoscheduler_send_email_notification_host_edited_booking`}),(0,K.jsx)(Xg,{type:c.sendHostEmailNotification?`regular`:`greyloading`,style:{marginLeft:`10px`},children:U(`autoscheduler.send_me_email`)})]}),(0,K.jsx)(hm,{})]}))(t),(e=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{className:RY(`autoscheduling__redited-booking--root`),children:(0,K.jsx)(`div`,{children:(0,K.jsx)(Xg,{children:e===Xa.CHECKIN?U(`autoscheduler.canceled_checkin`):U(`autoscheduler.canceled_checkout`)})})}),(0,K.jsxs)(`div`,{className:RY(`autoscheduling__redited-booking--subroot`),children:[(0,K.jsx)(Dp,{type:`small`,selected:l.cancel,onChange:e=>g({cancel:e.target.checked}),"data-testid":`autoscheduler_cancel_booking`}),(0,K.jsx)(Xg,{type:l.cancel?`regular`:`greyloading`,style:{marginLeft:`10px`},children:U(`autoscheduler.cancel_scheduled_job`)})]}),(0,K.jsx)(`div`,{className:RY(`cleaner_renderHeader--borderBottom`)}),(0,K.jsxs)(`div`,{className:RY(`autoscheduling__redited-booking--subroot`),children:[(0,K.jsx)(Dp,{type:`small`,selected:l.sendHostEmailNotification,onChange:e=>g({sendHostEmailNotification:e.target.checked}),"data-testid":`autoscheduler_send_email_notification_host_canceled_booking`}),(0,K.jsx)(Xg,{type:l.sendHostEmailNotification?`regular`:`greyloading`,style:{marginLeft:`10px`},children:U(`autoscheduler.send_me_email`)}),(0,K.jsx)(ym,{})]})]}))(t)]})]})})})})})},Qve=(e,t)=>{let{relativeStartTime:n}=e;return t?t===Xa.CHECKIN?U(`autoscheduler.before_guest_checkin_hours`,{hours:n}):U(`autoscheduler.after_guest_checkout_hours`,{hours:n}):null};VY.content=({timeConfig:e,jobEventType:t,recurrenceConfig:n})=>{let{relativeStartTime:r,jobStartTimeType:i,startTime:a,endTime:o}=e;return t===Xa.RECURRING?(0,K.jsxs)(`div`,{children:[(0,K.jsx)(aS,{children:Ms(n)||`-`}),(0,K.jsx)(hm,{}),(0,K.jsx)(iS,{children:U(`job_request.duration`)}),(0,K.jsx)(aS,{children:Lc(e.duration)})]}):r==null?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(aS,{children:t===Xa.CHECKIN?U(`autoscheduler.on_checkin_day`):U(`autoscheduler.on_checkout_day`)}),(0,K.jsx)(uS,{hideDate:i===lo,duration:Lc(e.duration),startTime:z.default.utc().startOf(`day`).add(parseInt(a,10),`minutes`).format(`hh:mm A`),endTime:z.default.utc().startOf(`day`).add(parseInt(o,10),`minutes`).format(`hh:mm A`),jobStartTimeType:i===`REGULAR`?`fixed`:`flexible`})]}):(0,K.jsxs)(`div`,{children:[(0,K.jsx)(aS,{children:Qve(e,t)}),(0,K.jsx)(hm,{}),(0,K.jsx)(iS,{children:U(`job_request.duration`)}),(0,K.jsx)(aS,{children:Lc(e.duration)})]})},VY.propTypes={jobEventType:V.default.string,timeConfig:V.default.shape({relativeStartTime:V.default.oneOfType([
1106V.default.string,V.default.number]),startTime:V.default.oneOfType([V.default.string,V.default.number]),endTime:V.default.oneOfType([V.default.string,V.default.number]),jobStartTimeType:V.default.string,schedulingInterval:V.default.oneOfType([V.default.string,V.default.number]),duration:V.default.oneOfType([V.default.string,V.default.number])}),editedBookingConfig:V.default.shape({edit:V.default.bool,sendHostEmailNotification:V.default.bool}),canceledBookingConfig:V.default.shape({cancel:V.default.bool,sendHostEmailNotification:V.default.bool}),recurrenceConfig:V.default.object,handleClickSaga:V.default.func.isRequired,changeAutoschedulingTimeConfigSaga:V.default.func.isRequired,changeAutoschedulingEditedBookingConfigSaga:V.default.func.isRequired,changeAutoschedulingCanceledBookingConfigSaga:V.default.func.isRequired,changeAutoschedulingServiceProviderConfigSaga:V.default.func.isRequired,changeAutoschedulingRecurrenceConfigSaga:V.default.func.isRequired,finalMode:V.default.string.isRequired};var HY=({title:e,changeJobTitle:t,changeJobType:n,jobType:r,isForwardingEnabled:i,changeAutoschedulingJobForwarding:a})=>{let o=[{value:U(`job_request.select_type`),title:U(`job_request.select_type`)},...Hl()];return(0,K.jsx)(MS,{id:`job-request-message-form`,children:(0,K.jsxs)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,flexGrow:!0,children:[(0,K.jsx)($g,{size:`small`,children:U(`job_request.type`)}),(0,K.jsx)(Yf,{"data-testid":`jobrequestsend_job_type`,placeholder:U(`job_request.select_type`),onChange:e=>n(e.target.value||``),value:r,styleOverwrite:{backgroundColor:`var(--color-white)`},isFirst:!0,isLast:!0,options:o,optionsBtn:!0,optionsColor:r?`normal`:`inactive`,style:{textAlign:`left`,fontSize:`16px`},type:`select`}),(0,K.jsx)(bm,{}),(0,K.jsx)($g,{size:`small`,children:U(`job_request.title`)}),(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,value:e,"data-testid":`jobrequestsend_title`,placeholder:U(`job_request.write_title`),onChange:e=>t(e.target.value||``),type:`input`}),(0,K.jsx)(bm,{}),(0,K.jsxs)(I,{sx:{display:`flex`,marginRight:`10px`,fontSize:`12px`},children:[(0,K.jsx)(Dp,{type:`small`,style:{height:20,width:20},name:`jobStartTimeType`,selected:i,value:!i,onChange:()=>a(!i),label:`Enable Job Forwarding`,id:`isForwardingEnabled`}),(0,K.jsx)(qn,{title:U(`job_request.forwarding_info`),placement:`top`,children:(0,K.jsx)(I,{component:`span`,sx:{display:`inline-block`},children:(0,K.jsx)(Y.IcInfocvv,{})})})]})]})})};HY.content=({title:e,jobType:t})=>{let n=Vl(t);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(iS,{cutText:!0,children:n?U(`reports.jobTypes.${n}`):t}),(0,K.jsx)(iS,{cutText:!0,children:e})]})};var UY=({finalCurrency:e=``,finalPrice:t=``,finalCleaners:n={},handleClickSaga:r,offeredPriceLimit:i})=>(0,K.jsx)(MS,{id:`job-request-price-form`,children:(0,K.jsxs)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,flexGrow:!0,isRelative:!0,children:[(0,K.jsx)(xS,{children:(0,K.jsxs)(FS,{children:[(0,K.jsx)(tC,{parseNumber:qo,finalCurrency:e,finalPrice:t,offeredPriceLimit:i,setPrice:e=>t=>r(e,{action:`setprice`,value:t})}),(()=>(0,K.jsx)(SS,{isSmall:!0,children:(0,K.jsx)(iS,{children:(0,K.jsx)(DM,{text:U(`job_request.price_info`),isPrompt:!0,isSmall:!0,color:`bg-jobrequest`})})}))(n)]})}),(0,K.jsx)(_m,{})]})});UY.propTypes={finalCurrency:V.default.string,finalPrice:V.default.oneOfType([V.default.number,V.default.string]),finalCleaners:V.default.shape({}),handleClickSaga:V.default.func.isRequired,offeredPriceLimit:V.default.number.isRequired},UY.content=({finalCurrency:e=``,finalPrice:t=``})=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(iS,{children:e}),(0,K.jsx)(aS,{children:t})]}),UY.content.propTypes={finalCurrency:V.default.string,finalPrice:V.default.oneOfType([V.default.number,V.default.string]),finalCleaners:V.default.shape({})};var WY=_i.default.bind(LY),$ve=e=>{let t=[{value:`1`,title:`1 hr`},{value:`3`,title:`3 hrs`},{value:`6`,title:`6 hrs`},{value:`12`,title:`12 hrs`},{value:`24`,title:`24 hrs`},{value:`48`,title:`48 hrs`}];return e===`1`||e===1?t.slice(0,4):e===`2`||e===2?t.slice(0,5):t},GY=class extends B.Component{constructor(e){super(e),k(this,`handleSelectCleaner`,(e,t,n)=>{let{handleClickSaga:r}=this.props;e.backupCleaner=!!n,r(!1,{action:`setcleaner`,contact:e,set:!t})}),k(this,`handleAllCleaners`,(e,t)=>{let{unsetJobRequestCleaners:n}=this.props,r=(0,gx.default)(this.selectedCleaners),i=(0,gx.default)(e).filter(e=>e?.userData?.objectId);if(!t){n({cleaners:(0,CR.default)(r.filter(e=>e?.isDisabled||e?.backupCleaner),e=>e?.userData?.objectId)});return}let a=(0,Kq.default)(i,r,(e,t)=>e.userData?.objectId===t?.userData?.objectId);return a.length===0?this.selectedCleaners:(0,CR.default)(a,e=>e.userData?.objectId)}),k(this,`handleAllBackupCleaners`,(e,t)=>{let{unsetJobRequestCleaners:n}=this.props,r=(0,gx.default)(this.selectedCleaners),i=(0,gx.default)(e).filter(e=>e?.userData?.objectId);if(!t){n({cleaners:(0,CR.default)(r.filter(e=>e?.isDisabled||!e?.backupCleaner),e=>e?.userData?.objectId)}),r.map(e=>(e.backupCleaner=!1,e));return}let a=(0,Kq.default)(i,r,(e,t)=>e.userData?.objectId===t?.userData?.objectId);return a.length===0?this.selectedCleaners:(0,CR.default)(a.map(e=>(e.backupCleaner=!0,e)),e=>e.userData?.objectId)}),k(this,`handleSelectCleaners`,(e,t,n)=>{let{handleClickSaga:r}=this.props,i;i=n?this.handleAllBackupCleaners(e,t):this.handleAllCleaners(e,t),r(!1,{action:`setcleaners`,contacts:i})}),k(this,`handleEventClickCleaner`,(e,t)=>n=>{this.isDisabled(e)&&!this.isActive(e)?this.setState({isErrorModalOpen:!0}):this.handleSelectCleaner(e,!n.target.checked,t)}),k(this,`handleServiceProviderConfig`,e=>{let{serviceProviderConfig:t,changeAutoschedulingServiceProviderConfigSaga:n}=this.props;n({...t,...e})}),k(this,`isActive`,e=>this.isSelected(e)&&this.isClickable(e)),k(this,`isSelected`,e=>this.selectedCleaners[e.userData.objectId]!==void 0),k(this,`isCl
1106ickable`,e=>{let{activeTab:t}=this.state,n=(0,oC.default)(this.selectedCleaners,(e,n)=>e.isDisabled||e.backupCleaner&&t===`serviceProviders`?n:``);return!Object.keys(n).includes(e.userData?.objectId)}),k(this,`isDisabled`,e=>{let{proMarketProperty:t}=this.props;return t&&e.listSuggestedCleaner}),k(this,`openCleaner`,e=>t=>{t.stopPropagation(),t.preventDefault(),this.isCleanerOpen(e)||Hv(),this.setState({openCleaner:this.isCleanerOpen(e)?void 0:e.userData.objectId})}),k(this,`handleOpenSlider`,e=>(t,n)=>{let{setSliderData:r}=this.props;n.stopPropagation(),n.preventDefault(),r({isOpen:!0,images:(0,H.default)(e,e=>({image:e})),index:t})}),k(this,`renderCleaner`,(e,t,n)=>(r,i)=>{let a=e?`blue`:`orange`,o=e?r:r.profile,{proMarketProperty:s}=this.props;return(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(TS,{type:`fullwidth`,"data-testid-cleaner-index":i,"data-testid-is-community":e,"data-testid":`jobrequestsend_cleaneritem`,"data-testid-id":r.objectId,"data-testid-is-cleaner-me":this.props.currentUserId===r.userId,"data-testid-is-clickable":!!this.isClickable(r),isBlue:e,onChange:this.handleEventClickCleaner(r,n),isActive:this.isActive(r),isClickable:this.isClickable(r)&&!this.isDisabled(r),isDisabled:this.isDisabled(r)&&!this.isActive(r),sendMoreMode:this.isSendMoreMode,children:[(0,K.jsx)(DS,{order:[`pic`,`text`],txtMod:{withpic:!0},picType:`custom`,type:`cleaner`,showProBadge:s&&ps(r),pic:(0,K.jsx)(Qd,{picture:hs(r),text:ms(r),type:`cleaner`}),l1:Jo(r,e,this.props.currentUserId),l2:e?KY(r):gs(r),l3:(0,K.jsx)(sS,{color:a,isInline:!0,onClick:this.openCleaner(r),children:this.isCleanerOpen(r)?U(`job_request.hide_profile`):U(`job_request.view_profile`)})}),(0,K.jsx)(yS,{cleaner:r,config:t,onOpenImageSlider:this.handleOpenSlider(o.propertyPhotos,e),isOpen:this.isCleanerOpen(r)})]}),(0,K.jsx)(NS,{left:`0px`,top:`0px`,bottom:`12px`,right:`0px`})]},`${r.userId||r.objectId}backupMode=${!!n}`)}),k(this,`onChangeIncreaseTime`,e=>{this.handleServiceProviderConfig({resendAfter:e.target.value})}),k(this,`setShowBackupServiceProviders`,()=>{this.setState(e=>({showBackupServiceProviders:!e.showBackupServiceProviders})),this.handleSelectCleaners(this.allBackupCleanersConcated,!1,!0)}),this.state={query:``,isErrorModalOpen:!1,showBackupServiceProviders:!1,activeTab:`serviceProviders`}}componentDidMount(){let{finalCleaners:e}=this.props,t=(0,xo.default)(e,e=>e.backupCleaner).length>0||!1;this.setState({showBackupServiceProviders:t})}get allCleaners(){let{searchData:e}=this.props;return e?.result}get selectedCleaners(){let{finalCleaners:e}=this.props;return e}get communityCleaners(){let{communityCleaners:e,proMarketProperty:t}=this.props;return t?[]:Array.isArray(e)?e:Object.values(e||{})}get filteredCommunityCleaners(){let{query:e}=this.state,t=e.split(` `).filter(e=>!!e&&e.length>=2);return t.length===0?this.communityCleaners||[]:(this.communityCleaners||[]).filter(({userData:e})=>{let n=`${e.firstName||``} ${e.lastName||``}`.toLowerCase();return t.filter(e=>n.indexOf(e.toLowerCase())!==-1).length!==0})}get hasCCleaners(){return(this.communityCleaners||[]).length>0}get canSeeCCleaners(){return!0}get hasCCleanersForBackup(){let{finalCleaners:e}=this.props;return((0,xo.default)(this.communityCleaners,t=>!e[t.userId]||e[t.userId].backupCleaner)||[]).length>0}get isSendMoreMode(){let{finalMode:e}=this.props;return e===l_.sendmore}get filteredCleanersLength(){return(this.filteredCleaners||[]).length}get communityCleanersLength(){return(this.communityCleaners||[]).length}get filteredCleaners(){return(0,xo.default)(this.allCleaners,e=>!e.deleted)}get filteredBackupCleaners(){let{finalCleaners:e}=this.props;return(0,xo.default)(this.allCleaners,t=>!t.deleted&&!this.isDisabled(t)&&(!e[t.userId]||e[t.userId].backupCleaner))}get filteredBackupCommunityCleaners(){let{finalCleaners:e}=this.props;return(0,xo.default)(this.filteredCommunityCleaners,t=>!e[t.userId]||e[t.userId].backupCleaner)}get totalContactsCount(){return(0,xo.default)(this.props.contacts,e=>!e.deleted).length}get finalCleanersWithoutBackup(){let{finalCleaners:e}=this.props;return(0,xo.default)(e,e=>!e.backupCleaner)||[]}get totalFinalCleanersWithoutBackup(){return this.finalCleanersWithoutBackup.length}get isThereAnyBackupCleanerAvailable(){let{proMarketProperty:e}=this.props,t=0;return e&&(t=(0,xo.default)(this.props.contacts,e=>e.listSuggestedCleaner).length),this.totalContactsCount-t+(this.communityCleanersLength||0)!==this.totalFinalCleanersWithoutBackup}get renderData(){let e={arrayLeft:[],arrayRight:[]};return this.hasCCleaners?(e.arrayLeft=this.filteredCleaners,e.arrayRight=this.filteredCommunityCleaners):e=(0,If.default)(this.filteredCleaners,(e,t,n)=>(n%2?e.arrayRight.push(t):e.arrayLeft.push(t),e),{arrayLeft:[],arrayRight:[]}),e}get renderDataBackup(){let e={arrayLeft:[],arrayRight:[]};return this.hasCCleanersForBackup?(e.arrayLeft=this.filteredBackupCleaners,e.arrayRight=this.filteredBackupCommunityCleaners):e=(0,If.default)(this.filteredBackupCleaners,(e,t,n)=>(n%2?e.arrayRight.push(t):e.arrayLeft.push(t),e),{arrayLeft:[],arrayRight:[]}),e}get allCleanersConcated(){let e=this.canSeeCCleaners?this.filteredCommunityCleaners:[];return(0,aC.default)(this.filteredCleaners,e)}get allCleanersConcatedFiltered(){return this.filteredCleaners.filter(e=>!this.isDisabled(e)&&e.userData?.objectId)}get allBackupCleanersConcated(){let e=this.canSeeCCleaners?this.filteredBackupCommunityCleaners:[];return(0,aC.default)(this.filteredBackupCleaners,e)}get selectedCleanersLength(){return(0,gx.default)(this.selectedCleaners).length}get areAllSelected(){return this.allCleanersConcatedFiltered.filter(e=>!this.selectedCleaners[e.userData?.objectId]).length===0}get zeroVisibleCleaners(){return this.allBackupCleanersConcated.length===0}isCleanerOpen(e){let{openCleaner:t}=this.state;return e.userData.objectId===t}selectAll(e=!1){let t=(e,t)=>(0,If.default)(e,(e,n)=>(e[n.userData.objectId]=t?n:void 0,e),{});if(e){this.handleSelectCleaners(t(this.allBackupCleanersConcated,!this.areAllSelected),!this.areAllSelected,e);return}this.handleSelectCleaners(t(this.allCleanersConcatedFiltered,!this.areAllSelected),!this.areAllSelected,e)}handleSearch(e){let{setSearchQuery:t}=this.props;this.setState({query:e}),t(`jobrequestnew_searchcleaners`,e)}renderCleanersSchedule(){let{showBackupServiceProviders:e}=this.state,t=this.props.serviceProviderConfig??{},n=this.props.finalTimeConfig??{};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{className:WY(`cleaner-render-schedule--header`),children:(0,K.jsxs)(`div`,{className:WY(`cleaner_renderHeader--subheader`),children:[(0,K.jsx)(Xg,{style:{marginLeft:`10px`},children:U(`autoscheduler.define_actions`)}),(0,K.jsxs)(`div`,{className:WY(`cleaner_renderHeader--subheader`),style:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(Yf,{"data-testid":`autoscheduler increase time`,placeholder:U(`autoscheduler.select_time`),styleOverwrite:{height:`30px`,width:`140px`,backgroundColor:`var(--color-white)`},onChange:this.onChangeIncreaseTime,value:t?.resendAfter?.toString()||`disabled`,isFirst:!0,isLast:!0,options:$ve(n?.schedulingInterval),optionsBtn:!0,optionsColor:t?.resendAfter?`normal`:`inactive`,style:{textAlign:`left`,fontSize:`14px`},type:`select`}),(0,K.jsx)(Xg,{style:{marginLeft:`10px`},children:U(`autoscheduler.resend_job_after`)})]})]})}),(0,K.jsxs)(NS,{left:`10px`,top:`6px`,bottom:`0px`,right:`10px`,minHeight:`50px`,children:[(0,K.jsxs)(`div`,{className:WY(`cleaner_renderHeader--selectall`),children:[(0,K.jsx)(Dp,{type:`small`,selected:e,onChange:this.setShowBackupServiceProviders,"data-testid":`autoscheduler_select_additional_sp`}),(0,K.jsx)(Xg,{type:e?`regular`:`greyloading`,style:{marginLeft:`10px`},children:U(`autoscheduler.send_to_additional_sp`)}),(0,K.jsx)(ym,{})]}),(0,K.jsx)(`div`,{className:WY(`cleaner_renderHeader--borderBottom`)}),(0,K.jsxs)(`div`,{className:WY(`cleaner_renderHeader--selectall`),children:[(0,K.jsx)(Dp,{type:`small`,selected:!!t?.sendHostEmailNotification,onChange:e=>this.handleServiceProviderConfig({sendHostEmailNotification:e.target.checked}),"data-testid":`autoscheduler_send_email_notification_cleaner`}),(0,K.jsx)(Xg,{type:t?.sendHostEmailNotification?`regular`:`greyloading`,style:{marginLeft:`10px`},children:U(`autoscheduler.send_me_email`)})]})]})]})}renderCleanersHeader(){let{searchData:e}=this.props,{query:t}=this.state,n=this.communityCleanersLength||0,r=this.filteredCommunityCleaners.length||0,i=this.selectedCleanersLength,a=this.totalContactsCount+n,o=t?this.filteredCleanersLength+r:a;return(0,K.jsxs)(NS,{left:`24px`,top:`0px`,bottom:`0px`,right:`24px`,minHeight:`30px`,children:[(0,K.jsx)(`div`,{className:WY(`cleaner__topbarwrap`),style:{width:`100%`,marginBottom:`6px`},children:(0,K.jsx)(Up,{selectedCount:i,queryCount:o,totalCount:a,value:e.searchQuery,onChange:e=>this.handleSearch(e),placeholder:U(`contacts.search_cleaner`),isSelected:this.areAllSelected,onSelect:()=>this.selectAll()})}),(0,K.jsxs)(`div`,{className:WY(`cleaner__topbarwrap`),style:{marginBottom:`6px`},children:[(0,K.jsx)(`div`,{className:WY(`cleaner__topbarwrap-item`),children:U(`job_request.my_service_providers`)}),(0,K.jsx)(`div`,{className:WY(`cleaner__topbarwrap-item`,{"cleaner__topbarwrap-item--end":!this.hasCCleaners}),children:this.hasCCleaners&&U(`job_request.community_service_providers`)})]})]})}renderBackupCleanersHeader(){let{searchData:e}=this.props;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{className:WY(`cleaner_renderHeader--header`),children:(0,K.jsx)(`div`,{className:WY(`cleaner_renderHeader--subheader`),children:(0,K.jsx)(Xg,{style:{marginLeft:`10px`},children:U(`autoscheduler.include_one_more_sp`)})})}),(0,K.jsxs)(NS,{left:`10px`,top:`10px`,bottom:`0`,right:`10px`,minHeight:`50px`,children:[(0,K.jsx)(`div`,{className:WY(`cleaner_renderHeader--search`),children:(0,K.jsx)($f,{onGrey:!0,"data-testid":`autoscheduler_search_cleaner`,placeholder:U(`contacts.search_cleaner`),value:e.searchQuery,iconLocation:`left`,onChange:e=>this.handleSearch(e)})}),!this.zeroVisibleCleaners&&(0,K.jsxs)(`div`,{className:WY(`cleaner_renderHeader--selectall`),children:[(0,K.jsx)(Dp,{type:`small`,selected:this.areAllSelected,onChange:()=>this.selectAll(!0),"data-testid":`autoscheduler_select_all_cleaner`}),(0,K.jsx)(Xg,{type:this.areAllSelected?`regular`:`greyloading`,style:{marginLeft:`10px`},children:U(`job_request.all_my_cleaners`)})]}),(0,K.jsxs)(`div`,{className:WY(`cleaner__topbarwrap`),children:[(0,K.jsx)(`div`,{className:WY(`cleaner__topbarwrap-item`),children:U(`job_request.my_service_providers`)}),(0,K.jsx)(`div`,{className:WY(`cleaner__topbarwrap-item`,{"cleaner__topbarwrap-item--end":!this.hasCCleanersForBackup}),children:this.hasCCleanersForBackup&&U(`job_request.community_service_providers`)})]})]})]})}renderServiceProviders(){let{config:e}=this.props;return(0,K.jsxs)(K.Fragment,{children:[this.renderCleanersHeader(),(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{enableOverflow:!0,children:(0,K.jsx)(NS,{left:`24px`,top:`0px`,bottom:`12px`,right:`24px`,flexGrow:!0,children:(0,K.jsxs)(tx.GridRow,{spacing:`12`,children:[(0,K.jsx)(tx.GridItem,{spacing:`12`,itemPerRow:`2`,children:(0,H.default)(this.renderData.arrayLeft,this.renderCleaner(!1,e,!1))}),(0,K.jsx)(tx.GridItem,{spacing:`12`,itemPerRow:`2`,children:(0,H.default)(this.renderData.arrayRight,this.renderCleaner(this.hasCCleaners,e,!1))})]})})})})})]})}renderBackupServiceProviders(){let{config:e}=this.props,{showBackupServiceProviders:t}=this.state;return(0,K.jsxs)(K.Fragment,{children:[this.renderCleanersSchedule(),t&&(this.isThereAnyBackupCleanerAvailable&&this.totalFinalCleanersWithoutBackup?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(ym,{}),this.renderBackupCleanersHeader(),(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{enableOverflow:!0,children:(0,K.jsx)(NS,{left:`24px`,top:`0px`,bottom:`12px`,right:`24px`,flexGrow:!0,children:(0,K.jsxs)(tx.GridRow,{spacing:`12`,children:[(0,K.jsx)(tx.GridItem,{spacing:`12`,itemPerRow:`2`,children:(0,H.default)(this.renderDataBackup.arrayLeft,this.renderCleaner(!1,e,!0))}),(0,K.jsx)(tx.GridItem,{spacing:`12`,itemPerRow:`2`,children:(0,H.default)(this.renderDataBackup.arrayRight,this.renderCleaner(this.hasCCleanersForBackup,e,!0))})]})})})})})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(ym,{}),(0,K.jsx)(`div`,{className:WY(`cleaner_renderHeader--header`),children:(0,K.jsx)(`div`,{className:WY(`cleaner_renderHeader--subheader`),children:(0,K.jsx)(Xg,{type:`red`,children:this.isThereAnyBackupCleanerAvailable?U(`autoscheduler.select_primary_sp_warning`):U(`autoscheduler.no_sp_available_warning`)})})})]}))]})}render(){let{isErrorModalOpen:e,activeTab:t}=this.state,{serviceProviderConfig:n}=this.props,{resendAfter:r}=n??{};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(MS,{id:`job-request-cleaners-form`,children:[(0,K.jsx)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,children:(0,K.jsxs)(Cg,{children:[(0,K.jsx)(Cg.Item,{"data-testid":`button_section_task_form`,onClick:()=>{this.setState({activeTab:`serviceProviders`}),this.handleSearch(``)},active:t===`serviceProviders`,children:U(`autoscheduler.primary_sp`)}),(0,K.jsx)(Cg.Item,{"data-testid":`button_section_checklist_properties`,onClick:()=>{this.setState({activeTab:`backupServiceProviders`}),this.handleServiceProviderConfig({resendAfter:r||`6`}),this.handleSearch(``)},active:t===`backupServiceProviders`,children:U(`autoscheduler.additional_sp`)})]})}),t===`serviceProviders`&&this.renderServiceProviders(),t===`backupServiceProviders`&&this.renderBackupServiceProviders()]}),(0,K.jsx)(Dg,{message1:``,message2:U(`job_request.pro_cleaner_send_more_error`),show:e,onClose:()=>this.setState({isErrorModalOpen:!1})})]})}};function KY(e){let t=e.numOfHosts||0,n=U(t>1||t===0?`contacts.clients`:`contacts.client`);return`${e.numOfJobRequestsDone||0} ${U(`contacts.total_jobs`)} ⢠${t} ${n}`}function eye({children:e,leftOverCleaners:t}){let n=e=>e.map((e,t)=>{let n=`${e.cleaner.firstName} ${e.cleaner.lastName}`;return{"data-testid":t,isCommunityCleaner:e.isCommunity,name:n,secondaryName:e.isCommunity?KY(e.rawCleaner):gs(e.rawCleaner)}}),r=e=>(0,K.jsx)(Ad,{isButton:!1,hasDivider:!0,isDenseStyle:!0,items:n(e)});return(0,K.jsx)(Lg,{popoverKey:`viewSelectedCleaners`,width:220,hasArrow:!0,popoverContent:()=>r(t),children:(0,K.jsx)(`span`,{children:e})})}function tye({finalCleaners:e}){return(0,H.default)(e,e=>({isCommunity:!(e.profile&&e.userData),contactId:e.userData.objectId,rawCleaner:e,cleaner:{firstName:e.userData.firstName,lastName:e.userData.lastName}}))}GY.content=({finalCleaners:e,finalProperty:t})=>(0,K.jsx)(xx,{type:`simple`,wrapperComponent:eye,items:tye({finalCleaners:e,finalProperty:t}),limit:1}),GY.propTypes={searchData:V.default.shape({}).isRequired,handleClickSaga:V.default.func.isRequired,setSearchQuery:V.default.func.isRequired,finalCleaners:V.default.shape({}).isRequired,finalMode:V.default.string.isRequired,serviceProviderConfig:V.default.shape({}),changeAutoschedulingServiceProviderConfigSaga:V.default.func.isRequired,communityCleaners:V.default.shape({}),setSliderData:V.default.func.isRequired,currentUserId:V.default.string.isRequired,config:V.default.shape({}).isRequired,unsetJobRequestCleaners:V.default.func.isRequired,proMarketProperty:V.default.bool.isRequired},GY.defaultProps={communityCleaners:{},serviceProviderConfig:{}};var qY=({finalPropertyId:e,finalChecklistIds:t,selectChecklist:n,selectChecklistViewType:r,isPropertiesActive:i,isTaskformActive:a,onClose:o,loadingStateChecklist:s,searchQuery:c,checklists:l,taskformlist:u,tempTaskImages:d,setSearchQuery:f,createChecklistSaga:p,finalPropertyResolved:m,setModalObj:h,handleClickSaga:g,changeAutoschedulingTaskTitle:_,changeAutoschedulingTaskDescription:v,taskTitleRedux:y,taskDescription:b,imageUploadErrored:x,setGlobalLoadingState:S})=>{let C=s,w=({objectId:e,jobInstructionId:t,jobInstructions:n,propertyIndependent:r,published:i})=>a=>{o(!0),a.stopPropagation(),a.preventDefault(),h({isOpen:!0,meta:{checklistId:e,jobInstructionId:t||n.objectId,isIndependent:r&&!i}})},T=e=>{g(!1,{action:`addTaskForm`,addTaskForm:e})},E=e=>{g(!1,{action:`cancelTaskForm`,cancelTaskForm:e})},D=e=>{g(!1,{action:`addTaskPic`,addTaskPic:e})},ee=(e,t)=>
1106{g(!1,{action:`deleteTaskForm`,deleteTaskTitle:e,deleteTaskDescription:t})},te=()=>{S(d_)},ne=!e&&i&&!a,re=(0,Qq.default)(t);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(MS,{id:`job-request-task-checklist-form`,children:(0,K.jsxs)(MS,{id:`job-request-checklist-form`,children:[(0,K.jsx)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,children:(0,K.jsxs)(Cg,{children:[(0,K.jsx)(Cg.Item,{"data-testid":`button_section_task_form`,onClick:()=>r(`taskform`),active:!i&&a,children:U(`job_request.add_extra_task`)}),(0,K.jsx)(Cg.Item,{"data-testid":`button_section_checklist_properties`,onClick:()=>r(`properties`),active:i&&!a,children:U(`titles.property_checklists`)}),(0,K.jsx)(Cg.Item,{"data-testid":`button_section_checklist_library`,onClick:()=>r(`library`),active:!i&&!a,children:U(`titles.library`)})]})}),(0,K.jsxs)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,children:[!ne&&!a&&(0,K.jsx)($f,{onGrey:!0,"data-testid":`jobrequestsend_search_checklist`,placeholder:U(`job_request.search_checklist`),value:c,iconLocation:`left`,onChange:e=>f(`jobrequest_searchchecklist`,e)}),!ne&&a&&(0,K.jsx)(`div`,{children:(0,K.jsx)(tx.GridRow,{children:(0,K.jsx)(tx.GridItem,{itemPerRow:`1`,spacing:`12`,children:(0,K.jsx)(aj,{count:u.length})})})})]}),(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{enableOverflow:!0,children:(0,K.jsxs)(NS,{left:`24px`,top:`0px`,bottom:`12px`,right:`24px`,children:[C&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Sm,{}),(0,K.jsx)(xf,{static:!0}),(0,K.jsx)(Sm,{})]}),!C&&ne&&(0,K.jsx)(Yg,{children:U(`job_request.select_property`)}),!C&&a&&u&&u.map(e=>(0,K.jsx)(oj,{task:e,onDelete:ee},e.title)),!C&&a&&(0,K.jsx)(tx.GridRow,{children:(0,K.jsx)(tx.GridItem,{itemPerRow:`1`,spacing:`12`,children:(0,K.jsx)(sj,{active:u.length===0,onSubmitForm:T,onCancelForm:E,onUploadTaskPic:D,tempTaskImages:d,changeTaskTitle:_,changeTaskDescription:v,taskTitle:y,taskDescription:b,imageUploadErrored:x})})}),!C&&!a&&(0,H.default)((0,wx.default)(l,2),(e,t)=>(0,K.jsx)(tx.GridRow,{spacing:`12`,children:(0,H.default)(e,(e,t)=>{if(e.totalTaskCount===0)return null;let r=re[e.objectId]!==void 0;return(0,K.jsx)(tx.GridItem,{spacing:`12`,itemPerRow:`2`,children:(0,K.jsx)(TS,{number:Number(re[e.objectId])+1,"data-testid":`jobrequestsend_checklistitem-${e.objectId}`,onChange:()=>n(e.objectId),isActive:r,children:(0,K.jsx)(DS,{picType:`custom`,order:[`pic`,`text`],txtMod:{withpic:!0},l1:e.title,l2:es(e),l3:!e.published&&(0,K.jsx)(sS,{color:`orange`,isInline:!0,onClick:w(e),children:U(`job_request.edit_checklist`)}),pic:(0,K.jsx)(PS,{icon:r?Y.IcBigJobsOrange:Y.IcBigJobs})})})},t)})},t))]})})})})]})}),(0,K.jsx)(Dg.ImageUpload,{showUploadError:x,onCloseUploadError:te})]})},nye=e=>e.filter(e=>e).map((e,t)=>({"data-testid":e.objectId,name:e.title,secondaryName:es(e),icon:(0,K.jsx)(wS,{isActive:!0,number:parseInt(t,10)+2})})),rye=e=>(0,K.jsx)(Ad,{isButton:!1,hasDivider:!0,isDenseStyle:!0,items:nye(e)});function iye({children:e,leftOverCleaners:t}){return(0,K.jsx)(Lg,{popoverKey:`viewSelectedChecklists`,width:240,hasArrow:!0,popoverContent:()=>rye(t),children:(0,K.jsx)(`span`,{children:e})})}qY.content=({checklistTitle:e,taskTitle:t,finalChecklistIds:n,allChecklists:r})=>(0,K.jsx)(`div`,{children:(0,K.jsxs)(xx,{type:`simple`,limit:1,wrapperComponent:iye,items:n.map(e=>r[e]),children:[(0,K.jsx)(iS,{cutText:!0,children:e},`title${e}`),(0,K.jsx)(iS,{cutText:!0,children:t},`title${t}`)]})});var JY=({finalSkills:e={},selectSkill:t,loadingStateSkill:n=!1,searchQuery:r=``,skills:i=[],setSearchQuery:a})=>{let o=n,s=(e||[]).reduce((e,t,n)=>(e[t.skillId]=n,e),{});return(0,K.jsx)(MS,{id:`job-request-skills-form`,children:(0,K.jsxs)(MS,{id:`job-request-skills-form`,children:[(0,K.jsx)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,children:(0,K.jsx)($f,{onGrey:!0,"data-testid":`jobrequestsend_search_skills`,placeholder:U(`skills.search`),value:r,iconLocation:`left`,onChange:e=>a(`jobrequest_searchskills`,e)})}),(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{enableOverflow:!0,children:(0,K.jsxs)(NS,{left:`24px`,top:`0px`,bottom:`12px`,right:`24px`,children:[o&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Sm,{}),(0,K.jsx)(xf,{static:!0}),(0,K.jsx)(Sm,{})]}
1106),(0,H.default)((0,wx.default)(i,2),(e,n)=>(0,K.jsx)(tx.GridRow,{spacing:`12`,children:(0,H.default)(e,(e,n)=>{let r=s[e.skillId]!==void 0;return(0,K.jsx)(tx.GridItem,{spacing:`12`,itemPerRow:`2`,children:(0,K.jsx)(TS,{number:Number(s[e.skillId])+1,"data-testid":`jobrequestsend_skillitem-${e.skillId}`,onChange:()=>t(e.skillId),isActive:r,children:(0,K.jsx)(DS,{picType:`custom`,order:[`pic`,`text`],txtMod:{withpic:!0},l1:e.title,l2:ts(e),pic:(0,K.jsx)(PS,{icon:r?Y.IcBigJobsOrange:Y.IcBigJobs})})})},n)})},n))]})})})})]})})},aye=e=>e.filter(e=>e).map((e,t)=>({"data-testid":e.objectId,name:e.title,secondaryName:ts(e),icon:(0,K.jsx)(wS,{isActive:!0,number:parseInt(t,10)+2})})),oye=e=>(0,K.jsx)(Ad,{isButton:!1,hasDivider:!0,isDenseStyle:!0,items:aye(e)});function sye({children:e,leftOverCleaners:t}){return(0,K.jsx)(Lg,{popoverKey:`viewSelectedSkills`,width:240,hasArrow:!0,popoverContent:()=>oye(t),children:(0,K.jsx)(`span`,{children:e})})}var YY=({skillTitle:e=``,finalSkills:t,allSkills:n={},skillSubtitle:r=``})=>(0,K.jsxs)(xx,{type:`simple`,limit:1,wrapperComponent:sye,items:(t??[]).map(e=>n[e?.skillId]),children:[(0,K.jsx)(iS,{cutText:!0,children:e},`title${e}`),(0,K.jsx)(aS,{children:r})]});JY.propTypes={finalSkills:V.default.shape({}),selectSkill:V.default.func.isRequired,loadingStateSkill:V.default.bool,searchQuery:V.default.string,skills:V.default.arrayOf(V.default.shape({})),setSearchQuery:V.default.func.isRequired},YY.propTypes={skillTitle:V.default.string,finalSkills:V.default.shape({}),allSkills:V.default.shape({}),skillSubtitle:V.default.string},JY.content=YY;var XY=({finalMessage:e=``,handleClickSaga:t})=>(0,K.jsx)(MS,{id:`job-request-message-form`,children:(0,K.jsxs)(NS,{left:`24px`,top:`12px`,bottom:`12px`,right:`24px`,flexGrow:!0,children:[(0,K.jsx)($g,{children:U(`job_request.description`)}),(0,K.jsx)(Yf,{autoFocus:!0,isFirst:!0,isLast:!0,"data-testid":`jobrequestsend_message`,placeholder:U(`job_request.write_description`),onChange:e=>t(e,{action:`typemessage`,value:e.target.value||``}),value:e,type:`textarea`})]})});XY.propTypes={finalMessage:V.default.string,handleClickSaga:V.default.func.isRequired},XY.content=({finalMessage:e=``})=>(0,K.jsx)(iS,{cutText:!0,children:e});var ZY=e=>e.autoschedulingSend,cye=A(ZY,e=>e?.openSection),QY=A(ZY,e=>e?.autoschedulingData),lye=A(ZY,e=>e.deletedAutoschedulerModalVisibility),uye=A(QY,e=>e?.checklistId),dye=A(ZY,e=>e?.communityCleaners),$Y=A(ZY,e=>e?.listViewRefresh),eX=A(ZY,e=>e?.startupData);A(QY,e=>e?.tasks);var tX=A(ZY,e=>e?.startupData?.mode),fye=A(ZY,e=>e?.checklistViewType);function nX(e,t){return function(){return R.default.error(`validation func missing ${e}`,t),!1}}function pye(e,t){switch(e){case l_.edit:return t&&t===W.StateAccepted?{property:!0,cleaners:!0}:{property:!0};default:return{}}}function mye(e,{allSectionsLength:t,validCount:n}){switch(e){default:return n===t}}var rX=A(cye,QY,PC,eX,(e,t,n,r)=>{let i=0,a=r?.mode,o=r?.data,s=``;o&&(s=o?.jobStatus);let c=(0,If.default)(lX,(o,c,l)=>{let u={};return u.open=!!e?.[l],u.isSectionDisabled=!!pye(a,s)[l],u.active=u.open,u.validFunc=c.isValid||nX(`isValid`,c),u.emptyFunc=c.isEmpty||nX(`isEmpty`,c),u.isValid=u.validFunc(t,n,r),u.isEmpty=u.emptyFunc(t,n,r),u.isEmptyOverride=c?.isEmptyOverride?.(t),u.infoTextMsg=c.infoText&&c.infoText({jobRequestSendMode:a,isEmpty:u.isEmpty,jobRequestData:t,properties:n}),u.prevSectionIndex=parseInt(dX[l],10)-1,u.nextSectionIndex=parseInt(dX[l],10)+1,u.prevSection=uX[u.prevSectionIndex],u.nextSection=uX[u.nextSectionIndex],u.sectionTitle=c.title(),u.prevSectionRes=o[(0,G.default)(u.prevSection,`id`)],u.prevSectionDisabled=!!(!u.prevSectionRes||u.prevSectionRes.isSectionDisabled),u.isValid&&(i+=1),o[l]={open:u.open,active:u.active,isValid:u.isValid,isSectionDisabled:u.isSectionDisabled,infoTextMsg:u.infoTextMsg,disabledNext:!u.isValid,optional:c.optional,isEmpty:u.isEmpty,isEmptyOverride:u.isEmptyOverride,sectionTitle:u.sectionTitle,prevSection:u.prevSection,nextSection:u.nextSection,prevSectionDisabled:u.prevSectionDisabled},o},{}),l=(e,t)=>{let n=parseInt(dX[t],10);e===`next`?n+=1:e===`prev`&&--n;let r=null,i={};return n>=0&&n<uX.length&&(i.sectionData=uX[n],i.sectionRes=c[(0,G.default)(i.sectionData,`id`)],i.sectionDisabled=!!(!i.sectionRes||i.sectionRes.isSectionDisabled),r=i.sectionDisabled?l(e,i.sectionData.id):i),r},u=-1;(0,xc.default)(uX,(e,n)=>{let r=c[e.id],i=c[(0,G.default)(r.nextSection,`id`)];if(c[e.id].nextSectionDisabled=!!(!i||i.isSectionDisabled),r.nextSectionDisabled&&r.nextSection){let e=l(`next`,r.nextSection.id);e&&(r.nextSection=e.sectionData,r.nextSectionDisabled=e.sectionDisabled)}if(r.prevSectionDisabled&&r.prevSection){let e=l(`prev`,r.prevSection.id);e&&(r.prevSection=e.sectionData,r.prevSectionDisabled=e.sectionDisabled)}u===-1&&(!r.isValid||e.id===`checklist`&&t?.checklistId?.length===0||r.optional&&c[e.id].isEmpty)&&(u=n)});let d=mye(a,{validCount:i,allSectionsLength:uX.length});return{mappedSections:c,activeSection:(0,gx.default)(e)[0],isAllValid:d,jobRequestSendMode:a,meta:r,hightLightedSectionId:(0,G.default)(uX[u],[`id`])}}),hye=A(QY,e=>e?.skills),iX=`jobrequest_init`,aX=`jobrequest_checklistloading`,oX=`jobrequest_mainloadingstate`,sX=bw(aX),gye={title:{title:()=>U(`job_request.title_type`),titleActive:()=>U(`job_request.write_title`),canNext:!0,optional:!0,contentTop:HY.content,contentMain:HY,infoText:()=>U(`job_request.title_info`),isEmpty:e=>!e?.title,isEmptyOverride:e=>!e?.jobType,isValid:()=>!0,mapStateToProps:(e,t)=>{let n=QY(e,t);return{title:n?.title,jobType:n?.jobType,defaultTitle:n?.defaultJobTitle,isForwardingEnabled:n?.isForwardingEnabled}}},property:{title:()=>U(`job_request.property`),titleActive:()=>U(`job_request.choose_property`),contentTop:SY.content,contentMain:SY,canNext:!0,infoText:()=>U(`job_request.property_info`),isValid:e=>!!e?.propertyId,isEmpty:e=>!e?.propertyId,mapStateToProps:(e,t)=>{let n=QY(e,t),r=PC(e,t),i=zC(e,t);return{config:sw(e,t),finalStartUpData:eX(e,t),finalPropertyResolved:r[n?.propertyId],finalPropertyId:n?.propertyId,...zo(r[n?.propertyId]),tagSourceProperties:(0,gx.default)(i||{}),searchData:kw(`properties`,`jobrequestnew_search`,zC)(e,t)}}},propertyDetails:{optional:!0,nameWidthAuto:!0,contentTop:CY.content,contentMain:CY,canNext:!0,infoText:({isEmpty:e})=>U(e?`job_request.property_details_info`:`job_request.property_details_info_filled`),isValid:()=>!0,isEmpty:(e,t)=>{let n=t?.[e?.propertyId];return!n||cX(n).length===0},title:()=>U(`job_request.property_details`),titleActive:()=>U(`job_request.enter_property_details`),mapStateToProps:(e,t)=>{let n=QY(e,t),r=PC(e,t)[n?.propertyId];return{finalPropertyId:n?.propertyId,otherAttributes:r?.otherAttributes||[],propertyDetailTags:cX(r).join(`, `)}}},checklist:{title:()=>U(`job_request.checklist`),titleActive:()=>U(`job_request.choose_checklist`),contentTop:qY.content,contentMain:qY,canNext:!0,isValid:()=>!0,infoText:()=>U(`job_request.checklist_info`),isEmpty:e=>{let t=(0,gx.default)(e?.checklistId).length,{tasks:n}=e??{};return!t&&!(n||[]).length},mapStateToProps:(e,t)=>{let n=QY(e,t),r=bw(d_)(e)?.isErrored,{tasks:i}=n||{},a=i||[],o=a.length>0?a[0]:null,s=o?o.title:null,c=n?.tempTaskImages,l=n?.taskTitle,u=n?.taskDescription,d=n?.propertyId,f=PC(e,t),p=WC(e,t),m=p[n?.checklistId?.[0]],h=(0,G.default)(m,[`title`],``),g=es(m),_=fye(e),v=_===`properties`,y=_===`taskform`,{searchQuery:b,result:x}=kw(`jobs`,`jobrequest_searchchecklist`,WC)(e,t)||{},S=(0,xo.default)(x,e=>d&&e.defaultProperty&&e.defaultProperty===d),C=(0,xo.default)(x,e=>e.published||e.propertyIndependent),w=(0,xo.default)(v?S:C,e=>e.totalTaskCount!==0&&!e.deleted);return{finalPropertyId:d,finalPropertyResolved:f[n?.propertyId],finalChecklistIds:n?.checklistId,checklistTitle:h,isTaskformActive:y,taskformlist:a,taskTitle:s,isPropertiesActive:v,allChecklists:p,checklists:w,checklistViewType:_,checklistSubtitle:g,loadingStateChecklist:sX(e).isLoadingFull,searchQuery:b,tempTaskImages:c,taskTitleRedux:l,taskDescription:u,imageUploadErrored:r}}},skills:{title:()=>U(`skills.requirements`),titleActive:()=>U(`skills.choose_requirements`),contentTop:JY.content,contentMain:JY,canNext:!0,isValid:()=>!0,infoText:()=>U(`skills.skill_info`),isEmpty:e=>!(0,gx.default)(e?.skills).length,mapStateToProps:(e,t)=>{let n=QY(e,t),r=GC(e,t),i=r[n?.skills?.[0]?.skillId],a=(0,G.default)(i,[`title`],``),o=ts(i),{searchQuery:s,result:c}=kw(`skills`,`jobrequest_searchskills`,GC)(e,t)||{},l=(0,xo.default)(c,e=>e);return{finalSkills:n?.skills,skillTitle:a,allSkills:r,skills:l,skillSubtitle:o,loadingStateChecklist:sX(e).isLoadingFull,searchQuery:s}}},time:{canNext:!0,title:()=>U(`job_request.time`),titleActive:()=>U(`job_request.set_time`),contentTop:VY.content,contentMain:VY,infoText:()=>U(`job_request.time_info`),isEmpty:e=>{let t=e?.jobEventType,n=e?.timeConfig||{};if(t===Xa.RECURRING){let r=e?.recurrenceConfig||{};return!t||!r.repeatUnit||!n.duration}return!t||!n.duration},isValid:e=>{let t=e?.timeConfig||{},n=e?.jobEventType,{startTime:r,endTime:i,duration:a,jobStartTimeType:o,relativeStartTime:s}=t;return!n||!a?!1:n===Xa.RECURRING?!As(e?.recurrenceConfig||{},{requireStartDate:!0})||t.schedulingInterval==null||o===`REGULAR`&&r==null?!1:o===`FLEXIBLE`?r==null||i==null?!1:parseInt(r,10)+parseInt(a,10)<=parseInt(i,10):o===lo:!o&&s==null||o===`REGULAR`&&r==null?!1:o===`FLEXIBLE`?r==null&&i==null?!1:parseInt(r,10)+parseInt(a,10)<=parseInt(i,10):!0},mapStateToProps:(e,t)=>{let n=QY(e,t);return{resolvedProperty:PC(e,t)[n?.propertyId],finalMode:tX(e),jobEventType:n?.jobEventType,timeConfig:n?.timeConfig,editedBookingConfig:n?.editedBookingConfig,canceledBookingConfig:n?.canceledBookingConfig,serviceProviderConfig:n?.serviceProviderConfig,recurrenceConfig:n?.recurrenceConfig}}},cleaners:{title:()=>U(`job_request.cleaners`),titleActive:()=>U(`job_request.select_cleaners`),canNext:!0,contentTop:GY.content,contentMain:GY,isValid:e=>{let t=e?.cleaners;return(0,xo.default)(t,e=>!e?.backupCleaner).length>0},infoText:()=>e=>U(e?`job_request.cleaners_info_community`:`job_request.cleaners_info_normal`),isEmpty:e=>Object.keys(e?.cleaners||{}).length===0,mapStateToProps:(e,t)=>{let n=QY(e,t),r=PC(e,t)[n?.propertyId],i=dye(e,t),a=n?.timeConfig;return{finalMode:tX(e),finalProperty:r,config:sw(e,t),finalPrice
1106:n?.price,communityCleaners:i,contacts:KC(e,t),currentUserId:EC(e,t),finalCleaners:n?.cleaners,finalTimeConfig:a,serviceProviderConfig:n?.serviceProviderConfig,searchData:kw(`contacts`,`jobrequestnew_searchcleaners`,KC)(e,t),proMarketProperty:!!r?.proMarketProperty||!1}}},price:{canNext:!0,nameWidthAuto:!0,title:()=>U(`job_request.offered_price`),titleActive:()=>U(`job_request.offered_price_op`),contentTop:UY.content,contentMain:UY,isValid:()=>!0,infoText:()=>U(`job_request.offered_price_info`),alsoHightLight:{message:!0},isEmpty:e=>{let t=e?.price,n=e?.currency;return!t||t===0||!n},mapStateToProps:(e,t)=>{let n=QY(e,t),r=PC(e,t)[n?.propertyId],i=n?.cleaners,{offeredPriceLimitByCountryCode:a,suggestedCleanerCountries:o}=sw(e,t),s=mA;return o?.includes(r?.countryCode)&&a&&(s=a[r?.countryCode]||a.DEFAULT),{finalMode:tX(e),finalProperty:r,finalCurrency:n?.currency,finalPrice:n?.price,finalCleaners:i,offeredPriceLimit:s}}},message:{title:()=>U(`job_request.description`),titleActive:()=>U(`job_request.write_description`),canNext:!0,optional:!0,contentTop:XY.content,contentMain:XY,infoText:()=>U(`job_request.message_info`),isEmpty:e=>{let t=e?.message;return!t||t===``},isValid:()=>!0,mapStateToProps:(e,t)=>({finalMessage:QY(e,t)?.message})}};function cX(e){let t=[];return e?(e.detailsAccess&&t.push(U(`properties.access`)),e.detailsGarbage&&t.push(U(`properties.garbage`)),e.detailsParking&&t.push(U(`properties.parking`)),e.detailsWifiName&&t.push(U(`properties.wifi`)),e.detailsInformation&&t.push(U(`properties.important_note`)),t):t}var lX=(0,pc.default)(gye,(e,t)=>({...e,id:t})),uX=[lX.title,lX.property,lX.propertyDetails,lX.checklist,lX.skills,lX.time,lX.cleaners,lX.price,lX.message],dX=(0,If.default)(uX,(e,t,n)=>({...e,[t.id]:n}),{}),_ye=class extends B.PureComponent{constructor(e){super(e),k(this,`submitHandler`,()=>{let{autoschedulerSubmitSaga:e}=this.props;return nd(`publish_autoscheduler`,{component:`AutoSchedulingContainer`}),this.setState({isButtonEnabled:!1}),e()}),k(this,`closeModal`,()=>{let{onClose:e}=this.props;od(`autoscheduling_modal`,Ju.CLOSE,{component:`AutoSchedulingContainer`}),e()}),k(this,`mapSectionToSuccessMessage`,e=>({line1:U(`autoscheduler.autoscheduler_published`),line2:U(e?`autoscheduler.autoscheduler_published_edit_desc`:`autoscheduler.autoscheduler_published_desc`)})),k(this,`mapModeToHeader`,()=>({title:U(`job_request.job_summary`)})),k(this,`renderSection`,(e,t)=>{let{mappedSections:n,hightLightedSectionId:r,finalMode:i,onClose:a,startupData:o,isLoadingJobData:s}=this.props,c=n[e.id].active,l=r===e.id,u=i===l_.edit;return(0,K.jsx)(jve,{canOpen:t,contentTop:e.contentTop,contentMain:e.contentMain,nameWidthAuto:e.nameWidthAuto,canNext:e.canNext,isEditMode:u,nextText:U(`job_request.next`),mapStateToProps:e.mapStateToProps,hideTopWhenOpen:e.hideTopWhenOpen,id:e.id,showReset:i===l_.prefill,...n[e.id],isTitleRequired:!s&&!n[e.id].isValid,active:!!c||!!(l||this.highlightSectionAccWithOther(r,n[e.id],e.id)),onClose:a,jobRequestId:o.prevJobRequestId},e.id)}),k(this,`renderSectionFull`,e=>{let{finalMode:t}=this.props,n=t===l_.edit;switch(e.id){case`property`:case`propertyDetails`:case`checklist`:case`skills`:case`time`:case`cleaners`:case`price`:case`title`:case`message`:return this.renderSection(lX[e.id],!0);case`success`:return(0,K.jsx)(MM,{type:`jobrequest`,onClick:this.closeModal,...this.mapSectionToSuccessMessage(n),closeText:U(`checklist.close`)});case`error`:return(0,K.jsx)(MM,{type:`jobrequesterror`});case`job_already_scheduled`:return(0,K.jsx)(MM,{type:`job_already_scheduled`});case`error_handled_from_api`:return(0,K.jsx)(MM,{type:`error_handled_from_api`,message:e.metaval});default:return R.default.warn(`Unknown render section full`,e),null}}),this.state={isButtonEnabled:!0}}componentDidMount(){let{initAutoschedulingSaga:e,startupData:t}=this.props;e(t),ume()}componentWillUnmount(){this.setState({isButtonEnabled:!0})}get isMainLoading(){let{loadingState:e}=this.props;return e.isLoadingFull}get isSuccess(){let{loadingState:e}=this.props;return e.isLoaded}highlightSectionAccWithOther(e,t,n){return(0,G.default)(lX[e],[`alsoHightLight`,n])&&t.isEmpty}renderSidebar(){let{isAllValid:e}=this.props,{isButtonEnabled:t}=this.state,n=[`type-full-primary-job`,`size-large`,`border-rad-no`,`width-flex`,`miheight-62`];return(0,K.jsxs)(MS,{children:[(0,K.jsx)(BS,{...this.mapModeToHeader()}),uX.map(e=>this.renderSection(e,!1)),(0,K.jsxs)(q,{"data-testid":`send_autoscheduler_button`,disabled:!e||this.isSuccess||!t,onClick:this.submitHandler,types:this.isMainLoading?[...n,`zindex-11`]:n,children:[!this.isMainLoading&&`Publish`,this.isMainLoading&&(0,K.jsx)(J,{height:20,width:100,style:{backgroundColor:`rgba(255,255,255,0.3)`}})]})]})}render(){let{activeSection:e,loadingStateInit:t}=this.props;return(0,K.jsx)(Nf,{moduleName:`autoscheduling`,customDescription:U(`autoscheduler.error_load`)||`Unable to load auto-scheduling. Please try again.`,children:(0,K.jsxs)(IS,{children:[(0,K.jsx)(LS,{disableClick:this.isSuccess,children:this.renderSidebar()}),(0,K.jsx)(jS,{children:e&&this.renderSectionFull(e)}),t.isLoadingFull&&(0,K.jsx)(RS,{}),this.isMainLoading&&(0,K.jsx)(RS,{hideLoader:!0})]})})}};function vye(){let e=rX,t=bw(oX),n=bw(iX);return function(r,i){let a=QY(r),o=xw(r,i);return{config:sw(r,i),isLoadingJobData:o,finalMode:tX(r),cleaners:a?.cleaners,loadingState:t(r),loadingStateInit:n(r),...e(r)}}}var yye=Nt(vye,{initAutoschedulingSaga:sve,handleClickSaga:gY,autoschedulerSubmitSaga:cve})(_ye),bye=()=>{let e=xe(),t=j((0,B.useMemo)(()=>mw(`autoscheduling`),[]))||{},n=(n=!1)=>{e(dF(!1,`autoscheduling`,n===!0?{...t?.meta,hiddenModalMode:!0}:{}))},{meta:r,isOpen:i}=t;return(0,K.jsx)(Fg,{id:`autoscheduling`,style:{zIndex:`100 !important`},onClose:n,show:!!i,children:(0,K.jsx)(yye,{onClose:n,startupData:r})})},fX=e(h()),pX={jobdetails__bg:`_jobdetails__bg_17onc_2`,jobdetailsBg:`_jobdetails__bg_17onc_2`,jobdetails__canorange:`_jobdetails__canorange_17onc_7`,jobdetailsCanorange:`_jobdetails__canorange_17onc_7`,jobdetails__section:`_jobdetails__section_17onc_11`,jobdetailsSection:`_jobdetails__section_17onc_11`,"jobdetails__section--small-margin":`_jobdetails__section--small-margin_17onc_16`,jobdetailsSectionSmallMargin:`_jobdetails__section--small-margin_17onc_16`,"jobdetails__section-title":`_jobdetails__section-title_17onc_20`,jobdetailsSectionTitle:`_jobdetails__section-title_17onc_20`,jobdetails__date:`_jobdetails__date_17onc_28`,jobdetailsDate:`_jobdetails__date_17onc_28`,"jobdetails__date-icon":`_jobdetails__date-icon_17onc_32`,jobdetailsDateIcon:`_jobdetails__date-icon_17onc_32`,"jobdetails__date-duration":`_jobdetails__date-duration_17onc_37`,jobdetailsDateDuration:`_jobdetails__date-duration_17onc_37`,jobdetails__box:`_jobdetails__box_17onc_43`,jobdetailsBox:`_jobdetails__box_17onc_43`,"jobdetails__box--noptb":`_jobdetails__box--noptb_17onc_49`,jobdetailsBoxNoptb:`_jobdetails__box--noptb_17onc_49`,"jobdetails__imagegrid-row":`_jobdetails__imagegrid-row_17onc_54`,
1106jobdetailsImagegridRow:`_jobdetails__imagegrid-row_17onc_54`,jobdetails__imagegrid:`_jobdetails__imagegrid_17onc_54`,jobdetailsImagegrid:`_jobdetails__imagegrid_17onc_54`,"jobdetails__imagegrid-image":`_jobdetails__imagegrid-image_17onc_63`,jobdetailsImagegridImage:`_jobdetails__imagegrid-image_17onc_63`,"jobdetails__imagegrid-image-bubble":`_jobdetails__imagegrid-image-bubble_17onc_71`,jobdetailsImagegridImageBubble:`_jobdetails__imagegrid-image-bubble_17onc_71`,"jobdetails__box-image":`_jobdetails__box-image_17onc_77`,jobdetailsBoxImage:`_jobdetails__box-image_17onc_77`,"jobdetails__summary-section-inner":`_jobdetails__summary-section-inner_17onc_87 text-type-small`,jobdetailsSummarySectionInner:`_jobdetails__summary-section-inner_17onc_87 text-type-small`,"jobdetails__summary-section-inner-big":`_jobdetails__summary-section-inner-big_17onc_92 text-type-regular`,jobdetailsSummarySectionInnerBig:`_jobdetails__summary-section-inner-big_17onc_92 text-type-regular`,"jobdetails__summary-section-inner-text":`_jobdetails__summary-section-inner-text_17onc_98`,jobdetailsSummarySectionInnerText:`_jobdetails__summary-section-inner-text_17onc_98`,jobdetails__space8:`_jobdetails__space8_17onc_102`,jobdetailsSpace8:`_jobdetails__space8_17onc_102`,"jobdetails__box--problems":`_jobdetails__box--problems_17onc_106`,jobdetailsBoxProblems:`_jobdetails__box--problems_17onc_106`,"jobdetails__summary-section":`_jobdetails__summary-section_17onc_87 text-type-regular`,jobdetailsSummarySection:`_jobdetails__summary-section_17onc_87 text-type-regular`,"jobdetails__summary-section-head":`_jobdetails__summary-section-head_17onc_119`,jobdetailsSummarySectionHead:`_jobdetails__summary-section-head_17onc_119`,"jobdetails__summary-icon":`_jobdetails__summary-icon_17onc_124`,jobdetailsSummaryIcon:`_jobdetails__summary-icon_17onc_124`,"jobdetails__summary-section--big":`_jobdetails__summary-section--big_17onc_130`,jobdetailsSummarySectionBig:`_jobdetails__summary-section--big_17onc_130`,"jobdetails__summary-section-inner--active":`_jobdetails__summary-section-inner--active_17onc_137`,jobdetailsSummarySectionInnerActive:`_jobdetails__summary-section-inner--active_17onc_137`,"jobdetails__summary-section--active":`_jobdetails__summary-section--active_17onc_140`,jobdetailsSummarySectionActive:`_jobdetails__summary-section--active_17onc_140`,jobdetails__loading:`_jobdetails__loading_17onc_145`,jobdetailsLoading:`_jobdetails__loading_17onc_145`,"jobdetails__box-title":`_jobdetails__box-title_17onc_152`,jobdetailsBoxTitle:`_jobdetails__box-title_17onc_152`,"jobdetails__box-title--nomargin":`_jobdetails__box-title--nomargin_17onc_155`,jobdetailsBoxTitleNomargin:`_jobdetails__box-title--nomargin_17onc_155`,"jobdetails__imagegrid-item":`_jobdetails__imagegrid-item_17onc_159`,jobdetailsImagegridItem:`_jobdetails__imagegrid-item_17onc_159`,jobdetails__flex:`_jobdetails__flex_17onc_167`,jobdetailsFlex:`_jobdetails__flex_17onc_167`,jobdetails__fixmargin:`_jobdetails__fixmargin_17onc_171`,jobdetailsFixmargin:`_jobdetails__fixmargin_17onc_171`,"jobdetails__flex-1":`_jobdetails__flex-1_17onc_175`,jobdetailsFlex1:`_jobdetails__flex-1_17onc_175`,"jobdetails__payment-section":`_jobdetails__payment-section_17onc_187`,jobdetailsPaymentSection:`_jobdetails__payment-section_17onc_187`,"jobdetails__payment-section--active":`_jobdetails__payment-section--active_17onc_196`,jobdetailsPaymentSectionActive:`_jobdetails__payment-section--active_17onc_196`,"jobdetails__payment-section-head":`_jobdetails__payment-section-head_17onc_200`,jobdetailsPaymentSectionHead:`_jobdetails__payment-section-head_17onc_200`,"jobdetails__payment-section-logo":`_jobdetails__payment-section-logo_17onc_206`,jobdetailsPaymentSectionLogo:`_jobdetails__payment-section-logo_17onc_206`,"jobdetails__payment-icon":`_jobdetails__payment-icon_17onc_210`,jobdetailsPaymentIcon:`_jobdetails__payment-icon_17onc_210`,"jobdetails__payment-container":`_jobdetails__payment-container_17onc_216`,jobdetailsPaymentContainer:`_jobdetails__payment-container_17onc_216`,"jobdetails__payment-subcontainer-item":`_jobdetails__payment-subcontainer-item_17onc_220`,jobdetailsPaymentSubcontainerItem:`_jobdetails__payment-subcontainer-item_17onc_220`,"jobdetails__payment-subcontainer":`_jobdetails__payment-subcontainer_17onc_220`,jobdetailsPaymentSubcontainer:`_jobdetails__payment-subcontainer_17onc_220`,"jobdetails__payment-subcontainer-item-against-chip":`_jobdetails__payment-subcontainer-item-against-chip_17onc_229`,jobdetailsPaymentSubcontainerItemAgainstChip:`_jobdetails__payment-subcontainer-item-against-chip_17onc_229`,"jobdetails__payment-properlyPaymentsEmail
1106Link":`_jobdetails__payment-properlyPaymentsEmailLink_17onc_233`,jobdetailsPaymentProperlyPaymentsEmailLink:`_jobdetails__payment-properlyPaymentsEmailLink_17onc_233`,"jobdetails__payment-subcontainer-item-tooltip":`_jobdetails__payment-subcontainer-item-tooltip_17onc_244`,jobdetailsPaymentSubcontainerItemTooltip:`_jobdetails__payment-subcontainer-item-tooltip_17onc_244`,"jobdetails__payment-caption-info":`_jobdetails__payment-caption-info_17onc_250`,jobdetailsPaymentCaptionInfo:`_jobdetails__payment-caption-info_17onc_250`,"jobdetails__skeleton--container":`_jobdetails__skeleton--container_17onc_256`,jobdetailsSkeletonContainer:`_jobdetails__skeleton--container_17onc_256`,"jobdetails__skeleton--subcontainer":`_jobdetails__skeleton--subcontainer_17onc_260`,jobdetailsSkeletonSubcontainer:`_jobdetails__skeleton--subcontainer_17onc_260`,"jobdetails__recipients--titleSection":`_jobdetails__recipients--titleSection_17onc_264`,jobdetailsRecipientsTitleSection:`_jobdetails__recipients--titleSection_17onc_264`,"jobdetails__recipients--textStyle":`_jobdetails__recipients--textStyle_17onc_269`,jobdetailsRecipientsTextStyle:`_jobdetails__recipients--textStyle_17onc_269`,"jobdetails__recipients--priceStyle":`_jobdetails__recipients--priceStyle_17onc_276`,jobdetailsRecipientsPriceStyle:`_jobdetails__recipients--priceStyle_17onc_276`,"jobdetails__recipients--divider":`_jobdetails__recipients--divider_17onc_283`,jobdetailsRecipientsDivider:`_jobdetails__recipients--divider_17onc_283`},mX=_i.default.bind(pX),hX=({feedback:e,verificationDoneCount:t})=>(0,K.jsxs)(`div`,{className:mX(`jobdetails__summary-section`,{"jobdetails__summary-section--active":!0}),children:[(0,K.jsx)(Dm,{type:[`top`,`light`]}),(0,K.jsxs)(`div`,{className:mX(`jobdetails__summary-section-head`),children:[(0,K.jsx)(`div`,{className:mX(`jobdetails__summary-icon`),children:e.icon}),(0,K.jsx)(`span`,{children:e.text})]}),(0,K.jsx)(`div`,{className:mX(`jobdetails__canorange`),children:e.count?`${e.count} ${U(`jobdetails.of`)} ${t}`:`-`})]});hX.propTypes={feedback:V.default.shape({icon:V.default.element.isRequired,text:V.default.string.isRequired,count:V.default.number.isRequired}).isRequired,verificationDoneCount:V.default.number.isRequired};var gX=_i.default.bind(pX),_X=({title:e,jobsIcon:t,jobForwardedIcon:n,onJobsIconClick:r,children:i=null})=>(0,K.jsxs)(I,{sx:{pt:2,"&:first-of-type":{pt:0}},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1,mb:1},children:[(0,K.jsx)(I,{component:`span`,sx:{fontSize:`12px`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.5px`,color:`var(--color-text-secondary)`,width:`100%`},children:e}),t&&(0,K.jsx)(Ig,{title:`Open Jobs`,children:(0,K.jsx)(I,{sx:{display:`flex`,cursor:`pointer`},children:(0,K.jsx)(Y.Jobs,{width:`16px`,height:`16px`,onClick:r})})}),n&&(0,K.jsx)(Ig,{title:`Job has Forwarding enabled`,children:(0,K.jsx)(I,{sx:{display:`flex`},children:(0,K.jsx)(Y.IcSharedwith,{width:`16px`,height:`16px`})})})]}),i]}),vX=({propertyData:e})=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{children:(0,K.jsx)(Yg,{children:`${e.street} ${e.apartment}`})}),(0,K.jsx)(`div`,{children:(0,K.jsx)(Yg,{children:`${e.zip} ${e.city}`})}),(0,K.jsx)(`div`,{children:(0,K.jsx)(Yg,{children:e.country})}),Cte(e)!==``&&(0,K.jsx)(`div`,{children:(0,K.jsx)(Xg,{type:`grey`,children:Vo(e.details,e.type)})})]}),xye=({jobSnapshotId:e,actualEndTime:t,stripePaymentDetails:n})=>{let{paymentDate:r}=n,{paymentStatus:i,paymentAmount:a,paymentCurrency:o,paymentProcessor:s}=n;r=r?(0,z.default)(r).format(`L`):`-`;let c=t=>{t.preventDefault(),window.location.href=`mailto:${eo.complaintsEmail}?subject=Stop%20Payment%20for%20${e}&body=Hi%20Properly%20team,%0ARequest%20you%20to%20stop%20AutoPayment%20for%20this%20Job%20${e}%0AReason:`},l=t&&z.default.utc(t).add(24,`hours`).isAfter((0,z.default)().utc()),u={stripe:U(`jobdetails.stripe_payment_processed`),clearing:U(`jobdetails.clearing_payment_processed`)},d={stripe:(0,K.jsx)(Y.StripeLogo,{width:`5em`}),clearing:(0,K.jsx)(Y.GetClearingLogo,{width:`5em`})};return(0,K.jsxs)(`div`,{className:gX(`jobdetails__section--small-margin`),children:[(0,K.jsxs)(`div`,{className:gX(`jobdetails__box`,`jobdetails__box--noptb`),children:[(0,K.jsx)(`div`,{className:gX(`jobdetails__payment-section`,{"jobdetails__payment-section--active":!0}),children:(0,K.jsxs)(`div`,{className:gX(`jobdetails__payment-section-head`),children:[(0,K.jsx)(`div`,{className:gX(`jobdetails__payment-icon`),children:(0,K.jsx)(Y.IcDollar,{})}),(0,K.jsx)(`span`,{children:U(`jobdetails.payment_details`)}),(0,K.jsx)(`div`,{className:gX(`jobdetails__payment-section-logo`),children:(0,K.jsx)(Ig,{title:u[s]||``,children:d[s]||null})})]})}),(0,K.jsx)(I,{sx:{position:`relative`},children:(0,K.jsx)(Dm,{type:[`top`,`light`]})}),(0,K.jsxs)(`div`,{className:gX(`jobdetails__payment-container`),children:[(0,K.jsxs)(`div`,{className:gX(`jobdetails__payment-subcontainer`),children:[(0,K.jsxs)(`div`,{className:gX(`jobdetails__payment-subcontainer-item`,`jobdetails__flex`),children:[(0,K.jsx)(Xg,{children:U(`job_request.wizard.amount`)}),(0,K.jsx)(`div`,{className:gX(`jobdetails__payment-subcontainer-item-tooltip`),children:(0,K.jsx)(Ig,{title:U(`jobdetails.payment_amount_info`),children:(0,K.jsx)(Y.IcWarning,{height:`12px`,width:`12px`,byWidth:!0})})})]}),(0,K.jsx)(`div`,{className:gX(`jobdetails__payment-subcontainer-item`),children:(0,K.jsx)(Xg,{children:o&&a?`${o} ${a}`:`-`})})]}),(0,K.jsxs)(`div`,{className:gX(`jobdetails__payment-subcontainer`),children:[(0,K.jsx)(`div`,{className:gX(`jobdetails__payment-subcontainer-item`),children:(0,K.jsx)(Xg,{children:U(`jobdetails.payment_due_date`)})}),(0,K.jsx)(`div`,{className:gX(`jobdetails__payment-subcontainer-item`),children:(0,K.jsx)(Xg,{children:r})})]}),(0,K.jsxs)(`div`,{className:gX(`jobdetails__payment-subcontainer`),children:[(0,K.jsx)(`div`,{className:gX(`jobdetails__payment-subcontainer-item`,`jobdetails__payment-subcontainer-item-against-chip`),children:(0,K.jsx)(Xg,{children:U(`jobdetails.payment_status`)})}),(0,K.jsx)(Xg,{children:i?(0,K.jsx)(gT,{paymentStatus:i}):`-`})]})]})]}),l&&(0,K.jsx)(`div`,{className:gX(`jobdetails__payment-caption-info`),children:(0,K.jsx)(q,{types:[`type-full-primary`,`size-medium`,`width-flex`],onClick:c,children:U(`jobdetails.payment_complaint`)})})]})};function yX(e){return`${e.contact.userData.firstName} ${e.contact.userData.lastName}`}function Sye(e){switch(e){case Ua.Accepted:case Ua.Finished:case Ua.InProgress:return`var(--color-success, #22c55e)`;case Ua.Pending:case Ua.PendingChanges:case Ua.Viewed:return`var(--color-warning, #f59e0b)`;case Ua.Declined:case Ua.DeclinedChanges:case Ua.CanceledByHost:case Ua.CanceledByCleaner:return`var(--color-error, #ef4444)`;case Ua.AcceptedByOtherCleaner:return`var(--color-text-tertiary, #9ca3af)`;default:return`var(--color-text-tertiary, #9ca3af)`}}
1106function bX(e,t,n){let r=(0,z.default)(t).tz(n).format(`L`);switch(e){case Ua.Pending:return U(`jobdetails.pending`);case Ua.PendingChanges:return U(`jobdetails.pendingChanges`);case Ua.Declined:case Ua.DeclinedChanges:return U(`jobdetails.declined`);case Ua.Accepted:return`${U(`jobdetails.accepted`)} ${r}`;case Ua.InProgress:return U(`jobdetails.acceptedreal`);case Ua.Finished:return`${U(`jobdetails.finished_on`)} ${r}`;case Ua.Viewed:return U(`jobstatus.seen`);case Ua.AcceptedByOtherCleaner:return U(`jobstatus.accepted_by_other_user`);case Ua.CanceledByHost:case Ua.CanceledByCleaner:return U(`jobdetails.canceled`);default:return``}}var xX=({cleaners:e,timezone:t,onClick:n,showButton:r,sagaCleaner:i,setOpenMore:a,isOpen:o,proMarketProperty:s,contacts:c={}})=>{let l=(0,K.jsxs)(`div`,{children:[(0,H.default)((0,So.default)(e,e=>e.request.status!==3),e=>{let r=bX(e.request.status,e.request.date,t),i=Sye(e.request.status),{userData:a}=e.contact||{},{isSuggested:o,contactId:l}=e.request||{},u=!!c[e?.request?.contactId],d=(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`6px`},children:[(0,K.jsx)(I,{sx:{width:8,height:8,borderRadius:`50%`,backgroundColor:i,flexShrink:0}}),(0,K.jsx)(`span`,{children:r})]});return(0,K.jsx)(Kj,{picture:{text:Go(a.firstName,a.lastName),picture:a.pictureUrl},type:`jobdetails`,noHover:!n,onClick:()=>n&&n(l),active:!1,note:e.request.note,title:yX(e),subTitle:d,showProBadge:s&&o,disabled:!u,tooltipContent:u?null:U(`job_request.assigned_external_cleaner`)},l)}),r&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(_m,{}),(0,K.jsx)(q,{onClick:()=>i(),types:[`type-border-primary`,`size-medium`,`width-flex`],"data-testid":`send-to-more-button`,children:U(`jobdetails.send_to_more`)})]})]});return(0,K.jsx)(`div`,{children:(e=>e?(0,K.jsx)(uM,{maxHeight:1e4,peekHeight:`98px`,color:`grey`,open:o,onClick:()=>a(),children:l}):l)((0,fc.default)(e,e=>e.request.status===3)!==void 0&&e.length>1)})},SX=({tasksDone:e,totalTaskCount:t,verificationDoneCount:n,totalVerificationCount:r,actualStartTime:i=null,timezone:a,actualEndTime:o=null,cleaners:s,locationStatus:c,commentsViewed:l,commentsTotal:u,thumbsUp:d,thumbsDown:f,proMarketProperty:p})=>{let m={finished:1,accepted:2,inProgress:2,canceledByCleaner:3},h=(0,fc.default)((0,So.default)((0,H.default)((0,xo.default)(s,e=>(0,eb.default)(Object.keys(m),e.request.status)>=0),e=>{let t=(0,eb.default)(Object.keys(m),e.request.status),n=m[Object.keys(m)[t]];return{...e,request:{...e.request,statusPriority:n}}}),e=>e.request.statusPriority),e=>e.request.statusPriority===1||e.request.statusPriority===2||e.request.statusPriority===3),g=null;if(h){let{status:e,date:t}=h?.request||{},{firstName:n,lastName:r,pictureUrl:i}=h?.contact?.userData||{},o=bX(e,t,a),s=yX(h);g=(0,K.jsx)(Kj,{picture:{text:Go(n,r),picture:i},type:`jobdetails`,noHover:!0,picRight:!0,onClick:()=>{},active:!1,subTitleColor:!0,title:s,subTitle:o,showProBadge:p&&h.request.isSuggested})}let _=r||0,v=n-(d+f),y=[{id:1,count:d,icon:(0,K.jsx)(Y.IcThumbsUp3,{}),text:U(`jobdetails.thumbs_up`)},{id:2,count:f,icon:(0,K.jsx)(Y.IcThumbsDown3,{}),text:U(`jobdetails.thumbs_down`)},{id:3,count:v,icon:(0,K.jsx)(Y.IcMissingFeedback,{}),text:U(`jobdetails.missing_feedback`)}];return(0,K.jsxs)(`div`,{className:gX(`jobdetails__box`,`jobdetails__box--noptb`),children:[g,(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,py:2,gap:2},children:[(0,K.jsxs)(I,{sx:{flex:`0 0 auto`,textAlign:`center`,minWidth:80,opacity:i?1:.5},children:[(0,K.jsx)(I,{sx:{fontSize:`12px`,color:`var(--color-text-secondary)`,mb:.5},children:i?(0,z.default)(i).tz(a).format(`MM/DD/YY`):`â`}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,gap:.5,fontSize:`16px`,fontWeight:600,color:i?`var(--color-primary)`:`var(--color-text-tertiary)`},children:[i?(0,z.default)(i).tz(a).format(`LT`):`â`,i&&(0,K.jsx)(kM,{status:c.start})]}),(0,K.jsx)(I,{sx:{fontSize:`13px`,color:`var(--color-text-secondary)`,mt:.5},children:U(`jobdetails.started`)})]}),(0,K.jsx)(I,{sx:{flex:1,height:2,backgroundColor:o?`var(--color-primary)`:`var(--color-border)`,borderRadius:1,position:`relative`,mx:1,"&::before":{content:`""`,position:`absolute`,left:0,top:`50%`,transform:`translateY(-50%)`,width:8,height:8,borderRadius:`50%`,backgroundColor:i?`var(--color-primary)`:`var(--color-border)`},"&::after":{content:`""`,position:`absolute`,right:0,top:`50%`,transform:`translateY(-50%)`,width:8,height:8,borderRadius:`50%`,backgroundColor:o?`var(--color-primary)`:`var(--color-border)`}}}),(0,K.jsxs)(I,{sx:{flex:`0 0 auto`,textAlign:`center`,minWidth:80,opacity:o?1:.5},children:[(0,K.jsx)(I,{sx:{fontSize:`12px`,color:`var(--color-text-secondary)`,mb:.5},children:o?(0,z.default)(o).tz(a).format(`MM/DD/YY`):`â`}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,gap:.5,fontSize:`16px`,fontWeight:600,color:o?`var(--color-primary)`:`var(--color-text-tertiary)`},children:[o?(0,z.default)(o).tz(a).format(`LT`):`â`,o&&(0,K.jsx)(kM,{status:c.end})]}),(0,K.jsx)(I,{sx:{fontSize:`13px`,color:`var(--color-text-secondary)`,mt:.5},children:U(`jobdetails.finished`)})]})]}),_>0&&(0,K.jsxs)(`div`,{className:gX(`jobdetails__summary-section`,{"jobdetails__summary-section--active":!0}),children:[(0,K.jsx)(Dm,{type:[`top`,`light`]}),(0,K.jsxs)(`div`,{className:gX(`jobdetails__summary-section-head`),children:[(0,K.jsx)(`div`,{className:gX(`jobdetails__summary-icon`),children:(0,K.jsx)(Y.IcPhotosJobdetails,{})}),(0,K.jsx)(`span`,{children:U(`jobdetails.photos`)})]}),(0,K.jsx)(`div`,{className:gX(`jobdetails__canorange`),children:`${n||0} ${U(`jobdetails.of`)} ${_}`})]}),t>0&&(0,K.jsxs)(`div`,{className:gX(`jobdetails__summary-section`,{"jobdetails__summary-section--active":!0}),children:[(0,K.jsx)(Dm,{type:[`top`,`light`]}),(0,K.jsxs)(`div`,{className:gX(`jobdetails__summary-section-head`),children:[(0,K.jsx)(`div`,{className:gX(`jobdetails__summary-icon`),children:(0,K.jsx)(Y.IcTaskRemain,{})}),(0,K.jsx)(`span`,{children:U(`jobdetails.task_complete`)})]}),(0,K.jsx)(`div`,{className:gX(`jobdetails__canorange`),children:`${e} ${U(`jobdetails.of`)} ${t}`})]}),u>0&&(0,K.jsxs)(`div`,{className:gX(`jobdetails__summary-section`,{"jobdetails__summary-section--active":!0}),children:[(0,K.jsx)(Dm,{type:[`top`,`light`]}),(0,K.jsxs)(`div`,{className:gX(`jobdetails__summary-section-head`),children:[(0,K.jsx)(`div`,{className:gX(`jobdetails__summary-icon`),children:(0,K.jsx)(Y.IcComments,{})}),(0,K.jsx)(`span`,{children:U(`jobdetails.comments_viewed`)})]}),(0,K.jsx)(`div`,{className:gX(`jobdetails__canorange`),children:`${l} ${U(`jobdetails.of`)} ${u}`})]}),r>0&&y.map(e=>(0,K.jsx)(hX,{feedback:e,verificationDoneCount:n},e.id))]})};_X.propTypes={title:V.default.string.isRequired,children:V.default.node},vX.propTypes={propertyData:V.default.shape().isRequired},xX.propTypes={cleaners:V.default.arrayOf(V.default.shape()).isRequired,timezone:V.default.string.isRequired,onClick:V.default.func.isRequired,showButton:V.default.bool.isRequired,sagaCleaner:V.default.func.isRequired,setOpenMore:V.default.func.isRequired,isOpen:V.default.bool.isRequired},SX.propTypes={tasksDone:V.default.number.isRequired,totalTaskCount:V.default.number.isRequired,verificationDoneCount:V.default.number.isRequired,totalVerificationCount:V.default.number.isRequired,actualStartTime:V.default.string,timezone:V.default.string.isRequired,actualEndTime:V.default.string,cleaners:V.default.arrayOf(V.default.shape()).isRequired,locationStatus:V.default.shape().isRequired,commentsViewed:V.default.number.isRequired,commentsTotal:V.default.number.isRequired,thumbsUp:V.default.number.isRequired,thumbsDown:V.default.number.isRequired};var CX=class{constructor({objectId:e,actualStartTime:t,actualEndTime:n,taskDoneCount:r,verificationDoneCount:i,problemCount:a,steps:o,problems:s,endLocation:c,startLocation:l,jobSteps:u,reports:d}){this.objectId=e,this.actualStartTime=t,this.actualEndTime=n,this.taskDoneCount=r,this.verificationDoneCount=i,this.problemCount=a,this.steps=o||[],this.jobSteps=u||[],this.problems=s||[],this.reports=d||[],this.startLat=l?.latitude,this.startLng=l?.longitude,this.endLat=c?.latitude,this.endLng=c?.longitude}get startGeoPoint(){return this.startLat&&this.startLng?new FM.default.GeoPoint({latitude:this.startLat,longitude:this.startLng}):void 0}getLocationStatus(e,t){try{let n=e?new FM.default.GeoPoint({latitude:e.latitude,longitude:e.longitude}):void 0;return!n||!t?0:n.kilometersTo(t)<=.5?1:2}catch{return R.default.error(`Error getting location status`),0}}getAllLocationStatuses(e){let t=this.getLocationStatus(e,this.startGeoPoint),n=this.endLat&&this.endLng?new FM.default.GeoPoint({latitude:this.endLat,longitude:this.endLng}):void 0;
1106return{start:t,end:this.getLocationStatus(e,n)}}get problemsComputed(){return(0,Lb.default)(this.problems)?this.problems:(0,If.default)(this.steps,(e,t)=>t.problems&&t.problems.length>0?(0,aC.default)(e,t.problems):e,[])}get problemsNotes(){return(0,H.default)(this.problemsComputed,e=>e.note||``)}getId(){return this.objectId}getSteps(){return this.steps}},Cye=()=>(0,K.jsx)(`svg`,{focusable:`false`,x:`0px`,y:`0px`,width:`94.102px`,height:`94.103px`,viewBox:`0 0 94.102 94.103`,xmlSpace:`preserve`,fill:`#7A5230`,children:(0,K.jsx)(`g`,{children:(0,K.jsx)(`g`,{children:(0,K.jsx)(`path`,{d:`M81.397,30.116c2.378-9.129-0.695-21.377-9.923-25.288c-0.272-0.115-0.533-0.102-0.765-0.021 c-0.981-1.742-2.179-3.288-3.874-4.422C66.679,0.281,66.507,0.202,66.141,0c0.225,1.727,0.424,3.273,0.623,4.819 c-0.118,0.077-0.237,0.153-0.356,0.23c-1.922-1.5-3.775-3.146-6.681-3.398c0.559,0.889,1.021,1.537,1.394,2.234 c1.206,2.256,1.72,2.141-1.106,3.487c-4.121,1.962-8.231,3.949-11.829,6.811c-0.956,0.761-1.864,1.614-2.659,2.541 c-2.569,3-1.759,6.691,1.833,8.326c2.729,1.243,5.488,1.123,8.163-0.202c1.775-0.88,3.481-1.899,5.258-2.78 c0.953-0.472,1.96-0.884,2.987-1.144c1.803-0.455,3.008,0.275,3.312,2.103c0.85,5.112-1.206,8.135-6.153,8.586 c-3.215,0.293-6.495,0.134-9.728-0.086c-4.772-0.325-9.514-0.568-14.149,0.919c-4.9,1.572-8.628,4.634-11.179,9.082 c-0.568,0.991-1.25,1.454-2.355,1.678c-7.824,1.584-12.52,6.933-13.181,14.886c-0.43,5.184,0.889,10.074,2.544,14.889 c0.989,2.877,1.891,5.744,1.405,8.826c-0.187,1.184-0.578,2.334-0.98,3.906c1.176-0.771,2.224-1.458,3.329-2.184 c0.779,2.34-0.761,4.033-1.877,6.144c0.656-0.166,1.058-0.226,1.428-0.366c4.048-1.558,6.226-5.068,6.425-9.807 c0.202-4.837-1.122-9.332-2.633-13.818c-1.3-3.857-2.31-7.756-1.704-11.896c0.536-3.657,2.387-6.496,5.271-8.72 c0.112-0.086,0.266-0.118,0.266-0.118c-0.106,1.908-0.392,3.836-0.285,5.741c0.254,4.516,1.909,8.471,5.218,11.653 c0.629,0.604,1.24,1.228,1.854,1.847c1.68,1.695,2.583,3.75,2.974,6.094c1.074,6.43,1.702,12.894,1.684,19.416 c-0.004,1.457-0.001,2.916-0.001,4.367c1.367,0.162,1.605-0.162,1.622-1.562c0.108-8.934,0.5-17.844,2.756-26.555 c0.107-0.416,0.253-0.822,0.665-1.293c0.442,1.287,0.958,2.553,1.313,3.861c1.29,4.748,1.519,9.625,1.606,14.508 c0.057,3.166,0.011,6.334,0.011,9.545c1.125,0.217,1.579-0.088,1.641-1.156c0.338-5.779,0.542-11.575,1.16-17.326 c0.395-3.684,1.423-7.298,2.17-10.943c0.163-0.789,0.593-1.148,1.456-1.262c4.01-0.529,8.017-1.096,12.006-1.762 c1.213-0.203,1.792,0.195,2.277,1.23c1.582,3.363,2.251,6.951,2.455,10.602c0.265,4.711,0.297,9.433,0.436,14.15 c0.019,0.627,0.067,1.252,0.104,1.899c1.118,0.146,1.385-0.401,1.394-1.308c0.069-7.267,0.434-14.512,1.721-21.682 c0.276-1.539,0.67-3.058,1.01-4.587c0.167-0.015,0.334-0.028,0.502-0.042c0.558,2.279,1.259,4.534,1.644,6.842 c0.936,5.616,0.872,11.299,0.815,16.971c-0.004,0.397-0.065,0.808,0.014,1.188c0.094,0.451,0.294,1.241,0.477,1.249 c0.812,0.037,0.949-0.623,0.979-1.312c0.128-3.131,0.295-6.26,0.405-9.393c0.314-8.854,1.994-17.374,5.758-25.466 c1.007-2.163,1.489-4.581,2.086-6.914c0.197-0.775,0.127-1.676-0.034-2.476C82.959,37.414,82.151,33.771,81.397,30.116z M61.027,10.708c-0.041-2.711,1.382-4.466,3.486-4.426C63.377,7.724,62.186,9.236,61.027,10.708z M78.735,29.269 c-0.276,0.584-0.978,0.967-1.486,1.44c1.312-2.78,2.388-5.428,1.384-8.488c-0.576,0.408-0.899,0.944-1.343,1.35 c-0.446,0.409-1.009,0.689-1.521,1.026c1.67-3.2,1.782-10.133-0.149-11.416c-0.433,1.855-1.226,3.47-2.698,4.561 c0.204-1.515,0.487-3.018,0.587-4.533c0.1-1.488,0.028-2.994,0.024-4.849c0.25,0.195,0.478,0.414,0.714,0.625 c0.493,0.533,0.933,1.004,1.279,1.528c3.066,4.636,4.398,9.801,4.313,15.309C79.821,26.984,79.25,28.183,78.735,29.269z`})})})}),wye=()=>(0,K.jsxs)(`svg`,{x:`0px`,y:`0px`,width:`52px`,height:`52px`,viewBox:`0 0 574.202 574.203`,xmlSpace:`preserve`,children:[(0,K.jsx)(`g`,{children:(0,K.jsx)(`g`,{children:(0,K.jsx)(`path`,{d:`M569.243,153.151c-4.504-8.38-9.901-16.279-14.854-24.423c-0.543-0.894-0.608-2.081-0.865-3.137 c-0.229-0.955-0.355-1.934-0.637-2.873c-1.342-4.492-4.476-8.225-5.174-13.081c-0.306-2.113-1.941-4.264-3.492-5.908 c-2.093-2.215-4.651-3.994-7.074-5.883c-1.812-1.412-3.636-2.823-5.504-4.162c4.378-5.855,8.046-14.227-1.718-18.854 c-16.063-7.609-9.895-10.07-28.74,0c-15.324,8.184-21.934-4.692-29.775,1.534c-5.418-3.647-10.942-7.148-16.182-11.036 c-4.626-3.431-9.693-3.705-14.989-3.391c-0.979,0.057-2.428,0.673-2.767,1.432c-0.905,2.024-1.57,4.227-1.885,6.422 c-0.837,5.855,2.142,10.894,3.904,16.161c0.673,2.011,2.072,3.766,2.982,5.712c1.139,2.423,2.236,4.875,3.125,7.393 c0.
1106058,0.163,0.106,0.326,0.159,0.489c-6.062,1.983-10.693,3.583-10.514,11.632c0.371,16.483-29.535,11.122-27.051,28.739 c2.485,17.622-14.61-2.484-23.668,16.063c-9.058,18.548-18.597-12.681-47.34,8.454c0,0-16.907-15.214-32.122,4.227 c0,0-23.668-21.979-40.576-5.071c-16.907,16.908-21.979-18.597-42.265-1.689c0,0-18.597-19.441-34.66-2.538 c-16.063,16.908-54.945-24.513-68.471,9.298c0,0-17.915-4.32-20.29,7.609c0,0-26.34-6.087-26.206,21.979 c0,0-38.886,37.193,0,56.639c0,0-9.298,8.454,4.227,10.987c10.094,1.893-12.758,27.316-4.292,39.401 c-0.625,0.362-1.232,0.897-1.232,1.306c-0.004,3.578-2.636,4.691-5.141,6.104c-3.517,1.986-7.523,3.574-10.261,6.364 c-3.75,3.819-6.63,8.527-9.645,13.016c-1.693,2.525-2.75,5.471-4.357,8.07c-2.93,4.745-6.557,9.143-6.006,15.283 c0.082,0.882-0.816,1.832-1.183,2.778c-0.747,1.942-1.591,3.864-2.114,5.867c-0.706,2.697-1.02,5.496-1.734,8.188 c-0.673,2.538-1.562,5.027-2.534,7.467c-0.53,1.338-1.265,2.677-2.211,3.749c-0.881,1-1.289,1.494-0.224,2.738 c0.718,0.836,1.13,2.448,0.865,3.509c-0.616,2.473-2.162,4.753-2.538,7.233c-0.58,3.84-0.567,7.776-0.677,11.678 c-0.114,4.071,0.91,8.184-1.098,12.146c-1.983,3.913-3.852,7.907-5.374,12.016c-0.51,1.383,0.188,3.215,0.343,4.843 c0.106,1.073,0.71,2.428,0.27,3.162c-2.044,3.407-4.337,6.361-4.133,10.947c0.135,3.088-1.917,6.405-3.423,9.408 c-2.016,4.019-3.084,8.192-3.623,12.48c-6.116,6.39-8.332,16.271-4.851,24.525c1.852,4.394,4.839,8.254,8.886,10.856 c2.375,1.526,4.741,2.505,7.564,2.733l7.414,0.6c3.068,0.249,5.634-2.75,5.634-5.634c0-0.694-0.122-1.334-0.338-1.922 c0.024-0.102,0.045-0.208,0.069-0.311c1,1.722,2.803,3.036,4.818,2.8c1.481-0.176,2.958-0.352,4.435-0.526 c4.157-0.494,7.136-4.427,4.867-8.479l-10.6-18.939c0.514-1.347,1.008-2.701,1.53-4.048c2.873-7.421,6.292-14.423,13.468-18.805 c0.902-0.551,1.367-1.893,1.914-2.938c2.501-4.798,4.39-10.036,7.584-14.312c3.272-4.386,4.807-9.294,6.288-14.235 c1.709-5.712,2.827-11.624,3.876-17.503c1.709-9.58,3.146-19.204,4.716-28.809c0.665-4.06,1.567-8.091,5.745-10.058 c8.038-3.782,15.137-8.845,21.437-15.079c0.163-0.159,0.506-0.135,1.199-0.302c0.294,1.484,0.763,2.896,0.824,4.324 c0.302,6.822,0.486,13.651,0.743,20.474c0.024,0.628,0.249,1.252,0.404,1.873c0.233,0.938,0.747,1.885,0.689,2.799 c-0.29,4.712,0.571,8.841,4.757,11.774c2.326,1.632,2.44,5.279,0.784,7.548c-0.612,0.841-0.829,2.407-0.502,3.403 c0.857,2.631,2.538,5.038,3.121,7.703c1.273,5.817,4.284,10.66,7.617,15.39c3.901,5.54,6.549,11.738,7.075,18.389 c0.384,4.847,2.419,8.567,5.553,11.55c5.651,5.374,9.176,11.686,10.934,19.201c0.616,2.635,1.338,5.238,2.289,7.752 c-1.824,2.129-1.93,5.728,0.265,7.678c3.382,3.007,6.765,6.011,10.147,9.018c2.293,2.04,5.704,2.269,7.968,0 c0.494-0.494,0.877-1.086,1.15-1.73h1.465c0.706,1.645,2.215,3.023,3.823,3.468c3.244,0.894,5.752-1.102,6.932-3.937 c0.261-0.629,0.494-1.265,0.71-1.91c0.637-1.012,0.942-2.231,0.906-3.443c0.796-4.047,0.714-8.274-0.22-12.293 c-0.371-5.259-0.739-10.522-1.208-15.773c-0.314-3.524-0.469-7.132-1.379-10.514c-0.991-3.681-2.758-7.152-4.219-10.702 c-0.461-1.118-0.787-2.415-1.575-3.252c-2.562-2.717-3.162-6.038-3.558-9.539c-0.335-2.966-0.763-5.936-1.416-8.841 c-1.142-5.084-2.64-10.09-3.696-15.19c-0.604-2.917-0.722-5.952-0.902-8.943c-0.151-2.546,0.004-5.006,2.118-6.997 c0.722-0.681,1.065-2.007,1.155-3.076c0.175-2.187,1.171-3.696,3.17-4.418c2.921-1.058,4.251-3.13,4.533-6.133 c0.078-0.828,0.649-1.607,0.996-2.411c0.714,0.433,1.428,0.86,2.525,1.525c0.51-1.627,1.689-3.378,1.322-4.695 c-0.551-1.987,0.224-2.604,1.571-3.432c1.869-1.15,4.3-1.982,3.215-5.124c-0.163-0.474,0.485-1.637,1.024-1.877 c2.224-0.987,1.926-2.922,2.073-4.725c0.09-1.122,0.143-2.244,0.282-3.362c0.338-2.713,1.42-4.888,2.901-6.781 c8.188,5.578,19.241,8.006,30.833-4.32c1.065,0.155,2.125,0.306,3.194,0.444c1.714,0.225,3.427,0.445,5.141,0.657 c5.496,11.428,19.669,28.527,50.282,2.583c2.566-9.764,29.278,33.419,60.053,21.636c4.578-1.754,7.169-5.59,10.58-7.136 c0.045,7.446-0.339,14.896-0.38,22.347c-0.008,1.587,0.266,3.545,1.199,4.68c1.465,1.778,1.094,2.896-0.461,3.916 c-2.125,1.399-2.529,2.86-0.729,4.799c1.542,1.668,1.261,3.035-1.041,3.912c0.571,0.547,1.008,0.902,1.371,1.318 c2.546,2.917,2.395,5.663,0.057,8.567c-0.922,1.146-1.248,2.881-1.525,4.407c-0.453,2.484-0.449,5.059-0.979,7.519 c-0.934,4.342-1.22,8.568-0.453,13.036c0.47,2.713-0.375,5.732-0.987,8.535c-0.596,2.733-1.889,5.316-2.456,8.05 c-1.102,5.312-1.762,10.49,0.931,15.178c1.102,14.137,10.905,27.287,24.872,31.453c2.974,0.889,5.214-0.58,6.274-2.714 c1.824,0.151,3.651,0.298,5.476,0.433c0.184,0.013,0.347,0.024,0.522,0.033c0.032,0.057,0.065,0.114,0.098,0.171 c3.627,6.296,13.366,0.62,9.73-5.688l-4.875-8.466c-0.298-0.861-0.723-1.697-1.322-2.505c-0.176-0.241-0.354-0.478-0.534-0.719 c-2.199-3.814-4.395-7.634-6.594-11.448c-0.392-0.686-0.86-1.22-1.375-1.636c-0.293-0.792-0.555-1.604-0.775-2.444 c2.905-2.473,2.624-5.654,1.906-9.005c-0.262-1.216-0.27-2.558-0.074-3.79c0.796-4.892,2.697-9.837,2.33-14.618 c-0.399-5.211,4.974-8.699,3.052-13.9c-0.017-0.05,0.388-0.192,0.416-0.331c1.041-4.884,2.709-9.751,1.326-14.802 c-0.429-1.571,0.196-2.293,0.991-3.419c1.086-1.526,2.432-3.428,2.366-5.117c-0.224-5.728,2.726-10.163,5.101-14.908 c1.232-2.464,2.627-5.043,2.986-7.703c0.841-6.222,1.024-12.529,1.656-18.784c0.114-1.117,0.837-2.606,1.738-3.121 c2.154-1.236,5.553
1106-0.069,7.104,2.028c2.068,2.799,6.409,4.214,8.331,3.146c2.036,0.95,3.782,1.722,5.487,2.57 c4.762,2.374,9.564,4.676,14.235,7.218c2.154,1.171,2.587,5.238,6.386,3.79c0.244-0.094,0.734,0.514,1.134,0.755 c1.592,0.959,3.334,1.729,4.762,2.885c2.741,2.211,5.871,4.263,7.748,7.106c1.285,1.942,0.824,5.104,0.954,7.732 c0.298,5.871,0.453,11.746,0.71,17.621c0.163,3.741,0.396,7.479,0.608,11.22c0.057,1.024,0.102,2.053,0.24,3.068 c0.804,5.835,2.265,11.665,2.302,17.503c0.053,8.597-0.824,17.206-1.474,25.798c-0.049,0.665-0.081,1.314-0.064,1.942 c-0.506,0.257-0.992,0.604-1.444,1.053c-2.008,2.008-2.383,6.026,0,7.969c9.931,8.094,22.207,11.346,34.847,9.232 c2.624-0.437,4.207-3.256,4.108-5.777c0.233-1.252,0.05-2.55-0.75-3.586c-2.991-3.88-5.981-7.765-8.973-11.645 c-1.439-4.365-1.285-8.319-0.673-12.705c0.894-6.397,0.91-12.921,1.791-19.318c0.935-6.773,2.611-13.428,1.987-20.376 c-0.412-4.573-0.147-9.213-0.62-13.778c-0.335-3.223,0.738-6.81-1.967-9.62c-0.281-0.294-0.139-1.453,0.212-1.828 c2.33-2.497,0.91-4.807-0.057-7.274c-0.979-2.497-2.436-5.137-2.342-7.667c0.452-12.101-2.228-23.606-5.806-34.998 c-0.646-2.052-1.645-4.015-2.114-6.104c-1.146-5.096-2.076-10.241-3.097-15.361c-1.31-6.561,0.298-12.076,5.455-16.605 c1.383-1.216,2.399-3.183,2.905-4.994c0.469-1.673,0.677-3.415,0.897-5.157c6.634-2.799,11.701-8.768,7.891-21.942 c1.469-3.688,2.632-7.483,3.529-11.379c10.159,2.109,22.465-0.649,8.683-34.26c4.015-9.854,12.606-15.055,19.543-22.012 c0.191-0.192,0.478-0.298,0.738-0.404c4.528-1.799,9.005-3.774,13.627-5.288c1.616-0.53,3.754-0.338,5.402,0.237 c6.536,2.281,12.905,2.473,18.947-1.179c1.742-1.053,3.085-2.868,4.398-4.5c1.485-1.844,2.488-4.113,4.125-5.781 c4.137-4.219,4.929-7.124,2.762-12.408c2.04-0.693,3.905-1.668,3.097-4.308C572.553,162.825,571.626,157.59,569.243,153.151z`,fill:`#a432c7`})})}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{}),(0,K.jsx)(`g`,{})]});window.__enableEnvironment=()=>vi.set(`properlyenvironmentenabled`,!0);var wX=()=>vi.get(`properlydebugmode`)||!1;function Tye(){let[e,t]=(0,B.useState)(null),[n,r]=(0,B.useState)(!1),[i,a]=(0,B.useState)(null),[o,s]=(0,B.useState)(null),c=()=>(e||`production`).toLowerCase().indexOf(`prod`)!==-1||(o||`production`).toLowerCase().indexOf(`prod`)!==-1,l=()=>(i?.env?.subDomainEnv?.[0]??{}).env,u=()=>e===l(),d=()=>vi.get(`properlyenvironmentenabled`),f=()=>!c()||d(),p=()=>(i?.env?.all||[]).map(e=>({value:e.env,title:e.env})),m=e=>{ji(e),window.location.reload()},h=()=>{Mi(),window.location.reload()},g=()=>{try{return(i?._versions_||[]).find(e=>e&&e.name===`@properly/desktop`)||{}}catch(e){return R.default.error(`Error trying to get version of application`,e),`???`}},_=()=>i?._build_||{},v=e=>{vi.set(`properlylogging`,Number.isNaN(Number(e))?0:Number(e))},y=()=>vi.get(`properlylogging`)||0,b=e=>{vi.set(`properlydebugmode`,!!e)},x=()=>{let e=Number(y()||0);return!Number.isNaN(e)&&e!==0},S=e=>{let t=d()?1:4;e.detail>=t&&r(!0)},C=()=>{r(!1)},w=()=>{b(!wX()),window.location.reload()},T=(e,t=1)=>{v(e?0:t),window.location.reload()};(0,B.useEffect)(()=>{let e=e=>{e?.data===`toggleDebugMode`&&w()};return Gi().then(e=>{a(e),t(e?.env?.env),s(e?.ENVIRONMENT)}),window.addEventListener(`message`,e,!1),()=>{window.removeEventListener(`message`,e)}},[]),(0,B.useEffect)(()=>{i&&setTimeout(()=>{R.default.info(`Is production`,c())})},[i]);let E=()=>{let t=x();return(0,K.jsxs)(I,{sx:{display:`flex`},children:[(0,K.jsxs)(I,{sx:{flexGrow:1},children:[u()?(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(qg,{children:[`Environment: `,(0,K.jsx)(`strong`,{children:o})]}),(0,K.jsx)(`br`,{})]}):(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(qg,{children:[`Active Environment: `,(0,K.jsx)(`strong`,{children:o})]}),(0,K.jsx)(`br`,{}),(0,K.jsxs)(qg,{children:[`Actual Environment: `,(0,K.jsx)(`strong`,{children:l()})]}),(0,K.jsx)(`br`,{})]}),(0,K.jsxs)(qg,{children:[`Version: `,(0,K.jsx)(`strong`,{children:g().version})]}),(0,K.jsx)(`br`,{}),(0,K.jsx)(`br`,{}),(0,K.jsxs)(qg,{children:[`Last built: `,(0,K.jsx)(`strong`,{children:_().buildTimeFromNow})]}),(0,K.jsx)(`br`,{}),(0,K.jsxs)(qg,{children:[`Build date: `,(0,K.jsx)(`strong`,{children:_().buildTimestamp})]}),(0,K.jsx)(`br`,{}),(0,K.jsx)(`br`,{})]}),(0,K.jsxs)(I,{sx:{width:`220px`},children:[(0,K.jsx)(q,{type:`button`,types:[`size-large`,`size-full`,t?`type-border-primary`:`type-full-primary`],onDoubleClick:()=>v(2),onClick:()=>T(t),children:t?`Disable Logging`:`Enable Logging`}),!t&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`br`,{}),(0,K.jsx)(q,{type:`button`,types:[`size-large`,`size-full`,t?`type-border-primary`:`type-full-primary`],onClick:()=>T(t,2),children:`Enable redux logging`})]}),(0,K.jsx)(`br`,{}),(0,K.jsx)(q,{type:`button`,types:[`size-large`,`size-full`,wX()?`type-border-primary`:`type-full-primary`],onClick:w,children:wX()?`Disable debug mode`:`Enable debug mode`}),(0,K.jsx)(`br`,{}),Ai()&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(q,{type:`button`,types:[`size-large`,`size-full`,`type-full-primary`],onClick:h,children:`Reset environment`}),(0,K.jsx)(`br`,{})]}),(0,K.jsx)(Yg,{children:`Set environment`}),(0,K.jsx)(Yf,{onChange:e=>m(e.target.value),value:e,options:p(),type:`select`})]})]})},D=()=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`br`,{}),(0,K.jsx)(qg,{children:`Config:`}),(0,K.jsx)(I,{component:`pre`,sx:{color:e=>e.palette.mode===`dark`?`#e0e0e0`:`#212121`,whiteSpace:`pre-wrap`,wordBreak:`break-word`},children:JSON.stringify(i,null,2)})]});if(!f())return null;let ee={position:`absolute`,fontWeight:700,top:`64px`,fontSize:`12px`,color:u()?`#FF5722`:`#7E57C2`,width:`64px`,textAlign:`center`,overflow:`hidden`,curs
1106or:`default`,zIndex:1e3};return(0,K.jsxs)(I,{sx:{"@media print":{display:`none`}},children:[(0,K.jsx)(Ig,{title:g().version,placement:`right`,onClick:S,style:ee,children:o}),(0,K.jsx)(X,{height:600,width:800,show:n,block:!0,variableContentHeight:!0,onClose:C,actionsRight:[{label:`Close`,action:()=>C()}],children:(0,K.jsxs)(I,{sx:{padding:`24px`},children:[E(),D(),(0,K.jsx)(Cm,{}),(0,K.jsx)(Cye,{}),(0,K.jsx)(wye,{}),(0,K.jsx)(Cm,{})]})})]})}var TX=({jsonData:e,displayId:t,mode:n})=>{let[r,i]=(0,B.useState)(!1),a=B.useRef(t);(0,B.useEffect)(()=>{t!==a.current&&(i(!1),a.current=t)},[t]);let o={jobDetail:`Job`,property:`Property`,contact:`Contact`};return(0,K.jsxs)(I,{sx:{border:`solid`,borderWidth:`thin`,borderRadius:`5px`,padding:`6px`,maxWidth:`680px`,margin:`auto`},children:[(0,K.jsx)(hm,{}),(0,K.jsx)(Yg,{children:`You have debug mode on, hence you see this data`}),(0,K.jsx)(_m,{}),(0,K.jsx)(Xg,{children:r?`Copied!`:`Click the ${o[n]} ID to copy`}),(0,K.jsx)(hm,{}),(0,K.jsx)(I,{sx:{display:`flex`},children:(0,K.jsxs)(Yg,{onClick:()=>{i(!0),navigator.clipboard.writeText(t)},children:[o[n],`\xA0ID :\xA0`,t]})}),(0,K.jsx)(_m,{}),(0,K.jsxs)(an,{children:[(0,K.jsxs)(Bn,{sx:{color:`var(--color-text-secondary)`},children:[`Click to Show/Hide `,o[n],` JSON`]}),(0,K.jsx)(Ln,{sx:{color:`var(--color-text)`},children:(0,K.jsx)(`pre`,{children:JSON.stringify(e,null,2)})})]})]})};TX.propTypes={jsonData:V.default.shape({}).isRequired,displayId:V.default.string.isRequired,mode:V.default.string.isRequired};var Eye=()=>(0,K.jsx)(I,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`},children:(0,K.jsx)(dY,{})}),EX=_i.default.bind(pX),DX={backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-xl)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-md)`,p:2.5},OX=({closeJobRequestDetails:e})=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Lj,{onClose:e,middleText:(0,K.jsx)(J,{width:80,height:24,variant:`text`}),icon:Y.IcCloseLightGray}),(0,K.jsx)(Jj,{children:(0,K.jsxs)(I,{sx:{mt:`12px`},children:[(0,K.jsxs)(I,{sx:{...DX,mb:2.5,p:3},children:[(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,mb:2,gap:1,flexWrap:`wrap`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1.5,flexWrap:`wrap`},children:[(0,K.jsx)(J,{width:80,height:32,variant:`rounded`,sx:{borderRadius:`var(--radius-pill)`}}),(0,K.jsx)(J,{width:85,height:28,variant:`rounded`,sx:{borderRadius:`var(--radius-xs)`}})]}),(0,K.jsx)(J,{width:100,height:28,variant:`rounded`,sx:{borderRadius:`var(--radius-pill)`}})]}),(0,K.jsx)(J,{width:`50%`,height:32,variant:`text`,style:{marginBottom:12}}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`flex-start`,gap:1.5,mb:3},children:[(0,K.jsx)(J,{width:18,height:18,variant:`circular`,style:{marginTop:4,flexShrink:0}}),(0,K.jsxs)(I,{sx:{flex:1},children:[(0,K.jsx)(J,{width:140,height:18,variant:`text`,style:{marginBottom:6}}),(0,K.jsx)(J,{width:280,height:16,variant:`text`,style:{marginBottom:8}}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:1,flexWrap:`wrap`},children:[(0,K.jsx)(J,{width:65,height:16,variant:`rounded`,sx:{borderRadius:`var(--radius-xs)`}}),(0,K.jsx)(J,{width:55,height:16,variant:`rounded`,sx:{borderRadius:`var(--radius-xs)`}}),(0,K.jsx)(J,{width:50,height:16,variant:`rounded`,sx:{borderRadius:`var(--radius-xs)`}}),(0,K.jsx)(J,{width:60,height:16,variant:`rounded`,sx:{borderRadius:`var(--radius-xs)`}})]})]})]}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:3,pt:2,borderTop:`1px solid var(--color-border)`,flexWrap:`wrap`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[(0,K.jsx)(J,{width:18,height:18,variant:`rounded`}),(0,K.jsx)(J,{width:100,height:16,variant:`text`})]}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[(0,K.jsx)(J,{width:18,height:18,variant:`circular`}),(0,K.jsx)(J,{width:160,height:16,variant:`text`}),(0,K.jsx)(J,{width:75,height:24,variant:`rounded`,sx:{borderRadius:`var(--radius-sm)`,ml:1}})]}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[(0,K.jsx)(J,{width:18,height:18,variant:`rounded`}),(0,K.jsx)(J,{width:60,height:16,variant:`text`})]})]})]}),(0,K.jsxs)(`div`,{className:EX(`jobdetails__flex`),children:[(0,K.jsx)(`div`,{className:EX(`jobdetails__flex-1`),children:(0,K.jsxs)(I,{sx:{...DX,p:3},children:[(0,K.jsxs)(I,{sx:{mb:3},children:[(0,K.jsx)(J,{width:110,height:14,variant:`text`,style:{marginBottom:10}}),(0,K.jsx)(J,{width:`65%`,height:28,variant:`text`})]}),(0,K.jsxs)(I,{sx:{mb:3},children:[(0,K.jsx)(J,{width:130,height:14,variant:`text`,style:{marginBottom:12}}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1.5},children:[(0,K.jsx)(J,{width:48,height:48,variant:`circular`}),(0,K.jsxs)(I,{children:[(0,K.jsx)(J,{width:100,height:18,variant:`text`,style:{marginBottom:4}}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:.75},children:[(0,K.jsx)(J,{width:10,height:10,variant:`circular`}),(0,K.jsx)(J,{width:60,height:14,variant:`text`})]})]})]})]}),(0,K.jsxs)(I,{children:[(0,K.jsx)(J,{width:100,height:14,variant:`text`,style:{marginBottom:12}}),(0,K.jsxs)(I,{sx:{border:`1px solid var(--color-border)`,borderRadius:`var(--radius-md)`,p:2,minHeight:120},children:[(0,K.jsx)(J,{width:`80%`,height:16,variant:`text`,style:{marginBottom:8}}),(0,K.jsx)(J,{width:`60%`,height:16,variant:`text`,style:{marginBottom:8}}),(0,K.jsx)(J,{width:`40%`,height:16,variant:`text`})]})]})]})}),(0,K.jsx)(`div`,{className:EX(`jobdetails__flex-1`),children:(0,K.jsxs)(I,{sx:{...DX,p:0,overflow:`hidden`},children:[(0,K.jsx)(I,{sx:{borderBottom:`1px solid var(--color-border)`,px:2.5,pt:1.5,pb:1},children:(0,K.jsxs)(I,{sx:{display:`flex`,gap:3},children:[(0,K.jsx)(J,{width:75,height:28,variant:`text`}),(0,K.jsx)(J,{width:45,height:28,variant:`text`})]})}),(0,K.jsxs)(I,{sx:{px:`20px`,py:`20px`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,py:2.5,px:2,mb:2,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-md)`},children:[(0,K.jsxs)(I,{sx:{textAlign:`center`,minWidth:90},children:[(0,K.jsx)(J,{width:24,height:14,variant:`text`,style:{margin:`0 auto 6px`}}
1106),(0,K.jsx)(J,{width:60,height:12,variant:`text`,style:{margin:`0 auto`}})]}),(0,K.jsxs)(I,{sx:{flex:1,mx:2,display:`flex`,alignItems:`center`},children:[(0,K.jsx)(J,{width:8,height:8,variant:`circular`}),(0,K.jsx)(J,{sx:{flex:1,mx:1},height:2,variant:`rounded`}),(0,K.jsx)(J,{width:8,height:8,variant:`circular`})]}),(0,K.jsxs)(I,{sx:{textAlign:`center`,minWidth:90},children:[(0,K.jsx)(J,{width:24,height:14,variant:`text`,style:{margin:`0 auto 6px`}}),(0,K.jsx)(J,{width:60,height:12,variant:`text`,style:{margin:`0 auto`}})]})]}),(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,py:1.5,px:2,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-md)`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1.5},children:[(0,K.jsx)(J,{width:24,height:24,variant:`circular`}),(0,K.jsx)(J,{width:80,height:18,variant:`text`})]}),(0,K.jsx)(J,{width:20,height:20,variant:`rounded`})]})]})]})})]})]})})]});OX.propTypes={closeJobRequestDetails:V.default.func.isRequired};var Dye=e=>e>3?U(`jobdetails.severity_high`):e===3?U(`jobdetails.severity_medium`):e>0&&e<3?U(`jobdetails.severity_low`):``,Oye=e=>e>3?`var(--color-orange)`:e===3?`var(--color-orange-delayed)`:e>0&&e<3?`var(--color-green)`:``,kX=({problems:e=[],timezone:t,openProblemPics:n})=>(0,K.jsx)(`div`,{children:(0,H.default)(e,(r,i)=>{let{note:a,stepTitle:o,severity:s,date:c,pictureIdentifiers:l,checklistTitle:u}=r||{},d=a&&a.trim()||``,f=l&&l.length>0,p=f?l.map(e=>e):[],m=!!s,h=(0,z.default)(c).tz(t).format(`MMM D, YYYY # LT`).replace(`#`,U(`jobdetails.at`));return(0,K.jsxs)(I,{sx:{backgroundColor:`var(--color-bg-elevated)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-lg)`,p:1.5,mb:1.5,"&:last-child":{mb:0}},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:1},children:[u&&(0,K.jsx)(x,{sx:{fontSize:`14px`,fontWeight:600,color:`var(--color-text)`,flex:1},children:u}),m&&(0,K.jsx)(Md,{chipStyle:{backgroundColor:Oye(s),color:`white`,fontSize:`12px`,height:`24px`},label:Dye(s)})]}),f&&(0,K.jsx)(I,{sx:{display:`flex`,gap:1,mt:1.5,overflowX:`auto`,pb:.5,"&::-webkit-scrollbar":{height:4},"&::-webkit-scrollbar-thumb":{backgroundColor:`var(--color-border)`,borderRadius:2}},children:p.map(t=>(0,K.jsx)(I,{onClick:n(e,t),sx:{width:100,height:100,minWidth:100,borderRadius:`var(--radius-md)`,cursor:`pointer`,backgroundSize:`cover`,backgroundPosition:`center`,border:`1px solid var(--color-border)`,transition:`opacity 0.2s`,"&:hover":{opacity:.85},...au(t)}},t))}),d&&(0,K.jsx)(x,{sx:{mt:1,fontSize:`13px`,color:`var(--color-text-secondary)`,lineHeight:1.5},children:d}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,mt:1.5,gap:1},children:[o&&(0,K.jsx)(x,{sx:{fontSize:`12px`,color:`var(--color-text-secondary)`},children:o}),(0,K.jsx)(x,{sx:{fontSize:`12px`,color:`var(--color-text-secondary)`},children:h})]})]},i)})});kX.propTypes={problems:V.default.arrayOf(V.default.shape({})),timezone:V.default.string.isRequired,openProblemPics:V.default.func.isRequired};var kye={marginBottom:`16px`,"&:last-child":{marginBottom:0}};function AX({jobRequest:e,mappedCleaners:t,locationStatus:n,photoStats:r,completedTaskCount:i,verificationPictureCount:a,problems:o,tasks:s,costs:c,bilableTime:l,totalMileage:u,totalCost:d,countryCode:f,stripePaymentDetails:p,resolvedProblemUserName:m,openProblemPics:h,scheduleProblemsJob:g,handleProblemClick:_,onChangeProblemStatus:v,costSaga:y,openSourceJobSummary:b,renderBookingDetailsButton:x}){let S=e.jobData?.totalTaskCount,C=s.some(e=>e.isProblem);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(I,{sx:kye,children:[(0,K.jsx)(Mw,{meta:{propertyId:e.propertyId,jobSnapshotId:e.jobId},hasAccessFormatter:e=>e,render:({canSeeTaskLeftPhotos:o,canViewThumbsUpComments:s})=>{let c=o&&e.jobData.totalVerificationPictureCount||0,l=s?r.commentsViewed:0,u=s?r.commentsTotal:0,d=s?r.thumbsUp:0,f=s?r.thumbsDown:0,p=o?i:0;return S=o?S:0,(0,K.jsx)(SX,{tasksDone:p,totalTaskCount:S,verificationDoneCount:a,totalVerificationCount:c,actualStartTime:e.actualStartTime,timezone:e.propertyData.timeZone,actualEndTime:e.actualEndTime,cleaners:t,locationStatus:n,commentsViewed:l,commentsTotal:u,thumbsUp:d,thumbsDown:f,proMarketProperty:e.monetizedJob})}}),x(e)]}),(0,K.jsx)(Mw,{meta:{propertyId:e.propertyId,jobSnapshotId:e.jobId},hasAccessFormatter:e=>e.canSeePriceAndPayments,render:t=>t&&p.paymentStatus&&e.status===W.StateFinished?(0,K.jsx)(xye,{jobSnapshotId:e.jobId,actualEndTime:e.actualEndTime,stripePaymentDetails:p}):null}),(0,K.jsx)(Mw,{meta:{propertyId:e.propertyId,jobSnapshotId:e.jobId},hasAccessFormatter:e=>e.canSendJobs,render:t=>o.length||c?t?(0,K.jsx)(Pw,{problems:o,openProblemPics:h,openJobRequestModal:g,onProblemSelect:_,tasks:s,jobRequest:e,onCh
1106angeProblemStatus:v,isdefaultExpanded:C,bilableTime:l,totalMileage:u,totalCost:d,resolvedProblemUserName:m,countryCode:f,costs:c,openCostModal:y,openSourceJobSummary:b,timezone:e.propertyData.timeZone}):o.length?(0,K.jsx)(_X,{title:U(`jobdetails.problems_reported`),children:(0,K.jsx)(kX,{problems:o,timezone:e.propertyData.timeZone,openProblemPics:h})}):null:null})]})}AX.propTypes={jobRequest:V.default.shape({jobId:V.default.string,propertyId:V.default.string,status:V.default.string,actualStartTime:V.default.string,actualEndTime:V.default.string,monetizedJob:V.default.bool,jobData:V.default.shape({totalTaskCount:V.default.number,totalVerificationPictureCount:V.default.number}),propertyData:V.default.shape({timeZone:V.default.string})}).isRequired,mappedCleaners:V.default.arrayOf(V.default.shape({})).isRequired,locationStatus:V.default.shape({}).isRequired,photoStats:V.default.shape({commentsViewed:V.default.number,commentsTotal:V.default.number,thumbsUp:V.default.number,thumbsDown:V.default.number}).isRequired,completedTaskCount:V.default.number.isRequired,verificationPictureCount:V.default.number.isRequired,problems:V.default.arrayOf(V.default.shape({})).isRequired,tasks:V.default.arrayOf(V.default.shape({})).isRequired,costs:V.default.arrayOf(V.default.shape({})),bilableTime:V.default.number,totalMileage:V.default.number,totalCost:V.default.number,countryCode:V.default.string,stripePaymentDetails:V.default.shape({paymentStatus:V.default.string}).isRequired,resolvedProblemUserName:V.default.string,openProblemPics:V.default.func.isRequired,scheduleProblemsJob:V.default.func.isRequired,handleProblemClick:V.default.func.isRequired,onChangeProblemStatus:V.default.func.isRequired,costSaga:V.default.func.isRequired,openSourceJobSummary:V.default.func.isRequired,renderBookingDetailsButton:V.default.func.isRequired};var Aye=F` 1107 query getComment( 1108 $jobSnapshotId: ID! 1109 $userRole: RoleType! 1110 $updatedAfter: DateTime 1111 $languageCode: String 1112 $offset: Int 1113 $limit: Int 1114 ) { 1115 GetComment( 1116 jobSnapshotId: $jobSnapshotId 1117 userRole: $userRole 1118 updatedAfter: $updatedAfter 1119 languageCode: $languageCode 1120 offset: $offset 1121 limit: $limit 1122 ) { 1123 commentId 1124 message 1125 pictureIdentifier 1126 createdAt 1127 updatedAt 1128 jobSnapshotId 1129 sender { 1130 ...senderFields 1131 } 1132 } 1133 } 1134 ${pK} 1135`,jye=F` 1136 mutation comment($input: CommentsInput!) { 1137 Comments(input: $input) { 1138 CommentResponse { 1139 commentId 1140 isSuccessful 1141 clientMutationId 1142 } 1143 } 1144 } 1145`,Mye=F` 1146 subscription listenForComments($jobSnapshotId: ID!, $userRole: RoleType!) { 1147 listenForComments(jobSnapshotId: $jobSnapshotId, userRole: $userRole) { 1148 commentId 1149 message 1150 pictureIdentifier 1151 createdAt 1152 updatedAt 1153 jobSnapshotId 1154 sender { 1155 ...senderFields 1156 } 1157 } 1158 } 1159 ${pK} 1160`,jX=100,MX=e=>({comment:e.message,pictureIdentifier:e.pictureIdentifier,time:e.updatedAt||e.createdAt,commentId:e.commentId,senderId:e.sender?.userData?.id,senderFirstname:e.sender?.userData?.firstName,senderLastname:e.sender?.userData?.lastName});function NX({jobId:e,userRole:t=`HOST`,enabled:n=!0}){let[r,i]=(0,B.useState)(null),[a,o]=(0,B.useState)(!1),[s,l]=(0,B.useState)(!1),[u,d]=(0,B.useState)(null),f=j(e=>e.currentUser?.user),p=(0,B.useRef)(null),m=(0,B.useRef)(null),h=(0,B.useCallback)(async()=>{if(e){o(!0),d(null);try{let n=[],r=0,a=!0;for(;a;){let{data:i}=await QF.query({query:Aye,variables:{jobSnapshotId:e,userRole:t,offset:r,limit:jX},fetchPolicy:`no-cache`}),o=i.GetComment||[];R.default.info(`[useJobComments] ${o.length} comments returned (offset ${r}, limit ${jX})`),n=n.concat(o.map(MX)),a=o.length===jX,r+=jX}i(n),m.current=e}catch(e){R.default.error(`[useJobComments] fetch failed:`,e),d(e)}finally{o(!1)}}},[e,t]);(0,B.useEffect)(()=>{e!==m.current&&(i(null),m.current=null)},[e]),(0,B.useEffect)(()=>{if(!(!n||!e))return m.current!==e&&h(),p.current=QF.subscribe({query:Mye,variables:{jobSnapshotId:e,userRole:t},fetchPolicy:`no-cache`}).subscribe({next({data:e}){if(e?.listenForComments){R.default.info(`[useJobComments] subscription received comment`,e.listenForComments);let t=MX(e.listenForComments);i(e=>{let n=e||[];return(0,fc.default)(n,{commentId:t.commentId})?e:[...n,t]})}},error(e){R.default.error(`[useJobComments] subscription error:`,e)}}),()=>{p.current&&(p.current.unsubscribe(),p.current=null)}},[n,e,t,h]);let[g]=c(jye),_=(0,B.useCallback)(async(n,r=``)=>{if(e){l(!0);try{let a=await g({variables:{input:{commentMetaDataInput:{name:`ADD_COMMENT`,userRole:t,date:new Date().toISOString(),propertyId:``,jobSnapshotId:e,languageCode:(0,pi.default)()},commentInput:{message:n,pictureIdentifier:r},clientMutationId:JN(10)}}}),o=a.data?.Comments?.CommentResponse?.commentId;if(o){let e={comment:n,pictureIdentifier:r,time:new Date().toISOString(),commentId:o,senderId:f?.objectId,senderFirstname:f?.firstName,senderLastname:f?.lastName};i(t=>{let n=t||[];return(0,fc.default)(n,{commentId:o})?t:[...n,e]})}return a}catch(e){throw R.default.error(`[useJobComments] addComment failed:`,e),d(e),e}finally{l(!1)}}},[e,t,g,f]);return{comments:r,loading:a,sending:s,error:u,addComment:_,addImageComment:(0,B.useCallback)(async e=>{l(!0);try{let t=await tP(e);return R.default.info(`[useJobComments] uploadImage result:`,t),_(``,t.pictureUrl)}catch(e){throw R.default.error(`[useJobComments] addImageComment failed:`,e),d(e),l(!1),e}},[_]),refetch:h}}function PX({comment:e,sentByUser:t,timeZone:n}){let[r,i]=(0,B.useState)(!1),a=e.time,o=!!e.pictureIdentifier,s=!!e.comment,c=(0,z.default)(e.time).tz(n).format(`YYYY-MM-DD HH:mm:ss`),l=o?iu(e.pictureIdentifier,nu.ORIGINAL):null,u=o?iu(e.pictureIdentifier,``,`jpg`,c):null,d=e=>e?e.charAt(0).toUpperCase()+e.slice(1):``;return(0,K.jsxs)(I,{sx:{position:`relative`,mb:`8px`,p:`10px 14px`,maxWidth:`350px`,width:`fit-content`,minWidth:`120px`,alignSelf:t?`flex-end`:`flex-start`,bgcolor:t?`var(--color-comment-user-bg)`:`var(--color-comment-other-bg)`,borderRadius:`8px`,borderTopRightRadius:t?`2px`:`8px`,borderTopLeftRadius:t?`8px`:`2px`,mr:t?`10px`:0,ml:t?0:`10px`},children:[s&&(0,K.jsx)(x,{sx:{fontSize:`13px`,lineHeight:1.4,color:`var(--color-text)`,wordWrap:`break-word`},children:e.comment}),o&&(0,K.jsx)(I,{component:`img`,src:l,alt:``,onClick:()=>i(!0),sx:{mt:s?`6px`:0,border:0,maxWidth:`200px`,maxHeight:`150px`,objectFit:`contain`,cursor:`pointer`,borderRadius:`4px`}}),(0,K.jsx)(x,{sx:{fontSize:`9px`,color:`var(--color-text-secondary)`,textAlign:`right`,mt:`4px`},children:`${d(e.senderFirstname)} ${d(e.senderLastname)}, ${(0,z.default)(a).tz(n).format(`MMM Do, h:mm a`)}`}),(0,K.jsx)(I,{sx:{position:`absolute`,width:0,height:0,borderStyle:`solid`,top:0,...t?{borderWidth:`10px 10px 0 0`,borderColor:`var(--color-comment-user-bg) transparent transparent transparent`,right:`-10px`}:{borderWidth:`0 10px 10px 0`,borderColor:`transparent var(--color-comment-other-bg) transparent transparent`,left:`-10px`}}}),u&&(0,K.jsx)(de,{open:r,close:()=>i(!1),slides:[{src:u,download:{filename:e.pictureIdentifier||`comment_image`}}],plugins:[ut],carousel:{finite:!0},controller:{closeOnBackdropClick:!0},render:{buttonPrev:()=>null,buttonNext:()=>null}})]})}PX.propTypes={comment:V.default.shape({}).isRequired,sentByUser:V.default.bool.isRequired,timeZone:V.default.string.isRequired};function FX({comments:e=[],currentUser:t,loader:n=!1,sending:r=!1,onSendComment:i,onUploadTaskPic:a,timeZone:o,messagesContainerRef:s}){let[c,l]=(0,B.useState)(!1),[u,d]=(0,B.useState)(``),[f,p]=(0,B.useState)(!1),m=(0,B.useRef)(null),h=r||f,g=()=>{let r=(0,oW.default)(e,`commentId`);return n&&r.length===0?(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`center`,alignItems:`center`,flex:1,py:4},children:(0,K.jsx)(rr,{size:24,sx:{color:`var(--color-primary)`}})}):r.length===0?(0,K.jsx)(I,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,flex:1,py:4},children:(0,K.jsx)(x,{sx:{color:`var(--color-text-secondary)`,fontSize:14},children:U(`jobdetails.no_comments`)})}):(0,K.jsxs)(K.Fragment,{children:[r.map(e=>(0,K.jsx)(PX,{comment:e,sentByUser:e.senderId===t.objectId,timeZone:o},e.commentId)),n&&(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`center`,py:1},children:(0,K.jsx)(rr,{size:20,sx:{color:`var(--color-primary)`}})})]})},_=e=>{e.preventDefault();let t=e.target.files[0];if(!t)return;let{size:n}=t,{minSize:r,maxSize:i}=ru;if(n<r||n>i){l(!0);return}e.target.value=``,a(t)},v=async e=>{if(e.key===`Enter`&&!e.shiftKey||e.type===`click`){if(u.trim()&&!h){p(!0);try{await i(u),d(``)}catch{}finally{p(!1)}}e.preventDefault()}};return(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,he
1160ight:`100%`},children:[(0,K.jsx)(I,{ref:s,sx:{flex:1,display:`flex`,flexDirection:`column`,overflowY:`auto`,p:2,minHeight:280,maxHeight:`calc(100vh - 420px)`,bgcolor:`var(--color-bg-paper)`,borderRadius:2,border:`1px solid var(--color-border)`,"&::-webkit-scrollbar":{width:6},"&::-webkit-scrollbar-track":{background:`transparent`},"&::-webkit-scrollbar-thumb":{background:`var(--color-gray-300)`,borderRadius:3}},children:g()}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1.5,mt:2,p:1.5,bgcolor:`var(--color-bg-paper)`,borderRadius:2,border:`1px solid var(--color-border)`},children:[(0,K.jsx)(I,{sx:{flex:1,display:`flex`,alignItems:`center`},children:(0,K.jsx)(qe,{value:u,placeholder:U(`jobdetails.comments_type_here`),onKeyPress:v,onChange:e=>d(e.target.value),minRows:1,maxRows:4,style:{width:`100%`,padding:`10px 14px`,border:`1px solid var(--color-border)`,borderRadius:8,backgroundColor:`var(--color-bg-elevated)`,color:`var(--color-text)`,fontSize:14,fontFamily:`inherit`,resize:`none`,outline:`none`}})}),(0,K.jsx)(`input`,{type:`file`,ref:m,style:{display:`none`},accept:`image/*`,onChange:_}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[(0,K.jsx)(br,{onClick:()=>m.current?.click(),disabled:h,sx:{width:40,height:40,bgcolor:`var(--color-bg-elevated)`,border:`1px solid var(--color-border)`,borderRadius:`50%`,color:`var(--color-primary)`,"&:hover":{bgcolor:`var(--color-primary-light)`}},children:(0,K.jsx)(Y.IcCameraSolid,{style:{width:18,height:18}})}),(0,K.jsx)(br,{onClick:v,disabled:!u?.trim()||h,sx:{width:40,height:40,bgcolor:`var(--color-bg-elevated)`,border:`1px solid var(--color-border)`,borderRadius:`50%`,color:u?.trim()&&!h?`var(--color-primary)`:`var(--color-gray-400)`,"&:hover":{bgcolor:u?.trim()?`var(--color-primary-light)`:`var(--color-bg-elevated)`},"&.Mui-disabled":{color:`var(--color-gray-400)`,bgcolor:`var(--color-bg-elevated)`,border:`1px solid var(--color-border)`}},children:h?(0,K.jsx)(rr,{size:18,sx:{color:`var(--color-primary)`}}):(0,K.jsx)(Y.IcSendMessage,{style:{width:20,height:20}})})]})]}),(0,K.jsx)(Dg.ImageUpload,{onCloseLimitError:()=>l(!1),showLimitError:c})]})}FX.propTypes={jobRequestId:V.default.string,currentUser:V.default.shape({objectId:V.default.string}).isRequired,onUploadTaskPic:V.default.func.isRequired,onSendComment:V.default.func.isRequired,loader:V.default.bool,sending:V.default.bool,comments:V.default.arrayOf(V.default.shape({})),timeZone:V.default.string.isRequired,messagesContainerRef:V.default.oneOfType([V.default.func,V.default.shape({current:V.default.instanceOf(Element)})])};function IX({currentUser:e={isHost:!0},timeZone:t,isActive:n}){let r=(j(AW)||{selectedJobRequestId:``}).selectedJobRequestId,{comments:i,loading:a,sending:o,addComment:s,addImageComment:c}=NX({jobId:r,userRole:e.isHost?`HOST`:`CLEANER`,enabled:n&&!!r}),[l,u]=(0,B.useState)(!1),d=(0,B.useRef)(null),f=(0,B.useRef)(0),p=(0,B.useRef)(null),m=(0,B.useRef)(!1),h=(0,B.useCallback)(()=>{d.current&&(d.current.scrollTop=d.current.scrollHeight)},[]);(0,B.useEffect)(()=>{r!==p.current&&(m.current=!1,p.current=r)},[r]),(0,B.useEffect)(()=>{let e=i?.length||0;n&&e>0&&(!m.current||e>f.current)&&(h(),m.current=!0),f.current=e},[n,i,h]);let g=(0,B.useCallback)(async e=>{try{await c(e)}catch(e){R.default.error(`[ChatTab] Failed to upload image comment:`,e),u(!0)}},[c]),_=(0,B.useCallback)(async e=>{try{await s(e,``)}catch(e){throw R.default.error(`[ChatTab] Failed to send comment:`,e),u(!0),e}},[s]);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(FX,{comments:i||[],currentUser:e,onSendComment:_,loader:a,sending:o,jobRequestId:r,onUploadTaskPic:g,timeZone:t,messagesContainerRef:d}),(0,K.jsx)(wf,{open:l,message:U(`jobdetails.not_possible_to_publish_comment`),onClose:()=>u(!1),error:!0})]})}IX.propTypes={currentUser:V.default.shape({isHost:V.default.bool.isRequired,objectId:V.default.string}),timeZone:V.default.string.isRequired,isActive:V.default.bool.isRequired};var LX=e(Rt()),RX=F` 1161 mutation postVerificationPhotoFeedback( 1162 $jobSnapshotId: ID 1163 $stepId: ID 1164 $pictureUrl: ID 1165 $thumbs: FeedbackInput 1166 $comment: FeedbackInput 1167 ) { 1168 postVerificationPhotoFeedback( 1169 jobSnapshotId: $jobSnapshotId 1170 stepId: $stepId 1171 pictureUrl: $pictureUrl 1172 thumbs: $thumbs 1173 comment: $comment 1174 ) { 1175 error 1176 message 1177 payload { 1178 id 1179 jobSnapshotId 1180 stepId 1181 pictureUrl 1182 thumbs 1183 comment 1184 type 1185 viewed 1186 viewedBy 1187 sender { 1188 userId 1189 firstName 1190 lastName 1191 } 1192 propertyTimeZone 1193 updatedAt 1194 } 1195 } 1196 } 1197`;function zX(e){return _s(e.id,e.jobSnapshotId,e.pictureUrl,e.type,e.viewed,e.comment,e.thumbs,e.sender,e.updatedAt,e.propertyTimeZone)}var BX=1e3;function Nye(){return`optimistic-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}function Pye(e){return typeof e==`string`&&e.startsWith(`optimistic-`)}function Fye(e,t){return _s(Nye(),e.jobSnapshotId,e.pictureUrl,t,!1,t===`comment`?e.comment:null,t===`thumbs`?e.thumbs:null,{},new Date().toISOString(),null)}function Iye({imageId:e,jobSnapshotId:t,stepId:n}){let r=xe(),{thumbs:i,comment:a}=j(n=>Tw(n,{imageId:e,jobSnapshotId:t})),[o]=c(RX),s=(0,B.useRef)(null),l=(0,B.useRef)(null),u=(0,B.useCallback)(async(e,t,n)=>{try{let i={jobSnapshotId:e.jobSnapshotId,pictureUrl:e.pictureUrl};e.stepId&&(i.stepId=e.stepId);let a={action:n};(n===`add`||n===`edit`)&&(a.value=t===`thumbs`?e.thumbs:e.comment?.trim()),(n===`edit`||n===`remove`)&&(a.id=e.id),i[t]=a;let c=(await o({variables:i})).data?.postVerificationPhotoFeedback?.payload;if(c){let e=zX(c);s.current&&(r(QP(`photofeedback`,ys(s.current))),s.current=null),n!==`remove`&&r(QP(`photofeedback`,ys(e),e))}return l.current=null,c}catch(e){throw R.default.error(`[usePhotoFeedback] ${t} ${n} failed:`,e),l.current?(r(QP(`photofeedback`,ys(l.current),Es(l.current,{}
1197))),l.current=null):s.current&&(r(QP(`photofeedback`,ys(s.current))),s.current=null),e}},[o,r]),d=(0,B.useMemo)(()=>(0,Xf.default)((e,t)=>{u(e,`thumbs`,t).catch(()=>{})},BX),[u]);(0,B.useEffect)(()=>()=>{d.cancel()},[d]);let f=(0,B.useCallback)(i=>{d.cancel(),s.current&&r(QP(`photofeedback`,ys(s.current)));let a=Fye({jobSnapshotId:t,pictureUrl:e,thumbs:i},`thumbs`);s.current=a,r(QP(`photofeedback`,ys(a),a)),d({jobSnapshotId:t,stepId:n,pictureUrl:e,thumbs:i},`add`)},[t,n,e,r,d]),p=(0,B.useCallback)(n=>{if(!i)return;d.cancel(),l.current||(l.current=i);let a=Es(i,{thumbs:n});r(QP(`photofeedback`,ys(i),a)),d({jobSnapshotId:t,pictureUrl:e,thumbs:n,id:i.id},`edit`)},[i,t,e,r,d]),m=(0,B.useCallback)(()=>{i&&(d.cancel(),l.current=i,r(QP(`photofeedback`,ys(i))),u({jobSnapshotId:t,pictureUrl:e,id:i.id},`thumbs`,`remove`).catch(()=>{}))},[i,t,e,r,u,d]);return{thumbs:i,comment:a,handleThumbsVote:(0,B.useCallback)(e=>{let t=i&&Pye(i.id);if(i?.thumbs===e&&!t){m();return}if(t){if(i.thumbs===e){d.cancel(),s.current&&(r(QP(`photofeedback`,ys(s.current))),s.current=null);return}f(e);return}if(i){p(e);return}f(e)},[i,m,p,f,d,r]),createThumbs:f,updateThumbs:p,deleteThumbs:m,createComment:(0,B.useCallback)(async r=>u({jobSnapshotId:t,stepId:n,pictureUrl:e,comment:r},`comment`,`add`),[t,n,e,u]),updateComment:(0,B.useCallback)(async n=>{if(!a)return null;l.current=a;let i=Es(a,{comment:n});return r(QP(`photofeedback`,ys(a),i)),u({jobSnapshotId:t,pictureUrl:e,comment:n,id:a.id},`comment`,`edit`)},[a,t,e,r,u]),deleteComment:(0,B.useCallback)(async()=>a?(l.current=a,r(QP(`photofeedback`,ys(a))),u({jobSnapshotId:t,id:a.id},`comment`,`remove`)):null,[a,t,r,u])}}var VX=`loading_thumbs`;function Lye(e){if(e===`up`)return Y.IcThumbsUp2;if(e===`down`)return Y.IcThumbsDown2}function Rye(e=``,t=``){let n=`${e} ${t}`;return(0,LX.default)(n)?n:``}var HX={iconSize:`32px`};function UX({imageId:e,jobSnapshotId:t,stepId:n,hasEditPermissions:r}){let{thumbs:i,comment:a,handleThumbsVote:o,createComment:s,updateComment:c,deleteComment:l}=Iye({imageId:e,jobSnapshotId:t,stepId:n}),u=j(e=>sB(e)),d=j(EC),f=j(e=>Ew(VX,`id`)(e)),p=j(e=>Ew(VX,`error`)(e)),[m,h]=(0,B.useState)({text:``,isNew:!0,isEdit:!1});(0,B.useEffect)(()=>{h(a?{text:a.comment||``,isNew:!1,isEdit:!1}:{text:``,isNew:!0,isEdit:!1})},[a,e]);let g=(0,B.useCallback)(e=>{if(u)return!0;let t=e===`comment`?a:i;return t&&r?vs(t)===d:r},[u,a,i,r,d]),_=(0,B.useCallback)(()=>!!a||g(`comment`),[a,g]),v=(0,B.useCallback)(()=>{s(m.text),h(e=>({...e,isNew:!1}))},[s,m.text]),y=(0,B.useCallback)(e=>{h(t=>({...t,text:e.target.value}))},[]),b=(0,B.useCallback)(()=>{h(e=>({...e,isEdit:!0}))},[]),x=(0,B.useCallback)(()=>{h(e=>({...e,isEdit:!1})),c(m.text)},[c,m.text]),S=(0,B.useCallback)(()=>{h({text:``,isNew:!0,isEdit:!1}),l()},[l]),C=(0,B.useCallback)(e=>()=>{o(e)},[o]),w=i?.thumbs,T=(0,B.useMemo)(()=>a&&ys(a)===f?p:!1,[a,f,p]),E=(0,B.useCallback)(()=>m.isNew?`new`:m.isEdit?`edit`:`view`,[m.isNew,m.isEdit]),D=(0,B.useCallback)((e,t,n)=>(0,K.jsx)(IP,{onClick:t&&C(e),isActive:w===e,...HX,icon:Lye(e),tooltip:U(e===`up`?`slider.thumbs_up`:`slider.thumbs_down`)},n),[C,w]),ee=(0,B.useCallback)(e=>!e&&w?D(w,!1,3):e?[D(`up`,!0,1),D(`down`,!0,2)]:null,[w,D]),te=(0,B.useCallback)(()=>{let e=a?.sender?.firstName||``,t=a?.sender?.lastName||``;return(0,K.jsx)(Lg,{popupId:`comment`,arrowPosition:{vertical:`bottom`,horizontal:`right`},anchorOrigin:{vertical:`top`,horizontal:`right`},transformOrigin:{vertical:`bottom`,horizontal:`right`},width:280,popoverContent:()=>(0,K.jsx)(HP,{name:Rye(e,t),error:T,isViewed:a?.viewed||!1,date:a?.updatedAt,timeZone:a?.propertyTimeZone,mode:E(),onChange:y,onDelete:S,onDone:x,onSend:v,onEdit:b,hasEditPermissions:g(`comment`),value:m.text}),label:`Excerpt`,showLabel:`Show`,hideLabel:`Hide`,children:(0,K.jsx)(`span`,{children:(0,K.jsx)(IP,{onClick:Fu.default,isActive:!m.isNew,...HX,icon:Y.IcComment2,tooltip:U(`slider.comment`)})})})},[a,T,E,y,S,x,v,b,g,m.text,m.isNew]);return(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,height:`100%`},children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1,width:`100%`},children:[(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,gap:.5,mr:+!!u},children:_()&&te()}),(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,gap:.5,ml:`auto`}
1197,children:ee(g(`thumbs`))})]})})}UX.propTypes={imageId:V.default.string.isRequired,hasEditPermissions:V.default.bool.isRequired,jobSnapshotId:V.default.string,stepId:V.default.string};var WX=({isRIRequested:e=!1,isPropertyEligibleForRI:t=!1,images:n=[],jobSnapshotId:r})=>{let i=jW,a=WW,o=j(e=>VW(e,{images:n,jobSnapshotId:r})),s=j(e=>i(e).selectedJobRequestId),c=j(e=>cB(e))||{adminUsername:``,adminUserId:``},l=j(a)||``,u=xe(),[d,f]=(0,B.useState)(null),[p,m]=(0,B.useState)(null);return(0,B.useEffect)(()=>{l===p_.COMPLETED&&f(`RIAlreadyCompleted`)},[l]),!e&&!t?null:d===`isRIRequestedApiRejected`?(0,K.jsx)(Yf.ErrorMsg,{children:`Something went wrong while checking if RI has been requested for this job!`}):d===`RIAlreadyCompleted`?(0,K.jsx)(Xg,{type:`medium`,style:{display:`table`,margin:`0 auto`},children:`RI has already been completed!`}):d===`completeRIResolved`?(0,K.jsx)(Xg,{type:`medium`,style:{display:`table`,margin:`0 auto`},children:`RI completed successfully!`}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(q,{disabled:o||d===`completeRIPending`,types:[`type-full-orange`,`size-medium`,`width-flex`],onClick:async()=>{try{f(`completeRIPending`),await WJ(s,{inspectorName:c.adminUsername,inspectorId:c.adminUserId}),u(lY(p_.COMPLETED)),f(`completeRIResolved`)}catch(e){m(e),f(`completeRIRejected`)}},isLoading:d===`completeRIPending`,children:`Complete RI`}),d===`completeRIRejected`&&(0,K.jsxs)(Yf.ErrorMsg,{children:[` `,p||`Something went wrong! Please try again.`]})]})};WX.propTypes={isRIRequested:V.default.bool,isPropertyEligibleForRI:V.default.bool,images:V.default.arrayOf(V.default.string),jobSnapshotId:V.default.string};var GX=4,zye=68,Bye=200,KX=({imageId:e,jobSnapshotId:t})=>{let{thumbs:n}=j(n=>Tw(n,{imageId:e,jobSnapshotId:t}));return n?.thumbs?(0,K.jsx)(I,{sx:{position:`absolute`,bottom:4,right:4,width:20,height:20,borderRadius:`50%`,bgcolor:`var(--color-orange)`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:`0 2px 6px rgba(0,0,0,0.3)`,border:`2px solid var(--surface-base)`},children:n.thumbs===`up`?(0,K.jsx)(Me,{sx:{fontSize:10,color:`white`}}):(0,K.jsx)(wr,{sx:{fontSize:10,color:`white`}})}):null};KX.propTypes={imageId:V.default.string.isRequired,jobSnapshotId:V.default.string.isRequired};var qX=({imageId:e,jobSnapshotId:t,stepId:n=void 0,propertyId:r})=>(0,K.jsx)(Mw,{meta:{propertyId:r,jobSnapshotId:t},hasAccessFormatter:e=>e,render:({canViewThumbsUpComments:r,canEditThumbsUpComments:i})=>r?(0,K.jsx)(I,{onClick:e=>e.stopPropagation(),sx:{position:`absolute`,bottom:6,right:6,bgcolor:`rgba(0, 0, 0, 0.6)`,backdropFilter:`blur(8px)`,WebkitBackdropFilter:`blur(8px)`,borderRadius:1.5,px:.5,py:.25,transform:`scale(0.65)`,transformOrigin:`bottom right`,boxShadow:`0 2px 8px rgba(0,0,0,0.3)`},children:(0,K.jsx)(UX,{imageId:e,jobSnapshotId:t,stepId:n,hasEditPermissions:i})}):null});qX.propTypes={imageId:V.default.string.isRequired,jobSnapshotId:V.default.string.isRequired,stepId:V.default.string,propertyId:V.default.string.isRequired};var JX=({images:e,openVerificationPics:t,jobSnapshotId:n,propertyId:r,verificationPhotos:i=[],dashboardAdminMode:a,isRIRequested:o,isPropertyEligibleForRI:s})=>{let[c,l]=(0,B.useState)(0),u=e[c],d=i?.find(e=>e.pictureIdentifier===u)?.stepId,f=(0,wx.default)(e,GX),p=t=>{t.stopPropagation(),l(t=>t>0?t-1:e.length-1)},m=t=>{t.stopPropagation(),l(t=>t<e.length-1?t+1:0)};return(0,K.jsxs)(I,{children:[(0,K.jsxs)(I,{sx:{position:`relative`,height:Bye,borderRadius:`14px`,overflow:`hidden`,mb:2,boxShadow:`var(--shadow-md)`,border:`1px solid var(--color-border-light)`},children:[(0,K.jsx)(I,{sx:{width:`100%`,height:`100%`,backgroundSize:`cover`,backgroundPosition:`center`,backgroundColor:`var(--color-profile-background)`,transition:`transform 0.3s ease`,...au(u,nu.PROFILE_PICTURE)}}),e.length>1&&(0,K.jsx)(br,{onClick:p,sx:{position:`absolute`,left:10,top:`50%`,transform:`translateY(-50%)`,bgcolor:`rgba(0, 0, 0, 0.5)`,backdropFilter:`blur(12px)`,WebkitBackdropFilter:`blur(12px)`,color:`white`,width:36,height:36,boxShadow:`0 4px 12px rgba(0,0,0,0.25)`,transition:`all 0.2s ease`,"&:hover":{bgcolor:`rgba(0, 0, 0, 0.7)`,transform:`translateY(-50%) scale(1.08)`}},children:(0,K.jsx)(Re,{sx:{fontSize:22}})}),e.length>1&&(0,K.jsx)(br,{onClick:m,sx:{position:`absolute`,right:10,top:`50%`,transform:`translateY(-50%)`,bgcolor:`rgba(0, 0, 0, 0.5)`,backdropFilter:`blur(12px)`,WebkitBackdropFilter:`blur(12px)`,color:`white`,width:36,height:36,boxShadow:`0 4px 12px rgba(0,0,0,0.25)`,transition:`all 0.2s ease`,"&:hover":{bgcolor:`rgba(0, 0, 0, 0.7)`,transform:`translateY(-50%) scale(1.08)`}},children:(0,K.jsx)(Vr,{sx:{fontSize:22}})}),(0,K.jsxs)(I,{sx:{position:`absolute`,top:10,left:10,bgcolor:`rgba(0, 0, 0, 0.5)`,backdropFilter:`blur(12px)`,WebkitBackdropFilter:`blur(12px)`,color:`white`,borderRadius:`8px`,px:1.25,py:.5,fontSize:`12px`,fontWeight:700,boxShadow:`0 4px 12px rgba(0,0,0,0.25)`,letterSpacing:`0.5px`},children:[c+1,` / `,e.length]}),(0,K.jsx)(br,{onClick:t(e,u),sx:{position:`absolute`,top:10,right:10,bgcolor:`rgba(0, 0, 0, 0.5)`,backdropFilter:`blur(12px)`,WebkitBackdropFilter:`blur(12px)`,color:`white`,width:32,height:32,boxShadow:`0 4px 12px rgba(0,0,0,0.25)`,transition:`all 0.2s ease`,"&:hover":{bgcolor:`rgba(0, 0, 0, 0.7)`,transform:`scale(1.08)`}},children:(0,K.jsx)(me,{sx:{fontSize:16}})}),(0,K.jsx)(qX,{imageId:u,jobSnapshotId:n,stepId:d,propertyId:r},u)]}),(0,K.jsx)(I,{children:f.map((e,t)=>(0,K.jsxs)(I,{sx:{display:`flex`,gap:1,mb:1,"&:last-child":{mb:0}},children:[e.map((e,r)=>{let i=t*GX+r,a=i===c;return(0,K.jsxs)(I,{onClick:()=>
1197l(i),sx:{flex:`1 1 ${100/GX}%`,maxWidth:`${100/GX}%`,height:zye,borderRadius:`10px`,overflow:`hidden`,cursor:`pointer`,position:`relative`,border:a?`2px solid var(--color-primary)`:`2px solid var(--color-border-light)`,opacity:a?1:.75,transition:`all 0.2s ease`,boxShadow:a?`var(--shadow-md)`:`var(--shadow-sm)`,"&:hover":{opacity:1,transform:`scale(1.03)`,boxShadow:`var(--shadow-md)`}},children:[(0,K.jsx)(I,{sx:{width:`100%`,height:`100%`,backgroundSize:`cover`,backgroundPosition:`center`,backgroundColor:`var(--color-profile-background)`,...au(e,nu.PROFILE_PICTURE)}}),(0,K.jsx)(KX,{imageId:e,jobSnapshotId:n})]},e)}),e.length<GX&&Array.from({length:GX-e.length}).map((e,t)=>(0,K.jsx)(I,{sx:{flex:`1 1 ${100/GX}%`,maxWidth:`${100/GX}%`}},`empty-${t}`))]},t))}),(0,K.jsx)(gm,{}),a&&(0,K.jsx)(WX,{images:e,jobSnapshotId:n,isRIRequested:o,isPropertyEligibleForRI:s})]})};JX.propTypes={images:V.default.arrayOf(V.default.string).isRequired,jobSnapshotId:V.default.string.isRequired,propertyId:V.default.string.isRequired,openVerificationPics:V.default.func.isRequired,verificationPhotos:V.default.arrayOf(V.default.shape({})),dashboardAdminMode:V.default.bool.isRequired,isRIRequested:V.default.bool.isRequired,isPropertyEligibleForRI:V.default.bool.isRequired};function YX({jobRequest:e,verificationPhotos:t,isRIRequested:n,propertyEligibleForRI:r,dashboardAdminMode:i,openVerificationPics:a}){return(0,K.jsx)(Mw,{meta:{propertyId:e.propertyId,jobSnapshotId:e.jobId},hasAccessFormatter:e=>({seeVerificationPhotos:e.seeVerificationPhotos&&t.length>0}),render:({seeVerificationPhotos:o})=>{if(!o||t.length===0)return(0,K.jsx)(I,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,py:6,color:`var(--color-text-secondary)`},children:(0,K.jsx)(x,{sx:{fontSize:14},children:U(`jobdetails.no_photos`)})});let s=t.map(e=>e.pictureIdentifier);return(0,K.jsx)(I,{children:(0,K.jsx)(JX,{jobSnapshotId:e?.jobId,propertyId:e?.propertyId,images:s,verificationPhotos:t,openVerificationPics:a,isRIRequested:n,isPropertyEligibleForRI:r,dashboardAdminMode:i})})}})}YX.propTypes={jobRequest:V.default.shape({jobId:V.default.string,propertyId:V.default.string}).isRequired,verificationPhotos:V.default.arrayOf(V.default.shape({})).isRequired,isRIRequested:V.default.bool.isRequired,propertyEligibleForRI:V.default.bool.isRequired,dashboardAdminMode:V.default.bool.isRequired,openVerificationPics:V.default.func.isRequired},Qn();var XX=gn.create(I),Vye={backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-xl)`,border:`1px solid var(--color-border-light, var(--color-border))`,padding:`20px`,marginBottom:`16px`,position:`relative`,overflow:`hidden`},Hye={display:`flex`,alignItems:`flex-start`,justifyContent:`space-between`,marginBottom:`12px`,gap:`8px`,flexWrap:`wrap`},Uye={display:`inline-flex`,alignItems:`center`,gap:`4px`,padding:`4px 10px`,backgroundColor:`var(--surface-elevated)`,borderRadius:`var(--radius-pill)`,fontSize:`12px`,fontWeight:500,color:`var(--color-text-secondary)`,border:`1px solid var(--color-border)`},Wye={marginBottom:`16px`},Gye={fontSize:`22px`,fontWeight:600,color:`var(--color-text)`,lineHeight:1.4,marginBottom:`12px`,overflow:`hidden`,textOverflow:`ellipsis`,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`},Kye={display:`flex`,alignItems:`flex-start`,gap:`8px`,color:`var(--color-text-secondary)`,lineHeight:1.5},qye={fontSize:`16px`,fontWeight:500,color:`var(--color-text)`,lineHeight:1.4,marginBottom:`2px`},Jye={display:`flex`,alignItems:`center`,gap:`20px`,flexWrap:`wrap`,paddingTop:`12px`,borderTop:`1px solid var(--color-border-light, var(--color-border))`},ZX={display:`flex`,alignItems:`center`,gap:`6px`,fontSize:`14px`,color:`var(--color-text)`},QX={fontSize:16,color:`var(--color-text-secondary)`,opacity:.7},Yye={display:`inline-flex`,alignItems:`center`,gap:`4px`,padding:`3px 8px`,borderRadius:`var(--radius-sm)`,fontSize:`11px`,fontWeight:600,marginLeft:`8px`},$X={display:`inline-block`,padding:`4px 10px`,borderRadius:`var(--radius-xs, 4px)`,fontSize:`11px`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.5px`,backgroundColor:`var(--color-badge-blue-bg)`,color:`var(--color-badge-blue-text)`},eZ=({jobRequest:e,isRIRequested:t=!1,propertyEligibleForRI:n=!1,dashboardAdminMode:r=!1,showPrice:i=!1,autoSchedulerId:a=null})=>{let o=Vn(),s=xe(),c=e?.propertyData,l=(0,B.useMemo)(()=>
1197{if(!e?.scheduledStartTime)return null;let t=(0,z.default)(),n=(0,z.default)(e.scheduledStartTime),r=e.scheduledEndTime?(0,z.default)(e.scheduledEndTime):null,i=c?.timeZone;i&&t.tz(i);let a=n.diff(t,`minutes`),o=Math.abs(Math.round(a/60)),s=Math.abs(Math.round(a/1440));if(a>0)return a<60?{text:`Starts in ${a} min`,type:`upcoming`}:o<24?{text:`Starts in ${o}h`,type:`upcoming`}:s<=7?{text:`Starts in ${s}d`,type:`future`}:null;if(r&&t.isAfter(r)){let e=Math.abs(r.diff(t,`hours`));return e<24?{text:`Ended ${e}h ago`,type:`past`}:null}else return{text:`In Progress`,type:`active`}},[e?.scheduledStartTime,e?.scheduledEndTime,c?.timeZone]);if(!e)return null;let u=Do(e)||`default`,d=Bl(e),f=e.jobType&&e.jobType!==`do_job`?Vl(e.jobType)?U(`reports.jobTypes.${Vl(e.jobType)}`):e.jobType:null,m=[];c?.street&&m.push(c.street+(c.apartment?` ${c.apartment}`:``)),(c?.city||c?.zip)&&m.push([c.zip,c.city].filter(Boolean).join(` `)),c?.country&&m.push(c.country);let h=m.join(`, `),g=Vo(c?.details,c?.type),_=e=>{switch(e){case`upcoming`:return{backgroundColor:`var(--color-badge-orange-bg)`,color:`var(--color-badge-orange-text)`};case`active`:return{backgroundColor:`var(--color-badge-green-bg)`,color:`var(--color-badge-green-text)`};case`past`:return{backgroundColor:`var(--color-badge-default-bg)`,color:`var(--color-badge-default-text)`};default:return{backgroundColor:`var(--color-badge-blue-bg)`,color:`var(--color-badge-blue-text)`}}};return(0,K.jsxs)(XX,{sx:Vye,initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:yd.medium,ease:xd.easeOut},children:[(0,K.jsxs)(XX,{sx:Hye,initial:{opacity:0}
1197,animate:{opacity:1},transition:{delay:Ed(1)},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`8px`,flexWrap:`wrap`},children:[(0,K.jsx)(Nx,{text:U(Oo(e)),color:u,glow:!0}),r&&n&&!t&&(0,K.jsx)(I,{sx:$X,children:U(`retail_remote_inspection.subscribed`).toUpperCase()}),t&&(0,K.jsx)(I,{sx:$X,children:U(`retail_remote_inspection.requested`).toUpperCase()}),a&&(0,K.jsx)(Ig,{title:U(`autoscheduler.autoscheduledJob`),children:(0,K.jsx)(br,{size:`small`,onClick:()=>{s(XJ()),o(Z.editAutoscheduler(a,`jobs`))},children:(0,K.jsx)(Y.NavAutoscheduling,{byWidth:!0,width:`20px`,height:`20px`,color:`colorPrimary`})})})]}),f&&(0,K.jsxs)(I,{sx:Uye,children:[(0,K.jsx)(be,{sx:{fontSize:12}}),f]})]}),d&&(0,K.jsx)(I,{sx:Gye,title:d,children:d}),(0,K.jsx)(XX,{sx:Wye,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:Ed(2)},children:(c?.title||h)&&(0,K.jsxs)(I,{sx:Kye,children:[(0,K.jsx)(Mt,{sx:{fontSize:16,marginTop:`2px`,flexShrink:0}}),(0,K.jsxs)(I,{children:[c?.title&&(0,K.jsx)(I,{sx:qye,children:c.title}),h&&(0,K.jsx)(I,{sx:{fontSize:`14px`},children:h}),g&&(0,K.jsx)(I,{sx:{fontSize:`14px`,marginTop:`4px`},children:g})]})]})}),(0,K.jsxs)(XX,{sx:Jye,initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{delay:Ed(3)},children:[Io(e)?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(I,{sx:ZX,children:[(0,K.jsx)(kt,{sx:QX}),(0,K.jsxs)(I,{component:`span`,children:[(0,K.jsxs)(I,{component:`span`,sx:{opacity:.7,fontSize:`12px`},children:[U(`job_request.start_after`),`:`,` `]}),Po(e)||`-`,` `,jo(e)]})]}),(0,K.jsxs)(I,{sx:ZX,children:[(0,K.jsx)(at,{sx:QX}),(0,K.jsxs)(I,{component:`span`,children:[(0,K.jsxs)(I,{component:`span`,sx:{opacity:.7,fontSize:`12px`},children:[U(`job_request.finish_before`),`:`,` `]}),Fo(e)||`-`,` `,Mo(e)]}),l&&(0,K.jsx)(I,{sx:{...Yye,..._(l.type)},children:l.text})]})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(I,{sx:ZX,children:[(0,K.jsx)(kt,{sx:QX}),(0,K.jsx)(I,{component:`span`,children:No(e)||`-`})]}),(0,K.jsxs)(I,{sx:ZX,children:[(0,K.jsx)(at,{sx:QX}),(0,K.jsxs)(I,{component:`span`,children:[jo(e),` -`,` `,Mo(e),(0,K.jsxs)(I,{component:`span`,sx:{opacity:.7,marginLeft:`8px`},children:[`(`,Kc(Ao(e)),`)`]})]})]})]}),i&&Number(e?.offeredPrice)>0&&(0,K.jsxs)(I,{sx:ZX,children:[(0,K.jsx)(p,{sx:QX}),(0,K.jsxs)(I,{component:`span`,children:[e.offeredPriceCurrency||``,` `,e.offeredPrice]})]})]})]})};eZ.propTypes={jobRequest:V.default.shape({jobId:V.default.string,jobType:V.default.string,title:V.default.string,scheduledStartTime:V.default.string,scheduledEndTime:V.default.string,event:V.default.shape({title:V.default.string}),jobProgress:V.default.shape({jobSteps:V.default.array}),jobData:V.default.shape({title:V.default.string}),propertyData:V.default.shape({title:V.default.string,street:V.default.string,apartment:V.default.string,zip:V.default.string,city:V.default.string,country:V.default.string,timeZone:V.default.string,details:V.default.object,type:V.default.string}),getStatusStringAdvanced:V.default.func,getStatusColor:V.default.func,getDateString:V.default.func,getStartTimeString:V.default.func,getEndTimeString:V.default.func,getDateDurationInMin:V.default.func,isFlexibleStartTime:V.default.func,getFlexibleStartDateString:V.default.func,getFlexibleEndDateString:V.default.func,hasPrice:V.default.bool,offeredPrice:V.default.number,offeredPriceCurrency:V.default.string}),isRIRequested:V.default.bool,propertyEligibleForRI:V.default.bool,dashboardAdminMode:V.default.bool,showPrice:V.default.bool};var tZ=_i.default.bind(pX),nZ={red:`rgba(255, 205, 210, 0.25)`,blue:`rgba(187, 222, 251, 0.25)`,green:`rgba(200, 230, 201, 0.25)`,"light-blue":`rgba(187, 222, 251, 0.25)`,pink:`rgba(225, 190, 231, 0.25)`,orange:`rgba(255, 224, 178, 0.25)`,default:`rgba(178, 235, 242, 0.25)`},Xye={position:`absolute`,top:0,left:0,right:0,height:`300px`,pointerEvents:`none`,zIndex:0},rZ=5,iZ=class extends B.Component{constructor(e){super(e),k(this,`setActiveTab`,e=>{this.setState({activeTab:e})}),k(this,`openVerificationPics`,(e,t)=>()=>{let{verificationPhotos:n,selectedJobRequest:{jobRequest:r}}=this.props,i=(0,eb.default)(e,t),a=i===-1?0:i,o=(0,H.default)(e,e=>{let t=n.find(t=>t.pictureIdentifier===e)?.date;return{image:e,date:(0,z.default)(t).tz(r.propertyData?.timeZone).format(`YYYY-MM-DD HH:mm:ss`)}}),s=n.find(e=>e.pictureIdentifier===t);this.props.setSliderData({isOpen:!0,images:o,index:a,meta:{isThumbsUpDownSlider:!0,jobSnapshotId:r?.jobId,propertyId:this.getPropertyId(),stepId:s.stepId}})}),k(this,`openProblemPics`,(e,t)=>()=>{let{selectedJobRequest:{jobRequest:n}}=this.props,r=(0,If.default)(e,(e,t)=>(t.pictureIdentifiers&&t.pictureIdentifiers.length>
11970&&t.pictureIdentifiers.forEach(r=>e.push({image:r,date:(0,z.default)(t.date).tz(n.propertyData?.timeZone).format(`YYYY-MM-DD HH:mm:ss`)})),e),[]),i=(0,fX.default)(r,[`image`,t]),a=i===-1?0:i;this.props.setSliderData({isOpen:!0,images:r,index:a,meta:{jobSnapshotId:n.id}})}),k(this,`mapProblemToTask`,({id:e,title:t,note:n,pictureIdentifiers:r})=>({id:e,isProblem:!0,title:t,task:n,pictureIdentifiers:r})),k(this,`handleProblemClick`,(e,t)=>{this.props.handleClickSaga(!1,{action:`mapProblemsToTask`,mapProblemsToTask:this.mapProblemToTask(t),set:e.target.checked})}),k(this,`onChangeProblemStatus`,(e,t,n,r)=>{this.props.updateProblemStatus(e,t,n,r)}),k(this,`openSourceJobSummary`,e=>{this.props.openSourceJob(e)}),k(this,`openJobsLV`,e=>{this.props.closeJobRequestDetails(),this.props.gotToJobsLV(e)}),k(this,`canShowPayAndRequestRI`,()=>{let{riOption:e,isRIRequested:t,disableOptingForRI:n,selectedJobRequest:{jobRequest:r}}=this.props;return e===f_.yes&&![W.StateFinished,W.StateStarted].includes(r.status)&&!t&&!n}),k(this,`renderStatusChip`,(e,t,n)=>{let r=(0,z.default)(t).tz(n).format(`L`),{color:i,label:a}={[Ua.Pending]:{color:`var(--color-warning, #f59e0b)`,label:U(`jobdetails.pending`)},[Ua.PendingChanges]:{color:`var(--color-warning, #f59e0b)`,label:U(`jobdetails.pendingChanges`)},[Ua.Viewed]:{color:`var(--color-warning, #f59e0b)`,label:U(`jobstatus.seen`)},[Ua.Accepted]:{color:`var(--color-success, #22c55e)`,label:`${U(`jobdetails.accepted`)} ${r}`},[Ua.InProgress]:{color:`var(--color-success, #22c55e)`,label:U(`jobdetails.acceptedreal`)},[Ua.Finished]:{color:`var(--color-success, #22c55e)`,label:`${U(`jobdetails.finished_on`)} ${r}`},[Ua.Declined]:{color:`var(--color-error, #ef4444)`,label:U(`jobdetails.declined`)},[Ua.DeclinedChanges]:{color:`var(--color-error, #ef4444)`,label:U(`jobdetails.declined`)},[Ua.CanceledByHost]:{color:`var(--color-error, #ef4444)`,label:U(`jobdetails.canceled`)},[Ua.CanceledByCleaner]:{color:`var(--color-error, #ef4444)`,label:U(`jobdetails.canceled`)},[Ua.AcceptedByOtherCleaner]:{color:`var(--color-text-tertiary, #9ca3af)`,label:U(`jobstatus.accepted_by_other_user`)}}[e]??{color:`var(--color-text-tertiary, #9ca3af)`,label:``};return(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`6px`},children:[(0,K.jsx)(I,{sx:{width:8,height:8,borderRadius:`50%`,backgroundColor:i,flexShrink:0}}),(0,K.jsx)(`span`,{children:a})]})}),k(this,`renderBookingDetailsButton`,e=>{let{event:t}=e||{},{bookingId:n,propertyId:r}=t||{};return n&&r?(0,K.jsx)(I,{sx:{paddingTop:16},children:(0,K.jsx)(q,{onClick:()=>this.props.handleBookingClick(r,n),types:[`type-border-grey`,`size-medium`,`width-flex`],children:U(`jobdetails.show_booking_details`)})}):null}),this.state={openMore:{},activeTab:`summary`,showAllChecklists:!1}}setOpenMore(e){this.setState(t=>{let n=t.openMore[e]===void 0?!1:t.openMore[e];return{openMore:{...t.openMore,[e]:!n}}})}getLocationSafe(e){if(e)return e.location}get selectJobDetailsJS(){return this.props.selectJobDetails}getPropertyId(){return(0,G.default)(this.props.selectedJobRequest,[`jobRequest`,`propertyId`])}renderJobActionsMenu(){let{selectedJobRequest:e}=this.props,{jobRequest:t}=e;return(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[(0,K.jsx)(Ig,{title:`Open Jobs`,children:(0,K.jsx)(I,{sx:{cursor:`pointer`,display:`flex`,alignItems:`center`,color:`#707070`,"&:hover":{opacity:.7}},onClick:()=>this.openJobsLV(t.jobId),children:(0,K.jsx)(Y.Jobs,{width:`18px`,height:`18px`})})}),(0,K.jsx)(Nw,{jobData:t,onEdit:()=>this.props.editSaga(),onCancel:()=>this.props.cancelJobRequestSaga(t.jobId),onDuplicate:()=>this.props.duplicateJobRequestSaga(t.jobId),iconSize:`small`,popoverKey:`editJobDetails`,showWrapper:!0})]})}canRenderSenderData(e,t,n){return!(!e&&t.id===n.objectId||e&&e.id===n.objectId)}renderSenderDat(e,t){return(0,K.jsx)(_X,{title:U(`jobdetails.sentby`),children:(0,K.jsx)(Kj,{picture:{text:Go(e.firstName,e.lastName),picture:e.pictureIdentifier},type:`jobdetails`,noHover:!0,onClick:()=>{},active:!1,title:t,subTitle:`${e.firstName} ${e.lastName}`})})}renderLeft(e,t,n){let{checklists:r,sourceProblems:i,tasks:a=[],skillRequirements:o=[]}=e||{},s=r.filter(e=>
1197!e.isOneOff),c=i?i.sourceJobSnapshotId:null,l=e?.recipients||[],{showAllChecklists:u}=this.state,d=(e,t)=>{R.default.log(`inidmapper`,e,`jobrequest`,t)},f=(s||[{}]).map(({title:e},t)=>({title:e||U(`jobdetails.no_checklist`),number:r&&r.length>1?t+1:void 0})),p=(a||[{}]).map(({title:e},t)=>({title:e||U(`jobdetails.no_task`),number:a&&a.length>0?t+1:void 0})),m=(o||[{}]).map(({title:e,progress:t},n)=>({title:e||U(`skills.no_skill`),number:o?.length>0?n+1:void 0,progress:t})),h={backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-xl)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-md)`,p:2},g=()=>{this.setState(({showAllChecklists:e})=>({showAllChecklists:!e}))},_=e=>{this.props.setModalObj({isOpen:!0,meta:{checklistId:e.id,jobInstructionId:e.jobInstructionId,isIndependent:e.propertyIndependent&&!e.published,published:e.published,readOnly:!0}})},v=u?s:s.slice(0,rZ),y=f.length-rZ,b=(e,t)=>{let n=e.currentTarget,r=n.scrollWidth>n.clientWidth;this.setState({tooltipTitle:r?t.title:``})};return(0,K.jsxs)(I,{sx:h,children:[Qs(e)&&(0,K.jsx)(_X,{title:U(`jobdetails.event`),children:(0,K.jsx)(Jg,{type:`reseth1`,children:Qs(e)})}),s.length>0&&(0,K.jsxs)(_X,{title:(0,K.jsxs)(I,{display:`flex`,justifyContent:`space-between`,alignItems:`center`,width:`100%`,children:[U(`jobdetails.checklist`),` (`,f.length,`)`,f.length>rZ&&(0,K.jsx)(br,{sx:{display:`flex`,transition:`transform 200ms ease`,transform:this.state.showAllChecklists?`rotate(180deg)`:`rotate(0deg)`},size:`small`,onClick:g,children:(0,K.jsx)(Y.IcExpandMore,{style:{fontSize:`12px`,color:this.state.showAllChecklists?`#36ACB2`:`#868f9a`,transition:`transform 0.5s ease`}})})]}),children:[(0,K.jsx)(Ot,{children:v.map((e,t)=>(0,K.jsx)(I,{sx:{borderTop:`1px solid transparent`,borderBottom:`1px solid transparent`,transition:`border-color 0.2s ease`,"&:hover":{cursor:`pointer`,borderTopColor:`var(--color-gray-200)`,borderBottomColor:`var(--color-gray-200)`}},onClick:()=>_(e),children:(0,K.jsx)(di,{disableGutters:!0,children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`baseline`,width:`100%`,gap:1},children:[(0,K.jsxs)(Xg,{sx:{flexShrink:0},children:[t+1,`.`]}),(0,K.jsx)(I,{sx:{flex:1,minWidth:0,color:`var(--color-text);`},children:(0,K.jsxs)(Ig,{title:this.state.tooltipTitle,children:[(0,K.jsx)(I,{onMouseEnter:t=>b(t,e),style:{display:`block`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,fontSize:`14px`},children:e.title}),(0,K.jsx)(I,{style:{display:`block`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,fontSize:`10px`},children:es(e)})]})}),e.recurring&&(0,K.jsx)(Ig,{title:U(`properties.kind.recurring`),children:(0,K.jsx)(Ce,{color:`primary`,fontSize:`small`,style:{flexShrink:0}})})]})})},e.id||e.title))}),f.length>rZ&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Or,{}),(0,K.jsx)(I,{sx:{mt:1,justifyContent:`center`,display:`flex`},children:(0,K.jsx)(q,{onClick:g,style:{width:`100%`},children:u?`Show less`:`View ${y} more checklist${y>1?`s`:``}`})})]})]}),a.length>0&&(0,K.jsx)(_X,{title:U(`job_request.task`),children:p.map(({title:e,number:t})=>(0,K.jsxs)(Jg,{type:`reseth1`,children:[t&&(0,K.jsx)(I,{component:`span`,sx:{minWidth:`28px`,display:`inline-block`},children:t&&`${t}) `}),e]},e))}),o?.length>0&&(0,K.jsx)(_X,{title:U(`skills.requirements`),children:m.map(({title:e,number:t,progress:n})=>(0,K.jsx)(Jg,{type:`reseth1`,children:(0,K.jsxs)(I,{sx:{display:`inline-flex`},children:[t&&(0,K.jsx)(I,{component:`span`,sx:{minWidth:`28px`,display:`inline-block`},children:t&&`${t}) `}),e,n===Wa.PROGRESS_STATUS.COMPLETED&&(0,K.jsx)(I,{component:`span`,sx:{marginLeft:`10px`},children:(0,K.jsx)(Y.Ic16PxCheck,{height:`24x`,width:`24px`,byHeight:!0})})]})},e))}),(0,K.jsx)(Mw,{meta:{propertyId:e.propertyId,jobSnapshotId:e.jobId},hasAccessFormatter:e=>e.canSendJobs,render:t=>t&&c?(0,K.jsx)(Fw,{sourceJob:!0,renderLeft:!0,problems:this.props.sourceProblems,openProblemPics:this.openProblemPics,onProblemSelect:this.handleProblemClick,tasks:this.props.tasks,jobRequest:e,onChangeProblemStatus:this.onChangeProblemStatus,openSourceJobSummary:this.openSourceJobSummary,resolvedProblemUserName:this.props.resolvedProblem.name,timezone:e.propertyData.timeZone}):null}),this.canRenderSenderData(e.senderData,e.hostData,n)&&this.renderSenderDat(e.senderData,e.companyName),t.length>0&&(0,K.jsx)(_X,{title:U(`jobdetails.invited_cleaners`),jobForwardedIcon:e?.isForwardingEnabled,children:(0,K.jsx)(Mw,{meta:{propertyId:e.propertyId},hasAccessFormatter:e=>e.canSendJobs,render:n=>(0,K.jsx)(xX,{onClick:t=>{d(t,e),this.props.closeJobRequestDetails(),this.props.goToContact(t)}
1197,cleaners:t,timezone:e.propertyData.timeZone,showButton:n&&Ys(e),sagaCleaner:this.props.moreCleanersSaga,setOpenMore:()=>this.setOpenMore(e.jobId),isOpen:this.state.openMore[e.jobId]||!1,proMarketProperty:e.propertyData?.proMarketId,contacts:this.props.contacts})})}),this.props.isFeatureFlagJobForwardingEnabled&&e?.recipients.length>0&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Dm,{type:`relative`,className:tZ(`jobdetails__recipients--divider`)}),(0,K.jsxs)(`div`,{className:tZ(`jobdetails__recipients--titleSection`),children:[(0,K.jsx)(Y.IcShare,{style:{width:14,height:14}}),(0,K.jsx)(`span`,{className:tZ(`jobdetails__recipients--textStyle`),children:U(`jobdetails.invited_recipients`)}),(0,K.jsxs)(`span`,{className:tZ(`jobdetails__recipients--priceStyle`),children:[e.offeredPriceCurrency||``,` `,e.forwardedOfferedPrice]})]}),l.map(t=>(0,K.jsx)(Kj,{picture:{text:Go(t.userData.firstName,t.userData.lastName),picture:t.userData.pictureIdentifier},type:`jobdetails`,onClick:()=>{d(t.contactId,e),this.props.closeJobRequestDetails(),this.props.goToContact(t.contactId)},active:!1,note:t?.note,title:`${t.userData.firstName} ${t.userData.lastName}`,subTitle:this.renderStatusChip(t.status,t.date,e.propertyData.timeZone),showProBadge:!1},t.contactId))]}),Xs(e)&&(0,K.jsx)(_X,{title:U(`job_request.description`),children:(0,K.jsx)(Xg,{children:(0,K.jsx)(Yf,{isLast:!0,isFirst:!0,textAreaHeight:200,value:e.note.trim(),type:`textarea`,disabled:!0})})})]})}renderRight(e,t,n){let{problems:r,propertyData:{countryCode:i},costs:a}=e||{},{photoStats:o,tasks:s,stripePaymentDetails:c,verificationPhotos:l,isRIRequested:u,propertyEligibleForRI:d,dashboardAdminMode:f}=this.props,{jobProgress:{completedTaskCount:p,verificationPictureCount:m,bilableTime:h,totalMileage:g,totalCost:_}}=this.selectJobDetailsJS,v=()=>{let{scheduleProblemsJob:e}=this.props;e()},{activeTab:y}=this.state,b=l&&l.length>0;return(0,K.jsxs)(I,{sx:{backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-xl)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-md)`,overflow:`hidden`},children:[(0,K.jsx)(I,{sx:{borderBottom:`1px solid var(--color-border)`,px:2,pt:1},children:(0,K.jsxs)(Cg,{children:[(0,K.jsx)(Cg.Item,{active:y===`summary`,onClick:()=>this.setActiveTab(`summary`),"data-testid":`job-details-summary-tab`,children:U(`jobdetails.summary`)}),b&&(0,K.jsx)(Cg.Item,{active:y===`photos`,onClick:()=>this.setActiveTab(`photos`),"data-testid":`job-details-photos-tab`,children:U(`jobdetails.photos`)}),(0,K.jsx)(Cg.Item,{active:y===`chat`,onClick:()=>this.setActiveTab(`chat`),"data-testid":`job-details-chat-tab`,children:U(`jobdetails.comments`)}),e?.bookingDetails?.id&&(0,K.jsx)(Cg.Item,{active:y===`bookingDetails`,onClick:()=>this.setActiveTab(`bookingDetails`),"data-testid":`job-details-booking-details-tab`,children:U(`list_view.booking`)})]})}),(0,K.jsxs)(I,{sx:{p:2,minHeight:400},children:[y===`summary`&&(0,K.jsx)(AX,{jobRequest:e,mappedCleaners:t,locationStatus:n,photoStats:o,completedTaskCount:p,verificationPictureCount:m,verificationPhotos:l,problems:r,tasks:s,costs:a,bilableTime:h,totalMileage:g,totalCost:_,countryCode:i,stripePaymentDetails:c,resolvedProblemUserName:this.props.resolvedProblem.name,isRIRequested:u,propertyEligibleForRI:d,dashboardAdminMode:f,openProblemPics:this.openProblemPics,scheduleProblemsJob:v,handleProblemClick:this.handleProblemClick,onChangeProblemStatus:this.onChangeProblemStatus,costSaga:this.props.costSaga,openSourceJobSummary:this.openSourceJobSummary,renderBookingDetailsButton:this.renderBookingDetailsButton}),y===`photos`&&b&&(0,K.jsx)(YX,{jobRequest:e,verificationPhotos:l,isRIRequested:u,propertyEligibleForRI:d,dashboardAdminMode:f,openVerificationPics:this.openVerificationPics}),y===`chat`&&(0,K.jsx)(IX,{currentUser:this.props.currentUser,timeZone:e?.propertyData?.timeZone,isActive:y===`chat`}),e?.bookingDetails?.id&&y===`bookingDetails`&&(0,K.jsx)(Oy,{id:e?.bookingDetails?.id,booking:e.bookingDetails,property:e.propertyData})]})]})}render(){let{closeJobRequestDetails:e,currentUser:t}=this.props;if(this.selectJobDetailsJS.state===1)return(0,K.jsx)(`div`,{className:tZ(`jobdetails__bg`),children:(0,K.jsx)(OX,{closeJobRequestDetails:e})});let{selectedJobRequest:n,selectedJobRequest:{jobRequest:r,mappedCleaners:i},isRIRequested:a,propertyEligibleForRI:o,dashboardAdminMode:s}=this.props;if(this.selectJobDetailsJS.state===2||!n||!r)return(0,K.jsxs)(`div`,{className:tZ(`jobdetails__bg`),children:[(0,K.jsx)(Lj,{onClose:()=>e(),middleText:U(`jobdetails.errror_head`),icon:Y.IcCloseLightGray}),(0,K.jsx)(`div`,{className:tZ(`jobdetails__loading`),children:(0,K.jsx)(Yg,{type:`orange`,children:U(`jobdetails.error`)})})]});let c=new CX(r.jobProgress);if(!c)return null;let l=c.getAllLocationStatuses(this.getLocationSafe(r.propertyData)),u=this.canShowPayAndRequestRI()?U(`retail_remote_inspection.request_without_amount`):U(Oo(r)),d=Do(r)||`default`;return(0,K.jsxs)(`div`,{className:tZ(`jobdetails__bg`),"data-testid":`job-details-popover`,children:[(0,K.jsx)(Lj,{onClose:e,rightPart:()=>this.renderJobActionsMenu(),middleText:u,icon:Y.IcCloseLightGray}),(0,K.jsxs)(Jj,{children:[(0,K.jsx)(I,{sx:{...Xye,background:`linear-gradient(180deg, ${nZ[d]||nZ.default} 0%, transparent 100%)`}}),(0,K.jsxs)(`div`,{className:tZ(`jobdetails__fixmargin`),children:[wX()&&(0,K.jsx)(TX,{jsonData:r,displayId:r.jobId,mode:`jobDetail`}),(0,K.jsx)(Mw,{meta:{propertyId:r.propertyId,jobSnapshotId:r.jobId},hasAccessFormatter:e=>e.canSeePriceAndPayments,render:e=>(0,K.jsx)(eZ,{jobRequest:r,isRIRequested:a,propertyEligibleForRI:o,dashboardAdminMode:s,showPrice:e,autoSchedulerId:r.autoSchedulerId})}),(0,K.jsxs)(`div`,{className:tZ(`jobdetails__flex`),children:[(0,K.jsx)(`div`,{className:tZ(`jobdetails__flex-1`),children:this.renderLeft(r,i,t)}
1197),(0,K.jsx)(`div`,{className:tZ(`jobdetails__flex-1`),children:this.canShowPayAndRequestRI()?(0,K.jsx)(Eye,{}):this.renderRight(r,i,l)})]})]})]})]})}};function Zye(e){return(0,G.default)(e,[`jobRequest`,`jobId`])}function Qye(e){return(0,G.default)(e,[`jobRequest`,`propertyId`])}function $ye(e,t){let n=BW()(e,t),r=zW(e,t);return{selectedJobRequest:n,selectJobDetails:AW(e,t),currentUser:FC(e,t),jobRequestId:Zye(n),photoStats:HW(e,t),tasks:_J(e,t),riOption:vJ(e,t),stripePaymentDetails:IW(e,t),sourceProblems:FW(e,t),resolvedProblem:LW(e,t),isRIRequested:UW(e,t),disableOptingForRI:TJ(e,t),verificationPhotos:r,propertyEligibleForRI:mB(Qye(n))(e,t),dashboardAdminMode:sB(e,t),isFeatureFlagJobForwardingEnabled:fB($a.FEATURE_FLAG_JOB_FORWARDING)(e,t),contacts:KC(e,t)}}iZ.propTypes={jobRequestId:V.default.string,selectedJobRequest:V.default.shape({jobRequest:V.default.shape({jobId:V.default.string.isRequired}),mappedCleaners:V.default.arrayOf(V.default.shape({}))}).isRequired,selectJobDetails:V.default.shape({}).isRequired,currentUser:V.default.shape({}).isRequired,resolvedProblem:V.default.shape({name:V.default.string}),stripePaymentDetails:V.default.shape({id:V.default.string,paymentDate:V.default.string,paymentStatus:V.default.string,paymentAmount:V.default.number,paymentCurrency:V.default.string}),verificationPhotos:V.default.arrayOf(V.default.shape({})),photoStats:V.default.shape({}),sourceProblems:V.default.arrayOf(V.default.shape({})),tasks:V.default.arrayOf(V.default.shape({})),riOption:V.default.oneOf([f_.yes,f_.no]),closeJobRequestDetails:V.default.func,goToContact:V.default.func,gotToJobsLV:V.default.func,moreCleanersSaga:V.default.func,handleBookingClick:V.default.func,handleClickSaga:V.default.func,updateProblemStatus:V.default.func,openSourceJob:V.default.func,scheduleProblemsJob:V.default.func,costSaga:V.default.func,editSaga:V.default.func,cancelJobRequestSaga:V.default.func,duplicateJobRequestSaga:V.default.func.isRequired,setSliderData:V.default.func,isRIRequested:V.default.bool,disableOptingForRI:V.default.bool,propertyEligibleForRI:V.default.bool,dashboardAdminMode:V.default.bool,contacts:V.default.shape({}),setModalObj:V.default.func},iZ.defaultProps={jobRequestId:``,editSaga:()=>{},cancelJobRequestSaga:()=>{},setSliderData:()=>{},closeJobRequestDetails:()=>{},goToContact:()=>{},gotToJobsLV:()=>{},moreCleanersSaga:()=>{},handleBookingClick:()=>{},handleClickSaga:()=>{},updateProblemStatus:()=>{},openSourceJob:()=>{},scheduleProblemsJob:()=>{},costSaga:()=>{},photoStats:{},sourceProblems:[],tasks:[],resolvedProblem:{name:``},stripePaymentDetails:{id:null,paymentDate:null,paymentStatus:null},verificationPhotos:[],isRIRequested:!1,disableOptingForRI:!0,propertyEligibleForRI:!1,dashboardAdminMode:!1,contacts:{},setModalObj:()=>{}};var ebe=Nt($ye,{goToContact:U_e,gotToJobsLV:W_e,closeJobRequestDetails:XJ,cancelJobRequestSaga:rY,duplicateJobRequestSaga:iY,editSaga:eY,costSaga:K_e,setSliderData:tF,moreCleanersSaga:nY,handleBookingClick:G_e,setModal:dF,handleClickSaga:OK,scheduleProblemsJob:oY,updateProblemStatus:HK,openSourceJob:tve,setModalObj:zU})(iZ),aZ=F` 1198 mutation JobRequestEvent($input: JobRequestEventInput!) { 1199 JobRequestEvent(input: $input) { 1200 JobRequestEventResponse { 1201 id 1202 transactionId 1203 status 1204 } 1205 clientMutationId 1206 } 1207 } 1208`,tbe=F` 1209 mutation UpdateProblem($input: UpdateProblemInput!) { 1210 UpdateProblem(input: $input) { 1211 UpdateProblemEventResponse { 1212 id 1213 transactionId 1214 appliedOn 1215 status 1216 name 1217 } 1218 } 1219 } 1220`,nbe=F` 1221 mutation ReportCost($input: ReportCostInput!) { 1222 ReportCost(input: $input) { 1223 JobEventResponse { 1224 id 1225 status 1226 transactionId 1227 appliedOn 1228 } 1229 } 1230 } 1231`,rbe=F` 1232 mutation postTaskFeedback( 1233 $jobSnapshotId: ID 1234 $stepId: ID 1235 $taskId: ID 1236 $value: Float 1237 $pictureUrl: ID 1238 $thumbs: FeedbackInput 1239 $comment: FeedbackInput 1240 ) { 1241 postTaskFeedback( 1242 jobSnapshotId: $jobSnapshotId 1243 stepId: $stepId 1244 taskId: $taskId 1245 value: $value 1246 pictureUrl: $pictureUrl 1247 thumbs: $thumbs 1248 comment: $comment 1249 ) { 1250 error 1251 message 1252 payload { 1253 id 1254 } 1255 } 1256 } 1257`,ibe=F` 1258 mutation ForwardJob( 1259 $jobId: ID! 1260 $recipientIds: [ID!]! 1261 $offeredPrice: Float 1262 $note: String 1263 $metadata: MetadataInput! 1264 ) { 1265 ForwardJob( 1266 jobId: $jobId 1267 recipientIds: $recipientIds 1268 offeredPrice: $offeredPrice 1269 note: $note 1270 metadata: $metadata 1271 ) { 1272 error 1273 message 1274 } 1275 } 1276`,oZ=F` 1277 fragment bedConfiguration on bedConfiguration { 1278 id 1279 type 1280 displayName 1281 quantity 1282 } 1283`,sZ=F` 1284 fragment dynamicAttribute on dynamicAttribute { 1285 id 1286 group 1287 label 1288 pictures 1289 value 1290 } 1291`,cZ=F` 1292 fragment bookingFields on bookingFields { 1293 id 1294 title 1295 partner 1296 guestName 1297 numberOfGuests 1298 arrivalDate 1299 departureDate 1300 nextArrivalDate 1301 dynamicAttributes { 1302 ...dynamicAttribute 1303 } 1304 tags 1305 bedConfigurations { 1306 ...bedConfiguration 1307 } 1308 } 1309 ${sZ} 1310 ${oZ} 1311`,lZ=F` 1312 fragment costFields on costFields { 1313 id 1314 date 1315 value 1316 type 1317 pictureIdentifiers 1318 reporterName 1319 note 1320 } 1321`,uZ=F` 1322 fragment propertyDetailFields on propertyDetailFields { 1323 wifiPassword 1324 wifiName 1325 wifiInformation 1326 garbageInformation 1327 information 1328 parkingInformation 1329 accessInformation 1330 numberOfBathrooms 1331 numberOfBedrooms 1332 numberOfBeds 1333 bedConfigurations { 1334 ...bedConfiguration 1335 } 1336 dynamicAttributes { 1337 ...dynamicAttribute 1338 } 1339 tags 1340 } 1341 ${oZ} 1342 ${sZ}
1343`,dZ=F` 1344 fragment propertyDetails on Job { 1345 property { 1346 ...propertyFields 1347 details { 1348 ...propertyDetailFields 1349 } 1350 } 1351 } 1352 ${fK} 1353 ${uZ} 1354`,fZ=F` 1355 fragment skillRequirementsType on skillRequirementsType { 1356 dependency 1357 skillId 1358 title 1359 } 1360`,abe=F` 1361 query jobDetail($role: RoleType!, $languageCode: String, $id: ID!, $isHost: Boolean!) { 1362 Job(role: $role, id: $id, languageCode: $languageCode, isHost: $isHost) { 1363 ...propertyDetails 1364 progress { 1365 ...progressSummaryFields 1366 } 1367 checklists { 1368 ...checklistFields 1369 } 1370 cleaners { 1371 ...cleanerFields 1372 } 1373 recipients { 1374 ...cleanerFields 1375 } 1376 status 1377 1378 ownerRole 1379 job { 1380 ...jobFields 1381 } 1382 costs { 1383 ...costFields 1384 } 1385 sender { 1386 ...senderFields 1387 } 1388 booking { 1389 ...bookingFields 1390 } 1391 problems { 1392 ...problemFields 1393 } 1394 skillRequirements { 1395 ...skillRequirementsType 1396 } 1397 lastUpdatedAt 1398 permittedFeatures 1399 sourceProblems { 1400 problemIds 1401 sourceJobSnapshotId 1402 } 1403 stripePaymentDetails { 1404 id 1405 paymentDate 1406 paymentStatus 1407 paymentAmount 1408 paymentCurrency 1409 paymentProcessor 1410 } 1411 isRiRetailJob 1412 savedIssuesCost 1413 spottedIssuesCost 1414 totalNumberOfSavedIssues 1415 totalNumberOfSpottedIssues 1416 autoSchedulerId 1417 } 1418 } 1419 ${lK} 1420 ${dK} 1421 ${sK} 1422 ${cK} 1423 ${uK} 1424 ${oK} 1425 ${pK} 1426 ${lZ} 1427 ${cZ} 1428 ${fZ} 1429 ${oZ} 1430 ${uZ} 1431 ${fK} 1432 ${dZ} 1433`,obe=F` 1434 query jobDetail($role: RoleType!, $languageCode: String, $id: ID!, $isHost: Boolean!) { 1435 Job(role: $role, id: $id, languageCode: $languageCode, isHost: $isHost) { 1436 ...propertyDetails 1437 progress { 1438 ...progressSummaryFields 1439 } 1440 checklists { 1441 ...checklistFields 1442 } 1443 cleaners { 1444 ...cleanerFields 1445 } 1446 recipients { 1447 ...cleanerFields 1448 } 1449 status 1450 1451 ownerRole 1452 job { 1453 ...jobFields 1454 } 1455 costs { 1456 ...costFields 1457 } 1458 sender { 1459 ...senderFields 1460 } 1461 booking { 1462 ...bookingFields 1463 } 1464 problems { 1465 ...problemFields 1466 } 1467 skillRequirements { 1468 ...skillRequirementsType 1469 } 1470 lastUpdatedAt 1471 permittedFeatures 1472 sourceProblems { 1473 problemIds 1474 sourceJobSnapshotId 1475 } 1476 savedIssuesCost 1477 spottedIssuesCost 1478 totalNumberOfSavedIssues 1479 totalNumberOfSpottedIssues 1480 } 1481 } 1482 ${lK} 1483 ${dK} 1484 ${sK} 1485 ${cK} 1486 ${uK} 1487 ${oK} 1488 ${pK} 1489 ${lZ} 1490 ${cZ} 1491 ${fZ} 1492 ${oZ} 1493 ${uZ} 1494 ${fK} 1495 ${dZ} 1496`,sbe=F` 1497 query jobProgressCount($role: RoleType!, $languageCode: String, $id: ID!, $isHost: Boolean!) { 1498 Job(role: $role, id: $id, languageCode: $languageCode, isHost: $isHost) { 1499 progress { 1500 verificationPictureCount 1501 completedTaskCount 1502 } 1503 } 1504 } 1505`,cbe=F` 1506 query jobProgress($role: RoleType!, $languageCode: String, $id: ID!, $isHost: Boolean!) { 1507 Job(role: $role, id: $id, languageCode: $languageCode, isHost: $isHost) { 1508 status 1509 progress { 1510 actualStartTime 1511 actualEndTime 1512 bilableTime 1513 id 1514 problemCount 1515 totalCost 1516 totalMileage 1517 startLocation { 1518 latitude 1519 longitude 1520 } 1521 endLocation { 1522 latitude 1523 longitude 1524 } 1525 verificationPictureCount 1526 completedTaskCount 1527 } 1528 } 1529 } 1530`,lbe=F` 1531 query jobDetail($role: RoleType!, $languageCode: String, $id: ID!, $isHost: Boolean!) { 1532 Job(role: $role, id: $id, languageCode: $languageCode, isHost: $isHost) { 1533 checklists { 1534 id 1535 type 1536 title 1537 isOneOff 1538 sourceProblemId 1539 jobInstructionId 1540 description 1541 pictureIdentifier 1542 totalTaskCount 1543 totalVerificationPictureCount 1544 steps { 1545 id 1546 pictureIdentifier 1547 note 1548 room 1549 section 1550 title 1551 isComplete 1552 isVerificationRequired 1553 isVerificationComplete 1554 tasks { 1555 id 1556 title 1557 note 1558 notePictureIdentifiers 1559 isComplete 1560 value 1561 completedOn 1562 centerX 1563 centerY 1564 icon 1565 } 1566 incompleteTaskCount 1567 } 1568 doneTaskCount 1569 doneStepCount 1570 verificationPhotos { 1571 id 1572 stepTitle 1573 pictureIdentifier 1574 date 1575 stepId 1576 } 1577 propertyIndependent 1578 published 1579 recurring 1580 } 1581 status 1582 job { 1583 id 1584 duration 1585 scheduledStartTime 1586 scheduledEndTime 1587 offeredPrice 1588 offeredPriceCurrency 1589 totalTaskCount 1590 isProMarketplaceJob 1591 note 1592 title 1593 jobType 1594 isForwardingEnabled 1595 forwardedOfferedPrice 1596 forwardedNote 1597 } 1598 property { 1599 id 1600 timeZone 1601 title 1602 city 1603 state 1604 country 1605 apartment 1606 street 1607 zip 1608 location { 1609 latitude 1610 longitude 1611 } 1612 countryCode 1613 } 1614 sender { 1615 id 1616 } 1617 cleaners { 1618 ...cleanerFields 1619 } 1620 recipients { 1621 date 1622 status 1623 userData { 1624 id 1625 firstName 1626 lastName 1627 pictureIdentifier 1628 } 1629 } 1630 progress { 1631 id 1632 actualStartTime 1633 actualEndTime 1634 startLocation { 1635 latitude 1636 longitude 1637 } 1638 endLocation { 1639 latitude 1640 longitude 1641 } 1642 completedTaskCount 1643 problemCount 1644 additionalReportCount 1645 verificationPictureCount 1646 bilableTime 1647 totalMileage 1648 totalCost 1649 } 1650 problems { 1651 id #stepId 1652 stepTitle 1653 checklistId 1654 checklistTitle 1655 note 1656 pictureIdentifiers 1657 severity 1658 date 1659 title 1660 status 1661 resolverName 1662 lastUpdatedAt 1663 } 1664 skillRequirements { 1665 skillId 1666 title 1667 }
1668 stripePaymentDetails { 1669 id 1670 paymentDate 1671 paymentStatus 1672 paymentAmount 1673 paymentCurrency 1674 paymentProcessor 1675 } 1676 costs { 1677 ...costFields 1678 } 1679 savedIssuesCost 1680 spottedIssuesCost 1681 totalNumberOfSavedIssues 1682 totalNumberOfSpottedIssues 1683 isRiRetailJob 1684 booking { 1685 ...bookingFields 1686 } 1687 autoSchedulerId 1688 } 1689 } 1690 ${lZ} 1691 ${cK} 1692 ${cZ} 1693`,ube=F` 1694 query jobDetail($role: RoleType!, $languageCode: String, $id: ID!, $isHost: Boolean!) { 1695 Job(role: $role, id: $id, languageCode: $languageCode, isHost: $isHost) { 1696 checklists { 1697 id 1698 type 1699 title 1700 isOneOff 1701 sourceProblemId 1702 description 1703 pictureIdentifier 1704 totalTaskCount 1705 totalVerificationPictureCount 1706 steps { 1707 id 1708 pictureIdentifier 1709 note 1710 room 1711 section 1712 title 1713 isComplete 1714 isVerificationRequired 1715 isVerificationComplete 1716 tasks { 1717 id 1718 title 1719 note 1720 notePictureIdentifiers 1721 isComplete 1722 value 1723 completedOn 1724 centerX 1725 centerY 1726 icon 1727 } 1728 incompleteTaskCount 1729 } 1730 doneTaskCount 1731 doneStepCount 1732 verificationPhotos { 1733 id 1734 stepTitle 1735 pictureIdentifier 1736 date 1737 stepId 1738 } 1739 propertyIndependent 1740 } 1741 status 1742 job { 1743 id 1744 duration 1745 scheduledStartTime 1746 scheduledEndTime 1747 offeredPrice 1748 offeredPriceCurrency 1749 totalTaskCount 1750 isProMarketplaceJob 1751 note 1752 title 1753 jobType 1754 isForwardingEnabled 1755 forwardedOfferedPrice 1756 forwardedNote 1757 } 1758 isForwarded 1759 property { 1760 id 1761 timeZone 1762 title 1763 city 1764 state 1765 country 1766 apartment 1767 street 1768 zip 1769 location { 1770 latitude 1771 longitude 1772 } 1773 countryCode 1774 } 1775 sender { 1776 id 1777 userData { 1778 id 1779 firstName 1780 lastName 1781 } 1782 } 1783 cleaners { 1784 date 1785 status 1786 userData { 1787 id 1788 firstName 1789 lastName 1790 pictureIdentifier 1791 } 1792 } 1793 recipients { 1794 date 1795 status 1796 userData { 1797 id 1798 firstName 1799 lastName 1800 pictureIdentifier 1801 } 1802 } 1803 progress { 1804 id 1805 actualStartTime 1806 actualEndTime 1807 startLocation { 1808 latitude 1809 longitude 1810 } 1811 endLocation { 1812 latitude 1813 longitude 1814 } 1815 completedTaskCount 1816 problemCount 1817 additionalReportCount 1818 verificationPictureCount 1819 bilableTime 1820 totalMileage 1821 totalCost 1822 } 1823 problems { 1824 id #stepId 1825 stepTitle 1826 checklistId 1827 checklistTitle 1828 note 1829 pictureIdentifiers 1830 severity 1831 date 1832 title 1833 status 1834 resolverName 1835 lastUpdatedAt 1836 } 1837 skillRequirements { 1838 skillId 1839 title 1840 } 1841 costs { 1842 ...costFields 1843 } 1844 savedIssuesCost 1845 spottedIssuesCost 1846 totalNumberOfSavedIssues 1847 totalNumberOfSpottedIssues 1848 } 1849 } 1850 ${lZ} 1851`,dbe=F` 1852 query getTaskFeedbacks($jobSnapshotId: ID!, $aiInspected: Boolean, $page: Int, $limit: Int) { 1853 getTaskFeedbacks( 1854 jobSnapshotId: $jobSnapshotId 1855 aiInspected: $aiInspected 1856 page: $page 1857 limit: $limit 1858 ) { 1859 error 1860 feedbacks { 1861 _id 1862 stepId 1863 pictureUrl 1864 taskId 1865 thumbs 1866 comment 1867 type 1868 source 1869 confidence 1870 aiComment 1871 } 1872 page 1873 limit 1874 } 1875 } 1876`,fbe=F` 1877 query GetJobLifecycle($jobSnapshotId: ID!) { 1878 GetJobLifecycle(jobSnapshotId: $jobSnapshotId) { 1879 error 1880 result { 1881 event 1882 timestamp 1883 sender 1884 to 1885 } 1886 } 1887 } 1888`,pZ=navigator?.userAgent,mZ=null;mZ=(()=>{try{return(((Wi()||{})._versions_||[]).find(e=>e?.name===`@properly/desktop`)||{})?.version||`unknown`}catch(e){return R.default.error(`Error trying to get version of application`,e),`unknown`}})();var hZ=e=>({name:e,userRole:`HOST`,date:new Date().toISOString(),syncClientTimestamp:new Date().toISOString(),languageCode:(0,pi.default)(),referralSource:`desktop`,applicationVersion:mZ,deviceType:`WEBAPP`,deviceModel:`unknown`,clientUserAgent:pZ}),gZ=e=>{let{jobType:t,isForwardingEnabled:n,property:r,day:i,endDay:a,checklist:o,offeredPrice:s,offeredPriceCurrency:c,selectedCleaners:l,note:u,title:d,jobStartTimeType:f,eventId:p,skills:m,tasks:h,prevJobRequestId:g,sourceJobSnapshotId:_}=e,v=parseFloat(e.duration),y=To(r),b=f===`FLEXIBLE`?a:null,x=z.default.tz(i,y).millisecond(0).toDate(),S=b?z.default.tz(b,y).millisecond(0).toDate():z.default.tz(i,y).add(v,`minutes`).millisecond(0).toDate(),C=h.map(e=>({id:e.id,sourceProblemId:e.sourceProblemId,title:e.title,note:e.note,pictureIdentifiers:e.pictureIdentifiers})),w={},T=ls(h);return T&&(w.sourceJobSnapshotId=g||_,w.problemIds=T),{jobType:t,isForwardingEnabled:n,title:d,note:u||``,propertyId:r.objectId,type:f===`fixed`||f===`REGULAR`?`REGULAR`:`FLEXIBLE`,checklistIds:o,serviceProviderIds:l,offeredPrice:parseFloat(s)||0,offeredPriceCurrency:c,duration:v,skills:m,calendarEventId:p,startDate:x,endDate:S,tasks:C,sourceProblems:T?w:null}},pbe=async e=>{try{return(await QF.mutate({mutation:aZ,variables:{input:{eventMetadataInput:hZ(`JOB_SEND`),eventInput:gZ(e)}},fetchPolicy:`no-cache`})).data.JobRequestEvent.JobRequestEventResponse}catch(e){return R.default.error(`createJobRequest ${e}`),e}},mbe=async({id:e,job:t,adminId:n})=>{try{return(await QF.mutate({mutation:aZ,variables:{input:{eventMetadataInput:{...hZ(`JOB_EDIT`),adminId:n},eventInput:{...gZ(t),id:e}}},fetchPolicy:`no-cache`})).data.JobRequestEvent.JobRequestEventResponse}catch(e){return R.default.error(`editJobRequestApi ${e}`),e}},hbe=async({id:e,serviceProviderIds:t,propertyId:n})=>{try{return(await QF.mutate({mutation:aZ,variables:{input:{eventMetadataInput:hZ(`SEND_TO_MORE_CLEANERS`),eventInput:{id:e,serviceProviderIds:t,propertyId:n}}},fetchPolicy:`no-cache`})).data.JobRequestEvent.JobRequestEventResponse}catch(e){return R.default.error(`sendJobRequestToMoreCleaners API ${e}`),e}},gbe=async({id:e,recipientIds:t,offeredPrice:n,note:r})=>{try{let i=(await QF.mutate({mutation:ibe,variables:{jobId:e,recipientIds:t,offeredPrice:n,note:r,metadata:{languageCode:(0,pi.default)(),referralSource:`desktop`,applicationVersion:mZ,deviceType:`WEBAPP`,deviceModel:`unknown`,clientUserAgent:pZ}},fetchPolicy:`no-cache`})).data.ForwardJob;if(i.error)throw R.default.error(`forwardJobApi ${i.error}`),i;return i}catch(e){return R.default.error(`forwardJobApi API ${e}`),e}},_Z=async e=>{try{return(await QF.mutate({mutation:aZ,variables:{input:{eventMetadataInput:hZ(`JOB_HOST_CANCEL`),eventInput:{id:e}}},fetchPolicy:`no-cache`})).data.JobRequestEvent.JobRequestEventResponse}catch(e){return R.default.error(`cancelJobRequest ${e}`),null}},_be=async e=>{try{return(await QF.mutate({mutation:tbe,variables:{input:{eventMetadataInput:hZ(`UPDATE_PROBLEM`),job:e}},fetchPolicy:`no-cache`})).data.UpdateProblem.UpdateProblemEventResponse}catch(e){return R.default.error(`updateProblem api ${e}`),null}},vbe=async e=>{try{return(await QF.query({query:sbe,variables:{role:`HOST`,languageCode:(0,pi.default)(),id:e,isHost:!0},fetchPolicy:`no-cache`})).data.Job.progress}catch(e){return R.default.error(`[getJobProgressCountApi] ${e}`),e.apiError=!0,e}},ybe=e=>({type:e.type,value:parseFloat(e.value),note:e.note,pictureIdentifiers:e.pictureIdentifiers}),bbe=(e,t)=>
1888({id:e,date:new Date,propertyId:t}),xbe=async(e,t,n,r)=>{try{let i=ybe(e),a=bbe(t,n);return R.default.debug(`jobCostInput : `,i),R.default.debug(`jobProgressInput : `,a),R.default.debug(`jobsReceivedMode : `,r),(await QF.mutate({mutation:nbe,variables:{input:{eventMetadataInput:{...hZ(`ADD_REPORT_COST`),...r&&{userRole:`CLEANER`}},jobCostInput:i,jobProgressInput:a,clientMutationId:JN(10)},fetchPolicy:`no-cache`}})).data.ReportCost.JobEventResponse}catch(e){return R.default.error(`addCost api ${e}`),null}},Sbe=async(e,{aiInspected:t,page:n,limit:r}={})=>{let i={jobSnapshotId:e};return t!==void 0&&(i.aiInspected=t),n!==void 0&&(i.page=n),r!==void 0&&(i.limit=r),(await QF.query({query:dbe,variables:i,fetchPolicy:`no-cache`}).then(({data:e,errors:t})=>{if(t)throw R.default.error(`Client task feedback error`),t;return e}))?.getTaskFeedbacks?.feedbacks},vZ=async e=>{let{jobSnapshotId:t,stepId:n,taskId:r,value:i,pictureUrl:a,thumbs:o,comments:s}=e;try{return(await QF.mutate({mutation:rbe,variables:{jobSnapshotId:t,stepId:n,taskId:r,value:i,pictureUrl:a,thumbs:o,comment:s},fetchPolicy:`no-cache`})).data?.postTaskFeedback?.payload}catch(e){throw R.default.error(`postTaskFeedback api ${e}`),e}},Cbe=async(e,t=!1)=>{try{return(await QF.query({query:cbe,variables:{role:t?`CLEANER`:`HOST`,languageCode:(0,pi.default)(),id:e,isHost:!t},fetchPolicy:`no-cache`})).data.Job}catch(e){return R.default.error(`[getJobProgressDetailViewApi] ${e}`),e.apiError=!0,e}},yZ=async e=>{try{return(await QF.query({query:fbe,variables:{jobSnapshotId:e},fetchPolicy:`no-cache`})).data.GetJobLifecycle.result}catch(e){return R.default.error(`[getJobLifecycleApi] ${e}`),e.apiError=!0,e}},bZ=async(e,t)=>{try{return(await QF.mutate({mutation:aZ,variables:{input:{eventMetadataInput:{...hZ(t?`ACCEPT_CHANGES`:`JOB_ACCEPT`),userRole:`CLEANER`},eventInput:{id:e}}},fetchPolicy:`no-cache`})).data.JobRequestEvent.JobRequestEventResponse}catch(e){return R.default.error(`acceptJobRequestApi ${e}`),e}},xZ=async(e,t)=>{try{return(await QF.mutate({mutation:aZ,variables:{input:{eventMetadataInput:{...hZ(t?`DECLINE_CHANGES`:`JOB_DECLINE`),userRole:`CLEANER`},eventInput:{id:e}}},fetchPolicy:`no-cache`})).data.JobRequestEvent.JobRequestEventResponse}catch(e){return R.default.error(`declineJobRequestApi ${e}`),e}};function SZ(e,t){return{type:jk,date:t,initOrDeinit:e}}function CZ(e,t){return{type:Mk,paginate:e,date:t}}function wZ(){return{type:Nk}}function TZ(e){return{type:Fk,data:e}}function wbe(){return{type:Pk}}function EZ(e,t,n,r){return{type:Ik,mode:e,data:t,resolve:n,reject:r}}function DZ(e){return{type:Lk,events:e}}function Tbe(e){return{type:Rk,eventId:e}}var OZ=_i.default.bind(pX);function kZ(e={}){let t=xe(),[n,r]=(0,B.useState)(!1),i=()=>t(XJ()),a=(0,B.useMemo)(()=>BW(),[]),o=j(t=>a(t,e)),s=j(AW),c=j(_J)||[],l=s||{},u=o?.jobRequest?.propertyData?.proMarketId&&o?.jobRequest?.requestedCleaners?.[0].isSuggested,d=async n=>{r(!0);try{n===`accept`&&(e?.status===Ua.PendingChanges?await bZ(e.jobId,!0):await bZ(e.jobId)),n===`decline`&&(e?.status===Ua.PendingChanges?await xZ(e.jobId,!0):await xZ(e.jobId)),t(wZ()),r(!1),i()}catch(e){r(!1),R.default.error(`Error while accepting/declining job request`,e)}},f=(e,t)=>(0,K.jsx)(_X,{title:U(`jobdetails.sentby`),children:(0,K.jsx)(Kj,{picture:{text:Go(e.firstName,e.lastName),picture:e.pictureIdentifier},type:`jobdetails`,noHover:!0,onClick:()=>{},active:!1,title:t,subTitle:`${e.firstName} ${e.lastName}`})}),p=e=>{let t=Kc(Ao(e));return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(I,{sx:{display:`flex`},children:[(0,K.jsxs)(I,{sx:{flexDirection:`column`},className:OZ(`jobdetails__date`),children:[(0,K.jsx)(Xg,{type:`bold`,children:U(`job_request.start_after`)}),(0,K.jsx)(Kg,{type:`reseth1`,children:Po(e)}),(0,K.jsx)(Kg,{type:`reseth1`,children:jo(e)})]}),(0,K.jsx)(I,{sx:{margin:`0 16px`},className:OZ(`jobdetails__date-icon`),children:(0,K.jsx)(Y.IcTimeArrow,{})}),(0,K.jsxs)(I,{sx:{flexDirection:`column`},className:OZ(`jobdetails__date`),children:[(0,K.jsx)(Xg,{type:`bold`,children:U(`job_request.finish_before`)}),(0,K.jsx)(Kg,{type:`reseth1`,children:Fo(e)}),(0,K.jsx)(Kg,{type:`reseth1`,children:Mo(e)})]})]}),(0,K.jsx)(`div`,{children:(0,K.jsxs)(Yg,{type:`greyloading`,children:[`Duration:`,t]})})]})},m=e=>{let t=Kc(Ao(e));return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Kg,{type:`reseth1`,children:No(e)}),(0,K.jsxs)(`div`,{className:OZ(`jobdetails__date`),children:[(0,K.jsx)(Kg,{type:`reseth1`,children:jo(e)}),(0,K.jsx)(`div`,{className:OZ(`jobdetails__date-icon`),children:(0,K.jsx)(Y.IcTimeArrow,{})}),(0,K.jsx)(Kg,{type:`reseth1`,children:Mo(e)})]}),(0,K.jsx)(`div`,{children:(0,K.jsxs)(Yg,{type:`greyloading`,children:[`Duration:`,t]})})]})},h=e=>{let{checklists:t=[],skillRequirements:n=[]}=e||{},r=t.filter(e=>!e.isOneOff),i=(r||[{}]).map(({title:e},n)=>({title:e||U(`jobdetails.no_checklist`),number:t&&t.length>1?n+1:void 0})),a=(c||[{}]).map(({title:e},t)=>({title:e||U(`jobdetails.no_task`),number:c&&c.length>0?t+1:void 0})),o=(n||[{}]).map(({title:e,progress:t},r)=>({title:e||U(`skills.no_skill`),number:n?.length>0?r+1:void 0,progress:t}));return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(_X,{title:U(`jobdetails.date_time`),children:Io(e)?p(e):m(e)}),Qs(e)&&(0,K.jsx)(_X,{title:U(`jobdetails.event`),children:(0,K.jsx)(Kg,{type:`reseth1`,children:Qs(e)})}),(0,K.jsx)(Mw,{meta:{propertyId:e.propertyId,jobSnapshotId:e.jobId},hasAccessFormatter:e=>e.canSeePriceAndPayments,render:t=>t&&Zs(e)?(0,K.jsx)(_X,{title:U(`jobdetails.price`),children:e.offeredPrice!==0&&(0,K.jsxs)(Kg,{type:`reseth1`,children:[`${e.offeredPriceCurrency||``} `,(0,K.jsx)(`span`,{"data-testid":`offered-price-on-job-details`,children:e.offeredPrice})]})}):null}),e.jobType&&e.jobType!==`do_job`&&(0,K.jsx)(_X,{title:U(`job_request.type`),children:(0,K.jsx)(Kg,{type:`reseth1`,children:Vl(e.jobType)?U(`reports.jobTypes.${Vl(e.jobType)}`):e.jobType})}),r.length>0&&(0,K.jsx)(_X,{title:U(`jobdetails.checklist`),children:i.map(({title:e,number:t})=>(0,K.jsxs)(Kg,{type:`reseth1`,children:[t&&(0,K.jsx)(I,{component:`span`,sx:{minWidth:`28px`,display:`inline-block`},children:`${t}) `}),e]},e))}),c.length>0&&(0,K.jsx)(_X,{title:U(`job_request.task`),children:a.map(({title:e,number:t})=>(0,K.jsxs)(Kg,{type:`reseth1`,children:[t&&(0,K.jsx)(I,{component:`span`,sx:{minWidth:`28px`,display:`inline-block`},children:`${t}) `}),e]},e))}),n?.length>0&&(0,K.jsx)(_X,{title:U(`skills.requirements`),children:o.map(({title:e,number:t,progress:n})=>(0,K.jsx)(Kg,{type:`reseth1`,children:(0,K.jsxs)(I,{sx:{display:`inline-flex`},children:[t&&(0,K.jsx)(I,{component:`span`,sx:{minWidth:`28px`,display:`inline-block`},children:`${t}) `}),e,n===Wa.PROGRESS_STATUS.COMPLETED&&(0,K.jsx)(I,{component:`span`,sx:{marginLeft:`10px`},children:(0,K.jsx)(Y.Ic16PxCheck,{height:`24px`,width:`24px`,byHeight:!0})})]})},e))}),(0,K.jsx)(_X,{title:U(`jobdetails.address`),children:(0,K.jsx)(vX,{propertyData:e.propertyData})}),f(e.senderData,e.companyName),Xs(e)&&(0,K.jsx)(_X,{title:U(`job_request.description`),children:(0,K.jsx)(Xg,{children:(0,K.jsx)(Yf,{isLast:!0,isFirst:!0,textAreaHeight:200,value:e.note.trim(),type:`textarea`,disabled:!0})})})]})},g=()=>(0,K.jsx)(`div`,{children:(0,K.jsxs)(_X,{title:`Accept or Decline the job request by clicking below`,children:[(0,K.jsxs)(I,{sx:{display:`flex`,gap:`10px`,justifyContent:`center`},children:[(0,K.jsx)(q,{types:[`size-medium`,`type-full-primary`],onClick:()=>d(`accept`),disabled:n,children:`Accept`}),(0,K.jsx)(q,{types:[`type-border-grey`,`size-medium`],onClick:()=>d(`decline`),disabled:n,children:`Decline`})]}),n&&(0,K.jsx)(I,{sx:{textAlign:`center`,marginTop:`10px`},children:(0,K.jsx)(Yg,{type:`greyloading`,children:U(`retry_payments.processing`)})})]})});if(l?.state===1)return(0,K.jsx)(`div`,{className:OZ(`jobdetails__bg`),children:(0,K.jsx)(OX,{closeJobRequestDetails:i}
1888)});let{jobRequest:_}=o||{};if(l?.state===2||!o||!_)return(0,K.jsxs)(`div`,{className:OZ(`jobdetails__bg`),children:[(0,K.jsx)(Lj,{onClose:()=>i(),middleText:U(`jobdetails.errror_head`)}),(0,K.jsx)(`div`,{className:OZ(`jobdetails__loading`),children:(0,K.jsx)(Yg,{type:`orange`,children:U(`jobdetails.error`)})})]});let v=U(Oo(_)),y=Bl(_);return(0,K.jsxs)(`div`,{className:OZ(`jobdetails__bg`),"data-testid":`job-details-popover`,children:[(0,K.jsx)(Lj,{onClose:i,middleText:v}),(0,K.jsx)(Jj,{children:(0,K.jsxs)(`div`,{className:OZ(`jobdetails__fixmargin`),children:[wX()&&(0,K.jsx)(TX,{jsonData:_,displayId:_.jobId,mode:`jobDetail`}),(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`space-between`},children:y&&(0,K.jsxs)(Gg,{style:{marginBottom:0},children:[y,` `,u&&(0,K.jsx)(ef,{})]})}),(0,K.jsxs)(`div`,{className:OZ(`jobdetails__flex`),children:[(0,K.jsx)(`div`,{className:OZ(`jobdetails__flex-1`),children:h(_)}),(0,K.jsx)(`div`,{className:OZ(`jobdetails__flex-1`),children:g(_)})]})]})})]})}kZ.propTypes={closeJobRequestDetails:V.default.func,gotToJobsLV:V.default.func};var Ebe=({jobRequestId:e})=>{let t=xe(),n=(0,B.useMemo)(()=>aw(e),[e]),r=(0,B.useMemo)(()=>bw(d_),[]),i=j(AW),a=j(n),o=j(MW),s=j(NW),c=j(PW),l=j(e=>r(e)?.isErrored),u=()=>{t(uF(d_))},d=i||{},f=a?a.propertyData.countryCode:``;return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Pg,{style:{zIndex:`100 !important`},onClose:()=>t(XJ()),show:d.isOpen,children:(0,K.jsx)(`div`,{children:d.isReceivedJob?(0,K.jsx)(kZ,{jobRequestId:e,jobId:e,status:a?.statusString}):(0,K.jsx)(ebe,{jobRequestId:e,jobSnapshotId:e})})}),(0,K.jsx)(X,{height:210,width:580,onClose:()=>t(tY()),onClick:()=>t(tY()),show:d.isOpenEditModal,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:U(`jobdetails.edit_modal`)}),(0,K.jsx)(X.Text,{children:U(`jobdetails.edit_modal_txt`)}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:()=>t(tY())}),(0,K.jsx)(X.Ok,{onClick:()=>t(q_e()),"data-testid":`continue-edit-job-request`,children:U(`jobdetails.edit_modal_continue`)})]})]})}),(0,K.jsx)(Mg,{onClose:()=>t(ZJ()),show:d.isOpenCostModal,children:(0,K.jsx)(`div`,{children:(0,K.jsx)(dv,{open:d.isOpenCostModal,close:()=>t(ZJ()),data:(...e)=>t(QJ(...e)),onUploadPic:(...e)=>t($J(...e)),tempMilesImages:o,tempDurationImages:s,tempCostImages:c,costType:(...e)=>t(sY(...e)),countryCode:f,imageUploadErrored:l})})}),(0,K.jsx)(Dg.ImageUpload,{showUploadError:l,onCloseUploadError:u})]})},AZ={section:`_section_77qtf_2`,"checklist__clone-overlay":`_checklist__clone-overlay_77qtf_12`,checklistCloneOverlay:`_checklist__clone-overlay_77qtf_12`,"checklist__clone-noresult":`_checklist__clone-noresult_77qtf_22 label`,checklistCloneNoresult:`_checklist__clone-noresult_77qtf_22 label`,checklist__tasks:`_checklist__tasks_77qtf_34`,checklistTasks:`_checklist__tasks_77qtf_34`,"checklist__clone-box":`_checklist__clone-box_77qtf_38 input-error`,checklistCloneBox:`_checklist__clone-box_77qtf_38 input-error`,"checklist__clone-box-txt":`_checklist__clone-box-txt_77qtf_46`,checklistCloneBoxTxt:`_checklist__clone-box-txt_77qtf_46`,"checklist__clone-box-check":`_checklist__clone-box-check_77qtf_49`,checklistCloneBoxCheck:`_checklist__clone-box-check_77qtf_49`,checklist__upload_input:`_checklist__upload_input_77qtf_53`,checklistUploadInput:`_checklist__upload_input_77qtf_53`,checklist__popover:`_checklist__popover_77qtf_61`,checklistPopover:`_checklist__popover_77qtf_61`,"checklist__popover--sidebar":`_checklist__popover--sidebar_77qtf_74`,checklistPopoverSidebar:`_checklist__popover--sidebar_77qtf_74`,"checklist__popover--steps":`_checklist__popover--steps_77qtf_84`,checklistPopoverSteps:`_checklist__popover--steps_77qtf_84`,"checklist__popover--textslide":`_checklist__popover--textslide_77qtf_94`,checklistPopoverTextslide:`_checklist__popover--textslide_77qtf_94`,checklist__popoveritem:`_checklist__popoveritem_77qtf_97 input`,checklistPopoveritem:`_checklist__popoveritem_77qtf_97 input`,checklist__topalign:`_checklist__topalign_77qtf_122`,checklistTopalign:`_checklist__topalign_77qtf_122`,"checklist__topalign-title":`_checklist__topalign-title_77qtf_126 cut-txt`,checklistTopalignTitle:`_checklist__topalign-title_77qtf_126 cut-txt`,"checklist__topalign--col":`_checklist__topalign--col_77qtf_130`,checklistTopalignCol:`_checklist__topalign--col_77qtf_130`,"checklist__topalign-txt":`_checklist__topalign-txt_77qtf_133 input-error`,checklistTopalignTxt:`_checklist__topalign-txt_77qtf_133 input-error`,checklist__popoverwrap:`_checklist__popoverwrap_77qtf_138`,checklistPopoverwrap:`_checklist__popoverwrap_77qtf_138`,"checklist__pin-actual":`_checklist__pin-actual_77qtf_142`,checklistPinActual:`_checklist__pin-actual_77qtf_142`,"view-only":`_view-only_77qtf_158`,viewOnly:`_view-only_77qtf_158`,"checklist__pin-icon--bottom":`_checklist__pin-icon--bottom_77qtf_166`,checklistPinIconBottom:`_checklist__pin-icon--bottom_77qtf_166`,"checklist__pin-icon--left":`_checklist__pin-icon--left_77qtf_167`,checklistPinIconLeft:`_checklist__pin-icon--left_77qtf_167`,"checklist__pin-icon--right":`_checklist__pin-icon--right_77qtf_168`,checklistPinIconRight:`_checklist__pin-icon--right_77qtf_168`,"checklist__pin-icon--top":`_checklist__pin-icon--top_77qtf_169`,checklistPinIconTop:`_checklist__pin-icon--top_77qtf_169`,"checklist__pin-actual--positioned":`_checklist__pin-actual--positioned_77qtf_179`,checklistPinActualPositioned:`_checklist__pin-actual--positioned_77qtf_179`,"checklist__pin-actual--dragging":`_checklist__pin-actual--dragging_77qtf_182`,checklistPinActualDragging:`_checklist__pin-actual--dragging_77qtf_182`,"checklist__pin-actual--top":`_checklist__pin-actual--top_77qtf_185`,checklistPinActualTop:`_checklist__pin-actual--top_77qtf_185`,"checklist__pin-actual--left":`_checklist__pin-actual--left_77qtf_188`,checklistPinActualLeft:`_checklist__pin-actual--left_77qtf_188`,"checklist__pin-actual--bottom":`_checklist__pin-actual--bottom_77qtf_195`,checklistPinActualBottom:`_checklist__pin-actual--bottom_77qtf_195`,"checklist__pin-actual--right":`_checklist__pin-actual--right_77qtf_202`,checklistPinActualRight:`_checklist__pin-actual--right_77qtf_202`,"checklist__pin-actual--small":`_checklist__pin-actual--small_77qtf_208`,checklistPinActualSmall:`_checklist__pin-actual--small_77qtf_208`,"checklist__pin-outer":`_checklist__pin-outer_77qtf_212`,checklistPinOuter:`_checklist__pin-outer_77qtf_212`,checklist__trash:`_checklist__trash_77qtf_215 normal`,checklistTrash:`_checklist__trash_77qtf_215 normal`,"checklist__trash-inner":`_checklist__trash-inner_77qtf_230`,checklistTrashInner:`_checklist__trash-inner_77qtf_230`,checklist__pin:`_checklist__pin_77qtf_142`,checklistPin:`_checklist__pin_77qtf_142`,"checklist__pin--hover":`_checklist__pin--hover_77qtf_242`,checklistPinHover:`_checklist__pin--hover_77qtf_242`,checklist__fixedlayer:`_checklist__fixedlayer_77qtf_245`,checklistFixedlayer:`_checklist__fixedlayer_77qtf_245`,checklist__image:`_checklist__image_77qtf_254`,checklistImage:`_checklist__image_77qtf_254`,"checklist__image-actual":`_checklist__image-actual_77qtf_261`,checklistImageActual:`_checklist__image-actual_77qtf_261`,"checklist__image-replace":`_checklist__image-replace_77qtf_271 input`,checklistImageReplace:`_checklist__image-replace_77qtf_271 input`,"checklist__image-pin-overlay":`_checklist__image-pin-overlay_77qtf_289`,checklistImagePinOverlay:`_checklist__image-pin-overlay_77qtf_289`,"checklist__image-info":`_checklist__image-info_77qtf_299 normal`,checklistImageInfo:`_checklist__image-info_77qtf_299 normal`,"checklist__image-info-txt":`_checklist__image-info-txt_77qtf_315`,checklistImageInfoTxt:`_checklist__image-info-txt_77qtf_315`,checklist__maxwidth:`_checklist__maxwidth_77qtf_320`,checklistMaxwidth:`_checklist__maxwidth_77qtf_320`,checklist__needsverify:`_checklist__needsverify_77qtf_325`,checklistNeedsverify:`_checklist__needsverify_77qtf_325`,"checklist__needsverify-left":`_checklist__needsverify-left_77qtf_333`,checklistNeedsverifyLeft:`_checklist__needsverify-left_77qtf_333`,"checklist__needsverify-txt":`_checklist__needsverify-txt_77qtf_337 text-type-small`,checklistNeedsverifyTxt:`_checklist__needsverify-txt_77qtf_337 text-type-small`,checklist__btn:`_checklist__btn_77qtf_343 input`,checklistBtn:`_checklist__btn_77qtf_343 input`,"checklist__btn--first":`_checklist__btn--first_77qtf_365`,checklistBtnFirst:`_checklist__btn--first_77qtf_365`,"checklist__btn--last":`_checklist__btn--last_77qtf_368`,checklistBtnLast:`_checklist__btn--last_77qtf_368`,"checklist__btn-txt":`_checklist__btn-txt_77qtf_371`,checklistBtnTxt:`_checklist__btn-txt_77qtf_371`,"checklist__btn-wrap":`_checklist__btn-wrap_77qtf_374`,checklistBtnWrap:`_checklist__btn-wrap_77qtf_374`,"checklist__box-wrap":`_checklist__box-wrap_77qtf_387`,checklistBoxWrap:`_checklist__box-wrap_77qtf_387`,checklist__topbar:`_checklist__topbar_77qtf_391`,checklistTopbar:`_checklist__topbar_77qtf_391`,checklist__topdes:`_checklist__topdes_77qtf_39
18886`,checklistTopdes:`_checklist__topdes_77qtf_396`,"checklist__topdes-right":`_checklist__topdes-right_77qtf_399`,checklistTopdesRight:`_checklist__topdes-right_77qtf_399`,checklist__createchecklist:`_checklist__createchecklist_77qtf_403`,checklistCreatechecklist:`_checklist__createchecklist_77qtf_403`,"checklist__createchecklist-spacer--minheight":`_checklist__createchecklist-spacer--minheight_77qtf_412`,checklistCreatechecklistSpacerMinheight:`_checklist__createchecklist-spacer--minheight_77qtf_412`,"checklist__createchecklist-spacer":`_checklist__createchecklist-spacer_77qtf_412`,checklistCreatechecklistSpacer:`_checklist__createchecklist-spacer_77qtf_412`,"checklist__createchecklist-abs":`_checklist__createchecklist-abs_77qtf_419`,checklistCreatechecklistAbs:`_checklist__createchecklist-abs_77qtf_419`,"checklist__topbar-icon":`_checklist__topbar-icon_77qtf_431`,checklistTopbarIcon:`_checklist__topbar-icon_77qtf_431`,"checklist__overlay-white":`_checklist__overlay-white_77qtf_436`,checklistOverlayWhite:`_checklist__overlay-white_77qtf_436`,"checklist__overlay-white--show":`_checklist__overlay-white--show_77qtf_447`,checklistOverlayWhiteShow:`_checklist__overlay-white--show_77qtf_447`,checklist__dropbox:`_checklist__dropbox_77qtf_450`,checklistDropbox:`_checklist__dropbox_77qtf_450`,checklist__placeholder:`_checklist__placeholder_77qtf_455`,checklistPlaceholder:`_checklist__placeholder_77qtf_455`,text:`_text_77qtf_461`,indicate:`_indicate_77qtf_466`,"checklist__topbar-section":`_checklist__topbar-section_77qtf_470`,checklistTopbarSection:`_checklist__topbar-section_77qtf_470`,"checklist__topbar-section--right":`_checklist__topbar-section--right_77qtf_473`,checklistTopbarSectionRight:`_checklist__topbar-section--right_77qtf_473`,bubble:`_bubble_77qtf_48
18880`,"bubble-outer":`_bubble-outer_77qtf_489 input-error`,bubbleOuter:`_bubble-outer_77qtf_489 input-error`,bubble__wrap:`_bubble__wrap_77qtf_505`,bubbleWrap:`_bubble__wrap_77qtf_505`,bubble__container:`_bubble__container_77qtf_508`,bubbleContainer:`_bubble__container_77qtf_508`,pin:`_pin_77qtf_512`,"pin--opacity":`_pin--opacity_77qtf_520`,pinOpacity:`_pin--opacity_77qtf_520`,"checklist__container--isError":`_checklist__container--isError_77qtf_524`,checklistContainerIsError:`_checklist__container--isError_77qtf_524`},jZ=_i.default.bind(AZ),MZ={height:`100%`,display:`flex`,flexDirection:`column`};function Dbe({row:e,index:t,key:n,style:r,ctx:{toggleSelectedProperty:i,properties:a}}){return(0,K.jsx)(tx.GridRow,{spacing:`0`,style:{...r,marginBottom:8},children:(0,K.jsx)(tx.GridItem,{spacing:`4`,itemPerRow:`1`,children:(0,K.jsx)(BA,{onClick:i(t),property:a[e],selected:!0})})},n)}function Obe({row:e,key:t,style:n,ctx:{addSingleProperty:r}}){return(0,K.jsx)(tx.GridRow,{spacing:`0`,style:{...n,marginBottom:8},children:(0,H.default)(e,e=>(0,K.jsx)(tx.GridItem,{spacing:`4`,itemPerRow:`1`,children:(0,K.jsx)(BA,{onClick:r(e.objectId),property:e})},e.objectId))},t)}function kbe(){let e=xe(),{result:t,searchQuery:n}=j((0,B.useMemo)(()=>kw(`properties`,`merge_property_search`,PC),[])),r=j(FC),i=j(gW),a=j(PC),o=j(mW),s=j(hW),c=(0,B.useMemo)(()=>(0,xo.default)(Uo(t),e=>cc(e.ownerRole,r)),[t,r]),l=(0,B.useCallback)(t=>{e(pq({hideMsg:t}))},[e]),u=(0,B.useCallback)(()=>{e(pq({hideMsg:!1,isOpen:!1,mode:0})),e(Pq([])),e($P(`merge_property_search`,``))},[e]),d=(0,B.useCallback)(()=>{let t=i.selected;t.length<2?(e(pq({hideMsg:!1,isOpen:!1,mode:0})),e(Pq([])),e($P(`merge_property_search`,``))):e(hq(t))},[e,i.selected]),f=(0,B.useCallback)(t=>()=>{e(Pq([...i.selected,t]))},[e,i.selected]),p=(0,B.useCallback)(t=>()=>{e(Pq(i.selected.filter((e,n)=>n!==t)))},[e,i.selected]),m=()=>{e(vq())},h=(0,B.useCallback)(t=>{e($P(`merge_property_search`,t))},[e]),g=(0,B.useCallback)((e,t)=>{let n=t;return n.length===0?(0,K.jsx)(`div`,{className:jZ(`checklist__clone-noresult`),children:U(`account.merge_property.no_properties_selected`)}):(0,K.jsx)(Ft,{children:({height:t,width:r})=>(0,K.jsx)(ui,{height:t,rowHeight:78,rowCount:n.length,rowRenderer:Co({data:n,handler:Dbe,ctx:{toggleSelectedProperty:p,properties:e}}),width:r})})},[p]),_=(0,B.useCallback)((e,t)=>{let n=(0,xo.default)(e,e=>(0,eb.default)(t,e.objectId)===-1);if(n.length===0)return(0,K.jsx)(`div`,{className:jZ(`checklist__clone-noresult`),children:U(`account.merge_property.no_properties_found`)});let r=(0,wx.default)(n,2);return(0,K.jsx)(Ft,{children:({height:e,width:t})=>(0,K.jsx)(ui,{height:e,rowHeight:78,rowCount:r.length,rowRenderer:Co({data:r,handler:Obe,ctx:{addSingleProperty:f}}),width:t})})},[f]);return i.isOpen?(0,K.jsxs)(tx,{show:!0,children:[(0,K.jsxs)(tx.Header,{children:[(0,K.jsx)(Qb,{type:`merge`,isLoading:i.mode===1,onClose:u,onDone:d,text:U(`account.merge_property.title`)}),(0,K.jsx)(Dm,{type:[`bottom`]})]}),(0,K.jsx)(tx.ContentWrap,{style:MZ,children:(0,K.jsx)(tx.Content,{type:`grey`,children:(0,K.jsxs)(tx.ContentInner,{style:MZ,children:[!i.hideMsg&&(0,K.jsx)(DM,{text:U(`account.merge_property.info`),icon:`light`,color:`red`,onClose:()=>l(!0)}),(0,K.jsxs)(tx.GridRow,{spacing:`16`,style:{height:`100%`},children:[(0,K.jsxs)(tx.GridItem,{spacing:`16`,itemPerRow:`3`,children:[(0,K.jsx)($g,{children:U(`account.merge_property.selected_properties`)}),(0,K.jsx)(I,{sx:{height:`calc(100% - 40px)`},children:g(a,i.selected)})]}),(0,K.jsxs)(tx.GridItem,{spacing:`16`,itemPerRow:`3`,style:{minWidth:`${100/3*2}px`,maxWidth:`none`},children:[(0,K.jsx)($g,{children:U(`account.merge_property.properties`)}),(0,K.jsx)($f,{placeholder:U(`account.merge_property.search_for_address`),value:n,onGrey:!0,iconLocation:`left`,onChange:h}),(0,K.jsx)(gm,{}),(0,K.jsx)(I,{sx:{height:`calc(100% - 80px)`},children:_(c,i.selected)})]})]}),i.mode===1&&(0,K.jsx)(`div`,{className:jZ(`checklist__clone-overlay`)})]})})}),(0,K.jsx)(wf,{open:!!(o||s),message:s?s.message:`Properties merged successfully!`,onClose:m,error:!!s,success:!!o})]}):null}Qn();var NZ=_i.default.bind(qW),Abe={line1:()=>{},line2:()=>{},upgrade:()=>{}},jbe=(0,B.memo)(function(){let e=xe(),t=ir(),n=j(qB),r=j(QC),i=j(FC),a=j(RC),o=j(sB),s=j(lB),{trackClick:c,trackModalAction:l}=nT(`PricingModals`),u=o&&!s&&wB(t.pathname),d=Object.keys(a||{}).length,[f,p]=(0,B.useState)(null),[m,h]=(0,B.useState)(!1),[g,_]=(0,B.useState)(``),v=(0,B.useCallback)(t=>{l(`pricing_modal_${t}`,`close`),e(cz(t))},[e,l]),y=(0,B.useCallback)(()=>{c(`pricing_upgrade_button`,{context:`pricing_modal`}),e(cz(`default`)),e(oz(`upgrade`,{}))},[e,c]),b=(0,B.useCallback)(()=>{c(`pricing_admin_unlock_dashboard`,{context:`pricing_upgrade_modal`}),e(SB(!0)),v(`upgrade`)},[e,v,c]);(0,B.useEffect)(()=>{n?.kind!==`upgrade`&&(p(null),h(!1))},[n?.kind]);let x=(0,B.useCallback)(()=>{c(`pricing_contact_support`,{context:`cancel_subscription`}),e(cz(`contact`)),bu(U(`pricing.cancel_msg_intercom`))},[e,c]),S=(0,B.useMemo)(()=>({upgradeplan:{line1:()=>U(`pricing.modalmsgs.upgrade_to_pro`),line2:()=>{},upgrade:y},jobrequestlimitalreadyreached:{line1:()=>U(`pricing.modalmsgs.job_already_reached`),line2:(e,t)=>{let n=t.currentPlan.userData.subscription;return(0,K.jsxs)(`div`,{children:[U(`pricing.modalmsgs.job_already_reached_l2`,{num:n.allowedJobsMonth}),(0,K.jsxs)(`span`,{style:{fontWeight:`bold`}
1888,children:[n.currentPlanTitle,` `,U(`pricing.modalmsgs.job_reached_l3`)]}),U(`pricing.modalmsgs.job_reached_l4`)]})},upgrade:y},jobrequestlimitreached:{line1:(e,t)=>{let n=t.currentPlan.userData.subscription;return U(`pricing.modalmsgs.job_x_of_y`,{x:n.jobsUsedMonth,y:n.allowedJobsMonth})},line2:(e,t)=>{let n=t.currentPlan.userData.subscription;return(0,K.jsxs)(`div`,{children:[U(`pricing.modalmsgs.job_reached_l2`,{num:n.allowedJobsMonth}),(0,K.jsxs)(`span`,{style:{fontWeight:`bold`},children:[n.currentPlanTitle,` `,U(`pricing.modalmsgs.job_reached_l3`)]}),U(`pricing.modalmsgs.job_reached_l4`)]})},upgrade:y},yousend:{line1:(e,t)=>{let n=t.currentPlan.userData.subscription;return(0,K.jsx)(`div`,{children:U(`pricing.modalmsgs.job_x_of_y`,{x:n.jobsUsedMonth,y:n.allowedJobsMonth})})},line2:(e,t)=>{let n=t.currentPlan.userData.subscription;return(0,K.jsxs)(`div`,{children:[U(`pricing.modalmsgs.job_x_of_y_l2`,{num:n.allowedJobsMonth-n.jobsUsedMonth}),(0,K.jsxs)(`span`,{style:{fontWeight:`bold`},children:[n.currentPlanTitle,` `,U(`pricing.modalmsgs.job_x_of_y_l3`)]}),U(`pricing.modalmsgs.job_x_of_y_l4`)]})},upgrade:y}}),[y]),C=n||{},w=(e,t,n)=>{let r=S[t.defaultKind]||Abe;return(0,K.jsx)(Ng,{show:e,onClose:()=>v(`default`),children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{center:!0,children:r.line1(t,n)}),(0,K.jsx)(X.Text,{center:!0,children:r.line2(t,n)}),(0,K.jsxs)(X.Options,{center:!0,children:[mo(n.currentUser)&&(0,K.jsx)(q,{types:[`type-full-primary`,`size-medium`],onClick:r.upgrade,children:U(`pricing.upgrade`)}),!mo(n.currentUser)&&(0,K.jsx)(X.Text,{center:!0,children:U(`permissions.ask_your_admin_for_help`)})]})]})})},T=e=>{let t=()=>v(`contact`);return(0,K.jsx)(X,{show:e,onClose:t,height:200,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{center:!0,children:U(`pricing.modalmsgs.cancel_sub`)}),(0,K.jsx)(X.Text,{center:!0,children:U(`pricing.modalmsgs.cancel_sub_l2`)}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:t,children:U(`pricing.modalmsgs.cancel_sub_close`)}),(0,K.jsx)(X.Ok,{onClick:x,children:U(`pricing.modalmsgs.cancel_sub_contact`)})]})]})})},E=e=>{let t=!!f,n=f===i?.subscription?.currentPlanId,r=()=>{m||(p(null),v(`upgrade`))};return(0,K.jsx)(X,{width:t?620:760,height:`auto`,show:e,onClose:r,block:!0,variableContentHeight:!0,contentTheme:`light`,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Lj,{onClose:r,middleText:U(t?n?`pricing.continue_payment_title`:`pricing.upgrade_payment_title`:`pricing.pricing_plans`),rightPart:()=>u&&!t?(0,K.jsx)(q,{types:[`type-border-primary`,`size-medium`],onClick:b,styleOverwrite:{height:32,minWidth:180,marginRight:4},children:`Unlock User Dashboard`}):null}),!t&&(0,K.jsx)(Az,{isInModal:!0,closeModal:r,onUpgradePlan:e=>{c(`pricing_upgrade_plan_selected`,{context:`pricing_upgrade_modal`,plan_id:e}),p(e),h(!1)},propertyCount:d,showCurrentTrialUpgradeAction:!0,variant:`planPicker`}),t&&(0,K.jsx)(az,{show:!0,embedded:!0,planId:f,onClose:r,onComplete:()=>{h(!1),p(null),v(`upgrade`)},onBack:()=>{m||p(null)},onBusyChange:h,showSnackbarNotification:_,stepLabel:U(`pricing.upgrade_step_payment`)})]})})},D=e=>(0,K.jsx)(X,{show:e,height:190,onClose:()=>v(`thankyou`),children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{className:NZ(`pricing__thankyouhead`),children:U(`pricing.thank_you`)}),(0,K.jsx)(gm,{}),(0,K.jsx)(`div`,{className:NZ(`pricing__thankyoutxt`),children:U(`pricing.account_upgraded`)}),(0,K.jsx)(X.Options,{center:!0,children:(0,K.jsx)(X.Ok,{onClick:()=>v(`thankyou`),children:U(`modal.ok`)})})]})}),ee=e=>(0,K.jsx)(X,{show:e,height:190,onClose:()=>v(`updateThankyou`),children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{className:NZ(`pricing__thankyouhead`),children:U(`pricing.thank_you`)}),(0,K.jsx)(gm,{}),(0,K.jsx)(`div`,{className:NZ(`pricing__thankyoutxt`),children:U(`pricing.account_updated`)}),(0,K.jsx)(X.Options,{center:!0,children:(0,K.jsx)(X.Ok,{onClick:()=>v(`updateThankyou`),children:U(`modal.ok`)})})]})});if(!i)return null;let te={currentPlan:r,currentUser:i};return(0,K.jsxs)(`div`,{children:[D(C.kind===`thankyou`),ee(C.kind===`updateThankyou`),E(C.kind===`upgrade`),T(C.kind===`contact`),w(C.kind===`default`&&!!r,C.meta,te),(0,K.jsx)(wf,{open:!!g,message:g,onClose:()=>_(``),success:!0})]})}),{selectCurrentUserId:PZ}=SC,{selectContactsSearch:Mbe}=SC,{selectPropertiesSearch:Nbe}=SC;A(PC,e=>Lo(Uo(Object.values(e)))),A(KC,e=>Object.values(e));var FZ=e=>e.calendar,Pbe=A(FZ,e=>e.eventsLoading),Fbe=A(FZ,e=>e.filtersLoading),IZ=A(FZ,e=>e.showCanceledEvents),LZ=A(FZ,e=>e.filters),RZ=A(FZ,e=>e.filtersSchemaValidated),Ibe=A(FZ,e=>e.calendarInitialized),zZ=A(FZ,e=>e.dates?.dates);A(FZ,e=>e.dates);var BZ=A(FZ,e=>e.dates?.startDate),VZ=A(FZ,e=>e.dates?.endDate),HZ=A(FZ,e=>e.dates?.dateBucketIds),Lbe=A(FZ,e=>e.propertyViewportStart),Rbe=A(FZ,e=>e.propertyViewportEnd),zbe=A(FZ,e=>e.property),Bbe=A(FZ,e=>e.propertyEvents),Vbe=A(FZ,e=>e.propertyTotal),Hbe=A(FZ,e=>e.propertyTotalFiltered),Ube=A(FZ,e=>e.propertyLoaded),Wbe=A(FZ,e=>e.propertyLoadedFiltered),Gbe=A(FZ,e=>e.propertyOrder),Kbe=A(FZ,e=>e.propertyOrderFiltered),qbe=A(FZ,e=>e.error);A(FZ,e=>e.errorCount);var Jbe=A(FZ,e=>e.dates?.outsideRange),Ybe=A(FZ,e=>e.dates?.outsideRangeDayCount),UZ=A(FZ,e=>e.searchQuery),Xbe=A(FZ,e=>e.searchQueryLoaded),WZ=A(FZ,e=>!!e.searchQuery),GZ=A(LZ,e=>e&&e.length>0),KZ=A(A(GZ,LZ,(e,t)=>e&&rxe(t)),e=>e&&e.startDate&&e.endDate?(R.default.info(`selectFilterDays`,e,String(e.startDate),String(e.endDate)),Mc(e.startDate,e.endD
1888ate)):[]),qZ=A(WZ,GZ,(e,t)=>e||t),JZ=A(qZ,Gbe,Kbe,(e,t,n)=>e?n:t),Zbe=e=>A(JZ,t=>t[e]),Qbe=e=>A(Zbe(e),zbe,(e,t)=>t[e]),$be=e=>A(JZ,Bbe,(t,n)=>n[t[e]]),YZ=A(qZ,Vbe,Hbe,(e,t,n)=>e?n:t),XZ=A(qZ,Fbe,Pbe,A(WZ,Xbe,(e,t)=>e?!t:!1),(e,t,n,r)=>e&&t||Object.values(n).reduce((e,t)=>t||e,!1)||r),exe=A(qZ,Ube,Wbe,(e,t,n)=>e?n:t),txe=A(FZ,e=>e.modalData),nxe=[`jobDate`,`bookingDate`,`todoDate`];function rxe(e){let t=e.filter(e=>nxe.indexOf(e.id)!==-1).map(e=>ixe(e)).filter(e=>!!e),n=t.reduce((e,t)=>({startDate:e.startDate&&(0,z.default)(e.startDate).isBefore(t.startDate)?e.startDate:t.startDate,endDate:e.endDate&&(0,z.default)(e.endDate).isAfter(t.endDate)?e.endDate:t.endDate}),{});return t.length>0?n:null}function ixe({id:e,operator:t,value:n}={}){switch(t){case`on`:{let[e]=n||[];return{startDate:(0,z.default)(e).startOf(`d`),endDate:(0,z.default)(e).endOf(`d`)}}case`between`:{let[e,t]=n||[];return{startDate:(0,z.default)(e).startOf(`d`),endDate:(0,z.default)(t).endOf(`d`)}}case`today`:return{startDate:(0,z.default)().startOf(`d`),endDate:(0,z.default)().endOf(`d`)};case`tomorrow`:return{startDate:(0,z.default)().add(1,`d`).startOf(`d`),endDate:(0,z.default)().add(1,`d`).endOf(`d`)};case`next7Days`:return{startDate:(0,z.default)().startOf(`d`),endDate:(0,z.default)().add(1,`w`).endOf(`d`)};case`next30Days`:return{startDate:(0,z.default)().startOf(`d`),endDate:(0,z.default)().add(30,`d`).endOf(`d`)};case`last7Days`:return{startDate:(0,z.default)().subtract(1,`w`).startOf(`d`),endDate:(0,z.default)().endOf(`d`)};case`last30Days`:return{startDate:(0,z.default)().subtract(30,`d`).startOf(`d`),endDate:(0,z.default)().endOf(`d`)};default:R.default.error(`Error getting filter dates`,{id:e,operator:t,value:n});return}}function axe(e,{track:t=!0,persist:n=!0}={}){return t&&ope(e),{type:Ek,filters:e,...n?{}:{persist:!1}}}function oxe(e){return Wn(Z.bookingPageFromCalendar(e.property.id,e.booking.id))}function ZZ(){return{type:dk}}function sxe(){return cpe(),{type:Dk}}function QZ(){return{type:uk}}function cxe(e){return{type:pk,query:e}}function $Z(e,t,n=0,r=20,i,a,o){let s=!!o&&o.length>0||!!a;return{type:hk,startDate:e,endDate:t,searchQuery:a,eventFilters:o,offset:n,limit:r,dateBucketId:i,requestId:`${i}${n}-${r}-${s?`filters`:`no-filters`}`,hasFilters:s}}function lxe(e,t,n,r,i,a,o,s){return{type:gk,calendarPropertyEvents:e,total:t,dateBucketId:i,requestId:a,hasFilters:o,offset:n,limit:r,searchQuery:s}}function eQ(e,t){return{type:_k,error:e,requestId:t}}function uxe(){return{type:vk}}function dxe(e){return{type:Sk,calendarEvents:e}}function fxe(e){return{type:Ck,calendarEvents:e}}function tQ(e,t){return{type:fk,startDate:e,endDate:t}}function pxe(e,t){return{type:mk,overscrollStart:e,overscrollEnd:t}}function nQ(e,t,n,r){return{type:yk,event:e,mode:t,resolve:n||Fu.default,reject:r||Fu.default}}function mxe(){return{type:xk}}function hxe(){return{type:bk}}function gxe(e,t){return{type:wk,isOpen:e,data:t}}function rQ(e){return{type:Tk,data:e}}var _xe=()=>{let e=xe(),t=j(txe),[n,r]=(0,B.useState)(!1),i=(0,B.useMemo)(()=>({txt1:{line1:U(`calendar.remove_reminder`),line2:U(`calendar.remove_reminder_info`)},txt2:{line1:U(`jobdetails.warning`),line2:U(`calendar.are_you_sure_cancel`)},txt3:{line1:U(`calendar.remove_reminder`),line2:U(`jobdetails.accept_job_info`)},txt4:{line1:U(`jobdetails.warning`),line2:U(`jobdetails.decline_job_info`)},txtIgnoreReminder:{line1:U(`recurring_reminder.ignore_confirm_title`),line2:U(`recurring_reminder.ignore_confirm_info`)}}),[]),a=()=>{let n=t?.restore;n&&n(),e(rQ({}))},o=()=>{r(!0);try{e(t?.continue(()=>{r(!1),e(rQ({}))},Fu.default))}catch(t){r(!1),e(rQ({})),R.default.error(`Error in modal continue function:`,t)}},s=(0,B.useCallback)(e=>{switch(e){case`skip`:return i.txt1;case`cancel`:return i.txt2;case`acceptJob`:return i.txt3;case`declineJob`:return i.txt4;case`ignoreReminder`:return i.txtIgnoreReminder;default:return{}}},[i]),c=(0,B.useCallback)(e=>n?(0,K.jsx)(`div`,{style:{height:`180px`,position:`relative`},children:(0,K.jsx)(xf,{})}):(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:e.line1}),(0,K.jsx)(X.Text,{children:e.line2}),(0,K.jsx)(ym,{}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:a}),(0,K.jsx)(X.Ok,{onClick:o})]})]}),[n,a,o]);return(0,K.jsx)(X,{id:`calendar-modal`,height:230,onClose:a,show:!!t?.mode,children:c(s(t?.mode))})},iQ=`warningdeletedproperty`,vxe=()=>{let e=xe(),t=!!j((0,B.useMemo)(()=>mw(iQ),[])).isOpen,n=()=>e(dF(!1,iQ,{}));return(0,K.jsx)(X,{height:180,onClose:n,show:t,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:U(`jobdetails.warning`)}),(0,K.jsx)(X.Text,{children:U(`jobdetails.cannot_be_edited`)}),(0,K.jsx)(X.Options,{children:(0,K.jsx)(X.Ok,{onClick:n,children:U(`modal.ok`)})})]})})},aQ=e(si()),oQ=({children:e})=>(0,K.jsx)(K.Fragment,{children:e});oQ.propTypes={children:V.default.node.isRequired};var sQ=e(vt());function cQ({propertyId:e,page:t,pagination:n}){return{type:qE,propertyId:e,page:t,pagination:n}}var yxe=class{constructor({status:e,property:t,sender:n,checklists:r,cleaners:i,progress:a,job:o,problems:s,skillRequirements:c},l){k(this,`allProblemsResolved`,()=>this.problems.every(e=>e.status===Ga.RESOLVED)),k(this,`getCleanerStatusByContactId`,(e,t)=>{let n=e.filter(e=>e.id===t);return n.length?n[0].status:``}),this.cleanerData=i,this.propertyId=t.id,this.cleanerId=l,this.jobId=o.id,this.hostId=n.id,this.jobData=o,this.note=o.note,this.requestedCleaners=i,this.cleanerNote=i[0].note,this.scheduledStartTime=new Date(o.scheduledStartTime),this.scheduledEndTime=new Date(o.scheduledEndTime),this.actualStartTime=a.actualStartTime,this.actualEndTime=a.actualEndTime,this.setJobStatus=e,this.writtenstatus=e,this.taskDoneCount=a.completedTaskCount,this.verificationDoneCount=a.verificationPictureCount,this.problemCount=a.problemCount,this.jobProgressId=a.id,this.offeredPrice=o.offeredPrice,this.offeredPriceCurrency=t.currencyCode,this.jobProgress=a,this.skills=c,this.propertyData=t,this.createdAt=o.sentOn,this.hostData=n.userData,this.senderData=n.userData,this.requestedCleanersData=i,this.senderId=n.id,this.jobStartTimeType=o.startTimeType,this.duration=o.duration,this.checklists=r,this.title=o.title,this.jobType=
1888o.jobType,this.problems=s}set setJobStatus(e){switch(e){case`pending`:this.status=1;break;case`accepted`:this.status=2;break;case`cancelled`:case`canceledByHost`:this.status=3;break;case`declined`:case`declinedChanges`:this.status=4;break;case`inProgress`:this.status=5;break;case`finished`:this.status=7;break;case`canceledByCleaner`:this.status=8;break;case`pendingChanges`:this.status=9;break;default:this.status=void 0}}get jobIdAsArray(){return this.jobId?[this.jobId]:[]}getProblemsNotInProgress(){return this.problems.filter(e=>e.status!==Ga.IN_PROGRESS)}setData(e){this.getOwnProps(e,this)}getData(){return this.getOwnProps(this)}getOwnProps(e,t){let n=t||{};return(0,zs.default)(e,(e,t)=>{n[t]=e}),n}getId(){return this.objectId}getTimeZone(){return this.propertyData.timeZone||`America/Los_Angeles`}getScheduledStartTime(){return this.scheduledStartTime}getActualStartTime(){return this.actualStartTime}getPropertyId(){return this.propertyId}getDateDurationInMin(){let e=this.duration&&this.duration>0?this.duration*60*1e3:(0,z.default)(this.scheduledEndTime).diff((0,z.default)(this.scheduledStartTime));return z.default.duration(e)/60/1e3}getFlexibleDateString(e){let t=this.scheduledStartTime,n=this.scheduledEndTime;return t=(0,z.default)(t).tz(this.getTimeZone()).format(e||`ll`),n=(0,z.default)(n).tz(this.getTimeZone()).format(e||`ll`),`${t} - ${n}`}getFlexibleStartDateString(){return(0,z.default)(this.scheduledStartTime).tz(this.getTimeZone()).format(`ll`)}getFlexibleEndDateString(){return(0,z.default)(this.scheduledEndTime).tz(this.getTimeZone()).format(`ll`)}isFlexibleStartTime(){return this.jobStartTimeType===uo}getShortDateString(){return this.getDateString(`l`)}getDateString(e){return this.isFlexibleStartTime()?this.getFlexibleDateString(e):(0,z.default)(this.scheduledStartTime).tz(this.getTimeZone()).format(e||`ll`)}getTimeString(){let e=this.scheduledStartTime,t=this.scheduledEndTime?this.scheduledEndTime:(0,z.default)(this.scheduledStartTime).clone().add(this.duration,`minutes`);return e=(0,z.default)(e).tz(this.getTimeZone()).format(`LT`),t=(0,z.default)(t).tz(this.getTimeZone()).format(`LT`),`${e} - ${t}`}getEndTime(e){let t=this.scheduledEndTime;return e&&(t=this.actualEndTime),t||(t=(0,z.default)(this.scheduledStartTime).clone().add(this.duration,`minutes`)),t}getEndTimeString(e){return(0,z.default)(this.getEndTime(e)).tz(this.getTimeZone()).format(`LT`)}getLocalEndTimeString(e){return(0,z.default)(this.getEndTime(e)).format(`LT`)}getStartTimeString(e){let t=this.scheduledStartTime;return e&&(t=this.actualStartTime),(0,z.default)(t).tz(this.getTimeZone()).format(`LT`)}getLocalStartTimeString(){let e=this.scheduledStartTime;return(0,z.default)(e).format(`LT`)}isDelayed(){return!this.actualStartTime&&this.status===W.StateAccepted&&(0,z.default)().toDate()-(0,z.default)(this.scheduledStartTime).tz(this.getTimeZone()).toDate()>0}get isInProgress(){return this.status===W.StateStarted||this.status===W.StatePaused}get isFinished(){return this.status===W.StateFinished}get mappedSteps(){return Ste((0,H.default)(this.checklists||[],({checklist:e})=>e.steps),(0,H.default)(this.checklists||[],({checklist:e})=>e.doneTaskCount)[0])}get isValid(){return this.jobProgress&&this.jobRequest}get subStatus(){let{completedTaskCount:e}=this.jobProgress,t=e<(0,H.default)(this.checklists||[],e=>e.totalTaskCount).reduce((e,t)=>e+t,0),n=this.status===W.StateFinished;return{hasProblem:this.problemCount>0&&!this.allProblemsResolved(),isIncomplete:t,isComplete:n}}isSeen(e){return e[0].status===`viewed`}pendingChanges(e){return e[0].status===`pendingChanges`}declinedChanges(e){return e[0].status===`declinedChanges`}getStatusString(){let e=this.requestedCleaners.filter(e=>e.id===this.cleanerId);if(this.isDelayed()&&this.status!==W.StateFinished)return`jobstatus.delayed`;if(this.isSeen(e))return`jobstatus.seen`;if(this.pendingChanges(e))return`jobstatus.pendingChanges`;if(this.declinedChanges(e))return`jobstatus.declined`;switch(this.status){case W.StateCreated:return`jobstatus.pending`;case W.StatePendingChanges:return`jobstatus.pendingChanges`;case W.StateAccepted:return`jobstatus.accepted`;case W.StateCancelled:case W.StateCleanerCancelled:return`jobstatus.cancelled`;case W.StateDeclined:return`jobstatus.declined`;case W.StateStarted:case W.StatePaused:return`jobstatus.started`;case W.StateFinished:return`jobstatus.completed`;default:return}}getStatusStringAdvanced(){let e=this.getStatusString();return e===`jobstatus.cancelled`?this.status===W.StateCleanerCancelled?`jobstatus.cancelledbycleaner`:this.status===W.StateCancelled?`jobstatus.cancelledbyhost`:`jobstatus.cancelled`:e}get durationInMin(){return console.warn(`This function durationInMin is deprecated by getDateDurationInMin`),(new Date(this.scheduledEndTime)-new Date(this.scheduledStartTime))/1e3/60}getCleanerString(){let e=this.requestedCleaners.filter(e=>this.assignedToUserId?e.userId===this.assignedToUserId:!0);if(e.length===0)return``;let t=this.resolveUserCleanerDataShortName(e[0]);return e.length===1?(e[0].contact,t):`${t}, +${this.requestedCleaners.length-1}`}resolveUserCleanerDataShortName(e){return`${e.userData.firstName} ${e.userData.lastName.substring(0,1)}.`}getPropertyLines(){let e=[];return this.title!==this.propertyData.street&&e.push(this.propertyData.title),this.propertyData.street&&e.push(this.propertyData.street),e.push(`${this.propertyData.city} ${this.propertyData.countryCode} ${this.propertyData.zip}`),e.push(this.propertyData.country),e}get eventTitle(){return(0,G.default)(this,[`event`,`triggerResolved`,`title`])}get checklistName(){return(0,G.default)(this,[`jobData`,`title`])}get canCancel(){return this.status!==W.StateCancelled}get canEdit(){return this.status!==W.StateStarted&&this.status!==W.StatePaused&&this.status!==W.StateFinished&&this.status!==W.StateCancelled}get canSendMore(){return this.status===W.StateCleanerCancelled||this.status===W.StateCreated||this.status===W.StateDeclined}get hasNote(){return this.note&&this.note!==``}get hasPrice(){return this.offeredPrice&&this.offeredPrice!==0}},lQ=(e,t,n,r,i=!1)=>(R.default.info(`In the JOB_REQ GQL for property`,e),QF.query({query:mK,variables:{role:t,propertyId:e,offset:n,limit:r,upcomingJobs:i},fetchPolicy:`no-cache`}).then(({data:e,errors:n})=>{if(n)throw R.default.error(`Client job request query error`),n;let r=[];
1888return t===`HOST`&&e.JobList.forEach(e=>{let t=new Bs(e);r.push(t)}),r})),bxe=(e,t,n,r,i)=>(R.default.info(`In the JOB_REQ GQL for cleaners`,e,t),QF.query({query:mK,variables:{role:t,offset:n,cleanerId:e,limit:r,upcomingJobs:i},fetchPolicy:`no-cache`}).then(({data:t,errors:n})=>{if(n)throw R.default.error(`Client job request query error`),n;let r=[];return t.JobList.forEach(t=>{let n=new yxe(t,e);r.push(n)}),r})),uQ=async e=>QF.query({query:abe,variables:{role:`HOST`,languageCode:(0,pi.default)(),id:e,isHost:!0},fetchPolicy:`no-cache`}).then(({data:e,errors:t})=>{if(t)throw R.default.error(`Client specific job request query error`),t;return new Bs(e.Job)}),xxe=async()=>{try{return(await QF.query({query:hK,variables:{languageCode:(0,pi.default)(),roleType:`HOST`},fetchPolicy:`no-cache`}))?.data?.GetActiveProMarketplaceJobCount}catch(e){return R.default.error(`[getProMarketplaceJobCount] ${e}`),e.apiError=!0,e}};async function dQ(e){try{return(await QF.query({query:lbe,variables:{role:`HOST`,languageCode:(0,pi.default)(),id:e,isHost:!0},fetchPolicy:`no-cache`}))?.data?.Job}catch(e){throw R.default.error(`[ERROR] cannot fetch job data`,e),e.apiError=!0,e}}async function fQ(e){try{return(await QF.query({query:ube,variables:{role:`CLEANER`,languageCode:(0,pi.default)(),id:e,isHost:!1},fetchPolicy:`no-cache`}))?.data?.Job}catch(e){throw R.default.error(`[ERROR] cannot fetch job data`,e),e.apiError=!0,e}}var pQ=async e=>QF.query({query:obe,variables:{role:`CLEANER`,languageCode:(0,pi.default)(),id:e,isHost:!1},fetchPolicy:`no-cache`}).then(({data:e,errors:t})=>{if(t)throw R.default.error(`Client specific job request query error`),t;return new Bs(e.Job)}),mQ=`PropertyJobPhototsLoadingKey`,hQ=20;function*Sxe(e,t,n,r,i){let a=yield P(e,t,n,r,i);return yield M(nF(`jobRequests`,(0,CR.default)(a,`jobId`),!0)),a}function*Cxe({propertyId:e,page:t,pagination:n}){try{R.default.info(`jobRequestPhotoSaga`,{propertyId:e,page:t,pagination:n}),yield M(uF(mQ,n?-1:1,{page:t}));let r=(yield P(Sxe,lQ,e,`HOST`,t,hQ)).length===hQ;yield M(uF(mQ,2,{page:t,hasMore:r})),r&&(yield M(cQ({propertyId:e,page:t+1,pagination:!0})))}catch(e){R.default.error(`jobRequestPhotoSaga`,e),yield M(uF(mQ,3,{page:t}))}}function*wxe(){yield Ee(qE,Cxe)}var gQ=e(ce()),Txe=e(ct()),_Q=e=>(0,n_.default)(e,({jobId:e})=>e),Exe=e=>(0,n_.default)(e,({originalPhoto:e,title:t,room:n})=>`${t||n||`Other`}-${e}`);function Dxe(e){let{checklists:t}=e||{};return(0,Lf.default)((0,H.default)(t||[],e=>e.steps))||[]}function Oxe(e){return(0,Lf.default)((e||[]).map(e=>{let{jobProgress:t,...n}=e||{},r=Bl(e);return Dxe(e).map(e=>({...e,jobProgress:t,jobRequest:n,jobTitle:r}))}))}function vQ(e,t){let n=[];Oxe(e).map(({room:e,title:t,pictureIdentifier:r,id:i,jobRequest:a})=>{let{scheduledStartTime:o,scheduledEndTime:s,jobData:c,connections:l,requestedCleanersData:u,checklists:d,problems:f,jobId:p,jobProgressId:m}=a||{},h=(0,CR.default)(u,`id`),g=h&&h[l?.cleanerId];return d.forEach(a=>{let l=a.verificationPhotos.filter(e=>e.stepId===i).map(n=>({photoID:`${t||e||`Other`}-${r}`,verificationPhoto:n,image:n.pictureIdentifier,originalPhoto:r,scheduledStartTime:o,scheduledEndTime:s,title:t||`Other`,room:e,jobTitle:c.title,jobProgressId:m,checklistId:a.id,cleaner:g,problems:f,jobId:p}));n.push(...l)}),null});let r=(0,Lf.default)(n);return t?(0,xo.default)(r,({checklistId:e})=>e===t):r}function kxe(e){return(0,Lf.default)((e||[]).map(e=>{let{scheduledStartTime:t,jobProgress:n,scheduledEndTime:r,connections:i,requestedCleanersData:a,problems:o,jobId:s}=e||{},c=Bl(e),l=(0,CR.default)(a,`id`),u=l&&l[i?.cleanerId];return(0,Lf.default)(o.map(({note:e,pictureIdentifiers:i,severity:a})=>i.map(i=>({note:e,image:i,severity:a,scheduledStartTime:t,scheduledEndTime:r,jobProgressId:n.id,cleaner:u,jobTitle:c,jobId:s}))))}))}function Axe(e){return(0,Lf.default)((e||[]).map(e=>{let{scheduledStartTime:t,scheduledEndTime:n,jobProgress:r,connections:i,requestedCleanersData:a,jobId:o,additionalInformationReport:s}=e||{},c=Bl(e),l=(0,H.default)(s||[],e=>e.report),u=(0,CR.default)(a,`id`),d=u&&u[i?.cleanerId];return(0,Lf.default)(l.map(e=>e.map(({pictureIdentifier:e,note:i})=>
1888({note:i,image:e,scheduledStartTime:t,scheduledEndTime:n,jobProgressId:r.id,cleaner:d,jobTitle:c,jobId:o}))))}))}function jxe(e){let t=(0,Lf.default)((e||[]).map(({checklists:e})=>(e||[]).map(e=>({value:e.id,title:e.title})))).filter(({title:e})=>!!e).sort((e,t)=>e.title<t.title?-1:1);return[{value:``,title:U(`checklist.all_checklist`)}].concat((0,oW.default)(t,`value`))}function Mxe(e,t){return(0,Txe.default)((0,H.default)((0,H.default)(Exe(vQ(e,t)),gQ.default),({title:e,room:t,originalPhoto:n,checklistId:r})=>({title:e,checklistId:r,room:t,originalPhoto:n}))).sort((e,t)=>e.title<t.title?-1:1)}function Nxe(e,t){let n=(0,H.default)(_Q(vQ(e,t)),e=>{let t=[`jobProgressId`,`cleaner`,`jobTitle`,`scheduledStartTime`,`scheduledEndTime`],n=[...t,`problems`],r=(0,pF.default)((0,gQ.default)(e),t),i=(0,H.default)(e,e=>(0,Pf.default)(e,n)),a=(0,Cc.default)((0,xo.default)((0,Lf.default)((0,H.default)(e,({problems:e})=>(0,H.default)(e||[],({pictureIdentifiers:e,...t})=>({image:(0,gQ.default)(e),pictureUrl:(0,gQ.default)(e),...t})))),({pictureUrl:e})=>!!e)),o=(0,z.default)(r.scheduledEndTime).diff(r.scheduledStartTime,`m`);return{photos:i,...r,actualDurationMinutes:o,problems:a}});return Object.keys(n||{}).map(e=>n[e]).sort((e,t)=>e.scheduledStartTime<t.scheduledStartTime?1:-1)}function Pxe(e){let t=_Q(kxe(e));return Object.keys(t||{}).map(e=>t[e]).sort((e,t)=>e.scheduledStartTime<t.scheduledStartTime?1:-1).map(e=>{let t=[`jobProgressId`,`cleaner`,`jobTitle`,`scheduledStartTime`,`scheduledEndTime`],n=[...t],r=(0,pF.default)((0,gQ.default)(e),t),i=(0,H.default)(e,e=>(0,Pf.default)(e,n));return{...r,photos:i}})}function Fxe(e){let t=_Q(Axe(e));return Object.keys(t||{}).map(e=>t[e]).sort((e,t)=>e.scheduledStartTime<t.scheduledStartTime?1:-1).map(e=>{let t=[`jobProgressId`,`cleaner`,`jobTitle`,`scheduledStartTime`,`scheduledEndTime`],n=[...t],r=(0,pF.default)((0,gQ.default)(e),t),i=(0,H.default)(e,e=>(0,Pf.default)(e,n));return{...r,photos:i}})}function yQ({propertyId:e,noHeaderRow:t,onClickTile:n=()=>{},isTileSelected:r=()=>!1,verificationPhotosMode:i=!1,problemReportsOnly:a,otherReportsOnly:o,page:s}){let c=xe(),{isLoading:l,isLoadingPartial:u,isLoaded:d,isLoadingFull:f}=j(bw(mQ)),p=j(t=>$C(t,{propertyId:e,contactId:e})),[m,h]=(0,B.useState)(``),g=s===void 0?0:s,_=(0,B.useMemo)(()=>u?!1:!d||f||l&&(!p||p.length===0),[u,d,f,l,p]),v=(0,B.useCallback)((t,n)=>{c(cQ({propertyId:e,page:t,pagination:n}))},[c,e]);(0,B.useEffect)(()=>{v(g)},[v,g]);let y=(0,B.useCallback)((e,t)=>{if(a){let n=Pxe(e,t),r=n.reduce((e,t)=>t.photos&&t.photos.length>e?t.photos.length:e,0);return{columns:[...Array(r+1)].map(()=>({})),rows:n}}if(o){let n=Fxe(e,t),r=n.reduce((e,t)=>t.photos&&t.photos.length>e?t.photos.length:e,0);return{columns:[...Array(r+1)].map(()=>({})),rows:n}}let n=[{problemReportColumn:!0,title:U(`job_request.problems.problem_reports`)}].concat(Mxe(e,t));return{columns:n,rows:Nxe(e,t).map(({photos:e,problems:t,...r})=>({photos:n.map(({problemReportColumn:n,originalPhoto:r,title:i})=>n?t[0]:(e||[]).find(({originalPhoto:e,title:t})=>e===r&&t===i)||{}),...r}))}},[a,o]),b=(0,B.useCallback)(e=>{h(e)},[]),x=p||[],S=jxe(x),{rows:C,columns:w}=y(x,m),T=C.length>0,E=w.length,D=C.length;if(_&&!T)return(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,width:`100%`,height:`calc(100% - 103px)`,position:`absolute`,overflow:`hidden`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,minHeight:`160px`,borderBottom:`1px solid var(--color-border)`},children:[(0,K.jsxs)(I,{sx:{minWidth:`240px`,maxWidth:`240px`,p:`16px 20px`,background:`var(--color-white)`,borderRight:`1px solid var(--color-border)`},children:[(0,K.jsx)(J,{variant:`text`,width:130,height:16,sx:{mb:1}}),(0,K.jsx)(J,{variant:`rounded`,width:200,height:40})]}),(0,K.jsx)(I,{sx:{display:`flex`,overflowX:`hidden`},children:[1,2,3,4].map(e=>(0,K.jsxs)(I,{sx:{minWidth:`220px`,maxWidth:`220px`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:1},children:[(0,K.jsx)(J,{variant:`rounded`,width:196,height:110}),(0,K.jsx)(J,{variant:`text`,width:140,height:14})]},e))})]}),(0,K.jsxs)(I,{sx:{display:`flex`,flex:1,overflow:`hidden`},children:[(0,K.jsx)(I,{sx:{minWidth:`240px`,maxWidth:`240px`,borderRight:`1px solid var(--color-border)`,background:`var(--color-white)`},children:[1,2,3].map(e=>(0,K.jsxs)(I,{sx:{height:`140px`,p:`12px 20px`,borderBottom:`1px solid var(--color-border)`},children:[(0,K.jsx)(J,{variant:`text`,width:100,height:16,sx:{mb:.5}}),(0,K.jsx)(J,{variant:`text`,width:140,height:14,sx:{mb:1}}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[(0,K.jsx)(J,{variant:`circular`,width:32,height:32}),(0,K.jsx)(J,{variant:`text`,width:80,height:14})]})]},e))}),(0,K.jsx)(I,{sx:{flex:1,overflow:`hidden`},children:[1,2,3].map(e=>(0,K.jsx)(I,{sx:{display:`flex`,height:`140px`,borderBottom:`1px solid var(--color-border)`},children:[1,2,3,4].map(e=>(0,K.jsx)(I,{sx:{minWidth:`220px`,maxWidth:`220px`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,K.jsx)(J,{variant:`rounded`,width:196,height:110})},e))},e))})]})]});let ee=pu(),te=e=>{let n=e-30-ee;return t?n:n-140};return(0,K.jsx)(Ft,{disableWidth:!0,children:({height:e})=>(0,K.jsx)(AA,{isPhotoSelected:r,onPhotoClick:n,disableHeader:t,checklistOptions:S,selectedChecklistId:m,onChecklistChange:b,columnCount:E,rowCount:D,propertyPhotoColumns:w,propertyPhotoRows:C,height:te(e),hasPhotos:T,verificationPhotosMode:i})})}yQ.propTypes={propertyId:V.default.string.isRequired,noHeaderRow:V.default.bool,onClickTile:V.default.func,isTileSelected:V.default.func,verificationPhotosMode:V.default.bool,problemReportsOnly:V.default.bool,otherReportsOnly:V.default.bool,page:V.default.number};var bQ=_i.default.bind(AZ),{minSize:Ixe,maxSize:Lxe}=ru;function xQ({propertyId:e,isGallery:t=!1,onCloseRoute:n=null,pictureUrls:r=[]}){let i=xe(),{trackTab:a,trackUpload:o}=nT(`ChecklistUploadContainer`),s=j(PC)?.[e],c=j(bV),l=j(e=>bw(d_)(e)?.isErrored),u=r&&r.length>0?r:s&&s.pictureUrls||[],d=c&&c.selected||[],f=d.filter(e=>u.includes(e)).length===d.length,p=`PROPERTY_GALLERY_ACTIVE_TAB_KEY`,[m,h]=(0,B.useState)(()=>vi.get(p)||`library`),[g,_]=(0,B.useState)(!1),[v,y]=(0,B.useState)(!1),[b,x]=(0,B.useState)([]),[S,C]=(0,B.useState)(0);(0,B.useEffect)(()=>()=>
1888{c?.uploading&&Object.values(c.uploading).forEach(e=>{e?.preview&&URL.revokeObjectURL(e.preview)})},[c?.uploading]);let w=e=>(0,eb.default)(d,e),T=e=>w(e)!==-1,E=()=>c.do.mode===`gallery`||t,D=c.do&&(c.do.mode===`replace`||c.do.mode===`replacetaskimg`),ee=(e,t)=>{if(t)i(bU({selected:[e]}));else{let t=T(e),n=d.slice(0);if(t){let t=w(e);n.splice(t,1)}else n.push(e);i(bU({selected:n}))}},te=(0,B.useCallback)((e,t)=>{let n=t.filter(e=>typeof e==`string`).map(e=>({src:iu(e,``,`jpg`),download:{filename:e||`photo`}})),r=n.findIndex(t=>t.src===iu(e,``,`jpg`));x(n),C(r>=0?r:0),y(!0)},[]),ne=(e=[],t,n,r,i)=>{let a=e.slice(0),o=(0,Lf.default)([(0,gx.default)(t),a]),s=o;return(0,H.default)((0,wx.default)(o,6),(e,t)=>(0,K.jsx)(tx.GridRow,{spacing:`24`,children:(0,H.default)(e,(e,t)=>{let a=null,o=r(e),c=o!==-1,l=!(0,vc.default)(e);return a=(0,vc.default)(e)?(0,K.jsx)(sx,{noPadding:!0,isRawImage:!0,image:e.preview,children:(0,K.jsx)(tx.GridItemOverlay,{hasHover:!0,mode:`loading`})}):i?(0,K.jsxs)(sx,{noPadding:!0,onClick:()=>n(e,!0),image:e,children:[!c&&(0,K.jsx)(tx.GridItemOverlay,{hasHover:!0,mode:`canselect`}),c&&(0,K.jsx)(tx.GridItemOverlay,{hasHover:!0,mode:`selected`})]}):(0,K.jsxs)(sx,{noPadding:!0,onClick:()=>n(e,!1),image:e,children:[!c&&(0,K.jsx)(tx.GridItemOverlay,{hasHover:!0,mode:`canselect`}),c&&(0,K.jsx)(tx.GridItemOverlay,{hasHover:!0,mode:`num`,number:o+1})]}),(0,K.jsx)(tx.GridItem,{spacing:`24`,itemPerRow:`6`,children:(0,K.jsxs)(I,{sx:{position:`relative`,"&:hover .photo-expand-icon":{opacity:1}},children:[a,l&&(0,K.jsx)(I,{className:`photo-expand-icon`,onClick:t=>{t.stopPropagation(),te(e,s)},sx:{position:`absolute`,top:4,left:4,zIndex:2,width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`,borderRadius:`4px`,backgroundColor:`rgba(0,0,0,0.45)`,color:`#fff`,cursor:`pointer`,opacity:0,transition:`opacity 0.15s`,"&:hover":{backgroundColor:`rgba(0,0,0,0.7)`}},children:(0,K.jsx)(ur,{sx:{fontSize:14}})})]})},t)})},t))},re=(0,B.useCallback)(()=>{_(!0)},[]),{getRootProps:O,getInputProps:ie,open:ae,isDragActive:oe}=Jt({noClick:!0,accept:{"image/*":[]},maxSize:Lxe,minSize:Ixe,onDropAccepted:(0,B.useCallback)(t=>{o(`property_photos`,{fileCount:t.length}),i(CU(t.map(e=>Object.assign(e,{preview:URL.createObjectURL(e)})),e))},[i,e,o]),onDropRejected:re}),se=()=>(0,K.jsxs)(`div`,{...O({id:`uploadDropzone`,style:{padding:`18px`},className:oe?bQ(`checklist__overlay-white--show`):void 0}),children:[(0,K.jsx)(`input`,{...ie()}),(0,K.jsx)(`div`,{className:bQ(`checklist__dropbox`),children:(0,K.jsx)(ax,{onClick:ae})}),(0,K.jsx)(vm,{}),ne(u,c.uploading,ee,w,D),(0,K.jsx)(vm,{}),(0,K.jsx)(`div`,{className:bQ(`checklist__overlay-white`)})]}),ce=(()=>{let t=e=>vi.get(p)===e,n=e=>()=>{a(e,e,{view:`checklist_upload`}),vi.set(p,e),h(e)};return[{defaultTab:t(`library`),label:`Property Photos`,id:`library`,isActive:()=>m===`library`,onClick:n(`library`),content:()=>se()},{defaultTab:t(`verification`),label:U(`job_request.home_assessment`),id:`verification`,isActive:()=>m===`verification`,onClick:n(`verification`),content:()=>(0,K.jsx)(yQ,{isTileSelected:T,onClickTile:e=>ee(e,D),propertyId:e,verificationPhotosMode:!0})},{defaultTab:t(`problem`),label:U(`job_request.problems.problem_reports`),id:`problem`,isActive:()=>m===`problem`,onClick:n(`problem`),content:()=>(0,K.jsx)(yQ,{isTileSelected:T,onClickTile:e=>ee(e,D),noHeaderRow:!0,problemReportsOnly:!0,propertyId:e})},{defaultTab:t(`additional`),label:U(`checklist.other_reports`),id:`additional`,isActive:()=>m===`additional`,onClick:n(`additional`),content:()=>(0,K.jsx)(yQ,{isTileSelected:T,onClickTile:e=>ee(e,D),noHeaderRow:!0,otherReportsOnly:!0,propertyId:e})}].filter(({disabled:e})=>!e)})(),le=(()=>{let e=E(),t=d.length>0;return e&&t?`orangegallery`:`multi`})(),ue=()=>{n&&i(Wn(n)),i(bU({isOpen:!1,do:{},selected:[]}))},fe=()=>{E()?ue():i(wU())},pe=()=>{let t={pictureUrls:(0,sQ.default)(u,d)};i(QP(`properties`,e,t)),sP(e,t),i(bU({selected:[]}))},me=()=>{let t={pictureUrl:d[0]};i(QP(`properties`,e,t)),sP(e,t),ue()},he=()=>{i(uF(d_))},ge=()=>{i(bU({selected:[]}))},_e=()=>ce.filter(e=>e.isActive())?.[0];return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(tx,{show:c.isOpen||t,children:[(0,K.jsxs)(tx.Header,{children:[(0,K.jsx)(Qb,{type:le,selectedCount:d.length,onSelect:me,onRemove:pe,canRemove:f,canSelect:d.length===1,onCancel:ge,onClose:ue,onDone:fe,text:U(`checklist.choose_photos`)}),(0,K.jsx)(Dm,{type:[`bottom`,`light`]})]}),(0,K.jsx)(tx.ContentWrap,{children:(0,K.jsx)(tx.Content,{style:{overflowY:`auto`}
1888,children:(0,K.jsxs)(I,{sx:{height:`100%`},children:[(0,K.jsx)(Cg,{children:ce.map(({label:e,id:t,onClick:n,isActive:r})=>(0,K.jsx)(Cg.Item,{onClick:n,active:r(),children:e},t))}),(()=>{let e=_e();return e&&e.content&&e.content()||null})()]})})})]}),(0,K.jsx)(Dg.ImageUpload,{onCloseLimitError:()=>_(!1),showLimitError:g,showUploadError:l,onCloseUploadError:he}),(0,K.jsx)(de,{open:v,close:()=>y(!1),index:S,slides:b,plugins:[ut],carousel:{finite:!0},controller:{closeOnBackdropClick:!0},styles:{container:{backgroundColor:`rgba(0, 0, 0, 0.92)`}}})]})}xQ.propTypes={pictureUrls:V.default.arrayOf(V.default.string),propertyId:V.default.string.isRequired,isGallery:V.default.bool,onCloseRoute:V.default.string};function SQ({jobInstructionId:e}){let t=xe(),n=j(xV),r=j(e=>sw(e)),i=(0,B.useCallback)(e=>(0,fX.default)(n.selected,{title:e.title}),[n.selected]),a=(0,B.useCallback)(e=>{let r=i(e),a=n.selected.slice(0);r===-1?a.push(e):a.splice(r,1),t(DU({selected:a}))},[i,n.selected,t]),o=(0,B.useCallback)(()=>{t(DU({isOpen:!1,selected:[]}))},[t]),s=(0,B.useCallback)(()=>{let r=n,i=(0,H.default)(r.selected,e=>({isVerificationNeeded:!1,node:``,objectId:JN(10),pictureUrl:``,room:null,section:``,tasks:(0,H.default)(e.tasks,e=>({icon:`other`,note:e,objectId:JN(10)})),title:e.title}));r.do&&r.do.mode&&r.do.mode===`setAfter`?(R.default.info(`texttemplate - onDone - setAfter`,r.do.after,i,e),t(LU(`setBetween`,{steps:i,index:r.do.after,jobInstructionId:e}))):(R.default.info(`texttemplate - onDone - addEnd`,i,e),t(LU(`addEnd`,{steps:i,jobInstructionId:e}))),t(DU({isOpen:!1,selected:[],do:{}}))},[n,e,t]),c=(0,B.useCallback)((e,t,n)=>(0,H.default)((0,wx.default)((0,H.default)(e,e=>({...e,steps:(0,H.default)(e.tasks,e=>({note:e}))})),3),(e,r)=>(0,K.jsx)(tx.GridRow,{spacing:`18`,children:(0,H.default)(e,(e,r)=>{let i=n(e),a=i!==-1;return(0,K.jsx)(tx.GridItem,{spacing:`18`,itemPerRow:`3`,children:(0,K.jsxs)(sx,{"data-testid":`text_document`,color:`grey`,stepsSize:`big`,onClick:()=>t(e),title:e.title,steps:e.steps,noPadding:!0,children:[!a&&(0,K.jsx)(tx.GridItemOverlay,{mode:`canselect`}),a&&(0,K.jsx)(tx.GridItemOverlay,{mode:`num`,number:i+1})]})},r)})},r)),[]),l=aa(),u=r.templates?r.templates[l]:void 0;return u?(0,K.jsxs)(tx,{show:n.isOpen,children:[(0,K.jsxs)(tx.Header,{children:[(0,K.jsx)(Qb,{type:`multi`,onClose:o,onDone:s,text:U(`checklist.choose_txt_template`)}),(0,K.jsx)(Dm,{type:[`bottom`,`light`]})]}),(0,K.jsx)(tx.ContentWrap,{children:(0,K.jsx)(tx.Content,{children:(0,K.jsx)(tx.ContentInner,{children:c(u,a,i)})})})]}):null}SQ.propTypes={jobInstructionId:V.default.string.isRequired};var Rxe=_i.default.bind(AZ),CQ=({id:e,index:t,children:n,moveCard:r,isReadOnly:i})=>{let a=(0,B.useRef)(null),[{isDragging:o},s]=Wt(()=>({type:`CARD`,item:{id:e,index:t,children:n},canDrag:!i,collect:e=>({isDragging:e.isDragging()})}),[e,t,n,i]),[{isOver:c},l]=Le(()=>({accept:`CARD`,hover:e=>{let n=e.index,i=t;n!==i&&(r(n,i),e.index=i)},collect:e=>({isOver:e.isOver()})}),[t,r]);s(l(a));let u=o||c;return(0,K.jsxs)(`div`,{ref:a,children:[!u&&n,u&&(0,K.jsx)(`div`,{className:Rxe(`checklist__placeholder`,{indicate:c})})]})};CQ.propTypes={isDragging:V.default.bool,moveCard:V.default.func.isRequired,id:V.default.any.isRequired,children:V.default.node,isOver:V.default.bool,index:V.default.number.isRequired,isReadOnly:V.default.bool};var wQ=_i.default.bind(AZ),TQ=class extends B.PureComponent{constructor(...e){super(...e),k(this,`moveCard`,(e,t,n)=>{this.props.stepMutatorSaga(`moveStep`,{jobInstructionId:e,fromIndex:t,toIndex:n})}),k(this,`onDuplicate`,()=>{nd(`duplicate_steps`,{component:`ChecklistStepsContainer`,view:`checklist_overview`}),this.props.stepMutatorSaga(`duplicateStep`,{jobInstructionId:this.props.jobInstructionId,steps:(0,Ux.default)(this.tileState.selected)}),this.props.setTileView({mode:0,selected:`empty`})}),k(this,`onRemove`,()=>{nd(`remove_steps`,{component:`ChecklistStepsContainer`,view:`checklist_overview`}),this.props.stepMutatorSaga(`deleteStep`,{jobInstructionId:this.props.jobInstructionId,deleteSteps:this.tileState.selected}),this.props.setTileView({mode:0,selected:`empty`})}),k(this,`clickTile`,e=>{if(this.tileState.mode===0)return;nd(`step_tile_click`,{component:`ChecklistStepsContainer`,view:`checklist_overview`});let t=this.isSelected(e);this.props.setTileView({selected:{[e]:!t}})}),k(this,`onClose`,()=>{this.props.setTileView({isOpen:!1,mode:0,selected:`empty`})}),k(this,`isSelected`,e=>this.tileState.selected[e]===!0),k(this,`onEdit`,()=>{nd(`edit_steps_mode`,{component:`ChecklistStepsContainer`,view:`checklist_overview`}),this.props.setTileView({mode:1})}),k(this,`onCancel`,()=>{this.props.setTileView({mode:0,selected:`empty`})}),k(this,`getHeaderType`,()=>this.tileState.mode===0?`dark`:this.tileState.mode===1?`orange`:null)}renderChecklistsBig(e,t,n,r,i,a,o,s){let c=t.length-1,{propertyId:l}=this.props,u=`upload-new-photo-${c}-${l||`noproperty`}`,d=t.slice(0);d.unshift({objectId:`create`,_isCreate:!0});let f=[{"data-testid":`checklist_blankslide_btn_popoversidebar`,name:U(`checklist.text_template`),onClick:()=>{nd(`add_text_template`,{component:`ChecklistStepsContainer`,view:`checklist_overview`}),o({isOpen:!0})},icon:(0,K.jsx)(Y.IcTextPopover,{})},{"data-testid":`checklist_texttemplate_btn_popoversidebar`,name:U(`checklist.blank_text_slide`),onClick:()=>{nd(`add_blank_text_slide`,{component:`ChecklistStepsContainer`,view:`checklist_overview`}),a(`addEnd`,{jobInstructionId:i})},icon:(0,K.jsx)(Y.IcTemplatePopover2,{})},{"data-testid":`checklist_phototemplate_btn_popoversidebar`,name:U(`checklist.photo_slide`),...l&&{onClick:()=>{nd(`add_photo_slide`,{component:`ChecklistStepsContainer`,view:`checklist_overview`}),s({isOpen:!0,do:{mode:`addEnd`}})}},...!l&&{onClick:()=>{nd(`add_photo_slide_direct`,{component:`ChecklistStepsContainer`,view:`checklist_overview`}),this.overviewUploadRef.click()}},icon:(0,K.jsx)(Y.IcCamera3,{})}],p=e=>(0,K.jsx)(Ad,{items:f,closePopover:e});return(0,K.jsxs)(`div`,{children:[(0,H.default)((0,wx.default)(d,6),(a,o)=>(0,K.jsx)(tx.GridRow,{spacing:24,children:(0,H.default)(a,a=>{let o=n(a.objectId),s=(0,fX.default)(t,{objectId:a.objectId}),c=a._isCreate;return(0,K.jsxs)(tx.GridItem,{spacing:24,itemPerRow:6,children:[!c&&(0,K.jsx)(CQ,{id:a.objectId,moveCard:(e,t)=>this.moveCard(i,e,t),index:s,children:(0,K.jsxs)(sx,{noPadding:!0,identifier:`checklistbig`,onClick:()=>r(a.objectId),needsVerify:a.isVerificationNeeded,title:a.title,steps:a.tasks,image:a.pictureUrl,children:[e&&!o&&(0,K.jsx)(tx.GridItemOverlay,{mode:`canselect`}),o&&(0,K.jsx)(tx.GridItemOverlay,{mode:`selected`})]})}),c&&(0,K.jsxs)(`div`,{id:`steps-popover`,className:wQ(`checklist__createchecklist`),children:[(0,K.jsx)(`div`,{className:wQ(`checklist__createchecklist-spacer`,`checklist__createchecklist-spacer--minheight`)}),(0,K.jsx)(Lg,{width:230,popoverKey:`checklistCreateOptions`,hasArrow:!0,popoverContent:e=>p(e.closePopup),children:(0,K.jsx)(`div`,{className:wQ(`checklist__createchecklist-abs`),children:(0,K.jsx)(Y.IcPlusWhite,{width:`24px`,byWidth:!0})})})]})]},a.objectId)})},o)),!l&&(0,K.jsx)(`div`,{id:`img-uploader`,children:(0,K.jsx)(`input`,{accept:`image/*`,onCh
1888ange:e=>this.props.handleDirectImageUpload(c,e),onClick:this.props.handleInputFileClick,className:wQ(`checklist__upload_input`),id:u,ref:e=>{this.overviewUploadRef=e},type:`file`})})]})}get isSelectMode(){return this.tileState.mode===1}get tileState(){return this.props.tileState}get hasSelectedItems(){return(0,Ux.default)(this.tileState.selected).length>0}render(){let e=this.props.selectedJobInstruction&&this.props.selectedJobInstruction.steps?this.props.selectedJobInstruction.steps:[];return(0,K.jsxs)(tx,{background:`dark`,show:this.tileState.isOpen,children:[(0,K.jsxs)(tx.Header,{type:this.getHeaderType(this.tileState.mode),children:[this.tileState.mode===0&&(0,K.jsx)(Qb,{type:`dark`,onCloseKey:`checklist_checklistoverview_close_btn`,onEditKey:`checklist_checklistoverview_edit_btn`,onClose:this.onClose,onEdit:this.onEdit}),this.tileState.mode===1&&(0,K.jsx)(Qb,{type:`orange`,onDuplicateKey:`checklist_editslides_duplicate_btn`,onRemoveKey:`checklist_editslides_remove_btn`,onCancelKey:`checklist_editslides_cancel_btn`,onCancel:this.onCancel,hasSelectedItems:this.hasSelectedItems,onRemove:this.onRemove,onDuplicate:this.onDuplicate}),this.tileState.mode!==1&&(0,K.jsx)(Dm,{type:[`bottom`,`dark`]})]}),(0,K.jsx)(tx.ContentWrap,{children:(0,K.jsx)(tx.Content,{children:(0,K.jsx)(tx.ContentInner,{children:this.renderChecklistsBig(this.isSelectMode,e,this.isSelected,this.clickTile,this.props.jobInstructionId,this.props.stepMutatorSaga,this.props.setTextTemplate,this.props.setUploadState)})})})]})}};TQ.propTypes={jobInstructionId:V.default.string.isRequired,tileState:V.default.shape({}).isRequired,stepMutatorSaga:V.default.func.isRequired,setTileView:V.default.func.isRequired};function zxe(e,t){return{tileState:vV(e,t),selectedJobInstruction:fV(t.jobInstructionId)(e)}}var Bxe=Nt(zxe,{setTileView:yU,stepMutatorSaga:LU,setTextTemplate:DU,setUploadState:bU})(TQ),Vxe={position:`fixed`,pointerEvents:`none`,zIndex:100,left:0,top:0,width:`100%`,height:`100%`},Hxe=(e,t,n)=>{switch(e){case`PIN`:{let e=B.Children.only(t.children),r=B.cloneElement(e,{position:n.position,dragging:!0});return n?t.wrapFunc(r,n.x,n.y):null}default:return null}},Uxe=()=>{let e=(0,B.useRef)(null),t=(0,B.useRef)(null),{item:n,itemType:r,isDragging:i,clientOffset:a}=Xt(e=>({item:e.getItem(),itemType:e.getItemType(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getSourceClientOffset(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()}));return(0,B.useEffect)(()=>(t.current=requestAnimationFrame(function r(){if(!n)return;let i=document.querySelector(`[data-drag="image${n.indexImage}"]`);i&&(e.current=i.getBoundingClientRect(),t.current=requestAnimationFrame(r))}),()=>{t.current&&cancelAnimationFrame(t.current)}),[n]),!i||!a||!e.current?null:(0,K.jsx)(I,{sx:Vxe,children:Hxe(r,n,Du(e.current,a.x,a.y))})};function EQ(e){if(!e)return{display:`none`};let{x:t,y:n}=e,r=`translate(${t}px, ${n}px)`;return{pointerEvents:`none`,transform:r,WebkitTransform:r}}var Wxe={position:`fixed`,pointerEvents:`none`,zIndex:100,left:0,top:0,width:`100%`,height:`100%`},DQ={height:40,width:752,position:`absolute`},Gxe=(e,t,n,r)=>{switch(e){case`TEXT`:return(0,K.jsx)(I,{sx:{...DQ,...EQ(t)},children:(0,K.jsx)(fx,{iconBg:`white`,isRed:!0,onChange:()=>{},onDelete:()=>{},defaultValue:n,iconImage:`other`})});case`IMAGE`:return(0,K.jsx)(I,{sx:{...DQ,...EQ(t)},children:(0,K.jsx)(fx,{iconBg:`orange`,isRed:!0,isReadOnly:!0,onChange:()=>{},onDelete:()=>{},title:r.title,defaultValue:n,iconImage:r.iconImage})});default:return null}},OQ=()=>{let{itemType:e,isDragging:t,currentOffset:n,item:r}=Xt(e=>({item:e.getItem(),itemType:e.getItemType(),currentOffset:e.getSourceClientOffset(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()}));return t?(0,K.jsx)(I,{sx:Wxe,children:Gxe(e,n,r?.defaultValue,r||{})}):null};OQ.propTypes={};function Kxe(e){if(!e)return{display:`none`};let{x:t,y:n}=e,r=`translate(${t}px, ${n}px)`;return{pointerEvents:`none`,transform:r,WebkitTransform:r}}var qxe={position:`fixed`,pointerEvents:`none`,zIndex:100,left:0,top:0,width:`100%`,height:`100%`},Jxe={height:24,width:24,position:`absolute`},Yxe=(e,t)=>{switch(e){case`CARD`:return(0,K.jsx)(I,{sx:{...Jxe,...Kxe(t)},children:(0,K.jsx)(Y.IcMove,{})});default:return null}},Xxe=()=>{let{itemType:e,isDragging:t,currentOffset:n}=Xt(e=>({item:e.getItem(),itemType:e.getItemType(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getSourceClientOffset(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()}));return!t||Cu()?null:(0,K.jsx)(I,{sx:qxe,children:Yxe(e,n)})},kQ=_i.default.bind({"main-main":`_main-main_1uzgs_3`,mainMain:`_main-main_1uzgs_3`,"main-main--absolute":`_main-main--absolute_1uzgs_12`,mainMainAbsolute:`_main-main--absolute_1uzgs_12`,"main-navigation":`_main-navigation_1uzgs_27`,mainNavigation:`_main-navigation_1uzgs_27`,"main-navigation-bg":`_main-navigation-bg_1uzgs_33`,mainNavigationBg:`_main-navigation-bg_1uzgs_33`,"main-navigation-inner":`_main-navigation-inner_1uzgs_40`,mainNavigationInner:`_main-navigation-inner_1uzgs_40`,"main-navigation-inner--nomaxwidth":`_main-navigation-inner--nomaxwidth_1uzgs_47`,mainNavigationInnerNomaxwidth:`_main-navigation-inner--nomaxwidth_1uzgs_47`,active:`_active_1uzgs_74`,"main-navigation-user-inner":`_main-navigation-user-inner_1uzgs_78`,mainNavigationUserInner:`_main-navigation-user-inner_1uzgs_78`,"main-navigation-user-wrap":`_main-navigation-user-wrap_1uzgs_84`,mainNavigationUserWrap:`_main-navigation-user-wrap_1uzgs_84`,"main-navigation-user":`_main-navigation-user_1uzgs_78`,mainNavigationUser:`_main-navigation-user_1uzgs_78`,"main-navigation-loader":`_main-navigation-loader_1uzgs_100`,mainNavigationLoader:`_main-navigation-loader_1uzgs_100`,"main-navigation-clickItem":`_main-navigation-clickItem_1uzgs_107`,mainNavigationClickItem:`_main-navigation-clickItem_1uzgs_107`,"main-navigation-clickItem--left":`_main-navigation-clickItem--left_1uzgs_115`,mainNavigationClickItemLeft:`_main-navigation-clickItem--left_1uzgs_115`,"main-navigation-clickItem--right":`_main-navigation-clickItem--right_1uzgs_118`,mainNavigationClickItemRight:`_main-navigation-clickItem--right_1uzgs_118`,"main-navigation-clickItem--middle":`_main-navigation-clickItem--middle_1uzgs_121`,mainNavigationClickItemMiddle:`_main-navigation-clickItem--middle_1uzgs_121`,"main-navigation-user-image":`_main-navigation-user-image_1uzgs_127`,mainNavigationUserImage:`_main-navigation-user-image_1uzgs_127`,"main-navigation-box":`_main-navigation-box_1uzgs_134`,mainNavigationBox:`_main-navigation-box_1uzgs_134`,"main-page":`_main-page_1uzgs_141`,mainPage:`_main-page_1uzgs_141`,"main-page-no-scroll":`_main-page-no-scroll_1uzgs_151`,mainPageNoScroll:`_main-page-no-scroll_1uzgs_151`,"main-page--grey":`_main-page--grey_1uzgs_154`,mainPageGrey:`_main-page--grey_1uzgs_154`,"main-page--nomax":`_main-page--nomax_1uzgs_157`,mainPageNomax:`_main-page--nomax_1uzgs_157`,"main-page--canoverlaynav":`_main-page--canoverlaynav_1uzgs_161`,mainPageCanoverlaynav:`_main-page--canoverlaynav_1uzgs_161`,"page-header":`_page-header_1uzgs_167`,pageHeader:`_page-header_1uzgs_167`,"page-header-left":`_page-header-left_1uzgs_191 page-title`,pageHeaderLeft:`_page-header-left_1uzgs_191 page-title`,"page-header-center":`_page-header-center_1uzgs_196`,pageHeaderCenter:`_page-header-center_1uzgs_196`,"page-header-right":`_page-header-right_1uzgs_201`,pageHeaderRight:`_page-header-right_1uzgs_201`,"page-padding":`_page-padding_1uzgs_206`,pagePadding:`_page-padding_1uzgs_206`}),AQ=({isAbsolute:e,noMaxWidthNav:t=!0,noMaxWidth:n=!0,canOverLayNav:r,navItems:i,bgColor:a,children:o})=>(0,K.jsxs)(`div`,{className:kQ(`main-main`,{"main-main--absolute":e}),children:[(0,K.jsx)(`div`,{className:kQ(`main-navigation`),children:(0,K.jsx)(`div`,{className:kQ(`main-navigation-bg`),children:(0,K.jsx)(`div`,{className:kQ(`main-navigation-inner`,{"main-navigation-inner--nomaxwidth":t}),children:i&&i})})}),(0,K.jsx)(`div`,{className:kQ(`main-page`,{"main-page--grey":a===`grey`,"main-page--nomax":!!n,"main-page--canoverlaynav":r}),children:o})]});AQ.propTypes={isAbsolute:V.default.bool,noMaxWidthNav:V.default.bool,noMaxWidth:V.default.bool,canOverLayNav:V.default.bool,navItems:V.default.node,bgColor:V.default.oneOf([`grey`]),children:V.default.node};var Zxe=e(et()),jQ=_i.default.bind(AZ),MQ=({title:e=``,onDelete:t=()=>{},onDuplicate:n=()=>{},onBlur:r=()=>{},isReadOnly:i=!1})=>(0,K.jsxs)(`div`,{className:jQ(`checklist__topbar`),children:[(0,K.jsx)(`div`,{className:jQ(`checklist__topbar-section`),children:(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,noBox:!0,disabled:i,defaultValue:e,style:{backgroundColor:`var(--color-white)`,fontSize:`16px`,lineHeight:`24px`,padding:`0`},type:`text`,onBlur:r,maxLength:40,placeholder:U(`checklist.enter_title`),"data-testid":`checklist_step_title`})}),(0,K.jsxs)(`div`,{className:jQ(`checklist__topbar-section`,`checklist__topbar-section--right`),children:[!i&&(0,K.jsx)(`div`,{"data-testid":`checklist_step_duplicate_btn`,className:jQ(`checklist__topbar-icon`),children:(0,K.jsx)(Y.IcDuplicate2,{onClick:n})}),!i&&(0,K.jsx)(`div`,{"data-testid":`checklist_step_delete_btn`,className:jQ(`checklist__topbar-icon`),children:(0,K.jsx)(Y.IcTrash2,{onClick:t})})]})]});MQ.propTypes={title:V.default.string,onDelete:V.default.func,onBlur:V.default.func,onDuplicate:V.default.func,isReadOnly:V.default.bool};var NQ=({id:e,index:t,defaultValue:n,type:r,isReadOnly:i,isEnter:a,isEmpty:o,addOrUpdate:s,onDeleteTask:c,dragDisable:l,moveCard:u})=>{let d=(0,B.useRef)(null),[{isDragging:f},p,m]=Wt(()=>
1888({type:`TEXT`,item:{id:e,index:t,defaultValue:n,type:r},canDrag:!i&&!a,collect:e=>({isDragging:e.isDragging()})}),[e,t,n,r,i,a]),[{isOver:h},g]=Le(()=>({accept:`TEXT`,canDrop:e=>e.type===r,drop:e=>{let n=e.index,r=t;n!==r&&(u(n,r),e.index=r)},collect:e=>({isOver:e.isOver()})}),[t,u,r]);(0,B.useEffect)(()=>{m(kr(),{captureDraggingState:!1})},[m]),p(g(d));let _=f||h;return(0,K.jsxs)(`div`,{ref:d,children:[!_&&(0,K.jsx)(fx,{iconBg:`white`,isEmpty:o,isEnter:a,isReadOnly:i,connectDragSource:p,onChange:s,onDelete:c,dragDisable:l,defaultValue:n,iconImage:`other`}),_&&(0,K.jsx)(fx,{iconBg:`white`,isEmpty:!0,isDragging:h,onChange:s,onDelete:c,defaultValue:n,iconImage:`other`})]})};NQ.propTypes={id:V.default.any.isRequired,index:V.default.number.isRequired,defaultValue:V.default.string,type:V.default.string.isRequired,isReadOnly:V.default.bool,isEnter:V.default.bool,isEmpty:V.default.bool,addOrUpdate:V.default.func.isRequired,onDeleteTask:V.default.func.isRequired,dragDisable:V.default.bool,moveCard:V.default.func.isRequired};var Qxe=_i.default.bind(AZ);function PQ({jobInstructionId:e,index:t,step:n,isReadOnly:r=!1}){let i=xe(),[a,o]=(0,B.useState)(()=>JN(10)),s=(0,B.useCallback)(()=>{i(LU(`deleteStep`,{jobInstructionId:e,deleteSteps:{[n.objectId]:!0}}))},[i,e,n.objectId]),c=(0,B.useCallback)(()=>{i(LU(`duplicateStep`,{jobInstructionId:e,steps:[n.objectId].slice(0),index:t}))},[i,e,n.objectId,t]),l=(0,B.useCallback)(t=>{i(LU(`update`,{jobInstructionId:e,stepId:`${n.objectId}`,changeSet:{title:t.target.value}}))},[i,e,n.objectId]),u=(0,B.useCallback)(t=>{i(RU(`delete`,e,n.objectId,{index:t}))},[i,e,n.objectId]),d=(0,B.useCallback)((t,r)=>{i(RU(`moveStep`,e,n.objectId,{fromIndex:t,toIndex:r}))},[i,e,n.objectId]),f=(0,B.useCallback)((t,r,a,s)=>{if(t){if(s&&s.length<2)return;i(RU(`add`,e,n.objectId,{index:a,changeSet:{objectId:r,icon:`other`,note:s}})),o(JN(10))}else{if(!s){u(a);return}i(RU(`update`,e,n.objectId,{index:a,changeSet:{note:s}}))}},[i,e,n.objectId,u]),p=(0,B.useCallback)((e,t,n,r)=>{let i={_enter:!0,objectId:n},a;typeof e==`object`&&!Array.isArray(e)&&(a=Object.values(e));let o=[...a||e,i],s=Math.max(5-o.length,0);return o.length<=5&&(0,xc.default)((0,Zxe.default)(s),()=>{o.push({_empty:!0})}),(0,K.jsx)(`div`,{children:(0,H.default)(o,(n,i)=>{let a=(0,fX.default)(e,{objectId:n.objectId}),o=n._empty,s=n._enter;return o?(0,K.jsx)(`div`,{children:(0,K.jsx)(fx,{iconBg:`white`,isEmpty:o,iconImage:`other`})},i+t+n.objectId):s&&r?null:(0,K.jsx)(NQ,{type:`step${t}`,placeholderType:`text`,isEmpty:o,isEnter:s,isReadOnly:r,dragDisable:!(o||s),addOrUpdate:e=>f(s,n.objectId,a,e.target.value),onDeleteTask:()=>u(a),id:i+t+n.objectId,defaultValue:s?void 0:n.note,moveCard:d,index:a},i+t+n.objectId)})})},[f,u,d]);return(0,K.jsxs)(`div`,{"data-testid":n.tasks.length===0?`blank-text-slide`:`text-template`,children:[(0,K.jsx)(MQ,{isReadOnly:r,title:n.title,onDelete:s,onDuplicate:c,onBlur:l}),(0,K.jsx)(`div`,{className:Qxe(`checklist__tasks`),children:p(n.tasks,n.objectId,a,r)})]})}PQ.propTypes={jobInstructionId:V.default.string.isRequired,index:V.default.number.isRequired,step:V.default.shape({objectId:V.default.string,title:V.default.string,tasks:V.default.oneOfType([V.default.array,V.default.object])}).isRequired,isReadOnly:V.default.bool};var $xe=e(eee()),FQ=_i.default.bind(AZ),IQ=({onDropPinInTrash:e})=>{let[,t]=Le(()=>({accept:`PIN`,drop:t=>{e(t)}}),[e]);return(0,K.jsx)(`div`,{className:FQ(`checklist__trash`),children:(0,K.jsxs)(`div`,{ref:t,className:FQ(`checklist__trash-inner`),children:[(0,K.jsx)(Y.IcTrashSolid,{}),(0,K.jsx)(`span`,{children:U(`checklist.remove`)})]})})};IQ.propTypes={onDropPinInTrash:V.default.func.isRequired};var LQ=_i.default.bind(AZ),RQ=({icon:e,position:t,small:n,positioned:r,dragging:i})=>(0,K.jsxs)(`div`,{className:LQ(`checklist__pin-actual`,{"checklist__pin-actual--positioned":r},{"checklist__pin-actual--dragging":i},{"checklist__pin-actual--small":n},`checklist__pin-actual--${t}`),children:[(0,K.jsx)(Y.IcPin2,{height:`4em`,width:`4em`,byWidth:!0}),e&&(0,K.jsx)(`div`,{"data-pin":`master`,style:{left:`16px`,top:`12px`,position:`absolute`},className:LQ(`checklist__pin-icon--${t}`),children:(0,K.jsx)(e,{height:`2em`,width:`2em`,byWidth:!0})})]});RQ.propTypes={icon:V.default.func,position:V.default.string,small:V.default.bool,positioned:V.default.bool,dragging:V.default.bool};var zQ=({setPosition:e,setIsDragging:t,children:n})=>{let r=(0,B.useRef)(null),i=(0,B.useRef)((0,Xf.default)(e=>{t(e,!1)},3e3)).current,[,a]=Le(()=>({accept:`PIN`,drop:(n,i)=>{let a=r.current.getBoundingClientRect(),o=i.getClientOffset();o&&e(n,o.y-a.top,o.x-a.left),t(n,!1)},hover:e=>{t(e,!0),i(e)}}),[e,t,i]);return a(r),(0,K.jsx)(`div`,{ref:r,children:n})};zQ.propTypes={setPosition:V.default.func.isRequired,setIsDragging:V.default.func.isRequired,children:V.default.node.isRequired};
1888var BQ=({index:e,indexImage:t,children:n,wrapFunc:r,isReadOnly:i,...a})=>{let[{isDragging:o},s,c]=Wt(()=>({type:`PIN`,item:{index:e,indexImage:t,children:n,wrapFunc:r},canDrag:!i,collect:e=>({isDragging:e.isDragging()})}),[e,t,n,r,i]);(0,B.useEffect)(()=>{c(kr(),{captureDraggingState:!0})},[c]);let l=o?{style:{...a.style,opacity:0}}:{};return(0,K.jsx)(`div`,{ref:s,...(0,Pf.default)(a,[`wrapFunc`,`isReadOnly`]),...l,children:n})};BQ.propTypes={index:V.default.number.isRequired,indexImage:V.default.number.isRequired,children:V.default.node.isRequired,wrapFunc:V.default.func,isReadOnly:V.default.bool};var VQ=_i.default.bind(AZ),eSe=[`custom`,`look`,`laundry`,`stripandreplace`,`iron`,`wipe`,`disinfect`,`scrub`,`vacuum`,`mop`,`sweep`,`refill`,`dust`,`cleanglass`,`emptytrash`,`water`,`lighton`,`lock`,`unlock`,`seal`,`stage`];function HQ({tasks:e,image:t,index:n,onReplace:r,onTrashPin:i,onSetActivePin:a,pinDropped:o,newPinDropped:s,activePinId:c=null,isReadOnly:l=!1,isIndependent:u=!1}){let d=(0,B.useRef)(null),[f,p]=(0,B.useState)(!1),[m,h]=(0,B.useState)({x:-100,y:-100,position:`top`}),[g,_]=(0,B.useState)({x:-1e3,y:-1e3,position:`top`}),[v,y]=(0,B.useState)(!1),[b,x]=(0,B.useState)(!1),S=(0,B.useCallback)((e,t)=>({transform:`translate3d(${e}px, ${t}px, 0px)`}),[]),C=(0,B.useCallback)((e,t)=>{if(!t)return;let n=t.getBoundingClientRect();if(n)return{x:e.clientX,y:e.clientY,bounds:n}},[]),w=(0,B.useCallback)((e,t)=>{if(!e||!t)return;let n=t.x-e.left,r=t.y-e.top;return{...t,x:n,y:r}},[]),T=(0,B.useCallback)((e,t,n,r,i)=>{let a=e*n,o=t*r,s={transform:`translate3d(${a}px, ${o}px, 0px)`};return i?{y:o,x:a,transform:s}:s},[]),E=(0,B.useCallback)((e,t,n,r)=>({centerX:r/e,centerY:n/t}),[]),D=(0,B.useCallback)((e,t,n)=>(0,K.jsx)(`div`,{style:{...S(t,n)},className:VQ(`checklist__pin`),children:e}),[S]),ee=(0,B.useCallback)((e,t,n,r,i)=>{let a=(e,t,n)=>{n.stopPropagation(),e.call(this,...t)};return(0,H.default)(e,(e,o)=>{if(!e.centerX&&!e.centerY)return null;let s=Eu(e.icon),c=n===e.objectId?{zIndex:1e3}:{},{x:l,y:u,transform:d}=T(752,423,e.centerX,e.centerY,!0),f=Du({left:0,right:752,top:0,bottom:423},l,u);return(0,K.jsx)(BQ,{style:{...c,...d},isReadOnly:i,onClick:n=>a(t.bind(this,e.objectId),[],n),className:VQ(`checklist__pin`),wrapFunc:D,indexImage:r,index:o,children:(0,K.jsx)(RQ,{positioned:!0,icon:Y[s.icon],position:f.position})},o)})},[T,D]),te=(0,B.useCallback)((e,t)=>{let n=window.innerWidth,r=(0,Qq.default)({left:e,right:n-e});return{x:e,y:t,position:r[(0,$xe.default)((0,So.default)((0,Ux.default)(r),e=>e*1))[0]]}},[]),ne=(0,B.useCallback)(e=>{let t=!1;e.target&&e.target.getAttribute(`data-pin`)===`master`&&(t=!0);let n=C(e,d.current);if(!n||v)return;let r=Du(n.bounds,n.x,n.y),i=te(n.x,n.y);if(!r)return;let a=w(n.bounds,r);a&&(p(t),h(a),_(i))},[C,v,te,w]),re=(0,B.useCallback)(e=>{let{x:t,y:n}=m;s(e,E(752,423,n,t)),h({x:-100,y:-100,position:`top`}),y(!1)},[m,E,s]),O=(0,B.useCallback)(()=>{h({x:-100,y:-100,position:`top`}),y(!1)},[]),ie=(0,B.useCallback)(e=>{e.stopPropagation(),O()},[O]),ae=(0,B.useCallback)((e,t)=>{let n=(0,H.default)(e,e=>Eu(e)),r=(e,t,n)=>{n.stopPropagation(),e.call(this,...t)};return(0,K.jsx)(`div`,{className:VQ(`bubble__container`),children:(0,H.default)((0,wx.default)(n,5),(e,n)=>(0,K.jsx)(`div`,{className:VQ(`bubble__wrap`),children:(0,H.default)(e,(e,n)=>{let i=Y[e.icon];return(0,K.jsxs)(`div`,{onClick:n=>r(t,[e.symbol],n),className:VQ(`bubble-outer`),children:[(0,K.jsx)(`div`,{className:VQ(`bubble`),children:(0,K.jsx)(i,{height:`2.5em`,width:`2.5em`,byWidth:!0})}),(0,K.jsx)(`span`,{children:e.title})]},n)})},n))})},[]),oe=(0,B.useCallback)(e=>({backgroundImage:`url(${iu(e,nu.LARGE)})`}),[]),se=(0,B.useCallback)((e,t,n)=>{let r=E(752,423,t,n);o(e.index,r)},[E,o]),ce=(0,B.useCallback)((e,t)=>{x(t)},[]),le=(0,B.useCallback)(e=>{ce(e,!1),i(e)},[ce,i]),ue=(0,B.useCallback)(()=>{let e=(e,t)=>{t.stopPropagation(),e.call(this,t)};return(0,K.jsxs)(`div`,{onClick:t=>e(r,t),className:VQ(`checklist__image-replace`),children:[(0,K.jsx)(Y.IcSmReplace,{}),(0,K.jsx)(`span`,{children:U(`checklist.replace`)})]})},[r]),de=(0,B.useCallback)(()=>(0,K.jsxs)(`div`,{"data-overlay":`true`,className:VQ(`checklist__image-info`),children:[(0,K.jsx)(`div`,{"data-overlay":`true`,children:(0,K.jsx)(Y.IcPinclickFre2,{"data-overlay":`true`})}),(0,K.jsx)(`div`,{"data-overlay":`true`,className:VQ(`checklist__image-info-txt`),children:U(`checklist.image_info`)})]}),[]),fe=(0,B.useCallback)((e,t,n,r)=>{let i=e.y,a=e.x;(e.position===`left`||e.position===`right`)&&(i-=388/2),e.position===`left`&&(a-=432),(t.position===`top`||t.position===`bottom`)&&(e.position===`left`||e.position===`right`)&&(a=e.position===`left`?a-31:a+31,i=t.position===`bottom`?i+35:i-35),(t.position===`left`||t.position===`right`)&&(e.position===`left`||e.position===`right`)&&(a=t.position===`left`?a-70:a+70);let o=window.innerHeight-(i+388),s=i-48;o<0&&(i+=o),s<0&&(i+=s*-1);let c=(0,K.jsx)(`div`,{children:ae(n,r)});return(0,K.jsx)(`div`,{onClick:ie,className:VQ(`checklist__fixedlayer`),children:(0,K.jsx)(Je,{open:!0,anchorReference:`anchorPosition`,anchorPosition:{top:i,left:a},children:c})})},[ae,ie]),pe=(0,B.useCallback)(()=>(0,K.jsx)(`div`,{style:{...S(m.x,m.y)},className:VQ(`checklist__pin`,{"checklist__pin--hover":!v}),children:(0,K.jsx)(RQ,{position:m.position,small:!v})}),[S,m,v]),me=(0,B.useCallback)(e=>(0,K.jsx)(`div`,{onClick:()=>e(void 0),className:VQ(`checklist__image-pin-overlay`)}),[]),he=(0,B.useCallback)(()=>{m.x!==-100&&m.y!==-100&&!c&&y(!0)},[m,c]),ge=!l&&!u&&!b&&!c,_e=e.length===0&&!v,ve=!b&&!c&&!f&&(e.length>0||v);return(0,K.jsx)(zQ,{setIsDragging:ce,setPosition:se,children:(0,K.jsxs)(`div`,{ref:d,"data-drag":`image${n}`,id:`pin-image-wrap`,onMouseMove:!l&&ne||Fu.default,onMouseLeave:!l&&O||Fu.default,onClick:!l&&he||Fu.default,className:VQ(`checklist__image`,`modal-container`),children:[(0,K.jsx)(`div`,{className:VQ(`checklist__image-actual`),style:oe(t)}),ge&&ue(),b&&(0,K.jsx)(IQ,{onDropPinInTrash:le}),_e&&!l&&de(),ve&&!l&&pe(),c&&me(a),ee(e,a,c,n,l),v&&fe(g,m,eSe,re)]})})}HQ.propTypes={tasks:V.default.arrayOf(V.default.shape({})).isRequired,image:V.default.string.isRequired,index:V.default.number.isRequired,onReplace:V.default.func.isRequired,onTrashPin:V.default.func.isRequired,onSetActivePin:V.default.func.isRequired,pinDropped:V.default.func.isRequired,newPinDropped:V.default.func.isRequired,activePinId:V.default.string,isReadOnly:V.default.bool,isIndependent:V.default.bool};var UQ=({task:e,realIndex:t,active:n,isReadOnly:r,onRemoveImage:i,onDelete:a,onChange:o,setUploadState:s,checklistDirectTaskImageUpload:c,openErrorModal:l,pictureUrl:u,stepId:d,directUpload:f,iconImage:p,title:m,moveTask:h})=>{let g=(0,B.useRef)(null),[{isDragging:_},v,y]=Wt(()=>({type:`IMAGE`,item:{id:e.objectId,index:t,defaultValue:e.note,title:m,iconImage:p,type:`IMAGE`},canDrag:!r&&!n,end:(e,n)=>{if(!n.didDrop())return;let r=e.index,i=t;r!==i&&h(r,i)},collect:e=>({isDragging:e.isDragging()})}),[e,t,n,r,m,p,h]),[{isOver:b},x]=Le(()=>({accept:`IMAGE`,canDrop:e=>e.type===`IMAGE`,hover:e=>{let n=e.index,r=t;n!==r&&(e.index=r)},collect:e=>({isOver:e.isOver()})}),[t]);(0,B.useEffect)(()=>{y(kr(),{captureDraggingState:!1})},[y]),v(x(g));let S=_||b;return(0,K.jsxs)(`div`,{ref:g,style:{opacity:+!_},children:[!S&&(0,K.jsx)(fx,{iconBg:`orange`,isReadOnly:r,active:n,onRemoveImage:()=>i(t),onDelete:()=>a(t),onChange:o,defaultValue:e.note,pictureUrl:u,setUploadState:s,connectDragSource:v,open:!!u,canHaveImg:!S,title:m,iconImage:p,directUpload:f,
1888stepId:d,realIndex:t,checklistDirectTaskImageUpload:c,openErrorModal:l,isDragging:_},`${e.objectId}${e.note?e.note.length:``}`),S&&(0,K.jsx)(fx,{iconBg:`white`,isEmpty:!0,isReadOnly:!0,onChange:o,defaultValue:e.note,setUploadState:s,open:!!u,canHaveImg:!S,title:m,iconImage:p,directUpload:f,stepId:d,realIndex:t},`${e.objectId}${e.note?e.note.length:``}`)]})};UQ.propTypes={isDragging:V.default.bool,moveTask:V.default.func.isRequired,task:V.default.shape({}).isRequired,realIndex:V.default.number.isRequired,active:V.default.bool.isRequired,isReadOnly:V.default.bool.isRequired,onRemoveImage:V.default.func.isRequired,onDelete:V.default.func.isRequired,onChange:V.default.func.isRequired,setUploadState:V.default.func.isRequired,checklistDirectTaskImageUpload:V.default.func.isRequired,openErrorModal:V.default.func.isRequired,pictureUrl:V.default.string,stepId:V.default.string,directUpload:V.default.bool,iconImage:V.default.string,title:V.default.string,isOver:V.default.bool};var tSe={marginTop:`24px`,marginBottom:`24px`},nSe={background:`var(--color-background)`,borderRadius:`2px`,padding:`12px 16px`,display:`flex`,justifyContent:`space-between`},rSe={display:`flex`,alignItems:`center`},iSe={marginLeft:`12px`,fontSize:`12px`,fontWeight:600,color:`var(--color-loading-txt)`};function WQ({jobInstructionId:e,index:t,step:n,jobId:r,isReadOnly:i=!1,isIndependent:a=!1,openErrorModal:o,propertyId:s}){let c=xe(),[l,u]=(0,B.useState)(void 0),d=(0,B.useCallback)(e=>e&&e[0]?e[0]:void 0,[]),f=(0,B.useCallback)((t,i)=>{c(RU(`update`,e,n.objectId,{index:t,changeSet:{note:i}})),Rpe(r)},[c,e,n.objectId,r]),p=(0,B.useCallback)((e,t)=>{u(void 0),f(e,t)},[f]),m=(0,B.useCallback)(t=>{c(RU(`update`,e,n.objectId,{index:t,changeSet:{pictureUrls:[]}}))},[c,e,n.objectId]),h=(0,B.useCallback)(t=>{c(RU(`delete`,e,n.objectId,{index:t}))},[c,e,n.objectId]),g=(0,B.useCallback)(t=>{c(RU(`delete`,e,n.objectId,{index:t.index}))},[c,e,n.objectId]),_=(0,B.useCallback)((t,r)=>{c(RU(`update`,e,n.objectId,{index:t,changeSet:{...r}}))},[c,e,n.objectId]),v=(0,B.useCallback)((t,i)=>{c(RU(`addimage`,e,n.objectId,{changeSet:{icon:t,...i}})),Lpe(r)},[c,e,n.objectId,r]),y=(0,B.useCallback)(()=>{c(LU(`deleteStep`,{jobInstructionId:e,deleteSteps:{[n.objectId]:!0}}))},[c,e,n.objectId]),b=(0,B.useCallback)(()=>{c(LU(`duplicateStep`,{jobInstructionId:e,steps:[n.objectId].slice(0),index:t}))},[c,e,n.objectId,t]),x=(0,B.useCallback)(t=>{c(LU(`update`,{jobInstructionId:e,stepId:`${n.objectId}`,changeSet:{title:t.target.value}}))},[c,e,n.objectId]),S=(0,B.useCallback)(t=>()=>{c(LU(`update`,{jobInstructionId:e,stepId:`${n.objectId}`,changeSet:{isVerificationNeeded:t}}))},[c,e,n.objectId]),C=(0,B.useCallback)(e=>{u(e)},[]),w=(0,B.useCallback)(()=>{c(bU({isOpen:!0,do:{mode:`replace`,stepId:`${n.objectId}`}}))},[c,n.objectId]),T=(0,B.useCallback)((t,r)=>{c(RU(`moveStep`,e,n.objectId,{fromIndex:t,toIndex:r}))},[c,e,n.objectId]),E=(0,B.useCallback)((e,t,n)=>{c(hU(e,t,n))},[c]),D=(0,B.useCallback)(e=>{c(bU(e))},[c]),ee=(0,B.useCallback)((e,t,r)=>{let a=Eu(e.icon);return(0,K.jsx)(UQ,{task:e,realIndex:t,active:r,isReadOnly:i,onRemoveImage:()=>m(t),onDelete:()=>h(t),onChange:r?e=>p(t,e.target.value):e=>f(t,e.target.value),setUploadState:D,checklistDirectTaskImageUpload:E,openErrorModal:o,pictureUrl:d(e.pictureUrls),stepId:n?.objectId,directUpload:!s,iconImage:e.icon,title:a.title,moveTask:T},`${e.objectId}${e.note?e.note.length:``}`)},[i,m,h,f,p,D,E,o,d,n?.objectId,s,T]),te=(0,B.useCallback)((e,t)=>{let n=(0,fX.default)(e,{objectId:t}),r=e[n];return(0,K.jsxs)(`div`,{children:[r&&ee(r,n,!0),(0,H.default)(e,(e,n)=>e.objectId===t?null:ee(e,n,!1))]})},[ee]),{pictureUrl:ne,title:re,isVerificationNeeded:O,tasks:ie}=n||{};return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(MQ,{title:re,isReadOnly:i,onDelete:y,onDuplicate:b,onBlur:x}),(0,K.jsx)(HQ,{isReadOnly:i,index:t,activePinId:l,onTrashPin:g,pinDropped:_,newPinDropped:v,onSetActivePin:C,onReplace:w,image:ne,tasks:ie,isIndependent:a}),(0,K.jsx)(I,{sx:tSe,children:te(ie,l)}),(0,K.jsxs)(I,{"data-testid":`verification-Photo`,sx:nSe,children:[(0,K.jsxs)(I,{component:`span`,sx:rSe,children:[(0,K.jsx)(Y.IcCameraSolid,{}),(0,K.jsx)(I,{component:`span`,sx:iSe,children:U(`checklist.ask_a_cleaner`)})]}),(0,K.jsx)(Dp,{"data-testid":`verification-photo-checkbox`,style:{height:18,width:18},type:`quarter`,disabled:i,selected:O,onChange:!i&&S(!O)||Fu.default})]})]})}WQ.propTypes={jobInstructionId:V.default.string.isRequired,index:V.default.number.isRequired,step:V.default.shape({objectId:V.default.string,pictureUrl:V.default.string,title:V.default.string,isVerificationNeeded:V.default.bool,tasks:V.default.arrayOf(V.default.shape({}))}).isRequired,jobId:V.default.string.isRequired,isReadOnly:V.default.bool,isIndependent:V.default.bool,openErrorModal:V.default.func.isRequired,propertyId:V.default.string};var aSe={height:`40px`,position:`relative`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`background-color 0.2s ease`,"&:hover":{backgroundColor:`var(--color-black-alpha-10)`}};function GQ({jobInstructionId:e=void 0,isReadOnly:t=!1}){let n=xe(),r=j(t=>SV(t,{jobInstructionId:e})),i=j(t=>{if(e)return dV(t)[e]}),a=(0,B.useCallback)(e=>{let{scroller:t}=aQ.default;t.scrollTo(e,{duration:1500,delay:100,smooth:!0,containerId:`checklist-scroll-main`})},[]),o=(0,B.useCallback)((t,r)=>{n(LU(`moveStep`,{jobInstructionId:e,fromIndex:t,toIndex:r}))},[n,e]),s=(0,B.useCallback)(()=>{n(yU({isOpen:!0}))},[n]);return(0,K.jsx)(I,{sx:{height:`100%`},children:(0,K.jsxs)(Pj,{children:[!t&&(0,K.jsxs)(I,{"data-testid":`checklist_overview_btn`,onClick:s,sx:aSe,children:[(0,K.jsx)(Y.IcGrid,{}),(0,K.jsx)(Dm,{type:[`bottom`,`dark`]})]}),(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{children:e?(0,K.jsx)(`div`,{children:(0,H.default)(i&&i.steps||[],(e,n)=>(0,K.jsx)(CQ,{isReadOnly:t,id:e.objectId,moveCard:(e,t)=>o(e,t),index:n,children:(0,K.jsx)(`div`,{onClick:()=>a(e.objectId),children:(0,K.jsx)(sx,{needsVerify:e.isVerificationNeeded,identifier:`sidebar`,title:e.title,active:r===e.objectId,steps:e.tasks,image:e.pictureUrl})})},e.objectId))}):null})})})]})})}GQ.propTypes={jobInstructionId:V.default.string,isReadOnly:V.default.bool};var oSe={height:`0px`,width:`0px`,opacity:0,visibility:`hidden`,overflow:`hidden`},KQ={border:`1px dashed var(--color-border)`,backgroundColor:`var(--color-bg-paper)`,height:`44px`,display:`flex`,alignItems:`center`,justifyContent:`center`,borderRadius:`6px`,color:`var(--color-text-secondary)`,fontSize:`14px`,fontWeight:500,flex:1,cursor:`pointer`,transition:`all 0.2s ease`,"&:hover":{borderColor:`var(--color-primary)`,color:`var(--color-primary)`,backgroundColor:`var(--color-primary-light)`,"& > span":{opacity:1}},"& > span":{display:`flex`,alignItems:`center`,opacity:.7}},sSe={...KQ,marginRight:`4px`},cSe={...KQ,marginLeft:`4px`},qQ={marginLeft:`8px`},lSe={marginBottom:`8px`,height:`44px`,display:`flex`,position:`relative`,"@media print":{display:`none`}},JQ={marginBottom:`8px`},uSe={display:`flex`},dSe={marginLeft:`45px`,flex:1},fSe={maxWidth:`800px`,margin:`0 auto`},pSe={display:`flex`,alignItems:`center`,justifyContent:`center`,height:`400px`,width:`100%`},mSe={display:`flex`,alignItems:`center`},hSe={display:`flex`,alignItems:`center`,flexDirection:`column`},gSe={maxWidth:`200px`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},_Se={fontSize:`12px`,color:`var(--color-no-result)`},vSe={display:`inline-flex`,alignItems:`center`,gap:`6px`,padding:`6px 12px`,backgroundColor:`var(--surface-elevated)`,borderRadius:`var(--radius-pill)`,fontSize:`var(--font-size-micro)`,fontWeight:500,color:`var(--color-text-secondary)`,border:`1px solid var(--color-border)`,marginLeft:`10px`},ySe=oQ;function YQ({jobInstructionId:e,checklistId:t,isIndependent:n=!1,pathname:r=void 0,redirectUrl:i=void 0,isLoading:a=!0,isError:o=!1,lastTimeUpdated:s=null,modalData:c,selectedJobInstruction:l,selectedChecklist:u,selectedProperty:d=null,locationHitChecklistDetail:f,goToProperty:p=()=>R.default.error(`goToProperty prop is not implemented`),updateLastUpdatedTime:m=()=>R.default.warn(`updateLastUpdatedTime prop is not implemented`),setActiveChecklist:h=()=>R.default.warn(`thumbnail is not visible for properly published checklist`),checklistDirectSlideUpload:g=()=>{},setUploadState:_=()=>{},stepMutatorSaga:v=()=>{},setTextTemplate:y=()=>{},updateChecklistSaga:b=()=>{},setModalClose:x=()=>{},checklistCompliant:S=!1,setRequestRiOption:C=()=>{},riOption:w=void 0,push:T=()=>{},readOnly:E=!1,imageUploadErrored:D=!1,setGlobalLoadingState:ee=()=>{}}){let[te,ne]=(0,B.useState)(!1),[re,O]=(0,B.useState)(!1),{trackClick:ie,trackField:ae}=nT(`ChecklistsContainer`),oe=(0,B.useCallback)(()=>
1888n||c?.meta?.isIndependent,[n,c]),se=(0,B.useCallback)(()=>c?.meta?.published,[c]),ce=(0,B.useCallback)((e,t)=>{e&&t&&f(e,t,oe(),se())},[f,oe]);(0,B.useEffect)(()=>(ce(e,t),aQ.default.Events.scrollEvent.register(`end`,e=>{h(e)}),()=>{aQ.default.Events.scrollEvent.remove(`end`),m(void 0)}),[e,t]),(0,B.useEffect)(()=>{ce(e,t)},[r,e,t]),(0,B.useEffect)(()=>{t&&!a&&!o&&$pe(t)},[t,a,o]);let le=(0,B.useCallback)((e,t)=>{R.default.info(`ChecklistsContainer - handleDirectImageUpload`,e);let[n]=t.target.files,{size:r}=n,{minSize:i,maxSize:a}=ru;if(r<i||r>a){O(!0);return}g(e,n)},[g]),ue=(0,B.useCallback)(()=>{O(!0)},[]),de=(0,B.useCallback)(e=>{e.target.value=``},[]),fe=(0,B.useCallback)(()=>{ee(d_)},[ee]),pe=(0,B.useCallback)(e=>{let{objectId:t}=d||{},n=`upload-new-photo-${e}-${t||`noproperty`}`,r=!t,i=r?Fu.default:()=>{ie(`add_photo_slide`,{view:`checklist_editor`}),_({isOpen:!0,do:{mode:`new`,after:e}})};return(0,K.jsxs)(K.Fragment,{children:[r&&(0,K.jsx)(I,{component:`input`,accept:`image/*`,onChange:t=>le(e,t),onClick:de,sx:oSe,id:n,type:`file`}),(0,K.jsx)(I,{component:`label`,htmlFor:n,"data-testid":`newPhotoSlide`,onClick:()=>{ie(`add_photo_slide`,{view:`checklist_editor`}),i()},sx:sSe,children:(0,K.jsxs)(`span`,{children:[(0,K.jsx)(Y.IcCamera3,{}),(0,K.jsx)(I,{component:`span`,sx:qQ,children:U(`checklist.photo_slide`)})]})})]})},[d,le,de,_,ie]),me=(0,B.useCallback)((e,t,n,r)=>{let i=(e,t)=>v(e,t),a=y,o=[{"data-testid":`checklist_blankslide_btn_newtxtslidepopover`,name:U(`checklist.blank_text_slide`),onClick:()=>{ie(`add_blank_text_slide`,{view:`checklist_editor`}),i(`setBetween`,{index:t,jobInstructionId:n})},icon:(0,K.jsx)(Y.IcTextPopover,{})},{"data-testid":`checklist_texttemplate_btn_newtxtslidepopover`,name:U(`checklist.text_template`),onClick:()=>{ie(`add_text_template`,{view:`checklist_editor`}),a({isOpen:!0,do:{mode:`setAfter`,after:t}})},icon:(0,K.jsx)(Y.IcTemplatePopover2,{})}];return(0,K.jsxs)(I,{id:`pin-image-wrap${e}`,sx:lSe,children:[!r&&pe(t),!r&&(0,K.jsx)(I,{sx:{width:`50%`},children:(0,K.jsx)(Lg,{width:230,popoverKey:`textSlideCreateOptions`,hasArrow:!0,popoverContent:e=>(0,K.jsx)(Ad,{closePopover:e.closePopup,items:o}),children:(0,K.jsx)(I,{sx:cSe,"data-testid":`newTextSlide`,children:(0,K.jsxs)(`span`,{children:[(0,K.jsx)(Y.IcTextPopover,{}),(0,K.jsx)(I,{component:`span`,sx:qQ,children:U(`checklist.text_slide`)})]})})})})]})},[pe,v,y,ie]),he=(0,B.useCallback)((e,t,n)=>{let{jobDescription:r=``,objectId:i}=t||{};return!r&&n?null:(0,K.jsx)(I,{sx:JQ,children:(0,K.jsx)($b,{children:(0,K.jsxs)(I,{sx:uSe,children:[(0,K.jsx)(Xg,{type:`medium`,children:U(`checklist.des`)}),(0,K.jsx)(I,{sx:dSe,children:(0,K.jsx)(lx,{dataKey:`checklist_des_input`,disabled:!!n,onFocus:()=>Npe(),onBlur:t=>{Mpe(),e(`update`,{objectId:i,jobDescription:t.target.value})},defaultValue:r,placeholder:U(`checklist.topdes`)})})]})})})},[]),ge=(0,B.useCallback)((e,t,n,r,i)=>{let a=b,{objectId:o}=d||{};return(0,K.jsxs)(`div`,{children:[he(a,n,r),!r&&me(`first`,-1,t,r),(0,H.default)(e,(e,a)=>(0,K.jsxs)(aQ.default.Element,{name:e.objectId,children:[(0,K.jsx)(I,{sx:JQ,"data-testid":`checklist-steps`,children:(0,K.jsxs)($b,{children:[e.pictureUrl&&(0,K.jsx)(WQ,{isReadOnly:r,step:e,index:a,jobId:n.objectId,jobInstructionId:t,propertyId:o,openErrorModal:ue,isIndependent:oe(),currency:i}),!e.pictureUrl&&(0,K.jsx)(PQ,{isReadOnly:r,step:e,index:a,jobInstructionId:t})]})}),me(e.objectId,a,t,r),(0,K.jsx)(aQ.default.Link,{containerId:`checklist-scroll-main`,onSetActive:e=>h(e),to:e.objectId,spy:!0})]},e.objectId))]})},[b,d,he,me,ue,oe,h]),_e=(0,B.useCallback)(t=>{let n=l?.steps||[],r=l?.currency||``;return a?(0,K.jsx)(xf,{type:`primary`}):o?(0,K.jsx)(I,{sx:pSe,children:(0,K.jsx)(Jg,{style:{textAlign:`center`},type:`bold red`,children:`Something went wrong while loading this checklist`})}):(0,K.jsxs)(Uj,{resizable:!1,children:[(0,K.jsx)(zj,{type:`checklist`,children:(0,K.jsx)(GQ,{jobInstructionId:e,isReadOnly:t})}),(0,K.jsx)(Wj,{children:(0,K.jsx)(Yj,{children:(0,K.jsx)(Zj,{children:(0,K.jsx)(Jj,{id:`checklist-scroll-main`,type:`absolute-scroll`,variation:`checklist`,children:(0,K.jsx)(I,{sx:fSe,children:ge(n,e,u,t,r)})})})})})]})},[l,a,o,e,u,ge]),ve=(0,B.useCallback)((e,t)=>{(e.charCode===13||e.type===`blur`)&&(t(e.target.value),ne(!1))},[]),ye=(0,B.useCallback)((e,t,n,r,i)=>e?(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,defaultValue:t,style:{backgroundColor:`var(--color-white)`,width:300,textAlign:`center`,padding:`0px 10px`},styleOverwrite:{backgroundColor:`var(--color-white)`,height:32},type:`text`,"data-testid":`checklistInputTitle`,onBlur:e=>ve(e,n),onKeyPress:e=>ve(e,n)}):(0,K.jsxs)(I,{sx:hSe,children:[(0,K.jsxs)(I,{sx:mSe,children:[(0,K.jsx)(I,{component:`span`,sx:gSe,children:t}),i&&(0,K.jsxs)(I,{sx:vSe,children:[(0,K.jsx)(Mee,{sx:{fontSize:12}}),(0,K.jsx)(Xg,{children:U(`checklist.preview`)})]}),!i&&(0,K.jsx)(Y.IcEditPencil,{})]}),r&&(0,K.jsx)(I,{sx:_Se,children:(0,K.jsx)(NP,{seconds:`5`,content:()=>(0,K.jsx)(`div`,{children:U(`checklist.last_saved`,{time:(0,z.default)(r).fromNow()})})})})]}),[ve]),be=(0,B.useCallback)(()=>{ae(`checklist_title`,`focus`,{view:`checklist_editor`}),ne(!0)},[ae]),xe=(0,B.useCallback)(e=>{b(`update`,{objectId:u.objectId,title:e})},[b,u]),Se=(0,B.useCallback)(()=>{ie(`save_checklist_session`,{view:`checklist_editor`}),m(void 0),i?(R.default.info(`onSaveSession redirectUrl`,i),T(i)):c?.isOpen&&u&&u.objectId?(x(u.objectId),R.default.info(`onSaveSession setModalClose`,u.objectId),!S&&w===f_.yes&&C(f_.no)):d?(p(d.objectId),R.default.info(`onSaveSession goToProperty`,d.objectId)):(p(),R.default.info(`onSaveSession goToProperty`))},[ie,m,i,c,u,S,w,d,T,x,C,p]),Ce=(0,B.useCallback)(e=>u?(0,K.jsx)(kW.ClickItem,{"data-testid":`checklist_title_btn`,onClick:!e&&be||Fu.default,side:`middle`,children:ye(te,u.title,xe,s,e)}):null,[u,be,ye,te,xe,s]),we=(0,B.useCallback)((e,t)=>
1888(0,K.jsxs)(I,{component:`ul`,sx:{height:`100%`,display:`block`},children:[(0,K.jsx)(kW.ClickItem,{onClick:Se,side:`left`,"data-testid":`closeChecklist`,children:U(`checklist.close`)}),Ce(e),t&&(0,K.jsx)(kW.ClickItem,{onClick:Se,side:`right`,"data-testid":`saveChecklist`,children:U(e?`checklist.done`:`checklist.save`)})]}),[Se,Ce]),Te=!a&&!o;return(0,K.jsxs)(Nf,{moduleName:`checklists`,customDescription:U(`checklists.error_load`)||`Unable to load the checklist. Please try again.`,children:[(0,K.jsx)(ySe,{children:(0,K.jsxs)(`div`,{"data-testid":`checklist-container-modal`,children:[(0,K.jsx)(Uxe,{}),(0,K.jsx)(OQ,{}),(0,K.jsx)(Xxe,{}),(0,K.jsx)(Bxe,{jobInstructionId:e,propertyId:d?.objectId,handleDirectImageUpload:le,handleInputFileClick:de}),(0,K.jsx)(SQ,{jobInstructionId:e}),d&&(0,K.jsx)(xQ,{pictureUrls:d.pictureUrls,propertyId:d.objectId}),(0,K.jsx)(Mw,{meta:{propertyId:d?.objectId},hasAccessFormatter:e=>!e.canCreateChecklists,render:e=>(0,K.jsx)(AQ,{bgColor:`grey`,noMaxWidth:!0,canOverLayNav:!0,navItems:we(e||E,Te),children:_e(e||E)})})]})}),(0,K.jsx)(Dg.ImageUpload,{onCloseLimitError:()=>O(!1),showLimitError:re,showUploadError:D,onCloseUploadError:fe})]})}YQ.propTypes={jobInstructionId:V.default.string.isRequired,checklistId:V.default.string.isRequired,isIndependent:V.default.bool,pathname:V.default.string,redirectUrl:V.default.string,isLoading:V.default.bool,isError:V.default.bool,lastTimeUpdated:V.default.instanceOf(Date),modalData:V.default.shape({}),selectedJobInstruction:V.default.shape({}).isRequired,selectedChecklist:V.default.shape({}).isRequired,selectedProperty:V.default.shape({}),locationHitChecklistDetail:V.default.func.isRequired,goToProperty:V.default.func,updateLastUpdatedTime:V.default.func,setActiveChecklist:V.default.func,checklistDirectSlideUpload:V.default.func,setUploadState:V.default.func,stepMutatorSaga:V.default.func,setTextTemplate:V.default.func,updateChecklistSaga:V.default.func,setModalClose:V.default.func,checklistCompliant:V.default.bool,setRequestRiOption:V.default.func,riOption:V.default.string,push:V.default.func,readOnly:V.default.bool,imageUploadErrored:V.default.bool,setGlobalLoadingState:V.default.func};function bSe(e,t){let n=t.jobInstructionId?dV(e)[t.jobInstructionId]:void 0,r=t.checklistId?WC(e)[t.checklistId]:void 0,i=r&&r.defaultProperty?PC(e)[r.defaultProperty]:void 0,a=gV(e,t),o=a===1,s=a===2,c=XC(e,t);return{isLoading:o,isError:s,lastTimeUpdated:_V(e,t),modalData:CV(e),selectedJobInstruction:n,selectedChecklist:r,selectedProperty:i,checklistCompliant:SJ()(e,t),riOption:c?.riOption}}var XQ=Nt(bSe,{checklistDirectSlideUpload:mU,locationHitChecklistDetail:fU,goToProperty:pU,setActiveChecklist:MU,setTextTemplate:DU,setUploadState:bU,stepMutatorSaga:LU,updateChecklistSaga:EU,updateLastUpdatedTime:FU,push:Wn,setModalClose:BU,setRequestRiOption:KK})(YQ),xSe=()=>{let e=j(CV);return e?.isOpen?(0,K.jsx)(tx,{isRoot:!0,zIndex:`1080`,background:`dark`,show:e?.isOpen,children:(0,K.jsx)(XQ,{checklistId:e?.meta?.checklistId,jobInstructionId:e?.meta?.j
1888obInstructionId,readOnly:e?.meta?.readOnly})}):null};function ZQ(e){return{type:zk,meta:e}}function QQ(e){return{type:Uk,meta:e}}function $Q(e,t){return{type:Bk,name:e,data:t}}function SSe(e,t){return{type:Vk,name:e,data:t}}function e$(e,t){return{type:Hk,action:e,meta:t}}function t$(e){return{type:Wk,data:e}}function CSe(){return{type:Gk}}function wSe(e){return{type:Kk,meta:e}}var TSe=e(s()),ESe=e(Lee()),n$=`permission_init_loading`,r$=`permission_team_loading`,i$=`permission_updateaction_loading`,a$=`permission_modal_loading`,o$=`permission_modalsubmit_loading`,s$=`permission_modalnext_loading`,DSe=`collinvite_search`,c$={invite:`invite`,edit_partner:`edit_partner`,property:`property`,resend:`resend`,invite_company:`invite_company`,invite_partner:`invite_partner`,edit_company:`edit_company`,resend_company:`resend_company`,resend_partner:`resend_partner`};function l$(e){return e.split(`@`)[1]}var u$=A(UC,e=>(0,gx.default)(e)[0]),OSe=A(u$,e=>e?(0,H.default)(e.adminEmails,e=>l$(e.email)):[]),d$=e=>e.permission.listdata?.infomessage,kSe=e=>e.permission.listdata?.sharedWithMe,f$=e=>e.permission.listdata?.modalMeta,p$=e=>e.permission.submitData,m$=e=>e.permission.listdata?.modalMeta?.mode,ASe=e=>e.permission.submitData?.type?.backendType,h$=e=>e.permission.listdata?.activeSection,g$=A(p$,e=>({raw:e,js:e}));function jSe(e){return e?`enabled`:`disabled`}function MSe(e){let t=[];return(e.internal.enabled||e.internal.disabled)&&t.push(`internal`),e.external.length>0&&t.push(`external`),e.shared.length>0&&t.push(`shared`),t}function NSe(e){switch(e){case`maxCountOwnerAccess`:return`owneraccess`;case`maxCountSetupSupport`:return`setupsupport`;case`maxCountServiceProviderAccess`:return`spaccess`;default:return}}var _$=A(A(fw,ZC,(e,t)=>{R.default.info(`selectAllowedTypeSections - input`,{groupedColls:e,hasAccess:t});let n=t.settingsUandP,r=(0,If.default)([`maxCountServiceProviderAccess`,`maxCountOwnerAccess`,`maxCountSetupSupport`],(t,r)=>{let i=NSe(r),a=n[r]||0,o=e[i]?e[i].length:0;return(a===-1||a>
1888o)&&t.push(i),t},[]);return R.default.info(`selectAllowedTypeSections - res`,r),r}),m$,ASe,(e,t,n)=>(t===c$.resend_partner||t===c$.edit_partner)&&n?(0,Cc.default)([...e,n]):e),v$=A(uw,kC,kSe,FC,(e,t,n,r)=>{let i={};i.internal=(0,ESe.default)((0,So.default)((0,TSe.default)((0,n_.default)((0,bo.default)(e.internal,[`createdAt`],[`desc`]),e=>jSe(e.enabled))),e=>e[0]===`disabled`)),i.external=e.external,i.shared=(0,xo.default)(n,(e,t)=>!ste(r,t)&&!cte(r,t)&&e.enabled);let a=MSe(i);return i.suggestedTab=a[0],i.tabs=a,i.lengthInternal=(0,aC.default)(i.internal.enabled||[],i.internal.disabled||[]).length,i}),PSe=e=>t=>{let n=v$(t);return(0,xo.default)((0,aC.default)(n.internal.enabled||[],n.internal.disabled||[],n.external),{email:e}).length>0};function FSe(e){switch(e){case c$.resend_company:case c$.invite_company:return[`email_company`,`permissions`,`property`];case c$.resend_partner:case c$.invite_partner:return[`type`,`email`,`permissions`,`property`];case c$.invite:case c$.resend:case c$.edit_partner:return[`type`,`email`,`permissions`,`property`];case c$.edit_company:return[`email`,`permissions`,`property`];case c$.property:return[`seeper`];default:return[]}}function ISe(e){switch(e){case c$.edit:return{email:!0,collType:!0};case c$.edit_company:case c$.edit_partner:return{email:!0};case c$.resend:return{collType:!0};case c$.invite:default:return{}}}function LSe(e){switch(e){case c$.resend_partner:case c$.resend_company:return`permissions.modal.resend_invitation`;case c$.edit_partner:case c$.edit_company:case c$.invite:case c$.invite_company:case c$.invite_partner:return`permissions.modal.invite_sum`;case c$.property:return`permissions.modal.permissions`;default:return`no title`}}function RSe(e,t){if(e)return[`seeCleanerNames`];if(t===`setupsupport`||t===`owneraccess`)return[`sendJobs`,`doJob`]}var y$=[];function zSe(e,t){switch(e){case`permissions`:return t===`setupsupport`||t===`owneraccess`?[`option1`]:y$;default:return y$}}function BSe(e){return e?`account.save_changes`:`permissions.modal.next`}function VSe(e){return e?`send`:`next`}function HSe(e,t,n){return!!(!e||!t&&n)}var b$=A(h$,bw(a$),bw(o$),bw(s$),m$,g$,(e,t,n,r,i,a)=>{let o=i,s=FSe(o),c=ISe(o),l=a.raw?.type?.type,u=l===`spaccess`&&(o===c$.edit_partner||o===c$.invite_partner||o===c$.resend_partner),d=a.raw?.collType?.type===`option1`,f=(0,If.default)(s,(t,n,r)=>{let i=QSe[n],d=i.mapToData(a),f=i.isValid(d,u),p=r===s.length-1,m=r===0,h=Xo(r-1,e=>e<0,e=>e-1,t.sectionsArray);f&&t.validSections.push(i.sectionId);let g=t.validSections.join(`,`)===s.join(`,`),_={sectionId:i.sectionId,sectionTitle:i.sectionTitle,sectionTopBarTitle:i.topBarTitle?i.topBarTitle:i.sectionTitle,isActive:i.neverActive?!1:e===i.sectionId,isDisabled:!!c[i.sectionId],sectionValue:d,sectionMods:i.sectionMods,sectionCanNext:o!==c$.property,sectionDisableNext:HSe(f,g,p),sectionIsEmpty:i.isEmpty(d),sectionDisabledSection:zSe(i.sectionId,l),sectionNextText:BSe(p),sectionNextMode:VSe(p),sectionMainComponent:i.content,sectionIndex:r,sectionCanBack:!m&&h,sectionBackText:`permissions.modal.back`};return t.sectionsById[i.sectionId]=_,t.sectionsArray.push(_),t},{sectionsArray:[],sectionsById:{},validSections:[]});return{mode:o,modalTitle:LSe(o),sections:f.sectionsArray,sectionsById:f.sectionsById,submitDisabled:!0,hideSubmitButton:!0,sectionBlackListenPermissions:RSe(d,l),submitText:`permissions.modal.send_invitation`,submitIsLoading:n.isLoadingFull,submitIsError:n.isErrored,nextIsLoading:r.isLoadingFull,isModalLoading:t.isLoadingFull,activeSectionData:f.sectionsById[e],activeSectionId:e,isInternalColl:d,...f.sectionsById[e]}});function USe(){return j(b$)}function x$(){let e=b$,t=kw(`properties`,DSe,PC),n=LC,r=FC;return(i,a)=>({...e(i),searchDataProperties:t(i),filteredProperties:n(i),selectSubmitDataRaw:p$(i),currentUser:r(i),allowedTypes:_$(i),isFeatureFlagJobForwardingEnabled:fB($a.FEATURE_FLAG_JOB_FORWARDING)(i,a),subscription:IC(i,a)})}var S$=B.memo(()=>{let e=xe(),{isSectionValid:t,sectionValue:n,activeSectionData:r}=j((0,B.useMemo)(()=>x$(),[])),i=t=>{e(e$(`changeSubmitEmail`,{value:{...n,email:t.target.value,error:void 0}}))},a=e=>r?.sectionValue?.error===e;return(0,K.jsx)(FS,{children:(0,K.jsxs)(`div`,{children:[(e=>(0,K.jsx)(I,{sx:{width:e},children:(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,styleOverwrite:{backgroundColor:`var(--color-white)`}
1888,placeholder:U(`permissions.modal.email_enter`),type:`text`,error:!a(void 0)||t,value:n?.email,onChange:i})}))(433),(0,K.jsxs)(I,{sx:{width:433},children:[a(1)&&(0,K.jsx)(Yf.ErrorMsg,{children:U(`permissions.modal.error_request`)}),a(2)&&(0,K.jsx)(Yf.ErrorMsg,{children:U(`permissions.modal.only_sandalone`)}),a(3)&&(0,K.jsx)(Yf.ErrorMsg,{children:U(`permissions.modal.already_invited`)}),a(4)&&(0,K.jsx)(Yf.ErrorMsg,{children:U(`permissions.modal.does_not_match_rootdomain`)})]})]})})}),WSe={left:`32px`,top:`12px`,bottom:`12px`,right:`32px`},GSe=class extends B.PureComponent{constructor(...e){super(...e),k(this,`selectOption`,e=>()=>{this.props.handlePermissionActionSaga(`changeSubmitType`,{value:{...this.props.sectionValue,type:e}})}),k(this,`doUpgrade`,()=>{this.props.handlePermissionActionSaga(`doUpgrade`,{})}),k(this,`isSelected`,e=>this.props?.sectionValue?.type===e),k(this,`genOptions`,e=>({selected:this.isSelected(e),onClick:this.selectOption(e),disabled:(0,eb.default)(this.props.allowedTypes,e)===-1}))}renderMsg(){return(0,K.jsx)(DM,{text:U(`permissions.modal.trial_message`),color:`red`,isMergeInfo:!0,spaceFunc:()=>(0,K.jsx)(wm,{type:`vertical`,size:`15px`}),children:(0,K.jsx)(q,{onClick:this.doUpgrade,types:[`type-full-primary`,`size-medium`,`height-28`],children:U(`permissions.modal.upgrade`)})})}render(){let e=this.genOptions(`setupsupport`),t=this.genOptions(`owneraccess`),n=this.genOptions(`spaccess`);return(0,K.jsxs)(NS,{left:`24px`,top:`20px`,bottom:`20px`,right:`24px`,flexGrow:!0,children:[(0,K.jsx)(Mw,{hasAccessFormatter:e=>e.isFullPartnerMode,render:e=>!e&&this.props.allowedTypes.length<2?this.renderMsg():null}),(0,K.jsx)($g,{size:`small`,children:U(`permissions.modal.invite_outsiders`)}),(0,K.jsx)(iS,{children:U(`permissions.modal.invite_outsiders_l2`)}),(0,K.jsx)(wm,{type:`vertical`,size:`14px`}),(0,K.jsx)($g,{size:`small`,children:U(`permissions.modal.service_provider_access`)}),(0,K.jsx)(YS,{...n,children:(0,K.jsx)(`div`,{children:(0,K.jsx)(iS,{children:U(`permissions.modal.service_provider_access_info`)})})}),(0,K.jsx)($g,{size:`small`,children:U(`permissions.modal.owner_access`)}),(0,K.jsx)(YS,{...t,children:(0,K.jsx)(`div`,{children:(0,K.jsx)(iS,{children:U(`permissions.modal.owner_access_info`)})})}),(0,K.jsx)($g,{size:`small`,children:U(`permissions.modal.setup_support`)}),(0,K.jsx)(YS,{...e,children:(0,K.jsx)(`div`,{children:(0,K.jsx)(iS,{children:U(`permissions.modal.setupsupport_info`)})})}),e.disabled&&(0,K.jsx)(NS,{...WSe,children:(0,K.jsx)(iS,{type:`sub`,children:U(`permissions.modal.you_cannot_invite_more`,{partner:U(`permissions.partner_singular`)})})})]})}},KSe=Nt(x$,{handlePermissionActionSaga:e$})(GSe),C$=(0,B.memo)(function({sectionValue:e={}}){let{filteredProperties:t}=j(x$),n=(0,B.useMemo)(()=>e?.ownerRole,[e]),r=(0,B.useMemo)(()=>(0,xo.default)(t?Object.values(t):[],e=>e.ownerRole===n),[t,n]);return(0,K.jsxs)(NS,{left:`24px`,top:`20px`,bottom:`20px`,right:`24px`,flexGrow:!0,children:[(0,K.jsx)($g,{size:`small`,children:U(`permissions.modal.shared_properties`)}),(0,K.jsx)(kS,{height:456,width:532,properties:r,handleClick:Fu.default,isActiveFunc:()=>!1,isHoverableFunc:()=>!1,hasClickHoleFunc:()=>!1,isClickableFunc:()=>!0})]})});C$.propTypes={sectionValue:V.default.object};var w$=e=>{let{noSpacingFirst:t=!1,permissionMap:n,spaceAll:r=!1,keyPrefix:i,isSelected:a,isDisabled:o,onChangeFunc:s,blackList:c}=e;return(0,K.jsx)(`div`,{children:(0,H.default)(n,(e,n)=>{let l=(0,xo.default)(e.children,e=>(0,eb.default)(c,e.permissionId)===-1);return l.length===0?null:(0,K.jsxs)(`div`,{children:[(n!==0&&t||r)&&(0,K.jsx)(wm,{type:`vertical`,size:`15px`}),(0,K.jsx)(iS,{type:`sub`,children:U(e.groupName)}),(0,K.jsx)(wm,{type:`vertical`,size:`3px`}),(0,H.default)(l,e=>(0,K.jsx)(`div`,{children:(0,K.jsx)(JS,{text:U(e.permissionName),rightComponent:()=>(0,K.jsx)(Dp,{disabled:o(e.permissionId),style:{height:18,width:18},type:`quarter`,selected:a(e.permissionId),onChange:s(e.permissionId)})})},`${i}-${e.permissionId}`))]},`${i}-${e.groupId}`)})})};w$.propTypes={permissionMap:V.default.arrayOf(V.default.shape({})).isRequired,blackList:V.default.arrayOf(V.default.string).isRequired,noSpacingFirst:V.default.bool,spaceAll:V.default.bool,keyPrefix:V.default.string.isRequired,isSelected:V.default.func.isRequired,isDisabled:V.default.func.isRequired,onChangeFunc:V.default.func.isRequired};var T$=`2px`,E$={left:`38px`,top:`12px`,bottom:`12px`,right:`18px`},qSe=class extends B.PureComponent{constructor(...e){super(...e),k(this,`selectOption`,e=>()=>{this.props.handlePermissionActionSaga(`changeSubmitPermission`,{value:{...this.props?.sectionValue,type:e}})}),k(this,`selectChild`,e=>t=>{let[n,r]=e;this.props.handlePermissionActionSaga(`changeSubmitPermission`,{value:{...this.props?.sectionValue,[n]:{...this.props?.sectionValue?.[n],[r]:t.target.checked}}})}),k(this,`isSelected`,e=>this.props?.sectionValue?.type===e),k(this,`genOptions`,e=>({selected:this.isSelected(e),onClick:this.selectOption(e),disabled:(0,eb.default)(this.props?.sectionDisabledSection,e)!==-1}))}renderPer(e){let t=e=>[`permissions`,e],{isFeatureFlagJobForwardingEnabled:n,mode:r}=this.props,i=[c$.invite_company,c$.edit_company,c$.resend_company].includes(r);return(0,K.jsx)(w$,{permissionMap:n&&i?O$:O$.map(e=>({...e,children:e.children.filter(({permissionId:e})=>![`acceptJobs`,`forwardJobs`].includes(e))})),spaceAll:!0,blackList:e?[]:this.props.sectionBlackListenPermissions,keyPrefix:`mainmodal`,onChangeFunc:n=>e?Fu.default:this.selectChild(t(n)),isDisabled:()=>e,isSelected:t=>e?!0:this.props?.sectionValue?.permissions?.[t]})}render(){let e=this.genOptions(`option1`),t=this.genOptions(`option2`);return(0,K.jsxs)(NS,{left:`24px`,top:`20px`,bottom:`20px`,right:`24px`,flexGrow:!0,children:[(0,K.jsx)($g,{size:`small`,children:U(`permissions.modal.full_access`)}),(0,K.jsx)(YS,{...e,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(iS,{children:U(`permissions.modal.full_access_info`)}),(0,K.jsx)(wm,{type:`vertical`,size:T$}),(0,K.jsx)(iS,{type:`sub`,children:U(`permissions.modal.full_access_info_l2`)})]})}),e.selected&&(0,K.jsxs)(NS,{...E$,children:[(0,K.jsx)(iS,{type:`sub`,children:U(`permissions.modal.full_access_info_full`)}),this.renderPer(!0)]}),(0,K.jsx)($g,{size:`small`,children:U(`permissions.modal.specific_access`)}),(0,K.jsx)(YS,{...t,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(iS,{children:U(`permissions.modal.specific_access_info`)}),(0,K.jsx)(wm,{type:`vertical`,size:T$}),(0,K.jsx)(iS,{type:`sub`,children:U(`permissions.modal.specific_access_info_l2`)})]})}),t.selected&&(0,K.jsxs)(NS,{...E$,children:[(0,K.jsx)(iS,{type:`sub`,children:U(`permissions.modal.info_select_send_etc`)}),this.renderPer()]})]})}},JSe=Nt(x$,{handlePermissionActionSaga:e$})(qSe),D$=`2px`,YSe=class extends B.PureComponent{constructor(...e){super(...e),k(this,`selectOption`,e=>()=>{this.props.handlePermissionActionSaga(`changeSubmitProperty`,{value:{...this.props.sectionValue,type:e}})}),k(this,`handleClick`,e=>()=>{let t=!this.props.sectionValue?.properties?.[e.objectId];this.props.handlePermissionActionSaga(`changeSubmitProperty`,{value:{...this.props.sectionValue,properties:{...this.props.sectionValue?.properties,[e.objectId]:t}}})}),k(this,`isSelected`,e=>this.props.sectionValue?.type===e),k(this,`genOptions`,e=>({selected:this.isSelected(e),onClick:this.selectOption(e),disabled:!1}))}isPropertyActive(e){return!!this.props.sectionValue?.properties?.[e.objectId]}get selectedItems(){return this.props.sectionValue?.properties||{}}isAllSelected(){let e=this.selectedItems,t=this.getCurrentProperties(),n=t.filter(t=>!e[t.objectId]);return t.length>0&&n.length===0}handleSelectAll(){let e=this.isAllSelected(),t=this.getCurrentProperties().reduce((t,n)=>({...t,[n.objectId]:!e}),{});this.props.handlePermissionActionSaga(`changeSubmitProperty`,{value:{...this.props.sectionValue,properties:t}})}getCurrentProperties(){let{searchDataProperties:e}=this.props;return(0,bo.default)((0,xo.default)(e.result,Wo),e=>wo(e),[`asc`])}render(){let{searchDataProperties:e,filteredProperties:t}=this.props,n=this.getCurrentProperties(),r=this.genOptions(`option1`),i=this.genOptions(`option2`),a=this.selectedItems,o=Object.keys(a).length,s=Object.values(t).length,c=n.length;return(0,K.jsxs)(NS,{left:`24px`,top:`20px`,bottom:`20px`,right:`24px`,flexGrow:!0,children:[(0,K.jsx)($g,{size:`small`,children:U(`permissions.modal.property_full_access`)}),(0,K.jsx)(YS,{...r,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(iS,{children:U(`permissions.modal.property_full_access_info`)}),(0,K.jsx)(wm,{type:`vertical`,size:D$}),(0,K.jsx)(iS,{type:`sub`,children:U(`permissions.modal.property_full_access_info_l2`)})]})}),(0,K.jsx)($g,{size:`small`,children:U(`permissions.modal.property_specific_access`)}),(0,K.jsx)(YS,{...i,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(iS,{children:U(`permissions.modal.property_specific_access_info`)}),(0,K.jsx)(wm,{type:`vertical`,size:D$}),(0,K.jsx)(iS,{type:`sub`,children:U(`permissions.modal.property_specific_access_info_l2`)})]})}),i.selected&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)($g,{size:`small`,children:U(`permissions.modal.my_properties`)}),(0,K.jsx)(`div`,{children:(0,K.jsx)(Up,{selectedCount:o,queryCount:c,totalCount:s,placeholder:U(`job_request.search_property`),value:e.searchQuery,onChange:e=>
1888this.props.setSearchQuery(`collinvite_search`,e),isSelected:this.isAllSelected(),onSelect:()=>this.handleSelectAll()})}),(0,K.jsx)(wm,{type:`vertical`,size:`6px`}),(0,K.jsx)(kS,{height:380,width:532,properties:n,handleClick:this.handleClick,isActiveFunc:e=>this.isPropertyActive(e),isClickableFunc:e=>cc(e.ownerRole,this.props.currentUser)&&!e.sample})]})]})}},XSe=Nt(x$,{handlePermissionActionSaga:e$,setSearchQuery:$P})(YSe),ZSe={email:{sectionTitle:`permissions.modal.email`,isEmpty:e=>!e?.email,isValid:e=>Ql(e?.email),mapToData:e=>e.raw?.email,content:S$},email_company:{sectionTitle:`permissions.modal.email`,isEmpty:e=>!e?.email,isValid:e=>e?.email&&e.email.length>1,mapToData:e=>e.raw?.email,content:S$},type:{sectionTitle:`permissions.modal.type_selection`,isEmpty:e=>!e?.type,isValid:e=>!!e?.type,mapToData:e=>e.raw?.type,content:KSe},seeper:{sectionTitle:``,topBarTitle:`permissions.modal.property`,neverActive:!0,sectionMods:[`viewonly`],isEmpty:()=>!1,isValid:()=>!0,mapToData:e=>e.raw?.view,content:C$},collType:{sectionTitle:`permissions.modal.coll_type`,isEmpty:e=>!e?.type,isValid:e=>!!e?.type,mapToData:e=>e.raw?.collType,content:()=>null},permissions:{sectionTitle:`permissions.modal.permissions`,isEmpty:e=>!e?.type,isValid:e=>{let t=e?.type,n=!!t;if(n&&t===`option1`)return!0;let r=e?.permissions,i=(0,ZK.default)(r||{},e=>!!e);return!!(n&&i)},mapToData:e=>e.raw?.permissions,content:JSe},property:{sectionTitle:`permissions.modal.property`,isEmpty:e=>!e?.type,isValid:e=>{let t=e?.type;return!(!t||t===`option2`&&Object.keys(e?.properties||{}).length===0)},mapToData:e=>e.raw?.properties,content:XSe}},QSe=(0,pc.default)(ZSe,(e,t)=>({...e,sectionId:t})),O$=[{groupName:`permissions.modal.permissions_select.see_permission`,groupdId:`see_permission`,children:[{permissionName:`permissions.modal.permissions_select.see_servicepro`,permissionId:`seeCleanerNames`},{permissionName:`permissions.modal.permissions_select.see_offeredprice`,permissionId:`seePrice`},{permissionName:`permissions.modal.permissions_select.see_problem`,permissionId:`seeProblems`},{permissionName:`permissions.modal.permissions_select.see_problem_pics`,permissionId:`seeVerificationPhotos`}]},{groupName:`permissions.modal.permissions_select.edit_permissions`,groupId:`edit_permissions`,children:[{permissionName:`permissions.modal.permissions_select.edit_checklist`,permissionId:`createChecklists`}]},{groupName:`permissions.modal.permissions_select.send_permission`,groupId:`send_permission`,children:[{permissionName:`permissions.modal.permissions_select.send_job`,permissionId:`sendJobs`},{permissionName:`permissions.modal.permissions_select.start_job`,permissionId:`doJob`},{permissionName:`permissions.modal.permissions_select.accept_job`,permissionId:`acceptJobs`},{permissionName:`permissions.modal.permissions_select.forwardJobs`,permissionId:`forwardJobs`}]}],k$=(0,If.default)(O$,(e,t)=>((0,xc.default)(t.children,t=>{e[t.permissionId]=!0}),e),{}),A$=`permissions_leavepropertyexternal`,$Se=()=>{let e=xe(),t=(0,B.useMemo)(()=>mw(A$),[]),n=(0,B.useMemo)(()=>bw(i$),[]),r=j(t),i=j(LC),a=j(FC),o=j(e=>n(e).isLoadingFull),s=(0,G.default)(r,[`meta`,`teamId`]),c=t=>()=>{e(dF(!1,t,{}))},l=(t,n)=>r=>{e(e$(t,n,r))},u=(0,bo.default)((0,xo.default)(i,e=>{let t=xte(a,e.ownerRole).teamId===s;return Wo(e)&&t}),e=>wo(e),[`asc`]),d=!!r.isOpen;return(0,K.jsx)(X,{width:650,height:470,onClose:c(A$),show:d,children:(0,K.jsx)(`div`,{children:(0,K.jsxs)(NS,{left:`24px`,top:`20px`,bottom:`20px`,right:`24px`,isFlex:!0,style:{flexDirection:`column`},children:[(0,K.jsx)(mj,{modifier:[`txt--l3m`,`color--black`],children:U(`permissions.leave_property_h1`)}),(0,K.jsx)(wm,{type:`vertical`,size:`12px`}),(0,K.jsx)(mj,{modifier:[`txt--l5`,`color--black`],children:U(`permissions.leave_property_info`)}),(0,K.jsx)(wm,{type:`vertical`,size:`30px`}),(0,K.jsx)(Pj.List,{style:{minHeight:`190px`},children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{children:(0,K.jsx)(kS,{height:192,width:532,properties:u,handleClick:Fu.default,isActiveFunc:()=>!1,isHoverableFunc:()=>!1,hasClickHoleFunc:()=>!1,isClickableFunc:()=>!0})})})}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(q,{onClick:l(`leave_property_external`,r.meta),isLoading:o,disabled:o,types:[`type-full-primary`,`size-medium`],styleOverwrite:{marginRight:`8px`},children:U(`permissions.leave`)}),(0,K.jsx)(q,{disabled:o,onClick:c(A$),types:[`type-border-primary`,`size-medium`],children:U(`properties.cancel`)})]})]})})})},eCe=()=>{let e=xe(),t=!!j(mw(u_.CANNOT_SEND_PROPERTY_JOBS_PERMISSION)).isOpen;return(0,K.jsx)(Dg,{message1:``,message2:U(`permissions.modal.cannot_send_jobs_property`),show:t,onClose:()=>e(dF(!1,u_.CANNOT_SEND_PROPERTY_JOBS_PERMISSION,{}))})},tCe=()=>{let e=xe(),t=!!(j((0,B.useMemo)(()=>mw(u_.RECURLY_PAYMENT_DECLINED),[]))||{isOpen:!1}).isOpen;return(0,K.jsx)(Dg,{message1:U(`retail_remote_inspection.payment_failed`),message2:U(`retail_remote_inspection.payment_failed_description`),show:t,onClose:()=>e(dF(!1,u_.RECURLY_PAYMENT_DECLINED,{})),height:`auto`})},nCe=()=>{let e=xe(),t=!!j((0,B.useMemo)(()=>mw(u_.TOO_LATE_FOR_REMOTE_INSPECTION),[])).isOpen;return(0,K.jsx)(Dg,{message1:``,message2:U(`retail_remote_inspection.too_late`),show:t,onClose:()=>e(dF(!1,u_.TOO_LATE_FOR_REMOTE_INSPECTION,{})),height:`auto`})},rCe=()=>{let e=xe(),t=!!j(mw(u_.REMOTE_INSPECTION_COMPLIANCE_NOT_MET)).isOpen;return(0,K.jsx)(Dg,{message1:``,message2:U(`retail_remote_inspection.compliance_failed`),show:t,onClose:()=>e(dF(!1,u_.REMOTE_INSPECTION_COMPLIANCE_NOT_MET,{})),height:`auto`})},j$=_i.default.bind(sW),iCe=[`user`,`notifications`,`password`,`help`,`theme`,`logout`],aCe=[`jobs`,`autoscheduling`,`todos`,`calendar`,`library`,`properties`,`contacts`],oCe=[`jobs`,`autoscheduling`,`todos`,`calendar`,`library`,`properties`,`contacts`],sCe=[`calendar`,`properties`,`contacts`],cCe=(e,t,n)=>{let r=iCe,i=aCe;return e||(i=sCe,t&&(i=oCe)),n&&i.push(`reports`),e&&i.push(`settings`),{section1:r,section2:(0,oW.default)(i)}},M$=B.memo(e=>{let{disableWrapper:t,hideMobilePopover:n,hidePricewarning:r,disablePreloadLoader:i,color:a,currentPage:o,children:s,overWriteLoading:c}=e,l=c??!1,u=j(e=>bw(`logout`)(e).isLoadingFull),d=j(jW),f=j(EC),p=(0,B.useCallback)((e,t,n)=>n?(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:`100%`,height:`100vh`},"data-testid-is-main-wrapper-loading":`true`,children:(0,K.jsx)(xf,{})}):t&&!i?(0,K.jsxs)(I,{sx:{display:`flex`,width:`100%`,height:`100vh`,position:`relative`},"data-testid-is-main-wrapper-loading":`true`,children:[(0,K.jsxs)(I,{sx:{width:`64px`,minWidth:`64px`,height:`100%`,backgroundColor:`var(--surface-elevated)`,borderRight:`1px solid var(--color-border)`,display:`flex`,flexDirection:`column`,alignItems:`center`,py:2,gap:2},children:[(0,K.jsx)(J,{width:40,height:40,variant:`circular`}),(0,K.jsx)(I,{sx:{mt:2,display:`flex`,flexDirection:`column`,gap:1.5},children:Array.from({length:6}).map((e,t)=>(0,K.jsx)(J,{width:32,height:32,variant:`rounded`},t))})]}),(0,K.jsxs)(I,{sx:{flex:1,display:`flex`,flexDirection:`column`,he
1888ight:`100%`,overflow:`hidden`},children:[(0,K.jsx)(J,{height:0,sx:{minHeight:0,visibility:`hidden`}}),(0,K.jsxs)(I,{sx:{flex:1,p:3,display:`flex`,flexDirection:`column`,gap:2,minHeight:0},children:[(0,K.jsx)(J,{height:48,variant:`rounded`}),(0,K.jsx)(I,{sx:{display:`flex`,gap:2,flex:1,minHeight:200},children:(0,K.jsx)(J,{sx:{flex:1,minHeight:300},variant:`rounded`})})]})]})]}):e,[i]),m=(0,B.useCallback)(()=>{let{selectedJobRequestId:e}=d;return(0,K.jsxs)(K.Fragment,{children:[!n&&(0,K.jsx)(MP,{}),(0,K.jsx)(ove,{}),o!==`permission`&&(0,K.jsx)(mge,{}),(0,K.jsx)(bye,{}),(0,K.jsx)(Ebe,{jobRequestId:e}),(0,K.jsx)(kbe,{}),(0,K.jsx)(jbe,{}),(0,K.jsx)(_xe,{}),(0,K.jsx)(vxe,{}),(0,K.jsx)(xSe,{}),(0,K.jsx)($Se,{}),(0,K.jsx)(KW,{}),(0,K.jsx)(eCe,{}),(0,K.jsx)(tCe,{}),(0,K.jsx)(rCe,{}),(0,K.jsx)(nCe,{})]})},[n,o,d]);return t?(0,K.jsxs)(K.Fragment,{children:[p(s,l,u),m()]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{"data-testid-is-main-wrapper-loading":l,className:j$(`main-wrapper`,{"main-wrapper--color-grey":a===`grey`}),children:[(0,K.jsx)(`div`,{className:j$(`main-wrapper__sidebar`),children:(0,K.jsx)(Mw,{hasAccessFormatter:e=>({canSeeFullNav:e.canSeeFullNav,canSendJobsGlobal:e.canSendJobsGlobal,settingsUandP:e.settingsUandP,canSeeReportsIconSidebar:e.canSeeReportsIconSidebar}),render:e=>{let{section1:t,section2:n}=cCe(e.canSeeFullNav,e.canSendJobsGlobal,e.canSeeReportsIconSidebar);return(0,K.jsx)(kW,{popoverSections:t,mainSections:n,currentPage:o,showCompanyInfo:!e.canSeeFullNav})}})}),(0,K.jsxs)(`div`,{className:j$(`main-wrapper__content`),children:[!r&&(0,K.jsx)($W,{}),(0,K.jsx)(`div`,{className:j$(`main-wrapper__content-inner`),children:p(s,l,u)})]}),m()]}),(0,K.jsx)(hG,{}),(0,K.jsx)(RG,{}),(0,K.jsx)(XG,{}),f&&!l&&!u&&(0,K.jsx)(wK,{})]})});M$.propTypes={hideMobilePopover:V.default.bool,hidePricewarning:V.default.bool,disablePreloadLoader:V.default.bool,disableWrapper:V.default.bool,color:V.default.string,currentPage:V.default.string,overWriteLoading:V.default.bool,children:V.default.node};var lCe=()=>{let e=xe(),t=j(FH),n=j(IH);return(0,K.jsx)(I,{sx:{marginLeft:`24px`},children:(0,K.jsxs)(I,{sx:{display:`flex`},children:[(0,K.jsx)(I,{children:(0,K.jsx)(q,{types:[`size-small`,`type-border-grey`],onClick:()=>e(eH()),children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(I,{sx:{marginRight:`8px`},children:t?(0,K.jsx)(Y.IcVisibility,{}):(0,K.jsx)(Y.IcVisibilityOff,{})}),(0,K.jsx)(I,{children:U(t?`checklist.show_user_checklist`:`checklist.hide_user_checklist`)})]})})}),(0,K.jsx)(I,{sx:{marginLeft:`8px`},children:(0,K.jsx)(q,{types:[`size-small`,`type-border-grey`],onClick:()=>e(tH()),children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(I,{sx:{marginRight:`8px`},children:n?(0,K.jsx)(Y.IcVisibility,{}):(0,K.jsx)(Y.IcVisibilityOff,{})}),(0,K.jsx)(I,{children:U(n?`checklist.show_published_checklist`:`checklist.hide_published_checklist`)})]})})})]})})},N$={CHECKLIST_LIBRARY:0,SKILLS_LIBRARY:1},P$=({handleOnChangeTab:e,value:t})=>(0,K.jsx)(I,{sx:{mx:2,mt:1,mb:2},children:(0,K.jsxs)(ei,{value:t,onChange:e,children:[(0,K.jsx)(Et,{sx:{textTransform:`none`,fontSize:`1rem`,fontWeight:`normal`,color:`var(--color-text)`,"&.Mui-selected":{color:`var(--color-text)`,fontWeight:600}},label:U(`titles.library`)}),(0,K.jsx)(Et,{sx:{textTransform:`none`,fontSize:`1rem`,fontWeight:`normal`,color:`var(--color-text)`,"&.Mui-selected":{color:`var(--color-text)`,fontWeight:600}},label:U(`skills.library`)})]})});P$.propTypes={value:V.default.number.isRequired,handleOnChangeTab:V.default.func.isRequired};var F$=e=>{let{children:t,value:n,index:r,...i}=e;return(0,K.jsx)(`div`,{hidden:n!==r,...i,children:n===r&&t})};F$.propTypes={children:V.default.node.isRequired,index:V.default.number.isRequired,value:V.default.number.isRequired};var uCe=({title:e,stepCount:t,isComplete:n,...r})=>(0,K.jsxs)(XU,{skill:!0,...r,children:[(0,K.jsxs)(I,{sx:{width:`50%`,display:`flex`,alignItems:`center`},children:[(0,K.jsx)(Yg,{children:e}),n&&(0,K.jsx)(I,{component:`span`,sx:{ml:`10px`,pb:`1.5px`},children:(0,K.jsx)(Y.Ic16PxCheck,{height:`20px`,width:`20px`})})]}),(0,K.jsx)(ZU,{}),(0,K.jsx)(I,{sx:{width:`50%`,p:2,ml:3},children:(0,K.jsx)(Yg,{children:t})}),(0,K.jsx)(ZU,{})]}),I$=()=>(0,K.jsx)(Ht,{sx:{height:`48px`,width:`1px`,background:`var(--color-grey-light)`,margin:`-24px 0`}}),dCe=({showLetter:e=!1})=>(0,K.jsxs)(Ht,{container:!0,wrap:`nowrap`,sx:{alignItems:`center`},children:[(0,K.jsx)(Ht,{style:{width:`24px`},children:e&&(0,K.jsx)(J,{variant:`rounded`,width:14,height:14})}),(0,K.jsx)(Ht,{style:{flexGrow:1},children:(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,flexWrap:`nowrap`,border:`1px solid var(--color-grey-light)`,borderRadius:`var(--radius-md, 10px)`,m:1,p:`8px 0 8px 24px`,background:`var(--color-white)`}
1888,children:[(0,K.jsx)(I,{sx:{width:`50%`,display:`flex`,alignItems:`center`},children:(0,K.jsx)(J,{variant:`rounded`,width:`60%`,height:16})}),(0,K.jsx)(I$,{}),(0,K.jsx)(I,{sx:{width:`50%`,p:2,ml:3},children:(0,K.jsx)(J,{variant:`rounded`,width:80,height:14})}),(0,K.jsx)(I$,{}),(0,K.jsx)(I,{sx:{minWidth:`10%`,maxWidth:`120px`,textAlign:`center`},children:(0,K.jsx)(J,{variant:`circular`,width:32,height:32})})]})})]}),fCe=()=>(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,m:1,p:`8px 0 8px 24px`},children:[(0,K.jsx)(I,{sx:{width:`50%`},children:(0,K.jsx)(J,{variant:`rounded`,width:80,height:12})}),(0,K.jsx)(I,{sx:{width:`50%`,ml:3},children:(0,K.jsx)(J,{variant:`rounded`,width:60,height:12})}),(0,K.jsx)(I,{sx:{minWidth:`10%`,maxWidth:`120px`}})]}),pCe=()=>(0,K.jsx)(I,{sx:{maxWidth:`1200px`,margin:`0 auto`,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,mb:2,px:1},children:(0,K.jsx)(J,{variant:`rounded`,width:300,height:40,sx:{borderRadius:`var(--radius-md, 10px)`}})}),mCe=({itemCount:e=3,showLetter:t=!0})=>(0,K.jsx)(K.Fragment,{children:Array.from({length:e}).map((e,n)=>(0,K.jsx)(dCe,{showLetter:t&&n===0},n))}),hCe=({groupCount:e=4,itemsPerGroup:t=2})=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(pCe,{}),(0,K.jsxs)(I,{sx:{maxWidth:`1200px`,margin:`0 auto`},children:[(0,K.jsx)(I,{sx:{marginLeft:`24px`},children:(0,K.jsx)(fCe,{})}),Array.from({length:e}).map((e,n)=>(0,K.jsx)(mCe,{itemCount:t,showLetter:!0},n))]})]}),L$=({searchQuery:e=``})=>(0,K.jsx)(Ht,{container:!0,sx:{alignItems:`center`,justifyContent:`center`},children:(0,K.jsxs)(Ht,{children:[!e&&(0,K.jsx)(Jg,{type:`bold`,children:U(`checklist.nothing_here`)}),!!e&&(0,K.jsxs)(Jg,{type:`bold`,children:[U(`checklist.no_results`),` `,e]})]})});L$.propTypes={searchQuery:V.default.string};var R$=({children:e})=>(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,paddingBottom:`12px`,paddingRight:`28px`,paddingLeft:`28px`},children:e});R$.propTypes={children:V.default.node.isRequired};var z$=({searchQuery:e,updateSearchQuery:t})=>(0,K.jsx)(R$,{children:(0,K.jsx)($f,{fitInBox:!0,onGrey:!0,placeholder:U(`skills.search`),value:e,iconLocation:`left`,onChange:e=>t(e,!0)})});z$.propTypes={searchQuery:V.default.string.isRequired,updateSearchQuery:V.default.func.isRequired};var gCe=({letter:e,skills:t,onSend:n,openSkill:r})=>(t||[]).map((t,i)=>(0,K.jsxs)(Ht,{container:!0,wrap:`nowrap`,sx:{alignItems:`center`},children:[(0,K.jsx)(Ht,{style:{width:`24px`},children:(0,K.jsx)(Yg,{type:`grey`,children:i===0?e:``})}),(0,K.jsx)(Ht,{style:{flexGrow:1},children:(0,K.jsx)(uCe,{canSend:!0,onSend:()=>n(t.skillId),...t,onClick:()=>r(t.skillId)})})]},t.skillId)),_Ce=()=>{let e=xe(),t=j(cU),n=j(tU),r=j(lU),i=j(uU),{orderedLetters:a,skillsGroupedByLetter:o,hasSkills:s}=(0,B.useMemo)(()=>{let e=(0,n_.default)(t,e=>String(e?.title||`?`).substr(0,1).toUpperCase()),n=Object.keys(e).sort(),r=e=>e?.title?.toUpperCase(),i=(e,t)=>r(e)<r(t)?-1:1;return{orderedLetters:n,skillsGroupedByLetter:n.reduce((t,n)=>({...t,[n]:e[n].sort(i)}),{}),hasSkills:t?.length>0}},[t]);(0,B.useLayoutEffect)(()=>{e(yH())},[e]);let c=t=>{e(XK({mode:`normal`,source:`new`,data:{jobType:no.turnover,skills:[{skillId:t,dependency:Wa.DEPENDENCY_STATUS.REQUIRED}],startTime:Jc((0,z.default)().add(3,`minutes`)),endTime:Jc((0,z.default)().add(63,`minutes`)),duration:`60`,jobStartTimeType:`fixed`}}))},l=r&&!s,u=!l&&!i||s,d=!r&&!i&&!s;return(0,K.jsxs)(K.Fragment,{children:[l?(0,K.jsx)(hCe,{}):null,u?(0,K.jsx)(z$,{searchQuery:n,updateSearchQuery:(t,n)=>e($V(t,n))}):null,u?(0,K.jsxs)(I,{sx:{maxWidth:`1200px`,margin:`0 auto`},children:[(0,K.jsx)(I,{sx:{marginLeft:`24px`},children:(0,K.jsx)(aW,{type:`skill`})}),(a||[]).map(t=>(0,K.jsx)(gCe,{letter:t,skills:o[t],onSend:c,openSkill:t=>e(Wn(Z.librarySkill(t)))},t))]}):null,d?(0,K.jsx)(L$,{searchQuery:n}):null]})},B$=e=>e&&e.jobInstructions&&e.jobInstructions.objectId,vCe=A(A(ZH,QH,(e,t)=>[...e,...t]),e=>!!e&&!!e.length),yCe=A(ZH,QH,(e,t)=>{let n=t.sort((e,t)=>(e?.sortOrder??0)-(t?.sortOrder??0)),r=e.sort((e,t)=>e?.title.localeCompare(t?.title));return{checklistsSortedBySortOrder:[...n,...r]}});function V$(e){return XK({mode:`normal`,source:`new`,data:{jobType:no.turnover,...e&&{
1888checklistId:[e]},startTime:Jc((0,z.default)().add(3,`minutes`)),endTime:Jc((0,z.default)().add(63,`minutes`)),duration:`60`,jobStartTimeType:`fixed`}})}var H$=e=>{let t=xe(),{createJob:n=!1}=e,r=j(UH),{checklistsSortedBySortOrder:i}=j(yCe),a=j(vCe),o=j(WH),s=j(GH),c=j(KH),l=j(PH);(0,B.useEffect)(()=>{su(`titles.library`)(),fme(),l===N$.CHECKLIST_LIBRARY&&(t(sH()),t(uH())),n&&(t(V$()),t(Wn(Z.library)))},[l,n,t]);let u=e=>{t(V$(e)),t(PK(`library`))},d=(e,n)=>{t(Wn(Z.libraryChecklistClone(e,B$(n),!!n.published)))},f=(0,B.useCallback)(()=>{R.default.warn(`There is no cloud function to support this operation`)},[]),p=e=>{t(iH(e))},m=()=>{t(gH())},h=(e,n)=>{t(QV(n))},g=e=>{let n=e=>!!e?.totalTaskCount;return(e||[]).map(e=>(0,K.jsx)(Ht,{container:!0,wrap:`nowrap`,sx:{alignItems:`center`},children:(0,K.jsx)(Ht,{style:{flexGrow:1},children:(0,K.jsx)($U,{canSend:n(e),canRemove:!e.published,onSend:()=>u(e.objectId,e),onDuplicate:()=>f(e.objectId,e),onDuplicateIntoProperties:()=>d(e.objectId,e),onRemove:()=>p(e.objectId),onClick:()=>t(Wn(Z.libraryChecklist(e.objectId,B$(e),e.published))),slidesCount:e.totalStepCount,tasksCount:e.totalTaskCount,...e})})},e.objectId))},_=()=>(0,K.jsxs)(I,{sx:{maxWidth:`1200px`,margin:`0 auto`},children:[(0,K.jsx)(I,{sx:{marginLeft:`24px`},children:(0,K.jsx)(aW,{type:`checklist`})}),(0,K.jsx)(K.Fragment,{children:g(i)})]}),v=()=>(0,K.jsxs)(R$,{children:[(0,K.jsx)($f,{fitInBox:!0,onGrey:!0,"data-testid":`library_search_checklist`,placeholder:U(`job_request.search_checklist`),value:c,iconLocation:`left`,onChange:e=>t($V(e))}),(0,K.jsx)(lCe,{})]}),y=(0,B.useCallback)(()=>(0,K.jsx)(Ht,{container:!0,sx:{alignItems:`center`,justifyContent:`center`},children:(0,K.jsxs)(Ht,{children:[!c&&(0,K.jsx)(Jg,{type:`bold`,children:U(`checklist.nothing_here`)}),!!c&&(0,K.jsxs)(Jg,{type:`bold`,children:[U(`checklist.no_results`),` `,c]})]})}),[c]),b=!!o&&!!s,x=r&&!a,S=!x&&!b,C=!r&&!b&&!a,w=l===N$.CHECKLIST_LIBRARY?{title:U(`titles.library`),description:U(`checklist_library.description`),button:(0,K.jsx)(q,{types:[`type-full-primary`,`size-medium`],onClick:m,children:U(`properties.create_new_checklist`)})}:{title:U(`skills.library`),description:U(`skills.library_description`),button:null};return(0,K.jsx)(M$,{currentPage:`library`,children:(0,K.jsx)(Nf,{moduleName:`library`,customDescription:U(`library.error_load`)||`Unable to load the library. Please try again.`,children:(0,K.jsx)(Yj,{children:(0,K.jsx)(Zj,{children:(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,height:`100%`,overflow:`hidden`},children:[(0,K.jsx)(Om,{title:w.title,description:w.description,action:w.button}),(0,K.jsx)(I,{sx:{flex:1,overflow:`hidden`,backgroundColor:`var(--color-bg-jobrequest)`,position:`relative`},children:(0,K.jsxs)(I,{sx:{position:`absolute`,top:0,right:0,left:0,bottom:0,overflowY:`scroll`,overflowX:`hidden`,WebkitOverflowScrolling:`touch`},children:[(0,K.jsx)(P$,{handleOnChangeTab:h,value:l}),(0,K.jsxs)(F$,{value:l,index:0,children:[x&&(0,K.jsx)(rW,{}),S&&v(),S&&_(),C&&y()]}),(0,K.jsx)(F$,{value:l,index:1,children:(0,K.jsx)(_Ce,{})}),(0,K.jsx)(Cm,{})]})})]})})})})})};H$.propTypes={createJob:V.default.bool};function U$({selectedSkill:e={}}){let t=j(e=>SV(e,{})),n=(0,B.useCallback)(e=>{let{scroller:t}=aQ.default;t.scrollTo(e,{duration:1500,delay:100,smooth:!0,containerId:`checklist-scroll-main`})},[]);return(0,K.jsx)(I,{sx:{height:`100%`},children:(0,K.jsx)(Pj,{children:(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{children:(0,K.jsx)(`div`,{children:(0,H.default)(e?.steps||[],(e,r)=>(0,K.jsx)(CQ,{isReadOnly:!0,id:e.id,index:r,children:(0,K.jsx)(`div`,{onClick:()=>n(e.id),children:(0,K.jsx)(sx,{needsVerify:e.isVerificationRequired,identifier:`sidebar`,title:e.title,active:t===e.id,steps:e.tasks,image:e.pictureIdentifier})})},e.id))})})})})})})}U$.propTypes={selectedSkill:V.default.shape({steps:V.default.arrayOf(V.default.shape({}))})};var W$=_i.default.bind(AZ),bCe=e=>({backgroundImage:`url(${iu(e)})`}),G$=({image:e=null})=>e?(0,K.jsx)(`div`,{id:`pin-image-wrap`,className:W$(`checklist__image`,`modal-container`),children:(0,K.jsx)(`div`,{className:W$(`checklist__image-actual`),style:bCe(e)})}):null;G$.propTypes={image:V.default.string};var xCe=_i.default.bind(AZ),K$=({step:e,index:t})=>{let n=e=>Array.isArray(e)&&e[0]?e[0]:void 0,r=e=>(0,K.jsx)(fx,{iconBg:`white`,isReadOnly:!0,defaultValue:e.note,pictureUrl:n(e.notePictureIdentifiers),open:!!n(e.notePictureIdentifiers),canHaveImg:!0,iconImage:`other`,iconColor:`grey`},`${e.id}${e.note?e.note.length:``}`),i=e=>(0,K.jsx)(K.Fragment,{children:(0,H.default)(e,e=>r(e))}),{pictureIdentifier:a,title:o,tasks:s}=e||{};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(MQ,{title:o,isReadOnly:!0}),(0,K.jsx)(G$,{isReadOnly:!0,index:t,image:a,tasks:s}),(0,K.jsx)(`div`,{className:xCe(`checklist__tasks`),children:i(s)})]})};K$.propTypes={index:V.default.number.isRequired,step:V.default.shape({}).isRequired};var q$=_i.default.bind(AZ),J$=class extends B.Component{constructor(e){super(e),k(this,`onCloseVie
1888w`,()=>{let{redirectUrl:e,push:t}=this.props;e&&t(e)}),k(this,`renderSections`,(e,t)=>(0,K.jsxs)(K.Fragment,{children:[this.renderDescriptionBox(t),(0,H.default)(e,(e,n)=>(0,K.jsxs)(aQ.default.Element,{name:e.id,children:[(0,K.jsx)(`div`,{className:q$(`checklist__box-wrap`),"data-testid":`checklist-steps`,children:(0,K.jsx)($b,{children:(0,K.jsx)(K$,{isReadOnly:!0,step:e,index:n,skillId:t.skillId})})}),(0,K.jsx)(aQ.default.Link,{containerId:`checklist-scroll-main`,onSetActive:e=>this.props.setActiveChecklist(e),to:e.id,spy:!0})]},e.id))]})),k(this,`genNavItems`,()=>(0,K.jsxs)(`ul`,{style:{height:`100%`,display:`block`},children:[(0,K.jsx)(kW.ClickItem,{onClick:this.onCloseView,side:`left`,"data-testid":`closeChecklist`,children:U(`checklist.close`)}),this.renderMiddleNav()]})),this.DragWrapper=oQ}componentDidMount(){let{skillId:e,loadSkill:t,setActiveChecklist:n}=this.props;t(e),aQ.default.Events.scrollEvent.register(`end`,e=>{n(e)})}componentDidUpdate(e){let{pathname:t,skillId:n,loadSkill:r}=this.props;e.pathname!==t&&r(n)}componentWillUnmount(){aQ.default.Events.scrollEvent.remove(`end`)}renderTopMiddle(e){return(0,K.jsx)(`div`,{className:q$(`checklist__topalign`,`checklist__topalign--col`),children:(0,K.jsx)(`span`,{className:q$(`checklist__topalign-title`),children:e})})}renderMiddleNav(){let{selectedSkill:e}=this.props;return e?(0,K.jsx)(kW.ClickItem,{"data-testid":`checklist_title_btn`,onClick:Fu.default,side:`middle`,children:this.renderTopMiddle(e.title)}):null}renderWhat(){let{isLoading:e,isError:t,selectedSkill:n}=this.props,r=n?.steps||[];return e?(0,K.jsx)(xf,{type:`primary`}):t?(0,K.jsx)(`div`,{className:q$(`checklist__container--isError`),children:(0,K.jsx)(Jg,{style:{textAlign:`center`},type:`bold red`,children:`Something went wrong while loading this skill`})}):(0,K.jsxs)(Uj,{resizable:!1,children:[(0,K.jsx)(zj,{type:`checklist`,children:(0,K.jsx)(U$,{selectedSkill:n,isReadOnly:!0})}),(0,K.jsx)(Wj,{children:(0,K.jsx)(Yj,{children:(0,K.jsx)(Zj,{children:(0,K.jsx)(Jj,{id:`checklist-scroll-main`,type:`absolute-scroll`,variation:`checklist`,children:(0,K.jsx)(`div`,{className:q$(`checklist__maxwidth`),children:this.renderSections(r,n)})})})})})]})}renderDescriptionBox(e){let{description:t}=e||{};return t?(0,K.jsx)(`div`,{className:q$(`checklist__box-wrap`),children:(0,K.jsx)($b,{children:(0,K.jsxs)(`div`,{className:q$(`checklist__topdes`),children:[(0,K.jsx)(Xg,{type:`medium`,children:U(`skills.skill_description`)}),(0,K.jsx)(`div`,{className:q$(`checklist__topdes-right`),children:(0,K.jsx)(lx,{isDescription:!0,dataKey:`checklist_des_input`,disabled:!0,defaultValue:t,placeholder:U(`skills.skill`)})})]})})}):null}render(){let{DragWrapper:e}=this;return(0,K.jsx)(e,{children:(0,K.jsx)(`div`,{"data-testid":`checklist-container-modal`,children:(0,K.jsx)(AQ,{bgColor:`grey`,noMaxWidth:!0,canOverLayNav:!0,navItems:this.genNavItems(),children:this.renderWhat()})})})}};J$.propTypes={selectedSkill:V.default.shape({title:V.default.string,steps:V.default.arrayOf(V.default.shape({})),description:V.default.string,skillId:V.default.string}).isRequired,redirectUrl:V.default.string.isRequired,push:V.default.func.isRequired,pathname:V.default.string,skillId:V.default.string.isRequired,isLoading:V.default.bool,isError:V.default.shape({}),loadSkill:V.default.func.isRequired,setActiveChecklist:V.default.func.isRequired},J$.defaultProps={pathname:void 0,isLoading:!1,isError:null};var SCe={display:`flex`,height:`165px`,width:`100%`,justifyContent:`center`,flexDirection:`column`,textAlign:`center`,alignItems:`center`,fontSize:`12px`,fontWeight:600,color:`#A0AAB4`},CCe={background:`var(--color-white)`,opacity:.5,position:`absolute`,top:0,bottom:0,right:0,left:0};function Y$({isLoading:e=!1,isSubmitting:t=!1,navHidden:n=!1,isOpen:r=!0,checklistId:i=null,checklistTitle:a,selectedChecklists:o,properties:s,currentUser:c,searchRes:l,searchQuery:u,loadChecklists:d=void 0,setCloneChecklist:f,setSearchQuery:p,multiCloneSaga:m,push:h=void 0,redirectOnSuccessRoute:g=void 0,onClose:_=()=>{}}){(0,B.useEffect)(()=>{typeof d==`function`&&d()},[d]);let v=(0,B.useRef)(t);(0,B.useEffect)(()=>{v.current&&!t&&g&&h&&h(g),v.current=t},[t,h,g]);let y=(0,B.useCallback)(()=>{f({checklistTitle:``,isOpen:!1,mode:0,selectedChecklistId:void 0,selected:{}}),p(`checklist_clone_search`,``),_()},[f,p,_]),b=(0,B.useCallback)(()=>{m((0,Ux.default)(o),i,a)},[m,o,i,a]),x=(0,B.useCallback)(e=>{let t=c;return(0,xo.default)(e,e=>xC({property:e,user:t}).canCreateChecklists)},[c]),S=x(Uo(s)),C=x(Uo(l)),w=(0,xo.default)(o,e=>!!e),T=(()=>{let e=C.filter(e=>w.indexOf(e.objectId)===-1);return C.length>0&&e.length===0})(),E=(0,B.useCallback)(e=>t=>{f({selected:{...(0,CR.default)(w),[e]:t.target.checked?e:void 0}})},[f,w]),D=(0,B.useCallback)(()=>{let e=C.reduce((e,t)=>
1888({...e,[t.objectId]:t.objectId}),{});f({selected:T?(0,CR.default)(w.filter(t=>!e[t])):{...(0,CR.default)(w),...e}})},[C,T,w,f]),ee=(0,B.useCallback)(e=>{p(`checklist_clone_search`,e)},[p]),te=(0,B.useCallback)(({row:e,style:t,key:n,ctx:{isSelected:r,toggleSingleProperty:i}})=>(0,K.jsx)(tx.GridRow,{spacing:`8`,style:t,children:(0,H.default)(e,e=>(0,K.jsx)(tx.GridItem,{spacing:`8`,itemPerRow:`3`,children:(0,K.jsx)(BA,{onClick:i(e.objectId),property:e,selected:r(e)})},e.objectId))},n),[]),ne=(0,B.useCallback)((e,t)=>{if(e.length===0)return(0,K.jsx)(I,{sx:SCe,children:U(`checklist.no_properties_found`)});let n=(0,wx.default)(e,3),r=e=>t&&!!t[e.objectId];return(0,K.jsx)(Ft,{children:({height:e,width:t})=>(0,K.jsx)(ui,{height:e,width:t,rowHeight:78,rowCount:n.length,rowRenderer:Co({data:n,handler:te,ctx:{toggleSingleProperty:E,isSelected:r}})})})},[te,E]),re=(0,B.useCallback)(()=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)($g,{children:U(`checklist.clone_checklist_name`)}),(0,K.jsx)(tx.GridRow,{spacing:`8`,children:(0,K.jsx)(tx.GridItem,{spacing:`8`,itemPerRow:`3`,children:(0,K.jsx)(Yf,{isLast:!0,isFirst:!0,type:`text`,styleOverwrite:{backgroundColor:`var(--color-white)`},error:!1,value:a,onChange:e=>f({checklistTitle:e.target.value})})})})]}),[a,f]);if(!r)return null;if(e)return(0,K.jsx)(xf,{});let O=w.length,ie=S.length,ae=C.length,oe=n?`100%`:`calc(100% - 64px)`;return(0,K.jsxs)(tx,{show:!0,children:[(0,K.jsxs)(tx.Header,{children:[(0,K.jsx)(I,{sx:{height:`48px`,width:oe},children:(0,K.jsx)(Qb,{type:`multi`,isLoading:t,onClose:y,onDone:b,text:U(`checklist.clone_checklist`)})}),(0,K.jsx)(Dm,{type:[`bottom`]})]}),(0,K.jsx)(tx.ContentWrap,{children:(0,K.jsx)(tx.Content,{type:`grey`,style:{overflow:`hidden`,width:oe},children:(0,K.jsxs)(tx.ContentInner,{style:{display:`flex`,flexDirection:`column`,height:`100%`},children:[a&&re(),(0,K.jsx)($g,{children:U(`checklist.clone_properties`)}),(0,K.jsx)(tx.GridRow,{spacing:`8`,children:(0,K.jsx)(tx.GridItem,{spacing:`8`,itemPerRow:`1`,children:(0,K.jsx)(Up,{selectedCount:O,queryCount:ae,totalCount:ie,placeholder:U(`checklist.search_for_address`),value:u,onChange:ee,onSelect:D,isSelected:T})})}),(0,K.jsx)(gm,{}),(0,K.jsx)(I,{sx:{height:`calc(100% - 200px)`},children:ne(C,o)}),t&&(0,K.jsx)(I,{sx:CCe})]})})})]})}Y$.propTypes={isLoading:V.default.bool,isSubmitting:V.default.bool,navHidden:V.default.bool,isOpen:V.default.bool,checklistId:V.default.string,checklistTitle:V.default.string.isRequired,selectedChecklists:V.default.shape({}).isRequired,properties:V.default.shape({}).isRequired,currentUser:V.default.shape({}).isRequired,searchRes:V.default.arrayOf(V.default.shape({})).isRequired,searchQuery:V.default.string.isRequired,loadChecklists:V.default.func,setCloneChecklist:V.default.func.isRequired,setSearchQuery:V.default.func.isRequired,multiCloneSaga:V.default.func.isRequired,push:V.default.func,redirectOnSuccessRoute:V.default.string,onClose:V.default.func};var X$=(0,B.memo)(Y$),wCe=Nt((e,t)=>{let n=aU(e,t);return{isLoading:oU(e,t),isError:sU(e,t),selectedSkill:n}},e=>({push:t=>e(Wn(t)),loadSkill:t=>e(SH(t)),setActiveChecklist:t=>e(MU(t))}));Qn();var TCe=()=>{let{checklistId:e,jobInstructionId:t}=Rn();return(0,K.jsx)(JU(X$),{jobInstructionId:t,checklistId:e,published:!0,redirectUrl:`/library`})},ECe=()=>{let{checklistId:e,jobInstructionId:t}=Rn();return(0,K.jsx)(JU(X$),{jobInstructionId:t,checklistId:e,published:!0,redirectUrl:`/library`})},DCe=()=>{let{checklistId:e,jobInstructionId:t}=Rn();return(0,K.jsx)(dU(YQ),{jobInstructionId:t,checklistId:e,published:!0,redirectUrl:`/library`})},OCe=()=>{let{checklistId:e,jobInstructionId:t}=Rn();return(0,K.jsx)(HU(YQ),{isIndependent:!0,jobInstructionId:t,checklistId:e,redirectUrl:`/library`})},kCe=()=>{let{skillId:e}=Rn();return(0,K.jsx)(wCe(J$),{skillId:e,redirectUrl:`/library`})},ACe=()=>(0,K.jsx)(H$,{createJob:!0}),jCe=()=>(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(N,{element:(0,K.jsx)(UB,{}),children:(0,K.jsx)(N,{element:(0,K.jsx)(KB,{}),children:(0,K.jsxs)(N,{element:(0,K.jsx)(sV,{feature:s_.webapp}),children:[(0,K.jsx)(N,{path:`library`,element:(0,K.jsx)(H$,{})}),[`/`,`//`,`/:checklistId`,`/:checklistId/`].map(e=>(0,K.jsxs)(B.Fragment,{children:[(0,K.jsx)(N,{path:`library/published${e}`,element:(0,K.jsx)(Wr,{to:`/library`,replace:!0})}),(0,K.jsx)(N,{path:`library/independent${e}`,element:(0,K.jsx)(Wr,{to:`/library`,replace:!0})}),(0,K.jsx)(N,{path:`library/clone/published${e}`,element:(0,K.jsx)(Wr,{to:`/library`,replace:!0})}),(0,K.jsx)(N,{path:`library/clone/independent${e}`,element:(0,K.jsx)(Wr,{to:`/library`,replace:!0})})]},e)),(0,K.jsx)(N,{path:`library/clone/independent/:checklistId/:jobInstructionId`,element:(0,K.jsx)(TCe,{})}),(0,K.jsx)(N,{path:`library/clone/published/:checklistId/:jobInstructionId`,element:(0,K.jsx)(ECe,{})}),(0,K.jsx)(N,{path:`library/published/:checklistId/:jobInstructionId`,element:(0,K.jsx)(DCe,{})}),(0,K.jsx)(N,{path:`library/independent/:checklistId/:jobInstructionId`,element:(0,K.jsx)(OCe,{})}),(0,K.jsx)(N,{path:`library/skill/:skillId`,element:(0,K.jsx)(kCe,{})}),(0,K.jsx)(N,{path:`library/createJob`,element:(0,K.jsx)(ACe,{})})]})})})}),MCe=[[[3,5]],[[2,4]],[[4,6]],[[1,3]],[[5,7]],[[2,5]]],NCe=()=>(0,K.jsxs)(I,{sx:{minWidth:264,maxWidth:264,minHeight:95,display:`flex`,alignItems:`center`,gap:1.5,py:.75,px:1,background:`var(--surface-base)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-sm, 6px)`,boxShadow:`var(--shadow-sm)`},children:[(0,K.jsx)(J,{variant:`rounded`,width:56,height:56,sx:{borderRadius:`8px`,flexShrink:0}}),(0,K.jsxs)(I,{sx:{flex:1,minWidth:0,py:.25},children:[(0,K.jsx)(J,{variant:`rounded`,width:`75%`,height:14,sx:{mb:.5}}),(0,K.jsx)(J,{width:`90%`,height:12,sx:{mb:.25}}),(0,K.jsx)(J,{width:`70%`,height:12,sx:{mb:.25}}),(0,K.jsx)(J,{width:`40%`,height:12})]}),(0,K.jsx)(J,{variant:`rounded`,width:16,height:16,sx:{flexShrink:0,borderRadius:`4px`}})]}),PCe=({bookings:e=[]})=>(0,K.jsxs)(I,{sx:{flex:1,display:`flex`,background:`var(--surface-base)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-sm, 6px)`,boxShadow:`var(--shadow-sm)`,overflow:`hidden`,position:`relative`,minHeight:95},children:[[1,2,3,4,5,6,7].map(e=>(0,K.jsx)(I,{sx:{flex:1,minWidth:96,borderRight:e<7?`1px solid var(--color-divider)`
1888:`none`}},e)),e.map(([e,t],n)=>{let r=(e-1)/7*100,i=(t-e+1)/7*100;return(0,K.jsx)(I,{sx:{position:`absolute`,top:8+n*28,left:`calc(${r}% + 4px)`,width:`calc(${i}% - 8px)`},children:(0,K.jsx)(J,{variant:`rounded`,height:20,sx:{borderRadius:`4px`}})},n)})]}),FCe=({bookings:e})=>(0,K.jsxs)(I,{sx:{display:`flex`,gap:`6px`,margin:`0 8px 8px 8px`,minHeight:120},children:[(0,K.jsx)(NCe,{}),(0,K.jsx)(PCe,{bookings:e})]}),ICe=()=>(0,K.jsx)(I,{sx:{pt:.65},children:MCe.map((e,t)=>(0,K.jsx)(FCe,{bookings:e},t))}),Z$=e(aee()),LCe=PC,Q$=({preFilledDurationNewJobRequest:e=null,setCalendarModal:t,dateBucketIds:n=[],propertyEvents:r=null,days:i={},property:a=null,collaboratorData:o={},isCanceledFiltered:s=!1,expandSize:c=0,onExpand:l=()=>{},onBookingClick:u=()=>{},currentUser:d={},index:f,width:p=0,filterDays:m=[],handleEventButtonSaga:h,goToProperty:g,handleDraftJobActions:_,isInactiveProperty:v,globalPropertyPictureUrl:y})=>{let b=e=>(0,K.jsxs)(Uy,{children:[(0,K.jsx)(Xy,{},`calendar-property-col-empty`),e.map(e=>(0,K.jsx)(Gy,{isToday:Ac(e)},e))]}),x=(n,r,i)=>{let a=e||`60`,o=(0,z.default)(n).isBefore((0,z.default)()),s=z.default.tz(n,i).hours(10).minutes(0).seconds(0);o&&(s=Jc(z.default.tz(i).add(3,`minutes`)));let c=s.clone().add(a,`m`),l={jobType:no.turnover,propertyId:r,startTime:s,endTime:c,duration:a,jobStartTimeType:`fixed`};R.default.info(`Open job request`,n,r,i,l),t(!0,`jobrequest`,{mode:`normal`,source:`calendar`,data:l})},S=()=>r?n.reduce((e,t)=>{let n=r?.[t]||{},i=e&&e.otherEvents||{},a=e&&e.bookingEvents||{},o=(0,Z$.default)(i,n.otherEvents||{});return e?{bookingEvents:{...a,...n.bookingEvents||{}},otherEvents:o}:n},null):{},C=(...e)=>{R.default.info(`CalendarListItemContainer handleEventAction`,...e),h(...e)};if(!a)return b(i||[]);let w=a,{ownerRole:T,ownerName:E,id:D}=w||{},{bookingEvents:ee,otherEvents:te}=S(),ne=uc(D,o),re=lc(T,d),O=bC({propertyOwner:T,user:d}),ie=yC({propertyOwner:T,user:d});return(0,K.jsx)(Wb,{index:f,width:p,dates:i,filterDays:m,property:w,propertyBookings:ee||{},propertyOtherEvents:te||{},sharedProperty:re,sharingProperty:ne,isInactiveProperty:v(D),collaboratorData:o,propertyOwnerName:E,seeCleanerNamesPermission:O,canSe
1888ndJobsPermission:ie,currentUser:d,openJobRequest:(e,t,n)=>x(e,t,n),goToProperty:g,onEventAction:C,expandSize:c,onExpand:l,shouldFilterCanceledEvents:!s,onBookingClick:u,handleDraftJobActions:_,globalPropertyPictureUrl:y})};Q$.propTypes={index:V.default.number.isRequired,onExpand:V.default.func,onBookingClick:V.default.func,expandSize:V.default.number,preFilledDurationNewJobRequest:V.default.string,setCalendarModal:V.default.func.isRequired,dateBucketIds:V.default.shape({}),propertyEvents:V.default.shape({}),days:V.default.shape({}),property:V.default.shape({}),collaboratorData:V.default.shape({}),isCanceledFiltered:V.default.bool,currentUser:V.default.shape({}),width:V.default.number,filterDays:V.default.arrayOf(V.default.shape({})),handleEventButtonSaga:V.default.func.isRequired,goToProperty:V.default.func.isRequired,handleDraftJobActions:V.default.func.isRequired,globalPropertyPictureUrl:V.default.string};function RCe(e,t){let n=FC,r=yw,{index:i}=t||{},a=Qbe(i)(e),o=a?.id||a?.objectId,s=LCe(e);return{index:i,filterDays:KZ(e),days:zZ(e),dateBucketIds:HZ(e),property:a,propertyEvents:$be(i)(e),currentUser:n(e),collaboratorData:r(e),isCanceledFiltered:IZ(e),isInactiveProperty:n=>rw(n)(e,t),globalPropertyPictureUrl:s?.[o]?.pictureUrl}}var zCe=Nt(RCe,{goNewProperty:kq,goToProperty:iF,setCalendarModal:dF,handleEventButtonSaga:nQ,setBackdrop:gxe})(Q$),BCe=(e,t)=>{let n=[...Rc(15)];return t?n.filter(t=>parseInt(t.value,10)>=e):n},VCe=e=>{let t=(0,z.default)().subtract(Uc(e),`m`);return t.hours()*60+t.minutes()},HCe=(e,t)=>{let n=VCe(e);return n+(t-n%t)},$$=()=>({schedule:`now`,date:(0,z.default)(),time:HCe(z.default.tz.guess(),15),focused:!1}),UCe={"& .MuiInputBase-input":{color:`var(--color-dark-inactive) !important`,WebkitTextFillColor:`var(--color-dark-inactive) !important`}},WCe={"& .MuiInputBase-input":{color:`var(--color-text) !important`,WebkitTextFillColor:`var(--color-text) !important`}},e1=({modalState:e,onCloseModal:t,sendDraftJobSaga:n,deleteDraftJobSaga:r,setShowSnackbar:i})=>{let{trackModalAction:a}=nT(`DraftJobsModals`),[o,s]=(0,B.useState)($$()),[c,l]=(0,B.useState)(!1);(0,B.useEffect)(()=>{e.show&&(s($$()),l(!1))},[e.show]);let u=e=>()=>{l(!1),i({show:!0,type:`success`,message:e})},d=e=>()=>{l(!1),i({show:!0,type:`error`,message:e})},f=()=>{if(c)return;l(!0);let{type:i,data:s}=e;if(i===Za.DELETE_DRAFT_JOB&&(a(`draft_jobs_delete_modal`,`confirm`,{action:`delete_draft_job`}),r(s?.id,t,u(U(`autoscheduler.delete_draft_job_success`)),d(U(`autoscheduler.delete_draft_job_error`)),s.eventId)),i===Za.SEND_DRAFT_JOB){a(`draft_jobs_send_modal`,`confirm`,{action:`send_draft_job`,scheduleType:o.schedule});let e=o.schedule===`now`?(0,z.default)():(0,z.default)(o.date).hour(Math.floor(o.time/60)).minute(o.time%60);n(s?.id,e.utc().toISOString(),t,u(U(`autoscheduler.send_draft_job_success`)),d(U(`autoscheduler.send_draft_job_error`)),s.eventId,o.schedule===`now`)}};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(X,{height:180,show:e.show&&e.type===Za.DELETE_DRAFT_JOB,onClose:t,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:U(`autoscheduler.delete_draft_job_header`)}),(0,K.jsx)(X.Text,{children:U(`autoscheduler.delete_draft_job_description`)}),(0,K.jsx)(gm,{}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:()=>{a(`draft_jobs_delete_modal`,`cancel`,{action:`cancel`}),t()},disabled:c}),(0,K.jsx)(X.Ok,{isLoading:c,disabled:c,onClick:f})]})]})}),(0,K.jsx)(X,{height:330,width:580,show:e.show&&e.type===Za.SEND_DRAFT_JOB,onClose:t,children:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Kg,{style:{textAlign:`center`},children:U(`autoscheduler.schedule_job_send`)}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,m:`20px`},children:[(0,K.jsx)(Dp,{type:`small`,selected:o.schedule===`now`,onChange:()=>s($$()),"data-testid":`autoscheduler_select_start_time_type_relative`}),(0,K.jsx)(Yg,{type:o.schedule===`now`?`regular`:`greyloading`,style:{marginLeft:`10px`},children:U(`autoscheduler.send_job_immediately`)})]}),(0,K.jsx)(I,{sx:{m:`4px 20px`},children:(0,K.jsx)(Yg,{children:U(`autoscheduler.schedule_later_modal_desc`)})}),(0,K.jsxs)(I,{sx:{m:`10px 20px`,display:`flex`,alignContent:`space-between`,gap:`40px`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:`6px`,flex:1},children:[(0,K.jsx)(Xg,{style:{marginLeft:`4px`},children:U(`detailed_view.date`)}),(0,K.jsx)(I,{sx:o.schedule===`now`?UCe:WCe,children:(0,K.jsx)(up,{daySize:44,block:!0,withPortal:!0,date:o.date,focused:o.focused,onFocusChange:()=>s(e=>({...e,focused:!e.focused})),onDateChange:e=>{s(t=>{let n=e.isSame(t.day,`day`)?`now`:`later`;return{...t,date:e,schedule:n,time:n===`now`?$$().time:t.time}})},isDayBlocked:t=>t.isAfter(e.data?.scheduledStartTime,`day`)})})]}),(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:`6px`,flex:1},children:[(0,K.jsx)(Xg,{style:{marginLeft:`4px`},children:U(`detailed_view.time`)}),(0,K.jsx)(Yf,{"data-testid":`autoscheduler_select_time_fixed`,placeholder:U(`autoscheduler.select_time`),styleOverwrite:{height:`40px`,width:`100%`,backgroundColor:`var(--color-white)`},onChange:e=>s(t=>({...t,time:e.target.value,schedule:$$().time===parseInt(e.target.value,10)&&(0,z.default)(t.day).isSame($$().day,`day`)?`now`:`later`})),value:o.time?.toString(),isFirst:!0,isLast:!0,options:BCe($$().time,o.date.isSame($$().date,`day`)),optionsBtn:!0,optionsColor:o.schedule===`now`?`inactive`:`normal`,style:{textAlign:`left`,fontSize:`16px`,whiteSpace:`nowrap`},type:`select`})]})]}),(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`flex-end`,alignItems:`center`,mt:`36px`,gap:`24px`},children:[(0,K.jsx)(X.Cancel,{onClick:()=>{a(`draft_jobs_send_modal`,`cancel`,{action:`cancel`}),t()},disabled:c}),(0,K.jsx)(q,{isLoading:c,disabled:c,onClick:f,types:[`type-full-primary`,`size-medium`],children:o.schedule===`now`?U(`autoscheduler.send_job_now`):U(`autoscheduler.schedule_job_later`)})]})]})})]})};e1.propTypes={modalState:V.default.shape({}).isRequired,onCloseModal:V.default.func.isRequired,sendDraftJobSaga:V.default.func.isRequired,deleteDraftJobSaga:V.default.func.isRequired,setShowSnackbar:V.default.func.isRequired};var GCe=[],KCe={entries:[],total:0},t1=e=>e.reminders,qCe=200,n1=e=>{Object.keys(e).length>=qCe&&Object.keys(e).forEach(t=>delete e[t])},r1={},JCe=e=>(r1[e]||(n1(r1),r1[e]=A(t1,t=>t?.remindersByProperty?.[e]||GCe)),r1[e]),i1=A(t1,e=>e.jobPicker),YCe=e=>t=>Object.prototype.hasOwnProperty.call(t.reminders.remindersByProperty,e),a1={},XCe=e=>(a1[e]||(n1(a1),a1[e]=A(t1,t=>t?.history?.[e]||KCe)),a1[e]),ZCe=A(t1,e=>e.form),QCe=A(t1,e=>({mode:e.mode,reminderId:e.reminderId,propertyId:e.propertyId,saveState:e.saveState,loading:e.loading}));function o1({propertyId:e,mode:t=`create`,reminderId:n=null,initialTitle:r=null}){return{type:MD,propertyId:e,mode:t,reminderId:n,initialTitle:r}}function s1(e){return{type:ND,propertyId:e}}function c1(e){return{type:PD,meta:e}}function l1(e,t){return{type:FD,id:e,propertyId:t}}function u1(e,t,n){return{type:ID,reminderId:e,limit:t,offset:n}}function $Ce(e,t){return{type:LD,propertyId:e,reminders:t}}function ewe(e,t,n,r=!1){return{type:RD,reminderId:e,entries:t,total:n,append:r}}function d1(e){return{type:zD,data:e}}function twe(e){return{type:VD,data:e}}function nwe(){return{type:HD}}function rwe(e){return{type:BD,partial:e}}function f1({propertyId:e,eventId:t,source:n}){return{type:UD,propertyId:e,eventId:t,source:n}}function iwe(e,t){return{type:WD,eventId:e,jobSnapshotId:t}}function awe(){return{type:GD}}var owe={display:`flex`,alignItems:`center`,justifyContent:`space-between`,border:`1px solid var(--color-border)`,borderRadius:`14px`,background:`var(--color-white)`,cursor:`pointer`,transition:`all .18s ease`,"&:hover":{borderColor:`var(--color-primary)`,boxShadow:`0 4px 12px var(--color-primary-alpha-10, rgba(54, 172, 178, 0.1))`}},swe={borderColor:`var(--color-primary)`},p1=({source:e})=>{let t=xe(),{open:n,eventId:r,propertyId:i,jobs:a=[],loading:o,attaching:s,error:c,loadError:l}=j(i1)||{},[u,d]=(0,B.useState)(null);(0,B.useEffect)(()=>{n&&d(null)},[n,r]);let f=()=>t(awe());return(0,K.jsx)(X,{id:`job-picker`,width:580,height:560,show:!!n,onClose:f,block:!0,children:(0,K.jsxs)(I,{sx:{p:2,display:`flex`,flexDirection:`column`,he
1888ight:`100%`},children:[(0,K.jsx)(Kg,{style:{textAlign:`center`},children:U(`contacts.upcoming_jobs`)}),(0,K.jsx)(X.H1,{children:U(`jobpicker.title`)}),(0,K.jsx)(X.Text,{style:{margin:`0 auto`},type:`greyloading`,children:U(`jobpicker.subtitle`)}),(0,K.jsxs)(I,{sx:{flex:1,overflowY:`auto`,mt:2},children:[o&&(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`center`,py:4},children:(0,K.jsx)(hf,{})}),!o&&l&&(0,K.jsxs)(I,{sx:{textAlign:`center`,py:4},children:[(0,K.jsx)(Xg,{color:`var(--color-red)`,"data-testid":`jobpicker_load_error`,children:U(`jobpicker.load_error`)}),(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`center`,mt:1.5},children:(0,K.jsx)(q,{"data-testid":`jobpicker_retry`,onClick:()=>t(f1({propertyId:i,eventId:r,source:e})),types:[`type-border-grey`,`size-small`],children:U(`jobpicker.retry`)})})]}),!o&&!l&&a.length===0&&(0,K.jsx)(I,{sx:{textAlign:`center`,py:4},children:(0,K.jsx)(Xg,{type:`greyloading`,children:U(`jobpicker.no_eligible_jobs`)})}),(0,K.jsx)(I,{sx:{display:`grid`,gridTemplateColumns:`repeat(2, minmax(0, 1fr))`,gap:2},children:!o&&!l&&a.map(e=>{let t=u===e.id,n=(0,z.default)(e.scheduledStartTime);return(0,K.jsxs)(I,{"data-testid":`jobpicker_row_${e.id}`,onClick:()=>d(e.id),sx:{...owe,...t&&swe},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,flex:1,overflow:`hidden`},children:[(0,K.jsxs)(I,{sx:{width:35,height:35,borderRadius:`5px`,bgcolor:t?`var(--color-primary)`:`var(--color-primary-light)`,color:t?`var(--color-white)`:`var(--color-black)`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`,flexShrink:0,margin:`0px 16px 0px 10px`},children:[(0,K.jsx)(I,{sx:{fontSize:12,fontWeight:700,lineHeight:1},children:n.format(`DD`)}),(0,K.jsx)(I,{sx:{fontSize:10,fontWeight:700,letterSpacing:1},children:n.format(`MMM`).toUpperCase()})]}),(0,K.jsxs)(I,{sx:{overflow:`hidden`,flex:1,padding:`5px 0px 5px 0px`},children:[(0,K.jsx)(Xg,{type:`medium`,style:{fontWeight:600,fontSize:`11px`,display:`block`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:e.title||U(`todos.job`)}),(0,K.jsx)(Xg,{type:`greyloading`,style:{display:`block`,mt:.5,fontSize:`11px`},children:n.format(`ddd ⢠h:mm A`)}),(0,K.jsx)(Xg,{style:{display:`block`,mt:.5,fontWeight:500,fontSize:`11px`},children:n.format(`MMM D, YYYY`)})]})]}),(0,K.jsx)(nt,{checked:t,color:`primary`,sx:{ml:1,"& .MuiSvgIcon-root":{fontSize:22}}})]},e.id)})})]}),c&&(0,K.jsx)(Xg,{color:`var(--color-red)`,"data-testid":`jobpicker_error`,children:U(`jobpicker.attach_error`)}),(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`flex-end`,gap:1.5,pt:2},children:[(0,K.jsx)(q,{onClick:f,types:[`type-flat-grey`,`size-medium`],disabled:s,children:U(`properties.cancel`)}),(0,K.jsx)(q,{"data-testid":`jobpicker_attach`,onClick:()=>{u&&t(iwe(r,u))},types:[`type-full-primary`,`size-medium`],disabled:!u||s,isLoading:s,children:U(`jobpicker.attach`)})]})]})})},m1={show:!1,type:null,data:null},h1={show:!1,type:null,message:``},g1=({onPropertiesRendered:e=()=>{},onHasVerticalScrollChange:t=()=>{},hasVerticalScroll:n=!1,totalProperties:r=null,handleBookingClick:i})=>{let a=xe(),o=j(e=>YZ(e)),s=()=>a(kq()),c=(...e)=>a(JK(...e)),l=(...e)=>a(YK(...e)),u=(...e)=>a(dF(...e)),[d,f]=(0,B.useState)({}),[p,m]=(0,B.useState)(m1),[h,g]=(0,B.useState)(h1),_=()=>m(m1),v=(e={},t)=>{let n={id:e.draftJobId,draftJobId:e.draftJobId,autoSchedulerId:e.autoSchedulerId,eventId:e.id};try{if(t===Za.DELETE_DRAFT_JOB){m({show:!0,type:Za.DELETE_DRAFT_JOB,data:n});return}if(t===Za.EDIT_DRAFT_JOB){u(!0,`jobrequest`,{mode:l_.draftJobEdit,source:`drafts`,draftJobId:n.id,prevJobRequestId:n.id,eventId:n.eventId,data:{id:n.id}});return}t===Za.SEND_DRAFT_JOB&&m({show:!0,type:Za.SEND_DRAFT_JOB,data:n})}catch(e){R.default.info(`handleAutoschedulerAction`,e)}},y=(e,t)=>{f({...d,[e]:t})};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Ib,{onHasVerticalScrollChange:t,hasVerticalScroll:n,expandSize:d,onPropertiesRendered:e,totalPropertiesCount:o,renderRow:(e,t,n,r)=>(0,K.jsx)(`div`,{style:{...n,overflow:`hidden`,paddingTop:`4px`,paddingBottom:`4px`,boxSizing:`border-box`},children:(0,K.jsx)(zCe,{expandSize:d[t],onExpand:y,width:r,index:t,onBookingClick:i,handleDraftJobActions:v})},e),renderNoProperties:()=>r!==0&&o===0?(0,K.jsx)(MM,{type:`noresults`}):o===0?(0,K.jsx)(MM,{type:`noproperties`,onClick:s}):(0,K.jsx)(MM,{type:`notselected`})}),p.show&&(0,K.jsx)(e1,{onCloseModal:_,modalState:p,sendDraftJobSaga:c,deleteDraftJobSaga:l,setShowSnackbar:g}),h.show&&(0,K.jsx)(wf,{open:!0,message:h.message,onClose:()=>g(h1),error:h.type===`error`,success:h.type===`success`}),(0,K.jsx)(p1,{source:`calendarEvents`})]})};g1.propTypes={hasVerticalScroll:V.default.bool,onPropertiesRendered:V.default.func,onHasVerticalScrollChange:V.default.func,totalProperties:V.default.number,handleBookingClick:V.default.func.isRequired};var cwe=F` 1889 query reminderOptions { 1890 reminderOptions { 1891 label 1892 value 1893 } 1894 } 1895`,lwe=F` 1896 query calendarFilterSchema { 1897 calendarFilterSchema { 1898 filters { 1899 categoryId 1900 categoryLabel 1901 categoryIcon 1902 fields { 1903 label 1904 id 1905 type 1906 options { 1907 label 1908 value 1909 } 1910 autocomplete { 1911 graphqlSchema 1912 graphqlKey 1913 } 1914 } 1915 } 1916 } 1917 } 1918`,uwe=F` 1919 query calendarPropertiesQuery( 1920 $offset: Int 1921 $limit: Int 1922 $eventStartDate: DateTime
1923 $eventEndDate: DateTime 1924 $propertySearch: String 1925 $timeZone: String 1926 $filters: [Filter] 1927 ) { 1928 calendarProperties( 1929 offset: $offset 1930 timeZone: $timeZone 1931 limit: $limit 1932 propertySearch: $propertySearch 1933 filters: $filters 1934 ) { 1935 info { 1936 total 1937 limit 1938 offset 1939 } 1940 result { 1941 id 1942 title 1943 type 1944 timeZone 1945 location 1946 ownerRole 1947 ownerName 1948 displayAddress 1949 address { 1950 street 1951 apt 1952 city 1953 state 1954 zip 1955 country 1956 } 1957 events(startDate: $eventStartDate, endDate: $eventEndDate) { 1958 id 1959 type 1960 startTime 1961 endTime 1962 timeZone 1963 serviceProviderIds 1964 days 1965 property { 1966 id 1967 } 1968 booking { 1969 id 1970 title 1971 statusCode 1972 status 1973 partner 1974 guestName 1975 numberOfGuests 1976 arrivalDate 1977 departureDate 1978 arrivalLocalDay 1979 departureLocalDay 1980 bookingDurationDays 1981 } 1982 jobRequest { 1983 id 1984 jobSnapshotId 1985 seen 1986 title 1987 cleanerName 1988 status 1989 statusCode 1990 incomplete 1991 problem 1992 jobStartTimeType 1993 duration 1994 } 1995 jobRequestSettings { 1996 message 1997 offeredPrice 1998 offeredPriceCurrency 1999 time { 2000 duration 2001 endTime 2002 startTime 2003 type 2004 } 2005 } 2006 reminder { 2007 reminderId 2008 time 2009 title 2010 type 2011 needsCTA 2012 checklistId 2013 } 2014 autoSchedulerId 2015 draftJobId 2016 } 2017 } 2018 } 2019 } 2020`,dwe={autocomplete:[`is`,`isNot`,`contains`,`any`],string:[`is`,`isNot`,`contains`,`any`],number:[`equals`,`notEquals`,`lessThan`,`greaterThan`,`between`,`any`],bool:[`true`,`false`],enum:[`anyOf`,`allOf`,`noneOf`],date:[`on`,`between`,`today`,`tomorrow`,`next7Days`,`next30Days`,`last7Days`,`last30Days`]};function fwe(e,t){if(!Array.isArray(e)||!Array.isArray(t?.filters))return[];let n=new Map(t.filters.flatMap(({fields:e}={})=>(Array.isArray(e)?e:[]).map(e=>[e.id,e])));return e.filter(e=>!e||typeof e.id!=`string`||typeof e.operator!=`string`?!1:!!dwe[n.get(e.id)?.type]?.includes(e.operator))}function pwe(e,t,n){let r=!n&&Array.isArray(t?.filters);return{filters:r?fwe(e,t):[],persist:r}}var _1=e=>(e||[]).filter(e=>!!e?.id&&!!e?.operator).map(({id:e,operator:t,value:n})=>`${e}:${t}:${String(n)}`).join(`-`)||null,mwe=e=>LZ(e)||[],v1=({onHeightChange:e=()=>{}})=>{let t=xe(),n=j(PZ),r=j(e=>mwe(e)),i=j(RZ),a=j(jC),o=j(MC),s=(0,B.useCallback)((e,n)=>t(axe(e,n)),[t]),[c,l]=(0,B.useState)(_1(r)),{loading:u,data:d}=Kn(cwe,{skip:o||!a}),{loading:f,data:p,error:m}=Kn(lwe,{skip:o||!a}),h=d?.reminderOptions,g=p?.calendarFilterSchema,_=(0,B.useMemo)(()=>pwe(r,g,m),[r,g,m]),v=(0,B.useMemo)(()=>i||f?r:_.filters,[i,f,r,_]),y=(0,B.useRef)(!1);(0,B.useEffect)(()=>{if(!(!a||o)){if(i){y.current=!1;return}f||y.current||(y.current=!0,l(_1(_.filters)),s(_.filters,{track:!1,persist:_.persist}))}},[i,a,o,f,_,s]);let b=async({graphqlSchema:e,graphqlKey:t})=>{R.default.info(`getGraphqlPrefetchAutocomplete`,{graphqlSchema:e,graphqlKey:t});let n=await QF.query({query:F(e),fetchPolicy:`cache-first`});return n.error?(R.default.error(`Error getGraphqlPrefetchAutocomplete`,n.error),[]):(n.data[t]||[]).map(({label:e})=>({label:e,value:e}))},x=({filterName:e,filters:t})=>{spe(e,t)},S=(0,B.useCallback)(e=>{R.default.info(`calendar filter container handleChange`,e);let t=_1(e);t!==c&&(fd(`calendar_filter`,`filter_change`,{filter_count:e?.length||0,filter_ids:(e||[]).map(e=>e.id).filter(Boolean),view_mode:`calendar`,component:`CalendarFilterContainer`}),l(t),s(e))},[c,s]);return u||f?`Loading...`:(0,K.jsx)(Iy,{onSave:x,onHeightChange:e,filterSchema:g||{filters:[]},reminderOptions:h,initFilter:v,onChange:S,currentUserId:n,getGraphqlAutocomplete:b})};v1.propTypes={onHeightChange:V.default.func};var y1={minHeight:`50px`,position:`relative`,display:`flex`,width:`100%`},b1=({isCalendarLoading:e=!1,onHeightChange:t=()=>{},reminderOptions:n,setCalendarPlus:r,setCalendarToday:i,hasVerticalScroll:a})=>{let o=xe(),{trackClick:s}=nT(`CalendarHeaderContainer`),c=j(e=>KZ(e)),l=j(e=>XZ(e)),u=j(e=>UZ(e)),d=j(e=>BZ(e)),f=j(e=>VZ(e)),p=j(e=>zZ(e)),m=j(e=>YZ(e)),h=j(e=>IZ(e)),g=j(PZ),_=!e&&l&&m!==0,v=e=>{t(e+145)},y=()=>(0,K.jsx)(I,{sx:{padding:`4px 8px`},children:(0,K.jsx)(I,{sx:{...y1,padding:`8px 16px`,background:`var(--surface-base)`,borderRadius:`var(--radius-md, 10px)`,border:`1px solid var(--color-border)`},children:g&&(0,K.jsx)(v1,{onHeightChange:v,reminderOptions:n})})}),b=(e,t)=>(0,K.jsx)(I,{sx:{padding:`8px 8px 4px 8px`},children:(0,K.jsxs)(I,{sx:{...y1,padding:`12px 15px`,justifyContent:`space-between`,background:`var(--surface-base)`,borderRadius:`var(--radius-md, 10px)`,border:`1px solid var(--color-border)`},children:[(0,K.jsx)(I,{sx:{marginRight:`160px`,opacity:+!!_,transition:`opacity 200ms ease`,position:`relative`,pointerEvents:`none`},"data-testid-is-calendar-loading":_,children:(0,K.jsx)(hf,{})}),(0,K.jsx)(Ry,{loading:_,goLeft:()=>r(e,-1),goLeftFull:()=>r(e,-7),goRight:()=>r(e,1),goRightFull:()=>r(e,7),fromDate:e,toDate:t}),(0,K.jsxs)(Ht,{container:!0,sx:{width:`auto`}
2020,children:[(0,K.jsx)(Ht,{children:(0,K.jsx)(q,{"data-testid":`button_open_today_calendar`,onClick:()=>{s(`calendar_today_button`,{action:`go_to_today`}),i()},types:[`type-border-primary`,`size-small`,`fontw-normal`],children:U(`calendar.today`)})}),(0,K.jsx)(Ht,{sx:{marginLeft:`6px`},children:(0,K.jsx)(Ig,{title:U(`calendar.hide_canceled_events_tooltip`),children:(0,K.jsx)(q,{styleOverwrite:{width:`180px`},"data-testid":`button_toggle_canceled`,onClick:()=>{s(`calendar_toggle_canceled_events`,{action:`toggle_canceled_filter`,currentState:h}),o(sxe())},types:[h?`type-full-primary`:`type-border-primary`,`size-small`,`fontw-normal`],children:U(h?`calendar.show_canceled_by_host`:`calendar.hide_canceled_by_host`)})})})]})]})}),x=(0,B.useMemo)(()=>!m&&l?`...`:String(m||0),[m,l]);return(0,K.jsxs)(I,{sx:{backgroundColor:`var(--surface-ground)`},children:[b(d,f),y(),(0,K.jsx)(qy,{hasVerticalScroll:a,filterDays:c,loading:_,searchQuery:u,setSearchQuery:e=>o(cxe(e)),propertiesCountText:x,dates:p})]})};b1.propTypes={onHeightChange:V.default.func,isCalendarLoading:V.default.bool,reminderOptions:V.default.arrayOf(V.default.shape({})),setCalendarPlus:V.default.func,setCalendarToday:V.default.func,hasVerticalScroll:V.default.bool},Qn();function hwe(){let e=ir(),t=Rn(),n=xe(),[r,i]=(0,B.useState)(189),[a,o]=(0,B.useState)(!1),s=j(Jbe),c=j(Ybe),l=j(BZ),u=j(qbe),d=j(XZ),f=j(YZ),p=(e,t)=>{if(R.default.info(`setCalendarToday - params`,e,t),e){let r=(0,z.default)(e,[`YYYYMMDD`]).toDate();r.setHours(0,0,0,0);let i=t?(0,z.default)(t,[`YYYYMMDD`]).toDate():new Date(r).setDate(r.getDate()+6);return i.setHours(23,59,59,0),n(tQ(r,i))}let r=new Date;r.setHours(0,0,0,0),r.setDate(r.getDate()-1);let i=new Date(r);return i.setDate(r.getDate()+6),i.setHours(23,59,59,0),n(tQ(r,i))},m=(e,t)=>{let r=new Date(e);r.setDate(e.getDate()+t);let i=new Date(r);i.setDate(r.getDate()+6),n(tQ(r,i))};(0,B.useEffect)(()=>{tme()},[]),(0,B.useEffect)(()=>{let r=new URLSearchParams(e.search).get(`date`),i=r?(0,z.default)(r,[`YYYYMMDD`]).toDate():t.from;return i&&p(i,t.to),n(QZ()),n(mxe()),()=>{n(hxe()),document.getElementById(`app`)?.click()}},[]);let h=({overscanStartIndex:e,overscanStopIndex:t})=>{n(pxe(e,t))},g=()=>(0,K.jsx)(ICe,{}),_=()=>{n(tQ((0,z.default)(l).add(c,`d`).toDate(),(0,z.default)(l).add(c,`d`).add(7,`d`).toDate()))},v=e=>{o(e)},y=()=>(0,K.jsx)(Dg,{width:575,height:150,message1:U(`calendar.range_error_1`),message2:U(`calendar.range_error_2`),onClose:()=>_(),show:s}),b=()=>{n(QZ()),n(uxe()),n(Wn(Z.properties))},x=()=>(0,K.jsx)(Dg,{message1:U(`calendar.load_error_1`),message2:U(`calendar.load_error_2`),onClose:()=>b(),show:!!u&&!d}),S=()=>(0,K.jsx)(I,{sx:{position:`absolute`,top:r,left:0,right:0,bottom:0},children:(0,K.jsx)(g1,{onHasVerticalScrollChange:v,hasVerticalScroll:a,handleBookingClick:e=>n(oxe(e)),onPropertiesRendered:h})}),C=d&&f===0;return(0,K.jsxs)(`div`,{children:[x(),y(),(0,K.jsx)(b1,{hasVerticalScroll:a,onHeightChange:e=>i(e),isCalendarLoading:C,setCalendarToday:p,setCalendarPlus:m}),C?g():S()]})}Qn();var x1=()=>((0,B.useEffect)(()=>{su(`titles.calendar`)()},[]),(0,K.jsx)(M$,{currentPage:`calendar`,disablePreloadLoader:!0,children:(0,K.jsxs)(Nf,{moduleName:`calendar`,customDescription:U(`calendar.error_load`)||`Unable to load the calendar. Please try again.`,children:[(0,K.jsx)(hwe,{}),(0,K.jsx)(kn,{})]})}));Qn();var gwe=e=>(0,K.jsx)($K,{...e}),_we=()=>{let{propertyId:e,bookingId:t}=Rn(),n=Vn();return!e||!t?null:(0,K.jsx)(jy,{bookingId:t,propertyId:e,handleCancel:()=>n(`/calendar`),renderChildren:gwe,show:!0})},vwe=()=>(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(N,{element:(0,K.jsx)(UB,{}),children:(0,K.jsx)(N,{element:(0,K.jsx)(KB,{}),children:(0,K.jsxs)(N,{element:(0,K.jsx)(sV,{feature:s_.webapp}),children:[(0,K.jsx)(N,{path:`calendar`,element:(0,K.jsx)(x1,{}),children:(0,K.jsx)(N,{path:`event/:propertyId/:bookingId`,element:(0,K.jsx)(_we,{})})}),(0,K.jsx)(N,{path:`calendar/:from/:to`,element:(0,K.jsx)(x1,{})})]})})})}),S1=e(T()),C1={edit:`edit`,sendmore:`sendmore`,cancel:`cancel`,schedule:`schedule`},ywe=(0,yc.default)((e,t,n)=>{let r=(r,i,a)=>e===r&&t===i&&n===a;return r(4,1,1)||r(3,1,1)||r(3,1,2)?C1.edit:r(3,1,3)?C1.cancel:r(4,4,1)||r(3,4,1)?C1.sendmore:r(3,4,2)?C1.edit:r(3,4,3)?C1.cancel:r(4,8,1)||r(3,8,1)||r(3,8,2)?C1.edit:r(3,8,3)?C1.cancel:r(3,3,2)?C1.edit:r(3,3,3)?C1.cancel:r(3,2,2)?C1.edit:r(3,2,3)?C1.cancel:t===3||t===8?C1.edit:`sc
2020hedule`},(e,t,n)=>`${e}-${t}-${n}`);function bwe(e,t){let n=!1;return e===W.StateDeclined&&t===1&&(n=U(`calendartile.modes.sendmore`)),e===W.StateCleanerCancelled&&t===1&&(n=U(`calendartile.modes.sendnew`)),e===W.StateCancelled&&t===1&&(n=U(`calendartile.modes.sendnew`)),n}var w1=({isRed:e=!1,onClick:t=null,calendarEvent:n,isClickable:r=!1,handleClickBtn:i=()=>{},globalPropertyPictureUrl:a=null})=>{let{trackClick:o}=nT(`TodosElements`),s=Qte(n)||U(`todos.job`),c=Xte(n),l=Zte(n),u=Jte(n),d=(0,B.useMemo)(()=>Kte(n),[n.startTime,n.timeZone]),f=(0,B.useMemo)(()=>qte(n),[n.endTime,n.timeZone]),p=c?`type-full-cancelled`:`type-full-primary`,m=bwe(n.status,n.eventStatus);return(0,K.jsxs)(lj,{onClick:()=>{r&&t&&(o(`todos_element_main_click`,{action:`click_tile`}),t())},isRed:e,isClickable:r,children:[(0,K.jsxs)(uj,{children:[(0,K.jsxs)(dj,{children:[(0,K.jsxs)(fj,{width:`76px`,children:[(0,K.jsx)(mj,{modifier:[`txt--l6m`,`color--black`],children:s}),(0,K.jsxs)(mj,{modifier:[`txt--l7`,`color--red`,`mtop-6`],children:[c&&(0,K.jsx)(`span`,{children:U(`calendartile.cancelled`)}),l&&(0,K.jsx)(`span`,{children:U(`calendartile.changed`)})]})]}),(0,K.jsxs)(fj,{width:`300px`,extraStyles:{display:`flex`,alignItems:`flex-start`,gap:`12px`},children:[(0,K.jsx)(I,{sx:{width:48,height:48,minWidth:48,borderRadius:`8px`,overflow:`hidden`,flexShrink:0,"& > div":{width:`100%`,height:`100%`,borderRadius:`8px`}},children:(0,K.jsx)(Qd,{type:`community`,text:Ko(n.propertyTitle),picture:a})}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(mj,{modifier:[`txt--l7m`,`color--black`],children:n.propertyTitle}),(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--black`,`mtop-6`],children:n.propertyAddress}),(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--grey`,`mtop-6`],children:n.bookingInfoFormatted})]})]}),e&&u&&(0,K.jsxs)(fj,{width:`130px`,children:[(0,K.jsx)(mj,{modifier:[`txt--l7m`,`color--red`],children:U(n.jobRequestStatusString)}),(0,K.jsxs)(mj,{modifier:[`txt--l7`,`color--red`,`mtop-6`],children:[d?.format(`LT`),` -`,f?.format(`LT`)]}),(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--red`,`mtop-6`],children:u.cleanerName})]})]}),(0,K.jsx)(fj,{width:`226px`,noPadding:!0,children:(0,K.jsx)(ib,{handleClick:i,mode:ywe(n.type,n.status,n.eventStatus),size:`medium`,title:m,data:n,mainBtnConfig:[p,`size-medium`,`flex-1`,`miwidth-130`],subBtnConfig:[`type-border-grey`,`size-medium`,`flex-1`,`miwidth-1`]})})]}),e&&(0,K.jsx)(pj,{})]})};w1.propTypes={isRed:V.default.bool,onClick:V.default.func,calendarEvent:V.default.shape({propertyTitle:V.default.string,propertyAddress:V.default.string,bookingInfoFormatted:V.default.string,status:V.default.number,eventStatus:V.default.number,type:V.default.number,startTime:V.default.string,endTime:V.default.string,timeZone:V.default.string,payload:V.default.shape({trigger:V.default.shape({title:V.default.string}),jobRequest:V.default.shape({cleanerName:V.default.string})}),jobRequestStatusString:V.default.string}).isRequired,isClickable:V.default.bool,handleClickBtn:V.default.func,globalPropertyPictureUrl:V.default.string};var T1=({calendarEvent:e,handleClickBtn:t=()=>{},globalPropertyPictureUrl:n=null})=>(0,K.jsx)(lj,{children:(0,K.jsxs)(uj,{children:[(0,K.jsxs)(dj,{children:[(0,K.jsxs)(fj,{width:`76px`,children:[(0,K.jsx)(mj,{modifier:[`txt--l6m`,`color--black`],children:e.reminderTitle||U(`todos.reminder.title`)}),(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--grey`,`mtop-6`],children:U(`properties.kind.recurring`)})]}),(0,K.jsxs)(fj,{width:`300px`,extraStyles:{display:`flex`,alignItems:`flex-start`,gap:`12px`},children:[(0,K.jsx)(I,{sx:{width:48,height:48,minWidth:48,borderRadius:`8px`,overflow:`hidden`,flexShrink:0,"& > div":{width:`100%`,height:`100%`,borderRadius:`8px`}},children:(0,K.jsx)(Qd,{type:`community`,text:Ko(e.propertyTitle),picture:n})}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(mj,{modifier:[`txt--l7m`,`color--black`],children:e.propertyTitle}),(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--black`,`mtop-6`],children:e.propertyAddress})]})]})]}),(0,K.jsx)(fj,{width:`320px`,noPadding:!0,children:(0,K.jsxs)(I,{sx:{display:`flex`,gap:1,justifyContent:`flex-end`,width:`100%`},children:[(0,K.jsx)(q,{"data-testid":`reminder_attach`,onClick:t(`attach`,e),types:[`type-full-primary`,`size-medium`,`flex-1`],children:U(`todos.reminder.attach`)}),(0,K.jsx)(q,{"data-testid":`reminder_ignore`,onClick:t(`ignore`,e),types:[`type-border-grey`,`size-medium`],children:U(`todos.reminder.ignore`)})]})})]})});T1.propTypes={calendarEvent:V.default.shape({propertyTitle:V.default.string,propertyAddress:V.default.string,reminderTitle:V.default.string}).isRequired,handleClickBtn:V.default.func,globalPropertyPictureUrl:V.default.string};var E1=e=>e.todos,D1=e=>E1(e).pagination,O1=e=>E1(e).events,xwe=e=>E1(e).jobs,Swe=e=>E1(e).stripeSPStatus,k1=`YYYYMMDD`;function Cwe(e,t){let n=e=>(0,z.default)(e).format(k1),r=1,i=0,a=`${n(e)}`;for(;r<=7;){let e=r===1?0:1;a=n((0,z.default)(a,[k1]).add(e,`day`)),t[a]&&(i+=1),r+=1}return i}var wwe=()=>!0;function Twe(e,t=wwe){return(0,If.default)(e,(e,n)=>{let r=(0,z.default)(n.startTime).tz(n.timeZone).format(k1);return t(r,n)&&((0,Lb.default)(e.filtered[r])?e.filtered[r].push(n):e.filtered[r]=[n],e.length+=1),e},{filtered:{},length:0})}var Ewe=A(O1,e=>{let t=Twe((0,bo.default)((0,gx.default)(e),[`startTime`],[`asc`]),(e,t)=>e>=(0,z.default)().format(k1)&&!t.deleted&&t.needsCTA);return{grouped:t.filtered,hasNextSeven:Cwe((0,z.default)(),t.filtered)>0,isEmpty:t.length===0}}
2020),Dwe=({scheduledStartTime:e,scheduledEndTime:t,duration:n,timeZone:r})=>{let i=e,a=t||(0,z.default)(e).clone().add(n,`minutes`);return i=(0,z.default)(i).tz(r).format(`LT`),a=(0,z.default)(a).tz(r).format(`LT`),`${i} - ${a}`},Owe=({startTimeType:e,timeZone:t,scheduledStartTime:n,scheduledEndTime:r})=>e===`FLEXIBLE`?(()=>{let e=n,i=r;return e=(0,z.default)(e).tz(t).format(`ll`),i=(0,z.default)(i).tz(t).format(`ll`),`${e} - ${i}`})(n,r,t):(0,z.default)(n).tz(t).format(`ll`),kwe=e=>{switch(e){case`accepted`:return`light-blue`;case`progress`:return`pink`;case`finished`:return`green`;case`delayed`:return`orange`;case`pending`:return`default`;case`cancelled`:return`red`;default:return`default`}},Awe=({onClick:e,jobEvent:t,isClickable:n,handleClickBtn:r=()=>{},stripeSPstatus:i})=>{let{trackClick:a}=nT(`TodosJobsElements`),o=(0,G.default)(t,[`job`,`title`])||U(`todos.job`),s=t?.property,c=s?.timeZone,l=t?.isSuggested&&!!s.proMarketId,u=l&&!i,{startTimeType:d,scheduledEndTime:f,scheduledStartTime:p,duration:m}=t?.job||{},h=()=>{n&&e&&!u&&e()},g,_;return t?.status===`acceptedByOtherCleaner`?(g=`cancelled`,_=U(`jobstatus.accepted_by_other_user`)):t?.status===`viewed`?(g=`pending`,_=U(`jobstatus.pending`)):(g=t?.status,_=U(`jobstatus.${g}`)),(0,K.jsx)(lj,{onClick:h,isRed:t?.needsCTA,isClickable:!u&&n,children:(0,K.jsxs)(uj,{children:[(0,K.jsxs)(dj,{children:[(0,K.jsx)(fj,{width:`80px`,children:(0,K.jsxs)(mj,{modifier:[`txt--l6m`,`color--black`],children:[o,` `,l&&(0,K.jsx)(ef,{small:!0})]})}),(0,K.jsxs)(fj,{width:`300px`,children:[(0,K.jsx)(mj,{modifier:[`txt--l7m`,`color--black`],children:s?.title}),(0,K.jsxs)(mj,{modifier:[`txt--l7`,`color--black`,`mtop-6`],children:[s?.street,` `,s?.city]}),(0,K.jsxs)(mj,{modifier:[`txt--l7`,`color--grey`,`mtop-6`],children:[Owe({scheduledStartTime:p,scheduledEndTime:f,duration:m,timeZone:c,startTimeType:d}),`: \xA0`,Dwe({scheduledStartTime:p,scheduledEndTime:f,duration:m,timeZone:c})]})]}),(0,K.jsx)(fj,{width:`180px`,children:(0,K.jsx)(Nx,{text:_,color:kwe(g),size:`medium`})})]}),t?.needsCTA?(0,K.jsx)(fj,{width:`90px`,noPadding:!0,children:(0,K.jsx)(I,{sx:{display:`flex`,gap:`6px`,marginTop:`8px`},children:(0,K.jsx)(q,{types:[`type-border-delayed`,`size-medium`,`flex-1`],onClick:e=>{a(`todos_jobs_dismiss`,{action:`dismiss`}),r(`dismissJob`,t)(e)},children:`Dismiss`})})}):(0,K.jsx)(fj,{width:`225px`,noPadding:!0,children:(0,K.jsxs)(I,{sx:{display:`flex`,gap:`6px`,marginTop:`8px`},children:[(0,K.jsx)(Ig,{title:u?`Please Accept the job from mobile app`:``,children:(0,K.jsx)(q,{types:u?[`type-full-primary`,`size-medium`,`flex-1`,`miwidth-130`,`disabled`]:[`type-full-primary`,`size-medium`,`flex-1`,`miwidth-130`],"data-id":`acceptJob`,onClick:u?void 0:e=>{a(`todos_jobs_accept`,{action:`accept`}),r(`acceptJob`,t)(e)},children:`Accept`})}),(0,K.jsx)(q,{types:[`type-border-grey`,`size-medium`,`flex-1`,`miwidth-1`],"data-id":`declineJob`,onClick:e=>{a(`todos_jobs_decline`,{action:`decline`}),r(`declineJob`,t)(e)},children:`Decline`})]})})]})})},jwe=PC;function A1({children:e=null}){let t=xe(),{trackClick:n}=nT(`TodosContainer`),{grouped:r,jobs:i,isLoaded:a,isErrored:o,isEmpty:s,hasNextSeven:c,hasMoreData:l,stripeSPstatus:u,properties:d}=j(e=>{let t=bw(`todos`),n=xwe(e),r=Swe(e),i=D1(e)?.hasMoreData,a=i===void 0?!0:i,o=jwe(e);return{...Ewe(e),jobs:n,...t(e),hasMoreData:a,stripeSPstatus:r,properties:o}}),f=j(fB($a.FEATURE_FLAG_JOB_FORWARDING));(0,B.useEffect)(()=>{rme()},[]),(0,B.useEffect)(()=>(su(`titles.todos`)(),t(SZ(!0,(0,z.default)().subtract(1,`day`).toDate())),()=>{t(SZ(void 0,!1))}),[t]),(0,B.useEffect)(()=>{let e,n=async()=>{try{f&&(await t(wZ()),e=setTimeout(n,15e3))}catch(e){R.default.error(`Failed to fetch todosJobs:`,e)}};return n(),()=>{e&&clearTimeout(e)}},[t,f]);let p=e=>!!(e&&(e.status===W.StateCleanerCancelled||e.status===W.StateDeclined||e.eventStatus===2||e.eventStatus===3)),m=(e,r)=>i=>{e!==`clicktile`&&e!==`clicktileJob`&&i.stopPropagation(),R.default.info(`TodosContainer - handleClick`,{mode:e,data:r}),n(`todos_${e}`,{action:e}),t(EZ(e,r))},h=e=>(0,K.jsxs)(I,{sx:{maxWidth:`1216px`,margin:`0 auto`}
2020,children:[(0,K.jsx)(gm,{}),(0,K.jsx)(Kb,{children:U(`Jobs Received`)}),(0,K.jsx)(gm,{}),(0,K.jsx)(Qr,{children:(0,H.default)(e,e=>(0,K.jsx)(gn.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{type:`tween`,duration:.5,ease:`easeInOut`},children:(0,K.jsx)(Awe,{onClick:m(`clicktileJob`,e),handleClickBtn:m,isClickable:!e?.needsCTA,jobEvent:e,stripeSPstatus:u})},e.id||e.objectId))})]}),g=(e,t)=>(0,K.jsxs)(I,{sx:{maxWidth:`1216px`,margin:`0 auto`},children:[(0,K.jsx)(gm,{}),(0,K.jsx)(Kb,{children:(0,z.default)(t,[`YYYYMMDD`]).format(`dddd, D MMMM, YYYY`)}),(0,K.jsx)(gm,{}),(0,K.jsx)(Qr,{children:(0,H.default)(e,e=>(0,K.jsx)(gn.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{type:`tween`,duration:.5,ease:`easeInOut`},children:e.isRecurringReminder?(0,K.jsx)(T1,{handleClickBtn:m,calendarEvent:e,globalPropertyPictureUrl:d?.[e.propertyId]?.pictureUrl}):(0,K.jsx)(w1,{onClick:m(`clicktile`,e),handleClickBtn:m,isClickable:p(e)&&e.jobRequestResolved,calendarEvent:e,isRed:p(e),globalPropertyPictureUrl:d?.[e.propertyId]?.pictureUrl})},e.objectId))})]},t),_=()=>{a&&t(CZ(!0))},v=()=>(0,K.jsxs)(I,{sx:{maxWidth:`1216px`,margin:`0 auto`},children:[(0,K.jsx)(gm,{}),(0,K.jsx)(J,{height:24,width:220,variant:`rounded`,style:{marginBottom:12}}),(0,K.jsx)(gm,{}),[1,2].map(e=>(0,K.jsxs)(I,{sx:{background:`var(--surface-base, #fff)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-md, 10px)`,minHeight:`72px`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,p:`12px 16px 12px 26px`,mb:`8px`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`row`,flex:1,alignItems:`center`},children:[(0,K.jsx)(I,{sx:{width:`76px`,pr:`55px`,boxSizing:`content-box`},children:(0,K.jsx)(J,{height:16,width:65,variant:`rounded`})}),(0,K.jsxs)(I,{sx:{width:`300px`,pr:`55px`,boxSizing:`content-box`,display:`flex`,alignItems:`flex-start`,gap:`12px`},children:[(0,K.jsx)(J,{variant:`rounded`,width:48,height:48,sx:{borderRadius:`8px`,flexShrink:0}}),(0,K.jsxs)(I,{sx:{flex:1},children:[(0,K.jsx)(J,{height:14,width:120,style:{marginBottom:6}}),(0,K.jsx)(J,{height:12,width:160,style:{marginBottom:6}}),(0,K.jsx)(J,{height:12,width:180})]})]})]}),(0,K.jsxs)(I,{sx:{width:`226px`,display:`flex`,gap:1,justifyContent:`flex-end`},children:[(0,K.jsx)(J,{height:36,width:110,variant:`rounded`,sx:{borderRadius:`8px`}}),(0,K.jsx)(J,{height:36,width:70,variant:`rounded`,sx:{borderRadius:`8px`}})]})]},e))]},0),y=()=>o?null:(0,K.jsx)(re,{pageStart:0,loadMore:_,hasMore:l,loader:v(),useWindow:!1,children:(0,K.jsx)(`div`,{role:`tree`,children:(0,H.default)(r,(e,t)=>(0,K.jsx)(`div`,{children:g(e,t)},t))})}),b=!c&&s&&a&&l,x=s&&a&&!l;return f&&!(0,S1.default)(i)&&x&&(x=!1),(0,K.jsxs)(Nf,{moduleName:`todos`,customDescription:U(`todos.error_load`)||`Unable to load your to-do list. Please try again.`,children:[(0,K.jsx)(M$,{currentPage:`todos`,disablePreloadLoader:!0,children:(0,K.jsx)(Yj,{children:(0,K.jsx)(Zj,{children:(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,height:`100%`,overflow:`hidden`},children:[(0,K.jsx)(Om,{title:U(`todos.headline`),description:U(`todos.description`)}),(0,K.jsx)(I,{sx:{flex:1,overflow:`hidden`,backgroundColor:`var(--color-bg-jobrequest)`,position:`relative`},children:(0,K.jsxs)(I,{sx:{position:`absolute`,top:0,right:0,left:0,bottom:0,overflowY:`scroll`,overflowX:`hidden`,WebkitOverflowScrolling:`touch`},children:[f&&!(0,S1.default)(i)&&(0,K.jsx)(Mw,{hasAccessFormatter:e=>e.canAcceptJobs,render:e=>e&&h(i)}),b&&(0,K.jsx)(I,{sx:{height:`148px`,boxSizing:`content-box`,padding:`44px 0`},children:(0,K.jsx)(MM,{type:`noeventsin7days`})}),x&&(0,K.jsx)(MM,{type:`noeventsatall`}),y()]})})]})})})}),(0,K.jsx)(p1,{source:`todos`}),e]})}A1.propTypes={grouped:V.default.shape({}),isLoaded:V.default.bool,isErrored:V.default.bool,isEmpty:V.default.bool,hasNextSeven:V.default.bool,hasMoreData:V.default.bool,children:V.default.node},Qn();var Mwe=e=>(0,K.jsx)($K,{...e}),Nwe=()=>{let{propertyId:e,bookingId:t}=Rn(),n=Vn();return!e||!t?null:(0,K.jsx)(jy,{bookingId:t,propertyId:e,handleCancel:()=>n(`/todos`),renderChildren:Mwe,show:!0})},Pwe=()=>(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(N,{element:(0,K.jsx)(UB,{}),children:(0,K.jsx)(N,{element:(0,K.jsx)(KB,{}),children:(0,K.jsx)(N,{element:(0,K.jsx)(sV,{feature:s_.webapp}),children:(0,K.jsx)(N,{path:`todos`,element:(0,K.jsx)(A1,{}),children:(0,K.jsx)(N,{path:`booking/:propertyId/:bookingId`,element:(0,K.jsx)(Nwe,{})})})})})})}),j1=({activeId:e=void 0,goToFunc:t})=>{let n=xe(),r=kw(`properties`,`properties`,PC),i=FC,a=yw,{result:o,searchQuery:s}=j(r),c=j(i),l=j(a),u=j(xW),d=j(LC),f=j(e=>e.globalReducer.persistent?.properties?.lastfetch!=null),p=u||[],m=Ho(o),h=s?m:Lo(m),{allPropertyTags:g,selectedTagFilters:_,setSelectedTagFilters:v,tagFilteredList:y}
2020=xY((0,B.useMemo)(()=>Object.values(d||{}),[d]),h,{storageKey:Mve,isTagSourceLoaded:f}),b=m.length>1||!!s,x=e=>{n($P(`properties`,e))},S=({key:e,style:t,row:n,ctx:{activeId:r,user:i,goToPropertyBound:a,collData:o}})=>{let s=n.objectId===r,c=!ic(n.address,n),l=lc(n.ownerRole,i),u=uc(n.objectId,o),d=n.failedAtRecurly,f=!1;p?.length>0&&(f=!!p.find(({propertyId:e})=>e===n.objectId));let m=c||l||u||d?(0,K.jsx)(bA,{collaboratorData:o,id:n.objectId,propertyOwnerName:dc(n),isSharingProperty:u,isSharedProperty:l,isInactiveProperty:d,incompleteAddress:c}):null,h=n.title!==n.address.street&&oc(n.address)||void 0;return(0,K.jsx)(Kj,{"data-testid":`propertysidebar`,type:`property`,noHover:!0,style:t,onClick:a(n.objectId),active:s,title:n.title,pretitle:h,subTitle:sc(n.address),picture:{text:Ko(n.title),picture:n.pictureUrl},rightIcon:m,alertIcon:f,proMarketProperty:n.proMarketProperty,isInactiveProperty:d},e)},C=(e,t,n,r,i,a=U(`properties.no_result`))=>{let o=e=>()=>n(e);if(r&&e.length===0)return(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.NoRes,{children:a})});let s=e?.findIndex?.(e=>e.objectId===t);return(0,K.jsx)(Ft,{children:({height:n,width:r})=>(0,K.jsx)(ui,{height:n,rowHeight:68,rowCount:e.length,rowRenderer:Co({data:e,handler:S,ctx:{goToPropertyBound:o,user:i,activeId:t,collData:l}}),width:r,scrollToIndex:s>=0?s:void 0})})},w=U(s?`properties.no_result`:`properties.no_filter_results`);return(0,K.jsxs)(Pj,{children:[b&&(0,K.jsxs)(I,{sx:{pr:1,display:`flex`,alignItems:`center`},children:[(0,K.jsx)(I,{sx:{flex:1,minWidth:0,overflow:`hidden`},children:(0,K.jsx)($f,{blank:!0,placeholder:U(`properties.search_for_address`,{n:y.length}),value:s,iconLocation:`left`,onChange:x})}),(0,K.jsx)(VA,{tags:g,selectedTags:_,onChange:v})]}),b&&(0,K.jsx)(Pj.Hr,{}),(0,K.jsx)(I,{sx:{flex:1},children:C(y,e,t,!!s||_.length>0,c,w)})]})};j1.propTypes={activeId:V.default.string,goToFunc:V.default.func.isRequired};function Fwe(){let e=kw(`properties`,`checklist_clone_search`,PC),t=FC;return(n,r)=>{let{searchQuery:i,result:a}=e(n),o=mV(n,r)||{},s=PC(n,r);return{searchQuery:i,searchRes:a,isOpen:o.isOpen,isSubmitting:o.mode!==0,isLoading:!s||Object.keys(s).length===0,checklistId:o.selectedChecklistId,checklistTitle:o.checklistTitle,selectedChecklists:o.selected,properties:s,currentUser:t(n,r)}}}var Iwe=Nt(Fwe,{setCloneChecklist:AU,setSearchQuery:$P,multiCloneSaga:jU})(X$);Qn();var M1=e=>{let t=e.canCreateProperties,n=e.canUpgradeToCreateProperties;return{canCreateProperties:t,canUpgradeToCreateProperties:n,canShowCreatePropertyAction:t||n}};function N1(){let e=ir(),t=Rn(),n=xe(),{trackClick:r}=nT(`PropertyContainer`),i=t?.propertyDetailView,a=j(PC),o=j(FC),s=j(hw)===c_.LOADED,c=j(_W),l=j(vW),u=j(yW);(0,B.useEffect)(()=>{n($P(`properties`,``))},[n]),(0,B.useEffect)(()=>{su(e.pathname.includes(`/properties/new`)?`titles.new_property`:e.pathname.includes(`/edit`)?`titles.edit_property`:`titles.property`)(),n(cq()),ame()},[n,e.pathname]);let d=(0,B.useMemo)(()=>Uo((0,gx.default)(a)).filter(e=>cc(e.ownerRole,o)),[a,o]).length>=2,f=(0,B.useCallback)(()=>{r(`merge_button`,{context:`properties_header`}),n(pq({isOpen:!0}))},[n,r]),p=(0,B.useCallback)((e=!1)=>{if(e){r(`upgrade_subscription`,{source:`property_creation`}),n(oz(`default`,{defaultKind:`upgradeplan`},`createProperty`));return}n(kq())},[n,r]),m=(0,B.useMemo)(()=>[{key:`merge_properties`,"data-testid":`button_merge_properties_menu_item`,name:U(`account.merge`),onClick:f}],[f]),h=e=>{let t=cA[i]||cA.jobrequest,r=t(e);r?n(aF(r)):R.default.warn(`Did not find route mapping in PropertyContainer`,e,t(e))};return(0,K.jsx)(M$,{currentPage:`properties`,children:(0,K.jsxs)(Nf,{moduleName:`properties`,customDescription:U(`properties.error_load`)||`Unable to load properties. Please try again.`,children:[(0,K.jsx)(Yj,{children:(0,K.jsx)(Zj,{children:(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,height:`100%`,overflow:`hidden`},children:[(0,K.jsx)(Om,{title:U(`properties.properties_title`),action:(0,K.jsx)(Mw,{hasAccessFormatter:M1,render:({canCreateProperties:e,canShowCreatePropertyAction:t,canUpgradeToCreateProperties:n})=>t&&(0,K.jsxs)(I,{sx:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,justifyContent:`flex-end`,gap:1},children:[(0,K.jsx)(q,{"data-testid":`button_new_property_header`,onClick:()=>p(n),types:[`type-full-primary`,`size-medium`],children:U(`properties.new_properties`)}),e&&d&&(0,K.jsx)(I,{sx:{display:{xs:`none`,md:`block`}},children:(0,K.jsx)(Lg,{popoverContent:e=>(0,K.jsx)(Ad,{closePopover:e.closePopup,items:m}),hasArrow:!0,arrowPosition:{horizontal:`right`,vertical:`top`},width:200,children:(0,K.jsx)(br,{"aria-label":U(`account.merge`),"data-testid":`button_merge_properties_header`,size:`small`,title:U(`account.merge`),sx:{bgcolor:`var(--color-gray-200)`,"&:hover":{bgcolor:`var(--color-gray-300)`}},children:(0,K.jsx)(Y.IcMoreGrey,{height:`20px`,width:`20px`})})})})]})})}),(0,K.jsx)(I,{sx:{flex:1,overflow:`hidden`,backgroundColor:`var(--color-bg-jobrequest)`,position:`relative`,borderRadius:`12px 12px 0 0`,mx:1},children:e.pathname===Z.newProperties||t.id?(0,K.jsxs)(Uj,{children:[(0,K.jsx)(zj,{children:(0,K.jsx)(j1,{goToFunc:h,routeName:i,activeId:t.id})}),(0,K.jsx)(Wj,{grey:!0,children:(0,K.jsx)(kn,{})})]}):Uo((0,gx.default)(a)).length===0?s?(0,K.jsx)(Mw,{hasAccessFormatter:M1,render:({canShowCreatePropertyAction:e,canUpgradeToCreateProperties:t})=>(0,K.jsx)(MM,{type:`noproperties`,showAction:e,onClick:()=>p(t)})}):(0,K.jsx)(xf,{}):(0,K.jsxs)(Uj,{children:[(0,K.jsx)(zj,{children:(0,K.jsx)(j1,{goToFunc:h,routeName:i,activeId:void 0})}),(0,K.jsx)(Wj,{grey:!0,children:(0,K.jsx)(MM,{type:`notselected`})})]})})]})})}),(0,K.jsx)(jg,{show:c,"data-testid":`delete-property-loading`}),(0,K.jsx)(Dg,{message1:U(`properties.delete_fail_property_head`),message2:u||U(`properties.delete_fail_property`),onClose:()=>n(fq()),show:l}),(0,K.jsx)(Iwe,{})]})})}var P1={"property-detail__checklistrow":`_property-detail__checklistrow_1jhx7_3`,propertyDetailChecklistrow:`_property-detail__checklistrow_1jhx7_3`,"property-detail__checklistcol":`_property-detail__checklistcol_
20201jhx7_10`,propertyDetailChecklistcol:`_property-detail__checklistcol_1jhx7_10`,"property-detail__loadingcheck":`_property-detail__loadingcheck_1jhx7_14`,propertyDetailLoadingcheck:`_property-detail__loadingcheck_1jhx7_14`,"property-detail-header":`_property-detail-header_1jhx7_23`,propertyDetailHeader:`_property-detail-header_1jhx7_23`,"property-detail-address":`_property-detail-address_1jhx7_32`,propertyDetailAddress:`_property-detail-address_1jhx7_32`,"property-detail-picture__container":`_property-detail-picture__container_1jhx7_37`,propertyDetailPictureContainer:`_property-detail-picture__container_1jhx7_37`,"property-detail-picture":`_property-detail-picture_1jhx7_37`,propertyDetailPicture:`_property-detail-picture_1jhx7_37`,"property-detail__icaltxt":`_property-detail__icaltxt_1jhx7_77 input-error`,propertyDetailIcaltxt:`_property-detail__icaltxt_1jhx7_77 input-error`,"property-detail__icaltxt-link":`_property-detail__icaltxt-link_1jhx7_82`,propertyDetailIcaltxtLink:`_property-detail__icaltxt-link_1jhx7_82`,"property-detail__icallink":`_property-detail__icallink_1jhx7_86 cut-txt`,propertyDetailIcallink:`_property-detail__icallink_1jhx7_86 cut-txt`,"property-detail__icaltitle":`_property-detail__icaltitle_1jhx7_93`,propertyDetailIcaltitle:`_property-detail__icaltitle_1jhx7_93`,"property-detail__icaltrash":`_property-detail__icaltrash_1jhx7_100`,propertyDetailIcaltrash:`_property-detail__icaltrash_1jhx7_100`,"property-detail-picture__inner":`_property-detail-picture__inner_1jhx7_104`,propertyDetailPictureInner:`_property-detail-picture__inner_1jhx7_104`,"property-jobs__no-result":`_property-jobs__no-result_1jhx7_114 label`,propertyJobsNoResult:`_property-jobs__no-result_1jhx7_114 label`,"property-detail__icalinputwrap":`_property-detail__icalinputwrap_1jhx7_126`,propertyDetailIcalinputwrap:`_property-detail__icalinputwrap_1jhx7_126`,"property-detail__icalinputwrap-title":`_property-detail__icalinputwrap-title_1jhx7_130`,propertyDetailIcalinputwrapTitle:`_property-detail__icalinputwrap-title_1jhx7_130`,"property-detail__icalinputwrap-link":`_property-detail__icalinputwrap-link_1jhx7_133`,propertyDetailIcalinputwrapLink:`_property-detail__icalinputwrap-link_1jhx7_133`,"property-detail-flex":`_property-detail-flex_1jhx7_137`,propertyDetailFlex:`_property-detail-flex_1jhx7_137`,"property-detail-flex-1":`_property-detail-flex-1_1jhx7_141`,propertyDetailFlex1:`_property-detail-flex-1_1jhx7_141`,"property-detail-flex-2":`_property-detail-flex-2_1jhx7_153`,propertyDetailFlex2:`_property-detail-flex-2_1jhx7_153`,property__cctxt:`_property__cctxt_1jhx7_161 text-l7`,propertyCctxt:`_property__cctxt_1jhx7_161 text-l7`,property__ccloading:`_property__ccloading_1jhx7_169`,propertyCcloading:`_property__ccloading_1jhx7_169`,"property__ccborder--top":`_property__ccborder--top_1jhx7_177`,propertyCcborderTop:`_property__ccborder--top_1jhx7_177`,"property__ccborder--bottom":`_property__ccborder--bottom_1jhx7_181`,propertyCcborderBottom:`_property__ccborder--bottom_1jhx7_181`,property__ccempty:`_property__ccempty_1jhx7_188`,propertyCcempty:`_property__ccempty_1jhx7_188`,property__ccmodal:`_property__ccmodal_1jhx7_198`,propertyCcmodal:`_property__ccmodal_1jhx7_198`,ccmodal__header:`_ccmodal__header_1jhx7_205`,ccmodalHeader:`_ccmodal__header_1jhx7_205`,ccmodal__title:`_ccmodal__title_1jhx7_215`,ccmodalTitle:`_ccmodal__title_1jhx7_215`,ccmodal__close:`_ccmodal__close_1jhx7_222`,ccmodalClose:`_ccmodal__close_1jhx7_222`,"provider-list":`_provider-list_1jhx7_245`,providerList:`_provider-list_1jhx7_245`,"provider-card":`_provider-card_1jhx7_258`,providerCard:`_provider-card_1jhx7_258`,"provider-card__info":`_provider-card__info_1jhx7_277`,providerCardInfo:`_provider-card__info_1jhx7_277`,"provider-card__name":`_provider-card__name_1jhx7_282`,providerCardName:`_provider-card__name_1jhx7_282`,"provider-card__stats":`_provider-card__stats_1jhx7_289`,providerCardStats:`_provider-card__stats_1jhx7_289`,"provider-card__stat-value":`_provider-card__stat-value_1jhx7_296`,providerCardStatValue:`_provider-card__stat-value_1jhx7_296`,"provider-card__dot":`_provider-card__dot_1jhx7_300`,providerCardDot:`_provider-card__dot_1jhx7_300`,"provider-card__btn":`_provider-card__btn_1jhx7_3
202008`,providerCardBtn:`_provider-card__btn_1jhx7_308`,"property-detail__eventtxt":`_property-detail__eventtxt_1jhx7_328`,propertyDetailEventtxt:`_property-detail__eventtxt_1jhx7_328`,"property-detail__add-card":`_property-detail__add-card_1jhx7_335`,propertyDetailAddCard:`_property-detail__add-card_1jhx7_335`,"property-detail__add-card-icon":`_property-detail__add-card-icon_1jhx7_359`,propertyDetailAddCardIcon:`_property-detail__add-card-icon_1jhx7_359`,"property-detail-checklisttab__loading--container":`_property-detail-checklisttab__loading--container_1jhx7_378`,propertyDetailChecklisttabLoadingContainer:`_property-detail-checklisttab__loading--container_1jhx7_378`,"property-detail-checklisttab__loading--card":`_property-detail-checklisttab__loading--card_1jhx7_385`,propertyDetailChecklisttabLoadingCard:`_property-detail-checklisttab__loading--card_1jhx7_385`,"property-detail-checklisttab__loading--card-inner":`_property-detail-checklisttab__loading--card-inner_1jhx7_389`,propertyDetailChecklisttabLoadingCardInner:`_property-detail-checklisttab__loading--card-inner_1jhx7_389`,"property-detail--inactive-property-message-container":`_property-detail--inactive-property-message-container_1jhx7_395`,propertyDetailInactivePropertyMessageContainer:`_property-detail--inactive-property-message-container_1jhx7_395`,"property-detail--inactive-property-message":`_property-detail--inactive-property-message_1jhx7_395`,propertyDetailInactivePropertyMessage:`_property-detail--inactive-property-message_1jhx7_395`,"property-detail-header--overlay":`_property-detail-header--overlay_1jhx7_412`,propertyDetailHeaderOverlay:`_property-detail-header--overlay_1jhx7_412`,"property-detail-header--propertyMessage":`_property-detail-header--propertyMessage_1jhx7_423`,propertyDetailHeaderPropertyMessage:`_property-detail-header--propertyMessage_1jhx7_423`,"property-detail--subscriptionLink":`_property-detail--subscriptionLink_1jhx7_426`,propertyDetailSubscriptionLink:`_property-detail--subscriptionLink_1jhx7_426`,"propertyDetails_autoScheduler--state-change-card":`_propertyDetails_autoScheduler--state-change-card_1jhx7_432`,propertyDetailsAutoSchedulerStateChangeCard:`_propertyDetails_autoScheduler--state-change-card_1jhx7_432`,"propertyDetails_autoScheduler--card-content":`_propertyDetails_autoScheduler--card-content_1jhx7_447`,propertyDetailsAutoSchedulerCardContent:`_propertyDetails_autoScheduler--card-content_1jhx7_447`,"propertyDetails_autoScheduler--actionContainer":`_propertyDetails_autoScheduler--actionContainer_1jhx7_450`,propertyDetailsAutoSchedulerActionContainer:`_propertyDetails_autoScheduler--actionContainer_1jhx7_450`,"propertyDetails_autoScheduler--divider":`_propertyDetails_autoScheduler--divider_1jhx7_455`,propertyDetailsAutoSchedulerDivider:`_propertyDetails_autoScheduler--divider_1jhx7_455`,"propertyDetails_autoScheduler--header":`_propertyDetails_autoScheduler--header_1jhx7_460`,propertyDetailsAutoSchedulerHeader:`_propertyDetails_autoScheduler--header_1jhx7_460`,"propertyDetails-autoSchedulerSection":`_propertyDetails-autoSchedulerSection_1jhx7_466`,propertyDetailsAutoSchedulerSection:`_propertyDetails-autoSchedulerSection_1jhx7_466`,"propertyDetails-autoSchedulerInnerSection":`_propertyDetails-autoSchedulerInnerSection_1jhx7_469`,propertyDetailsAutoSchedulerInnerSection:`_propertyDetails-autoSchedulerInnerSection_1jhx7_469`,"propertyDetails_autoScheduler--title":`_propertyDetails_autoScheduler--title_1jhx7_472`,propertyDetailsAutoSchedulerTitle:`_propertyDetails_autoScheduler--title_1jhx7_472`,"propertyDetails_autoScheduler--dataList":`_propertyDetails_autoScheduler--dataList_1jhx7_477`,propertyDetailsAutoSchedulerDataList:`_propertyDetails_autoScheduler--dataList_1jhx7_477`,"propertyDetails_autoScheduler--dataHead":`_propertyDetails_autoScheduler--dataHead_1jhx7_495`,propertyDetailsAutoSchedulerDataHead:`_propertyDetails_autoScheduler--dataHead_1jhx7_495`,"propertyDetails_autoScheduler--dataValue":`_propertyDetails_autoScheduler--dataValue_1jhx7_500`,propertyDetailsAutoSchedulerDataValue:`_propertyDetails_autoScheduler--dataValue_1jhx7_500`,"propertyDetails_autoScheduler--dataHover":`_propertyDetails_autoScheduler--dataHover_1jhx7_505`,propertyDetailsAutoSchedulerDataHover:`_propertyDetails_autoScheduler--dataHover_1jhx7_505`,"propertyDetails_autoScheduler-count-badge":`_propertyDetails_autoScheduler-count-badge_1jhx7_509`,propertyDetailsAutoSchedulerCountBadge:`_propertyDetails_autoScheduler-count-badge_1jhx7_509`,"propertyDetails-autoScheduler-emptyRecord":`_propertyDetails-autoScheduler-emptyRecord_1jhx7_521`,propertyDetailsAutoSchedulerEmptyRecord:`_propertyDetails-autoScheduler-emptyRecord_1jhx7_521`,"propertyDetails_autoScheduler-toggleConfirm-warning":`_propertyDetails_autoScheduler-toggleConfirm-warning_1jhx7_533`,propertyDetailsAutoSchedulerToggleConfirmWarning:`_propertyDetails_autoScheduler-toggleConfirm-warning_1jhx7_533`,"propertyDetails-autoSchedulerSection__addwrap":`_propertyDetails-autoSchedulerSection__addwrap_1jhx7_539`,propertyDetailsAutoSchedulerSectionAddwrap:`_propertyDetails-autoSchedulerSection__addwrap_1jhx7_539`,"propertyDetails-autoSchedulerSection__add":`_propertyDetails-autoSchedulerSection__add_1jhx7_539`,propertyDetailsAutoSchedulerSectionAdd:`_propertyDetails-autoSchedulerSection__add_1jhx7_539`,"propertyDetails-autoSchedulerSection__eventtxt":`_propertyDetails-autoSchedulerSection__eventtxt_1jhx7_556 text-l7`,propertyDetailsAutoSchedulerSectionEventtxt:`_propertyDetails-autoSchedulerSection__eventtxt_1jhx7_556 text-l7`},Lwe={marginRight:`6px`,marginBottom:`6px`,display:`inline-block`},Rwe={padding:`48px`},F1={display:`flex`},zwe={flex:1},Bwe={height:`164px`,width:`164px`,paddingLeft:`48px`,boxSizing:`content-box`},Vwe={color:`var(--color-text)`,wordBreak:`break-word`},Hwe={position:`static`,minHeight:`464px`,background:`var(--color-white)`,borderRadius:`7px`,display:`block`},Uwe={marginLeft:`8px`,marginTop:`3px`},I1=({contact:e,onSelect:t,onBack:n,showButton:r=!0,proMarketProperty:i=!1})=>{let a=xe(),o=j(sw),[s,c]=(0,B.useState)({});(0,B.useEffect)(()=>{Bpe()},[]),(0,B.useEffect)(()=>{(async()=>
2020{if(wX()&&e.userId)try{c(await EP(e.userId))}catch(e){R.default.error(`Error fetching Intercom data:`,e)}})()},[e.userId]);let l=e instanceof dS,u=l?e:{},d=e=>t=>{a(tF({isOpen:!0,images:(0,H.default)(e,e=>({image:e})),index:t}))},f=U(l?`job_request.service_pro`:`job_request.service_pro_contact`),p=_S(u.badges,(0,G.default)(o,[`badgeOrder`]),`big`),m=(0,K.jsxs)(I,{sx:Rwe,children:[wX()&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(TX,{jsonData:{...u,...s},displayId:u.objectId,mode:`contact`}),(0,K.jsx)(ym,{})]}),(0,K.jsxs)(I,{sx:F1,children:[(0,K.jsxs)(I,{sx:zwe,children:[(0,K.jsx)(I,{sx:F1,children:(0,K.jsxs)(I,{sx:F1,children:[(0,K.jsx)(Gg,{type:`nomargin`,children:`${u.userData.firstName} ${u.userData.lastName}`}),ps(u)&&i&&(0,K.jsx)(I,{sx:Uwe,children:(0,K.jsx)(ef,{modalRequired:!0,urls:o})})]})}),(0,K.jsx)(`div`,{children:(0,K.jsxs)(Xg,{type:`grey`,children:[U(`job_request.joined`),` `,(0,z.default)(u.userData.signedUpDate).format(`MMM Do, YYYY`)]})}),(0,K.jsx)(gm,{}),(u.offeredServices||[]).map(pa).map(e=>(0,K.jsx)(I,{sx:Lwe,children:(0,K.jsx)(Kd,{children:e})},e)),(0,K.jsx)(_m,{}),(0,K.jsx)(gS,{size:`big`,responseTime:u.responseTime}),(0,K.jsx)(wm,{type:`vertical`,size:`15px`}),(0,K.jsx)(vS,{size:`big`,badges:p}),r&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(ym,{}),(0,K.jsx)(q,{"data-testid":`button_select_serviceprovider`,onClick:()=>{t(e),Vpe()},types:[`type-full-primary`,`size-large`],children:U(`job_request.select_service_pro`)})]}),(0,K.jsx)(bm,{}),u.userData.bio&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{children:(0,K.jsxs)(Xg,{type:`grey`,children:[U(`job_request.about_user`),`:`]})}),(0,K.jsx)(`div`,{children:(0,K.jsx)(I,{className:`text-l5`,sx:Vwe,children:u.userData.bio})}),(0,K.jsx)(bm,{})]}),u.propertyPhotos&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{children:(0,K.jsx)(Xg,{type:`grey`,children:U(`job_request.worked_at`,{num:u.numOfProperties})})}),(0,K.jsx)(_m,{}),(0,K.jsx)(Dx,{onClick:d(u.propertyPhotos),images:u.propertyPhotos})]})]}),(0,K.jsx)(I,{sx:Bwe,children:(0,K.jsx)(Qd,{type:`square`,text:Go(u.userData.firstName,u.userData.lastName),picture:u.userData.pictureUrl})})]})]});return u||(m=null),(0,K.jsxs)(I,{sx:Hwe,children:[(0,K.jsx)(Lj,{icon:Y.IcBack,onClose:()=>n(),middleText:f,iconPosition:`left`}),m]})};I1.propTypes={contact:V.default.instanceOf(dS).isRequired,onSelect:V.default.func.isRequired,onBack:V.default.func.isRequired,showButton:V.default.bool,proMarketProperty:V.default.bool};var L1=_i.default.bind(P1),R1=({provider:e,onClick:t})=>{let{userData:n}=e,r=`${n.firstName||``} ${n.lastName||``}`.trim(),i=Go(n.firstName,n.lastName),a=e.numOfJobRequestsDone||0,o=e.numOfHosts||0,s=U(o===1?`contacts.client`:`contacts.clients`);return(0,K.jsxs)(`div`,{className:L1(`provider-card`),onClick:()=>t(e),children:[(0,K.jsx)(Qd,{picture:n.pictureUrl,text:i,type:`community`}),(0,K.jsxs)(`div`,{className:L1(`provider-card__info`),children:[(0,K.jsx)(`div`,{className:L1(`provider-card__name`),children:r}),(0,K.jsxs)(`div`,{className:L1(`provider-card__stats`),children:[(0,K.jsx)(`span`,{className:L1(`provider-card__stat-value`),children:a}),` `,U(`contacts.total_jobs`),(0,K.jsx)(`span`,{className:L1(`provider-card__dot`)}),(0,K.jsx)(`span`,{className:L1(`provider-card__stat-value`),children:o}),` `,s]})]}),(0,K.jsx)(`button`,{type:`button`,className:L1(`provider-card__btn`),onClick:n=>{n.stopPropagation(),t(e)},children:U(`job_request.view`)})]})};R1.propTypes={provider:V.default.shape({userData:V.default.shape({firstName:V.default.string,lastName:V.default.string,pictureUrl:V.default.string}),numOfJobRequestsDone:V.default.number,numOfHosts:V.default.number}).isRequired,onClick:V.default.func.isRequired};var z1=e=>{let[t,n]=(0,B.useState)(!1),[r,i]=(0,B.useState)([]),[a,o]=(0,B.useState)(void 0),{property:s,onClose:c}=e;if((0,B.useEffect)(()=>{n(!0),qN(s).then(e=>(n(!1),i(e),e)).catch(e=>{R.default.error(`Failed to fetch cleaners:`,e),n(!1)})},[]),a)return(0,K.jsx)(I1,{contact:a,offeredServices:void 0,onSelect:Fu.default,showButton:!1,onBack:()=>o(void 0),proMarketProperty:s?.proMarketProperty});let l=r.length>0;return(0,K.jsxs)(`div`,{className:L1(`property__ccmodal`),children:[(0,K.jsxs)(`div`,{className:L1(`ccmodal__header`),children:[(0,K.jsx)(`button`,{type:`button`,className:L1(`ccmodal__close`),onClick:c,children:(0,K.jsx)(Y.IcClose,{})}),(0,K.jsx)(`span`,{className:L1(`ccmodal__title`),children:U(`job_request.community_cleaner`)})]}),t&&(0,K.jsx)(`div`,{className:L1(`property__ccloading`),children:(0,K.jsx)(xf,{static:!0})}),!t&&!l&&(0,K.jsx)(`div`,{className:L1(`property__ccempty`),children:(0,K.jsx)(Yg,{type:`orange`,children:U(`properties.not_community_cleaners`)})}),!t&&l&&(0,K.jsx)(`div`,{className:L1(`provider-list`),children:r.map(e=>(0,K.jsx)(R1,{provider:e,onClick:o},e.userData?.objectId||e.objectId))})]})};z1.propTypes={property:V.default.shape({proMarketProperty:V.default.string}).isRequired,onClose:V.default.func.isRequired};var B1=e=>{let{otherAttributes:t=[],openPictures:n,propertyId:r}=e,i=t?.length>0,a=i?{display:`flex`,flexDirection:`row`}:{},o=i?{width:`50%`}:{};return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(bm,{}),(0,K.jsxs)(I,{sx:a,children:[(0,K.jsx)(I,{sx:o,children:(0,K.jsx)(Mw,{meta:{propertyId:r},hasAccessFormatter:e=>e.canEditDeleteProperty,render:e=>(0,K.jsx)(Bq,{canEdit:e,isSingleColumn:i,propertyId:r})})}),(0,K.jsx)(I,{sx:{...o,margin:`0 12px`},children:(0,K.jsx)(r_,{openPictures:n,otherAttributes:t})}),(0,K.jsx)(Sm,{})]})]})};B1.propTypes={openPictures:V.default.func.isRequired,propertyId:V.default.string.isRequired,otherAttributes:V.default.arrayOf(V.default.shape({}))};var Wwe=e(lee()),V1=_i.default.bind(P1),H1=()=>(0,K.jsxs)(`div`,{className:V1(`property-detail-checklisttab__loading--card`),children:[(0,K.jsxs)(`div`,{className:V1(`property-detail-checklisttab__loading--card-inner`),children:[(0,K.jsx)(J,{variant:`rounded`,width:`100%`,height:120,sx:{borderRadius:`var(--radius-md, 14px)`}}),(0,K.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, calc(-50% - 16px))`},children:(0,K.jsx)(J,{variant:`circular`,width:46,height:46})}),(0,K.jsxs)(`div`,{style:{position:`absolute`,bottom:0,left:0,right:0,height:`32px`,background:`var(--surface-base, #fff)`,borderTop:`1px solid var(--color-border)`,borderRadius:`0 0 var(--radius-md, 14px) var(--radius-md, 14px)`,display:`flex`,alignItems:`center`,padding:`0 12px`,gap:`8px`},children:[(0,K.jsx)(J,{variant:`rounded`,width:70,height:12}),(0,K.jsx)(J,{variant:`rounded`,width:70,height:12})]})]}),(0,K.jsx)(`div`,{style:{marginTop:`12px`,display:`flex`,justifyContent:`center`},children:(0,K.jsx)(J,{variant:`text`,width:`80%`,height:16})}),(0,K.jsx)(`div`,{style:{marginTop:`4px`,display:`flex`,justifyContent:`center`},children:(0,K.jsx)(J,{variant:`text`,width:`50%`,height:14})})]}),Gwe=()=>(0,K.jsxs)(`div`,{className:V1(`property-detail-checklisttab__loading--container`),children:[(0,K.jsx)(H1,{}),(0,K.jsx)(H1,{}),(0,K.jsx)(H1,{}),(0,K.jsx)(H1,{})]});function Kwe(e){let t=xe(),n=j((0,B.useMemo)(()=>JCe(e),[e])),r=j((0,B.useMemo)(()=>YCe(e),[e])),[i,a]=(0,B.useState)({}),[o,s]=(0,B.useState)(!1),[c,l]=(0,B.useState)(!1),[u,d]=(0,B.useState)(`idle`),[f,p]=(0,B.useState)(null);(0,B.useEffect)(()=>{e&&(async()=>{s(!0);try{r||t(s1(e));let n=await UN(e),i={};
2020n.forEach(e=>{i[e.objectId]=e}),a(i)}catch(e){R.default.error(`Failed to load events`,e)}finally{s(!1)}})()},[t,e,r]);let m=(0,B.useMemo)(()=>(0,bo.default)(n.filter(e=>!e.deleted),[e=>!!e.isDraft,`createdAt`],[`desc`,`desc`]),[n,e]),h=(0,B.useCallback)(e=>{let n={id:`new-${Date.now()}`,propertyId:e.objectId,isDraft:!0};t(twe(n)),p(n)},[t]),g=(0,B.useCallback)(e=>{p(e)},[]),_=(0,B.useCallback)(()=>{t(nwe()),p(null)},[t]);return{triggers:m,jobs:i,loading:o,deleteLoading:c,saveState:u,editingTrigger:f,addEvent:h,editEvent:g,cancelEdit:_,saveEvent:(0,B.useCallback)(e=>{d(`saving`),t(c1({mode:e.isDraft?`create`:`edit`,type:e.type,reminder:e,onSuccess:()=>{d(`saved`),setTimeout(()=>d(`idle`),1e3),_()},onFailure:e=>{R.default.error(`saveEvent error`,e),d(`error`),setTimeout(()=>d(`idle`),1e3)}}))},[t,_]),deleteEvent:(0,B.useCallback)(async n=>{l(!0);try{t(l1(n.id,e))}catch(e){R.default.error(`deleteEvent error`,e)}finally{l(!1)}},[t,e]),updateTriggerData:(0,B.useCallback)(e=>{p(t=>t&&{...t,...e})},[])}}function qwe(e){let t=[`apt`,`city`,`state`,`street`,`zip`,`country`],n={apt:``,city:``,country:``,state:``,street:``,zip:``};return(0,xc.default)(t,t=>{e[t]&&(n[t]=e[t])}),n.AddressArray=[`${n.street}`,`${n.city} ${n.state} ${n.zip}`,`${n.country}`],n}function Jwe(e){return{hasUserTitle:(0,LX.default)(e.title)!==(0,LX.default)(e.street)}}function U1(e,t){return{objectId:e.objectId,title:e.title,location:{latitude:e.lat,longitude:e.lng},timeZone:e.timeZoneId,countryCode:e.countryCode,address:qwe(e),numOfBedrooms:e.numOfBedrooms,numOfBeds:e.numOfBeds,numOfBathrooms:e.numOfBathrooms,type:e.propertyType,...Jwe(e,t)}}function Ywe(e){return{objectId:e.objectId||void 0,title:e.title||``,lat:(0,G.default)(e,[`location`,`latitude`])||null,lng:(0,G.default)(e,[`location`,`longitude`])||null,timeZoneId:e.timeZone||``,countryCode:e.countryCode||``,numOfBedrooms:e.numOfBedrooms||0,numOfBeds:e.numOfBeds||0,numOfBathrooms:e.numOfBathrooms||0,propertyType:e.type||`apartment`,street:(0,G.default)(e,[`address`,`street`])||``,city:(0,G.default)(e,[`address`,`city`])||``,state:(0,G.default)(e,[`address`,`state`])||``,zip:(0,G.default)(e,[`address`,`zip`])||``,apt:(0,G.default)(e,[`address`,`apt`])||``,country:(0,G.default)(e,[`address`,`country`])||``}}Qn();function Xwe(){let e=Vn(),t=xe(),n=j(EC),[r,i]=(0,B.useState)(!1),[a,o]=(0,B.useState)(null),[s,c]=(0,B.useState)({type:null,open:!1}),l=(0,B.useCallback)((e,t={})=>c({type:e,open:!0,...t}),[]),u=(0,B.useCallback)(()=>c({type:null,open:!1}),[]);return{saveProperty:(0,B.useCallback)(async(r,a,s=null)=>{i(!0),o(null),l(`loading`);let c=U1(a,s||{});try{let i=await sP(a.objectId,c,r===`new`?n:void 0);return u(),t(QP(`properties`,i.objectId,i)),e(Z.propertyPage(i.objectId)),r===`new`?Lv(i.objectId):s&&JSON.stringify(s.address)!==JSON.stringify(c.address)&&Rv(i.objectId),i}catch(t){R.default.error(`saveProperty error`,t),u(),o(t);let n=as(t);if(r===`new`&&n===`InvalidPlanError`)e(Z.settingsSubscription);else if(r===`new`){let e=os(t);l(`createError`,e?{message:e}:{})}else{let e=os(t);l(`editError`,e?{message:e}:{})}throw t}finally{i(!1)}},[e,t,n,l,u]),deleteProperty:(0,B.useCallback)(async n=>{i(!0);try{return await sP(n,{deleted:!0}),t(QP(`properties`,n,{deleted:!0})),e(Z.properties),!0}catch(e){throw R.default.error(`deleteProperty error`,e),o(e),e}finally{i(!1)}},[e,t]),goToProperty:(0,B.useCallback)(t=>{e(Z.propertyPage(t))},[e]),goToProperties:(0,B.useCallback)(()=>{e(Z.properties)},[e]),loading:r,error:a,modalState:s,hideModal:u}}function W1(e){return HM(()=>SN(`copyIntoLibrary`,{checklistId:e},!0))}function G1(e){return HM(()=>xN(`JobInstructions`,e).then(e=>pN(e)))}function K1(e){return HM(()=>xN(`Job`,e).then(e=>uN(e)))}var q1=e=>SN(`getIndependentChecklistInstructions`,{checklistInstructionsId:e},!0);function J1(e){return SN(`getIndependentChecklist`,{checklistId:e},!0).then(e=>(FM.default.Object.fromJSON(e),e))}Qn();function Zwe(e){let t=Vn(),[n,r]=(0,B.useState)({}),[i,a]=(0,B.useState)(!0),[o,s]=(0,B.useState)(null),[c,l]=(0,B.useState)({}),u=(0,B.useRef)(!1);(0,B.useEffect)(()=>{e&&(async()=>{a(!0),s(null);try{let t=await UN(e),n={};
2020t.forEach(e=>{n[e.objectId]=e}),r(n)}catch(e){R.default.error(`Failed to fetch checklists`,e),s(e)}finally{a(!1)}})()},[e]);let d=(0,B.useMemo)(()=>(0,bo.default)((0,xo.default)(Object.values(n),e=>!e.deleted),[`title`],[`asc`]),[n]),f=(0,B.useCallback)((e,t)=>{l(n=>({...n,[e]:t}))},[]);return{checklists:d,checklistsMap:n,loading:i,error:o,isActionLoading:(0,B.useCallback)(e=>c[e]===!0,[c]),createChecklist:(0,B.useCallback)(async n=>{if(u.current)return null;u.current=!0;let i=`create${e}`;f(i,!0);try{let e=await eP(n.objectId,U(`checklist.checklist_untitled`),n.userId);return r(t=>({...t,[e.objectId]:e})),t(Z.checklist(e.objectId,e.jobInstructionId)),e}catch(e){throw R.default.error(`Failed to create checklist`,e),e}finally{f(i,!1),setTimeout(()=>{u.current=!1},1e3)}},[e,t,f]),duplicateChecklist:(0,B.useCallback)(async e=>{f(e.objectId,!0);try{let t=await G1(e.jobInstructionId),n=(0,pF.default)(t&&typeof t.getData==`function`?t.getData():t,[`steps`]),i=(0,pF.default)(e&&typeof e.getData==`function`?e.getData():e,[`defaultProperty`,`jobDescription`,`jobInstructionId`,`title`,`totalStepCount`,`totalTaskCount`,`totalVerificationCount`,`user`,`pictureUrl`,`generalTasks`,`weight`]);i.title=U(`checklist.copy_checklist`,{name:e.title});let a=await YN(i,n);return r(e=>({...e,[a.objectId]:a})),a}catch(e){throw R.default.error(`Failed to duplicate checklist`,e),e}finally{f(e.objectId,!1)}},[f]),deleteChecklist:(0,B.useCallback)(async e=>{f(e.objectId,!0);try{await aP(e.objectId,{deleted:!0}),r(t=>{let n={...t};return n[e.objectId]&&(n[e.objectId]={...n[e.objectId],deleted:!0}),n})}catch(e){throw R.default.error(`Failed to delete checklist`,e),e}finally{f(e.objectId,!1)}},[f]),copyToLibrary:(0,B.useCallback)(async e=>{f(e,!0);try{await W1(e)}catch(e){throw R.default.error(`Failed to copy checklist to library`,e),e}finally{f(e,!1)}},[f]),goToChecklist:(0,B.useCallback)((e,n)=>{t(Z.checklist(e,n))},[t])}}var Y1=_i.default.bind(P1);function X1({propertyData:e}){let t=xe(),{checklists:n,loading:r,isActionLoading:i,createChecklist:a,duplicateChecklist:o,deleteChecklist:s,copyToLibrary:c,goToChecklist:l}=Zwe(e.objectId),[u,d]=(0,B.useState)(!1),[f,p]=(0,B.useState)({isOpen:!1,checklist:null,property:null}),m=(0,B.useMemo)(()=>!Cu(),[]),h=(0,B.useMemo)(()=>{let e=[...n];return e.unshift({_create:!0}),e},[n]),g=(0,B.useCallback)(e=>e._create?`create`:`picture`,[]),_=(0,B.useCallback)((e,t)=>`${e.totalStepCount||0} ${U(`properties.slides`)} ⢠2021 ${e.totalTaskCount||0} ${U(`properties.tasks`)} ${t?`⢠${U(`properties.default_checklist`)}`:``}`,[]),v=(0,B.useCallback)(()=>{a(e)},[a,e]),y=(0,B.useCallback)(e=>()=>{t(AU({isOpen:!0,checklistTitle:e.title,selectedChecklistId:e.objectId}))},[t]),b=(0,B.useCallback)(e=>()=>{R.default.info(`Duplicating checklist into library`,{checklist:e}),c(e.objectId)},[c]),x=(0,B.useCallback)(n=>()=>{R.default.info(`Property Checklist Detail prefil - openDefaultSettingsModal`,n);let{defaultSettings:r}=n||{},{duration:i}=r||{},a=e?.timeZone||`America/Los_Angeles`,o=(0,z.default)().tz(a).startOf(`day`).add(660,`minutes`);t(dF(!0,`jobrequest`,{mode:`prefill`,source:`property`,checklistObj:n,data:{jobType:no.turnover,jobStartTimeType:`fixed`,currency:Gl(e)||`USD`,propertyId:e.objectId,checklistId:[n.objectId],isDefault:e.defaultJob===n.objectId,duration:i||`60`,startTime:o}}))},[t,e]),S=(0,B.useCallback)(e=>()=>{o(e)},[o]),C=(0,B.useCallback)((e,t)=>()=>{t.defaultJob===e.objectId?p({isOpen:!0,checklist:e,property:t}):s(e)},[s]),w=(0,B.useCallback)(()=>{p({isOpen:!1,checklist:null,property:null})},[]),T=(0,B.useCallback)(async()=>{let{checklist:e,property:n}=f;w();try{let r=await sP(n.objectId,{defaultJob:null});t(QP(`properties`,r.objectId,r)),s(e)}catch(e){R.default.error(`confirmDeleteDefaultChecklist`,e)}},[f,w,t,s]),E=(0,B.useCallback)((e,t)=>()=>{l(e,t)},[l]),D=(0,B.useCallback)(t=>(0,H.default)((0,wx.default)(t,4),(t,n)=>(0,K.jsx)(`div`,{className:Y1(`property-detail__checklistrow`),children:(0,H.default)(t,t=>{switch(g(t)){case`create`:{let t=i(`create${e.objectId}`);return(0,K.jsx)(`div`,{className:Y1(`property-detail__checklistcol`),children:(0,K.jsx)(hx,{type:`dashed`,isCreate:!0,isLoading:t,onClick:()=>{t||(R.default.info(`Creating checklist`),v())},title:U(`properties.create_checklist`)})},`checklist-create`)}case`picture`:{let n=e.defaultJob===t.objectId;return(0,K.jsx)(`div`,{className:Y1(`property-detail__checklistcol`),children:(0,K.jsx)(Mw,{meta:{propertyId:e.objectId},hasAccessFormatter:e=>!e.canCreateChecklists,render:r=>(0,K.jsx)(hx,{type:`image`,isTouch:m,isShowOnly:r,isHovered:u,isLoading:i(t.objectId),setState:d,onDelete:C(t,e),onDuplicate:S(t),onSetDefault:x(t),onDuplicateOther:y(t),onDuplicateLibrary:b(t),id:t.objectId,isDefaultChecklist:n,slideCount:t.totalStepCount,taskCount:t.totalTaskCount,onClick:!r&&E(t.objectId,t.jobInstructionId),subTitle:_(t,n),title:t.title})})},`checklist-${t.objectId}`)}default:return}})},`checklist-row-${n}`)),[g,i,e,v,m,u,C,S,x,y,b,E,_]);return r?(0,K.jsx)(Gwe,{}):(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Mw,{meta:{propertyId:e.objectId},hasAccessFormatter:e=>e.canCreateChecklists,render:e=>(0,K.jsx)(`div`,{children:D(e?h:(0,Wwe.default)(h,1))})}),(0,K.jsx)(X,{show:f.isOpen,onClose:w,height:230,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:U(`defaultsettings.headline_modal`)}),(0,K.jsx)(X.Text,{children:U(`defaultsettings.subhead_modal`)}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:w,children:U(`defaultsettings.cancel`)}),(0,K.jsx)(X.Ok,{"data-testid":`delete_default_checklist`,onClick:T,children:U(`defaultsettings.ok`)})]})]})})]})}X1.propTypes={propertyData:V.default.instanceOf(UM).isRequired,propertyId:V.default.string};var Qwe={"property-history-propertyHistorySection":`_property-history-propertyHistorySection_14p88_1`,propertyHistoryPropertyHistorySection:`_property-history-propertyHistorySection_14p88_1`,"property-history-header":`_property-history-header_14p88_7`,propertyHistoryHeader:`_property-history-header_14p88_7`,"property-history-addActivity":`_property-history-addActivity_14p88_19`,propertyHistoryAddActivity:`_property-history-addActivity_14p88_19`,"property-history-activity":`_property-history-activity_14p88_24`,propertyHistoryActivity:`_property-history-activity_14p88_24`,"property-history-pinned":`_property-history-pinned_14p88_33`,propertyHistoryPinned:`_property-history-pinned_14p88_33`,"property-history-activityHeader":`_property-history-activityHeader_14p88_38`,propertyHistoryActivityHeader:`_property-history-activityHeader_14p88_38`,"property-history-avatar":`_property-history-avatar_14p88_43`,propertyHistoryAvatar:`_property-history-avatar_14p88_43`,"property-history-activityInfo":`_property-history-activityInfo_14p88_49`,propertyHistoryActivityInfo:`_property-history-activityInfo_14p88_49`,"property-history-userName":`_property-history-userName_14p88_54`,propertyHistoryUserName:`_property-history-userName_14p88_54`,"property-history-activityDate":`_property-history-activityDate_14p88_59`,propertyHistoryActivityDate:`_property-history-activityDate_14p88_59`,"property-history-pinButton":`_property-history-pinButton_14p88_64`,propertyHistoryPinButton:`_property-history-pinButton_14p88_64`,"property-history-activityImage":`_property-history-activityImage_14p88_74`,propertyHistoryActivityImage:`_property-history-activityImage_14p88_74`,"property-history-activityActions":`_property-history-activityActions_14p88_82`,propertyHistoryActivityActions:`_property-history-activityActions_14p88_82`,"property-history-activitySection":`_property-history-activitySection_14p88_90`,propertyHistoryActivitySection:`_property-history-activitySection_14p88_90`,"property-history-activityTitleSection":`_property-history-activityTitleSection_14p88_93`,propertyHistoryActivityTitleSection:`_property-history-activityTitleSection_14p88_93`,"property-history-activityImageSection":`_property-history-activityImageSection_14p88_97`,propertyHistoryActivityImageSection:`_property-history-activityImageSection_14p88_97`,"property-history-textareaWrapper":`_property-history-textareaWrapper_14p88_101`,propertyHistoryTextareaWrapper:`_property-history-textareaWrapper_14p88_101`,"property-history-newActivityTextArea":`_property-history-newActivityTextArea_14p88_114`,propertyHistoryNewActivityTextArea:`_property-history-newActivityTextArea_14p88_114`,"property-history-textareaActions":`_property-history-textareaActions_14p88_128`,propertyHistoryTextareaActions:`_property-history-textareaActions_14p88_128`,"property-history-loaderContainer":`_property-history-loaderContainer_14p88_134`,propertyHistoryLoaderContainer:`_property-history-loaderContainer_14p88_134`,"property-history-loading":`_property-history-loading_14p88_142`,propertyHistoryLoading:`_property-history-loading_14p88_142`,"property-history-emptyActivity":`_property-history-emptyActivity_14p88_154`,propertyHistoryEmptyActivity:`_property-history-emptyActivity_14p88_154`,"property-history-newActivityImage":`_property-history-newActivityImage_14p88_159`,propertyHistoryNewActivityImage:`_property-history-newActivityImage_14p88_159`,"property-history-imagePreview":`_property-history-imagePreview_14p88_163`,propertyHistoryImagePreview:`_property-history-imagePreview_14p88_163`,"property-history-removeImageBtn":`_property-history-removeImageBtn_14p88_178`,propertyHistoryRemoveImageBtn:`_property-history-removeImageBtn_14p88_178`,"property-history-activityError":`_property-history-activityError_14p88_189`,propertyHistoryActivityError:`_property-history-activityError_14p88_189`},$we=F` 2022 mutation MergePropertiesMutation($propertyIds: [String]!) { 2023 MergeProperties(propertyIds: $propertyIds) { 2024 id 2025 createdAt 2026 updatedAt 2027 } 2028 } 2029`,eTe=F` 2030 mutation AddActivity( 2031 $propertyId: ID! 2032 $cloudinaryId: ID 2033 $description: String! 2034 $pinned: Boolean 2035 $adminId: ID! 2036 $adminName: String! 2037 ) { 2038 AddActivity( 2039 propertyId: $propertyId 2040 cloudinaryId: $cloudinaryId 2041 description: $description 2042 pinned: $pinned 2043 adminId: $adminId 2044 adminName: $adminName 2045 ) { 2046 error 2047 message 2048 result { 2049 id 2050 description 2051 cloudinaryId 2052 pinned 2053 archived 2054 createdById 2055 createdByName 2056 createdAt 2057 updatedAt 2058 history { 2059 description 2060 cloudinaryId 2061 editedById 2062 editedByName 2063 editedAt 2064 } 2065 } 2066 } 2067 } 2068`,tTe=F` 2069 mutation UpdateActivity( 2070 $id: ID! 2071 $propertyId: ID! 2072 $cloudinaryId: ID 2073 $description: String! 2074 $pinned: Boolean 2075 $adminId: ID! 2076 $adminName: String! 2077 ) { 2078 UpdateActivity( 2079 id: $id 2080 propertyId: $propertyId 2081 cloudinaryId: $cloudinaryId 2082 description: $description 2083 pinned: $pinned 2084 adminId: $adminId 2085 adminName: $adminName 2086 ) { 2087 error 2088 message 2089 result { 2090 id 2091 } 2092 } 2093 } 2094`,nTe=F` 2095 mutation DeleteActivity($id: ID!, $propertyId: ID!, $adminId: ID!) { 2096 DeleteActivity(id: $id, propertyId: $propertyId, adminId: $adminId) { 2097 error 2098 message 2099 result { 2100 id 2101 } 2102 } 2103 } 2104`,rTe=F` 2105 mutation ModifyActivityPin($id: ID!, $propertyId: ID!, $pinned: Boolean, $adminId: ID!) { 2106 ModifyActivityPin(id: $id, propertyId: $propertyId, pinned: $pinned, adminId: $adminId) { 2107 error 2108 message 2109 result { 2110 id 2111 pinned 2112 } 2113 } 2114 } 2115`,iTe=F` 2116 mutation ModifyActivityArchiveStatus( 2117 $id: ID! 2118 $propertyId: ID! 2119 $archived: Boolean 2120 $adminId: ID! 2121 ) { 2122 ModifyActivityArchiveStatus( 2123 id: $id 2124 propertyId: $propertyId 2125 archived: $archived 2126 adminId: $adminId 2127 ) { 2128 error 2129 message 2130 result { 2131 id 2132 archived 2133 } 2134 } 2135 } 2136`,aTe=F` 2137 { 2138 propertyTags { 2139 label 2140 value 2141 } 2142 } 2143`,oTe=F` 2144 query PropertyListViewQuery( 2145 $propertiesIndex: String 2146 $offset: Int 2147 $limit: Int 2148 $filters: [Filter] 2149 $search: String 2150 ) { 2151 PropertyList( 2152 propertiesIndex: $propertiesIndex 2153 offset: $offset 2154 limit: $limit 2155 filters: $filters 2156 search: $search 2157 ) { 2158 info { 2159 total 2160 limit 2161 offset 2162 query 2163 } 2164 result { 2165 id 2166 propertyId 2167 title 2168 type 2169 ownerRole 2170 ownerName 2171 location 2172 isSample 2173 displayAddress 2174 address { 2175 street 2176 apt 2177 city 2178 state 2179 zip 2180 country 2181 countryCode 2182 } 2183 numOfBedrooms 2184 numOfBeds 2185 numOfBathrooms 2186 } 2187 error 2188 } 2189 } 2190`,sTe=F` 2191 query LoadActivities( 2192 $propertyId: ID! 2193 $archived: Boolean 2194 $offset: Int 2195 $limit: Int 2196 $adminId: ID! 2197 ) { 2198 LoadActivities( 2199 propertyId: $propertyId 2200 archived: $archived 2201 offset: $offset 2202 limit: $limit 2203 adminId: $adminId 2204 ) { 2205 error 2206 message 2207 info { 2208 limit 2209 offset 2210 total 2211 } 2212 result { 2213 id 2214 description 2215 cloudinaryId 2216 pinned 2217 archived 2218 createdById 2219 createdByName 2220 createdAt 2221 history { 2222 description 2223 cloudinaryId 2224 editedById 2225 editedByName 2226 editedAt 2227 } 2228 } 2229 } 2230 } 2231`;async function cTe(e,t,n,r,i,a){try{let{data:o}=await QF.mutate({mutation:eTe,fetchPolicy:`no-cache`,variables:{propertyId:e,description:t,cloudinaryId:n,pinned:r,adminId:i,adminName:a}}),{result:s}=o.AddActivity||{};return s}catch(t){throw R.default.error(`AddActivityApi - Error adding activity`,e),t}}async function lTe(e,t,n,r,i,a,o){let s=r||``;try{let{data:r}=await QF.mutate({mutation:tTe,fetchPolicy:`no-cache`,variables:{id:e,propertyId:t,description:n,cloudinaryId:s,pinned:i,adminId:a,adminName:o}}),{result:c}=r.UpdateActivity||{};return c}catch(e){throw R.default.error(`UpdateActivityApi - Error updating activity`,t),e}}async function uTe(e,t,n){try{let{data:r}=await QF.mutate({mutation:nTe,fetchPolicy:`no-cache`,variables:{id:e,propertyId:t,adminId:n}}),{result:i}=r.DeleteActivity||{};return i}catch(e){throw R.default.error(`DeleteActivityApi - Error deleting activity`,t),e}}async function dTe(e,t,n,r){try{let{data:i}=await QF.mutate({mutation:rTe,fetchPolicy:`no-cache`,variables:{id:e,propertyId:t,pinned:n,adminId:r}}),{result:a}=i.ModifyActivityPin||{};return a}catch(e){throw R.default.error(`TogglePinActivityApi - Error toggling activity pin`,t),e}}async function fTe(e,t,n,r){try{let{data:i}=await QF.mutate({mutation:iTe,fetchPolicy:`no-cache`,variables:{id:e,propertyId:t,archived:n,adminId:r}}),{result:a}=i.ModifyActivityArchiveStatus||{};return a}catch(e){throw R.default.error(`ToggleArchiveActivityApi - Error toggling activity archive`,t),e}}var pTe=async(e,t,n,r,i)=>{try{let{data:a}=await QF.query({query:sTe,variables:{archived:t,propertyId:e,offset:n,limit:r,adminId:i},fetchPolicy:`no-cache`});return a.LoadActivities}catch(t){throw R.default.error(`getActivitiesOfPropertyApi - Error fetching activities`,e),t}},Z1=_i.default.bind(Qwe),Q1=({openPictures:e=()=>{},propertyId:t})=>{let n=j(e=>cB(e)),[r,i]=(0,B.useState)([]),[a,o]=(0,B.useState)(!1),[s,c]=(0,B.useState)(``),[l,u]=(0,B.useState)(0),[d,f]=(0,B.useState)(!1),[p,m]=(0,B.useState)(!1),[h,g]=(0,B.useState)(!1),[_,v]=(0,B.useState)(``),[y,b]=(0,B.useState)(!1),[x,S]=(0,B.useState)(``),[w,T]=(0,B.useState)(``),[E,D]=(0,B.useState)(!1),[ee,te]=(0,B.useState)(!1),[ne,re]=(0,B.useState)(!1),O
2231=B.useRef(null),{adminUserId:ie,adminUsername:ae}=n,oe=async e=>{let n=e?0:l;o(!0);try{let{result:e,info:r}=await pTe(t,p,n,50,ie);i(l===0?e:t=>[...t,...e]),u(e=>e+50),f(r.offset+50<r.total),c(``)}catch{c(`Failed to fetch activities`)}finally{o(!1)}};(0,B.useEffect)(()=>(oe(!0),()=>{i([]),u(0),f(!1)}),[t,p]);let se=async e=>{let{description:n,cloudinaryId:r,pinned:a}=e;try{let e=await cTe(t,n,r,a,ie,ae);i(t=>[e,...t])}catch{c(`Failed to add activity`)}},ce=async e=>{let{activityId:n,description:r,cloudinaryId:a,pinned:o}=e;try{(await lTe(n,t,r,a,o,ie,ae)).id&&i(t=>t.map(t=>t.id===n?{...t,...e}:t))}catch{c(`Failed to update activity`)}},le=async e=>{try{await uTe(e,t,ie),i(t=>t.filter(t=>t.id!==e))}catch{c(`Failed to delete activity`)}},ue=async(e,n)=>{let r={pinned:n};try{(await dTe(e,t,n,ie)).id&&i(t=>t.map(t=>t.id===e?{...t,...r}:t))}catch{c(`Failed to toggle pin`)}},de=async(e,n)=>{let r={archived:n};try{(await fTe(e,t,n,ie)).id&&i(t=>t.map(t=>t.id===e?{...t,...r}:t))}catch{c(`Failed to toggle archive`)}},fe=e=>{e.trim()?T(``):T(`Please enter activity description`),v(e)},pe=()=>{_.trim()?(se({description:_,cloudinaryId:x,pinned:!1}),v(``),S(``),D(!1)):T(`Please enter activity description`)},me=()=>{_.trim()&&(ce({activityId:h,description:_,cloudinaryId:x,pinned:y}),g(``),v(``),b(``),S(``),te(``),D(!1))},he=e=>{le(e)},ge=e=>{let t=r.find(t=>t.id===e);t.id&&(g(t.id),v(t.description),b(t.pinned),t.cloudinaryId&&S(t.cloudinaryId),te(`edit`),D(!0))},_e=()=>{v(``),b(``),T(``),g(``),S(``),te(``),D(!1)},ve=(e,t)=>{ue(e,!t)},ye=(e,t)=>{de(e,!t)},be=e=>{u(0),m(e)},xe=()=>O.current?.click(),Se=t=>{e([t])};return r.sort((e,t)=>{if(!p){if(e.pinned&&!t.pinned)return-1;if(!e.pinned&&t.pinned)return 1}return new Date(t.createdAt)-new Date(e.createdAt)}),(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{className:Z1(`property-history-propertyHistorySection`),children:[(0,K.jsxs)(`div`,{className:Z1(`property-history-header`),children:[(0,K.jsxs)(`div`,{className:Z1(`property-history-archiveFilter`),children:[(0,K.jsx)(Zg,{color:p?Qp:Kp,children:U(`activities.show_active`)}),(0,K.jsx)(C,{checked:p,onChange:()=>be(!p),style:{color:p?Wp:Kp},color:`inherit`}),(0,K.jsx)(Zg,{color:p?Wp:Qp,children:U(`activities.show_archive`)})]}),(0,K.jsx)(`div`,{className:Z1(`property-history-addActivity`),children:(0,K.jsx)(q,{types:[`type-full-primary`,`size-medium`],onClick:()=>D(!0),children:`Add`})})]}),s&&(0,K.jsx)(`div`,{className:Z1(`property-history-activityError`),children:(0,K.jsx)(Yf.ErrorMsg,{children:s})})]}),r?.length===0||!r?(0,K.jsx)(`div`,{className:Z1(`property-history-emptyActivity`),children:(0,K.jsx)(`p`,{children:U(`activities.no_records`)})}):(0,K.jsxs)(K.Fragment,{children:[r.filter(e=>e.archived===p).map(e=>{let t=iu(e.cloudinaryId,``,``,``),n=(0,z.default)().diff((0,z.default)(e.createdAt),`hours`)<24;return(0,K.jsx)(`div`,{className:`${Z1(`property-history-activity`)} ${e.pinned&&!p?Z1(`property-history-pinned`):``}`,children:(0,K.jsxs)(`div`,{className:Z1(`property-history-activitySection`),children:[(0,K.jsxs)(`div`,{className:Z1(`property-history-activityTitleSection`),children:[(0,K.jsxs)(`div`,{className:Z1(`property-history-activityHeader`),children:[(0,K.jsx)(`div`,{className:Z1(`property-history-avatar`),children:(0,K.jsx)(Qd,{type:`square-small`,text:e.createdByName,extractLetters:!0,invertedColorScheme:!0,withShadow:!1})}),(0,K.jsxs)(`div`,{className:Z1(`property-history-activityInfo`),children:[(0,K.jsx)(Xg,{className:Z1(`property-history-userName`),children:e.createdByName}),(0,K.jsx)(`span`,{className:Z1(`property-history-activityDate`),children:(0,z.default)(e.createdAt).format(`ddd, MMM Do, h:mm a`)})]}),!p&&(0,K.jsx)(Ig,{title:e.pinned?`Unpin Activity`:`Pin Activity`,children:(0,K.jsx)(q,{type:`button`,className:Z1(`property-history-pinButton`),onClick:()=>ve(e.id,e.pinned),children:e.pinned?(0,K.jsx)(Y.Unpin,{}):(0,K.jsx)(Y.Pin,{})})})]}),(0,K.jsx)(Yg,{className:Z1(`property-history-activityText`),children:e.description})]}),(0,K.jsx)(`div`,{className:Z1(`property-history-activityImageSection`),children:e.cloudinaryId&&(0,K.jsx)(`div`,{onClick:()=>Se(e.cloudinaryId),children:(0,K.jsx)(`img`,{src:t,alt:e.description,className:Z1(`property-history-activityImage`)})})}),(0,K.jsxs)(`div`,{className:Z1(`property-history-activityActions`),children:[!n&&(0,K.jsx)(Ig,{title:e.archived?`Unarchive`:`Archive`,children:(0,K.jsx)(br,{edge:`end`,size:`small`,onClick:()=>ye(e.id,e.archived),children:e.archived?(0,K.jsx)(Y.Unarchive,{byWidth:!0,width:`24px`,he
2231ight:`24px`}):(0,K.jsx)(Y.Archive,{byWidth:!0,width:`24px`,height:`24px`})})}),!p&&n&&(0,K.jsx)(Ig,{title:U(`permissions.edit`),children:(0,K.jsx)(br,{edge:`end`,size:`small`,onClick:()=>ge(e.id),children:(0,K.jsx)(Y.IcEditicon,{byWidth:!0,width:`24px`,height:`24px`})})}),(0,K.jsx)(Ig,{title:U(`properties.delete_trigger`),children:(0,K.jsx)(br,{edge:`end`,size:`small`,onClick:()=>he(e.id),children:(0,K.jsx)(Y.IcTrash2,{byWidth:!0,width:`24px`,height:`24px`})})})]})]})},e.id)}),(0,K.jsx)(I,{sx:{textAlign:`center`,marginTop:`20px`},children:!a&&d&&(0,K.jsx)(q,{onClick:()=>{oe()},types:[`type-flat-primary`,`size-medium`,`fontw-normal`,`fonts-12`,`width-flex`,`height-24`],children:U(`properties.load_more`)})}),a&&(0,K.jsx)(xf,{static:!0})]}),(0,K.jsx)(X,{id:`property-history`,height:`auto`,width:500,onClose:()=>_e(),onClick:()=>_e(),show:E,centerContent:!0,children:(0,K.jsxs)(I,{sx:{position:`relative`,height:`100%`},children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:ee===`edit`?`Edit Activity`:`Add New Activity`}),(0,K.jsx)(X.Text,{children:U(`activities.enter_description`)}),(0,K.jsx)(ym,{}),(0,K.jsxs)(`div`,{className:Z1(`property-history-textareaWrapper`),children:[(0,K.jsx)(qe,{placeholder:U(`activities.description_placeholder`),type:`text`,className:Z1(`property-history-newActivityTextArea`),value:_,onChange:e=>fe(e.target.value),minRows:3}),(0,K.jsxs)(`div`,{className:Z1(`property-history-textareaActions`),children:[(0,K.jsx)(br,{size:`small`,onClick:xe,sx:{color:`var(--color-primary)`},children:(0,K.jsx)(Y.IcCameraSolid,{})}),(0,K.jsx)(`input`,{type:`file`,ref:O,style:{display:`none`},accept:`image/*`,onChange:e=>{e.preventDefault(),re(!0);let t=e.target.files[0];if(!t){re(!1);return}let{size:n}=t,{minSize:r,maxSize:i}=ru;if(n<r||n>i){T(U(`upload.image_size_limit_error`,{minSize:r/1024,maxSize:i/1024/1024})),re(!1);return}e.target.value=``,tP(t).then(e=>e?.pictureUrl?(T(``),S(e.pictureUrl),re(!1),null):(T(U(`upload.image_upload_failed`)),re(!1),null)).catch(e=>(T(e?.message||String(e)),re(!1),null))}})]})]}),x&&(0,K.jsx)(`div`,{className:Z1(`property-history-newActivityImage`),children:(0,K.jsxs)(`div`,{className:Z1(`property-history-imagePreview`),children:[(0,K.jsx)(`img`,{src:iu(x,nu.Small),alt:`Activity`}),(0,K.jsx)(br,{size:`small`,onClick:()=>{S(``)},className:Z1(`property-history-removeImageBtn`),children:`â`})]})}),w&&(0,K.jsx)(Yf.ErrorMsg,{children:w}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:()=>_e()}),(0,K.jsx)(X.Ok,{onClick:()=>ee===`edit`?me():pe()})]})]}),ne&&(0,K.jsx)(`div`,{className:Z1(`property-history-loaderContainer`),children:(0,K.jsx)(`div`,{className:Z1(`property-history-loading`),children:(0,K.jsx)(xf,{static:!0})})})]})})]})};Q1.propTypes={openPictures:V.default.func,propertyId:V.default.string.isRequired,adminDetails:V.default.shape({adminUserId:V.default.string,adminUsername:V.default.string}),getActivitiesOfPropertyApi:V.default.func.isRequired,addActivityApi:V.default.func.isRequired,updateActivityApi:V.default.func.isRequired,deleteActivityApi:V.default.func.isRequired,togglePinActivityApi:V.default.func.isRequired,toggleArchiveActivityApi:V.default.func.isRequired};var $1={row:{display:`flex`,alignItems:`center`,gap:2,p:`16px 20px`,bgcolor:`var(--surface-ground, var(--color-bg))`,border:`1px solid var(--color-border)`,borderRadius:`12px`,mb:1.5,transition:`all 0.15s ease`,position:`relative`,"&:hover":{borderColor:`var(--color-primary)`,boxShadow:`0 2px 12px rgba(0, 0, 0, 0.06)`}},rowEditing:{flexDirection:`column`,alignItems:`stretch`,gap:2,p:2.5,borderColor:`var(--color-primary)`,boxShadow:`0 0 0 3px var(--color-primary-alpha-10, rgba(54, 172, 178, 0.1))`},type:{display:`flex`,alignItems:`center`,gap:1.25,minWidth:140},typeDot:{width:10,height:10,borderRadius:`50%`,flexShrink:0},typeDotCheckin:{bgcolor:`#4CAF50`,boxShadow:`0 0 0 3px rgba(76, 175, 80, 0.2)`},typeDotCheckout:{bgcolor:`#FF7043`,boxShadow:`0 0 0 3px rgba(255, 112, 67, 0.2)`},typeDotRecurring:{bgcolor:`#7E57C2`,boxShadow:`0 0 0 3px rgba(126, 87, 194, 0.2)`},typeDotDefault:{bgcolor:`var(--color-grey-light)`,boxShadow:`0 0 0 3px rgba(0, 0, 0, 0.05)`},typeLabel:{fontSize:12,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.3px`,color:`var(--color-text-secondary)`},title:{flex:1,minWidth:0,fontSize:15,fontWeight:600,color:`var(--color-text)`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},titlePlaceholder:{color:`var(--color-placeholder)`,fontWeight:400,fontStyle:`italic`},titleInput:{flex:1,minWidth:0,fontFamily:`Plus Jakarta Sans, Helvetica, Arial, sans-serif`,fontSize:15,fontWeight:600,color:`var(--color-text)`,bgcolor:`transparent`,border:`none`,outline:`none`,p:0,"&::placeholder":{color:`var(--color-placeholder)`,fontWeight:400}},selects:{display:`flex`,alignItems:`center`,gap:1},select:{display:`flex`,alignItems:`center`,gap:.75,p:`6px 12px`,bgcolor:`var(--color-bg-elevated, #f5f5f5)`,borderRadius:`6px`,fontSize:13,color:`var(--color-text)`,cursor:`pointer`,transition:`all 0.15s ease`,whiteSpace:`nowrap`,position:`relative`,"&:hover":{bgcolor:`var(--color-bg, #eee)`}},selectDisabled:{opacity:.5,cursor:`not-allowed`},selectIcon:{color:`var(--color-text-secondary)`,opacity:.6},selectValue:{maxWidth:120,overflow:`hidden`,textOverflow:`ellipsis`},action:{display:`flex`,alignItems:`center`,gap:.5,p:`6px 10px`,fontSize:12,fontWeight:600,color:`var(--color-primary)`,bgcolor:`transparent`,border:`1px solid var(--color-primary)`,borderRadius:`6px`,curs
2231or:`pointer`,transition:`all 0.15s ease`,whiteSpace:`nowrap`,"&:hover":{bgcolor:`var(--color-primary-alpha-10, rgba(54, 172, 178, 0.08))`}},menu:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:32,height:32,borderRadius:`6px`,cursor:`pointer`,transition:`all 0.15s ease`,flexShrink:0,"&:hover":{bgcolor:`var(--color-bg-elevated, #f5f5f5)`}},top:{display:`flex`,alignItems:`center`,gap:2},fields:{display:`grid`,gridTemplateColumns:`repeat(2, 1fr)`,gap:1.5},field:{position:`relative`},fieldLabel:{fontSize:11,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.3px`,color:`var(--color-text-secondary)`,mb:.75},fieldSelect:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,p:`10px 14px`,bgcolor:`var(--color-bg-elevated, #f5f5f5)`,border:`1px solid transparent`,borderRadius:`8px`,fontSize:14,color:`var(--color-text)`,cursor:`pointer`,transition:`all 0.15s ease`,"&:hover":{borderColor:`var(--color-border)`}},fieldSelectActive:{bgcolor:`var(--color-white)`,borderColor:`var(--color-primary)`,boxShadow:`0 0 0 2px var(--color-primary-alpha-10, rgba(54, 172, 178, 0.1))`},fieldSelectError:{borderColor:`var(--color-red)`},fieldSelectPlaceholder:{color:`var(--color-placeholder)`},wrapper:{mb:1.5},actions:{display:`flex`,justifyContent:`flex-end`,alignItems:`center`,gap:1.5,py:1.5}},e0=B.memo(e=>{let{propertyData:t,propertyChecklists:n=null,trigger:r,isEditing:i=!1,editingData:a=null,onEdit:o,onDelete:s,onSave:c,onCancel:l,onUpdateData:u,saveState:d=`idle`}=e,f=xe(),p=j(WC),m=n||p,h=r.isDraft,g=i,_=i&&a?a:r,v=_?.jobIds?.[0]??null,y={savingState:d===`saving`?`loading`:d===`saved`?`saved`:`changed`},[b,x]=(0,B.useState)(!1),[S,C]=(0,B.useState)({}),w=B.useRef(v);(0,B.useEffect)(()=>{let e=v;e!==w.current&&(C(e=>({...e,checklist:!1})),w.current=e)},[_]);let T=(0,B.useCallback)(e=>S[e],[S]),E=(0,B.useCallback)((e,t)=>()=>{C(n=>{let r=t===void 0?!n[e]:t;return{...n,[e]:r}})},[]),D=v,ee=(0,G.default)(_,[`type`]),te=(0,G.default)(_,[`title`]),ne=(0,B.useMemo)(()=>m?.[D]?.title||null,[m,D]),re=m?.[D],O=te&&ee,ie=(0,B.useCallback)(e=>{if(!b)return!1;switch(e){case`name`:return!te;case`type`:return!ee;default:return!1}},[b,te,ee]),ae=(0,B.useCallback)(e=>()=>{if(!e){x(!0);return}x(!1),c(_)},[c,_]),oe=(0,B.useCallback)(()=>{x(!1),l()},[l]),se=(0,B.useCallback)(()=>{let e=re;if(!e)return;let{objectId:n,defaultJob:r,timeZone:i}=t||{},a=i||`America/Los_Angeles`,o=(0,z.default)().tz(a).startOf(`day`).add(660,`minutes`);f(XK({mode:`prefill`,source:`property`,checklistObj:e,data:{jobType:no.turnover,currency:Gl(t)||`USD`,propertyId:n,checklistId:[e.objectId],isDefault:r===e.objectId,startTime:o,endTime:void 0,time:void 0,duration:`60`,jobStartTimeType:`fixed`}}))},[re,t,f]),ce=(0,B.useCallback)(e=>{switch(e){case`checkIn`:return U(`properties.kind.checkin`);case`checkOut`:return U(`properties.kind.checkout`);case`recurring`:return U(`properties.kind.recurring`);default:return null}},[]),le=(0,B.useMemo)(()=>Object.values(m||{}).filter(e=>e.defaultProperty===t?.objectId&&!e.deleted),[m,t?.objectId]),ue=()=>ee===`checkIn`?$1.typeDotCheckin:ee===`checkOut`?$1.typeDotCheckout:ee===`recurring`?$1.typeDotRecurring:$1.typeDotDefault,de=`trigger-${r.id}`,fe=()=>(0,K.jsx)(Lg,{popoverKey:`reminder`,hasArrow:!0,arrowPosition:{horizontal:`right`,vertical:`top`},width:150,popoverContent:e=>(0,K.jsx)(Ad,{items:[{"data-testid":`edit_reminder`,name:U(`properties.edit_trigger`),onClick:()=>o()},{"data-testid":`delete_reminder`,name:U(`properties.delete_trigger`),onClick:()=>s()}],closePopover:e.closePopup}),children:(0,K.jsx)(I,{"data-testid":`edit_reminders`,sx:$1.menu,children:(0,K.jsx)(Y.IcMorePrimary,{})})});return g?(0,K.jsxs)(I,{sx:$1.wrapper,children:[(0,K.jsxs)(I,{"data-testid":de,sx:{...$1.row,...$1.rowEditing},children:[(0,K.jsxs)(I,{sx:$1.top,children:[(0,K.jsxs)(I,{sx:$1.type,children:[(0,K.jsx)(I,{sx:{...$1.typeDot,...ue()}}),(0,K.jsx)(I,{component:`span`,sx:$1.typeLabel,children:ce(ee)||U(`properties.when`)})]}),(0,K.jsx)(I,{component:`input`,type:`text`,sx:$1.titleInput,value:te||``,onChange:e=>u({title:e.target.value}),placeholder:U(`properties.name`),autoFocus:!0}),fe()]}),(0,K.jsxs)(I,{sx:$1.fields,children:[(0,K.jsxs)(I,{sx:$1.field,children:[(0,K.jsx)(I,{sx:$1.fieldLabel,children:U(`properties.when`)}),(0,K.jsxs)(I,{"data-testid":`reminder_when_dropdown`,onClick:h?E(`when`):void 0,sx:{...$1.fieldSelect,...T(`when`)&&$1.fieldSelectActive,...ie(`type`)&&$1.fieldSelectError,...!h&&$1.selectDisabled},children:[(0,K.jsx)(I,{component:`span`,sx:ee?void 0:$1.fieldSelectPlaceholder,children:ce(ee)||U(`properties.when`)}),(0,K.jsx)(Y.IcExpandMore3,{})]}),T(`when`)&&(0,K.jsx)(qA,{onClose:E(`when`),scrollIntoViewOnOpen:!0,children:(0,K.jsx)(Pj.List,{style:{minHeight:170},children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{children:(0,H.default)([`checkIn`,`checkOut`,`recurring`],e=>(0,K.jsx)(Kj,{"data-testid":`reminder_when_${e}`,type:`status`,noHover:!0,onClick:()=>{E(`when`)(),u({type:e})},active:ee===e,title:ce(e)},e))})})})})]}),(0,K.jsxs)(I,{sx:$1.field,children:[(0,K.jsx)(I,{sx:$1.fieldLabel,children:U(`checklist.select_action`)}),(0,K.jsxs)(I,{"data-testid":`reminder_checklist_dropdown`,onClick:E(`checklist`),sx:{...$1.fieldSelect,...T(`checklist`)&&$1.fieldSelectActive,...ie(`checklist`)&&$1.fieldSelectError},children:[(0,K.jsx)(I,{component:`span`,sx:ne?void 0:$1.fieldSelectPlaceholder,children:ne||U(`checklist.select_action`)}),(0,K.jsx)(Y.IcExpandMore3,{})]}),T(`checklist`)&&(0,K.jsx)(qA,{onClose:E(`checklist`),scrollIntoViewOnOpen:!0,children:(0,K.jsx)(Pj.List,{style:{minHeight:140},children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{children:le.map(e=>(0,K.jsx)(Kj,{type:`status`,"data-testid":`reminder_checklist_item`,noHover:!0,onClick:()=>{E(`checklist`)(),u({jobIds:[e.objectId]})},active:D===e.objectId,title:e.title},e.objectId))})})})})]})]}),D&&(0,K.jsx)(I,{children:(0,K.jsxs)(I,{component:`button`,type:`button`,sx:$1.action,onClick:se,children:[(0,K.jsx)(Y.IcDefaultSettings,{style:{width:14,height:14}}),U(`properties.prefill_event`)]})})]}),(0,K.jsxs)(I,{sx:$1.actions,children:[(0,K.jsx)(q,{"data-testid":`cancel_reminder`,onClick:oe,types:[`type-flat-grey`,`size-small`],children:U(`properties.cancel`)}),(0,K.jsx)(q,{"data-testid":`save_reminder`,onClick:ae(O),types:[`type-full-primary`,`size-small`],isLoading:y?.savingState===`loading`,children:y?.savingState===`saved`?U(`properties.loadingsaved`):U(`properties.save`)})]})]}):(0,K.jsxs)(I,{"data-testid":de,sx:$1.row,children:[(0,K.jsxs)(I,{sx:$1.type,children:[(0,K.jsx)(I,{sx:{...$1.typeDot,...ue()}}),(0,K.jsx)(I,{component:`span`,sx:$1.typeLabel,children:ce(ee)||U(`properties.when`)})]}),(0,K.jsx)(I,{sx:{...$1.title,...!te&&$1.titlePlaceholder},children:te||`â`}),(0,K.jsx)(I,{sx:$1.selects,children:ne&&(0,K.jsxs)(I,{sx:{...$1.select,...$1.selectDisabled},children:[(0,K.jsx)(Y.IcChecklistLibrary,{style:{width:14,height:14}}),(0,K.jsx)(I,{component:`span`,sx:$1.selectValue,children:ne})]})}),D&&(0,K.jsx)(I,{component:`button`,type:`button`,sx:$1.action,onClick:se,children:U(`properties.prefill_event`)}),fe()]})});e0.propTypes={propertyData:V.default.instanceOf(UM).isRequired,propertyChecklists:V.default.object,trigger:V.default.object.isRequired,isEditing:V.default.bool,editingData:V.default.object,onEdit:V.default.func.isRequired,onDelete:V.default.func.isRequired,onSave:V.default.func.isRequired,onCancel:V.default.func.isRequired,onUpdateData:V.default.func.isRequired,saveState:V.default.string};
2231var t0={wrap:{display:`flex`,alignItems:`center`,gap:1.25},dot:{width:10,height:10,borderRadius:`50%`,flexShrink:0,bgcolor:`#7E57C2`,boxShadow:`0 0 0 3px rgba(126, 87, 194, 0.2)`},label:{fontSize:12,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.3px`,color:`var(--color-text-secondary)`}},n0=({sx:e})=>(0,K.jsxs)(I,{sx:{...t0.wrap,...e},children:[(0,K.jsx)(I,{sx:t0.dot}),(0,K.jsx)(I,{component:`span`,sx:t0.label,children:U(`properties.kind.recurring`)})]});n0.propTypes={sx:V.default.object};var r0={row:{display:`flex`,alignItems:`center`,gap:2,p:`16px 20px`,bgcolor:`var(--surface-ground, var(--color-bg))`,border:`1px solid var(--color-border)`,borderRadius:`12px`,mb:1.5,position:`relative`},title:{flex:1,minWidth:0,fontSize:15,fontWeight:600,color:`var(--color-text)`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},pill:{display:`flex`,alignItems:`center`,gap:.75,p:`6px 12px`,bgcolor:`var(--color-bg-elevated, #f5f5f5)`,borderRadius:`6px`,fontSize:13,color:`var(--color-text)`,whiteSpace:`nowrap`},cadence:{fontSize:13,color:`var(--color-text-secondary)`,whiteSpace:`nowrap`,textOverflow:`ellipsis`,overflow:`hidden`},menu:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:32,height:32,borderRadius:`6px`,cursor:`pointer`,flexShrink:0},historyToggle:{fontSize:12,fontWeight:600,color:`var(--color-primary)`,cursor:`pointer`,background:`none`,border:`none`,p:0},historyPanel:{border:`1px solid var(--color-border)`,borderRadius:`8px`,p:1.5,mb:1.5,mt:`-8px`},historyRow:{display:`flex`,alignItems:`center`,gap:1.5,py:.75,fontSize:13,borderBottom:`1px solid var(--color-border)`},jobLink:{color:`var(--color-primary)`,cursor:`pointer`,fontWeight:600}},i0=B.memo(({reminder:e,propertyId:t,propertyChecklists:n={},onEdit:r})=>{let i=xe(),a=j(WC)||{},{entries:o,total:s}=j(B.useMemo(()=>XCe(e.id),[e.id])),[c,l]=(0,B.useState)(!1),u=e.jobIds||[],d=u.length,f=(0,B.useMemo)(()=>u.map(e=>n[e]?.title||a[e]?.title).filter(Boolean),[u,n,a]),p;p=d===1&&f[0]?f[0]:d===1?U(`recurring_reminder.n_checklist`,{count:1}):U(`recurring_reminder.n_checklists`,{count:d});let m=(0,B.useCallback)(()=>{l(t=>{let n=!t;return n&&i(u1(e.id)),n})},[i,e.id]);return(0,K.jsxs)(I,{children:[(0,K.jsxs)(I,{"data-testid":`recurring-reminder-${e.id}`,sx:r0.row,children:[(0,K.jsx)(n0,{sx:{minWidth:90}}),(0,K.jsx)(I,{sx:r0.title,children:e.title||`â`}),d>0&&(0,K.jsxs)(I,{sx:r0.pill,children:[(0,K.jsx)(Y.IcChecklistLibrary,{style:{width:14,height:14}}),p]}),(0,K.jsx)(I,{sx:r0.cadence,children:Ms(e.cadence)}),(0,K.jsx)(I,{component:`button`,type:`button`,sx:r0.historyToggle,onClick:m,children:U(`recurring_reminder.history`)}),(0,K.jsx)(Lg,{popoverKey:`recurring-reminder-${e.id}`,hasArrow:!0,arrowPosition:{horizontal:`right`,vertical:`top`},width:150,popoverContent:n=>(0,K.jsx)(Ad,{items:[{"data-testid":`edit_recurring_reminder`,name:U(`properties.edit_trigger`),onClick:()=>r(e.id)},{"data-testid":`delete_recurring_reminder`,name:U(`properties.delete_trigger`),onClick:()=>i(l1(e.id,t))}],closePopover:n.closePopup}),children:(0,K.jsx)(I,{"data-testid":`recurring_reminder_menu`,sx:r0.menu,children:(0,K.jsx)(Y.IcMorePrimary,{})})})]}),c&&(0,K.jsxs)(I,{sx:{...r0.historyPanel,maxHeight:360,overflowY:`auto`,pr:1},children:[(!o||o.length===0)&&(0,K.jsx)(I,{sx:{fontSize:13,color:`var(--color-text-secondary)`,py:.5},children:U(`recurring_reminder.no_history`)}),(o||[]).map((e,t)=>{let n=String(e.action).toUpperCase(),r={ATTACH:{icon:(0,K.jsx)(Y.IcCheckicon,{width:`18px`,height:`18px`}),color:`var(--primaryFont)`,background:`var(--color-primary)`},IGNORE:{icon:(0,K.jsx)(Y.IcClose,{width:`16px`,height:`16px`}),color:`var(--color-badge-red-text)`,background:`var(--color-badge-red-bg)`},MISSED:{icon:(0,K.jsx)(Y.IcError1,{})}},a=r[n]||r.IGNORE;return(0,K.jsxs)(I,{sx:{...r0.historyRow,justifyContent:`space-between`,borderBottom:t===o.length-1?`none`:r0.historyRow.borderBottom,padding:`5px`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,gap:`10px`},children:[(0,K.jsx)(I,{sx:{width:34,height:34,borderRadius:`50%`,color:a.color,bgcolor:a.background,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:a.icon}),(0,K.jsxs)(I,{children:[(0,K.jsx)(I,{sx:{flex:1},children:U(`recurring_reminder.history_action_${String(e.action).toLowerCase()}`,e.action)}),(0,K.jsx)(I,{sx:{minWidth:90},children:(0,z.default)(e.cycleDueDate).format(`ll`)})]})]}),e.jobSnapshotId&&(0,K.jsx)(I,{component:`span`,sx:r0.jobLink,onClick:()=>i(YJ(e.jobSnapshotId)),children:U(`recurring_reminder.view_job`)})]},`${e.cycleDueDate}-${t}`)}),(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`},children:o.length<s&&(0,K.jsx)(q,{onClick:()=>i(u1(e.id,20,o.length)),children:U(`properties.load_more`)})})]})]})});i0.displayName=`RecurringReminderCard`,i0.propTypes={reminder:V.default.shape({id:V.default.string,title:V.default.string,checklistIds:V.default.array,cadence:V.default.object}).isRequired,propertyId:V.default.string.isRequired,propertyChecklists:V.default.object,onEdit:V.default.func.isRequired};var mTe=e=>e.objectId||e.id,hTe=(e=[],t=``)=>{let n=(t||``).trim().toLowerCase();return(n?e.filter(e=>(e.title||``).toLowerCase().includes(n)):e).filter(e=>e.totalTaskCount!==0)},a0=({checklists:e=[],selectedIds:t=[],onToggle:n=()=>{},searchQuery:r=``,onSearchChange:i=null,tabs:a=null,activeTab:o=null,onTabChange:s=null,loading:c=!1,emptyLabel:l=``,idOf:u=mTe,onEditChecklist:d=null})=>{let f=(0,Qq.default)(t),p=hTe(e,r);return(0,K.jsxs)(I,{sx:{maxHeight:`350px`,overflowX:`clip`,overflowY:`scroll`,padding:`2px`},children:[a&&a.length>0&&(0,K.jsx)(Cg,{children:a.map(e=>(0,K.jsx)(Cg.Item,{"data-testid":`checklist_picker_tab_${e.id}`,onClick:()=>s&&s(e.id),active:o===e.id,children:e.label},e.id))}),i&&(0,K.jsx)($f,{onGrey:!0,"data-testid":`checklist_picker_search`,placeholder:U(`job_request.search_checklist`),value:r,iconLocation:`left`,onChange:e=>i(e)}),c&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Sm,{}),(0,K.jsx)(xf,{static:!0}),(0,K.jsx)(Sm,{})]}),!c&&p.length===0&&l&&(0,K.jsx)(Yg,{children:l}),!c&&(0,H.default)((0,wx.default)(p,2),(e,t)=>(0,K.jsx)(tx.GridRow,{spacing:`12`,children:(0,H.default)(e,(e,t)=>{let r=u(e),i=f[r]!==void 0;return(0,K.jsx)(tx.GridItem,{spacing:`12`,itemPerRow:`2`,children:(0,K.jsx)(TS,{number:Number(f[r])+1,"data-testid":`checklist_picker_item-${r}`,onChange:()=>n&&n(r),isActive:i,children:(0,K.jsx)(DS,{picType:`custom`,order:[`pic`,`text`],txtMod:{withpic:!0},l1:e.title,l2:es(e),l3:d&&!e.published?(0,K.jsx)(sS,{color:`orange`,isInline:!0,onClick:t=>d(e,t),children:U(`job_request.edit_checklist`)}):void 0,pic:(0,K.jsx)(PS,{icon:i?Y.IcBigJobsOrange:Y.IcBigJobs})})})},t)})},t))]})};a0.propTypes={checklists:V.default.arrayOf(V.default.object),selectedIds:V.default.arrayOf(V.default.string),onToggle:V.default.func,searchQuery:V.default.string,onSearchChange:V.default.func,tabs:V.default.arrayOf(V.default.shape({id:V.default.string,label:V.default.string})),activeTab:V.default.string,onTabChange:V.default.func,loading:V.default.bool,emptyLabel:V.default.string,idOf:V.default.func,onEditChecklist:V.default.func};var gTe=js(),_Te={height:`30px`,width:`160px`,backgroundColor:`var(--color-white)`},vTe={border:`1px solid var(--color-primary)`,borderRadius:`12px`,bgcolor:`var(--surface-ground, var(--color-bg))`,boxShadow:`0 0 0 3px var(--color-primary-alpha-10, rgba(54, 172, 178, 0.1))`,p:2.5,mb:1.5},o0=({onClose:e})=>{let t=xe(),n=j(ZCe),{mode:r,propertyId:i,saveState:a}=j(QCe),o=j(WC)||{},[s,c]=(0,B.useState)({}),[l,u]=(0,B.useState)(!1),[d,f]=(0,B.useState)(``),p=(0,B.useRef)(null);(0,B.useEffect)(()=>{p.current?.scrollIntoView({behavior:`smooth`,block:`start`})},[]),(0,B.useEffect)(()=>
2231{if(!i){c({});return}let e=!0;return u(!0),UN(i).then((t=[])=>{if(!e)return;let n={};t.forEach(e=>{n[e.objectId||e.id]=e}),c(n)}).catch(t=>{R.default.error(`RecurringReminderContainer - load checklists`,t),e&&c({})}).finally(()=>{e&&u(!1)}),()=>{e=!1}},[i]);let m=(0,B.useCallback)(e=>t(rwe(e)),[t]),h=(0,B.useCallback)(e=>m({cadence:e}),[m]),g=(0,B.useMemo)(()=>{let e={};return Object.values(o).filter(e=>e.defaultProperty===i&&!e.deleted).forEach(t=>{e[t.objectId||t.id]=t}),Object.values(s).filter(e=>!e.deleted).forEach(t=>{e[t.objectId||t.id]=t}),Object.values(e).sort((e,t)=>(e.title||``).localeCompare(t.title||``))},[o,s,i]),_=n.jobIds||[],v=e=>()=>{m({jobIds:_.includes(e)?_.filter(t=>t!==e):[..._,e]})},y=!!n.title?.trim(),b=As(n.cadence)&&n.leadTimeDays!=null,x=_.length>0,S=y&&x&&b;return(0,K.jsxs)(I,{ref:p,sx:vTe,"data-testid":`recurring_reminder_editor`,children:[(0,K.jsx)(n0,{sx:{mb:1}}),(0,K.jsx)(Kg,{children:U(r===`edit`?`recurring_reminder.edit_title`:`recurring_reminder.create_title`)}),(0,K.jsx)(ym,{}),(0,K.jsx)($g,{size:`small`,children:U(`recurring_reminder.name`)}),(0,K.jsx)(Yf,{"data-testid":`recurring_reminder_title`,value:n.title||``,onChange:e=>m({title:e.target.value}),placeholder:U(`recurring_reminder.name_placeholder`),isFirst:!0,isLast:!0,styleOverwrite:{height:`36px`,backgroundColor:`var(--color-white)`}}),(0,K.jsx)(ym,{}),(0,K.jsx)(jY,{value:n.cadence,onChange:h,showStartDate:!1}),(0,K.jsx)(_m,{}),(0,K.jsx)($g,{size:`small`,children:U(`recurring_reminder.remind_me`)}),(0,K.jsx)(Yf,{"data-testid":`recurring_reminder_lead_time`,value:n.leadTimeDays?.toString(),onChange:e=>m({leadTimeDays:parseInt(e.target.value,10)}),isFirst:!0,isLast:!0,options:gTe,optionsBtn:!0,styleOverwrite:_Te,style:{textAlign:`left`,fontSize:`14px`},type:`select`}),(0,K.jsx)(ym,{}),(0,K.jsx)($g,{size:`small`,children:U(`recurring_reminder.checklists`)}),(0,K.jsx)(a0,{checklists:g,selectedIds:_,onToggle:e=>v(e)(),searchQuery:d,onSearchChange:f,loading:l,emptyLabel:U(`recurring_reminder.no_checklists`)}),(0,K.jsx)(ym,{}),a===`error`&&(0,K.jsx)(Xg,{type:`error`,style:{display:`block`,marginBottom:8},children:U(`recurring_reminder.save_error`)}),(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`flex-end`,gap:1.5},children:[(0,K.jsx)(q,{onClick:e,types:[`type-flat-grey`,`size-small`],children:U(`properties.cancel`)}),(0,K.jsx)(q,{"data-testid":`recurring_reminder_save`,onClick:()=>{S&&t(c1({mode:r,propertyId:i,reminder:n,type:`recurring`,onSuccess:e}))},types:[`type-full-primary`,`size-small`],isLoading:a===`saving`,disabled:!S,children:U(`properties.save`)})]})]})};o0.propTypes={onClose:V.default.func.isRequired};var s0=_i.default.bind(P1);function c0({property:e,propertyData:t}){let n=xe(),[r,i]=(0,B.useState)(null);(0,B.useEffect)(()=>{i(null)},[e]);let{triggers:a,jobs:o,loading:s,deleteLoading:c,saveState:l,editingTrigger:u,addEvent:d,editEvent:f,cancelEdit:p,saveEvent:m,deleteEvent:h,updateTriggerData:g}=Kwe(e),_=(0,B.useCallback)(()=>{d(t)},[d,t]);(0,B.useEffect)(()=>{if(u?.type===`recurring`){let t=u.title;p(u),n(o1({propertyId:e,mode:`create`,initialTitle:t})),i({mode:`create`,reminderId:null})}},[u,p,n,e]);let v=(0,B.useCallback)(t=>{n(o1({propertyId:e,mode:`edit`,reminderId:t})),i({mode:`edit`,reminderId:t})},[n,e]),y=(0,B.useCallback)(()=>i(null),[]),b=()=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(J,{height:134,style:{margin:`18px 0px`,borderRadius:`6px`}}),(0,K.jsx)(J,{height:134,style:{margin:`18px 0px`,borderRadius:`6px`}})]}),x=()=>(0,K.jsx)(`div`,{className:s0(`property-detail__eventtxt`),children:U(`properties.events_info`)});return s?(0,K.jsxs)(K.Fragment,{children:[x(),b()]}):(0,K.jsxs)(`div`,{children:[x(),!r&&!u&&(0,K.jsx)(`button`,{type:`button`,"data-testid":`add_reminders`,onClick:_,className:s0(`property-detail__add-card`),children:U(`properties.add_automation`)}),r?.mode===`create`&&(0,K.jsx)(o0,{onClose:y}),a.map(n=>n.type===`recurring`?r?.mode===`edit`&&r.reminderId===n.id?(0,K.jsx)(o0,{onClose:y},n.id):(0,K.jsx)(i0,{reminder:n,propertyId:e,propertyChecklists:o,onEdit:v},n.id):(0,K.jsx)(e0,{trigger:n,propertyData:t,propertyChecklists:o,isEditing:u?.id===n.id,editingData:u?.id===n.id?u:null,onEdit:()=>f(n),onDelete:()=>h(n),onSave:m,onCancel:()=>p(),onUpdateData:g,saveState:l},n.id)),(0,K.jsx)(jg,{show:c}),(0,K.jsx)(Cm,{})]})}c0.propTypes={property:V.default.string.isRequired,propertyData:V.default.instanceOf(UM).isRequired};var l0=e=>(0,H.default)(e,e=>e.fullName?e.fullName:`${e.email} (${U(`permissions.pending`)})`),yTe=(e,t)=>
2231{let n=[];return e[t]&&(n=[...n,...l0(e[t])]),e.all&&(n=[...n,...l0(e.all)]),n},bTe=(e,t)=>{if(t){let n=e.slice(0,t),r=e.slice(t,e.length);return{array:n,plus:r.length>0&&`+${r.length}`}}return{array:e}},u0=B.memo(({propertyId:e,preText:t,maxVisibleNames:n,componentClass:r=`strong`})=>{let i=j(yw),a=(0,B.useMemo)(()=>bTe(yTe(i,e),n),[i,e,n]);return(0,K.jsxs)(I,{component:`span`,sx:{color:`text.secondary`},children:[t&&(0,K.jsxs)(I,{component:`span`,children:[t,` `]}),(0,H.default)(a.array,(e,t)=>(0,K.jsxs)(I,{component:r,children:[e,t!==a.array.length-1&&`, `]},e)),a.plus&&(0,K.jsxs)(I,{component:`span`,children:[` `,a.plus]})]})});u0.propTypes={propertyId:V.default.string.isRequired,preText:V.default.string,maxVisibleNames:V.default.number,componentClass:V.default.oneOfType([V.default.string])};var d0=({propertyId:e})=>{let t=xe(),n=(0,B.useMemo)(()=>lw(),[]),r=j(t=>n(t,{id:e}))||{},{data:i,refetch:a}=Kn(aTe),o=i?.propertyTags||[],s=(0,B.useCallback)(n=>{t(sq(e,(n||[]).map(({label:e})=>e)))},[t,e]),c=(0,B.useCallback)(()=>{a()},[a]),{tags:l}=r||{},u=(l||[]).map(e=>({label:e,value:e.toUpperCase()}));return(0,K.jsx)(ij,{buttonLabel:U(`properties.add_property_tag`),placeholder:U(`properties.add_property_tag`),onBlur:c,onChange:s,initTags:u,suggestions:[...o||[]]})};d0.propTypes={propertyId:V.default.string.isRequired};var f0={iCalTitle:``,iCalLink:``,errors:[],defaultCheckInTime:`900`,defaultCheckOutTime:`600`},xTe=e=>/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!-]))?/.test(e),p0=({show:e,updateMode:t=!1,onClose:n,onSubmit:r,settings:i=[],prefill:a=null})=>{let[o,s]=(0,B.useState)(f0.iCalTitle),[c,l]=(0,B.useState)(f0.iCalLink),[u,d]=(0,B.useState)(f0.errors),[f,p]=(0,B.useState)(f0.defaultCheckInTime),[m,h]=(0,B.useState)(f0.defaultCheckOutTime),g=()=>{s(f0.iCalTitle),l(f0.iCalLink),d(f0.errors),p(f0.defaultCheckInTime),h(f0.defaultCheckOutTime)},_=({title:e,link:n,defaultCheckInTime:r,defaultCheckOutTime:a})=>{let o=[];return e||o.push(U(`properties.error.enter_title`)),n||o.push(U(`properties.error.paste_link`)),(r===null||a===null)&&o.push(U(`properties.ical_no_default_time`)),t?!1:(n&&!xTe(n)&&o.push(U(`properties.error.bad_link`)),n&&(i||[]).find(({link:e})=>n===e)&&o.push(U(`properties.error.link_exists`)),o.length>0?o:!1)},v=e=>{e.preventDefault();let n=_({title:o,link:c,defaultCheckInTime:f,defaultCheckOutTime:m});if(n){R.default.warn(`Invalid Ical information`,n),d(n);return}r({title:o,link:c,defaultCheckInTime:f,defaultCheckOutTime:m,updateMode:t,id:a?.id}),g()},y=e=>{l(e.target.value),d([])},b=e=>{s(e.target.value),d([])},x=e=>{p(e.target.value),d([])},S=e=>{h(e.target.value),d([])},C=()=>{n(),s(``),l(``),d([])},w=u&&u.length>0;return(0,K.jsx)(X,{onClose:C,show:e,width:500,height:`auto`,children:(0,K.jsx)(`form`,{onSubmit:v,children:(0,K.jsxs)(Ht,{container:!0,sx:{flexDirection:`column`},children:[(0,K.jsx)(Ht,{children:(0,K.jsx)(Jg,{type:`medium`,children:U(`properties.ical_connect`)})}),(0,K.jsxs)(Ht,{children:[(0,K.jsx)($g,{children:U(`properties.paste_ical_title`)}),(0,K.jsx)(Yf,{error:w,placeholder:U(`properties.ical_enter_title`),type:`text`,autoFocus:!0,value:a?.title||o,onChange:b,disabled:t})]}),(0,K.jsxs)(Ht,{children:[(0,K.jsx)($g,{children:U(`properties.link`)}),(0,K.jsx)(Yf,{error:w,placeholder:`${U(`properties.ical_paste_link`)} ( e.g. http://iCalLink.ics )`,type:`text`,value:a?.link||c,onChange:y,disabled:t})]}),(0,K.jsx)(_m,{}),(0,K.jsx)(Yg,{children:U(`properties.ical_default_time`)}),(0,K.jsx)(Ht,{children:(0,K.jsxs)(Ht,{container:!0,direction:`row`,wrap:`nowrap`,children:[(0,K.jsxs)(Ht,{style:{minWidth:`200px`},children:[(0,K.jsx)($g,{style:{marginLeft:`10px`},children:U(`calendar.check_in`)}),(0,K.jsx)(ep,{error:w,value:f,minTime:0,onChange:x})]}),(0,K.jsxs)(Ht,{style:{minWidth:`200px`,marginLeft:`10px`},children:[(0,K.jsx)($g,{children:U(`calendar.check_out`)}),(0,K.jsx)(ep,{error:w,value:m,minTime:0,onChange:S})]})]})}),(0,K.jsx)(_m,{}),(0,K.jsx)(Ht,{children:(0,K.jsxs)(Ht,{container:!0,direction:`row`,wrap:`nowrap`,sx:{justifyContent:`space-between`},children:[(0,K.jsx)(Ht,{children:w?(0,K.jsx)(Ht,{container:!0,sx:{flexDirection:`column`},children:u.map(e=>(0,K.jsx)(Ht,{children:(0,K.jsx)(Yg,{type:`red`,children:e})},e))}):null}),(0,K.jsx)(Ht,{style:{flexShrink:0},children:(0,K.jsxs)(Ht,{container:!0,direction:`row`,sx:{justifyContent:`flex-end`},children:[(0,K.jsx)(Ht,{style:{marginRight:`8px`},children:(0,K.jsx)(q,{type:`button`,onClick:C,types:[`type-flat-grey`,`size-medium`],children:U(`properties.cancel`)})}),(0,K.jsx)(Ht,{children:(0,K.jsx)(q,{type:`submit`,types:[`type-full-primary`,`size-medium`],children:U(t?`permissions.update`:`accountprovidersection.connect`)})})]})})]})})]})})})};p0.propTypes={show:V.default.bool.isRequired,updateMode:V.default.bool,onClose:V.default.func.isRequired,onSubmit:V.default.func.isRequired,settings:V.default.array,prefill:V.default.object};var STe=F`
2232 mutation ICalAdaptorSettingsUpdateMutation($setting: UpdateICalAdaptorSettingInput) { 2233 UpdateICalAdaptorSetting(setting: $setting) { 2234 id 2235 title 2236 link 2237 defaultCheckInTime 2238 defaultCheckOutTime 2239 createdAt 2240 updatedAt 2241 lastSync 2242 targetPropertyId 2243 targetAccountId 2244 } 2245 } 2246`,CTe=F` 2247 mutation ICalAdaptorSettingsDeleteMutation($settingId: ID!) { 2248 DeleteICalAdaptorSetting(settingId: $settingId) { 2249 id 2250 title 2251 link 2252 createdAt 2253 updatedAt 2254 lastSync 2255 targetPropertyId 2256 targetAccountId 2257 } 2258 } 2259`,wTe=F` 2260 mutation ICalAdaptorSettingsCreateMutation($setting: NewICalAdaptorSettingInput) { 2261 CreateICalAdaptorSetting(setting: $setting) { 2262 id 2263 title 2264 link 2265 createdAt 2266 updatedAt 2267 lastSync 2268 targetPropertyId 2269 targetAccountId 2270 defaultCheckInTime 2271 defaultCheckOutTime 2272 } 2273 } 2274`,m0=F` 2275 query ICalAdaptorSettingsQuery($propertyId: String) { 2276 ICalAdaptorSettings(propertyId: $propertyId) { 2277 id 2278 title 2279 link 2280 createdAt 2281 updatedAt 2282 lastSync 2283 targetPropertyId 2284 targetAccountId 2285 defaultCheckInTime 2286 defaultCheckOutTime 2287 } 2288 } 2289`,TTe=F` 2290 query getIcalsWithConnectionIssues { 2291 getIcalsWithConnectionIssues { 2292 error 2293 message 2294 result { 2295 propertyId 2296 connectionSettingsId 2297 } 2298 } 2299 } 2300`,h0=({children:e,icon:t})=>(0,K.jsxs)(Ht,{container:!0,sx:{justifyContent:`center`,alignItems:`center`},children:[t||(0,K.jsx)(Y.IcConnect,{}),(0,K.jsx)(I,{component:`span`,sx:{marginTop:`2px`,marginLeft:`8px`},children:e})]}),g0=({label:e,content:t,connectButtonDisabled:n,connectButtonText:r,onConnect:i,loading:a,children:o})=>(0,K.jsxs)(I,{sx:{position:`relative`,maxWidth:`900px`,margin:`0 auto`,padding:`24px`,background:`var(--surface-ground, var(--color-bg))`,border:`1px solid var(--color-border)`,borderRadius:`12px`,marginBottom:`16px`,boxShadow:`0 1px 3px rgba(0, 0, 0, 0.04)`,transition:`all 0.25s cubic-bezier(0.4, 0, 0.2, 1)`,"&:hover":{borderColor:`var(--color-primary)`,boxShadow:`0 4px 12px rgba(54, 172, 178, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06)`,transform:`translateY(-2px)`}},children:[(0,K.jsxs)(Ht,{container:!0,direction:`row`,wrap:`nowrap`,sx:{justifyContent:`space-between`,alignItems:`center`},children:[(0,K.jsxs)(Ht,{style:{flexGrow:1},children:[(0,K.jsx)(I,{component:`h3`,sx:{fontSize:`16px`,fontWeight:600,color:`var(--color-text)`,margin:0,marginBottom:`8px`,letterSpacing:`-0.01em`},children:e}),(0,K.jsx)(I,{sx:{fontSize:`13.5px`,color:`var(--color-text-secondary)`,lineHeight:1.5},children:t})]}),(0,K.jsxs)(Ht,{style:{marginLeft:`32px`,flexShrink:0,display:`flex`,alignItems:`center`,gap:`12px`},children:[a&&(0,K.jsx)(hf,{}),(0,K.jsx)(Mw,{hasAccessFormatter:e=>e.isStandalone,renderWithPermission:()=>(0,K.jsx)(q,{onClick:i||Fu.default,disabled:n,types:[`size-medium`,`type-border-grey`],children:(0,K.jsx)(h0,{icon:(0,K.jsx)(Y.IcConnect,{}),children:r||U(`accountprovidersection.connect`)})})})]})]}),B.Children.toArray(o).filter(Boolean).length>0&&(0,K.jsx)(I,{sx:{marginTop:`20px`,paddingTop:`20px`,borderTop:`1px solid var(--color-divider)`},children:o})]}),ETe=e=>e?`${U(`properties.ical_last_synced`)} ${(0,z.default)(e).from()}`:U(`properties.ical_no_sync`),DTe=({title:e,link:t,lastSyncDate:n,onDelete:r,defaultCheckInTime:i,defaultCheckOutTime:a,onUpdate:o,id:s,connectionIssue:c})=>(0,K.jsxs)(I,{sx:{padding:`16px`,borderRadius:`10px`,background:c?`var(--color-red-light)`:`var(--surface-ground, var(--color-bg))`,border:c?`1px solid var(--color-red-light-darker)`:`1px solid transparent`,transition:`all 0.2s ease`,"&:hover":{background:c?`var(--color-red-light)`:`var(--surface-ground-hover, var(--color-bg-hover))`}},children:[(0,K.jsxs)(Ht,{container:!0,wrap:`nowrap`,direction:`row`,spacing:3,sx:{justifyContent:`space-between`},children:[(0,K.jsx)(Ht,{style:{flexShrink:0,width:`160px`,maxWidth:`160px`},children:(0,K.jsxs)(Ht,{container:!0,direction:`row`,wrap:`nowrap`,style:{overflow:`hidden`},sx:{alignItems:`center`},children:[(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:`32px`,he
2300ight:`32px`,borderRadius:`8px`,background:c?`var(--color-red-light-darker)`:`var(--color-primary-light)`,flexShrink:0},children:c?(0,K.jsx)(Y.IcError1,{}):(0,K.jsx)(Y.IcCalendar,{})}),(0,K.jsx)(Yg,{title:e,type:`medium`,style:{marginLeft:`10px`,fontWeight:600},children:e})]})}),(0,K.jsxs)(Ht,{zeroMinWidth:!0,style:{flexGrow:1},children:[(0,K.jsx)(Yg,{style:{display:`block`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,fontSize:`13px`},noWrap:!0,title:t,children:t}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`6px`,marginTop:`4px`},children:[(0,K.jsx)(Y.IcSync,{style:{width:`14px`,height:`14px`,opacity:.5}}),(0,K.jsx)(Yg,{style:{display:`block`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,fontSize:`12px`},type:`grey`,title:n?(0,z.default)(n).format(`lll`):``,children:ETe(n)||``})]}),(i==null||a==null)&&(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,marginTop:`8px`},children:[(0,K.jsx)(Y.IcWarning,{height:`16px`,width:`16px`}),(0,K.jsx)(Yg,{style:{display:`block`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,marginLeft:`6px`,color:`#36ACB2`,fontSize:`12px`,fontWeight:500,cursor:`pointer`,transition:`opacity 0.2s ease`},onClick:()=>o({id:s,title:e,link:t}),noWrap:!0,children:U(`properties.ical_no_default_time`)})]})]}),(0,K.jsx)(Ht,{style:{flexShrink:0,display:`flex`,alignItems:`center`},children:(0,K.jsx)(Mw,{hasAccessFormatter:e=>e.isStandalone,renderWithPermission:()=>(0,K.jsx)(q,{onClick:r||Fu.default,types:[`size-medium`,`type-border-grey`],children:(0,K.jsx)(h0,{icon:(0,K.jsx)(Y.IcDisconnect,{}),children:U(`account.disconnect`)})})})})]}),c&&(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,marginTop:`12px`,padding:`8px 12px`,borderRadius:`6px`,background:`rgba(255, 50, 48, 0.08)`},children:[(0,K.jsx)(Y.IcWarning,{height:`16px`,width:`16px`,style:{color:`#FF3230`}}),(0,K.jsx)(Yg,{style:{marginLeft:`8px`,color:`#FF3230`,fontSize:`13px`,fontWeight:500},children:U(`properties.ical_oops_error`)})]})]}),_0=({property:e})=>{let t=xe(),n=j(sw),r=j(bW)||{},i=j(xW)||[],{accounts:a}=r,o=(0,CR.default)(n&&n.partner||[],`id`)||{},s=e,[l,u]=(0,B.useState)(!1),[d,f]=(0,B.useState)(!1),[p,m]=(0,B.useState)(null),[h,g]=(0,B.useState)(null),[_,v]=(0,B.useState)({}),[y,b]=(0,B.useState)(null);(0,B.useEffect)(()=>{t(jq(e))},[t,e]);let{data:x,loading:S,error:C}=Kn(m0,{variables:{propertyId:e},pollInterval:5e3}),w=x?.ICalAdaptorSettings||[];(0,B.useEffect)(()=>{S&&!C&&f(!0)},[S,C]);let[T]=c(wTe,{update:(t,{data:{CreateICalAdaptorSetting:n}})=>{let{ICalAdaptorSettings:r}=t.readQuery({query:m0,variables:{propertyId:e}})||[];t.writeQuery({query:m0,variables:{propertyId:e},data:{ICalAdaptorSettings:r.concat([n])}})}}),[E]=c(CTe,{update:(t,{data:{DeleteICalAdaptorSetting:n}})=>{let{ICalAdaptorSettings:r}=t.readQuery({query:m0,variables:{propertyId:e}})||[],i=r.filter(e=>e.id!==n.id);t.writeQuery({query:m0,variables:{propertyId:e},data:{ICalAdaptorSettings:i}})}}),[D]=c(STe,{update:(t,{data:{UpdateICalAdaptorSetting:n}})=>{let{ICalAdaptorSettings:r}=t.readQuery({query:m0,variables:{propertyId:e}})||[],i=r.map(e=>e.id===n.id?n:e);t.writeQuery({query:m0,variables:{propertyId:e},data:{ICalAdaptorSettings:i}})}}),ee=(e,t,n,r)=>{T({variables:{setting:{title:e,link:t,targetPropertyId:s,defaultCheckInTime:parseInt(n,10),defaultCheckOutTime:parseInt(r,10)}}}).catch(e=>m(e))},te=(e,t,n)=>{D({variables:{setting:{connectionSettingsId:e,defaultCheckInTime:parseInt(t,10),defaultCheckOutTime:parseInt(n,10)}}}).catch(e=>m(e))},ne=()=>{u(!1),v({})},re=({title:e,link:t,defaultCheckInTime:n,defaultCheckOutTime:r,updateMode:i,id:a})=>{i?te(a,n,r):ee(e,t,n,r),ne()},O=e=>(0,H.default)(e||{},e=>({icon:e.partner,id:e.partnerPropertyId})),ie=()=>{g(null),m(null),u(!0)},ae=e=>(0,H.default)(e,e=>{let{icon:t,text:n}=o[e.icon]||{};return(0,K.jsx)(Av.Light,{icon:t,id:e.id,text:n},e.id)}),oe=(e,t)=>{b({id:e,title:t})},se=()=>{y&&(g(null),m(null),E({variables:{settingId:y.id}}).catch(e=>g(e)),b(null))},ce=({id:e,title:t,link:n})=>{v({id:e,title:t,link:n}),g(null),m(null),u(!0)},le=e=>!e||!e.length?null:(0,K.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`12px`},children:(0,H.default)(e,e=>(0,K.jsx)(DTe,{title:e.title,id:e.id,link:e.link,onDelete:()=>oe(e.id,e.title),onUpdate:ce,lastSyncDate:e.lastSync,defaultCheckInTime:e.defaultCheckInTime,defaultCheckOutTime:e.defaultCheckOutTime,connectionIssue:!!i?.some(({connectionSettingsId:t})=>t===e.id)},e.id))}),ue=e=>e?(R.default.error(`iCal graphql error`,e),(0,K.jsx)(Un,{style:{padding:`6px 24px 12px`},children:(0,K.jsx)(Yg,{type:[`red`,`medium`],children:U(`login.error`)})}
2300)):null;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(_m,{}),(()=>{let e=O(a),{isLoadingAccounts:n}=r||{},i=!n&&!!e&&e.length>0;return(0,K.jsx)(g0,{label:U(`properties.connected_properties`),content:U(`account.connect_only`),loading:n,onConnect:()=>t(aF(Z.settingsConnections)),children:i&&(0,K.jsx)(I,{sx:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(220px, 1fr))`,gap:`10px`},children:ae(e)})})})(),(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(g0,{label:U(`properties.ical`),content:U(`properties.ical_info`),onConnect:ie,loading:S&&!d,children:[le(w),C&&ue(C),p&&ue(p),h&&ue(h)]}),l&&(0,K.jsx)(p0,{settings:w,show:l,onClose:ne,onSubmit:re,prefill:_,updateMode:Object.keys(_).length!==0})]}),y&&(0,K.jsx)(X,{show:!0,onClose:()=>b(null),width:420,height:`auto`,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:U(`properties.ical_disconnect_confirm_title`)}),(0,K.jsx)(X.Text,{children:U(`properties.ical_disconnect_confirm_message`,{title:y.title})}),(0,K.jsx)(gm,{}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:()=>b(null)}),(0,K.jsx)(X.Ok,{onClick:se})]})]})})]})};_0.propTypes={property:V.default.string.isRequired};function OTe(e){return{type:KE,meta:e}}var kTe=A(JC,(e,t)=>t.contactId,(e,t)=>e?Object.values(e||{}).filter(e=>!!e.requestedCleaners.map(e=>e.id===t&&e.status!==Ua.AcceptedByOtherCleaner).includes(!0)):[],{memoize:ae,argsMemoize:ae}),v0=`JobCleanerRequestList`;function*ATe(e,t,n,r,i,a){let o=yield P(e,t,n,r,a,i);return yield M(nF(`cleanerRequest`,(0,CR.default)(o,`jobId`),!0)),o}function*jTe(e,t,n,r){let i=yield P(e,t,`HOST`,n,r),a={},o=yield L(jW);return i.forEach(e=>{e.jobId!==o.selectedJobRequestId&&(a[e.jobId]=e)}),yield M(nF(`jobRequests`,a,!0)),i}function*MTe({meta:{page:e,onlyUpcoming:t,contactId:n,pagination:r,mode:i,limit:a}}){try{let o;yield M(uF(v0,r?-1:1,{page:e})),i===`contact`&&(o=yield P(ATe,bxe,n,`HOST`,e,t,a)),i===`property`&&(o=yield P(jTe,lQ,n,e,a)),yield M(uF(v0,2,{page:e,hasMore:o.length===a}))}catch(t){R.default.error(`jobCleanerRequestListSaga`,t),yield M(uF(v0,3,{page:e}))}}function*NTe(){yield Ee(KE,MTe)}function y0(e){return`${e.contactId}${e.onlyUpcoming}`}var b0=20,PTe=6,x0={contact:`property`,property:`cleaner`},S0=e=>x0[e];function FTe(e,t,n){return e===`contact`?kTe(t,n):e===`property`?$C(t,n):[]}var C0=class extends B.PureComponent{constructor(...e){super(...e),k(this,`load`,(e,t)=>{let{contactId:n,onlyUpcoming:r,mode:i,isReducedJobListLimit:a,jobCleanerRequestListSaga:o}=this.props;return o({contactId:n,onlyUpcoming:r,page:t?e:0,pagination:t,mode:i,limit:a?PTe:b0})}),k(this,`loadMore`,()=>{this.load(this.page+b0,!0)})}componentDidMount(){let{isLoadingFull:e,isLoadingPartial:t}=this.props;!e&&!t&&this.load(this.page)}componentDidUpdate(e){let{isUntouched:t,isLoadingFull:n,isLoadingPartial:r}=this.props;!n&&!r&&(y0(e)!==y0(this.props)||t)&&this.load(this.page)}get page(){let{page:e}=this.props;return e||0}get data(){let{contactId:e,mode:t,filter:n,data:r}=this.props;if(S0(t)===x0.contact){let t=r?.filter(t=>{let{jobRequestModel:n}=t||{},{assignedToContactId:r}=n||{};return!r||r===e});return n?t?.filter(n):t}return n?r?.filter(n):r}get loading(){let{isLoadingFull:e,loading:t}=this.props;return e||t}render(){let{ascending:e,mode:t,isLoadingPartial:n,onClick:r,isErrored:i,hasMore:a,contactId:o}=this.props;return(0,K.jsx)(tS,{ascending:!!e,mode:S0(t),isLoadingPagination:n,onLoadMore:this.loadMore,onClick:r,jobRequestsArray:this.data,isLoading:!!this.loading,hasError:i,hasMore:a,contactId:o})}};C0.propTypes={contactId:V.default.string.isRequired,mode:V.default.oneOf([`contact`,`property`]).isRequired,onClick:V.default.func.isRequired,isUntouched:V.default.bool.isRequired,data:V.default.arrayOf(V.default.shape({})).isRequired,isLoadingFull:V.default.bool.isRequired,jobCleanerRequestListSaga:V.default.func.isRequired,isLoadingPartial:V.default.bool.isRequired,isErrored:V.default.bool.isRequired,onlyUpcoming:V.default.bool,page:V.default.number,loading:V.default.bool,ascending:V.default.bool,hasMore:V.default.bool,filter:V.default.oneOfType([V.default.func,V.default.bool]),isReducedJobListLimit:V.default.bool},C0.defaultProps={onlyUpcoming:!1,filter:!1,loading:!1,ascending:!1,page:0,hasMore:!1,isReducedJobListLimit:!1};function ITe(e,t){let n=bw(v0)(e),r=fB(`feature_flag_reduced_job_list_limit`)(e,t);return{data:FTe(t.mode,e,t),isErrored:n.isErrored,isLoadingFull:n.isLoadingFull,isLoadingParti
2300al:n.isLoadingPartial,isUntouched:n.isUntouched,page:Ew(v0,`page`)(e),hasMore:Ew(v0,`hasMore`)(e),isReducedJobListLimit:r}}var w0=Nt(ITe,{jobCleanerRequestListSaga:OTe})(C0);function T0({clickEdit:e,clickShowMerge:t,clickNoMerge:n,propertyId:r}){let[i,a]=(0,B.useState)(void 0),[o,s]=(0,B.useState)([]),c=(0,B.useRef)(null),l=j(FC),u=j(e=>nw(r)(e)),d=j(PC);return(0,B.useEffect)(()=>{(()=>{if(u&&c.current!==u.objectId){let e=Uo(Object.values(d)).filter(e=>{let t=e.address?.AddressArray?.[0]?.trim(),n=u.address?.AddressArray?.[0]?.trim();return t&&t===n&&e.objectId!==u.objectId&&cc(e.ownerRole,l)}).map(e=>e.objectId);e.length>0&&(a(u.objectId),s(e),fpe()),c.current=u.objectId}})()},[u,d,l]),u?(0,K.jsxs)(`div`,{children:[i===u.objectId&&!u.noMerge&&(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(DM,{text:U(`properties.merge_info`),icon:`warning`,color:`red`,isMergeInfo:!0,children:[(0,K.jsx)(q,{onClick:()=>{let e=u.objectId;t([e,...o?.filter(t=>t!==e)])},types:[`type-full-cancelled`,`size-medium`,`height-32`],children:U(`properties.view_dups`)}),(0,K.jsx)(ym,{}),(0,K.jsx)(q,{onClick:()=>{n(u.objectId)},types:[`type-border-grey`,`size-medium`,`height-32`,`background-trans`,`fontw-normal`],children:U(`properties.no_thanks`)})]}),(0,K.jsx)(ym,{})]}),!ic(u.address,u)&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(DM,{text:U(`properties.incomplete_address_info`),icon:`warning`,color:`red`,isPrompt:!0,children:(0,K.jsx)(q,{onClick:()=>{e(u.objectId)},types:[`type-full-cancelled`,`size-medium`,`height-32`],children:U(`properties.edit_property`)})}),(0,K.jsx)(ym,{})]})]}):null}T0.propTypes={clickEdit:V.default.func,clickShowMerge:V.default.func,clickNoMerge:V.default.func,propertyId:V.default.string};var LTe=(0,B.memo)(T0),RTe=F` 2301 mutation CreateAutoScheduler( 2302 $jobType: String! 2303 $jobTitle: String 2304 $isForwardingEnabled: Boolean 2305 $propertyId: String! 2306 $checklistIds: [String] 2307 $skills: [SkillsRequirementInput] 2308 $serviceProviders: [ServiceProvidersDetailsInput] 2309 $offeredPrice: Float 2310 $offeredPriceCurrency: String 2311 $tasks: [TaskInput] 2312 $eventType: EventTypeEnum 2313 $timeConfig: TimeConfigInput 2314 $recurrenceConfig: RecurrenceConfigInput 2315 $editedCheckInOutConfig: EditedCheckInOutConfigInput 2316 $canceledCheckInOutConfig: CanceledCheckInOutConfigInput 2317 $serviceProviderConfig: ServiceProviderConfigInput 2318 ) { 2319 CreateAutoScheduler( 2320 jobType: $jobType 2321 jobTitle: $jobTitle 2322 isForwardingEnabled: $isForwardingEnabled 2323 propertyId: $propertyId 2324 checklistIds: $checklistIds 2325 skills: $skills 2326 serviceProviders: $serviceProviders 2327 offeredPrice: $offeredPrice 2328 offeredPriceCurrency: $offeredPriceCurrency 2329 tasks: $tasks 2330 eventType: $eventType 2331 timeConfig: $timeConfig 2332 recurrenceConfig: $recurrenceConfig 2333 editedCheckInOutConfig: $editedCheckInOutConfig 2334 canceledCheckInOutConfig: $canceledCheckInOutConfig 2335 serviceProviderConfig: $serviceProviderConfig 2336 ) { 2337 error 2338 message 2339 result { 2340 id 2341 ownerRole 2342 jobType 2343 jobTitle 2344 isForwardingEnabled 2345 note 2346 propertyId 2347 propertyTitle 2348 checklists { 2349 id 2350 title 2351 } 2352 skills { 2353 id 2354 title 2355 dependency 2356 } 2357 serviceProviders { 2358 serviceProviderId 2359 serviceProviderName 2360 backup 2361 } 2362 offeredPrice 2363 offeredPriceCurrency 2364 tasks { 2365 id 2366 title 2367 note 2368 pictureIdentifiers 2369 } 2370 eventType 2371 2372 timeConfig { 2373 schedulingInterval 2374 relativeStartTime 2375 duration 2376 startTime 2377 endTime 2378 jobStartTimeType 2379 } 2380 recurrenceConfig { 2381 repeatEvery 2382 repeatUnit 2383 daysOfWeek 2384 daysOfMonth 2385 startDate 2386 } 2387 2388 editedCheckInOutConfig { 2389 edit 2390 sendHostEmailNotification 2391 } 2392 canceledCheckInOutConfig { 2393 cancel 2394 sendHostEmailNotification 2395 } 2396 serviceProviderConfig { 2397 resendAfter 2398 sendHostEmailNotification 2399 } 2400 status 2401 createdAt 2402 updatedAt 2403 deleted 2404 } 2405 } 2406 } 2407`,zTe=F` 2408 mutation UpdateAutoScheduler($id: String!, $changes: AutoSchedulerInput) { 2409 UpdateAutoScheduler(id: $id, changes: $changes) { 2410 error 2411 message 2412 result { 2413 id 2414 ownerRole 2415 jobType 2416 jobTitle 2417 isForwardingEnabled 2418 propertyId 2419 propertyTitle 2420 note 2421 checklists { 2422 id 2423 title 2424 } 2425 skills { 2426 id 2427 title 2428 dependency 2429 } 2430 serviceProviders { 2431 serviceProviderId 2432 serviceProviderName 2433 backup 2434 } 2435 offeredPrice 2436 offeredPriceCurrency 2437 tasks { 2438 id 2439 title 2440 note 2441 pictureIdentifiers 2442 } 2443 eventType 2444 timeConfig { 2445 schedulingInterval 2446 relativeStartTime 2447 duration 2448 startTime 2449 endTime 2450 jobStartTimeType 2451 } 2452 recurrenceConfig { 2453 repeatEvery 2454 repeatUnit 2455 daysOfWeek 2456 daysOfMonth 2457 startDate 2458 } 2459 editedCheckInOutConfig { 2460 edit 2461 sendHostEmailNotification 2462 } 2463 canceledCheckInOutConfig { 2464 cancel 2465 sendHostEmailNotification 2466 } 2467 serviceProviderConfig { 2468 resendAfter 2469 sendHostEmailNotification 2470 } 2471 status 2472 createdAt 2473 updatedAt 2474 deleted 2475 } 2476 } 2477 } 2478`,BTe=F` 2479 mutation DeleteAutoScheduler($id: String!) { 2480 DeleteAutoScheduler(id: $id) { 2481 error 2482 message 2483 } 2484 } 2485`,VTe=F` 2486 mutation UpdateAutoSchedulerStatus($id: String!, $status: AutoSchedulerStatusEnum) { 2487 UpdateAutoSchedulerStatus(id: $id, status: $status) { 2488 error 2489 message 2490 } 2491 } 2492`,E0=F` 2493 query LoadAllAutoSchedulers( 2494 $limit: Int 2495 $offset: Int 2496 $sortOrder: SortingOrder 2497 $sortColumn: String 2498 $propertyId: ID 2499 $showAll: Boolean! 2500 ) { 2501 LoadAllAutoSchedulers( 2502 limit: $limit 2503 offset: $offset 2504 sortOrder: $sortOrder 2505 sortColumn: $sortColumn 2506 propertyId: $propertyId 2507 showAll: $showAll 2508 ) { 2509 error 2510 message 2511 info { 2512 limit 2513 offset 2514 total 2515 } 2516 result { 2517 id 2518 ownerRole 2519 jobType 2520 jobTitle 2521 isForwardingEnabled 2522 propertyId 2523 note 2524 propertyTitle 2525 checklists { 2526 id 2527 title 2528 } 2529 skills { 2530 id 2531 title 2532 dependency 2533 } 2534 serviceProviders { 2535 serviceProviderId 2536 serviceProviderName 2537 backup 2538 } 2539 offeredPrice 2540 offeredPriceCurrency 2541 tasks { 2542 id 2543 title 2544 note 2545 pictureIdentifiers 2546 } 2547 eventType 2548 timeConfig { 2549 schedulingInterval 2550 relativeStartTime 2551 duration 2552 startTime 2553 endTime 2554 jobStartTimeType 2555 } 2556 recurrenceConfig { 2557 repeatEvery 2558 repeatUnit 2559 daysOfWeek 2560 daysOfMonth 2561 startDate 2562 } 2563 editedCheckInOutConfig { 2564 edit 2565 sendHostEmailNotification 2566 } 2567 canceledCheckInOutConfig { 2568 cancel 2569 sendHostEmailNotification 2570 } 2571 serviceProviderConfig { 2572 resendAfter 2573 sendHostEmailNotification 2574 } 2575 status 2576 createdAt 2577 updatedAt 2578 deleted 2579 } 2580 } 2581 } 2582`,HTe=F` 2583 query LoadAllAutoSchedulers( 2584 $limit: Int 2585 $offset: Int 2586 $sortOrder: SortingOrder 2587 $sortColumn: String 2588 $showAll: Boolean! 2589 ) { 2590 LoadAllAutoSchedulers( 2591 limit: $limit 2592 offset: $offset 2593 sortOrder: $sortOrder 2594 sortColumn: $sortColumn 2595 showAll: $showAll 2596 ) { 2597 error 2598 message 2599 info { 2600 total 2601 } 2602 } 2603 } 2604`,UTe=F` 2605 query LoadAnAutoScheduler($id: String, $autoSchedulerId: String) { 2606 LoadAnAutoScheduler(id: $id, autoSchedulerId: $autoSchedulerId) { 2607 error 2608 message 2609 result { 2610 id 2611 ownerRole 2612 jobType 2613 jobTitle 2614 isForwardingEnabled 2615 propertyId 2616 propertyTitle 2617 note 2618 checklists { 2619 id 2620 title 2621 } 2622 skills { 2623 id 2624 title 2625 dependency 2626 } 2627 serviceProviders { 2628 serviceProviderId 2629 serviceProviderName 2630 backup 2631 } 2632 offeredPrice 2633 offeredPriceCurrency 2634 tasks { 2635 id 2636 title 2637 note 2638 pictureIdentifiers 2639 } 2640 eventType 2641 timeConfig { 2642 schedulingInterval 2643 relativeStartTime 2644 duration 2645 startTime 2646 endTime 2647 jobStartTimeType 2648 } 2649 recurrenceConfig { 2650 repeatEvery 2651 repeatUnit 2652 daysOfWeek 2653 daysOfMonth 2654 startDate 2655 } 2656 editedCheckInOutConfig { 2657 edit 2658 sendHostEmailNotification 2659 } 2660 canceledCheckInOutConfig { 2661 cancel 2662 sendHostEmailNotification 2663 } 2664 serviceProviderConfig { 2665 resendAfter 2666 sendHostEmailNotification 2667 } 2668 status 2669 createdAt 2670 updatedAt 2671 deleted 2672 } 2673 } 2674 } 2675`,D0=e=>e==null?void 0:parseFloat(e),WTe=e=>e&&typeof e.toISOString==`function`?e.toISOString():e,O0=e=>Array.isArray(e)?e.map(O0):e&&typeof e==`object`?Object.entries(e).reduce((e,[t,n])=>(t!==`__typename`&&(e[t]=O0(n)),e),{}):e,GTe=e=>e&&String(e).toLowerCase(),k0=e=>!e||typeof e!=`object`||!e.repeatUnit?e:{...e,repeatUnit:GTe(e.repeatUnit)},A0=e=>{let{repeatEvery:t,repeatUnit:n,daysOfWeek:r,daysOfMonth:i,startDate:a}=e||{};return O0({...t!=null&&{repeatEvery:D0(t)},...n&&{repeatUnit:n},...Array.isArray(r)&&{daysOfWeek:r},...Array.isArray(i)&&{daysOfMonth:i},...a&&{startDate:WTe(a)}})},j0=e=>e&&e.recurrenceConfig?{...e,recurrenceConfig:k0(e.recurrenceConfig)}:e,M0=e=>{let{jobType:t,isForwardingEnabled:n,property:r,checklist:i,offeredPrice:a,offeredPriceCurrency:o,selectedCleaners:s,note:c=``,title:l,skills:u,tasks:d,timeConfig:f,editedBookingConfig:p,canceledBookingConfig:m,serviceProviderConfig:h,recurrenceConfig:g,jobEventType:_}=e,v=d.map(e=>({id:e.id,sourceProblemId:e.sourceProblemId,title:e.title,note:e.note,pictureIdentifiers:e.pictureIdentifiers})),y=e=>{let{schedulingInterval:t,relativeStartTime:n,duration:r,startTime:i,endTime:a,jobStartTimeType:o}=e||{};return{...t&&{schedulingInterval:D0(t)},...n!=null&&{relativeStartTime:parseFloat(n)},...i!=null&&{startTime:D0(i)},...a!=null&&{endTime:D0(a)},...r&&{duration:D0(r)},...o&&{jobStartTimeType:o}}},b=(e,t)=>{let{resendAfter:n,sendHostEmailNotification:r}=e||{},i=t?.some(e=>e.backup);return{...n&&(r||i)&&{resendAfter:D0(n)},...r&&{sendHostEmailNotification:r}}}
2675,x=O0(y(f)),S=O0(b(h,s)),C=A0(g),w=O0(p),T=O0(m),E=_===Xa.RECURRING;return{jobType:t,isForwardingEnabled:n,eventType:_,jobTitle:l,note:c,propertyId:r?.objectId,checklistIds:i,serviceProviders:s,offeredPrice:D0(a)||0,offeredPriceCurrency:o,skills:u,tasks:v,timeConfig:x,serviceProviderConfig:S,...E?{recurrenceConfig:C}:{editedCheckInOutConfig:w,canceledCheckInOutConfig:T}}},KTe=async e=>{try{let t=(await QF.mutate({mutation:RTe,variables:{...M0(e)},fetchPolicy:`no-cache`})).data.CreateAutoScheduler;if(t.error)throw Error(t.message);return t}catch(e){return R.default.error(`createAutoSchedulerApi ${e}`),e.apiError=!0,e}},qTe=async({id:e,job:t})=>{try{let n=(await QF.mutate({mutation:zTe,variables:{id:e,changes:M0(t)},fetchPolicy:`no-cache`})).data.UpdateAutoScheduler;if(n.error)throw Error(n.message);return n}catch(e){return R.default.error(`updateAutoSchedulerApi ${e}`),e.apiError=!0,e}},JTe=async e=>{try{let t=(await QF.mutate({mutation:BTe,variables:{id:e},fetchPolicy:`no-cache`})).data.DeleteAutoScheduler;if(t.error)throw Error(t.message);return t}catch(e){return R.default.error(`deleteAutoSchedulerApi ${e}`),e.apiError=!0,null}},N0=async(e,t)=>{try{let n=(await QF.mutate({mutation:VTe,variables:{id:e,status:t},fetchPolicy:`no-cache`})).data.UpdateAutoSchedulerStatus;if(n.error)throw Error(n.message);return n}catch(e){return R.default.error(`toggleAutoschedulerStatusApi ${e}`),e.apiError=!0,null}},P0=async()=>{try{let e=(await QF.query({query:HTe,fetchPolicy:`no-cache`,variables:{showAll:!0}})).data.LoadAllAutoSchedulers;if(e.error)throw Error(e.message);return e.info.total}catch(e){return R.default.error(`getAutoSchedulersCountApi ${e}`),e.apiError=!0,null}},YTe=async(e,t)=>{try{let n=t===`jobs`?{autoSchedulerId:e}:{id:e},r=(await QF.query({query:UTe,variables:n,fetchPolicy:`no-cache`})).data.LoadAnAutoScheduler;if(r.error)throw Error(r.message);return j0(r.result)}catch(e){return R.default.error(`getAutoschedulerByIdApi ${e}`),e.apiError=!0,null}},XTe=async(e,t,n)=>{try{let{data:r}=await QF.query({query:E0,variables:{propertyId:e,offset:t,limit:n,showAll:!0},fetchPolicy:`no-cache`}),i=r.LoadAllAutoSchedulers;return Array.isArray(i?.result)?{...i,result:i.result.map(j0)}:i}catch(t){throw R.default.error(`getAutoSchedulersForPropertyApi - Error fetching autoscheduler`,e),t}};function ZTe(e,t=10){let[n,r]=(0,B.useState)([]),[i,a]=(0,B.useState)(0),[o,s]=(0,B.useState)(!1),[c,l]=(0,B.useState)(!1),u=(0,B.useCallback)(async(n=!1)=>{let o=n?0:i;l(!0);try{let{result:n,info:i}=await XTe(e,o,t);r(o===0?n:e=>[...e,...n]),a(o+t),s(i.offset+t<i.total)}catch(e){R.default.error(e)}finally{l(!1)}},[e,i,t]);return(0,B.useEffect)(()=>{if(e)return u(!0),()=>{r([]),a(0),s(!1)}},[e]),{schedulerList:n,fetchAutoScheduler:u,hasMore:o,loading:c}}Qn();var F0={card:{display:`flex`,flexDirection:`column`,gap:2,p:`20px 24px`,bgcolor:`var(--surface-ground, var(--color-bg))`,border:`1px solid var(--color-border)`,borderRadius:`12px`,mb:1.5,transition:`all 0.15s ease`,fontFamily:`Plus Jakarta Sans, Helvetica, Arial, sans-serif`,"&:hover":{borderColor:`var(--color-primary)`,boxShadow:`0 2px 12px rgba(0, 0, 0, 0.06)`}},header:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:2},titleSection:{display:`flex`,alignItems:`center`,flex:1,minWidth:0},title:{fontSize:15,fontWeight:600,color:`var(--color-text)`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},actions:{display:`flex`,alignItems:`center`,gap:1,flexShrink:0},grid:{display:`grid`,gridTemplateColumns:`repeat(3, 1fr)`,gap:2,pt:1.5,borderTop:`1px solid var(--color-border)`},column:{display:`flex`,flexDirection:`column`,gap:1.25},dataRow:{display:`flex`,alignItems:`flex-start`,gap:1,fontSize:13,lineHeight:1.4},dataDot:{width:6,height:6,borderRadius:`50%`,bgcolor:`var(--color-primary)`,flexShrink:0,mt:`6px`},dataLabel:{color:`var(--color-text-secondary)`,fontWeight:500},dataValue:{color:`var(--color-text)`,fontWeight:600,ml:.5},badge:{bgcolor:`var(--color-primary-alpha-10, rgba(54, 172, 178, 0.1))`,color:`var(--color-primary)`,fontSize:11,fontWeight:600,px:1,py:.25,borderRadius:`9999px`,display:`inline-flex`,verticalAlign:`middle`,ml:.75},iconButton:{width:32,height:32,borderRadius:`6px`,transition:`all 0.15s ease`,"&:hover":{bgcolor:`var(--color-bg-elevated, #f5f5f5)`}},dialogWarning:{fontSize:14,fontWeight:400,color:`var(--color-text-secondary)`}},I0=({scheduler:e})=>{let t=Vn(),n=new Ns(e),[r,i]=(0,B.useState)(e.status===`active`),[a,o]=(0,B.useState)(!1),[s,c]=(0,B.useState)(!1),l={show:!1,type:null},[u,d]=(0,B.useState)(l),f=ec(e),p=$s(e),m=Ls(e),h=Rs(e),g=Ps(e),_=f.length,v=m.length,y=h.length,b=e.jobTitle?e.jobTitle:`${e.propertyTitle}_Autoscheduler`,x=()=>{o(!0)},S=()=>{o(!1)},w=()=>{t(Z.editAutoscheduler(e.id))},T=async()=>{c(!0);let t=!r,n=t?`active`:`inactive`;try{await N0(e.id,n),i(t),d({show:!0,type:`success`,message:U(`autoscheduler.success_toggle_status`)})}catch{d({show:!0,type:`error`,message:U(`autoscheduler.error_toggle_status`)})}finally{c(!1),o(!1)}},E=(e,t,n,r)=>(0,K.jsxs)(I,{sx:F0.dataRow,children:[(0,K.jsx)(I,{sx:F0.dataDot}),(0,K.jsxs)(I,{children:[(0,K.jsx)(I,{component:`span`,sx:F0.dataLabel,children:e}),(0,K.jsx)(I,{component:`span`,sx:F0.dataValue,children:n?(0,K.jsxs)(Ig,{title:n,sx:{display:`inline`},children:[t,r>1&&(0,K.jsx)(I,{component:`span`,sx:F0.badge,children:`+${r-1}`})]}):t})]})]});return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(I,{sx:F0.card,children:[(0,K.jsxs)(I,{sx:F0.header,children:[(0,K.jsx)(I,{sx:F0.titleSection,children:(0,K.jsx)(I,{sx:F0.title,children:b})}),(0,K.jsxs)(I,{sx:F0.actions,children:[(0,K.jsx)(Ig,{title:U(`autoscheduler.toggle_scheduler_status`),children:(0,K.jsx)(C,{checked:r,onChange:x})}),(0,K.jsx)(Ig,{title:U(`autoscheduler.open_scheduler`),children:(0,K.jsx)(br,{size:`small`,onClick:w,sx:F0.iconButton,children:(0,K.jsx)(Y.ExternalLink,{byWidth:!0,width:`20px`,height:`20px`,color:Wp})})})]})]}),(0,K.jsxs)(I,{sx:F0.grid,children:[(0,K.jsxs)(I,{sx:F0.column,children:[E(`${U(`list_view.legend.scheduling_interval`)}:`,g),E(`${U(`list_view.start_time`)}:`,n.getTimeString())]}),(0,K.jsxs)(I,{sx:F0.column,children:[E(`${U(`detailed_view.checklists`)}:`,f[0]||`â`,p,_),E(`${U(`job_request.duration`)}:`,n.getDateDurationFormatted())]}),(0,K.jsxs)(I,{sx:F0.column,children:[E(`${U(`autoscheduler.primary_sp`)}:`,m[0]||`â`,m.join(`, `),v),E(`${U(`autoscheduler.additional_sp`)}:`,h[0]||`â`,h.join(`, `),y)]})]})]}),(0,K.jsxs)(gt,{open:a,onClose:S,children:[(0,K.jsx)(Ie,{children:U(`autoscheduler.toggle_status`)}),(0,K.jsx)(Ut,{children:(0,K.jsx)(Yt,{children:(0,K.jsx)(I,{sx:F0.dialogWarning,children:U(r?`autoscheduler.toggle_status_desc`:`autoscheduler.toggle_status_desc_on`)})})}),(0,K.jsxs)(en,{children:[(0,K.jsx)(q,{onClick:S,color:`primary`,children:U(`properties.cancel`)}),(0,K.jsx)(q,{onClick:T,color:`primary`,disabled:s,autoFocus:!0,children:s?`${U(`autoscheduler.updating`)}...`:U(`autoscheduler.confirm`)})]})]}),(0,K.jsx)(wf,{open:u.show,message:u.message,onClose:()=>d(l),error:u.type===`error`,success:u.type===`success`})]})};I0.propTypes={scheduler:V.default.shape({}).isRequired},Qn();var QTe=_i.default.bind(P1),L0=({propertyId:e})=>{let t=Vn(),{schedulerList:n,fetchAutoScheduler:r,hasMore:i,loading:a}=ZTe(e,50);return(0,K.jsxs)(I,{sx:{minHeight:300},children:[(0,K.jsx)(I,{sx:{fontSize:14,color:`var(--color-text-secondary)`,lineHeight:1.5,mb:2.5},children:U(`autoscheduler.description`)}),(0,K.jsxs)(`button`,{type:`button`,"data-testid":`add_autoscheduler`,onClick:()=>{t(Z.newAutoscheduler(e))},className:QTe(`property-detail__add-card`),children:[`+ `,U(`autoscheduler.add_schedule`)]}),(0,K.jsx)(I,{sx:{pt:1}
2675,children:(n?.length===0||!n)&&!a?(0,K.jsx)(I,{sx:{display:`flex`,height:200,width:`100%`,justifyContent:`center`,flexDirection:`column`,textAlign:`center`,alignItems:`center`,color:`var(--color-text-secondary)`,fontSize:15},children:(0,K.jsx)(`p`,{children:U(`autoscheduler.no_autoschedulers`)})}):(0,K.jsx)(K.Fragment,{children:n?.map(e=>(0,K.jsx)(I0,{scheduler:e},e.id))})}),!a&&i&&(0,K.jsx)(I,{sx:{textAlign:`center`,mt:2.5},children:(0,K.jsx)(q,{onClick:()=>{r(!1)},types:[`type-flat-primary`,`size-medium`,`fontw-normal`,`fonts-12`,`width-flex`,`height-24`],children:U(`properties.load_more`)})}),a&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(J,{height:134,style:{margin:`18px 0px`,borderRadius:`6px`}}),(0,K.jsx)(J,{height:134,style:{margin:`18px 0px`,borderRadius:`6px`}})]})]})};L0.propTypes={propertyId:V.default.string.isRequired},Qn();var R0=_i.default.bind(P1);function $Te({children:e}){let t=Rn(),n=xe(),{trackClick:r,trackTab:i}=nT(`PropertyDetailContainer`),{id:a,jobRequestId:o,propertyDetailView:s}=t,c=j(FC),l=j(e=>sB(e)),u=(0,B.useMemo)(()=>lw(),[]),d=j(e=>u(e,{id:a})),f=j(yw),p=j(xW),m=j(e=>sw(e)),h=j(hw)===c_.LOADED,[g,_]=(0,B.useState)(!1),v=2;s===sA.propertydetails?v=1:s===sA.propertychecklists?v=3:s===sA.propertyconnections?v=4:s===sA.propertyevents?v=5:s===sA.propertyhistory?v=6:s===sA.propertyAutoScheduler&&(v=7);let y=h&&!d,b=d,S=d&&d.deleted;(0,B.useEffect)(()=>{o&&n(YJ(o))},[o,n]);let C=e=>{n(tF({isOpen:!0,images:(e||[]).map(e=>({image:e}))}))},w=e=>{n(pq({isOpen:!0,selected:e}))},T=()=>(0,K.jsx)(`div`,{className:R0(`property-detail--inactive-property-message-container`),children:(0,K.jsxs)(`div`,{className:R0(`property-detail--inactive-property-message`),children:[(0,K.jsx)(Y.IcError1,{height:`50px`,width:`50px`}),(0,K.jsx)(`p`,{children:(0,K.jsx)(O,{i18nKey:`properties.inactive_message`,components:{anchor:(0,K.jsx)(`a`,{className:R0(`property-detail--subscriptionLink`),href:`/settings/subscription`})}})})]})}),E=()=>{d?.objectId&&(r(`delete_property`,{view:`property_detail`}),window.confirm(U(`properties.really_delete_property`))===!0&&n(lq(d.objectId)))},D=()=>{d?.ownerRole&&n(e$(`pre_leave_property_external`,{teamId:(0,G.default)(lte(c,d.ownerRole),`teamId`)}))},ee=()=>{d?.objectId&&(r(`edit_property`,{view:`property_detail`}),n(xq(d.objectId)))},te=()=>{d?.objectId&&(r(`open_gallery`,{view:`property_detail`}),n(bq(d.objectId)))},ne=e=>{n(mq(e))},re=[{key:`edit`,name:U(`properties.edit_property`),onClick:ee},{key:`delete`,name:U(`properties.delete_property`),onClick:E},{key:`removecoll`,name:U(`properties.leave_collaboration`),onClick:D}],ie=e=>{n(YJ(e.jobId))};function ae(e){let{failedAtRecurly:t}=d||{};return t?T():e}function oe(e){let t=!1;return p?.length>0&&d?.objectId&&(t=!!p.find(({propertyId:e})=>e===d.objectId)),(0,K.jsxs)(I,{className:R0(`property-detail-tabs-container`),sx:{background:`var(--color-white)`,borderRadius:`var(--radius-lg, 14px)`,marginTop:`24px`,boxShadow:`var(--shadow-sm)`,border:`1px solid var(--color-border)`,overflow:`hidden`},children:[(0,K.jsxs)(Cg,{children:[(0,K.jsx)(Cg.Item,{"data-testid":`button_section_jobrequests`,onClick:()=>{i(`job_requests`,`Job Requests`,{view:`property_detail`}),n(yq(a))},active:e===2,children:U(`properties.job_requests`)}),l&&(0,K.jsx)(Cg.Item,{"data-testid":`button_section_propertyhistory`,onClick:()=>{i(`history`,`History`,{view:`property_detail`}),n(wq(a))},active:e===6,children:U(`properties.history`)}),(0,K.jsx)(Cg.Item,{"data-testid":`button_section_checklists`,onClick:()=>{i(`checklists`,`Checklists`,{view:`property_detail`}),n(Dq(a))},active:e===3,children:U(`properties.checklists`)}),(0,K.jsx)(Cg.Item,{"data-testid":`button_section_propertydetails`,onClick:()=>{i(`details`,`Property Details`,{view:`property_detail`}),n(Cq(a))},active:e===1,children:U(`properties.property_details`)}),(0,K.jsx)(Mw,{meta:{propertyId:d?.objectId},hasAccessFormatter:e=>e.canSendJobs,renderWithPermission:()=>(0,K.jsxs)(Cg.Item,{"data-testid":`button_section_propertyconnections`,onClick:()=>{i(`connections`,`Connections`,{view:`property_detail`}),n(Tq(a))},active:e===4,children:[t&&(0,K.jsx)(Y.IcError1,{height:`18px`,width:`18px`,style:{float:`left`,marginRight:`4px`}}),U(`properties.property_connections`)]})}),(0,K.jsx)(Mw,{meta:{propertyId:d?.objectId},hasAccessFormatter:e=>e.canSendJobs,renderWithPermission:()=>(0,K.jsx)(Cg.Item,{onClick:()=>{i(`automation`,`Automation`,{view:`property_detail`}),n(Eq(a))},active:e===5,children:U(`properties.automation`)})}),(0,K.jsx)(Cg.Item,{"data-testid":`button_section_autoscheduler`,onClick:()=>{i(`autoscheduler`,`Auto Scheduler`,{view:`property_detail`}),n(Oq(a))},active:e===7,children:U(`autoscheduler.title`)})]}),(0,K.jsxs)(I,{sx:{padding:`24px`},children:[e===1&&ae((0,K.jsx)(B1,{openPictures:C,propertyId:a,otherAttributes:d?.otherAttributes})),e===2&&ae((0,K.jsx)(w0,{mode:`property`,contactId:a,onClick:ie})),e===3&&ae((0,K.jsx)(X1,{propertyId:a,propertyData:d})),e===4&&ae((0,K.jsx)(_0,{property:a})),e===5&&ae((0,K.jsx)(c0,{property:a,propertyData:d})),l&&e===6&&(0,K.jsx)(Q1,{openPictures:C,propertyId:a}),e===7&&(0,K.jsx)(L0,{propertyId:a})]})]})}function se(e){return e?iu(e):``}let ce=()=>{let{objectId:e,timeZone:t}=d||{};r(`send_job_request`,{view:`property_detail`}),(!e||!t)&&R.default.warn(`Attempting to openSendJobRequestModal with no property objectId or timeZone`,{propertyData:d,objectId:e,timeZone:t});let i=t&&(0,z.default)().tz(t)||(0,z.default)(),a=Jc(i.clone().add(3,`minutes`)),o=Jc(i.clone().add(63,`minutes`));n(dF(!0,`jobrequest`,{mode:`normal`,source:`property`,data:{jobType:no.turnover,propertyId:e,startTime:a,endTime:o,duration:`60`,jobStartTimeType:`fixed`}}))},le=e=>()=>{_(e)};function ue(e){return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(_m,{}),(0,K.jsx)(hy,{hideLabel:!0,...e})]})}function de(e,t,n){return e?(0,K.jsxs)(`div`,{children:[(0,K.jsx)(gm,{}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:.5,color:`text.secondary`},children:[(0,K.jsx)(Y.IcShare,{color:`currentColor`,height:`12px`,width:`12px`,byWidth:!0}),(0,K.jsxs)(x,{variant:`caption`,color:`inherit`,children:[U(`permissions.shared_by`),`: `,(0,K.jsx)(`strong`,{children:dc(n)})]})]})]}):t?(0,K.jsxs)(`div`,{children:[(0,K.jsx)(gm,{}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:.5,color:`text.secondary`},children:[(0,K.jsx)(Y.IcSharedwith,{color:`currentColor`,height:`12px`,width:`12px`,byWidth:!0}),(0,K.jsx)(x,{variant:`caption`,color:`inherit`,component:`div`,children:(0,K.jsx)(u0,{preText:`${U(`permissions.shared_with`)}: `,propertyId:n.objectId})})]})]}):null}function fe(){return(0,K.jsx)(Mw,{meta:{propertyId:(0,G.default)(d,[`objectId`])},hasAccessFormatter:e=>({access:e.canEditDeleteProperty,isShared:!e.isOwnerProperty}),render:e=>{let t=ge(e.access,e.isShared,d?.failedAtRecurly);return t.length===0?null:(0,K.jsx)(Lg,{popoverKey:`editProperty`,width:200,hasArrow:!0,arrowPosition:{horizontal:`middle`,vertical:`top`},popoverContent:e=>(0,K.jsx)(Ad,{closePopover:e.closePopup,items:(0,xo.default)(re,e=>
2675t.includes(e.key)).map(e=>({...e,isDelete:e.key===`delete`}))}),children:(0,K.jsx)(br,{"data-testid":`button_edit_property`,size:`small`,sx:{bgcolor:`var(--color-gray-200)`,"&:hover":{bgcolor:`var(--color-gray-300)`}},children:(0,K.jsx)(Y.IcMoreGrey,{height:`20px`,width:`20px`})})})}})}function pe(){let e=uc(d?.objectId,f),t=lc(d?.ownerRole,c),{objectId:n,proMarketProperty:r}=d||{},i=d?.address?.country;return(0,K.jsxs)(`div`,{className:R0(`property-detail-header`),children:[d?.failedAtRecurly&&(0,K.jsx)(`div`,{className:R0(`property-detail-header--overlay`)}),(0,K.jsx)(Mw,{meta:{propertyId:n},hasAccessFormatter:e=>e.canEditThisProperty&&e.isStandalone,renderWithPermission:()=>(0,K.jsx)(`div`,{className:R0(`property-detail-header--propertyMessage`),children:(0,K.jsx)(LTe,{clickEdit:ee,clickShowMerge:w,clickNoMerge:ne,propertyId:n})})}),(0,K.jsxs)(I,{sx:{display:`flex`},children:[(0,K.jsx)(Mw,{meta:{propertyId:n},hasAccessFormatter:e=>e.canEditDeleteProperty,render:e=>(0,K.jsxs)(`div`,{className:R0(`property-detail-picture__container`),children:[(0,K.jsx)(`div`,{className:R0(`property-detail-picture`),onClick:e?te:void 0,children:(0,K.jsx)(`div`,{className:R0(`property-detail-picture__inner`),children:(0,K.jsx)(Sg.Rectangular,{width:`180px`,height:`135px`,borderRadius:`14px`,image:se(d?.pictureUrl),children:(0,K.jsx)(g_.IconOverlay,{text:U(`properties.select_image`),isSet:!!d?.pictureUrl})})})}),e&&(0,K.jsx)(q,{types:[`type-flat-primary`],onClick:te,children:U(`properties.view_gallery`)})]})}),(0,K.jsxs)(`div`,{className:R0(`property-detail-address`),children:[(0,K.jsx)(Wg,{type:`nomargin`,style:{wordBreak:`break-word`,paddingRight:`24px`},children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[d?.title,r&&(0,K.jsx)(I,{sx:{marginLeft:`8px`},children:(0,K.jsx)(ef,{modalRequired:!0,propertyType:!0,urls:m})})]})}),(0,K.jsx)(hm,{}),(0,K.jsx)(`div`,{children:(0,K.jsx)(qg,{type:`blue-grey`,children:oc(d?.address)})}),(0,K.jsx)(hm,{}),(0,K.jsx)(`div`,{children:(0,K.jsx)(qg,{type:`blue-grey`,children:sc(d?.address)})}),(0,K.jsx)(hm,{}),(0,K.jsx)(`div`,{children:(0,K.jsx)(Jg,{type:`grey`,children:i})}),(0,K.jsx)(d0,{propertyId:d?.objectId}),ue(d),de(t,e,d),wX()&&(0,K.jsx)(TX,{jsonData:d,displayId:d?.objectId,mode:`property`})]}),(0,K.jsxs)(I,{sx:{flexShrink:0,display:`flex`,flexDirection:`column`,alignItems:`flex-end`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`flex-start`,gap:1},children:[(0,K.jsx)(Mw,{meta:{propertyId:n},hasAccessFormatter:e=>e.canSendJobs,renderWithPermission:()=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(q,{"data-testid":`button_send_job_property`,onClick:ce,types:[`type-full-primary`,`width-flex`,`size-large`],children:U(`properties.send_job_request`)}),(0,K.jsx)(`div`,{"data-testid":`button_see_community_service_providers`,className:R0(`property__cctxt`),onClick:le(!0),children:U(`properties.see_cc_btn`)})]})}),b&&!S&&fe()]}),(0,K.jsx)(Pg,{style:{zIndex:`100 !important`},onClose:le(!1),show:g,children:(0,K.jsx)(I,{sx:{width:`100%`},children:(0,K.jsx)(z1,{onClose:le(!1),property:d})})})]})]})]})}function me(e){return(0,K.jsxs)(I,{sx:{maxWidth:`1200px`,margin:`0 auto`},children:[pe(),oe(e)]})}function he(){return(0,K.jsx)(Af,{is404:!0,headline:U(`error.404error`),subHeadline:U(`error.looks_like_smth_wrong`)})}function ge(e,t,n){let r=[];return e&&(r=[...r,`edit`,`delete`]),t&&(r=[...r,`removecoll`]),n&&(r=r.filter(e=>e!==`edit`)),r}return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Yj,{grey:!0,children:(0,K.jsx)(Zj,{children:(0,K.jsxs)(Jj,{variation:`property`,type:`absolute-scroll`,children:[b&&!y&&!S&&me(v),!b&&!y&&(0,K.jsx)(xf,{}),!b&&y&&he()]})})}),e]})}var eEe=Wi(),z0={postal_code:{key:`zip`,useShortName:!0},country:{key:`country`,useShortName:!1},administrative_area_level_1:{key:`state`,useShortName:!0},locality:{key:`city`,useShortName:!1},route:{key:`street`,useShortName:!0},street_number:{key:`streetnum`,useShortName:!0}},tEe={zip:``,country:``,state:``,city:``,street:``,streetnum:``},B0=({onSet:e,className:t,placeholder:n})=>{let r=(0,B.useCallback)(e=>(0,If.default)(e,(e,t)=>{let n=t.types.find(e=>Object.prototype.hasOwnProperty.call(z0,e));if(n){let r=z0[n],i=r.useShortName?t.short_name:t.long_name;return{...e,[r.key]:i}}return e},{...tEe}),[]),i=(0,B.useCallback)(e=>{let{streetnum:t,street:n}=e;return t&&n?{...e,street:`${t} ${n}`,streetnum:void 0}:e},[]),a=(0,B.useCallback)(t=>{if(!t?.address_components)return;let n=i(r(t.address_components)),a=Object.fromEntries(Object.entries(n).filter(([,e])=>e!==void 0));if(t.geometry?.location){let{location:e}=t.geometry;a.lat=typeof e.lat==`function`?e.lat():e.lat,a.lng=typeof e.lng==`function`?e.lng():e.lng}let o=t.address_components?.find(e=>e.types?.includes(`country`));o&&(a.countryCode=o.short_name),e(a)},[e,r,i]);return(0,K.jsx)(a_,{apiKey:eEe.GOOGLE_MAPS_KEY,onPlaceSelect:a,placeholder:n||U(`properties.search_for_address2`),types:[`geocode`],className:t})};B0.propTypes={onSet:V.default.func.isRequired,className:V.default.string,placeholder:V.default.string};function V0({icon:e,label:t,value:n,stepper:r=1,min:i=0,onChange:a}){let o=()=>{let e=n-r;e>=i&&a(e)},s=()=>{a(n+r)},c=n<=i;return(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`10px 12px`,backgroundColor:`var(--color-bg)`,borderRadius:`var(--radius-sm)`}
2675,children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1},children:[(0,K.jsx)(I,{sx:{width:20,height:20,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`var(--color-text-secondary)`},children:(0,K.jsx)(e,{sx:{fontSize:14}})}),(0,K.jsx)(x,{sx:{fontFamily:`var(--primary-font)`,fontSize:13,fontWeight:600,color:`var(--color-text)`},children:t})]}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:.5},children:[(0,K.jsx)(br,{size:`small`,onClick:o,disabled:c,"data-testid":`button_stepper_less`,sx:{width:28,height:28,backgroundColor:`var(--color-white)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-sm)`,color:c?`var(--color-placeholder)`:`var(--color-primary)`,"&:hover":{backgroundColor:`var(--color-primary-alpha-10)`,borderColor:`var(--color-primary)`},"&.Mui-disabled":{backgroundColor:`var(--color-bg)`,borderColor:`var(--color-border)`}},children:(0,K.jsx)(wee,{sx:{fontSize:16}})}),(0,K.jsx)(x,{sx:{minWidth:32,textAlign:`center`,fontFamily:`var(--primary-font)`,fontSize:14,fontWeight:700,color:`var(--color-text)`},children:n}),(0,K.jsx)(br,{size:`small`,onClick:s,"data-testid":`button_stepper_more`,sx:{width:28,height:28,backgroundColor:`var(--color-white)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-sm)`,color:`var(--color-primary)`,"&:hover":{backgroundColor:`var(--color-primary-alpha-10)`,borderColor:`var(--color-primary)`}},children:(0,K.jsx)(_t,{sx:{fontSize:16}})})]})]})}V0.propTypes={icon:V.default.elementType.isRequired,label:V.default.string.isRequired,value:V.default.number.isRequired,stepper:V.default.number,min:V.default.number,onChange:V.default.func.isRequired};function H0({id:e,label:t,icon:n,selected:r=!1,onSelect:i}){let a=()=>{i(e)};return(0,K.jsxs)(I,{onClick:a,"data-testid":`select_box_${e}`,role:`radio`,tabIndex:0,onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),i(e))},"aria-checked":r,sx:{position:`relative`,padding:`10px 14px`,backgroundColor:r?`var(--color-white)`:`var(--color-bg)`,border:`2px solid`,borderColor:r?`var(--color-primary)`:`var(--color-border)`,borderRadius:`var(--radius-sm)`,cursor:`pointer`,transition:`all 0.2s var(--ease-out)`,display:`flex`,alignItems:`center`,gap:1.25,"&:hover":{borderColor:r?`var(--color-primary)`:`var(--color-grey)`,backgroundColor:`var(--color-white)`}},children:[(0,K.jsx)(I,{sx:{width:32,height:32,backgroundColor:r?`var(--color-primary)`:`var(--color-primary-alpha-10)`,borderRadius:`var(--radius-sm)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:r?`white`:`var(--color-primary)`,transition:`all 0.2s var(--ease-out)`,flexShrink:0},children:(0,K.jsx)(n,{sx:{fontSize:16}})}),(0,K.jsx)(x,{sx:{fontFamily:`var(--primary-font)`,fontSize:14,fontWeight:600,color:`var(--color-text)`},children:t}),(0,K.jsx)(nt,{checked:r,onChange:a,value:e,name:`property-type`,size:`small`,sx:{position:`absolute`,top:`50%`,right:12,transform:`translateY(-50%)`,padding:0,"& .MuiSvgIcon-root":{fontSize:20},color:`var(--color-border)`,"&.Mui-checked":{color:`var(--color-primary)`}}})]})}H0.propTypes={id:V.default.string.isRequired,label:V.default.string.isRequired,icon:V.default.elementType.isRequired,selected:V.default.bool,onSelect:V.default.func.isRequired};function U0({isValidating:e=!1,hasGeoCoordinates:t=!1,isSubmitted:n=!1}){if(!e&&!t&&!n)return null;let r=n&&!t&&!e,i=t&&!e;return(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1,padding:`10px 12px`,backgroundColor:e?`var(--color-light-blue)`:i?`var(--color-green-light)`:r?`var(--color-red-light)`:`var(--color-bg)`,borderRadius:`var(--radius-sm)`,marginTop:1.5},children:[e&&(0,K.jsx)(rr,{size:16,thickness:4,sx:{color:`var(--color-primary)`}}),i&&(0,K.jsx)(Ur,{sx:{fontSize:18,color:`var(--color-green)`}}),r&&(0,K.jsx)(Dee,{sx:{fontSize:18,color:`var(--color-red)`}}),(0,K.jsxs)(x,{sx:{fontFamily:`var(--primary-font)`,fontSize:13,color:i?`var(--color-green)`:r?`var(--color-red)`:`var(--color-text-secondary)`},children:[e&&U(`properties.validating_address`),i&&U(`properties.address_verified`),r&&U(`properties.address_not_found`)]})]})}U0.propTypes={isValidating:V.default.bool,hasGeoCoordinates:V.default.bool,isSubmitted:V.default.bool};var W0={formContainer:{maxWidth:720,mx:`auto`,px:3,pb:6,animation:`fadeIn 0.4s ease-out`,"@keyframes fadeIn":{from:{opacity:0,transform:`translateY(8px)`},to:{opacity:1,transform:`translateY(0)`}}},formHeader:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,py:2,pb:2.5,borderBottom:`1px solid var(--color-border)`,mb:2.5},formTitle:{fontFamily:`var(--primary-font)`,fontSize:22,fontWeight:700,color:`var(--color-text)`,letterSpacing:`-0.02em`,m:0},formGrid:{display:`flex`,flexDirection:`column`,gap:1.5},formRow:{display:`grid`,gridTemplateColumns:{xs:`1fr`,sm:`1fr 1fr`},gap:1.5},sectionCard:{backgroundColor:`var(--color-white)`,borderRadius:`var(--radius-md)`,border:`1px solid var(--color-border)`,p:2,transition:`all 0.2s var(--ease-out)`,"&:hover":{borderColor:`var(--color-grey-light)`,boxShadow:`var(--shadow-sm)`}},sectionHeader:{display:`flex`,alignItems:`center`,gap:1,mb:1.5},sectionIcon:{width:28,height:28,borderRadius:`var(--radius-sm)`,backgroundColor:`var(--color-primary-alpha-10)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`var(--color-primary)`,flexShrink:0,"& svg":{fontSize:14}},sectionTitle:{fontFamily:`var(--primary-font)`,fontSize:14,fontWeight:700,color:`var(--color-text)`,m:0},fieldInput:{"& .MuiOutlinedInput-root":{fontFamily:`var(--primary-font)`,fontSize:14,backgroundColor:`var(--color-bg)`,borderRadius:`var(--radius-sm)`,"& fieldset":{borderColor:`var(--color-border)`},"&:hover fieldset":{borderColor:`var(--color-grey)`},"&.Mui-focused fieldset":{borderColor:`var(--color-primary)`,borderWidth:1}},"& .MuiOutlinedInput-input":{py:1.25,px:1.5}},fieldInputError:{"& .MuiOutlinedInput-root fieldset":{borderColor:`var(--color-red)`}},fieldLabel:{display:`block`,fontFamily:`var(--primary-font)`,fontSize:12,fontWeight:600,color:`var(--color-text-secondary)`,mb:.75,textTransform:`uppercase`,letterSpacing:`0.03em`},fieldRow:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:1.25,mb:1.25},fieldGroup:{mb:1.25,"&:last-child":{mb:0}}
2675,propertyTypes:{display:`flex`,flexDirection:`column`,gap:1},roomCounters:{display:`flex`,flexDirection:`column`,gap:1}};function nEe(e){switch(e){case`edit`:return U(`properties.edit_property`);case`new`:return U(`properties.create_property`);default:return``}}function rEe({mode:e,loading:t,initialValues:n,onSubmit:r,onCancelAction:i}){let[a,o]=(0,B.useState)(!1),s=(0,B.useRef)(``),c=(0,B.useRef)(!1),{trackClick:l,trackField:u,trackSelect:d}=nT(`PropertyForm`),{control:f,handleSubmit:p,setValue:m,reset:h,trigger:g,formState:{isValid:_,isSubmitted:v},getValues:b}=ft({mode:`onChange`,defaultValues:n||{title:``,street:``,apt:``,city:``,state:``,zip:``,country:``,lat:null,lng:null,timeZoneId:``,countryCode:``,propertyType:`apartment`,numOfBedrooms:0,numOfBathrooms:0,numOfBeds:0}}),S=je({control:f,name:`numOfBeds`,defaultValue:0}),C=je({control:f,name:`numOfBedrooms`,defaultValue:0}),w=je({control:f,name:`numOfBathrooms`,defaultValue:0}),T=je({control:f,name:`propertyType`,defaultValue:`apartment`}),E=je({control:f,name:`street`}),D=je({control:f,name:`city`}),ee=je({control:f,name:`state`}),te=je({control:f,name:`zip`}),ne=je({control:f,name:`country`}),re=je({control:f,name:`lat`}),O=je({control:f,name:`lng`}),ie=re!=null&&O!=null;(0,B.useEffect)(()=>{n&&n.objectId&&h(n)},[n,h]),(0,B.useEffect)(()=>{let e=async()=>{if(c.current){c.current=!1;return}let e=b(),t=G0(e);if(!(s.current===t||!t)){if(e.lat!=null&&e.lng!=null){s.current=t;return}s.current=t,o(!0);try{let e=await une(t),n=(0,G.default)(e,[`data`,`results`,0,`geometry`,`location`]),r=(0,G.default)(e,[`data`,`results`,0,`address_components`])?.filter(e=>e.types?.includes(`country`))?.[0]?.short_name;if(n){try{m(`timeZoneId`,(await Zl(n.lat(),n.lng(),(0,pi.default)())).timeZoneId,{shouldValidate:!0})}catch(e){R.default.error(`timezone api error`,e)}m(`lat`,n.lat(),{shouldValidate:!0}),m(`lng`,n.lng(),{shouldValidate:!0}),r&&m(`countryCode`,r,{shouldValidate:!0})}else m(`lat`,null,{shouldValidate:!0}),m(`lng`,null,{shouldValidate:!0})}catch(e){R.default.error(`geocoding api error`,e),m(`lat`,null,{shouldValidate:!0}),m(`lng`,null,{shouldValidate:!0})}finally{o(!1)}}},t=setTimeout(()=>{(E||D||ee||te||ne)&&e()},500);return()=>clearTimeout(t)},[E,D,ee,te,ne,m,b]);let ae=t=>{d(`property_type`,t,{mode:e}),m(`propertyType`,t,{shouldValidate:!0})},oe=async e=>{if(e.lat!=null&&e.lng!=null){c.current=!0,m(`lat`,e.lat,{shouldValidate:!0}),m(`lng`,e.lng,{shouldValidate:!0}),e.countryCode&&m(`countryCode`,e.countryCode,{shouldValidate:!0}),s.current=G0(e);try{m(`timeZoneId`,(await Zl(e.lat,e.lng,(0,pi.default)())).timeZoneId,{shouldValidate:!0})}catch(e){R.default.error(`timezone api error`,e)}}(0,H.default)([`street`,`apt`,`city`,`state`,`zip`,`country`],t=>{m(t,e[t]||``,{shouldValidate:!0})}),setTimeout(()=>g(),0)},se=e=>{let t={};return e.title||(t.title=!0),a&&(t.asyncRunning=!0),e.lat||(t.lat=!0),e.lng||(t.lng=!0),e.street||(t.street=!0),e.zip||(t.zip=!0),e.country||(t.country=!0),t},ce=t=>{let n=se(t);Object.keys(n).length===0&&(l(`save_property`,{mode:e}),r(t))};if(t)return(0,K.jsx)(xf,{});let le=_&&!a&&ie;return(0,K.jsxs)(`form`,{autoComplete:`off`,onSubmit:p(ce),children:[(0,K.jsx)($e,{name:`lat`,control:f,render:({field:e})=>(0,K.jsx)(`input`,{type:`hidden`,...e})}),(0,K.jsx)($e,{name:`lng`,control:f,render:({field:e})=>(0,K.jsx)(`input`,{type:`hidden`,...e})}),(0,K.jsx)($e,{name:`timeZoneId`,control:f,render:({field:e})=>(0,K.jsx)(`input`,{type:`hidden`,...e})}),(0,K.jsx)($e,{name:`countryCode`,control:f,render:({field:e})=>(0,K.jsx)(`input`,{type:`hidden`,...e})}),(0,K.jsx)($e,{name:`objectId`,control:f,render:({field:e})=>(0,K.jsx)(`input`,{type:`hidden`,...e})}),(0,K.jsxs)(I,{sx:W0.formContainer,children:[(0,K.jsxs)(I,{sx:W0.formHeader,children:[(0,K.jsx)(x,{component:`h1`,sx:W0.formTitle,children:nEe(e)}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:1.25},children:[(0,K.jsx)(q,{types:[`size-medium`,`type-border-grey`],onClick:()=>{l(`cancel_property_form`,{mode:e}),i()},"data-testid":`property-form-cancel`,children:U(`properties.cancel`)}),(0,K.jsx)(q,{type:`submit`,types:[`size-medium`,`type-full-primary`],disabled:!le,"data-testid":`property-form-save`,children:U(`properties.save_changes`)})]})]}),(0,K.jsxs)(I,{sx:W0.formGrid,children:[(0,K.jsxs)(I,{sx:W0.sectionCard,children:[(0,K.jsxs)(I,{sx:W0.sectionHeader,children:[(0,K.jsx)(I,{sx:W0.sectionIcon,children:(0,K.jsx)(Zee,{})}),(0,K.jsx)(x,{component:`h2`,sx:W0.sectionTitle,children:U(`properties.title`)})]}),(0,K.jsx)($e,{name:`title`,control:f,rules:{required:!0},render:({field:t,fieldState:n})=>(0,K.jsx)(yn,{...t,fullWidth:!0,size:`small`,placeholder:U(`properties.default_prop_title`),error:v&&!!n.error,onF
2675ocus:()=>u(`title`,`focus`,{mode:e}),onBlur:n=>{u(`title`,`blur`,{mode:e}),t.onBlur(n)},sx:{...W0.fieldInput,...v&&n.error?W0.fieldInputError:{}},slotProps:{htmlInput:{"data-testid":`property_title_input`}}})})]}),(0,K.jsxs)(I,{sx:W0.formRow,children:[(0,K.jsxs)(I,{sx:W0.sectionCard,children:[(0,K.jsxs)(I,{sx:W0.sectionHeader,children:[(0,K.jsx)(I,{sx:W0.sectionIcon,children:(0,K.jsx)(Ct,{})}),(0,K.jsx)(x,{component:`h2`,sx:W0.sectionTitle,children:U(`properties.ptype`)})]}),(0,K.jsxs)(I,{sx:W0.propertyTypes,children:[(0,K.jsx)(H0,{id:`apartment`,label:U(`properties.apartment`),icon:hn,selected:T===`apartment`,onSelect:ae}),(0,K.jsx)(H0,{id:`house`,label:U(`properties.house`),icon:ti,selected:T===`house`,onSelect:ae})]})]}),(0,K.jsxs)(I,{sx:W0.sectionCard,children:[(0,K.jsxs)(I,{sx:W0.sectionHeader,children:[(0,K.jsx)(I,{sx:W0.sectionIcon,children:(0,K.jsx)(Zr,{})}),(0,K.jsx)(x,{component:`h2`,sx:W0.sectionTitle,children:U(`properties.rooms`)})]}),(0,K.jsxs)(I,{sx:W0.roomCounters,children:[(0,K.jsx)(V0,{icon:Zr,label:U(`properties.bedrooms`),value:C,stepper:1,min:0,onChange:e=>m(`numOfBedrooms`,e,{shouldValidate:!0})}),(0,K.jsx)(V0,{icon:Jee,label:U(`properties.beds`),value:S,stepper:1,min:0,onChange:e=>m(`numOfBeds`,e,{shouldValidate:!0})}),(0,K.jsx)(V0,{icon:nn,label:U(`properties.bathrooms`),value:w,stepper:.5,min:0,onChange:e=>m(`numOfBathrooms`,e,{shouldValidate:!0})})]})]})]}),(0,K.jsxs)(I,{sx:W0.sectionCard,children:[(0,K.jsxs)(I,{sx:W0.sectionHeader,children:[(0,K.jsx)(I,{sx:W0.sectionIcon,children:(0,K.jsx)(y,{})}),(0,K.jsx)(x,{component:`h2`,sx:W0.sectionTitle,children:U(`properties.address`)})]}),(0,K.jsx)(I,{sx:{mb:1.5},children:(0,K.jsx)(B0,{onSet:oe,placeholder:U(`properties.search_for_address2`)})}),(0,K.jsxs)(I,{sx:W0.fieldRow,children:[(0,K.jsxs)(I,{children:[(0,K.jsx)(x,{sx:W0.fieldLabel,children:U(`properties.street_address`)}),(0,K.jsx)($e,{name:`street`,control:f,rules:{required:!0},render:({field:t,fieldState:n})=>(0,K.jsx)(yn,{...t,fullWidth:!0,size:`small`,placeholder:U(`properties.street_address`),error:v&&!!n.error,onFocus:()=>u(`street`,`focus`,{mode:e}),onBlur:n=>{u(`street`,`blur`,{mode:e}),t.onBlur(n)},sx:{...W0.fieldInput,...v&&n.error?W0.fieldInputError:{}},slotProps:{htmlInput:{"data-testid":`property_street_input`}}})})]}),(0,K.jsxs)(I,{children:[(0,K.jsx)(x,{sx:W0.fieldLabel,children:U(`properties.apt_address`)}),(0,K.jsx)($e,{name:`apt`,control:f,render:({field:t})=>(0,K.jsx)(yn,{...t,fullWidth:!0,size:`small`,placeholder:U(`properties.apt_address`),onFocus:()=>u(`apt`,`focus`,{mode:e}),onBlur:n=>{u(`apt`,`blur`,{mode:e}),t.onBlur(n)},sx:W0.fieldInput,slotProps:{htmlInput:{"data-testid":`property_apt_input`}}})})]})]}),(0,K.jsxs)(I,{sx:W0.fieldRow,children:[(0,K.jsxs)(I,{children:[(0,K.jsx)(x,{sx:W0.fieldLabel,children:U(`properties.city_address`)}),(0,K.jsx)($e,{name:`city`,control:f,render:({field:t})=>(0,K.jsx)(yn,{...t,fullWidth:!0,size:`small`,placeholder:U(`properties.city_address`),onFocus:()=>u(`city`,`focus`,{mode:e}),onBlur:n=>{u(`city`,`blur`,{mode:e}),t.onBlur(n)},sx:W0.fieldInput,slotProps:{htmlInput:{"data-testid":`property_city_input`}}})})]}),(0,K.jsxs)(I,{children:[(0,K.jsx)(x,{sx:W0.fieldLabel,children:U(`properties.state_address`)}),(0,K.jsx)($e,{name:`state`,control:f,render:({field:t})=>(0,K.jsx)(yn,{...t,fullWidth:!0,size:`small`,placeholder:U(`properties.state_address`),onFocus:()=>u(`state`,`focus`,{mode:e}),onBlur:n=>{u(`state`,`blur`,{mode:e}),t.onBlur(n)},sx:W0.fieldInput,slotProps:{htmlInput:{"data-testid":`property_state_input`}}})})]})]}),(0,K.jsxs)(I,{sx:W0.fieldRow,children:[(0,K.jsxs)(I,{children:[(0,K.jsx)(x,{sx:W0.fieldLabel,children:U(`properties.zip_address`)}),(0,K.jsx)($e,{name:`zip`,control:f,rules:{required:!0},render:({field:t,fieldState:n})=>(0,K.jsx)(yn,{...t,fullWidth:!0,size:`small`,placeholder:U(`properties.zip_address`),error:v&&!!n.error,onFocus:()=>u(`zip`,`focus`,{mode:e}),onBlur:n=>{u(`zip`,`blur`,{mode:e}),t.onBlur(n)},sx:{...W0.fieldInput,...v&&n.error?W0.fieldInputError:{}},slotProps:{htmlInput:{"data-testid":`property_zip_input`}}})})]}),(0,K.jsxs)(I,{children:[(0,K.jsx)(x,{sx:W0.fieldLabel,children:U(`properties.country_address`)}),(0,K.jsx)($e,{name:`country`,control:f,rules:{required:!0},render:({field:t,fieldState:n})=>(0,K.jsx)(yn,{...t,fullWidth:!0,size:`small`,placeholder:U(`properties.country_address`),error:v&&!!n.error,onF
2675ocus:()=>u(`country`,`focus`,{mode:e}),onBlur:n=>{u(`country`,`blur`,{mode:e}),t.onBlur(n)},sx:{...W0.fieldInput,...v&&n.error?W0.fieldInputError:{}},slotProps:{htmlInput:{"data-testid":`property_country_input`}}})})]})]}),(0,K.jsx)(U0,{isValidating:a,hasGeoCoordinates:ie,isSubmitted:v})]})]})]})]})}function G0(e){return(0,If.default)([`street`,`city`,`state`,`zip`,`country`],(t,n)=>(e[n]&&t.push(e[n]),t),[]).join(` `)}Qn();function K0(){let e=Rn(),{trackClick:t}=nT(`PropertyNewContainer`),n=!e.id,r=n?`new`:`edit`,i=j(t=>n?null:nw(e.id)(t)),a=j(hw)===c_.LOADED,{saveProperty:o,goToProperty:s,goToProperties:c,modalState:l,hideModal:u}=Xwe(),d=l.message,f=n||i?`content`:a?`error`:`loading`,p=(0,B.useMemo)(()=>Ywe(i||{}),[i]);return(0,B.useEffect)(()=>{r===`new`&&Ope()},[r]),(0,K.jsx)(Yj,{children:(0,K.jsx)(Zj,{maxWidth:!0,children:(0,K.jsxs)(Jj,{type:`absolute-scroll`,children:[f===`loading`&&(0,K.jsx)(xf,{}),f===`error`&&(0,K.jsx)(Af,{is404:!0,headline:U(`error.404error`),subHeadline:U(`error.looks_like_smth_wrong`)}),f===`content`&&(0,K.jsx)(rEe,{mode:r,initialValues:p,onSubmit:e=>{o(r,e,i)},onCancelAction:()=>{t(`cancel_property_creation`,{mode:r}),r===`edit`?s(e.id):c()}}),(0,K.jsx)(jg,{show:l.type===`loading`&&l.open}),(0,K.jsx)(Dg,{message1:U(`properties.edit_fail_property_head`),message2:d||U(`properties.edit_fail_property`),show:l.type===`editError`&&l.open,onClose:u}),(0,K.jsx)(Dg,{message1:U(`properties.create_fail_property_head`),message2:d||U(`properties.create_fail_property`),show:l.type===`createError`&&l.open,onClose:u})]})})})}Qn();var iEe=e=>(0,K.jsx)($K,{...e}),q0=`PROPERTY_DETAIL_VIEW_KEY`,aEe=e=>vi.set(q0,e),J0=()=>vi.get(q0)||`jobrequest`,oEe=()=>{let{id:e}=Rn();return(0,K.jsx)(xQ,{onCloseRoute:`/properties/${e}/${J0()}`,fromRoute:!0,isGallery:!0,propertyId:e})},Y0=()=>{let{propertyDetailView:e}=Rn();return B.useEffect(()=>{e&&aEe(e)},[e]),(0,K.jsx)($Te,{children:(0,K.jsx)(kn,{})})},sEe=()=>{let{bookingId:e,id:t}=Rn(),n=Vn();return(0,K.jsx)(jy,{bookingId:e,propertyId:t,handleCancel:()=>n(`/properties/${t}/${J0()}`),renderChildren:iEe,show:!0})},X0=()=>(0,K.jsx)(N1,{children:(0,K.jsx)(kn,{})}),cEe=()=>(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(N,{element:(0,K.jsx)(UB,{}),children:(0,K.jsx)(N,{element:(0,K.jsx)(KB,{}),children:(0,K.jsxs)(N,{element:(0,K.jsx)(sV,{feature:s_.webapp}),children:[(0,K.jsxs)(N,{path:`properties`,element:(0,K.jsx)(N1,{}),children:[(0,K.jsx)(N,{index:!0,element:null}),(0,K.jsx)(N,{path:`:id`,element:(0,K.jsx)(Wr,{to:J0(),replace:!0})}),(0,K.jsx)(N,{path:`:id/:propertyDetailView/:jobRequestId`,element:(0,K.jsx)(Y0,{})}),(0,K.jsx)(N,{path:`:id/:propertyDetailView`,element:(0,K.jsx)(Y0,{}),children:(0,K.jsx)(N,{path:`booking/:bookingId`,element:(0,K.jsx)(sEe,{})})})]}),(0,K.jsx)(N,{path:`properties/new`,element:(0,K.jsx)(X0,{}),children:(0,K.jsx)(N,{index:!0,element:(0,K.jsx)(K0,{})})}),(0,K.jsx)(N,{path:`properties/:id/edit`,element:(0,K.jsx)(X0,{}),children:(0,K.jsx)(N,{index:!0,element:(0,K.jsx)(K0,{})})}),(0,K.jsx)(N,{path:`properties/:id/gallery`,element:(0,K.jsx)(oEe,{})})]})})})}),lEe=`listViewPref`;function Z0(e,t=!1){let n=`${lEe}_${e}`,r=(0,B.useRef)(null),i=(0,B.useCallback)(()=>t?null:vi.get(n)||null,[n,t]),a=(0,B.useMemo)(()=>i(),[i]),o=(0,B.useCallback)(e=>{t||(r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{vi.set(n,e)},100))},[n,t]);return(0,B.useEffect)(()=>()=>{r.current&&clearTimeout(r.current)},[]),{initialPreferences:a,savePreferences:o,storageKey:n}}function Q0(e,t,n){return{type:e,id:t,name:n,count:null}}function $0(e,t,n,r){return{name:e,value:t,fieldType:n,options:r}}function e2(e,t,n,r=!0,i=null,a=!1){return{id:e,name:t,width:n,isVisible:r,nameDesc:i,disabledSorting:a}}function t2(e){return e?e.format(`ddd, DD MMM YYYY`):`-`}function n2(e){return e.elements?.find(e=>e.type===`payload`)?.text}function r2(e,t=`America/New_York`,n=`-`){return e?(0,z.default)(e).tz(t).format(`lll`):n}var uEe=e=>{if(!e)return`-`;let t=(0,z.default)(),n=(0,z.default)(e),r=z.default.duration(n.diff(t)),i=r.years(),a=r.months(),o=r.days(),s=r.hours(),c=r.minutes();return i===0?a===0?o===0?s===0?c===1?`1 min`:`${c} mins`:s===1?`1 hr ${c} mins`:`${s} hrs`:o===1?`1 day`:`${o} days`:a===1?`1 month`:`${a} months`:i===1?`1 year`:`${i} years`},dEe=e=>e===null?`-`:U(e===!0?`list_view.yeslabel`:`list_view.nolabel`),i2=(e,t,n,r,i,a,o,s=!1,c=null,l=!1,u=!1,d=!1,f=!1,p=!1,m=!1,h=null)=>({columnId:e,type:t,text:n,tooltipText:r,includeNamedPicture:i,badgeColor:a,showTooltipIfLongerThan:o,showAnyway:s,extraCount:c,hasNotifications:l,hasNewPhoto:u,isProMarketplaceJob:d,hasProblems:f,is
2675ForwardingEnabled:p,isForwarded:m,pictureUrl:h}),a2=(e,t,n)=>({id:e,elements:t,hasNotifications:n});function o2(e,t){return e?U(`reports.jobTypes.${e.toLowerCase()}`):t?null:`-`}function fEe(e){switch(e){case`ical`:return`iCal`;case`airbnb`:return`Airbnb`;case`hostfully`:return`Hostfully`;case`bookingSync`:return`Bookingsync`;case`escapia`:return`Escapia by HomeAway Software`;case`v12`:return`V12.Net by HomeAway Software`;case`guesty`:return`Guesty`;case`rentalsUnited`:return`Rentals United`;case`newbook`:return`NewBook`;case`streamline`:return`Streamline`;case`myvr`:return`MyVR`;case`supercontrol`:return`Supercontrol`;case`bookingcom`:return`Booking.com`;case`smoobu`:return`Smoobu`;default:return e}}function s2(e,t=e=>e){return e?.length?B.createElement(`ul`,{style:{margin:0,paddingLeft:`16px`}},e.map((e,n)=>B.createElement(`li`,{key:n},t(e)))):null}var pEe=[{key:`turnover`,label:`turnover`,width:200},{key:`reminders`,label:`reminders`,width:100},{key:`job-date`,label:`job_date`,width:150},{key:`status`,label:`status`,width:100},{key:`name`,label:`name`,width:100},{key:`checkIn`,label:`check_in`,width:150},{key:`checkOut`,label:`check_out`,width:150},{key:`guestDetails`,label:`guest_details`,width:300}].map(({key:e,label:t,width:n})=>e2(e,U(`list_view.legend.${t}`),n)),c2=e=>[{key:`turnover`,value:e.turnover},{key:`reminders`,value:e.reminders},{key:`job-date`,value:t2(e.jobDate)},{key:`status`,value:e.jobStatus},{key:`name`,value:e.serviceProviderName},{key:`checkIn`,value:t2(e.bookingCheckIn)},{key:`checkOut`,value:t2(e.bookingCheckOut)},{key:`guestDetails`,value:e.guestDetails?`${e.guestDetails.channel} ⢠${e.guestDetails.numOfGuests} ${e.guestDetails.numOfGuests===1?U(`list_view.guest`):U(`list_view.guests`)} ⢠${e.guestDetails.name}`:null},{key:null,type:`to-do-actions`}].map(e=>(void 0).getRowDataElementObject(e.key,e.type||`text`,e.value||`-`)),mEe=[{id:`name`,name:U(`list_view.legend.property`),width:200},{id:`finishedJobsDurationLastWeek`,name:U(`list_view.legend.finished_jobs_duration`),width:200,nameDesc:U(`list_view.legend.last_week`)},{id:`scheduleJobsDurationThisWeek`,name:U(`list_view.legend.schedule_jobs_duration`),width:200,nameDesc:U(`list_view.legend.this_week`)},{id:`scheduleJobsDurationNextWeek`,name:U(`list_view.legend.schedule_jobs_duration`),width:200,nameDesc:U(`list_view.legend.next_week`)},{id:`acceptanceRate`,name:U(`list_view.legend.acceptance_rate`),width:200},{id:`responseTime`,name:U(`list_view.legend.response_time`),width:200},{id:`thumbsUpRatio`,name:U(`list_view.legend.thumbs_up_ratio`),width:200},{id:`earnedThisYear`,name:U(`list_view.legend.earned_this_year`),width:200,nameDesc:U(`list_view.legend.paid_and_pending`)}].forEach(e=>e2(e.id,e.name,e.width,!0,e.nameDesc||null,!1)),hEe=[{id:`title`,nameKey:`title`,width:200},{id:`type`,nameKey:`type`,width:150},{id:`city`,nameKey:`city`,width:150},{id:`numOfBedRooms`,nameKey:`bedrooms`,width:150},{id:`numOfBeds`,nameKey:`beds`,width:150},{id:`numOfBathrooms`,nameKey:`bathrooms`,width:150},{id:`openProblems`,nameKey:`problems`,descKey:`open`,width:150},{id:`historyProblems`,nameKey:`problems`,descKey:`history`,width:150},{id:`thisYearMaintenanceCost`,nameKey:`maintenance_cost`,descKey:`this_year`,width:250},{id:`lastMonthMaintenanceCost`,nameKey:`maintenance_cost`,descKey:`last_month`,width:250},{id:`thisMonthMaintenanceCost`,nameKey:`maintenance_cost`,descKey:`this_month`,width:250},{id:`actions`,nameKey:`actions`,width:150}].forEach(({id:e,nameKey:t,width:n,descKey:r})=>e2(e,U(`list_view.legend.${t}`),n,!0,r?U(`list_view.legend.${r}`):null)),l2=e=>[{key:`title`,value:e.title},{key:`type`,value:e.type},{key:`city`,value:e.address.city},{key:`numOfBedRooms`,value:e.numOfBedRooms},{key:`numOfBeds`,value:e.numOfBeds},{key:`numOfBathrooms`,value:e.numOfBathrooms},{key:`openProblems`,value:e.openProblems},{key:`historyProblems`,value:e.historyProblems},{key:`thisYearMaintenanceCost`,value:e.thisYearMaintenanceCost},{key:`lastMonthMaintenanceCost`,value:e.lastMonthMaintenanceCost},{key:`thisMonthMaintenanceCost`,value:e.thisMonthMaintenanceCost},{key:null,type:`properties-actions`}].map(e=>i2(e.key,e.type||`text`,e.value||`-`)),gEe=[{id:`title`,nameKey:`title`,width:200},{id:`publisher`,nameKey:`publisher`,width:200},{id:`type`,nameKey:`type`,width:200},{id:`numberOfSlides`,nameKey:`number_of_slides`,width:200}
2675,{id:`numberOfTasks`,nameKey:`number_of_tasks`,width:200},{id:`numberOfPhotos`,nameKey:`number_of_photos`,width:200}].forEach(({id:e,nameKey:t,width:n})=>e2(e,U(`list_view.legend.${t}`),n)),_Ee=(e,t)=>{let n=[{id:`propertyTitle`,name:U(`list_view.legend.property`),width:200,isDraftJobsColumn:!0},{id:`propertyType`,name:U(`list_view.legend.property_type`),width:100,isVisible:!1},{id:`propertyCity`,name:U(`list_view.legend.property_city`),width:150,isVisible:!1},{id:`propertyCountry`,name:U(`list_view.legend.property_country`),width:150,isVisible:!1},{id:`propertyAddress`,name:U(`list_view.legend.property_address`),width:200,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`propertyBedrooms`,name:U(`list_view.legend.property_bedrooms`),width:150,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`propertyBathrooms`,name:U(`list_view.legend.property_bathrooms`),width:150,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`jobId`,name:U(`list_view.legend.job_id`),width:200,isAdminColumn:!0,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`jobTitle`,name:U(`list_view.legend.job_title`),width:150,isDraftJobsColumn:!0},{id:`jobStartDate`,name:U(`list_view.legend.day_and_date`),width:120,isDraftJobsColumn:!0},{id:`jobStartTime`,name:U(`list_view.legend.start_time`),width:100,isDraftJobsColumn:!0},{id:`jobEndTime`,name:U(`list_view.legend.end_time`),width:100,isDraftJobsColumn:!0},{id:`draftJobScheduledTime`,name:U(`list_view.legend.scheduled_date`),width:140,isDraftJobsColumn:!0,onlyDraftJobsColumn:!0},{id:`draftJobTimeToSchedule`,name:U(`list_view.legend.time_to_schedule`),width:150,isDraftJobsColumn:!0,onlyDraftJobsColumn:!0},{id:`jobScheduledStartTime`,name:U(`reports.select.schedulestart`),width:180,isVisible:!1},{id:`jobScheduledEndTime`,name:U(`reports.select.scheduleend`),width:180,isVisible:!1},{id:`jobScheduledTime`,name:U(`list_view.legend.scheduled_time`),width:150,isVisible:!1},{id:`jobSentDate`,name:U(`list_view.legend.sent_date`),width:150,isVisible:!0},{id:`jobActualStartTime`,name:U(`list_view.legend.actual_start_time`),width:180,isVisible:!1},{id:`jobActualEndTime`,name:U(`list_view.legend.actual_end_time`),width:180,isVisible:!1},{id:`jobActualTime`,name:U(`list_view.legend.actual_time`),width:180,isVisible:!1},{id:`jobDuration`,name:U(`list_view.legend.estimated_duration`),width:150,isVisible:!1},{id:`jobActualDuration`,name:U(`list_view.legend.actual_duration`),width:150,isVisible:!1},{id:`checklistTitle`,name:U(`list_view.legend.checklist_title`),width:150,isVisible:!0,nameDesc:null,disabledSorting:!0,isDraftJobsColumn:!0},{id:`skillTitle`,name:U(`list_view.legend.skill`),width:120,isVisible:!0,nameDesc:null,disabledSorting:!0,isDraftJobsColumn:!0},{id:`cleanerTitle`,name:U(`list_view.legend.service_provider`),width:130,isVisible:!0,nameDesc:null,disabledSorting:!0,isDraftJobsColumn:!0},{id:`additionalCleaners`,name:U(`list_view.legend.additional_sp`),width:170,isVisible:!0,nameDesc:null,disabledSorting:!0,isDraftJobsColumn:!0,onlyDraftJobsColumn:!0},{id:`jobStatus`,name:U(`list_view.legend.status`),width:140,isDraftJobsColumn:!0},{id:`jobType`,name:U(`list_view.legend.job_type`),width:100,isVisible:!1},{id:`jobTotalCost`,name:U(`list_view.legend.total_cost`),width:100,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`jobBillableTime`,name:U(`list_view.legend.billable_time`),width:100,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`jobTotalMileage`,name:U(`list_view.legend.total_mileage`),width:100,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`jobOfferedPriceAndCurrency`,name:U(`list_view.legend.offered_price`),width:100,isVisible:!1},{id:`jobNoOfThumbsUp`,name:U(`list_view.legend.thumbs_up`),width:100,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`jobNoOfThumbsDown`,name:U(`list_view.legend.thumbs_down`),width:100,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`completedAndTotalSlides`,name:U(`list_view.legend.completed_slides`),width:150,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`completedAndTotalTasks`,name:U(`list_view.legend.completed_tasks`),width:150,isVisible:!1,nameDesc:null,disabledSorting:!0}
2675,{id:`completedAndTotalVerificationPhotos`,name:U(`list_view.legend.verification_photos`),width:150,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`verificationPhotoFeedbackComments`,name:U(`list_view.legend.feedback_comments`),width:200,isAdminColumn:!0,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`bookingPartner`,name:U(`list_view.legend.booking_partner`),width:150,isVisible:!1},{id:`bookingArrivalDate`,name:U(`list_view.legend.check_in`),width:100,isVisible:!1},{id:`bookingDepartureDate`,name:U(`list_view.legend.check_out`),width:100,isVisible:!1},{id:`bookingNoOfGuests`,name:U(`list_view.legend.number_of_guests`),width:150,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`paymentId`,name:U(`list_view.legend.payment_id`),width:260,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`paymentStatus`,name:U(`list_view.legend.payment_status`),width:150,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`paymentAmount`,name:U(`list_view.legend.payment_amount`),width:150,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`paymentDate`,name:U(`list_view.legend.payment_date`),width:100,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`riPending`,name:U(`list_view.legend.remote_inspection_pending`),width:100,isAdminColumn:!0,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`riCompleted`,name:U(`list_view.legend.remote_inspection_complete`),width:100,isAdminColumn:!0,isVisible:!1,nameDesc:null,disabledSorting:!0},{id:`sharedBy`,name:U(`list_view.legend.shared_by`),width:100,isVisible:!1,nameDesc:null,disabledSorting:!0}
2675,{id:`jobActions`,name:U(`list_view.legend.actions`),width:100,isVisible:!0,nameDesc:null,disabledSorting:!0,isDraftJobsColumn:!0,onlyDraftJobsColumn:!0}];return t?n.reduce((e,t)=>{if(t.isDraftJobsColumn){let{id:n,name:r,width:i,isVisible:a=!0,nameDesc:o=null,disabledSorting:s=!1}=t;e.push(e2(n,r,i,a,o,s))}return e},[]):n.reduce((t,n)=>{if((!n.isAdminColumn||e)&&!n.onlyDraftJobsColumn){let{id:e,name:r,width:i,isVisible:a=!0,nameDesc:o=null,disabledSorting:s=!1}=n;t.push(e2(e,r,i,a,o,s))}return t},[])},u2=({row:e,hasNotifications:t,notifications:n})=>{let r=new Bs(e),i=r.getAcceptedCleaner?.name??null,a=[];e.cleaners&&e.cleaners.forEach(e=>{a.push(e.name),i||(i=e.name)});let o=``,s=[];e.skillRequirements&&e.skillRequirements.forEach(e=>{s.push(e.skillTitle),o||(o=e.skillTitle)});let c=rc(r);return[i2(`propertyTitle`,`text`,r.propertyData?.title||`-`,r.propertyData?.title||null,!0,null,28,!1,null,t,yK(n,e.id,!0),r.isProMarketplaceJob,r.hasProblems,r.isForwardingEnabled,r.isForwarded,r.propertyData?.pictureIdentifier||null),i2(`jobId`,`text`,e.id||`-`),i2(`propertyType`,`text`,r.propertyTypeName||`-`),i2(`propertyCity`,`text`,r.propertyData?.city||`-`),i2(`propertyCountry`,`text`,r.propertyData?.country||`-`),i2(`propertyAddress`,`text`,r.propertyData?.address||`-`),i2(`propertyBedrooms`,`text`,r.propertyData?.details?.numberOfBedrooms||`-`),i2(`propertyBathrooms`,`text`,r.propertyData?.details?.numberOfBathrooms||`-`),i2(`jobTitle`,`text`,r?.title||`-`,r?.title||null),i2(`jobStartDate`,`text`,t2(r?.getScheduledStartInPropertyTZ(),!0)||`-`),i2(`jobStartTime`,`text`,r?.getStartTimeString()||`-`),i2(`jobEndTime`,`text`,r?.getEndTimeString()||`-`),i2(`draftJobScheduledTime`,`text`,r2(r?.schedulingDate,z.default.tz.guess())||`-`),i2(`draftJobTimeToSchedule`,`text`,uEe(r?.schedulingDate)||`-`),i2(`jobScheduledStartTime`,`text`,r2(r?.scheduledStartTime,e.property?.timeZone)),i2(`jobScheduledEndTime`,`text`,r2(r?.scheduledEndTime,e.property?.timeZone)),i2(`jobScheduledTime`,`text`,e.job?.scheduledTime||`-`),i2(`jobSentDate`,`text`,r2(e.job?.sentOn,e.property?.timeZone)),i2(`jobActualStartTime`,`text`,r2(e.progress?.actualStartTime,e.property?.timeZone)),i2(`jobActualEndTime`,`text`,r2(e.progress?.actualEndTime,e.property?.timeZone)),i2(`jobActualTime`,`text`,e.progress?.actualTime||`-`),i2(`jobDuration`,`text`,r?.getDateDurationInMin()?`${r?.getDateDurationInMin()} ${U(`list_view.min`)}`:`-`),i2(`jobActualDuration`,`text`,e.progress?.actualDuration?`${e.progress?.actualDuration} ${U(`list_view.min`)}`:`-`),i2(`checklistTitle`,`text`,nc(r)||`-`,s2(r?.checklists,e=>e.title),!1,null,null,!1,c>1?c-1:null),i2(`skillTitle`,`text`,o||`-`,s2(s),!1,null,null,!1,s.length>1?s.length-1:null),i2(`cleanerTitle`,`text`,i||`-`,s2(a),!1,null,null,!1,a.length>1?a.length-1:null),i2(`additionalCleaners`,`text`,r.additionalCleaners?.[0]?.name||`-`,s2(r.additionalCleanerNamesArray),!1,null,null,!1,r.additionalCleanerNamesArray?.length>1?r.additionalCleanerNamesArray?.length-1:null),i2(`jobStatus`,`badge`,U(r.getStatusString())||`-`,null,null,r.getStatusColor()),i2(`jobType`,`text`,o2(r?.jobType)||`-`,o2(r?.jobType,!0)||null),i2(`jobTotalCost`,`text`,e.progress?.totalCost||`-`),i2(`jobBillableTime`,`text`,e.progress?.bilableTime||`-`),i2(`jobTotalMileage`,`text`,e.progress?.totalMileage||`-`),i2(`jobOfferedPriceAndCurrency`,`text`,e.job?.offeredPriceAndCurrency||`-`),i2(`jobNoOfThumbsUp`,`text`,e.progress?.jobNoOfThumbsUp||`-`),i2(`jobNoOfThumbsDown`,`text`,e.progress?.jobNoOfThumbsDown||`-`),i2(`completedAndTotalSlides`,`text`,e.progress?.completedAndTotalSlides),i2(`completedAndTotalTasks`,`text`,e.progress?.completedAndTotalTasks),i2(`completedAndTotalVerificationPhotos`,`text`,e.progress?.completedAndTotalVerificationPhotos),i2(`verificationPhotoFeedbackComments`,`text`,e.progress?.verificationPhotoFeedbackComments||`-`,e.progress?.verificationPhotoFeedbackComments||`-`,!1,null,50),i2(`bookingPartner`,`text`,e.booking?.partner?fEe(e.booking?.partner):`-`),i2(`bookingArrivalDate`,`text`,r2(e.booking?.arrivalDate,e.property?.timeZone)),i2(`bookingDepartureDate`,`text`,r2(e.booking?.departureDate,e.property?.timeZone)),i2(`bookingNoOfGuests`,`text`,e.booking?.numberOfGuests||`-`),i2(`paymentId`,`text`,e.job?.paymentDetails?.paymentId||`-`),i2(`paymentStatus`,`text`,e.job?.paymentDetails?.paymentStatus||`-`),i2(`paymentAmount`,`text`,e.job?.paymentDetails?.paymentAmountAndCurrency||`-`),i2(`paymentDate`,`text`,r2(e.job?.paymentDetails?.paymentDate,e.property?.timeZone)),i2(`riPending`,`text`,e.riFields?.riPending?U(`list_view.yeslabel`):`-`),i2(`riCompleted`,`text`,dEe(e.riFields?.riCompleted)),i2(`sharedBy`,`text`,e.property?.sharedBy||`-`,e.property?.sharedBy||`-`,!1,null,17),i2(`jobActions`,`job-actions`,null,null,!1,null,null,!1),i2(null,`payload`,r)]},d2=[$0(`${U(`list_view.select`)} ...`,``),$0(U(`list_view.name`),`propertyTitle`,`string`),$0(U(`list_view.type`),`propertyType`,`enum`,[{name:U(`properties.apartment`),value:`apartment`},{name:U(`properties.house`),value:`house`}]),$0(U(`list_view.city`),`propertyCity`,`string`),$0(U(`list_view.country`),`propertyCountry`,`string`),$0(U(`list_view.address`),`propertyAddress`,`string`)],f2=[$0(`${U(`list_view.select`)} ...`,``),$0(U(`list_view.partner`),`bookingPartner`,`enum`,[{name:`iCal`,value:`ical`},{name:`Airbnb`,value:`airbnb`},{name:`Hostfully`,value:`hostfully`},{name:`Bookingsync`,value:`bookingSync`},{name:`Escapia by HomeAway Software`,value:`escapia`},{name:`V12.Net by HomeAway Software`,value:`V12`},{name:`guesty`,value:`Guesty`},{name:`Rentals United`,value:`rentalsUnited`},{name:`NewBook`,value:`newbook`},{name:`Streamline`,value:`streamline`},{name:`MyVR`,value:`myvr`},{name:`Supercontrol`,value:`supercontrol`},{name:`Booking.com`,value:`bookingcom`},{name:`Smoobu`,value:`smoobu`}]),$0(U(`list_view.expected_arrival`),`bookingArrivalDate`,`date`),$0(U(`list_view.check_out`),`bookingDepartureDate`,`date`)],p2=[$0(`${U(`list_view.select`)} ...`,``),$0(U(`list_view.job_name`),`jobTitle`,`string`),$0(U(`list_view.status`),`jobStatus`,`enum`,[{name:U(`list_view.pending`),value:`pending`},{name:U(`detailed_view.accepted`),value:`accepted`},{name:U(`jobdetails.acceptedreal`),value:`inProgress`},{name:U(`detailed_view.finished`),value:`finished`},{name:U(`list_view.canceled`),value:`canceled`}]),$0(U(`list_view.offered_price`),`JobOfferedPriceAndCurrency`,`number`),$0(U(`reports.select.schedulestart`),`jobStartTime`,`date`),$0(U(`reports.select.scheduleend`),`jobEndTime`,`date`),$0(U(`list_view.actual_start_time`),`jobActualStartTime`,`date`),$0(U(`list_view.actual_end_time`),`jobActualEndTime`,`date`),$0(U(`list_view.scheduled_duration`),`jobDuration`,`number`),$0(U(`list_view.actual_duration`),`jobActualDuration`,`number`)],m2=[$0(`${U(`list_view.select`)} ...`,``),$0(U(`list_view.name`),`checklistTitle`,`string`)],h2=[$0(`${U(`list_view.select`)} ...`,``),$0(U(`list_view.name`),`skillTitle`)],g2=[$0(`${U(`list_view.select`)} ...`,``),$0(U(`list_view.name`),`cleanerTitle`)],vEe=[$0(`${U(`list_view.select`)} ...`,``),$0(U(`list_view.pending`),`riPending`,`boolean`),$0(U(`list_view.complete`),`riCompleted`,`boolean`)],yEe=[$0(`${U(`list_view.select`)} ...`,``),$0(U(`list_view.name`),`name`),$0(U(`list_view.urgency`),`urgency`),$0(U(`list_view.quantity`),`quantity`),$0(U(`list_view.checklist_name`),`checklistName`),$0(U(`list_view.skill_name`),`skillName`)],bEe=()=>[{id:`propertyTitle`,name:U(`list_view.legend.property`),width:200},{id:`jobTitle`,name:U(`list_view.legend.job_title`),width:150},{id:`schedulingInterval`,name:U(`list_view.legend.scheduling_interval`),width:150},{id:`jobTime`,name:U(`list_view.legend.start_time`),width:270,isVisible:!0,nameDesc:null,disabledSorting:!0},{id:`duration`,name:U(`job_request.duration`),width:100},{id:`checklistTitle`,name:U(`list_view.legend.checklist_title`),width:150,isVisible:!0,nameDesc:null,disabledSorting:!0},{id:`cleanerTitle`,name:U(`list_view.legend.service_provider`),width:130,isVisible:!0,nameDesc:null,disabledSorting:!0},{id:`additionalCleaners`,name:U(`list_view.legend.additional_sp`),width:170,isVisible:!0,nameDesc:null,disabledSorting:!0},{id:`status`,name:U(`list_view.legend.status`),width:100}
2675,{id:`jobActions`,name:U(`list_view.legend.actions`),width:100,isVisible:!0,nameDesc:null,disabledSorting:!0}].reduce((e,t)=>{if(t.isVisible!==!1){let{id:n,name:r,width:i,isVisible:a=!0,nameDesc:o=null,disabledSorting:s=!1}=t;e.push(e2(n,r,i,a,o,s))}return e},[]),_2=(e,t)=>{let n=new Ns(e),r=Ps(e),i=nc(e),a=rc(e),o=Fs(e),s=Is(e),c=Ls(e),l=Rs(e),u=t?.[e.propertyId]?.pictureUrl||null;return[i2(`propertyTitle`,`text`,e.propertyTitle||`-`,e.propertyTitle||null,!0,null,28,!1,null,!1,!1,!1,!1,!1,!1,u),i2(`jobTitle`,`text`,e.jobTitle||`-`,e.jobTitle||null),i2(`schedulingInterval`,`text`,r||`-`),i2(`jobTime`,`text`,n?.getTimeString()||`-`),i2(`duration`,`text`,n?.getDateDurationFormatted()),i2(`checklistTitle`,`text`,i||`-`,s2(e.checklists,e=>e.title),!1,null,null,!1,a>1?a-1:null),i2(`cleanerTitle`,`text`,o[0]?.serviceProviderName||`-`,s2(c),!1,null,null,!1,o.length>1?o.length-1:null),i2(`additionalCleaners`,`text`,s[0]?.serviceProviderName||`-`,s2(l),!1,null,null,!1,s.length>1?s.length-1:null),i2(`status`,`switch`,e.status,null,!1,null,null,!0),i2(`jobActions`,`autoscheduler-actions`,null,null,!1,null,null,!0),i2(null,`payload`,n)]},xEe=[`15`,`50`,`100`],SEe=`15`;function v2({viewMode:e,userIsAdmin:t=!1,draftJobsMode:n=!1,isFeatureFlagJobForwardingEnabled:r=!1,initialPreferences:i=null,onPreferencesChange:a}){let o=(0,B.useCallback)(()=>{switch(e){case`to-do`:return pEe;case`jobs`:return _Ee(t,n);case`service-providers`:return mEe;case`properties`:return hEe;case`checklist-library`:return gEe;case`autoscheduler`:return bEe();default:return[]}},[e,t,n]),s=(0,B.useMemo)(()=>{let t=[],n=(e,n,r)=>{t.push(Q0(e,n,r))};switch(e){case`to-do`:n(`main`,`all`,U(`list_view.filter.all`)),n(`main`,`toDo`,U(`list_view.filter.to_do`)),n(`main`,`toModify`,U(`list_view.filter.to_modify`));break;case`jobs`:n(`main`,`all`,U(`list_view.filter.all`)),n(`main`,`pending`,U(`list_view.filter.pending`)),n(`main`,`accepted`,U(`detailed_view.accepted`)),n(`main`,`inProgress`,U(`jobdetails.acceptedreal`)),n(`main`,`finished`,U(`detailed_view.finished`)),n(`main`,`canceled`,U(`list_view.filter.canceled`)),r&&n(`main`,`jobsReceived`,`Jobs Received`);break;case`service-providers`:n(`main`,`all`,U(`list_view.filter.all`)),n(`main`,`favorites`,U(`list_view.filter.favorites`));break;case`properties`:n(`main`,`all`,U(`list_view.filter.all`)),n(`main`,`openProblems`,U(`list_view.filter.open_problems`)),n(`main`,`active`,U(`list_view.filter.active`));break;case`checklist-library`:n(`main`,`all`,U(`list_view.filter.all`)),n(`main`,`branded`,U(`list_view.filter.branded`)),n(`main`,`my`,U(`list_view.filter.my`)),n(`main`,`howTo`,U(`list_view.filter.how_to`));break;default:break}return t},[e,r]),c=(0,B.useMemo)(()=>{let t=[];switch(e){case`to-do`:t.push(Q0(`time`,`today`,U(`list_view.filter.today`))),t.push(Q0(`time`,`last7Days`,U(`list_view.filter.this_week`))),t.push(Q0(`time`,`next7Days`,U(`list_view.filter.next_week`))),t.push(Q0(`time`,`between`,U(`list_view.filter.custom`)));break;case`jobs`:t.push(Q0(`time`,`today`,U(`list_view.filter.today`))),t.push(Q0(`time`,`thisWeek`,U(`list_view.filter.this_week`))),t.push(Q0(`time`,`nextWeek`,U(`list_view.filter.next_week`))),t.push(Q0(`time`,`between`,U(`list_view.filter.custom`)));break;default:break}return t},[e]),l=(0,B.useMemo)(()=>{let n=[];switch(e){case`to-do`:n.push($0(`${U(`list_view.select`)} ...`,``)),n.push($0(U(`list_view.property`),`property`)),n.push($0(U(`list_view.main_checklist`),`mainChecklist`)),n.push($0(U(`list_view.reminders`),`reminders`)),n.push($0(U(`list_view.job`),`job`)),n.push($0(U(`list_view.booking`),`booking`));break;case`jobs`:n.push($0(`${U(`list_view.select`)} ...`,``)),n.push($0(U(`list_view.property`),`property`)),n.push($0(U(`list_view.checklist`),`checklist`)),n.push($0(U(`list_view.skill`),`skill`)),n.push($0(U(`list_view.service_provider`),`serviceProvider`)),n.push($0(U(`list_view.job`),`job`)),n.push($0(U(`list_view.booking`),`booking`)),t&&n.push($0(U(`list_view.remote_inspection`),`remoteInspection`));break;case`service-providers`:n.push($0(`${U(`list_view.select`)} ...`,``)),n.push($0(U(`list_view.service_provider`),`serviceProvider`));break;case`properties`:n.push($0(`${U(`list_view.select`)} ...`,``)),n.push($0(U(`list_view.property`),`property`));break;case`checklist-library`:n.push($0(`${U(`list_view.select`)} ...`,``)),n.push($0(U(`list_view.checklist`),`checklist`)),n.push($0(U(`list_view.skill`),`skill`));break;default:break}return n},[e,t]),u=(0,B.useMemo)(()=>{let t={};switch(e){case`to-do`:t.property=d2,t.mainChecklist=m2,t.reminders=yEe,t.j
2675ob=p2,t.booking=f2;break;case`jobs`:t.property=d2,t.checklist=m2,t.skill=h2,t.serviceProvider=g2,t.job=p2,t.booking=f2,t.remoteInspection=vEe;break;case`service-providers`:t.serviceProvider=g2;break;case`properties`:t.property=d2;break;case`checklist-library`:t.checklist=m2,t.skill=h2;break;default:break}return t},[e]),[d,f]=(0,B.useState)(()=>i?.columns??o()),[p,m]=(0,B.useState)(()=>i?.sortByColumn??null),[h,g]=(0,B.useState)(()=>i?.reversedSort??!1),[_,v]=(0,B.useState)(()=>i?.searchValue??null),[y,b]=(0,B.useState)(1),[x,S]=(0,B.useState)(()=>xEe.includes(i?.resultsPerPage)?i.resultsPerPage:SEe),[C,w]=(0,B.useState)(()=>i?.currentMainFilter??s[0]?.id),[T,E]=(0,B.useState)(()=>i?.currentTimeFilter??null),[D,ee]=(0,B.useState)(()=>i?.currentCustomFilter??null),[te,ne]=(0,B.useState)(()=>i?.customTimeFilterDate??null),[re,O]=(0,B.useState)(!1),ie=(0,B.useRef)(!1),ae=(0,B.useCallback)(()=>{switch(e){case`to-do`:return null;case`jobs`:return`jobStatus`;case`service-providers`:return null;case`properties`:return null;case`checklist-library`:return null;default:return null}},[e]),oe=(0,B.useCallback)(()=>{switch(e){case`jobs`:return`anyOf`;default:return`is`}},[e]),se=(0,B.useMemo)(()=>{let e=[];
2675if(C&&C!==`all`&&(e=[...e,{id:ae(),operator:oe(),value:[C]}]),T){let t={id:`jobStartTime`,operator:T,value:[]};T===`between`&&te&&(t={id:`jobStartTime`,operator:`between`,value:[te.startDate,te.endDate]}),e=[...e,t]}return D&&D.rules.all.forEach(t=>{e=[...e,{id:t.attributeField,operator:t.condition,value:[t.value]}]}),e},[C,T,D,te,ae,oe]),ce=(0,B.useCallback)(()=>{a&&ie.current&&(a({sortByColumn:p,reversedSort:h,searchValue:_,currentMainFilter:C,currentTimeFilter:T,currentCustomFilter:D,customTimeFilterDate:te,columns:d,resultsPerPage:x}),ie.current=!1)},[a,p,h,_,C,T,D,te,d,x]);return(0,B.useEffect)(()=>{let e=setTimeout(ce,100);return()=>clearTimeout(e)},[ce]),{columns:d,sortByColumn:p,reversedSort:h,searchValue:_,pageNumber:y,resultsPerPage:x,currentMainFilter:C,currentTimeFilter:T,currentCustomFilter:D,customTimeFilterDate:te,queryFilters:se,needsRefetch:re,mainFilters:s,timeFilters:c,customFiltersRuleAttributes:l,customFiltersRuleAttributeFields:u,customFiltersLocalStorageKey:e,setSortColumn:(0,B.useCallback)(t=>{ed(qu.LISTVIEW,Ju.SORT,{column:t,previous_column:p,view_mode:e,component:`ListViewFetcher`}),m(t),ie.current=!0,O(!0)},[p,e]),setReversedSort:(0,B.useCallback)(t=>{ed(qu.LISTVIEW,Ju.SORT,{column:p,direction:t?`DESC`:`ASC`,view_mode:e,component:`ListViewFetcher`}),g(t),ie.current=!0,O(!0)},[p,e]),setSearchValue:(0,B.useCallback)(t=>{t&&t.length>=2&&dd(`listview_${e}`,t,{view_mode:e,query_length:t.length,component:`ListViewFetcher`}),v(t),ie.current=!0,O(!0)},[e]),setPageNumber:(0,B.useCallback)((e,t=!1)=>{b(e),t||O(`page`)},[]),setResultsPerPage:(0,B.useCallback)(e=>{b(1),S(e),ie.current=!0,O(!0)},[]),setMainFilter:(0,B.useCallback)(t=>{let n=s.find(e=>e.id===t)?.name;fd(`listview_main_filter`,t,{filter_name:n,previous_value:C,view_mode:e,component:`ListViewFetcher`}),w(t),ie.current=!0,O(!0)},[s,C,e]),setTimeFilter:(0,B.useCallback)(t=>{let n=c.find(e=>e.id===t)?.name;fd(`listview_time_filter`,t,{filter_name:n,previous_value:T,view_mode:e,component:`ListViewFetcher`}),E(t),ie.current=!0,O(!0)},[c,T,e]),setCustomTimeFilterDate:(0,B.useCallback)(t=>{fd(`listview_custom_date`,`date_range`,{start_date:t?.startDate,end_date:t?.endDate,view_mode:e,component:`ListViewFetcher`}),ne(t),ie.current=!0,O(!0)},[e]),setCustomFilter:(0,B.useCallback)(t=>{t&&fd(`listview_custom_filter`,t.name,{filter_id:t.id,rules_all_count:t.rules?.all?.length||0,rules_any_count:t.rules?.any?.length||0,view_mode:e,component:`ListViewFetcher`}),ee(t),ie.current=!0,O(!0)},[e]),setColumns:(0,B.useCallback)(e=>{f(e),ie.current=!0},[]),clearNeedsRefetch:(0,B.useCallback)(()=>{O(!1)},[]),resetToFirstPage:(0,B.useCallback)(()=>{b(1)},[]),parseTodoColumnsFromData:c2,parsePropertyColumnsFromData:l2,parseJobsColumnsFromData:u2,parseAutoschedulerColumnsFromData:_2}}var CEe=F` 2676 query TodoListViewQuery( 2677 $startDate: DateTime 2678 $endDate: DateTime 2679 $offset: Int 2680 $limit: Int 2681 $filters: [Filter] 2682 ) { 2683 TodoList( 2684 startDate: $startDate 2685 endDate: $endDate 2686 offset: $offset 2687 limit: $limit 2688 filters: $filters 2689 ) { 2690 info { 2691 total 2692 limit 2693 offset 2694 query 2695 } 2696 result { 2697 id 2698 title 2699 jobDate 2700 jobStatus 2701 serviceProviderName 2702 bookingCheckIn 2703 bookingCheckOut 2704 guestDetails { 2705 name 2706 channel 2707 numOfGuests 2708 } 2709 } 2710 error 2711 } 2712 } 2713`,wEe=F` 2714 query LoadEventsForTodos($limit: Int, $offset: Int) { 2715 LoadEventsForTodos(limit: $limit, offset: $offset) { 2716 error 2717 result { 2718 id 2719 type 2720 jobSnapshotId 2721 bookingId 2722 triggerId 2723 propertyId 2724 timeZone 2725 propertyTitle 2726 startTime 2727 endTime 2728 status 2729 eventStatus 2730 needsCTA 2731 deleted 2732 payload { 2733 jobRequest { 2734 seen 2735 } 2736 trigger { 2737 time 2738 title 2739 jobId 2740 } 2741 booking { 2742 arrivalDate 2743 departureDate 2744 arrivalLocalDay 2745 departureLocalDay 2746 partner 2747 guestName 2748 numberOfGuests 2749 bookingDurationDays 2750 } 2751 } 2752 days 2753 propertyAddress 2754 createdAt 2755 } 2756 info { 2757 limit 2758 offset 2759 total 2760 } 2761 } 2762 } 2763`,TEe=F` 2764 query LoadJobsForTodos($limit: Int, $offset: Int) { 2765 LoadJobsForTodos(limit: $limit, offset: $offset) { 2766 error 2767 result { 2768 id 2769 job { 2770 title 2771 duration 2772 scheduledStartTime 2773 scheduledEndTime 2774 startTimeType 2775 isForwardingEnabled 2776 isProMarketplaceJob 2777 } 2778 property { 2779 title 2780 timeZone 2781 city 2782 state 2783 country 2784 street 2785 proMarketId 2786 } 2787 status 2788 isSuggested 2789 needsCTA # true/false // default value is false, true for the jobs that were accepted by other cleaner, will be set to false once dismissed 2790 } 2791 info { 2792 limit 2793 offset 2794 total 2795 } 2796 } 2797 } 2798`;function EEe(e){switch(e){case`jobStartDate`:return`jobStartTime`;case`jobScheduledStartTime`:return`jobStartTime`;case`jobScheduledEndTime`:return`jobEndTime`;default:return e}}function DEe(e){switch(e){case`properties`:return{query:oTe,resultParam:`PropertyList`};case`to-do`:return{query:CEe,resultParam:`TodoList`};case`jobs`:return{query:_K,resultParam:`getJobListview`};case`autoscheduler`:return{query:E0,resultParam:`LoadAllAutoSchedulers`};default:return{query:null,resultParam:null}}}function OEe({viewMode:e,draftJobsMode:t=!1,notifications:n={},queryFilters:r,searchValue:i,sortByColumn:a,reversedSort:o,pageNumber:s,resultsPerPage:c,needsRefetch:l,onFetchComplete:u}){let[d,f]=(0,B.useState)(null),[p,m]=(0,B.useState)(null),[h,g]=(0,B.useState)(!1),_=j(PC),v=(0,B.useRef)(!0),y=(0,B.useRef)(null),b=(0,B.useRef)(!1),x=(0,B.useRef)(n);x.current=n,(0,B.useEffect)(()=>(v.current=!0,()=>{v.current=!1,y.current&&clearTimeout(y.current)}),[]);let S=(0,B.useCallback)(t=>{let n=[],r=x.current;return t?.result&&t.result.forEach(t=>{switch(e){case`properties`:n.push(a2(t.propertyId,l2(t)));break;case`to-do`:n.push(a2(t.id,c2(t)));break;case`jobs`:{let e=bK(r,t.id,!0);n.push(a2(t.id,u2({row:t,hasNotifications:e,notifications:r}),e));break}case`autoscheduler`:n.push(a2(t.id,_2(t,_)));break;default:break}}),n},[e,_]),C=(0,B.useCallback)(async(n=!1)=>{let{query:l,resultParam:d}=DEe(e);if(!l)return;let p=Number(c),h={languageCode:(0,pi.default)(),offset:s>1?(s-1)*p:0,limit:p,filters:r,search:i,sortColumn:a?EEe(a):null,
2798sortOrder:a&&o?`DESC`:`ASC`,timeZone:z.default.tz.guess(),...t&&{draftJobsMode:t},showAll:!0};try{let e=await QF.query({query:l,variables:h,fetchPolicy:`no-cache`}),t=e.data[d];if(t?.error!==`false`&&t?.error!==!1&&t?.error!=null)throw e;v.current&&(f(t),m(t?.info?.total),u&&u(n))}catch(e){R.default.warn(`[ERROR] cannot fetch ListViewFetcher table rows`,e),v.current&&g(!0)}},[e,t,r,i,a,o,s,c,u]);(0,B.useEffect)(()=>{b.current||(b.current=!0,C())},[C]),(0,B.useEffect)(()=>{if(l&&b.current){y.current&&clearTimeout(y.current);let e=l!==`page`;y.current=setTimeout(()=>{C(e)},50)}},[l,C]);let w=(0,B.useCallback)(()=>{g(!1)},[]);return{lastFetchedResults:d,totalResultsNumber:p,showError:h,isLoading:d===null,rows:(0,B.useMemo)(()=>S(d),[S,d,n]),fetchRows:C,dismissError:w}}function kEe({viewMode:e,cacheBuster:t=!1,userIsAdmin:n=!1,draftJobsMode:r=!1,isFeatureFlagJobForwardingEnabled:i=!1,notifications:a={}}){let o=Z0(e,t),s=v2({viewMode:e,userIsAdmin:n,draftJobsMode:r,isFeatureFlagJobForwardingEnabled:i,initialPreferences:o.initialPreferences,onPreferencesChange:o.savePreferences}),c=(0,B.useCallback)(e=>{e&&s.resetToFirstPage(),s.clearNeedsRefetch()},[s]),l=OEe({viewMode:e,draftJobsMode:r,notifications:a,queryFilters:s.queryFilters,searchValue:s.searchValue,sortByColumn:s.sortByColumn,reversedSort:s.reversedSort,pageNumber:s.pageNumber,resultsPerPage:s.resultsPerPage,needsRefetch:s.needsRefetch,onFetchComplete:c});return(0,B.useEffect)(()=>{s.needsRefetch&&!l.isLoading&&s.clearNeedsRefetch()},[s.needsRefetch,l.isLoading,s]),{columns:s.columns,sortByColumn:s.sortByColumn,reversedSort:s.reversedSort,searchValue:s.searchValue,pageNumber:s.pageNumber,resultsPerPage:s.resultsPerPage,currentMainFilter:s.currentMainFilter,currentTimeFilter:s.currentTimeFilter,currentCustomFilter:s.currentCustomFilter,mainFilters:s.mainFilters,timeFilters:s.timeFilters,customFiltersRuleAttributes:s.customFiltersRuleAttributes,customFiltersRuleAttributeFields:s.customFiltersRuleAttributeFields,customFiltersLocalStorageKey:s.customFiltersLocalStorageKey,rows:l.rows,isLoading:l.isLoading,totalResultsNumber:l.totalResultsNumber,showError:l.showError,onSortColumnChange:s.setSortColumn,onReversedSortChange:s.setReversedSort,onSearchValueChange:s.setSearchValue,onPageNumberChange:s.setPageNumber,onResultsPerPageChange:s.setResultsPerPage,onMainFilterChange:s.setMainFilter,onTimeFilterChange:s.setTimeFilter,onCustomTimeDateChange:s.setCustomTimeFilterDate,onCustomFilterChange:s.setCustomFilter,onColumnsChange:s.setColumns,dismissError:l.dismissError,refetch:l.fetchRows}}function y2({viewMode:e,onRowClick:t=()=>{},onRowActions:n=()=>{},disabledExports:r=!1,disabledBulkActions:i=!1,disableTableToolbar:a=!1,disableTableFilters:o=!1,disabledSearch:s=!1,userIsAdmin:c=!1,draftJobsMode:l=!1,onDraftJobsModeChange:u=null,notifications:d={},cacheBuster:f=!1,isFeatureFlagJobForwardingEnabled:p=!1}){let m=kEe({viewMode:e,cacheBuster:f,userIsAdmin:c,draftJobsMode:l,isFeatureFlagJobForwardingEnabled:p,notifications:d}),h=u?{isActive:l,label:U(`autoscheduler.scheduled_jobs`),onToggle:u}:null;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(tT,{rows:m.rows,columns:m.columns,isLoading:m.isLoading,sortByColumn:m.sortByColumn,reversedSort:m.reversedSort,totalResultsNumber:m.totalResultsNumber,searchValue:m.searchValue,pageNumber:m.pageNumber,resultsPerPage:m.resultsPerPage,mainFilters:m.mainFilters,currentMainFilter:m.currentMainFilter,timeFilters:m.timeFilters,currentTimeFilter:m.currentTimeFilter,customFiltersLocalStorageKey:m.customFiltersLocalStorageKey,customFiltersRuleAttributes:m.customFiltersRuleAttributes,customFiltersRuleAttributeFields:m.customFiltersRuleAttributeFields,currentCustomFilter:m.currentCustomFilter,scheduledFilter:h,disabledExports:r,disabledBulkActions:i,disableTableFilters:o,disabledSearch:s,disableTableToolbar:a,onReversedSortChange:m.onReversedSortChange,onSortColumnChange:m.onSortColumnChange,onSearchValueChange:m.onSearchValueChange,onPageNumberChange:m.onPageNumberChange,onResultsPerPageChange:m.onResultsPerPageChange,onMainFilterChange:m.onMainFilterChange,onTimeFilterChange:m.onTimeFilterChange,onCustomTimeDateChange:m.onCustomTimeDateChange,onCustomFilterChange:m.onCustomFilterChange,onColumnsChange:m.onColumnsChange,onRowClick:e=>{t(e,m.currentMainFilter)},onRowSelection:()=>{},onRowActions:n}),(0,K.jsx)(wf,{open:m.showError,message:U(`login.error`),onClose:m.dismissError,error:!0})]})}y2.propTypes={viewMode:V.default.oneOf([`to-do`,`jobs`,`service-providers`,`properties`,`checklist-library`,`autoscheduler`]).isRequired,onRowClick:V.default.func,disabledExports:V.default.bool,disableTableFilters:V.default.bool,disabledBulkActions:V.default.bool,disabledSearch:V.default.bool,disableTableToolbar:V.default.bool,userIsAdmin:V.default.bool,draftJobsMode:V.default.bool,onDraftJobsModeChange:V.default.func,notifications:V.default.shape({}),onRowActions:V.default.func,cacheBuster:V.default.bool,isFeatureFlagJobForwardingEnabled:V.default.bool};function b2(e,t,n){return{id:e,name:t,component:n}}function x2(e){let t=[];
2798return e&&e.checklists&&e.checklists.forEach(e=>{t=[...t,...e.steps]}),t}var AEe=gn.create(I),jEe={backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-lg)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-md)`,padding:`20px`,marginBottom:`12px`,position:`relative`,overflow:`hidden`,transition:`box-shadow 0.2s ease, border-color 0.2s ease`,"&:hover":{boxShadow:`var(--shadow-lg)`,borderColor:`var(--color-border-hover)`}},MEe={display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:`16px`},NEe={fontSize:`var(--font-size-micro)`,fontWeight:600,color:`var(--color-text-secondary)`,textTransform:`uppercase`,letterSpacing:`0.08em`},PEe={display:`flex`,alignItems:`center`,color:`var(--color-text-tertiary)`},S2=({title:e,icon:t,children:n,noPadding:r=!1,animationIndex:i=0,accentColor:a=null})=>(0,K.jsxs)(AEe,{sx:{...jEe,...r&&{padding:0},...a&&{"&::before":{content:`""`,position:`absolute`,top:0,left:0,right:0,height:`3px`,background:a,borderRadius:`var(--radius-lg) var(--radius-lg) 0 0`}}},initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:i*.05,duration:yd.medium,ease:xd.easeOut},children:[e&&(0,K.jsxs)(I,{sx:MEe,children:[(0,K.jsx)(x,{sx:NEe,children:e}),t&&(0,K.jsx)(I,{sx:PEe,children:t})]}),n]});S2.propTypes={title:V.default.string,icon:V.default.node,children:V.default.node.isRequired,noPadding:V.default.bool,animationIndex:V.default.number,accentColor:V.default.string},Qn();var C2=gn.create(I),FEe={backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-xl)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-md)`,padding:`24px`,marginBottom:`16px`,position:`relative`,overflow:`hidden`},IEe={display:`flex`,alignItems:`flex-start`,justifyContent:`space-between`,marginBottom:`20px`,gap:`12px`,flexWrap:`wrap`},LEe={display:`inline-flex`,alignItems:`center`,gap:`6px`,padding:`6px 12px`,backgroundColor:`var(--surface-elevated)`,borderRadius:`var(--radius-pill)`,fontSize:`var(--font-size-micro)`,fontWeight:500,color:`var(--color-text-secondary)`,border:`1px solid var(--color-border)`},REe={marginBottom:`24px`},zEe={fontSize:`22px`,fontWeight:700,color:`var(--color-header)`,marginBottom:`4px`,lineHeight:1.3},BEe={fontSize:`14px`,color:`var(--color-text-secondary)`,lineHeight:1.6},VEe={display:`grid`,gridTemplateColumns:`1fr 2fr`,gap:`16px`},w2={backgroundColor:`var(--surface-elevated)`,borderRadius:`var(--radius-md)`,padding:`16px`,border:`1px solid var(--color-border)`},T2={fontSize:`var(--font-size-micro)`,fontWeight:600,color:`var(--color-text-tertiary)`,textTransform:`uppercase`,letterSpacing:`0.08em`,marginBottom:`6px`,display:`flex`,alignItems:`center`,gap:`6px`},E2={fontSize:`16px`,fontWeight:600,color:`var(--color-text)`,lineHeight:1.4},HEe={fontSize:`14px`,color:`var(--color-text)`,marginTop:`2px`},UEe={display:`inline-flex`,alignItems:`center`,gap:`4px`,padding:`4px 8px`,borderRadius:`var(--radius-sm)`,fontSize:`11px`,fontWeight:600,marginTop:`6px`},D2=({jobData:e,propertyData:t,adminMode:n=!1,autoSchedulerId:r})=>{let i=Vn(),a=(0,B.useMemo)(()=>{if(!e?.startDate)return null;let n=(0,z.default)(),r=(0,z.default)(e.startDate),i=e.endDate?(0,z.default)(e.endDate):null,a=t?.timeZone;a&&n.tz(a);let o=r.diff(n,`minutes`),s=Math.abs(Math.round(o/60)),c=Math.abs(Math.round(o/1440));if(o>0)return o<60?{text:`Starts in ${o} min`,type:`upcoming`}:s<24?{text:`Starts in ${s}h`,type:`upcoming`}:c<=7?{text:`Starts in ${c}d`,type:`future`}:null;if(i&&n.isAfter(i)){let e=Math.abs(i.diff(n,`hours`));return e<24?{text:`Ended ${e}h ago`,type:`past`}:null}else return{text:`In Progress`,type:`active`}},[e?.startDate,e?.endDate,t?.timeZone]);if(!e)return null;let o=e.getStatusColor?e.getStatusColor():`default`,s=e=>{switch(e){case`upcoming`:return{backgroundColor:`var(--color-badge-orange-bg)`,color:`var(--color-badge-orange-text)`};case`active`:return{backgroundColor:`var(--color-badge-green-bg)`,color:`var(--color-badge-green-text)`};case`past`:return{backgroundColor:`var(--color-badge-default-bg)`,color:`var(--color-badge-default-text)`};default:return{backgroundColor:`var(--color-badge-blue-bg)`,color:`var(--color-badge-blue-text)`}}};return(0,K.jsxs)(C2,{sx:FEe,initial:{opacity:0,y:20}
2798,animate:{opacity:1,y:0},transition:{duration:yd.medium,ease:xd.easeOut},children:[(0,K.jsxs)(C2,{sx:IEe,initial:{opacity:0},animate:{opacity:1},transition:{delay:Ed(1)},children:[(0,K.jsxs)(I,{sx:{display:`flex`,gap:`inherit`,alignItems:`center`},children:[(0,K.jsx)(Nx,{text:U(e.getStatusStringAdvanced()),color:o,glow:!0}),r&&(0,K.jsx)(Ig,{title:U(`autoscheduler.autoscheduledJob`),children:(0,K.jsx)(br,{size:`small`,onClick:()=>{i(Z.editAutoscheduler(r,`jobs`))},children:(0,K.jsx)(Y.NavAutoscheduling,{byWidth:!0,width:`20px`,height:`20px`,color:`colorPrimary`})})})]}),e.jobType&&(0,K.jsxs)(I,{sx:LEe,children:[(0,K.jsx)(be,{sx:{fontSize:12}}),e.jobType]})]}),(0,K.jsxs)(C2,{sx:REe,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:Ed(2)},children:[n&&e.jobId&&(0,K.jsxs)(x,{sx:{fontSize:`var(--font-size-micro)`,color:`var(--color-text-tertiary)`,marginBottom:`4px`,fontFamily:`monospace`},children:[`ID: `,e.jobId]}),(0,K.jsx)(x,{sx:zEe,children:t?.title||`-`}),(0,K.jsxs)(I,{sx:BEe,children:[t?.street&&(0,K.jsxs)(`div`,{children:[t.street,t.apartment&&` ${t.apartment}`]}),(t?.zip||t?.city)&&(0,K.jsxs)(`div`,{children:[t.zip,` `,t.city]}),t?.country&&(0,K.jsx)(`div`,{children:t.country})]})]}),(0,K.jsxs)(C2,{sx:VEe,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:Ed(3)},children:[(0,K.jsxs)(I,{sx:w2,children:[(0,K.jsxs)(x,{sx:T2,children:[(0,K.jsx)(kt,{sx:{fontSize:14}}),U(`detailed_view.date`)]}),(0,K.jsx)(x,{sx:E2,children:e.getShortDateString()||`-`})]}),(0,K.jsxs)(I,{sx:w2,children:[(0,K.jsxs)(x,{sx:T2,children:[(0,K.jsx)(at,{sx:{fontSize:14}}),U(`detailed_view.time`)]}),(0,K.jsxs)(x,{sx:E2,children:[e.getStartTimeString(),` - `,e.getEndTimeString()]}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`8px`,flexWrap:`wrap`},children:[(0,K.jsx)(x,{sx:HEe,children:Kc(e.getDateDurationInMin())}),a&&(0,K.jsxs)(I,{sx:{...UEe,...s(a.type)},children:[(0,K.jsx)(at,{sx:{fontSize:10}}),a.text]})]})]})]})]})};D2.propTypes={jobData:V.default.shape({jobId:V.default.string,jobType:V.default.string,statusString:V.default.string,startDate:V.default.oneOfType([V.default.string,V.default.instanceOf(Date)]),endDate:V.default.oneOfType([V.default.string,V.default.instanceOf(Date)]),getStatusStringAdvanced:V.default.func,getStatusColor:V.default.func,getShortDateString:V.default.func,getStartTimeString:V.default.func,getEndTimeString:V.default.func,getDateDurationInMin:V.default.func}),propertyData:V.default.shape({title:V.default.string,street:V.default.string,apartment:V.default.string,zip:V.default.string,city:V.default.string,country:V.default.string,timeZone:V.default.string}),adminMode:V.default.bool};var WEe=gn.create(I),GEe={display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`12px`,marginBottom:`12px`},KEe={backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-md)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-sm)`,padding:`16px`,transition:`all 0.2s ease`,"&:hover":{boxShadow:`var(--shadow-md)`,borderColor:`var(--color-border-hover)`}},qEe={fontSize:`var(--font-size-micro)`,fontWeight:600,color:`var(--color-text-tertiary)`,textTransform:`uppercase`,letterSpacing:`0.08em`,marginBottom:`6px`,display:`flex`,alignItems:`center`,gap:`6px`},JEe={fontSize:`var(--font-size-regular)`,fontWeight:600,color:`var(--color-text)`,lineHeight:1.4},O2=({label:e,value:t,icon:n,animationIndex:r=0})=>(0,K.jsxs)(WEe,{sx:KEe,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:Ed(r),duration:yd.medium,ease:xd.easeOut},children:[(0,K.jsxs)(x,{component:`div`,sx:qEe,children:[n&&(0,K.jsx)(I,{component:`span`,sx:{display:`flex`,alignItems:`center`,color:`var(--color-text-tertiary)`},children:n}),e]}),(0,K.jsx)(x,{sx:JEe,children:t||`-`})]});O2.propTypes={label:V.default.string.isRequired,value:V.default.node,icon:V.default.node,animationIndex:V.default.number};var k2=({left:e,right:t,animationIndex:n=0})=>(0,K.jsxs)(I,{sx:GEe,children:[(0,K.jsx)(O2,{label:e.label,value:e.value,icon:e.icon,animationIndex:n}),(0,K.jsx)(O2,{label:t.label,value:t.value,icon:t.icon,animationIndex:n+1})]});k2.propTypes={left:V.default.shape({label:V.default.string.isRequired,value:V.default.node,icon:V.default.node}).isRequired,right:V.default.shape({label:V.default.string.isRequired,value:V.default.node,icon:V.default.node}).isRequired,animationIndex:V.default.number};var YEe=gn.create(I),XEe={backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-lg)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-sm)`,marginBottom:`12px`,overflow:`hidden`,transition:`box-shadow 0.2s ease, border-color 0.2s ease`,"&:hover":{boxShadow:`var(--shadow-md)`,borderColor:`var(--color-border-hover)`}},ZEe={display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`16px 20px`,curs
2798or:`pointer`,userSelect:`none`,gap:`12px`,"&:hover":{backgroundColor:`var(--surface-elevated)`}},QEe={display:`flex`,alignItems:`center`,gap:`10px`,flex:1,minWidth:0},$Ee={display:`flex`,alignItems:`center`,justifyContent:`center`,width:`28px`,height:`28px`,borderRadius:`var(--radius-sm)`,backgroundColor:`var(--surface-elevated)`,color:`var(--color-text-secondary)`,flexShrink:0},eDe={fontSize:`var(--font-size-small)`,fontWeight:600,color:`var(--color-text)`,letterSpacing:`0.01em`},tDe={display:`inline-flex`,alignItems:`center`,justifyContent:`center`,minWidth:`22px`,height:`22px`,padding:`0 6px`,backgroundColor:`var(--color-primary-light)`,color:`var(--color-primary)`,borderRadius:`var(--radius-pill)`,fontSize:`12px`,fontWeight:600},nDe={display:`flex`,alignItems:`center`,color:`var(--color-text-tertiary)`},rDe={display:`flex`,alignItems:`center`,gap:`6px`,marginLeft:`auto`,marginRight:`12px`},iDe={width:`24px`,height:`24px`,borderRadius:`50%`,backgroundColor:`var(--color-primary-light)`,color:`var(--color-primary)`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:`11px`,fontWeight:600,border:`2px solid var(--surface-overlay)`,marginLeft:`-8px`,"&:first-of-type":{marginLeft:0}},aDe={fontSize:`12px`,color:`var(--color-text-tertiary)`,marginLeft:`4px`},oDe={borderTop:`1px solid var(--color-border)`,overflow:`hidden`},sDe={padding:`16px 20px`},cDe={display:`flex`,alignItems:`flex-start`,justifyContent:`space-between`,padding:`10px 0`,borderBottom:`1px solid var(--color-border-light)`,gap:`16px`,"&:last-child":{borderBottom:`none`},"&:first-of-type":{paddingTop:0}},lDe={fontSize:`var(--font-size-small)`,color:`inherit`,flex:1,minWidth:0},uDe={fontSize:`var(--font-size-small)`,color:`var(--color-text-secondary)`,textAlign:`right`,flexShrink:0},dDe={padding:`24px`,textAlign:`center`,color:`var(--color-text-tertiary)`,fontSize:`var(--font-size-small)`},A2=({title:e,value:t,icon:n,onClick:r,trailing:i})=>(0,K.jsxs)(I,{sx:{...cDe,...r&&{cursor:`pointer`,"&:hover":{color:`var(--color-primary)`}}},onClick:r,children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`8px`,flex:1,minWidth:0},children:[n&&(0,K.jsx)(I,{sx:{color:`var(--color-text-tertiary)`,flexShrink:0},children:n}),(0,K.jsx)(x,{sx:lDe,children:e})]}),i,t!==void 0&&(0,K.jsx)(I,{sx:uDe,children:t})]});A2.propTypes={title:V.default.node.isRequired,value:V.default.node,icon:V.default.node};var j2=({title:e,icon:t,children:n,count:r,previewItems:i,defaultOpened:a=!1,isEmpty:o=!1,emptyText:s=`No items`,animationIndex:c=0})=>{let[l,u]=(0,B.useState)(a),d=(0,B.useRef)(null),[f,p]=(0,B.useState)(0);(0,B.useEffect)(()=>{let e=d.current;if(!e)return;p(e.scrollHeight);let t=new ResizeObserver(()=>{p(e.scrollHeight)});return t.observe(e),()=>t.disconnect()},[]);let m=(0,B.useCallback)(()=>{let t=!l;pd(e||`section`,t,{component:`JobSectionCard`,title:e}),u(t)},[l,e]),h=e=>{if(!e)return`?`;let t=e.split(` `);return t.length>=2?`${t[0][0]}${t[1][0]}`.toUpperCase():e.substring(0,2).toUpperCase()},g=i&&i.length>0&&!l;return(0,K.jsxs)(YEe,{sx:XEe,initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:Ed(c),duration:yd.medium,ease:xd.easeOut},children:[(0,K.jsxs)(I,{sx:ZEe,onClick:m,children:[(0,K.jsxs)(I,{sx:QEe,children:[t&&(0,K.jsx)(I,{sx:$Ee,children:t}),(0,K.jsx)(x,{sx:eDe,children:e}),r!==void 0&&r>0&&(0,K.jsx)(I,{sx:tDe,children:r})]}),g&&(0,K.jsxs)(I,{sx:rDe,children:[i.slice(0,3).map((e,t)=>(0,K.jsx)(I,{sx:iDe,children:h(e.name)},e.id||t)),i.length>3&&(0,K.jsxs)(x,{sx:aDe,children:[`+`,i.length-3]})]}),(0,K.jsx)(gn.div,{style:nDe,animate:{rotate:l?180:0},transition:bd.snappy,children:(0,K.jsx)(Y.IcDownArrowThin,{})})]}),(0,K.jsx)(Qr,{initial:!1,children:(0,K.jsx)(gn.div,{initial:!1,animate:{height:l?f:0,opacity:+!!l},transition:{height:{duration:yd.medium,ease:xd.easeOut},opacity:{duration:yd.fast,ease:xd.easeOut}},style:{overflow:`hidden`},children:(0,K.jsx)(I,{sx:oDe,children:(0,K.jsx)(I,{sx:sDe,ref:d,children:o?(0,K.jsx)(I,{sx:dDe,children:s}):n})})})})]})};j2.propTypes={title:V.default.oneOfType([V.default.string,V.default.node]).isRequired,icon:V.default.node,children:V.default.node,count:V.default.number,previewItems:V.default.arrayOf(V.default.shape({id:V.default.string,name:V.default.string})),defaultOpened:V.default.bool,isEmpty:V.default.bool,emptyText:V.default.string,animationIndex:V.default.number};var M2=gn.create(I),fDe={backgroundColor:`var(--color-skeleton, #E0E0E0)`,backgroundImage:`linear-gradient(90deg, var(--color-skeleton, #E0E0E0) 0%, var(--skeleton-shimmer, rgba(255,255,255,0.6)) 50%, var(--color-skeleton, #E0E0E0) 100%)`,backgroundSize:`200% 100%`,animation:`${l` 2799 0% { 2800 background-position: 200% 0; 2801 } 2802 100% { 2803 background-position: -200% 0; 2804 } 2805`} 1.8s ease-in-out infinite`,borderRadius:`var(--radius-sm)`},pDe={backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-lg)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-sm)`,padding:`20px`,marginBottom:`12px`,overflow:`hidden`},mDe={backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-xl)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-md)`,padding:`24px`,marginBottom:`16px`,position:`relative`,overflow:`hidden`},hDe={display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`12px`,marginBottom:`12px`},gDe={backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-md)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-sm)`,padding:`16px`},_De={backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-lg)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-sm)`,marginBottom:`12px`,overflow:`hidden`},vDe={display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`16px 20px`,gap:`12px`},yDe={display:`flex`,alignItems:`center`,gap:`6px`,marginLeft:`auto`,marginRight:`12px`}
2805,bDe={width:`24px`,height:`24px`,borderRadius:`50%`,marginLeft:`-8px`,"&:first-of-type":{marginLeft:0}},xDe={fontSize:`11px`,color:`var(--color-text-tertiary)`,marginLeft:`4px`,width:`20px`,height:`14px`,borderRadius:`var(--radius-sm)`},N2=(e,t,n)=>{let r=[0,.7,.3,.9,.5,.2,.8,.4,.6,.1];return`${e+r[n%r.length]*t}%`},P2=({width:e,height:t,borderRadius:n,sx:r={}})=>(0,K.jsx)(I,{sx:{...fDe,width:e,height:t,borderRadius:n||`var(--radius-sm)`,...r}}),SDe=({animationIndex:e=0})=>(0,K.jsxs)(M2,{sx:mDe,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:Ed(e),duration:yd.medium,ease:xd.easeOut},children:[(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,marginBottom:`20px`},children:[(0,K.jsx)(P2,{width:`90px`,height:`28px`,borderRadius:`var(--radius-pill)`}),(0,K.jsx)(P2,{width:`100px`,height:`28px`,borderRadius:`var(--radius-pill)`})]}),(0,K.jsx)(P2,{width:`70%`,height:`24px`,sx:{marginBottom:`8px`}}),(0,K.jsx)(P2,{width:`60%`,height:`16px`,sx:{marginBottom:`6px`}}),(0,K.jsx)(P2,{width:`45%`,height:`16px`,sx:{marginBottom:`24px`}}),(0,K.jsxs)(I,{sx:{display:`grid`,gridTemplateColumns:`1fr 2fr`,gap:`16px`},children:[(0,K.jsxs)(I,{sx:{backgroundColor:`var(--surface-elevated)`,borderRadius:`var(--radius-md)`,padding:`16px`,border:`1px solid var(--color-border)`},children:[(0,K.jsx)(P2,{width:`50px`,height:`12px`,sx:{marginBottom:`8px`}}),(0,K.jsx)(P2,{width:`70px`,height:`18px`})]}),(0,K.jsxs)(I,{sx:{backgroundColor:`var(--surface-elevated)`,borderRadius:`var(--radius-md)`,padding:`16px`,border:`1px solid var(--color-border)`},children:[(0,K.jsx)(P2,{width:`50px`,height:`12px`,sx:{marginBottom:`8px`}}),(0,K.jsx)(P2,{width:`140px`,height:`18px`,sx:{marginBottom:`6px`}}),(0,K.jsxs)(I,{sx:{display:`flex`,gap:`8px`},children:[(0,K.jsx)(P2,{width:`50px`,height:`14px`}),(0,K.jsx)(P2,{width:`70px`,height:`20px`,borderRadius:`var(--radius-sm)`})]})]})]})]}),CDe=({animationIndex:e=0})=>(0,K.jsx)(I,{sx:hDe,children:[0,1].map(t=>(0,K.jsxs)(M2,{sx:gDe,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:Ed(e+t),duration:yd.medium,ease:xd.easeOut},children:[(0,K.jsx)(P2,{width:`60px`,height:`12px`,sx:{marginBottom:`8px`}}),(0,K.jsx)(P2,{width:`80px`,height:`18px`})]},t))}),F2=({animationIndex:e=0,itemCount:t=2,showPreviewAvatars:n=!1,previewCount:r=3})=>(0,K.jsxs)(M2,{sx:_De,initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:Ed(e),duration:yd.medium,ease:xd.easeOut},children:[(0,K.jsxs)(I,{sx:vDe,children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`10px`},children:[(0,K.jsx)(P2,{width:`28px`,height:`28px`,borderRadius:`var(--radius-sm)`}),(0,K.jsx)(P2,{width:`120px`,height:`16px`}),(0,K.jsx)(P2,{width:`22px`,height:`22px`,borderRadius:`var(--radius-pill)`})]}),n&&(0,K.jsxs)(I,{sx:yDe,children:[Array.from({length:Math.min(r,3)}).map((e,t)=>(0,K.jsx)(P2,{width:`24px`,height:`24px`,borderRadius:`50%`,sx:bDe},t)),r>3&&(0,K.jsx)(P2,{sx:xDe,width:`20px`,height:`14px`})]}),(0,K.jsx)(P2,{width:`20px`,height:`20px`})]}),(0,K.jsx)(I,{sx:{borderTop:`1px solid var(--color-border)`,padding:`16px 20px`},children:Array.from({length:t}).map((e,n)=>(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,padding:`10px 0`,borderBottom:n<t-1?`1px solid var(--color-border-light)`:`none`},children:[(0,K.jsx)(P2,{width:N2(40,30,n),height:`16px`}),(0,K.jsx)(P2,{width:`80px`,height:`24px`,borderRadius:`var(--radius-pill)`})]},n))})]}),wDe=({animationIndex:e=0,lines:t=2})=>(0,K.jsxs)(M2,{sx:pDe,initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:Ed(e),duration:yd.medium,ease:xd.easeOut},children:[(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,marginBottom:`16px`},children:[(0,K.jsx)(P2,{width:`100px`,height:`12px`}),(0,K.jsx)(P2,{width:`16px`,height:`16px`})]}),Array.from({length:t}).map((e,n)=>(0,K.jsx)(P2,{width:N2(60,30,n),height:`16px`,sx:{marginBottom:n<t-1?`8px`:0}},n))]}),TDe=()=>(0,K.jsxs)(I,{sx:{padding:`16px`},children:[(0,K.jsx)(SDe,{animationIndex:0}),(0,K.jsx)(CDe,{animationIndex:2}),(0,K.jsx)(F2,{animationIndex:4,itemCount:2,showPreviewAvatars:!0,previewCount:2}),(0,K.jsx)(F2,{animationIndex:5,itemCount:3}),(0,K.jsx)(wDe,{animationIndex:6,lines:1})]}),EDe=gn.create(I),I2={red:`rgba(255, 205, 210, 0.4)`,blue:`rgba(187, 222, 251, 0.4)`,green:`rgba(200, 230, 201, 0.4)`,"light-blue":`rgba(187, 222, 251, 0.4)`,pink:`rgba(225, 190, 231, 0.4)`,orange:`rgba(255, 224, 178, 0.4)`,default:`rgba(178, 235, 242, 0.4)`},DDe={padding:`16px`,maxWidth:`100%`,position:`relative`,minHeight:`100%`},ODe={position:`absolute`,top:0,left:0,right:0,height:`400px`,pointerEvents:`none`,zIndex:0},kDe={display:`flex`,gap:`12px`,alignItems:`center`,justifyContent:`space-between`,padding:`12px 16px`,marginBottom:`16px`,backgroundColor:`var(--color-primary-light-solid)`,borderRadius:`var(--radius-md)`,border:`1px solid var(--color-primary)`,position:`relative`,zIndex:1},ADe={fontSize:`var(--font-size-small)`,color:`var(--color-black)`,fontWeight:500},jDe={fontSize:`var(--font-size-small)`,lineHeight:1.7,whiteSpace:`pre-wrap`,color:`var(--color-text-secondary)`},MDe={display:`flex`,flexWrap:`wrap`,gap:`8px`},NDe={display:`flex`,alignItems:`center`,justifyContent:`space-between`,width:`100%`},PDe={opacity:.8,transition:`opacity 0.2s ease`,"&:hover":{opacity:1}},L2={fontSize:`11px`,color:`var(--color-text-tertiary)`,marginLeft:`4px`},R2=({sharedData:e=null,data:t})=>
2805{let n=j(sB)||!1,r=xe(),i=j(fB($a.FEATURE_FLAG_JOB_FORWARDING)),a=j(pB)||[],[o,s]=(0,B.useState)([``]),c=e?new Bs(e):null,l=e=>`${e?.userData?.firstName} ${e?.userData?.lastName}`,u=(e,t,n)=>{let r=(0,z.default)(t).tz(n).format(`L`);switch(e){case Ua.Pending:return U(`jobdetails.pending`);case Ua.PendingChanges:return U(`jobdetails.pendingChanges`);case Ua.Declined:case Ua.DeclinedChanges:return U(`jobdetails.declined`);case Ua.Accepted:return`${U(`jobdetails.accepted`)} ${r}`;case Ua.InProgress:return U(`jobdetails.acceptedreal`);case Ua.Finished:return`${U(`jobdetails.finished_on`)} ${r}`;case Ua.Viewed:return U(`jobstatus.seen`);case Ua.AcceptedByOtherCleaner:return U(`jobstatus.accepted_by_other_user`);case Ua.CanceledByHost:case Ua.CanceledByCleaner:return U(`jobdetails.canceled`);default:return``}},d=(e,t,n)=>{let r=(0,z.default)(t).tz(n).format(`L`);switch(e){case Ua.Pending:return U(`jobdetails.pending`);case Ua.PendingChanges:return U(`jobdetails.pendingChanges`);case Ua.Declined:case Ua.DeclinedChanges:return U(`jobdetails.declined`);case Ua.Accepted:return`${U(`jobdetails.accepted`)} ${r}`;case Ua.InProgress:return U(`calendar.started_at`,{time:r});case Ua.Finished:return`${U(`jobdetails.finished_on`)} ${r}`;case Ua.Viewed:return U(`jobstatus.seen`);case Ua.AcceptedByOtherCleaner:return U(`jobstatus.accepted_by_other_user`);case Ua.CanceledByHost:case Ua.CanceledByCleaner:return U(`jobdetails.canceled`);default:return``}},f=(0,B.useMemo)(()=>a,[a]);(0,B.useEffect)(()=>{(async()=>{if(c?.jobId)try{let e=await GJ(c.jobId);if(e.apiError)throw e;s(e.inspectors?.map(e=>e.firstName)||[])}catch(e){R.default.error(`Failed to fetch RI Inspectors:`,e),s([])}})()},[c?.jobId,e?.isRiRetailJob,e?.property?.id,f]);let p=e=>{nd(`job_summary_forward`,{component:`JobSummaryTab`}),r(J_e(e))},m=e=>{switch(e){case Ua.Accepted:case Ua.InProgress:return`blue`;case Ua.Finished:return`green`;case Ua.Pending:case Ua.PendingChanges:case Ua.Viewed:return`orange`;case Ua.Declined:case Ua.DeclinedChanges:case Ua.CanceledByCleaner:case Ua.CanceledByHost:return`red`;default:return`default`}},h=e=>{r(zU({isOpen:!0,meta:{checklistId:e.id,jobInstructionId:e.jobInstructionId,isIndependent:e.propertyIndependent&&!e.published,published:e.published,readOnly:!0}}))},{paymentStatus:g,paymentAmount:_,paymentCurrency:v,paymentProcessor:y}=c?.stripePaymentDetails||{},{paymentDate:b}=c?.stripePaymentDetails||{},S=c?.propertyData||{};b=b?(0,z.default)(b).format(`L`):`-`;let C=c?.isRiRetailJob||f?.includes(e?.property?.id)?`Required`:`Not Required`,w=o?.length?o.join(`, `):`-`,T={stripe:U(`jobdetails.stripe_payment_processed`),clearing:U(`jobdetails.clearing_payment_processed`)},E={stripe:(0,K.jsx)(Y.StripeLogo,{width:`4em`}),clearing:(0,K.jsx)(Y.GetClearingLogo,{width:`4em`})},D=0,ee=c?.checklists,te=tc(c),ne=I2[c?.getStatusColor?c.getStatusColor():`default`]||I2.default;return e?(0,K.jsxs)(I,{sx:DDe,children:[(0,K.jsx)(I,{sx:{...ODe,background:`linear-gradient(180deg, ${ne} 0%, transparent 100%)`}}),i&&t?.jobsReceivedMode&&c?.isForwardingEnabled&&c?.statusString!==Ua.Finished&&(0,K.jsx)(Mw,{hasAccessFormatter:e=>e.canForwardJobs,render:e=>e&&c&&(0,K.jsxs)(EDe,{sx:kDe,initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:yd.medium},children:[(0,K.jsx)(x,{sx:ADe,children:c?.isForwarded?`Click here to edit the forwarded job`:`Click here to forward this job to your team`}),(0,K.jsx)(q,{types:[`size-small`,`type-full-primary`],onClick:()=>p(c.jobId),children:`Forward Job`})]})}),(0,K.jsx)(D2,{jobData:c,propertyData:S,adminMode:n,autoSchedulerId:c.autoSchedulerId}),(0,K.jsx)(k2,{left:{label:U(`detailed_view.price`),value:c?.offeredPriceWithCurrency||`-`,icon:(0,K.jsx)(Y.IcDollar,{style:{width:14,height:14}})},right:{label:U(`list_view.remote_inspection`),value:C,icon:(0,K.jsx)(Y.IcVisibility,{style:{width:14,height:14}})},animationIndex:D++}),i&&t?.jobsReceivedMode&&c?.sender&&(0,K.jsx)(S2,{title:U(`jobdetails.sentby`),animationIndex:D++,children:(0,K.jsx)(x,{sx:{fontSize:`var(--font-size-regular)`,color:`var(--color-text)`},children:l(c.sender)})}),n&&w!==`-`&&(0,K.jsx)(S2,{title:`Real-time Inspected By`,animationIndex:D++,children:(0,K.jsx)(x,{sx:{fontSize:`var(--font-size-regular)`,color:`var(--color-text)`},children:w})}),c?.totalNumberOfSpottedIssues>0&&(0,K.jsx)(k2,{left:{label:(0,K.jsxs)(`span`,{children:[U(`list_view.spotted_cost`),(0,K.jsx)(I,{component:`span`,sx:L2,children:U(`list_view.spotted_cost_suffix`)})]}),value:c?.spottedIssuesCost?`$${c.spottedIssuesCost}`:`-`},right:{label:(0,K.jsxs)(`span`,{children:[U(`list_view.saved_cost`),(0,K.jsx)(I,{component:`span`,sx:L2,children:U(`list_view.saved_cost_suffix`)})]}),value:U(`list_view.saved_cost_value`,{savedIssuesCost:c?.savedIssuesCost,totalNumberOfSavedIssues:c?.totalNumberOfSavedIssues,totalNumberOfSpottedIssues:c?.totalNumberOfSpottedIssues})},animationIndex:D++}),!t?.jobsReceivedMode&&(0,K.jsx)(j2,{title:U(`detailed_view.service_provider`),icon:(0,K.jsx)(Y.IcProfile,{style:{width:14,height:14}}),count:c?.requestedCleanersSortedByAccepted?.length,isEmpty:!c?.requestedCleanersSortedByAccepted?.length,emptyText:`No service providers assigned`,previewItems:c?.requestedCleanersSortedByAccepted?.map(e=>({id:e.userData?.id,name:l(e)})),defaultOpened:!0,animationIndex:D++,children:c?.requestedCleanersSortedByAccepted?.map(e=>(0,K.jsx)(A2,{title:l(e),value:(0,K.jsx)(Nx,{text:u(e.status,e.date,c?.propertyData?.timeZone),color:m(e.status),size:`small`})},e.userData?.id))}),i&&t?.jobsReceivedMode&&c?.isForwardingEnabled&&c?.recipients?.length>0&&(0,K.jsxs)(j2,{title:`Forwardees`,icon:(0,K.jsx)(Y.IcShare,{style:{width:14,height:14}}),count:c.recipients.length,defaultOpened:!0,animationIndex:D++,children:[c.recipients.map(e=>(0,K.jsx)(A2,{title:l(e),value:(0,K.jsx)(Nx,{text:d(e.status,e.date,c?.propertyData?.timeZone),color:m(e.status),size:`small`})},e.userData?.id)),(0,K.jsx)(A2,{title:`Forwarded Price`,value:c?.forwardedOfferedPrice||`-`}),c?.forwardedNote&&(0,K.jsx)(A2,{title:`Forwarded Description`,value:c.forwardedNote})]}),g&&(0,K.jsxs)(j2,{title:(0,K.jsxs)(I,{sx:NDe,children:[(0,K.jsx)(`span`,{children:U(`detailed_view.payment_details`)}),y&&(0,K.jsx)(Ig,{title:T[y]||``,children:(0,K.jsx)(I,{sx:PDe,children:E[y]})})]}),icon:(0,K.jsx)(Y.IcDollar,{style:{width:14,height:14}}),defaultOpened:!0,animationIndex:D++,children:[(0,K.jsx)(A2,{title:U(`detailed_view.status`),value:g}),(0,K.jsx)(A2,{title:U(`detailed_view.amount`),value:v&&_?`${v} ${_}`:`-`}),(0,K.jsx)(A2,{title:U(`detailed_view.date`),value:b})]}),ee.length&&(0,K.jsx)(j2,{title:U(`detailed_view.checklists`),icon:(0,K.jsx)(Y.IcChecklistLibrary,{style:{width:14,height:14}}),count:ee?.length,defaultOpened:!0,isEmpty:!ee?.length,emptyText:`No checklists assigned`,animationIndex:D++,children:ee?.map((e,t)=>(0,K.jsx)(A2,{title:e.title,icon:(0,K.jsx)(Y.IcChecked,{style:{width:12,height:12}}),sourceObj:e,trailing:e?.recurring&&(0,K.jsx)(Ig,{title:U(`properties.kind.recurring`),children:(0,K.jsx)(Ce,{color:`primary`,fontSize:`small`,style:{flexShrink:0}})}),onClick:()=>h(e)},`${e.title}-${t+1}`))}),c?.bookingDetails?.id&&(0,K.jsx)(j2,{title:U(`list_view.booking`),icon:(0,K.jsx)(Y.IcCalendar,{style:{width:14,height:14}}),count:c.bookingDetails.numberOfGuests,animationIndex:D++,children:(0,K.jsx)(A2,{title:(0,K.jsx)(Oy,{booking:c.bookingDetails,property:c.propertyData})},c?.bookingDetails?.id)}),c?.tasks?.length>0&&(0,K.jsx)(j2,{title:U(`list_view.tasks`),icon:(0,K.jsx)(Y.IcTaskRemain,{style:{width:14,height:14}}),count:c.tasks.length,defaultOpened:!0,animationIndex:D++,children:c.tasks.map(({id:e,title:t})=>(0,K.jsx)(A2,{title:t,icon:(0,K.jsx)(Y.IcActive,{style:{width:8,height:8}})},e))}),te?.length>0&&(0,K.jsx)(S2,{title:U(`detailed_view.skills`),icon:(0,K.jsx)(Y.IcBadgeChecklist,{style:{width:14,height:14}}),animationIndex:D++,children:(0,K.jsx)(I,{sx:MDe,children:te.map(e=>(0,K.jsx)(Md,{label:e,size:`small`,chipStyle:{backgroundColor:`var(--surface-overlay)`,color:`var(--color-text)`,border:`1px solid var(--color-border)`,fontSize:`var(--font-size-micro)`}},e))})}),c?.note&&(0,K.jsx)(S2,{title:U(`detailed_view.description`),icon:(0,K.jsx)(Y.IcComment,{style:{width:14,height:14}}),animationIndex:D++,children:(0,K.jsx)(x,{sx:jDe,children:c.note})}),(0,K.jsx)(ym,{})]}):(0,K.jsx)(TDe,{})};R2.propTypes={sharedData:V.default.shape({}),data:V.default.shape({jobsReceivedMode:V.default.bool})};
2805var z2=class{constructor({notifications:e,setNotifications:t}){this.MANAGER_TYPE=`JOBS`,this.notifications=e,this.setNotifications=t}jobHasNotifications(e,t){return bK(e,t)}jobHasCommentsNotifications(e,t){return vK(e,t)}jobHasVerificationsPhotosNotifications(e,t){return yK(e,t)}verificationPhotoHasNotifications(e,t,n){return SK(e,t,n)}readJobCommentsNotifications(e){this.readNotificationsOfType(e,`comments`)}readJobVerificationPhotosNotifications(e){this.readNotificationsOfType(e,`verificationPhotos`)}readNotificationsOfVerificationPhoto(e,t){let{notifications:n,setNotifications:r}=this,i=this.cloneNotificationsObject(n);i.verificationPhotos=n.verificationPhotos.filter(n=>n.jobSnapshotId!==e||n.pictureIdentifier!==t),i.notificationsCount=CK(i),r(i)}readNotificationsOfType(e,t){let{notifications:n,setNotifications:r}=this,i=this.cloneNotificationsObject(n);i[t]=n[t].filter(t=>t.jobSnapshotId!==e),i.notificationsCount=CK(i),r(i)}cloneNotificationsObject(e){return(0,bc.default)(e)}},FDe=gn.create(I),IDe=(0,B.memo)(function(){return(0,K.jsxs)(FDe,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:`48px 24px`,textAlign:`center`},initial:{opacity:0}
2805,animate:{opacity:1},transition:{delay:.2},children:[(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:`64px`,height:`64px`,background:`var(--surface-elevated)`,borderRadius:`50%`,color:`var(--color-text-tertiary)`,marginBottom:`16px`},children:(0,K.jsx)(Y.IcComments,{style:{width:32,height:32}})}),(0,K.jsx)(x,{sx:{fontSize:`var(--font-size-regular)`,fontWeight:600,color:`var(--color-text)`,marginBottom:`6px`},children:`No messages yet`}),(0,K.jsx)(x,{sx:{fontSize:`var(--font-size-small)`,color:`var(--color-text-secondary)`},children:`Start the conversation below`})]})}),LDe=gn.create(I),RDe=(0,B.memo)(function(){return(0,K.jsxs)(LDe,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:`48px 24px`,gap:`12px`},initial:{opacity:0},animate:{opacity:1},children:[(0,K.jsx)(rr,{size:24,sx:{color:`var(--color-primary)`}}),(0,K.jsxs)(x,{sx:{fontSize:`var(--font-size-small)`,color:`var(--color-text-secondary)`},children:[U(`detailed_view.loading_comments`),`...`]})]})}),zDe=gn.create(I),B2=(0,B.memo)(function({newMessage:e,sendingMessage:t,onMessageChange:n,onSendMessage:r,onFileUploadClick:i,commentImageUploadRef:a,onImageInputChange:o}){return(0,K.jsx)(zDe,{sx:{background:`var(--color-bg-paper)`,borderRadius:`var(--radius-lg)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-md)`,padding:`14px`},initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:yd.medium,delay:.1,ease:xd.easeOut},children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`flex-end`,gap:`12px`},children:[(0,K.jsx)(I,{sx:{flex:1,"& textarea":{width:`100%`,padding:`12px 16px`,border:`2px solid var(--color-border)`,borderRadius:`var(--radius-lg)`,background:`var(--surface-elevated)`,color:`var(--color-text)`,fontSize:`var(--font-size-small)`,fontFamily:`inherit`,resize:`none`,transition:`border-color 0.2s ease, box-shadow 0.2s ease`,outline:`none`,"&:focus":{borderColor:`var(--color-primary)`,boxShadow:`0 0 0 4px var(--color-primary-alpha-10)`},"&::placeholder":{color:`var(--color-text-tertiary)`}}},children:(0,K.jsx)(qe,{value:e,placeholder:U(`detailed_view.write_here`),onKeyPress:r,onChange:n,minRows:1,maxRows:4})}),(0,K.jsx)(`input`,{type:`file`,ref:a,style:{display:`none`},accept:`image/*`,onChange:o}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`8px`},children:[(0,K.jsx)(br,{onClick:i,disabled:t,size:`small`,sx:{width:`44px`,height:`44px`,borderRadius:`var(--radius-md)`,background:`var(--surface-elevated)`,border:`2px solid var(--color-border)`,color:`var(--color-primary)`,transition:`all 0.2s ease`,"&:hover":{background:`var(--color-primary-light)`,borderColor:`var(--color-primary-light)`,transform:`scale(1.05)`},"&:disabled":{opacity:.5,cursor:`not-allowed`}},children:(0,K.jsx)(Y.IcCameraSolid,{style:{width:20,height:20}})}),(0,K.jsx)(I,{component:gn.button,onClick:r,disabled:!e?.trim()||t,whileHover:{scale:e?.trim()?1.05:1},whileTap:{scale:e?.trim()?.95:1},sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:`44px`,height:`44px`,borderRadius:`var(--radius-md)`,background:!e?.trim()||t?`var(--color-gray-300)`:`var(--color-primary)`,color:`var(--color-white)`,border:`none`,cursor:!e?.trim()||t?`not-allowed`:`pointer`,transition:`all 0.2s ease`,"&:hover:not(:disabled)":{background:`var(--color-primary-dark)`,transform:`scale(1.02)`}},children:t?(0,K.jsx)(rr,{size:18,sx:{color:`var(--color-white)`}}):(0,K.jsx)(Y.IcSendMessage,{color:`white`,style:{width:18,height:18}})})]})]})})});B2.propTypes={newMessage:V.default.string.isRequired,sendingMessage:V.default.bool.isRequired,onMessageChange:V.default.func.isRequired,onSendMessage:V.default.func.isRequired,onFileUploadClick:V.default.func.isRequired,commentImageUploadRef:V.default.shape({current:V.default.instanceOf(Element)}).isRequired,onImageInputChange:V.default.func.isRequired};var BDe=gn.create(I),V2=e=>{let{data:t,isVisible:n,notificationsManagerInstance:r=null,sharedData:i=null}=e,{trackClick:a,trackUpload:o,trackModalAction:s}=nT(`CommentsTab`),c=j(EC),[l,u]=(0,B.useState)(``),[d,f]=(0,B.useState)(!1),[p,m]=(0,B.useState)(null),[h,g]=(0,B.useState)(null),[_,v]=(0,B.useState)(!1),y=(0,B.useRef)(null),b=(0,B.useRef)(null),S=(0,B.useRef)(!1),C=t?.jobsReceivedMode?`CLEANER`:`HOST`,{comments:w,loading:T,sending:E,addComment:D,addImageComment:ee}=NX({jobId:t?.id,userRole:C,enabled:n&&!!t?.id}),te=(0,B.useCallback)(()=>{setTimeout(()=>{let e=y.current;e&&(e.scrollTop=e.scrollHeight)},50)},[]);(0,B.useEffect)(()=>{w?.length>0&&te()},[w,te]);let ne=(0,B.useRef)(null);(0,B.useEffect)(()=>{w&&t?.id&&r&&ne.current!==t.id&&(ne.current=t.id,r.readJobCommentsNotifications(t.id))},[w,t?.id,r]);let re=(0,B.useCallback)((e,t)=>{s(`comment_lightbox`,`OPEN`),m(iu(e,nu.ORIGINAL,``,t)),g({filename:e})},[s]),O=(0,B.useCallback)(()=>{m(null),g(null)},[]),ie=(0,B.useCallback)(e=>e?e.charAt(0).toUpperCase()+e.slice(1):``,[]),ae=(0,B.useCallback)((e,t)=>{let n=z.default.tz.guess();i?.property?.timeZone&&(n=i.property.timeZone);let r=e.senderId===c,a=(0,z.default)(e.time).tz(n).format(`YYYY-MM-DD HH:mm:ss`),o=!!e.pictureIdentifier;return(0,K.jsxs)(BDe,{initial:{opacity:0,y:8}
2805,animate:{opacity:1,y:0},transition:{duration:.2,delay:Math.min(t*.02,.1),ease:`easeOut`},sx:{position:`relative`,mb:`8px`,p:`10px 14px`,maxWidth:`350px`,width:`fit-content`,minWidth:`120px`,alignSelf:r?`flex-end`:`flex-start`,bgcolor:r?`var(--color-comment-user-bg)`:`var(--color-comment-other-bg)`,borderRadius:`8px`,borderTopRightRadius:r?`2px`:`8px`,borderTopLeftRadius:r?`8px`:`2px`,mr:r?`10px`:0,ml:r?0:`10px`},children:[e.comment&&(0,K.jsx)(x,{sx:{fontSize:`13px`,lineHeight:1.4,color:`var(--color-text)`,wordWrap:`break-word`},children:e.comment}),o&&(0,K.jsx)(I,{component:`img`,src:iu(e.pictureIdentifier),alt:``,onClick:()=>re(e.pictureIdentifier,a),sx:{mt:e.comment?`6px`:0,border:0,maxWidth:`200px`,maxHeight:`150px`,objectFit:`contain`,cursor:`pointer`,borderRadius:`4px`}}),(0,K.jsx)(x,{sx:{fontSize:`9px`,color:`var(--color-text-secondary)`,textAlign:`right`,mt:`4px`},children:`${ie(e.senderFirstname)} ${ie(e.senderLastname)}, ${(0,z.default)(e.time).tz(n).format(`MMM Do, h:mm a`)}`}),(0,K.jsx)(I,{sx:{position:`absolute`,width:0,height:0,borderStyle:`solid`,top:0,...r?{borderWidth:`10px 10px 0 0`,borderColor:`var(--color-comment-user-bg) transparent transparent transparent`,right:`-10px`}:{borderWidth:`0 10px 10px 0`,borderColor:`transparent var(--color-comment-other-bg) transparent transparent`,left:`-10px`}}})]},e.commentId)},[c,i,re,ie]),oe=(0,B.useCallback)(async e=>{if(!S.current&&(e.key===`Enter`&&!e.shiftKey||e.type===`click`)&&!E&&l?.trim()){S.current=!0,a(`comment_send`);let t=l;u(``),e.preventDefault();try{await D(t)}catch(e){f(!0),R.default.error(`Not possible to submit new comment`,e)}S.current=!1}},[E,l,D,a]),se=(0,B.useCallback)(async e=>{o(`comment_image`,{size:e?.size});try{await ee(e)}catch(e){f(!0),R.default.error(`uploadPic - error`,e)}},[ee,o]),ce=(0,B.useCallback)(e=>{e.preventDefault();let t=new FileReader,n=e.target.files[0];if(!n)return;let{size:r}=n,{minSize:i,maxSize:a}=ru;if(r<i||r>a){v(!0);return}e.target.value=``,t.onloadend=()=>n,t.readAsDataURL(n),se(n)},[se]),le=(0,B.useCallback)(()=>{f(!1)},[]),ue=(0,B.useCallback)(()=>{b.current?.click()},[]),fe=w&&w.length>0,pe=T&&!w,me=!T&&w&&w.length===0;return(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,minHeight:`100%`,flex:1,padding:`16px`,background:`transparent`},children:[(0,K.jsx)(I,{ref:y,sx:{flex:1,display:`flex`,flexDirection:`column`,overflowY:`auto`,padding:`20px`,background:`var(--color-bg-paper)`,borderRadius:`var(--radius-lg)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-sm)`,marginBottom:`16px`,minHeight:`200px`,maxHeight:`calc(100vh - 400px)`,"&::-webkit-scrollbar":{width:`6px`},"&::-webkit-scrollbar-track":{background:`transparent`},"&::-webkit-scrollbar-thumb":{background:`var(--color-gray-300)`,borderRadius:`3px`},"&::-webkit-scrollbar-thumb:hover":{background:`var(--color-gray-400)`}},children:(0,K.jsxs)(Qr,{mode:`popLayout`,children:[pe&&(0,K.jsx)(RDe,{}),me&&(0,K.jsx)(IDe,{}),fe&&w.map((e,t)=>ae(e,t))]})}),(0,K.jsx)(B2,{newMessage:l,sendingMessage:E,onMessageChange:e=>u(e.target.value),onSendMessage:oe,onFileUploadClick:ue,commentImageUploadRef:b,onImageInputChange:ce}),(0,K.jsx)(wf,{open:d,message:U(`detailed_view.not_possible_to_publish_comment`),onClose:le,error:!0}),(0,K.jsx)(de,{open:!!p,close:O,slides:p?[{src:p,download:{filename:h?.filename||`comment_image`}}]:[],plugins:[ut],carousel:{finite:!0},controller:{closeOnBackdropClick:!0},render:{buttonPrev:()=>null,buttonNext:()=>null}}),(0,K.jsx)(Dg.ImageUpload,{onCloseLimitError:()=>v(!1),showLimitError:_})]})};V2.propTypes={data:V.default.shape({id:V.default.string,jobsReceivedMode:V.default.bool}).isRequired,isVisible:V.default.bool.isRequired,notificationsManagerInstance:V.default.instanceOf(z2),notifications:V.default.shape({}),sharedData:V.default.shape({property:V.default.shape({timeZone:V.default.string})})};var H2={view:`_view_2yd6o_2`,tabs:`_tabs_2yd6o_6`,tab:`_tab_2yd6o_6`,current:`_current_2yd6o_28`,"with-notifications":`_with-notifications_2yd6o_32`,withNotifications:`_with-notifications_2yd6o_32`,"photos-list":`_photos-list_2yd6o_48`,photosList:`_photos-list_2yd6o_48`,photo:`_photo_2yd6o_48`,placeholder:`_placeholder_2yd6o_76`,"empty-notice":`_empty-notice_2yd6o_85`,emptyNotice:`_empty-notice_2yd6o_85`,preview:`_preview_2yd6o_99`,extended:`_extended_2yd6o_105`,"full-screen-controls":`_full-screen-controls_2yd6o_109`,fullScreenControl
2805s:`_full-screen-controls_2yd6o_109`,control:`_control_2yd6o_113`,visible:`_visible_2yd6o_125`,images:`_images_2yd6o_157`,image:`_image_2yd6o_157`,empty:`_empty_2yd6o_85`,reference:`_reference_2yd6o_198`,notice:`_notice_2yd6o_210`,div_feedbacks:`_div_feedbacks_2yd6o_222`,divFeedbacks:`_div_feedbacks_2yd6o_222`,separator:`_separator_2yd6o_226`,task_card:`_task_card_2yd6o_232`,taskCard:`_task_card_2yd6o_232`,feedback:`_feedback_2yd6o_239`,"feedbacks-tab__get-taskItem--selector":`_feedbacks-tab__get-taskItem--selector_2yd6o_244`,feedbacksTabGetTaskItemSelector:`_feedbacks-tab__get-taskItem--selector_2yd6o_244`,previous_feedback:`_previous_feedback_2yd6o_248`,previousFeedback:`_previous_feedback_2yd6o_248`,previous_feedback__label:`_previous_feedback__label_2yd6o_253`,previousFeedbackLabel:`_previous_feedback__label_2yd6o_253`,previous_feedback__comment:`_previous_feedback__comment_2yd6o_267`,previousFeedbackComment:`_previous_feedback__comment_2yd6o_267`,thumbs:`_thumbs_2yd6o_282`,thumb:`_thumb_2yd6o_282`,inner:`_inner_2yd6o_297`,positive:`_positive_2yd6o_311`,up:`_up_2yd6o_311`,negative:`_negative_2yd6o_312`,down:`_down_2yd6o_312`,ai_suggested:`_ai_suggested_2yd6o_321`,aiSuggested:`_ai_suggested_2yd6o_321`,ai_badge:`_ai_badge_2yd6o_325`,aiBadge:`_ai_badge_2yd6o_325`,data:`_data_2yd6o_344`,title:`_title_2yd6o_349`,check:`_check_2yd6o_358`,description:`_description_2yd6o_370`,"task-preview":`_task-preview_2yd6o_377`,taskPreview:`_task-preview_2yd6o_377`,"feedbacks-tab__get-taskItem--image":`_feedbacks-tab__get-taskItem--image_2yd6o_384`,feedbacksTabGetTaskItemImage:`_feedbacks-tab__get-taskItem--image_2yd6o_384`,"feedbacks-tab__get-taskItem--selector-extended":`_feedbacks-tab__get-taskItem--selector-extended_2yd6o_394`,feedbacksTabGetTaskItemSelectorExtended:`_feedbacks-tab__get-taskItem--selector-extended_2yd6o_394`,selector:`_selector_2yd6o_405`,feedbacks:`_feedbacks_2yd6o_244`,"textarea-ct":`_textarea-ct_2yd6o_424`,textareaCt:`_textarea-ct_2yd6o_424`,textarea:`_textarea_2yd6o_424`,"button-ct":`_button-ct_2yd6o_455`,buttonCt:`_button-ct_2yd6o_455`,"inline-bt":`_inline-bt_2yd6o_455`,inlineBt:`_inline-bt_2yd6o_455`,"comments-list":`_comments-list_2yd6o_461`,commentsList:`_comments-list_2yd6o_461`,"loading-notice":`_loading-notice_2yd6o_467`,loadingNotice:`_loading-notice_2yd6o_467`,comment:`_comment_2yd6o_461`,"from-user":`_from-user_2yd6o_478`,fromUser:`_from-user_2yd6o_478`,message:`_message_2yd6o_494`,action:`_action_2yd6o_514`,arrow:`_arrow_2yd6o_522`,"static-width":`_static-width_2yd6o_542`,staticWidth:`_static-width_2yd6o_542`,disabled:`_disabled_2yd6o_546`,feedback__image:`_feedback__image_2yd6o_551`,feedbackImage:`_feedback__image_2yd6o_551`,feedback__image__expandedview:`_feedback__image__expandedview_2yd6o_559`,feedbackImageExpandedview:`_feedback__image__expandedview_2yd6o_559`,complete_ri__div:`_complete_ri__div_2yd6o_570`,completeRiDiv:`_complete_ri__div_2yd6o_570`,complete_ri__button:`_complete_ri__button_2yd6o_578`,completeRiButton:`_complete_ri__button_2yd6o_578`,downloadImage__a:`_downloadImage__a_2yd6o_588`,downloadImageA:`_downloadImage__a_2yd6o_588`,preview__div:`_preview__div_2yd6o_592`,previewDiv:`_preview__div_2yd6o_592`,preview_images__div:`_preview_images__div_2yd6o_595`,previewImagesDiv:`_preview_images__div_2yd6o_595`,feedbackHeader__div:`_feedbackHeader__div_2yd6o_606`,feedbackHeaderDiv:`_feedbackHeader__div_2yd6o_606`,review__div:`_review__div_2yd6o_615`,reviewDiv:`_review__div_2yd6o_615`,expended_layout__div:`_expended_layout__div_2yd6o_618`,expendedLayoutDiv:`_expended_layout__div_2yd6o_618`,expendedView_header__div:`_expendedView_header__div_2yd6o_623`,expendedViewHeaderDiv:`_expendedView_header__div_2yd6o_623`,slide_title__div:`_slide_title__div_2yd6o_631`,slideTitleDiv:`_slide_title__div_2yd6o_631`,expandedView_headers_options__div:`_expandedView_headers_options__div_2yd6o_635`,expandedViewHeadersOptionsDiv:`_expandedView_headers_options__div_2yd6o_635`,slide_title__h4:`_slide_title__h4_2yd6o_653`,slideTitleH4:`_slide_title__h4_2yd6o_653`,downloadImage__a__disable:`_downloadImage__a__disable_2yd6o_659`,downloadImageADisable:`_downloadImage__a__disable_2yd6o_659`,downloadImage__a__enable:`_downloadImage__a__enable_2yd6o_663`,downloadImageAEnable:`_downloadImage__a__enable_2yd6o_663`,"task_comment--textarea":`_task_comment--textarea_2yd6o_667`,taskCommentTextarea:`_task_comment--textarea_2yd6o_667`,"task_comment--textarea-text":`_task_comment--textarea-text_2yd6o_680`,taskCommentTextareaText:`_task_comment--textarea-text_2yd6o_680`,invalid_option:`_invalid_option_2yd6o_689`,invali
2805dOption:`_invalid_option_2yd6o_689`,disable_thumb:`_disable_thumb_2yd6o_692`,disableThumb:`_disable_thumb_2yd6o_692`,verificationUp:`_verificationUp_2yd6o_696`,verificationDown:`_verificationDown_2yd6o_697`},U2=(0,B.memo)(function({filters:e,currentFilter:t,onFilterChange:n,getFilterCount:r,jobData:i=null}){return(0,K.jsx)(I,{sx:{backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-lg)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-sm)`,padding:`12px 16px`,marginBottom:`15px`},children:(0,K.jsx)(I,{sx:{display:`flex`,flexWrap:`wrap`,gap:0},children:e.map((a,o)=>{let s=r(i,a.id),c=o===0,l=o===e.length-1,u=t===a.id,d=a.id===`toInspect`&&s>0;return(0,K.jsxs)(I,{onClick:()=>n(a.id),sx:{display:`inline-flex`,alignItems:`center`,padding:`0 12px`,borderTop:`1px solid var(--color-border)`,borderBottom:`1px solid var(--color-border)`,borderRight:`1px solid var(--color-border)`,borderLeft:c?`1px solid var(--color-border)`:`none`,borderTopLeftRadius:c?`5px`:0,borderBottomLeftRadius:c?`5px`:0,borderTopRightRadius:l?`5px`:0,borderBottomRightRadius:l?`5px`:0,fontSize:`11px`,color:d?`var(--color-primary)`:u?`var(--color-text)`:`var(--color-text-secondary)`,fontWeight:d||u?600:`normal`,backgroundColor:u?`var(--color-gray-100)`:`transparent`,cursor:`pointer`,userSelect:`none`,lineHeight:`30px`,transition:`color 0.15s ease, background-color 0.2s ease, font-weight 0.15s ease`,"&:hover":{color:`var(--color-text)`}},children:[a.name,` (`,s,`)`]},a.id)})})})});U2.propTypes={filters:V.default.arrayOf(V.default.shape({id:V.default.string.isRequired,name:V.default.string.isRequired})).isRequired,currentFilter:V.default.string.isRequired,onFilterChange:V.default.func.isRequired,getFilterCount:V.default.func.isRequired,jobData:V.default.shape({})};var W2=(0,B.memo)(function({slides:e,currentSlideIndex:t=null,onSlideSelect:n}){return!e||e.length===0?null:(0,K.jsx)(I,{sx:{backgroundColor:`var(--surface-base)`,borderRadius:`var(--radius-lg)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-sm)`,padding:`16px`,margin:`15px 0`,width:`100%`},children:(0,K.jsx)(I,{sx:{display:`flex`,flexWrap:`wrap`,gap:`5px`},children:e.map((e,r)=>(0,K.jsx)(I,{onClick:()=>n(e,r),sx:{width:`19px`,height:`19px`,backgroundColor:`var(--color-gray-200)`,cursor:e.isPlaceholder?`default`:`pointer`,pointerEvents:e.isPlaceholder?`none`:`auto`,border:`2px solid`,borderColor:t===r?`var(--color-primary)`:`transparent`,backgroundSize:`cover`,backgroundPosition:`center`,backgroundImage:e.pictureIdentifier?`url(${iu(e.pictureIdentifier,nu.PROFILE_PICTURE)})`:void 0,borderRadius:`4px`,transition:`border-color 0.15s ease, transform 0.1s ease`,"&:hover":{borderColor:e.isPlaceholder?`transparent`:`var(--color-primary)`,transform:e.isPlaceholder?`none`:`scale(1.1)`}}},e.id||r))})})});W2.propTypes={slides:V.default.arrayOf(V.default.shape({id:V.default.string,pictureIdentifier:V.default.string,isPlaceholder:V.default.bool})).isRequired,currentSlideIndex:V.default.number,onSlideSelect:V.default.func.isRequired};var G2=(0,B.memo)(function({slideTitle:e=``,magnifyEnabled:t=!1,onMagnifyToggle:n,onRotateLeft:r,onRotateRight:i,downloadUrl:a=``,downloadFilename:o=`image`,isDownloadEnabled:s=!1,showMagnifyPaddingAdjustment:c=!1}){return(0,K.jsxs)(I,{sx:{display:`flex`,backgroundColor:`var(--surface-base)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-md)`,color:`var(--color-text)`,marginBottom:`8px`},children:[(0,K.jsx)(I,{sx:{width:`50%`,paddingLeft:`2%`},children:(0,K.jsx)(I,{component:`h4`,sx:{fontSize:`14px`,color:`var(--color-text)`,lineHeight:`10px`,fontWeight:`normal`,margin:`16px 0`},children:e})}),(0,K.jsxs)(I,{sx:{display:`flex`,paddingLeft:c?`40%`:`20%`,paddingRight:`16px`,color:`var(--color-text-secondary)`,alignItems:`center`,gap:`12px`,"& svg":{width:`20px`,height:`20px`,cursor:`pointer`,fill:`var(--color-text-secondary)`,transition:`fill 0.15s ease`},"& svg:hover":{fill:`var(--color-text)`}},children:[(0,K.jsx)(ve,{control:(0,K.jsx)(C,{checked:t,onChange:n,color:`inherit`,sx:{color:t?Wp:Zp}}
2805),label:`Magnify`,sx:{"& .MuiFormControlLabel-label":{fontSize:`14px`}}}),(0,K.jsx)(Y.IcRotateLeft,{width:`24px`,byWidth:!0,onClick:r}),(0,K.jsx)(Y.IcRotateRight,{width:`24px`,byWidth:!0,onClick:i}),(0,K.jsx)(I,{component:`a`,href:a,download:o,rel:`noopener noreferrer`,target:`_blank`,sx:{marginTop:`auto`,marginBottom:`auto`,pointerEvents:s?`auto`:`none`,cursor:s?`pointer`:`default`,opacity:s?1:.5},children:(0,K.jsx)(Y.IcDownloadImage,{width:`24px`,byWidth:!0})})]})]})});G2.propTypes={slideTitle:V.default.string,magnifyEnabled:V.default.bool,onMagnifyToggle:V.default.func.isRequired,onRotateLeft:V.default.func.isRequired,onRotateRight:V.default.func.isRequired,downloadUrl:V.default.string,downloadFilename:V.default.string,isDownloadEnabled:V.default.bool,showMagnifyPaddingAdjustment:V.default.bool};var K2=(0,B.memo)(function({riJobStatus:e=``,isRIStatusLoaded:t=!1,riInspectorsIds:n=[],adminUserId:r=``,hasMissingFeedback:i=!1,isPropertyEligibleForRI:a=!1,onRecordRI:o,onCompleteRI:s}){let c=e===p_.COMPLETED,l=e===p_.PENDING||a&&e===null,u=n?.includes(r);return(0,K.jsx)(I,{sx:{marginBottom:`1em`,display:`flex`,fontSize:`13px`,color:`var(--color-gray-800)`,fontWeight:500},children:(0,K.jsxs)(I,{sx:{display:`flex`,gap:`10px`,alignItems:`center`},children:[t&&!c&&!u&&(0,K.jsx)(q,{types:[`size-small`,`type-border-grey`],onClick:o,children:`Record RI`}),(0,K.jsx)(q,{disabled:i||c,onClick:s,types:[`size-small`,`type-full-primary`],children:l?(0,K.jsx)(Ig,{title:U(`retail_remote_inspection.pending`),children:`Complete RI`}):`Complete RI`}),c&&(0,K.jsx)(I,{component:`span`,children:U(`retail_remote_inspection.completed`)})]})})});K2.propTypes={riJobStatus:V.default.string,isRIStatusLoaded:V.default.bool,riInspectorsIds:V.default.arrayOf(V.default.string),adminUserId:V.default.string,hasMissingFeedback:V.default.bool,isPropertyEligibleForRI:V.default.bool,onRecordRI:V.default.func.isRequired,onCompleteRI:V.default.func.isRequired};var q2=(0,B.memo)(function({image:e=null,extendedLayout:t=!1,isVerificationPhotoRequired:n=!1,magnifyEnabled:r=!1,imageRotation:i=0,onImageClick:a=()=>{}}){if(!e||!t)return(0,K.jsx)(I,{onClick:e?a:void 0,sx:{backgroundColor:`var(--color-gray-200)`,backgroundSize:`contain`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,paddingTop:`56%`,borderRadius:`var(--radius-md)`,position:`relative`,cursor:e?`pointer`:`default`,backgroundImage:e?`url(${iu(e,``,``)})`:void 0,width:t?`100%`:void 0},children:!e&&(0,K.jsx)(I,{sx:{position:`absolute`,top:0,left:0,right:0,bottom:0,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`var(--color-text-secondary)`,fontSize:`0.8rem`},children:U(n?`detailed_view.photo_not_yet_taken`:`detailed_view.photo_not_required`)})});let o=iu(e,i===0?``:`a_${i}`,``);return r?(0,K.jsx)(I,{sx:{maxWidth:`500px`,margin:`0 auto`,maxHeight:`450px`,padding:0,display:`flex`},children:(0,K.jsx)(Gn,{src:o,zoomImgSrc:o,alt:e,width:`auto`,mgWidth:200,mgHeight:200,style:{maxHeight:`450px`,maxWidth:`500px`}})}):(0,K.jsx)(I,{component:`img`,src:o,alt:e,onClick:a,sx:{maxWidth:`500px`,margin:`0 auto`,maxHeight:`450px`,padding:0,display:`block`,cursor:`pointer`}})});q2.propTypes={image:V.default.string,extendedLayout:V.default.bool,isVerificationPhotoRequired:V.default.bool,magnifyEnabled:V.default.bool,imageRotation:V.default.number,onImageClick:V.default.func};var J2=(0,B.memo)(function({showSubmittedCommentNotice:e=!1,showSubmitCommentError:t=!1,showSubmitFeedbackError:n=!1,showFetchFeedbackDataError:r=!1,showDeleteCommentError:i=!1,showRIFailedError:a=!1,showRISuccessNotice:o=!1,riErrorMessage:s=``,onHideSubmittedCommentNotice:c,onHideSubmitCommentError:l,onHideSubmitFeedbackError:u,onHideFetchFeedbackError:d,onHideDeleteCommentError:f,onHideRIFailedError:p,onHideRISuccessNotice:m}){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(wf,{open:e,message:U(`detailed_view.comment_sent`),onClose:c}),(0,K.jsx)(wf,{open:t,message:U(`detailed_view.not_possible_to_publish_comment`),onClose:l,error:!0}),(0,K.jsx)(wf,{open:n,message:U(`detailed_view.not_possible_to_set_feedback`),onClose:u,error:!0}),(0,K.jsx)(wf,{open:r,message:U(`detailed_view.not_possible_to_fetch_photo_feedback_data`),onClose:d,error:!0}),(0,K.jsx)(wf,{open:i,message:U(`detailed_view.not_possible_to_delete_comment`),onClose:f,error:!0}),(0,K.jsx)(wf,{open:a,message:s||U(`retail_remote_inspection.failed`),onClose:p,error:!0}),(0,K.jsx)(wf,{open:o,message:`Action completed successfully!`,onClose:m})]})});
2805J2.propTypes={showSubmittedCommentNotice:V.default.bool,showSubmitCommentError:V.default.bool,showSubmitFeedbackError:V.default.bool,showFetchFeedbackDataError:V.default.bool,showDeleteCommentError:V.default.bool,showRIFailedError:V.default.bool,showRISuccessNotice:V.default.bool,riErrorMessage:V.default.string,onHideSubmittedCommentNotice:V.default.func.isRequired,onHideSubmitCommentError:V.default.func.isRequired,onHideSubmitFeedbackError:V.default.func.isRequired,onHideFetchFeedbackError:V.default.func.isRequired,onHideDeleteCommentError:V.default.func.isRequired,onHideRIFailedError:V.default.func.isRequired,onHideRISuccessNotice:V.default.func.isRequired};var Y2=(0,B.memo)(function({comment:e,sentByUser:t,timeZone:n,onEdit:r,onDelete:i}){let a=new Date(e.updatedAt);return(0,K.jsxs)(I,{sx:{position:`relative`,marginBottom:`10px`,padding:`15px 20px`,backgroundColor:`var(--color-bg-elevated)`,...t?{borderTopLeftRadius:`10px`,borderBottomRightRadius:`10px`,borderBottomLeftRadius:`10px`,marginRight:`10px`}:{borderTopRightRadius:`10px`,borderBottomRightRadius:`10px`,borderBottomLeftRadius:`10px`,marginLeft:`10px`}},children:[(0,K.jsx)(I,{sx:{fontSize:`12px`,color:`var(--color-text)`,minHeight:`30px`,marginBottom:`10px`},children:e.comment}),(0,K.jsxs)(I,{sx:{fontSize:`10px`,color:`var(--color-text-secondary)`,textAlign:`right`},children:[t&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{component:`span`,onClick:()=>r(e.id,e.comment),sx:{cursor:`pointer`,"&:hover":{textDecoration:`underline`}},children:U(`detailed_view.edit`)}),(0,K.jsx)(`span`,{children:` - `}),(0,K.jsx)(I,{component:`span`,onClick:()=>i(e.id),sx:{cursor:`pointer`,"&:hover":{textDecoration:`underline`}},children:U(`detailed_view.delete`)}),(0,K.jsx)(`span`,{children:` - `})]}),`${e.sender.firstName} ${e.sender.lastName}, ${(0,z.default)(a).tz(n).format(` MMM Do, h:mm a`)}`]}),(0,K.jsx)(I,{sx:{position:`absolute`,width:0,height:0,borderStyle:`solid`,top:0,...t?{borderWidth:`10px 10px 0 0`,borderColor:`var(--color-bg-elevated) transparent transparent transparent`,right:`-10px`}:{borderWidth:`0 10px 10px 0`,borderColor:`transparent var(--color-bg-elevated) transparent transparent`,left:`-10px`}}})]})});Y2.propTypes={comment:V.default.shape({id:V.default.string.isRequired,comment:V.default.string.isRequired,updatedAt:V.default.string.isRequired,sender:V.default.shape({firstName:V.default.string,lastName:V.default.string,userId:V.default.string}).isRequired}).isRequired,sentByUser:V.default.bool.isRequired,timeZone:V.default.string.isRequired,onEdit:V.default.func.isRequired,onDelete:V.default.func.isRequired};var X2=(0,B.memo)(function({aiFeedback:e=null,humanFeedback:t=null}){if(!e)return null;let{thumbs:n,confidence:r,aiComment:i}=e,a=n===`up`,o=r!=null;return t==null?(0,K.jsxs)(I,{sx:{padding:`0 12px 8px`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`6px`},children:[(0,K.jsxs)(I,{sx:{display:`inline-flex`,alignItems:`center`,gap:`3px`,padding:`1px 6px`,backgroundColor:`rgba(54, 172, 178, 0.1)`,borderRadius:`8px`,flexShrink:0},children:[(0,K.jsx)(I,{sx:{fontSize:`9px`,fontWeight:700,color:`var(--color-primary, #36ACB2)`,letterSpacing:`0.3px`},children:`AI`}),(0,K.jsx)(I,{sx:{display:`inline-flex`,alignItems:`center`,color:a?`var(--color-green, #16a34a)`:`var(--color-red, #dc2626)`,width:`10px`,height:`10px`},children:a?(0,K.jsx)(Y.IcThumbUp,{style:{width:`10px`,height:`10px`}}):(0,K.jsx)(Y.IcThumbDown,{style:{width:`10px`,height:`10px`}})})]}),o&&(0,K.jsxs)(I,{sx:{fontSize:`10px`,fontWeight:600,color:`var(--color-text-secondary, #535562)`,flexShrink:0},children:[r,`%`]})]}),i&&(0,K.jsx)(I,{sx:{fontSize:`11px`,color:`var(--color-text-secondary, #535562)`,lineHeight:`16px`,wordBreak:`break-word`,marginTop:`2px`},children:i})]}):null});X2.propTypes={aiFeedback:V.default.shape({thumbs:V.default.string,confidence:V.default.number,aiComment:V.default.string}),humanFeedback:V.default.string};var Z2=[{title:U(`detailed_view.select_reason`),value:``},{title:U(`detailed_view.item_missing`),value:m_.ITEM_MISSING},{title:U(`detailed_view.deep_clean_needed`),value:m_.DEEP_CLEAN_NEEDED},{title:U(`detailed_view.stage_room_as_per_reference_photo`),value:m_.STAGE_ROOM_AS_PER_REFERENCE_PHOTO},{title:U(`detailed_view.please_check_lights`),value:m_.PLEASE_CHECK_LIGHTS},{title:U(`detailed_view.other`),value:m_.OTHER}],VDe=[{title:U(`detailed_view.select_reason`),value:``},{title:U(`detailed_view.photo_missing`),value:`photo_missing`},{title:U(`detailed_view.partial_photo`),value:`partial_photo`},{title:U(`detailed_view.photo_too_blurry`),value:`photo_too_blurry`},{title:U(`detailed_view.retake_other`),value:`retake_other`}],Q2={id:`PHOTO_FEEDBACK`,title:U(`detailed_view.verify`),note:U(`detailed_view.take_photo`)},HDe=[,,,,].fill({isPlaceholder:!0}),$2=_i.default.bind(H2);function e4({direction:e,taskData:t,currentSlide:n,aiSuggestion:r,showAiRing:i,showAiBadge:a,aiTooltip:o,onClick:s}){let c=e===`up`,l=t.id===`PHOTO_FEEDBACK`,u=l&&n.tasks.length,d=r&&r.thumbs===e,f=(0,K.jsxs)(`div`,{className:$2(`thumb`,l?c?`verificationUp`:`verificationDown`:e,{disable_thumb:u,ai_
2805suggested:i&&d}),onClick:()=>{u||s()},children:[(0,K.jsx)(`div`,{className:$2(`inner`),children:c?(0,K.jsx)(Y.IcThumbUp,{}):(0,K.jsx)(Y.IcThumbDown,{})}),a&&d&&(0,K.jsx)(`span`,{className:$2(`ai_badge`),children:`AI`})]},e);return a&&d&&o?(0,K.jsx)(`span`,{style:{display:`inline-block`},children:(0,K.jsx)(Ig,{title:o,children:f})},e):f}e4.propTypes={direction:V.default.oneOf([`up`,`down`]).isRequired,taskData:V.default.shape({id:V.default.string}).isRequired,currentSlide:V.default.shape({tasks:V.default.array}).isRequired,aiSuggestion:V.default.shape({thumbs:V.default.string,confidence:V.default.number,aiComment:V.default.string}),showAiRing:V.default.bool,showAiBadge:V.default.bool,aiTooltip:V.default.string,onClick:V.default.func.isRequired};function t4({taskData:e,feedback:t=null,isPhotoFeedbackTask:n=!1,isPhotoSlide:r=!1,showThumbs:i=!0,showCommentOptions:a=!1,showTextCommentOption:o=!1,disableSubmit:s=!0,tasksFeedbackComment:c=null,previousComment:l=null,previousFeedbackDirection:u=null,extendedLayout:d=!1,currentSlide:f,aiSuggestion:p=null,showAiRing:m=!1,showAiBadge:h=!1,dashboardAdminMode:g=!1,aiCoversRemaining:_=!1,currentVerificationPhotoDate:v=null,jobTimeZone:y=null,onThumbsUp:b,onThumbsDown:x,onSubmit:S=()=>{},onCommentChange:C=()=>{},onImageClick:w=()=>{}}){let{title:T}=e;r&&e.icon&&(T=Eu(e.icon).title);let E=n?VDe:Z2,D={taskData:e,currentSlide:f,aiSuggestion:p,showAiRing:m,showAiBadge:h,aiTooltip:p?[p.confidence==null?null:`${U(`detailed_view.ai_confidence_tooltip`)}: ${p.confidence}%`,p.aiComment||null].filter(Boolean).join(` ⢠`):``};return(0,K.jsxs)(`div`,{className:$2(`task_card`),children:[(0,K.jsxs)(`div`,{className:$2(`feedback`,{positive:t===`up`||n&&t===!0,negative:t===`down`||n&&t===!1}),children:[(n||i)&&(0,K.jsxs)(`div`,{className:$2(`thumbs`),children:[(0,K.jsx)(e4,{direction:`up`,...D,onClick:b}),(0,K.jsx)(e4,{direction:`down`,...D,onClick:x})]}),(0,K.jsxs)(`div`,{className:$2(`data`),children:[(0,K.jsxs)(`div`,{className:$2(`title`),children:[T||``,e.isComplete&&(0,K.jsx)(`div`,{className:$2(`check`),children:(0,K.jsx)(Y.Bigcheck,{})})]}),(0,K.jsx)(`div`,{className:$2(`description`),children:e.note||``})]}),n&&f.tasks.length&&(0,K.jsx)(q,{disabled:s,onClick:S,styleOverwrite:{backgroundColor:`var(--color-primary)`,color:`var(--color-white)`,height:`23px`,minWidth:`108px`,borderRadius:`4px`},children:U(_?`detailed_view.confirm_all_ai`:`detailed_view.submit`)}),e.notePictureIdentifiers&&e.notePictureIdentifiers?.[0]&&(0,K.jsx)(`div`,{className:$2(`task-preview`),children:(0,K.jsx)(`div`,{className:$2(`feedbacks-tab__get-taskItem--image`),style:{backgroundImage:`url(${iu(e.notePictureIdentifiers[0],nu.PROFILE_PICTURE)})`},onClick:()=>w(e.notePictureIdentifiers[0],(0,z.default)(v).tz(y).format(`YYYY-MM-DD HH:mm:ss`))})})]}),g&&!n&&p&&(0,K.jsx)(X2,{aiFeedback:p,humanFeedback:t}),(l||u)&&(0,K.jsxs)(`div`,{className:$2(`previous_feedback`),children:[(0,K.jsxs)(`div`,{className:$2(`previous_feedback__label`),children:[u===`up`?(0,K.jsx)(Y.IcThumbUp,{style:{width:`10px`,height:`10px`,color:`var(--color-gray-500)`}}):u===`down`?(0,K.jsx)(Y.IcThumbDown,{style:{width:`10px`,height:`10px`,color:`var(--color-gray-500)`}}):(0,K.jsx)(Y.IcComment,{style:{width:`10px`,height:`10px`,color:`var(--color-gray-500)`}}),(0,K.jsx)(`span`,{children:U(`detailed_view.previous_feedback`)})]}),l&&(0,K.jsx)(`div`,{className:$2(`previous_feedback__comment`),children:l})]}),a&&(0,K.jsxs)(`div`,{className:$2(`feedbacks-tab__get-taskItem--selector`,{"feedbacks-tab__get-taskItem--selector-extended":d}),children:[(0,K.jsx)(Yf,{type:`select`,options:E,value:o?m_.OTHER:c?.value||``,onChange:e=>C(e.target.value),styleOverwrite:{width:`158px`,height:`20px`,border:c?.value?`1px solid var(--color-gray-300)`:`2px solid var(--color-error)`,backgroundColor:c?.value?void 0:`var(--color-error-light, rgba(211, 47, 47, 0.15))`,borderRadius:`4px`},isNewLayout:!0}),(c?.value===m_.OTHER||o)&&(0,K.jsx)(qe,{defaultValue:c?.value===m_.OTHER?``:c?.value,onBlur:e=>C(e.target.value),placeholder:U(`detailed_view.write_here`),className:$2(`task_comment--textarea`,`task_comment--textarea-text`,c?.value===m_.OTHER||!c?.value?`invalid_option`:``)})]})]})}t4.propTypes={taskData:V.default.shape({id:V.default.string,title:V.default.string,note:V.default.string,icon:V.default.string,isComplete:V.default.bool,notePictureIdentifiers:V.default.arrayOf(V.default.string)}
2805).isRequired,feedback:V.default.oneOfType([V.default.string,V.default.bool]),isPhotoFeedbackTask:V.default.bool,isPhotoSlide:V.default.bool,showThumbs:V.default.bool,showCommentOptions:V.default.bool,showTextCommentOption:V.default.bool,disableSubmit:V.default.bool,tasksFeedbackComment:V.default.shape({value:V.default.string}),previousComment:V.default.string,previousFeedbackDirection:V.default.oneOf([`up`,`down`]),extendedLayout:V.default.bool,currentSlide:V.default.shape({id:V.default.string,tasks:V.default.array}).isRequired,aiSuggestion:V.default.shape({thumbs:V.default.string,confidence:V.default.number,aiComment:V.default.string}),showAiRing:V.default.bool,showAiBadge:V.default.bool,dashboardAdminMode:V.default.bool,aiCoversRemaining:V.default.bool,currentVerificationPhotoDate:V.default.string,jobTimeZone:V.default.string,onThumbsUp:V.default.func.isRequired,onThumbsDown:V.default.func.isRequired,onSubmit:V.default.func,onCommentChange:V.default.func,onImageClick:V.default.func};var n4=_i.default.bind(H2);function r4({comments:e=null,commentsBoxRef:t=null,currentUserId:n,timeZone:r,commentMessage:i=``,isTextareaVisible:a=!1,sendingMessage:o=!1,currentEditingCommentId:s=null,onCommentChange:c,onSend:l,onEdit:u,onDelete:d,onCancelEditing:f}){return(0,B.useEffect)(()=>{t?.current&&setTimeout(()=>{let e=t.current;e&&(e.scrollTop=e.scrollHeight)},50)},[e,t]),(0,K.jsxs)(`div`,{className:n4(`textarea-ct`),children:[(0,K.jsx)(`h4`,{children:U(`detailed_view.comment`)}),(0,K.jsx)(`div`,{ref:t,className:n4(`comments-list`),children:e&&e.map(e=>(0,K.jsx)(Y2,{comment:e,sentByUser:e.sender.userId===n,timeZone:r,onEdit:u,onDelete:d},e.id))}),a&&(0,K.jsx)(qe,{value:i,placeholder:U(`detailed_view.write_here`),className:n4(`textarea`),onChange:c}),(0,K.jsxs)(`div`,{className:n4(`button-ct`),children:[s&&(0,K.jsx)(`div`,{className:n4(`inline-bt`),children:(0,K.jsx)(q,{onClick:f,children:U(`detailed_view.cancel_editing`)})}),(0,K.jsx)(`div`,{className:n4(`inline-bt`),children:a&&(0,K.jsx)(q,{isLoading:o,styleOverwrite:{backgroundColor:`var(--color-primary)`,color:`var(--color-white)`},disabled:!i?.trim(),onClick:l,children:U(s?`detailed_view.edit`:`detailed_view.send`)})})]})]})}r4.propTypes={comments:V.default.arrayOf(V.default.shape({id:V.default.string,sender:V.default.shape({userId:V.default.string})})),commentsBoxRef:V.default.object,currentUserId:V.default.string.isRequired,timeZone:V.default.string.isRequired,commentMessage:V.default.string,isTextareaVisible:V.default.bool,sendingMessage:V.default.bool,currentEditingCommentId:V.default.string,onCommentChange:V.default.func.isRequired,onSend:V.default.func.isRequired,onEdit:V.default.func.isRequired,onDelete:V.default.func.isRequired,onCancelEditing:V.default.func.isRequired};var UDe=_i.default.bind(H2);function i4({direction:e,isVisible:t,onClick:n}){return(0,K.jsx)(`div`,{role:`button`,tabIndex:t?0:-1,className:UDe(`control`,{visible:t}),onClick:n,onKeyDown:t=>{(e===`left`&&t.key===`ArrowLeft`||e===`right`&&t.key===`ArrowRight`)&&n()},"aria-label":`${e} navigation`,children:e===`left`?(0,K.jsx)(Y.IcLeftArrow,{}):(0,K.jsx)(Y.IcRightArrow,{})})}i4.propTypes={direction:V.default.oneOf([`left`,`right`]).isRequired,isVisible:V.default.bool.isRequired,onClick:V.default.func.isRequired};function a4(e,t){if(!t)return{};let n=`|${t}`;return Object.entries(e).reduce((e,[t,r])=>t.endsWith(n)?{...e,[t]:r}:e,{})}function WDe(e,t){let n=a4(e,t);return Object.keys(n).length?!Object.values(n).some(e=>e.value===`down`):null}function GDe({currentSlide:e,slidesFeedback:t,tasksFeedbacks:n,aiFeedbacks:r,dashboardAdminMode:i}){let a=t[e.id],o=a4(n.thumbs,e.id),s=WDe(n.thumbs,e.id),c;s===null?a&&(c=a.photo.isPositive):c=s;let l=Object.keys(o).length===e.tasks.length,u=Object.keys(o).some(e=>o[e].value===`down`&&(!n.comments[e]||n.comments[e]?.value===m_.OTHER)),d=i&&!l&&e.tasks.length>0&&e.tasks.every(t=>{let i=`${t.id}|${e.id}`;if(n.thumbs[i])return!0;let a=r[i];return a&&(a.thumbs===`up`||a.aiComment)}),f;return f=l&&!u?s===a?.photo?.isPositive:!d,{feedback:c,derivedFeedback:s,disableSubmit:f,aiCoversRemaining:d}}function KDe({taskData:e,currentSlide:t,tasksFeedbacks:n,previousTasksFeedbacks:r,aiFeedbacks:i,dashboardAdminMode:a,disabledTasksFeedback:o}){let s=`${e.id}|${t.id}`,c=n.thumbs[s]?.value||null,l=n.thumbs?.[s]&&n.thumbs?.[s]?.value===`down`,u=n.comments[s]||null,d=!1;u&&(d=!Object.values(Z2).some(e=>e.value===u.value));let f=a?i[s]:null,p=!!n.thumbs[s],m=f&&!p,h=f&&p,g=!o&&t.isVerificationRequired,_=r?.thumbs[s]||null,v=r?.comments[s]||null,y=null,b=null;if(!c){if(_?.value&&(b=_.value),v?.value){let e=Z2.find(e=>e.value===v.value);y=e?e.title:v.value}else if(u?.value){let e=Z2.find(e=>e.value===u.value);y=e?e.title:u.value}}return{uniqueTaskId:s,feedback:c,showCommentOptions:l,tasksFeedbackComment:u,showTextCommentOption:d,previousComment:y,previousFeedbackDirection:b,aiSuggestion:f,showAiRing:m,showAiBadge:h,showThumbs:g}}var qDe={localId:null,data:{isPlaceholder:!0},slidesFeedback:{},tasksFeedbacks:{thumbs:{},comments:{}},previousTasksFeedbacks:{thumbs:{},comments:{}},aiFeedbacks:{},didLoadSlidesFeedback:!1,slidesComments:{}};function JDe(e,t){switch(t.type){case`SET_LOCAL_ID`:return{...e,localId:t.localId};case`SET_DATA`:return{...e,data:t.data,didLoadSlidesFeedback:!1};case`SET_DID_LOAD`:return{...e,didLoadSlidesFeedback:t.value};case`RESET_FOR_FETCH`:return{...e,didLoadSlidesFeedback:!1,aiFeedbacks:{},previousTasksFeedbacks:{thumbs:{},comments:{}}};case`UPDATE_PREVIOUS_TASK_FEEDBACK`:{let{ofType:n,uniqueTaskId:r,value:i,payload:a}=t,o={...e.previousTasksFeedbacks[n]},s=o[r]||{value:null,payload:{}};return o[r]={value:i,payload:a===void 0?s.payload:a},{...e,previousTasksFeedbacks:{...e.previousTasksFeedbacks,[n]:o}}}case`SET_AI_FEEDBACKS`:return{...e,aiFeedbacks:t.aiFeedbacks};case`UPDATE_SLIDE_FEEDBACK`:{let n=e.slidesFeedback[t.slideId]||{photo:{isPositive:null},payload:{}},r={photo:{isPositive:t.feedback},payload:t.payload===void 0?n.payload:t.payload};return{...e,slidesFeedback:{...e.slidesFeedback,[t.slideId]:r}}}case`UPDATE_TASK_FEEDBACK`:{let{ofType:n,uniqueTaskId:r,value:i,payload:a}=t,o={...e.tasksFeedbacks[n]};if(!i&&n===`thumbs`)delete o[r];else{let e=o[r]||{value:null,payload:{}};o[r]={value:i,payload:a===void 0?e.payload:a}}return{...e,tasksFeedbacks:{...e.tasksFeedbacks,[n]:o}}}case`UPDATE_SLIDE_COMMENT`:{let n=[...e.slidesComments[t.slideId]||[]],r=n.findIndex(e=>e.id===t.comment.id);return r<0?n.push(t.comment):n[r]=t.comment,{...e,slidesComments:{...e.slidesComments,[t.slideId]:n}}}case`DELETE_SLIDE_COMMENT`:{let n=[...e.slidesComments[t.slideId]||[]],r=n.findIndex(e=>e.id===t.commentId);return r>=0&&n.splice(r,1),{...e,slidesComments:{...e.slidesComments,[t.slideId]:n}}}case`ADD_VERIFICATION_PHOTO`:{let{newPhotos:n}=t,r=n.verificationPhoto.stepId,i=!1,a=(e.data.checklists||[]).map(e=>{if(e.id!==n.checklistId)return e;let t=[...e.verificationPhotos],a=t.findIndex(e=>e.stepId===r);return a===-1?t.unshift(n.verificationPhoto):(i=!0,t[a]=n.verificationPhoto),{...e,verificationPhotos:t}});if(!i)return{...e,data:{...e.data,checklists:a}};let{[r]:o,...s}=e.slidesFeedback,c={...e.previousTasksFeedbacks.thumbs},l={...e.previousTasksFeedbacks.comments},u=`|${r}`;
2805Object.entries(e.tasksFeedbacks.thumbs).forEach(([e,t])=>{e.endsWith(u)&&(c[e]=t)}),Object.entries(e.tasksFeedbacks.comments).forEach(([e,t])=>{e.endsWith(u)&&(l[e]=t)});let d=Object.fromEntries(Object.entries(e.tasksFeedbacks.thumbs).filter(([e,t])=>!(e.endsWith(u)&&t?.value===`down`))),f=Object.fromEntries(Object.entries(e.tasksFeedbacks.comments).filter(([e])=>!e.endsWith(u)));return{...e,data:{...e.data,checklists:a},slidesFeedback:s,tasksFeedbacks:{thumbs:d,comments:f},previousTasksFeedbacks:{thumbs:c,comments:l}}}default:return e}}var o4=_i.default.bind(AZ),s4=({tasks:e,image:t,imageWidth:n,imageHeight:r})=>{let i=(e,t)=>({transform:`translate3d(${e}px, ${t}px, 0)`}),a=(e,t,n,r,i)=>{let a=e*n,o=t*r,s={transform:`translate3d(${a}px, ${o}px, 0)`};return i?{y:o,x:a,transform:s}:s};return(0,K.jsxs)(`div`,{className:o4(`checklist__image`,`modal-container`,`view-only`),children:[(0,K.jsx)(`div`,{className:o4(`checklist__image-actual`),style:(e=>({backgroundImage:`url(${iu(e,nu.LARGE)})`}))(t)}),(e=>(0,H.default)(e,(e,t)=>{if(!e.centerX&&!e.centerY)return null;let o=Eu(e.icon),{x:s,y:c}=a(n,r,e.centerX,e.centerY,!0),l=Du({left:0,right:n,top:0,bottom:r},s,c);return(0,K.jsx)(`div`,{style:i(s,c),className:o4(`checklist__pin`),children:(0,K.jsx)(RQ,{positioned:!0,icon:Y[o.icon],position:l.position})},t)}))(e)]})};s4.propTypes={tasks:V.default.arrayOf(V.default.shape({})).isRequired,image:V.default.string.isRequired,imageWidth:V.default.number.isRequired,imageHeight:V.default.number.isRequired};var c4=F` 2806 subscription listenForVerificationPhotos($jobSnapshotId: ID!) { 2807 listenForVerificationPhotos(jobSnapshotId: $jobSnapshotId) { 2808 checklistId 2809 type 2810 verificationPhoto { 2811 ...verificationPhotoFields 2812 } 2813 } 2814 } 2815 ${aK} 2816`,YDe=F` 2817 query getVerificationPhotoFeedbacks($jobSnapshotId: ID) { 2818 getVerificationPhotoFeedbacks(jobSnapshotId: $jobSnapshotId) { 2819 error 2820 feedbacks { 2821 id 2822 jobSnapshotId 2823 stepId 2824 pictureUrl 2825 thumbs 2826 comment 2827 type 2828 viewed 2829 viewedBy 2830 sender { 2831 userId 2832 firstName 2833 lastName 2834 } 2835 propertyTimeZone 2836 updatedAt 2837 } 2838 } 2839 } 2840`,XDe=e=>In(t=>{let n=QF.subscribe({query:c4,variables:e,fetchPolicy:`no-cache`}).subscribe({next(e){R.default.info(`[createVerificationPhotosSubscriptionChannel] client payload from listenForVerificationPhotos`,e);let{checklistId:n,verificationPhoto:r,type:i}=e.data.listenForVerificationPhotos;t({checklistId:n,verificationPhoto:r,type:i})},error(e){R.default.error(`[createVerificationPhotosSubscriptionChannel] subscription error:`,e)}});return()=>{n.unsubscribe()}}),l4=async(e,t,n,r,i)=>{try{let a={jobSnapshotId:e,[r]:i};t&&(a.stepId=t),n&&(a.pictureUrl=n);let o=(await QF.mutate({mutation:RX,variables:a,fetchPolicy:`no-cache`})).data?.postVerificationPhotoFeedback?.payload;return zX(o)}catch(e){throw R.default.error(`postTaskFeedback api ${e}`),e}},u4=async e=>{try{let t=(await QF.query({query:YDe,variables:{jobSnapshotId:e},fetchPolicy:`no-cache`})).data?.getVerificationPhotoFeedbacks?.feedbacks;if(t?.error)throw t;return t.map(e=>zX(e))}catch(e){return R.default.error(`[getVerificationPhotoFeedbacks] ${e}`),e.apiError=!0,e}};function ZDe(){let[e,t]=(0,B.useState)(null),[n,r]=(0,B.useState)(null),[i,a]=(0,B.useState)(()=>!!vi.get(`magnifyImageEnabled`)),[o,s]=(0,B.useState)(0);return{popUpImage:e,popUpImageInfo:n,magnifyEnabled:i,imageRotation:o,openPopUp:(e,n)=>{od(`feedback_lightbox`,`OPEN`,{component:`FeedbackTab`}),t(iu(e,nu.ORIGINAL,`jpg`,n)),r({filename:e})},closePopUp:()=>{od(`feedback_lightbox`,`CLOSE`,{component:`FeedbackTab`}),t(null),r(null)},toggleMagnify:()=>{a(e=>(vi.set(`magnifyImageEnabled`,!e),!e))},rotateImage:e=>{s(t=>{let n=e?t+90:t-90;return n>=360&&(n-=360),n<0&&(n+=360),n})},resetRotation:()=>{s(0)},getDownloadUrl:(e,t)=>e?iu(e,`t_download`,`jpg`,t):``}}function QDe({jobId:e,isVisible:t,sharedData:n,propertiesEligibleForRI:r,adminDetails:i,dashboardAdminMode:a}){let[o,s]=(0,B.useState)(``),[c,l]=(0,B.useState)(!1),[u,d]=(0,B.useState)([]),[f,p]=(0,B.useState)(!1),[m,h]=(0,B.useState)(!1),[g,_]=(0,B.useState)(``);return(0,B.useEffect)(()=>
2840{l(!1),s(``)},[e]),(0,B.useEffect)(()=>{if(!a||c||!t||!e||!n||!(n.isRiRetailJob||r.includes(n.property?.id)))return;let i=e,o=!1;return(async()=>{try{let e=await GJ(i);if(o)return;s(e.riJobStatus),d(e.inspectors?.map(({id:e})=>e))}catch(e){if(o)return;R.default.error(`fetchRIJobStatus`,e),s(p_.PENDING),p(!0),_(e.message||`An error occurred while fetching RI status`)}finally{o||l(!0)}})(),()=>{o=!0}},[e,a,t,n,c,r]),{riJobStatus:o,isRIStatusLoaded:c,riInspectorsIds:u,showRIFailedError:f,showRISuccessNotice:m,riErrorMessage:g,setShowRIFailedError:p,setShowRISuccessNotice:h,handleCompleteRI:async e=>{try{await WJ(e,{inspectorName:i.adminUsername,inspectorId:i.adminUserId}),s(p_.COMPLETED),h(!0)}catch(e){s(p_.PENDING),p(!0),_(e.message||`An error occurred while completing RI`),R.default.error(`completeRIRejected`,e)}},handleRecordRI:async e=>{try{let t={inspectorName:i.adminUsername,inspectorId:i.adminUserId};if(i.adminUserId==null)throw Error(`adminUserId is null`);await I_e(e,t),d(e=>Array.isArray(e)?[...e,i.adminUserId]:[i.adminUserId]),h(!0)}catch(e){p(!0),_(e.message||`An error occurred while recording RI`),R.default.error(`completeRIRejected`,e)}}}}var d4=[{id:`toInspect`,name:U(`detailed_view.to_inspect`)},{id:`empty`,name:U(`detailed_view.empty`)},{id:`thumbsDown`,name:U(`detailed_view.thumbs_down`)},{id:`thumbsUp`,name:U(`detailed_view.thumbs_up`)}];function f4(e,t,n=!1){if(e&&t){let r=t.flatMap(e=>e.verificationPhotos).find(t=>t.stepId===e);if(r)return n?{image:r.pictureIdentifier,date:r.date}:r.pictureIdentifier}return null}function p4(e,t){if(e&&t){let n=t.flatMap(e=>e.verificationPhotos).find(t=>t.pictureIdentifier===e);if(n)return n.stepId}return null}function m4(e,t,n){return e.filter(e=>f4(e.id,t)&&(!n[e.id]||n[e.id].photo.isPositive===null))}function h4(e,t){return e.filter(e=>!e.isVerificationRequired||!f4(e.id,t))}function g4(e,t){return e.filter(e=>t[e.id]&&t[e.id].photo.isPositive===!1)}function _4(e,t){return e.filter(e=>t[e.id]&&t[e.id].photo.isPositive===!0)}function $De({slidesFeedback:e,didLoadSlidesFeedback:t,dataRef:n}){let[r,i]=(0,B.useState)(d4[0].id),[a,o]=(0,B.useState)(null),[s,c]=(0,B.useState)(0),l=(0,B.useRef)(null),u=(0,B.useRef)(s),d=(0,B.useRef)(r),f=(0,B.useRef)(null),p=(0,B.useRef)(e);l.current=a,u.current=s,d.current=r,p.current=e;let m=e=>{let t=x2(e),n=e?e.checklists:[],r=p.current;if(t)switch(d.current){case`toInspect`:t=m4(t,n,r);break;case`empty`:t=h4(t,n);break;case`thumbsDown`:t=g4(t,r);break;case`thumbsUp`:t=_4(t,r);break;default:}else t=e?[]:HDe;return t},h=(e,t)=>{o(e),c(t)},g=()=>{let e=n.current;if(!e.isPlaceholder){let t=m(new Bs(e))[0];h(t||null,t?0:null)}},_=()=>{clearTimeout(f.current),f.current=setTimeout(()=>{g()},50)},v=()=>{clearTimeout(f.current),f.current=setTimeout(()=>{let e=n.current;if(!e.isPlaceholder){let t=m(new Bs(e));if(!t.length){h(null,null);return}let n=Math.min(u.current,t.length-1);h(t[n],n)}},50)},y=(e,t)=>{let n=l.current;if(!n)return;let r=e.findIndex(e=>e.id===n.id)+t,i=e[r];i&&h(i,r)};return{currentFilter:r,currentFilterRef:d,currentSlide:a,currentSlideRef:l,currentSlideIndex:s,getFilteredSlides:m,isCurrentSlideInFilter:e=>{let t=l.current;return t?m(e).some(e=>e.id===t.id):!1},showSlide:h,showFirstSlide:g,showFirstSlideDelayed:_,showNextAfterSubmitDelayed:v,showPreviousSlide:e=>y(e,-1),showNextSlide:e=>y(e,1),getFilterCount:(e,n)=>{let r=x2(e),i=e?e.checklists:[],a=p.current;if(e&&!e.isPlaceholder&&t)switch(n){case`toInspect`:return m4(r,i,a).length;case`empty`:return h4(r,i).length;case`thumbsDown`:return g4(r,a).length;case`thumbsUp`:return _4(r,a).length;default:}return`-`},setCurrentFilter:(e,{navigate:t=!0}={})=>{i(e),d.current=e,t&&_()},getMissingFeedback:e=>{let t=0;if(e&&e.totalVerificationPhotosSent>0){let n=x2(e),r=p.current;t=e.totalVerificationPhotosSent-(g4(n,r).length+_4(n,r).length)}return!!t}}}var v4=_i.default.bind(H2);function y4({data:e,sharedData:t=null,isVisible:n,notificationsManagerInstance:r=null,extendedLayout:i,refreshKey:a=void 0}){let o=j(EC),s=j(pB),c=j(cB),l=j(sB),u=j(fB($a.FEATURE_FLAG_REMOTE_INSPECTION)),d=xe(),[f,p]=(0,B.useReducer)(JDe,qDe),{localId:m,data:h,slidesFeedback:g,tasksFeedbacks:_,previousTasksFeedbacks:v,aiFeedbacks:y,didLoadSlidesFeedback:b,slidesComments:x}=f,S=(0,B.useRef)(null),C=(0,B.useRef)(h),w=(0,B.useRef)(_),T=(0,B.useRef)(g),E=(0,B.useRef)(null),D=(0,B.useRef)(null),ee=(0,B.useRef)(null),te=(0,B.useRef)(!1);C.current=h,w.current=_,T.current=g,S.current=m;let ne=ZDe(),re=QDe({jobId:e.id,isVisible:n,sharedData:t,propertiesEligibleForRI:s,adminDetail
2840s:c,dashboardAdminMode:l}),O=$De({slidesFeedback:g,didLoadSlidesFeedback:b,dataRef:C}),[ie,ae]=(0,B.useState)({message:``,editingId:null}),[oe,se]=(0,B.useState)(!1),[ce,le]=(0,B.useState)({submittedComment:!1,submitCommentError:!1,submitFeedbackError:!1,fetchFeedbackError:!1,deleteCommentError:!1}),ue=(e,t)=>{le(n=>({...n,[e]:t}))},fe=()=>{setTimeout(()=>{let e=E.current;e&&(e.scrollTop=e.scrollHeight)},50)},pe=(e,t,n,r,i)=>{let a=S.current,o=O.currentSlideRef.current,s=w.current,c=o.id,l=!1,u=``,d=t;e===`thumbs`&&(d=t?`up`:`down`);let f=`add`,m={jobSnapshotId:a,stepId:c,taskId:n,pictureUrl:r};m[e]={action:f,value:d},e===`thumbs`&&(m.value=i);let h=`${n}|${c}`;s[e][h]&&s[e][h].value&&(u=s[e][h].value,l=e===`thumbs`&&u===d||e===`comments`&&t===``,f=l?`remove`:`edit`,m={jobSnapshotId:a,...f===`edit`?{pictureUrl:r}:{}},m[e]={action:f,id:s[e][h].payload._id,value:d});let g=l&&e===`thumbs`?null:d;p({type:`UPDATE_TASK_FEEDBACK`,ofType:e,uniqueTaskId:h,value:g}),vZ(m).then(t=>(t?p({type:`UPDATE_TASK_FEEDBACK`,ofType:e,uniqueTaskId:h,value:g,payload:{_id:t.id}}):(ue(`submitFeedbackError`,!0),p({type:`UPDATE_TASK_FEEDBACK`,ofType:e,uniqueTaskId:h,value:u})),!0)).catch(()=>{ue(`submitFeedbackError`,!0),p({type:`UPDATE_TASK_FEEDBACK`,ofType:e,uniqueTaskId:h,value:u}),R.default.error(`Not possible to submit new feedback`)})},me=(e,t,n)=>{let i=S.current,a=O.currentSlideRef.current,o=T.current,s=a.id,c=`add`,l=e?`up`:`down`,u={action:c,value:l},f=!1,m=null;if(o[s]){let t=o[s].photo.isPositive;if(t!==null){m=t,f=t===e,c=f?`remove`:`edit`;let{payload:n}=o[s];if(!n){ue(`submitFeedbackError`,!0);return}u={action:c,value:l,id:n.id}}}p({type:`UPDATE_SLIDE_FEEDBACK`,slideId:s,feedback:f?null:e}),l4(n.jobId,c===`add`?s:null,c===`remove`?null:t,`thumbs`,u).then(t=>(p({type:`UPDATE_SLIDE_FEEDBACK`,slideId:s,feedback:f?null:e,payload:t}),O.getFilterCount(n,`toInspect`)===0&&r?.readJobVerificationPhotosNotifications(i),O.showNextAfterSubmitDelayed(),d(uY(!0)),!0)).catch(()=>{ue(`submitFeedbackError`,!0),p({type:`UPDATE_SLIDE_FEEDBACK`,slideId:s,feedback:m}),R.default.error(`Not possible to submit new feedback`)})},he=(e,t,n)=>{let r=O.currentSlideRef.current;if(!r)return;let i=y[`${e.id}|${r.id}`];i&&i.thumbs===t&&i.aiComment&&pe(`comments`,i.aiComment,e.id,n)},ge=(e,t,n)=>{nd(`feedback_thumbs_up`,{component:`FeedbackTab`,taskId:e.id}),e.id===`PHOTO_FEEDBACK`?me(!0,t,n):(pe(`thumbs`,!0,e.id,t,e?.value),he(e,`up`,t))},_e=(e,t,n)=>{nd(`feedback_thumbs_down`,{component:`FeedbackTab`,taskId:e.id}),e.id===`PHOTO_FEEDBACK`?me(!1,t,n):(pe(`thumbs`,!1,e.id,t,e?.value),he(e,`down`,t))},ve=e=>{nd(`feedback_confirm_ai`,{component:`FeedbackTab`});let t=O.currentSlideRef.current,n=S.current;if(!t?.tasks)return Promise.resolve();let r=t.id,i=[];return t.tasks.forEach(t=>{let a=`${t.id}|${r}`,o=y[a];if(!o||w.current.thumbs[a])return;let s=o.thumbs===`up`,c=s?`up`:`down`;p({type:`UPDATE_TASK_FEEDBACK`,ofType:`thumbs`,uniqueTaskId:a,value:c}),i.push(vZ({jobSnapshotId:n,stepId:r,taskId:t.id,pictureUrl:e,value:t?.value,thumbs:{action:`add`,value:c}}).then(e=>(e&&p({type:`UPDATE_TASK_FEEDBACK`,ofType:`thumbs`,uniqueTaskId:a,value:c,payload:{_id:e.id}}),!0))),!s&&o.aiComment&&(p({type:`UPDATE_TASK_FEEDBACK`,ofType:`comments`,uniqueTaskId:a,value:o.aiComment}),i.push(vZ({jobSnapshotId:n,stepId:r,taskId:t.id,pictureUrl:e,comments:{action:`add`,value:o.aiComment}}).then(e=>(e&&p({type:`UPDATE_TASK_FEEDBACK`,ofType:`comments`,uniqueTaskId:a,value:o.aiComment,payload:{_id:e.id}}),!0))))}),Promise.all(i)},ye=({aiCoversRemaining:e,feedback:t,derivedFeedback:n,currentSlide:r,aiFeedbacks:i,verificationPhotoId:a,jobData:o})=>{if(!e){me(t,a,o);return}let s=r.tasks.some(e=>{let t=`${e.id}|${r.id}`;if(w.current.thumbs[t])return!1;let n=i[t];return n&&n.thumbs===`down`}),c=n===!1?!1:!s;ve(a).then(()=>(c===T.current[r.id]?.photo?.isPositive?(O.showNextAfterSubmitDelayed(),d(uY(!0))):me(c,a,o),!0)).catch(()=>R.default.error(`Not possible to confirm all AI feedback`))},be=(e,t)=>{ae({editingId:e,message:t})},Se=()=>{ae({editingId:null,message:``})},Ce=(e,t)=>{let n=O.currentSlideRef.current;if(oe||!ie.message)return;nd(`feedback_comment_submit`,{component:`FeedbackTab`,isEdit:!!ie.editingId}),se(!0);let r=ie.editingId?`edit`:`add`,i={action:r,value:ie.message};ie.editingId&&x[n.id]?.find(e=>e.id===ie.editingId)&&(i.id=ie.editingId),l4(e,r===`add`?n.id:null,t,`comment`,i).then(e=>(se(!1),ue(`submittedComment`,!ie.editingId),ae({editingId:null,message:``}),p({type:`UPDATE_SLIDE_COMMENT`,slideId:n.id,comment:e}),fe(),!0)).catch(()=>{se(!1),ue(`submitCommentError`,!0),R.default.error(`Not possible to submit new comment`)})},we=(e,t)=>{let n=O.currentSlideRef.current;
2840se(!0),l4(e,null,null,`comment`,{action:`remove`,id:t}).then(()=>(se(!1),p({type:`DELETE_SLIDE_COMMENT`,slideId:n.id,commentId:t}),!0)).catch(e=>{se(!1),ue(`deleteCommentError`,!0),R.default.error(`Not possible to delete comment`,e)})},Te=(e,t,n)=>{e&&pe(`comments`,e,t,n)},Ee=e=>{let t=(e||[]).flatMap(({verificationPhotos:e=[]})=>e).reduce((e,t)=>t?.pictureIdentifier?[...e,t.pictureIdentifier]:e,[]);window.usePreloadImagesData=[],t.forEach(e=>{let t=new Image;t.src=iu(e,``,``),window.usePreloadImagesData.push(t)})},De=async e=>{let t=S.current,n={};(e||[]).forEach(e=>{(e.verificationPhotos||[]).forEach(e=>{e.stepId&&e.pictureIdentifier&&(n[e.stepId]=e.pictureIdentifier)})});try{let e=await Sbe(t,l?{aiInspected:!0}:{});if(e){let t={},r={},i={};e.forEach(e=>{if(e.source===`ai`){t[`${e.taskId}|${e.stepId}`]={thumbs:e.thumbs,confidence:e.confidence,aiComment:e.aiComment,_id:e._id,source:e.source};return}let a=n[e.stepId],o=a&&e.pictureUrl!==a,s=`${e.taskId}|${e.stepId}`,c=e.type===`thumbs`;o?(c?r[s]={value:e.thumbs,payload:e}:i[s]={value:e.comment,payload:e},c&&e.thumbs!==`down`&&p({type:`UPDATE_TASK_FEEDBACK`,ofType:`thumbs`,uniqueTaskId:s,value:e.thumbs,payload:e})):p({type:`UPDATE_TASK_FEEDBACK`,ofType:c?`thumbs`:`comments`,uniqueTaskId:s,value:c?e.thumbs:e.comment,payload:e})}),Object.entries(r).forEach(([e,t])=>{p({type:`UPDATE_PREVIOUS_TASK_FEEDBACK`,ofType:`thumbs`,uniqueTaskId:e,value:t.value,payload:t.payload})}),Object.entries(i).forEach(([e,t])=>{p({type:`UPDATE_PREVIOUS_TASK_FEEDBACK`,ofType:`comments`,uniqueTaskId:e,value:t.value,payload:t.payload})}),p({type:`SET_AI_FEEDBACKS`,aiFeedbacks:t})}}catch(e){R.default.error(`fetchSlideTasksFeedback error`,e),ue(`fetchFeedbackError`,!0)}},Oe=async(e,t)=>{try{let n=await u4(e);n.filter(e=>e.type===`thumbs`).forEach(e=>{if(e&&(e.thumbs===`up`||e.thumbs===`down`)){let n=p4(e.pictureUrl,t);n&&p({type:`UPDATE_SLIDE_FEEDBACK`,slideId:n,feedback:e.thumbs===`up`,payload:e})}}),n.filter(e=>e.type===`comment`).forEach(e=>{let n=p4(e.pictureUrl,t);n&&p({type:`UPDATE_SLIDE_COMMENT`,slideId:n,comment:e})})}catch{ue(`fetchFeedbackError`,!0)}},ke=async e=>{if(p({type:`RESET_FOR_FETCH`}),!e.isPlaceholder){let t=new Bs(e);t&&(await De(t.checklists),await Oe(t.jobId,t.checklists),Ee(t.checklists))}await new Promise(e=>{setTimeout(()=>{p({type:`SET_DID_LOAD`,value:!0}),e()},50)})},Ae=e=>{if((C.current.checklists||[]).filter(t=>e.checklistId===t.id).some((t={})=>(0,fX.default)(t.verificationPhotos,{pictureIdentifier:e.verificationPhoto.pictureIdentifier})>-1))return;let t=Array.isArray(e)?e:[e];te.current=!0,t.forEach(e=>p({type:`ADD_VERIFICATION_PHOTO`,newPhotos:e})),d(uY(!0))},je=e=>{D.current&&D.current.unsubscribe(),D.current=QF.subscribe({query:c4,variables:{jobSnapshotId:e},fetchPolicy:`no-cache`}).subscribe({next(e){e.data&&(clearTimeout(ee.current),ee.current=setTimeout(()=>{Ae(e.data.listenForVerificationPhotos)},100))}})};(0,B.useEffect)(()=>{let r=S.current,i=C.current;return n&&e.id&&(e.id!==r||i.isPlaceholder&&t)&&(p({type:`SET_LOCAL_ID`,localId:e.id}),je(e.id),t&&p({type:`SET_DATA`,data:t})),()=>{window.usePreloadImagesData=[],clearTimeout(ee.current),D.current&&D.current.unsubscribe()}},[]),(0,B.useEffect)(()=>{let e=e=>{if(e.target?.localName===`textarea`)return;let t=C.current,n=O.currentSlideRef.current;if(!t?.isPlaceholder&&b&&n!==null){let n=new Bs(t),r=O.getFilteredSlides(n);switch(e.code){case`ArrowRight`:e.preventDefault(),O.currentSlideIndex<r.length-1&&O.showNextSlide(r);break;case`ArrowLeft`:e.preventDefault(),O.currentSlideIndex>0&&O.showPreviousSlide(r);break;case`KeyM`:i&&(e.preventDefault(),ne.toggleMagnify());break;case`KeyR`:i&&(e.preventDefault(),ne.rotateImage(!0));break;case`KeyL`:i&&(e.preventDefault(),ne.rotateImage(!1));break;default:}}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[u,b,i,O,ne]);let Me=(0,B.useRef)(a),Ne=(0,B.useRef)(t);(0,B.useEffect)(()=>{a!==void 0&&a!==Me.current&&(Me.current=a);let r=t!==Ne.current,i=S.current,o=C.current;n&&e.id&&(e.id!==i||o.isPlaceholder&&t||r)&&(Ne.current=t,p({type:`SET_LOCAL_ID`,localId:e.id}),je(e.id),t&&p({type:`SET_DATA`,data:t}))},[e.id,a,n,t]);let Pe=(0,B.useRef)(null);(0,B.useEffect)(()=>
2840{if(!h.isPlaceholder&&h!==Pe.current){if(Pe.current=h,te.current){te.current=!1;return}ke(h).then(()=>{if(!O.currentSlideRef.current)O.showFirstSlideDelayed();else{let e=new Bs(h);O.isCurrentSlideInFilter(e)||O.setCurrentFilter(`toInspect`,{navigate:!1})}}).catch(()=>{})}},[h]);let Fe;h.isPlaceholder||(Fe=new Bs(h));let{currentSlide:Ie,currentSlideIndex:Le}=O,Re=f4(Ie===null?void 0:Ie.id,h.isPlaceholder?null:Fe.checklists,!0),ze=Re?Re.image:null,Be=Re?Re.date:null,Ve=O.getFilteredSlides(Fe),He=!Ie||!x[Ie.id]||!x[Ie.id].length||ie.editingId,Ue=t?.property?.timeZone||z.default.tz.guess(),We=Ie?.isVerificationRequired?GDe({currentSlide:Ie,slidesFeedback:g,tasksFeedbacks:_,aiFeedbacks:y,dashboardAdminMode:l}):null,Ge=!1;Fe&&(Ge=s.includes(Fe.propertyId));let Ke=e=>{ae(t=>({...t,message:e.target.value}))},qe=({image:e,extendedLayout:t,isVerificationPhotoRequired:n,jobData:r,currentVerificationPhotoDate:i})=>(0,K.jsx)(q2,{image:e,extendedLayout:t,isVerificationPhotoRequired:n,magnifyEnabled:ne.magnifyEnabled,imageRotation:ne.imageRotation,onImageClick:()=>ne.openPopUp(e,(0,z.default)(i).tz(r.getTimeZone()).format(`YYYY-MM-DD HH:mm:ss`))});return(0,K.jsxs)(`div`,{className:v4(`view`,{extended:i}),children:[(0,K.jsxs)(`div`,{className:i&&l&&Fe?.totalVerificationPhotosSent&&(Ge||Fe?.isRiRetailJob)?v4(`feedbackHeader__div`):``,children:[Fe?.totalVerificationPhotosSent&&l&&(Ge||Fe?.isRiRetailJob)&&(0,K.jsx)(K2,{riJobStatus:re.riJobStatus,isRIStatusLoaded:re.isRIStatusLoaded,riInspectorsIds:re.riInspectorsIds,adminUserId:c?.adminUserId,hasMissingFeedback:O.getMissingFeedback(Fe),isPropertyEligibleForRI:Ge,onRecordRI:()=>re.handleRecordRI(Fe.jobId),onCompleteRI:()=>re.handleCompleteRI(Fe.jobId)}),(0,K.jsx)(U2,{filters:d4,currentFilter:O.currentFilter,onFilterChange:e=>{ad(e,e,{component:`FeedbackTab`}),O.setCurrentFilter(e)},getFilterCount:(e,t)=>O.getFilterCount(e,t),jobData:Fe})]}),b&&Ve.length>0&&(0,K.jsx)(W2,{slides:Ve,currentSlideIndex:Ie===null?null:Le,onSlideSelect:(e,t)=>O.showSlide(e,t)}),!b&&(0,K.jsx)(`div`,{className:v4(`empty-notice`),children:(0,K.jsx)(hf,{type:`primary`})}),b&&!Ve.length&&(0,K.jsx)(`p`,{className:v4(`empty-notice`),children:U(`detailed_view.no_slides_to_show_with_selected_filter`)}),b&&Ve.length>0&&Ie!==null&&(0,K.jsx)(`div`,{children:(0,K.jsx)(`div`,{className:v4(`preview`),children:(0,K.jsxs)(`div`,{className:v4(`images`),style:{display:i?`flex`:`inline-block`},children:[(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{className:v4(`preview__div`),children:[(0,K.jsx)(i4,{direction:`left`,isVisible:Le>0,onClick:()=>{nd(`feedback_photo_nav`,{component:`FeedbackTab`,direction:`previous`}),O.showPreviousSlide(O.getFilteredSlides(Fe)),ne.resetRotation()}}),(0,K.jsxs)(`div`,{className:v4(`preview_images__div`),children:[Ie.pictureIdentifier&&(0,K.jsx)(`div`,{className:v4(`image`,`reference`),onClick:()=>Ie.pictureIdentifier?ne.openPopUp(Ie.pictureIdentifier,(0,z.default)(Be).tz(Fe.getTimeZone()).format(`YYYY-MM-DD HH:mm:ss`)):void 0,children:(0,K.jsx)(s4,{image:Ie.pictureIdentifier,tasks:Ie.tasks,imageWidth:317,imageHeight:178})}),!i&&Ie.isVerificationRequired&&qe({image:ze,extendedLayout:i,isVerificationPhotoRequired:Ie?.isVerificationRequired,jobData:Fe,currentVerificationPhotoDate:Be})]}),(0,K.jsx)(i4,{direction:`right`,isVisible:Le<O.getFilteredSlides(Fe).length-1,onClick:()=>{nd(`feedback_photo_nav`,{component:`FeedbackTab`,direction:`next`}),O.showNextSlide(O.getFilteredSlides(Fe)),ne.resetRotation()}})]}),(0,K.jsxs)(`section`,{className:v4(`static-width`,{disabled:!ze&&Ie.isVerificationRequired}),children:[(0,K.jsx)(`h3`,{children:U(`detailed_view.feedback`)}),(0,K.jsxs)(`div`,{className:v4(`div_feedbacks`),children:[We&&(0,K.jsx)(t4,{taskData:Q2,feedback:We.feedback,isPhotoFeedbackTask:!0,showThumbs:!0,disableSubmit:We.disableSubmit,aiCoversRemaining:We.aiCoversRemaining,extendedLayout:i,currentSlide:Ie,dashboardAdminMode:l,currentVerificationPhotoDate:Be,jobTimeZone:Fe.getTimeZone(),onThumbsUp:()=>ge(Q2,ze,Fe),onThumbsDown:()=>_e(Q2,ze,Fe),onSubmit:()=>ye({aiCoversRemaining:We.aiCoversRemaining,feedback:We.feedback,derivedFeedback:We.derivedFeedback,currentSlide:Ie,aiFeedbacks:y,verificationPhotoId:ze,jobData:Fe}),onImageClick:(e,t)=>ne.openPopUp(e,t)},`PHOTO_FEEDBACK`),Ie.tasks&&Ie.tasks.map(t=>{let n=KDe({taskData:t,currentSlide:Ie,tasksFeedbacks:_,previousTasksFeedbacks:v,aiFeedbacks:y,dashboardAdminMode:l,disabledTasksFeedback:e.disabledTasksFeedback});return(0,K.jsx)(t4,{taskData:t,feedback:n.feedback,isPhotoSlide:Ie.pictureIdentifier!==null,showThumbs:n.showThumbs,showCommentOptions:n.showCommentOptions,showTextCommentOption:n.showTextCommentOption,tasksFeedbackComment:n.tasksFeedbackComment,previousComment:n.previousComment,previousFeedbackDirection:n.previousFeedbackDirection,extendedLayout:i,currentSlide:Ie,aiSuggestion:n.aiSuggestion,showAiRing:n.showAiRing,showAiBadge:n.showAiBadge,dashboardAdminMode:l,currentVerificationPhotoDate:Be,j
2840obTimeZone:Fe.getTimeZone(),onThumbsUp:()=>ge(t,ze,Fe),onThumbsDown:()=>_e(t,ze,Fe),onCommentChange:e=>Te(e,t.id,ze),onImageClick:(e,t)=>ne.openPopUp(e,t)},t.id)})]}),(0,K.jsx)(r4,{comments:x[Ie.id],commentsBoxRef:E,currentUserId:o,timeZone:Ue,commentMessage:ie.message,isTextareaVisible:He,sendingMessage:oe,currentEditingCommentId:ie.editingId,onCommentChange:Ke,onSend:()=>Ce(Fe.jobId,ze),onEdit:(e,t)=>be(e,t),onDelete:e=>we(Fe.jobId,e),onCancelEditing:Se})]})]}),i&&(0,K.jsxs)(`div`,{className:v4(`expended_layout__div`),children:[(0,K.jsx)(G2,{slideTitle:Ie.title,magnifyEnabled:ne.magnifyEnabled,onMagnifyToggle:ne.toggleMagnify,onRotateLeft:()=>ne.rotateImage(!1),onRotateRight:()=>ne.rotateImage(!0),downloadUrl:ne.getDownloadUrl(ze,(0,z.default)(Be).tz(Fe.getTimeZone()).format(`YYYY-MM-DD HH:mm:ss`)),downloadFilename:`${Fe.propertyData?.title}-${Le}`,isDownloadEnabled:Ie.isVerificationRequired&&!!ze,showMagnifyPaddingAdjustment:!u}),(0,K.jsxs)(`div`,{className:v4(`full-screen-controls`),children:[(0,K.jsx)(i4,{direction:`left`,isVisible:Le>0,onClick:()=>{O.showPreviousSlide(O.getFilteredSlides(Fe)),ne.resetRotation()}}),qe({image:ze,extendedLayout:i,isVerificationPhotoRequired:Ie?.isVerificationRequired,jobData:Fe,currentVerificationPhotoDate:Be}),(0,K.jsx)(i4,{direction:`right`,isVisible:Le<O.getFilteredSlides(Fe).length-1,onClick:()=>{O.showNextSlide(O.getFilteredSlides(Fe)),ne.resetRotation()}})]})]})]})})}),(0,K.jsx)(J2,{showSubmittedCommentNotice:ce.submittedComment,showSubmitCommentError:ce.submitCommentError,showSubmitFeedbackError:ce.submitFeedbackError,showFetchFeedbackDataError:ce.fetchFeedbackError,showDeleteCommentError:ce.deleteCommentError,showRIFailedError:re.showRIFailedError,showRISuccessNotice:re.showRISuccessNotice,riErrorMessage:re.riErrorMessage,onHideSubmittedCommentNotice:()=>ue(`submittedComment`,!1),onHideSubmitCommentError:()=>ue(`submitCommentError`,!1),onHideSubmitFeedbackError:()=>ue(`submitFeedbackError`,!1),onHideFetchFeedbackError:()=>ue(`fetchFeedbackError`,!1),onHideDeleteCommentError:()=>ue(`deleteCommentError`,!1),onHideRIFailedError:()=>re.setShowRIFailedError(!1),onHideRISuccessNotice:()=>re.setShowRISuccessNotice(!1)}),(0,K.jsx)(de,{open:!!ne.popUpImage,close:ne.closePopUp,slides:ne.popUpImage?[{src:ne.popUpImage,download:{filename:ne.popUpImageInfo?.filename||`image`}}]:[],plugins:[ut],carousel:{finite:!0},controller:{closeOnBackdropClick:!0},render:{buttonPrev:()=>null,buttonNext:()=>null}})]})}y4.propTypes={data:V.default.shape({}).isRequired,sharedData:V.default.shape({}),isVisible:V.default.bool.isRequired,notificationsManagerInstance:V.default.instanceOf(z2),notifications:V.default.shape({}),extendedLayout:V.default.bool.isRequired,refreshKey:V.default.number};var b4={display:`flex`,alignItems:`center`,gap:`14px`,padding:`16px 20px`,borderBottom:`1px solid var(--color-border)`},eOe={width:`44px`,height:`44px`,borderRadius:`50%`,backgroundColor:`var(--color-gray-300)`,backgroundPosition:`center`,backgroundSize:`cover`,flexShrink:0},tOe={flex:1,minWidth:0},nOe={fontSize:`var(--font-size-regular)`,fontWeight:600,color:`var(--color-text)`,marginBottom:`2px`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},rOe={fontSize:`var(--font-size-small)`,color:`var(--color-text-secondary)`},iOe={display:`flex`,justifyContent:`center`,alignItems:`center`,width:`100%`,padding:`20px`},aOe=(e,t)=>!e||e.isPlaceholder?`...`:t?t.status===2&&t.cleanerAcceptanceDate?U(`detailed_view.accepted_on`,{date:t.cleanerAcceptanceDate.format(`DD/MM/YYYY`)}):U(t.getStatusStringAdvanced()):U(`detailed_view.job_still_not_accepted`),x4=({isLoading:e,jobData:t,data:n})=>e?(0,K.jsx)(I,{sx:b4,children:(0,K.jsx)(I,{sx:iOe,children:(0,K.jsx)(rr,{size:24})})}):(0,K.jsxs)(I,{sx:b4,children:[(0,K.jsx)(I,{sx:{...eOe,...t?.cleanerImageIdentifier&&{backgroundImage:`url(${iu(t.cleanerImageIdentifier,nu.ORIGINAL)})`}}}),(0,K.jsxs)(I,{sx:tOe,children:[(0,K.jsx)(Ig,{title:t?t.getCleanerString(!0,!0,!0):``,children:(0,K.jsx)(x,{sx:nOe,children:t?t.getCleanerString(!0,!1,!0):`-`})}),(0,K.jsx)(x,{sx:rOe,children:aOe(n,t)})]})]});x4.propTypes={isLoading:V.default.bool,jobData:V.default.shape({status:V.default.number,cleanerImageIdentifier:V.default.string,cleanerAcceptanceDate:V.default.shape({format:V.default.func}),getCleanerString:V.default.func,getStatusStringAdvanced:V.default.func}),data:V.default.shape({isPlaceholder:V.default.bool})};var oOe={display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`14px 20px`,borderBottom:`1px solid var(--color-border)`,"&:last-child":{borderBottom:`none`}},sOe={fontSize:`var(--font-size-small)`,color:`var(--color-text-secondary)`,display:`flex`,alignItems:`center`,gap:`8px`},cOe={fontSize:`var(--font-size-small)`,fontWeight:600,color:`var(--color-text)`,dis
2840play:`flex`,alignItems:`center`,gap:`8px`},lOe={color:`var(--color-text-tertiary)`},S4=({label:e,value:t,icon:n,loading:r})=>(0,K.jsxs)(I,{sx:oOe,children:[(0,K.jsxs)(x,{component:`span`,sx:sOe,children:[n,e]}),(0,K.jsx)(I,{component:`span`,sx:cOe,children:r?(0,K.jsx)(I,{component:`span`,sx:lOe,children:`...`}):t})]});S4.propTypes={label:V.default.string.isRequired,value:V.default.node,icon:V.default.node,loading:V.default.bool};var uOe=gn.create(I),dOe={padding:`16px`,backgroundColor:`var(--color-bg)`,borderRadius:`var(--radius-lg)`},fOe={backgroundColor:`var(--color-bg-paper)`,borderRadius:`var(--radius-lg)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-sm)`,overflow:`hidden`},pOe={display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`16px 20px`,borderBottom:`1px solid var(--color-border)`},mOe={fontSize:`var(--font-size-regular)`,fontWeight:600,color:`var(--color-text)`},hOe={display:`flex`,flexDirection:`column`},C4=({title:e,badge:t,children:n})=>(0,K.jsx)(I,{sx:dOe,children:(0,K.jsxs)(uOe,{sx:fOe,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:bd.snappy,children:[(0,K.jsxs)(I,{sx:pOe,children:[(0,K.jsx)(x,{sx:mOe,children:e}),t]}),(0,K.jsx)(I,{sx:hOe,children:n})]})});C4.propTypes={title:V.default.string.isRequired,badge:V.default.node,children:V.default.node};var w4={display:`flex`,alignItems:`center`,gap:`8px`},gOe=(e,t)=>!e||e.isPlaceholder||!t?`...`:t.isJobStarted?t.getStartTimeString(!0):`-`,_Oe=(e,t)=>!e||e.isPlaceholder||!t?`...`:t.isJobEnded?t.getEndTimeString(!0,!0):`-`,vOe=(e,t)=>{if(e&&t){let n=[];t.forEach(e=>{let{verificationPhotos:t}=e;n=[...n,...t]});let r=n.find(t=>t.pictureIdentifier===e);if(r)return r.stepId}return null};function T4({data:e,isVisible:t,sharedData:n=null}){let r=xe(),i=j(GW),[a,o]=(0,B.useState)(null),[s,c]=(0,B.useState)({isPlaceholder:!0}),[l,u]=(0,B.useState)({up:0,down:0}),[d,f]=(0,B.useState)({viewed:0,total:0}),[p,m]=(0,B.useState)(!1),h=(0,B.useRef)(s);h.current=s;let g=(0,B.useRef)(n),_=(0,B.useCallback)(async(e,t)=>{let n={up:0,down:0},r={total:0,viewed:0};try{let i=await u4(e);i.filter(e=>e.type===`thumbs`).forEach(e=>{vOe(e.pictureUrl,t)&&(e.thumbs===`up`?n.up+=1:e.thumbs===`down`&&(n.down+=1))}),u(n),i.filter(e=>e.type===`comment`).forEach(e=>{Cs(e)&&(r.viewed+=1),r.total+=1}),f(r)}catch{}},[]),v=(0,B.useCallback)(async e=>{if(!e.isPlaceholder){let t=new Bs(e);if(t){let{jobId:e}=t;await _(e,t.checklists)}m(!0)}},[_]),y=(0,B.useCallback)(async t=>{try{let n=e?.jobsReceivedMode,r=await Cbe(t,n),i=(0,Z$.default)(h.current,r);v(i),c(i)}catch(e){R.default.error(`Job Results DetailView refresh error`,e)}},[e?.jobsReceivedMode,v]);(0,B.useEffect)(()=>{let l=e?.id,u=n!==g.current;if(t&&l){if(l!==a||s.isPlaceholder&&n||u){u&&(g.current=n),o(l),n&&(c(n),v(n));return}i&&(r(uY(!1)),y(l))}},[e?.id,t,n,i,a,s.isPlaceholder,r,v,y]);let{jobData:b,locationStatus:x}=(0,B.useMemo)(()=>s.isPlaceholder?{jobData:null,locationStatus:null}:{jobData:new Bs(s),locationStatus:new CX(s.progress).getAllLocationStatuses(s.property?s.property.location:void 0)},[s]),S=s.isPlaceholder;return(0,K.jsxs)(C4,{title:U(`detailed_view.performance`),badge:!S&&b&&(0,K.jsx)(Nx,{text:U(b.getStatusStringAdvanced()),color:b.getStatusColor()}),children:[(0,K.jsx)(x4,{isLoading:S,jobData:b,data:s}),(0,K.jsx)(S4,{label:U(`detailed_view.start_time`),value:(0,K.jsxs)(I,{sx:w4,children:[gOe(s,b),x&&(0,K.jsx)(kM,{status:x.start})]}),loading:S}),(0,K.jsx)(S4,{label:U(`detailed_view.finish_time`),value:(0,K.jsxs)(I,{sx:w4,children:[_Oe(s,b),x&&(0,K.jsx)(kM,{status:x.end})]}),loading:S}),(0,K.jsx)(S4,{label:U(`detailed_view.photos_completed`),value:S?`...`:`${b?.completedPhotosCount||0} ${U(`detailed_view.of`)} ${b?.totalVerificationPictureCount||0}`,loading:S}),(0,K.jsx)(S4,{label:U(`detailed_view.tasks_completed`),value:S?`...`:`${b?.doneTasksCount||0} ${U(`detailed_view.of`)} ${b?.totalTaskCount||0}`,loading:S}),d?.total>0&&(0,K.jsx)(S4,{label:U(`detailed_view.comments_viewed`),value:`${d.viewed} ${U(`detailed_view.of`)} ${d.total}`,loading:S}),(0,K.jsx)(S4,{label:U(`detailed_view.thumbs_up`),value:S||!p?`...`:`${l.up} ${U(`detailed_view.of`)} ${b?.totalVerificationPhotosSent||0}`,loading:S||!p}),(0,K.jsx)(S4,{label:U(`detailed_view.thumbs_down`),value:S||!p?`...`:`${l.down} ${U(`detailed_view.of`)} ${b?.totalVerificationPhotosSent||0}`,loading:S||!p}),(0,K.jsx)(S4,{label:U(`detailed_view.missing_feedback`),value:S||!p?`...`:`${(b?.totalVerificationPhotosSent||0)-(l.up+l.down)} ${U(`detailed_view.of`)} ${b?.totalVerificationPhotosSent||0}`,loading:S||!p})]})}
2840T4.propTypes={data:V.default.shape({id:V.default.string,jobsReceivedMode:V.default.bool}).isRequired,isVisible:V.default.bool.isRequired,sharedData:V.default.shape({})};var yOe=gn.create(I),E4={root:{display:`flex`,alignItems:`flex-start`,justifyContent:`space-between`,padding:`12px`,backgroundColor:`var(--color-bg-elevated)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-lg)`,marginBottom:`12px`,"&:last-child":{marginBottom:0}},content:{display:`flex`,gap:`16px`,flex:1,minWidth:0},imagesColumn:{display:`flex`,flexDirection:`column`,gap:`6px`,flexShrink:0},image:{width:`80px`,height:`80px`,objectFit:`cover`,borderRadius:`var(--radius-md)`,cursor:`pointer`,transition:`transform 0.2s ease, opacity 0.2s ease`,"&:hover":{transform:`scale(1.05)`,opacity:.9}},details:{flex:1,minWidth:0,display:`flex`,flexDirection:`column`,gap:`6px`},header:{display:`flex`,alignItems:`center`,gap:`12px`,flexWrap:`wrap`},date:{fontSize:`11px`,color:`var(--color-text-tertiary)`},title:{fontSize:`var(--font-size-small)`,fontWeight:600,color:`var(--color-text)`},note:{fontSize:`var(--font-size-small)`,color:`var(--color-text-secondary)`,lineHeight:1.4},selectWrapper:{marginLeft:`12px`,flexShrink:0}},D4=({problem:e,selectedProblems:t=[],selectValues:n,problemStatusValues:r,formattedDate:i,popUpImage:a,changeValueOnSelect:o,jobData:s,updateLocalProblems:c,readOnly:l,index:u=0})=>{let{id:d,pictureIdentifiers:f,date:p,status:m,title:h,note:g}=e||{};return(0,K.jsxs)(yOe,{sx:E4.root,initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{...bd.snappy,delay:Ed(u)},children:[(0,K.jsxs)(I,{sx:E4.content,children:[f?.length>0&&(0,K.jsx)(I,{sx:E4.imagesColumn,children:f?.map(e=>(0,K.jsx)(I,{component:`img`,src:iu(e,nu.PROBLEM_REPORT_THUMBNAIL),alt:`Problem report`,onClick:()=>a(iu(e,``,``,(0,z.default)(p).tz(s.getTimeZone()).format(`YYYY-MM-DD HH:mm:ss`)),e),sx:E4.image},e))}),(0,K.jsxs)(I,{sx:E4.details,children:[(0,K.jsxs)(I,{sx:E4.header,children:[!!p&&(0,K.jsx)(I,{component:`span`,sx:E4.date,children:i(p,s.getTimeZone())}),!l&&(0,K.jsx)(Qe,{size:`small`,value:r[d]||m,onChange:e=>o(e,n,d,s),sx:{minWidth:100,height:24,fontSize:`11px`,color:`var(--color-text)`,backgroundColor:`var(--color-bg-elevated)`,borderRadius:`var(--radius-sm)`,"& .MuiOutlinedInput-notchedOutline":{borderColor:`var(--color-border)`},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:`var(--color-text-secondary)`},"& .MuiSelect-select":{py:0,px:1}},children:n.map(e=>(0,K.jsx)(fe,{value:e.value,sx:{fontSize:`12px`},children:e.title},e.value))})]}),(0,K.jsx)(I,{component:`span`,sx:E4.title,children:h}),g&&(0,K.jsx)(I,{component:`span`,sx:E4.note,children:g})]})]}),!l&&(0,K.jsx)(I,{sx:E4.selectWrapper,children:(0,K.jsx)(Dp,{selected:t.some(e=>e.id===d),onChange:()=>c(e)})})]},d)};D4.propTypes={problem:V.default.shape({id:V.default.string,pictureIdentifiers:V.default.arrayOf(V.default.string),date:V.default.string,status:V.default.string,title:V.default.string,note:V.default.string}).isRequired,selectedProblems:V.default.arrayOf(V.default.shape({id:V.default.string,pictureIdentifiers:V.default.arrayOf(V.default.string),date:V.default.string,status:V.default.string,title:V.default.string,note:V.default.string})),selectValues:V.default.arrayOf(V.default.shape({})).isRequired,problemStatusValues:V.default.objectOf(V.default.string).isRequired,formattedDate:V.default.func.isRequired,popUpImage:V.default.func.isRequired,changeValueOnSelect:V.default.func.isRequired,jobData:V.default.shape({}).isRequired,updateLocalProblems:V.default.func.isRequired,readOnly:V.default.bool,index:V.default.number};var bOe=gn.create(I),O4={view:{padding:`16px`,background:`var(--color-bg)`,borderRadius:`var(--radius-lg)`},sectionCard:{background:`var(--color-bg-paper)`,borderRadius:`var(--radius-lg)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-sm)`,overflow:`hidden`},sectionHeader:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`16px 20px`,borderBottom:`1px solid var(--color-border)`},sectionTitle:{fontSize:`var(--font-size-regular)`,fontWeight:600,color:`var(--color-text)`},problemsList:{display:`flex`,flexDirection:`column`,padding:`12px`},emptyState:{padding:`40px 20px`,textAlign:`center`,color:`var(--color-text-secondary)`,fontSize:`var(--font-size-small)`},createJobBar:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`12px 20px`,borderBottom:`1px solid var(--color-border)`,background:`var(--color-bg-elevated)`},createJobText:{fontSize:`var(--font-size-small)`,color:`var(--color-text-secondary)`,maxWidth:`60%`}},xOe=[{title:U(`problems.status.open`),value:Ga.OPEN,problemStatus:Ga.OPEN},{title:U(`problems.status.inProgress`),value:Ga.IN_PROGRESS,problemStatus:Ga.IN_PROGRESS},{title:U(`problems.status.resolved`),value:Ga.RESOLVED,problemStatus:Ga.RESOLVED},{title:U(`problems.status.ignored`),value:Ga.IGNORED,problemStatus:Ga.IGNORED}],k4=e=>{let{data:t,isVisible:n,sharedData:r=null}=e,{trackClick:i,trackSelect:a,trackDropdown:o,trackModalAction:s}=nT(`ProblemsTab`),c=xe(),[l,u]=(0,B.useState)({}),[d,f]=(0,B.useState)(null),[p,m]=(0,B.useState)({isPlaceholder:!0,popUpImage:null}),[h,g]=(0,B.useState)([]),[_,v]=(0,B.useState)(null),[y,b]=(0,B.useState)(null),x=(0,B.useRef)(r),S=(0,B.useCallback)(e=>{let t=[];return e&&(t=e.problems.map(e=>
2840({id:e.id,title:e.title,description:`${e.stepTitle?`${e.stepTitle} - `:``}${e.checklistTitle}`,note:e.note,pictureIdentifiers:e.pictureIdentifiers||null,status:e.status,date:e.date}))),t},[]),C=(0,B.useCallback)(()=>{v(null),b(null)},[]),w=(0,B.useCallback)((e,t)=>{s(`problem_lightbox`,`OPEN`),v(e),b({filename:t||`problem_image`})},[s]),T=(0,B.useCallback)(e=>{g(t=>{let{id:n}=e,r=t.some(e=>e.id===n);return a(`problem_select`,!r),r?t.filter(e=>e.id!==n):[...t,e]})},[a]),E=(0,B.useCallback)((e,t,n,r)=>{let i;t.forEach(t=>{let{value:n,problemStatus:r}=t;e.target.value===n&&(i=r)}),o(`problem_status`,i);let a=r.problems?.find(e=>e.id===n);u(e=>({...e,[n]:i})),c(HK(r,a,i,null,!0))},[c,o]),D=(0,B.useCallback)(e=>{if(n&&e){let t=r!==x.current;(e!==d||p.isPlaceholder&&r||t)&&(t&&(x.current=r),f(e),r&&m(r))}},[n,d,p.isPlaceholder,r]),ee=(0,B.useCallback)(e=>{i(`problems_create_job`,{count:h.length}),c(oY(e,h))},[c,h,i]);(0,B.useEffect)(()=>{D(t?.id)},[t?.id,D]);let te=t?.jobsReceivedMode,ne=(e,t)=>(0,z.default)(e).tz(t).format(`llll`);if(p.isPlaceholder)return null;let re;p.isPlaceholder||(re=new Bs(p));let O=S(re),ie=O.length>0;return(0,K.jsxs)(I,{sx:O4.view,children:[(0,K.jsxs)(bOe,{sx:O4.sectionCard,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:bd.snappy,children:[(0,K.jsx)(I,{sx:O4.sectionHeader,children:(0,K.jsx)(I,{component:`span`,sx:O4.sectionTitle,children:U(`list_view.problems`)})}),ie?(0,K.jsxs)(K.Fragment,{children:[!te&&(0,K.jsxs)(I,{sx:O4.createJobBar,children:[(0,K.jsx)(I,{component:`span`,sx:O4.createJobText,children:U(`detailed_view.select_and_create_problem_job`)}),(0,K.jsx)(q,{types:[`size-small`,`type-full-primary`],disabled:!h?.length,onClick:()=>ee(re.jobId),children:U(`jobs.create_job`)})]}),(0,K.jsx)(I,{sx:O4.problemsList,children:O.map((e,t)=>(0,K.jsx)(D4,{problem:e,selectedProblems:h,selectValues:xOe,problemStatusValues:l,formattedDate:ne,popUpImage:w,changeValueOnSelect:E,jobData:re,updateLocalProblems:T,readOnly:te,index:t},e.id))})]}):(0,K.jsx)(I,{sx:O4.emptyState,children:U(`detailed_view.no_feedback_to_show`)})]}),(0,K.jsx)(de,{open:!!_,close:C,slides:_?[{src:_,download:{filename:y?.filename||`problem_report`}}]:[],plugins:[ut],carousel:{finite:!0},controller:{closeOnBackdropClick:!0},render:{buttonPrev:()=>null,buttonNext:()=>null}})]})};k4.propTypes={data:V.default.shape({id:V.default.string,jobsReceivedMode:V.default.bool}).isRequired,isVisible:V.default.bool.isRequired,sharedData:V.default.shape({})};var SOe={padding:`12px`,backgroundColor:`var(--color-bg-elevated)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-lg)`,marginBottom:`12px`,"&:last-child":{marginBottom:0}},COe={display:`flex`,alignItems:`center`,justifyContent:`space-between`},wOe={display:`flex`,flexDirection:`column`,gap:`2px`},TOe={fontSize:`var(--font-size-small)`,color:`var(--color-text-secondary)`},EOe={fontSize:`11px`,color:`var(--color-text-tertiary)`,fontStyle:`italic`},DOe={fontSize:`var(--font-size-small)`,fontWeight:600,color:`var(--color-text)`},OOe={fontSize:`11px`,color:`var(--color-text-tertiary)`,marginTop:`4px`},kOe={display:`flex`,flexWrap:`wrap`,gap:`8px`,marginTop:`10px`},AOe={width:`60px`,height:`60px`,objectFit:`cover`,borderRadius:`var(--radius-md)`,cursor:`pointer`,transition:`transform 0.2s ease, opacity 0.2s ease`,"&:hover":{transform:`scale(1.05)`,opacity:.9}},A4=({cost:{pictureIdentifiers:e,date:t,value:n,type:r,note:i,reporterName:a}={},onImageClick:o,formattedDate:s,countryCode:c,jobData:l})=>{let u=e=>{!o||!l||o(iu(e,``,``,(0,z.default)(t).tz(l.getTimeZone()).format(`YYYY-MM-DD HH:mm:ss`)),e)};return(0,K.jsxs)(I,{sx:SOe,children:[(0,K.jsxs)(I,{sx:COe,children:[(0,K.jsxs)(I,{sx:wOe,children:[(0,K.jsx)(x,{sx:TOe,children:i||`Cost Entry`}),a&&(0,K.jsx)(x,{sx:EOe,children:a})]}),(0,K.jsx)(x,{sx:DOe,children:Nu(r,n,c)})]}),t&&l&&(0,K.jsx)(x,{sx:OOe,children:s(t,l.getTimeZone())}),e?.length>0&&(0,K.jsx)(I,{sx:kOe,children:e.map(e=>(0,K.jsx)(I,{component:`img`,src:iu(e,nu.PROBLEM_REPORT_THUMBNAIL),alt:`Cost receipt`,onClick:()=>u(e),sx:AOe},e))})]})};A4.propTypes={cost:V.default.shape({pictureIdentifiers:V.default.arrayOf(V.default.string),date:V.default.string,value:V.default.oneOfType([
2840V.default.string,V.default.number]),type:V.default.string,note:V.default.string,reporterName:V.default.string}),onImageClick:V.default.func,formattedDate:V.default.func,countryCode:V.default.string,jobData:V.default.shape({getTimeZone:V.default.func})};var jOe={display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`12px`,backgroundColor:`var(--color-bg-elevated)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-lg)`,marginBottom:`12px`,"&:last-child":{marginBottom:0}},MOe={fontSize:`var(--font-size-small)`,color:`var(--color-text-secondary)`},NOe={fontSize:`var(--font-size-small)`,fontWeight:600,color:`var(--color-text)`},POe=({label:e,value:t})=>(0,K.jsxs)(I,{sx:jOe,children:[(0,K.jsx)(x,{component:`span`,sx:MOe,children:e}),(0,K.jsx)(x,{component:`span`,sx:NOe,children:t})]});POe.propTypes={label:V.default.string.isRequired,value:V.default.node.isRequired};var FOe=gn.create(I),IOe={backgroundColor:`var(--color-bg-paper)`,borderRadius:`var(--radius-lg)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-sm)`,overflow:`hidden`,marginBottom:`16px`},LOe={display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`16px 20px`,borderBottom:`1px solid var(--color-border)`},ROe={fontSize:`var(--font-size-regular)`,fontWeight:600,color:`var(--color-text)`},zOe={display:`flex`,flexDirection:`column`,padding:`12px`},j4=({title:e,children:t})=>(0,K.jsxs)(FOe,{sx:IOe,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:bd.snappy,children:[(0,K.jsx)(I,{sx:LOe,children:(0,K.jsx)(x,{sx:ROe,children:e})}),(0,K.jsx)(I,{sx:zOe,children:t})]});j4.propTypes={title:V.default.string.isRequired,children:V.default.node};var M4=gn.create(I),BOe=e=>({display:`flex`,alignItems:`center`,justifyContent:`space-between`,width:`100%`,padding:`16px 20px`,background:`var(--color-bg-paper)`,border:`1px solid var(--color-border)`,borderRadius:e?`var(--radius-lg) var(--radius-lg) 0 0`:`var(--radius-lg)`,borderBottomColor:e?`transparent`:`var(--color-border)`,boxShadow:`var(--shadow-sm)`,cursor:`pointer`,transition:`all 0.2s ease`,"&:hover":{background:`var(--color-bg-elevated)`}}),VOe={display:`flex`,alignItems:`center`,gap:`12px`},HOe={display:`flex`,alignItems:`center`,justifyContent:`center`,"& svg":{width:`18px`,height:`18px`}},UOe={fontSize:`var(--font-size-regular)`,fontWeight:600,color:`var(--color-text)`},WOe={display:`flex`,alignItems:`center`,justifyContent:`center`,color:`var(--color-text-secondary)`},GOe={background:`var(--color-bg-paper)`,border:`1px solid var(--color-border)`,borderTop:`none`,borderRadius:`0 0 var(--radius-lg) var(--radius-lg)`,boxShadow:`var(--shadow-sm)`,overflow:`hidden`},KOe={padding:`20px`},N4=({label:e,expanded:t,onToggle:n,children:r})=>(0,K.jsxs)(M4,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{...bd.snappy,delay:.05},children:[(0,K.jsxs)(I,{component:`button`,type:`button`,sx:BOe(t),onClick:n,children:[(0,K.jsxs)(I,{sx:VOe,children:[(0,K.jsx)(I,{sx:HOe,children:(0,K.jsx)(Y.IcPlus,{color:`var(--color-primary)`})}),(0,K.jsx)(x,{sx:UOe,children:e})]}),(0,K.jsx)(gn.div,{style:WOe,animate:{rotate:t?180:0},transition:bd.snappy,children:(0,K.jsx)(Y.IcDownArrowThin,{})})]}),(0,K.jsx)(Qr,{children:t&&(0,K.jsx)(M4,{sx:GOe,initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1},exit:{height:0,opacity:0},transition:{height:{duration:yd.medium,ease:xd.easeOut},opacity:{duration:yd.fast,ease:xd.easeOut}},children:(0,K.jsx)(I,{sx:KOe,children:r})})})]});N4.propTypes={label:V.default.string.isRequired,expanded:V.default.bool,onToggle:V.default.func.isRequired,children:V.default.node};var qOe={display:`flex`,gap:`12px`,alignItems:`center`,marginBottom:`16px`,flexWrap:`wrap`},JOe={display:`flex`,gap:`8px`,alignItems:`center`},YOe={width:`100%`,marginBottom:`12px`},XOe={margin:`12px 0`},ZOe={minHeight:0},QOe={display:`flex`,flexWrap:`wrap`,gap:`8px`,maxHeight:`200px`,overflowY:`auto`},$Oe={width:`60px`,height:`60px`,objectFit:`cover`,borderRadius:`var(--radius-md)`,backgroundColor:`var(--color-bg-elevated)`},eke={display:`flex`,gap:`12px`,marginTop:`16px`},tke={fontSize:`12px`,textAlign:`center`,color:`red`},nke=(e,t)=>e===`miles`?ju(t):e===`duration`?`min`:e===`cost`?Gl(t):``,P4=({countryCode:e=``,firstInput:t,secondInput:n,firstInputName:r,secondInputName:i,tempImages:a=[],onChange:o,handleCancel:s,handleSave:c,handleFileUpload:l,handleImageChange:u,showErrorModal:d=!1,isImageLoading:f=!1,showImageRangeError:p=!1,renderErrorModal:m,onLoadImage:h,handleOnInputFileClick:g})=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(ym,{}),(0,K.jsxs)(I,{sx:qOe,children:[(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,value:t,"data-testid":r,name:r,placeholder:`00.00 ${nke(r,e)}`,type:`text`,onChange:o,preventNegativeValues:!0}),(0,K.jsxs)(I,{children:[(0,K.jsx)(q,{types:[`type-full-primary`,`size-medium`],onClick:e=>l(e),disabled:p,children:(0,K.jsxs)(I,{sx:JOe,children:[(0,K.jsx)(vr,{sx:{fontSize:18,color:`white`}}
2840),U(`detailed_view.upload`)]})}),(0,K.jsx)(`input`,{type:`file`,id:`pictureIdentifiers`,style:{display:`none`},accept:`image/*`,onChange:e=>u(e),onClick:g})]})]}),(0,K.jsx)(I,{sx:YOe,children:(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,value:n,showErrorMsg:!0,"data-testid":i,name:i,placeholder:U(`jobdetails.costs.textArea_placeholder`),type:`textarea`,maxLength:200,onChange:o,textAreaHeight:80})}),(0,K.jsx)(ym,{}),d&&m(),(0,K.jsxs)(I,{sx:XOe,children:[(0,K.jsx)(I,{sx:ZOe,children:f&&(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:`8px`,alignItems:`center`},children:[(0,K.jsx)(J,{height:120,width:120,variant:`rounded`}),(0,K.jsx)(J,{height:8,width:100})]})}),(0,K.jsx)(I,{sx:QOe,children:a?.map(e=>(0,K.jsx)(I,{children:(0,K.jsx)(I,{component:`img`,src:ou(e),alt:e,onLoad:h,sx:$Oe})},e))})]}),(0,K.jsxs)(I,{sx:eke,children:[(0,K.jsx)(q,{"data-testid":`cancel_button`,onClick:s,types:[`type-border-grey`,`size-medium`],children:U(`checklist.cancel`)}),(0,K.jsx)(ym,{}),(0,K.jsx)(q,{"data-testid":`save_button`,onClick:c,types:[`type-full-primary`,`size-medium`],disabled:!t||f,children:U(`checklist.save`)})]}),(0,K.jsx)(ym,{}),p&&(0,K.jsx)(x,{"data-testid":`message_cannot_add_more_than_5_images`,sx:tke,children:U(`job_request.task_image_range_error`)})]});P4.propTypes={countryCode:V.default.string,firstInput:V.default.string.isRequired,secondInput:V.default.string.isRequired,firstInputName:V.default.string.isRequired,secondInputName:V.default.string.isRequired,tempImages:V.default.arrayOf(V.default.string),onChange:V.default.func.isRequired,handleCancel:V.default.func.isRequired,handleSave:V.default.func.isRequired,handleFileUpload:V.default.func.isRequired,handleImageChange:V.default.func.isRequired,showErrorModal:V.default.bool,isImageLoading:V.default.bool,showImageRangeError:V.default.bool,renderErrorModal:V.default.func.isRequired,onLoadImage:V.default.func.isRequired,handleOnInputFileClick:V.default.func.isRequired};var{MILEAGE:F4,DURATION:I4,COST:L4}=Ka,R4=5,z4={minWidth:`100px`,textTransform:`none`,fontSize:`var(--font-size-small)`,borderRadius:`var(--radius-md)`,margin:`0 4px`};function B4({onUploadPic:e,costType:t,tempMilesImages:n=[],tempDurationImages:r=[],tempCostImages:i=[],onAddCost:a,countryCode:o,imageUploadErrored:s=!1,close:c,jobData:l}){let[u,d]=(0,B.useState)(F4),[f,p]=(0,B.useState)(``),[m,h]=(0,B.useState)(``),[g,_]=(0,B.useState)(``),[v,y]=(0,B.useState)(``),[b,x]=(0,B.useState)(``),[S,C]=(0,B.useState)(``),[w,T]=(0,B.useState)([]),[E,D]=(0,B.useState)(!0),[ee,te]=(0,B.useState)(!1),[ne,re]=(0,B.useState)(!1),[O,ie]=(0,B.useState)(!1),[ae,oe]=(0,B.useState)(!1),[se,ce]=(0,B.useState)(!1),[le,ue]=(0,B.useState)(!1),[de,fe]=(0,B.useState)(!1),pe=(0,B.useRef)(s);(0,B.useEffect)(()=>{s!==pe.current&&(te(!1),re(!1),ie(!1),pe.current=s)},[s]),(0,B.useEffect)(()=>{n?.length===R4&&!se&&ce(!0)},[n?.length,se]),(0,B.useEffect)(()=>{r?.length===R4&&!le&&ue(!0)},[r?.length,le]),(0,B.useEffect)(()=>{i?.length===R4&&!de&&fe(!0)},[i?.length,de]);let me={miles:p,milesDetails:h,cost:_,costDetails:y,duration:x,durationDetails:C},he=(0,B.useCallback)(e=>{Kf(e);let{name:t,value:n}=e.target,r=me[t];r&&r(n)},[]),ge=(0,B.useCallback)((e,t)=>{d(t)},[]),_e=(0,B.useCallback)(()=>{p(``),h(``),x(``),C(``),_(``),y(``),T([])},[]),ve=(0,B.useCallback)(()=>{_e(),c()},[_e,c]),ye=(0,B.useCallback)(()=>{let e={jobId:l?.jobId,propertyId:l?.propertyId};u===F4&&(e.type=F4,e.value=f,e.note=m,e.pictureIdentifiers=n),u===I4&&(e.type=I4,e.value=b,e.note=S,e.pictureIdentifiers=r),u===L4&&(e.type=L4,e.value=g,e.note=v,e.pictureIdentifiers=i),a([...w,e]),_e(),c()},[u,f,m,b,S,g,v,w,n,r,i,l,a,_e,c]),be=(0,B.useCallback)(n=>{n.preventDefault();let r=new FileReader,[i]=n.target.files;if(!i){te(!1),re(!1),ie(!1);return}let{size:a}=i,{minSize:o,maxSize:s}=ru;if(a<o||a>s){te(!1),re(!1),ie(!1),oe(!0),D(!0);return}r.onloadend=()=>
2840i,r.readAsDataURL(i),t(u),e(i),u===F4&&te(!0),u===I4&&re(!0),u===L4&&ie(!0)},[u,t,e]),xe=(0,B.useCallback)(e=>{e.preventDefault(),document.getElementById(`pictureIdentifiers`).click(e)},[]),Se=(0,B.useCallback)(e=>{e.target.value=``},[]),Ce=(0,B.useCallback)(()=>{te(!1),re(!1),ie(!1)},[]),we=(0,B.useCallback)(()=>{D(!1)},[]),Te={showErrorModal:ae,onChange:he,handleCancel:ve,handleSave:ye,handleFileUpload:xe,handleImageChange:be,onLoadImage:Ce,renderErrorModal:(0,B.useCallback)(()=>(0,K.jsx)(Dg.ImageUpload,{onCloseLimitError:we,showLimitError:E}),[we,E]),handleOnInputFileClick:Se};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(ei,{value:u,onChange:ge,sx:{marginBottom:2},slotProps:{indicator:{style:{background:Wp}}},children:[(0,K.jsx)(Et,{style:z4,label:`Mileage`,value:F4}),(0,K.jsx)(Et,{style:z4,label:`Duration`,value:I4}),(0,K.jsx)(Et,{style:z4,label:`Cost`,value:L4})]}),u===F4&&(0,K.jsx)(P4,{countryCode:o,firstInputName:`miles`,secondInputName:`milesDetails`,firstInput:f,secondInput:m,tempImages:n,isImageLoading:ee,showImageRangeError:se,...Te}),u===I4&&(0,K.jsx)(P4,{firstInputName:`duration`,secondInputName:`durationDetails`,firstInput:b,secondInput:S,tempImages:r,isImageLoading:ne,showImageRangeError:le,...Te}),u===L4&&(0,K.jsx)(P4,{countryCode:o,firstInputName:`cost`,secondInputName:`costDetails`,firstInput:g,secondInput:v,tempImages:i,isImageLoading:O,showImageRangeError:de,...Te})]})}B4.propTypes={onUploadPic:V.default.func.isRequired,costType:V.default.func.isRequired,tempMilesImages:V.default.arrayOf(V.default.string),tempDurationImages:V.default.arrayOf(V.default.string),tempCostImages:V.default.arrayOf(V.default.string),onAddCost:V.default.func.isRequired,countryCode:V.default.string.isRequired,imageUploadErrored:V.default.bool,close:V.default.func.isRequired,jobData:V.default.shape({jobId:V.default.string,propertyId:V.default.string}).isRequired};var{MILEAGE:rke,DURATION:ike,COST:ake}=Ka,oke={padding:`16px`,background:`var(--color-bg)`,borderRadius:`var(--radius-lg)`},V4=e=>{let{data:t,isVisible:n,sharedData:r=null}=e,i=(0,B.useMemo)(()=>bw(d_),[]),{trackClick:a,trackExpand:o,trackModalAction:s}=nT(`CostsTab`),c=xe(),l=j(MW),u=j(NW),d=j(PW),f=j(e=>i(e)?.isErrored),[p,m]=(0,B.useState)(null),[h,g]=(0,B.useState)({isPlaceholder:!0,popUpImage:null}),[_,v]=(0,B.useState)([]),[y,b]=(0,B.useState)({}),[S,C]=(0,B.useState)(null),[w,T]=(0,B.useState)(null),[E,D]=(0,B.useState)(!1),ee=(0,B.useRef)(r),te=(0,B.useCallback)((e,t)=>{let n=[];if(e){let r=e.costs;_.length>0&&(r=_),n=r.map(({id:e,title:t,note:n,pictureIdentifiers:r,type:i,date:a,value:o,reporterName:s})=>({id:e,date:a,note:n,pictureIdentifiers:r,type:i,title:t,value:o,reporterName:s})),n=n.filter(e=>e.type===t)}return n},[_]),ne=(0,B.useCallback)((e,t)=>{s(`cost_lightbox`,`OPEN`),C(e),T({filename:t||`cost_image`})},[s]),re=(0,B.useCallback)(()=>{C(null),T(null)},[]),O=(0,B.useCallback)((e,t)=>{v(e),b(t)},[]),ie=(0,B.useCallback)(e=>{a(`cost_submit`,{costType:e?.type});let n=t?.jobsReceivedMode;c(QJ(e,!0,O,n))},[c,t?.jobsReceivedMode,O,a]),ae=(0,B.useCallback)(e=>{if(n&&e){let t=r!==ee.current;(e!==p||h.isPlaceholder&&r||t)&&(t&&(ee.current=r),m(e),r&&g(r))}},[n,p,h.isPlaceholder,r]);(0,B.useEffect)(()=>{ae(t?.id)},[t?.id,ae]);let oe=(e,t)=>(0,z.default)(e).tz(t).format(`llll`);if(h.isPlaceholder)return null;let se=new Bs(h),ce=se?.propertyData?.countryCode||``,{bilableTime:le,totalMileage:ue,totalCost:fe}=se?.jobProgress||{};Object.keys(y).length>0&&({bilableTime:le,totalMileage:ue,totalCost:fe}=y);let pe=te(se,ike),me=te(se,ake),he=te(se,rke);return(0,K.jsxs)(I,{sx:oke,children:[(0,K.jsxs)(j4,{title:U(`jobdetails.costs.cost_time`),children:[(0,K.jsxs)(I,{sx:{backgroundColor:`var(--color-bg-elevated)`,border:`1px solid var(--color-border)`,borderRadius:`var(--radius-lg)`,p:1.5,mb:1.5,display:`flex`,gap:2},children:[(0,K.jsxs)(I,{sx:{flex:1},children:[(0,K.jsx)(x,{sx:{fontSize:`11px`,color:`var(--color-text-secondary)`,mb:.5},children:U(`reports.select.bilableTime`)}),(0,K.jsx)(x,{sx:{fontSize:`15px`,color:`var(--color-text)`,fontWeight:600},children:le?Au(Mu(le)):`0 hrs`})]}),(0,K.jsxs)(I,{sx:{flex:1},children:[(0,K.jsx)(x,{sx:{fontSize:`11px`,color:`var(--color-text-secondary)`,mb:.5},children:U(`jobdetails.costs.job_cost`)}),(0,K.jsxs)(x,{sx:{fontSize:`15px`,color:`var(--color-text)`,fontWeight:600},children:[Gl(ce),` `,Mu(fe)||0]})]}),(0,K.jsxs)(I,{sx:{flex:1},children:[(0,K.jsx)(x,{sx:{fontSize:`11px`,color:`var(--color-text-secondary)`,mb:.5},children:U(`jobdetails.costs.mileage`)}),(0,K.jsxs)(x,{sx:{fontSize:`15px`,color:`var(--color-text)`,fontWeight:600},children:[Mu(ue)||0,` `,ju(ce)]})]})]}),pe.map(e=>(0,K.jsx)(A4,{cost:e,onImageClick:ne,formattedDate:oe,countryCode:ce,jobData:se},e.id)),me.map(e=>(0,K.jsx)(A4,{cost:e,onImageClick:ne,formattedDate:oe,countryCode:ce,jobData:se},e.id)),he.map(e=>(0,K.jsx)(A4,{cost:e,onImageClick:ne,formattedDate:oe,countryCode:ce,jobData:se},e.id))]}),(0,K.jsx)(N4,{label:U(`jobdetails.costs.add_cost_time`),expanded:E,onToggle:()=>{o(`add_cost_form`,!E),D(!E)},children:(0,K.jsx)(B4,{onAddCost:ie,jobData:se,onUploadPic:(e,t)=>c($J(e,t)),tempMilesImages:l,tempDurationImages:u,tempCostImages:d,costType:e=>c(sY(e)),countryCode:ce,imageUploadErrored:f,close:()=>{c(ZJ()),D(!1)}})}),(0,K.jsx)(de,{open:!!S,close:re,slides:S?[{src:S,download:{filename:w?.filename||`cost_image`}}]:[],plugins:[ut],carousel:{finite:!0},controller:{closeOnBackdropClick:!0},render:{buttonPrev:()=>null,buttonNext:()=>null}})]})};V4.propTypes={data:V.default.shape({id:V.default.string,jobsReceivedMode:V.default.bool}).isRequired,isVisible:V.default.bool.isRequired,sharedData:V.default.shape({})};var ske=gn.create(I),H4=(0,B.memo)(function({sender:e,timestamp:t,details:n,statusColor:r,animationDelay:i=0}){let a=new Date(t).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,hour12:!0});return(0,K.jsxs)(ske,{sx:{position:`relative`,marginLeft:`48px`,marginBottom:`20px`,opacity:0}
2840,initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{...bd.snappy,delay:i},children:[(0,K.jsx)(I,{sx:{position:`absolute`,left:`-36px`,top:`20px`,width:`24px`,height:`24px`,borderRadius:`50%`,border:`2px solid`,borderColor:r,backgroundColor:r,display:`flex`,alignItems:`center`,justifyContent:`center`,animation:`pulse 2s 1`,zIndex:1},"aria-label":`Event status indicator`}),(0,K.jsx)(I,{sx:{position:`absolute`,left:`-25px`,top:`28px`,width:`25px`,height:`2px`,backgroundColor:`var(--color-border)`}}),(0,K.jsxs)(I,{sx:{padding:`16px 20px`,borderRadius:`8px`,border:`1px solid var(--color-border)`,backgroundColor:`var(--surface-raised)`,boxShadow:`0 1px 3px var(--color-black-alpha-5)`,transition:`transform 0.2s ease, box-shadow 0.2s ease`,"&:hover":{transform:`translateY(-2px)`,boxShadow:`0 4px 6px var(--color-black-alpha-10)`}},children:[(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,gap:`12px`,marginBottom:`6px`},children:[(0,K.jsx)(Yg,{sx:{fontSize:`14px`,fontWeight:600,color:`var(--text-primary)`,flex:1},children:e}),(0,K.jsx)(Xg,{sx:{fontSize:`12px`,color:`var(--text-secondary)`,whiteSpace:`nowrap`,textAlign:`right`},children:a})]}),(0,K.jsx)(I,{children:(0,K.jsx)(Yg,{sx:{fontSize:`13px`,lineHeight:1.4,color:`var(--text-secondary)`},children:n})})]})]})});H4.propTypes={sender:V.default.string.isRequired,timestamp:V.default.oneOfType([V.default.string,V.default.number,V.default.instanceOf(Date)]).isRequired,details:V.default.string.isRequired,statusColor:V.default.string.isRequired,animationDelay:V.default.number};var cke=(e,t)=>{switch(e){case Ha.send:return{statusColor:$p,details:t?`${U(`jobLifecycle.send_event_details`)} ${t.map(String).join(`,`)}`:``};case Ha.view:return{statusColor:$p,details:U(`jobLifecycle.view_event_details`)};case Ha.edit:return{statusColor:$p,details:U(`jobLifecycle.edit_event_details`)};case Ha.restart:return{statusColor:$p,details:U(`jobLifecycle.restart_event_details`)};case Ha.sendToMore:return{statusColor:$p,details:t?`${U(`jobLifecycle.sendToMore_event_details`)} ${t.map(String).join(`,`)}`:``};case Ha.accepted:return{statusColor:em,details:U(`jobLifecycle.accepted_event_details`)};case Ha.acceptedChanges:return{statusColor:em,details:U(`jobLifecycle.acceptedChanges_event_details`)};case Ha.decline:return{statusColor:rm,details:U(`jobLifecycle.decline_event_details`)};case Ha.declineChanges:return{statusColor:rm,details:U(`jobLifecycle.declineChanges_event_details`)};case Ha.spCanceledJob:return{statusColor:rm,details:U(`jobLifecycle.spCanceledJob_event_details`)};case Ha.hostCanceledJob:return{statusColor:rm,details:U(`jobLifecycle.hostCanceledJob_event_details`)};case Ha.problemReported:return{statusColor:rm,details:U(`jobLifecycle.problemReported_event_details`)};case Ha.start:return{statusColor:tm,details:U(`jobLifecycle.start_event_details`)};case Ha.finish:return{statusColor:nm,details:U(`jobLifecycle.finish_event_details`)};default:return{statusColor:`transparent`,details:U(`jobLifecycle.event_not_found`)}}},U4=({jobEvents:e=[],data:t={}})=>{let n=(0,B.useMemo)(()=>e?t?.jobsReceivedMode?e.filter(e=>e.event!==Ha.send&&e.event!==Ha.sendToMore):e:[],[e,t?.jobsReceivedMode]);return(0,K.jsxs)(I,{sx:{margin:`20px auto`,padding:`20px`,width:`100%`,boxSizing:`border-box`,animation:`slideIn 0.5s ease-out`,"@keyframes slideIn":{from:{transform:`translateY(-20px)`,opacity:0},to:{transform:`translateY(0)`,opacity:1}},"@keyframes fadeSlideIn":{from:{transform:`translateX(-20px)`,opacity:0},to:{transform:`translateX(0)`,opacity:1}}},children:[(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,marginBottom:`24px`,padding:`0 16px`},children:(0,K.jsx)(Yg,{sx:{fontSize:`16px`,fontWeight:500},children:U(`jobLifecycle.job_timeline`)})}),(0,K.jsxs)(I,{sx:{position:`relative`,width:`100%`},children:[(0,K.jsx)(I,{sx:{position:`absolute`,left:`24px`,top:`35px`,bottom:`50px`,width:`2px`,backgroundColor:`var(--color-border)`}}),n.length?n.map((e,t)=>{let n=cke(e.event,e.to);return(0,K.jsx)(H4,{sender:e.sender,timestamp:e.timestamp,details:n.details,statusColor:n.statusColor,animationDelay:t*.15},`${e.timestamp}-${t}`)}):(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`center`,marginTop:`10%`},children:(0,K.jsx)(Yg,{sx:{fontSize:`14px`},children:U(t?.id?`detailed_view.loading`:`jobLifecycle.not_available`)})})]})]})};U4.propTypes={jobEvents:V.default.arrayOf(V.default.shape({event:V.default.string.isRequired,sender:V.default.string.isRequired,timestamp:V.default.oneOfType([
2840V.default.string,V.default.number,V.default.instanceOf(Date)]).isRequired,to:V.default.arrayOf(V.default.string)})),data:V.default.shape({id:V.default.string,jobsReceivedMode:V.default.bool})};var W4=({sharedData:e=null})=>{let t=xe(),n=(0,B.useMemo)(()=>e?new Bs(e):null,[e]);if(!n)return null;let r=n.jobId,{propertyId:i}=n,a=()=>{t(nF(`jobRequests`,{[r]:n},!0)),t(aY({selectedJobRequestId:r}))};return(0,K.jsx)(Nw,{jobData:n,onEdit:()=>{a(),t(eY(!0,{jobSnapshotId:r,propertyId:i}))},onCancel:()=>{t(rY(r))},onDuplicate:()=>{a(),t(iY(r))},iconSize:`small`,popoverKey:`detailedViewJobActions`})};W4.propTypes={sharedData:V.default.shape({})};var G4=(0,B.forwardRef)((e,t)=>{let{viewMode:n,notificationsManagerInstance:r=null,notifications:i={},onClose:a,onElementChange:o}=e,s=(0,B.useRef)(null),c=j(sB)||!1,[l,u]=(0,B.useState)(!1),[d,f]=(0,B.useState)(0),p=(0,B.useCallback)(()=>{s.current&&(u(!0),f(e=>e+1),s.current.refreshCurrentElement(),setTimeout(()=>u(!1),1500))},[]),m=(0,B.useMemo)(()=>{let e=[];switch(n){case`jobs`:e.push(b2(`jobSummary`,U(`detailed_view.job_summary`),R2)),e.push(b2(`comments`,U(`detailed_view.comments`),V2)),e.push(b2(`feedback`,U(`detailed_view.feedback`),y4)),e.push(b2(`jobResults`,U(`detailed_view.job_results`),T4)),e.push(b2(`costs`,U(`jobdetails.costs.cost_time`),V4)),e.push(b2(`problems`,U(`list_view.problems`),k4)),e.push(b2(`jobLifecycle`,U(`jobLifecycle.job_timeline`),U4));break;default:}return e},[n]);return(0,B.useImperativeHandle)(t,()=>({refreshCurrentElement(){s.current&&s.current.refreshCurrentElement()},showView(e){s.current&&s.current.showView(e)}})),(0,K.jsx)(kx,{ref:s,tabs:m,notificationsManagerInstance:r,notifications:i,headerActions:(0,B.useCallback)(e=>{if(n===`jobs`&&e?.sharedData){let t=e?.data?.jobsReceivedMode;return(0,K.jsxs)(K.Fragment,{children:[!t&&(0,K.jsx)(W4,{sharedData:e.sharedData}),c&&(0,K.jsx)(qn,{title:`Refresh`,children:(0,K.jsx)(br,{size:`small`,onClick:p,disabled:l,"aria-label":`Refresh`,sx:{width:32,height:32,borderRadius:`var(--radius-md)`,color:`var(--color-text)`,"&:hover":{backgroundColor:`var(--color-black-alpha-10)`},"&:active":{transform:`scale(0.94)`}},children:(0,K.jsx)(tr,{sx:{fontSize:16,...l&&{animation:`spin 1s linear infinite`,"@keyframes spin":{"0%":{transform:`rotate(0deg)`},"100%":{transform:`rotate(360deg)`}}}}})})})]})}return null},[n,c,p,l]),refreshKey:d,onClose:a,onElementChange:o})});G4.propTypes={viewMode:V.default.oneOf([`to-do`,`jobs`,`service-providers`,`properties`]).isRequired,disabledTabs:V.default.shape({activityLog:V.default.bool}),notificationsManagerInstance:V.default.oneOfType([V.default.instanceOf(z2)]),notifications:V.default.shape({}),onClose:V.default.func,onElementChange:V.default.func};var lke=1e3;function uke({draftJobsMode:e=!1,queryFilters:t,searchValue:n,needsRefetch:r,onFetchComplete:i}){let[a,o]=(0,B.useState)(null),[s,c]=(0,B.useState)(null),[l,u]=(0,B.useState)(!1),[d,f]=(0,B.useState)(!1),p=(0,B.useRef)(!0),m=(0,B.useRef)(null),h=(0,B.useRef)(!1);(0,B.useEffect)(()=>(p.current=!0,()=>{p.current=!1,m.current&&clearTimeout(m.current)}),[]);let g=(0,B.useCallback)(async()=>{let r={languageCode:(0,pi.default)(),offset:0,limit:lke,filters:t,search:n,sortColumn:null,sortOrder:`ASC`,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,...e&&{draftJobsMode:e}};try{p.current&&f(!0);let e=await QF.query({query:_K,variables:r,fetchPolicy:`no-cache`}),t=e.data.getJobListview;if(t?.error!==`false`&&t?.error!==!1&&t?.error!=null)throw e;p.current&&(o(t),c(t?.info?.total),f(!1),i&&i())}catch(e){R.default.warn(`[ERROR] cannot fetch MapViewData`,e),p.current&&(u(!0),f(!1))}},[e,t,n,i]);(0,B.useEffect)(()=>{h.current||(h.current=!0,g())},[g]),(0,B.useEffect)(()=>{r&&h.current&&(m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{g()},50))},[r,g]);let _=(0,B.useCallback)(()=>{u(!1)},[]),v=a===null||d;return{rawResults:a?.result||[],totalResultsNumber:s,showError:l,isLoading:v,fetchRows:g,dismissError:_}}var K4=()=>!1;function q4({onMarkerClick:e=()=>{},userIsAdmin:t=!1,draftJobsMode:n=!1,disabledSearch:r=!1,disableTableFilters:i=!1,isFeatureFlagJobForwardingEnabled:a=!1}){let{trackClick:o,trackFilter:s,trackSearch:c}=nT(`MapViewFetcher`),l=(0,B.useRef)(null),[u,d]=(0,B.useState)(!1),[f,p]=(0,B.useState)(!1),[m,h]=(0,B.useState)({startDate:(0,z.default)().subtract(7,`d`),endDate:(0,z.default)()}),g=j(PC),_=Z0(`jobs-map`,!1),v=Z0(`jobs`,!1),y=_.initialPreferences||v.initialPreferences,b=v2({viewMode:`jobs`,userIsAdmin:t,draftJobsMode:n,isFeatureFlagJobForwardingEnabled:a,initialPreferences:(0,B.useMemo)(()=>({...y,currentTimeFilter:`today`}),[y]),onPreferencesChange:_.savePreferences}),x=(0,B.useCallback)(()=>{b.clearNeedsRefetch()},[b]),S=uke({draftJobsMode:n,queryFilters:b.queryFilters,searchValue:b.searchValue,needsRefetch:b.needsRefetch,onFetchComplete:x}),C=(0,B.useCallback)(e=>{s(`map_main_filter`,{value:e,previous:b.currentMainFilter}),b.setMainFilter(e)},[b,s]),w=(0,B.useCallback)(()=>{p(!0)},[]),T=(0,B.useCallback)(()=>{p(!1)},[]),E=(0,B.useCallback)(()=>{s(`map_custom_date_range`,{startDate:m.startDate?.format(`YYYY-MM-DD`),endDate:m.endDate?.format(`YYYY-MM-DD`)}),b.setCustomTimeFilterDate(m),T()},[b,m,T,s]),D=(0,B.useCallback)(e=>{if(e===`between`){s(`map_time_filter`,{value:e,previous:b.currentTimeFilter}),b.setTimeFilter(e),w();return}b.currentTimeFilter!==e&&(s(`map_time_filter`,{value:e,previous:b.currentTimeFilter}),b.setTimeFilter(e))},[b,w,s]),ee=(0,B.useCallback)(e=>{b.setSearchValue(e),e&&c(`map_search`,e,{context:`map_view`})},[b,c]),te=(0,B.useCallback)(()=>
2840{if(b.searchValue!==``&&u)return;let e=!u;o(`map_search_toggle`,{action:e?`open`:`close`}),d(e),e&&setTimeout(()=>{l.current?.focus()},50)},[b.searchValue,u,o]),ne=(0,B.useCallback)((t,n)=>{e(t,n,b.currentMainFilter)},[e,b.currentMainFilter]),re=b.mainFilters.filter(e=>e.id!==`jobsReceived`);return(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,height:`100%`,width:`100%`,background:`var(--color-bg)`,p:2},children:[!i&&(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:2,mb:2,minHeight:30,px:2,py:1.5,background:`var(--color-bg-paper)`,borderRadius:`var(--radius-md)`,boxShadow:`var(--shadow-sm)`},children:[(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,flex:`1 1 0`,minWidth:0},children:(0,K.jsx)(Vw,{mainFilters:re,currentMainTab:b.currentMainFilter,timeFilters:b.timeFilters,currentTimeTab:b.currentTimeFilter,customDateRange:m,onMainFilterChange:C,onTimeFilterChange:D})}),(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,gap:.5,flexShrink:0,ml:`auto`},children:!r&&(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[u&&(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,"& > div":{p:0}},children:(0,K.jsx)($f,{inputRef:l,onChange:ee,value:b.searchValue,placeholder:U(`list_view.search`)})}),(0,K.jsx)(I,{onClick:te,sx:{display:`inline-block`,fontSize:16,px:`10px`,cursor:`pointer`,userSelect:`none`,height:30,lineHeight:`30px`},children:(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,height:`100%`}
2840,children:(0,K.jsx)(Y.IcSearch,{fill:`#36ACB2`})})})]})})]}),(0,K.jsx)(I,{sx:{flex:1,minHeight:0,borderRadius:`var(--radius-md)`,overflow:`hidden`,boxShadow:`var(--shadow-sm)`},children:(0,K.jsx)(hT,{rawResults:S.rawResults,isLoading:S.isLoading,onMarkerClick:ne,propertiesData:g})}),(0,K.jsxs)(X,{width:`auto`,height:`auto`,onClose:T,show:f,children:[(0,K.jsx)(`div`,{style:{color:`var(--color-text)`,fontSize:`18px`,fontWeight:600,marginBottom:`16px`},children:U(`list_view.choose_date_range`)}),(0,K.jsx)(X.Text,{children:(0,K.jsx)(cp,{isDayBlocked:K4,isOutsideRange:K4,startDate:m.startDate,endDate:m.endDate,onDatesChange:({startDate:e,endDate:t})=>h({startDate:e,endDate:t}),numberOfMonths:2})}),(0,K.jsx)(X.Options,{children:(0,K.jsx)(X.Ok,{onClick:E,children:U(`list_view.continue`)})})]}),(0,K.jsx)(wf,{open:S.showError,message:U(`login.error`),onClose:S.dismissError,error:!0})]})}q4.propTypes={onMarkerClick:V.default.func,userIsAdmin:V.default.bool,draftJobsMode:V.default.bool,disabledSearch:V.default.bool,disableTableFilters:V.default.bool,isFeatureFlagJobForwardingEnabled:V.default.bool};var J4=({viewMode:e,onChange:t})=>(0,K.jsxs)(qr,{value:e,exclusive:!0,onChange:(e,n)=>{n!==null&&t(n)},size:`small`,sx:{"& .MuiToggleButton-root":{textTransform:`none`,px:1.5,py:.5,fontSize:`0.8125rem`,gap:.5,color:`var(--color-text-secondary)`,borderColor:`var(--color-border, rgba(0,0,0,0.12))`,"&.Mui-selected":{backgroundColor:`var(--color-primary-alpha-10, rgba(54,172,178,0.1))`,color:`var(--color-primary, #36ACB2)`,borderColor:`var(--color-primary-alpha-20, rgba(54,172,178,0.25))`,"&:hover":{backgroundColor:`var(--color-primary-alpha-15, rgba(54,172,178,0.15))`}},"&:hover":{backgroundColor:`var(--color-bg-hover, rgba(0,0,0,0.04))`}}},children:[(0,K.jsxs)(ai,{value:`list`,"aria-label":U(`jobs.view_list`),children:[(0,K.jsx)(xee,{sx:{fontSize:18}}),U(`jobs.view_list`)]}),(0,K.jsxs)(ai,{value:`map`,"aria-label":U(`jobs.view_map`),children:[(0,K.jsx)(ii,{sx:{fontSize:18}}),U(`jobs.view_map`)]})]});J4.propTypes={viewMode:V.default.oneOf([`list`,`map`]).isRequired,onChange:V.default.func.isRequired};var dke=e=>e,fke=()=>!0;function Y4({key:e,defaultValue:t,isValid:n=fke,normalize:r=dke,coerceInvalidWrite:i}){return{get(){let i=vi.get(e);return i===void 0||!n(i)?t:r(i)},set(t){n(t)?vi.set(e,r(t)):typeof i==`function`&&vi.set(e,i(t))}}}var pke=`jobs.viewMode`,mke=`list`,hke=[`list`,`map`],X4=Y4({key:pke,defaultValue:mke,isValid:e=>hke.includes(e)});function gke(){return X4.get()}function _ke(e){X4.set(e)}Qn();var Z4={show:!1,type:null,data:null},Q4={show:!1,type:null,message:``},vke=()=>{let e=Vn(),t=Rn(),n=ir(),r=xe(),{trackClick:i}=nT(`JobsContainer`),[a,o]=(0,B.useState)(!1),[s,c]=(0,B.useState)(!1),[l,u]=(0,B.useState)(gke),[d,f]=(0,B.useState)(Z4),[p,m]=(0,B.useState)(Q4),h=(0,B.useRef)(),g=(0,B.useMemo)(()=>fB($a.FEATURE_FLAG_JOB_FORWARDING),[]),_=(0,B.useMemo)(()=>fB($a.FEATURE_FLAG_JOBS_MAP_VIEW),[]),v=j(e=>sB(e,{})),y=j(dW),b=j($Y),S=j(BC),C=j(e=>g(e,{})),w=j(e=>_(e,{})),T=j(e=>IC(e,{})),E=j(hw),D=(0,B.useRef)(!1),[ee,te]=(0,B.useState)(!1);(0,B.useEffect)(()=>{if(E===c_.LOADING){D.current=!0,te(!1);return}if(E===c_.NOTLOADED&&D.current&&l===`map`&&!w){te(!0);return}(E===c_.LOADED||w||l!==`map`)&&te(!1)},[E,w,l]);let ne=E===c_.LOADED,re=l===`map`&&!w&&!ne&&!ee,O=w?l:`list`,ie=new z2({notifications:y,setNotifications:e=>r(eK(e))}),ae=(e,t,n=!1)=>
2840{if(s)return;let r=n2(e);h.current?.showView({id:e.id,title:`${r?.propertyData?.title}${r?.title?` (${r?.title})`:``}`,data:{id:e.id,disabledPayoutInfo:!0,imageUrl:r?.propertyData?.pictureIdentifier||``,disabledChecklistCompletionInfo:!0,disabledPaymentDetails:!0,jobsReceivedMode:t===`jobsReceived`},fromRoute:n,sharedDataResolver:t===`jobsReceived`?fQ:dQ,getJobEvents:yZ})};(0,B.useEffect)(()=>{nme()},[]),(0,B.useEffect)(()=>{su(`titles.jobs`)();let{id:e}=t||{},i=new URLSearchParams(n.search).get(`search`);r($P(`jobs`,``)),(e||i)&&setTimeout(()=>{ae({id:e||i},!1,!0)},2e3)},[]),(0,B.useEffect)(()=>{b===Qa.REFRESH_LV&&(o(!0),h?.current?.refreshCurrentElement?.(),setTimeout(()=>{o(!1)},100),r(vY(!1)))},[b,r]);let oe=()=>{i(`jobs_create_job_button`,{action:`create_job`}),r(XK({mode:l_.normal,source:`contact`,data:{jobType:no.turnover,cleaners:[],startTime:Jc((0,z.default)().add(3,`minutes`)),endTime:Jc((0,z.default)().add(63,`minutes`)),duration:60,jobStartTimeType:`fixed`}}))},se=e=>{r(XK({mode:l_.draftJobEdit,source:`drafts`,draftJobId:e.id,prevJobRequestId:e.id,data:{id:e.id}}))},ce=()=>f(Z4),le=e=>{if(!(S||[]).includes(e))throw Error(`User does not have permission to send job`)},ue=(e,t)=>{let n=n2(e);try{if(le(n?.propertyId),t===Za.DELETE_DRAFT_JOB){f({show:!0,type:Za.DELETE_DRAFT_JOB,data:n});return}if(t===Za.EDIT_DRAFT_JOB){se(n);return}t===Za.SEND_DRAFT_JOB&&f({show:!0,type:Za.SEND_DRAFT_JOB,data:n})}catch(e){R.default.info(`handleAutoschedulerAction`,e),m({show:!0,type:`error`,message:U(`autoscheduler.error_no_permission_to_perform_action`)})}},de=(0,B.useCallback)(()=>{c(e=>{let t=!e;return ed(qu.UI,Ju.TOGGLE,{feature:`draft_jobs_mode`,enabled:t,component:`JobsContainer`,view:`jobs`}),t&&u(`list`),t}),o(!0),setTimeout(()=>{o(!1)},50)},[]),fe=(0,B.useCallback)(e=>{i(`jobs_view_mode_toggle`,{value:e}),ed(qu.UI,Ju.TOGGLE,{feature:`jobs_view_mode`,value:e,component:`JobsContainer`}),_ke(e),u(e)},[i]);return(0,K.jsxs)(M$,{currentPage:`jobs`,children:[(0,K.jsx)(Yj,{children:(0,K.jsx)(Zj,{children:(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,height:`100%`,overflow:`hidden`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,justifyContent:`space-between`,gap:2,p:{xs:1.5,md:2.2},mx:2,mt:1.5,mb:1,borderRadius:2,border:`1px solid var(--color-border)`,bgcolor:`var(--color-checklist-sidebar-bg)`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:2},children:[(0,K.jsx)(x,{variant:`h5`,sx:{fontWeight:600,lineHeight:1.3},children:U(`jobs.jobs`)}),!s&&w&&(0,K.jsx)(J4,{viewMode:O,onChange:fe})]}),(0,K.jsx)(q,{types:[`type-full-primary`,`size-medium`],onClick:oe,children:U(`jobs.create_job`)})]}),(0,K.jsxs)(I,{sx:{flex:1,overflow:`hidden`,backgroundColor:`var(--color-bg-jobrequest)`,position:`relative`},children:[(0,K.jsx)(I,{sx:{position:`absolute`,top:0,right:0,left:0,bottom:0,overflowY:`scroll`,overflowX:`hidden`,WebkitOverflowScrolling:`touch`,display:O===`list`||s?`block`:`none`},children:a||re?(0,K.jsxs)(I,{sx:{mt:2},children:[(0,K.jsxs)(I,{sx:{display:`flex`,gap:2,p:`12px 16px`,borderBottom:`1px solid var(--color-light-border)`},children:[(0,K.jsx)(J,{height:14,width:100}),(0,K.jsx)(J,{height:14,width:120}),(0,K.jsx)(J,{height:14,width:100}),(0,K.jsx)(J,{height:14,width:70}),(0,K.jsx)(J,{height:14,width:70}),(0,K.jsx)(J,{height:14,width:120}),(0,K.jsx)(J,{height:14,width:100}),(0,K.jsx)(J,{height:14,width:60}),(0,K.jsx)(J,{height:14,width:110}),(0,K.jsx)(J,{height:14,width:70})]}),[1,2,3,4,5,6,7,8,9,10].map(e=>(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:2,p:`10px 16px`,borderBottom:`1px solid var(--color-light-border)`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1,width:100},children:[(0,K.jsx)(J,{height:28,width:28,variant:`rounded`}),(0,K.jsx)(J,{height:14,width:50})]}),(0,K.jsx)(J,{height:14,width:120}),(0,K.jsx)(J,{height:14,width:100}),(0,K.jsx)(J,{height:14,width:70}),(0,K.jsx)(J,{height:14,width:70}),(0,K.jsx)(J,{height:14,width:120}),(0,K.jsx)(J,{height:14,width:80}),(0,K.jsx)(J,{height:14,width:60}),(0,K.jsx)(J,{height:14,width:90}),(0,K.jsx)(J,{height:24,width:70,variant:`rounded`})]},e))]}):(0,K.jsx)(y2,{viewMode:`jobs`,onRowClick:(e,t)=>{i(`jobs_list_row_click`,{action:`view_job`}),ae(e,t)},onRowActions:ue,disabledExports:!0,disabledBulkActions:!0,userIsAdmin:v,notifications:y,disabledSearch:s,disableTableToolbar:s,draftJobsMode:s,onDraftJobsModeChange:de,cacheBuster:s,isFeatureFlagJobForwardingEnabled:C,subscription:T})}),O===`map`&&!s&&w&&(0,K.jsx)(I,{sx:{position:`absolute`,top:0,right:0,left:0,bottom:0},children:(0,K.jsx)(q4,{onMarkerClick:(e,t,n)=>
2840{i(`jobs_map_marker_click`,{action:`view_job`,jobId:e});let r=t?.property?.title||``,a=t?.job?.title||``,o=t?.property?.pictureIdentifier||``;h.current?.showView({id:e,title:`${r}${a?` (${a})`:``}`,data:{id:e,disabledPayoutInfo:!0,imageUrl:o,disabledChecklistCompletionInfo:!0,disabledPaymentDetails:!0,jobsReceivedMode:n===`jobsReceived`},fromRoute:!1,sharedDataResolver:n===`jobsReceived`?fQ:dQ,getJobEvents:yZ})},userIsAdmin:v,isFeatureFlagJobForwardingEnabled:C})})]})]})})}),!s&&(0,K.jsx)(G4,{ref:h,viewMode:`jobs`,disabledTabs:{activityLog:!0},notificationsManagerInstance:ie,notifications:y,onClose:()=>e(`/jobs`,{replace:!0}),onElementChange:t=>e(`/jobs/${t}`,{replace:!0})}),d.show&&(0,K.jsx)(e1,{onCloseModal:ce,modalState:d,sendDraftJobSaga:(e,t,n,i,a,o,s)=>r(JK(e,t,n,i,a,o,s)),deleteDraftJobSaga:(e,t,n,i,a)=>r(YK(e,t,n,i,a)),setShowSnackbar:m}),p.show&&(0,K.jsx)(wf,{open:!0,message:p.message,onClose:()=>m(Q4),error:p.type===`error`,success:p.type===`success`})]})},$4=e=>j(EC)?(0,K.jsx)(Nf,{moduleName:`jobs`,customDescription:U(`jobs.error_load`)||`Unable to load jobs. Please try again.`,children:(0,K.jsx)(vke,{...e})}):`...`;$4.propTypes={props:V.default.shape({}).isRequired},Qn();var yke=()=>(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(N,{element:(0,K.jsx)(UB,{}),children:(0,K.jsx)(N,{element:(0,K.jsx)(KB,{}),children:(0,K.jsxs)(N,{element:(0,K.jsx)(sV,{feature:s_.webapp}),children:[(0,K.jsx)(N,{path:`/jobs`,element:(0,K.jsx)($4,{})}),(0,K.jsx)(N,{path:`/jobs/:id`,element:(0,K.jsx)($4,{})})]})})})});function e3(e,t){return Wn(Z.contactPage(e,t))}function bke(){return Wn(Z.contacts)}function xke(e){return Wn(Z.contactPageAll(e))}function t3(e){return{type:lE,data:e}}function Ske(){return{type:uE}}function n3(e,t){return{type:cE,data:e,meta:t}}function Cke(e){return{type:dE,contactId:e}}function wke(e){return{type:fE,inviteData:e}}function Tke(){return{type:mE}}function Eke(){return{type:pE}}function r3(e,t){return n3({view:6,isOpen:!0},{objectId:t})}function i3(){return n3({view:1,isOpen:!0})}function Dke(e){return{type:sE,contactId:e}}function Oke(e){return{type:hE,contactId:e}}function kke(e,t){return{type:gE,contactId:e,allCompletedSkillsIds:t}}function Ake({row:e,key:t,style:n,ctx:{isActive:r,currentUserId:i,onClick:a,canShowProBadge:o}}){let s=Jo(e,!1,i),c=Yo(e);return(0,K.jsx)(Kj,{"data-testid":`contact-search-row-container`,style:n,picture:{text:Go(e?.userData?.firstName,e?.userData?.lastName),picture:e?.userData?.pictureUrl},type:`contact`,noHover:!0,onClick:a(e),active:r(e),title:s,subTitleColor:c.color?`orange`:void 0,subTitle:c.value,proMarketProperty:o&&e.listSuggestedCleaner},t)}var jke=kw(`contacts`,`contacts`,KC),a3=({activeId:e,activeSection:t})=>{let n=xe(),{result:r,searchQuery:i}=j(jke),a=j(EC),o=j(VC),s=(0,B.useMemo)(()=>(0,bo.default)((0,xo.default)(r,e=>!e.deleted),[e=>(e.userData?.firstName||``).toLowerCase(),e=>e.objectId||``],[`asc`,`asc`]),[r]);return(0,K.jsxs)(Pj,{children:[(0,K.jsx)(I,{sx:{px:2},children:(0,K.jsx)($f,{blank:!0,placeholder:U(`list_view.search`),value:i,iconLocation:`left`,onChange:e=>n($P(`contacts`,e))})}),(0,K.jsx)(Pj.Hr,{}),(0,K.jsx)(I,{sx:{flex:1},children:((r,i)=>{let s=e=>()=>n(e3(e.objectId,t));if(i&&r.length===0)return(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.NoRes,{children:U(`properties.no_result`)})});let c=t=>t.objectId===e,l=r?.findIndex?.(c);return(0,K.jsx)(Ft,{children:({height:e,width:t})=>(0,K.jsx)(ui,{height:e,rowHeight:68,rowCount:r.length,rowRenderer:Co({data:r,handler:Ake,ctx:{onClick:s,currentUserId:a,isActive:c,canShowProBadge:o}}),width:t,scrollToIndex:l||void 0})})})(s,!!i)})]})};a3.propTypes={activeId:V.default.string,activeSection:V.default.string};var o3=e=>e.contacts;A(o3,e=>e?.contactPaginationState);var Mke=A(o3,e=>e?.modal),s3=A(o3,e=>e?.modalData),Nke=e=>A(o3,t=>t?.contactCompletedSkills?.[e]),Pke={position:`relative`,height:`180px`},c3={paddingTop:`var(--space-base)`,display:`flex`},l3={flex:1,justifyContent:`center`,alignItems:`center`,display:`flex`},u3={fontFamily:`'Plus Jakarta Sans', Helvetica, Arial, sans-serif`,fontSize:`12px`,color:`var(--color-red)`,textAlign:`center`},Fke={marginTop:`4px`,display:`flex`,justifyContent:`center`};function d3({activeContactId:e=void 0}){let t=xe(),n=(0,B.useRef)(),[r,i]=(0,B.useState)(`phone`),a=(0,B.useMemo)(()=>cw(e),[e]),o=j(e=>a(e,{})),s=j(Mke),c=j(s3),l=s,u=c;(0,B.useEffect)(()=>{let e=n.current;l.isOpen&&!e?.isOpen&&l.view===1&&ype(),n.current=l},[l]);let d=(0,B.useCallback)(e=>n=>{t(t3({[e]:n.target.value}))},[t]),f=(0,B.useCallback)(e=>{t(t3({[e]:``}))},[t]),p=(0,B.useCallback)(()=>{t(Tke())},[t]),m=(0,B.useCallback)(e=>{f(`email`),f(`phone`),i(e)},[f]),h=(e,t)=>{let n={};return!Ql(e.email)&&!e.phoneNumber&&(n.email=!0),!$l(e.phoneNumber)&&!e.email&&(n.phoneNumber=!0),{isValid:(0,Ux.default)(n).length===0,errors:t?n:{}}},g=(e,t)=>{let n={};return e.firstName||(n.firstName=U(`contacts.please_first_name`)),e.lastName||(n.lastName=U(`contacts.please_last_name`)),{isValid:(0,Ux.default)(n).length===0,errors:t?n:{}}},_=(e,t)=>
2840{let n={};return e.firstName||(n.firstName=!0),e.lastName||(n.lastName=!0),e.phoneNumber&&!$l(e.phoneNumber)&&(n.phoneNumber=!0),e.email&&!Ql(e.email)&&(n.email=!0),!e.email&&!e.phoneNumber&&(n.email=U(`contacts.please_enter_at_least`)),{isValid:(0,Ux.default)(n).length===0,errors:t?n:{}}},v=()=>(0,K.jsx)(I,{sx:Pke,children:(0,K.jsx)(xf,{static:!0})}),y=()=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{type:``,children:(0,K.jsx)(Kg,{type:`bold`,children:U(`contacts.congrats`)})}),(0,K.jsx)(X.Text,{children:(0,K.jsx)(Yg,{children:U(`contacts.send_invitation_success_exist`,{name:u.firstName})})}),(0,K.jsx)(ym,{}),(0,K.jsxs)(I,{sx:c3,children:[(0,K.jsx)(I,{sx:l3}),(0,K.jsx)(q,{"data-testid":`invitation_success_exist_ok`,types:[`type-full-primary`,`size-large`,`miwidth-80`],onClick:p,children:U(`contacts.send_invitation_success_ok`)})]})]}),b=()=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{type:``,children:(0,K.jsx)(Kg,{type:`bold`,children:U(`contacts.congrats`)})}),(0,K.jsx)(X.Text,{children:(0,K.jsx)(Yg,{children:U(`contacts.send_invitation_success_l1`,{name:u.firstName})})}),(0,K.jsx)(X.Text,{children:(0,K.jsx)(Yg,{children:U(`contacts.send_invitation_success_l2`)})}),(0,K.jsx)(ym,{}),(0,K.jsxs)(I,{sx:c3,children:[(0,K.jsx)(I,{sx:l3}),(0,K.jsx)(q,{"data-testid":`invitation_success_ok`,onClick:p,types:[`type-full-primary`,`size-large`,`miwidth-80`],children:U(`contacts.send_invitation_success_ok`)})]})]}),x=()=>{let{errors:e,isValid:n}=g(u,l.showErrors),r=e=>{t(e?Eke():n3({showErrors:!0}))};return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{type:``,children:(0,K.jsx)(Kg,{type:`bold`,children:U(`contacts.invite_cleaner_modal`)})}),(0,K.jsx)(X.Text,{children:(0,K.jsx)(Yg,{children:U(`contacts.enter_first_last`)})}),(0,K.jsx)(ym,{}),(0,K.jsx)(Yf,{"data-testid":`email_first_name`,isFirst:!0,type:`text`,placeholder:U(`contacts.first_name`),error:e.firstName,value:u.firstName,onChange:d(`firstName`)}),(0,K.jsx)(Yf,{"data-testid":`email_last_name`,isLast:!0,type:`text`,placeholder:U(`contacts.last_name`),error:e.lastName,value:u.lastName,onChange:d(`lastName`)}),(0,K.jsx)(Yf.ErrorMsg,{children:e.lastName||e.firstName}),(0,K.jsx)(ym,{}),l.hasError&&(0,K.jsx)(I,{sx:u3,children:U(`contacts.error_request`)}),(0,K.jsxs)(I,{sx:c3,children:[(0,K.jsx)(I,{sx:l3}),(0,K.jsx)(q,{"data-testid":`contact_invite`,fakeDisable:!n,types:[`type-full-primary`,`size-large`,`miwidth-80`],onClick:()=>r(n),children:U(`contacts.invite`)})]})]})},S=()=>{let{errors:e,isValid:n}=_(u,l.showErrors),r=(0,Rf.default)(e.email)?{showErrorMsg:!0,error:e.email}:{},i=e=>{t(e?Cke(o.objectId):n3({showErrors:!0}))};return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{type:``,children:(0,K.jsx)(Kg,{type:`bold`,children:U(`contacts.resent_invite_modal`)})}),(0,K.jsx)(X.Text,{children:(0,K.jsx)(Yg,{children:U(`contacts.resent_invite_info`)})}),(0,K.jsx)(ym,{}),(0,K.jsx)(Yf,{"data-testid":`resend_first_name`,isFirst:!0,type:`text`,placeholder:U(`contacts.first_name`),error:e.firstName,value:u.firstName,onChange:d(`firstName`)}),(0,K.jsx)(Yf,{"data-testid":`resend_last_name`,isLast:!0,type:`text`,placeholder:U(`contacts.last_name`),error:e.lastName,value:u.lastName,onChange:d(`lastName`)}),(0,K.jsx)(ym,{}),(0,K.jsxs)(Yf.TwoSplit,{type:`bigger`,children:[(0,K.jsx)(Yf,{"data-testid":`resend_phone_country_code`,twoSplit:`leftsmall`,type:`select`,style:{color:Wp},options:Wl,onChange:d(`phoneCountryCode`),transformSelectTitle:Kl,error:!1,isFirst:!0,styleOverwrite:{borderTopRightRadius:0,borderBottomRightRadius:0},value:u.phoneCountryCode}),(0,K.jsx)(Yf,{"data-testid":`resend_phone_number`,twoSplit:`rightbig`,type:`text`,onChange:d(`phoneNumber`),placeholder:U(`contacts.phone`),error:e.phoneNumber,isFirst:!0,styleOverwrite:{borderTopLeftRadius:0,borderBottomLeftRadius:0},value:u.phoneNumber})]}),(0,K.jsx)(Yf,{"data-testid":`resend_email`,isLast:!0,type:`text`,placeholder:U(`contacts.email`),...r,value:u.email,onChange:d(`email`)}),(0,K.jsx)(ym,{}),l.hasError&&(0,K.jsx)(I,{sx:u3,children:U(`contacts.error_request`)}),(0,K.jsxs)(I,{sx:c3,children:[(0,K.jsx)(I,{sx:l3}),(0,K.jsx)(q,{"data-testid":`resend_invite_button`,fakeDisable:!n,types:[`type-full-primary`,`size-large`,`miwidth-80`],onClick:()=>i(n),children:U(`contacts.invite`)})]})]})},C=()=>{let{errors:e,isValid:n}=h(u,l.showErrors),i=r===`email`,a=e=>{let n=i?{email:u.email,type:`email`}:{phoneCountryCode:u.phoneCountryCode,phoneRegionalNumber:u.phoneNumber,type:`phone`};t(e?wke(n):n3({showErrors:!0}))};return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{type:``,children:(0,K.jsx)(Kg,{type:`bold`,children:U(`contacts.invite_cleaner_modal`)})}),(0,K.jsx)(X.Text,{children:(0,K.jsx)(Yg,{children:U(i?`contacts.enter_byemail`:`contacts.enter_byphone`)})}),(0,K.jsx)(ym,{}),r===`phone`&&(0,K.jsxs)(Yf.TwoSplit,{type:`bigger`,children:[(0,K.jsx)(Yf,{twoSplit:`leftsmall`,type:`select`,style:{color:`#36AC
2840B2`},options:Wl,onChange:d(`phoneCountryCode`),transformSelectTitle:Kl,error:!1,isFirst:!0,isLast:!0,styleOverwrite:{borderTopRightRadius:0,borderBottomRightRadius:0},value:u.phoneCountryCode}),(0,K.jsx)(Yf,{"data-testid":`invite_with_phone`,twoSplit:`rightbig`,type:`text`,onChange:d(`phoneNumber`),placeholder:U(`contacts.phone`),error:e.phoneNumber,isFirst:!0,isLast:!0,styleOverwrite:{borderTopLeftRadius:0,borderBottomLeftRadius:0},value:u.phoneNumber})]}),r===`email`&&(0,K.jsx)(Yf,{"data-testid":`invite_with_email`,isLast:!0,isFirst:!0,type:`text`,placeholder:U(`contacts.email`),error:e.email,value:u.email,onChange:d(`email`)}),(0,K.jsx)(I,{sx:Fke,children:(0,K.jsx)(q,{"data-testid":`email_instead`,onClick:()=>m(i?`phone`:`email`),types:[`type-flat-grey`,`size-small`,`fontw-normal`],children:U(i?`contacts.use_phone_instead`:`contacts.use_email_instead`)})}),l.hasError&&(0,K.jsxs)(I,{sx:u3,children:[(0,K.jsx)(ym,{}),U(`contacts.error_request`)]}),(0,K.jsxs)(I,{sx:c3,children:[(0,K.jsx)(I,{sx:l3}),(0,K.jsx)(q,{"data-testid":`email_Next`,fakeDisable:!n,types:[`type-full-primary`,`size-large`,`miwidth-80`],onClick:()=>a(n),children:U(`contacts.next`)})]})]})};return(0,K.jsx)(X,{height:`auto`,message1:U(`properties.loading_fail_property_head`),message2:U(`properties.loading_fail_property`),show:l.isOpen,onClose:p,children:(e=>e===1?C():e===2?x():e===3?b():e===4?y():e===5?v():e===6?S():null)(l.view)})}d3.propTypes={activeContactId:V.default.string},Qn();function f3(){let e=ir(),t=Rn(),n=xe(),{trackClick:r}=nT(`ContactsContainer`),i=t?.contactDetailView;(0,B.useEffect)(()=>{ime()},[]),(0,B.useEffect)(()=>{su(`titles.contacts`)(),n($P(`contacts`,``))},[n]);let a=e.pathname===Z.contacts;return(0,K.jsx)(M$,{currentPage:`contacts`,children:(0,K.jsxs)(Nf,{moduleName:`contacts`,customDescription:U(`contacts.error_load`)||`Unable to load contacts. Please try again.`,children:[(0,K.jsx)(Yj,{children:(0,K.jsx)(Zj,{children:(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,height:`100%`,overflow:`hidden`},children:[(0,K.jsx)(Om,{title:U(`contacts.service_providers_title`),action:(0,K.jsx)(Mw,{hasAccessFormatter:e=>e.canSendJobsGlobal,render:e=>e&&(0,K.jsx)(q,{"data-testid":`button_invite_cleaner_header`,onClick:()=>{r(`contacts_invite_cleaner_header`,{action:`invite_cleaner`}),n(i3())},types:[`type-full-primary`,`size-medium`],children:U(`contacts.invite_service_provider`)})})}),(0,K.jsx)(I,{sx:{flex:1,overflow:`hidden`,backgroundColor:`var(--color-bg-jobrequest)`,position:`relative`,borderRadius:`12px 12px 0 0`,mx:1},children:(0,K.jsxs)(Uj,{children:[(0,K.jsx)(zj,{children:(0,K.jsx)(a3,{activeSection:i,activeId:t.id})}),(0,K.jsx)(Wj,{grey:!0,children:a?(0,K.jsx)(Mw,{hasAccessFormatter:e=>e.canSendJobsGlobal,render:e=>(0,K.jsx)(MM,{type:`invitecleaner`,meta:{hasBtn:e},onClick:()=>{r(`contacts_invite_cleaner_empty`,{action:`invite_cleaner`}),n(i3())}})}):(0,K.jsx)(kn,{})})]})})]})})}),(0,K.jsx)(d3,{activeContactId:t.id})]})})}var Ike=()=>{let e=xe(),t=j(mw(u_.CONTACT_DELETE_MODAL));return(0,K.jsx)(Dg,{message1:U(`contacts.delete_fail_contact_head`),message2:U(`contacts.delete_fail_contact`),show:!!t.isOpen,onClose:()=>e(dF(!1,u_.CONTACT_DELETE_MODAL))})};Qn();var Lke={height:`135px`,width:`180px`,marginRight:`24px`,boxSizing:`content-box`,flexShrink:0,borderRadius:`14px`,boxShadow:`var(--shadow-sm)`,overflow:`hidden`,position:`relative`,cursor:`pointer`,transition:`transform 0.2s ease, box-shadow 0.2s ease`,"&::before":{content:`""`,position:`absolute`,inset:0,background:`var(--color-primary)`,opacity:0,transition:`opacity 0.2s ease`,zIndex:1,pointerEvents:`none`,borderRadius:`14px`},"&:hover::before":{opacity:.08},"&:hover":{transform:`scale(1.02)`,boxShadow:`var(--shadow-md)`}},Rke={padding:`32px`,background:`var(--color-white)`,borderRadius:`var(--radius-lg, 14px)`,boxShadow:`var(--shadow-sm)`,border:`1px solid var(--color-border)`},zke={display:`flex`,flex:1},Bke={flexGrow:1},Vke={maxWidth:`335px`},Hke={display:`flex`,flexDirection:`column`,justifyContent:`space-between`,width:`17rem`},Uke={fontFamily:`'Plus Jakarta Sans', Helvetica, Arial, sans-serif`,fontSize:`16px`,lineHeight:`22px`,fontWeight:400,color:`var(--color-orange)`,textDecoration:`underline`,cursor:`pointer`};function Wke(e,t){return n=>{if(!t?.contactId)return!1;let{scheduledEndTime:r,propertyData:i,requestedCleaners:a}=n||{},{timeZone:o}=i||{},s=n.getCleanerStatusByContactId(a,t?.contactId);return[Ua.Pending,Ua.Accepted,Ua.InProgress,Ua.PendingChanges,Ua.Viewed].indexOf(s)!==-1&&(0,z.default)(r).tz(o).isAfter(e)}}function Gke({children:e}){let t=ir(),n=Rn(),r=xe(),{trackClick:i,trackTab:a}=nT(`ContactDetailContainer`),o=j(VC),s=j(e=>e.currentUser),c=j(e=>cw(n?.id)(e,{})),l=j(e=>sw(e,{})),u=j(e=>Nke(n?.id)(e,{})),d=j(hw)===c_.LOADED,f=o,p=!!(c?.userData&&!c?.deleted),m=c?.userData||{},h=c?.profile||{},g=`${m.firstName||``} ${m.lastName||``}
2840`.trim(),_=m.email||null,v=m.phone||null,y=m.pictureUrl,b=Go(m.firstName,m.lastName),x=m.bio,S=h.propertyPhotos?.length>0,C=(0,B.useMemo)(()=>u?u.map(({title:e})=>e||U(`skills.no_skill`)):[],[u]),w=x||S||C.length>0,T=(()=>{let e=t.pathname,{id:r}=n;if(e===Z.contactPage(r))return 2;if(e===Z.contactPageAll(r))return 1})(),E=!(s.user&&c?.userData?.email===s.user.email);(0,B.useEffect)(()=>{n.id&&r(eF(`contacts`,n.id))},[n.id,r]),(0,B.useEffect)(()=>{n.id&&c?.userData?.signedUp&&r(Oke(n.id))},[n.id,c?.userData?.signedUp,r]);let D=()=>{i(`contact_delete_button`,{action:`delete_contact`}),window.confirm(U(`contacts.really_delete_contact`))===!0&&r(Dke(c?.objectId))},ee=e=>{r(YJ(e.jobId))},te=e=>t=>{i(`contact_gallery_open`,{action:`open_gallery`}),r(tF({isOpen:!0,images:(0,H.default)(e,e=>({image:e})),index:t}))},ne=()=>{i(`contact_send_job_request`,{action:`send_job_request`});let e=(0,G.default)(c,[`userData`,`objectId`]);r(XK({mode:`normal`,source:`contact`,data:{jobType:no.turnover,cleaners:[e],startTime:Jc((0,z.default)().add(3,`minutes`)),endTime:Jc((0,z.default)().add(63,`minutes`)),duration:`60`,jobStartTimeType:`fixed`}}))},re=(e,t)=>{if(!e||!t)return null;let i=e===2,o=e===1;return(0,K.jsxs)(I,{sx:{background:`var(--color-white)`,borderRadius:`var(--radius-lg, 14px)`,marginTop:`24px`,boxShadow:`var(--shadow-sm)`,border:`1px solid var(--color-border)`,overflow:`hidden`},children:[(0,K.jsxs)(Cg,{children:[(0,K.jsx)(Cg.Item,{onClick:()=>{a(`contact_jobs_tab`,`upcoming_jobs`),r(e3(n.id))},active:i,children:U(`contacts.upcoming_jobs`)}),(0,K.jsx)(Cg.Item,{onClick:()=>{a(`contact_jobs_tab`,`all_jobs`),r(xke(n.id))},active:o,children:U(`contacts.all_jobs`)})]}),(0,K.jsx)(I,{sx:{padding:`24px`},children:(0,K.jsx)(w0,{mode:`contact`,ascending:i,contactId:c?.contactId,onlyUpcoming:i,onClick:ee,filter:i&&Wke((0,z.default)().startOf(`day`),c)})})]})},O=()=>{let e=m.signedUp;if(!w)return null;let t={borderTop:`1px solid var(--color-border)`,marginTop:`20px`,paddingTop:`20px`},n={fontSize:`14px`,fontWeight:600,color:`var(--color-text-secondary)`,marginBottom:`12px`};return(0,K.jsxs)(K.Fragment,{children:[x&&(0,K.jsxs)(I,{sx:{...t,maxWidth:`700px`},children:[(0,K.jsx)(I,{component:`h4`,sx:n,children:U(`contacts.about_user`)}),(0,K.jsx)(Yg,{children:m.bio})]}),e&&C.length>0&&(0,K.jsxs)(I,{sx:{...t,maxWidth:`800px`},children:[(0,K.jsx)(I,{component:`h4`,sx:n,children:U(`skills.skills`)}),(0,K.jsx)(I,{sx:{display:`grid`,gridTemplateColumns:C.length>4?`repeat(2, 1fr)`:`1fr`,gap:`8px 40px`},children:C.map(e=>(0,K.jsxs)(Yg,{type:`reseth1`,children:[e,(0,K.jsx)(I,{component:`span`,sx:{display:`inline-flex`,alignItems:`center`,marginLeft:`8px`,verticalAlign:`middle`},children:(0,K.jsx)(Y.Ic16PxCheck,{height:`16px`,width:`16px`,byHeight:!0})})]},e))})]}),S&&(0,K.jsxs)(I,{sx:t,children:[(0,K.jsx)(I,{component:`h4`,sx:n,children:U(`contacts.properties_cleaned`,{name:m.firstName})}),(0,K.jsx)(I,{sx:{paddingLeft:`40px`,paddingRight:`40px`},children:(0,K.jsx)(Dx,{onClick:te(h.propertyPhotos),images:h.propertyPhotos,rowsPerSlide:2})})]})]})},ie=()=>!p||!E?null:(0,K.jsx)(Mw,{hasAccessFormatter:e=>e.canSendJobsGlobal,render:e=>e?(0,K.jsx)(Lg,{popoverKey:`editContact`,width:200,hasArrow:!0,arrowPosition:{horizontal:`right`,vertical:`top`},popoverContent:e=>(0,K.jsx)(Ad,{closePopover:e.closePopup,items:[{"data-testid":`delete_contact`,name:U(`contacts.delete_contact`),onClick:()=>D(),isDelete:!0},...m.signedUp?[]:[{"data-testid":`resend_invite`,name:U(`contacts.resent_invite`),onClick:()=>{i(`contact_resend_invite_menu`,{action:`resend_invite`}),r(r3(null,c?.objectId))}}]]}),children:(0,K.jsx)(br,{"data-testid":`button_popover_service_provider`,size:`small`,sx:{bgcolor:`var(--color-gray-200)`,"&:hover":{bgcolor:`var(--color-gray-300)`}},children:(0,K.jsx)(Y.IcMoreGrey,{height:`20px`,width:`20px`})})}):null});return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(Yj,{grey:!0,children:[(0,K.jsx)(Zj,{children:(0,K.jsx)(Jj,{variation:`property`,type:`absolute-scroll`,children:!p&&!d?(0,K.jsx)(xf,{}):p?(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(I,{sx:Rke,children:[(0,K.jsx)(`div`,{children:(()=>{let e=!m.signedUp,t=e?{type:`grey`}:{},n=_S((0,G.default)(h,[`badges`]),(0,G.default)(l,[`badgeOrder`]),`big`);return(0,K.jsxs)(I,{sx:zke,children:[(0,K.jsx)(I,{sx:Lke,children:(0,K.jsx)(Qd,{type:`xx-large-circle`,text:b,picture:y})}),(0,K.jsxs)(I,{sx:Bke,children:[(0,K.jsx)(`div`,{children:(0,K.jsx)(Wg,{component:`div`,type:`nomargin`,style:{wordBreak:`break-word`,paddingRight:`24px`},children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[g,f&&c?.listSuggestedCleaner&&(0,K.jsx)(I,{sx:{marginLeft:`8px`},children:(0,K.jsx)(ef,{modalRequired:!0,urls:l})})]})})}),(0,K.jsx)(gm,{}),e&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(I,{sx:Vke,children:(0,K.jsx)(Xg,{children:U(`contacts.not_invited_yet`,{name:m.firstName})})}),(0,K.jsx)(Mw,{hasAccessFormatter:e=>e.canSendJobsGlobal,renderWithPermission:()=>(0,K.jsx)(I,{component:`span`,"data-testid":`resend_invite`,onClick:()=>{i(`contact_resend_invite_main`,{action:`resend_invite`}),r(r3(null,c?.objectId))},sx:Uke,children:U(`contacts.resent_invite_main`)})}),(0,K.jsx)(ym,{})]}),(0,K.jsx)(`div`,{children:!c?.listSuggestedCleaner&&(0,K.jsx)(Jg,{...t,children:_})}),(0,K.jsx)(`div`,{children:!c?.listSuggestedCleaner&&(0,K.jsx)(Jg,{...t,children:v})}),(0,K.jsx)(_m,{}),(0,K.jsx)(gS,{size:`big`,responseTime:(0,G.default)(h,[`responseTime`])}),(0,K.jsx)(wm,{type:`vertical`,size:`15px`}),(0,K.jsx)(vS,{size:`big`,badges:n}),(0,K.jsx)(bm,{}),wX()&&(0,K.jsx)(TX,{jsonData:c,displayId:c?.objectId,mode:`contact`})]}),(0,K.jsx)(I,{sx:Hke,children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`flex-start`,gap:1,alignSelf:`flex-end`},children:[(0,K.jsx)(q,{"data-testid":`button_send_job_contact`,onClick:ne,types:[`type-full-primary`,`size-large`],children:U(`properties.send_job_request`)}),ie()]})})]})})()}),O()]}),re(T,n.id)]}):(0,K.jsx)(Af,{is404:!0,headline:U(`error.404error`),subHeadline:U(`error.looks_like_smth_wrong`)})})}),(0,K.jsx)(Ike,{})]}),e]})}Qn();var Kke=e=>(0,K.jsx)($K,{...e}),qke=()=>
2840{let{bookingId:e,propertyId:t,id:n,contactDetailView:r}=Rn(),i=Vn();return(0,K.jsx)(jy,{bookingId:e,propertyId:t,handleCancel:()=>i(`/contacts/${n}/${r}`,{replace:!0}),renderChildren:Kke,show:!0})},Jke=()=>(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(N,{element:(0,K.jsx)(UB,{}),children:(0,K.jsx)(N,{element:(0,K.jsx)(KB,{}),children:(0,K.jsxs)(N,{element:(0,K.jsx)(sV,{feature:s_.webapp}),children:[(0,K.jsx)(N,{path:`contacts`,element:(0,K.jsx)(f3,{})}),(0,K.jsx)(N,{path:`contacts/:id/accepted`,element:(0,K.jsx)(Wr,{to:`../upcoming`,replace:!0})}),(0,K.jsx)(N,{path:`contacts/:id`,element:(0,K.jsx)(Wr,{to:`upcoming`,replace:!0})}),(0,K.jsxs)(N,{path:`contacts/:id/:contactDetailView`,element:(0,K.jsx)(f3,{}),children:[(0,K.jsx)(N,{index:!0,element:(0,K.jsx)(Gke,{})}),(0,K.jsx)(N,{path:`booking/:propertyId/:bookingId`,element:(0,K.jsx)(qke,{})})]})]})})})});Qn();var Yke=_i.default.bind(Gz),p3=({children:e,disableWrapper:t=!1,onboardingMobile:n=!1})=>((0,B.useEffect)(()=>{cme()},[]),(0,K.jsx)(M$,{hidePricewarning:!0,hideMobilePopover:!0,disableWrapper:t,currentPage:`account`,disablePreloadLoader:!0,children:(0,K.jsx)(Nf,{moduleName:`account`,customDescription:U(`account.error_load`)||`Unable to load account information. Please try again.`,children:(0,K.jsx)(`div`,{className:Yke(`account__bg`,{"account__bg-white":n}),children:e||(0,K.jsx)(kn,{})})})}));p3.propTypes={children:V.default.node,disableWrapper:V.default.bool,onboardingMobile:V.default.bool};var m3=_i.default.bind(Gz),h3=B.memo(({mobile:e,redirectPartnerLabel:t,connectDirectPartner:n,redirectPartnerId:r,reconnectId:i})=>{let a=xe(),o=j(vT);return(0,B.useEffect)(()=>{if(e)return yu(!0),()=>yu(!1)},[e]),(0,B.useEffect)(()=>{a(vA())},[a]),(0,B.useEffect)(()=>{o?.length&&n&&r&&a(nge(r,i,e))},[o,n,r,i,e,a]),e?(0,K.jsx)(`div`,{className:m3(`account__bg-white`,`account-oauth-direct-container__wrapper`),children:(0,K.jsx)(M$,{hidePricewarning:!0,hideMobilePopover:!0,disableWrapper:!0,currentPage:`account`,disablePreloadLoader:!0,children:(0,K.jsx)(`div`,{className:m3(`account-oauth-direct-container__center`),children:(0,K.jsxs)(`div`,{className:m3(`account-oauth-direct-container__loadcontainer`),children:[(0,K.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`16px`,alignItems:`center`},children:[(0,K.jsx)(J,{height:48,width:48,variant:`circular`}),(0,K.jsx)(J,{height:16,width:200})]}),(0,K.jsx)(`div`,{className:m3(`account-oauth-direct-container__loadtext`),children:U(`account.connection_redirect`,{partner:t})})]})})})}):(0,K.jsxs)(M$,{hidePricewarning:!0,hideMobilePopover:!0,disableWrapper:!0,currentPage:`account`,disablePreloadLoader:!0,children:[(0,K.jsx)(tM,{}),(0,K.jsx)(`div`,{className:m3(`account-oauth-direct-container__loading`),children:(0,K.jsx)(xf,{customMessage:U(`account.connection_redirect`,{partner:t})})})]})});h3.propTypes={mobile:V.default.bool,redirectPartnerLabel:V.default.string,connectDirectPartner:V.default.bool,redirectPartnerId:V.default.string,reconnectId:V.default.string};var g3=e(En()),Xke=()=>{let e=xe(),t=j(FC),[n,r]=(0,B.useState)(null),[i,a]=(0,B.useState)(null),[o,s]=(0,B.useState)(`idle`),[c,l]=(0,B.useState)(!1),[u,d]=(0,B.useState)(!1),[f,p]=(0,B.useState)(!1);return(0,B.useEffect)(()=>{if(vpe(),t){let e={firstName:t.firstName||``,lastName:t.lastName||``,email:t.email||``,phoneCountryCode:t.phoneCountryCode||``,phoneRegionalNumber:t.phoneRegionalNumber||``,bio:t.bio||``,pictureUrl:t.pictureUrl||``};r(e),a({...e}),d(!1),p(!1)}},[t]),(0,B.useEffect)(()=>{n&&i&&!i.phoneRegionalNumber&&!n.phoneRegionalNumber&&n.phoneCountryCode!==i.phoneCountryCode&&a(e=>({...e,phoneCountryCode:n.phoneCountryCode}))},[n?.phoneCountryCode,i?.phoneCountryCode,n?.phoneRegionalNumber]),(0,B.useEffect)(()=>{if(!n||!i){d(!1);return}d(!(0,g3.default)(n,i))},[n,i]),(0,B.useEffect)(()=>{if(!n||!i){p(!1);return}if(!u){p(!1);return}let{firstName:e,lastName:t,email:r}=n;p(!!(e?.trim()&&t?.trim()&&r?.trim()))},[n,i,u]),{userFormData:n,updateUserState:o,validation:(()=>{if(!n)return{isValid:!0,errors:{},hasErrors:!1};let{firstName:e,lastName:t,email:r,phoneRegionalNumber:i}=n,a={};e?.trim()||(a.firstName=!0),t?.trim()||(a.lastName=!0),r?.trim()||(a.email=!0),r?.trim()&&!Ql(r)&&(a.email=!0),i?.trim()&&i.length>0&&(!/\d/.test(i)||!$l(i))&&(a.phoneRegionalNumber=!0);let o=Object.keys(a).length>0;return{isValid:!o,errors:c?a:{},hasErrors:o}})(),hasChanges:u,canSave:f,handleUpdateUserForm:e=>{r(t=>({...t,...e}))},updateProfile:async t=>{if(!n)return;let{firstName:o,lastName:c,email:f,phoneRegionalNumber:p}=n;if(!o?.trim()||!c?.trim()||!f?.trim()){l(!0);return}if(f?.trim()&&!Ql(f)){l(!0);return}if(p?.trim()&&p.length>0&&(!/\d/.test(p)||!$l(p))){l(!0);return}if(u)try{s(`loading`);let r={...(0,Pf.default)(n,[`notificationSettings`])};r.phoneRegionalNumber||(r.phoneCountryCode=``,r.phoneRegionalNumber=``);let i={...r};
2840Object.keys(i).forEach(e=>{i[e]=typeof i[e]==`string`?i[e]?.trim():i[e]});let o=await cP(i);if(a(i),d(!1),e(lF()),s(`idle`),l(!1),R.default.info(`updateUser`,o),!o.phoneVerified&&o.phoneRegionalNumber)try{await pP(),t?.()}catch{}}catch(e){if(R.default.error(`updateUser`,e),i&&r({...i}),e.properlyErrorMsg===`DuplicatePhoneUserFound`){s(`phone_not_unique`);return}if(e.properlyErrorMsg===`EmailNotUnique`){s(`email_not_unique`);return}s(`error`)}},resetUpdateState:()=>{s(`idle`)},resetForm:()=>{i&&(r({...i}),l(!1),d(!1),p(!1))}}},Zke=()=>{let[e,t]=(0,B.useState)(null),[n,r]=(0,B.useState)(!1),[i,a]=(0,B.useState)(null),[o,s]=(0,B.useState)(!1);(0,B.useEffect)(()=>{(async()=>{try{let e=await AP();t(e.linked?{email:e.email,id:e.id}:null)}catch(e){R.default.error(`Failed to load Google connection status:`,e)}})()},[]);let c=async e=>{try{let n=await OP(e);n.success?(t({email:n.user.email,id:n.user.objectId}),s(!0),setTimeout(()=>{s(!1)},3e3)):a(n.error||`Failed to connect Google account`)}catch(e){try{let t=JSON.parse(e.message);a(t.error?.error||t.properlyErrorMsg||`Failed to connect Google account`)}catch(e){R.default.error(`Error parsing Google connection error:`,e)}}finally{r(!1)}};return{googleAccount:e,googleConnectionLoading:n,googleConnectionError:i,showGoogleSuccess:o,handleGoogleConnect:e=>{e.credential&&(r(!0),a(null),c(e.credential))},handleGoogleConnectError:(e=`Google OAuth connection failed`)=>{R.default.error(e),a(e)},disconnectGoogleAccount:async()=>{r(!0),a(null);try{let e=await kP();e.success?t(null):a(e.error||`Failed to disconnect Google account`)}catch(e){a(e.properlyErrorMsg||`Failed to disconnect Google account`)}finally{r(!1)}},dismissGoogleError:()=>{a(null)},setShowGoogleSuccess:s}},Qke=()=>{let e=xe(),[t,n]=(0,B.useState)(null),[r,i]=(0,B.useState)(!1),a=e=>e?iu(e,nu.PROFILE_PICTURE):``;return{imageFile:t,imageUploadError:r,handleImageUpload:async(t,r)=>{if(t&&t[0])try{n(t[0]);let i=await tP(t[0]);n(null),await cP({pictureUrl:i?.pictureUrl}),e(lF()),r?.(i?.pictureUrl)}catch(e){R.default.error(`uploadProfilePic - `,e),n(null),i(!0)}},getImageState:(e,t,n,r,i)=>e?{text:``,state:`loading`,image:e.preview}:t?{text:r,state:`set`,image:a(t)}:{text:i,state:`dropable`,image:``},resetImageUploadError:()=>{i(!1)}}},$ke=()=>{let[e,t]=(0,B.useState)(`closed`),[n,r]=(0,B.useState)(``);return{phoneVerifyState:e,codeValue:n,openPhoneVerification:()=>{t(`open`)},closeVerifyModal:()=>{r(``),t(`closed`)},sendVerifyModal:async()=>{try{t(`loading`),await mP(n),r(``),t(`closed`)}catch(e){R.default.error(`phoneVerify`,e),t(`error`)}},updateCodeValue:e=>{r(e)}}},_3={IDLE:0,LOADING:1,ERROR:2,SUCCESS:3},v3={CLOSED:0,OPEN:1,LOADING:2,ERROR:3,SUCCESS:4},eAe=()=>{let[e,t]=(0,B.useState)({oldPassword:``,newPassword1:``,newPassword2:``}),[n,r]=(0,B.useState)({oldPassword:!1,newPassword1:!1,newPassword2:!1}),[i,a]=(0,B.useState)({updatePw:_3.IDLE,sendPw:v3.CLOSED}),[o,s]=(0,B.useState)({updatePassword:null,forgotPassword:null}),[c,l]=(0,B.useState)(!1),u=(0,B.useRef)([]);(0,B.useEffect)(()=>{let e=u.current;return()=>{e.forEach(clearTimeout)}},[]);let d=(0,B.useCallback)((e,t)=>{let n=setTimeout(e,t);return u.current.push(n),n},[]),f=(0,B.useMemo)(()=>{let t={},r={};if(e.oldPassword===``&&(t.oldpw=U(`account.old_pw_needed`),n.oldPassword&&(r.oldpw=t.oldpw)),e.newPassword1){let n=eu(e.newPassword1);n.status||(t.pw1=n.message,r.pw1=t.pw1)}else e.newPassword2&&(t.pw1=U(`account.enter_new_password_first`),r.pw1=t.pw1);return e.newPassword1&&e.newPassword2&&e.newPassword1!==e.newPassword2&&(t.pw2=U(`account.pw_not_match`),r.pw2=t.pw2),{valid:e.oldPassword!==``&&e.newPassword1!==``&&e.newPassword2!==``&&eu(e.newPassword1).status&&e.newPassword1===e.newPassword2,errors:r,allErrors:t,hasErrors:Object.keys(r).length>0}},[e,n]);return{passwordStateJS:e,generalStatesJS:i,validation:f,errors:o,isOperationInProgress:c,updatePasswordField:(0,B.useCallback)((e,n)=>{t(t=>({...t,[e]:n})),r(t=>({...t,[e]:!0})),o.updatePassword&&s(e=>({...e,updatePassword:null}))},[o.updatePassword]),handleChangePassword:(0,B.useCallback)(async()=>{if(!(!f.valid||c)){l(!0),a(e=>({...e,updatePw:_3.LOADING})),s(e=>({...e,updatePassword:null}));try{await nP(e.oldPassword,e.newPassword2),t({oldPassword:``,newPassword1:``,newPassword2:``}),r({oldPassword:!1,newPassword1:!1,newPassword2:!1}),a(e=>({...e,updatePw:_3.SUCCESS})),d(()=>{a(e=>({...e,updatePw:_3.IDLE}))},5e3)}catch(e){let t=e.message||U(`account.password_update_failed`);s(e=>({...e,updatePassword:t})),a(e=>({...e,updatePw:_3.ERROR}))}finally{l(!1)}}},[f.valid,e,c,d]),handleForgotPassword:(0,B.useCallback)(()=>{a(e=>({...e,sendPw:v3.OPEN}))},[]),sendPasswordResetEmail:(0,B.useCallback)(async()=>
2840{if(!c){l(!0),a(e=>({...e,sendPw:v3.LOADING})),s(e=>({...e,forgotPassword:null}));try{await lP(),a(e=>({...e,sendPw:v3.SUCCESS})),d(()=>{a(e=>({...e,sendPw:v3.CLOSED}))},5e3)}catch(e){let t=e.message||U(`account.password_reset_failed`);s(e=>({...e,forgotPassword:t})),a(e=>({...e,sendPw:v3.ERROR}))}finally{l(!1)}}},[c,d]),closePasswordResetModal:(0,B.useCallback)(()=>{a(e=>({...e,sendPw:v3.CLOSED})),s(e=>({...e,forgotPassword:null}))},[]),closeUpdateErrorModal:(0,B.useCallback)(()=>{a(e=>({...e,updatePw:_3.IDLE})),s(e=>({...e,updatePassword:null}))},[]),PASSWORD_UPDATE_STATES:_3,FORGOT_PASSWORD_STATES:v3}},y3={INITIAL:0,UPDATING:1,ERROR:2,SUCCESS:3},b3={TRUE:1,FALSE:0},tAe=e=>e===b3.TRUE,nAe=e=>e?b3.TRUE:b3.FALSE,rAe=()=>{let[e,t]=(0,B.useState)(y3.INITIAL),[n,r]=(0,B.useState)(null),[i,a]=(0,B.useState)({}),[o,s]=(0,B.useState)({}),{loading:l,error:u,data:d,refetch:f}=Kn(qz,{variables:{role:`HOST`,languageCode:aa()}}),[p]=c(Qz);(0,B.useEffect)(()=>{if(d?.notificationSetting){let e={};(0,gx.default)(d.notificationSetting).forEach(t=>{let n=(0,CR.default)(t.notificationChannels,`type`);[`EMAIL`,`SMS`,`PUSH`].forEach(t=>{let r=n[t];r&&(e[r.id]=r.status)})}),s(e),a(e)}},[d]);let m=(0,B.useMemo)(()=>d?.notificationSetting?(0,gx.default)(d.notificationSetting).map(e=>{let t=(0,CR.default)(e.notificationChannels,`type`),n=e=>e?{...e,status:i[e.id]===void 0?e.status:i[e.id]}:null;return{id:e.id,title:e.localizedTitle,email:n(t.EMAIL),sms:n(t.SMS),push:n(t.PUSH)}}):[],[d,i]),h=(0,B.useMemo)(()=>d?.notificationSetting?(0,gx.default)(d.notificationSetting).every(e=>(0,CR.default)(e.notificationChannels,`type`).SMS?.isDisabled===!0):!1,[d]),g=(0,B.useMemo)(()=>!(0,g3.default)(o,i),[o,i]),_=(0,B.useMemo)(()=>{let e={};
2840return Object.keys(i).forEach(t=>{o[t]!==i[t]&&(e[t]={id:t,status:i[t]})}),e},[o,i]);return{loading:l,error:u,status:e,notificationSettings:m,allSMSDisabled:h,lastUpdatedChannel:n,pendingChanges:_,hasChanges:g,updatePendingChange:(0,B.useCallback)((e,t,n)=>{a(t=>({...t,[e]:nAe(n)}))},[]),saveChanges:(0,B.useCallback)(async()=>{let e=Object.values(_);if(e.length!==0){t(y3.UPDATING);try{await Promise.all(e.map(e=>p({variables:{input:{notificationChannel:{id:e.id,status:e.status}}}}))),s(i),t(y3.SUCCESS),f()}catch(e){t(y3.ERROR),R.default.error(`Failed to update notification channels:`,e)}}},[_,p,f,i]),cancelChanges:(0,B.useCallback)(()=>{a(o),t(y3.INITIAL)},[o]),closeErrorModal:(0,B.useCallback)(()=>{t(y3.INITIAL),r(null)},[]),resetStatus:(0,B.useCallback)(()=>{t(y3.INITIAL)},[]),retryUpdate:(0,B.useCallback)(()=>{t(y3.INITIAL),f()},[f]),mapNumToBool:tAe,STATUS:y3}},iAe=({userInfo:e,validationInfo:t,onChange:n})=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)($g,{children:U(`account.name`)}),(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,error:t.errors.firstName,value:e.firstName,styleOverwrite:{backgroundColor:`var(--color-white)`},type:`text`,onChange:e=>n(`firstName`,e.target.value),placeholder:U(`account.first_name`)}),(0,K.jsx)(I,{sx:{height:`8px`}}),(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,styleOverwrite:{backgroundColor:`var(--color-white)`},error:t.errors.lastName,value:e.lastName,type:`text`,onChange:e=>n(`lastName`,e.target.value),placeholder:U(`account.last_name`)})]});iAe.propTypes={userInfo:V.default.shape({firstName:V.default.string,lastName:V.default.string}).isRequired,validationInfo:V.default.shape({errors:V.default.shape({firstName:V.default.bool,lastName:V.default.bool}).isRequired}).isRequired,onChange:V.default.func.isRequired};var x3=({currentPhoneCode:e,setter:t,children:n})=>{let r=()=>{e||t(ql(Yl(),`+1`))};return(0,B.useEffect)(()=>{r()},[e]),n()};x3.propTypes={currentPhoneCode:V.default.string,setter:V.default.func.isRequired,children:V.default.func.isRequired};var S3=({userInfo:e,validationInfo:t,onChange:n})=>(0,K.jsx)(x3,{currentPhoneCode:e.phoneCountryCode,setter:e=>n(`phoneCountryCode`,e),children:()=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,value:e.email,error:t.errors.email,styleOverwrite:{backgroundColor:`var(--color-white)`},type:`text`,onChange:e=>n(`email`,e.target.value),placeholder:U(`account.email`)}),(0,K.jsx)(gm,{}),(0,K.jsxs)(Yf.TwoSplit,{type:`bigger`,children:[(0,K.jsx)(Yf,{twoSplit:`leftsmall`,type:`select`,style:{color:Wp,backgroundColor:`var(--color-white)`},options:Wl,onChange:e=>n(`phoneCountryCode`,e.target.value),error:!1,isFirst:!0,isLast:!0,value:e.phoneCountryCode,transformSelectTitle:Kl,styleOverwrite:{borderTopRightRadius:0,borderBottomRightRadius:0,backgroundColor:`var(--color-white)`}}),(0,K.jsx)(Yf,{twoSplit:`rightbig`,type:`text`,onChange:e=>n(`phoneRegionalNumber`,e.target.value),placeholder:U(`account.phone`),value:e.phoneRegionalNumber,isFirst:!0,isLast:!0,styleOverwrite:{borderTopLeftRadius:0,borderBottomLeftRadius:0,backgroundColor:`var(--color-white)`}})]})]})});
2840S3.propTypes={userInfo:V.default.shape({email:V.default.string,phoneCountryCode:V.default.string,phoneRegionalNumber:V.default.string}).isRequired,validationInfo:V.default.shape({errors:V.default.shape({email:V.default.bool}).isRequired}).isRequired,onChange:V.default.func.isRequired};var C3=({userInfo:e,onChange:t})=>(0,K.jsx)(`div`,{children:(0,K.jsx)(Yf,{onChange:e=>t(e.target.value),isLast:!0,isFirst:!0,textAreaHeight:80,value:e.bio,type:`textarea`,placeholder:U(`account.bio_info`)})});C3.propTypes={userInfo:V.default.shape({bio:V.default.string}).isRequired,onChange:V.default.func.isRequired};var{GOOGLE_OAUTH_CLIENT_ID:aAe}=Wi(),oAe={display:`flex`,justifyContent:`space-between`,alignItems:`center`,padding:`16px`,border:`1px solid var(--color-green)`,borderRadius:`6px`,background:`var(--color-green-light)`,transition:`all 0.2s ease`},sAe={display:`flex`,flexDirection:`column`,gap:`2px`},cAe={fontWeight:600,color:`var(--color-gray-900)`,fontSize:`14px`},lAe={fontSize:`12px`,color:`var(--color-green)`,fontWeight:500,display:`flex`,alignItems:`center`,gap:`4px`,"&::before":{content:`"â"`,display:`inline-block`,width:`14px`,height:`14px`,background:`var(--color-green)`,color:`white`,borderRadius:`50%`,textAlign:`center`,lineHeight:`14px`,fontSize:`10px`,fontWeight:`bold`}},uAe={display:`flex`,flexDirection:`column`,alignItems:`flex-start`,gap:`12px`,padding:`16px`,border:`1px dashed var(--color-border)`,borderRadius:`6px`,background:`var(--color-bg-elevated)`},dAe={display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`48px`,width:`100%`},w3=({googleAccount:e=null,googleConnectionLoading:t,onGoogleConnect:n,onGoogleConnectError:r,onGoogleDisconnect:i})=>(0,K.jsx)(I,{children:e?(0,K.jsxs)(I,{sx:oAe,children:[(0,K.jsxs)(I,{sx:sAe,children:[(0,K.jsx)(I,{sx:cAe,children:e.email}),(0,K.jsx)(I,{sx:lAe,children:U(`account.google_connected`)})]}),(0,K.jsx)(q,{types:[`type-border-primary`,`size-medium`],onClick:i,disabled:t,children:U(t?`account.disconnecting`:`account.disconnect_google`)})]}):(0,K.jsx)(fi,{clientId:aAe,children:(0,K.jsx)(I,{sx:uAe,children:t?(0,K.jsx)(I,{sx:dAe,children:(0,K.jsx)(xf,{customMessage:U(`account.connecting`)})}):(0,K.jsx)(St,{onSuccess:n,onError:r,text:`signin_with`,shape:`rectangular`,theme:`outline`,size:`medium`,disabled:t,auto_select:!1,useOneTap:!1})})})});w3.propTypes={googleAccount:V.default.shape({email:V.default.string,id:V.default.string}),googleConnectionLoading:V.default.bool.isRequired,onGoogleConnect:V.default.func.isRequired,onGoogleConnectError:V.default.func.isRequired,onGoogleDisconnect:V.default.func.isRequired};var fAe=_i.default.bind(Gz),T3=({imageState:e,onImageUpload:t,imageUploadError:n,onResetError:r})=>(0,K.jsx)(`div`,{children:(0,K.jsx)(`div`,{className:fAe(`account__profilepic`),children:(0,K.jsx)(Sg,{type:[`image--round`],image:e.image,children:(0,K.jsx)(g_,{type:`small`,text:e.text,onDropAccepted:t,state:e.state,imageUploadErrored:n,setGlobalLoadingAction:r})})})});T3.propTypes={imageState:V.default.shape({text:V.default.string,state:V.default.string,image:V.default.string}).isRequired,onImageUpload:V.default.func.isRequired,imageUploadError:V.default.bool.isRequired,onResetError:V.default.func.isRequired};var E3=({phoneVerifyState:e,codeValue:t,onCodeChange:n,onClose:r,onSend:i})=>(0,K.jsx)(X,{id:`account-profile`,height:240,onClose:r,onClick:r,show:e!==`closed`,centerContent:!0,children:(0,K.jsxs)(I,{sx:{height:`100%`},children:[(e===`open`||e===`error`)&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:U(`account.verify_phone`)}),(0,K.jsx)(X.Text,{children:U(`account.enter_code`)}),(0,K.jsx)(ym,{}),(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,value:t,type:`text`,onChange:e=>n(e.target.value),placeholder:U(`account.enter_code_short`)}),e===`error`&&(0,K.jsx)(Yf.ErrorMsg,{children:U(`account.code_invalid`)}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:r}),(0,K.jsx)(X.Ok,{onClick:i})]})]}),e===`loading`&&(0,K.jsx)(I,{sx:{height:`100%`},children:(0,K.jsx)(xf,{static:!0})})]})});E3.propTypes={phoneVerifyState:V.default.string.isRequired,codeValue:V.default.string.isRequired,onCodeChange:V.default.func.isRequired,onClose:V.default.func.isRequired,onSend:V.default.func.isRequired};var D3=_i.default.bind(Gz),O3=({userFormData:e,validation:t,canSave:n,onUpdateUserForm:r,onSubmit:i,imageState:a,onImageUpload:o,imageUploadError:s,onResetImageError:c,googleAccount:l=null,googleConnectionLoading:u,onGoogleConnect:d,onGoogleConnectError:f,onGoogleDisconnect:p})=>{let{trackClick:m,trackField:h}=nT(`ProfileForm`),g=(0,B.useCallback)(()=>{m(`save_profile_button`,{context:`profile`}),i()},[m,i]),_=(0,B.useCallback)(e=>{h(e,`focus`,{context:`profile`})},[h]),v=(0,B.useCallback)(e=>{h(e,`blur`,{context:`profile`})},[h]);return(0,K.jsxs)(`div`,{className:D3(`profile-container`),children:[(0,K.jsx)(`div`,{className:D3(`profile-header`),children:(0,K.jsxs)(`div`,{className:D3(`profile-header-content`),children:[(0,K.jsx)(I,{component:`h1`,sx:{margin:0,fontSize:`24px`,fontWeight:`600`,color:`var(--color-text)`},children:U(`account.profile`)}),(0,K.jsx)(I,{component:`p`,sx:{margin:`4px 0 0 0`,opacity:.7,fontSize:`14px`},children:`Manage your account settings and preferences`})]})}),(0,K.jsx)(`div`,{className:D3(`profile-body`),children:(0,K.jsxs)(`div`,{className:D3(`profile-grid`),children:[(0,K.jsxs)(`div`,{className:D3(`profile-main`),children:[(0,K.jsxs)(`div`,{className:D3(`profile-section`),children:[(0,K.jsx)(`div`,{className:D3(`profile-section-title`),children:U(`account.name`)}),(0,K.jsxs)(`div`,{className:D3(`input-row`),children:[(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,error:t.errors.firstName,value:e.firstName,styleOverwrite:{backgroundColor:`var(--color-white)`},type:`text`,onChange:e=>r({firstName:e.target.value}),onFocus:()=>_(`firstName`),onBlur:()=>v(`firstName`),placeholder:U(`account.first_name`)}),(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,styleOverwrite:{backgroundColor:`var(--color-white)`},error:t.errors.lastName,value:e.lastName,type:`text`,onChange:e=>r({lastName:e.target.value}),onFocus:()=>_(`lastName`),onBlur:()=>v(`lastName`),placeholder:U(`account.last_name`)})]})]}),(0,K.jsxs)(`div`,{className:D3(`profile-section`),children:[(0,K.jsx)(`div`,{className:D3(`profile-section-title`),children:U(`account.contact`)}),(0,K.jsx)(`div`,{className:D3(`input-group`),children:(0,K.jsx)(S3,{userInfo:e,validationInfo:t,onChange:(e,t)=>
2840r({[e]:t})})})]}),(0,K.jsxs)(`div`,{className:D3(`profile-section`),children:[(0,K.jsx)(`div`,{className:D3(`profile-section-title`),children:U(`account.google_connection`)}),(0,K.jsx)(Xg,{children:U(`account.google_connection_description`)}),(0,K.jsx)(hm,{}),(0,K.jsx)(w3,{googleAccount:l,googleConnectionLoading:u,onGoogleConnect:d,onGoogleConnectError:f,onGoogleDisconnect:p})]}),(0,K.jsx)(Mw,{hasAccessFormatter:e=>!e.isStandalone,renderWithPermission:e=>(0,K.jsxs)(`div`,{className:D3(`profile-section`),children:[(0,K.jsx)(`div`,{className:D3(`profile-section-title`),children:U(`account.team`)}),(0,K.jsx)(`div`,{className:D3(`team-info-card`),children:(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,disabled:!0,value:e.teamName,styleOverwrite:{backgroundColor:`transparent`,border:`none`},type:`text`})})]})}),(0,K.jsxs)(`div`,{className:D3(`profile-section`),children:[(0,K.jsx)(`div`,{className:D3(`profile-section-title`),children:U(`account.bio`)}),(0,K.jsx)(C3,{userInfo:e,onChange:e=>r({bio:e})})]})]}),(0,K.jsxs)(`div`,{className:D3(`profile-sidebar`),children:[(0,K.jsx)(`div`,{className:D3(`profile-image-card`),children:(0,K.jsx)(T3,{imageState:a,onImageUpload:o,imageUploadError:s,onResetError:c})}),(0,K.jsx)(`div`,{className:D3(`profile-save-section`),children:(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`],disabled:!n,onClick:g,children:U(`account.save_changes`)})})]})]})})]})};O3.propTypes={userFormData:V.default.shape({firstName:V.default.string,lastName:V.default.string,email:V.default.string,phoneCountryCode:V.default.string,phoneRegionalNumber:V.default.string,bio:V.default.string,pictureUrl:V.default.string}).isRequired,validation:V.default.shape({isValid:V.default.bool.isRequired,errors:V.default.shape({firstName:V.default.bool,lastName:V.default.bool,email:V.default.bool,phoneRegionalNumber:V.default.bool}).isRequired,hasErrors:V.default.bool.isRequired}).isRequired,canSave:V.default.bool.isRequired,onUpdateUserForm:V.default.func.isRequired,onSubmit:V.default.func.isRequired,imageState:V.default.shape({text:V.default.string,state:V.default.string,image:V.default.string}).isRequired,onImageUpload:V.default.func.isRequired,imageUploadError:V.default.bool.isRequired,onResetImageError:V.default.func.isRequired,googleAccount:V.default.shape({email:V.default.string,id:V.default.string}),googleConnectionLoading:V.default.bool.isRequired,onGoogleConnect:V.default.func.isRequired,onGoogleConnectError:V.default.func.isRequired,onGoogleDisconnect:V.default.func.isRequired};var k3=_i.default.bind(Gz),A3=({passwordData:e,validation:t,updateStates:n,onUpdatePassword:r,onForgotPassword:i,onSubmit:a})=>{let[o,s]=(0,B.useState)(!1),[c,l]=(0,B.useState)(!1),[u,d]=(0,B.useState)(!1),f=B.useMemo(()=>{let t=e.newPassword1;return{length:t.length>=8,uppercase:/[A-Z]/.test(t),lowercase:/[a-z]/.test(t),number:/[0-9]/.test(t),special:/[!@#$%^&*()-+~`;:'"_+,<.>/?|]/.test(t)}},[e.newPassword1]),p=e.newPassword1.length>0;return(0,K.jsxs)(`div`,{className:k3(`profile-container`),children:[(0,K.jsx)(`div`,{className:k3(`profile-header`),children:(0,K.jsxs)(`div`,{className:k3(`profile-header-content`),children:[(0,K.jsx)(I,{component:`h1`,sx:{margin:0,fontSize:`24px`,fontWeight:`600`,color:`var(--color-text)`},children:U(`account.password`)}),(0,K.jsx)(I,{component:`p`,sx:{margin:`4px 0 0 0`,opacity:.7,fontSize:`14px`},children:U(`account.update_your_password`)})]})}),(0,K.jsx)(`div`,{className:k3(`profile-body`),children:(0,K.jsxs)(`div`,{className:k3(`profile-grid`),children:[(0,K.jsxs)(`div`,{className:k3(`profile-main`),children:[(0,K.jsxs)(`div`,{className:k3(`profile-section`),children:[(0,K.jsx)(`div`,{className:k3(`profile-section-title`),children:U(`account.current_password`)}),(0,K.jsxs)(`div`,{className:k3(`input-group`),children:[(0,K.jsxs)(I,{sx:{position:`relative`,width:`100%`},children:[(0,K.jsx)(Yf,{"data-testid":`current-password`,isFirst:!0,isLast:!0,styleOverwrite:{backgroundColor:`var(--color-white)`,paddingRight:`40px`},error:t.errors.oldpw,value:e.oldPassword,type:o?`text`:`password`,autoComplete:`current-password`,spellCheck:`false`,autoCapitalize:`off`,"aria-label":U(`account.current_password`),"aria-describedby":t.errors.oldpw?`current-password-error`:void 0,"aria-invalid":!!t.errors.oldpw,onChange:e=>r(`oldPassword`,e.target.value),placeholder:U(`account.enter_current_password`)}),(0,K.jsx)(br,{onClick:()=>s(!o),style:{position:`absolute`,right:`8px`,top:`50%`,transform:`translateY(-50%)`,padding:`4px`,color:`var(--color-gray-600)`,zIndex:1e3,backgroundColor:`transparent`},size:`small`,disableRipple:!0,"aria-label":o?`Hide password`:`Show password`,children:o?(0,K.jsx)(Y.IcVisibilityOff,{width:`20px`,height:`20px`}):(0,K.jsx)(Y.IcVisibility,{width:`20px`,height:`20px`})})]}),(0,K.jsx)(gm,{}),(0,K.jsx)(`div`,{className:k3(`account__forgot`),onClick:i,children:(0,K.jsx)(Xg,{style:{cursor:`pointer`,color:`var(--color-primary)`},children:U(`account.forgot_pw`)})})]})]}),(0,K.jsxs)(`div`,{className:k3(`profile-section`),children:[(0,K.jsx)(`div`,{className:k3(`profile-section-title`),children:U(`account.new_password`)}),(0,K.jsxs)(`div`,{className:k3(`input-group`),children:[(0,K.jsxs)(I,{sx:{position:`relative`,width:`100%`},children:[(0,K.jsx)(Yf,{"data-testid":`new-password`,isFirst:!0,isLast:!0,styleOverwrite:{backgroundColor:`var(--color-white)`,paddingRight:`40px`},error:e.newPassword1&&t.errors.pw1,value:e.newPassword1,type:c?`text`:`password`,autoComplete:`new-password`,spellCheck:`false`,autoCapitalize:`off`,"aria-label":U(`account.new_password`),"aria-describedby":`password-requirements`,"aria-invalid":!!t.errors.pw1,onChange:e=>r(`newPassword1`,e.target.value),placeholder:U(`account.enter_new_password`)}),(0,K.jsx)(br,{onClick:()=>l(!c),style:{position:`absolute`,right:`8px`,top:`50%`,transform:`translateY(-50%)`,padding:`4px`,color:`var(--color-gray-600)`,zIndex:1e3,backgroundColor:`transparent`},size:`small`,disableRipple:!0,"aria-label":c?`Hide password`:`Show password`,children:c?(0,K.jsx)(Y.IcVisibilityOff,{width:`20px`,height:`20px`}):(0,K.jsx)(Y.IcVisibility,{width:`20px`,height:`20px`})})]}),e.newPassword1&&t.errors.pw1&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(gm,{}),(0,K.jsx)(Xg,{style:{color:`var(--color-error)`,fontSize:`12px`},children:t.errors.pw1})]}),(0,K.jsx)(_m,{}),(0,K.jsxs)(I,{sx:{position:`relative`,width:`100%`},children:[(0,K.jsx)(Yf,{"data-testid":`verify-password`,isFirst:!0,isLast:!0,styleOverwrite:{backgroundColor:`var(--color-white)`,paddingRight:`40px`},error:e.newPassword2&&t.errors.pw2,value:e.newPassword2,type:u?`text`:`password`,autoComplete:`new-password`,spellCheck:`false`,autoCapitalize:`off`,onChange:e=>r(`newPassword2`,e.target.value),placeholder:U(`account.verify_password`)}),(0,K.jsx)(br,{onClick:()=>d(!u),style:{position:`absolute`,right:`8px`,top:`50%`,transform:`translateY(-50%)`,padding:`4px`,color:`var(--color-gray-600)`,zIndex:1e3,backgroundColor:`transparent`},size:`small`,disableRipple:!0,"aria-label":u?`Hide password`:`Show password`,children:u?(0,K.jsx)(Y.IcVisibilityOff,{width:`20px`,height:`20px`}):(0,K.jsx)(Y.IcVisibility,{width:`20px`,height:`20px`})})]}),e.newPassword2&&t.errors.pw2&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(gm,{}),(0,K.jsx)(Xg,{style:{color:`var(--color-error)`,fontSize:`12px`},children:t.errors.pw2})]})]})]})]}),(0,K.jsxs)(`div`,{className:k3(`profile-sidebar`),children:[(0,K.jsxs)(`div`,{className:k3(`profile-save-section`),children:[(0,K.jsx)(q,{"data-testid":`change-password`,types:[`type-full-primary`,`size-large`],disabled:!t.valid,onClick:a,style:{width:`100%`},children:U(`account.change_password`)}),(0,K.jsx)(ym,{}),n.updatePw===3&&(0,K.jsx)(`div`,{"data-testid":`password-updated`,className:k3(`success-message`),children:(0,K.jsx)(Xg,{style:{color:`var(--color-success)`},children:U(`account.password_was_updated`)})}),n.sendPw===4&&(0,K.jsx)(`div`,{className:k3(`success-message`),children:(0,K.jsx)(Xg,{style:{color:`var(--color-success)`},children:U(`account.password_was_send`)})})]}),(0,K.jsxs)(`div`,{className:k3(`profile-info-card`),id:`password-requirements`,role:`region`,"aria-label":U(`account.password_requirements`),children:[(0,K.jsx)(`div`,{className:k3(`profile-section-title`),children:U(`account.password_requirements`)}),(0,K.jsxs)(I,{component:`ul`,sx:{margin:`8px 0`,padding:`0`,listStyle:`none`,fontSize:`13px`},children:[(0,K.jsxs)(I,{component:`li`,sx:{color:p?f.length?`var(--color-success)`:`var(--color-error)`:`var(--color-gray-500)`,marginBottom:`4px`},children:[p&&(f.length?`â `:`â `),U(`account.min_8_characters`)]}),(0,K.jsxs)(I,{component:`li`,sx:{color:p?f.uppercase?`var(--color-success)`:`var(--color-error)`:`var(--color-gray-500)`,marginBottom:`4px`},children:[p&&(f.uppercase?`â `:`â `),U(`account.one_uppercase_letter`)]}),(0,K.jsxs)(I,{component:`li`,sx:{color:p?f.lowercase?`var(--color-success)`:`var(--color-error)`:`var(--color-gray-500)`,marginBottom:`4px`},children:[p&&(f.lowercase?`â `:`â `),U(`account.one_lowercase_letter`)]}),(0,K.jsxs)(I,{component:`li`,sx:{color:p?f.number?`var(--color-success)`:`var(--color-error)`:`var(--color-gray-500)`,marginBottom:`4px`},children:[p&&(f.number?`â `:`â `),U(`account.one_number`)]}),(0,K.jsxs)(I,{component:`li`,sx:{color:p?f.special?`var(--color-success)`:`var(--color-error)`:`var(--color-gray-500)`,marginBottom:`4px`},children:[p&&(f.special?`â `:`â `),U(`account.one_special_character`)]})]})]})]})]})})]})};A3.propTypes={passwordData:V.default.shape({oldPassword:V.default.string.isRequired,newPassword1:V.default.string.isRequired,newPassword2:V.default.string.isRequired}).isRequired,validation:V.default.shape({valid:V.default.bool.isRequired,errors:V.default.shape({oldpw:V.default.string,pw1:V.default.string,pw2:V.default.string}).isRequired}).isRequired,updateStates:V.default.shape({updatePw:V.default.number,sendPw:V.default.number}).isRequired,onUpdatePassword:V.default.func.isRequired,onForgotPassword:V.default.func.isRequired,onSubmit:V.default.func.isRequired};var j3={display:`flex`,justifyContent:`flex-end`},M3=({sendPwState:e,onClose:t,onSend:n})=>(0,K.jsx)(X,{height:220,onClose:t,show:e===1||e===2||e===4,children:(0,K.jsxs)(I,{sx:{height:`100%`},children:[e===1&&(0,K.jsxs)(I,{children:[(0,K.jsx)(X.H1,{children:U(`account.forgot_pw`)}),(0,K.jsx)(X.Text,{children:U(`account.will_email_link`)}),(0,K.jsx)(Sm,{}),(0,K.jsx)(I,{sx:j3,children:(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`],onClick:n,children:U(`account.send_pw_by_mail`)})})]}),e===2&&(0,K.jsx)(I,{sx:{height:`100%`},children:(0,K.jsx)(xf,{static:!0})}),e===4&&(0,K.jsxs)(I,{children:[(0,K.jsx)(X.H1,{children:U(`account.email_sent`)}),(0,K.jsx)(X.Text,{children:U(`account.password_was_send`)}),(0,K.jsx)(Sm,{}),(0,K.jsx)(I,{sx:j3,children:(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`],onClick:t,children:U(`account.close`)})})]})]})});M3.propTypes={sendPwState:V.default.number.isRequired,onClose:V.default.func.isRequired,onSend:V.default.func.isRequired};var N3=_i.default.bind(Gz),P3=({channel:e,type:t,onChange:n,dataKey:r})=>
2840e?(0,K.jsx)(`div`,{className:N3(`notification-toggle`,{"notification-toggle--disabled":e.isDisabled}),children:(0,K.jsx)(Dp,{"data-testid":r,selected:e.status===1,onChange:r=>n(e.id,t,r.target.checked),disabled:e.isDisabled})}):null;P3.propTypes={channel:V.default.shape({id:V.default.string,status:V.default.number,isDisabled:V.default.bool}),type:V.default.string.isRequired,notificationId:V.default.string.isRequired,onChange:V.default.func.isRequired,dataKey:V.default.string.isRequired};var F3=({notification:e,onChange:t,isSmsDisabled:n})=>{let{id:r,title:i,email:a,sms:o,push:s}=e;return(0,K.jsxs)(`div`,{className:N3(`notification-row`),children:[(0,K.jsx)(`div`,{className:N3(`notification-row-title`),children:(0,K.jsx)(Xg,{children:i})}),(0,K.jsxs)(`div`,{className:N3(`notification-row-toggles`),children:[(0,K.jsx)(P3,{channel:a,type:`EMAIL`,notificationId:r,onChange:t,dataKey:`${r}_email_notification`}),!n&&(0,K.jsx)(P3,{channel:o,type:`SMS`,notificationId:r,onChange:t,dataKey:`${r}_sms_notification`}),(0,K.jsx)(P3,{channel:s,type:`PUSH`,notificationId:r,onChange:t,dataKey:`${r}_push_notification`})]})]})};F3.propTypes={notification:V.default.shape({id:V.default.string.isRequired,title:V.default.string.isRequired,email:V.default.shape({}),sms:V.default.shape({}),push:V.default.shape({})}).isRequired,onChange:V.default.func.isRequired,isSmsDisabled:V.default.bool};var I3=({notificationSettings:e,allSMSDisabled:t,onUpdateChannel:n,hasChanges:r,onSaveChanges:i})=>{let{trackClick:a,trackSelect:o}=nT(`NotificationsForm`),s=(0,B.useCallback)(()=>{a(`save_notifications_button`,{context:`notifications`}),i()},[a,i]),c=(0,B.useCallback)((e,t,r)=>{o(`notification_channel`,r,{channelId:e,type:t}),n(e,t,r)},[o,n]);return(0,K.jsxs)(`div`,{className:N3(`profile-container`),children:[(0,K.jsx)(`div`,{className:N3(`profile-header`),children:(0,K.jsxs)(`div`,{className:N3(`profile-header-content`),children:[(0,K.jsx)(I,{component:`h1`,sx:{margin:0,fontSize:`24px`,fontWeight:`600`,color:`var(--color-gray-900)`},children:U(`account.notifications`)}),(0,K.jsx)(I,{component:`p`,sx:{margin:`4px 0 0 0`,opacity:.7,fontSize:`14px`,color:`var(--color-gray-700)`},children:U(`account.manage_notification_preferences`)})]})}),(0,K.jsx)(`div`,{className:N3(`profile-body`),children:(0,K.jsxs)(`div`,{className:N3(`profile-grid`),children:[(0,K.jsx)(`div`,{className:N3(`profile-main`),children:(0,K.jsxs)(`div`,{className:N3(`profile-section`),children:[(0,K.jsx)(`div`,{className:N3(`profile-section-title`),children:U(`account.notification_channels`)}),(0,K.jsxs)(`div`,{className:N3(`notification-header`),children:[(0,K.jsx)(`div`,{className:N3(`notification-header-title`)}),(0,K.jsxs)(`div`,{className:N3(`notification-header-channels`),children:[(0,K.jsxs)(`div`,{className:N3(`notification-channel-icon`),children:[(0,K.jsx)(Y.IcMailSolid,{}),(0,K.jsx)(Xg,{style:{marginTop:`4px`,fontSize:`12px`},children:U(`account.email`)})]}),!t&&(0,K.jsxs)(`div`,{className:N3(`notification-channel-icon`),children:[(0,K.jsx)(Y.IcMessageSolid2,{}),(0,K.jsx)(Xg,{style:{marginTop:`4px`,fontSize:`12px`},children:U(`account.sms`)})]}),(0,K.jsxs)(`div`,{className:N3(`notification-channel-icon`),children:[(0,K.jsx)(Y.IcMessageSolid,{}),(0,K.jsx)(Xg,{style:{marginTop:`4px`,fontSize:`12px`},children:U(`account.push`)})]})]})]}),(0,K.jsx)(_m,{}),(0,K.jsx)(`div`,{className:N3(`notification-list`),children:e.map(e=>(0,K.jsx)(F3,{notification:e,onChange:c,isSmsDisabled:t},e.id))})]})}),(0,K.jsxs)(`div`,{className:N3(`profile-sidebar`),children:[(0,K.jsx)(`div`,{className:N3(`profile-save-section`),children:(0,K.jsx)(q,{"data-testid":`save-notification-settings`,types:[`type-full-primary`,`size-large`],disabled:!r,onClick:s,style:{width:`100%`},children:U(`account.save_changes`)})}),(0,K.jsxs)(`div`,{className:N3(`profile-info-card`),children:[(0,K.jsx)(`div`,{className:N3(`profile-section-title`),children:U(`account.notification_info`)}),(0,K.jsx)(Xg,{style:{lineHeight:`1.6`,color:`var(--color-gray-700)`},children:U(`account.notification_info_text`)})]})]})]})})]})};I3.propTypes={notificationSettings:V.default.arrayOf(V.default.shape({id:V.default.string.isRequired,title:V.default.string.isRequired,email:V.default.shape({}),sms:V.default.shape({}),push:V.default.shape({})})).isRequired,allSMSDisabled:V.default.bool,onUpdateChannel:V.default.func.isRequired,hasChanges:V.default.bool.isRequired,onSaveChanges:V.default.func.isRequired};var pAe=()=>{let{userFormData:e,updateUserState:t,validation:n,canSave:r,handleUpdateUserForm:i,updateProfile:a,resetUpdateState:o}=Xke(),{googleAccount:s,googleConnectionLoading:c,googleConnectionError:l,showGoogleSuccess:u,handleGoogleConnect:d,handleGoogleConnectError:f,disconnectGoogleAccount:p,dismissGoogleError:m,setShowGoogleSuccess:h}=Zke(),{imageFile:g,imageUploadError:_,handleImageUpload:v,getImageState:y,resetImageUploadError:b}=Qke(),{phoneVerifyState:x,codeValue:S,openPhoneVerification:C,closeVerifyModal:w,sendVerifyModal:T,updateCodeValue:E}=$ke();return(0,B.useEffect)(()=>{su(`titles.profile`)()},[]),e?(0,K.jsxs)(Jj,{type:`absolute-scroll`,children:[(0,K.jsx)(O3,{userFormData:e,validation:n,canSave:r,onUpdateUserForm:i,onSubmit:()=>{a(C)},imageState:y(g,e.pictureUrl,U(`account.change_image`),U(`account.change_image`),U(`account.set_image`)),onImageUpload:e=>{v(e,e=>{i({pictureUrl:e})})},imageUploadError:_,onResetImageError:b,googleAccount:s,googleConnectionLoading:c,onGoogleConnect:d,onGoogleConnectError:()=>{f(U(`login.google_oauth_error`))},onGoogleDisconnect:p}),(0,K.jsx)(jg,{show:t===`loading`}),(0,K.jsx)(Dg,{message1:U(`account.edit_fail_account_head`),message2:(e=>{switch(e){case`phone_not_unique`:return U(`account.edit_fail_phone_registered`);case`email_not_unique`:return U(`package.signup.error.email_registered`);default:return U(`account.edit_fail_account`)}})(t),show:[`error`,`phone_not_unique`,`email_not_unique`].includes(t),onClose:o,height:t===`phone_not_unique`&&172}),(0,K.jsx)(E3,{phoneVerifyState:x,codeValue:S,onCodeChange:E,onClose:w,onSend:T}),u&&(0,K.jsx)(wf,{open:u,message:U(`account.google_connection_success`),onClose:()=>h(!1),success:!0}),l&&(0,K.jsx)(wf,{open:!!l,message:l,onClose:m,error:!0})]}):(0,K.jsx)(xf,{})},mAe={display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`,width:`100%`,flexDirection:`column`,position:`relative`},hAe={display:`flex`,justifyContent:`center`,alignItems:`center`,flexDirection:`column`,position:`relative`},L3=({show:e=!1})=>(0,K.jsx)(X,{onClose:()=>{},show:e,children:(0,K.jsx)(I,{sx:{height:`100%`},children:(0,K.jsx)(I,{sx:mAe,children:(0,K.jsxs)(I,{sx:hAe,children:[(0,K.jsx)(Y.IcBigProperties2,{}),(0,K.jsx)(bm,{}),(0,K.jsx)(Yg,{children:U(`account.importing_listing`)}),(0,K.jsx)(vm,{}),(0,K.jsx)(hf,{})]})})})});
2840L3.propTypes={show:V.default.bool};var R3=(function(){let e={OPEN_EXTERNAL_BROWSER:`openInExternalBrowser`,SUCCESS:`taskFinishedWithSuccess`,FAILURE:`taskFinishedWithFailure`},t=()=>!!(window.webkit||window.AndroidInterface);return{sendNotification:(e,n=``,r=!0)=>{if(!e||!t()){R.default.error(`bad request: unable to send notification mobile interface/method doesnt exist`);return}try{window.webkit&&window.webkit.messageHandlers[e].postMessage({message:r,partner:n,error:!1}),window.AndroidInterface&&window.AndroidInterface[e](JSON.stringify({message:r,partner:n,error:!1}))}catch{R.default.error(`unable to send Notification :Mobile Interface Error`)}},doesExist:t,methodTypes:e,isIOS:()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}})(),z3={color:`#36ACB2`,textDecoration:`none`,borderBottom:`1px solid transparent`,transition:`border 200ms ease`,cursor:`pointer`,"&:hover":{borderBottomColor:`#36ACB2`}},B3=(e,t,n=null)=>{switch(e){case Fa:return U(`adaptor.account_already_connected`,{partner:t});case Ia:return U(`adaptor.account_unavailable_reconnect`,{partner:t});case La:return U(`adaptor.different_account_reconnect`,{partner:t});case Ma:case Na:case Pa:return U(`account.error_profile_import`);case Ra:return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`span`,{children:U(`properties.property_create_fail_with_subscription`)}),(0,K.jsx)(q,{types:[`type-full-primary`,`size-large`,`fontw-normal`],styleOverwrite:{margin:`15px auto`},onClick:n,children:U(`account.update_details`)})]});default:return U(`account.connection_fail`)}},gAe=({errorCode:e,connectionSuccess:t,connectionFailed:n,externalMobileBrowserConnected:r,handleForceRedirect:i,dismissConnectionSuccess:a,dismissConnectionError:o,syncError:s,disconnectError:c,dismissDisconnectError:l,dismissSyncError:u,reConnectionSuccess:d,dismissReConnectError:f,dismissSuccessfulConnectModal:p,currentPartner:m,handleUpgradeClick:h})=>{if(t)return(0,K.jsx)(Dg,{message1:U(`account.connection_success_head`),message2:r?(0,K.jsx)(O,{i18nKey:`account.connection_external_browser_success`,components:{click:(0,K.jsx)(I,{component:`a`,sx:z3,onClick:e=>i(t,e),rel:`noopener noreferrer`,href:`#`})}}):``,show:!0,height:`auto`,onClose:()=>a(),noPrompt:!!r});if(n){let t=B3(e,m,h);return(0,K.jsx)(Dg,{message1:U(`account.connection_fail_head`),message2:t,show:!0,onClose:e=>r?i(!n,e):o(),isReconnect:!0,...e===`INVALID_PLAN`?{noPrompt:!0}:{}})}if(s||c)return(0,K.jsx)(Dg,{message1:U(s?`account.connection_fail_head`:`account.disconnect_fail_head`),message2:s||U(`account.disconnect_fail`),show:!0,onClose:()=>{l(),u()},height:`auto`,noPrompt:!!r});if(d)return(0,K.jsx)(Dg,{message1:U(`account.reconnect_successful_head`),message2:r?(0,K.jsx)(O,{i18nKey:`account.connection_external_browser_success`,components:{click:(0,K.jsx)(I,{component:`a`,sx:z3,onClick:e=>i(d,e),rel:`noopener noreferrer`,href:`#`})}}):``,show:!0,onClose:()=>p(),noPrompt:!!r});if(!d&&d!==void 0){let t=B3(e,m);return(0,K.jsx)(Dg,{message1:U(`account.reconnect_fail_head`),message2:t,show:!0,onClose:e=>r?i(!d,e):f(),isReconnect:!0})}return``};Qn();var _Ae={maxWidth:900,padding:`18px 20px`,backgroundColor:`var(--color-white)`,border:`1px solid var(--color-radio-border-idle)`,borderRadius:`8px`,boxShadow:`0 1px 3px rgba(0, 0, 0, 0.08)`};function V3(){return(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1.5,mb:1.5},children:[(0,K.jsx)(I,{component:`span`,sx:{fontSize:`11px`,fontWeight:700,letterSpacing:`0.08em`,textTransform:`uppercase`,color:`var(--color-text-secondary)`,flexShrink:0,whiteSpace:`nowrap`},children:U(`account.your_integrations`)}),(0,K.jsx)(I,{sx:{flex:1,height:`1px`,background:`var(--color-border-light)`}})]})}function vAe(){return(0,K.jsxs)(I,{"data-testid":`connected-account-provider-skeleton`,"aria-hidden":`true`,sx:{minHeight:`72px`,border:`1px solid var(--color-border-light)`,background:`var(--color-bg-paper)`,borderRadius:`var(--radius-md, 10px)`,padding:`14px 16px`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:2,boxShadow:`var(--shadow-sm)`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1.5,minWidth:0},children:[(0,K.jsx)(J,{height:40,width:40,variant:`rounded`}),(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:`6px`},children:[(0,K.jsx)(J,{height:16,width:140}),(0,K.jsx)(J,{height:12,width:88})]})]}),(0,K.jsx)(J,{height:36,width:96,variant:`rounded`})]})}function yAe(){return(0,K.jsxs)(I,{"data-testid":`pro-integrations-card-skeleton`,"aria-hidden":`true`,sx:{border:`1px solid var(--color-border-light)`,background:`var(--color-bg-paper)`,borderRadius:`var(--radius-md, 10px)`,p:{xs:`20px`,sm:`24px`},boxShadow:`var(--shadow-sm)`},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:{xs:`stretch`,sm:`center`},justifyContent:`space-between`,gap:2,flexDirection:{xs:`column`,sm:`row`}},children:[(0,K.jsxs)(I,{sx:{minWidth:0,flex:1,maxWidth:620},children:[(0,K.jsx)(J,{height:22,width:280}),(0,K.jsx)(I,{sx:{mt:1.5},children:(0,K.jsx)(J,{height:14,width:`55%`})})]}),(0,K.jsx)(I,{sx:{flexShrink:0},children:(0,K.jsx)(J,{height:36,width:132,variant:`rounded`})})]}),(0,K.jsx)(I,{sx:{mt:3,display:`grid`,gridTemplateColumns:{xs:`repeat(2, minmax(0, 1fr))`,sm:`repeat(4, minmax(0, 1fr))`},gap:1.5},children:[1,2,3,4].map(e=>(0,K.jsx)(J,{height:88,variant:`rounded`},e))})]})}function H3({onSubscriptionClick:e}){return(0,K.jsxs)(I,{"data-testid":`staff-connections-unavailable`,sx:_Ae,children:[(0,K.jsx)(Yg,{children:U(`account.staff_connections_unavailable_title`)}),(0,K.jsx)(I,{sx:{marginTop:`16px`},children:(0,K.jsx)(q,{"data-testid":`staff-connections-subscription-btn`,onClick:e,types:[`type-border-primary`,`size-medium`],children:U(`account.staff_connections_unavailable_cta`)})})]})}
2840H3.propTypes={onSubscriptionClick:V.default.func.isRequired};function U3({mobile:e=!1,externalMobileBrowserConnected:t=!1,onboardingMobile:n=!1}){let r=xe(),i=ir(),{trackClick:a,trackModalAction:o}=nT(`AccountConnectionsAdaptorContainer`),s=new URLSearchParams(i.search),c=s.get(`error`),l=s.get(`message`),u=j(e=>sw(e)),d=j(e=>vT(e)),f=j(e=>bhe(e)),p=j(e=>xhe(e)),m=j(e=>_he(e)),h=j(e=>She(e)),g=j(e=>Che(e)),_=j(e=>vhe(e)),v=j(e=>yhe(e)),y=j(e=>IC(e)),[b,x]=(0,B.useState)(!1),[S,C]=(0,B.useState)(!1),[w,T]=(0,B.useState)(!1),E=(0,B.useRef)(!1),[D,ee]=(0,B.useState)({isOpen:!1,partnerTitle:``,url:``,isLoading:!1}),[te,ne]=(0,B.useState)({isOpen:!1,account:null,accountLabel:``}),[re,O]=(0,B.useState)({isOpen:!1,connectedAccount:null,account:null,accountLabel:``}),[ie,ae]=(0,B.useState)(!1),[oe,se]=(0,B.useState)({isOpen:!1,connectedAccount:null,account:null,accountLabel:``}),ce=j(e=>Aw(e,s_.pms)),le=typeof y?.currentPlanId==`string`,ue=y?.currentPlanId===oo.STAFF;(0,B.useEffect)(()=>{let e=!!c&&c===`false`,t=c&&c===`true`||l===`NOT_IMPLEMENTED`||l===`SERVICE_FAILED`;x(e),C(t)},[c,l]),(0,B.useEffect)(()=>{e&&yu(!0),zpe()},[]),(0,B.useEffect)(()=>{le&&!ue&&!m&&!E.current&&(E.current=!0,r(vA()))},[r,le,ue,m]),(0,B.useEffect)(()=>{!e||!(t||n)||b&&r(_A(R3.methodTypes.SUCCESS,t,n,b,!0))},[e,t,n,b,r]),(0,B.useEffect)(()=>()=>{r(rge())},[r]);let de=(0,B.useCallback)(()=>{if(e){T(!0);return}ae(!0)},[e]),fe=()=>{qv(),de()},pe=(0,B.useCallback)(()=>{vme(),de()},[de]),me=(0,B.useCallback)(()=>{T(!1)},[]),he=(0,B.useCallback)(()=>{if(e||n){T(!0);return}r(hB(Z.settingsSubscription))},[r,e,n]),ge=(0,B.useCallback)(()=>{o(`provider_warning`,`cancel`),ee({isOpen:!1,partnerTitle:``,url:``,isLoading:!1})},[o]),_e=(0,B.useCallback)(()=>{let{url:e,partnerTitle:t}=D;e&&(o(`provider_warning`,`confirm`,{provider:t}),ee(e=>({...e,isLoading:!0})),setTimeout(()=>{window.location.href=e},500))},[D,o]),ve=(0,B.useCallback)((e,t,n)=>{let{oAuthLink:i,title:a}=e;if(!i){alert(`could not gadoodle the foodle`);return}if(e.proRequired&&!ce){R.default.info(`AccountConnectionsAdaptorContainer - Upgrade to pro needed`),de();return}if(Bv(e.id),t&&io.includes(e.id)&&R3.doesExist()){R.default.info(`[AccountConnectionsAdaptorContainer] - redirecting to external browser`),r(tge({oAuthLink:i,partnerTitle:a,connectedAccount:e,loginWarningBlacklist:[],mobile:t,onboardingMobile:n}));return}let o=(0,G.default)(u,[`partnerLoginWarningBlacklist`])||[],s=e?.connectionSettings?.length===0,c=(0,eb.default)(o,e.id)!==-1;if(s||c){R.default.info(`AccountConnectionsAdaptorContainer - Is first connect or blacklisted`),window.location.href=i;return}ee({isOpen:!0,partnerTitle:a,url:i,isLoading:!1})},[ce,u,r,de]),ye=(0,B.useCallback)(t=>{a(`sync_button`,{provider:t?.id,context:`connections`}),ve(t,e,n)},[a,ve,e,n]),be=(0,B.useCallback)((e,t)=>{a(`re_import_button`,{provider:e?.id,context:`connections`}),se({isOpen:!0,connectedAccount:e,account:t,accountLabel:t.resolvedName||t.label||``})},[a]),Se=(0,B.useCallback)(()=>{let{connectedAccount:e,account:t}=oe;t&&e&&(o(`reimport_confirm`,`confirm`,{provider:e?.id}),r(uge(t.id,e.id))),se({isOpen:!1,connectedAccount:null,account:null,accountLabel:``})},[oe,r,o]),Ce=(0,B.useCallback)(()=>{o(`reimport_confirm`,`cancel`),se({isOpen:!1,connectedAccount:null,account:null,accountLabel:``})},[o]),we=(0,B.useCallback)(e=>{a(`disconnect_button`,{provider:e?.id,context:`connections`}),ne({isOpen:!0,account:e,accountLabel:e.resolvedName||e.label||``})},[a]),Te=(0,B.useCallback)(()=>{let{account:t}=te;t&&(o(`disconnect_confirm`,`confirm`,{accountId:t.id}),r(oge(t.id,e))),ne({isOpen:!1,account:null,accountLabel:``})},[te,r,e,o]),Ee=(0,B.useCallback)(()=>{o(`disconnect_confirm`,`cancel`),ne({isOpen:!1,account:null,accountLabel:``})},[o]),De=(0,B.useCallback)(()=>{r(lge())},[r]),Oe=(0,B.useCallback)(()=>{r(pge())},[r]),ke=(0,B.useCallback)((e,t)=>{a(`re_connect_button`,{provider:e?.id,context:`connections`}),O({isOpen:!0,connectedAccount:e,account:t,accountLabel:t.resolvedName||t.label||``})},[a]),Ae=(0,B.useCallback)(()=>{let{connectedAccount:e,account:t}=re,{oAuthLink:n,title:r}=e||{};if(!n){R.default.error(`handleReconnectConfirm: No oAuthLink available`),O({
2840isOpen:!1,connectedAccount:null,account:null,accountLabel:``});return}o(`reconnect_confirm`,`confirm`,{provider:e?.id});let i=`${n}&redirectPath=/settings/connections&connectionSettingsId=${t.id||null}`,a=(0,G.default)(u,[`partnerLoginWarningBlacklist`])||[],s=e?.connectionSettings?.length===0,c=(0,eb.default)(a,e.id)!==-1;if(O({isOpen:!1,connectedAccount:null,account:null,accountLabel:``}),s||c){window.location.href=i;return}ee({isOpen:!0,partnerTitle:r,url:i,isLoading:!1})},[re,u,o]),je=(0,B.useCallback)(()=>{o(`reconnect_confirm`,`cancel`),O({isOpen:!1,connectedAccount:null,account:null,accountLabel:``})},[o]),Me=e=>{let t=ate?.includes(e.id);return(0,K.jsx)(I,{tabIndex:-1,sx:{outline:`none`},onClick:()=>R.default.info(`AccountConnectionsAdaptorContainer onClick`,e),children:(0,K.jsx)(Av,{accounts:e.connectionSettings,onConnect:()=>ye(e),onAdd:()=>ye(e),onSync:t=>be(e,t),onReconnect:t=>ke(e,t),onDisconnect:e=>we(e),showReconnect:t,icon:e.icon,text:e.label,onboardingMobile:n})},e.id)},Ne=()=>ce?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V3,{}),(0,K.jsx)(I,{sx:{display:`flex`,flexDirection:`column`,gap:2},children:(d||[]).map(Me)})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V3,{}),(0,K.jsx)(I,{sx:{display:`flex`,flexDirection:`column`,gap:2},children:f.map(Me)}),(0,K.jsx)(I,{sx:{mt:3},children:(0,K.jsx)(ty,{proIntegrations:p,onUpgradeClick:pe})})]}),Pe=()=>{let e=ce?qa.length+Ja.length:qa.length;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V3,{}),(0,K.jsx)(I,{sx:{display:`flex`,flexDirection:`column`,gap:2},children:Array.from({length:e},(e,t)=>(0,K.jsx)(vAe,{},t))}),!ce&&(0,K.jsx)(I,{sx:{mt:3},children:(0,K.jsx)(yAe,{})})]})},Fe=(e,i)=>{r(_A(e?R3.methodTypes.SUCCESS:R3.methodTypes.FAILURE,t,n,e)),i.preventDefault()},Ie=()=>C(!1),Le=()=>x(!1),Re=s.get(`partner`),ze=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(I,{sx:{maxWidth:980,width:`100%`,pb:`60px`},children:[!e&&(0,K.jsxs)(I,{sx:{pb:2.5,mb:3,borderBottom:`1px solid var(--color-border-light)`},children:[(0,K.jsx)(Kg,{type:`nomargin`,children:U(`account.connect_accounts`)}),!n&&(0,K.jsx)(I,{sx:{maxWidth:760,mt:1.5},children:(0,K.jsx)(Yg,{type:`greyloading`,children:U(`account.connect_txt`)})})]}),e&&!n&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{sx:{maxWidth:760},children:(0,K.jsx)(Yg,{type:`greyloading`,children:U(`account.connect_txt`)})}),(0,K.jsx)(ym,{})]}),ue&&(0,K.jsx)(H3,{onSubscriptionClick:he}),!ue&&m&&(0,K.jsx)(I,{children:Pe()}),!ue&&!m&&(0,K.jsx)(I,{children:Ne()})]}),(0,K.jsx)(gAe,{errorCode:l,connectionSuccess:b,connectionFailed:S,externalMobileBrowserConnected:t,handleForceRedirect:Fe,dismissConnectionSuccess:Le,dismissConnectionError:Ie,syncError:g,disconnectError:v,dismissSyncError:Oe,dismissDisconnectError:De,currentPartner:Sc(Re),handleUpgradeClick:fe}),(0,K.jsx)(az,{show:ie,onClose:()=>ae(!1)}),(0,K.jsx)(X,{id:`mobile-desktop-upgrade`,height:240,onClose:me,show:w,variableContentHeight:!0,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:U(`account.mobile_desktop_upgrade_title`)}),(0,K.jsx)(X.Text,{children:U(`account.mobile_desktop_upgrade_body`)}),(0,K.jsx)(X.Options,{center:!0,children:(0,K.jsx)(X.Ok,{onClick:me,children:U(`modal.ok`)})})]})}),(0,K.jsx)(L3,{show:h}),(0,K.jsx)(jg,{show:_}),(0,K.jsx)(X,{id:`account-warning`,height:230,onClose:ge,show:D.isOpen,children:D.isLoading?(0,K.jsxs)(I,{sx:{display:`flex`,height:`100%`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:2,p:3},children:[(0,K.jsx)(J,{height:24,width:200,variant:`rounded`}),(0,K.jsx)(J,{height:16,width:`80%`}),(0,K.jsx)(J,{height:16,width:`70%`})]}):(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:U(`account.verify_account`)}),(0,K.jsx)(X.Text,{children:U(`account.verify_account_low`,{provider:D.partnerTitle})}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:ge}),(0,K.jsx)(X.Ok,{onClick:_e,children:U(`account.continue`)})]})]})}),(0,K.jsx)(X,{id:`disconnect-confirm`,height:230,onClose:Ee,show:te.isOpen,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:U(`account.disconnect_confirm_title`)}),(0,K.jsx)(X.Text,{children:U(`account.disconnect_confirm_message`,{account:te.accountLabel})}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:Ee}),(0,K.jsx)(X.Ok,{onClick:Te,children:U(`account.disconnect`)})]})]})}),(0,K.jsx)(X,{id:`reconnect-confirm`,height:230,onClose:je,show:re.isOpen,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:U(`account.re
2840connect_confirm_title`)}),(0,K.jsx)(X.Text,{children:U(`account.reconnect_confirm_message`,{account:re.accountLabel})}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:je}),(0,K.jsx)(X.Ok,{onClick:Ae,children:U(`account.re_connect`)})]})]})}),(0,K.jsx)(X,{id:`reimport-confirm`,height:230,onClose:Ce,show:oe.isOpen,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:U(`account.reimport_confirm_title`)}),(0,K.jsx)(X.Text,{children:U(`account.reimport_confirm_message`,{account:oe.accountLabel})}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:Ce}),(0,K.jsx)(X.Ok,{onClick:Se,children:U(`account.re_import`)})]})]})})]});return e?ze:(0,K.jsx)(Jj,{type:`absolute-scroll`,children:ze})}U3.propTypes={mobile:V.default.bool,externalMobileBrowserConnected:V.default.bool,onboardingMobile:V.default.bool};var bAe=()=>{let[e,t]=(0,B.useState)({show:!1,type:null,message:``}),{loading:n,error:r,status:i,notificationSettings:a,allSMSDisabled:o,hasChanges:s,updatePendingChange:c,saveChanges:l,closeErrorModal:u,resetStatus:d,STATUS:f}=rAe();return(0,B.useEffect)(()=>{su(`titles.notifications`)()},[]),(0,B.useEffect)(()=>{i===f.SUCCESS&&t({show:!0,type:`success`,message:U(`account.notification_updated`)})},[i,f.SUCCESS]),n?(0,K.jsx)(Jj,{type:`absolute-scroll`,children:(0,K.jsx)(xf,{})}):r?(0,K.jsx)(Jj,{type:`absolute-scroll`,children:(0,K.jsx)(Dg,{message1:U(`account.load_fail_notifications_head`),message2:U(`account.load_fail_notifications`),show:!0,onClose:()=>window.location.reload()})}):(0,K.jsxs)(Jj,{type:`absolute-scroll`,children:[(0,K.jsx)(I3,{notificationSettings:a,allSMSDisabled:o,onUpdateChannel:c,hasChanges:s,onSaveChanges:l}),(0,K.jsx)(jg,{show:i===f.UPDATING}),(0,K.jsx)(Dg,{message1:U(`account.edit_fail_account_head`),message2:U(`account.edit_fail_account`),show:i===f.ERROR,onClose:u}),e.show&&(0,K.jsx)(wf,{open:!0,message:e.message,onClose:()=>{t({show:!1,type:null,message:``}),d()},error:e.type===`error`,success:e.type===`success`})]})},xAe=()=>{let{passwordStateJS:e,generalStatesJS:t,validation:n,errors:r,updatePasswordField:i,handleChangePassword:a,handleForgotPassword:o,sendPasswordResetEmail:s,closePasswordResetModal:c,closeUpdateErrorModal:l}=eAe();return(0,B.useEffect)(()=>{su(`titles.password`)()},[]),(0,K.jsxs)(Jj,{type:`absolute-scroll`,children:[(0,K.jsx)(A3,{passwordData:e,validation:n,updateStates:t,onUpdatePassword:i,onForgotPassword:o,onSubmit:a}),(0,K.jsx)(jg,{show:t.updatePw===1}),(0,K.jsx)(Dg,{message1:U(`account.edit_fail_pw_head`),message2:r.updatePassword||U(`account.edit_fail_pw`),show:t.updatePw===2,onClose:l}),(0,K.jsx)(M3,{sendPwState:t.sendPw,onClose:c,onSend:s})]})};function SAe(e){switch(e){case`open`:case`pending`:case`failed`:case`past_due`:case`processing`:case`voided`:return U(`pricing.status.unpaid`);case`closed`:case`collected`:case`paid`:return U(`pricing.status.paid`);default:return`NA`}}function CAe(e){let t=e.total,n=t.toFixed(2);if(typeof Intl==`object`&&typeof Intl.NumberFormat==`function`){let e=aa();n=Intl.NumberFormat(e,{minimumFractionDigits:2}).format(t)}let[r]=e.lineItems||[];return r&&(r=r.description),{price:`${e.currency} ${n}`,id:e.number,date:(0,z.default)(e.created).format(`L`),transaction:SAe(e.state),plan:r}}var W3=`__HEAD`,G3=e=>e===W3,wAe=[`date`,`id`,`price`,`plan`,`transaction`],TAe={id:!0},K3=()=>{let e=j(e=>IC(e)),[t,n]=(0,B.useState)(!0),[r,i]=(0,B.useState)([]);(0,B.useEffect)(()=>{(async()=>{Jpe();try{i((await fI()).map(CAe))}catch(e){R.default.error(`parseGetInvoicesByUser`,e)}finally{n(!1)}})()},[]);let a=(t,n)=>()=>{n&&uu(Yhe(t,e.subscriptionProviderToken),`_blank`)},o=(e,t,n,i)=>{let o=TAe[t]&&!G3(n),s=r[n]?r[n].id:null;return(0,K.jsx)(gv.Col,{onClick:a(s,o),isUnderlined:o,isHead:i,children:e},`table${s}-${t}`)},s=(e,t)=>G3(e)?o(U(`account.receipttable.${t}`),t,e,!0):o(r[e][t],t,e),c=e=>(0,K.jsx)(gv.Row,{isHead:G3(e),children:wAe.map(t=>s(e,t))},`tablerow${e}`);return e?(0,K.jsxs)(Jj,{type:`absolute-scroll`,children:[t&&(0,K.jsx)(xf,{static:!0}),!t&&(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(Cv,{children:[(0,K.jsx)(Kg,{type:`nomargin`,children:U(`account.re
2840ceipts`)}),(0,K.jsx)(Dm,{type:[`bottom`]})]}),(0,K.jsx)(ym,{}),(0,K.jsxs)(gv,{children:[(0,K.jsx)(gv.Head,{children:c(W3)}),(0,K.jsx)(gv.Body,{children:r.map((e,t)=>c(t))})]})]})]}):null};Qn();var EAe=({...e})=>(0,K.jsx)(p3,{disableWrapper:!0,...e,children:(0,K.jsx)(I,{sx:{padding:2},children:(0,K.jsx)(kn,{})})}),DAe=window.location.pathname,OAe=String(DAe).indexOf(`account-mobile/connections-mobile`)!==-1,q3=`PROPERLY_recordMobileConnectionsViewed`,J3=`PROPERLY_recordMobileOnboardingViewed`,Y3=`PROPERLY_recordMobileOpenedExternalBrowserKey`,X3=e=>{vi.set(e,!0)},Z3=e=>e?!!vi.get(e):!1,kAe=e=>{vi.remove(e)},Q3=(e,t)=>{let n=e?.get(`redirectParams`),r;if(n)try{r=ns(window.atob(n))}catch{R.default.error(`Could not decode redirectParam`)}let i=r?.redirectPartner,a=r?.connectDirect,o=r?.redirectPartnerLabel,s=r?.reconnectId;if(t){let t=e?.get(`settings`),n=e?.get(`onboarding`)||r?.onboarding;X3(q3),n===`true`&&X3(J3),a&&X3(Y3),(t===`true`&&!n||n===`false`)&&kAe(J3)}return{redirectPartnerId:i,redirectPartnerLabel:o,connectDirectAccount:a,reconnectId:s}},AAe=e=>Q3(e,!0),$3=()=>(Z3(q3)||OAe)&&Tu(),jAe=()=>{let[e]=on(),{redirectPartnerId:t,connectDirectAccount:n,redirectPartnerLabel:r,reconnectId:i}=AAe(e);return t&&n&&r?(0,K.jsx)(h3,{mobile:!0,reconnectId:i,redirectPartnerId:t,connectDirectPartner:n,redirectPartnerLabel:r}):(0,K.jsx)(U3,{connectDirectPartner:n,redirectPartnerId:t,externalMobileBrowserConnected:Z3(Y3),mobile:!0,onboardingMobile:Z3(J3)})},MAe=()=>{let[e]=on(),{redirectPartnerId:t,connectDirectAccount:n,redirectPartnerLabel:r}=Q3(e,!1);return(0,K.jsx)(h3,{redirectPartnerId:t,connectDirectPartner:n,redirectPartnerLabel:r})},NAe=()=>(0,K.jsx)(EAe,{onboardingMobile:Z3(J3)}),e6=()=>(0,K.jsx)(Wr,{to:`/settings/connections${ir().search}`,replace:!0}),t6=()=>(0,K.jsx)(Wr,{to:`/account-mobile/connections-mobile${ir().search}`,replace:!0}),PAe=()=>(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(N,{element:(0,K.jsx)(UB,{}),children:(0,K.jsxs)(N,{element:(0,K.jsx)(KB,{}),children:[(0,K.jsxs)(N,{path:`account-mobile`,element:(0,K.jsx)(NAe,{}),children:[(0,K.jsx)(N,{index:!0,element:(0,K.jsx)(Wr,{to:`connections-mobile`,replace:!0})}),(0,K.jsx)(N,{path:`connections-mobile`,element:(0,K.jsx)(jAe,{})}),(0,K.jsx)(N,{path:`connections-mobile/:partner/:id`,element:(0,K.jsx)(Wr,{to:`/account-mobile/connections-mobile`,replace:!0})})]}),(0,K.jsx)(N,{path:`account/connect-direct-oauth`,element:(0,K.jsx)(MAe,{})}),(0,K.jsxs)(N,{path:`account`,element:(0,K.jsx)(p3,{}),children:[$3()&&(0,K.jsx)(N,{path:`connections/`,element:(0,K.jsx)(t6,{})}),$3()&&(0,K.jsx)(N,{path:`connections`,element:(0,K.jsx)(t6,{})}),$3()&&(0,K.jsx)(N,{path:`oauth/`,element:(0,K.jsx)(t6,{})}),$3()&&(0,K.jsx)(N,{path:`oauth`,element:(0,K.jsx)(t6,{})}),(0,K.jsx)(N,{index:!0,element:(0,K.jsx)(pAe,{})}),(0,K.jsx)(N,{path:`oauth`,element:(0,K.jsx)(e6,{})}),(0,K.jsx)(N,{path:`connections`,element:(0,K.jsx)(e6,{})}),(0,K.jsx)(N,{path:`connections/`,element:(0,K.jsx)(e6,{})}),(0,K.jsx)(N,{path:`notifications`,element:(0,K.jsx)(bAe,{})}),(0,K.jsx)(N,{path:`password`,element:(0,K.jsx)(xAe,{})}),(0,K.jsx)(N,{path:`receipts`,element:(0,K.jsx)(K3,{})}),(0,K.jsx)(N,{path:`subscription`,element:(0,K.jsx)(zB,{})})]})]})})});Qn();var n6=({readOnly:e,closeRoute:t})=>{let n=Rn(),r=ir(),[i]=on(),a=i.get(`redirectUrl`);return(0,B.useEffect)(()=>{su(`titles.checklist`)()},[]),(0,K.jsx)(XQ,{redirectUrl:a,pathname:r.pathname,checklistId:n.checklistId,jobInstructionId:n.jobInstructionId,readOnly:!!e,closeRoute:t})};Qn();var FAe=()=>(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(N,{element:(0,K.jsx)(UB,{}),children:(0,K.jsx)(N,{element:(0,K.jsx)(KB,{}),children:(0,K.jsxs)(N,{element:(0,K.jsx)(sV,{feature:s_.webapp}),children:[(0,K.jsx)(N,{path:`checklists`,element:(0,K.jsx)(n6,{})}),(0,K.jsx)(N,{path:`checklists/:checklistId/:jobInstructionId/:id`,element:(0,K.jsx)(n6,{})}),(0,K.jsx)(N,{path:`checklists/:checklistId/:jobInstructionId/`,element:(0,K.jsx)(n6,{})})]})})})}),IAe={jobsnapshotid:300,propertyname:300,slides:100,actualstartdate:150,actualenddate:150,schedulestart:150,scheduleend:150,offeredpricecurrency:150,verificationphotos:150,timedate:150,msgfromserviceprovider:210,actualtime:150,actualstarttime:150,actualendtime:150,bedrooms:100,bathrooms:100,address:300,jobsenddate:150,accessinfo:300,importantinfo:300,sharedBy:200,inspectedBy:200,propertytype:150,tasks:100,offeredprice:150,msgtoserviceprovider:300,canceledbyme:150,problemsreported:150,problemslist:300,thumbsup:100,thumbsdown:100,paymentid:200,paymentstatus:200,paymentdate:200,paymentamount:150,wifidescription:200,parkinginfo:300,viewed:100,scheduletime:150,scheduleduration:150,garbageinfo:300,description:300,response:117,job_title:200,jobType:150,totalCost:100,bilableTime:100,billableTime:100,totalMilage:100,totalMileage:100,city:150,countrycode:100,wifiname:150,wifipassword:150,name:200,email:240,jobCount:130,duration:120,timeSpent:120,timeSpentFlagged:110,timeSpentVariance:130,timeSpentFlagReason:150,statusofrequest:150,canceledbyserviceprovider:150,title:200},r6=`jobsnapshotid.propertyname.address.city.countrycode.bedrooms.bathrooms.propertytype.accessinfo.garbageinfo.parkinginfo.wifiname.wifipassword.wifidescription.importantinfo.sharedBy.inspectedBy.job_title.jobType.totalCost.billableTime.totalMileage.jobsenddate.schedulestart.scheduleend.scheduletime.scheduleduration.actualstartdate.actualenddate.actualtime.actualstarttime.actualendtime.duration.timeSpent.timeSpentFlagged.timeSpentVariance.timeSpentFlagReason.statusofrequest.msgtoserviceprovider.offeredprice.offeredpricecurrency.paymentid.paymentstatus.paymentdate.paymentamount.canceledbyme.canceledbyserviceprovider.name.timedate.viewed.response.msgfromserviceprovider.slides.tasks.verificationphotos.problemsreported.problemslist.thumbsup.thumbsdown.title.description`.split(`.`),i6={propertyname:!0,jobsenddate:!0,schedulestart:!0,scheduleend:!0,scheduletime:!0},LAe={property:{label:`Property`,columns:[`jobsnapshotid`,`propertyname`,`address`,`city`,`countrycode`,`bedrooms`,`bathrooms`,`propertytype`,`accessinfo`,`garbageinfo`,`parkinginfo`,`wifiname`,`wifipassword`,`wifidescription`,`importantinfo`,`sharedBy`]},jobrequest:{label:`Job Request`,columns:`job_title.jobType.totalCost.billableTime.totalMileage.actualstartdate.actualenddate.actualtime.actualstarttime.actualendtime.duration.timeSpent.timeSpentFlagged.timeSpentVariance.timeSpentFlagReason.jobsenddate.schedulestart.scheduleend.scheduletime.scheduleduration.msgtoserviceprovider.statusofrequest.canceledbyme.canceledbyserviceprovider.offeredprice.offeredpricecurrency`.split(`.`)},serviceprovider:{label:`Service Provider`,columns:[`name`,`timedate`,`viewed`,`response`,`msgfromserviceprovider`]},progress:{label:`Progress`,columns:[`slides`,`tasks`,`verificationphotos`,`problemsreported`,`problemslist`,`thumbsup`,`thumbsdown`]},checklist:{label:`Checklist`,columns:[`title`,`description`]}},a6={inspectedBy:!0},RAe={paymentid:!0,paymentstatus:!0,paymentdate:!0,paymentamount:!0},zAe={pending:`AVAILABLE`,declined:`DECLINED`,accepted:`ACCEPTED`,cancelledByCleaner:`CANCELED`,started:`IN_PROGRESS`,finished:`FINISHED`,delayed:`DELAYED`},o6={pending:`Pending`,declined:`Declined`,accepted:`Accepted`,cancelledByCleaner:`Cancelled`,started:`In Progress`,finished:`Finished`,delayed:`Delayed`},s6={turnover:`Turnover`,concierge:`Concierge`,maintenance:`Maintenance`,inspection:`Inspection`,other:`Other`}
2840,c6={INITIAL:`initial`,LOADING:`loading`,ERROR:`error`,SUCCESS:`success`},l6={SAVE:`save`,DELETE:`delete`,EXPORT:`csv`,ERROR:`error`,LOADING:`loading`},u6=[`name`,`email`,`jobCount`,`timeSpent`],d6={today:`today`,thisweek:`thisWeek`,lastweek:`lastWeek`,thismonth:`thisMonth`,lastmonth:`lastMonth`,custom:`custom`},BAe=[{key:`thisweek`,label:`This Week`},{key:`lastweek`,label:`Last Week`},{key:`thismonth`,label:`This Month`},{key:`lastmonth`,label:`Last Month`},{key:`custom`,label:`Custom Range`}],f6=Object.keys(no).reduce((e,t)=>({...e,[t]:!0}),{}),p6={view:`jobs`,contacts:{selected:{},isAll:!0,isOpen:!1,isTouched:!1},properties:{selected:{},isAll:!0,isOpen:!1,isTouched:!1},date:{isOpen:!1,active:`thismonth`,mode:!1,start:(0,z.default)().startOf(`month`).startOf(`day`),end:(0,z.default)().endOf(`month`).endOf(`day`)},problems:{value:!1,isOpen:!1},title:{value:``,showValidation:!1},columns:{isOpen:!1,isTouched:!1,selected:{propertyname:!0,bedrooms:!0,bathrooms:!0,jobsenddate:!0,schedulestart:!0,scheduleend:!0,scheduletime:!0,scheduleduration:!0,actualstartdate:!0,actualtime:!0,actualstarttime:!0,actualendtime:!0,offeredprice:!0,name:!0,problemsreported:!0,title:!0,job_title:!0,jobType:!0},selectedHeaders:{property:!0,jobrequest:!0,serviceprovider:!0,checklist:!0,progress:!0},states:{property:{children:{jobsnapshotid:!0,propertyname:!0,address:!0,city:!0,countrycode:!0,bedrooms:!0,bathrooms:!0,propertytype:!0,accessinfo:!0,garbageinfo:!0,parkinginfo:!0,wifiname:!0,wifipassword:!0,wifidescription:!0,importantinfo:!0,sharedBy:!0}},jobrequest:{children:{job_title:!0,jobType:!0,totalCost:!0,billableTime:!0,totalMileage:!0,actualstartdate:!0,actualenddate:!0,actualtime:!0,actualstarttime:!0,actualendtime:!0,duration:!0,timeSpent:!0,timeSpentFlagged:!0,timeSpentVariance:!0,timeSpentFlagReason:!0,jobsenddate:!0,schedulestart:!0,scheduleend:!0,scheduletime:!0,scheduleduration:!0,msgtoserviceprovider:!0,statusofrequest:!0,canceledbyme:!0,canceledbyserviceprovider:!0,offeredprice:!0,offeredpricecurrency:!0}},serviceprovider:{children:{name:!0,timedate:!0,viewed:!0,response:!0,msgfromserviceprovider:!0}},progress:{children:{slides:!0,tasks:!0,verificationphotos:!0,problemsreported:!0,problemslist:!0,thumbsup:!0,thumbsdown:!0}},checklist:{children:{title:!0,description:!0}}}},status:{isTouched:!1,isOpen:!1,selected:{pending:!0,accepted:!0,declined:!0,cancelledByCleaner:!0,delayed:!0,started:!0,finished:!0},states:{pending:!0,accepted:!0,declined:!0,delayed:!0,cancelledByCleaner:!0,started:!0,finished:!0}},jobTypes:{isTouched:!1,isOpen:!1,selected:f6,types:f6}};function VAe(e){return e&&e.trim().length>0}function m6(e={}){return e=e||{},{hasProperty:(0,Ux.default)(e.properties?.selected||{}).length>0||e.properties?.isAll,hasContact:(0,Ux.default)(e.contacts?.selected||{}).length>0||e.contacts?.isAll}}function h6(e={}){e=e||{};let t=(0,Ux.default)(e.columns?.selected||{}).length>0,{hasProperty:n,hasContact:r}=m6(e);return R.default.debug(`isValidForFetch`,{hasColumns:t,hasProperty:n,hasContact:r}),t&&n&&r}function g6(e={}){let{hasProperty:t,hasContact:n}=m6(e);return R.default.debug(`isValidForCleanerFetch`,{hasProperty:t,hasContact:n}),t&&n}function _6(e){if(!e)return``;let t=e.date?.active||``,n=(0,Ux.default)(e.columns?.selected||{}).join(`,`),r=(0,Ux.default)(e.status?.selected||{}).join(`,`),i=(0,Ux.default)(e.jobTypes?.selected||{}).join(`,`),a=(0,Ux.default)(e.properties?.selected||{}).join(`,`),o=(0,Ux.default)(e.contacts?.selected||{}).join(`,`),s=e.problems?.value||!1,c=e.title?.value||``,l=e.view||`jobs`;return t===`custom`&&(t+=e.date?.start&&e.date.start.toDate?.()?.toString()||``,t+=e.date?.end&&e.date.end.toDate?.()?.toString()||``),`${t}#${n}#${r}#${i}#${a}#${o}#${s}#${c}#${l}`}function v6(e){return U(`reports.select.${e}`)||e||`Unknown`}var y6=v6,HAe={timeSpentFlagReason:`timeSpentFlagReasonLabel`};function UAe(e){return(0,If.default)(r6,(t,n)=>{if(e[n]){let e=HAe[n]||n;t[e]=v6(n)}return t},{})}function WAe(e,t){switch(e){case`msgfromserviceprovider`:case`title`:case`description`:case`problemslist`:return{type:`textstackflex`,data:t};case`response`:case`viewed`:case`timedate`:case`name`:return{type:`textstack`,data:t};case`paymentstatus`:return{type:`paymentstatus`,data:t};case`jobType`:{if(t===`-`)return t;let e=Vl(t);return e?U(`reports.jobTypes.${e}`):t}default:return t}}function GAe(e){return(0,If.default)(e,(e,t,n)=>(e[n]=WAe(n,t),e),{})}function b6(e){let t,n;switch(e){case`today`:t=(0,z.default)().startOf(`day`),n=(0,z.default)().endOf(`day`);break;case`thisweek`:t=(0,z.default)().startOf(`week`),n=(0,z.default)().endOf(`week`);break;case`lastweek`:{let e=(0,z.default)().subtract(1,`week`);t=(0,z.default)(e).startOf(`week`),n=(0,z.default)(e).endOf(`week`);break}case`thismonth`:t=(0,z.default)().startOf(`month`),n=(0,z.default)().endOf(`month`);break;case`lastmonth`:{let e=(0,z.default)().subtract(1,`months`);t=(0,z.default)(e).startOf(`month`),n=(0,z.default)(e).endOf(`month`);break}default:break}return{start:t,end:n}}function x6(e,t){return t?(0,Qq.default)(d6)[e]:d6[e?.active]}var S6=e(Wee());function C6(e){return e?(0,If.default)(e,(e,t)=>(e[t]=!0,e),{}):{}}function KAe(e){return!e?.selected||!e?.types||(0,Ux.default)(e.selected).length===(0,Ux.default)(e.types).length?`all`:(0,S6.default)((0,Ux.default)(e.selected))}function qAe(e){return!e?.selected||!e?.states||(0,Ux.default)(e.selected).length===(0,Ux.default)(e.states).length?`all`:(0,S6.default)((0,Ux.default)(e.selected))}function JAe(e){let t={};return t.problem=e.problems?.value||!1,t.columns=(0,H.default)(e.columns?.selected||{},(e,t)=>t),t.status=qAe(e.status),t.jobTypes=KAe(e.jobTypes),t.properties=(0,Ux.default)(e.properties?.selected||{}),t.cleaners=(0,Ux.default)(e.contacts?.selected||{}),t.dateRange=x6(e.date),t.view=e.view||`jobs`,e.date?.active===`custom`&&(t.startDate=e.date?.start?e.date.start.toDate():void 0,t.endDate=e.date?.end?e.date.end.toDate():void 0),{title:e.title?.value||``,filter:t}}function YAe(e,t={},n={}){let{filter:r}=e||{},{cleaners:i,properties:a}=r||{},o={},s=C6(i||[]),c=C6(a||[]);if(o.title={value:e?.title||``},o.view=r?.view||`jobs`,o.contacts={},o.properties={},o.date={},o.problems={},o.columns={},o.status={selected:{}},o.jobTypes={selected:{}},o.contacts.selected=s,o.contacts.isAll=!i||i.length===0,o.properties.selected=c,o.properties.isAll=!a||a.length===0,o.date.active=x6(r?.dateRange,!0),o.date.active===`custom`)o.date.start=(0,z.default)(r?.startDate).set({hour:0,minute:0,second:0,millisecond:0}),o.date.end=(0,z.default)(r?.endDate).set({hour:23,minute:59,second:59,millisecond:0});else if(o.date.active){let{start:e,end:t}=b6(o.date.active);o.date.start=e,o.date.end=t}else{o.date.active=`thismonth`;let{start:e,end:t}=b6(`thismonth`);o.date.start=e,o.date.end=t}return o.problems.value=r?.problem||!1,o.columns.selected=C6(r?.columns),r?.status===`all`?o.status.selected=C6((0,Ux.default)(t)):r?.status&&(o.status.selected[r.status]=!0),r?.
2840jobTypes===`all`?o.jobTypes.selected=C6((0,Ux.default)(n)):r?.jobTypes&&(o.jobTypes.selected[r.jobTypes]=!0),o}var XAe=e(Yn()),w6=e(nr());function T6(e){return{startDate:e.start?(0,z.default)(e.start).format(`DD.MM.YYYY`):void 0,endDate:e.end?(0,z.default)(e.end).format(`DD.MM.YYYY`):void 0,properties:e.properties?e.properties:void 0,cleaners:e.cleaners?e.cleaners:void 0,problemsReported:!!e.problem,jobType:e.jobType,jobRequestStatus:e.jobStatus,inspectedBy:e.inspectedBy?e.inspectedBy:void 0}}function E6(e){return{startDate:e.start?(0,z.default)(e.start).format(`DD.MM.YYYY`):void 0,endDate:e.end?(0,z.default)(e.end).format(`DD.MM.YYYY`):void 0,properties:e.properties?e.properties:void 0,cleaners:e.cleaners?e.cleaners:void 0,jobRequestStatus:e.jobStatus?e.jobStatus:void 0}}function D6(e,t){let n={};n.hostId=t;try{let t=(0,Ux.default)(e.properties?.selected||{}),r=(0,Ux.default)(e.contacts?.selected||{}),i=(0,Ux.default)(e.status?.selected||{}),a=(0,Ux.default)(e.jobTypes?.selected||{});e.date?.start&&(n.start=e.date.start.toDate()),e.date?.end&&(n.end=e.date.end.toDate()),n.skip=0,n.limit=100,t.length>0&&(n.properties=t),r.length>0&&(n.cleaners=r),i.length===1&&(n.jobStatus=zAe[i[0]]),a.length===1&&(n.jobType=no[a[0]]),e.problems?.value&&(n.problem=!0)}catch(e){R.default.error(`genParamsFromSections`,e)}return n}function ZAe(e,t){return(0,If.default)(t,(t,n,r)=>{let i=(0,G.default)(e,[r,`contactId`]);return i&&(t[i]=!0),t},{})}function O6(e,t){let n=(0,bc.default)(e);return(0,XAe.default)(n,`contacts.selected`,ZAe(t,(0,w6.default)(n,`contacts.selected`)))}var QAe=[`actualstartdate`,`actualenddate`,`jobsenddate`,`schedulestart`,`scheduleend`,`timedate`,`paymentdate`],$Ae=[`actualtime`,`actualstarttime`,`actualendtime`,`scheduletime`],eje=[`viewed`,`canceledbyme`,`canceledbyserviceprovider`],tje=[`bedrooms`,`bathrooms`,`slides`,`tasks`,`verificationphotos`,`thumbsup`,`thumbsdown`,`offeredprice`,`paymentamount`,`totalCost`,`billableTime`,`totalMileage`,`problemsreported`,`jobCount`],nje=[`scheduleduration`,`duration`,`timeSpent`,`timeSpentVariance`],rje=[`timeSpentFlagged`],ije=e=>QAe.includes(e),aje=e=>$Ae.includes(e),oje=e=>eje.includes(e),sje=e=>tje.includes(e),k6=e=>nje.includes(e),cje=e=>rje.includes(e),lje=e=>e===`timeSpentFlagReason`,A6=e=>e===`statusofrequest`,uje=e=>e===`paymentstatus`,dje=e=>e===`jobType`,j6=[`late_finish`,`no_finish`];function fje(e){if(!e)return`-`;let t=(0,z.default)(e);return t.isValid()?t.format(`MMM D, YYYY`):`-`}function pje(e){return e||`-`}function mje(e){if(typeof e!=`number`)return e||`-`;let t=Math.floor(e/60),n=e%60;return t>0?`${t}h ${n}m`:`${n}m`}function M6(e){return typeof e==`string`?e.trim().toLowerCase()===`yes`:e===!0}function hje(e){return M6(e)?U(`reports.flagged_yes`)||`Yes`:`-`}function gje(e){return j6.includes(e)?U(`reports.flagReasonValue.${e}`):`-`}function _je(e){return o6[e]||e||`-`}function vje(e){return s6[e]||e||`-`}function yje(e,t){return cje(e)?hje(t):t==null||t===``?`-`:ije(e)?fje(t):aje(e)?pje(t):k6(e)?mje(t):e===`offeredpricecurrency`?t||`-`:lje(e)?gje(t):A6(e)?_je(t):dje(e)?vje(t):String(t)}function bje(e=p6){let[t,n]=(0,B.useState)(()=>(0,bc.default)(e)),[r,i]=(0,B.useState)(()=>(0,bc.default)(e)),a=(0,B.useCallback)((e,t={})=>{n(n=>{if(e===`custom`){let r={...t};return r.end&&(r.end=r.end.set({hour:23,minute:59,second:59,millisecond:0})),r.start&&(r.start=r.start.set({hour:0,minute:0,second:0,millisecond:0})),{...n,date:{...n.date,mode:!0,active:e,...r}}}let{start:r,end:i}=b6(e);return{...n,date:{...n.date,start:r,end:i,active:e,mode:!1}}})},[]),o=(0,B.useCallback)(e=>{n(t=>t.view===e?t:{...t,view:e})},[]),s=(0,B.useCallback)((e,t,r={})=>{let{flush:i=!1,toggle:a=!1}=r;n(n=>{let r=n[e]?.selected||{},o;if(i)o=t;else if(a){let[e]=Object.keys(t);if(r[e]){let{[e]:t,...n}=r;o=n}else o={...r,...t}}else o={...r,...t};return{...n,[e]:{...n[e],selected:o,isTouched:!0}}})},[]),c=(0,B.useCallback)(e=>{n(t=>({...t,[e]:{...t[e],isOpen:!t[e]?.isOpen}}))},[]),l=(0,B.useCallback)((e,t)=>{n(n=>({...n,[e]:{...n[e],isTouched:t}}))},[]),u=(0,B.useCallback)((e,t)=>{n(n=>({...n,[e]:{...n[e],isAll:t,selected:t?{}:n[e]?.selected||{}}}))},[]),d=(0,B.useCallback)((e,t)=>{n(n=>({...n,[e]:{...n[e],value:t}}))},[]),f=(0,B.useCallback)(e=>{n(t=>({...t,title:{...t.title,showValidation:e?Date.now():!1}}))},[]),p=(0,B.useCallback)(e=>{n(t=>{let n=t.columns?.selected||{},r;if(n[e]){let{[e]:t,...i}=n;r=i}else r={...n,[e]:!0};return{...t,columns:{...t.columns,selected:r,isTouched:!0}}})},[]),m=(0,B.useCallback)(e=>{n(t=>({...t,columns:{...t.columns,selectedHeaders:{...t.columns?.selectedHeaders,[e]:!t.columns?.selectedHeaders?.[e]}}}))},[]),h=(0,B.useCallback)((e,t)=>
2840{n(e=>{let n=e.columns?.selected||{},r=t.every(e=>n[e]),i;return r?(i={...n},t.forEach(e=>delete i[e])):(i={...n},t.forEach(e=>{i[e]=!0})),{...e,columns:{...e.columns,selected:i,isTouched:!0}}})},[]),g=(0,B.useCallback)(e=>{n(t=>({...t,columns:{...t.columns,selected:e,isTouched:!0}}))},[]),_=(0,B.useCallback)((e,t,r,a=!1)=>{let o;if(!e)o=(0,bc.default)(p6);else{let n=YAe(e,t,r),i=(0,bc.default)(p6.columns),a=n.columns||{},s=Object.keys(a.selected||{}).length>0?a.selected:i.selected;o={...(0,bc.default)(p6),...n,columns:{...i,...a,selected:s,isTouched:!0},status:{...(0,bc.default)(p6.status),...n.status,isTouched:!0},jobTypes:{...(0,bc.default)(p6.jobTypes),...n.jobTypes,isTouched:!0},properties:{...(0,bc.default)(p6.properties),...n.properties,isTouched:!0},contacts:{...(0,bc.default)(p6.contacts),...n.contacts,isTouched:!0}}}return o.columns?.states?.jobrequest?.children&&(o.columns.states.jobrequest.children={...o.columns.states.jobrequest.children,...RAe}),a&&o.columns?.states?.property?.children&&(o.columns.states.property.children={...o.columns.states.property.children,...a6},o.columns.selected={...o.columns.selected,...a6}),n(o),i((0,bc.default)(o)),o},[]),v=(0,B.useCallback)(()=>{n((0,bc.default)(r))},[r]),y=(0,B.useCallback)(()=>{n((0,bc.default)(p6))},[]),b=(0,B.useCallback)(()=>{i((0,bc.default)(t))},[t]);return{filters:t,originalFilters:r,setFilters:n,setView:o,setDateRange:a,setSelectedItems:s,toggleSectionOpen:c,setTouched:l,setIsAll:u,setSectionValue:d,setShowValidation:f,toggleColumn:p,toggleColumnHeader:m,toggleColumnCategory:h,setColumns:g,mergeFilters:(0,B.useCallback)((e,t)=>{n(n=>({...n,[e]:{...n[e],...t}}))},[]),initializeFromReport:_,resetFilters:v,clearFilters:y,snapshotFilters:b,isValidForFetch:(0,B.useMemo)(()=>h6(t),[t]),selectedColumnsOrdered:(0,B.useMemo)(()=>{let e=r6.filter(e=>t.columns?.selected?.[e]);if(e.length===0){let e=p6.columns?.selected||{};return r6.filter(t=>e[t])}return e},[t.columns?.selected]),hasChanges:(0,B.useMemo)(()=>_6(t)!==_6(r),[t,r]),isTitleValid:(0,B.useMemo)(()=>t.title?.value&&t.title.value.trim().length>0,[t.title?.value]),selectedColumnCount:(0,B.useMemo)(()=>(0,Ux.default)(t.columns?.selected||{}).length,[t.columns?.selected]),selectedPropertyCount:(0,B.useMemo)(()=>t.properties?.isAll?`All`:(0,Ux.default)(t.properties?.selected||{}).length,[t.properties]),selectedContactCount:(0,B.useMemo)(()=>t.contacts?.isAll?`All`:(0,Ux.default)(t.contacts?.selected||{}).length,[t.contacts]),selectedStatusCount:(0,B.useMemo)(()=>{let e=(0,Ux.default)(t.status?.selected||{}).length;return e===(0,Ux.default)(t.status?.states||{}).length?`All`:e},[t.status]),selectedJobTypeCount:(0,B.useMemo)(()=>{let e=(0,Ux.default)(t.jobTypes?.selected||{}).length;return e===(0,Ux.default)(t.jobTypes?.types||{}).length?`All`:e},[t.jobTypes])}}function xje(e,t=!0){let[n,r]=(0,B.useState)({rows:[],pointer:0,total:0}),[i,a]=(0,B.useState)(c6.INITIAL),[o,s]=(0,B.useState)(null),c=(0,B.useRef)(null),l=(0,B.useRef)(!0),u=(0,B.useRef)(e);u.current=e;let d=j(EC),f=j(KC),p=j(sB),m=(0,B.useCallback)(async(e=0,t=!1)=>{let n=u.current;if(!h6(n)){R.default.debug(`useReportData: filters not valid for fetch`);return}c.current&&c.current.abort(),c.current=new AbortController;let i=c.current;try{a(c6.LOADING),s(null);let o=D6(O6(n,f),d);o.skip=e,o.limit=100,R.default.debug(`useReportData: fetching`,{params:o,skip:e,append:t});let c=await jN({...T6({...o,inspectedBy:p}),skip:o.skip,limit:100});if(!l.current||i.signal.aborted)return;let u=(0,H.default)(c.data,GAe);r(n=>({rows:t?[...n.rows,...u]:u,pointer:e,total:c.total||u.length,hasMore:u?.length===100})),a(c6.SUCCESS)}catch(e){if(e.name===`AbortError`||i.signal.aborted)return;R.default.error(`useReportData: fetch error`,e),l.current&&(s(e),a(c6.ERROR))}},[d,f,p]),h=(0,B.useCallback)(()=>{m(n.pointer+100,!0)},[n.pointer,m]),g=(0,B.useCallback)(()=>{m(0,!1)},[m]),_=(0,B.useCallback)(()=>{r({rows:[],pointer:0,total:0}),a(c6.LOADING),s(null)},[]);(0,B.useEffect)(()=>(l.current=!0,()=>{l.current=!1,c.current&&c.current.abort()}),[]);let{title:v,...y}=e;(0,B.useEffect)(()=>
2840{if(!t)return;let e=setTimeout(()=>{h6(u.current)&&m(0,!1)},300);return()=>clearTimeout(e)},[_6(y),d,t,m]);let b=i===c6.LOADING,x=i===c6.ERROR,S=i===c6.SUCCESS&&n.rows.length===0;return{data:n,rows:n.rows,pointer:n.pointer,total:n.total,status:i,isLoading:b,isError:x,isEmpty:S,hasMore:!!n.hasMore,error:o,fetchData:m,loadMore:h,refresh:g,clearData:_}}function Sje(e,t=!0){let[n,r]=(0,B.useState)({rows:[],pointer:0,hasMore:!1}),[i,a]=(0,B.useState)(c6.INITIAL),[o,s]=(0,B.useState)(null),c=(0,B.useRef)(null),l=(0,B.useRef)(!0),u=(0,B.useRef)(e);u.current=e;let d=j(EC),f=j(KC),p=(0,B.useCallback)(async(e=0,t=!1)=>{let n=u.current;if(!g6(n)){R.default.debug(`useCleanerReportData: filters not valid for fetch`);return}c.current&&c.current.abort(),c.current=new AbortController;let i=c.current;try{a(c6.LOADING),s(null);let o={...E6(D6(O6(n,f),d)),skip:e,limit:100};R.default.debug(`useCleanerReportData: fetching`,{transformedParams:o,skip:e,append:t});let c=await NN(o);if(!l.current||i.signal.aborted)return;let u=c?.data||[];r(n=>({rows:t?[...n.rows,...u]:u,pointer:e,hasMore:u.length===100})),a(c6.SUCCESS)}catch(e){if(e.name===`AbortError`||i.signal.aborted)return;R.default.error(`useCleanerReportData: fetch error`,e),l.current&&(s(e),a(c6.ERROR))}},[d,f]),m=(0,B.useCallback)(()=>{p(n.pointer+100,!0)},[n.pointer,p]),h=(0,B.useCallback)(()=>{p(0,!1)},[p]),g=(0,B.useCallback)(()=>{r({rows:[],pointer:0,hasMore:!1}),a(c6.LOADING),s(null)},[]);(0,B.useEffect)(()=>(l.current=!0,()=>{l.current=!1,c.current&&c.current.abort()}),[]);let{title:_,...v}=e;(0,B.useEffect)(()=>{if(!t)return;let e=setTimeout(()=>{g6(u.current)&&p(0,!1)},300);return()=>clearTimeout(e)},[_6(v),d,t,p]);let y=i===c6.LOADING,b=i===c6.ERROR,x=i===c6.SUCCESS&&n.rows.length===0;return{data:n,rows:n.rows,pointer:n.pointer,status:i,isLoading:y,isError:b,isEmpty:x,hasMore:!!n.hasMore,error:o,fetchData:p,loadMore:m,refresh:h,clearData:g}}Qn();function Cje({onSaveReport:e,onDeleteReport:t}={}){let n=Vn(),[r,i]=(0,B.useState)(c6.INITIAL),[a,o]=(0,B.useState)(null),s=(0,B.useRef)(!0);(0,B.useEffect)(()=>(s.current=!0,()=>{s.current=!1}),[]);let c=(0,B.useCallback)(async(t,r)=>{let a=r===`new`||!r;if(!VAe(t.title?.value))return o(Error(`Title is required`)),null;try{i(c6.LOADING),o(null);let c=JAe(t);R.default.info(`useReportCRUD: saving report`,{isNew:a,reportParams:c});let l=await SP(a?`add`:`edit`,{title:c.title,filter:c.filter,objectId:a?void 0:r});return s.current?(e&&e(l.objectId,l),a?(Gpe(),n(Z.reportPage(l.objectId),{state:{fromReports:!0}})):Kpe(),i(c6.SUCCESS),l):null}catch(e){return R.default.error(`useReportCRUD: save error`,e),s.current&&(o(e),i(c6.ERROR)),null}},[n,e]),l=(0,B.useCallback)(async e=>{if(!e||e===`new`)return R.default.warn(`useReportCRUD: cannot delete new report`),!1;try{return i(c6.LOADING),o(null),R.default.info(`useReportCRUD: deleting report`,{reportId:e}),await SP(`delete`,{objectId:e}),s.current?(t&&t(e),n(Z.reports,{replace:!0}),i(c6.SUCCESS),!0):!1}catch(e){return R.default.error(`useReportCRUD: delete error`,e),s.current&&(o(e),i(c6.ERROR)),!1}},[n,t]),u=(0,B.useCallback)(e=>{n(Z.reportPage(e),{state:{fromReports:!0}})},[n]),d=(0,B.useCallback)(()=>{n(Z.reportPage(`new`),{state:{fromReports:!0}})},[n]),f=(0,B.useCallback)(()=>{n(Z.reports)},[n]),p=(0,B.useCallback)(()=>{i(c6.INITIAL),o(null)},[]);return{status:r,error:a,isLoading:r===c6.LOADING,isError:r===c6.ERROR,isSuccess:r===c6.SUCCESS,saveReport:c,deleteReport:l,reset:p,goToReport:u,goToNewReport:d,goToReportsList:f}}var wje=({params:e,filters:t,isAdminMode:n})=>({columns:UAe(t.columns?.selected||{}),...T6({...e,inspectedBy:n})}),Tje={downloadFn:PN,buildRequest:({params:e})=>({columns:u6.reduce((e,t)=>(e[t]=y6(t),e),{}),...E6(e)}),isValidForExport:g6},N6={COMMA:{value:`comma`,label:`CSV (Comma)`},TAB:{value:`tab`,label:`TSV (Tab)`},PIPE:{value:`pipe`,label:`PSV (Pipe)`}},Eje=1e4,Dje=12e5;function P6(e,t){let n=U(e);return n&&n!==e?n:t}function Oje(e=(0,z.default)()){return`${P6(`reports.export.fallback_title`,`Report`)} ${(0,z.default)(e).format(`YYYY-MM-DD HH:mm`)}`}function F6(e,t={}
2840){let{downloadFn:n=AN,buildRequest:r=wje,isValidForExport:i=h6}=t,[a,o]=(0,B.useState)(c6.INITIAL),[s,c]=(0,B.useState)(null),[l,u]=(0,B.useState)(null),[d,f]=(0,B.useState)(null),[p,m]=(0,B.useState)(null),h=(0,B.useRef)(null),g=(0,B.useRef)(null),_=(0,B.useRef)(!0),v=j(EC),y=j(KC),b=j(sB),x=(0,B.useCallback)(()=>{h.current&&(clearInterval(h.current),h.current=null),g.current&&(clearTimeout(g.current),g.current=null)},[]),S=(0,B.useCallback)(()=>{x(),o(c6.INITIAL),c(null),u(null),f(null),m(null)},[x]);(0,B.useEffect)(()=>(_.current=!0,()=>{_.current=!1,x()}),[x]);let C=(0,B.useCallback)(async e=>{try{let t=await MN(e);if(!_.current)return;R.default.debug(`useReportExport: downloadStatus raw response`,t);let n=(0,G.default)(t,[`progressData`,`status`])||(0,G.default)(t,[`result`,`progressData`,`status`]),r=(0,G.default)(t,[`resultData`,`url`])||(0,G.default)(t,[`result`,`resultData`,`url`]),i=(0,G.default)(t,[`status`]);R.default.debug(`useReportExport: poll status`,{progressStatus:n,url:r,errorStatus:i}),n===`finished`&&r?(x(),c(`finished`),u(r),o(c6.SUCCESS),Kv()):n===`error`||i===1?(x(),c(`error`),m(`Export failed`),o(c6.ERROR)):c(n||`pending`)}catch(e){if(!_.current)return;R.default.error(`useReportExport: poll error`,e),x(),c(`error`),m(e?.message||`Export status check failed`),o(c6.ERROR)}},[x]),w=(0,B.useCallback)(e=>{x(),h.current=setInterval(()=>{_.current?C(e):x()},Eje),g.current=setTimeout(()=>{_.current&&(x(),c(`error`),m(`Export timed out`),o(c6.ERROR))},Dje),C(e)},[x,C]),T=(0,B.useCallback)(async(t=`COMMA`)=>{try{if(f(t),m(null),u(null),!i(e)){x(),o(c6.ERROR),c(`error`),m(P6(`reports.export.invalid_filters`,`Adjust filters before exporting.`));return}o(c6.LOADING),c(`started`);let a=(N6[t]||N6.COMMA).value,s=r({params:D6(O6(e,y),v),filters:e,isAdminMode:b}),l=e.title?.value?.trim()||Oje();R.default.info(`useReportExport: starting export`,{formatValue:a,requestArgs:s});let d=await n({format:a,title:l,...s});if(R.default.info(`useReportExport: downloadReport response`,d),!_.current)return;let p=d?.progressData?.status||d?.result?.progressData?.status,h=d?.resultData?.url||d?.result?.resultData?.url;if(R.default.info(`useReportExport: checking immediate completion`,{immediateStatus:p,immediateUrl:h,responseKeys:Object.keys(d||{})}),p===`finished`&&h){R.default.info(`useReportExport: export completed immediately`,{immediateUrl:h}),c(`finished`),u(h),o(c6.SUCCESS),Kv();return}w(d)}catch(e){if(!_.current)return;R.default.error(`useReportExport: export error`,e),c(`error`),m(e?.message||`Export failed`),o(c6.ERROR)}},[e,v,y,b,w,x,n,r,i]);return{status:a,exportStatus:s,downloadUrl:l,format:d,error:p,isExporting:a===c6.LOADING,isComplete:a===c6.SUCCESS&&s===`finished`,isError:a===c6.ERROR,exportReport:T,reset:S}}function kje(e,t,n){let[r,i]=(0,B.useState)(!1),[a,o]=(0,B.useState)(null),s=(0,B.useMemo)(()=>{if(!e||!t)return!1;let n=_6(e),r=_6(t),i=n!==r;return R.default.debug(`useReportChangeDetection: checking changes`,{hasChanges:i,currentHash:n?.slice(0,50),originalHash:r?.slice(0,50)}),i},[e,t]),c=(0,B.useMemo)(()=>n===`new`||n===`new`||!n,[n]),l=(0,B.useCallback)(e=>s?(o(()=>e),i(!0),!1):(typeof e==`function`&&e(),!0),[s]),u=(0,B.useCallback)(()=>{a&&typeof a==`function`&&a(),i(!1),o(null)},[a]),d=(0,B.useCallback)(()=>{i(!1),o(null)},[]),f=(0,B.useCallback)(async e=>typeof e==`function`&&await e()?(u(),!0):!1,[u]),p=(0,B.useCallback)(()=>{d()},[d]);return(0,B.useEffect)(()=>{let e=e=>{if(s)return e.preventDefault(),e.returnValue=``,``};return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[s]),{hasUnsavedChanges:s,isNewReport:c,showSaveModal:r,promptBeforeNavigate:l,discardAndNavigate:u,cancelNavigation:d,saveAndNavigate:f,closeModal:p,setShowSaveModal:i}}function Aje(){let[e,t]=(0,B.useState)({}),[n,r]=(0,B.useState)(!0),[i,a]=(0,B.useState)(null);(0,B.useEffect)(()=>{let e=!0;async function n(){try{r(!0),a(null);let n=await zN();e&&(t((n||[]).reduce((e,t)=>(e[t.objectId]=t,e),{})),r(!1))}catch(t){R.default.error(`useReportsList: fetch error`,t),e&&(a(t),r(!1))}}return n(),()=>{e=!1}},[]);let o=(0,B.useCallback)((e,n)=>{t(t=>({...t,[e]:n}))},[]),s=(0,B.useCallback)(e=>{t(t=>{let n={...t};return delete n[e],n})},[]),c=(0,B.useCallback)(async()=>{try{r(!0),t((await zN()||[]).reduce((e,t)=>
2840(e[t.objectId]=t,e),{})),r(!1)}catch(e){R.default.error(`useReportsList: refresh error`,e),a(e),r(!1)}},[]);return{reports:e,reportsList:Object.values(e),isLoading:n,error:i,addOrUpdateReport:o,removeReport:s,refresh:c}}var I6=Object.keys(o6),L6=Object.keys(s6);function jje({filters:e,setIsAll:t,setSelectedItems:n,setSectionValue:r,setDateRange:i,toggleColumn:a,clearFilters:o,setShowValidation:s,propertiesList:c=[],providersList:l=[]}){let u=(0,B.useRef)(e);u.current=e;let d=(0,B.useCallback)((e,r,i)=>({type:a,id:o})=>{let s=u.current[e];if(a===`toggleAll`){let a=r(),o=s?.selected||{};s?.isAll||a.length>0&&Object.keys(o).length>=a.length?(t(e,!1),n(e,{},{flush:!0})):(n(e,Object.fromEntries(a.map(e=>[i(e),!0])),{flush:!0}),t(e,!0))}else if(a===`select`)s?.isAll&&t(e,!1),n(e,{[o]:!0},{toggle:!0});else if(a===`deselect`)if(s?.isAll){let a=r();n(e,Object.fromEntries(a.filter(e=>i(e)!==o).map(e=>[i(e),!0])),{flush:!0}),t(e,!1)}else n(e,{[o]:!0},{toggle:!0})},[t,n]),f=(0,B.useCallback)((e,t)=>r=>{r===null?n(e,Object.fromEntries(t.map(e=>[e,!0])),{flush:!0}):n(e,{[r]:!0},{flush:!0})},[n]);return{handlePropertyChange:(0,B.useMemo)(()=>d(`properties`,()=>c,e=>e.objectId),[d,c]),handleProviderChange:(0,B.useMemo)(()=>d(`contacts`,()=>l,e=>e.objectId),[d,l]),handleStatusChange:(0,B.useMemo)(()=>f(`status`,I6),[f]),handleJobTypeChange:(0,B.useMemo)(()=>f(`jobTypes`,L6),[f]),handleTitleChange:(0,B.useCallback)(e=>{r(`title`,e),s&&e?.trim()&&s(!1)},[r,s]),handleProblemsChange:(0,B.useCallback)(e=>r(`problems`,e),[r]),handleDateRangeChange:(0,B.useCallback)((e,t)=>i(e,t),[i]),handleToggleColumn:a,handleClearFilters:o,handleClearDate:(0,B.useCallback)(()=>{i(`thismonth`)},[i]),handleClearProperties:(0,B.useCallback)(()=>{n(`properties`,Object.fromEntries(c.map(e=>[e.objectId,!0])),{flush:!0}),t(`properties`,!0)},[c,n,t]),handleClearProviders:(0,B.useCallback)(()=>{n(`contacts`,Object.fromEntries(l.map(e=>[e.objectId,!0])),{flush:!0}),t(`contacts`,!0)},[l,n,t]),handleClearStatus:(0,B.useCallback)(()=>{n(`status`,Object.fromEntries(I6.map(e=>[e,!0])),{flush:!0})},[n]),handleClearJobTypes:(0,B.useCallback)(()=>{n(`jobTypes`,Object.fromEntries(L6.map(e=>[e,!0])),{flush:!0})},[n]),selectedPropertyIds:(0,B.useMemo)(()=>e.properties?.isAll?c.map(e=>e.objectId):Object.keys(e.properties?.selected||{}),[e.properties?.isAll,e.properties?.selected,c]),selectedProviderIds:(0,B.useMemo)(()=>e.contacts?.isAll?l.map(e=>e.objectId):Object.keys(e.contacts?.selected||{}),[e.contacts?.isAll,e.contacts?.selected,l]),selectedStatusKey:(0,B.useMemo)(()=>{let t=Object.keys(e.status?.selected||{});return t.length===1?t[0]:null},[e.status?.selected]),selectedJobTypeKey:(0,B.useMemo)(()=>{let t=Object.keys(e.jobTypes?.selected||{});return t.length===1?t[0]:null},[e.jobTypes?.selected])}}Qn();var R6={JOBS:`jobs`,SERVICE_PROVIDERS:`serviceProviders`};function Mje(){let{reportId:e}=Rn(),t=e||`new`,n=j(MC),r=j(jC),i=j(sB),[a,o]=(0,B.useState)({type:null,meta:null}),s=(0,B.useRef)(null),c=Aje(),l=c.reports,u=bje(),{setView:d}=u,f=u.filters.view||R6.JOBS,p=f===R6.SERVICE_PROVIDERS,m=Cje({onSaveReport:c.addOrUpdateReport,onDeleteReport:c.removeReport}),h=F6(u.filters),g=F6(u.filters,Tje),_=p?g:h,v=xje(u.filters,!p),y=Sje(u.filters,p),b=p?y:v,x=kje(u.filters,u.originalFilters,t),S=(0,B.useCallback)(e=>{if(n||!r){R.default.debug(`useReports: skipping load - not logged in`);return}let t=!e||e===`new`||e===`new`;if(R.default.info(`useReports: loading report`,{id:e,isNew:t}),t)u.initializeFromReport(null,p6.status.states,p6.jobTypes.types,i),u.setDateRange(`thismonth`);else{let t=l?.[e];if(!t){R.default.warn(`useReports: report not found`,{id:e}),o({type:l6.ERROR,meta:{message:`Report not found`}});return}let n=u.initializeFromReport(t,p6.status.states,p6.jobTypes.types,i);if(n?.date?.active){let e=n.date.active===`custom`?{start:n.date.start,end:n.date.end}:void 0;u.setDateRange(n.date.active,e)}}},[n,r,i,l,u,v]);(0,B.useEffect)(()=>{c.isLoading||s.current!==t&&(s.current=t,S(t))},[t,c.isLoading]);let C=(0,B.useCallback)((e,t=null)=>{o({type:e,meta:t})},[]),w=(0,B.useCallback)(()=>{o({type:null,meta:null})},[]),T=(0,B.useCallback)(async()=>u.isTitleValid?(C(l6.LOADING),await m.saveReport(u.filters,t)?(u.snapshotFilters(),w(),!0):(w(),!1)):(u.setShowValidation(!0),!1),[u,m,t,C,w]),E=(0,B.useCallback)(async(e=!1)=>
2840{if(!e){C(l6.DELETE);return}C(l6.LOADING),await m.deleteReport(t),w()},[m,t,C,w]),D=(0,B.useCallback)(()=>{w()},[w]),ee=(0,B.useCallback)(e=>{C(l6.EXPORT,{format:e,status:`started`}),_.exportReport(e)},[_,C]);(0,B.useEffect)(()=>{let e=!0;return a.type===l6.EXPORT&&e&&o(e=>({...e,meta:{...e.meta,status:_.exportStatus,downloadUrl:_.downloadUrl}})),()=>{e=!1}},[_.exportStatus,_.downloadUrl,a.type]);let te=(0,B.useCallback)(()=>{w(),_.reset()},[w,_]),ne=(0,B.useCallback)(async()=>{let e=await T();return e&&x.discardAndNavigate(),e},[T,x]),re=t===`new`||t===`new`;return{reportId:t,isNewReport:re,currentReport:(0,B.useMemo)(()=>re?null:l?.[t]||null,[re,l,t]),savedReports:c.reports,savedReportsList:c.reportsList,isReportsListLoading:c.isLoading,reportsListError:c.error,refreshReportsList:c.refresh,filters:u.filters,setFilters:u.setFilters,setDateRange:u.setDateRange,setSelectedItems:u.setSelectedItems,toggleSectionOpen:u.toggleSectionOpen,setTouched:u.setTouched,setIsAll:u.setIsAll,setSectionValue:u.setSectionValue,setShowValidation:u.setShowValidation,toggleColumn:u.toggleColumn,toggleColumnHeader:u.toggleColumnHeader,toggleColumnCategory:u.toggleColumnCategory,setColumns:u.setColumns,mergeFilters:u.mergeFilters,resetFilters:u.resetFilters,clearFilters:u.clearFilters,isValidForFetch:u.isValidForFetch,selectedColumnsOrdered:u.selectedColumnsOrdered,hasChanges:u.hasChanges,isTitleValid:u.isTitleValid,selectedColumnCount:u.selectedColumnCount,selectedPropertyCount:u.selectedPropertyCount,selectedContactCount:u.selectedContactCount,selectedStatusCount:u.selectedStatusCount,selectedJobTypeCount:u.selectedJobTypeCount,view:f,setView:d,isServiceProvidersView:p,data:b.data,rows:b.rows,isDataLoading:b.isLoading,isDataError:b.isError,isDataEmpty:b.isEmpty,hasMoreData:b.hasMore,dataError:b.error,loadMore:b.loadMore,refreshData:b.refresh,isSaving:m.isLoading,saveError:m.error,clearSaveError:m.reset,goToReport:m.goToReport,goToNewReport:m.goToNewReport,goToReportsList:m.goToReportsList,isExporting:_.isExporting,exportStatus:_.exportStatus,exportDownloadUrl:_.downloadUrl,exportFormat:_.format,exportError:_.error,hasUnsavedChanges:x.hasUnsavedChanges,showSaveModal:x.showSaveModal,setShowSaveModal:x.setShowSaveModal,promptBeforeNavigate:x.promptBeforeNavigate,modal:a,openModal:C,closeModal:w,handleSave:T,handleDelete:E,cancelDelete:D,handleExport:ee,closeExportModal:te,handleSaveAndNavigate:ne,discardAndNavigate:x.discardAndNavigate,cancelNavigation:x.cancelNavigation,loadReport:S}}function z6({savedReportsList:e=[],currentReportId:t=null,isLoading:n=!1,onSelectReport:r=null,onNewReport:i=null}){let{trackClick:a,trackSearch:o}=nT(`ReportsSidebar`),[s,c]=(0,B.useState)(``),l=(0,B.useMemo)(()=>{if(!s)return e;let t=s.toLowerCase();return e.filter(e=>e?.title?.toLowerCase().includes(t))},[s,e]),u=(0,B.useCallback)(e=>{c(e),e&&o(`reports_search`,e,{context:`reports_sidebar`})},[o]),d=(0,B.useCallback)(()=>{a(`new_report_button`,{context:`reports_sidebar`}),i?.()},[a,i]),f=(0,B.useCallback)(e=>{a(`report_select`,{reportId:e,context:`reports_sidebar`}),r?.(e)},[a,r]),p=e=>e?(0,z.default)(e).format(`MMM D, YYYY`):``,m=e=>{if(!e)return`R`;let t=e.trim().split(/\s+/);return t.length===1?t[0].substring(0,2).toUpperCase():(t[0][0]+t[1][0]).toUpperCase()};return(0,K.jsxs)(Pj,{children:[(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,px:2,pt:2,pb:1.5},children:[(0,K.jsx)(x,{sx:{fontSize:13,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.08em`,color:`var(--color-grey)`},children:U(`titles.reports`)}),(0,K.jsx)(br,{onClick:d,size:`small`,sx:{bgcolor:`var(--color-primary)`,color:`white`,width:28,height:28,"&:hover":{bgcolor:`var(--color-primary-hover)`}},children:(0,K.jsx)(_t,{sx:{fontSize:18}})})]}),(0,K.jsx)(I,{sx:{px:2},children:(0,K.jsx)($f,{blank:!0,placeholder:U(`reports.search_for_report`),value:s,iconLocation:`left`,onChange:u})}),(0,K.jsx)(Pj.Hr,{}),(0,K.jsx)(I,{sx:{flex:1,overflow:`auto`},children:n?(0,K.jsx)(I,{children:[1,2,3,4,5].map(e=>(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`var(--space-tiny)`,p:`10px 16px`,minHeight:58,position:`relative`,"&::after":{content:`""`,position:`absolute`,height:1,bottom:0,right:0,left:16,bgcolor:`var(--color-background)`}},children:[(0,K.jsx)(J,{variant:`circular`,width:40,height:40,sx:{flexShrink:0}}),(0,K.jsxs)(I,{sx:{flex:1,minWidth:0},children:[(0,K.jsx)(J,{variant:`text`,width:`${60+e*13%35}%`,height:18}),(0,K.jsx)(J,{variant:`text`,width:80,height:16})]})]},e))}):l.length===0?(0,K.jsx)(Pj.NoRes,{children:U(s?`properties.no_result`:`reports.sidebar.no_saved`)}):(0,K.jsx)(I,{children:l.map(e=>(0,K.jsx)(Kj,{type:`contact`,noHover:!0,onClick:()=>f(e.objectId),active:e.objectId===t,title:e.title||U(`reports.title`),subTitle:p(e.updatedAt||e.createdAt),picture:{text:m(e.title)}},e.objectId))})})]})}z6.propTypes={savedReportsList:V.default.array,currentReportId:V.default.string,isLoading:V.default.bool,onSelectReport:V.default.func,onNewReport:V.default.func};function B6({isNew:e=!0,hasChanges:t=!1,isSaving:n=!1,isExporting:r=!1,canSave:i=!1,title:a=``,showTitleError:o,onTitleChange:s,onSave:c,onDelete:l,onExport:u}){let{trackClick:d}=nT(`ReportsHeader`),[f,p]=(0,B.useState)(null),[m,h]=(0,B.useState)(a),g=(0,B.useRef)(null),_=(0,B.useRef)(null);(0,B.useEffect)(()=>
2840{if(o&&_.current){let e=setTimeout(()=>{_.current?.focus()},300);return()=>clearTimeout(e)}},[o]),(0,B.useEffect)(()=>{h(a)},[a]);let v=(0,B.useCallback)(({target:{value:e}})=>{h(e),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{s?.(e)},300)},[s]);(0,B.useEffect)(()=>()=>{g.current&&clearTimeout(g.current)},[]);let y=(0,B.useCallback)(()=>{g.current&&clearTimeout(g.current),s?.(m)},[m,s]),b=e=>{d(`export_button`,{context:`reports`}),p(e.currentTarget)},S=e=>{d(`export_format_select`,{format:e,context:`reports`}),p(null),u?.(e)};return(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,px:3,py:2},children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:2},children:[(0,K.jsx)(x,{variant:`h5`,sx:{fontWeight:600,color:`var(--color-header)`,flexShrink:0},children:U(e?`reports.header.new`:t?`reports.header.edit`:`reports.header.view`)}),(0,K.jsx)(yn,{inputRef:_,value:m,onChange:v,onBlur:y,placeholder:U(`reports.filter.title_placeholder`),size:`small`,variant:`outlined`,error:!!o,sx:{minWidth:200,maxWidth:300,"& .MuiOutlinedInput-root":{fontSize:14,fontWeight:500,color:`var(--color-text)`,backgroundColor:`var(--color-bg)`,"& .MuiOutlinedInput-notchedOutline":{borderColor:o?`var(--color-orange)`:`var(--color-border)`},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:o?`var(--color-orange)`:`var(--color-border-search)`},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:o?`var(--color-orange)`:`var(--color-primary)`,borderWidth:o?2:1}},"& .MuiOutlinedInput-input::placeholder":{color:`var(--color-placeholder)`,opacity:1}}}),t&&(0,K.jsx)(_n,{label:U(`reports.header.unsaved`),size:`small`,color:`warning`,sx:{fontWeight:600,fontSize:11}})]}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:1.5},children:[!e&&(0,K.jsx)(dn,{variant:`text`,size:`small`,onClick:()=>{d(`delete_button`,{context:`reports`}),l?.()},sx:{textTransform:`none`,fontWeight:500,fontSize:13,px:1.5,color:`var(--color-grey)`,"&:hover":{color:`var(--color-orange)`,bgcolor:`var(--color-orange-alpha-08)`}},children:U(`reports.header.delete`)}),(0,K.jsx)(dn,{variant:`outlined`,size:`small`,onClick:b,disabled:r,sx:{textTransform:`none`,fontWeight:600,fontSize:13,px:2,borderColor:`var(--color-border)`,color:`var(--color-text)`,"&:hover":{borderColor:`var(--color-primary)`,bgcolor:`var(--color-black-alpha-05)`},"&.Mui-disabled":{borderColor:`var(--color-border)`,color:`var(--color-grey)`}},children:U(r?`reports.topbar.exporting`:`reports.topbar.export`)}),(0,K.jsx)(Ae,{anchorEl:f,open:!!f,onClose:()=>p(null),slotProps:{paper:{sx:{bgcolor:`var(--color-bg-paper)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-lg)`,mt:1}}},sx:{zIndex:1500},children:Object.entries(N6).map(([e,t])=>(0,K.jsx)(fe,{onClick:()=>S(e),sx:{fontSize:13,py:1.5,px:2,color:`var(--color-text)`,"&:hover":{bgcolor:`var(--color-black-alpha-05)`}},children:t.label},e))}),(0,K.jsx)(dn,{variant:`contained`,size:`small`,color:`primary`,onClick:()=>{d(`save_button`,{context:`reports`,isNew:e}),c?.()},disabled:n||!i||!t,sx:{textTransform:`none`,fontWeight:600,fontSize:13,px:2.5,minWidth:100,boxShadow:`none`,"&:hover":{boxShadow:`none`},"&.Mui-disabled":{bgcolor:`var(--color-black-alpha-10)`,color:`var(--color-grey)`}},children:U(n?`reports.header.saving`:`reports.header.save`)})]})]})}B6.propTypes={isNew:V.default.bool,hasChanges:V.default.bool,isSaving:V.default.bool,isExporting:V.default.bool,canSave:V.default.bool,title:V.default.string,showTitleError:V.default.oneOfType([V.default.bool,V.default.number]),onTitleChange:V.default.func,onSave:V.default.func,onDelete:V.default.func,onExport:V.default.func};var Nje=gn.create(I),V6=[{value:R6.JOBS,labelKey:`reports.tabs.jobs`,fallback:`Jobs`},{value:R6.SERVICE_PROVIDERS,labelKey:`reports.tabs.serviceProviders`,fallback:`Service Providers`}];function H6({view:e=R6.JOBS,onChange:t=void 0}){let{trackTab:n}=nT(`ReportsTabs`),r=(0,B.useRef)([]),i=(0,B.useCallback)(r=>{r!==e&&(n?.(r,r),t?.(r))},[e,t,n]),a=(0,B.useCallback)((e,t)=>{let n=null;switch(e.key){case`ArrowRight`:case`ArrowDown`:n=(t+1)%V6.length;break;case`ArrowLeft`:case`ArrowUp`:n=(t-1+V6.length)%V6.length;break;case`Home`:n=0;break;case`End`:n=V6.length-1;break;case`Enter`:case` `:e.preventDefault(),i(V6[t].value);return;default:return}
2840e.preventDefault(),r.current[n]?.focus(),i(V6[n].value)},[i]);return(0,K.jsx)(I,{role:`tablist`,"aria-label":U(`reports.tabs.aria_label`)||`Report views`,sx:{display:`flex`,alignItems:`stretch`,gap:3,borderBottom:`1px solid`,borderColor:`var(--color-border)`},children:V6.map((t,n)=>{let o=e===t.value;return(0,K.jsxs)(I,{ref:e=>{r.current[n]=e},role:`tab`,"aria-selected":o,tabIndex:o?0:-1,onClick:()=>i(t.value),onKeyDown:e=>a(e,n),sx:{position:`relative`,display:`flex`,alignItems:`center`,py:1.25,fontSize:14,fontWeight:600,lineHeight:1.2,cursor:`pointer`,userSelect:`none`,whiteSpace:`nowrap`,transition:`color 0.15s ease`,color:o?`var(--color-primary)`:`var(--color-grey)`,"&:hover":{color:o?`var(--color-primary)`:`var(--color-text)`},"&:focus-visible":{outline:`none`,color:`var(--color-primary)`}},children:[U(t.labelKey)||t.fallback,o&&(0,K.jsx)(Nje,{layoutId:`reports-tab-underline`,transition:{type:`spring`,stiffness:500,damping:40},sx:{position:`absolute`,left:0,right:0,bottom:-1,height:2,borderRadius:1,bgcolor:`var(--color-primary)`}})]},t.value)})})}H6.propTypes={view:V.default.string,onChange:V.default.func};var U6=e=>({fontSize:12,fontWeight:500,height:28,bgcolor:e?`var(--color-primary)`:`var(--color-bg)`,color:e?`#fff`:`var(--color-text)`,border:`1px solid`,borderColor:e?`var(--color-primary)`:`var(--color-border)`,"&:hover":{bgcolor:e?`var(--color-primary)`:`var(--color-black-alpha-05)`}});function W6({activeRange:e=`thismonth`,startDate:t=null,endDate:n=null,onRangeChange:r}){let[i,a]=(0,B.useState)(!1),o=(0,B.useRef)(null),s=e=>{a(!1),r?.(e)};return(0,K.jsxs)(I,{sx:{display:`flex`,gap:1,flexWrap:`wrap`,alignItems:`center`},children:[(0,K.jsx)(x,{variant:`caption`,sx:{color:`var(--color-grey)`,fontWeight:500,mr:1},children:U(`reports.date.label`)||`Date:`}),BAe.filter(e=>e.key!==`custom`).map(t=>(0,K.jsx)(_n,{label:t.label,size:`small`,onClick:()=>s(t.key),sx:U6(e===t.key)},t.key)),(0,K.jsx)(_n,{ref:o,label:e===`custom`&&t&&n?`${(0,z.default)(t).format(`MMM D`)} - ${(0,z.default)(n).format(`MMM D`)}`:U(`reports.date.custom`)||`Custom`,size:`small`,onClick:()=>a(!0),sx:U6(e===`custom`)}),(0,K.jsxs)(Je,{open:i,anchorEl:o.current,onClose:()=>a(!1),anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},slotProps:{paper:{sx:{mt:1,p:2,backgroundColor:`var(--color-bg-paper)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-lg)`,borderRadius:2}}},children:[(0,K.jsx)(x,{variant:`subtitle2`,sx:{mb:2,fontWeight:600,color:`var(--color-header)`},children:U(`reports.date.select_range`)||`Select Date Range`}),(0,K.jsx)(cp,{startDate:t,endDate:n,onDatesChange:({startDate:e,endDate:t})=>{e&&t?(r?.(`custom`,{start:e,end:t}),a(!1)):e&&r?.(`custom`,{start:e})},numberOfMonths:2,minimumNights:0,isOutsideRange:()=>!1})]})]})}W6.propTypes={activeRange:V.default.string,startDate:V.default.object,endDate:V.default.object,onRangeChange:V.default.func};function G6({selectedColumns:e={},onToggleColumn:t}){let[n,r]=(0,B.useState)(null),[i,a]=(0,B.useState)(``),o=e=>r(e.currentTarget),s=()=>{r(null),a(``)},c=!!n,l=(0,B.useMemo)(()=>{let e=[];return Object.entries(LAe).forEach(([t,n])=>{n.columns.forEach(r=>{e.push({key:r,label:y6(r),category:n.label,categoryKey:t})})}),e},[]),u=(0,B.useMemo)(()=>{if(!i)return l;let e=i.toLowerCase();return l.filter(t=>t.label.toLowerCase().includes(e)||t.category.toLowerCase().includes(e))},[l,i]);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(dn,{size:`small`,onClick:o,startIcon:(0,K.jsx)(Y.IcMenu,{height:`14px`,width:`14px`}),sx:{textTransform:`none`,fontSize:13,height:40,color:`var(--color-text)`,backgroundColor:`var(--color-bg)`,border:`1px solid`,borderColor:`var(--color-border)`,borderRadius:1,px:2,"&:hover":{backgroundColor:`var(--color-black-alpha-05)`,borderColor:`var(--color-border-search)`}},children:U(`reports.columns.label`)||`Columns`}),(0,K.jsxs)(Je,{open:c,anchorEl:n,onClose:s,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},slotProps:{paper:{sx:{width:320,maxHeight:400,bgcolor:`var(--color-bg-paper)`,border:`1px solid var(--color-border)`,boxShadow:`var(--shadow-lg)`,mt:1}}},children:[(0,K.jsx)(I,{sx:{p:1.5,borderBottom:`1px solid var(--color-border)`},children:(0,K.jsx)(yn,{size:`small`,placeholder:U(`list_view.search`)||`Search columns...`,value:i,onChange:e=>a(e.target.value),fullWidth:!0,sx:{"& .MuiOutlinedInput-root":{fontSize:13,bgcolor:`var(--color-bg)`,"& .MuiOutlinedInput-notchedOutline":{borderColor:`var(--color-border)`},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:`var(--color-border-search)`},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:`var(--color-primary)`,borderWidth:1}}},slotProps:{input:{endAdornment:(0,K.jsx)(It,{position:`end`,children:(0,K.jsx)(Y.IcSearch,{height:`14px`,width:`14px`})})}}})}),(0,K.jsxs)(I,{sx:{overflow:`auto`,maxHeight:320,py:1},children:[u.map((n,r)=>{let i=r===0||u[r-1]?.categoryKey!==n.categoryKey;return(0,K.jsxs)(B.Fragment,{children:[i&&(0,K.jsx)(x,{sx:{px:2,py:.5,fontSize:10,fontWeight:600,textTransform:`uppercase`,color:`var(--color-grey)`,letterSpacing:`0.05em`,mt:+(r>0)},children:n.category}),(0,K.jsxs)(I,{onClick:()=>t?.(n.key),sx:{display:`flex`,alignItems:`center`,px:1.5,py:.5,cursor:`pointer`,"&:hover":{bgcolor:`var(--color-black-alpha-05)`}},children:[(0,K.jsx)(Hr,{checked:!!e[n.key],size:`small`,sx:{p:.5}}),(0,K.jsx)(x,{sx:{fontSize:13,color:`var(--color-text)`,ml:1},children:n.label})]})]},n.key)}),u.length===0&&(0,K.jsx)(x,{sx:{px:2,py:2,fontSize:13,color:`var(--color-grey)`,textAlign:`center`},children:U(`reports.filter.no_columns_found`)||`No columns found`})]})]})]})}G6.propTypes={selectedColumns:V.default.object,selectedCount:V.default.number,onToggleColumn:V.default.func};function K6({label:e,allLabel:t,items:n=[],selectedIds:r=[],isAllSelected:i=!1,onChange:a,searchable:o=!1,searchPlaceholder:s=`Search...`,getItemId:c=e=>e.objectId||e.id,getItemLabel:l=e=>
2840e.name||e.label,minWidth:u=160,noResultsText:d=`No results found`,showLabel:f=!0,fullWidth:p=!1,searchEndAdornment:m=null}){let[h,g]=(0,B.useState)(``),[_,v]=(0,B.useState)(null),[y,b]=(0,B.useState)(null),S=(0,B.useRef)(null),C=!!_,w=o&&h?n.filter(e=>l(e)?.toLowerCase().includes(h.toLowerCase())):n,T=(0,B.useCallback)(e=>{v(e.currentTarget)},[]),E=(0,B.useCallback)(()=>{r.length===0&&a?.({type:`toggleAll`}),v(null),g(``),b(null)},[r.length,a]),D=(0,B.useCallback)(e=>{e===`all`?a?.({type:`toggleAll`}):r.includes(e)?a?.({type:`deselect`,id:e}):a?.({type:`select`,id:e})},[r,a]),ee=()=>i||r.length===0?t:`${r.length} ${e}`,te=e=>e===`all`?i:r.includes(e);return(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:.5},children:[f&&(0,K.jsx)(x,{variant:`caption`,sx:{color:`var(--color-grey)`,fontWeight:500,fontSize:12},children:e}),(0,K.jsxs)(I,{ref:S,onClick:T,sx:{width:p?`100%`:void 0,minWidth:p?void 0:u,height:40,display:`flex`,alignItems:`center`,justifyContent:`space-between`,fontSize:14,fontWeight:400,color:`var(--color-text)`,bgcolor:`var(--color-bg)`,border:`1px solid`,borderColor:C?`var(--color-primary)`:`var(--color-border)`,borderRadius:1,px:1.5,cursor:`pointer`,transition:`border-color 0.15s ease`,"&:hover":{borderColor:`var(--color-primary)`}},children:[(0,K.jsx)(x,{sx:{fontSize:14,color:`var(--color-text)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:ee()}),(0,K.jsx)(bn,{sx:{fontSize:20,color:`var(--color-grey)`,ml:.5,transition:`transform 0.2s ease`,transform:C?`rotate(180deg)`:`rotate(0deg)`}})]}),(0,K.jsx)(Je,{open:C,anchorEl:_,onClose:E,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},slotProps:{paper:{sx:{mt:.5,minWidth:Math.max(u,S.current?.offsetWidth||0),maxWidth:480,maxHeight:320,bgcolor:`var(--color-bg-paper)`,border:`1px solid var(--color-border)`,borderRadius:1.5,boxShadow:`var(--shadow-lg)`,overflow:`hidden`}}},children:(0,K.jsxs)(I,{children:[o&&(0,K.jsxs)(I,{sx:{p:1,borderBottom:`1px solid var(--color-border)`,display:`flex`,alignItems:`center`,gap:.5},children:[(0,K.jsx)(yn,{size:`small`,placeholder:s,value:h,onChange:e=>g(e.target.value),fullWidth:!0,autoFocus:!0,slotProps:{input:{startAdornment:(0,K.jsx)(It,{position:`start`,children:(0,K.jsx)(Ir,{sx:{fontSize:16,color:`var(--color-grey)`}})})}},sx:{"& .MuiOutlinedInput-root":{fontSize:14,height:36,bgcolor:`var(--color-bg)`,borderRadius:1,"& .MuiOutlinedInput-notchedOutline":{borderColor:`var(--color-border)`},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:`var(--color-border-search)`},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:`var(--color-primary)`,borderWidth:1}}}}),m]}),(0,K.jsxs)(xt,{onScroll:()=>b(null),sx:{maxHeight:o?240:280,overflowY:`auto`,py:.5},children:[(0,K.jsxs)(fe,{onClick:()=>D(`all`),selected:te(`all`),sx:{py:1,px:1.5,minHeight:40,color:`var(--color-text)`,"&:hover":{bgcolor:`var(--color-black-alpha-05)`},"&.Mui-selected":{bgcolor:`transparent`,"&:hover":{bgcolor:`var(--color-black-alpha-05)`}}},children:[(0,K.jsx)(Hr,{checked:te(`all`),size:`small`,sx:{p:0,mr:1,color:`var(--color-grey)`,"&.Mui-checked":{color:`var(--color-primary)`}}}),(0,K.jsx)(Tt,{primary:t,slotProps:{primary:{sx:{fontSize:14,fontWeight:te(`all`)?500:400}}}})]}),n.length>0&&(0,K.jsx)(I,{sx:{height:1,bgcolor:`var(--color-border)`,mx:1.5,my:.5}}),w.map(e=>{let t=c(e),n=l(e),r=te(t);return(0,K.jsx)(qn,{title:n,placement:`right`,enterDelay:600,disableInteractive:!0,open:y===t,onOpen:()=>b(t),onClose:()=>b(null),children:(0,K.jsxs)(fe,{onClick:()=>D(t),selected:r,sx:{py:1,px:1.5,minHeight:40,color:`var(--color-text)`,"&:hover":{bgcolor:`var(--color-black-alpha-05)`},"&.Mui-selected":{bgcolor:`transparent`,"&:hover":{bgcolor:`var(--color-black-alpha-05)`}}},children:[(0,K.jsx)(Hr,{checked:r,size:`small`,sx:{p:0,mr:1,color:`var(--color-grey)`,"&.Mui-checked":{color:`var(--color-primary)`}}}),(0,K.jsx)(Tt,{primary:n,slotProps:{primary:{sx:{fontSize:14,fontWeight:r?500:400,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}}}})]})},t)}),w.length===0&&h&&(0,K.jsx)(I,{sx:{py:2,px:2,textAlign:`center`},children:(0,K.jsx)(x,{sx:{fontSize:14,color:`var(--color-grey)`},children:d})})]})]})})]})}K6.propTypes={label:V.default.string.isRequired,allLabel:V.default.string.isRequired,items:V.default.array,selectedIds:V.default.array,isAllSelected:V.default.bool,onCh
2840ange:V.default.func,searchable:V.default.bool,searchPlaceholder:V.default.string,getItemId:V.default.func,getItemLabel:V.default.func,minWidth:V.default.number,noResultsText:V.default.string,showLabel:V.default.bool,searchEndAdornment:V.default.node};var Pje={py:1,px:1.5,minHeight:40,color:`var(--color-text)`,"&:hover":{bgcolor:`var(--color-black-alpha-05)`},"&.Mui-selected":{bgcolor:`var(--color-black-alpha-05)`,"&:hover":{bgcolor:`var(--color-black-alpha-10)`}}};function q6({label:e,items:t=[],value:n=null,onChange:r,fullWidth:i=!1}){let[a,o]=(0,B.useState)(null),s=!!a,c=(0,B.useCallback)(e=>{o(e.currentTarget)},[]),l=(0,B.useCallback)(()=>{o(null)},[]),u=(0,B.useCallback)(e=>{r?.(e),l()},[r,l]),d=t.find(e=>e.id===n)?.label||t[0]?.label||``;return(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:.5},children:[e&&(0,K.jsx)(x,{variant:`caption`,sx:{color:`var(--color-grey)`,fontWeight:500,fontSize:12},children:e}),(0,K.jsxs)(I,{onClick:c,sx:{width:i?`100%`:void 0,minWidth:i?void 0:180,height:40,display:`flex`,alignItems:`center`,justifyContent:`space-between`,fontSize:14,fontWeight:400,color:`var(--color-text)`,bgcolor:`var(--color-bg)`,border:`1px solid`,borderColor:s?`var(--color-primary)`:`var(--color-border)`,borderRadius:1,px:1.5,cursor:`pointer`,transition:`border-color 0.15s ease`,"&:hover":{borderColor:`var(--color-primary)`}},children:[(0,K.jsx)(x,{sx:{fontSize:14,color:`var(--color-text)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:d}),(0,K.jsx)(bn,{sx:{fontSize:20,color:`var(--color-grey)`,ml:.5,transition:`transform 0.2s ease`,transform:s?`rotate(180deg)`:`rotate(0deg)`}})]}),(0,K.jsx)(Je,{open:s,anchorEl:a,onClose:l,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},slotProps:{paper:{sx:{mt:.5,minWidth:Math.max(180,a?.offsetWidth||0),maxHeight:320,bgcolor:`var(--color-bg-paper)`,border:`1px solid var(--color-border)`,borderRadius:1.5,boxShadow:`var(--shadow-lg)`,overflow:`hidden`}}},children:(0,K.jsx)(xt,{sx:{py:.5,maxHeight:300,overflowY:`auto`},children:t.map(e=>(0,K.jsx)(fe,{onClick:()=>u(e.id),selected:e.id===n,sx:Pje,children:(0,K.jsx)(x,{sx:{fontSize:14,fontWeight:e.id===n?500:400},children:e.label})},String(e.id)))})})]})}function J6({selectedColumns:e={},selectedColumnCount:t=0,onToggleColumn:n,dateRange:r={},onDateRangeChange:i,propertiesList:a=[],selectedPropertyIds:o=[],isAllProperties:s=!1,onPropertyChange:c,providersList:l=[],selectedProviderIds:u=[],isAllProviders:d=!1,onProviderChange:f,selectedStatusKey:p=null,onStatusChange:m,selectedJobTypeKey:h=null,onJobTypeChange:g,showProblemsOnly:_=!1,onProblemsChange:v,isServiceProvidersView:y=!1}){let{trackFilter:b}=nT(`ReportsFilters`),{allPropertyTags:x,selectedTagFilters:S,setSelectedTagFilters:C,tagFilteredList:w}=xY(a,a),T=(0,B.useCallback)((e,t)=>{b(`property_filter`,{count:e?.length||0,isAll:t}),c?.(e,t)},[b,c]),E=(0,B.useCallback)((e,t)=>{b(`provider_filter`,{count:e?.length||0,isAll:t}),f?.(e,t)},[b,f]),D=(0,B.useCallback)(e=>{b(`status_filter`,{value:e||`all`}),m?.(e)},[b,m]),ee=(0,B.useCallback)(e=>{b(`job_type_filter`,{value:e||`all`}),g?.(e)},[b,g]),te=(0,B.useCallback)((e,t)=>{b(`date_range_filter`,{activeRange:e}),i?.(e,t)},[b,i]),ne=(0,B.useCallback)(e=>{b(`column_toggle`,{columnKey:e}),n?.(e)},[b,n]),re=(0,B.useMemo)(()=>[{id:null,label:U(`reports.filter.all_status`)||`All Status`},...Object.entries(o6).map(([e,t])=>({id:e,label:t}))],[]),O=(0,B.useMemo)(()=>[{id:null,label:U(`reports.filter.all_job_types`)||`All Job Types`},...Object.entries(s6).map(([e,t])=>({id:e,label:t}))],[]),ie=(0,B.useMemo)(()=>[{id:!1,label:U(`reports.filter.all_jobs`)||`All Jobs`},{id:!0,label:U(`reports.filter.with_problems`)||`With Problems`}],[]);return(0,K.jsxs)(I,{children:[(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,px:3,py:1.5,gap:2},children:[(0,K.jsx)(W6,{activeRange:r.active,startDate:r.start,endDate:r.end,onRangeChange:te}),!y&&(0,K.jsx)(G6,{selectedColumns:e,selectedCount:t,onToggleColumn:ne})]}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`flex-start`,gap:2,px:3,py:1.5,borderTop:`1px solid`,borderColor:`var(--color-border)`},children:[(0,K.jsx)(I,{sx:{flex:1,minWidth:0},children:(0,K.jsx)(K6,{label:U(`reports.filter.properties`)||`Properties`,allLabel:U(`reports.filter.all_properties`)||`All Properties`,items:w,selectedIds:o,isAllSelected:s,onChange:T,searchable:!0,searchPlaceholder:U(`reports.filter.search_properties`)||`Search properties...`,getItemId:e=>e.objectId,getItemLabel:e=>e.title,noResultsText:U(`reports.filter.no_properties`)||`No properties found`,fullWidth:!0,searchEndAdornment:(0,K.jsx)(VA,{tags:x,selectedTags:S,onChange:C})})}),(0,K.jsx)(I,{sx:{flex:1,minWidth:0},children:(0,K.jsx)(K6,{label:U(`reports.filter.service_providers`)||`Service Providers`,allLabel:U(`reports.filter.all_service_providers`)||`All Service Providers`,items:l,selectedIds:u,isAllSelected:d,onChange:E,searchable:!0,searchPlaceholder:U(`reports.filter.search_service_providers`)||`Search service providers...`,getItemId:e=>e.objectId,getItemLabel:e=>
2840[e.userData?.firstName,e.userData?.lastName].filter(Boolean).join(` `)||e.userData?.email||`Unknown`,noResultsText:U(`reports.filter.no_service_providers`)||`No service providers found`,fullWidth:!0})}),(0,K.jsx)(I,{sx:{flex:1,minWidth:0},children:(0,K.jsx)(q6,{label:U(`reports.filter.status`)||`Status`,items:re,value:p,onChange:D,fullWidth:!0})}),!y&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I,{sx:{flex:1,minWidth:0},children:(0,K.jsx)(q6,{label:U(`reports.filter.job_types`)||`Job Types`,items:O,value:h,onChange:ee,fullWidth:!0})}),(0,K.jsx)(I,{sx:{flex:1,minWidth:0},children:(0,K.jsx)(q6,{label:U(`reports.filter.problems_label`)||`Problems`,items:ie,value:_,onChange:v,fullWidth:!0})})]})]})]})}J6.propTypes={selectedColumns:V.default.object,selectedColumnCount:V.default.number,onToggleColumn:V.default.func,dateRange:V.default.object,onDateRangeChange:V.default.func,propertiesList:V.default.array,selectedPropertyIds:V.default.array,isAllProperties:V.default.bool,onPropertyChange:V.default.func,providersList:V.default.array,selectedProviderIds:V.default.array,isAllProviders:V.default.bool,onProviderChange:V.default.func,selectedStatusKey:V.default.string,onStatusChange:V.default.func,selectedJobTypeKey:V.default.string,onJobTypeChange:V.default.func,showProblemsOnly:V.default.bool,onProblemsChange:V.default.func,isServiceProvidersView:V.default.bool};function Fje(e){let t=e?.timeSpentFlagReason;if(!j6.includes(t))return null;let n={timeSpentVariance:e?.timeSpentVariance,timeSpentBufferMin:e?.timeSpentBufferMin},r={fontSize:12,lineHeight:1.5,color:`inherit`};return(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:.75},children:[(0,K.jsx)(x,{sx:{fontSize:12,fontWeight:700,lineHeight:1.4,color:`inherit`},children:U(`reports.flagReason.title`)}),(0,K.jsx)(x,{component:`div`,sx:r,children:(0,K.jsx)(O,{i18nKey:`reports.flagReason.${t}.what`,values:n})}),(0,K.jsx)(x,{component:`div`,sx:r,children:(0,K.jsx)(O,{i18nKey:`reports.flagReason.${t}.how`,values:n})})]})}function Ije(e){return e?(0,K.jsx)(Ig,{title:e,placement:`top`,tooltipSxOverwrite:{maxWidth:300,lineHeight:1.5,p:`10px 14px`,color:`var(--color-bg-paper)`},children:(0,K.jsx)(I,{onClick:e=>e.stopPropagation(),sx:{display:`flex`,flexShrink:0,cursor:`help`},children:(0,K.jsx)(Y.IcWarning,{height:`14px`,width:`14px`})})}):null}var Lje=e=>{switch(typeof e==`string`?e.toLowerCase():e){case`accepted`:return`light-blue`;
2840case`started`:return`pink`;case`finished`:return`green`;case`delayed`:return`orange`;case`declined`:case`cancelledbycleaner`:return`red`;default:return`default`}},Rje=(e,t)=>{switch(Ro(e,t)){case`accepted`:return`light-blue`;case`progress`:return`pink`;case`finished`:return`green`;case`delayed`:return`orange`;case`pending`:case`pendingChanges`:return`default`;case`cancelled`:return`red`;default:return`default`}};function Y6(e,t=!1){return(0,K.jsx)(I,{sx:{display:`flex`,flexDirection:`column`,gap:.5},children:(0,H.default)(Array.isArray(e)?e:Object.values(e||{}),(e,n)=>{let r=Gs(e),i=t?null:(0,K.jsx)(Px,{isInProgress:Vs(e),isFinished:Hs(e),hasProblem:r?.hasProblem,isIncomplete:r?.isIncomplete});return(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:`8px`},children:[(0,K.jsx)(Nx,{text:U(e?.getStatusString?.(t)||``),color:Rje(e,t),size:`small`}),i]},`colortile-${e?.jobId||n}`)})})}function X6(e,t=!1,n=``){let r=Array.isArray(e)?e:Object.values(e||{});return(0,K.jsx)(I,{sx:{display:`flex`,flexDirection:t?`row`:`column`,gap:t?1:.25,flexWrap:t?`wrap`:`nowrap`},children:(0,H.default)(r,(e,t)=>(0,K.jsx)(x,{variant:`body2`,sx:{fontSize:12},children:e},`textstack-${n}${t}`))})}var zje=e=>({verticalAlign:`top`,px:1.5,py:.75,width:e,maxWidth:e,borderRight:`1px solid`,overflow:`hidden`,borderColor:`var(--color-border)`,minHeight:36,"&:last-child":{borderRight:`none`}});function Z6({columnKey:e,value:t=null,width:n,isClickable:r=!1,onClick:i=null,rowData:a=null}){let o=oje(e),s=sje(e),c=k6(e),l=A6(e),u=uje(e),d=zje(n);if(t&&typeof t==`object`&&t.type)switch(t.type){case`colortile`:return(0,K.jsx)(I,{component:`td`,sx:d,children:Y6(t.data,!1)});case`colortilecleaner`:return(0,K.jsx)(I,{component:`td`,sx:d,children:Y6(t.data,!0)});case`textstack`:return(0,K.jsx)(I,{component:`td`,sx:d,children:X6(t.data,!1,`${e}`)});case`textstackflex`:return(0,K.jsx)(I,{component:`td`,sx:d,children:X6(t.data,!0,`${e}`)});case`paymentstatus`:return(0,K.jsx)(I,{component:`td`,sx:d,children:t.data===`-`?`-`:(0,K.jsx)(gT,{paymentStatus:t.data})});case`duration`:return(0,K.jsx)(I,{component:`td`,sx:{...d,textAlign:`right`},children:(0,K.jsx)(x,{variant:`body2`,sx:{fontSize:12,fontVariantNumeric:`tabular-nums`},children:Lc(t.data)})});default:break}if(u&&t)return(0,K.jsx)(I,{component:`td`,sx:d,children:t===`-`?(0,K.jsx)(x,{variant:`body2`,sx:{fontSize:12,color:`var(--color-text)`},children:`-`}):(0,K.jsx)(gT,{paymentStatus:t})});if(c&&typeof t==`number`)return(0,K.jsx)(I,{component:`td`,sx:{...d,textAlign:`right`},children:(0,K.jsx)(x,{variant:`body2`,sx:{fontSize:12,fontVariantNumeric:`tabular-nums`,color:`var(--color-text)`},children:Lc(t)})});let f=yje(e,t);if(l&&t){let e=typeof t==`string`?t.toLowerCase():t;return(0,K.jsx)(I,{component:`td`,sx:d,children:(0,K.jsx)(Nx,{text:o6[e]||t,color:Lje(e),size:`small`})})}if(o)return(0,K.jsx)(I,{component:`td`,sx:{...d,textAlign:`center`},children:t?(0,K.jsx)(I,{sx:{color:`var(--color-green)`,display:`flex`},children:(0,K.jsx)(Y.IcChecked,{height:`18px`,width:`18px`})}):(0,K.jsx)(I,{sx:{color:`var(--color-placeholder)`,display:`flex`},children:(0,K.jsx)(Y.IcClose,{height:`18px`,width:`18px`})})});let p=e===`propertyname`?Ije(M6(a?.timeSpentFlagged)?Fje(a):null):null,m=(0,K.jsx)(x,{variant:`body2`,sx:{fontSize:12,minWidth:0,color:r?`var(--color-primary)`:`var(--color-text)`,fontWeight:r?500:400,fontVariantNumeric:s?`tabular-nums`:`normal`,wordBreak:`break-word`,"&:hover":r?{textDecoration:`underline`}:{}},children:f});return(0,K.jsx)(I,{component:`td`,onClick:r?i:void 0,sx:{...d,cursor:r?`pointer`:`default`,textAlign:s?`right`:`left`},children:p?(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`flex-start`,gap:.5},children:[m,p]}):m})}Z6.propTypes={columnKey:V.default.string.isRequired,value:V.default.any,width:V.default.oneOfType([V.default.number,V.default.string]).isRequired,isClickable:V.default.bool,onClick:V.default.func,rowData:V.default.object};var Q6=gn.create(I);function $6({data:e=[],columns:t=[],isLoading:n=!1,hasMore:r=!1,onLoadMore:i=null,onOpenFilters:a=null,onCellClick:o=null,sortBy:s=null,sortDirection:c=null,onSort:l=null,countLabel:u=null,emptyTitle:d=null,emptyDescription:f=null,fillWidth:p=!1}){let{isDarkMode:m}=oT(),h=(0,B.useMemo)(()=>t.reduce((e,t)=>
2840(e[t]=IAe[t]||200,e),{}),[t]),g=(0,B.useMemo)(()=>t.reduce((e,t)=>e+(h[t]||200),0),[t,h]),_=(0,B.useCallback)(e=>{let t=h[e]||200;return!p||g===0?t:`${t/g*100}%`},[h,g,p]),v=(0,B.useCallback)(e=>{l&&l(e,s===e&&c===`asc`?`desc`:`asc`)},[s,c,l]),y=(0,B.useCallback)((e,t)=>{i6[t]&&o&&o(e,t)},[o]),b=(0,B.useCallback)(()=>(0,K.jsx)(I,{component:`thead`,sx:{bgcolor:m?`rgba(255, 255, 255, 0.03)`:`rgba(0, 0, 0, 0.02)`,position:`sticky`,top:0,zIndex:10,backdropFilter:`blur(8px)`},children:(0,K.jsx)(I,{component:`tr`,sx:{borderBottom:`2px solid`,borderColor:`var(--color-border)`},children:t.map(e=>{let t=s===e,n=c===`asc`;return(0,K.jsx)(I,{component:`th`,onClick:()=>v(e),sx:{display:`table-cell`,verticalAlign:`middle`,px:1.5,py:1,width:_(e),minHeight:44,gap:.5,userSelect:`text`,cursor:`pointer`,transition:`all 0.15s ease`,borderRight:`1px solid`,borderColor:`var(--color-border)`,overflow:`hidden`,textAlign:`left`,fontWeight:`normal`,"&:last-child":{borderRight:`none`},"&:hover":{bgcolor:m?`rgba(255, 255, 255, 0.05)`:`rgba(0, 0, 0, 0.04)`}},children:(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:.5},children:[(0,K.jsx)(x,{sx:{fontWeight:600,color:t?`var(--color-primary)`:`var(--color-text)`,textTransform:`uppercase`,letterSpacing:`0.04em`,fontSize:11,lineHeight:1,transition:`color 0.15s ease`},children:y6(e)}),(0,K.jsx)(I,{sx:{display:`flex`,alignItems:`center`,transition:`all 0.2s ease`,opacity:+!!t,transform:`rotate(${n?180:0}
2840deg)`,color:`var(--color-primary)`},children:(0,K.jsx)(bn,{sx:{fontSize:16}})})]})},e)})})}),[t,_,s,c,v,m]);return n&&(!e||e.length===0)?(0,K.jsx)(I,{sx:{flex:1,display:`flex`,flexDirection:`column`,bgcolor:`var(--color-bg-paper)`,overflow:`hidden`,borderRadius:`0 0 12px 12px`},children:(0,K.jsx)(I,{sx:{overflow:`auto`},children:(0,K.jsxs)(I,{component:`table`,sx:{tableLayout:`fixed`,width:p?`100%`:g,minWidth:g,borderCollapse:`collapse`},children:[b(),(0,K.jsx)(I,{component:`tbody`,children:[...Array(10)].map((e,n)=>(0,K.jsx)(Q6,{component:`tr`,initial:{opacity:0},animate:{opacity:1},transition:{delay:n*.04},sx:{borderBottom:`1px solid`,borderColor:`var(--color-border)`,bgcolor:n%2==0?`transparent`:m?`rgba(255, 255, 255, 0.02)`:`rgba(0, 0, 0, 0.015)`},children:t.map((e,t)=>(0,K.jsx)(I,{component:`td`,sx:{px:1.5,py:1,width:_(e),borderRight:`1px solid`,borderColor:`var(--color-border)`,overflow:`hidden`,minHeight:44,"&:last-child":{borderRight:`none`}},children:(0,K.jsx)(J,{variant:`rounded`,width:`${40+(n*7+t*13)%50}%`,height:14,sx:{borderRadius:`4px`}})},e))},n))})]})})}):!e||e.length===0?(0,K.jsx)(I,{sx:{flex:1,display:`flex`,flexDirection:`column`,bgcolor:`var(--color-bg-paper)`,overflow:`hidden`,borderRadius:`0 0 12px 12px`},children:(0,K.jsxs)(Q6,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:bd.gentle,sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,py:12,px:4,textAlign:`center`,flex:1},children:[(0,K.jsxs)(I,{sx:{position:`relative`,mb:4},children:[(0,K.jsx)(I,{sx:{width:88,height:88,borderRadius:`20px`,bgcolor:m?`rgba(54, 172, 178, 0.1)`:`rgba(54, 172, 178, 0.08)`,display:`flex`,alignItems:`center`,justifyContent:`center`,transform:`rotate(-6deg)`},children:(0,K.jsx)(Y.IcGrid,{height:`36px`,width:`36px`,style:{color:`var(--color-primary)`,opacity:.6}})}),(0,K.jsx)(I,{sx:{position:`absolute`,top:-8,right:-8,width:12,height:12,borderRadius:`50%`,bgcolor:`var(--color-primary)`,opacity:.3}}),(0,K.jsx)(I,{sx:{position:`absolute`,bottom:-4,left:-12,width:8,height:8,borderRadius:`50%`,bgcolor:`var(--color-primary)`,opacity:.2}})]}),(0,K.jsx)(x,{sx:{fontSize:20,fontWeight:600,color:`var(--color-text)`,mb:1,letterSpacing:`-0.01em`},children:d||U(`reports.table.no_results_title`)||`No job requests found`}),(0,K.jsx)(x,{sx:{fontSize:14,color:`var(--color-grey)`,mb:4,maxWidth:360,lineHeight:1.6},children:f||U(`reports.table.no_results_description`)||`Try adjusting your filters or date range to find job requests.`}),a&&(0,K.jsx)(dn,{variant:`outlined`,onClick:a,size:`medium`,sx:{textTransform:`none`,fontWeight:600,fontSize:14,px:3,py:1,borderRadius:`10px`,borderColor:`var(--color-primary)`,color:`var(--color-primary)`,borderWidth:1.5,"&:hover":{bgcolor:`rgba(54, 172, 178, 0.08)`,borderColor:`var(--color-primary)`,borderWidth:1.5}},children:U(`reports.table.adjust_filters`)||`Adjust Filters`})]})}):(0,K.jsxs)(I,{sx:{flex:1,display:`flex`,flexDirection:`column`,bgcolor:`var(--color-bg-paper)`,minHeight:0,height:`100%`,borderRadius:`0 0 12px 12px`,overflow:`hidden`},children:[(0,K.jsx)(I,{sx:{flex:1,height:0,overflow:`auto`,"&::-webkit-scrollbar":{width:8,height:8},"&::-webkit-scrollbar-track":{bgcolor:`transparent`},"&::-webkit-scrollbar-thumb":{bgcolor:m?`rgba(255, 255, 255, 0.15)`:`rgba(0, 0, 0, 0.15)`,borderRadius:4,"&:hover":{bgcolor:m?`rgba(255, 255, 255, 0.25)`:`rgba(0, 0, 0, 0.25)`}}},children:(0,K.jsxs)(I,{component:`table`,sx:{tableLayout:`fixed`,width:p?`100%`:g,minWidth:g,borderCollapse:`collapse`},children:[b(),(0,K.jsx)(I,{component:`tbody`,children:e.map((e,n)=>(0,K.jsx)(I,{component:`tr`,sx:{borderBottom:`1px solid`,borderColor:`var(--color-border)`,bgcolor:n%2==0?`transparent`:m?`rgba(255, 255, 255, 0.02)`:`rgba(0, 0, 0, 0.015)`,transition:`background-color 0.15s ease`,"&:hover":{bgcolor:m?`rgba(54, 172, 178, 0.08)`:`rgba(54, 172, 178, 0.04)`}},children:t.map(t=>{let n=i6[t];return(0,K.jsx)(Z6,{columnKey:t,value:e?.[t],rowData:e,width:_(t),isClickable:n,onClick:n?()=>y(e,t):void 0},t)})},e?.jobsnapshotid||e?.cleanerId||n))})]})}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,px:2.5,py:1.5,bgcolor:m?`rgba(255, 255, 255, 0.03)`:`rgba(0, 0, 0, 0.02)`,borderTop:`1px solid`,borderColor:`var(--color-border)`,flexShrink:0},children:[(0,K.jsxs)(x,{sx:{fontSize:13,fontWeight:500,color:`var(--color-grey)`},children:[(0,K.jsx)(I,{component:`span`,sx:{fontWeight:600,color:`var(--color-text)`},children:e.length}),` `,u||U(`properties.job_requests`)||`job requests`]}),r&&(0,K.jsx)(dn,{variant:`text`,onClick:i,disabled:n,size:`small`,sx:{textTransform:`none`,fontWeight:600,fontSize:13,color:`var(--color-primary)`,px:2,borderRadius:`8px`,paddingRight:`5%`,"&:hover":{bgcolor:`rgba(54, 172, 178, 0.08)`}},children:n?U(`properties.loading`)||`Loading...`:U(`reports.load_more`)||`Load More`})]})]})}$6.propTypes={data:V.default.array,columns:V.default.arrayOf(V.default.string).isRequired,isLoading:V.default.bool,hasMore:V.default.bool,onLoadMore:V.default.func,isLoadingMore:V.default.bool,onOpenFilters:V.default.func,onCellClick:V.default.func,sortBy:V.default.string,sortDirection:V.default.oneOf([`asc`,`desc`]),onSort:V.default.func,countLabel:V.default.string,emptyTitle:V.default.string,emptyDescription:V.default.string,fillWidth:V.default.bool};function e8({open:e,onClose:t,onConfirm:n,reportTitle:r=``,isDeleting:i=!1}){return(0,K.jsxs)(gt,{open:e,onClose:t,maxWidth:`xs`,fullWidth:!0,children:[(0,K.jsx)(Ie,{children:U(`reports.modal.delete_report`)}),(0,K.jsx)(Ut,{children:(0,K.jsxs)(Yt,{children:[U(`reports.modal.delete_report_l2`),r&&(0,K.jsx)(I,{component:`span`,sx:{fontWeight:600,display:`block`,mt:1},children:r})]})}),(0,K.jsxs)(en,{children:[(0,K.jsx)(dn,{onClick:t,disabled:i,color:`inherit`,sx:{color:`var(--color-grey)`},children:U(`reports.modal.cancel`)}),(0,K.jsx)(dn,{onClick:n,color:`error`,variant:`contained`,disabled:i,children:U(i?`reports.modal.processing`:`reports.modal.delete`)})]})]})}e8.propTypes={open:V.default.bool.isRequired,onClose:V.default.func.isRequired,onConfirm:V.default.func.isRequired,reportTitle:V.default.string,isDeleting:V.default.bool};function t8({open:e,onClose:t,onDiscard:n,onSave:r,isSaving:i=!1}){return(0,K.jsxs)(gt,{open:e,onClose:t,maxWidth:`xs`,fullWidth:!0,children:[(0,K.jsx)(Ie,{children:U(`reports.modal.unsaved_title`)}),(0,K.jsx)(Ut,{children:(0,K.jsx)(Yt,{children:U(`reports.modal.unsaved_message`)})}),(0,K.jsxs)(en,{children:[(0,K.jsx)(dn,{onClick:n,disabled:i,color:`inherit`,sx:{color:`var(--color-grey)`},children:U(`reports.modal.discard`)}),(0,K.jsx)(dn,{onClick:t,disabled:i,color:`inherit`,sx:{color:`var(--color-grey)`},children:U(`reports.modal.cancel`)}),(0,K.jsx)(dn,{onClick:r,variant:`contained`,color:`primary`,disabled:i,children:U(i?`reports.modal.processing`:`reports.modal.save`)})]})]})}t8.propTypes={open:V.default.bool.isRequired,onClose:V.default.func.isRequired,onDiscard:V.default.func.isRequired,onSave:V.default.func.isRequired,isSaving:V.default.bool};function n8({open:e,onClose:t,progress:n=0,isComplete:r=!1,downloadUrl:i=null,error:a=null}){return(0,K.jsxs)(gt,{open:e,onClose:r||a?t:void 0,maxWidth:`xs`,fullWidth:!0,children:[(0,K.jsx)(Ie,{children:U(a?`reports.modal.export_failed`:r?`reports.modal.download`:`reports.modal.processing`)}),(0,K.jsx)(Ut,{children:a?(0,K.jsx)(Fn,{severity:`error`,sx:{mt:1},children:a}):r?(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:2,py:2},children:[(0,K.jsx)(I,{sx:{color:`success.main`,display:`flex`},children:(0,K.jsx)(Y.IcChecked,{height:`24px`,width:`24px`})}),(0,K.jsx)(x,{children:U(`reports.modal.export_success`)})]}):(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,py:3},children:[(0,K.jsx)(rr,{size:48,sx:{mb:2}}),(0,K.jsxs)(x,{variant:`body2`,sx:{color:`text.secondary`},children:[U(`reports.modal.preparing_export`),` `,n>0?`${n}%`:``]})]})}),(r||a)&&(0,K.jsxs)(en,{children:[r&&i&&(0,K.jsx)(dn,{onClick:()=>{i&&window.open(i,`_blank`)},variant:`contained`,color:`primary`,children:U(`reports.modal.download`)}),(0,K.jsx)(dn,{onClick:t,variant:r&&i?`outlined`:`contained`,color:`primary`,children:U(`reports.modal.ok`)})]})]})}n8.propTypes={open:V.default.bool.isRequired,onClose:V.default.func.isRequired,progress:V.default.number,isComplete:V.default.bool,downloadUrl:V.default.string,error:V.default.string};function r8({open:e,onClose:t,title:n=``,message:r=``}){return(0,K.jsxs)(gt,{open:e,onClose:t,maxWidth:`xs`,fullWidth:!0,children:[(0,K.jsx)(Ie,{children:n||U(`reports.error_cannot_load_report`)}),(0,K.jsx)(Ut,{children:(0,K.jsx)(Fn,{severity:`error`,children:r||U(`reports.error_cannot_load_report_l2`)})}),(0,K.jsx)(en,{children:(0,K.jsx)(dn,{onClick:t,variant:`contained`,color:`primary`,children:U(`reports.modal.ok`)})})]})}r8.propTypes={open:V.default.bool.isRequired,onClose:V.default.func.isRequired,title:V.default.string,message:V.default.string};var i8=()=>{};function a8({deleteModal:e=!1,unsavedModal:t=!1,exportModal:n=!1,errorMod
2840al:r=!1,onCloseDelete:i=i8,onConfirmDelete:a=i8,onCloseUnsaved:o=i8,onDiscardUnsaved:s=i8,onSaveUnsaved:c=i8,onCloseExport:l=i8,onCloseError:u=i8,isDeleting:d=!1,isSaving:f=!1,reportTitle:p=``,exportProgress:m=0,exportComplete:h=!1,exportDownloadUrl:g=null,exportError:_=null,errorTitle:v=`Error`,errorMessage:y=``}){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(e8,{open:e,onClose:i,onConfirm:a,reportTitle:p,isDeleting:d}),(0,K.jsx)(t8,{open:t,onClose:o,onDiscard:s,onSave:c,isSaving:f}),(0,K.jsx)(n8,{open:n,onClose:l,progress:m,isComplete:h,downloadUrl:g,error:_}),(0,K.jsx)(r8,{open:r,onClose:u,title:v,message:y})]})}a8.propTypes={deleteModal:V.default.bool,unsavedModal:V.default.bool,exportModal:V.default.bool,errorModal:V.default.bool,onCloseDelete:V.default.func,onConfirmDelete:V.default.func,onCloseUnsaved:V.default.func,onDiscardUnsaved:V.default.func,onSaveUnsaved:V.default.func,onCloseExport:V.default.func,onCloseError:V.default.func,isDeleting:V.default.bool,isSaving:V.default.bool,reportTitle:V.default.string,exportProgress:V.default.number,exportComplete:V.default.bool,exportDownloadUrl:V.default.string,exportError:V.default.string,errorTitle:V.default.string,errorMessage:V.default.string};var Bje=`reports.sidebarWidth`;function o8(e){return Math.max(220,Math.min(400,e))}var s8=Y4({key:Bje,defaultValue:264,isValid:e=>typeof e==`number`,normalize:o8});function Vje(){return s8.get()}function Hje(e){s8.set(e)}Qn();var c8={bgcolor:`var(--color-white)`,borderRadius:`var(--radius-lg, 16px)`,boxShadow:`0 2px 8px rgba(0, 0, 0, 0.06)`,border:`1px solid #c8c8c8`,'[data-theme="dark"] &':{borderColor:`var(--color-border)`,boxShadow:`0 2px 8px rgba(0, 0, 0, 0.2)`}};function Uje(){let{reportId:e}=Rn(),t=Vn(),n=xe();oT();let[r,i]=(0,B.useState)(Vje),[a,o]=(0,B.useState)(!1),s=(0,B.useRef)(null),c=(0,B.useRef)(null),l=(0,B.useRef)(!1),u=(0,B.useCallback)(e=>{e.preventDefault(),l.current=!0,o(!0)},[]);(0,B.useEffect)(()=>{ome()},[]),(0,B.useEffect)(()=>{!a&&l.current&&Hje(r)},[a,r]),(0,B.useEffect)(()=>{if(!a)return;let e=e=>{c.current&&cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{if(!s.current)return;let t=s.current.getBoundingClientRect();i(o8(e.clientX-t.left))})},t=()=>{c.current&&cancelAnimationFrame(c.current),o(!1)};return document.addEventListener(`mousemove`,e),document.addEventListener(`mouseup`,t),document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`,()=>{c.current&&cancelAnimationFrame(c.current),document.removeEventListener(`mousemove`,e),document.removeEventListener(`mouseup`,t),document.body.style.cursor=``,document.body.style.userSelect=``}},[a]);let d=j(PC),f=j(KC),p=Object.values(d||{}),m=Object.values(f||{}),{filters:h,setDateRange:g,setSelectedItems:_,setIsAll:v,setSectionValue:y,setShowValidation:b,toggleColumn:x,clearFilters:S,selectedColumnCount:C,selectedColumnsOrdered:w,hasChanges:T,view:E,setView:D,isServiceProvidersView:ee,savedReportsList:te,data:ne,isDataLoading:re,hasMoreData:O,loadMore:ie,handleSave:ae,handleDelete:oe,isSaving:se,saveError:ce,clearSaveError:le,handleExport:ue,isExporting:de,exportStatus:fe,exportError:pe,exportDownloadUrl:me,closeExportModal:he,showSaveModal:ge,promptBeforeNavigate:_e,discardAndNavigate:ve,cancelNavigation:ye,modal:be,openModal:Se,closeModal:Ce}=Mje(),{handlePropertyChange:we,handleProviderChange:Te,handleStatusChange:Ee,handleJobTypeChange:De,handleTitleChange:Oe,handleProblemsChange:ke,handleDateRangeChange:Ae,selectedPropertyIds:je,selectedProviderIds:Me,selectedStatusKey:Ne,selectedJobTypeKey:Pe}=jje({filters:h,setIsAll:v,setSelectedItems:_,setSectionValue:y,setShowValidation:b,setDateRange:g,toggleColumn:x,clearFilters:S,propertiesList:p,providersList:m}),Fe=e===`new`||!e,Ie=(0,B.useCallback)(e=>_e(()=>t(`/reports/${e}`)),[_e,t]),Le=(0,B.useCallback)(()=>_e(()=>t(`/reports/new`)),[_e,t]),Re=(0,B.useCallback)((e,t)=>{[`propertyname`,`jobsenddate`,`schedulestart`,`scheduleend`,`scheduletime`].includes(t)&&e?.jobsnapshotid&&n(YJ(e.jobsnapshotid,!1))},[n]),ze=(0,B.useCallback)(()=>ae(),[ae]),Be=(0,B.useCallback)(()=>Se(l6.DELETE),[Se]),Ve=(0,B.useCallback)(async()=>{await oe(!0),Ce(),t(`/reports`)},[oe,Ce,t]),He=(0,B.useCallback)(e=>{ue(e)},[ue]),Ue=(0,B.useCallback)(()=>{Ce(),he()},[Ce,he]);return(0,K.jsxs)(I,{ref:s,sx:{display:`flex`,height:`100%`,bgcolor:`var(--color-bg-jobrequest)`,overflow:`hidden`,...a&&{userSelect:`none`,cursor:`col-resize`,"& *":{cursor:`col-resize !important`}}},children:[(0,K.jsxs)(I,{sx:{display:`flex`,flexShrink:0,height:`100%`,position:`relative`},children:[(0,K.jsx)(I,{sx:{width:r,height:`100%`,bgcolor:`var(--color-bg)`,borderRight:`1px solid var(--color-border)`,overflow:`hidden`,willChange:`width`},children:(0,K.jsx)(z6,{savedReportsList:te,currentReportId:e,onSelectReport:Ie,onNewReport:Le})}),(0,K.jsx)(I,{"data-testid":`reports-sidebar-resize-handle`,onMouseDown:u,sx:{width:8,height:`100%`,cursor:`col-resize`,bgcolor:`transparent`,position:`relative`,flexShrink:0,zIndex:10,ml:`-4px`,"&::before":{content:`""`,position:`absolute`,top:0,left:-4,right:-4,bottom:0,cursor:`col-resize`},"&::after":{content:`""`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,width:3,height:40,bgcolor:`var(--color-border)`,borderRadius:1,opacity:0,transition:`opacity 0.1s ease`,pointerEvents:`none`},"&:hover, &.active":{bgcolor:`var(--color-primary-alpha-20, rgba(54, 172, 178, 0.2))`},"&:hover::after, &.active::after":{opacity:1,bgcolor:`var(--color-primary)`},...a&&{bgcolor:`var(--color-primary-alpha-20, rgba(54, 172, 178, 0.2))`,"&::after":{content:`""`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,width:3,height:40,bgcolor:`var(--color-primary)`,borderRadius:1,opacity:1,pointerEvents:`none`}}}})]}),(0,K.jsxs)(I,{sx:{flex:1,display:`flex`,flexDirection:`column`,overflow:`hidden`,minWidth:0,minHeight:0,bgcolor:`var(--color-bg-jobrequest)`,p:`20px`,gap:2},children:[(0,K.jsx)(I,{sx:{...c8,flexShrink:0},children:(0,K.jsx)(B6,{isNew:Fe,hasChanges:T,isSaving:se,isExporting:de,canSave:!!h.title?.value?.trim(),title:h.title?.value||``,showTitleError:h.title?.showValidation||!1,onTitleChange:Oe,onSave:ze,onDelete:Be,onExport:He})}),(0,K.jsx)(I,{sx:{flexShrink:0,px:1},children:(0,K.jsx)(H6,{view:E,onChange:D})}),(0,K.jsx)(I,{sx:{...c8,flexShrink:0},children:(0,K.jsx)(J6,{isServiceProvidersView:ee,selectedColumns:h.columns?.selected||{},selectedColumnCount:C,onToggleColumn:x,dateRange:h.date||{},onDateRangeChange:Ae,propertiesList:p,selectedPropertyIds:je,isAllProperties:h.properties?.isAll||p.length>0&&je.length>=p.length,onPropertyChange:we,providersList:m,selectedProviderIds:Me,isAllProviders:h.contacts?.isAll||m.length>0&&Me.length>=m.length,onProviderChange:Te,selectedStatusKey:Ne,onStatusChange:Ee,selectedJobTypeKey:Pe,onJobTypeChange:De,showProblemsOnly:h.problems?.value,onProblemsChange:ke})}),(0,K.jsx)(I,{sx:{...c8,flex:1,overflow:`hidden`,minHeight:0},children:(0,K.jsx)($6,{data:ne?.rows||[],columns:ee?u6:w,isLoading:re,hasMore:O,onLoadMore:ie,onCellClick:ee?void 0:Re,countLabel:ee?U(`reports.table.service_providers_count`)||`service providers`:void 0,emptyTitle:ee?U(`reports.table.no_service_providers_title`)||`No service providers found`:void 0,emptyDescription:ee?U(`reports.table.no_service_providers_description`)||`Try adjusting your filters or date range to find service providers.`:void 0,fillWidth:ee})})]}),(0,K.jsx)(a8,{deleteModal:be.type===l6.DELETE,unsavedModal:ge,exportModal:be.type===l6.EXPORT,errorMod
2840al:be.type===l6.ERROR||!!ce,onCloseDelete:Ce,onConfirmDelete:Ve,onCloseUnsaved:ye,onDiscardUnsaved:ve,onSaveUnsaved:async()=>{await ae()?ve():ye()},onCloseExport:Ue,onCloseError:()=>{Ce(),le()},isSaving:se,reportTitle:h.title?.value,exportComplete:fe===`finished`,exportDownloadUrl:me,exportError:pe,errorMessage:be.meta?.message||ce?.message||(typeof ce==`string`?ce:``)})]})}Qn();function Wje({error:e,resetErrorBoundary:t}){return(0,B.useEffect)(()=>{R.default.error(`Reports module error:`,e)},[e]),(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,height:`100%`,minHeight:400,p:4,textAlign:`center`,backgroundColor:`var(--color-bg)`},children:[(0,K.jsx)(x,{variant:`h5`,sx:{mb:2,color:`var(--color-header)`},children:U(`reports.error_cannot_load_report`)||`Something went wrong`}),(0,K.jsx)(x,{variant:`body1`,sx:{mb:3,color:`var(--color-grey)`,maxWidth:400},children:U(`reports.error_cannot_load_report_l2`)||`An error occurred while loading the reports. Please try again.`}),(0,K.jsx)(dn,{variant:`contained`,onClick:t,sx:{textTransform:`none`},children:U(`reports.modal.ok`)||`Try Again`})]})}function Gje(e,t){R.default.error(`Reports ErrorBoundary caught error:`,e),R.default.error(`Component stack:`,t?.componentStack)}var Kje=()=>((0,B.useEffect)(()=>{su(`titles.reports`)()},[]),(0,K.jsx)(M$,{currentPage:`reports`,disablePreloadLoader:!0,children:(0,K.jsxs)(ar,{FallbackComponent:Wje,onError:Gje,children:[(0,K.jsx)(Uje,{}),(0,K.jsx)(kn,{})]})}));Qn();var qje=e=>(0,K.jsx)($K,{...e}),Jje=()=>{let{bookingId:e,propertyId:t}=Rn(),n=Vn();return(0,K.jsx)(jy,{bookingId:e,propertyId:t,handleCancel:()=>n(`/reports/new`,{replace:!0}),renderChildren:qje,show:!0})},Yje=()=>(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(N,{element:(0,K.jsx)(UB,{}),children:(0,K.jsx)(N,{element:(0,K.jsx)(KB,{}),children:(0,K.jsxs)(N,{element:(0,K.jsx)(sV,{feature:s_.reports}),children:[(0,K.jsx)(N,{path:`reports`,element:(0,K.jsx)(Wr,{to:`/reports/new`,replace:!0})}),(0,K.jsx)(N,{path:`reports/:reportId`,element:(0,K.jsx)(Kje,{}),children:(0,K.jsx)(N,{path:`booking/:propertyId/:bookingId`,element:(0,K.jsx)(Jje,{})})})]})})})}),Xje=Wi(),Zje=()=>FM.default.User.current()?FM.default.User.current().getSessionToken():null,Qje=()=>`${Xje.API_BASE_URL}/public/stripe/connect-start?sessionToken=${Zje()}`,l8=({noLogo:e=!1})=>(0,K.jsxs)(Cv,{children:[e?(0,K.jsx)(Kg,{type:`nomargin`,style:{margin:`auto`},children:U(`payments.bank_account`)}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Y.Logoproperly,{width:`3em`,byWidth:!0}),(0,K.jsx)(Kg,{type:`nomargin`,children:U(`titles.payments`)})]}),(0,K.jsx)(Dm,{type:[`bottom`]})]});l8.propTypes={noLogo:V.default.bool};var u8=({redirectToProvider:e,isConnecting:t=!1})=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(l8,{noLogo:!0}),(0,K.jsx)(Sm,{}),(0,K.jsxs)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,flexDirection:`column`,padding:`14px`,textAlign:`center`},children:[(0,K.jsx)(Yg,{children:U(`payments.connect_to_stripe`)}),(0,K.jsx)(Sm,{}),(0,K.jsx)(Yg,{children:U(`payments.click_button_to_connect`)}),(0,K.jsx)(Sm,{}),(0,K.jsx)(q,{types:[`type-flat-grey`],onClick:e,disabled:t,children:t?(0,K.jsx)(rr,{size:24}):(0,K.jsx)(Y.StripeConnect,{byWidth:!0})})]})]});u8.propTypes={redirectToProvider:V.default.func.isRequired,isConnecting:V.default.bool};var $je=()=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(l8,{}),(0,K.jsx)(cf,{stripelogo:!0,notifyIcon:`success`,content:U(`payments.connect_successful`)})]}),d8=({redirectToProvider:e,isConnecting:t=!1})=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(l8,{}),(0,K.jsx)(cf,{stripe:!0,notifyIcon:`warning`,buttonOnClick:e,buttonLoading:t,content:`Oops! Something went wrong. There was a problem connecting to stripe. Please try again.`})]});d8.propTypes={redirectToProvider:V.default.func.isRequired,isConnecting:V.default.bool},Qn();var f8=({mobile:e=!1})=>{let[t]=on(),[n,r]=(0,B.useState)(!1),i=()=>{if(n)return;let e=Qje();if(!e){R.default.error(`could not get oauth link`);return}r(!0),R.default.info(`StripeSPContainer redirectToProvider - redirecting to Stripe OAuth`),window.location.href=e};return(0,B.useEffect)(()=>{su(`titles.stripe`)(),e&&yu(!0)},[e]),(0,K.jsx)(Nf,{moduleName:`stripe`,customDescription:U(`stripe.error_load`)||`Unable to load payment setup. Please try again.`,children:(()=>{let e=t.get(`error`),r=t.get(`message`);switch(e){case`true`:return(0,K.jsx)(d8,{errorMsg:r,redirectToProvider:i,isConnecting:n});case`false`:return(0,K.jsx)($je,{});default:return(0,K.jsx)(u8,{redirectToProvider:i,isConnecting:n})}})()})};f8.propTypes={mobile:V.default.bool},Qn();var p8=window.location.pathname,eMe=String(p8).indexOf(`stripe-mobile/connect`)!==-1,tMe=String(p8).indexOf(`stripe/connect`)!==-1,m8=`PROPERLY_recordMobileConnectionsViewed`,nMe=()=>{vi.set(m8,!0)},rMe=(!!vi.get(m8)||eMe||tMe)&&Tu(),iMe=()=>(B.useEffect(()=>{nMe()},[]),(0,K.jsx)(f8,{mobile:!0})),aMe=()=>(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(N,{element:(0,K.jsx)(UB,{}),children:(0,K.jsx)(N,{element:(0,K.jsx)(KB,{}),children:rMe&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(N,{path:`stripe/connect`,element:(0,K.jsx)(Wr,{to:`/stripe-mobile/connect`,replace:!0})}),(0,K.jsx)(N,{path:`stripe-mobile/connect`,element:(0,K.jsx)(iMe,{})})]})})})}),h8=({settings:e,permittedSections:t,activeRoute:n})=>{let r=xe(),i=j(yT),a=j(IC),o=j(iw),s=Object.keys(o).length>0,c=j(lB),l=(0,B.useMemo)(()=>{let o=(0,xo.default)(e,e=>
2840t.includes(e.key)),l=ds(a?.currentPlanId),u=(e,t)=>{id(n,e,`sidebar`),nd(`settings_sidebar_navigation`,{component:`SettingsSidebarContainer`,settingKey:t,targetPath:e}),e===Z.settingsPaymentMethods&&Yv(),r(hB(e))};return(0,H.default)(o,e=>{let t=!c&&(a?.status===co.STATUS_EXPIRED||!l||a?.status===co.STATUS_INACTIVE)&&e.key!==`settings.subscription`?!1:e.enabled;return(0,K.jsxs)(I,{sx:{position:`relative`},children:[(0,K.jsx)(Kj,{type:`settings`,"data-testid":e.key,onClick:()=>t&&u(e.route,e.key),active:e.routes.includes(n),title:e.title,disabled:!t}),(0,K.jsxs)(I,{sx:{position:`absolute`,top:`-12px`,right:`3em`,transform:`translateY(90%)`},children:[i&&e.showConnectionIssue&&(0,K.jsx)(Y.IcError1,{}),(a?.status===co.STATUS_FAILED||!l||a?.status===co.STATUS_EXPIRED||a?.status===co.STATUS_INACTIVE||s)&&e.showSubscriptionIssue&&(0,K.jsx)(Y.IcError1,{})]})]},e.key)})},[e,t,n,r,i,s,a,c]);return(0,K.jsxs)(Pj,{children:[(0,K.jsx)(t_,{"data-testid":`button_settings`,label:U(`titles.settings`),disabled:!0}),(0,K.jsx)(Pj.Hr,{}),(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{flushRight:!0,children:l})})})]})};h8.propTypes={settings:V.default.arrayOf(V.default.shape({})).isRequired,permittedSections:V.default.arrayOf(V.default.string).isRequired,activeRoute:V.default.string.isRequired},Qn();var g8=`settings.connect_accounts`,_8=`settings.company`,v8=`settings.partner`,y8=`settings.payment_methods`,b8=`settings.subscription`,x8=`settings.receipts`,oMe=()=>[{key:g8,title:U(g8),route:Z.settingsConnections,routes:[Z.settingsConnections],showConnectionIssue:!0,enabled:!0},{key:_8,title:U(_8),route:Z.settingsCompany,routes:[Z.settingsCompany],enabled:!0},{key:v8,title:U(v8),route:Z.settingsPartner,routes:[Z.settingsPartner,Z.settingsPartnerShared],enabled:!0},{key:y8,title:U(y8),route:Z.settingsPaymentMethods,routes:[Z.settingsPaymentMethods],enabled:!0},{key:b8,title:U(b8),route:Z.settingsSubscription,routes:[Z.settingsSubscription],showSubscriptionIssue:!0,enabled:!0},{key:x8,title:U(x8),route:Z.settingsReceipts,routes:[Z.settingsReceipts],enabled:!0}],sMe=(e,t,n)=>{let r=[];return e&&(r=[g8,y8,b8,x8],t&&r.push(_8),n&&r.push(v8)),{permittedSections:r}};function S8({loading:e=!1,disableWrapper:t=!1,hideMobilePopover:n=!1}){let r=ir();(0,B.useEffect)(()=>{su(`titles.settings`)(),sme()},[]);let i=oMe();return(0,K.jsx)(M$,{overWriteLoading:e,currentPage:`settings`,hideMobilePopover:n,disableWrapper:t,children:(0,K.jsx)(Nf,{moduleName:`settings`,customDescription:U(`settings.error_load`)||`Unable to load settings. Please try again.`,children:(0,K.jsxs)(I,{sx:{backgroundColor:`var(--color-bg-jobrequest)`,height:`100%`,overflow:`hidden`},children:[t&&!e&&(0,K.jsx)(kn,{}),!t&&(0,K.jsxs)(Uj,{resizable:!1,children:[(0,K.jsx)(zj,{children:(0,K.jsx)(Mw,{hasAccessFormatter:e=>({canSeeFullNav:e.canSeeFullNav,settingsUandP:e.settingsUandP}),render:e=>{let{permittedSections:t}=sMe(e.canSeeFullNav,e.settingsUandP.companyModule,e.settingsUandP.partnerModule);return(0,K.jsx)(h8,{settings:i,permittedSections:t,activeRoute:r.pathname})}})}),(0,K.jsx)(Wj,{grey:!0,children:(0,K.jsxs)(Yj,{children:[(0,K.jsx)(Xj,{}),(0,K.jsx)(Zj,{children:(0,K.jsx)(Jj,{variation:`property`,type:`absolute-scroll`,children:!e&&(0,K.jsx)(kn,{})})})]})})]})]})})})}S8.propTypes={loading:V.default.bool,disableWrapper:V.default.bool,hideMobilePopover:V.default.bool};var C8=({sidebarComponent:e,mainComponent:t,startupData:n,actionHandler:r})=>{let i=xe(),{isModalLoading:a,submitIsLoading:o}=j(x$);return(0,B.useEffect)(()=>(i(QQ({mode:`mount`,startupData:n})),()=>{i(QQ({mode:`unmount`}))}),[i,n]),(0,K.jsxs)(IS,{children:[(0,K.jsx)(LS,{children:(0,K.jsx)(e,{actionHandler:r})}),(0,K.jsx)(jS,{children:(0,K.jsx)(t,{actionHandler:r})}),(a||o)&&(0,K.jsx)(RS,{})]})};C8.propTypes={sidebarComponent:V.default.func.isRequired,mainComponent:V.default.func.isRequired,startupData:V.default.shape({}).isRequired,actionHandler:V.default.func.isRequired};function cMe(e){switch(e){case`option1`:return U(`permissions.internal_coll_singular`);case`option2`:return U(`permissions.external_coll_singular`);default:return`Not defined`}}function lMe(e){switch(e){case`option1`:return U(`permissions.modal.full_access`);case`option2`:return U(`permissions.modal.specific_access`);default:return`Not defined`}}function uMe(e){switch(e){case`setupsupport`:return U(`permissions.modal.setup_supp
2840ort`);case`owneraccess`:return U(`permissions.modal.owner_access`);case`spaccess`:return U(`permissions.modal.service_provider_access`);default:return`Not defined`}}var w8=({id:e,propertyViewRights:t={}})=>{let n=j(b$),r=j(p$),i=(n?.sectionsById||{})[e]||{},{sectionId:a}=i,{sectionValue:o}=i,s=r?.view?.rights||t;return a===`email`||a===`email_company`?(0,K.jsx)(aS,{cutText:!0,children:o?.email}):a===`type`?(0,K.jsx)(aS,{cutText:!0,children:uMe(o?.type)}):a===`collType`?(0,K.jsx)(aS,{cutText:!0,children:cMe(o?.type)}):a===`permissions`||a===`property`?(0,K.jsx)(aS,{cutText:!0,children:lMe(o?.type)}):a===`seeper`?(0,K.jsx)(w$,{permissionMap:O$,noSpacingFirst:!0,keyPrefix:`sidebarmodal`,onChangeFunc:Fu.default,isDisabled:()=>!0,isSelected:e=>s?.[e]}):(0,K.jsx)(`div`,{children:a})};w8.propTypes={id:V.default.string.isRequired,propertyViewRights:V.default.object};var T8=[`type-full-primary-job`,`size-large`,`border-rad-no`,`width-flex`,`miheight-62`],dMe=({actionHandler:e})=>{let{modalTitle:t,sections:n,hideSubmitButton:r,submitDisabled:i,submitIsLoading:a,submitText:o}=USe();return(0,K.jsxs)(MS,{children:[(0,K.jsx)(BS,{title:U(t)}),(0,H.default)(n,t=>(0,K.jsxs)(HS,{id:t.sectionId,style:{flex:1},isDisabled:t.isDisabled,onClick:e(`sidebarclicksection`)({sectionId:t.sectionId}),modifiers:t.sectionMods,isActive:t.isActive,title:U(t.sectionTitle),children:[t.sectionIsEmpty&&(0,K.jsx)(US,{}),!t.sectionIsEmpty&&(0,K.jsx)(w8,{id:t.sectionId})]},`permission-sidebar-${t.sectionId}`)),!r&&(0,K.jsxs)(q,{disabled:i||a,onClick:e(`handlesubmit`)(),types:a?[...T8,`zindex-11`]:T8,children:[!a&&U(o),a&&(0,K.jsx)(J,{height:20,width:100,style:{backgroundColor:`rgba(255,255,255,0.3)`}})]})]})},E8=e=>(0,K.jsxs)(MS,{children:[e.activeSectionData&&(0,K.jsx)(zS,{canBack:e.sectionCanBack,backText:U(e.sectionBackText),onClickBack:e.actionHandler(`topbarback`)(e),canNext:e.sectionCanNext,nextIsLoading:e.nextIsLoading,title:U(e.sectionTopBarTitle),nextText:U(e.sectionNextText),disabledNext:e.sectionDisableNext,onClickNext:e.actionHandler(`topbarnext`)(e)}),(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{children:(()=>{let t=e.activeSectionData?.sectionMainComponent;return e.submitIsError?(0,K.jsx)(MM,{type:`jobrequesterror`}):t?(0,K.jsx)(t,{}):null})()})})})]});E8.propTypes={actionHandler:V.default.func.isRequired,activeSectionData:V.default.shape({}).isRequired,submitIsError:V.default.bool,sectionCanBack:V.default.bool,sectionBackText:V.default.string,sectionCanNext:V.default.bool,nextIsLoading:V.default.bool,sectionTopBarTitle:V.default.string,sectionNextText:V.default.string,sectionDisableNext:V.default.bool};var fMe=Nt(x$,{})(E8),D8=e=>e&&e.toJSON?e.toJSON():e||{},pMe=(e,t)=>(0,sQ.default)((0,gx.default)(e),(0,gx.default)(t)).length>0,mMe=e=>{let t=j(u$),[n,r]=(0,B.useState)({}),[i,a]=(0,B.useState)(!1);return(0,B.useEffect)(()=>{let n=D8(t);if(i)r(n);else{let t=n.objectId?{}:{email:e};r({...n,...t}),a(!0)}},[t,e,i]),{getter:(0,B.useCallback)(e=>(0,G.default)(n,[e]),[n]),setter:(0,B.useCallback)(e=>t=>{let n=t?.target?t.target.value:t;r(t=>({...t,[e]:n}))},[]),hasDiff:pMe(n,D8(t)),data:n,isSave:!!n.objectId}},O8={display:`flex`,justifyContent:`center`};function hMe(e){switch(e){case 3:return`permissions.error.unknown`;case 4:return`permissions.error.email_blacklisted`;case 5:return`permissions.error.email_domain_used`;default:return`permissions.error.unknown`}}var k8=class extends B.PureComponent{constructor(e){super(e),k(this,`maxLengthDes`,200),k(this,`resetImage`,()=>{this.setState(e=>({...e,file:void 0}))}),k(this,`setImage`,e=>{e&&e[0]&&(this.setState({file:e[0]}),tP(e[0]).then(e=>{this.props.setter(`pictureUrl`)(e.pictureUrl),this.resetImage()}).catch(()=>{this.resetImage(),this.props.setGlobalLoadingState(d_,3)}))}),k(this,`desChangeProxy`,e=>{e.target.value.length>this.maxLengthDes||this.props.setter(`description`)(e)}),this.state={file:void 0}}getImageState(e,t){return e?{text:``,state:`loading`,image:e.preview}:t?{text:U(`account.change_image`),state:`set`,image:iu(t,nu.PROFILE_PICTURE)}
2840:{state:`dropable`,image:``}}get des(){return this.props.getter(`description`)||``}render(){let e=this.getImageState(this.state.file,this.props.getter(`pictureUrl`)),{imageUploadErrored:t,setGlobalLoadingState:n}=this.props;return(0,K.jsx)(I,{sx:{padding:`20px 33px`},children:(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`},children:[(0,K.jsx)(I,{sx:O8,children:(0,K.jsx)(Sg,{type:[`image--company`],image:e.image,children:(0,K.jsx)(g_,{type:`permission`,onDropAccepted:this.setImage,state:e.state,imageUploadErrored:t,setGlobalLoadingAction:n,text:(0,K.jsxs)(I,{sx:{textAlign:`center`},children:[(0,K.jsx)(mj,{modifier:[`txt--l7m`,`color--white`],children:U(`permissions.upload_company_logo`)}),(0,K.jsx)(wm,{type:`vertical`,size:`3px`}),(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--white`],children:U(`permissions.upload_size`)})]})})})}),(0,K.jsx)(wm,{type:`vertical`,size:`28px`}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Jb,{label:U(`permissions.company_name`),isRequired:!0}),(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,styleOverwrite:{backgroundColor:`var(--color-white)`},style:{fontSize:`14px`,lineHeight:`18px`},onChange:this.props.setter(`name`),value:this.props.getter(`name`)||``,placeholder:U(`permissions.untitled_team`),type:`text`}),(0,K.jsx)(wm,{type:`vertical`,size:`28px`}),(0,K.jsx)(Jb,{label:U(`permissions.your_company_email`),isRequired:!0}),(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,styleOverwrite:{backgroundColor:`var(--color-white)`},style:{fontSize:`14px`,lineHeight:`18px`},error:!!this.props.error,onChange:this.props.setter(`email`),value:this.props.getter(`email`)||``,type:`text`}),(0,K.jsx)(wm,{type:`vertical`,size:`28px`,children:this.props.error&&(0,K.jsx)(Yf.ErrorMsg,{children:U(hMe(this.props.error))})}),(0,K.jsx)(Jb,{label:U(`permissions.company_profile`)}),(0,K.jsx)(Yf,{isFirst:!0,isLast:!0,styleOverwrite:{backgroundColor:`var(--color-white)`,height:`100px`},style:{fontSize:`14px`,lineHeight:`18px`},onChange:this.desChangeProxy,value:this.des,placeholder:U(`permissions.des_placeholder`),type:`textarea`}),(0,K.jsx)(wm,{type:`vertical`,size:`3px`}),(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--grey`],children:U(`permissions.remaining_chars`,{count:this.maxLengthDes-this.des.length})})]}),(0,K.jsx)(wm,{type:`vertical`,size:`18px`}),(0,K.jsxs)(I,{sx:O8,children:[!this.props.isSave&&(0,K.jsx)(q,{types:[`type-full-primary-job`,`size-large`],disabled:!this.props.isValid||this.props.isLoading,onClick:this.props.createFunc(this.props.data),isLoading:this.props.isLoading,children:U(`permissions.create_team`)}),this.props.isSave&&(0,K.jsx)(q,{disabled:!this.props.isValid||this.props.isLoading,types:[`type-full-primary`,`size-large`],onClick:this.props.saveFunc(this.props.data),isLoading:this.props.isLoading,children:U(`permissions.update`)})]}),(0,K.jsx)(wm,{type:`vertical`,size:`6px`}),(0,K.jsx)(I,{sx:{textAlign:`center`},children:(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--grey`],children:U(`permissions.company_note`)})})]})})}};k8.propTypes={data:V.default.shape({}),isLoading:V.default.bool.isRequired,isValid:V.default.bool.isRequired,isSave:V.default.bool.isRequired,createFunc:V.default.func.isRequired,getter:V.default.func.isRequired,setter:V.default.func.isRequired,saveFunc:V.default.func.isRequired,error:V.default.bool.isRequired};var gMe=e=>{let t=xe(),n=(0,B.useMemo)(()=>bw(d_),[]),r=(0,B.useMemo)(()=>bw(r$),[]),i=j(DC),a=j(e=>n(e)?.isErrored),o=j(r),{getter:s,setter:c,data:l,isSave:u}=mMe(i);return(0,K.jsx)(k8,{data:l,getter:s,setter:c,isSave:u,isLoading:o.isLoadingFull,error:o.errorRaw,isValid:e.companyValid(l),createFunc:e.createFunc,saveFunc:e.saveFunc,imageUploadErrored:a,setGlobalLoadingState:(...e)=>t(uF(...e))})},A8=`permissionmodal`,j8=`permissions_cancelaccess`,M8=`permissions_leaveproperty`,N8=`permissions_company`,P8=`permissions_company_success`,F8=`permissions_company_verifyinfo`,I8=`permissions_company_verifyresult`,L8=`permissions_warningcompanyemailmissing`,_Me=e=>e?{headline:U(`contacts.congrats`),txt:U(`permissions.modal.verify_success`)}:{headline:U(`permissions.modal.verify_fail_head`),txt:U(`permissions.modal.verify_fail`)},R8=()=>{let e=xe(),{trackModalAction:t}=nT(`PermissionModal`),n=(0,B.useMemo)(()=>mw(A8),[]),r=(0,B.useMemo)(()=>mw(j8),[]),i=(0,B.useMemo)(()=>mw(M8),[]),a=(0,B.useMemo)(()=>mw(N8),[]),o=(0,B.useMemo)(()=>mw(P8),[]),s=(0,B.useMemo)(()=>mw(F8),[]),c=(0,B.useMemo)(()=>mw(I8),[]),l=(0,B.useMemo)(()=>mw(L8),[]),u=j(n),d=j(r),f=j(i),p=j(a),m=j(o),h=j(s),g=j(c),_=j(l),v=n=>()=>{t(n,`close`),e(dF(!1,n,{}))},y=(n,r,i)=>a=>{t(i,`confirm`,{action:n}),v(i)(),setTimeout(()=>{e(e$(n,r,a))},200)},b=t=>n=>r=>e(e$(t,n,r)),x=(0,B.useMemo)(()=>b(`createteam`),[b]),S=(0,B.useMemo)(()=>b(`saveteam`),[b]),C=(0,B.useCallback)(e=>!!(e.name&&Ql(e.email)),[]);return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X,{height:200,show:!!_.isOpen,onClose:v(L8),children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{type:``,children:(0,K.jsx)(Kg,{type:`bold`,children:U(`permissions.modal.enter_a_company_email`)})}),(0,K.jsx)(X.Text,{children:(0,K.jsx)(Yg,{children:U(`permissions.modal.enter_a_company_email_txt`)})}),(0,K.jsx)(X.Options,{children:(0,K.jsx)(X.Ok,{onClick:v(L8)})})]})}),(()=>{let{isOpen:e,meta:t}=g,n=_Me((0,G.default)(t,`result`));return(0,K.jsx)(X,{height:200,show:!!e,onClose:v(I8),children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{type:``,children:(0,K.jsx)(Kg,{type:`bold`,children:n.headline})}),(0,K.jsx)(X.Text,{children:(0,K.jsx)(Yg,{children:n.txt})}),(0,K.jsx)(X.Options,{children:(0,K.jsx)(X.Ok,{onClick:v(I8)})})]})})})(),(0,K.jsx)(Fg,{onClose:v(A8),show:!!u.isOpen,children:(0,K.jsx)(`div`,{children:(0,K.jsx)(C8,{sidebarComponent:dMe,mainComponent:fMe,onClose:v,actionHandler:b,startupData:u.meta})})}),(()=>{let{isOpen:e,meta:t}=h;return(0,K.jsx)(X,{height:220,show:!!e,onClose:v(F8),children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{type:``,children:(0,K.jsx)(Kg,{type:`bold`,children:U(`permissions.modal.confirm_your_mail`)})}),(0,K.jsx)(X.Text,{children:(0,K.jsx)(Yg,{children:U(`permissions.modal.confirm_your_mail_txt`,{email:(0,G.default)(t,`email`)})})}),(0,K.jsx)(X.Options,{children:(0,K.jsx)(X.Ok,{onClick:v(F8)})})]})})})(),(0,K.jsx)(X,{onClose:v(j8),height:230,show:!!d.isOpen,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:U(`permissions.modal.cancel_access`)}),(0,K.jsx)(X.Text,{children:U(`permissions.modal.cancel_access_info`)}),(0,K.jsx)(ym,{}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:v(j8)}),(0,K.jsx)(X.Ok,{onClick:y(`revoke_col`,d.meta,j8)})]})]})}),(0,K.jsx)(X,{height:290,onClose:v(M8),show:!!f.isOpen,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:U(`permissions.modal.leave_property`)}),(0,K.jsx)(X.Text,{children:U(`permissions.modal.leave_property_info`)}),(0,K.jsx)(ym,{}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:v(M8)}),(0,K.jsx)(X.Ok,{onClick:y(`leave_property`,f.meta,M8)})]})]})}),(0,K.jsx)(X,{id:`companymodal`,onClose:v(N8),height:680,show:!!p.isOpen,children:(0,K.jsx)(`div`,{children:(0,K.jsx)(gMe,{companyValid:C,
2840createFunc:x,saveFunc:S})})}),(0,K.jsx)(X,{show:!!m.isOpen,onClose:v(P8),height:240,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{type:``,children:(0,K.jsx)(Kg,{type:`bold`,children:U(`permissions.sent_invite`)})}),(0,K.jsx)(X.Text,{children:(0,K.jsx)(Yg,{children:U(`permissions.send_invite_info`)})}),(0,K.jsx)(X.Options,{children:(0,K.jsx)(X.Ok,{onClick:v(P8)})})]})})]})},z8=e=>{let{handleAction:t,data:n,renderType:r,dashboardAdminMode:i,properlyRIpartnerEmails:a}=e,{trackClick:o}=nT(`PermissionCollItem`),s=(0,B.useCallback)((e,n,i)=>{o(`permission_${e}`,{action:e,renderType:r}),t(e,n,i)},[t,o,r]),c=(0,B.useMemo)(()=>{let e=r===`shared`;return{pictureUrl:mte(n),enabled:e?!0:n.enabled,type:e?`shared`:go(n),isPending:hte(n),email:_o(n),hasAllRights:vo(n),fullName:e?n?.userData?.fullNameCompany:pte(n),hasAllRightsProperties:yo(n),propertyCount:gte(n)}},[n,r]),l=[{key:`edit`,"data-testid":`PermissionCollItem_edit`,name:U(`permissions.edit`),onClick:e=>s(`edit_col`,{data:n,renderType:r},e)},{key:`revoke`,"data-testid":`PermissionCollItem_revoke`,name:U(`permissions.revoke`),onClick:e=>s(`pre_revoke_col`,{data:n},e)},{key:`resend`,"data-testid":`PermissionCollItem_resend`,name:U(`permissions.edit`),onClick:e=>s(`resend_col`,{data:n,renderType:r},e)},{key:`resend_only`,"data-testid":`PermissionCollItem_resend_only`,name:U(`contacts.resent_invite`),onClick:e=>s(`resend_only`,{data:n,renderType:r},e)},{key:`disable`,"data-testid":`PermissionCollItem_disable`,name:U(`permissions.disable`),onClick:e=>s(`disable_col`,{data:n},e)},{key:`enable`,"data-testid":`PermissionCollItem_enable`,name:U(`permissions.enable`),onClick:e=>s(`enable_col`,{data:n},e)},{key:`view`,"data-testid":`PermissionCollItem_view`,name:U(`permissions.view`),onClick:e=>s(`view_property`,{data:n},e)}],u=e=>(0,xo.default)(l,t=>e.includes(t.key)),d=e=>e.type===`internal`?e.enabled?e.isPending?u([`resend`,`resend_only`,`disable`]):u([`edit`,`disable`]):u([`enable`]):e.type===`external`?e.isPending?u([`resend`,`resend_only`,`revoke`]):u([`edit`,`revoke`]):e.type===`shared`?u([`view`,`leave`]):[],f=()=>({first:`10%`,second:`25%`,third:`25%`,fourth:`25%`,padding:{paddingRight:0}}),p=d(c),m=e=>(0,K.jsx)(Ad,{closePopover:e,items:p}),h=c.enabled?[`whitebg`]:[`greybg`],g=f();return(0,K.jsx)(`div`,{children:(0,K.jsx)(lj,{modifier:h,onClick:Fu.default,children:(0,K.jsx)(uj,{children:(0,K.jsxs)(dj,{children:[(0,K.jsxs)(fj,{width:g.first,extraStyles:{display:`flex`,flexDirection:`row`},children:[(0,K.jsx)(Sg.Small,{pic:c.pictureUrl}),c.type===`shared`&&(0,K.jsx)(hj,{type:`permission`,children:(0,K.jsx)(Y.IcShare,{height:`24px`,width:`24px`,byWidth:!0})})]}),(0,K.jsxs)(fj,{width:g.second,children:[(0,K.jsx)(mj,{modifier:[`txt--l7m`,`color--black`],children:U(`permissions.user`)}),!c.isPending&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--black`,`mtop-6`,`helper--cuttxt`],children:c.fullName}),(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--grey`,`mtop-6`,`helper--cuttxt`],children:c.email})]}),c.isPending&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--black`,`mtop-6`,`helper--cuttxt`],children:c.email}),(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--grey`,`mtop-6`],children:U(`permissions.pending`)})]})]}),(0,K.jsxs)(fj,{width:g.third,children:[(0,K.jsx)(mj,{modifier:[`txt--l7m`,`color--black`],children:U(`permissions.rights`)}),(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--black`,`mtop-6`],children:c.hasAllRights?U(`permissions.modal.full_access`):U(`permissions.modal.specific_access`)})]}),(0,K.jsxs)(fj,{width:g.fourth,children:[(0,K.jsx)(mj,{modifier:[`txt--l7m`,`color--black`],children:U(`permissions.properties`)}),(0,K.jsx)(mj,{modifier:[`txt--l7`,`color--black`,`mtop-6`],children:c.hasAllRightsProperties?U(`permissions.modal.full_access`):U(`permissions.modal.specific_access`)}),!c.hasAllRightsProperties&&(0,K.jsxs)(mj,{modifier:[`txt--l7`,`color--grey`,`mtop-6`],children:[c.propertyCount,` `,U(c.propertyCount===1?`permissions.property_singular`:`permissions.property_plural`)]})]}),(!a?.includes(c.email)||i)&&(0,K.jsx)(fj,{noPadding:!0,extraStyles:{display:`flex`,alignItems:`center`},children:p.length>0&&(0,K.jsx)(Lg,{popoverContent:e=>m(e.closePopup),hasArrow:!0,width:150,children:(0,K.jsx)(`div`,{children:(0,K.jsx)(Y.IcMorePrimary,{byWidth:!0,height:`24px`,width:`24px`})})})})]})})})})};z8.propTypes={handleAction:V.default.func.isRequired,data:V.default.shape({}).isRequired,renderType:V.default.string,dashboardAdminMode:V.default.bool,properlyRIpartnerEmails:V.default.arrayOf(V.default.string)};var B8=({renderType:e})=>{let t=xe(),n=j(v$),r=j(sB),i=j(sw),a=(...e)=>{t(e$(...e))},o=e=>{switch(e){case`enabled`:return U(`permissions.active_user`);case`disabled`:return U(`permissions.disabled_user`);default:return`Unnamed`}},s=t=>(0,K.jsx)(`div`,{children:(0,H.default)(t,(t,n)=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Kb,{border:!0,children:o(n)}),(0,K.jsx)(wm,{type:`vertical`,size:`12px`}),(0,H.default)(t,t=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(z8,{renderType:e,data:t,handleAction:a}),(0,K.jsx)(wm,{type:`vertical`,size:`12px`})]},`groupitem-${t.teamId}-${t.userId}`))]},`permission${n}`))}),c=t=>(0,K.jsxs)(I,{sx:{width:`100%`},children:[(0,K.jsx)(wm,{type:`vertical`,size:`20px`}),(0,H.default)(t,(t,n)=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(z8,{renderType:e,data:t,handleAction:a,dashboardAdminMode:r,properlyRIpartnerEmails:i.properlyRIpartnerEmails}),(0,K.jsx)(wm,{type:`vertical`,size:`12px`})]},n))]});return(e=>{switch(e){case`shared`:return c(n.shared);case`external`:return c(n.external);case`internal`:return s(n.internal);default:return null}})(e)};Qn();var vMe={position:`absolute`,top:`22px`,left:`50%`,transform:`translateX(-50%)`,zIndex:10},yMe={width:`594px`,position:`absolute`,bottom:0,left:`330px`,height:`393px`,transform:`translateY(100%)`},bMe=()=>{let e=xe(),[t]=on(),{trackClick:n}=nT(`PermissionsContainerCompany`),r=(0,B.useMemo)(()=>bw(n$),[]),i=(0,B.useMemo)(()=>bw(i$),[]),{isLoaded:a,isLoadingFull:o}=j(r),s=j(i),c=j(d$),l=j(u$),u=(0,G.default)(j(v$),[`lengthInternal`])>0,d=t.get(`verifyResult`),f=(t,r={})=>i=>{n(`permission_action_${t}`,{action:t,context:`company`}),e(e$(t,r,i))};(0,B.useEffect)(()=>{lme()},[]),(0,B.useEffect)(()=>{e(ZQ()),d&&e(dF(!0,`permissions_company_verifyresult`,{result:d===`success`}))},[e,d]);let p=()=>{let{pictureUrl:e,name:t,email:n,description:r,adminEmails:i}=l||{};return(0,K.jsxs)(I,{sx:{display:`flex`,flex:1,flexDirection:`row`}
2840,children:[(0,K.jsx)(I,{sx:{width:250},children:(0,K.jsx)(Cx,{pic:e,name:t,email:n,about:r,adminEmails:i,onEdit:f(`open_edit_company`,{})})}),(0,K.jsx)(Pj.List,{children:(0,K.jsx)(Pj.ListInner,{children:(0,K.jsx)(Pj.ListInnerInner,{children:u?(0,K.jsx)(I,{sx:{paddingLeft:20,marginTop:`-10px`},children:(0,K.jsx)(B8,{renderType:`internal`})}):(0,K.jsx)(MM,{type:`inviteemployee`,onClick:f(`invite_company`,{})})})})})]})},m=()=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(wm,{type:`vertical`,size:`179px`}),(0,K.jsx)(I,{sx:{position:`relative`},children:(0,K.jsx)(I,{sx:yMe,children:(0,K.jsx)(Y.IcCompanyNew,{byWidth:!0,width:`594px`})})}),(0,K.jsxs)(I,{sx:{width:`364px`,height:`400px`},children:[(0,K.jsx)(mj,{modifier:[`txt--l3m`,`color--black`],children:U(`permissions.create_company`)}),(0,K.jsx)(wm,{type:`vertical`,size:`25px`}),(0,K.jsx)(mj,{modifier:[`txt--l4`,`color--grey`],children:U(`permissions.company_start_txt`)}),(0,K.jsx)(wm,{type:`vertical`,size:`36px`}),(0,K.jsx)(q,{"data-testid":`button_create_company`,onClick:f(`open_create_company`,{}),types:[`type-full-primary`,`size-large`],children:U(`permissions.create_company_btn`)})]})]}),h=e=>(0,K.jsxs)(Cv,{children:[(0,K.jsx)(Kg,{type:`nomargin`,children:U(`account.company`)}),(0,K.jsx)(Dm,{type:[`bottom`]}),e||null]});return(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(M$,{disableWrapper:!0,currentPage:`permission`,color:`grey`,children:[c?.text&&(0,K.jsx)(I,{sx:vMe,children:(0,K.jsx)(DM,{onClose:f(`hideinfomessage`,{}),text:U(c?.text),color:c?.color||`green`,isSmall:!0,style:{width:c?.width||284}})}),(0,K.jsxs)(Jj,{type:`absolute-scroll`,children:[a&&(l?(0,K.jsxs)(I,{sx:{height:`100%`,width:`100%`,display:`flex`,flexDirection:`column`},children:[h(u&&(0,K.jsx)(I,{sx:{position:`absolute`,right:0},children:(0,K.jsx)(q,{"data-testid":`button_invite_employee`,onClick:f(`invite_company`,{}),types:[`type-full-primary`,`size-medium`],children:U(`permissions.invite_employee`)})}
2840)),(0,K.jsx)(wm,{type:`vertical`,size:`35px`}),p()]}):(0,K.jsxs)(I,{sx:{height:`100%`,width:`100%`,display:`flex`,flexDirection:`column`},children:[h(),m()]})),o&&(0,K.jsx)(xf,{})]}),(0,K.jsx)(R8,{})]}),(0,K.jsx)(jg,{show:s.isLoadingFull})]})},xMe={external:({onClick:e,active:t})=>(0,K.jsx)(Cg.Item,{"data-testid":`button_section_external_coll`,onClick:e,active:t,children:U(`permissions.external_coll_plural`)},`button_section_external_coll`),shared:({onClick:e,active:t})=>(0,K.jsx)(Cg.Item,{"data-testid":`button_section_properties_shared`,onClick:e,active:t,children:U(`permissions.properties_shared`)},`button_section_properties_shared`)},SMe=({onClick:e,activeTab:t,tabs:n})=>{let r=n=>({onClick:e(n),active:t===n});return(0,K.jsx)(Cg,{rightSiderStyle:{right:20,display:`flex`,alignItems:`center`},children:(0,H.default)(n,e=>{let t=xMe[e];return t?(0,K.jsx)(t,{...r(e)},e):null})})};Qn();var CMe={position:`absolute`,top:`22px`,left:`50%`,transform:`translateX(-50%)`,zIndex:10},wMe={width:`594px`,position:`absolute`,bottom:0,left:`250px`,height:`393px`,transform:`translateY(100%)`},V8=()=>{let e=xe(),t=ir(),n=(0,B.useMemo)(()=>bw(n$),[]),r=(0,B.useMemo)(()=>bw(i$),[]),{isLoaded:i=!1}=j(n),a=j(r),o=j(d$),s=j(v$),c=(0,G.default)(s,[`external`],[]).length>0,l=(0,G.default)(s,[`shared`],[]).length>0,u=(t,n={})=>r=>{e(e$(t,n,r))};(0,B.useEffect)(()=>{e(ZQ())},[e]);let d=()=>t.pathname.endsWith(`/partner/shared`),f=(0,B.useRef)({hasShared:l,hasPartner:c,isSharedPage:d(),isLoaded:i});(0,B.useEffect)(()=>{let t=f.current;!t.isSharedPage&&!t.hasPartner&&l&&i&&e(aF(Z.settingsPartnerShared)),t.isSharedPage&&!t.hasShared&&i&&e(aF(Z.settingsPartner)),f.current={hasShared:l,hasPartner:c,isSharedPage:d(),isLoaded:i}},[l,c,i,t.pathname,e]);let p=d()?`shared`:`external`,m=[];c&&m.push(`external`),l&&m.push(`shared`);let h=c||l;return(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(M$,{disableWrapper:!0,currentPage:`permission`,color:`grey`,children:[o?.text&&(0,K.jsx)(I,{sx:CMe,children:(0,K.jsx)(DM,{onClose:u(`hideinfomessage`,{}),text:U(o?.text),color:o?.color||`green`,isSmall:!0,style:{width:o?.width||284}})}),(0,K.jsxs)(Jj,{type:`absolute-scroll`,children:[i&&(0,K.jsxs)(I,{sx:{height:`100%`,width:`100%`,display:`flex`,flexDirection:`column`},children:[(e=>(0,K.jsxs)(Cv,{children:[(0,K.jsx)(Kg,{type:`nomargin`,children:U(`account.partner`)}),(0,K.jsx)(Dm,{type:[`bottom`]}),e||null]}))(h&&(0,K.jsx)(I,{sx:{position:`absolute`,right:0},children:(0,K.jsx)(q,{"data-testid":`button_invite_partner`,onClick:u(`invite_partner`,{}),types:[`type-full-primary`,`size-medium`],children:U(`permissions.invite_partner`)})})),(0,K.jsx)(I,{sx:{display:`flex`,flex:1},children:h?(0,K.jsxs)(I,{sx:{width:`100%`},children:[(0,K.jsx)(wm,{type:`vertical`,size:`36px`}),(0,K.jsx)(SMe,{tabs:m,activeTab:p,onClick:t=>()=>{e(aF(t===`shared`?Z.settingsPartnerShared:Z.settingsPartner))}}),(0,K.jsx)(B8,{renderType:p})]}):(0,K.jsxs)(`div`,{children:[(0,K.jsx)(wm,{type:`vertical`,size:`179px`}),(0,K.jsx)(I,{sx:{position:`relative`},children:(0,K.jsx)(I,{sx:wMe,children:(0,K.jsx)(Y.IcCompany,{byWidth:!0,width:`594px`})})}),(0,K.jsxs)(I,{sx:{width:`364px`,height:`400px`},children:[(0,K.jsx)(mj,{modifier:[`txt--l3m`,`color--black`],children:U(`permissions.invite_partners`)}),(0,K.jsx)(wm,{type:`vertical`,size:`25px`}),(0,K.jsx)(mj,{modifier:[`txt--l4`,`color--grey`],children:U(`permissions.partners_start_txt`)}),(0,K.jsx)(wm,{type:`vertical`,size:`36px`}),(0,K.jsx)(q,{"data-testid":`button_create_company`,onClick:u(`invite_partner`,{}),types:[`type-full-primary`,`size-large`],children:U(`permissions.invite_partner_btn`)})]})]})})]}),!i&&(0,K.jsx)(xf,{})]}),(0,K.jsx)(R8,{})]}),(0,K.jsx)(jg,{show:a.isLoadingFull})]})},H8={sectionInner:{position:`relative`,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,width:`100%`},sectionRight:{position:`absolute`,right:0,top:`50%`,transform:`translateY(-50%)`,cursor:`pointer`},pillContent:{display:`flex`,alignItems:`center`},pillDivider:{display:`flex`,px:1},pillDividerContent:{width:`100%`,textAlign:`center`},pillText:{display:`flex`},pillTextContent:{pl:.5},textContainer:{display:`flex`},textLabel:{color:`var(--color-grey)`},textLabelFlexed:{display:`flex`,alignItems:`center`,color:`var(--color-grey)`},textLast4:{ml:.5,color:`var(--color-black)`},textValue:{mx:.5,color:`var(--color-black)`}},TMe=({icon:e,text:t,isLast:n,isFirst:r,onButtonClick:i,buttonText:a,defaultPaymentMethod:o,defaultSource:s,paymentMethod:c,isCard:l,isBankAccount:u})=>{let d=()=>{nd(`payment_method_action`,{component:`SettingsPaymentMethod`,action:a,paymentMethodType:l?`card`:u?`bank_account`:`unknown`,paymentMethodId:c?.id}),i()},f={backgroundColor:`var(--color-white)`,height:`auto`,flexWrap:`wrap`,padding:`16px 20px`,boxShadow:`0 1px 3px rgba(0, 0, 0, 0.08)`,border:`1px solid var(--color-radio-border-idle)`,borderRadius:`8px`},{accountHolderName:p,bankName:m,routingNumber:h,brand:g,expMonth:_,expYear:v,last4:y}=c,b=l||u,x=(0,z.default)(`${_}-${v}`,`MM-YYYY`).format(`MMM-YYYY`),S=Y.IcSubscription;if(l)switch(g.toLowerCase()){case`visa`:S=Y.IcCardVisa;break;case`amex`:S=Y.IcCardAmex;break;case`mastercard`:S=Y.IcCardMastercard;break;case`diners`:S=Y.IcCardDiners;break;case`discover`:S=Y.IcCardDiscover;break;case`jcb`:S=Y.IcCardJcb;break;default:S=Y.IcSubscription;break}return(0,K.jsxs)(fm,{isLast:n,isFirst:r,styleOverwrite:f,children:[(0,K.jsxs)(I,{"data-testid":t,sx:H8.sectionInner,children:[(0,K.jsx)(tf,{style:{border:`none`,padding:0},children:(0,K.jsxs)(I,{sx:H8.pillContent,children:[(0,K.jsx)(Xg,{type:`grey`,children:U(`job_request.wizard.payment_method`)}),(0,K.jsx)(I,{component:`span`,sx:H8.pillDivider,children:(0,K.jsx)(I,{component:`span`,sx:H8.pillDividerContent,children:`|`})}),(0,K.jsx)(e,{width:`1em`,byWidth:!0}),(0,K.jsx)(I,{component:`span`,sx:H8.pillText,children:(0,K.jsx)(I,{component:`span`,sx:H8.pillTextContent,children:(0,K.jsx)(Xg,{children:t})})}),l&&o&&o===c.id&&(0,K.jsx)(Y.IcCheckFinished,{}),u&&s&&s===c.id&&(0,K.jsx)(Y.IcCheckFinished,{})]})},t),a&&(0,K.jsx)(I,{onClick:d,sx:H8.sectionRight,children:(0,K.jsx)(Xg,{type:`orange`,children:a})})]}),b&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(_m,{}),(0,K.jsxs)(I,{"data-testid":t,sx:H8.sectionInner,children:[l&&(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(S,{margin:`0 .5em 0 0`,width:`1.5em`,byWidth:!0}),(0,K.jsx)(I,{component:`span`,sx:H8.textContainer,children:(0,K.jsxs)(Xg,{children:[(0,K.jsx)(I,{component:`span`,sx:H8.textLabel,children:`${Sc(g)}`}),(0,K.jsx)(I,{component:`span`,sx:H8.textLast4,children:`(...${y})`})]})}),(0,K.jsx)(I,{component:`span`,sx:H8.textContainer,children:(0,K.jsxs)(Xg,{style:{display:`flex`,margin:`0 1em`},children:[(0,K.jsxs)(I,{component:`span`,sx:H8.textLabel,children:[U(`settings.expiry_date`),`:`]}),(0,K.jsx)(I,{component:`span`,sx:H8.textValue,children:x})]})})]}),u&&(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(Y.IcBank,{margin:`0 .5em 0 0`,width:`1.5em`,byWidth:!0}),(0,K.jsx)(I,{component:`span`,sx:H8.textContainer,children:(0,K.jsxs)(Xg,{children:[(0,K.jsx)(I,{component:`span`,sx:H8.textLabel,children:`${Sc(p)}`}),(0,K.jsx)(I,{component:`span`,sx:H8.textLast4,children:`(...${y})`})]})}),(0,K.jsx)(I,{component:`span`,sx:H8.textContainer,children:(0,K.jsxs)(Xg,{style:{display:`flex`,margin:`0 1em`},children:[(0,K.jsxs)(I,{component:`span`,sx:H8.textLabelFlexed,children:[U(`settings.routing_number`),`:`]}),(0,K.jsx)(I,{component:`span`,sx:H8.textValue,children:`${h} (${m})`})]})})]})]})]})]})},U8=({isFirst:e,isLast:t,text:n,icon:r,onButtonClick:i=()=>{},buttonText:a=``,paymentMethod:o={},isCard:s=!1,isBankAccount:c=!1,defaultPaymentMethod:l=``,defaultSource:u=``})=>(0,K.jsx)(TMe,{icon:r,isLast:t,isFirst:e,text:n,buttonText:a,onButtonClick:i,paymentMethod:o,isCard:s,isBankAccount:c,defaultPaymentMethod:l,defaultSource:u});
2840U8.propTypes={isFirst:V.default.bool.isRequired,isLast:V.default.bool.isRequired,text:V.default.string.isRequired,onButtonClick:V.default.func,icon:V.default.func.isRequired,buttonText:V.default.string,paymentMethod:V.default.shape({}),isCard:V.default.bool,isBankAccount:V.default.bool,defaultPaymentMethod:V.default.string,defaultSource:V.default.string};var W8=0,G8=1,K8=3,EMe=680,DMe={maxWidth:900,marginBottom:2,padding:`18px 20px`,backgroundColor:`var(--color-white)`,border:`1px solid var(--color-radio-border-idle)`,borderRadius:`8px`,boxShadow:`0 1px 3px rgba(0, 0, 0, 0.08)`},q8=({mobile:e=!1})=>{let t=xe(),n=j(BJ),r=(0,B.useMemo)(()=>n||{},[n]),i=j(b_e),a=j(FC),o=j(VC),s=a?.subscription?.currentPlanId===oo.STAFF,[c,l]=(0,B.useState)(!1),[u,d]=(0,B.useState)(!1),[f,p]=(0,B.useState)(!1),[m,h]=(0,B.useState)(null),[g,_]=(0,B.useState)(!0),[v,y]=(0,B.useState)(!1),[b,x]=(0,B.useState)(!1),[S,C]=(0,B.useState)(``),[w,T]=(0,B.useState)(null),[E,D]=(0,B.useState)(!1),ee=(0,B.useRef)(null),te=(0,B.useCallback)(()=>new Promise((e,t)=>{let n=document.createElement(`script`);n.src=ee.current,n.onload=e,n.onerror=t,document.head.appendChild(n)}),[]),ne=(0,B.useCallback)(async()=>{_(!0);let e;try{let t=await lI();e=t.paymentMethod?{...t,paymentMethod:{...t?.paymentMethod,funding:t?.paymentMethod?.object,brand:t?.paymentMethod?.cardType,last4:t?.paymentMethod?.lastFour}}:{},h(e),y(!1),_(!1)}catch{y(!0),_(!1)}},[]);(0,B.useEffect)(()=>{let{RECURLY_PUBLIC_KEY:n,RECURLY_SDK_URL:r}=Wi();T(n),ee.current=r,e&&yu(!0),t(p_e()),t(gB()),_(!0),y(!1),te().then(()=>{ne()}).catch(()=>{y(!0),_(!1)})},[e,t,te,ne]),(0,B.useEffect)(()=>{(c||u||f)&&i&&(l(!1),d(!1),p(!1)),!i&&!E&&D(!0)},[i,c,u,f,E]);let re=(0,B.useCallback)(e=>{let t=!0;return e&&(t=window.confirm(U(`settings.confirm_leave`))),t===!0&&(l(!1),d(!1),p(!1)),t},[]),O=(0,B.useCallback)(()=>{l(!1),d(!1),p(!1)},[]),ie=(0,B.useCallback)(()=>{l(!1),d(!1),p(!1)},[]),ae=(0,B.useCallback)(e=>()=>{s&&e===K8||(e===K8&&Xv(a?.objectId,`add`),l(e===W8),d(e===G8),p(e===K8))},[a,s]),oe=(0,B.useCallback)(e=>{s&&e===K8||(Xv(a?.objectId,`edit`),l(e===W8),d(e===G8),p(e===K8))},[a,s]),se=(e,n)=>()=>{window.confirm(U(`settings.really_delete_payment_method`))===!0&&t(e===W8?g_e(n):v_e(n))},ce=(0,B.useCallback)(()=>{x(!1),C(``)},[]),le=(0,B.useCallback)(e=>{x(!0),C(e)},[]),ue=()=>{t(lF())},de=(0,B.useCallback)(()=>{t(JP({hasPaymentMethod:!0}))},[t]),fe=(0,B.useCallback)(e=>{let t=U(e===W8||e===K8?`settings.add_credit_card_payment_method`:`settings.add_bank_account_payment_method`);return(0,K.jsx)(I,{onClick:ae(e),sx:{display:`inline-block`,cursor:`pointer`},children:(0,K.jsx)(Xg,{type:`orange`,children:t})})},[ae]),pe=(0,B.useCallback)(e=>{let t=!(s&&e===K8);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(U8,{isLast:!0,isFirst:!0,icon:Y.AlertRed,text:U(`settings.inactive`)}),(0,K.jsx)(ym,{}),t&&fe(e)]})},[s,fe]),me=(0,B.useCallback)((e,t)=>{let{defaultPaymentMethod:n,defaultSource:i}=r;return(0,K.jsxs)(K.Fragment,{children:[(0,H.default)(e,(r,a)=>{let o,c;switch(t){case W8:o=U(`settings.remove_credit_card_payment_method`),c=se(t,r.id);break;case G8:o=U(`settings.remove_bank_account_payment_method`),c=se(t,r.id);break;case K8:s||(o=`Edit`,c=()=>oe(t));break;default:break}return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(U8,{isLast:a===e.length-1,isFirst:a===0,onButtonClick:c,icon:Y.IcActive,text:U(`settings.active`),buttonText:o,defaultPaymentMethod:n,defaultSource:i,paymentMethod:r,isCard:t===W8||t===K8,isBankAccount:t===G8}),(0,K.jsx)(ym,{})]},r.id)}),(0,K.jsx)(ym,{})]})},[r,se,oe,s]),he=(0,B.useCallback)((e=[],t)=>e.length?me(e,t):pe(t),[me,pe]),ge=m?.paymentMethod?[m?.paymentMethod]:[],_e=(0,K.jsxs)(K.Fragment,{children:[!e&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(Cv,{children:[(0,K.jsx)(Kg,{type:`nomargin`,children:U(`settings.payment_methods`)}),(0,K.jsx)(Dm,{type:[`bottom`]})]}),(0,K.jsx)(ym,{})]}),(i||g)&&(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`center`,alignItems:`center`,minHeight:220},children:(0,K.jsx)(hf,{})}),g?null:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Cm,{}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,paddingBottom:`10px`},children:[(0,K.jsx)(Y.IcSubscription,{}),(0,K.jsx)(Yg,{style:{paddingLeft:`8px`},children:U(`settings.subscription_payment_methods`)})]}),!s&&(0,K.jsx)(I,{sx:{maxWidth:900,paddingBottom:`10px`},children:(0,K.jsx)(Yg,{type:`greyloading`,children:U(`settings.subscription_payment_methods_txt`)})}),s&&!ge.length?(0,K.jsxs)(I,{sx:DMe,children:[(0,K.jsx)(Yg,{children:U(`settings.staff_subscription_payment_not_needed`)}),(0,K.jsx)(I,{sx:{marginTop:`6px`},children:(0,K.jsx)(Xg,{type:`grey`,children:U(`settings.staff_subscription_payment_upgrade_prompt`)})})]}):(0,K.jsx)(I,{sx:{marginBottom:2},children:he(ge,K8)}
2840),(0,K.jsx)(X,{id:`recurly-payment-intercept-wizard-modal`,height:`auto`,variableContentHeight:!0,width:EMe,show:f&&!s,onClose:O,block:!0,children:(0,K.jsxs)(I,{"data-theme":`light`,sx:{padding:`10px`,backgroundColor:`#ffffff`},children:[(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`center`,paddingBottom:`20px`},children:(0,K.jsx)(Yg,{style:{color:`#29333D`},children:`Payment Method`})}),(0,K.jsx)(Dm,{type:[`relative`,`grey`]}),(0,K.jsx)(wR.RecurlyProvider,{publicKey:w,children:(0,K.jsx)(wR.Elements,{children:(0,K.jsx)(UR,{closeModal:re,showSnackbarNotification:le,subscriptionStatus:a?.subscription?.status,subscriptionProviderId:a?.subscription?.subscriptionProviderSubscriptionId,subscriptionPlanId:a?.subscription?.currentPlanId,userEmail:a?.email,userId:a?.objectId,recurlyData:m,fetchBillingInfo:ne,startRefetch:ue,onPaymentMethodSaved:de})})},f?`recurly-payment-open`:`recurly-payment-closed`)]})})]}),v&&(0,K.jsx)(I,{children:(0,K.jsx)(Yg,{children:U(`settings.subscription_payment_loading_error`)})}),(!E||i)&&o&&(0,K.jsx)(I,{sx:{display:`flex`,justifyContent:`center`,alignItems:`center`,minHeight:220},children:(0,K.jsx)(hf,{})}),E&&!i&&o&&(0,K.jsx)(K.Fragment,{children:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(ym,{}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,paddingBottom:`10px`},children:[(0,K.jsx)(Y.IcSubscription,{}),(0,K.jsx)(Yg,{style:{paddingLeft:`8px`},children:U(`settings.marketplace_payment_method`)})]}),o&&(0,K.jsx)(I,{sx:{maxWidth:900,paddingBottom:`10px`},children:(0,K.jsx)(Yg,{type:`greyloading`,children:U(`settings.payment_methods_txt`)})}),(0,K.jsx)(I,{sx:{marginBottom:2},children:he(r?.cards,W8)}),c&&(0,K.jsx)(X,{id:`payment-intercept-wizard-modal`,height:350,show:c,onClose:O,block:!0,children:(0,K.jsx)(UJ,{useMarketplace:o,useCards:!0,onClose:re,onFinish:ie,textAlign:`center`})})]})}),(0,K.jsx)(wf,{open:b,message:S,onClose:()=>ce(),success:!0})]});return e?_e:(0,K.jsx)(Jj,{type:`absolute-scroll`,children:_e})};q8.propTypes={mobile:V.default.bool},Qn();var OMe=()=>{let{partner:e,id:t}=Rn(),n=Vn();return(0,B.useEffect)(()=>{n(`/account-mobile/connections-mobile/${e}/${t}`,{replace:!0})},[n,e,t]),null},J8=({children:e,...t})=>(0,K.jsx)(S8,{disableWrapper:!0,hideMobilePopover:!0,...t,children:(0,K.jsx)(I,{sx:{padding:16},children:e})});J8.propTypes={children:V.default.node};var Y8=window.location.pathname,X8=String(Y8).indexOf(`settings-mobile/payment-methods-mobile`)!==-1,kMe=String(Y8).indexOf(`settings/payment-methods`)!==-1||X8,Z8=`PROPERLY_recordMobilePaymentMethodsViewed`,AMe=()=>{vi.set(Z8,!0)},Q8=(!!vi.get(Z8)||X8)&&Tu()&&kMe,jMe=()=>(B.useEffect(()=>{AMe()},[]),(0,K.jsx)(q8,{mobile:!0})),MMe=()=>(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(N,{element:(0,K.jsx)(UB,{}),children:(0,K.jsxs)(N,{element:(0,K.jsx)(KB,{}),children:[(0,K.jsxs)(N,{path:`settings-mobile`,element:(0,K.jsx)(J8,{}),children:[(0,K.jsx)(N,{index:!0,element:(0,K.jsx)(Wr,{to:`payment-methods-mobile`,replace:!0})}),(0,K.jsx)(N,{path:`payment-methods-mobile`,element:(0,K.jsx)(jMe,{})})]}),(0,K.jsxs)(N,{path:`settings`,element:(0,K.jsx)(S8,{}),children:[Q8&&(0,K.jsx)(N,{path:`payment-methods/`,element:(0,K.jsx)(Wr,{to:`/settings-mobile/payment-methods-mobile`,replace:!0})}),Q8&&(0,K.jsx)(N,{path:`payment-methods`,element:(0,K.jsx)(Wr,{to:`/settings-mobile/payment-methods-mobile`,replace:!0})}),Q8&&(0,K.jsx)(N,{path:`oauth/`,element:(0,K.jsx)(Wr,{to:`/settings-mobile/payment-methods-mobile`,replace:!0})}),Q8&&(0,K.jsx)(N,{path:`oauth`,element:(0,K.jsx)(Wr,{to:`/settings-mobile/payment-methods-mobile`,replace:!0})}),$3()&&(0,K.jsx)(N,{path:`connections/:partner/:id`,element:(0,K.jsx)(OMe,{})}),$3()&&(0,K.jsx)(N,{path:`connections`,element:(0,K.jsx)(Wr,{to:`/account-mobile/connections-mobile`,replace:!0})}),(0,K.jsx)(N,{path:`connections`,element:(0,K.jsx)(U3,{})}),(0,K.jsx)(N,{path:`connections/:partner/:id`,element:(0,K.jsx)(Wr,{to:`/settings/connections`,replace:!0})}),(0,K.jsx)(N,{path:`company`,element:(0,K.jsx)(bMe,{})}),(0,K.jsx)(N,{path:`partner`,element:(0,K.jsx)(V8,{})}),(0,K.jsx)(N,{path:`partner/shared`,element:(0,K.jsx)(V8,{})}),(0,K.jsx)(N,{path:`payment-methods`,element:(0,K.jsx)(q8,{})}),(0,K.jsx)(N,{path:`subscription`,element:(0,K.jsx)(zB,{})}),(0,K.jsx)(N,{path:`receipts`,element:(0,K.jsx)(K3,{})})]})]})})});Qn();var $8=({mode:e=null})=>{let t=xe(),{routeParam:n,source:r}=Rn(),{trackClick:i,trackModalAction:a}=nT(`AutoschedulingContainerLV`),o=j($Y),s=j(BC),c=j(lye),l={show:!1,type:null,data:null},u={show:!1,type:null},[d,f]=(0,B.useState)(!0),[p,m]=(0,B.useState)(!1),[h,g]=(0,B.useState)(!0),[_,v]=(0,B.useState)(l),[y,b]=(0,B.useState)(u),x=(0,B.useCallback)(e=>{i(`create_autoscheduler`,{propertyId:e||null}),t(dF(!0,`autoscheduling`,{mode:`normal`,source:`autoscheduling`,data:{jobType:no.turnover,...e!=null&&{propertyId:e}}}))},[t,i]),S=()=>{t(yY(!1))},C=e=>{t(dF(!0,`autoscheduling`,{mode:`edit`,source:e.source||`autoscheduling`,autoSchedulerDataId:e.id,data:{id:e.id,currency:e.offeredPriceCurrency}}))},w=()=>{let{type:e,data:n}=_;e===Xa.DELETE_AS&&(a(`delete_autoscheduler_modal`,`confirm`,{autoschedulerId:n?.id}),t(Ove(n?.id,()=>v(l),()=>b({show:!0,type:`success`,message:U(`autoscheduler.success_delete_autoscheduler`)}),()=>b({show:!0,type:`error`,message:U(`autoscheduler.error_delete_autoscheduler`)})))),e===Xa.TOGGLE_AS_STATUS&&(a(`toggle_status_modal`,`confirm`,{autoschedulerId:n?.id,status:n?.status}),t(Dve(n?.id,n?.status,()=>v(l),()=>b({show:!0,type:`success`,message:U(`autoscheduler.success_toggle_status`)}),()=>b({show:!0,type:`error`,message:U(`autoscheduler.error_toggle_status`)}))))},T=e=>{if(!(s||[]).includes(e))throw Error(`User does not have permission to send job`)},E=(e,t)=>{let n=n2(e);try{if(T(n?.propertyId),t===Xa.DELETE_AS){v({show:!0,type:Xa.DELETE_AS,data:n});return}if(t===Xa.UPDATE_AS){C(n);return}t===Xa.TOGGLE_AS_STATUS&&v({show:!0,type:Xa.TOGGLE_AS_STATUS,data:n})}
2840catch(e){R.default.info(`handleAutoschedulerAction`,e),b({show:!0,type:`error`,message:U(`autoscheduler.error_no_permission_to_perform_action`)})}},D=async()=>{f(!0);let e=await P0();if(!e||e.apiError||e===0){f(!1),g(!0);return}f(!1),g(!1)};(0,B.useEffect)(()=>{su(`autoscheduler.title`)(),D(),n&&e&&(e===`create`?x(n):e===`edit`&&C({id:n,offeredPriceCurrency:``,source:r}))},[n,e]),(0,B.useEffect)(()=>{o===Qa.REFRESH_ALL&&(D(),t(vY(!1))),o===Qa.REFRESH_LV&&(m(!0),setTimeout(()=>{m(!1)},100),t(vY(!1)))},[o,t]);let ee=!d&&h;return(0,K.jsx)(M$,{currentPage:`autoscheduling`,children:(0,K.jsx)(Yj,{children:(0,K.jsx)(Zj,{children:(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,height:`100%`,overflow:`hidden`},children:[(0,K.jsx)(Om,{title:U(`autoscheduler.title`),description:U(`autoscheduler.description`),action:(0,K.jsx)(q,{types:[`type-full-primary`,`size-medium`],onClick:()=>x(),children:U(`autoscheduler.add_schedule`)})}),(0,K.jsx)(I,{sx:{flex:1,overflow:`hidden`,backgroundColor:`var(--color-bg)`,position:`relative`},children:(0,K.jsx)(I,{sx:{position:`absolute`,top:0,right:0,left:0,bottom:0,overflowY:`scroll`,overflowX:`hidden`,WebkitOverflowScrolling:`touch`},children:ee?(0,K.jsxs)(I,{sx:{display:`flex`,justifyContent:`center`,alignItems:`center`,flexDirection:`column`,height:`80vh`,gap:`10px`,width:`100%`,textAlign:`center`},children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Yg,{children:U(`autoscheduler.no_autoschedulers`)}),(0,K.jsx)(I,{sx:{height:`2px`}}),(0,K.jsx)(Yg,{children:U(`autoscheduler.no_autoschedulers_click`)})]}),(0,K.jsx)(q,{styleOverwrite:{borderColor:`#5BAAB0`},onClick:()=>x(),children:U(`autoscheduler.add_schedule`)})]}):p?(0,K.jsx)(I,{sx:{p:2,display:`flex`,flexDirection:`column`,gap:1},children:[1,2,3,4,5].map(e=>(0,K.jsx)(J,{height:72,variant:`rounded`},e))}):(0,K.jsx)(y2,{viewMode:`autoscheduler`,onRowActions:E,disabledExports:!0,disabledBulkActions:!0,disabledFilters:!0,disabledSearch:!0,disableTableToolbar:!0,disableTableFilters:!0})})}),(0,K.jsx)(X,{height:240,show:_.show,onClose:()=>{a(`autoscheduler_action_modal`,`close`,{type:_.type}),v(l)},variableContentHeight:!0,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(X.H1,{children:_.type===Xa.TOGGLE_AS_STATUS?U(`autoscheduler.toggle_status`):U(`autoscheduler.delete_autoscheduler`)}),(0,K.jsx)(X.Text,{children:_.type===Xa.TOGGLE_AS_STATUS?_.data?.status===Xa.ACTIVE?U(`autoscheduler.toggle_status_desc`):U(`autoscheduler.toggle_status_desc_on`):U(`autoscheduler.delete_autoscheduler_desc`)}),(0,K.jsx)(ym,{}),(0,K.jsxs)(X.Options,{children:[(0,K.jsx)(X.Cancel,{onClick:()=>{a(`autoscheduler_action_modal`,`cancel`,{type:_.type}),v(l)}}),(0,K.jsx)(X.Ok,{onClick:()=>w()})]})]})}),(0,K.jsx)(X,{height:240,show:c,onClose:()=>{S()},variableContentHeight:!0,children:(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(X.H1,{children:[U(`autoscheduler.autoscheduler_deleted`),` `]}),(0,K.jsx)(X.Text,{children:U(`autoscheduler.autoscheduler_deleted_msg`)}),(0,K.jsx)(ym,{}),(0,K.jsx)(X.Options,{children:(0,K.jsx)(X.Cancel,{onClick:()=>{S()}})})]})}),y.show&&(0,K.jsx)(wf,{open:!0,message:y.message,onClose:()=>b(u),error:y.type===`error`,success:y.type===`success`})]})})})})};$8.propTypes={mode:V.default.string},Qn();var NMe=()=>(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(N,{element:(0,K.jsx)(UB,{}),children:(0,K.jsx)(N,{element:(0,K.jsx)(KB,{}),children:(0,K.jsxs)(N,{element:(0,K.jsx)(sV,{feature:s_.webapp}),children:[(0,K.jsx)(N,{path:Z.autoscheduling,element:(0,K.jsx)($8,{})}),(0,K.jsx)(N,{path:`${Z.autoscheduling}:routeParam/:source?`,element:(0,K.jsx)($8,{mode:`edit`})}),(0,K.jsx)(N,{path:`${Z.autoscheduling}new/:routeParam`,element:(0,K.jsx)($8,{mode:`create`})})]})})})}),PMe=()=>{let e=xe(),t=j(e=>e.currentUser);return B.useEffect(()=>{let n=t?.isLoggedIn&&t?.user?.role;hpe(t?.isLoggedIn,n),n&&gu(t?.user?.objectId),e(oF())},[]),null};function FMe(e){return e}var IMe=(0,yc.default)(FMe),e5={background:`rgba(255, 255, 255, 0.1)`,backdropFilter:`blur(16px)`,WebkitBackdropFilter:`blur(16px)`,border:`1px solid rgba(255, 255, 255, 0.15)`,boxShadow:`0 4px 24px rgba(0, 0, 0, 0.3)`};function LMe(){let e=xe(),t=j(_w),{selectedJobRequestId:n}=j(jW),r=j((0,B.useMemo)(()=>aw(n),[n])),i=t?.isOpen,a=t?.index??0,o=(0,B.useMemo)(()=>IMe(t?.images||[]),[t?.images]),s=t?.meta?.isThumbsUpDownSlider??!1,c=t?.meta?.j
2840obSnapshotId??!1,l=t?.meta?.stepId??!1,u=t?.meta?.propertyId??!1,{propertyData:{title:d}={},jobData:{title:f=`Job`}={},scheduledStartTime:p}=r||{},[m,h]=(0,B.useState)(!1),[g,_]=(0,B.useState)(!1),[v,y]=(0,B.useState)(0),[b,x]=(0,B.useState)(!1),[S,C]=(0,B.useState)(0),[w,T]=(0,B.useState)({width:window.innerWidth,height:window.innerHeight}),E=(0,B.useCallback)(()=>{y(0),C(0),e(tF({isOpen:!1,images:[]}))},[e]),D=(0,B.useCallback)(()=>{x(e=>!e)},[]),ee=(0,B.useCallback)(e=>{C(t=>{let n=e?t+90:t-90;return n>=360&&(n-=360),n})},[]),te=(0,B.useCallback)(()=>{T({width:window.innerWidth,height:window.innerHeight})},[]),ne=(0,B.useRef)(te);(0,B.useEffect)(()=>{ne.current=te},[te]);let re=(0,B.useCallback)(e=>{y(e),o.length>1&&C(0)},[o.length]),O=(0,B.useCallback)(()=>{_(!1),h(!1)},[]);(0,B.useEffect)(()=>{y(a)},[a]),(0,B.useEffect)(()=>{i?_u():vu()},[i]),(0,B.useEffect)(()=>{let e=()=>ne.current();return window.addEventListener(`resize`,e),()=>{window.removeEventListener(`resize`,e)}},[]);let ie=(0,B.useCallback)(e=>(0,K.jsx)(I,{sx:{position:`absolute`,bottom:24,right:24,...e5,borderRadius:`32px`,padding:`8px 12px`,zIndex:20},children:(0,K.jsx)(UX,{imageId:o[v]?.image,jobSnapshotId:c,stepId:l,hasEditPermissions:e})}),[o,v,c,l]),ae=(0,B.useCallback)((e,t)=>(0,K.jsx)(I,{"data-testid":`image-slider`,sx:{position:`fixed`,zIndex:1071,inset:0,background:`#000`,display:`flex`,flexDirection:`column`},children:(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,height:`100%`,width:`100%`,position:`relative`},children:[(0,K.jsxs)(I,{sx:{position:`absolute`,top:0,left:0,right:0,zIndex:20,display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,padding:`20px 24px`,background:`linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 70%, transparent 100%)`},children:[(0,K.jsx)(br,{onClick:E,sx:{...e5,borderRadius:`50%`,width:48,height:48,color:`rgba(255, 255, 255, 0.9)`,"&:hover":{background:`rgba(255, 255, 255, 0.2)`,transform:`scale(1.05)`},transition:`all 0.2s ease`},children:(0,K.jsx)(Y.IcCloseSlider,{width:`24px`,byWidth:!0})}),(0,K.jsxs)(I,{sx:{display:`flex`,alignItems:`center`,gap:.5,...e5,borderRadius:`28px`,padding:`6px`},children:[(0,K.jsx)(br,{onClick:()=>ee(!1),sx:{color:`rgba(255, 255, 255, 0.85)`,width:44,height:44,"&:hover":{background:`rgba(255, 255, 255, 0.15)`,color:`#fff`},transition:`all 0.2s ease`},children:(0,K.jsx)(Y.IcRotateLeft,{width:`22px`,byWidth:!0})}),(0,K.jsx)(br,{onClick:()=>ee(!0),sx:{color:`rgba(255, 255, 255, 0.85)`,width:44,height:44,"&:hover":{background:`rgba(255, 255, 255, 0.15)`,color:`#fff`},transition:`all 0.2s ease`},children:(0,K.jsx)(Y.IcRotateRight,{width:`22px`,byWidth:!0})}),c&&(0,K.jsx)(br,{onClick:D,sx:{color:`rgba(255, 255, 255, 0.85)`,width:44,height:44,"&:hover":{background:`rgba(255, 255, 255, 0.15)`,color:`#fff`},transition:`all 0.2s ease`},children:(0,K.jsx)(Y.IcDownloadImage,{width:`22px`,byWidth:!0})})]})]}),(0,K.jsx)(I,{sx:{position:`relative`,flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,K.jsx)(zde,{images:o,onIndexChange:re,width:w.width,height:w.height,startingIndex:a,requestNextImage:m,requestPreviousImage:g,onRequestHandled:O,downloadImageHandler:D,downloadImage:b,propertyTitle:d,jobTitle:f,scheduledStartTime:p,rotation:S}
2840)}),e&&t]})}),[E,c,ee,D,o,re,w,a,m,g,O,b,d,f,p,S]);return i?s?(0,K.jsx)(Mw,{meta:{propertyId:u,jobSnapshotId:c},hasAccessFormatter:e=>e,render:({canViewThumbsUpComments:e,canEditThumbsUpComments:t})=>e?ae(!0,ie(t)):ae(!1,null)}):ae(!1,null):null}Qn();var RMe={overflowY:`scroll`,WebkitOverflowScrolling:`touch`,msOverflowStyle:`none`,position:`absolute`,left:`-100px`,top:`-100px`,width:`80px`,height:`80px`,"&::-webkit-scrollbar":{width:`0 !important`}},zMe={width:`100%`,height:`100px`},BMe={".properly-fullhight":{height:`100%`},"#user-popover-topbar":{right:`-14px !important`,top:`35px !important`,left:`auto !important`},"#user-popover-jobdetails":{top:`26px !important`,left:`auto !important`,right:`-10px !important`}};function t5({error:e}){let t=xe();return(0,B.useEffect)(()=>{R.default.error(`Root App Component Error Boundary`),R.default.error(e),window?.location?.host?.indexOf(`localhost`)===-1&&t(Wn(`/error`))},[e,t]),null}t5.propTypes={error:V.default.object.isRequired};function VMe(){let e=ir(),t=xe(),n=(0,B.useRef)(null);return(0,B.useEffect)(()=>{e.pathname!==n.current&&(td(e.pathname,{search:e.search,hash:e.hash}),n.current=e.pathname)},[e.pathname,e.search,e.hash]),(0,B.useEffect)(()=>{let t=new URLSearchParams(e.search),n={};t.forEach((e,t)=>{n[t]=e}),mc(n);let r=document.querySelector(`#scrolladjusttest`);r&&r.clientWidth!==80&&(document.documentElement.className+=` has-scrollbars`)},[e.search]),R.default.info(`[App] Rendering, location:`,e?.pathname),(0,K.jsx)(ar,{FallbackComponent:t5,onError:(e,n)=>{R.default.error(`Root App Component Error Boundary`),R.default.error(e),R.default.error(n),window?.location?.host?.indexOf(`localhost`)===-1&&t(Wn(`/error`))},children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(kn,{}),(0,K.jsx)(I,{sx:RMe,children:(0,K.jsx)(I,{id:`scrolladjusttest`,sx:zMe})}),(0,K.jsx)(ie,{styles:BMe}),(0,K.jsx)(Tye,{}),(0,K.jsx)(PMe,{}),(0,K.jsx)(LMe,{})]})})}var HMe=()=>(0,K.jsx)(Af,{is404:!0,headline:U(`error.404error`),subHeadline:U(`error.looks_like_smth_wrong`)}),UMe=()=>((0,B.useEffect)(()=>{_pe()},[]),(0,K.jsx)(Af,{showIntercom:()=>xu(),tryAgain:()=>{window.location.href=`/`},is500:!0,headline:U(`error.oops`),subHeadline:U(`error.looks_like_smth_wrong`)}));Qn();var WMe=()=>(0,K.jsx)(xr,{children:(0,K.jsxs)(N,{path:`/`,element:(0,K.jsx)(VMe,{}),children:[(0,K.jsx)(N,{index:!0,element:(0,K.jsx)(Wr,{to:`/login`,replace:!0})}),HB(),jCe(),vwe(),Pwe(),cEe(),yke(),Jke(),FAe(),PAe(),Yje(),MMe(),aMe(),NMe(),(0,K.jsx)(N,{path:Z.deeplink,element:(0,K.jsxs)(I,{sx:{display:`flex`,flexDirection:`column`,gap:2,p:3,alignItems:`center`,justifyContent:`center`,height:`100vh`},children:[(0,K.jsx)(J,{height:60,width:`60%`,variant:`rounded`}),(0,K.jsx)(J,{height:40,width:`40%`,variant:`rounded`}),(0,K.jsx)(J,{height:100,width:`50%`,variant:`rounded`})]})}),(0,K.jsx)(N,{path:`error`,element:(0,K.jsx)(UMe,{})}),(0,K.jsx)(N,{path:`*`,element:(0,K.jsx)(HMe,{})})]})}),GMe=Bee(),KMe={user:kN(),isLoggedIn:wP(),isLoggingOut:!1,userEmail:``};function qMe(e=KMe,t={}){switch(t.type){case CT:case MT:return Object.assign({},e,{user:t.user,isLoggedIn:!0,isLoggingOut:!1});case bT:{let n=e.user,r=n?.subscription,i=t.user?.subscription,a=!!n?.objectId&&n.objectId===t.user?.objectId,o=r?.objectId||r?.subscriptionProviderSubscriptionId||null,s=i?.objectId||i?.subscriptionProviderSubscriptionId||null,c=a&&r&&i&&o!==null&&o===s&&typeof r.hasPaymentMethod==`boolean`&&typeof i.hasPaymentMethod!=`boolean`?{...t.user,subscription:{...i,hasPaymentMethod:r.hasPaymentMethod}}:t.user;return Object.assign({},e,{user:c,isLoggedIn:!0,isLoggingOut:!1})}case xT:return!e.user||!e.user.subscription?e:Object.assign({},e,{user:{...e.user,subscription:{...e.user.subscription,...t.patch}},isLoggedIn:!0,isLoggingOut:!1});case NT:return Object.assign({},e,{user:null,isLoggedIn:!1,isLoggingOut:!1});case wE:return Object.assign({},e,{isLoggingOut:!0});case ST:return Object.assign({},e,{userEmail:``});default:return e}}var n5=`PROPERLY_MAX_PROPERTY_KEY`,JMe=()=>vi.get(n5)||0,YMe=e=>{let t=Math.round(e/50)*50;vi.set(n5,t)};function r5(e){return HM(()=>{let t=e?{}:{mergedTo:{$exists:!1}},n=e?{...vN(),...yN(e),...t}:{...vN(),...t},r=(e=1e4,t=0)=>EN(`Property`,e,n,`skip=${t}`).then(e=>(e||[]).map(e=>iN(e))),i=bN(JMe());return Promise.all(i.map(({limit:e,skip:t}={})=>r(e,t))).then(e=>e.reduce((e,t)=>
2840e.concat(t),[])).then(e=>{let t=e.length;return R.default.info(`Properties result count`,t),YMe(t),e})})}var i5=`PROPERLY_MAX_CONTACT_KEY`,XMe=()=>vi.get(i5)||0,ZMe=e=>{let t=Math.round(e/50)*50;vi.set(i5,t)};function a5(e){return HM(()=>{let t=e?{...vN(),...yN(e)}:{...vN()},n=(e=1e4,n=0)=>EN(`Contact`,e,t,`include=profile&skip=${n||0}`).then(e=>(e||[]).map(e=>lN(e))),r=bN(XMe());return Promise.all(r.map(({limit:e,skip:t}={})=>n(e,t))).then(e=>e.reduce((e,t)=>e.concat(t),[])).then(e=>{let t=e.length;return R.default.info(`Contacts result count`,t),ZMe(t),e})})}function QMe(e,t){return e.then(e=>({meta:t,data:e}))}function $Me(e,t=[]){return(0,If.default)(e,(e,n,r)=>(t.includes(r)||(e[r]=QMe(n.all(),{lastfetch:new Date().getTime()})),e),{})}function eNe(e,t=`objectId`){return{data:(0,CR.default)(e.data,t),...e.meta}}var o5={properties:{jsClass:UM,mapper:iN,all:()=>r5(),partial:e=>r5(e),searchIndexDef:e=>(0,iC.default)(function(){this.field(`title`,{boost:10}),this.field(`city`),this.field(`apt`),this.field(`country`),this.field(`state`),this.field(`street`),this.ref(`objectId`),this.field(`zip`),(0,xc.default)(e,e=>this.add(e))}),addItemToSearch:e=>({...e.address,...e})},contacts:{mapper:lN,all:()=>a5(),partial:e=>a5(e),searchIndexDef:e=>(0,iC.default)(function(){this.field(`firstName`,{boost:10}),this.field(`lastName`),this.field(`email`),this.field(`phone`),this.ref(`objectId`),(0,xc.default)(e,e=>this.add(e))}),addItemToSearch:e=>({...e.userData,objectId:e.objectId})},jobs:{jsClass:qM,mapper:uN,all:()=>HN(),partial:e=>HN(e),searchIndexDef:e=>(0,iC.default)(function(){this.field(`title`,{boost:10}),this.ref(`objectId`),(0,xc.default)(e,e=>this.add(e))}),addItemToSearch:e=>({title:e.title,objectId:e.objectId})},reports:{jsClass:WM,mapper:aN,all:()=>zN(),partial:e=>zN(e)},collaborators:{indexBy:`userId`,mapper:fN,all:()=>XW(),partial:e=>XW(e)},skills:{jsClass:``,mapper:()=>{},all:()=>{},partial:()=>{},searchIndexDef:e=>(0,iC.default)(function(){this.field(`title`,{boost:10}),this.ref(`skillId`),(0,xc.default)(e,e=>this.add(e))}),addItemToSearch:e=>({title:e.title,skillId:e.skillId})}},s5=(0,pc.default)(o5,()=>({lastfetch:null,data:{},redirectLocation:{}}));Object.assign(s5,{jobRequests:{lastfetch:null,data:{},redirectLocation:{}}});var c5=(e,t)=>{let n={...e};for(let e in t){if(!Object.prototype.hasOwnProperty.call(t,e))continue;let r=t[e],i=n[e];typeof r!=`object`||!r||Array.isArray(r)||r instanceof Date||r instanceof RegExp?n[e]=r:typeof r==`object`&&i&&typeof i==`object`&&!Array.isArray(i)?n[e]=c5(i,r):n[e]=r}return n},l5={persistent:s5};function tNe(e=l5,t={}){switch(t.type){case _E:return{...e,persistent:c5(e.persistent,t.data)};case wE:return l5;case xE:{if(!t.changeSet){let{[t.id]:n,...r}=e.persistent[t.collectionName].data;return{...e,persistent:{...e.persistent,[t.collectionName]:{...e.persistent[t.collectionName],data:r}}}}let n=e.persistent[t.collectionName]?.data?.[t.id],r=o5[t.collectionName],i=r?.jsClass?Bo(r.jsClass,n,t.changeSet):n?{...n,...t.changeSet}:t.changeSet;return{...e,persistent:{...e.persistent,[t.collectionName]:{...e.persistent[t.collectionName],data:{...e.persistent[t.collectionName].data,[t.id]:i}}}}}case CE:{let n=e.persistent[t.collectionName]?.data||{},r=Object.keys(n).reduce((e,r)=>(t.filter(n[r],r)&&(e[r]=n[r]),e),{});return{...e,persistent:{...e.persistent,[t.collectionName]:{...e.persistent[t.collectionName],data:r}}}}case SE:return t.isPagination?{...e,persistent:{...e.persistent,[t.collectionName]:{...e.persistent[t.collectionName],data:{...e.persistent[t.collectionName]?.data,...t.batchChange}}}}:{...e,persistent:{...e.persistent,[t.collectionName]:{...e.persistent[t.collectionName],data:t.batchChange}}};default:return e}}var u5={preloadStatus:c_.NOTLOADED,searchQueries:{properties:``,contacts:``},modals:{},parseConfig:{},sliderState:{isOpen:!1,images:[]},loadingStates:{}};function nNe(e=u5,t={}){switch(t.type){case wE:return{...u5,parseConfig:e.parseConfig};case vE:return{...e,preloadStatus:t.val};case TE:return{...e,sliderState:{...e.sliderState,...t.changeSet}};case KD:return{...e,parseConfig:t.val};case yE:return{...e,searchQueries:{...e.searchQueries,[t.index]:t.val}};case kE:return{...e,loadingStates:{...e.loadingStates,[t.key]:{...e.loadingStates[t.key],...(0,pF.default)(t,[`value`,`meta`])}}};case AE:return{...e,modals:{...e.modals,[t.id]:{value:t.value,meta:t.meta}}};default:return e}}var d5={isLoadingAccounts:!0,accounts:{}},f5={properties:{},propertiesLoaded:!1,propertiesTmp:{},propertiesStates:{},loading:!1,error:0,loadingJobRequests:!1,errorJobRequests:!1,loadingDeleteProperty:!1,errorDeleteProperty:!1,errorDeletePropertyMessage:null,propertyMergeResponse:null,propertyMergeError:null,jobRequests:[],cloneProperty:{hideMsg:!1,isOpen:!1,selected:[],mode:0},icalData:d5,propertyBlueprint:Bo(UM,null,{title:``,objectId:`new`,address:{AddressArray:[``,``,``],apt:``,city:``,country:``,state:``,street:``,zip:``},numOfBedrooms:0,numOfBeds:0,numOfBathrooms:0})};function p5(e,t,n){let r=e[n]?.[t.propertyId];return{...e,[n]:{...e[n],[t.propertyId]:Bo(UM,r,t.changeSet)}}}function rNe(e=f5,t={}){switch(t.type){case wE:return f5;case khe:return{...e,propertiesTmp:{...e.propertiesTmp,[t.propertyId]:t.val}};case JT:return{...e,cloneProperty:{...e.cloneProperty,...t.val}};case YT:return{...e,cloneProperty:{...e.cloneProperty,selected:t.val}};case Ohe:return{...e,loading:!1,error:1};case nE:return{...e,icalData:{...e.icalData,...t.val}};case aE:return{...e,propertiesWithConnectionIssue:t.val};case rE:return{...e,icalData:d5};case GT:return{...e,errorDeleteProperty:!1,loadingDeleteProperty:!0};case WT:return{...e,errorDeleteProperty:!0,errorDeletePropertyMessage:t.message,loadingDeleteProperty:!1};case KT:return{...e,errorDeleteProperty:!1};case UT:{let n=p5(e,t,`properties`);return kpe(t.propertyId),{...n,errorDeleteProperty:!1,loadingDeleteProperty:!1}}case jhe:{let n=e.propertiesStates?.[t.propertyId];return n?{...e,propertiesStates:{...e.propertiesStates,[t.propertyId]:{...n,[t.key]:{...n[t.key]||{},...t.changeset}}}}:{...e,propertiesStates:{...e.propertiesStates,[t.propertyId]:{[t.key]:{...t.changeset}}}}}case Ahe:return p5(e,t,`propertiesTmp`);case ZT:return{...e,propertyMergeResponse:t.payload,propertyMergeError:null};case QT:return{...e,propertyMergeError:t.payload};case $T:return{...e,propertyMergeResponse:null,propertyMergeError:null};default:return e}}var m5={jobInstructions:{steps:[]},currentState:0,currentJobInstructionId:void 0,currentJobId:void 0,activeChecklist:void 0,lastTimeUpdate:void 0,loadingStates:{},cloneChecklist:{isOpen:!1,selected:{},checklistTitle:``,mode:0,selectedChecklistId:void 0},modalChecklist:{isOpen:!1,meta:{}},tileOverview:{isOpen:!1,mode:0,selected:{}},textTemplatesView:{isOpen:!1,selected:[],do:{}},uploadView:{isOpen:!1,uploading:{},selected:[],do:{}}};function iNe(e=m5,t={}){switch(t.type){case wE:return m5;case HO:return{...e,jobInstructions:{...e.jobInstructions,[t.id]:Bo(GM,e.jobInstructions[t.id],t.data)}};case UO:return{...e,currentState:t.val};case ok:return{...e,modalChecklist:{...e.modalChecklist,...t.obj}};case tk:return{...e,lastTimeUpdate:t.time};case XO:return{...e,currentJobInstructionId:t.val};case rk:return{...e,loadingStates:{...e.loadingStates,[t.id]:t.val}};case nk:return{...e,currentJobId:t.val};case KO:return{...e,textTemplatesView:{...e.textTemplatesView,...t.val}};case ik:{let{selected:n}=t.val||{},r=n?{selected:n}:{};return{...e,cloneChecklist:{...e.cloneChecklist,...t.val,...r}}}case qO:{let n=(0,Pf.default)(t.val,[`uploading`]),r={...e.uploadView?.uploading||{},...t.val.uploading||{}},i=Object.fromEntries(Object.entries(r).filter(([,e])=>!!e));return{...e,uploadView:{...e.uploadView||{},...n,uploading:i}}}case GO:{let{selected:n,...r}=t.val,i={...e.tileOverview,...r};n!==void 0&&(n===`empty`?i.selected=`empty`:i.selected={...e.tileOverview.selected,...n});let a={};return i.selected!==`empty`&&(a=Object.fromEntries(Object.entries(i.selected||{}).filter(([,e])=>e))),{...e,tileOverview:{...i,selected:a}}}case WO:return{...e,activeChecklist:t.val};default:return e}}var h5={isPaywallModalOpen:!1,openSection:{},jobRequestData:{propertyId:void 0,proMarketProperty:void 0,checklistId:[],skills:[],startTime:void 0,endTime:void 0,currency:`USD`,price:0,cleaners:{},message:void 0,isDefault:!1,time:`600`,duration:`60`,jobStartTimeType:`fixed`,jobType:``,isForwardingEnabled:!1,tasks:[],tempTaskImages:[],taskTitle:``,taskDescription:``,riOption:f_.no,propertyOwnerPlanId:void 0},checklistViewType:`properties`,communityCleaners:[],hostStripeStatus:!1,jobRequestIdOfRecentlySentJob:``,startupData:{}};function aNe(e=h5,t={}){switch(t.type){case wE:return h5;case WE:return h5;case BE:return{...e,openSection:t.key?{[t.key]:{...t.meta,id:t.key}}:{}};case LE:return{...e,checklistViewType:t.checklistViewType};case VE:return{...e,jobRequestData:t.data};case GE:return{...e,jobRequestData:{...e.jobRequestData,cleaners:t.cleaners}};case ZE:return{...e,jobRequestData:{...e.jobRequestData,riOption:t.riOption}};case HE:return{...e,communityCleaners:t.data};case UE:return{...e,startupData:t.data};case Fhe:return{...e,isPaywallModalOpen:!0,seenPaywallModal:!0};case RE:return{...e,isPaywallModalOpen:!1};case XE:return{...e,hostStripeStatus:t.status};case QE:return{...e,jobRequestIdOfRecentlySentJob:t.jobId};default:return e}}var g5={openSection:{},autoschedulingData:{propertyId:void 0,checklistId:[],skills:[],startTime:void 0,endTime:void 0,currency:`USD`,price:0,cleaners:{},message:void 0,isDefault:!1,jobType:``,tasks:[],tempTaskImages:[],taskTitle:``,taskDescription:``,jobEventType:``,timeConfig:{},editedBookingConfig:{},canceledBookingConfig:{},serviceProviderConfig:{},recurrenceConfig:{}},listViewRefresh:!1,checklistViewType:`properties`,communityCleaners:[],startupData:{},deletedAutoschedulerModalVisibility:!1};function oNe(e=g5,t={}){switch(t.type){case wE:return g5;case vD:return g5;case mD:return{...e,openSection:t.key?{[t.key]:{...t.meta,id:t.key}}:{}};case fD:return{...e,checklistViewType:t.checklistViewType};case hD:return{...e,autoschedulingData:t.data};case yD:return{...e,autoschedulingData:{...e.autoschedulingData,cleaners:t.cleaners}};case gD:return{...e,communityCleaners:t.data};case _D:return{...e,startupData:t.data};case OD:return{...e,listViewRefresh:t.refreshType};case jD:return{...e,deletedAutoschedulerModalVisibility:t.visible};default:return e}}var sNe=()=>({title:``,jobIds:[],cadence:{repeatEvery:`1`,repeatUnit:`weeks`,daysOfWeek:[],daysOfMonth:[]},leadTimeDays:14,sendJobConfig:{}}),_5=()=>({remindersByProperty:{},byId:{},history:{entries:[],total:0},form:sNe(),propertyId:null,mode:`create`,reminderId:null,loading:!1,saveState:`idle`,deleteState:`idle`,jobPicker:{open:!1,eventId:null,propertyId:null,jobs:[],loading:!1,attaching:!1,error:null,loadError:!1,source:null}});function cNe(e=_5(),t={}){switch(t.type){case wE:case Ihe:return _5();case LD:{let{propertyId:n,reminders:r=[]}=t,i={...e.byId};
2840return r.forEach(e=>{i[e.id]=e}),{...e,remindersByProperty:{...e.remindersByProperty,[n]:r},byId:i}}case RD:{let n=e.history[t.reminderId]||{entries:[],total:0};return{...e,history:{...e.history,[t.reminderId]:{entries:t.append?[...n.entries,...t.entries]:t.entries,total:t.total}}}}case zD:return{...e,...t.data};case BD:return{...e,form:{...e.form,...t.partial}};default:return e}}var v5={contacts:{},contactPaginationState:{dateIterator:1,state:0},modal:{view:1,hasError:!1,isOpen:!1,showErrors:!1},modalData:{phoneCountryCode:``,firstName:``,lastName:``,phoneNumber:``,email:``},contactCompletedSkills:{}};function lNe(e=v5,t={}){switch(t.type){case wE:return v5;case Mhe:return t.isPagination?{...e,contactPaginationState:{...e.contactPaginationState,dateIterator:e.contactPaginationState.dateIterator+2}}:{...e,contactPaginationState:v5.contactPaginationState};case Nhe:return{...e,contactPaginationState:{...e.contactPaginationState,state:t.val}};case cE:return{...e,modal:{...e.modal,...t.data}};case lE:return{...e,modalData:{...e.modalData,...t.data}};case uE:return{...e,modalData:v5.modalData};case gE:return{...e,contactCompletedSkills:{...e.contactCompletedSkills,[t.contactId]:t.allCompletedSkillsIds}};default:return e}}var y5={isOpen:!1,meta:{}},b5={updateNotificationState:0,passwordState:{oldPassword:``,newPassword1:``,newPassword2:``},states:{updatePw:0,sendPw:0,phoneVerify:0,disconnect:0,oauth:{},imageFile:null},warningModal:y5,connectionSettingsCount:null,connectedAccount:[],connectedAccountLoading:!1,connectedAccountError:null,disconnectAccountLoading:!1,disconnectAccountError:null,syncAccountLoading:!1,syncAccountError:null,showFailedPaymentBanner:!1};function uNe(e=b5,t={}){switch(t.type){case DT:case wE:return b5;case XD:return t.reset?{...e,warningModal:y5}:{...e,warningModal:t.data};case JD:return{...e,passwordState:{...e.passwordState,...t.changeSet}};case YD:return{...e,states:{...e.states,[t.where]:t.val}};case eO:return{...e,showFailedPaymentBanner:t.val};case nO:return{...e,connectedAccountLoading:!0,connectedAccountError:null};case rO:return{...e,connectedAccountLoading:!1,connectedAccount:t.connectedAccounts,connectionSettingsCount:t.connectionSettingsCount};case iO:return{...e,connectedAccountLoading:!1,connectedAccountError:t.error};case tO:return{...e,disconnectAccountError:null};case uO:return{...e,disconnectAccountLoading:!0,disconnectAccountError:null};case dO:return{...e,disconnectAccountLoading:!1};case fO:return{...e,disconnectAccountLoading:!1,disconnectAccountError:t.error.message};case oO:return{...e,syncAccountError:null};case sO:return{...e,syncAccountLoading:!0,syncAccountError:null};case cO:return{...e,syncAccountLoading:!1};case lO:return{...e,syncAccountLoading:!1,syncAccountError:t.error.message};default:return e}}var x5={modal:{kind:void 0,meta:{}}};function dNe(e=x5,t={}){switch(t.type){case wE:return x5;case Ak:return{...e,modal:t.data};default:return e}}var fNe=`library.viewPreferences`,S5={tabsValue:0,hideUserChecklists:!1,hidePublishedChecklists:!1},pNe=[0,1],C5=Y4({key:fNe,defaultValue:S5,isValid:e=>!!e&&typeof e==`object`,normalize:e=>({tabsValue:pNe.includes(e.tabsValue)?e.tabsValue:S5.tabsValue,hideUserChecklists:typeof e.hideUserChecklists==`boolean`?e.hideUserChecklists:S5.hideUserChecklists,hidePublishedChecklists:typeof e.hidePublishedChecklists==`boolean`?e.hidePublishedChecklists:S5.hidePublishedChecklists})});function w5(){return C5.get()}function T5(e){C5.set({...w5(),...e})}var E5=()=>{let e=w5();return{checklistSearchQuery:``,skillSearchQuery:``,tabsValue:e.tabsValue,hideUserChecklists:e.hideUserChecklists,hidePublishedChecklists:e.hidePublishedChecklists,singleChecklistLoading:{},singleChecklistError:{},userChecklists:{},userChecklistsIsLoading:!1,userChecklistsHasError:null,publishedChecklists:{},publishedChecklistsIsLoading:!1,publishedChecklistsHasError:null,skills:{},skillsIsLoading:!1,skillsHasError:null,singleSkillLoading:!1,singleSkillError:null,cloneChecklistIntoPropertiesSubmitting:{},cloneChecklistIntoPropertiesError:{},removeChecklistFromLibrarySubmitting:{},removeChecklistFromLibraryError:{},createNewChecklistFromLibrarySubmitting:!1,createNewChecklistFromLibraryError:null}},mNe=e=>e.objectId||e.id||e._id,D5=e=>(e||[]).reduce((e,t)=>
2840({...e,[mNe(t)]:t}),{}),hNe=e=>(e||[]).reduce((e,t)=>({...e,[t?.skillId]:t}),{});function gNe(e=E5(),t={}){switch(t.type){case wE:return E5();case DV:return t.isSkill?{...e,skillSearchQuery:t.searchQuery||``}:{...e,checklistSearchQuery:t.searchQuery||``};case OV:return{...e,tabsValue:t.value};case kV:return{...e,hideUserChecklists:!e.hideUserChecklists};case AV:return{...e,hidePublishedChecklists:!e.hidePublishedChecklists};case LV:return{...e,userChecklistsIsLoading:!0,userChecklistsHasError:null};case RV:return{...e,userChecklistsIsLoading:!1,userChecklists:D5(t.checklists)};case zV:return{...e,userChecklistsIsLoading:!1,userChecklistsHasError:t.error};case UV:return{...e,publishedChecklistsIsLoading:!0,publishedChecklistsHasError:null};case WV:return{...e,publishedChecklistsIsLoading:!1,publishedChecklists:D5(t.checklists)};case GV:return{...e,publishedChecklistsIsLoading:!1,publishedChecklistsHasError:t.error};case BV:return{...e,singleChecklistLoading:{...e.singleChecklistLoading,[t.checklistId]:!0},singleChecklistError:{...e.singleChecklistError,[t.checklistId]:null}};case VV:{let n=t.published?`publishedChecklists`:`userChecklists`;return{...e,singleChecklistLoading:{...e.singleChecklistLoading,[t.checklistId]:!1},[n]:{...e[n],[t.checklistId]:{...t.checklist,jobInstructions:t.checklistInstructions}}}}case HV:return{...e,singleChecklistLoading:{...e.singleChecklistLoading,[t.checklistId]:!1},singleChecklistError:{...e.singleChecklistError,[t.checklistId]:t.error}};case jV:return{...e,cloneChecklistIntoPropertiesSubmitting:{...e.cloneChecklistIntoPropertiesSubmitting,[t.checklistId]:!0},cloneChecklistIntoPropertiesError:{...e.cloneChecklistIntoPropertiesError,[t.checklistId]:null}};case MV:return{...e,cloneChecklistIntoPropertiesSubmitting:{...e.cloneChecklistIntoPropertiesSubmitting,[t.checklistId]:!1}};case NV:return{...e,removeChecklistFromLibrarySubmitting:{...e.removeChecklistFromLibrarySubmitting,[t.checklistId]:!1},removeChecklistFromLibraryError:{...e.removeChecklistFromLibraryError,[t.checklistId]:t.error}};case PV:return{...e,removeChecklistFromLibrarySubmitting:{...e.removeChecklistFromLibrarySubmitting,[t.checklistId]:!0},removeChecklistFromLibraryError:{...e.removeChecklistFromLibraryError,[t.checklistId]:null}};case FV:{let n={...e.userChecklists};return delete n[t.checklistId],{...e,removeChecklistFromLibrarySubmitting:{...e.removeChecklistFromLibrarySubmitting,[t.checklistId]:!1},userChecklists:n}}case IV:return{...e,removeChecklistFromLibrarySubmitting:{...e.removeChecklistFromLibrarySubmitting,[t.checklistId]:!1},removeChecklistFromLibraryError:{...e.removeChecklistFromLibraryError,[t.checklistId]:t.error}};case wV:return{...e,createNewChecklistFromLibrarySubmitting:!0,createNewChecklistFromLibraryError:null};case TV:return{...e,createNewChecklistFromLibrarySubmitting:!1};case EV:return{...e,createNewChecklistFromLibrarySubmitting:!1,createNewChecklistFromLibraryError:t.error};case KV:return{...e,skillsIsLoading:!0};case qV:return{...e,skillsIsLoading:!1,skills:hNe(t.skills)};case JV:return{...e,skillsIsLoading:!1,skillsHasError:t.error};case YV:return{...e,singleSkillLoading:!0,singleSkillError:null};case XV:return{...e,singleSkillLoading:!1,skills:{...e.skills,[t.skillId]:t.skill}};case ZV:return{...e,singleSkillLoading:!1,singleSkillError:t.error};default:return e}}var O5={events:{},pagination:{limit:25,todosSkip:0,jobsSkip:0}};function _Ne(e=O5,t={}){switch(t.type){case wE:return O5;case Pk:return O5;case Fk:return{...e,...t.data};case Lk:return{...e,events:{...e.events,...t.events}};default:return e}}var vNe=`calendar.showCanceledEvents`,yNe=`calendar.eventFilters`,k5=Y4({key:vNe,defaultValue:!0,isValid:e=>typeof e==`boolean`,coerceInvalidWrite:e=>e}),A5=Y4({key:yNe,defaultValue:[],isValid:Array.isArray,coerceInvalidWrite:()=>[]});function bNe(){return k5.get()}function xNe(e){k5.set(e)}function SNe(){return A5.get()}function CNe(e){A5.set(e)}var j5=()=>{let e=SNe();return{dates:{outsideRange:!1,outsideRangeDayCount:0,startDate:Ec(),endDate:Dc(),dates:Mc(Ec(),Dc()),...Fc(Ec(),Dc())},showCanceledEvents:bNe(),error:!1,errorCount:0,resetOnNextSuccess:!0,property:{},propertyEvents:{},propertyViewportStart:0,propertyViewportEnd:10,propertyTotal:0,propertyOrder:[],propertyLoaded:{},propertyTotalFiltered:0,propertyOrderFiltered:[],propertyLoadedFiltered:{},currentEventsRequestId:null,eventsLoading:{},filters:e,filtersSchemaValidated:e.length===0,calendarInitialized:!1,filtersLoading:!1,searchQuery:``,searchQueryLoaded:!0,backdropOpe
2840n:!1,backdropData:{},modalData:{}}};function M5(e){return[1,2].indexOf(e.type)!==-1}function N5(e){return M5(e)?e.booking.id:e.id}function P5(e){return M5(e)?`bookingEvents`:`otherEvents`}function wNe(e,t){return t.reduce((e,t)=>e?.[t],e)}function F5(e,t,n){if(t.length===0)return n;let[r,...i]=t;return{...e,[r]:i.length===0?n:F5(e[r]||{},i,n)}}function I5(e,t,n){if(t.length===0)return{...e,...n};let[r,...i]=t;return{...e,[r]:i.length===0?{...e[r]||{},...n}:I5(e[r]||{},i,n)}}function L5(e,t,n){if(t.length===0){let t={...e};return delete t[n],t}let[r,...i]=t;return{...e,[r]:L5(e[r]||{},i,n)}}var TNe=(e=j5(),t={})=>{switch(t.type){case wE:case dk:return j5();case uk:return{...e,calendarInitialized:!0,resetOnNextSuccess:!0,propertyLoaded:{},propertyLoadedFiltered:{}};case wk:return{...e,backdropOpen:t.isOpen,backdropData:t.data};case Dk:return{...e,showCanceledEvents:!e.showCanceledEvents};case Tk:return{...e,modalData:t.data};case Ck:{let{calendarEvents:n}=t;try{let t=n.reduce((e,t)=>{let n=N5(t),r=e[t.property.id]||{},i=(e,t)=>[...e,...t],a=M5(t)?Object.keys(r).map(e=>{let i=P5(t),a=r[e]?.[i]||{},o=Object.keys(a).filter(e=>e===n),s=[t.property.id,e,i];return o.map(e=>({matchId:e,path:s}))}).reduce(i,[]):Object.keys(r).map(e=>{let a=P5(t),o=r[e]?.[a]||{};return Object.keys(o).map(r=>{let i=o[r],s=Object.keys(i).filter(e=>e===n),c=[t.property.id,e,a,r];return s.map(e=>({matchId:e,path:c}))}).reduce(i,[])}).reduce(i,[]),o=e;return a.forEach(({matchId:e,path:t})=>{let r=wNe(o,t)||{};R.default.info(`DELETE EVENT`,e,t);let i=L5(r,[],n);o=F5(o,t,i)}),o},e.propertyEvents);return{...e,propertyEvents:t}}catch(t){return R.default.error(`Error in CALENDAR_DELETE_LIVE_CALENDAR_EVENTS action`,t),e}}case Sk:{let{calendarEvents:n}=t,r=n.reduce((e,t)=>{let n=t;return Pc(M5(t)?t.booking.arrivalDate:t.startTime,M5(t)?t.booking.departureDate:t.endTime).reduce((e,r)=>{let i=t.property.id,a=P5(t),o=String(t.days[0]);return I5(e,M5(t)?[i,String(r),a,N5(t)]:[i,String(r),a,o,N5(t)],n)},e)},e.propertyEvents);return{...e,propertyEvents:r}}case pk:return{...e,searchQuery:t.query,searchQueryLoaded:!1,propertyLoadedFiltered:{},propertyTotalFiltered:0,propertyOrderFiltered:[]};case fk:{let n=t.startDate<Oc(),r=n?(0,z.default)(Oc()).diff((0,z.default)(t.startDate),`days`):0;return{...e,dates:{...e.dates,outsideRange:n,outsideRangeDayCount:r,...Fc(t.startDate,t.endDate),dates:Mc(t.startDate,t.endDate),startDate:t.startDate,endDate:t.endD
2840ate}}}case Ek:return{...e,filtersLoading:!0,filters:t.filters,filtersSchemaValidated:!0,propertyLoadedFiltered:{},propertyTotalFiltered:0,propertyOrderFiltered:[]};case mk:return{...e,propertyViewportStart:t.overscrollStart,propertyViewportEnd:t.overscrollEnd};case hk:{let{requestId:n,hasFilters:r,dateBucketId:i,offset:a,limit:o}=t,s=r?`propertyLoadedFiltered`:`propertyLoaded`,c=(0,CR.default)([...Array(o)].map((e,t)=>a+t));return{...e,error:!1,currentEventsRequestId:n,eventsLoading:{...e.eventsLoading,[n]:!0},[s]:{...e[s],[i]:{...e[s][i]||{},...c}}}}case gk:{let{requestId:n,calendarPropertyEvents:r,searchQuery:i,dateBucketId:a,total:o,hasFilters:s,offset:c}=t,l=`property`,u=`propertyEvents`,d=s?`propertyTotalFiltered`:`propertyTotal`,f=s?`propertyOrderFiltered`:`propertyOrder`,p=e.resetOnNextSuccess?{}:e[u],m=(r||[]).reduce((e,t)=>{let{events:n=[],id:r,displayAddress:i,timeZone:o}=t;return n.reduce((e,t)=>{let n=t&&t.property||{},s={...t,timeZone:o,property:{...n,displayAddress:i}},c=String(t.days[0]);return I5(e,M5(t)?[r,String(a),`bookingEvents`,t.booking.id]:[r,String(a),`otherEvents`,c,t.id],s)},e)},p),h=(r||[]).reduce((e,t)=>{let n=t.id,{events:r,...i}=t;return e[n]===void 0?I5(e,[n],i):e},e[l]),g=r.map(({id:e})=>e),_=e[f];if(_[c]!==g[0]){let t=e[f],n=t.length,r=()=>n<c?[...Array(c-n)]:[];_=[...t.slice(0,c),...r(),...g,...t.slice(c).filter(e=>!!e)]}return{...e,error:!1,errorCount:0,resetOnNextSuccess:!1,[d]:o,[u]:m,[l]:h,[f]:_,searchQueryLoaded:i===e.searchQuery,filtersLoading:!1,eventsLoading:{...e.eventsLoading,[n]:!1}}}case _k:{let{errorCount:t}=e,n=(t||0)+1;return{...j5(),error:!0,errorCount:n}}case vk:return{...j5(),resetOnNextSuccess:!0,propertyLoaded:{},propertyLoadedFiltered:{},error:!1,errorCount:0};default:return e}},R5={selectedJobRequestId:void 0,isOpen:!1,jobProgress:void 0,isOpenEditModal:!1,isOpenCostModal:!1,isWarningModalOpen:!1,event:void 0,state:0,sourceJobProblems:[],tempMilesImages:[],tempDurationImages:[],tempCostImages:[],type:void 0,resolvedProblem:{},stripePaymentDetails:{},checklistsVerificationPhotos:[],isRIRequested:!1,jobStatusRI:void 0,jobsDetailVie
2840wJobResultsRefreshData:!1};function ENe(e=R5,t={}){switch(t.type){case wE:return R5;case hO:return{...e,...t.changeSet};case DO:return{...e,sourceJobProblems:t.data};case OO:return{...e,resolvedProblem:t.data};case $E:return{...e,stripePaymentDetails:t.data};case kO:return{...e,tempMilesImages:t.data};case AO:return{...e,tempDurationImages:t.data};case jO:return{...e,tempCostImages:t.data};case MO:return{...e,type:t.data};case NO:return{...e,checklistsVerificationPhotos:t.data};case FO:return{...e,isRIRequested:t.payload};case RO:return{...e,jobStatusRI:t.payload};case nD:return{...e,jobsDetailViewJobResultsRefreshData:t.payload};default:return e}}var DNe={comments:[],verificationPhotos:[],notificationsCount:0},ONe=(e=DNe,t)=>{switch(t.type){case BO:return t.data;default:return e}},z5={stripeCustomerLoading:!0,hostStripeStatus:!1,stripeCustomer:{},intent:{intent:{id:void 0,clientSecret:void 0}},modal:{view:1,error:void 0}};function kNe(e=z5,t={}){switch(t.type){case wE:return z5;case $k:return{...e,stripeCustomer:{...e.stripeCustomer,...t.data}};case eA:return{...e,stripeCustomerLoading:t.loading};case tA:return{...e,hostStripeStatus:t.status};case rA:return{...e,modal:{...e.modal,...t.data}};case iA:return{...e,modal:z5.modal};case aA:return{...e,intent:{...e.intent,...t.data}};case oA:return{...e,intent:z5.intent};default:return e}}var B5={type:{type:void 0},email:{email:void 0,error:void 0},collType:{type:void 0,disabled:[]},permissions:{type:void 0,permissions:{},disabled:[]},properties:{type:void 0,properties:{}}},V5={listdata:{sharedWithMe:{},infomessage:{},activeSection:void 0,modalMeta:{mode:void 0,meta:{}}},submitData:B5};function ANe(e=V5,t={}){switch(t.type){case wE:return V5;case Vk:return{...e,listdata:{...e.listdata,[t.name]:{...e.listdata[t.name]||{},...t.data}}};case Bk:return{...e,listdata:{...e.listdata,[t.name]:t.data}};case Wk:return{...e,submitData:{...e.submitData,...t.data}};case Gk:return{...e,submitData:B5};default:return e}}var jNe={isWaiting:!1,loginLoading:!1,errors:[],step:0,index:0,length:0,toMobileSent:!1,toast:{message:``,type:null},validUsername:!1,matchingPasswords:!1,loginOverride:!1,submitHasFailed:!1};function MNe(e=jNe,t={}){switch(t.type){case CT:return{...e,loginLoading:!1,errors:[]};case wT:return{...e,loginLoading:!1,errors:t.errors};case TT:return{...e,loginLoading:!1,errors:[]};case OT:return{...e,loginLoading:t.val};case AT:return{...e,loginOverride:t.val};case FT:return{...e,toast:t.payload};case PT:return{...e,toast:t.payload,validUsername:!1};case The:return t.payload===null?e:{...e,validUsername:t.payload};case IT:return{...e,toast:{type:`hide`,message:e.toast.message}};default:return e}}var H5=Wi(),U5={currentCountry:``,isAdminMode:(()=>{try{let e=/^\/\/localhost/.test(H5.APP_DASHBOARD_LINK)?String(H5.APP_DASHBOARD_LINK).replace(`//`,`http://`):String(H5.APP_DASHBOARD_LINK).replace(`//`,`https://`),t=/^\/\/localhost/.test(H5.APP_ADMIN_LINK)?String(H5.APP_ADMIN_LINK).replace(`//`,`http://`):String(H5.APP_ADMIN_LINK).replace(`//`,`https://`),n=!!window.chrome&&(!!window.chrome.webstore||!!window.chrome.runtime),r=document.referrer;if(n&&([r]=window.location.ancestorOrigins),r&&(r=r.endsWith(`/`)?r.slice(0,-1):r),r===e&&window.location.origin===t)return!0}catch(e){return R.default.info(`not admin user`,e),!1}return!1})(),adminModeDetails:{},userFeatures:[],userFeaturesLoading:!1,userFeaturesError:null,userFeatureFlags:[],userFeatureFlagsLoading:!1,userFeatureFlagsError:null,propertiesEligibleForRI:[]};function NNe(e=U5,t={}){switch(t.type){case wE:return U5;case LT:return{...e,currentCountry:t.currentCountry};case VT:return{...e,isAdminMode:!0,adminModeDetails:{...e.adminModeDetails,...t.payload}};case HT:return{...e,adminModeUnlocked:t.payload};case RT:return{...e,userFeatureFlagsLoading:!0,userFeatureFlagsError:null};case zT:return{...e,userFeatureFlags:t.userFeatureFlags,userFeatureFlagsLoading:!1};case BT:return{...e,userFeatureFlagsError:t.error,userFeatureFlagsLoading:!1};case IO:return{...e,propertiesEligibleForRI:t.payload};default:return e}}var PNe=()=>ln({currentUser:qMe,router:UBe,globalReducer:tNe,moreReducer:nNe,jobDetails:ENe,jobsNotifications:ONe,calendar:TNe,checklists:iNe,account:uNe,todos:_Ne,jobRequestSend:aNe,autoschedulingSend:oNe,reminders:cNe,pricing:dNe,loginSignUpReducers:MNe,permission:ANe,properties:rNe,library:gNe,contacts:lNe,stripe:kNe,settings:NNe}),FNe=F` 2841 mutation AddContactById($contactId: String!) { 2842 AddContactById(contactId: $contactId) { 2843 id 2844 contactId 2845 ownerId 2846 profileId 2847 userData { 2848 email 2849 firstName 2850 lastName 2851 shortName 2852 objectId 2853 signedUp 2854 signedUpDate 2855 phoneCountryCode 2856 phoneRegionalNumber 2857 phone 2858 bio 2859 pictureUrl 2860 } 2861 deleted 2862 createdAt 2863 updatedAt 2864 } 2865 } 2866`,INe=F` 2867 mutation RemoveContact($contactId: String!) { 2868 RemoveContact(contactId: $contactId) { 2869 id 2870 contactId 2871 ownerId 2872 profileId 2873 userData { 2874 email 2875 firstName 2876 lastName 2877 shortName 2878 objectId 2879 signedUp 2880 signedUpDate 2881 phoneCountryCode 2882 phoneRegionalNumber 2883 phone 2884 bio 2885 pictureUrl 2886 } 2887 deleted 2888 createdAt 2889 updatedAt 2890 } 2891 } 2892`,LNe=F` 2893 query FindContact($search: String!, $type: String!) { 2894 FindContact(search: $search, type: $type) { 2895 profileId 2896 userId 2897 standaloneUser 2898 } 2899 } 2900`;function RNe(e){return new KM(e.objectId,e.firstName,e.lastName,e.shortName,e.email,e.phone,e.pictureUrl,e.bio,e.signedUp,e.signedUpDate,e.phoneCountryCode,e.phoneRegionalNumber)}function W5(e){let t=e&&!!e.get,n=n=>t?e.get(n):e[n];return fs(e.id||e.objectId,n(`ownerId`),n(`contactId`),n(`userData`)?RNe(n(`userData`)):null,n(`lastJobSent`),n(`deleted`),null,n(`isSuggested`))}var zNe=async e=>{try{let t=W5((await QF.mutate({mutation:FNe,variables:{contactId:e}})).data.AddContactById);if(!t?.contactId)throw Error(`Contact not found`);return t}catch(e){return R.default.error(`Create contact by id ${e}`),null}},BNe=async e=>{try{let t=await QF.mutate({mutation:INe,variables:{contactId:e}});return W5(Object.values(t.data)[0])}
2900catch(e){return R.default.error(`Remove contact by id ${e}`),null}},G5=e=>{let{type:t}=e,n=e.phoneCountryCode+(e.phoneRegionalNumber?.trim()??``),r=t===`email`?e.email.toString().trim():n.toString().trim();return QF.query({query:LNe,variables:{search:r,type:t},fetchPolicy:`no-cache`}).then(({data:e,errors:t})=>{if(t)throw R.default.error(`find contact query error ${t}`),t;return Object.values(e)[0]})},VNe=F` 2901 query getCompletedSkills($cleanerId: ID, $language: String) { 2902 getCompletedSkills(cleanerId: $cleanerId, language: $language) { 2903 skillId 2904 title 2905 } 2906 } 2907`,HNe=F` 2908 query getCompletedSkills($cleanerId: ID, $language: String) { 2909 getCompletedSkills(cleanerId: $cleanerId, language: $language) { 2910 skillId 2911 } 2912 } 2913`,UNe=F` 2914 query fetchSkills( 2915 $includeCompletionStatus: Boolean 2916 $language: String 2917 $updatedAfter: DateTime 2918 $offset: Int 2919 $limit: Int 2920 ) { 2921 fetchSkills( 2922 includeCompletionStatus: $includeCompletionStatus 2923 language: $language 2924 updatedAfter: $updatedAfter 2925 offset: $offset 2926 limit: $limit 2927 ) { 2928 skillId 2929 title 2930 stepCount 2931 isComplete 2932 } 2933 } 2934`,WNe=F` 2935 query fetchSkill($includeProgress: Boolean, $language: String, $skillId: String!) { 2936 fetchSkill(includeProgress: $includeProgress, language: $language, skillId: $skillId) { 2937 skillId 2938 title 2939 stepCount 2940 isComplete 2941 steps { 2942 ...stepsFragment 2943 } 2944 description 2945 } 2946 } 2947 2948 fragment stepsFragment on stepFields { 2949 id 2950 pictureIdentifier 2951 title 2952 tasks { 2953 ...tasksFragment 2954 } 2955 } 2956 2957 fragment tasksFragment on taskFields { 2958 id 2959 note 2960 notePictureIdentifiers 2961 } 2962`,K5=async(e,t)=>{try{let n=await QF.query({query:t?HNe:VNe,variables:{cleanerId:e,language:(0,pi.default)()},fetchPolicy:`no-cache`});return t?n?.data?.getCompletedSkills?.map(({skillId:e})=>e):n?.data?.getCompletedSkills}catch(e){return R.default.error(`[getCompletedSkills] ${e}`),e.apiError=!0,e}},GNe=async(e,t)=>{try{return(await QF.query({query:UNe,variables:{includeCompletionStatus:!0,language:(0,pi.default)(),limit:e,offset:t},fetchPolicy:`network-only`}))?.data?.fetchSkills}catch(e){return R.default.error(`[getSkills] ${e}`),e.apiError=!0,e}},KNe=async e=>{try{return(await QF.query({query:WNe,variables:{skillId:e,language:(0,pi.default)()},fetchPolicy:`network-only`}))?.data?.fetchSkill}catch(e){return R.default.error(`[getSkill] ${e}`),e.apiError=!0,e}};function*qNe(){let e=yield L(e=>s3(e));try{xpe(),yield M(n3({view:5}));let t=yield P(yP,{phoneRegionalNumber:e.phoneRegionalNumber||e.phoneNumber||void 0,phoneCountryCode:e.phoneCountryCode||void 0,firstName:e.firstName?.trim(),lastName:e.lastName?.trim(),email:e.email?.trim()});yield M(n3({view:3})),yield M(QP(`contacts`,t.objectId,t)),yield M(e3(t.objectId)),Fv(),yield M(Ske())}catch(e){yield M(n3({view:2,hasError:!0})),R.default.error(`addContactSaga`,e)}}function*JNe(e){if(e&&e.meta&&e.meta.objectId){let t=yield L(t=>cw(e.meta.objectId)(t)),n={firstName:t.userData.firstName,lastName:t.userData.lastName};t.userData.email&&(n.email=t.userData.email),t.userData.phoneCountryCode&&(n.phoneCountryCode=t.userData.phoneCountryCode),t.userData.phoneRegionalNumber&&(n.phoneNumber=t.userData.phoneRegionalNumber),yield M(t3(n))}}function*YNe(e){let t=yield L(e=>s3(e));try{yield M(n3({view:5}));let n=yield P(bP,{contactId:e.contactId,firstName:t.firstName?.trim(),lastName:t.lastName?.trim(),phoneCountryCode:t.phoneCountryCode||void 0,phoneRegionalNumber:t.phoneNumber||void 0,email:t.email?.trim()||void 0});yield M(QP(`contacts`,n.objectId,n)),yield M(n3({view:3}))}catch(e){yield M(n3({view:6,hasError:!0})),R.default.error(`resendInviteSaga`,e)}}function*XNe(e){try{let{inviteData:t}=e||{};yield M(n3({hasError:!1})),yield M(n3({view:5}));let{userId:n}=(yield P(G5,t))||{};if(n===null)yield M(n3({view:2})),yield M(t3({email:void 0,phoneNumber:void 0,phoneCountryCode:void 0,...t}));else{bpe();let e=yield P(zNe,n);yield M(QP(`contacts`,e.objectId,e)),yield M(t3({firstName:e.userData.firstName,lastName:e.userData.lastName,email:e.userData.email,phoneNumber:e.userData.phoneRegionalNumber||e.userData.phoneNumber,phoneCountryCode:e.userData.phoneCountryCode})),yield M(n3({view:4})),yield M(e3(e.objectId)),Fv()}}catch(e){yield M(n3({view:1,hasError:!0})),R.default.error(`freshInviteSaga`,e)}}function*ZNe(){yield M(t3({firstName:``,lastName:``,phoneCountryCode:``,phoneNumber:``,email:``})),yield M(n3({hasError:!1,isOpen:!1,showErrors:!1})),yield Jr(1e3),yield M(n3({view:1}))}function*QNe(e){if(e.data&&e.data.view&&(e.data.view===6||e.data.view===1)&&e.data.isOpen){let e=yield L(uB);if(!e){let t=yield P(Yl);yield M(sF(t)),e=t}yield M(t3({phoneCountryCode:ql(e,`+1`)}))}}function*$Ne(e){try{yield M(dF(!0,u_.LOADING_MODAL,{}));let t=yield P(BNe,e.contactId);yield M(dF(!1,u_.LOADING_MODAL,{})),yield M(bke()),yield M(QP(`contacts`,t.objectId,t))}catch{yield M(dF(!1,u_.LOADING_MODAL,{})),yield M(dF(!0,u_.CONTACT_DELETE_MODAL,{}))}}function*ePe({contactId:e}){let t=yield L(cw(e));if(t?.userData.signedUp){let n=yield P(K5,t.contactId);n.apiError||(yield M(kke(e,n)))}}function*tPe(){yield Ee(dE,YNe),yield Ee(cE,QNe),yield Ee(cE,JNe),yield Ee(fE,XNe),yield Ee(pE,qNe),yield Ee(mE,ZNe),yield Ee(sE,$Ne),yield We(hE,ePe)}var nPe=async()=>{try{let e=await sI();if(e.error||e.apiError)throw e;return e.result}catch(e){return R.default.error(`[GetSubscriptionForAUser] errored: `,e),null}};
2962function rPe(){return HM((e,t)=>{let n=FM.default.User.current(),r=$(n,`subscription`)?.id,i;if(n){let a=r?nPe():Promise.resolve();return xN(`_User`,n.id).then(e=>{i=e;let t=$(e,`subscription`),n=t?.objectId;return t?n&&n===r?a:xN(`Subscription`,n):null}).then(t=>{let n=nN(i)||{};return n.subscription=t?rN(t):null,e(n)}).catch(t)}return t(`No current user to fetch`)})}function*iPe(e){let t=yield L(hw);(e||t===c_.NOTLOADED)&&(R.default.info(`waitForPreloadFinish - start`,{currentStatus:t,forceWait:e}),yield w(e=>e.type===`GLOBAL_SET_PRELOAD_STATUS`&&e.val!==c_.LOADING),R.default.info(`waitForPreloadFinish - end`,{currentStatus:t,forceWait:e}))}function*q5(){R.default.info(`refetchUser - start`);try{let e=yield rPe();if(R.default.info(`refetchUser - user`,e),e&&!e.subscription)throw Error(`Fetched user does not have a subscription object`);yield M(qP(e))}catch(e){R.default.error(`refetchUser`,e),alert(`Your session has expired, please log in again`),yield M(gA())}}function aPe({className:e,listenOnArray:t,queryModifierFunc:n}){return In(r=>{let i=null,a=!1;return KN(e,r,t,n).then(e=>{if(i=e,a)try{i&&typeof i.unsubscribe==`function`&&i.unsubscribe()}catch(e){R.default.warn(`Could not unsubscribe from the parse live event channel`,{err:e})}return e}).catch(e=>{R.default.warn(`Failed to create live query subscription`,{err:e})}),()=>{a=!0;try{i&&typeof i.unsubscribe==`function`&&i.unsubscribe()}catch(e){R.default.warn(`Could not unsubscribe from the parse live event channel`,{err:e})}}})}function*J5({className:e,listenOnArray:t,queryModifierFunc:n,handleEventGenerator:r}){let i=yield P(aPe,{className:e,listenOnArray:t,queryModifierFunc:n});try{for(;;)yield P(r,yield w(i))}finally{try{(yield cn())&&i.close()}catch(e){R.default.error(`Error canceling handleEventChannelEvent`,e)}}}async function oPe(e){let{data:t,error:n}=await QF.mutate({mutation:$we,fetchPolicy:`no-cache`,variables:{propertyIds:e}});if(n)throw R.default.error(`MergePropertyApi - Error merging properties`,e),n;let{MergeProperties:r}=t||{};return r}function*Y5(){let e=yield L(PC),t=yield L(),n=t.router.location&&t.router.location.pathname===Z.properties,r=Uo((0,gx.default)(e));r.length>0&&n&&(yield M(Dq(r[0].objectId,!0)))}function*sPe(e){yield M(oq(e.propertyId,e.req)),yield M(Sq())}var cPe=e=>e&&e.length&&!e.length===0;function*lPe(e){yield M(pq({mode:1}));let{idArray:t}=e;try{if(!cPe(t)){try{let e=yield P(oPe,t);yield M(gq(e)),yield M(ZP(`propertyMerge`,{force:!0})),yield P(iPe,!0),yield M(pq({hideMsg:!1,isOpen:!1,selected:[],mode:0})),yield M(Pq([])),yield M(yq(e.objectId)),yield M($P(`merge_property_search`,``)),dpe()}catch(e){yield M(_q(e)),yield M(pq({hideMsg:!1,mode:0}))}return}yield M(pq({hideMsg:!1,isOpen:!1,selected:[],mode:0})),yield M($P(`merge_property_search`,``))}catch(e){R.default.error(`mergeSaga`,e),yield M(pq({mode:0}))}}function*uPe(e){try{let t=yield P(sP,e.propertyId,{noMerge:!0});yield M(oq(e.propertyId,t))}catch(e){R.default.error(`noMergeSaga`,e)}}function*dPe({mode:e,formData:t}){let n=yield L(EC),r=U1(t,(yield L(nw(t.objectId)))||{});if(e===`new`)try{yield M(dF(!0,u_.LOADING_MODAL,{}));let e=yield P(sP,t.objectId,r,n);yield M(QP(`properties`,e.objectId,e)),yield M(dF(!1,u_.LOADING_MODAL,{})),yield M(yq(e.objectId)),Lv(e.objectId)}catch(e){R.default.error(`newEditPropertySaga - new`,e.message),as(e)===`InvalidPlanError`?(yield M(dF(!1,u_.LOADING_MODAL,{})),yield M(GP())):(yield M(dF(!1,u_.LOADING_MODAL,{})),yield M(dF(!0,u_.CREATE_PROPERTY_ERROR_MODAL,{})))}if(e===`edit`)try{let e=yield L(nw(t.objectId));yield M(dF(!0,u_.LOADING_MODAL,{}));let n=yield P(sP,t.objectId,r);yield M(QP(`properties`,n.objectId,n)),yield M(dF(!1,u_.LOADING_MODAL,{})),yield M(yq(n.objectId)),JSON.stringify(e.address)!==JSON.stringify(r.address)&&Rv(n.objectId)}catch(e){R.default.error(`newEditPropertySaga - edit`,e),yield M(dF(!1,u_.LOADING_MODAL,{})),yield M(dF(!0,u_.EDIT_PROPERTY_ERROR_MODAL,{}))}}function*X5({propertyId:e,tags:t}){try{let n=yield P(sP,e,{tags:t});yield M(QP(`properties`,n.objectId,n))}catch{R.default.error(`Error updating property tags`,e,t)}}function*fPe({propertyId:e}){try{yield P(sP,e,{deleted:!0}
2962),yield M(uq(e))}catch(t){R.default.error(`Error deleting property`,t);try{yield M(dq(e,JSON.parse(t.message).localizedMessage))}catch{yield M(dq(e,U(`properties.delete_fail_property`)))}}}function*pPe(){yield Ee(qT,Y5),yield Ee(_E,Y5),yield Ee(GT,fPe),yield Ee(UT,sPe),yield Ee(XT,lPe),yield Ee(tE,uPe),yield Ee(oE,dPe),yield We(eE,X5),yield We(eE,function*(e){yield Jr(200),yield P(X5,e)})}var mPe=F` 2963 query PartnerPropertyIds($id: String!) { 2964 PartnerPropertyIds(id: $id) { 2965 results { 2966 id 2967 partner 2968 partnerPropertyId 2969 } 2970 } 2971 } 2972`,hPe=async e=>{try{return(await QF.query({query:mPe,variables:{id:e},fetchPolicy:`no-cache`})).data.PartnerPropertyIds}catch(e){return R.default.error(`getPartnerPropertyIds api error :${e}`),e.apiError=!0,e}},gPe=async()=>{try{let e=await QF.query({query:TTe,variables:{},fetchPolicy:`no-cache`});if(e.data.getIcalsWithConnectionIssues?.error)throw e.data.getIcalsWithConnectionIssues.error;return e.data.getIcalsWithConnectionIssues}catch(e){return R.default.error(`getIcalsWithConnectionIssues api error :${e}`),e.apiError=!0,e}};function*_Pe(e){let{results:t}=yield P(hPe,e);yield M(Aq({accounts:(0,If.default)((0,xo.default)(t,e=>e.partner),(e,t)=>(e[t.id]||(e[t.id]={...t,objectId:t.id}),e),{}),isLoadingAccounts:!1}))}function*vPe(e){R.default.info(`setInitIcalSaga`,e);try{yield oi(_Pe,e.property)}catch(e){R.default.error(`setInitIcalSaga`,e)}}function*yPe(){try{let e=yield P(gPe);if(e.apiError)throw e;e.result?.length>0&&(yield M(Nq({val:e.result})))}catch(e){R.default.error(`getIcalWithConnectionIssuesSaga`,e)}}function*bPe(){yield We(rE,vPe),yield We(iE,yPe)}function xPe(e,t){return(0,If.default)({...e,...t},(e,t,n)=>{let r={};return t&&(r[n]=t),{...e,...r}},{})}function SPe(e,t){return(0,Ux.default)(e).length>0?xPe(t,e):{}}function*CPe(e,t){let n=yield L(EC);setTimeout(()=>{(0,xc.default)(e,(e,r)=>{t[r]&&e!==t[r]&&(r===`propertyId`&&Uv(t[r]),r===`checklistId`&&(0,xc.default)((0,sQ.default)((0,gx.default)(t[r]),(0,gx.default)(e)),e=>{Wv(e)}),r===`cleaners`&&(0,xc.default)((0,sQ.default)((0,Ux.default)(t[r]),(0,Ux.default)(e)),e=>{e===n?Gv():Vv()}))})})}function*wPe(e=[]){let t=yield L(WC);if((e||[]).length===0)return null;let n=e&&e[0],{title:r}=n&&t[n]||{};return r&&r+(e.length>1?` + ${e.length-1}`:``)||``}function*Z5(e,t){R.default.info(`Job request flushUpdate -pre`,{changeSet:e,source:t});let n=yield L(hJ),r={...n};e.cleaners&&(r.cleaners=SPe(e.cleaners,r.cleaners));let i=e.checklistId||r.checklistId||[];e.checklistId&&(r.checklistId=i);let a=e.skills||r.skills||[];e.skills&&(r.skills=a),r.defaultJobTitle=yield P(wPe,i);let o={...r,...(0,Pf.default)(e,[`cleaners`,`checklistId`,`skills`])};yield oi(CPe,n,o),yield M(LK(o))}function*Q5(e,t){let n=[];n=e?[e,{id:e,metaval:t}]:[void 0,void 0],yield M(IK(...n))}var TPe=F` 2973 mutation createStripeSetupIntentMutation { 2974 createStripeSetupIntent { 2975 id 2976 clientSecret 2977 } 2978 } 2979`,EPe=F` 2980 mutation createStripeCustomerMutation($stripePaymentMethod: String!) { 2981 createStripeCustomer(stripePaymentMethod: $stripePaymentMethod) { 2982 id 2983 description 2984 email 2985 defaultSource 2986 defaultPaymentMethod 2987 cards 2988 bankAccounts 2989 } 2990 } 2991`,DPe=F` 2992 mutation addStripeCustomerPaymentMethodMutation( 2993 $stripePaymentMethod: String 2994 $setAsDefault: Boolean 2995 ) { 2996 addStripeCustomerPaymentMethod( 2997 stripePaymentMethod: $stripePaymentMethod 2998 setAsDefault: $setAsDefault 2999 ) { 3000 id 3001 description 3002 email 3003 defaultSource 3004 defaultPaymentMethod 3005 cards 3006 bankAccounts 3007 } 3008 } 3009`,OPe=F` 3010 mutation removeStripeCustomerPaymentMethodMutation($stripePaymentMethodId: String) { 3011 removeStripeCustomerPaymentMethod(stripePaymentMethodId: $stripePaymentMethodId) { 3012 id 3013 description 3014 email 3015 defaultSource 3016 defaultPaymentMethod 3017 cards 3018 bankAccounts 3019 } 3020 } 3021`,kPe=F` 3022 mutation createStripeCustomerMutation($stripeSourceToken: String!) { 3023 createStripeCustomer(stripeSourceToken: $stripeSourceToken) { 3024 id 3025 description 3026 email 3027 defaultSource 3028 defaultPaymentMethod 3029 cards 3030 bankAccounts 3031 } 3032 } 3033`,APe=F` 3034 mutation addStripeCustomerSourceMutation($stripeSourceToken: String) { 3035 addStripeCustomerSource(stripeSourceToken: $stripeSourceToken) { 3036 id 3037 description 3038 email 3039 defaultSource 3040 defaultPaymentMethod 3041 cards 3042 bankAccounts 3043 } 3044 } 3045`,jPe=F` 3046 mutation removeStripeCustomerSourceMutation($stripeSourceId: String) { 3047 removeStripeCustomerSource(stripeSourceId: $stripeSourceId) { 3048 id 3049 description 3050 email 3051 defaultSource 3052 defaultPaymentMethod 3053 cards 3054 bankAccounts 3055 } 3056 } 3057`,MPe=F` 3058 mutation createStripeCustomerMutation($plaidPublicToken: String!, $plaidAccountId: String!) { 3059 createStripeCustomer(plaidPublicToken: $plaidPublicToken, plaidAccountId: $plaidAccountId) { 3060 id 3061 description 3062 email 3063 defaultSource 3064 defaultPaymentMethod 3065 cards 3066 bankAccounts 3067 } 3068 } 3069`,NPe=F` 3070 mutation addStripeCustomerSourceMutation($plaidPublicToken: String!, $plaidAccountId: String!) { 3071 addStripeCustomerSource(plaidPublicToken: $plaidPublicToken, plaidAccountId: $plaidAccountId) { 3072 id 3073 description 3074 email 3075 defaultSource 3076 defaultPaymentMethod 3077 cards 3078 bankAccounts 3079 } 3080 } 3081`,PPe=F` 3082 query hostStripeStatus { 3083 hostStripeStatus { 3084 userId 3085 active 3086 defaultPaymentMethodExists 3087 } 3088 } 3089`,FPe=F` 3090 query serviceProviderStripeStatusQuery { 3091 serviceProviderStripeStatus { 3092 userId 3093 active 3094 } 3095 } 3096`,IPe=F` 3097 query getStripeCustomerQuery { 3098 stripeCustomer { 3099 id 3100 description 3101 email 3102 defaultSource 3103 defaultPaymentMethod 3104 cards 3105 bankAccounts 3106 } 3107 } 3108`,LPe=class{constructor(e,t,n,r,i,a,o){this.id=e,this.brand=t,this.country=n,this.expMonth=r,this.expYear=i,this.funding=a,this.last4=o}},RPe=class{constructor(e,t,n,r,i,a,o,s){this.id=e,this.country=t,this.currency=n,this.routingNumber=r,this.accountHolderName=i,this.accountHolderType=a,this.bankName=o,this.last4=s}},zPe=class{constructor(e,t,n,r,i,a,o){this.stripeId=e,this.stripeDescription=t,this.stripeEmail=n,this.defaultSource=r,this.defaultPaymentMethod=i,this.cards=a,this.bankAccounts=o}},BPe=class{constructor(e,t){this.id=e,this.clientSecret=t}};function VPe(e){return new LPe(e.id,e.card.brand,e.card.country,e.card.exp_month,e.card.exp_year,e.card.funding,e.card.last4)}function HPe(e){return new RPe(e.id,e.country,e.currency,e.routing_number,e.account_holder_name,e.account_holder_type,e.bank_name,e.last4)}function $5(e){return new zPe(e.id,e.description,e.email,e.defaultSource,e.defaultPaymentMethod,e.cards?e.cards.map(e=>new VPe(e)):null,e.bankAccounts?e.bankAccounts.map(e=>new HPe(e)):null)}function UPe(e){return new BPe(e.id,e.clientSecret)}var e7=async()=>{let{name:e}=e7;try{return(await QF.query({query:PPe,fetchPolicy:`no-cache`})).data}catch(t){return R.default.error(e,t),t}},t7=async()=>{let{name:e}=t7;try{return(await QF.query({query:FPe,fetchPolicy:`no-cache`})).data?.serviceProviderStripeStatus?.active}catch(t){return R.default.error(e,t),t}},n7=async()=>{let{name:e}=n7;try{let e=await QF.query({query:IPe,fetchPolicy:`no-cache`});if(!e.data.stripeCustomer)throw e;return $5(e.data.stripeCustomer)}catch(t){return R.default.error(e,t),t.apiError=!0,t}},r7=async()=>{let{name:e}=r7;try{return UPe((await QF.mutate({mutation:TPe,fetchPolicy:`no-cache`})).data.createStripeSetupIntent)}catch(t){return R.default.error(e,t),t.apiError=!0,t}},i7=async e=>{let{name:t}=i7;try{return $5((await QF.mutate({mutation:EPe,variables:{stripePaymentMethod:e},fetchPolicy:`no-cache`})).data.createStripeCustomer)}catch(e){return R.default.error(t,e),e.apiError=!0,e}},a7=async(e,t)=>{let{name:n}=a7;try{return $5((await QF.mutate({mutation:DPe,variables:{stripePaymentMethod:e,setAsDefault:t},fetchPolicy:`no-cache`})).data.addStripeCustomerPaymentMethod)}catch(e){return R.default.error(n,e),e.apiError=!0,e}},o7=async e=>{let{name:t}=o7;try{return $5((await QF.mutate({mutation:OPe,variables:{stripePaymentMethodId:e},fetchPolicy:`no-cache`})).data.removeStripeCustomerPaymentMethod)}catch(e){return R.default.error(t,e),e.apiError=!0,e}},s7=async e=>{let{name:t}=s7;try{return $5((await QF.mutate({mutation:kPe,variables:{stripeSourceToken:e},fetchPolicy:`no-cache`})).data.createStripeCustomer)}catch(e){return R.default.error(t,e),e.apiError=!0,e}},c7=async e=>{let{name:t}=c7;try{return $5((await QF.mutate({mutation:APe,variables:{stripeSourceToken:e},fetchPolicy:`no-cache`})).data.addStripeCustomerSource)}catch(e){return R.default.error(t,e),e.apiError=!0,e}},l7=async e=>{let{name:t}=l7;try{return $5((await QF.mutate({mutation:jPe,variables:{stripeSourceId:e},fetchPolicy:`no-cache`})).data.removeStripeCustomerSource)}catch(e){return R.default.error(t,e),e.apiError=!0,e}},u7=async(e,t)=>{let{name:n}=u7;try{return $5((await QF.mutate({mutation:MPe,variables:{plaidPublicToken:e,plaidAccountId:t},fetchPolicy:`no-cache`})).data.createStripeCustomer)}catch(e){return R.default.error(n,e),e.apiError=!0,e}},d7=async(e,t)=>{let{name:n}=d7;try{return $5((await QF.mutate({mutation:NPe,variables:{plaidPublicToken:e,plaidAccountId:t},fetchPolicy:`no-cache`})).data.addStripeCustomerSource)}catch(e){return R.default.error(n,e),e.apiError=!0,e}},WPe=F` 3109 mutation DeleteDraftJob($id: String!) { 3110 DeleteDraftJob(id: $id) { 3111 error 3112 message 3113 } 3114 } 3115`,f7=F` 3116 mutation UpdateDraftJob( 3117 $eventInput: JobRequestInput! 3118 $eventMetadataInput: JobEventMetadataInput! 3119 ) { 3120 UpdateDraftJob(eventInput: $eventInput, eventMetadataInput: $eventMetadataInput) { 3121 error 3122 message 3123 } 3124 } 3125`,GPe=F` 3126 query LoadADraftJob($id: String!) { 3127 LoadADraftJob(id: $id) { 3128 error 3129 message 3130 result { 3131 id 3132 status 3133 lastUpdatedAt 3134 successfulMutations 3135 failedMutations 3136 ...propertyDetails 3137 checklists { 3138 ...checklistFields 3139 } 3140 progress { 3141 ...progressSummaryFields 3142 } 3143 cleaners { 3144 ...cleanerFields 3145 } 3146 status 3147 ownerRole 3148 job { 3149 ...jobFields 3150 } 3151 sender { 3152 ...senderFields 3153 } 3154 booking { 3155 ...bookingFields 3156 } 3157 permittedFeatures 3158 skillRequirements { 3159 skillId 3160 dependency 3161 title 3162 } 3163 schedulingDate 3164 } 3165 } 3166 } 3167 3168 ${lK} 3169 ${dK} 3170 ${sK} 3171 ${cK} 3172 ${oK} 3173 ${pK} 3174 ${cZ} 3175 ${oZ} 3176 ${sZ} 3177 ${uZ} 3178 ${fK} 3179 ${dZ} 3180`,KPe=async e=>{try{let t=(await QF.mutate({mutation:WPe,variables:{id:e},fetchPolicy:`no-cache`})).data.DeleteDraftJob;if(t.error)throw Error(t.message);return t}catch(e){return R.default.error(`deleteDraftJobApi ${e}`),e.apiError=!0,e}},qPe=async({id:e,job:t})=>{try{let n=(await QF.mutate({mutation:f7,variables:{eventMetadataInput:hZ(`JOB_EDIT`),eventInput:{...gZ(t),id:e}},fetchPolicy:`no-cache`})).data.UpdateDraftJob;if(n.error)throw Error(n.message);return n}catch(e){return R.default.error(`updateDraftJobApi ${e}`),e.apiError=!0,e}},JPe=async({id:e,schedulingDate:t})=>{try{let n=(await QF.mutate({mutation:f7,variables:{eventMetadataInput:hZ(`JOB_EDIT`),eventInput:{schedulingDate:t,id:e}},fetchPolicy:`no-cache`})).data.UpdateDraftJob;if(n.error)throw Error(n.message);return n}catch(e){return R.default.error(`updateDraftJobSchedulingDateApi ${e}`),e.apiError=!0,e}},YPe=async e=>{try{let t=(await QF.query({query:GPe,variables:{id:e},fetchPolicy:`no-cache`})).data.LoadADraftJob;if(t.error)throw Error(t.message);return new Bs(t.result)}catch(e){return R.default.error(`getDraftJobByIdApi ${e}`),e.apiError=!0,e}};function p7(e){return e.getHours()*60+e.getMinutes()}function*XPe(e,t){e?.jobId&&(yield M(QP(`jobRequests`,e.jobId,e)),yield M(eF(`cleanerRequest`,e.jobId,!0))),yield M(ZP(`jobRequestSubmit`,{force:!0})),t&&t.cancelJobRequest&&(yield M(eF(`jobRequests`,t.cancelJobRequest,!0)),yield M(eF(`cleanerRequest`,t.cancelJobRequest,!0)));let n=yield oi(ZPe,t.property);yield w(e=>QPe(e)&&!(0,G.default)(e,[`meta`,`triggeredByScript`]));let r=n.isRunning();yield zn(n),r&&(yield oi(q5))}function*ZPe(e){yield P(q5);let t=yield L(QC),n=(0,G.default)(t,[`userData`,`subscription`,`allowedJobsMonth`]),r=(0,G.default)(t,[`userData`,`subscription`,`jobsUsedMonth`],0),i=yield L(FC),{ownerRole:a}=e||{};(yield L(yJ))!==l_.normal||lc(a,i)||n>0&&n-r<3&&(yield M(dF(!1,`jobrequest`,{triggeredByScript:!0})),r>=n?yield M(oz(`default`,{defaultKind:`jobrequestlimitreached`})):yield M(oz(`default`,{defaultKind:`yousend`})))}function QPe(e){return e.type===`GLOBAL_SET_MODAL`&&!e.value&&e.id===`jobrequest`&&!e.meta?.hiddenModalMode}function*m7(e,t,n){try{yield M(uF(sJ,1));let r=(0,pF.default)(e,t),i;if(!n)i=yield P(pbe,r);else if(n){let t=yield L(cB);i=yield P(mbe,{id:e.prevJobRequestId,job:r,adminId:t?.adminUserId}),yield Jr(1e3)}if(Pu(i,`JOB_ALREADY_SCHEDULED`))return yield P(TP,r.eventId),yield Q5(`job_already_scheduled`),yield M(uF(sJ,3));if(Pu(i,`CANNOT_SEND_JOB_TO_COMMUNITY_SP_FROM_SAMPLE_PROPERTY`))return yield Q5(`community_service_provider_sample_property_error`),yield M(uF(sJ,3));let a=us(i);if(a?.status===`ERROR`)return yield Q5(`error_handled_from_api`,a.message),yield M(uF(sJ,3));yield M(uF(sJ,2)),yield Q5(`success`),Dpe(e.checklist[0],e.selectedCleaners.length,(0,z.default)(e.day).diff((0,z.default)(),`days`),(0,z.default)(e.endDay).diff((0,z.default)(),`days`),e.eventId,e.checklist.length,e.checklist.join(`,`),n,e.jobStartTimeType),e.riOption===f_.yes&&(yield M(qK(i.transactionId))),yield P(XPe,yield P(uQ,i.transactionId),r)}catch(e){R.default.error(`submitSaga`,e),yield Q5(`error`),yield M(uF(sJ,3))}return null}function*$Pe({prevJobRequestId:e,selectedCleaners:t,property:n}){try{Wpe(),yield M(uF(sJ,1));let r=yield P(hbe,{id:e,serviceProviderIds:t,propertyId:n.objectId});if(Pu(r,`CANNOT_SEND_JOB_TO_COMMUNITY_SP_FROM_SAMPLE_PROPERTY`))return yield Q5(`community_service_provider_sample_property_error`),yield M(uF(sJ,3));let i=us(r);if(i?.status===`ERROR`)return yield Q5(`error_handled_from_api`,i.message),yield M(uF(sJ,3));yield M(uF(sJ,2)),yield Jr(500),yield M(dF(!1,`jobrequest`,{})),yield Jr(100),yield M(YJ(r.transactionId))}catch(e){R.default.error(`addMoreFlow - error`,e),yield Q5(`error`),yield M(uF(sJ,3))}return null}function*eFe({prevJobRequestId:e,selectedCleaners:t,offeredPrice:n,note:r}){try{yield M(uF(sJ,1));let i=us(yield P(gbe,{id:e,recipientIds:t,offeredPrice:n,note:r}));if(i?.status===`ERROR`)return yield Q5(`error_handled_from_api`,i.message),yield M(uF(sJ,3));yield M(uF(sJ,2)),yield Jr(500),yield M(dF(!1,`jobrequest`,{})),yield Jr(1e3),yield M(vY(Qa.REFRESH_LV))}catch(e){R.default.error(`forward flow - error`,e),yield Q5(`error`),yield M(uF(sJ,3))}return null}function*tFe(e,t){try{yield M(uF(sJ,1));let n=(0,pF.default)(e,t),r=yield P(qPe,{id:e.prevJobRequestId,job:n});yield Jr(1e3);let i=us(r);if(i?.status===`ERROR`)return yield Q5(`error_handled_from_api`,i.message),yield M(uF(sJ,3));yield M(vY(Qa.REFRESH_LV)),yield M(uF(sJ,2)),yield Q5(`success`),n.eventId&&(yield Jr(1e3),yield P(TP,n.eventId))}catch(e){R.default.error(`editDraftJobFlow - error`,e),yield Q5(`error`),yield M(uF(sJ,3))}return null}function nFe(e){return{jobStartTimeType:e.jobStartTimeType,startTime:e.day?p7(e.day.toDate()).toString():void 0,endTime:e.endDay?p7(e.endDay.toDate()).toString():void 0,duration:e.duration,message:e.note,title:e.title||e.defaultJobTitle,offeredPrice:e.offeredPrice?e.offeredPrice:void 0,cleaners:e.selectedCleaners,jobType:e.jobType||void 0,isForwardingEnabled:e.isForwardingEnabled}}function rFe(e,t={}){return!!t&&!!e&&t.defaultJob===e}function*iFe(e,t){R.default.info(`updatePropertyDefaultChecklist`,{property:e,checklistId:t}),yield P(sP,e.objectId,{defaultJob:t});let n={...e,defaultJob:t};yield M(QP(`properties`,e.objectId,n))}function*aFe(e){let t=nFe(e),n;R.default.info(`saveJobRequestPrefillFlow - input`,t,e);try{yield M(uF(sJ,1));let r=e.checklist[0],i=yield P(aP,r,{defaultSettings:t});yield M(QP(`jobs`,i.objectId,i));let a=rFe(r,e.property)&&!e.isDefault,o=e.isDefault===!0;(a||o)&&(o&&(n=r),R.default.info(`saveSaga default settings - save property`,{wantsToMakeItDefault:o,wantsToDelete:a,propertyUpdateVal:n}),yield P(iFe,e.proper
3180ty,n)),yield Q5(`success`),yield M(uF(sJ,2))}catch(e){R.default.error(`saveJobRequestPrefillFlow - default settings`,e),yield Q5(`error`),yield M(uF(sJ,3))}}function*oFe({data:e}){let{ownerRole:t}=e.property||{},n=yield L(FC);if(!yC({propertyOwner:t,user:n}))return yield M(dF(!0,u_.CANNOT_SEND_PROPERTY_JOBS_PERMISSION,{})),yield M(dF(!1,`jobrequest`,{})),!1;if(lc(t,n))return!0;let r=n.subscription;return r.allowedJobsMonth>0&&r.jobsUsedMonth>=r.allowedJobsMonth?(yield M(oz(`default`,{defaultKind:`jobrequestlimitalreadyreached`})),yield M(dF(!1,`jobrequest`,{})),!1):!0}var sFe=({startupData:e,jobRequestData:t})=>{let n=t?.cleaners,r=(0,gx.default)(n);return e?.mode===l_.sendmore?r.filter(e=>!e.isDisabled).map(e=>e.userData.objectId):(0,Ux.default)(n)},cFe=({startupData:e,jobRequestData:t,properties:n})=>{let{tasks:r}=t,i=r||[],{data:a}=e,o;a.sourceProblems&&a.sourceProblems.sourceJobSnapshotId&&(o=a.sourceProblems.sourceJobSnapshotId);let s={prevJobRequestId:e?.prevJobRequestId,property:n[t?.propertyId],tasks:i,jobStartTimeType:t?.jobStartTimeType,checklist:t?.checklistId,skills:t?.skills,jobType:t?.jobType,offeredPrice:t?.price,isDefault:t?.isDefault,offeredPriceCurrency:t?.currency,note:t?.message,title:t?.title||t?.defaultJobTitle,isForwardingEnabled:t?.isForwardingEnabled,selectedCleaners:sFe({startupData:e,jobRequestData:t}),cancelJobRequest:e?.prevJobRequestId,eventId:e?.eventId,duration:t?.duration,sourceJobSnapshotId:o,problemIds:e?.data?.sourceProblems?.problemIds,riOption:t?.riOption};return t?.jobStartTimeType===`fixed`?{...s,day:t?.startTime?Wc(t?.startTime):void 0}:{...s,day:t?.startTime?Wc(t?.startTime):void 0,endDay:t?.endTime?Wc(t?.endTime):void 0}};function*lFe(){let e=yield L(hJ),t=yield L(PC),n=yield L(yJ),r=yield L(gJ);R.default.info(`submitSaga`,{mode:n,properties:t,jobRequestData:e});let i=cFe({startupData:r,jobRequestData:e,properties:t}),a=[`property`,`duration`,`day`,`endDay`,`checklist`,`skills`,`offeredPrice`,`selectedCleaners`,`offeredPriceCurrency`,`note`,`jobType`,`title`,`isForwardingEnabled`,`tasks`,`eventId`,`jobStartTimeType`];if(n===l_.normal){if(!(yield oFe({data:i})))return;yield m7(i,a,!1);return}if(n===l_.edit){yield m7(i,[...a,`cancelJobRequest`,`eventId`,`sourceJobSnapshotId`,`problemIds`],!0);return}if(n===l_.problemSchedule){yield m7(i,[...a,`cancelJobRequest`,`eventId`,`prevJobRequestId`,`tasks`],!1);return}if(n===l_.draftJobEdit){yield tFe(i,[...a,`eventId`,`sourceJobSnapshotId`,`problemIds`]);return}if(n===l_.sendmore&&i.prevJobRequestId){yield $Pe(i);return}if(n===l_.forwarding&&i.prevJobRequestId){yield eFe(i);return}if(n===l_.prefill){yield aFe(i);return}R.default.error(`submitSaga -- unknown flow ${n}`,i)}function*uFe(e){if(e.meta.action===`click`&&e.meta.sender&&(yield Q5(e.meta.sender)),e.meta.action===`changeStartTime`&&(yield P(Z5,{startTime:e.meta.startTime})),e.meta.action===`changeEndTime`&&(yield P(Z5,{endTime:e.meta.endTime})),e.meta.action===`changeJobStartTimeType`){let t=yield L(hJ),n={jobStartTimeType:e.meta.jobStartTimeType};e.meta.jobStartTimeType===`FLEXIBLE`&&!t.endTime&&t.startTime&&(n.endTime=(0,z.default)(t.startTime).clone().add(1,`day`)),yield P(Z5,n)}if(e.meta.action===`typemessage`&&(yield P(Z5,{message:e.meta.value})),e.meta.action===`setcleaner`){let t=(0,vc.default)(e.meta.contact)?e.meta.contact.userData.objectId:e.meta.contact,n={};n[t]=e.meta.set?e.meta.contact:void 0,yield P(Z5,{cleaners:n})}if(e.meta.action===`addTaskForm`){let{tasks:t,tempTaskImages:n}=yield L(hJ);t||(t=[]);let r={};r.id=e.meta.addTaskForm.id,r.note=e.meta.addTaskForm.task,r.title=e.meta.addTaskForm.title,r.pictureIdentifiers=n,yield P(Z5,{tasks:[...t,r],tempTaskImages:[]})}if(e.meta.action===`mapProblemsToTask`){let{tasks:t}=(yield L(hJ))||[];if(e.meta.set){let n={},{id:r,task:i,title:a,pictureIdentifiers:o,isProblem:s}=e.meta.mapProblemsToTask;n.id=r,n.note=i,n.title=a,n.pictureIdentifiers=o,n.isProblem=s,t=[...t,n]}else t=t.filter(t=>t.id!==e.meta.mapProblemsToTask.id);yield P(Z5,{tasks:t})}if(e.meta.action===`addTaskPic`){let t=e.meta.addTaskPic;R.default.info(`JobRequestSagas - uploadTaskPic`,t);try{let{tempTaskImages:e}=yield L(hJ),n=yield P(tP,t);R.default.info(`uploadPic - res`,n),yield P(Z5,{tempTaskImages:[...e,n.pictureUrl]})}catch(e){R.default.error(`uploadPic - error`,e),yield M(uF(d_,3))}}if(e.meta.action===`cancelTaskForm`){let{tempTaskImages:e}=yield L(hJ);e=[],yield P(Z5,{tempTaskImages:e})}if(e.meta.action===`deleteTaskForm`){let{tasks:t}=yield L(hJ);yield P(Z5,{tasks:t.filter(t=>t.title!==e.meta.deleteTaskTitle||t.note!==e.meta.deleteTaskDescription)})}if(e.meta.action===`setcleaners`&&(yield P(Z5,{cleaners:e.meta.contacts})),e.meta.action===`changeDuration`&&(yield P(Z5,{duration:e.meta.duration})),e.meta.action===`clickdefaultchange`&&(yield P(Z5,{isDefault:e.meta.val})),e.meta.action===`clickback`&&(yield Q5(e.meta.prevSection.id)),e.meta.action===`setprice`&&(yield P(Z5,{price:e.meta.value})),e.meta.action===`clickreset`){let t={};e.meta.section===`time`&&(t.time=void 0,t.day=void 0,t.endDay=void 0,t.startTime=(0,z.default)().startOf(`day`).add(660,`minutes`),t.endTime=void 0,t.duration=`60`,t.j
3180obStartTimeType=`fixed`),e.meta.section===`cleaners`&&(t.cleaners={}),e.meta.section===`price`&&(t.price=0),e.meta.section===`message`&&(t.message=``),e.meta.section===`title`&&(t.title=``),yield P(Z5,t)}if(e.meta.action===`clickproperty`){let t=e.meta.id,n=yield L(hJ),r=yield L(nw(t)),{startTime:i,endTime:a}=n;yield P(Z5,{propertyId:t,startTime:(0,z.default)(i).tz(r.timeZone),endTime:(0,z.default)(a).tz(r.timeZone),proMarketProperty:r.proMarketProperty}),r.proMarketProperty&&(yield M(GK((yield P(e7)).hostStripeStatus?.defaultPaymentMethodExists))),yield oi(w7,[`propertyId`,`startTime`,`endTime`,`isForwardingEnabled`],{},[`propertyId`])}e.meta.action===`next`&&(yield Q5(e.meta.nextSection.id))}function*dFe({checklistId:e}){let t=yield L(Uge),n=t&&t||[];R.default.info(`JobRequestSagas - Select checklist existingChecklistIds`,n);let r=n.find(t=>e===t)?n.filter(t=>e!==t):[...n,e];yield P(Z5,{checklistId:r}),r&&r.length>0&&(yield oi(w7,[`title`,`propertyId`,`checklistId`,`tasks`,`jobType`,`isForwardingEnabled`],{noPropertyRefetch:!0,noPrefill:!0}))}function*fFe({skillId:e}){let t={skillId:e,dependency:Wa.DEPENDENCY_STATUS.REQUIRED},n=(yield L($ge))||[];R.default.info(`JobRequestSagas - Select checklist existingChecklistIds`,n),yield P(Z5,{skills:n.find(t=>t.skillId===e)?n.filter(t=>t.skillId!==e):[...n,t]})}function*pFe({title:e}){yield P(Z5,{title:e})}function*mFe({jobType:e}){yield P(Z5,{jobType:e})}function*hFe({isForwardingEnabled:e}){yield P(Z5,{isForwardingEnabled:e})}function*gFe({taskTitle:e}){yield P(Z5,{taskTitle:e})}function*_Fe({taskDescription:e}){yield P(Z5,{taskDescription:e})}function*vFe({jobRequest:e,problem:t,problemStatus:n,sourceJob:r,skipJobModalOpen:i}){try{let{jobId:a,propertyId:o,sourceProblems:s}=e,c;s&&s.sourceJobSnapshotId&&(c=s.sourceJobSnapshotId);let l={id:r?c:a,problemIds:[t.id],status:n,propertyId:o};yield M(uF(sJ,2));let u=yield P(_be,l);if(!u)throw Error(`updateProblemStatusSaga - error`);if(yield M(XJ()),u.name&&(yield M(X_e(u))),i)return;c?yield M(YJ(a)):yield M(YJ(u.transactionId))}catch(e){window.alert(`Oops Something Went Wrong! Please Try again`),R.default.error(`updateProblemStatusSaga ${e}`)}}function*yFe(e){let{id:t,closeModalFunc:n,setSuccessFunc:r,setErrorFunc:i,eventId:a}=e;try{let e=yield P(KPe,t);if(e.apiError)throw e;yield M(vY(Qa.REFRESH_LV)),r(),n(),a&&(yield Jr(1e3),yield P(TP,a))}catch(e){R.default.error(`submitSaga`,e),i(),n()}return null}function*bFe(e){let{id:t,schedulingDate:n,closeModalFunc:r,setSuccessFunc:i,setErrorFunc:a,eventId:o,now:s=!1}=e;try{let e=yield P(JPe,{id:t,schedulingDate:n});if(e.apiError)throw e;yield M(vY(Qa.REFRESH_LV)),i(),r(),o&&s&&(yield Jr(1e3),yield P(TP,o))}catch(e){R.default.error(`submitSaga`,e),a(),r()}return null}function*xFe(e){if(!e)return R.default.info(`[validatePropertyForJobRequest] No propertyId provided, skipping validation`),!0;let t=(yield L(PC))[e];return!t||t.deleted?(R.default.warn(`[validatePropertyForJobRequest] Property deleted or missing:`,{propertyId:e,exists:!!t,deleted:t?.deleted}),!1):(R.default.info(`[validatePropertyForJobRequest] Property is valid:`,e),!0)}function*SFe(e){let{mode:t,data:n}=e,r=n?.propertyId;if(R.default.info(`[openJobRequestModalSafely] Opening job request modal:`,{mode:t,propertyId:r,source:e.source}),(0,eb.default)([l_.normal,l_.edit,l_.sendmore,l_.prefill],t)!==-1&&r){if(!(yield xFe(r))){R.default.warn(`[openJobRequestModalSafely] Validation failed, showing warning modal`),yield M(dF(!0,`warningdeletedproperty`));return}}else R.default.info(`[openJobRequestModalSafely] Skipping validation:`,{reason:r?`mode not in validation list`:`no propertyId`,mode:t});R.default.info(`[openJobRequestModalSafely] Opening modal (validation passed)`),yield M(dF(!0,`jobrequest`,e))}function*CFe(e){yield SFe(e.meta)}var h7=[`propertyId`,`proMarketProperty`,`checklistId`,`skills`,`jobStartTimeType`,`duration`,`startTime`,`endTime`,`currency`,`price`,`cleaners`,`title`,`message`,`isDefault`,`tasks`,`jobType`,`isForwardingEnabled`,`propertyOwnerPlanId`],g7={propertyId:OFe,checklistId:kFe},_7=e=>(0,z.default)(e).isValid(),v7={defaultMerger:(e,t)=>t,cleaners:(e,t)=>({...e,...t}),startTime:(e,t)=>
3180{if(_7(e)&&(0,Rf.default)(t))return Vc(e,t);if(_7(e)&&_7(t))return v7.defaultMerger(e,t);R.default.error(`â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸ï¸ï¸ 3181merger issue - startTime`,{oldVal:e,newVal:t},e.prototype,typeof e,typeof t)},endTime:(e,t)=>{if(_7(e)&&(0,Rf.default)(t))return Vc(e,t);if(_7(e)&&_7(t))return v7.defaultMerger(e,t)}};function wFe(e,t){return(0,If.default)(e,(e,n)=>((0,eb.default)(t,n.userData.objectId)!==-1&&!n.deleted&&(e[n.userData.objectId]=n),e),{})}function y7(e,t){return(0,If.default)(e,(e,n)=>{if(n.status!==`canceledByHost`){let r=n.id||n?.userData?.id;e[r]={...n,userData:{...n.userData,objectId:r},isExternal:(0,eb.default)(t,r)===-1}}return e},{})}function b7(e,{startTime:t,endTime:n}){return{...e,price:e.offeredPrice,startTime:t||e.startTime?Vc(t,e.startTime):e.startTime,endTime:n||e.endTime?Vc(n,e.endTime):e.endTime}}function TFe(e){let t=``;return e.mode===l_.normal&&(t=`new`),e.mode===l_.edit&&(t=`edit`),e.mode===l_.sendmore&&(t=`addmore`),e.mode===l_.forwarding&&(t=`forwarding`),e.mode===l_.prefill&&(t=`prefill`),e.source===`event`&&(t=`scheduleEvent`),t}function*x7(e){return Gl((yield L(nw(e)))?.countryCode)||`USD`}async function EFe(e){let t={};try{if(e&&(t=await dI(e)),t.apiError)throw t}catch(e){R.default.error(`[getOwnerSubscriptionApi]: Could not fetch plans ${e}`)}return t}function*DFe(e){let t=yield L(nw(e)),n=yield L(QC),r;return t&&n?.userData?.permissions?.defaultRole&&(r=n.userData.permissions.defaultRole===t.ownerRole?n?.userData?.subscription?.currentPlanId:(yield P(EFe,t.ownerRole))?.currentPlanId),r}function*OFe(e,t){let n={},r=`sync`,{propertyId:i}=e;if(!i)return n;let a=yield L(nw(i));if(!a)return n;n.proMarketProperty=!!a.proMarketProperty,n.proMarketProperty&&(yield M(GK((yield P(e7)).hostStripeStatus?.defaultPaymentMethodExists))),n.currency=e.currency||Gl(a.countryCode)||`USD`,n.propertyOwnerPlanId=yield P(DFe,i),yield oi(AFe,a);let o=a.defaultJob;return o&&!t.noPrefill&&(n.checklistId=[o]),!(0,G.default)(n,[`checklistId`,0])&&!(0,G.default)(e,[`checklistId`,0])&&(r=`async`),t.isReadOnly&&(r=`async`),t.noPropertyRefetch&&(r=!1),r===`sync`?yield P(S7,i,o):r===`async`&&(yield oi(S7,i,o)),R.default.info(`sendJobRequest - loadProperty`,{loadChecklistsVal:r}),n}function*kFe(e){let t={},n=(0,G.default)(e,[`checklistId`,0]);if(!n)return t;let r=(yield L(WC))[n];if(R.default.info(`sendJobRequest - loadChecklist`,{resolvedChecklist:r,dataInput:e,firstChecklistId:n}),r&&r.defaultSettings){e.jobStatus===W.StateAccepted&&(r.defaultSettings.cleaners=[]);let n=yield C7(b7(r.defaultSettings,{startTime:e.startTime,endTime:e.endTime}));t={...t,...n},R.default.info(`loadChecklist - defaulsettings`,r.defaultSettings,n)}return r||(t.checklistId=(e.checklistId||[]).filter(e=>e!==n)),(!(0,z.default)(t.startTime).isValid()||!(0,z.default)(t.endTime).isValid())&&R.default.error(`Invalid startTime / endTime from loadChecklist`,t),t}function*S7(e){try{yield M(uF(oJ,1));let t=(0,CR.default)(yield P(UN,e),`objectId`);return yield M(nF(`jobs`,t,!0)),t}catch(e){return R.default.error(`loadChecklists`,e),{}}finally{yield M(uF(oJ,0))}}function*AFe(e){try{yield M(RK([])),yield M(RK(yield P(qN,e)))}catch(e){R.default.error(`getCommunityCleaners`,e)}}function*jFe(e){let t=yield L(KC),n={};return(0,xc.default)(h7,r=>{e[r]&&(r===`cleaners`?n[r]=wFe(t,e[r]):n[r]=e[r])}),n}function*MFe(e,t){let{requestedCleaners:n,tasks:r,jobType:i,sourceProblems:a,jobStartTimeType:o,propertyId:s,status:c,isForwardingEnabled:l}=(0,w6.default)(yield L(qC),t),u=(0,CR.default)(n.map(e=>(e.isDisabled=!0,e)),`id`),d=yield L(_J),f={};if((0,xc.default)(h7,t=>{e[t]&&(t===`cleaners`?f[t]=y7(u,e[t]):f[t]=e[t])}),r){let e=r.filter(e=>e.isProblem);d?.length?f.tasks=d:e.length===r.length?f.tasks=e:f.tasks=r}else f.tasks=e.tasks||d;return f.proMarketProperty=!!(yield L(nw(s))).proMarketProperty,f.proMarketProperty&&(yield M(GK((yield P(e7)).hostStripeStatus?.defaultPaymentMethodExists))),f.jobType=i,f.jobStartTimeType=o,f.sourceProblems=a,f.jobStatus=c,f.isForwardingEnabled=l,f}function NFe(e){let{cleaners:t,jobType:n,jobStartTimeType:r,status:i}=e,a=(0,CR.default)(t,`id`),o={};return(0,xc.default)(h7,t=>{e[t]&&(t===`cleaners`?o[t]=a:o[t]=e[t])}),o.jobType=n,o.jobStartTimeType=r,o.jobStatus=i,o}function*PFe(e){try{let t=yield P(YPe,e),{requestedCleaners:n,tasks:r,jobType:i,jobStartTimeType:a,propertyId:o,status:s,checklists:c,skillRequirements:l,offeredPrice:u,offeredPriceCurrency:d,duration:f,propertyData:{timeZone:p}={},scheduledStartTime:m,scheduledEndTime:h,isForwardingEnabled:g}=t,_=yield L(KC),v=(0,H.default)(n,e=>({...e,contact:_[e.contactId]}));t.cleaners=(0,H.default)(v,e=>e.contact?.userData?.objectId);let y=(0,CR.default)((0,xo.default)(v,e=>!!e.contact).map(e=>(e.isDisabled=!0,e)),`id`),b=yield L(_J),x={};(0,xc.default)(h7,e=>{t[e]&&(e===`cleaners`?x[e]=y7(y,t[e]):x[e]=t[e])});let S=(0,H.default)(l,e=>({skillId:e.skillId,dependency:Wa.DEPENDENCY_STATUS.REQUIRED}));if(x.checklistId=c?.map(e=>e.id),x.message=t.note,x.skills=S,x.price=u,x.currency=d,x.duration=f.toString(),x.startTime=(0,z.default)(m).tz(p),x.endTime=(0,z.default)(h).tz(p),x.isForwardingEnabled=g,r){let e=r.filter(e=>e.isProblem);b.length?x.tasks=b:e.length===r.length?x.tasks=e:x.tasks=r}else x.tasks=t.tasks||b;return x.proMarketProperty=!!(yield L(nw(o))).proMarketProperty,x.proMarketProperty&&(yield M(GK((yield P(e7)).hostStripeStatus?.defaultPaymentMethodExists))),x.jobType=i,x.jobStartTimeType=a,x.jobStatus=s,x}catch(e){return R.default.error(`draftJobEditRequestMode - error`,e),{}}}function*C7(e,t,n,r){return t===void 0?yield P(jFe,e):n?yield PFe(t):r?yield NFe(e,t):yield MFe(e,t)}function*FFe(e,t,n){return g7[e]?yield g7[e](t,n):{}}function*IFe(e,t){let n=0,r={...e};for(;n<h7.length;){let e=h7[n],i=yield FFe(e,r,t),a=t.isReadOnly?{}:i;R.default.info(`resolvedData`,{key:e,resFinal:a,settings:t}),r={...r,...a},n+=1}return r}function LFe(e,t){let n=0,r={};for(;n<h7.length;){let i=h7[n];e[i]&&t[i]?r[i]=(v7[i]||v7.defaultMerger)(e[i],t[i]):r[i]=t[i]?t[i]:e[i],n+=1}return r}function*w7(e,t={},n){let r=yield L(gJ),i=yield L(hJ);R.default.info(`reloadSection - start`,{startupData:r,jobData:i,settings:t,whitelist:e});let a={cleaners:{},checklistId:[],...r?.data,...(0,pF.default)(i,e)};R.default.info(`reloadSection - preresolve`,a);let o=yield IFe(a,t);R.default.info(`reloadSection - premerge`,o);let s=LFe(a,o);n&&(s=(0,Pf.default)(s,n)),yield Z5(s,`reloadSection`)}function*RFe({data:e}){let t=e.data;yield M(sH()),yield M(uH()),yield M(yH()),R.default.info(`initJobRequestSaga - open`,{data:e});
3181let n=e&&e.checklistObj&&e.checklistObj.defaultSettings;if(e.mode===l_.prefill){let r=yield P(x7,t.propertyId);n&&(t={...t,...b7(e.checklistObj.defaultSettings,{})}),t.currency=r,yield Q5(`time`)}else e.mode===l_.sendmore||e.mode===l_.forwarding?yield Q5(`cleaners`):(e.mode===l_.edit||e.mode===l_.problemSchedule||e.mode===l_.draftJobEdit)&&(yield Q5(`checklist`));e.mode===l_.edit&&!t.currency&&(t.currency=yield P(x7,t.propertyId)),wpe(e.source,TFe(e));let r;r=e.mode===l_.normal?yield C7(t):e.mode===l_.draftJobEdit?yield C7(t,e.draftJobId,!0):e.mode===l_.forwarding?yield C7(t,e.prevJobRequestId,!1,!0):yield C7(t,e.prevJobRequestId);let i={...e,data:r};R.default.info(`initJobRequestSaga - normalized`,{inputData:t,normalized:r,extendedNormalized:i}),yield M(zK(i)),yield M(uF(aJ,1));let a=e.mode===l_.edit||e.mode===l_.draftJobEdit||e.mode===l_.sendmore||e.mode===l_.forwarding||e.mode===l_.prefill,o=!!(0,G.default)(i,[`data`,`checklistId`,0]);e.hiddenModalMode||(yield w7([],{isReadOnly:a,isInit:!0,noPrefill:o})),e.mode===l_.normal&&(yield Q5((yield L(xJ)).hightLightedSectionId||`time`)),yield M(uF(aJ,0))}function*zFe(){yield M(VK()),yield M(uF(aJ,void 0,{})),yield M(uF(oJ,void 0,{})),yield M(uF(sJ,void 0,{}))}function BFe(e){return e.type===`GLOBAL_SET_MODAL`&&!e.value&&e.id===`jobrequest`&&!e.meta?.hiddenModalMode}function*VFe(){yield Ee(jE,RFe),yield Ee(ME,lFe),yield Ee(zE,uFe),yield We(NE,dFe),yield We(YE,fFe),yield We(PE,pFe),yield We(FE,mFe),yield We(IE,hFe),yield We(JE,vFe),yield We(tD,gFe),yield We(eD,_Fe),yield We(iD,yFe),yield We(rD,bFe),yield Ee(BFe,zFe),yield Ee(aD,CFe)}var T7;function HFe(){T7&&T7.close()}function*E7(){let{selectedJobRequestId:e}=yield L(jW);return(yield L(ew(e)))||(R.default.error(`getJobRequestFromStore - jobrequest not found`,e),!1)}function UFe(e){return(0,If.default)(e,(e,t)=>(Ss(t)&&e.result.push(t),xs(t)&&!e.seen[bs(t)]&&(e.result.push(t),e.seen[bs(t)]=!0),e),{result:[],seen:{}}).result}function*WFe(e){let t=yield P(u4,e);yield M(rF(`photofeedback`,t=>t.jobSnapshotId!==e)),yield M(nF(`photofeedback`,(0,CR.default)(UFe(t),e=>ys(e)),!0))}function D7(e,t){let{checklistId:n,verificationPhoto:r,type:i}=t,{stepId:a}=r;return e.map(e=>{if(n!==e.id)return e;if(i===`RETAKEN_VERIFICATION_PHOTO`){let t=(0,fX.default)(e.verificationPhotos,{stepId:a});e.verificationPhotos.splice(t,1,r)}else e.verificationPhotos.push(r);return R.default.debug(`[upsertChecklistsVerificationPhoto] upserting verification photo in checklist`,e),e})}function*GFe(e={}){try{let t=yield L(RW);if(t.filter(t=>e.checklistId===t.id).some((t={})=>(0,fX.default)(t.verificationPhotos,{pictureIdentifier:e.verificationPhoto.pictureIdentifier})>-1))return;yield M(cY(D7(t,e)));let n=yield P(E7);if(!n)return;let r=D7(n.checklists||[],e),i=(0,bc.default)(n);if(i.checklists=r,yield P(O7,i),e.type===`NEW_VERIFICATION_PHOTO`){let e=yield P(vbe,n.jobId);yield M(aY({jobProgress:{...n.jobProgress,...e}})),i.taskDoneCount=e.completedTaskCount,i.verificationDoneCount=e.verificationPictureCount,i.jobProgress={...n.jobProgress,...e},yield P(O7,i)}}catch(e){R.default.error(`[addSubscriptionVerificationPhoto] upserting verification photo failed`,e)}}function*KFe(e){try{let t=yield P(GJ,e);if(t.apiError)throw t;yield M(lY(t.riJobStatus))}catch(e){R.default.error(`[setRIJobStatus] saga errored: `,e)}}function*qFe(e){try{let t=yield P(pQ,e);yield M(nF(`jobRequests`,{[e]:t},!0)),yield M(aY({isReceivedJob:!0,selectedJobRequestId:e,jobProgress:t.jobProgress,state:0}))}catch(e){R.default.error(`openJobRequest - fetch job request`,e),yield M(aY({state:2}))}}function*JFe(e){yield M(aY({state:1,isOpen:!0})),ppe(e.jobRequestId);try{if(e.isCleanerRequest){yield oi(qFe,e.jobRequestId);return}let t=yield P(uQ,e.jobRequestId),{sourceProblems:n,skillRequirements:r,status:i,requestedCleaners:a,stripePaymentDetails:o,checklists:s,isRiRetailJob:c,propertyId:l,jobId:u}=t;u&&(yield oi(WFe,u));let d=yield L(sB);if(yield M(nve(c)),d){let t=yield L(mB(l));(c||t)&&(yield P(KFe,e.jobRequestId))}yield M(Z_e(o));let f=r;if(r?.length&&[W.StateAccepted,W.StateStarted,W.StateFinished].includes(i)){let e=a.find(e=>[Ua.Accepted,Ua.InProgress,Ua.Finished].includes(e.status)),t;e&&(t=yield P(K5,e.id,!0)),t&&!t.apiError&&(f=r.map(e=>({...e,progress:t.includes(e.skillId)?Wa.PROGRESS_STATUS.COMPLETED:!1})))}if(t.skillRequirements=f,yield M(nF(`jobRequests`,{[t.jobId]:t},!0)),n&&n.sourceJobSnapshotId){let{problems:e}=yield P(uQ,n.sourceJobSnapshotId);yield M(Y_e(e.filter(e=>n.problemIds.find(t=>t===e.id))))}let{problems:p}=t,m;if(Us(t)&&(m=p.filter(e=>e.status===Ga.RESOLVED).map(e=>({id:e.id,title:e.title,note:e.note,pictureIdentifiers:e.pictureIdentifiers,isProblem:!0})),yield P(Z5,{tasks:m})),yield M(aY({selectedJobRequestId:e.jobRequestId,jobProgress:t.jobProgress,state:0})),yield M(cY(s.map(e=>({id:e.id,verificationPhotos:e.verificationPhotos})))),(yield L(vJ))!==f_.yes)return;let h=yield L(CJ(e.jobRequestId)),g=yield L(SJ(e.jobRequestId)),_=yield L(wJ(e.jobRequestId));if(!h||[W.StateFinished,W.StateStarted].includes(t.status)){yield M(dF(!0,u_.TOO_LATE_FOR_REMOTE_INSPECTION,{}));return}if(_||!g){yield M(dF(!0,u_.REMOTE_INSPECTION_COMPLIANCE_NOT_MET,{}));return}T7=yield P(XDe,{jobSnapshotId:e.jobRequestId}),yield Ee(T7,GFe)}catch(t){R.default.error(`openJobRequest - fetch job request`,e,t),yield M(aY({state:2}))}}function*O7(e){yield M(QP(`jobRequests`,e.jobId,e))}function*k7(){yield M(aY({isOpen:!1,selectedJobRequestId:void 0,jobProgress:void 0,state:0,sourceJobProblems:[],isRIRequested:!1,jobStatusRI:void 0,isReceivedJob:void 0})),((yield L(_J))||[])?.length&&(yield P(Z5,{tasks:[]})),yield M(KK(f_.no)),HFe()}function*YFe(){yield Ee(pO,JFe)}var{MILEAGE:XFe,DURATION:ZFe,COST:QFe}=Ka;function*$Fe(e){let t=yield L(AW),{type:n,value:r,note:i,pictureIdentifiers:a,jobId:o,propertyId:s}=e.meta[0],{selectedJobRequestId:c=o}=t||{},{propertyId:l=s}=(yield L(aw(c)))||{};yield M(sY(n));let u={type:n,value:r,note:i,pictureIdentifiers:a};try{let t=yield P(xbe,u,c,l,e.jobsReceivedMode);
3181if(R.default.debug(`addCostApi -> res : `,t),yield M(XJ()),e.updateLocalCosts){let{costs:t,jobProgress:{bilableTime:n,totalMileage:r,totalCost:i}={}}=yield P(e.jobsReceivedMode?pQ:uQ,c)||{};e.updateLocalCosts(t,{bilableTime:n,totalMileage:r,totalCost:i})}if(e.skipJobModalOpen)return;yield M(YJ(t.transactionId))}catch(e){R.default.error(`addCostSaga -> ${e}`),window.alert(`Oops Something Went Wrong! Please Try again`)}}function*eIe(e){let t=e.meta;try{let{tempMilesImages:e,tempDurationImages:n,tempCostImages:r,type:i}=yield L(jW),a=yield P(tP,t);R.default.info(`uploadPic - res`,a),i===XFe&&(yield M(Q_e([...e,a.pictureUrl]))),i===ZFe&&(yield M($_e([...n,a.pictureUrl]))),i===QFe&&(yield M(eve([...r,a.pictureUrl])))}catch(e){R.default.error(`uploadPic - error`,e),yield M(uF(d_,3))}}function*tIe(e){e.noDelay||(yield M(aY({isOpen:!1})),yield Jr(600)),(yield P(E7))&&(yield M(aY({isOpenCostModal:!0,event:(0,G.default)(e,[`meta`,`event`])})))}function*nIe(){yield M(aY({isOpenCostModal:!1,isWarningModalOpen:!1,event:void 0,tempMilesImages:[],tempDurationImages:[],tempCostImages:[],type:void 0})),yield Jr(3e3),(yield L(jW)).isOpen||(yield M(aY({selectedJobRequestId:void 0,jobProgress:void 0,state:0})))}function*rIe(){yield Ee(mO,k7),yield Ee(yO,tIe),yield Ee(bO,$Fe),yield We(xO,eIe),yield Ee(CO,nIe)}function*iIe(e){e.noDelay||(yield M(aY({isOpen:!1})),yield Jr(600)),(yield P(E7))&&(yield M(aY({isOpenEditModal:!0,event:(0,G.default)(e,[`meta`,`event`])})))}function*aIe(e){e.noDelay||(yield M(aY({isOpen:!1})),yield Jr(600));let t=yield P(E7),n=yield L(jW);if(!t)return;if(t.requestedCleaners?.length>0&&!t.requestedCleaners[0]?.contactId)try{let e=yield P(uQ,t.jobId);if(yield M(QP(`jobRequests`,e.jobId,e)),t=yield L(ew(e.jobId)),!t)return}catch(e){R.default.error(`duplicateJob - failed to fetch full job details`,e)}let r=(0,H.default)((0,xo.default)(t.requestedCleaners,e=>!!e.contact),e=>e.contact.userData.objectId),i=(0,H.default)(t.skillRequirements,e=>({skillId:e.skillId,dependency:Wa.DEPENDENCY_STATUS.REQUIRED})),a=z.default.tz(t.propertyData.timeZone),o=(0,z.default)(t.scheduledStartTime).tz(t.propertyData.timeZone).clone();o.isAfter(a)||o.set({year:a.year(),month:a.month(),date:a.date()}),o.isBefore(a)&&o.add(1,`day`);let s=(0,z.default)(t.scheduledEndTime).tz(t.propertyData.timeZone).clone(),c=(0,z.default)(t.scheduledEndTime).diff((0,z.default)(t.scheduledStartTime),`days`);s.set({year:o.year(),month:o.month(),date:o.date()}).add(c,`days`);let l=Ks(t),u={mode:l_.normal,source:`jobRequestDetails`,data:{isForwardingEnabled:t.isForwardingEnabled,jobType:t.jobType,checklistId:t.checklists.map(e=>e.id),propertyId:t.propertyId,message:t.note,cleaners:r,skills:i,price:t.offeredPrice,currency:t.offeredPriceCurrency,startTime:o,endTime:s,jobStartTimeType:t.jobStartTimeType,title:t.title,tasks:t?.tasks||[],duration:(t.jobStartTimeType===`fixed`||t.jobStartTimeType===`REGULAR`)&&l>0?`${l}`:t.duration}};n.event&&(u.eventId=n.event.objectId||n.event.id),yield M(XK(u))}function*oIe(){yield M(aY({isOpenEditModal:!1,isWarningModalOpen:!1,event:void 0})),yield Jr(3e3),(yield L(jW)).isOpen||(yield M(aY({selectedJobRequestId:void 0,jobProgress:void 0,state:0})))}function*sIe(){let e=yield L(jW),t=yield P(E7);if(!t)return;let n=t.jobId,r=(0,H.default)((0,xo.default)(t.requestedCleaners,e=>!!e.contact),e=>e.contact.userData.objectId),i=(0,H.default)(t.skillRequirements,e=>({skillId:e.skillId,dependency:Wa.DEPENDENCY_STATUS.REQUIRED}));yield M(aY({isOpenEditModal:!1,selectedJobRequestId:void 0,jobProgress:void 0,state:0}));let a=Ks(t),o={mode:l_.edit,prevJobRequestId:n,source:`jobRequestDetails`,data:{checklistId:t.checklists.map(e=>e.id),propertyId:t.propertyId,message:t.note,cleaners:r,skills:i,price:t.offeredPrice,currency:t.offeredPriceCurrency,startTime:(0,z.default)(t.scheduledStartTime).tz(t.propertyData.timeZone),endTime:(0,z.default)(t.scheduledEndTime).tz(t.propertyData.timeZone),jobStartTimeType:t.jobStartTimeType,title:t.title,duration:(t.jobStartTimeType===`fixed`||t.jobStartTimeType===`REGULAR`)&&a>0?`${a}`:t.duration}};
3181e.event&&(o.eventId=e.event.objectId||e.event.id),yield M(XK(o))}function*cIe(e){let t,n=null,r=yield L(jW);if(e.jobRequestId){t=yield P(uQ,e.jobRequestId);let r=({id:e,title:t,note:n,pictureIdentifiers:r})=>({id:e,isProblem:!0,title:t,task:n,pictureIdentifiers:r});n=e.feedbacks?.map(e=>r(e)),yield M(nF(`jobRequests`,{[t.jobId]:t},!0))}else t=yield L(aw(r.selectedJobRequestId));if(!t)return;let i=(yield L(_J))||[],a=t.jobId,o=(0,H.default)(t.skillRequirements,e=>({skillId:e.skillId,dependency:Wa.DEPENDENCY_STATUS.REQUIRED})),s=Ks(t),c={mode:l_.problemSchedule,prevJobRequestId:a,source:`jobRequestDetails`,data:{checklistId:t.checklists.map(e=>e.id),skills:o,propertyId:t.propertyId,currency:t.offeredPriceCurrency,startTime:(0,z.default)(t.scheduledStartTime).tz(t.propertyData.timeZone),endTime:(0,z.default)(t.scheduledEndTime).tz(t.propertyData.timeZone),jobStartTimeType:t.jobStartTimeType,title:t.title,duration:(t.jobStartTimeType===`fixed`||t.jobStartTimeType===`REGULAR`)&&s>0?`${s}`:t.duration,tasks:n||i}};r.event&&(c.eventId=r.event.objectId||r.event.id),yield M(XK(c))}function*lIe(e){let t=yield P(E7);if(!t)return;let n=t.jobId;e.noDelay||(yield P(k7));let r=(0,H.default)((0,xo.default)(t.requestedCleaners,e=>!!e.contact),e=>e.contact.userData.objectId),i=(0,H.default)(t.skillRequirements,e=>({skillId:e.skillId,dependency:Wa.DEPENDENCY_STATUS.REQUIRED})),a=Ks(t);yield M(XK({mode:l_.sendmore,prevJobRequestId:n,source:`jobRequestDetails`,data:{checklistId:t.checklists.map(e=>e.id),skills:i,propertyId:t.propertyId,message:t.note,cleaners:r,title:t.title,price:t.offeredPrice,currency:t.offeredPriceCurrency,startTime:(0,z.default)(t.scheduledStartTime).tz(t.propertyData.timeZone),endTime:(0,z.default)(t.scheduledEndTime).tz(t.propertyData.timeZone),duration:a>0?`${a}`:t.duration}}))}function*uIe(e){let t=yield P(pQ,e.jobRequestId);if(!t)return;let n=t.jobId,r=(0,xo.default)((yield L(tw(t))).recipients,e=>!!e.contact),i=(0,H.default)(t.skillRequirements,e=>({skillId:e.skillId,dependency:Wa.DEPENDENCY_STATUS.REQUIRED})),a=Ks(t);yield M(XK({mode:l_.forwarding,prevJobRequestId:n,source:`jobRequestDetails`,data:{checklistId:t.checklists.map(e=>e.id),skills:i,propertyId:t.propertyId,message:t.forwardedNote||t.note,cleaners:r,title:t.title,status:t.status,price:t.forwardedOfferedPrice||t.offeredPrice,currency:t.offeredPriceCurrency,startTime:(0,z.default)(t.scheduledStartTime).tz(t.propertyData.timeZone),endTime:(0,z.default)(t.scheduledEndTime).tz(t.propertyData.timeZone),duration:a>0?`${a}`:t.duration}}))}function*dIe(e){yield M(aY({state:1}));try{let t=yield P(uQ,(yield P(_Z,e.jobRequestId))?.transactionId);yield P(k7),yield M(QP(`jobRequests`,t.jobId,t)),yield M(eF(`cleanerRequest`,t.jobId,!0)),yield Jr(1e3),yield M(vY(Qa.REFRESH_LV))}catch(e){R.default.error(`cancelJobRequest`,e),yield M(aY({state:2}))}}function*fIe({sourceJobSnapshotId:e}){yield M(YJ(e))}function*pIe(){yield Ee(gO,dIe),yield Ee(_O,aIe),yield Ee(vO,iIe),yield Ee(SO,oIe),yield Ee(wO,sIe),yield Ee(TO,lIe),yield Ee(zO,uIe),yield Ee(EO,cIe),yield Ee(PO,fIe)}var mIe=()=>SN(`loadIndependentChecklists`,null,!0),hIe=()=>SN(`listPublishedChecklists`,{languageCode:(0,pi.default)()},!0),A7=e=>SN(`getPublishedChecklist`,{checklistId:e},!0),j7=e=>SN(`getPublishedChecklistInstructions`,{checklistInstructionsId:e},!0),gIe=(e,t)=>SN(`copyIntoProperties`,{properties:e,checklistId:t},!0),_Ie=e=>SN(`deleteIndependentChecklist`,{checklistId:e},!0),vIe=()=>SN(`createIndependentChecklist`,null,!0);function*M7(e,t){try{yield P(oP,e,t),yield M(FU(new Date))}catch(e){R.default.error(`sendJobInsToBackend`,e)}}function*yIe(e,t){let n=e.steps&&e.steps.length?e.steps.length:0,r=(0,If.default)(e.steps,(e,t)=>{let n=t.tasks&&t.tasks.length?t.tasks.length:0,r=+!!t.isVerificationNeeded;return e+n+r},0),i=(0,If.default)(e.steps,(e,t)=>t.isVerificationNeeded?e+1:e,0);try{yield M(xU(t,yield P(aP,t,{totalStepCount:n,totalTaskCount:r,totalVerificationCount:i})))}catch(e){R.default.error(`updateStepsAndTasksRaw - trycatch`,e)}}function*bIe(e){let t=yield L(hV);
3181t?yield P(yIe,e,t):R.default.error(`updateStepsAndTasksBackend - no jobid`)}function xIe(e){return!e||!Array.isArray(e.steps)?e:{...e,steps:e.steps.map(e=>e&&Array.isArray(e.tasks)?{...e,tasks:e.tasks.filter(e=>e!=null)}:e)}}function*N7(e,t){let n=xIe(t);yield M(PU(e,n)),yield oi(M7,e,n),yield oi(bIe,n)}function P7(){return{isVerificationNeeded:!1,node:``,objectId:JN(10),pictureUrl:void 0,room:null,section:``,tasks:[],title:``}}function F7(e,t,n){let r=e[t];return e.splice(t,1),e.splice(n,0,r),e}function I7(e,t,n){let r=e.slice(0),i=r.slice(0,n+1),a=r.slice(n+1);return[...i,...t,...a]}function*L7(e,t,n){let r=(0,fX.default)(e,{objectId:t});if(r===-1)return R.default.error(`updateStepSingle - step not found`,t,e),e;let i=e.slice(0);return i[r]={...i[r],...n},i}function*R7(e,t,n,r){let i=(0,fX.default)(e,{objectId:t});if(i===-1)return R.default.error(`updateTaskSingle - step not found`,t,e),e;let a=e.slice(0);return a[i].tasks[n]?(a[i].tasks[n]={...a[i].tasks[n],...r},a):(R.default.error(`updateTaskSingle - task not found`,t,e,n),e)}var z7=e=>e||[P7()],{selectJobInstructions:SIe}=cV;function*CIe(e){let t=yield L(SIe),{meta:n}=e||{},{jobInstructionId:r}=n||{},{steps:i}=t[r]||{};if(e.action===`addEnd`&&(yield P(N7,r,{steps:(0,Lf.default)([i,z7(n.steps)])}),zv()),e.action===`update`&&(yield P(N7,r,{steps:yield P(L7,i,n.stepId,n.changeSet)})),e.action===`moveStep`&&(yield P(N7,r,{steps:F7(i.slice(0),n.fromIndex,n.toIndex)})),e.action===`setBetween`){R.default.info(`stepMutate - setBetween`,e);let t=z7(n.steps);yield P(N7,r,{steps:I7(i.slice(0),t,n.index)}),zv()}if(e.action===`duplicateStep`){let e=(0,H.default)(n.steps,e=>{let t=(0,fc.default)(i,{objectId:e}),n=t.tasks?.map(e=>({...e,objectId:JN(10)}));return{...t,tasks:[...n],objectId:JN(10)}}),t=[];t=n.index===void 0?(0,Lf.default)([i,e]):I7(i.slice(0),e,n.index),yield P(N7,r,{steps:t}),Fpe()}if(e.action===`deleteStep`){let e=(0,vc.default)(n.deleteSteps)?(0,Ux.default)(n.deleteSteps):n.deleteSteps;yield P(N7,r,{steps:(0,xo.default)(i,t=>(0,eb.default)(e,t.objectId)===-1)}),Ppe()}}function*wIe(e){let t=yield L(t=>fV(e.jobInstructionId)(t)),n=(0,bc.default)(t.steps);if(!t){R.default.error(`taskMutate - jobins not found`,e.jobInstructionId);return}let r=(0,fX.default)(n,{objectId:e.stepId});if(r===-1){R.default.error(`taskMutate - step not found`,e.stepId);return}let i=(0,bc.default)(n[r].tasks),a=[],o=!1;if(e.action===`moveStep`&&(a=F7(i,e.meta.fromIndex,e.meta.toIndex),o=!0),e.action===`delete`&&(i.splice(e.meta.index,1),a=i,o=!0),e.action===`addimage`&&(i.push({objectId:JN(10),note:``,icon:`custom`,pictureUrls:[],centerX:.5,centerY:.5,value:null,...e.meta.changeSet}),a=i,o=!0),e.action===`update`){if(!i[e.meta.index]){R.default.error(`taskMutate - updateindex not found`);return}a=(0,bc.default)(i.map((t,n)=>n===e.meta.index?{...t,...e.meta.changeSet}:t)),o=!0}e.action===`add`&&(i.push({objectId:JN(10),icon:`other`,note:``,...e.meta.changeSet}),a=i,o=!0),o&&(n[r].tasks=(0,bc.default)(a),yield P(N7,e.jobInstructionId,{steps:(0,bc.default)(n)}))}function*TIe(){yield Ee(ZO,CIe),yield Ee(ek,wIe)}function*B7(e){let{pictureUrl:t,propertyId:n}=e;try{let e=yield L(e=>nw(n)(e));if(!e){R.default.error(`addImageToProperty - property not found in Redux`,{propertyId:n});return}yield M(SU(n,yield P(sP,n,{pictureUrls:[t,...e.pictureUrls||[]]})))}catch(e){R.default.error(`addImageToProperty`,e)}}function*EIe(e){yield M(gU(1));try{let{id:t,jobId:n,isIndependent:r,isPublished:i}=e,{jobInstruction:a,job:o}=yield P(DIe,n,t,r,i);yield M(gU(0)),a.currency||(yield oi(M7,a.objectId,{currency:`USD`}),a.currency=`USD`),R.default.info(`loadOrChillChecklistDetail`,{jobInstruction:a,job:o}),yield M(nF(`jobs`,{[o.objectId]:o},!0)),yield M(PU(a.objectId,a)),yield M(_U(a.objectId,!0)),yield M(vU(n))}catch(e){R.default.error(`loadOrChillChecklistDetail`,e),yield M(gU(2))}}function*DIe(e,t,n,r){let i=r?`published`:n?`independent`:`property`,a={};switch(i){case`published`:a.loadChecklist=A7,a.loadChecklistInstructions=j7;break;case`independent`:a.loadChecklist=J1,a.loadChecklistInstructions=q1;break;case`property`:a.loadChecklist=K1,a.loadChecklistInstructions=G1;break;default:}let[o,s]=yield or([P(a.loadChecklistInstructions,t),P(a.loadChecklist,e)]);return{jobInstruction:o,job:s}}function*V7(e,t){return yield P(t?q1:G1,e)}function*OIe({index:e,image:t}){R.default.info(`ChecklistSagas - uploadSlidePicture`,e,t);try{let{pictureUrl:n}=yield P(tP,t),r=yield L(uV),i=r.jobInstructions[r.currentJobInstructionId],a=I7(i.steps,[{...P7(),pictureUrl:n}],e);zv(),yield oi(N7,r.currentJobInstructionId,{steps:a})}catch(e){R.default.error(`Error uploading slide picture`,e),yield M(uF(d_,3))}}function*kIe({stepId:e,taskIndex:t,image:n}){let r=yield L(uV),i=r.jobInstructions[r.currentJobInstructionId],a=[];try{let{pictureUrl:r}=yield P(tP,n);a=yield P(R7,i.steps,e,t,{pictureUrls:[r]})}catch(e){R.default.error(`Error uploading task picture`,e),yield M(uF(d_,3))}yield oi(N7,r.currentJobInstructionId,{steps:a})}function*AIe(e,t){R.default.info(`ChecklistSagas - uploadPropertyPic`,e);try{let n=yield P(tP,e);R.default.info(`uploadPic - res`,n),yield*B7({pictureUrl:n.pictureUrl,propertyId:t}),yield M(bU({uploading:{[e.name]:!1}},!0))}catch(t){R.default.error(`uploadPic - error`,t),yield M(bU({uploading:{[e.name]:!1}},!0)),yield M(uF(d_,3))}}function*jIe(e){let{pics:t}=e,n=0,r=0;
3181if(!(!t||!t[0])){for(;r<t.length;){let e=t[r];R.default.info(`uploadPics - set pic uploading`,e),yield M(bU({uploading:{[e.name]:e}},!0)),r+=1}for(;n<t.length;){let r=t[n];R.default.info(`uploadPics - upload`,r),yield AIe(r,e.propertyId),n+=1}}}function*H7(){yield M(bU({isOpen:!1,do:{},selected:[]},!0))}function*MIe(){let e=yield L(bV),t=yield L(uV),n=t.jobInstructions[t.currentJobInstructionId];R.default.info(`setUpdatePicture - res`,e),R.default.info(`setUpdatePicture - jobIns`,n),(!e||!e.do||!e.do.mode||!n)&&(R.default.error(`setUpdatePicture - no mode set or jobins undefined`),yield H7());let r=[],i=!1,a=(0,H.default)(e.selected,e=>({...P7(),pictureUrl:e}));R.default.info(`setUpdatePicture - mapped`,a),e.do.mode===`addEnd`&&(r=(0,Lf.default)([n.steps,a]),i=!0,zv()),e.do.mode===`new`&&(r=I7(n.steps,a,e.do.after),i=!0,zv()),e.do.mode===`replace`&&e.selected.length>0&&(r=yield P(L7,n.steps,e.do.stepId,{pictureUrl:e.selected[0]}),i=!0),e.do.mode===`replacetaskimg`&&e.selected.length>0&&(r=yield R7(n.steps,e.do.stepId,e.do.taskIndex,{pictureUrls:[e.selected[0]]}),i=!0),R.default.info(`setUpdatePicture - merge`,r),i&&(yield oi(N7,t.currentJobInstructionId,{steps:r})),yield H7()}function*NIe(){yield Ee(VO,EIe),yield Ee(JO,jIe),yield Ee(YO,MIe),yield Ee(zhe,B7),yield Ee(ck,OIe),yield Ee(lk,kIe)}function*PIe(e){let{propertyId:t}=e||{};try{yield M(IU(`create${t}`,1));let n=yield P(eP,t,e.title,e.user,e.role);R.default.info(`res - createJobAndJobInstruction`,n),yield M(xU(n.objectId,n)),e.openInModal?yield M(zU({isOpen:!0,meta:{checklistId:n.objectId,jobInstructionId:n.jobInstructionId}})):yield M(NU(n.objectId,n.jobInstructionId,e.redirectUrl)),yield M(IU(`create${t}`,0)),Ipe(n.objectId)}catch(e){yield M(IU(`create${t}`,0)),R.default.error(`createChecklist`,e)}}function*FIe(){let e=yield L(mw(`jobrequest`));!e.isOpen&&e.meta?.hiddenModalMode&&(yield M(XK(e.meta))),yield M(zU({isOpen:!1,meta:{}}))}function*IIe(e){let t=e.checklist.objectId;if(e.action===`delete`)try{yield M(IU(t,1)),yield M(xU(t,yield P(aP,t,{deleted:!0}))),yield M(IU(t,0)),jpe(t)}catch(e){yield M(IU(t,0)),R.default.error(`updateChecklist - delete`,e)}if(e.action===`duplicate`)try{yield M(IU(t,1));let n=yield P(V7,e.checklist.jobInstructionId),r=(0,pF.default)(n&&typeof n.getData==`function`?n.getData():n,[`steps`]),i=(0,Pf.default)(e.checklist&&typeof e.checklist.getData==`function`?e.checklist.getData():e.checklist,[`objectId`,`defaultSettings`]);i.title=U(`checklist.copy_checklist`,{name:e.checklist.title});let a=yield P(YN,i,r);R.default.info(`res2 - updateChecklist`,a),yield M(xU(a.objectId,a)),yield M(IU(t,0))}catch(e){yield M(IU(t,0)),R.default.error(`updateChecklist - duplicate`,e)}if(e.action===`update`)try{yield M(xU(t,yield P(aP,t,e.checklist)))}catch(e){R.default.error(`updateChecklist - update`,e)}}function*LIe(e,t,n){let r=(0,pF.default)(e&&e.getData?e.getData():e,[`steps`]),i=(0,pF.default)(t&&t.getData?t.getData():t,[`defaultProperty`,`jobDescription`,`jobInstructionId`,`title`,`totalStepCount`,`totalTaskCount`,`totalVerificationCount`,`user`]);i={...i,...n};let a=yield P(YN,i,r);R.default.info(`cloneOneChecklist`,i,r),yield M(xU(a.objectId,a))}function*RIe(){return(yield L(e=>pV(e))).mode===1}function*U7(e,t,n){let r=0;function*i(n){R.default.info(`multiCloneSaga - set clone to `,n),yield P(LIe,e,t,n)}for(;r<n.length;){if(!(yield RIe())){R.default.info(`multiCloneSaga - abort`);return}yield or(n.slice(r,r+10).map(i)),r+=10}}function*zIe(e){let{propertyIdArray:t,independent:n,checklistId:r,title:i}=e;yield M(AU({mode:1}));let a=(yield L(e=>WC(e)))?.[r];if(!a&&r)try{a=yield P(K1,r)}catch(e){R.default.error(`multiCloneSaga - failed to fetch checklist`,r,e)}let o=i||a&&a.title,s=(0,H.default)(t,e=>({title:o,defaultProperty:e}));if(a)try{R.default.info(`multiCloneSaga getChecklistInstructionsData cloneChecklist`,a,{independent:n});let e=a.jobInstructionId||a.jobInstructions.objectId;a.jobInstructions?yield U7(a.jobInstructions,a,s):yield U7(yield P(V7,e,n),a,s)}catch(e){R.default.error(`multiCloneSaga - error`,e)}else R.default.error(`multiCloneSaga - checklist not found`,r);yield M(AU({checklistTitle:``,isOpen:!1,mode:0,selectedChecklistId:void 0,selected:[]})),Upe()}function BIe(e,t){return t.defaultJob===e.objectId}function*VIe(e){BIe(e.checklist,e.property)?yield M(dF(!0,`checklistdeletewarningmodal`,(0,pF.default)(e,[`checklist`,`property`]))):yield M(EU(`delete`,e.checklist))}function*HIe(e){if(e.answer){let{property:t,checklist:n}=(yield L(mw(e.name))).meta;try{yield M(dF(!1,e.name,{}));let r=yield P(sP,t.objectId,{defaultJob:null});yield M(QP(`properties`,r.objectId,r)),yield M(EU(`delete`,n))}catch(e){R.default.error(`setWarningModalSaga`,e)}}else yield M(dF(!1,e.name,{}))}function*UIe({checklistId:e}){try{yield W1(e),yield M(OU(e))}catch(t){yield M(kU(e,t))}}function*WIe(){yield Ee(QO,PIe),yield Ee($O,IIe),yield Ee(sk,FIe),yield Ee(ak,zIe),yield Ee(Bhe,VIe),yield Ee(Vhe,HIe),yield Ee(Hhe,UIe)}var GIe=F` 3182 mutation DismissJobFromTodos($jobId: ID!) { 3183 DismissJobFromTodos(jobId: $jobId) { 3184 error 3185 message 3186 } 3187 } 3188`,KIe=F`
3189 mutation SkipEventOnTodo($eventId: ID!) { 3190 SkipEvent(eventId: $eventId) { 3191 error 3192 message 3193 } 3194 } 3195`,qIe=async(e,t)=>{try{return(await QF.query({query:wEe,variables:{limit:e,offset:t},fetchPolicy:`no-cache`}))?.data?.LoadEventsForTodos}catch(e){return R.default.error(`[getEventsForTodosApi] ${e}`),e.apiError=!0,e}},JIe=async(e,t)=>{try{let n=(await QF.query({query:TEe,variables:{limit:e,offset:t},fetchPolicy:`no-cache`}))?.data?.LoadJobsForTodos;if(n.error)throw n;return n}catch(e){return R.default.error(`[getJobsForTodosApi] ${e}`),e.apiError=!0,e}},YIe=async e=>{try{return(await QF.mutate({mutation:GIe,variables:{jobId:e},fetchPolicy:`no-cache`})).data?.DismissJobFromTodo}catch(e){throw R.default.error(`dismissJobFromTodoApi api ${e}`),e.apiError=!0,e}},W7=async e=>{try{let t=(await QF.mutate({mutation:KIe,variables:{eventId:e},fetchPolicy:`no-cache`})).data?.SkipEventOnTodo;if(t?.error)throw t}catch(e){throw R.default.error(`dismissJobFromTodoApi api ${e}`),e.apiError=!0,e}},XIe=e=>e?.event?.id,ZIe=e=>e?.event?.jobRequest?.jobSnapshotId,QIe=e=>e?.event?.property?.id,$Ie=e=>e?.event?.reminder?.checklistId,eLe=e=>e?.event?.reminder?.time,tLe=e=>e?.event?.startTime,nLe=e=>eLe(e)||tLe(e),rLe=e=>e?.event?.timeZone;function*iLe(e,t,n,r,i,a){let o=e=>e?.jobRequestSettings,s=e=>e?.reminder?.title,c=e=>e?.trigger?.startTime,l=e=>e?.trigger?.endTime,{time:u,offeredPrice:d,offeredPriceCurrency:f,message:p}=o(n)||{},m=Jc(z.default.tz(a).add(3,`minutes`)),{endTime:h,startTime:g,duration:_,type:v}=u||{},y=s(n),b=g||t?.hours(10).minutes(0)||c(n),x=h||t&&(0,z.default)(t).add(_||`60`,`minutes`)||l(n);(0,z.default)(b).isBefore(m)&&(b=Jc(z.default.tz(a).add(3,`minutes`)),x=b.clone().add(_||`60`,`m`)),yield M(XK({mode:`normal`,source:`event`,event:n,eventId:r,data:{message:p,price:d,currency:f,title:y,startTime:b&&Jc(b)||t,endTime:x&&Jc(x)||t,duration:_||`60`,jobStartTimeType:v||`fixed`,propertyId:e,checklistId:i?[i]:void 0}}))}function*G7(e){try{let t=yield P(uQ,e);yield M(nF(`jobRequests`,{[t.jobId]:t},!0)),yield M(aY({selectedJobRequestId:t.jobId,jobProgress:t.jobProgress,state:0}))}catch(e){R.default.error(G7,e)}}function K7(){let e=`[data-testid="properly-tooltip-scroll"]`,t=document.querySelector(`.js-properly-tooltip`),n=document.querySelector(e),r,i=0;if(t){let e=t.getAttribute(`aria-labelledby`);r=e?e.replace(`label_for_`,`#trigger_`):void 0,i=n?n.scrollTop:i}return{idOfTrigger:r,scrollPos:i,scrollSelector:e}}function q7({idOfTrigger:e,scrollPos:t,scrollSelector:n}){let r=e&&document.querySelector(e);r&&(r.click(),setTimeout(()=>{let e=t&&document.querySelector(n);e&&(e.scrollTop=t)},200))}function J7(){document.getElementById(`app`).click()}function*aLe({event:e,mode:t}){let n=K7();J7(),yield M(rQ({mode:t,continue:nQ.bind(null,e,`skipreal`),restore:()=>q7(n)}))}function*oLe({event:e,mode:t}){let n=K7();J7(),yield M(rQ({mode:t,continue:nQ.bind(null,e,`cancelreal`),restore:()=>q7(n)}))}function*sLe(e){let t=XIe(e),n=ZIe(e),r=QIe(e),i=$Ie(e),a=nLe(e),o=rLe(e),s=(0,z.default)(a).tz(o),c=s.isValid()?s:null,{mode:l}=e;R.default.info(`handleEventButtonSaga`,t,l,e,n);try{switch(l){case`skip`:yield P(aLe,e);break;case`skipreal`:yield P(W7,t),Jv(t);break;case`cancel`:yield P(oLe,e);break;case`cancelreal`:yield P(_Z,n);break;case`jobrequest`:J7(),yield M(YJ(n));break;case`sendmore`:yield P(G7,n),yield M(nY(!0));break;case`edit`:yield P(G7,n),yield M(eY(!0,{event:e.event}));break;case`schedule`:J7(),yield P(iLe,r,c,e.event,t,i,o);break;case`attach`:J7(),yield M(f1({eventId:t,propertyId:r,source:`calendarEvents`}));break;default:R.default.error(`handleEventButtonSaga - dont know how to handle`,e)}e.resolve()}catch(t){R.default.error(`skipEventSaga`,t),e.reject()}}function*cLe(e={}){e.persist!==!1&&(yield L(jC))&&((yield L(MC))||(yield P(CNe,yield L(LZ))))}function*lLe(){yield P(xNe,yield L(IZ))}function*uLe(){yield Ee(yk,sLe),yield Ee(Ek,cLe),yield Ee(Dk,lLe)}var dLe=(0,yc.default)(e=>(e&&(0,z.default)(e)||(0,z.default)().subtract(1,`d`)).startOf(`day`).toISOString()),fLe=(0,yc.default)(e=>(e&&(0,z.default)(e)||(0,z.default)().add(5,`d`)).endOf(`day`).toISOString());function pLe(e,t){return{startDate:dLe(e),endDate:fLe(t)}}function*mLe(){let e=yield L(LZ),t=yield L(BZ),n=yield L(VZ),{dateRange:r}=e||{},{startDate:i,endDate:a}=r||{},o=Gc({rangeStartDate:i,rangeEndDate:a,startDate:t,endDate:n});t&&n&&i&&a&&!o&&(yield M(tQ((0,z.default)(i).startOf(`d`).toDate(),(0,z.default)(i).add(6,`d`).endOf(`d`).toDate())))}function*Y7(e){let{type:t}=e||{},n=yield L(MC),r=yield L(jC);if(n||!r||!(yield L(RZ))||!(yield L(Ibe)))return;let i=yield L(UZ),a=yield L(LZ),o=yield L(exe),s=yield L(Lbe),c=yield L(Rbe),l=((yield L(HZ))||[]).filter(e=>o?.[e]?.[String(s)]===void 0||o?.[e]?.[String(c)]===void 0),u=l.map(e=>
3195{let t=o?.[e],n=c===0?10:c-s,r=[...Array(n)].map((e,t)=>s+t).filter(e=>!t||t?.[String(e)]===void 0);return{dateBucketId:e,offset:r[0],limit:r.length}}).filter(({limit:e})=>e!==0);R.default.info(`bucketsToLoad + indexesToLoad`,{bucketsToLoad:l,indexesToLoad:u});let d=u.map(({dateBucketId:e,limit:t,offset:n})=>({dateBucketId:e,limit:t,offset:n,startDate:(0,z.default)(e.split(`-`)[0]).startOf(`day`).toDate(),endDate:(0,z.default)(e.split(`-`)[1]).endOf(`day`).toDate()}));yield or(d.flatMap(({startDate:e,endDate:t,dateBucketId:n,limit:r,offset:o})=>{if(r%10!=0)return R.default.warn(`Limit is not a multiple of 10`),M($Z(e,t,o,r,n,i,a));let s=r/10;return[...Array(s)].map((r,s)=>M($Z(e,t,o+s*10,10,n,i,a)))})),d.length>0&&t===Ek&&(yield Jr(0),yield P(mLe))}function*hLe({startDate:e,endDate:t,dateBucketId:n,eventFilters:r,hasFilters:i,searchQuery:a,requestId:o,offset:s,limit:c}){try{let l=pLe(e,t);R.default.info(`Loading calendar events ${c} properties`);let u={timeZone:z.default.tz.guess(),offset:s,limit:c,filters:(r||[]).length===0?null:r,eventStartDate:l.startDate,eventEndDate:l.endDate,propertySearch:a||null};R.default.info(`Calendar Query variables`,u);let{error:d,data:f}=yield P(QF.query,{query:uwe,fetchPolicy:`no-cache`,variables:u}),{calendarProperties:p}=f||{},{info:m,result:h}=p||{},{total:g}=m||{};yield M(d?eQ(d,o):lxe(h,g,s,c,n,o,i,a))}catch(e){R.default.error(`Error loading calendar events`,e),yield M(eQ(e,o))}}function*gLe(){yield Ee(uk,Y7),yield Ee(fk,Y7),yield Ee(mk,Y7),yield Ee(Ek,Y7),yield We(pk,function*({query:e}){yield Jr(e?500:0),yield P(Y7),yield P(ape,e)}),yield Ee(hk,hLe)}var X7=e=>e&&e.iso||e||null,_Le=e=>e&&e.payload||{},vLe=(e={})=>{let t=_Le(e),n=t.booking||{},r=t.trigger||{},i=t.jobRequest||{},a=e.type,o=e.status,s=e.eventStatus;return{id:e.objectId||e.id,days:e.days||[],type:a,typeDescription:Va[a],startTime:X7(e.startTime),endTime:X7(e.endTime),createdAt:e.createdAt,timeZone:e.timeZone,property:{id:e.propertyId,displayAddress:e.propertyAddress},booking:{id:e.bookingId,status:Ba[s],statusCode:s,title:n.title,numberOfGuests:n.numberOfGuests,partner:n.partner,guestName:n.guest||n.guestName,arrivalDate:X7(n.arrivalDate),departureDate:X7(n.departureDate),arrivalLocalDay:n.arrivalLocalDay,departureLocalDay:n.departureLocalDay,bookingDurationDays:n.bookingDurationDays},reminder:{id:e.triggerId,title:r.title,time:r.time,type:r.type,needsCTA:e.needsCTA,checklistId:r.checklistId},jobRequest:{id:e.jobRequestId,status:W[o],statusCode:o,incomplete:i.incomplete,title:i.title,problem:i.problem,seen:i.seen,numberOfCleaners:i.numberOfCleaners,cleanerName:i.cleanerName,jobStartTimeType:i.jobStartTimeType,duration:i.duration,jobSnapshotId:e.jobSnapshotId},autoSchedulerId:e.autoSchedulerId,draftJobId:e.draftJobId}},Z7=[],Q7=[];function $7(e,t,n){let r=e.id,i=n.find(e=>e.id===r);return n.indexOf(i)===t}function*yLe(){let e=Z7.slice(0),t=Q7.slice(0);t.length>0&&(R.default.info(`flush deleted live query calendar events`,t),Q7.splice(0,Q7.length),yield M(fxe(t.filter($7)))),e.length>0&&(R.default.info(`flush created live query calendar events`,e),Z7.splice(0,Z7.length),yield M(dxe(e.filter($7))))}function*bLe(){for(;;){let e=Z7.length;yield P(yLe),yield Jr(2e3);let t=Z7.length;(e>10||t>10)&&(yield Jr(5e3))}}function*xLe(e){let t=!!e.deleted;R.default.info(`calendar live query event`,e,{isDeleted:t});let n=vLe(e);Q7.unshift(n),t||(R.default.info(`new live calendar event`,e),Z7.unshift(n))}function*SLe(){try{let e=yield L(FC);R.default.info(`eventChannelStartSaga - start`);let t=yield oi(J5,{className:`Event`,listenOnArray:[`update`,`create`],queryModifierFunc:t=>(t.containedIn(`ownerRole`,e.actAsRole),t),handleEventGenerator:xLe}),n=yield oi(bLe);yield w([bk,wE]),yield zn(t),yield zn(n),R.default.info(`eventChannelStartSaga - stop`)}catch(e){R.default.error(`eventChannelStartSaga`,e)}}function*CLe(){yield M(ZZ()),yield Jr(2e3),yield M(ZZ()),yield M(QZ())}function*wLe(){yield We(xk,SLe),yield We([UT,oE],CLe)}var e9=Wi(),TLe=[`listViewPref_jobs`,`listViewPref_jobs-map`,`listViewPref_autoscheduler`,`customFilters.jobs`,`calendar.showCanceledEvents`,`calendar.eventFilters`,`jobs.viewMode`,`library.viewPreferences`,`reports.sidebarWidth`,`property.sidebar.selectedTags`];
3195function ELe(){TLe.forEach(e=>{try{vi.remove(e)}catch(t){R.default.error(`[Logout] Failed to clear local preference "${e}":`,t)}})}var DLe=({partnerId:e,partner:t,onboardingMobile:n,reconnectId:r=!1})=>{let{sendNotification:i,methodTypes:a}=R3,o=/^\/\/localhost/.test(e9.APP_WEB_LINK)?String(e9.APP_WEB_LINK).replace(`//`,`http://`):String(e9.APP_WEB_LINK).replace(`//`,`https://`),s=`?onboarding=${n}&redirectPartner=${e}&connectDirect=true&reconnectId=${r}&redirectPartnerLabel=${t}`,c=window.btoa(s);i(a.OPEN_EXTERNAL_BROWSER,t,`${o}/loginas/${qF()}/account-mobile/connections-mobile?redirectParams=${c}`)},OLe=e=>{let t=[e?.partner,e?.id].filter(Boolean);if(!t.length)return!0;let n=t.some(e=>qa.includes(e)),r=t.some(e=>Ja.includes(e));return e?.proRequired===!0||r||!n};function*kLe(){yu();try{yield M(uF(`logout`,1)),yield P(RN)}catch(e){R.default.error(`Logout error:`,e)}try{R.default.info(`[Logout] Clearing GraphQL cache`),yield P([QF,QF.clearStore])}catch(e){R.default.error(`[Logout] Failed to clear GraphQL cache:`,e)}let e=yield L(e=>e.loginSignUpReducers.loginOverride);e||ELe(),yield M(KP()),yield M({type:NT}),e||(yield M(Zhe()))}function*ALe(e){try{yield M(hA(`updatePw`,1,!0));try{yield P(nP,e.oldPassword,e.newPassword)}catch(e){if(!(e&&e.code&&e.code===107))throw e}yield M(Qhe({oldPassword:``,newPassword1:``,newPassword2:``})),yield M(hA(`updatePw`,3,!0)),yield Jr(5e3),yield M(hA(`updatePw`,0,!0))}catch(e){R.default.error(`changePw`,e),yield M(hA(`updatePw`,2,!0))}}function*jLe(){try{yield M(hA(`sendPw`,2,!0)),yield P(lP),yield M(hA(`sendPw`,4,!0)),yield Jr(5e3),yield M(hA(`sendPw`,0,!0))}catch(e){R.default.error(`sendPw`,e),yield M(hA(`sendPw`,3,!0))}}function*MLe(e){let{oAuthLink:t,partnerTitle:n,connectedAccount:r,loginWarningBlacklist:i=[],mobile:a,onboardingMobile:o,connectionSettingId:s}=e.data;if(!r){R.default.error(`AccountSagas redirectToProviderSaga - no connectedAccount`);return}if(a&&io.includes(r.id)&&R3.doesExist()){R.default.info(`[AccountSagas.redirectToProviderSaga] - redirecting to external browser`),DLe({partnerId:r.id,partner:r.label,onboardingMobile:o,reconnectId:s});return}if(r?.connectionSettings?.length===0||((e,t)=>(0,eb.default)(t,e)!==-1)(r.id,i)){R.default.info(`AccountSagas redirectToProviderSaga - Is first connect`),window.location.href=t;return}yield M(ege({isOpen:!0,meta:{url:t,modal:1,partnerTitle:n}}))}function*NLe({redirectPartnerId:e,reconnectId:t,mobile:n}){R.default.info(`Redirecting to partner ${e}`);let r=n?`/account-mobile/connections-mobile`:Z.settingsConnections,i=(yield L(vT)).find(t=>t.id===e);if(!i){yield M(fn({pathname:r}));return}let a=yield L(Aw,s_.pms);if(OLe(i)&&!a){R.default.info(`AccountSagas connectDirectToPartnerSaga - Upgrade to pro needed`),yield M(fn({pathname:r}));return}Bv(e);let o=i.oAuthLink;t&&t!==`false`&&(o=`${o}&redirectPath=/account-mobile/connections-mobile/${e}/${t}&connectionSettingsId=${t}`),o&&(window.location.href=o)}function*PLe({status:e,externalMobileBrowserConnected:t,onboardingMobile:n,connectionSuccess:r,delayedRedirect:i}){if(i&&(yield Jr(3e3)),t){let e=[`isNavReady=true`,`role=host`,`partnerConnected=${r.toString()}`,`onboarding=${n.toString()}`],t=`${e9.PROPERLY_DEEP_LINK_IOS_ANDROID_WEB}?${e.join(`&`)}`;R3.isIOS()&&(t=`${e9.PROPERLY_DEEP_LINK_IOS_FORCE_OPEN_APP}?${e.join(`&`)}`),window.location.href=t;return}n&&R3.doesExist()&&R3.sendNotification(e)}function*FLe(){}function*ILe(){try{let{connectedAccounts:e,connectionSettingsCount:t}=yield P(eB);R.default.info(`getConnectedAccountsRequest connectedAccounts`,{connectedAccounts:e,connectionSettingsCount:t}),yield M(ige(e,t))}catch(e){yield M(age(e))}yield Jr(2e3)}function*LLe({id:e}){try{let t=yield tB(e);R.default.info(`disconnectConnectedAccountsRequest disconnectedAccount`,t),yield M(sge(e,t)),yield M(vA()),yield M(fn({pathname:Z.settingsConnections}))}catch(t){yield M(cge(e,t))}}function*RLe({id:e,partner:t}){try{let n=yield nB(e,t);R.default.info(`syncConnectedAccountsRequest syncAccount`,n),yield M(dge(e,n)),yield M(vA())}catch(t){t?.message===`INVALID_PLAN`&&(t.message=U(`properties.property_create_fail_with_subscription`)),t.message=U(`account.error_listing_import`),yield M(fge(e,t))}}function*zLe(){yield We(nO,ILe),yield Ee(aO,FLe),yield Ee(uO,LLe),yield Ee(sO,RLe),yield Ee(qD,kLe),yield Ee(Lhe,ALe),yield Ee(Rhe,jLe),yield Ee(ZD,MLe),yield Ee(QD,NLe),yield We($D,PLe)}var BLe={[c$.invite_company]:t9,[c$.invite_partner]:t9};
3195function*t9(){yield M(dF(!0,`permissions_company_success`,{}))}function VLe(e){return(0,pc.default)(k$,(t,n)=>!!e[n])}function HLe(e,t,n){let r=e.properties.properties,i=Object.keys(r).filter(e=>!!r[e]),a=e.permissions.type===`option1`?{}:VLe(e.permissions.permissions),o=e.collType.type===`option1`&&t,{email:s}=e.email;return{properties:i.length>0?i:void 0,teamId:e.email.teamId?e.email.teamId:o,userId:e.email.userId,rights:a,email:s,partnerType:dte(e.type.type),enabled:(0,G.default)(n,[`enabled`])}}function n9(e,t){let n=_o(e),r=ho(e.partnerType),i=Object.keys(t).filter(e=>!!t[e]);return{email:{email:n,userId:e.userId,teamId:e.teamId,backendEmail:n,error:void 0},type:{type:r,backendType:r},collType:{type:e.internal?`option1`:`option2`,disabled:[]},permissions:{type:vo(e)?`option1`:`option2`,permissions:(0,pF.default)(e.rights||{},i),disabled:[]},properties:{type:yo(e)?`option1`:`option2`,properties:(0,If.default)(e.properties,(e,t)=>(e[t]=!0,e),{})}}}function ULe(e){let t=JSON.stringify(e);return/(.*)Email is blacklisted.(.*)/.test(t)?4:/(.*)RootDomain already used.(.*)/.test(t)?5:3}function*WLe(e){R.default.info(`editTeamSaga`,e);let t=yield P(vP,e);return yield M(QP(`teams`,t.team.objectId,t.team)),t}function*r9({submitData:e,firstTeam:t,mode:n,coll:r},i){yield M(uF(o$,1));try{let a=HLe(e.js,(0,G.default)(t,[`objectId`]),r);R.default.info(`runHandleSubmit`,a);let o=yield P(i,a);yield M(QP(`collaborators`,o.userId,o)),yield M(uF(o$,0)),yield M(dF(!1,`permissionmodal`,{}));let s=BLe[n];s&&(yield Jr(500),yield s())}catch(e){R.default.error(`runHandleSubmit - edit coll`,e),yield M(uF(o$,3))}}function*GLe({submitData:e,firstTeam:t,mode:n,coll:r}){(n===c$.invite||n===c$.invite_company||n===c$.invite_partner)&&(yield r9({submitData:e,firstTeam:t,mode:n,coll:r},gP)),(n===c$.edit_partner||n===c$.resend_partner||n===c$.edit_company||n===c$.resend_company)&&(yield r9({submitData:e,firstTeam:t,mode:n,coll:r},_P))}function*i9({meta:e}){try{yield M(uF(r$,1));let t=yield WLe(e);yield M(uF(r$,0)),yield Jr(500),yield M(dF(!1,`permissions_company`,{})),t.emailSend&&(yield Jr(300),yield M(dF(!0,`permissions_company_verifyinfo`,{email:e.email})))}catch(e){let t=ULe(e);t===3&&R.default.error(`handlePermissionActionSaga - createteam`,e),yield M(uF(r$,t))}}function*KLe(e,t){e===`createteam`&&(yield i9({meta:t},U(`permissions.company_created`))),e===`saveteam`&&(yield i9({meta:t},U(`permissions.team_saved`)))}function*a9(e,t){let n=e?`permissions.enabled_col`:`permissions.disabled_col`;try{yield M(uF(i$,1));let r=yield P(_P,{userId:t.data.userId,teamId:t.data.teamId,rights:t.data.rights,properties:t.data.properties,email:_o(t.data),enabled:e});yield M(QP(`collaborators`,r.userId,r)),yield M(uF(i$,0)),yield M(e$(`showinfomessage`,{text:n,color:`green`}))}catch(e){R.default.error(`handleEnableDisable`,e),yield M(uF(i$,0))}}var o9=(e,t,n)=>(0,If.default)(t,(e,t)=>({...e,[t]:n}),e);function s9(e,t,n){function r(){let n=[`seeCleanerNames`,`seePrice`,`seeProblems`,`seeVerificationPhotos`],r=e=>(0,If.default)(n,(t,n)=>e?.[n]?t+1:t,0)===n.length;return r(e)&&!r(t)?{...t,createChecklists:!1,sendJobs:!1,doJob:!1}:e?.sendJobs&&!t?.sendJobs?o9(t,(0,aC.default)(n,[`createChecklists`]),!1):t?.createChecklists?o9(t,n,!0):t?.sendJobs?o9(t,(0,aC.default)(n,[`createChecklists`]),!0):t?.doJob?o9(t,(0,aC.default)(n),!0):t}let i=r();return n&&(i=o9(i,n,!1)),i}var qLe={permissions:ZLe,property:QLe,type:XLe},JLe={email:l9,email_company:l9};function YLe(e){return e.type===`option1`?{...e,properties:{}}:{...e,properties:Object.fromEntries(Object.entries(e.properties||{}).filter(([,e])=>e))}}function*XLe({mode:e,submitData:t}){let n=t.raw?.type?.type;if(e===c$.invite_partner&&!n){let e=(0,G.default)(yield L(_$),[0]);e&&(yield M(e$(`changeSubmitType`,{value:{type:e}})))}}function*c9(e,t){yield M(t$({email:{...e.raw.email,error:t}}))}function*l9({submitData:e,mode:t,sectionId:n}){let r=!1;try{let i=e.raw?.email?.email,a=e.raw?.email?.backendEmail,o=a&&a===i,s=yield L(PSe(i));yield M(uF(s$,1));let c=yield P(G5,{email:i,type:`email`});if(n===`email`)!o&&s&&(t===c$.invite||t===c$.resend_partner||t===c$.invite_partner)?yield c9(e,3):!o&&c.userId&&!c.standaloneUser?yield c9(e,2):r=!0;else if(n===`email_company`){let t=yield L(OSe);!o&&c.userId?yield c9(e,2):(0,eb.default)(t,l$(i))===-1?yield c9(e,4):r=!0}}catch(t){R.default.error(`topbarnext`,t),yield c9(e,1)}finally{yield M(uF(s$,0))}return r}function*ZLe({submitData:e,mode:t}){let n=e.raw?.permissions?.type,r={...e.raw.permissions},i=yield L(b$);return(t===c$.invite||t===c$.invite_company||t===c$.invite_partner)&&(n||(r={...r,type:`option2`})),r.type===`option1`&&(0,eb.default)(i.sectionsById.permissions.sectionDisabledSection,`option1`)!==-1&&(r={...r,type:`option2`}),r={...r,permissions:s9(r.permissions,r.permissions,i.sectionBlackListenPermissions)},yield M(t$({permissions:r})),!0}function*QLe({submitData:e,mode:t}){if(t===c$.invite||t===c$.invite_company||t===c$.invite_partner){let t=e.raw?.properties?.type,n={...e.raw.properties};t||(n={...n,type:`option1`}),yield M(t$({properties:n}))}return!0}function*u9({currentSectionId:e,nextSectionId:t,runPost:n,runPre:r}){let i=yield L(g$),a=(yield L(f$))?.mode,o=r&&qLe[t],s=n&&JLe[e],c=!0;return s&&(c=yield s({submitData:i,mode:a,sectionId:e})),o&&(yield o({submitData:i,mode:a,sectionId:t})),c}function*d9(e,t,n,r,i){R.default.info(`goTo`,{currentIndex:e,array:t,limitFunc:n,modFunc:r,source:i});let a=i===`next`,o=yield L(h$),s=Xo(r(e),n,r,t);s?(yield u9({currentSectionId:o,nextSectionId:s.sectionId,runPost:a,runPre:!0}))?yield M($Q(`activeSection`,s.sectionId)):R.default.info(`goTo - postLoadFunc returned false`):R.default.error(`goTo - section not found currentIndex:${e}, source: ${i}`)}function*$Le({action:e,meta:t}){let n=yield L(g$),r=yield L(u$),i=yield L(f$),a=yield L(b$);R.default.info(`handlePermissionActionSaga`,{submitData:n,firstTeam:r,modalData:i,computedData:a});let o=i?.mode,s=i?.meta?.data;if((e===`createteam`||e===`saveteam`)&&(yield KLe(e,t)),e===`showinfomessage`&&(yield M($Q(`infomessage`,t)),yield Jr(5e3),yield M($Q(`infomessage`,{}))),e===`hideinfomessage`&&(yield M($Q(`infomessage`,{}))),e===`invite`&&(yield M(dF(!0,`permissionmodal`,{mode:c$.invite}))),e===`invite_company`&&(yield M(wSe({mode:c$.invite_company}))),e===`invite_partner`&&(yield M(dF(!0,`permissionmodal`,{mode:c$.invite_partner}))),e===`startTrial`&&bu(``),e===`doUpgrade`&&(yield M(aF({search:`?open=modal`,pathname:Z.settingsSub
3195scription}))),e===`edit_col`&&(yield M(dF(!0,`permissionmodal`,{mode:t.renderType===`internal`?c$.edit_company:c$.edit_partner,meta:t}))),e===`resend_col`){let e=t.renderType===`internal`;yield M(dF(!0,`permissionmodal`,{mode:e?c$.resend_company:c$.resend_partner,meta:t,intercept:e}))}if(e===`open_create_company`&&(yield M(dF(!0,`permissions_company`,{}))),e===`open_edit_company`&&(yield M(dF(!0,`permissions_company`,{}))),e===`changeSubmitEmail`&&(yield M(t$({email:t.value}))),e===`changeSubmitColl`&&(yield M(t$({collType:{type:t.value}}))),e===`changeSubmitType`&&(yield M(t$({type:t.value}))),e===`changeSubmitPermission`&&(yield M(t$({permissions:{...n.raw.permissions,...t.value,permissions:s9(n.raw?.permissions?.permissions,t.value?.permissions)}}))),e===`changeSubmitProperty`&&(yield M(t$({properties:YLe(t.value)}))),e===`topbarnext`&&(t.sectionNextMode===`next`&&(yield d9(t.sectionIndex,a.sections,e=>e>10,e=>e+1,`next`)),t.sectionNextMode===`send`)){yield M(uF(s$,1));try{yield GLe({submitData:n,firstTeam:r,mode:o,coll:s})}finally{yield M(uF(s$,0))}}if(e===`handlesubmit`&&R.default.warn(`handlesubmit action not implemented`),e===`leave_property`){yield M(uF(i$,1));try{yield P(dP,t.data.teamId),yield M(SSe(`sharedWithMe`,{[t.data.ownerRole]:{...t.data,enabled:!1}}))}catch(e){R.default.error(`leave_property`,e)}yield M(uF(i$,0))}if(e===`pre_leave_property_external`&&(yield M(dF(!0,`permissions_leavepropertyexternal`,{...t}))),e===`leave_property_external`){yield M(uF(i$,1));try{yield P(dP,t.teamId)}catch(e){R.default.error(`leave_property`,e)}yield M(dF(!1,`permissions_leavepropertyexternal`,{})),yield M(uF(i$,0)),yield M(aF(Z.properties))}if(e===`pre_revoke_col`&&(yield M(dF(!0,`permissions_cancelaccess`,{...t}))),e===`topbarback`&&(yield d9(t.sectionIndex,a.sections,e=>e<0,e=>e-1,`back`)),e===`revoke_col`)try{yield M(uF(i$,1)),yield P(fP,t.data.userId,t.data.teamId),yield M(QP(`collaborators`,t.data.userId,{...t.data,enabled:!1})),yield M(uF(i$,0)),yield M(e$(`showinfomessage`,{text:`permissions.col_remove_success`,color:`green`}))}catch(e){R.default.error(`revoke_col`,e),yield M(uF(i$,0))}if(e===`resend_only`)try{yield M(uF(i$,1)),yield P(xP,t.data.userId,t.data.teamId),yield M(uF(i$,0)),yield M(e$(`showinfomessage`,{text:`permissions.your_invitation_sent`,color:`green`}))}catch(e){R.default.error(`resend_only: `,e),yield M(uF(i$,0)),yield M(e$(`showinfomessage`,{text:e?.includes?.(`Code[429]`)?`permissions.send_invite_error`:`login.error`,color:`red`}))}e===`disable_col`&&(yield a9(!1,t)),e===`enable_col`&&(yield a9(!0,t)),e===`view_property`&&(yield M(dF(!0,`permissionmodal`,{mode:c$.property,meta:t})))}function*eRe(){yield Ee(Hk,$Le)}function*tRe(){try{yield M(uF(n$,1));let[e,t,n]=yield or([XW(),YW(),uP()]);yield M($Q(`sharedWithMe`,n)),yield M(nF(`collaborators`,(0,CR.default)(e,`userId`),!1)),yield M(nF(`teams`,(0,CR.default)(t,`objectId`),!1)),yield M(uF(n$,2))}catch(e){R.default.error(`initPermissionsSaga`,e),yield M(uF(n$,3))}}function*nRe({mode:e,meta:t}){yield M($Q(`modalMeta`,{mode:e,meta:t}));let n=`email`;e===c$.property?(n=`seeper`,yield M(t$({view:t.data}))):e===c$.edit_company?(yield M(t$(n9(t.data,k$))),n=`permissions`):e===c$.resend_company?(n=`email_company`,yield M(t$(n9(t.data,k$,!0)))):e===c$.resend_partner||e===c$.edit_partner?(n=`type`,yield M(t$(n9(t.data,k$)))):e===c$.invite_company?(n=`email_company`,yield M(e$(`changeSubmitColl`,{value:`option1`}))):e===c$.invite_partner&&(n=`type`,yield M(e$(`changeSubmitColl`,{value:`option2`})),yield u9({currentSectionId:void 0,nextSectionId:n,runPre:!0})),yield M($Q(`activeSection`,n))}function*rRe(){yield M($Q(`modalMeta`,{mode:void 0,meta:{}})),yield M(CSe()),yield M(uF(a$,0)),yield M(uF(s$,0)),yield M(uF(o$,0))}function*iRe({meta:{mode:e,startupData:t}}){e===`mount`&&(yield nRe(t)),e===`unmount`&&(yield rRe(t))}function aRe(e){return e.type===`GLOBAL_SET_MODAL`&&!e.value&&e.id===`permissions_company`}function*oRe(){yield M(uF(r$,0))}function*sRe(e){R.default.info(`[openCompanyInviteModal] Opening company invite modal:`,e);let t=yield L(u$);if(!t||!t.email){R.default.warn(`[openCompanyInviteModal] Company missing email:`,{hasTeam:!!t,hasEmail:!!t?.email}),yield M(dF(!0,`permissions_warningcompanyemailmissing`));return}R.default.info(`[openCompanyInviteModal] Opening modal (validation passed)`),yield M(dF(!0,`permissionmodal`,e))}function*cRe(e){yield sRe(e.meta)}function*lRe(){yield Ee(zk,tRe),yield Ee(Uk,iRe),yield Ee(aRe,oRe),yield Ee(Kk,cRe)}var f9=(0,yc.default)((e,t)=>(0,z.default)(e).tz(t)),uRe=(0,yc.default)(e=>(0,z.default)(e).toDate()),p9=(0,yc.default)((e,t)=>(0,z.default)(e).format(t)),dRe=e=>(0,G.default)(e,[`type`])===5;function fRe(e){return e===`jobstatus.delayed`?`delayed`:e===`jobstatus.seen`||e===`
3195jobstatus.pending`?`pending`:e===`jobstatus.accepted`?`accepted`:e===`jobstatus.cancelled`||e===`jobstatus.declined`?`cancelled`:e===`jobstatus.started`?`progress`:e===`jobstatus.completed`?`finished`:`accepted`}var pRe=class{constructor(e){let{id:t,type:n,bookingId:r,triggerId:i,propertyId:a,timeZone:o,propertyTitle:s,startTime:c,endTime:l,status:u,eventStatus:d,needsCTA:f,deleted:p,payload:m,days:h,propertyAddress:g,createdAt:_,jobSnapshotId:v}=e;this.objectId=t,this.type=n,this.jobSnapshotId=v,this.bookingId=r,this.triggerId=i,this.propertyId=a,this.timeZone=o,this.propertyTitle=s,this.propertyAddress=g,this.startTime=c,this.endTime=l,this.status=u,this.eventStatus=d,this.needsCTA=f,this.deleted=!!p,this.payload=m,this.days=h,this.dateFormat=`YYYYMMDD`,this.createdAt=_}get jobRequest(){return this.jobRequestResolved}get booking(){return this.bookingResolved}get reminder(){return this.triggerResolved}get jobRequestResolved(){return(0,G.default)(this,[`payload`,`jobRequest`])}get jobRequestIsDelayed(){return this.status===W.StateAccepted&&(0,z.default)().toDate()-this.startMomentDate>0}get startMoment(){return f9(this.startTime,this.timeZone)}get startMomentDate(){return uRe(this.startMoment)}get bookingResolved(){return(0,G.default)(this,[`payload`,`booking`])}get triggerResolved(){return(0,G.default)(this,[`payload`,`trigger`])}get isRecurringReminder(){return dRe(this)}get reminderTitle(){return(0,G.default)(this,[`payload`,`trigger`,`title`])}get reminderJobs(){return(0,G.default)(this,[`payload`,`trigger`,`jobs`])||[]}get bookingArrival(){return(0,G.default)(this.bookingResolved,[`arrivalDate`,`iso`])||this.bookingResolved.arrivalDate}get bookingDeparture(){return(0,G.default)(this.bookingResolved,[`departureDate`,`iso`])||this.bookingResolved.departureDate}get bookingArrivalMoment(){return f9(this.bookingArrival,this.timeZone)}get bookingDepartureMoment(){return f9(this.bookingDeparture,this.timeZone)}get bookingArrivalFormat(){return this.bookingResolved&&this.bookingResolved.arrivalLocalDay&&`20${this.bookingResolved.arrivalLocalDay}`||p9(this.bookingArrivalMoment,this.dateFormat)}get bookingDepartureFormat(){return this.bookingResolved&&this.bookingResolved.departureLocalDay&&`20${this.bookingResolved.departureLocalDay}`||p9(this.bookingDepartureMoment,this.dateFormat)}isBookingStartDay(e){return this.bookingArrivalFormat===e}isBookingEndDay(e){return this.bookingDepartureFormat===e}get bookingInfo(){return this.bookingResolved?{partner:this.bookingResolved.partner===`iCal`?this.bookingResolved.partner:Sc(this.bookingResolved.partner),guest:this.bookingResolved.guestName,arrivalDate:this.bookingArrivalMoment,departureDate:this.bookingDepartureMoment,numberOfGuests:this.bookingResolved.numberOfGuests}:{}}get jobRequestStatusString(){if(this.jobRequestIsDelayed)return`jobstatus.delayed`;if(this.status===W.StateCreated&&this.jobRequestResolved.seen)return`jobstatus.seen`;switch(this.status){case W.StateCreated:return`jobstatus.pending`;case W.StateAccepted:return`jobstatus.accepted`;case W.StateCancelled:case W.StateCleanerCancelled:return`jobstatus.cancelled`;case W.StateDeclined:return`jobstatus.declined`;case W.StateStarted:case W.StatePaused:return`jobstatus.started`;case W.StateFinished:return`jobstatus.completed`;default:return null}}matchSignature(e,t,n){return this.type===e&&this.status===t&&this.eventStatus===n}get bookingInfoFormatted(){let e=this.bookingInfo;if((0,Ux.default)(e).length===0)return``;let t=e.numberOfGuests>0?` ⢠${e.numberOfGuests} ${U(e.numberOfGuests===1?`calendartile.guest_singular`:`calendartile.guest_plural`)}`:``;return`${e.partner}: ${e.arrivalDate.format(`L`)} â ${e.departureDate.format(`L`)}${t} ⢠${e.guest}`}get jobRequestColor(){return fRe(this.jobRequestStatusString)}},m9=[];function*mRe(){let e=m9.slice(0);e.length>0&&(R.default.info(`flush - todo`,e),m9.splice(0,m9.length),yield M(DZ((0,CR.default)(e,`objectId`))))}function*hRe(){for(;;)yield Jr(1e3),yield P(mRe)}function*h9(e){try{let t=yield P(uQ,e);yield M(nF(`jobRequests`,{[t.jobId]:t},!0)),yield M(aY({selectedJobRequestId:t.jobId,jobProgress:t.jobProgress,title:t.title,state:0}))}catch(e){R.default.error(`loadJobRequestForModal`,e)}}function*gRe(){try{R.default.info(`eventChannelStartSaga - start todo`);let e=yield L(FC),t=yield oi(J5,{className:`Event`,listenOnArray:[`update`,`create`],queryModifierFunc:t=>(t.containedIn(`ownerRole`,e.actAsRole),t),handleEventGenerator:e=>{m9.push(e)}}),n=yield oi(hRe);yield w([Pk,wE]),yield zn(t),yield zn(n),R.default.info(`eventChannelStartSaga - stop todo`)}catch(e){R.default.error(`eventChannelStartSaga - todo`,e)}}function*_Re(e,t){try{let n=yield P(qIe,t,e);if(n?.error)throw n;return(n?.result||[]).map(e=>new pRe(e))}catch(e){return R.default.error(`Loading todos error`,e),!1}}function*vRe(){try{let e=yield P(t7);if(e?.error)throw e;yield M(TZ({stripeSPStatus:e}))}catch(e){R.default.error(`Loading todos error`,e),yield M(TZ({stripeSPStatus:!1}))}}function*g9(){try{R.default.info(`Loading all jobs data`);let e=[],t=0,n=null;for(;n===null||e.length<n;){let r=yield P(JIe,100,t);if(!r||!r.result||(e=[...e,...r.result],t+=r.result.length,n===null&&r.info&&r.info.total!==null&&(n=r.info.total),e.length>=n))break}R.default.info(`Loaded ${e.length} jobs`),yield M(TZ({jobs:e}))}catch(e){R.default.error(`Error loading all jobs data`,e)}}var yRe=e=>Array.isArray(e)?e.filter(Boolean):e?[e]:void 0;function*bRe({initOrDeinit:e,date:t}){e?(yield M(CZ(!1,t)),yield P(vRe),yield P(g9),yield P(gRe)):yield M(wbe())}function*xRe(e){let t=yield L(O1);return{...e,...t}}function*SRe({paginate:e,date:t}){let n=yield L(D1),r=t||n.date;e||(yield M(uF(`todos`,1)));let i=yield P(_Re,n.todosSkip,n.limit);if(i){let t=i.length+n.todosSkip,a=i.length!==0;yield M(TZ({events:yield P(xRe,(0,CR.default)([...i],`objectId`)),pagination:{date:r,todosSkip:t,hasMoreData:a,limit:n.limit}})),e||(yield M(uF(`todos`,2)))}else e||(yield M(uF(`todos`,3)))}function*CRe(e,t,n,r,i,a){let o=e=>e?.payload?.jobRequestSettings??void 0,s=e=>e?.payload?.trigger?.title??void 0,c=e=>e?.payload?.trigger?.startTime??void 0,l=e=>e?.payload?.trigger?.endTime??void 0,u=(e,t)=>
3195{let n=parseInt(e,10);if(!Number.isNaN(n))return(t?(0,z.default)(t).tz(a):z.default.tz(a)).clone().startOf(`day`).add(n,`minutes`)},d=(e,t)=>{if(e!=null)return z.default.isMoment?.(e)?e:typeof e==`number`||typeof e==`string`&&/^\d+$/.test(e)?u(e,t):(0,z.default)(e).tz(a)},{time:f,offeredPrice:p,offeredPriceCurrency:m,message:h,cleaners:g,jobType:_,isForwardingEnabled:v}=o(n)||{},y=Jc(z.default.tz(a).add(3,`minutes`)),{endTime:b,startTime:x,duration:S,type:C}=f||{},w=s(n),T=t||n?.startTime,E=d(x,T)||t?.clone().hours(10).minutes(0)||d(c(n),T),D=d(b,T)||E&&(0,z.default)(E).add(S||`60`,`minutes`)||t&&(0,z.default)(t).add(S||`60`,`minutes`)||d(l(n),T);(!E||(0,z.default)(E).isBefore(y))&&(E=Jc(z.default.tz(a).add(3,`minutes`)),D=E.clone().add(S||`60`,`m`));let ee=yRe(i);yield M(XK({mode:`normal`,source:`event`,event:n,eventId:r,data:{message:h,price:p,currency:m,title:w,startTime:E&&Jc(E),endTime:D&&Jc(D),duration:S||`60`,jobStartTimeType:C||`fixed`,cleaners:g,jobType:_,isForwardingEnabled:v,propertyId:e,checklistId:ee?.length?ee:void 0}}))}function*wRe(e){let t=(0,G.default)(e,[`data`,`objectId`]),n=(0,G.default)(e,[`data`,`propertyId`]),r=(0,G.default)(e,[`data`,`days`,0]),i=(0,G.default)(e,[`data`,`jobSnapshotId`]),a=r?(0,z.default)(r,`YYMMDD`,!0):null,o=a?.isValid()?a:null;if(e.mode===`clicktile`&&(yield M(YJ(e.data.jobSnapshotId))),e.mode===`clicktileJob`&&(yield M(YJ(e.data.id,!0))),e.mode===`schedule`&&(yield P(CRe,n,o,e.data,t,e.data.triggerJobId,e.data.timeZone)),e.mode===`skip`&&(yield M(rQ({mode:`skip`,continue:EZ.bind(null,`skipreal`,e.data),restore:()=>{}}))),e.mode===`skipreal`)try{yield P(W7,t),Jv(t)}catch(e){R.default.error(`handleClickSaga - skipreal`,e)}if(e.mode===`acceptJob`&&(yield M(rQ({mode:`acceptJob`,continue:EZ.bind(null,`acceptJobReal`,e.data),restore:()=>{}}))),e.mode===`acceptJobReal`)try{e.data?.status===Ua.PendingChanges?yield P(bZ,e.data.id,!0):yield P(bZ,e.data.id),yield P(g9)}catch(e){R.default.error(`handleClickSaga - acceptJobReal`,e)}if(e.mode===`declineJob`&&(yield M(rQ({mode:`declineJob`,continue:EZ.bind(null,`declineJobReal`,e.data),restore:()=>{}}))),e.mode===`declineJobReal`)try{e.data?.status===Ua.PendingChanges?yield P(xZ,e.data.id,!0):yield P(xZ,e.data.id),yield P(g9)}catch(e){R.default.error(`handleClickSaga - declineJobReal`,e)}if(e.mode===`dismissJob`)try{yield P(YIe,e.data.id),Jv(t),yield P(g9)}catch(e){R.default.error(`handleClickSaga - dismissJob`,e)}if(e.mode===`attach`){let t=e.data;yield M(f1({eventId:t.objectId,propertyId:t.propertyId,source:`todos`}))}if(e.mode===`ignore`&&(yield M(rQ({mode:`ignoreReminder`,continue:EZ.bind(null,`ignoreReal`,e.data),restore:()=>{}}))),e.mode===`ignoreReal`)try{yield P(W7,t),Jv(t);let e=(yield L(O1))[t];yield M(DZ({[t]:{...e,needsCTA:!1,deleted:!0}}))}catch(e){R.default.error(`handleClickSaga - ignoreReal`,e)}if(e.mode===`sendmore`&&(yield P(h9,i),yield M(nY(!0))),e.mode===`edit`&&(yield P(h9,i),yield M(eY(!0,{event:e.event}))),e.mode===`cancel`&&(yield M(rQ({mode:`cancel`,continue:EZ.bind(null,`cancelreal`,e.data),restore:()=>{}}))),e.mode===`cancelreal`)try{yield P(_Z,i)}catch(e){R.default.error(`handleClickSaga - cancelreal`,e)}e.resolve&&e.resolve()}function*TRe({eventId:e}){try{let t=(yield L(O1))[e];yield M(DZ({[e]:{...t,needsCTA:!1,deleted:!0}}))}catch(e){R.default.error(`remindersAttached`,e)}}function*ERe(){yield Ee(jk,bRe),yield Ee(Mk,SRe),yield Ee(Nk,g9),yield Ee(Ik,wRe),yield Ee(Rk,TRe)}function DRe(e,t){return(0,If.default)({...e,...t},(e,t,n)=>{let r={};return t&&(r[n]=t),{...e,...r}},{})}function ORe(e,t){return(0,Ux.default)(e).length>0?DRe(t,e):{}}function*kRe(e,t){let n=yield L(EC);setTimeout(()=>{(0,xc.default)(e,(e,r)=>{t[r]&&e!==t[r]&&(r===`propertyId`&&Uv(t[r]),r===`checklistId`&&(0,xc.default)((0,sQ.default)((0,gx.default)(t[r]),(0,gx.default)(e)),e=>{Wv(e)}),r===`cleaners`&&(0,xc.default)((0,sQ.default)((0,Ux.default)(t[r]),(0,Ux.default)(e)),e=>{e===n?Gv():Vv()}))})})}function*ARe(e=[]){let t=yield L(WC);if((e||[]).length===0)return null;let n=e&&e[0],{title:r}=n&&t[n]||{};return r&&r+(e.length>1?` + ${e.length-1}`:``)||``}function*_9(e,t){R.default.info(`Job request flushUpdate -pre`,{changeSet:e,source:t});let n=yield L(QY),r={...n};e.cleaners&&(r.cleaners=ORe(e.cleaners,r.cleaners));let i=e.checklistId||r.checklistId||[];e.checklistId&&(r.checklistId=i);let a=e.skills||r.skills||[];e.skills&&(r.skills=a),r.defaultJobTitle=yield P(ARe,i);let o={...r,...(0,Pf.default)(e,[`cleaners`,`checklistId`,`skills`])};yield oi(kRe,n,o),yield M(hve(o))}function*v9(e,t){let n=[];n=e?[e,{id:e,metaval:t}]:[void 0,void 0],yield M(mve(...n))}var y9=[`propertyId`,`checklistId`,`skills`,`jobStartTimeType`,`timeConfig`,`editedBookingConfig`,`canceledBookingConfig`,`serviceProviderConfig`,`recurrenceConfig`,`currency`,`price`,`cleaners`,`title`,`message`,`isDefault`,`tasks`,`jobType`,`jobEventType`,`status`,`isForwardingEnabled`],b9={propertyId:jRe,checklistId:MRe},x9=e=>(0,z.default)(e).isValid(),S9={defaultMerger:(e,t)=>t,cleaners:(e,t)=>({...e,...t}),startTime:(e,t)=>
3195{if(x9(e)&&(0,Rf.default)(t))return Vc(e,t);if(x9(e)&&x9(t))return S9.defaultMerger(e,t);R.default.error(`â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸â ï¸ï¸ï¸ 3196merger issue - startTime`,{oldVal:e,newVal:t},e.prototype,typeof e,typeof t)},endTime:(e,t)=>{if(x9(e)&&(0,Rf.default)(t))return Vc(e,t);if(x9(e)&&x9(t))return S9.defaultMerger(e,t)}};function C9(e,t,n,r){let i=(0,If.default)(e,(e,n)=>((0,eb.default)(t,n.userId)!==-1&&!n.deleted&&(e[n.userData.objectId]=n),e),{});return n&&r.forEach(({serviceProviderId:e,backup:t})=>{i[e]&&(i[e].backupCleaner=t)}),i}function*jRe(e,t){let n={},r=`sync`,{propertyId:i}=e;if(!i)return n;let a=yield L(nw(i));a||(yield M(QP(`properties`,i,yield VN(i))),a=yield L(nw(i))),n.currency=e.currency||Gl(a.countryCode)||`USD`,yield oi(HRe,a);let o=a?.defaultJob;return!(0,G.default)(n,[`checklistId`,0])&&!(0,G.default)(e,[`checklistId`,0])&&(r=`async`),t.isReadOnly&&(r=`async`),t.noPropertyRefetch&&(r=!1),r===`sync`?yield P(E9,i,o):r===`async`&&(yield oi(E9,i,o)),R.default.info(`sendJobRequest - loadProperty`,{loadChecklistsVal:r}),n}function*MRe(e){let t={},n=(0,G.default)(e,[`checklistId`,0]);if(!n)return t;let r=(yield L(WC))[n];if(R.default.info(`sendJobRequest - loadChecklist`,{resolvedChecklist:r,dataInput:e,firstChecklistId:n}),r&&r.defaultSettings){e.jobStatus===W.StateAccepted&&(r.defaultSettings.cleaners=[]);let n=yield w9(NRe(r.defaultSettings));t={...t,...n},R.default.info(`loadChecklist - defaulsettings`,r.defaultSettings,n)}return r||(t.checklistId=(e.checklistId||[]).filter(e=>e!==n)),(!(0,z.default)(t.startTime).isValid()||!(0,z.default)(t.endTime).isValid())&&R.default.error(`Invalid startTime / endTime from loadChecklist`,t),t}function NRe(e){return{...e,price:e.offeredPrice}}function*PRe(e){let t=yield L(KC),n={};return(0,xc.default)(y9,r=>{e[r]&&(r===`cleaners`?n[r]=C9(t,e[r]):n[r]=e[r])}),n}function*FRe(e,t,n){let r=yield P(YTe,t,n);if(!r){yield M(dF(!1,`autoscheduling`,{})),yield M(yY(!0));return}let{canceledCheckInOutConfig:i,tasks:a,jobType:o,checklists:s,eventType:c,status:l,editedCheckInOutConfig:u,jobTitle:d,offeredPrice:f,offeredPriceCurrency:p,propertyId:m,propertyTitle:h,serviceProviders:g,serviceProviderConfig:_,timeConfig:v,recurrenceConfig:y,skills:b,note:x,isForwardingEnabled:S}=r,C={};(0,xc.default)(y9,t=>{e[t]&&(C[t]=e[t])});let w=yield L(nw(m)),T={};if(w){let e=yield P(qN,w);e?.length>0&&(T=(0,CR.default)(e,`userId`))}let E=C9({...yield L(KC),...T},g.map(e=>e.serviceProviderId),!0,g),D=y&&{...y,startDate:y.startDate?(0,z.default)(y.startDate).tz(w.timeZone).format(`YYYY-MM-DD`):null};return C={...C,tasks:a,jobType:o,isForwardingEnabled:S,jobEventType:c,checklistId:s?.map(e=>e.id),status:l,editedBookingConfig:u,canceledBookingConfig:i,title:d,price:f,currency:p,propertyId:m,propertyTitle:h,cleaners:E,serviceProviderConfig:_,timeConfig:v,recurrenceConfig:D,message:x,skills:b?.map(e=>({skillId:e.id,dependency:e.dependency})),jobStatus:l},C}function*w9(e,t,n){return t===void 0?yield P(PRe,e):yield FRe(e,t,n)}function*IRe(e,t,n){return b9[e]?yield b9[e](t,n):{}}function*LRe(e,t){let n=0,r={...e};for(;n<y9.length;){let e=y9[n],i=yield IRe(e,r,t),a=t.isReadOnly?{}:i;R.default.info(`resolvedData`,{key:e,resFinal:a,settings:t}),r={...r,...a},n+=1}return r}function RRe(e,t){let n=0,r={};for(;n<y9.length;){let i=y9[n];e[i]&&t[i]?r[i]=(S9[i]||S9.defaultMerger)(e[i],t[i]):r[i]=t[i]?t[i]:e[i],n+=1}return r}function zRe(e){let t=``;return e.mode===l_.normal&&(t=`new`),e.mode===l_.edit&&(t=`edit`),t}function*BRe(e){return Gl((yield L(nw(e)))?.countryCode)||`USD`}function*VRe({data:e}){let t=e.data;yield M(sH()),yield M(uH()),yield M(yH()),R.default.info(`initAutoschedulingSaga - open`,{data:e}),e.mode===l_.edit&&(yield v9(`checklist`)),e.mode===l_.edit&&!t.currency&&(t.currency=yield P(BRe,t.propertyId)),Tpe(e.source,zRe(e));let n;n=e.mode===l_.normal?yield w9(t):yield w9(t,t.id,e?.source);let r={...e,data:n};R.default.info(`initAutoschedulingSaga - normalized`,{inputData:t,normalized:n,extendedNormalized:r}),yield M(gve(r)),yield M(uF(iX,1));let i=e.mode===l_.edit,a=!!(0,G.default)(r,[`data`,`checklistId`,0]);e.hiddenModalMode||(yield T9([],{isReadOnly:i,isInit:!0,noPrefill:a})),e.mode===l_.normal&&(yield v9((yield L(rX)).hightLightedSectionId||`time`)),yield M(uF(iX,0))}function*T9(e,t={},n){let r=yield L(eX),i=yield L(QY);R.default.info(`reloadSection - start`,{startupData:r,jobData:i,settings:t,whitelist:e});let a={cleaners:{},checklistId:[],...r?.data,...(0,pF.default)(i,e)};R.default.info(`reloadSection - preresolve`,a);let o=yield LRe(a,t);R.default.info(`reloadSection - premerge`,o);let s=RRe(a,o);n&&(s=(0,Pf.default)(s,n)),yield _9(s,`reloadSection`)}function*E9(e){try{yield M(uF(aX,1));let t=(0,CR.default)(yield P(UN,e),`objectId`);return yield M(nF(`jobs`,t,!0)),t}catch(e){return R.default.error(`loadChecklists`,e),{}}finally{yield M(uF(aX,0))}}function*HRe(e){try{yield M(_Y([])),yield M(_Y(yield P(qN,e)))}catch(e){R.default.error(`getCommunityCleaners`,e)}}function*URe(){yield Ee(oD,VRe)}function*WRe({title:e}){yield P(_9,{title:e})}function*GRe({jobType:e}){yield P(_9,{jobType:e})}function*KRe({taskTitle:e}){yield P(_9,{taskTitle:e})}function*qRe({taskDescription:e}){yield P(_9,{taskDescription:e})}function*JRe({timeConfig:e}){yield P(_9,{timeConfig:e})}function*YRe({isForwardingEnabled:e}){yield P(_9,{isForwardingEnabled:e})}function*XRe({editedBookingConfig:e}){yield P(_9,{editedBookingConfig:e})}function*ZRe({canceledBookingConfig:e}){yield P(_9,{canceledBookingConfig:e})}function*QRe({serviceProviderConfig:e}){yield P(_9,{serviceProviderConfig:e})}function*$Re({recurrenceConfig:e}){yield P(_9,{recurrenceConfig:e})}function*eze({checklistId:e}){let t=yield L(uye),n=t&&t||[];R.default.info(`JobRequestSagas - Select checklist existingChecklistIds`,n),yield P(_9,{checklistId:n.find(t=>e===t)?n.filter(t=>e!==t):[...n,e]})}function*tze({skillId:e}
3196){let t={skillId:e,dependency:Wa.DEPENDENCY_STATUS.REQUIRED},n=(yield L(hye))||[];R.default.info(`JobRequestSagas - Select checklist existingChecklistIds`,n),yield P(_9,{skills:n.find(t=>t.skillId===e)?n.filter(t=>t.skillId!==e):[...n,t]})}function*nze(e){if(e.meta.action===`click`&&e.meta.sender&&(yield v9(e.meta.sender)),e.meta.action===`jobEventType`&&(yield P(_9,{jobEventType:e.meta.jobEventType})),e.meta.action===`typemessage`&&(yield P(_9,{message:e.meta.value})),e.meta.action===`setcleaner`){let t=(0,vc.default)(e.meta.contact)?e.meta.contact.userData.objectId:e.meta.contact,n={};n[t]=e.meta.set?e.meta.contact:void 0,yield P(_9,{cleaners:n})}if(e.meta.action===`addTaskForm`){let{tasks:t,tempTaskImages:n}=yield L(QY);t||(t=[]);let r={};r.id=e.meta.addTaskForm.id,r.note=e.meta.addTaskForm.task,r.title=e.meta.addTaskForm.title,r.pictureIdentifiers=n,yield P(_9,{tasks:[...t,r],tempTaskImages:[]})}if(e.meta.action===`addTaskPic`){let t=e.meta.addTaskPic;R.default.info(`JobRequestSagas - uploadTaskPic`,t);try{let{tempTaskImages:e}=yield L(QY),n=yield P(tP,t);R.default.info(`uploadPic - res`,n),yield P(_9,{tempTaskImages:[...e,n.pictureUrl]})}catch(e){R.default.error(`uploadPic - error`,e),yield M(uF(d_,3))}}if(e.meta.action===`cancelTaskForm`){let{tempTaskImages:e}=yield L(QY);e=[],yield P(_9,{tempTaskImages:e})}if(e.meta.action===`deleteTaskForm`){let{tasks:t}=yield L(QY);yield P(_9,{tasks:t.filter(t=>t.title!==e.meta.deleteTaskTitle||t.note!==e.meta.deleteTaskDescription)})}if(e.meta.action===`setcleaners`&&(yield P(_9,{cleaners:e.meta.contacts})),e.meta.action===`clickdefaultchange`&&(yield P(_9,{isDefault:e.meta.val})),e.meta.action===`clickback`&&(yield v9(e.meta.prevSection.id)),e.meta.action===`setprice`&&(yield P(_9,{price:e.meta.value})),e.meta.action===`clickreset`){let t={};e.meta.section===`time`&&(t.time=void 0,t.day=void 0,t.endDay=void 0,t.startTime=void 0,t.endTime=void 0,t.duration=`60`,t.jobEventType=``,t.recurrenceConfig={}),e.meta.section===`cleaners`&&(t.cleaners={}),e.meta.section===`price`&&(t.price=0),e.meta.section===`message`&&(t.message=``),e.meta.section===`title`&&(t.title=``),yield P(_9,t)}if(e.meta.action===`clickproperty`){let t=e.meta.id;yield P(_9,{propertyId:t}),yield oi(T9,[`propertyId`,`jobType`,`title`,`isForwardingEnabled`],{},[`propertyId`])}e.meta.action===`next`&&(yield v9(e.meta.nextSection.id))}function*rze(){(0,xc.default)(yield L(KC),e=>{delete e.backupCleaner})}function*ize(){yield M(vve()),yield rze(),yield M(uF(iX,void 0,{})),yield M(uF(aX,void 0,{})),yield M(uF(oX,void 0,{}))}function aze(e){return e.type===`GLOBAL_SET_MODAL`&&!e.value&&e.id===`autoscheduling`&&!e.meta?.hiddenModalMode}function*oze(){yield Ee(pD,nze),yield We(cD,eze),yield We(bD,tze),yield We(lD,WRe),yield We(uD,GRe),yield We(dD,YRe),yield We(SD,KRe),yield We(xD,qRe),yield We(CD,JRe),yield We(wD,XRe),yield We(TD,ZRe),yield We(ED,QRe),yield We(DD,$Re),yield Ee(aze,ize)}function*D9(e,t,n){try{yield M(uF(oX,1));let r=(0,pF.default)(e,t),i;if(n?n&&(i=yield P(qTe,{id:e.prevJobRequestId,job:r}),yield Jr(1e3)):i=yield P(KTe,r),Pu(i,`JOB_ALREADY_SCHEDULED`))return yield v9(`job_already_scheduled`),yield M(uF(oX,3));let a=us(i);if(a?.status===`ERROR`)return yield v9(`error_handled_from_api`,a.message),yield M(uF(oX,3));if(i.apiError)throw i;let o=yield P(P0);yield M(uF(oX,2)),yield v9(`success`),o===1?yield M(vY(Qa.REFRESH_ALL)):yield M(vY(Qa.REFRESH_LV))}catch(e){R.default.error(`submitSaga`,e),yield v9(`error`),yield M(uF(oX,3))}return null}function*sze({data:e}){let{ownerRole:t}=e.property||{},n=yield L(FC);return yC({propertyOwner:t,user:n})?(lc(t,n),!0):(yield M(dF(!0,u_.CANNOT_SEND_PROPERTY_JOBS_PERMISSION,{})),yield M(dF(!1,`autoscheduling`,{})),!1)}var cze=({jobRequestData:e})=>{let t=e?.cleaners||{};return Object.values(t)?.map(e=>({serviceProviderId:e?.userId,serviceProviderName:`${e?.userData?.firstName} ${e?.userData?.lastName}`,backup:!!e?.backupCleaner}))},lze=({startupData:e,jobRequestData:t,properties:n})=>{let{tasks:r}=t||{},i=r||[],a=n[t?.propertyId]?.timeZone,o=t?.recurrenceConfig?{...t.recurrenceConfig,startDate:t.recurrenceConfig.startDate?z.default.tz(t.recurrenceConfig.startDate,`YYYY-MM-DD`,a).toISOString():null}:void 0;return{prevJobRequestId:e?.autoSchedulerDataId,property:n[t?.propertyId],tasks:i,jobEventType:t?.jobEventType,checklist:t?.checklistId,skills:t?.skills,jobType:t?.jobType,offeredPrice:t?.price,offeredPriceCurrency:t?.currency,note:t?.message,title:t?.title||t?.defaultJobTitle,isForwardingEnabled:t?.isForwardingEnabled,timeConfig:t?.timeConfig,editedBookingConfig:t?.editedBookingConfig,canceledBookingConfig:t?.canceledBookingConfig,serviceProviderConfig:t?.serviceProviderConfig,recurrenceConfig:o,selectedCleaners:cze({startupData:e,jobRequestData:t}),duration:t?.duration,day:t?.startTime?Wc(t?.startTime):void 0}};function*uze(){let e=yield L(QY),t=yield L(PC),n=yield L(tX),r=yield L(eX);R.default.info(`submitSaga`,{mode:n,properties:t,jobRequestData:e});let i=lze({startupData:r,jobRequestData:e,properties:t}),a=[`property`,`duration`,`day`,`endDay`,`checklist`,`skills`,`offeredPrice`,`selectedCleaners`,`offeredPriceCurrency`,`note`,`jobType`,`isForwardingEnabled`,`title`,`tasks`,`jobEventType`,`timeConfig`,`editedBookingConfig`,`canceledBookingConfig`,`serviceProviderConfig`,`recurrenceConfig`];if(n===l_.normal){if(!(yield sze({data:i})))return;yield D9(i,a,!1);return}if(n===l_.edit){yield D9(i,[...a,`cancelJobRequest`,`eventId`,`sourceJobSnapshotId`],!0);return}R.default.error(`submitSaga -- unknown flow ${n}`,i)}function*dze(e){let{id:t,status:n,closeModalFunc:r,setSuccessFunc:i,setErrorFunc:a}=e,o=n===Xa.ACTIVE?Xa.INACTIVE:Xa.ACTIVE;try{let e=yield P(N0,t,o);if(e.apiError)throw e;yield M(vY(Qa.REFRESH_LV)),i()}catch(e){R.default.error(`submitSaga`,e),a()}return r(),null}function*fze(e){let{id:t,closeModalFunc:n,setSuccessFunc:r,setErrorFunc:i}=e;try{let e=yield P(JTe,t);if(e.apiError)throw e;(yield P(P0))===0?yield M(vY(Qa.REFRESH_ALL)):yield M(vY(Qa.REFRESH_LV)),r()}catch(e){R.default.error(`submitSaga`,e),i()}return n(),null}function*pze(){yield We(sD,uze),yield We(kD,dze),yield We(AD,fze)}var O9=F` 3197 fragment ReminderFields on Reminder { 3198 id 3199 propertyId 3200 type 3201 title 3202 jobIds 3203 cadence { 3204 repeatEvery 3205 repeatUnit 3206 daysOfWeek 3207 daysOfMonth 3208 startDate 3209 } 3210 leadTimeDays 3211 # 11.3 Reminder exposes createdAt + deleted (plus version/ownerRole/ 3212 # propertyRole, which the UI does not need). The previous status and 3213 # updatedAt selections are not in the spec type and were unused here, so 3214 # they are dropped to avoid failing the query on undefined fields. 3215 createdAt 3216 deleted 3217 } 3218`,mze=F` 3219 fragment RecurringReminderHistoryFields on ReminderHistoryEntry { 3220 cycleDueDate 3221 action 3222 achievementDate 3223 jobSnapshotId 3224 } 3225`,hze=F`
3226 mutation CreateReminder($input: ReminderInput!) { 3227 CreateReminder(input: $input) { 3228 error 3229 message 3230 result { 3231 ...ReminderFields 3232 } 3233 } 3234 } 3235 ${O9} 3236`,gze=F` 3237 mutation UpdateReminder($id: String!, $input: ReminderInput!) { 3238 UpdateReminder(id: $id, input: $input) { 3239 error 3240 message 3241 result { 3242 ...ReminderFields 3243 } 3244 } 3245 } 3246 ${O9} 3247`,_ze=F` 3248 mutation DeleteReminder($id: String!) { 3249 DeleteReminder(id: $id) { 3250 error 3251 message 3252 } 3253 } 3254`,vze=F` 3255 mutation AttachReminderToJob($eventId: String!, $jobSnapshotId: String!) { 3256 AttachReminderToJob(eventId: $eventId, jobSnapshotId: $jobSnapshotId) { 3257 error 3258 message 3259 } 3260 } 3261`,yze=F` 3262 query LoadRemindersForProperty($propertyId: String!) { 3263 LoadRemindersForProperty(propertyId: $propertyId) { 3264 error 3265 message 3266 result { 3267 ...ReminderFields 3268 } 3269 } 3270 } 3271 ${O9} 3272`,bze=F` 3273 query LoadReminderHistory($id: String!, $limit: Int, $offset: Int) { 3274 LoadReminderHistory(id: $id, limit: $limit, offset: $offset) { 3275 error 3276 message 3277 total 3278 result { 3279 ...RecurringReminderHistoryFields 3280 } 3281 } 3282 } 3283 3284 ${mze} 3285`,k9=(e={})=>{let{propertyId:t,title:n,jobIds:r,cadence:i,leadTimeDays:a,type:o}=e;return{...t!=null&&{propertyId:t},...n!=null&&{title:n},...Array.isArray(r)&&{jobIds:r},cadence:A0(i),...a!=null&&{leadTimeDays:parseInt(a,10)},...o!=null&&{type:o}}},A9=e=>{if(!e)return e;let{jobIds:t,cadence:n,...r}=e;return{...r,...n!==void 0&&{cadence:k0(n)},jobIds:t||[]}},xze=async e=>{try{let t=(await QF.mutate({mutation:hze,variables:{input:{...k9(e)}},fetchPolicy:`no-cache`}))?.data?.CreateReminder.result;if(!t?.id)throw Error(`createReminderApi: no Reminder in response`);return A9(t)}catch(e){return R.default.error(`createReminderApi ${e}`),e.apiError=!0,e}},Sze=async({id:e,changes:t})=>{try{let n=(await QF.mutate({mutation:gze,variables:{id:e,input:k9(t)},fetchPolicy:`no-cache`}))?.data?.UpdateReminder?.result;if(!n?.id)throw Error(`updateReminderApi: no Reminder in response`);return A9(n)}catch(e){return R.default.error(`updateReminderApi ${e}`),e.apiError=!0,e}},Cze=async e=>{try{let t=(await QF.mutate({mutation:_ze,variables:{id:e},fetchPolicy:`no-cache`}))?.data?.DeleteReminder;if(!t||t.error)throw Error(`deleteReminderApi: backend did not confirm delete`);return{ok:!0}}catch(e){return R.default.error(`deleteReminderApi ${e}`),e.apiError=!0,e}},wze=async e=>{try{let{data:t}=await QF.query({query:yze,variables:{propertyId:e},fetchPolicy:`no-cache`});return(t?.LoadRemindersForProperty.result||[]).map(A9)}catch(e){throw R.default.error(`getRemindersForPropertyApi ${e}`),e}},Tze=async(e,t=20,n=0)=>{try{let{data:r}=await QF.query({query:bze,variables:{id:e,limit:t,offset:n},fetchPolicy:`no-cache`});return{history:r?.LoadReminderHistory?.result||[],total:r?.LoadReminderHistory?.total||0}}catch(e){throw R.default.error(`getRecurringReminderHistoryApi ${e}`),e}},Eze=async(e,t)=>{try{let n=(await QF.mutate({mutation:vze,variables:{eventId:e,jobSnapshotId:t},fetchPolicy:`no-cache`})).data?.AttachReminderToJob;if(!n)throw Error(`attachReminderToJobApi: empty response`);if(n.error){let e=Error(n.message||`Failed to attach reminder`);throw e.apiError=!0,e}return n}catch(e){throw R.default.error(`attachReminderToJobApi ${e}`),e.apiError=!0,e}},Dze=[`pending`,`viewed`,`accepted`],Oze={open:!1,eventId:null,propertyId:null,jobs:[],loading:!1,attaching:!1,error:null,loadError:!1,source:null};function kze(e){if(!e)return _5().form;let t=O0(e.cadence)||{},n=O0(e.sendJobConfig)||{};return{reminderId:e.id||null,title:e.title||``,jobIds:e.jobIds||[],cadence:{repeatEvery:t.repeatEvery??`1`,repeatUnit:t.repeatUnit??`weeks`,daysOfWeek:t.daysOfWeek||[],daysOfMonth:t.daysOfMonth||[],startDate:t.startDate},leadTimeDays:e.leadTimeDays??14,sendJobConfig:{...n,serviceProviders:(n.serviceProviders||[]).map(e=>O0(e))}}}function*Aze({propertyId:e,mode:t,reminderId:n,initialTitle:r}){if(t===`edit`&&n){let t=(yield L(t1)).byId[n];yield M(d1({form:kze(t),mode:`edit`,reminderId:n,propertyId:e,saveState:`idle`}))}else yield M(d1({form:{..._5().form,...r?{title:r}:{}},mode:`create`,reminderId:null,propertyId:e,saveState:`idle`}))}function*jze({data:e}){let t=e,{propertyId:n}=t,r=yield L(t1),i=r.remindersByProperty[n]||[];yield M(d1({remindersByProperty:{...r.remindersByProperty,[n]:[t,...i]},byId:{...r.byId,[t.id]:t}}))}function*Mze(){let e=yield L(t1),t=Object.values(e.byId).find(e=>e.isDraft);if(!t)return;let n={...e.byId};delete n[t.id],yield M(d1({remindersByProperty:{...e.remindersByProperty,[t.propertyId]:(e.remindersByProperty[t.propertyId]||[]).filter(e=>e.id!==t.id)},byId:n}))}function*Nze({propertyId:e}){if(e){yield M(d1({loading:!0}));try{yield M($Ce(e,yield P(wze,e)))}catch(e){R.default.error(`loadRemindersSaga`,e)}finally{(yield cn())||(yield M(d1({loading:!1})))}}}function*Pze(e){let t=e?.meta?.reminder,n=e?.meta?.mode,r=e?.meta?.type,i=t?.propertyId||e?.meta?.propertyId,a=t?.reminderId||t.id;yield M(d1({saveState:`saving`}));try{let o;if(o=n===`edit`&&a?yield P(Sze,{id:a,changes:{...t,propertyId:i,type:r}}):yield P(xze,{...t,propertyId:i,type:r}),o?.apiError)throw o;yield M(d1({saveState:`idle`})),yield M(s1(i)),e?.meta?.onSuccess?.()}catch(t){R.default.error(`submitReminderSaga`,t),yield M(d1({saveState:`error`})),e?.meta?.onFailure?.(t)}}function*Fze({id:e,propertyId:t}){yield M(d1({deleteState:`deleting`}));try{let n=yield P(Cze,e);if(n?.apiError)throw n;yield M(d1({deleteState:`idle`})),yield M(s1(t))}catch(e){R.default.error(`deleteReminderSaga`,e),yield M(d1({deleteState:`error`})),yield M(s1(t))}}function*Ize({reminderId:e,limit:t=20,offset:n=0}){if(e)try{let{history:r,total:i}=yield P(Tze,e,t,n);yield M(ewe(e,r,i,n>0))}catch(e){R.default.error(`loadRecurringReminderHistorySaga`,e)}}function*Lze({eventId:e,propertyId:t,source:n}){yield M(d1({jobPicker:{open:!0,eventId:e,propertyId:t,jobs:[],loading:!0,attaching:!1,error:null,loadError:!1,source:n}}));try{yield M(d1({jobPicker:{open:!0,eventId:e,propertyId:t,jobs:((yield P(lQ,t,`HOST`,0,100,!0))||[]).filter(e=>Dze.includes(e.statusString)),loading:!1,attaching:!1,error:null,loadError:!1,source:n}}))}catch(r){R.default.error(r),yield M(d1({jobPicker:{open:!0,eventId:e,propertyId:t,jobs:[],loading:!1,attaching:!1,error:null,loadError:!0,source:n}}))}}function*Rze({eventId:e,jobSnapshotId:t}){let n=yield L(i1);yield M(d1({jobPicker:{...n,attaching:!0,error:null}}));try{yield P(Eze,e,t),n.source===`todos`?yield M(Tbe(e)):n.source,yield M(d1({jobPicker:{open:!1,eventId:null,propertyId:null,jobs:[],loading:!1,attaching:!1,error:null,loadError:!1,source:null}}))}catch(e){R.default.error(e),yield M(d1({jobPicker:{...n,attaching:!1,error:!0}}))}}function*zze(){yield M(d1({jobPicker:Oze}))}function*Bze(){yield Ee(MD,Aze),yield We(ND,Nze),yield We(PD,Pze),yield We(FD,Fze),yield Ee(ID,Ize),yield We(VD,jze),yield We(HD,Mze),yield We(UD,Lze),yield We(WD,Rze),yield We(GD,zze)}function*Vze(e){if(e.kind===`default`&&e.meta&&e.meta.defaultKind===`upgradeplan`&&qpe(e.attemptedAction),e.kind===`default`&&e.meta&&e.meta.defaultKind===`yousend`){let e=yield L(QC);e&&e.userData&&Zpe(e.userData.subscription.allowedJobsMonth-e.userData.subscription.jobsUsedMonth)}e.kind===`thankyou`&&Xpe(),yield M(sz({kind:e.kind,meta:e.meta}))}function*Hze(){yield M(sz({kind:void 0,meta:{}}))}var Uze=4e3,Wze=e=>e===co.STATUS_TRIAL||e===co.STATUS_EXPIRED,Gze=e=>!e||e.apiError===!0||e.error===!0,j9=e=>e?.objectId||e?.subscriptionProviderSubscriptionId||null;function*Kze(){if(!(yield L(FC))?.objectId)return;let e=yield L(IC);if(!e?.trialEnd||!Wze(e.status)||typeof e.hasPaymentMethod==`boolean`)return;let t=j9(e);for(let e=0;e<2;e+=1){let n=yield P(lI);if(!Gze(n)){let e=yield L(IC);if(typeof e?.hasPaymentMethod==`boolean`||j9(e)!==t)return;yield M(JP({hasPaymentMethod:!!n?.paymentMethod?.lastFour}));return}e===0&&(yield Jr(Uze))}let n=yield L(IC);typeof n?.hasPaymentMethod!=`boolean`&&j9(n)===t&&(yield M(JP({hasPaymentMethod:!1})))}
3285function*qze(){yield Ee(Ok,Vze),yield Ee(kk,Hze),yield We([CT,MT,bT],Kze)}function*Jze(){try{let e=yield P(mIe);yield M(cH(e)),yield M9(e),yield N9(e.map(e=>e.jobInstructions))}catch(e){R.default.error(`Error loading loadIndependentChecklistContent`,e),yield M(lH(e))}}function*Yze(){try{let e=yield P(hIe);yield M(dH(e)),yield M9(e),yield N9(e.map(e=>e.jobInstructions))}catch(e){R.default.error(`Error loading loadPublishedContent`,e),yield M(fH(e))}}function*Xze({checklistId:e,checklistInstructionsId:t,published:n}){try{let[r,i]=yield or(n?[P(A7,e),P(j7,t)]:[P(J1,e),P(q1,t)]);yield M(mH(e,t,r,i,n)),yield M9([r]),yield N9([i])}catch(e){R.default.error(`Error loading loadPublished`,e),yield M(hH(e))}}function*Zze({propertyIds:e,checklistId:t}){try{yield gIe(e,t),yield M(nH(t))}catch(e){yield M(rH(t,e))}}function*Qze(){yield M(Wn(Z.library))}function*$ze({checklistId:e}){try{yield _Ie(e),yield M(aH(e))}catch(t){yield M(oH(e,t))}}function*eBe(){try{let e=yield P(vIe),{objectId:t,jobInstructions:n}=e||{},{objectId:r}=n||{};yield M(_H(t,r,e,n)),yield M9([e]),yield N9([n])}catch(e){yield M(vH(e))}}function*tBe({checklistId:e,checklistInstructionsId:t}){yield M(Wn(Z.libraryChecklist(e,t)))}function*M9(e){yield M(nF(`jobs`,(0,CR.default)(e,`objectId`),!0))}function*N9(e){yield M(nF(`jobInstructions`,(0,CR.default)(e,`objectId`),!0))}function*P9(e){yield M(nF(`skills`,(0,CR.default)(e,`skillId`)))}function*nBe(){try{let e,t=[],n=0;do{if(e=yield P(GNe,100,n),e.apiError)throw e;t=t.concat(e),n+=100}while(e.length===100);yield M(bH(t)),yield P9(t)}catch(e){R.default.error(`[fetchSkillsSaga] ${e}`),yield M(xH(e))}}function*rBe({skillId:e}){try{let t=yield P(KNe,e);if(t.apiError)throw t;yield M(CH(e,t)),yield P9([t])}catch(e){R.default.error(`[fetchSpecificSkillSaga] ${e}`),yield M(wH(e))}}function*iBe(){yield P(T5,{tabsValue:yield L(PH)})}function*aBe(){yield P(T5,{hideUserChecklists:yield L(FH)})}function*oBe(){yield P(T5,{hidePublishedChecklists:yield L(IH)})}function*sBe(){yield Ee(OV,iBe),yield Ee(kV,aBe),yield Ee(AV,oBe),yield We(LV,Jze),yield We(UV,Yze),yield We(BV,Xze),yield We(jV,Zze),yield We(MV,Qze),yield We(PV,$ze),yield We(wV,eBe),yield We(TV,tBe),yield We(KV,nBe),yield We(YV,rBe)}var cBe=F` 3286 query getFeatureFlagsForUserQuery { 3287 getFeatureFlagsForUser { 3288 name 3289 enabled 3290 } 3291 } 3292`;F` 3293 query isFeatureFlagEnabledForUserQuery($featureName: String!) { 3294 isFeatureFlagEnabledForUser(featureName: $featureName) 3295 } 3296`;var lBe=async()=>{try{return(await QF.query({query:cBe,fetchPolicy:`cache-first`})).data.getFeatureFlagsForUser}catch(e){return R.default.warn(`[ERROR] cannot get user feature flags`,e),e.apiError=!0,e}};function*F9(){try{let e=yield P(lBe);if(R.default.info(`getUserFeatureFlagsSaga userFeatureFlags`,{userFeatureFlagsResponse:e}),e.apiError)throw e;yield M(_B(e))}catch(e){yield M(vB(e))}}function*uBe(){try{let e=yield P(F_e);e.error||(yield M(yB(e.results)))}catch(e){R.default.error(`[getPropertiesEligibleForRI] saga errored: `,e)}}function*dBe(e){yield Jr(2e3),yield M(xB(e.payload))}function*fBe(){yield Ee(RT,F9),yield Ee(LO,uBe),yield Ee(Dhe,dBe)}var I9=3,pBe=800;function*mBe({force:e=!1}={}){if(!(yield L(e=>e.currentUser)).isLoggedIn){R.default.info(`preload - killed - user logged out`);return}let t=yield L(hw);if(t===c_.LOADING){R.default.info(`preload - skipping, already loading`);return}if(!e&&t===c_.LOADED){R.default.info(`preload - skipping, already loaded`);return}e&&R.default.info(`preload - force refresh requested`),yield M(cF(c_.LOADING)),yield P(F9),(yield L(fB($a.FEATURE_FLAG_REMOTE_INSPECTION)))&&(yield M(bB())),yield M(vA()),yield M(Mq());let n=[`jobs`,`reports`,`skills`],r;for(let e=1;e<=I9;e+=1){if(!(yield L(e=>e.currentUser.isLoggedIn))){R.default.info(`preload - aborting, user logged out during preload`),yield M(cF(c_.NOTLOADED));return}try{let t=$Me(o5,n),i=Object.keys(t);R.default.info(`preload - fetching collections`,i,{attempt:e});let a=yield Promise.all(Object.values(t));r=(0,pc.default)(i.reduce((e,t,n)=>(e[t]=a[n],e),{}),(e,t)=>eNe(e,o5[t].indexBy));break}catch(t){if(R.default.error(`preload - fetch attempt ${e}/${I9} failed`,t),e>=I9){R.default.error(`preload - all attempts failed; resetting status to NOTLOADED`),yield M(cF(c_.NOTLOADED));return}yield Jr(pBe*e)}}r&&Object.keys(r).length>0&&(r.properties?.data&&Object.keys(r.properties.data).length>0&&(yield M(yA(Object.values(r.properties.data).some(e=>e.failedAtRecurly===!0)))),yield M(WP(r))),yield M(cF(c_.LOADED))}function L9(e,t){let n=o5[e];if(n&&n.searchIndexDef)try{let r=(0,H.default)((0,gx.default)(t),n.addItemToSearch);sC.setIndex(e,n.searchIndexDef(r))}catch{R.default.error(`Error trying to update search index collection`,{key:e,data:t})}}function hBe(e,t){typeof requestIdleCallback<`u`?requestIdleCallback(()=>L9(e,t),{timeout:2e3}):setTimeout(()=>L9(e,t),0)}function*gBe({collectionName:e,...t}){R.default.info(`updateIndex`,e,t),(0,xc.default)(yield L(wC),(e,t)=>hBe(t,e.data))}
3296function*_Be(e){let{collectionName:t,isPagination:n,id:r}=e;try{if(t===`cleanerRequest`){let e=yield P(uQ,r);yield M(nF(t,{[e.jobId]:e},n))}if(t===`jobRequests`){let e=yield P(uQ,r);yield M(nF(t,{[e.jobId]:e},n))}t===`contacts`&&(yield M(QP(t,r,yield P(BN,r)))),t===`properties`&&(yield M(QP(t,r,yield P(VN,r))))}catch(e){R.default.error(`updateInBackgroundSaga`,e)}}function*vBe(){yield Ee(bE,mBe),yield Ee([_E,SE,xE],gBe),yield Ee(EE,_Be)}function yBe(e){let t=new URLSearchParams(e||``);return{branchId:t.get(`_branch_match_id`),role:t.get(`role`),jobSnapshotId:t.get(`jobSnapshotId`),propertyId:t.get(`propertyId`),operation:t.get(`operation`)}}function bBe(e){return!!(e.branchId&&e.role===`host`)}function xBe(e){let{propertyId:t,jobSnapshotId:n,operation:r}=e;return t&&n?{pathname:Z.propertyPageSpecificJobRequest(t,n),state:{fromEntry:!0},requiresRI:r===`request_ri`}:r===`create_job`?{pathname:Z.libraryCreateJob,state:{fromEntry:!0},requiresRI:!1}:r===`autoscheduling`?{pathname:Z.autoscheduling,state:{fromEntry:!0},requiresRI:!1}:{pathname:Z.main,state:{},requiresRI:!1}}function*SBe(e){let t=e.payload?.location?.pathname||e.payload?.pathname;if(t){mpe(t);try{sessionStorage.getItem(`trackPostLoginFirstAction`)===`true`&&(sessionStorage.removeItem(`trackPostLoginFirstAction`),eme(t,{timestamp:new Date().toISOString()}))}catch(e){R.default.warn(`Failed to check/clear post-login tracking flag`,e)}}}function*CBe(e){let t=e.payload?.location||e.payload?.args?.[0]||{},n=t.pathname||`/`,r=yield L(e=>e.router),i=yield L(e=>e.currentUser),a=!r?.location&&!t?.pathname;if(R.default.info(`pricingInterceptSaga start`,n),/^\/loginas/.test(n)){yield M(wF(!0));return}let o=n===Z.login||n===Z.signup||n===Z.hostDownload||n===Z.signUpComplete||n===Z.newPassword||n===Z.resetPassword||n===Z.verifyEmail||n===Z.main||/^\/loginas/.test(n);if(i.isLoggedIn&&(n===Z.login||n===Z.signup||n===Z.main)){if(R.default.info(`interceptSaga - logged in user on auth page, redirecting to landing page`),Tu()){yield M(Wn({pathname:Z.mobileSubscription,state:{fromEntry:!0}}));return}yield M(Wn({pathname:Z.landingPage,state:{fromEntry:!0}}));return}if(o){R.default.info(`interceptSaga - skipping refetch for public route:`,n);return}switch((!i?.user?.subscription?.currentPlanId||a)&&(R.default.info(`pricingInterceptSaga - refetch user (not resetting preload status)`),yield P(q5)),Xn().setUser({id:i.user.objectId}),/^\/demo/.test(n)||(yield L(hw))===c_.NOTLOADED&&(R.default.info(`Starting preload in background (non-blocking)`),yield M(ZP(`intercept`))),n){case Z.deeplink:{let e=yBe(t.search);if(!bBe(e)){yield M(Wn({pathname:Z.main}));return}let n=xBe(e);n.requiresRI&&(yield M(KK(f_.yes))),yield M(Wn(n));return}default:}R.default.info(`[interceptSaga] Guards completed`)}function*wBe(){let e=`@@router/LOCATION_CHANGE`;yield Ee(e,SBe),yield Ee(e,CBe),yield Ee(OE,q5)}function*TBe(){yield oi(vBe),yield oi(wBe)}function*R9(...e){yield cee(function*(){try{let[t,...n]=e;yield t(...n)}catch(e){R.default.error(`guardedFork`,e),yield M(Wn({pathname:Z.error}))}})}function*EBe(){yield R9(TBe),yield R9(pPe),yield R9(bPe),yield R9(rIe),yield R9(YFe),yield R9(pIe),yield R9(ERe),yield R9(tPe),yield R9(zLe),yield R9(NIe),yield R9(TIe),yield R9(WIe),yield R9(VFe),yield R9(oze),yield R9(URe),yield R9(pze),yield R9(Bze),yield R9(uLe),yield R9(gLe),yield R9(wLe),yield R9(qze),yield R9(lRe),yield R9(eRe),yield R9(sBe),yield R9(fBe)}function*DBe(e){try{yield M(xF(yield P(CP,e.token))),yield P(z9,{fromWhere:`login`})}catch(e){R.default.error(`becomeUserSaga`,e)}}function*z9({fromWhere:e,query:t,redirectRoute:n}){try{let i=yield L(e=>e.router);if(R.default.info(`loginGateSaga`,e,t,i),yield P(q5),yield M(ZP(`loginGate`)),e===`signup`){let e=yield L(FC);if(R.default.info({currentUser:e}),!mo(e)){yield M(Wn({pathname:Z.landingPage,state:{fromEntry:!0}}));return}if(wu()&&!Cu()){yield M(Wn({pathname:Z.mobileUpgrade,state:{fromEntry:!0}}));return}yield M(Wn({pathname:Z.landingPage,state:{fromEntry:!0}}));return}let a=t&&t.redirectUrl||n;if(R.default.info(`loginGateSaga - checking redirect:`,{redirectUrl:a,fromWhere:e,hasQuery:!!t,queryRedirectUrl:t?.redirectUrl,redirectRoute:n}),a&&(e===`login`||e===`loginWithToken`)){let e;try{let t=r.extract(a);t&&(e=`?${t}`,a=a.replace(e,``))}catch(e){R.default.error(e)}R.default.info(`loginGateSaga - login with redirecturl`,a,e),yield M(Wn({pathname:a,search:e,state:{fromEntry:!0}}));return}if(wu()&&!Cu()){yield M(Wn({pathname:Z.mobileUpgrade,state:{fromEntry:!0}}));return}yield M(Wn({pathname:Z.landingPage,state:{fromEntry:!0}}))}catch(e){R.default.error(`loginGateSaga`,e),yield M(Wn({pathname:Z.error}))}}function*OBe(){let e=Z.landingPage;yield M(Wn({pathname:e,state:{fromEntry:!0}}))}function*kBe(e,t){yield M(xF(e)),Su(e.objectId),rpe();try{sessionStorage.setItem(`trackPostLoginFirstAction`,`true`)}catch(e){R.default.warn(`Failed to set post-login tracking flag`,e)}yield P(z9,{fromWhere:`login`,query:t})}function*ABe({data:e,query:t,authMethod:n=`credentials`}){R.default.info(`loginSaga`,e,t,n);try{yield M(jF(!0));let r;if(n===`google`)try{r=yield P(DP,e.idToken)}catch(e){R.default.error(`loginSaga - Google OAuth error`,e),yield M(SF([ja]));return}else{let t=[];if(e.username.length<1&&t.push(Ta),e.password.length<1&&t.push(Ea),t.length>0){yield M(SF(t));return}r=yield P(QN,e.username,e.password)}yield P(kBe,r,t)}catch(e){let t=PBe(e);if(t){yield M(jF(!1)),yield M(Wn({pathname:Z.verifyEmail,state:{userId:t.userId,email:t.email}}));return}yield M(SF([e.properlyErrorMsg]))}}function*jBe(e){let{payload:t}=e||{};yield M(kF());try{yield P(FN,t),yield M(DF(t)),yield Jr(4200),yield P(kF(null))}catch(e){R.default.error(`resetPasswordSaga`,e),yield M(OF(t))}}function*MBe(e,t,n){try{let r=yield P(CP,e);yield P(kN),yield Jr(2e3),yield M(xF(r)),n&&(R.default.info(`loginAsInner - setting admin details`,n),yield M(xB(n))),yield P(z9,{redirectRoute:t,fromWhere:`loginWithToken`})}catch(e){alert(`Failed to login user`,e)}}
3296function*NBe({token:e,redirectRoute:t,adminDetails:n}){let r=t||`/properties`;if(r&&!r.startsWith(`/`)&&(r=`/${r}`),R.default.info(`loginUserWithTokenSaga - starting`,{token:e?.substring(0,10)+`...`,redirect:r,hasAdminDetails:!!n}),(yield P(kN))?.sessionToken===e){R.default.info(`User session token already logged in`),n&&(yield M(xB(n))),yield M(Wn({pathname:r}));return}Nv(!1);try{yield P(RN),yield M(KP()),yield M({type:NT})}catch(e){R.default.error(`Failed to log user out`,e)}yield P(MBe,e,r,n)}function PBe(e){if(e?.code===`EMAIL_NOT_VERIFIED`||e?.data?.code===`EMAIL_NOT_VERIFIED`){let t=e.userId||e?.data?.userId,n=e.email||e?.data?.email;if(t&&n)return{userId:t,email:n}}try{let t=e?.message||e?.properlyErrorMsg||``,n=JSON.parse(t);if(n.code===`EMAIL_NOT_VERIFIED`){let e=n.userId,t=n.email;if(e&&t)return{userId:e,email:t}}}catch{}return null}function*FBe(){yield R9(Ee,ET,DBe),yield R9(Ee,DT,ABe),yield R9(Ee,whe,OBe),yield R9(Ee,kT,z9),yield R9(Ee,Ehe,jBe),yield R9(Ee,jT,NBe)}function*IBe(){try{yield M(YP(yield P(CN)))}catch(e){if(R.default.error(`setParseConfig`,e),e&&e.code===209){yield M(gA());return}throw e}}function*LBe(){try{yield P(IBe),yield M(XP())}catch(e){R.default.error(`preLoginSaga`,e),yield M(Wn({pathname:Z.error}))}}function*RBe(){yield Ee(DE,LBe)}var B9=1,V9=2,H9=3;function*U9(){let{name:e}=U9;R.default.info(`in ${e}`);try{yield M(m_e((yield P(e7)).hostStripeStatus?.defaultPaymentMethodExists))}catch(t){t.message=us(t),R.default.error(e,t)}}function*W9(){let{name:e}=W9;R.default.info(`in ${e}`);try{let{pendingJobCount:e,acceptedJobCount:t,inprogressJobCount:n,finishedUnpaidJobCount:r}=yield P(xxe);return e+t+n+r===0?!0:(alert(U(`settings.payment_remove_error`)),!1)}catch(t){return R.default.error(e,t),t}}function*G9(){let{name:e}=G9;R.default.info(`in ${e}`);try{yield M(PJ(!0));let e=yield P(n7);if(e.apiError)throw e;yield M(RJ(e)),yield M(PJ(!1))}catch(e){R.default.error(e),yield M(PJ(!1))}}function*K9(){let{name:e}=K9;R.default.info(`in ${e}`);try{yield M(FJ({view:B9,error:null}));let e=yield P(r7);if(e.apiError)throw e;yield M(f_e(e)),yield M(FJ({view:V9,error:null}))}catch(t){t.message=us(t),yield M(FJ({view:H9,error:t})),R.default.error(e,t)}}function*q9(e){let{name:t}=q9,{stripePaymentMethod:n,setAsDefault:r}=e;R.default.info(`in ${t}`);try{yield M(FJ({view:B9,error:null}));let e=yield P(e7);if(e=e.hostStripeStatus.active?yield P(a7,n,r):yield P(i7,n),e.apiError)throw e;yield M(RJ(e)),yield M(FJ({view:V9,error:null}))}catch(e){e.message=us(e),yield M(PJ(!1)),yield M(FJ({view:H9,error:e})),R.default.error(t,e)}}function*J9(e){let{name:t}=J9,{stripePaymentMethodId:n}=e;R.default.info(`in ${t}`);try{yield M(PJ(!0));let e=yield P(W9);if(!e.apiError&&e){let e=yield P(o7,n);if(e.apiError)throw e;yield M(RJ(e))}yield M(PJ(!1))}catch(e){e.message=us(e),yield M(PJ(!1)),R.default.error(t,e)}}function*Y9(e){let{name:t}=Y9,{stripeSourceToken:n}=e;R.default.info(`in ${t}`);try{yield M(PJ(!0)),yield M(FJ({view:B9,error:null}));let e=yield P(e7);if(e=e.hostStripeStatus.active?yield P(c7,n.id):yield P(s7,n.id),e.apiError)throw e;yield M(RJ(e)),yield M(PJ(!1)),yield M(FJ({view:V9,error:null}))}catch(e){e.message=us(e),yield M(PJ(!1)),yield M(FJ({view:H9,error:e})),R.default.error(t,e)}}function*X9(e){let{name:t}=X9,{stripeSourceId:n}=e;R.default.info(`in ${t}`);try{yield M(PJ(!0));let e=yield P(W9);if(!e.apiError&&e){let e=yield P(l7,n);if(e.apiError)throw e;yield M(RJ(e))}yield M(PJ(!1))}catch(e){e.message=us(e),yield M(PJ(!1)),R.default.error(t,e)}}function*Z9(e){let{name:t}=Z9,{plaidPublicToken:n,plaidAccountId:r}=e;R.default.info(`in ${t}`);try{yield M(PJ(!0)),yield M(FJ({view:B9,error:null}));let e=yield P(e7);if(e=e.hostStripeStatus.active?yield P(d7,n,r):yield P(u7,n,r),e.apiError)throw e;yield M(RJ(e)),yield M(PJ(!1)),yield M(FJ({view:V9,error:null}))}catch(e){e.message=us(e),yield M(PJ(!1)),yield M(FJ({view:H9,error:e})),R.default.error(t,e)}}function*zBe(){yield Ee(Ghe,U9),yield Ee(qk,G9),yield Ee(nA,K9),yield Ee(Jk,q9),yield Ee(Yk,J9),yield Ee(Xk,Y9),yield Ee(Zk,X9),yield Ee(Qk,Z9)}function*BBe(){yield oi(EBe),yield oi(FBe),yield oi(RBe),yield oi(NTe),yield oi(wxe),yield oi(zBe)}var{createReduxHistory:VBe,routerMiddleware:HBe,routerReducer:UBe}=Nr({history:Ar()}),Q9=Cr({onError:e=>{R.default.error(e)}});function WBe(e){return()=>t=>n=>
3296(n.type===`GLOBAL_LOGOUT`&&e&&e.resetStore&&e.resetStore(),t(n))}var GBe=(0,GMe.createLogger)({predicate:()=>!0,collapsed:()=>!0,stateTransformer:e=>e});function KBe(e){let t=[Q9,HBe,WBe(e)];Ou()>1&&t.push(GBe);let n=Vee({}),r=pr(PNe(),sr(kee(...t),n));return Q9.run(BBe),{store:r,history:VBe(r)}}var{DESKTOP:qBe}=Wi()||{},{INTERCOM_APP_ID:$9}=qBe||{};function JBe(e=$9){if(window.intercomSettings)return;let t={app_id:e,vertical_padding:0,hide_default_launcher:window.innerWidth<=768,properly_app_id:`desktop`};window.intercomSettings=t;let n=window,r=n.Intercom;if(typeof r==`function`)r(`reattach_activator`),r(`update`,t);else{let t=document;var i=function(){i.c(arguments)};i.q=[],i.c=function(e){i.q.push(e)},n.Intercom=i;function r(){let n=t.createElement(`script`);n.type=`text/javascript`,n.async=!0,n.src=`https://widget.intercom.io/widget/${e}`;let r=t.getElementsByTagName(`script`)[0];r.parentNode.insertBefore(n,r)}t.readyState===`complete`?r():n.addEventListener(`load`,r,!1)}}var YBe=()=>{JBe($9)};Cu()?document.documentElement.className+=` no-touch`:(document.getElementsByName(`viewport`)[0].setAttribute(`content`,`width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no`),document.documentElement.className+=` touch`,document.documentElement.style.cursor=`pointer`),R.default.disableAll(),(Ou()>0||$i())&&(R.default.enableAll(),R.default.warn(`APPLICATION LOGS ENABLED`)),z.default.tz.link(`Europe/Brussels|Brussels`),YBe(),Ui(),ma(`desktop`),typeof window<`u`&&(window._REACT_VERSION_=`19.2.5`,window.moment=window.moment||z.default),(()=>{let{store:e,history:t}=KBe(QF);BM({logout:()=>e.dispatch(gA())}),(0,hi.createRoot)(document.getElementById(`app`)).render((0,K.jsx)(B.StrictMode,{children:(0,K.jsx)(she,{children:(0,K.jsx)(Qee,{i18n:ca,children:(0,K.jsx)(sM,{children:(0,K.jsx)(ci,{client:QF,children:(0,K.jsx)(m,{store:e,children:(0,K.jsx)(UP.HistoryRouter,{history:t,children:(0,K.jsx)(WMe,{})})})})})})})}))})();
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.