PageSourceSearch

https://secure.brainhi.com/static/js/613.462b6d58.chunk.js

js brainhi.com collected 2026-10-03 21:20:32 UTC 77,598 bytes, 2 lines download raw bytes

1/*! For license information please see 613.462b6d58.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunktelescope=self.webpackChunktelescope||[]).push([[613],{24563:(e,t,n)=>{n.r(t),n.d(t,{default:()=>wt});var r=n(67078),a=n(24180),i=n(93319),o=n(17479),s=n(35906),c=n(4852),l=n(65127),u=n(2779),d=n(10467),f=n(80296),p=n(96540),h=n(60312),m=n(24407),x=n(82703),v=n(41282),y=n(64249),b=n(82801),g=n(74848);function j(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,r,a,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return S(l,"_invoke",function(n,r,a){var i,s,c,l=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!a&&t<u.length;t++){var a,i=u[t],p=f.p,h=i[2];n>3?(a=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(a=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(a||n>1)return o;throw d=!0,r}return function(a,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,c=h;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,a,i),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(S(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,S(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,S(d,"constructor",l),S(l,"constructor",c),c.displayName="GeneratorFunction",S(l,a,"GeneratorFunction"),S(d),S(d,a,"Generator"),S(d,r,function(){return this}),S(d,"toString",function(){return"[object Generator]"}),(j=function(){return{w:i,m:f}})()}function S(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}S=function(e,t,n,r){function i(t,n){S(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},S(e,t,n,r)}const N=function(){var e=(0,p.useState)(!0),t=(0,f.A)(e,2),n=t[0],r=t[1],a=(0,p.useState)(!1),i=(0,f.A)(a,2),s=i[0],l=i[1],u=(0,c.F7)().isHealthcare,S=(0,c.Ff)(y.Ay),N=(0,b.Ay)(),w=N.clearState,_=N.setBusinessProfile,E=N.setBusinessVoicemail,O=N.setVoicemailEnabled,T=N.setTextBackEnabled,A=N.setVoicemailOutOfOfficeEnabled,C=(0,c.Z2)(function(e){return e.settings.businessProfile.voicemailAudioFile}),P=(0,c.Z2)(function(e){return e.settings.businessProfile.voicemailEnabled}),G=(0,c.Z2)(function(e){return e.settings.businessProfile.textBackEnabled}),I=(0,c.Z2)(function(e){return e.settings.businessProfile.voicemailOutOfOfficeEnabled}),k=!u;return(0,p.useEffect)(function(){var e=function(){var e=(0,d.A)(j().m(function e(){var t;return j().w(function(e){for(;;)switch(e.p=e.n){case 0:return r(!0),e.p=1,e.n=2,(0,m.I8)();case 2:t=e.v,_(t),e.n=4;break;case 3:e.p=3,e.v,l(!0);case 4:return e.p=4,r(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}();return e(),function(){w()}},[w,_]),n?(0,g.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,g.jsx)(h.DotBricksLoading,{})}):s?(0,g.jsx)(o.M,{}):(0,g.jsxs)("div",{className:"xl:mx-16 flex flex-col flex-grow mx-12",children:[(0,g.jsxs)("div",{className:"flex items-center",children:[(0,g.jsx)("h2",{children:S.businessProfile}),(0,g.jsxs)(x.EE,{className:"ml-2",children:[(0,g.jsx)("h4",{className:"text-action-secondary mb-2 font-bold",children:S.businessProfile}),(0,g.jsx)("p",{className:"text-action-secondary mb-4",children:S.businessProfileHelperText}),(0,g.jsxs)("div",{className:"flex mb-2",children:[(0,g.jsxs)("div",{className:"border-action-secondary-light-3 w-1/2 pr-5 border-r",children:[(0,g.jsx)("p",{className:"text-action-secondary-light-2 font-semibold",children:S.client}),(0,g.jsx)("p",{className:"text-action-secondary mt-1",children:S.whatIsTheTime}),(0,g.jsx)("p",{className:"text-action-secondary-light-2 mt-4 font-semibold",children:S.brainhi}),(0,g.jsx)("p",{className:"text-action-secondary mt-1",children:S.whatIsTheTimeResponse})]}),(0,g.jsxs)("div",{className:"border-action-secondary-light-3 w-1/2 pl-5 border-l",children:[(0,g.jsx)("p",{className:"text-action-secondary-light-2 font-semibold",children:S.client}),(0,g.jsx)("p",{className:"text-action-secondary mt-1",children:S.whatIsThePayment}),(0,g.jsx)("p",{className:"text-action-secondary-light-2 mt-4 font-semibold",children:S.brainhi}),(0,g.jsx)("p",{className:"text-action-secondary mt-1",children:S.whatIsThePaymentResponse})]})]})]})]}),(0,g.jsx)(v.$$,{}),(0,g.jsx)(v.GI,{}),(0,g.jsx)("div",{className:"border-action-secondary-light-3 my-8 border-b"}),(0,g.jsx)(v.ev,{}),(0,g.jsx)("div",{className:"border-action-secondary-light-3 my-8 border-b"}),(0,g.jsx)(v.ar,{}),(0,g.jsx)(v.NR,{}),(0,g.jsx)("div",{className:"border-action-secondary-light-3 my-8 border-b"}),(0,g.jsx)(v.IV,{}),k&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"border-action-secondary-light-3 my-8 border-b"}),(0,g.jsx)("div",{className:"flex items-center mt-4 mb-4",children:(0,g.jsx)("h2",{children:S.incomingCalls})}),(0,g.jsx)(v.kL,{voicemailAudioFile:C,voicemailEnabled:P,textBackEnabled:G,voicemailOutOfOfficeEnabled:I,setBusinessVoicemail:E,setVoicemailEnabled:O,setTextBackEnabled:T,setVoicemailOutOfOfficeEnabled:A})]})]})};var w=n(64467),_=n(96792),E=n(51881),O=n(10548),T=n(46942),A=n.n(T),C=n(21436),P=n(5556),G=n.n(P),I=n(44826),k=n(36256),F=n(37581);const R=(0,k.PS)({setCalendarStatuses:function(e){return(0,k.XI)(F.vx,{payload:{calendarStatuses:e}})},updateCalendarStatuses:function(e){return(0,k.XI)(F.s8,{payload:{calendarStatus:e}})}
2,deleteCalendarStatus:function(e){return(0,k.XI)(F.sX,{payload:{calendarStatus:e}})},reorderCalendarStatuses:function(e){return(0,k.XI)(F.YU,{payload:{calendarStatuses:e}})}});function D(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,r,a,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return U(l,"_invoke",function(n,r,a){var i,s,c,l=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!a&&t<u.length;t++){var a,i=u[t],p=f.p,h=i[2];n>3?(a=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(a=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(a||n>1)return o;throw d=!0,r}return function(a,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,c=h;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,a,i),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,U(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,U(d,"constructor",l),U(l,"constructor",c),c.displayName="GeneratorFunction",U(l,a,"GeneratorFunction"),U(d),U(d,a,"Generator"),U(d,r,function(){return this}),U(d,"toString",function(){return"[object Generator]"}),(D=function(){return{w:i,m:f}})()}function U(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}U=function(e,t,n,r){function i(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},U(e,t,n,r)}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){(0,w.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var B=function(e){var t=e.status,n=e.className,r=R(),a=r.updateCalendarStatuses,i=r.deleteCalendarStatus,c=(0,p.useState)(t),l=(0,f.A)(c,2),u=l[0],h=l[1];(0,p.useEffect)(function(){h(t)},[t]);var m=(0,I.A)(function(){var e=(0,d.A)(D().m(function e(n){var r,i;return D().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,O.wX)({status:n,id:t.id});case 1:r=e.v,i=r.data,a(i),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=3;break;case 2:e.p=2,e.v,h(function(e){return L(L({},e),{},{status:t.text})}),o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),1e3),x=function(){var e=(0,d.A)(D().m(function e(){return D().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,O.I4)(t);case 1:i(t),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=3;break;case 2:e.p=2,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}();return(0,g.jsxs)("div",{className:A()("flex items-center py-1 w-max",n),children:[(0,g.jsx)(C.A,{className:"text-action-secondary-light-2 cursor-grab",size:20}),(0,g.jsx)("input",{onChange:function(e){var t=e.target.value;h(function(e){return L(L({},e),{},{status:t})}),t&&m(t)},className:"ml-4 max-w-[320px] w-full p-2 appearance-none leading-normal border rounded text-xs font-semibold border-white-3.0 text-brand-primary",value:u.status,type:"text",placeholder:"Insertar estados"}),(0,g.jsx)(o.a6,{title:(0,g.jsx)("i",{className:"icon-trash_icon text-xl"}),className:"ml-2 !p-0",onClick:x})]})};B.propTypes={status:G().object.isRequired,className:G().string.isRequired};const V=B,M={es_ES:{calendar:"Configuraciones de calendario",status:"Estado de Cita",add:"Añadir",insertStatus:"Insertar estados"},en_US:{calendar:"Calendar configurations",status:"Appointment status",add:"Add",insertStatus:"Insert statuses"}};function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?H(Object(n),!0).forEach(function(t){(0,w.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Z(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,r,a,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return X(l,"_invoke",function(n,r,a){var i,s,c,l=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!a&&t<u.length;t++){var a,i=u[t],p=f.p,h=i[2];n>3?(a=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(a=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(a||n>1)return o;throw d=!0,r}return function(a,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,c=h;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,a,i),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(X(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,X(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,X(d,"constructor",l),X(l,"constructor",c),c.displayName="GeneratorFunction",X(l,a,"GeneratorFunction"),X(d),X(d,a,"Generator"),X(d,r,function(){return this}),X(d,"toString",function(){return"[object Generator]"}),(Z=function(){return{w:i,m:f}})()}function X(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}X=function(e,t,n,r){function i(t,n){X(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},X(e,t,n,r)}const $=function(){var e=(0,p.useState)(!0),t=(0,f.A)(e,2),n=t[0],r=t[1],a=(0,p.useState)(!1),i=(0,f.A)(a,2),l=i[0],u=i[1],m=(0,c.Ff)(M),x=(0,p.useState)(""),v=(0,f.A)(x,2),y=v[0],b=v[1],j=R(),S=j.setCalendarStatuses,N=j.updateCalendarStatuses,w=j.reorderCalendarStatuses,T=(0,c.Z2)(function(e){return e.settings.calendarStatus}).calendarStatuses;(0,p.useEffect)(function(){var e=function(){var e=(0,d.A)(Z().m(function e(){var t,n;return Z().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,r(!0),e.n=1,(0,E.Py)();case 1:t=e.v,n=t.data,S(n),e.n=3;break;case 2:e.p=2,e.v,u(!0);case 3:return e.p=3,r(!1),e.f(3);case 4:return e.a(2)}},e,null,[[0,2,3,4]])}));return function(){return e.apply(this,arguments)}}();e()},[S]);var A=function(e,t,n){var r=Array.from(e),a=r.splice(t,1),i=(0,f.A)(a,1)[0];return r.splice(n,0,i),r},C=function(){var e=(0,d.A)(Z().m(function e(t){var n;return Z().w(function(e){for(;;)switch(e.n){case 0:n=t.target.value,b(n);case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=(0,d.A)(Z().m(function e(){var t,n;return Z().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,O.B8)({status:y});case 1:t=e.v,n=t.data,b(""),N(n),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=3;break;case 2:e.p=2,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),G=function(){var e=(0,d.A)(Z().m(function e(t){var n,r,a,i;return Z().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=t.destination,r=t.source,n&&r.index!==n.index){e.n=1;break}return e.a(2);case 1:return a=A(T,r.index,n.index),e.p=2,w(a),i=a.map(function(e){return e.id}),e.n=3,(0,O.qw)(i);case 3:o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=5;break;case 4:e.p=4,e.v,w(T),o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 5:return e.a(2)}},e,null,[[2,4]])}));return function(t){return e.apply(this,arguments)}}();return n?(0,g.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,g.jsx)(h.DotBricksLoading,{})}):l?(0,g.jsx)(o.M,{}):(0,g.jsxs)("div",{className:"flex flex-col mx-16",children:[(0,g.jsx)("h2",{className:"my-auto capitalize",children:m.calendar}),(0,g.jsx)("h3",{className:"my-auto mt-8",children:m.status}),(0,g.jsx)("div",{className:"gap-y-2 flex flex-col mt-4",children:(0,g.jsx)(_.JY,{onDragEnd:G,children:(0,g.jsx)(_.gL,{droppableId:"droppable-list",children:function(e){return(0,g.jsxs)("div",z(z({ref:e.innerRef},e.droppableProps),{},{className:"flex flex-col",children:[T.map(function(e,t){return(0,g.jsx)(_.sx,{draggableId:e.id,index:t,children:function(t,n){return(0,g.jsx)("div",z(z(z({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{children:(0,g.jsx)(V,{status:e,className:n.isDragging?"bg-action-secondary-light-5":""},e.id)}
2),e.id)}},e.id)}),e.placeholder]}))}})})}),(0,g.jsxs)("div",{className:"flex mt-5",children:[(0,g.jsx)("input",{onChange:C,className:"max-w-[320px] w-full p-2 appearance-none leading-normal border rounded text-xs font-semibold border-white-3.0 text-brand-primary",value:y,type:"text",placeholder:m.insertStatus}),(0,g.jsx)(h.Button,{variant:"primary",className:"my-auto ml-4",onClick:P,text:m.add})]})]})};var K=n(16542);const W={es_ES:{add:"Añadir",yes:"Sí",cancel:"Cancelar",calendars:"calendarios",removeCalendarTitle:"¿Realmente desea eliminar el calendario?",removeCalendarDisclaimer:"Tendrá que escoger un calendario nuevo para cualquier solicitud de cita con este calendario que todavía no haya sido aceptada.",calendarsHelperText:"Separe sus citas en distintos calendarios para añadir más disponibilidad a su horario. Puede escoger el calendario correspondiente al momento de aceptar una solicitud de cita.",defaultChairBadgeText:"Principal",confirmationsEnabled:"Confirmaciones de Cita",schedulingEnabled:"Solicitudes de Cita",addChairModalTitle:"Crear Calendario",addChairModalInputPlaceholder:"Nombre del calendario...",chairNamePopupText:"Name",chairNameButtonText:"Guardar",options:"Opciones",defaultChairButtonText:"Hacer Calendario Principal",deleteChairButtonText:"Borrar Calendario",editChairNameButtonText:"Cambiar Nombre",defaultChairHelperTextTitle:"Calendario Principal",defaultChairHelperTextDescription:function(){return'Parece que no has configurado el calendario principal. Las solicitudes de cita nuevas usan el calendario principal como el calendario de la cita a crearse. Para configurarlo, haga clic en el botón de tres puntos al lado del nombre del calendario, y luego haga clic en "'.concat(this.defaultChairButtonText,'".')}},en_US:{add:"Add",yes:"Yes",cancel:"Cancel",calendars:"calendars",removeCalendarTitle:"Are you sure you want to delete the calendar?",removeCalendarDisclaimer:"You will have to select a new calendar for any pending appointment requests that had this calendar assigned.",calendarsHelperText:"Separate your appointments into different calendars to add greater availability to your schedule. You can select a calendar when accepting a scheduling request.",defaultChairBadgeText:"Default",confirmationsEnabled:"Appointment Confirmations",schedulingEnabled:"Appointment Scheduling",addChairModalTitle:"Create Calendar",addChairModalInputPlaceholder:"Calendar Name...",chairNamePopupText:"Name",chairNameButtonText:"Save",options:"Options",defaultChairButtonText:"Make Default Chair",deleteChairButtonText:"Delete Chair",editChairNameButtonText:"Edit Name",defaultChairHelperTextTitle:"Default Chair",defaultChairHelperTextDescription:function(){return"It seems you don't have a default chair set up. New appointment requests use default chairs as the de-facto chair for the appointment. To set up, click on the three dots beside the chair's name, and then click on \"".concat(this.defaultChairButtonText,'".')}}};var Y=function(e){var t=e.isOpen,n=e.isLoading,r=e.onConfirm,a=e.onCancel,i=(0,c.Ff)(W),s=(0,p.useState)(""),l=(0,f.A)(s,2),u=l[0],d=l[1];return(0,p.useEffect)(function(){d("")},[t]),(0,g.jsxs)(o.aF,{isModalOpen:t,closeModal:a,actionFunc:function(){r(u)},approveText:i.add,cancelText:i.cancel,disabled:!u||n,isLoading:n,useEnterForAction:!0,children:[(0,g.jsx)("h3",{className:"text-action-secondary-dark-2 mb-4 font-bold capitalize",children:i.addChairModalTitle}),(0,g.jsx)("input",{className:"border-action-secondary-light-3 focus:bg-action-secondary-light-5 text-action-secondary rounded-1 px-2 py-1 leading-normal transition-colors border appearance-none",type:"text",placeholder:i.addChairModalInputPlaceholder,onChange:function(e){d(e.target.value)},value:u,autoFocus:!0})]})};Y.propTypes={isOpen:G().bool.isRequired,isLoading:G().bool.isRequired,onConfirm:G().func.isRequired,onCancel:G().func.isRequired};const J=Y;var Q=n(16890),ee=n(63703);const te=(0,k.PS)({setChairs:function(e){var t=e.chairs,n=e.defaultChairId;return(0,k.XI)(ee.Sv,{payload:{chairs:t,defaultChairId:n}})},addChair:function(e){return(0,k.XI)(ee.UA,{payload:{chair:e}})},removeChair:function(e){return(0,k.XI)(ee.$,{payload:{chairId:e}})}
2,editChair:function(e){var t=e.chairId,n=e.attributes;return(0,k.XI)(ee.rS,{payload:{chairId:t,attributes:n}})}});var ne=function(e){var t=e.isOpen,n=e.isDefaultChair,r=e.isDeletingChair,a=e.isSettingDefaultChair,i=e.isUpdatingChairName,s=e.chairName,l=e.onSetAsDefault,u=e.onEdit,d=e.onDelete,m=e.onBlur,x=(0,c.Ff)(W),v=(0,p.useState)(ee.z2.MAIN),y=(0,f.A)(v,2),b=y[0],j=y[1],S=(0,p.useState)(s),N=(0,f.A)(S,2),w=N[0],_=N[1],E=function(e){_(e.target.value),"Enter"===e.key&&(u(w),j(ee.z2.MAIN))};return(0,g.jsx)(o.tz,{onBlur:m,isOpen:t,className:"bg-action-secondary-light-6 border-action-secondary-light-5 bottom-95 absolute z-50 border rounded shadow",children:b===ee.z2.MAIN?(0,g.jsxs)("div",{className:"w-max py-2",children:[(0,g.jsx)("p",{className:"text-action-secondary px-4 mb-1 text-xs font-semibold uppercase",children:x.options}),!n&&(0,g.jsxs)("div",{className:"hover:bg-action-secondary-light-5 flex flex-row items-center justify-between w-full px-4 py-2 transition-colors cursor-pointer",onClick:l,children:[(0,g.jsx)("p",{className:"text-action-secondary small my-auto mr-4",children:x.defaultChairButtonText}),a?(0,g.jsx)(h.RoundDotLoading,{}):(0,g.jsx)(h.Icon,{name:"User",className:"text-action-secondary"})]}),(0,g.jsxs)("div",{className:"hover:bg-action-secondary-light-5 flex flex-row items-center justify-between w-full px-4 py-2 transition-colors cursor-pointer",onClick:function(){j(ee.z2.EDIT)},children:[(0,g.jsx)("p",{className:"text-action-secondary small my-auto mr-4",children:x.editChairNameButtonText}),(0,g.jsx)(h.Icon,{name:"Edit2",className:"text-action-secondary"})]}),(0,g.jsxs)("div",{className:"group hover:bg-alert-urgent-light-2 flex flex-row items-center justify-between w-full px-4 py-2 transition-colors cursor-pointer",onClick:d,children:[(0,g.jsx)("p",{className:"text-action-secondary group-hover:text-action-secondary-light-6 small my-auto mr-4",children:x.deleteChairButtonText}),r?(0,g.jsx)(h.RoundDotLoading,{}):(0,g.jsx)(h.Icon,{name:"Trash2",className:"text-action-secondary group-hover:text-action-secondary-light-6"})]})]}):(0,g.jsxs)("div",{className:"flex flex-col px-2 py-4",children:[(0,g.jsx)("p",{className:"text-action-secondary mb-2 text-xs font-semibold uppercase",children:x.chairNamePopupText}),(0,g.jsx)("input",{type:"text",className:A()("focus:bg-action-secondary-light-4 hover:bg-action-secondary-light-5 rounded-1 text-action-secondary w-48 px-1 py-1 mb-2 text-sm transition-colors",i&&"cursor-not-allowed"),value:w,disabled:i,onChange:E,onKeyDown:E,autoFocus:!0}),(0,g.jsx)(h.Button,{variant:"primary",size:"small",className:"ml-auto",iconName:"Check",iconPlacement:"right",text:x.chairNameButtonText,onClick:function(){u(w),j(ee.z2.MAIN)},isLoading:i,disabled:!w||i})]})})};ne.propTypes={isOpen:G().bool.isRequired,isDefaultChair:G().bool.isRequired,isDeletingChair:G().bool.isRequired,isSettingDefaultChair:G().bool.isRequired,isUpdatingChairName:G().bool.isRequired,chairName:G().string.isRequired,onSetAsDefault:G().func.isRequired,onEdit:G().func.isRequired,onDelete:G().func.isRequired,onBlur:G().func.isRequired};const re=ne;var ae=function(e){var t=e.isOpen,n=e.isLoading,r=e.onConfirm,a=e.onCancel,i=(0,c.Ff)(W);return(0,g.jsxs)(o.aF,{approveText:i.yes,cancelText:i.cancel,isModalOpen:t,isLoading:n,disabled:n,actionFunc:r,closeModal:a,children:[(0,g.jsx)("h3",{className:"mb-4",children:i.removeCalendarTitle}),(0,g.jsx)("p",{children:i.removeCalendarDisclaimer})]})};ae.propTypes={isOpen:G().bool.isRequired,isLoading:G().bool.isRequired,onConfirm:G().func.isRequired,onCancel:G().func.isRequired};const ie=ae;function oe(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,r,a,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return se(l,"_invoke",function(n,r,a){var i,s,c,l=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!a&&t<u.length;t++){var a,i=u[t],p=f.p,h=i[2];n>3?(a=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(a=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(a||n>1)return o;throw d=!0,r}return function(a,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,c=h;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,a,i),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(se(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,se(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,se(d,"constructor",l),se(l,"constructor",c),c.displayName="GeneratorFunction",se(l,a,"GeneratorFunction"),se(d),se(d,a,"Generator"),se(d,r,function(){return this}),se(d,"toString",function(){return"[object Generator]"}),(oe=function(){return{w:i,m:f}})()}function se(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}se=function(e,t,n,r){function i(t,n){se(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},se(e,t,n,r)}var ce=function(e){var t=e.chair,n=(0,c.F7)().account,r=(0,c.Ff)(W),a=(0,Q.Ay)().setDefaultChair,i=te(),l=i.removeChair,u=i.editChair,m=(0,c.Z2)(function(e){return e.settings.chairsSettings.defaultChairId}),x=(0,p.useState)(!1),v=(0,f.A)(x,2),y=v[0],b=v[1],j=(0,p.useState)(!1),S=(0,f.A)(j,2),N=S[0],w=S[1],_=(0,p.useState)(!1),E=(0,f.A)(_,2),O=E[0],T=E[1],C=(0,p.useState)(!1),P=(0,f.A)(C,2),G=P[0],I=P[1],k=(0,p.useState)(!1),F=(0,f.A)(k,2),R=F[0],D=F[1],U=t.id===m,q=function(){var e=(0,d.A)(oe().m(function e(n){var r,a;return oe().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,K.FA)({chairId:t.id,payload:n});case 1:r=e.v,a=r.data,u({chairId:t.id,attributes:a}),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=3;break;case 2:e.p=2,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),L=function(){var e=(0,d.A)(oe().m(function e(){return oe().w(function(e){for(;;)switch(e.p=e.n){case 0:return D(!0),e.p=1,e.n=2,(0,K.t5)(t.id);case 2:l(t.id),U&&a(null),T(!1),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=4;break;case 3:e.p=3,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE),D(!1);case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),B=function(){var e=(0,d.A)(oe().m(function e(){return oe().w(function(e){for(;;)switch(e.p=e.n){case 0:return I(!0),e.p=1,e.n=2,(0,K.yF)({accountId:n.id,chairId:t.id});case 2:a(t.id),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=4;break;case 3:e.p=3,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 4:I(!1),b(!1);case 5:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ie,{isOpen:O,isLoading:R,onConfirm:L,onCancel:function(){T(!1)}}),(0,g.jsxs)("div",{className:"flex flex-row items-center py-2",children:[(0,g.jsxs)("div",{className:"flex flex-row items-center",children:[(0,g.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,g.jsx)("p",{className:"text-action-secondary text-md py-1 mr-2",children:t.name}),(0,g.jsxs)("div",{className:"relative my-auto",children:[(0,g.jsx)("button",{type:"button",className:A()("hover:bg-action-secondary-light-5 rounded-1 transition-colors cursor-pointer py-1",y&&"bg-action-secondary-light-5"),onClick:function(){b(!0)},children:(0,g.jsx)(h.Icon,{name:"MORE_VERTICAL",size:18,className:"text-action-secondary-light-3"})}),(0,g.jsx)(re,{isDefaultChair:U,isOpen:y,isDeletingChair:R,isUpdatingChairName:N,isSettingDefaultChair:G,chairName:t.name,onSetAsDefault:B,onEdit:function(e){w(!0),q({name:e}),w(!1),b(!1)},onDelete:function(){T(!0)},onBlur:function(){b(!1)}})]})]}),U&&(0,g.jsx)("div",{className:"ml-2",children:(0,g.jsx)("p",{className:"rounded-1 bg-action-secondary-light-6 border-action-secondary-light-3 text-action-secondary-light-3 px-1 text-xs border",children:r.defaultChairBadgeText})})]}),(0,g.jsxs)("div",{className:"flex flex-row justify-around ml-auto",children:[(0,g.jsxs)("div",{className:"flex flex-row mr-6",children:[(0,g.jsx)(o.dO,{className:"my-auto mr-2",checked:t.scheduling_enabled,onChange:function(){q({scheduling_enabled:!t.scheduling_enabled})}}),(0,g.jsx)("p",{className:"text-action-secondary my-auto",children:r.schedulingEnabled})]}),(0,g.jsxs)("div",{className:"flex flex-row",children:[(0,g.jsx)(o.dO,{className:"my-auto mr-2",checked:t.confirmations_enabled,onChange:function(){q({confirmations_enabled:!t.confirmations_enabled})}}),(0,g.jsx)("p",{className:"text-action-secondary my-auto",children:r.confirmationsEnabled})]})]})]})]})};
2ce.propTypes={chair:G().object.isRequired};const le=ce;function ue(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,r,a,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return de(l,"_invoke",function(n,r,a){var i,s,c,l=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!a&&t<u.length;t++){var a,i=u[t],p=f.p,h=i[2];n>3?(a=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(a=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(a||n>1)return o;throw d=!0,r}return function(a,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,c=h;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,a,i),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(de(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,de(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,de(d,"constructor",l),de(l,"constructor",c),c.displayName="GeneratorFunction",de(l,a,"GeneratorFunction"),de(d),de(d,a,"Generator"),de(d,r,function(){return this}),de(d,"toString",function(){return"[object Generator]"}),(ue=function(){return{w:i,m:f}})()}function de(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}de=function(e,t,n,r){function i(t,n){de(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},de(e,t,n,r)}const fe=function(){var e=(0,c.Ff)(W),t=(0,c.Z2)(function(e){return e.settings.chairsSettings}),n=t.chairs,r=t.defaultChairId,a=(0,p.useState)(!1),i=(0,f.A)(a,2),l=i[0],u=i[1],v=(0,p.useState)(!1),y=(0,f.A)(v,2),b=y[0],j=y[1],S=(0,p.useState)(!0),N=(0,f.A)(S,2),w=N[0],_=N[1],O=(0,p.useState)(!1),T=(0,f.A)(O,2),A=T[0],C=T[1],P=te(),G=P.setChairs,I=P.addChair;(0,p.useEffect)(function(){var e=function(){var e=(0,d.A)(ue().m(function e(){var t,n,r,a;return ue().w(function(e){for(;;)switch(e.p=e.n){case 0:return _(!0),e.p=1,e.n=2,Promise.all([(0,E.to)(),(0,m._O)()]);case 2:t=e.v,n=(0,f.A)(t,2),r=n[0].data,a=n[1],G({chairs:r,defaultChairId:a.default_chair_id}),e.n=4;break;case 3:e.p=3,e.v,C(!0);case 4:return e.p=4,_(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}();e()},[G]);var k=function(){var e=(0,d.A)(ue().m(function e(t){var n,r;return ue().w(function(e){for(;;)switch(e.p=e.n){case 0:return j(!0),e.p=1,e.n=2,(0,K.gq)(t);case 2:n=e.v,r=n.data,I(r),u(!1),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=4;break;case 3:e.p=3,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 4:j(!1);case 5:return e.a(2)}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}();return w?(0,g.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,g.jsx)(h.DotBricksLoading,{})}):A?(0,g.jsx)(o.M,{}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(J,{isOpen:l,isLoading:b,onCancel:function(){u(!1)},onConfirm:k}),(0,g.jsxs)("div",{className:"flex flex-col",children:[(0,g.jsxs)("div",{className:"flex mx-16",children:[(0,g.jsx)("h2",{className:"my-auto capitalize",children:e.calendars}),(0,g.jsxs)(x.EE,{className:"my-auto ml-2",children:[(0,g.jsx)("h4",{className:"text-action-secondary mb-2 font-bold capitalize",children:e.calendars}),(0,g.jsx)("p",{className:"text-action-secondary",children:e.calendarsHelperText})]}),null===r&&(0,g.jsxs)(x.EE,{className:"my-auto ml-2",iconClassName:"text-alert-urgent",iconName:"Eye",children:[(0,g.jsx)("h4",{className:"text-action-secondary mb-2 font-bold capitalize",children:e.defaultChairHelperTextTitle}),(0,g.jsx)("p",{className:"text-action-secondary",children:e.defaultChairHelperTextDescription()})]}),(0,g.jsx)(h.Button,{variant:"primary",className:"my-auto ml-auto",onClick:function(){u(!0)},iconName:"Plus",iconPlacement:"right",text:e.add})]}),(0,g.jsx)("div",{className:"mx-16 my-4",children:n.map(function(e){return(0,g.jsx)(le,{chair:e},e.id)})})]})]})};var pe=n(41349),he=n(61134),me=n(76693),xe=n(93267),ve=n(16804),ye=n(54543),be=n(74812),ge=n(92758),je=n(15314),Se=n(53870);function Ne(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,r,a,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return we(l,"_invoke",function(n,r,a){var i,s,c,l=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!a&&t<u.length;t++){var a,i=u[t],p=f.p,h=i[2];n>3?(a=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(a=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(a||n>1)return o;throw d=!0,r}return function(a,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,c=h;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,a,i),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(we(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,we(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,we(d,"constructor",l),we(l,"constructor",c),c.displayName="GeneratorFunction",we(l,a,"GeneratorFunction"),we(d),we(d,a,"Generator"),we(d,r,function(){return this}),we(d,"toString",function(){return"[object Generator]"}),(Ne=function(){return{w:i,m:f}})()}function we(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}we=function(e,t,n,r){function i(t,n){we(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},we(e,t,n,r)}const _e=function(){var e=(0,Se.Ay)().setProviderCalendarColor,t=(0,c.Z2)(function(e){return e.settings.providers}).selectedProvider,n=(0,c.F7)(),r=n.account,a=n.isStandalone,i=(0,be.F)(je.A),u=(0,p.useState)(!1),h=(0,f.A)(u,2),m=h[0],x=h[1];if(null==t||!t.id||!(0,l.qD)(null==r?void 0:r.waffles))return null;var v=t.calendar_color||"",y=function(){var n=(0,d.A)(Ne().m(function n(r){var a,i,c,l;return Ne().w(function(n){for(;;)switch(n.p=n.n){case 0:return a=v,e(t.id,r),x(!0),n.p=1,n.n=2,(0,ge.f9)(t.id,{calendar_color:r});case 2:c=n.v,l=c.data,e(t.id,null!==(i=null==l?void 0:l.calendar_color)&&void 0!==i?i:r),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),n.n=4;break;case 3:n.p=3,n.v,e(t.id,a),o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 4:return n.p=4,x(!1),n.f(4);case 5:return n.a(2)}},n,null,[[1,3,4,5]])}));return function(e){return n.apply(this,arguments)}}();return(0,g.jsx)("div",{className:"pt-10",children:(0,g.jsx)(o.M0,{value:v,onChange:y,disabled:m,hint:i.calendarColorHint,isIntegrated:!a})})};var Ee=n(8723),Oe=n(45773),Te=n(48697),Ae=n(84934),Ce=n(89820),Pe=n(95389);function Ge(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,r,a,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return Ie(l,"_invoke",function(n,r,a){var i,s,c,l=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!a&&t<u.length;t++){var a,i=u[t],p=f.p,h=i[2];n>3?(a=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(a=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(a||n>1)return o;throw d=!0,r}return function(a,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,c=h;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,a,i),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ie(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Ie(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,Ie(d,"constructor",l),Ie(l,"constructor",c),c.displayName="GeneratorFunction",Ie(l,a,"GeneratorFunction"),Ie(d),Ie(d,a,"Generator"),Ie(d,r,function(){return this}),Ie(d,"toString",function(){return"[object Generator]"}),(Ge=function(){return{w:i,m:f}})()}function Ie(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}Ie=function(e,t,n,r){function i(t,n){Ie(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ie(e,t,n,r)}const ke=function(){var e,t=(0,be.F)(je.A),n=(0,c.F7)().account,r=(0,c.Z2)(function(e){return e.settings.providers}).selectedProvider,a=(0,Se.Ay)().setProviderKioskNames,i=(0,p.useState)(""),l=(0,f.A)(i,2),u=l[0],m=l[1],x=(0,p.useState)(""),v=(0,f.A)(x,2),y=v[0],b=v[1],j=(0,p.useState)(!1),S=(0,f.A)(j,2),N=S[0],w=S[1],_=(0,p.useState)(!1),E=(0,f.A)(_,2),O=E[0],T=E[1];if((0,p.useEffect)(function(){var e,t;m(null!==(e=null==r?void 0:r.waiting_list_name_es)&&void 0!==e?e:""),b(null!==(t=null==r?void 0:r.waiting_list_name_en)&&void 0!==t?t:""),w(!1)},[null==r?void 0:r.id]),null===(e=n.settings)||void 0===e||!e.waitinglist_v2||null==r||!r.id)return null;var A=function(){var e=(0,d.A)(Ge().m(function e(){return Ge().w(function(e){for(;;)switch(e.p=e.n){case 0:return T(!0),e.p=1,e.n=2,(0,ge.f9)(r.id,{waiting_list_name_es:u||null,waiting_list_name_en:y||null});case 2:a(r.id,y||null,u||null),w(!1),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=4;break;case 3:e.p=3,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 4:return e.p=4,T(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}();return(0,g.jsxs)("div",{className:"border-action-secondary-light-4 mt-4 overflow-hidden border rounded-lg",children:[(0,g.jsx)("div",{className:"bg-brand-primary-light-4 text-brand-primary-dark-1 px-4 py-2 font-bold",children:t.onlyForWaitingList}),(0,g.jsxs)("div",{className:"bg-brand-primary-light-6 p-4",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,g.jsxs)("div",{className:"flex flex-col",children:[(0,g.jsxs)("div",{className:"flex items-center gap-2",children:[(0,g.jsx)("h3",{className:"text-lg font-semibold",children:t.waitingListNamesLabel}),(0,g.jsx)(Ce.E,{variant:"outline",className:"border-brand-primary text-brand-primary tracking-wide uppercase rounded-full",children:t.onlyStaffUsers})]}),(0,g.jsx)("p",{className:"text-action-secondary text-sm",children:t.optional})]}),N?(0,g.jsxs)("div",{className:"flex",children:[(0,g.jsx)(Pe.$,{variant:"ghost",size:"icon",onClick:A,disabled:O,children:O?(0,g.jsx)(Ee.A,{className:"text-action-primary size-4 animate-spin"}):(0,g.jsx)(Oe.A,{className:"text-action-primary size-4"})}),(0,g.jsx)(Pe.$,{variant:"ghost",size:"icon",onClick:function(){var e,t;m(null!==(e=null==r?void 0:r.waiting_list_name_es)&&void 0!==e?e:""),b(null!==(t=null==r?void 0:r.waiting_list_name_en)&&void 0!==t?t:""),w(!1)},disabled:O,children:(0,g.jsx)(Te.A,{className:"text-alert-urgent size-4"})})]}):(0,g.jsx)(Pe.$,{variant:"ghost",size:"icon",onClick:function(){return w(!0)},children:(0,g.jsx)(Ae.A,{className:"text-brand-primary size-4"})})]}),N?(0,g.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,g.jsxs)("div",{children:[(0,g.jsx)("label",{className:"text-action-secondary block mb-1 text-sm",children:t.waitingListNameSpanish}),(0,g.jsx)(h.Input,{value:u,onChange:function(e){return m(e.target.value)},placeholder:t.waitingListNameSpanishPlaceholder,className:"w-full",inputClassName:"w-full",maxLength:255})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("label",{className:"text-action-secondary block mb-1 text-sm",children:t.waitingListNameEnglish}),(0,g.jsx)(h.Input,{value:y,onChange:function(e){return b(e.target.value)},placeholder:t.waitingListNameEnglishPlaceholder,className:"w-full",inputClassName:"w-full",maxLength:255})]})]}):(0,g.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,g.jsxs)("div",{children:[(0,g.jsx)("label",{className:"text-action-secondary block mb-1 text-sm",children:t.waitingListNameSpanish}),(0,g.jsx)("p",{className:"text-sm",children:u||"—"})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("label",{className:"text-action-secondary block mb-1 text-sm",children:t.waitingListNameEnglish}),(0,g.jsx)("p",{className:"text-sm",children:y||"—"})]})]})]})]})};var Fe=n(95093),Re=n.n(Fe),De=n(46005),Ue=n(39956),qe=n(51518),Le=n(40335);function Be(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,r,a,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return Ve(l,"_invoke",function(n,r,a){var i,s,c,l=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!a&&t<u.length;t++){var a,i=u[t],p=f.p,h=i[2];n>3?(a=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(a=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(a||n>1)return o;throw d=!0,r}return function(a,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,c=h;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,a,i),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ve(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Ve(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,Ve(d,"constructor",l),Ve(l,"constructor",c),c.displayName="GeneratorFunction",Ve(l,a,"GeneratorFunction"),Ve(d),Ve(d,a,"Generator"),Ve(d,r,function(){return this}),Ve(d,"toString",function(){return"[object Generator]"}),(Be=function(){return{w:i,m:f}})()}function Ve(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}Ve=function(e,t,n,r){function i(t,n){Ve(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ve(e,t,n,r)}const Me=function(){var e=(0,Se.Ay)(),t=e.setProviderAvailability,n=e.deleteProviderAvailability,r=e.setProviderAvailabilityTime,a=(0,c.Z2)(function(e){return e.settings.providers}),i=a.selectedProvider,l=a.settingsByProvider,u=a.businessAvailability,f=i.id,p=(0,h.getProviderDisplayName)(i),m=l[f].availability,x=(0,be.F)(je.A),v=x.weekdays,y=function(){var e=(0,d.A)(Be().m(function e(t){return Be().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,ge.dU)(t);case 1:n(t),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=3;break;case 2:e.p=2,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=(0,d.A)(Be().m(function e(n){var r,a;return Be().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,ge.yd)(n);case 1:r=e.v,a=r.data,t(a),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=3;break;case 2:e.p=2,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=(0,d.A)(Be().m(function e(n){return Be().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,ge.wu)(n);case 1:e.v.successResults.forEach(function(e){t(e)}),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=3;break;case 2:e.p=2,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),S=function(e){return(0,d.A)(Be().m(function t(){var n,r,a,i;return Be().w(function(t){for(;;)switch(t.n){case 0:if(!((n=m[e]).length>0)){t.n=1;break}return y(n),t.a(2);case 1:if((r=u[e])&&0!==r.length){t.n=2;break}return o.y8.error(s.OG.PROVIDER_HOURS_OUTSIDE_WORK_HOURS),t.a(2);case 2:if(1!==r.length){t.n=3;break}return a={weekday:e,provider:f,start_time:r[0].start_time,end_time:r[0].end_time,slot_type:1},b(a),t.a(2);case 3:i=[],r.forEach(function(t){i.push({weekday:e,provider:f,start_time:t.start_time,end_time:t.end_time,slot_type:1})}),j(i);case 4:return t.a(2)}},t)}))},N=function(e){return function(){var t=u[e];if(t&&0!==t.length){var n=t.length-1,r=t[n].start_time,a=t[n].end_time;b({weekday:e,provider:f,start_time:r,end_time:a,slot_type:1})}else o.y8.error(s.OG.PROVIDER_HOURS_OUTSIDE_WORK_HOURS)}},w=function(e){return function(){var t=(0,d.A)(Be().m(function t(n,a){var i,c,l,u,d;return Be().w(function(t){for(;;)switch(t.p=t.n){case 0:return i=a.name,c=n.value,t.p=1,t.n=2,(0,ge.Cj)(e,c,i);case 2:l=t.v,u=l.data,r(u),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),t.n=5;break;case 3:if(t.p=3,d=t.v,!(0,qe.dA)(d)){t.n=4;break}return o.y8.error(s.OG.PROVIDER_HOURS_OUTSIDE_WORK_HOURS),t.a(2);case 4:o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 5:return t.a(2)}},t,null,[[1,3]])}));return function(e,n){return t.apply(this,arguments)}}()};return(0,g.jsxs)("div",{children:[(0,g.jsx)("h3",{children:(0,g.jsx)("b",{children:p})}),(0,g.jsx)("p",{className:"mt-2 small text-gray-1.0 font-semibold mb-10",children:x.availabilityDisclaimer}),(0,g.jsx)("h6",{className:"mt-6 mb-2 text-gray-1.0 font-semibold",children:x.availability}),Le.w4.map(function(e){return(0,g.jsxs)("div",{className:"flex mb-4",children:[(0,g.jsx)(o.dO,{className:"flex pt-3 mr-3",checked:m[e].length>0,onChange:S(e)}),(0,g.jsx)("div",{className:"min-w-24 mt-2 ml-4",children:(m[e].length,(0,g.jsx)("p",{children:(0,g.jsx)("b",{children:v?v[e]:""})}))}),(0,g.jsx)("div",{className:"flex flex-col",children:m[e].map(function(t,n){return(0,g.jsxs)("div",{className:"flex",children:[(0,g.jsx)("p",{className:"mt-2 ml-2",children:x.from}),(0,g.jsxs)("div",{className:A()("flex mb-4",t.id?"":"hidden"),children:[(0,g.jsx)(De.Ay,{options:(0,qe.PM)(t.end_time,"start"),value:{value:t.start_time,label:Re()(t.start_time,"HH:mm:ss").format("h:mm A")},components:{IndicatorSeparator:function(){return null}},name:"start_time",isDisabled:!t.id,onChange:w(t),isSearchable:!0,styles:Ue.sentenceSelectStyle,className:"min-w-32 ml-2"}),(0,g.jsx)("div",{className:"self-center px-4",children:x.to}),(0,g.jsx)(De.Ay,{options:(0,qe.PM)(t.start_time,"end"),value:{value:t.end_time,label:Re()(t.end_time,"HH:mm:ss").format("h:mm A")},components:{IndicatorSeparator:function(){return null}},name:"end_time",isDisabled:!t.id,onChange:w(t),isSearchable:!0,styles:Ue.sentenceSelectStyle,className:"min-w-32"}),(0,g.jsxs)("div",{className:"flex my-auto ml-4",children:[(0,g.jsx)(o.a6,{title:(0,g.jsx)("i",{className:"icon-trash_icon text-2xl"}),className:"p-1",onClick:function(){return y(t)}}),(0,g.jsx)(o.a6,{title:(0,g.jsx)("i",{className:"m-auto text-2xl icon-plus_icon text-secondary-1.0"}),className:A()("p-1 ml-2",m[e].length!==n+1?"hidden":""),onClick:N(e)})]})]})]},t.id)})})]},e)})]})};var He=n(45458),ze=function(e){var t=e.insurance,n=e.onClick;return(0,g.jsxs)("div",{className:"hover:bg-action-secondary-light-4 bg-action-secondary-light-5 flex items-center px-3 py-2 mt-4 mr-4 transition-colors rounded cursor-default",children:[(0,g.jsx)("p",{className:"mr-2 text-sm truncate",children:t}),(0,g.jsx)("button",{className:"hover:bg-action-secondary-light-3 p-1 transition-colors rounded-full",type:"button",onClick:function(){n(t)},children:(0,g.jsx)(h.Icon,{name:"X",className:"text-action-secondary"})})]})};ze.propTypes={insurance:G().string.isRequired,onClick:G().func.isRequired};const Ze=ze;function Xe(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,r,a,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return $e(l,"_invoke",function(n,r,a){var i,s,c,l=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!a&&t<u.length;t++){var a,i=u[t],p=f.p,h=i[2];n>3?(a=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(a=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(a||n>1)return o;throw d=!0,r}return function(a,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,c=h;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,a,i),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):($e(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,$e(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,$e(d,"constructor",l),$e(l,"constructor",c),c.displayName="GeneratorFunction",$e(l,a,"GeneratorFunction"),$e(d),$e(d,a,"Generator"),$e(d,r,function(){return this}),$e(d,"toString",function(){return"[object Generator]"}),(Xe=function(){return{w:i,m:f}})()}function $e(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}$e=function(e,t,n,r){function i(t,n){$e(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},$e(e,t,n,r)}var Ke=k.ki.defaultSelectStyle;const We=function(){var e=(0,p.useState)([]),t=(0,f.A)(e,2),n=t[0],r=t[1],a=(0,Se.Ay)().setProviderInsurances,i=(0,be.F)(je.A),l=(0,c.Z2)(function(e){return e.settings.providers}),u=l.selectedProvider,m=l.insurances,x=l.settingsByProvider,v=l.defaultProviderId,y=u.id,b=x[y].insurances,j=m.filter(function(e){return!b.includes(e)}).map(function(e){return{label:e,value:e}}),S=function(){var e=(0,d.A)(Xe().m(function e(){var t;return Xe().w(function(e){for(;;)switch(e.p=e.n){case 0:return t=(0,He.A)(b),n.forEach(function(e){t.push(e.value)}),e.p=1,e.n=2,(0,ge.$f)(y,t);case 2:a(y,t),r([]),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=4;break;case 3:e.p=3,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),N=function(){var e=(0,d.A)(Xe().m(function e(t){var n,i;return Xe().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=(0,He.A)(b),i=n.indexOf(t),n.splice(i,1),e.p=1,e.n=2,(0,ge.$f)(y,n);case 2:a(y,n),r([]),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=4;break;case 3:e.p=3,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 4:return e.a(2)}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}(),w=function(){var e=(0,d.A)(Xe().m(function e(){var t,n;return Xe().w(function(e){for(;;)switch(e.p=e.n){case 0:return t=x[v].insurances,n=Array.from(new Set([].concat((0,He.A)(b),(0,He.A)(t)))),e.p=1,e.n=2,(0,ge.$f)(y,n);case 2:a(y,n),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=4;break;case 3:e.p=3,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}();return(0,g.jsxs)("div",{className:"flex flex-col flex-grow pt-5",children:[(0,g.jsx)("h3",{className:"mb-5",children:(0,g.jsx)("b",{children:i.insuranceHeader})}),u.id!==v&&(0,g.jsxs)("div",{className:"flex flex-col",children:[(0,g.jsx)("div",{className:" flex",children:(0,g.jsx)(h.Button,{text:i.allInsurances,onClick:w})}),(0,g.jsx)("p",{className:"mt-2 small text-gray-1.0 font-semibold mb-10",children:i.allInsurancesDisclaimer})]}),(0,g.jsxs)("div",{className:"flex",children:[(0,g.jsx)(De.Ay,{closeMenuOnSelect:!1,options:j,value:n,onChange:function(e){r(e)},isMulti:!0,placeholder:i.selectPlaceholder,className:"w-5/6 mt-1",styles:Ke}),(0,g.jsx)("div",{className:"my-auto",children:(0,g.jsx)(h.Button,{className:"ml-4",variant:"primary",onClick:S,text:i.add})})]}),(0,g.jsx)("div",{className:"flex flex-row flex-wrap pt-4",children:b.map(function(e){return(0,g.jsx)(Ze,{insurance:e,onClick:N},e)})})]})};var Ye=n(40921),Je=n(48719),Qe=n(14073),et=n(16576),tt=n(75107),nt=n(67951),rt=function(e){var t=e.isOpen,n=e.isDefaultProvider,r=e.isSchedulingEnabled,a=e.isSettingDefaultProvider,i=e.isTogglingProviderScheduling,s=e.isUpdatingProviderName,c=e.isOnlyScheduleByStaff,l=e.isTogglingEnabled,u=e.providerName,d=e.onSetAsDefault,m=e.onEdit,x=e.onBlur,v=e.onToggleProviderEnabled,y=e.onToggleIsOnlyScheduleByStaff,b=(0,p.useState)(Le.f1.MAIN),j=(0,f.A)(b,2),S=j[0],N=j[1],w=(0,p.useState)(u),_=(0,f.A)(w,2),E=_[0],O=_[1],T=(0,be.F)(je.A),C=function(e){O(e.target.value),"Enter"===e.key&&(m(E),N(Le.f1.MAIN))};return(0,g.jsx)(o.tz,{onBlur:x,isOpen:t,className:"bg-action-secondary-light-6 border-action-secondary-light-5 top-4 -left-1 absolute z-50 border rounded shadow",children:S===Le.f1.MAIN?(0,g.jsxs)("div",{className:"w-max py-2",children:[(0,g.jsx)("p",{className:"text-action-secondary px-4 mb-1 text-xs font-semibold uppercase",children:T.options}),!n&&(0,g.jsxs)("div",{className:"hover:bg-action-secondary-light-5 flex flex-row items-center justify-between w-full px-4 py-2 transition-colors cursor-pointer",onClick:d,children:[(0,g.jsx)("p",{className:"text-action-secondary small my-auto mr-4",children:T.defaultProviderButtonText}),a?(0,g.jsx)(h.RoundDotLoading,{}):(0,g.jsx)(h.Icon,{name:"User",className:"text-action-secondary"})]}),(0,g.jsxs)("div",{className:"hover:bg-action-secondary-light-5 flex flex-row items-center justify-between w-full px-4 py-2 transition-colors cursor-pointer",onClick:function(){N(Le.f1.EDIT_NAME)},children:[(0,g.jsx)("p",{className:"text-action-secondary small my-auto mr-4",children:T.editName}),(0,g.jsx)(h.Icon,{name:"Edit2",className:"text-action-secondary"})]}),(0,g.jsxs)("div",{className:A()("group flex flex-row items-center justify-between px-4 py-2 transition-colors cursor-pointer w-full",r?"hover:bg-alert-urgent-light-2":"hover:bg-action-secondary-light-5"),onClick:v,children:[(0,g.jsx)("p",{className:A()("small my-auto mr-4",r?"text-action-secondary group-hover:text-action-secondary-light-6":"text-action-secondary"),children:r?T.deactivateProvider:T.activateProvider}),l?(0,g.jsx)(h.RoundDotLoading,{}):(0,g.jsx)(h.Icon,{name:r?"X":"Info",className:"text-action-secondary group-hover:text-action-secondary-light-6"})]}),(0,g.jsxs)("div",{className:A()("group flex flex-row items-center justify-between px-4 py-2 transition-colors cursor-pointer w-full",c?"hover:bg-action-secondary-light-5":"hover:bg-alert-urgent-light-2"),onClick:y,children:[(0,g.jsx)("p",{className:A()("small my-auto mr-4",c?"text-action-secondary":"text-action-secondary group-hover:text-action-secondary-light-6"),children:c?T.activateProviderScheduling:T.deactivateProviderScheduling}),i?(0,g.jsx)(h.RoundDotLoading,{}):(0,g.jsx)(h.Icon,{name:c?"X":"Info",className:"text-action-secondary group-hover:text-action-secondary-light-6"})]})]}):(0,g.jsxs)("div",{className:"flex flex-col px-2 py-4",children:[(0,g.jsx)("p",{className:"text-action-secondary mb-2 text-xs font-semibold uppercase",children:T.providerNamePopupText}),(0,g.jsx)("input",{type:"text",className:A()("focus:bg-action-secondary-light-4 hover:bg-action-secondary-light-5 rounded-1 text-action-secondary w-48 px-1 py-1 mb-2 text-sm transition-colors",s&&"cursor-not-allowed"),value:E,disabled:s,onChange:C,onKeyDown:C,autoFocus:!0}),(0,g.jsx)(h.Button,{variant:"primary",size:"small",className:"ml-auto",iconName:"Check",iconPlacement:"right",text:T.save,onClick:function(){m(E),N(Le.f1.MAIN)},isLoading:s,disabled:!E||s})]})})};rt.propTypes={isOpen:G().bool.isRequired,isSettingDefaultProvider:G().bool.isRequired,isTogglingProviderScheduling:G().bool.isRequired,isDefaultProvider:G().bool.isRequired,isSchedulingEnabled:G().bool.isRequired,isUpdatingProviderName:G().bool.isRequired,isOnlyScheduleByStaff:G().bool.isRequired,isTogglingEnabled:G().bool.isRequired,providerName:G().string.isRequired,onSetAsDefault:G().func.isRequired,onEdit:G().func.isRequired,onToggleProviderEnabled:G().func.isRequired,onBlur:G().func.isRequired,onToggleIsOnlyScheduleByStaff:G().func.isRequired};const at=rt;function it(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,r,a,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return ot(l,"_invoke",function(n,r,a){var i,s,c,l=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!a&&t<u.length;t++){var a,i=u[t],p=f.p,h=i[2];n>3?(a=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(a=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(a||n>1)return o;throw d=!0,r}return function(a,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,c=h;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,a,i),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ot(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,ot(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,ot(d,"constructor",l),ot(l,"constructor",c),c.displayName="GeneratorFunction",ot(l,a,"GeneratorFunction"),ot(d),ot(d,a,"Generator"),ot(d,r,function(){return this}),ot(d,"toString",function(){return"[object Generator]"}),(it=function(){return{w:i,m:f}})()}function ot(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}ot=function(e,t,n,r){function i(t,n){ot(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ot(e,t,n,r)}var st=function(e){var t=e.provider,n=(0,c.F7)().account,r=(0,Se.Ay)(),a=r.setSelectedProvider,i=r.setProviderDisplayName,u=r.setProviderIsScheduling,m=r.setProviderIsOnlyScheduleByStaff,x=r.setDefaultProvider,v=(0,c.Z2)(function(e){return e.settings.providers.selectedProvider.id}),y=(0,c.Z2)(function(e){return e.settings.providers.defaultProviderId}),b=(0,p.useState)(!1),j=(0,f.A)(b,2),S=j[0],N=j[1],w=(0,p.useState)(!1),_=(0,f.A)(w,2),E=_[0],O=_[1],T=(0,p.useState)(!1),C=(0,f.A)(T,2),P=C[0],G=C[1],I=(0,p.useState)(!1),k=(0,f.A)(I,2),F=k[0],R=k[1],D=(0,p.useState)(!1),U=(0,f.A)(D,2),q=U[0],L=U[1],B=(0,be.F)(je.A),V=t.scheduling_enabled,M=t.is_only_allowed_scheduling_by_staff,H=t.id===y,z=function(){var e=(0,d.A)(it().m(function e(n){return it().w(function(e){for(;;)switch(e.p=e.n){case 0:return O(!0),e.p=1,e.n=2,(0,ge.ge)(t.id,n);case 2:N(!1),i(t.id,n),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=4;break;case 3:e.p=3,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 4:return e.p=4,O(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(t){return e.apply(this,arguments)}}(),Z=function(){var e=(0,d.A)(it().m(function e(){var n;return it().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=!V,L(!0),e.p=1,e.n=2,(0,ge.Rj)(t.id,n);case 2:u(t.id,n),N(!1),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=4;break;case 3:e.p=3,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 4:return e.p=4,L(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}(),X=function(){var e=(0,d.A)(it().m(function e(){return it().w(function(e){for(;;)switch(e.p=e.n){case 0:return G(!0),e.p=1,e.n=2,(0,ge._s)({accountId:n.id,providerId:t.id});case 2:x(t.id),N(!1),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=4;break;case 3:e.p=3,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 4:return e.p=4,G(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}(),$=function(){var e=(0,d.A)(it().m(function e(){var n;return it().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=!M,R(!0),e.p=1,e.n=2,(0,ge.En)(t.id,n);case 2:m(t.id,n),N(!1),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=4;break;case 3:e.p=3,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 4:return e.p=4,R(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}();return(0,g.jsxs)("div",{className:"flex mb-2",children:[(0,g.jsx)(o.m_,{message:V?"":B.providerDeactivated,children:(0,g.jsxs)("button",{className:A()("flex mr-1 px-2 py-2 w-48 hover:bg-action-secondary-light-5 border-l-2 transition-colors",v===t.id?"text-action-secondary bg-action-secondary-light-5 border-action-primary-light-1":"text-action-secondary-light-2 bg-system-transparent border-system-transparent"),onClick:function(){a(t)},type:"button",children:[(0,g.jsxs)("div",{className:"flex flex-row items-center gap-1.5 w-40 truncate",children:[(0,l.qD)(null==n?void 0:n.waffles)&&(0,g.jsx)(o.bD,{color:t.calendar_color}),(0,g.jsx)("p",{className:"font-semibold truncate",children:(0,h.getProviderDisplayName)(t)}),H&&(0,g.jsx)("div",{className:"ml-2",children:(0,g.jsx)("p",{className:"rounded-1 bg-action-secondary-light-6 border-action-secondary-light-4 text-action-secondary-light-4 px-1 text-xs border",children:B.defaultProviderBadgeText})})]}),M&&(0,g.jsx)(o.m_,{message:B.providerSchedulingDisabled,placement:V?"top":"right",children:(0,g.jsx)(nt.A,{size:18,className:"text-action-secondary-light-3 ml-2"})})]})}),(0,g.jsx)("button",{type:"button",className:A()("hover:bg-action-secondary-light-5 rounded-1 transition-colors cursor-pointer",S&&"bg-action-secondary-light-5"),onClick:function(){N(!0)},children:(0,g.jsx)(h.Icon,{name:"MORE_VERTICAL",size:18,className:"text-action-secondary-light-3"})}),(0,g.jsx)("div",{className:"relative",children:(0,g.jsx)(at,{isDefaultProvider:H,isSettingDefaultProvider:P,isOpen:S,isSchedulingEnabled:V,isTogglingEnabled:q,isTogglingProviderScheduling:F,isUpdatingProviderName:E,isOnlyScheduleByStaff:M,providerName:(0,h.getProviderDisplayName)(t),onSetAsDefault:X,onEdit:z,onToggleProviderEnabled:Z,onBlur:function(){N(!1)},onToggleIsOnlyScheduleByStaff:$})})]})};st.propTypes={provider:G().object.isRequired};const ct=st;var lt=function(e){var t=e.isLoading,n=e.onClick,r=(0,c.F7)().isStandalone,a=(0,c.Z2)(function(e){return e.settings.providers}).providers,i=(0,be.F)(je.A),o=a.filter(function(e){return!e.scheduling_enabled}),s=a.filter(function(e){return e.scheduling_enabled});return(0,g.jsxs)("div",{className:"z-1 sticky top-0 flex flex-col h-full mx-5",children:[s.map(function(e){return(0,g.jsx)(ct,{provider:e},e.id)}),(0,g.jsxs)(Ye.A,{className:"before:opacity-0",children:[(0,g.jsx)(Je.A,{className:"bg-action-secondary-light-2 roun
2ded-tr-1 rounded-br-1 min-h-[24px] h-6 py-0 pr-0 pl-2",expandIcon:(0,g.jsx)(tt.A,{className:"text-white-0.0"}),"aria-controls":"panel1a-content",id:"panel1a-header",children:(0,g.jsx)(Qe.A,{className:"text-white-0.0",children:i.inactive})}),(0,g.jsx)(et.A,{className:"py-0 pl-0 pr-2 max-w-[13rem] w-full",children:0===o.length?(0,g.jsx)("div",{className:"p-4",children:(0,g.jsx)("p",{className:"text-action-secondary-light-1 text-sm",children:i.noInactiveProviders})}):o.map(function(e){return(0,g.jsx)(ct,{provider:e},e.id)})})]}),r&&(0,g.jsx)(h.Button,{iconName:"Plus",className:"mx-auto mt-4",iconPlacement:"right",text:i.add,onClick:n,disabled:t,isLoading:t})]})};lt.propTypes={isLoading:G().bool.isRequired,onClick:G().func.isRequired};const ut=(0,p.memo)(lt);var dt=n(25415);function ft(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(n,r,a,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return pt(l,"_invoke",function(n,r,a){var i,s,c,l=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,c=e,f.n=n,o}};function p(n,r){for(s=n,c=r,t=0;!d&&l&&!a&&t<u.length;t++){var a,i=u[t],p=f.p,h=i[2];n>3?(a=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((a=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(a=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(a||n>1)return o;throw d=!0,r}return function(a,u,h){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,c=h;(t=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(a="next"),t=i[a]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==o)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,a,i),!0),l}var o={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(pt(t={},r,function(){return this}),t),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,pt(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,pt(d,"constructor",l),pt(l,"constructor",c),c.displayName="GeneratorFunction",pt(l,a,"GeneratorFunction"),pt(d),pt(d,a,"Generator"),pt(d,r,function(){return this}),pt(d,"toString",function(){return"[object Generator]"}),(ft=function(){return{w:i,m:f}})()}function pt(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}pt=function(e,t,n,r){function i(t,n){pt(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},pt(e,t,n,r)}const ht=function(){var e,t=(0,p.useState)(!0),n=(0,f.A)(t,2),r=n[0],a=n[1],i=(0,p.useState)(!1),l=(0,f.A)(i,2),u=l[0],v=l[1],y=(0,p.useState)(!1),b=(0,f.A)(y,2),j=b[0],S=b[1],N=(0,p.useState)(!1),w=(0,f.A)(N,2),_=w[0],E=w[1],O=(0,c.F7)(),T=O.account,A=O.connectedUser,C=(null===(e=T.company_industry)||void 0===e?void 0:e.name)===s.hX.HEALTHCARE,P=(0,Se.Ay)(),G=P.setProviderSettings,I=P.setNewProvider,k=(0,c.Z2)(function(e){return e.settings.providers}),F=k.providers,R=k.defaultProviderId,D=A.user_type===s.ve.BRAINHI_STAFF;(0,p.useEffect)(function(){var e=function(){var e=(0,d.A)(ft().m(function e(){var t,n,r,i,o,s;return ft().w(function(e){for(;;)switch(e.p=e.n){case 0:return a(!0),e.p=1,e.n=2,Promise.all([(0,m.v2)(),(0,m.GF)(),(0,m._O)(),(0,m.yh)()]);case 2:t=e.v,n=(0,f.A)(t,4),r=n[0],i=n[1],o=n[2],s=n[3],G({providers:r,settings:i,defaultProviderId:o.default_provider_id,businessAvailability:s}),e.n=4;break;case 3:e.p=3,e.v,v(!0);case 4:return e.p=4,a(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}();e()},[G]);var U=T.calendar_type,q=(0,be.F)(je.A),L=s.mU.includes(U),B={add:q.add,cancel:q.cancel,addProviderModalTitle:q.addProviderModalTitle,addProviderModalDescription:q.addProviderModalDescription,addProviderModalPlaceholder:q.addProviderModalInputPlaceholder},V=function(){E(!0)},M=function(){var e=(0,d.A)(ft().m(function e(t){var n,r;return ft().w(function(e){for(;;)switch(e.p=e.n){case 0:return S(!0),e.p=1,e.n=2,(0,ge.Qd)(t);case 2:n=e.v,r=n.data,I(r),E(!1),o.y8.success(s.OG.SAVE_SETTINGS_SUCCESS),e.n=4;break;case 3:e.p=3,e.v,o.y8.error(s.OG.SAVE_SETTINGS_FAILURE);case 4:S(!1);case 5:return e.a(2)}},e,null,[[1,3]])}
2));return function(t){return e.apply(this,arguments)}}();return r?(0,g.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,g.jsx)(h.DotBricksLoading,{})}):u?(0,g.jsx)(o.M,{}):(0,g.jsxs)(g.Fragment,{children:[_&&(0,g.jsx)(ye._7,{isLoading:j,onCancel:function(){E(!1)},onConfirm:M,labels:B}),0===F.length?(0,g.jsxs)("div",{className:"ml-16",children:[(0,g.jsxs)("div",{className:"flex flex-row",children:[(0,g.jsx)("h2",{children:q.providers}),(0,g.jsxs)(x.EE,{className:"ml-2",children:[(0,g.jsx)("h4",{className:"text-action-secondary mb-2 font-bold",children:q.providers}),(0,g.jsx)("p",{className:"text-action-secondary",children:q.providersHelperText})]})]}),(0,g.jsx)(h.Button,{variant:"primary",className:"mt-8",onClick:V,text:q.addNewProvider,disabled:j,isLoading:j})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"flex ml-16",children:[(0,g.jsx)("h2",{children:q.providers}),(0,g.jsxs)(x.EE,{className:"ml-2",children:[(0,g.jsx)("h4",{className:"text-action-secondary mb-2 font-bold",children:q.providers}),(0,g.jsx)("p",{className:"text-action-secondary",children:q.providersHelperText})]}),null===R&&(0,g.jsxs)(x.EE,{className:"ml-2",iconClassName:"text-alert-urgent",iconName:"Eye",children:[(0,g.jsx)("h4",{className:"text-action-secondary mb-2 font-bold",children:q.defaultProviderHelperTextTitle}),(0,g.jsx)("p",{className:"text-action-secondary",children:q.defaultProviderHelperTextDescription})]})]}),(0,g.jsxs)("div",{className:"flex flex-row my-10",children:[(0,g.jsx)(ut,{isLoading:j,onClick:V}),(0,g.jsxs)("div",{className:"flex flex-col flex-grow ml-2 mr-12",children:[!L&&(0,g.jsx)(Me,{}),(0,g.jsx)(_e,{}),D&&(0,g.jsx)(ke,{}),(0,g.jsx)(dt.A,{}),C&&(0,g.jsx)(We,{})]})]})]})]})};var mt=n(87994),xt=n(56848),vt=n(11691);const yt=function(){var e=(0,be.F)(vt.A),t=[e.profile,e.incomingCalls,e.calendars,e.calendar,e.providers,e.tagsLink,e.services,e.link,e.confirmations,e.messages,e.waitingList,e.appointmentReminders,e.referrals,e.keywordMatching];return(0,g.jsx)("div",{className:"bg-white-1.0 w-64 xl:w-72 pt-10 px-5 overflow-auto",children:t.map(function(e){return(0,g.jsx)("button",{type:"button",activeClass:"border-l-4 pl-1 border-secondary-1.0",className:"block py-1 mb-6 text-sm font-semibold cursor-pointer",children:e},e)})})},bt=function(){var e=(0,be.F)(y.Ay),t=[e.businessName,e.phoneNumber,e.email,e.fax,e.website,e.address,e.building,e.floor,e.location];return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(yt,{}),(0,g.jsx)("div",{className:"flex w-full overflow-x-hidden",children:(0,g.jsx)(xt.Hg,{name:"container",className:"relative flex-grow overflow-scroll",id:"settingsContainer",children:(0,g.jsxs)(xt.Hg,{name:"business-profile",className:"xl:mx-16 flex flex-col flex-grow mx-12 mb-12",children:[(0,g.jsx)("div",{className:"flex flex-row items-center mt-12",children:(0,g.jsx)("h2",{children:e.businessProfile})}),(0,g.jsxs)("div",{className:"flex-col mt-8",children:[(0,g.jsx)("h4",{className:"mt-1",children:e.generalInformation}),t.map(function(e){return(0,g.jsxs)("div",{className:"flex flex-col mt-4",children:[(0,g.jsx)("label",{htmlFor:e,className:"text-gray-1.0 font-semibold",children:e}),(0,g.jsx)("input",{id:e,className:"bg-white-0.0 border border-white-3.0 rounded py-1 px-2 text-black-1.0 mt-1 w-88"})]},e)}),(0,g.jsx)(h.Button,{variant:"primary",className:"xl:w-1/5 w-1/3 mt-6",type:"submit",id:"save-business-information",text:e.saveChanges})]})]})})})]})};var gt=n(9084),jt=n(28042),St=n(19983),Nt=n(93913);const wt=function(){var e,t,n,d,f=(0,a.W6)(),p=(0,a.W5)("".concat(s.o2,"/settings")).url,h=(0,c.F7)(),m=h.account,v=h.connectedUser,y=h.isStandalone,b=h.isHealthcare,j=(0,c.Ff)(vt.A),S=null!==(e=null===(t=m.settings)||void 0===t?void 0:t.is_task_enabled)&&void 0!==e&&e,w=s.mU.includes(m.calendar_type),_=!y&&!w,E=!w,O=b,T=(0,l.Pb)(m.waffles)&&y,A=(0,l.Pb)(m.waffles),C=m.user_is_staff,P=v.is_account_manager,G=(null===(n=m.settings)||void 0===n?void 0:n.block_access_to_settings)&&!C&&!P,I=m.is_waiting_list_enabled,k=null===(d=m.settings)||void 0===d?void 0:d.waitinglist_v2;return(0,g.jsxs)("div",{className:"view-width flex flex-grow overflow-hidden",children:[(0,g.jsx)(o.aF,{isModalOpen:G,approveText:j.modalBackButton,actionFunc:f.goBack,children:(0,g.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,g.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,g.jsx)("div",{className:"absolute left-0 py-2",children:(0,g.jsx)(r.A,{size:18})}),(0,g.jsx)("h3",{className:"w-full text-center",children:j.restrictedAccess})]}),(0,g.jsx)("hr",{className:"border-gray-1.0"}),(0,g.jsxs)("div",{className:"flex flex-col gap-2 text-center",children:[(0,g.jsx)("p",{children:j.modalRestrictedText_1}),(0,g.jsx)("p",{className:"text-xs",children:j.modalRestrictedText_2})]})]})}),G?(0,g.jsx)(bt,{}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(x.Bx,{}),(0,g.jsx)("div",{className:"relative flex-grow py-12 overflow-scroll",children:(0,g.jsxs)(a.dO,{children:[(0,g.jsx)(a.qh,{path:"".concat(p,"/business-profile"),children:(0,g.jsx)(N,{})}),O&&(0,g.jsx)(a.qh,{path:"".concat(p,"/todo"),children:(0,g.jsx)(he.A,{})}),T&&(0,g.jsx)(a.qh,{path:"".concat(p,"/calendar"),children:(0,g.jsx)($,{})}),(0,g.jsx)(a.qh,{path:"".concat(p,"/providers"),children:(0,g.jsx)(ht,{})}),S&&(0,g.jsx)(a.qh,{path:"".concat(p,"/tags"),children:(0,g.jsx)(St.A,{})}),A&&(0,g.jsx)(a.qh,{path:"".concat(p,"/services"),children:(0,g.jsx)(jt.A,{})}),E&&(0,g.jsx)(a.qh,{path:"".concat(p,"/scheduling-link"),children:(0,g.jsx)(gt.A,{})}),(0,g.jsx)(a.qh,{path:"".concat(p,"/confirmations"),children:(0,g.jsx)(pe.A,{})}),(0,g.jsx)(a.qh,{path:"".concat(p,"/appointment-reminders"),children:(0,g.jsx)(u.A,{})}),(0,g.jsx)(a.qh,{path:"".concat(p,"/messages"),children:(0,g.jsx)(ve.A,{})}),I&&(0,g.jsx)(a.qh,{path:"".concat(p,"/waiting-list"),children:k?(0,g.jsx)(i.Z,{}):(0,g.jsx)(Nt.A,{})}),(0,g.jsx)(a.qh,{path:"".concat(p,"/keyword-matching"),children:(0,g.jsx)(xe.A,{})}),!T&&(0,g.jsx)(a.qh,{path:"".concat(p,"/chairs"),children:(0,g.jsx)(fe,{})}),O&&(0,g.jsx)(a.qh,{path:"".concat(p,"/incoming-calls"),children:(0,g.jsx)(he.A,{})}),_&&(0,g.jsx)(a.qh,{path:"".concat(p,"/calendar-integration"),children:(0,g.jsx)(me.A,{})}),(0,g.jsx)(a.qh,{path:"".concat(p,"/referrals"),children:(0,g.jsx)(mt.A,{})}),(0,g.jsx)(a.qh,{path:"*",render:function(){return(0,g.jsx)(a.rd,{to:"".concat(p,"/business-profile")})}})]})})]})]})}}}]);//# sourceMappingURL=613.462b6d58.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.