@timum/booking 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/booking.js +1 -1
- package/build/booking.umd.cjs +1 -1
- package/build/{index-0ee25b5d.js → index-121e850f.js} +1 -1
- package/build/{index-cd2f0d00.js → index-1da71c1e.js} +1 -1
- package/build/{index-6f59f9d1.js → index-25997521.js} +1 -1
- package/build/{index-c0dc40f8.js → index-55733a63.js} +1 -1
- package/build/{index-a6615eb5.js → index-8428bcb4.js} +1 -1
- package/build/{index-82388012.js → index-97c5e513.js} +22 -21
- package/build/{index-6396e69f.js → index-b3e26fa8.js} +1 -1
- package/build/{index-bcc7ea1d.js → index-b9348629.js} +1 -1
- package/build/{index-344bc0a4.js → index-bf98fdfb.js} +1 -1
- package/build/{index-3c0a5a28.js → index-cbcb0d60.js} +1 -1
- package/build/{index-6b79b6c4.js → index-cc65004c.js} +1 -1
- package/package.json +2 -2
package/build/booking.js
CHANGED
package/build/booking.umd.cjs
CHANGED
|
@@ -310,7 +310,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
310
310
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
311
311
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
312
312
|
PERFORMANCE OF THIS SOFTWARE.
|
|
313
|
-
***************************************************************************** */var pn=function(){return pn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pn.apply(this,arguments)};function vI(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}var yI=le.lazy(function(){return Promise.resolve().then(()=>wQ)}),bI=le.lazy(function(){return Promise.resolve().then(()=>Zfe)});le.lazy(function(){return Promise.resolve().then(()=>kK)});var ql=le.lazy(function(){return Promise.resolve().then(()=>_Z)}),zbe=le.lazy(function(){return Promise.resolve().then(()=>nhe)}),Bbe=le.lazy(function(){return Promise.resolve().then(()=>lhe)}),wI=le.lazy(function(){return Promise.resolve().then(()=>fhe)}),Hbe=le.lazy(function(){return Promise.resolve().then(()=>$he)}),Ube=le.lazy(function(){return Promise.resolve().then(()=>_he)}),jbe=le.lazy(function(){return Promise.resolve().then(()=>Ihe)}),Wbe=le.lazy(function(){return Promise.resolve().then(function(){return Ybe})}),Vbe=le.lazy(function(){return Promise.resolve().then(function(){return Qbe})}),Gbe=le.lazy(function(){return Promise.resolve().then(function(){return Xbe})}),xI=function(e){var t=e.disableTableContainer,n=t!==void 0&&t,r=e.blockquoteBorderColor,i=e.inlineCodeBgColor,o=i===void 0?"rgba(126, 126, 126, 0.1)":i,a=e.inlineCodeColor,s=a===void 0?"currentcolor":a,l=e.codeBlockTheme;return{a:{component:bI},blockquote:{component:Wbe,props:{borderColor:r}},button:{component:yI},Button:{component:yI},code:{component:"code",props:{style:{backgroundColor:o,borderRadius:"4px",color:s,margin:"0 0.2rem",padding:"0.5rem 0.5rem"}}},h1:{component:ql,props:{variant:"h1",gutterBottom:!0}},h2:{component:ql,props:{variant:"h2",gutterBottom:!0}},h3:{component:ql,props:{variant:"h3",gutterBottom:!0}},h4:{component:ql,props:{variant:"h4",gutterBottom:!0}},h5:{component:ql,props:{variant:"h5",gutterBottom:!0}},h6:{component:ql,props:{variant:"h6",gutterBottom:!0}},li:{component:"li"},Link:{component:bI},ol:{component:"ol"},p:{component:ql,props:{variant:"body1",gutterBottom:!0}},pre:{component:Vbe,props:{theme:l}},table:{component:n?zbe:Gbe},tbody:{component:Bbe},td:{component:wI},tfoot:{component:Hbe},thead:{component:Ube},th:{component:wI},tr:{component:jbe},ul:{component:"ul"}}},Uc=function(e){return _(R.Suspense,pn({fallback:_("div",{children:"..."},void 0)},{children:function(t){var n=t.children,r=t.key,i=t.options,o=t.overrides,a=t.disableTableContainer,s=t.blockquoteBorderColor,l=t.inlineCodeBgColor,c=t.inlineCodeColor,d=t.codeBlockTheme,h=xI({disableTableContainer:a,blockquoteBorderColor:s,inlineCodeBgColor:l,inlineCodeColor:c,codeBlockTheme:d}),g=n||"";if(i){var p=i.overrides,m=vI(i,["overrides"]);return _(pI,p?pn({options:pn({overrides:pn(pn({},h),p)},m)},{children:g}):pn({options:pn({overrides:pn({},h)},m)},{children:g}),r&&r)}return _(pI,pn(o?{options:{overrides:pn(pn({},h),o)}}:{options:{overrides:pn({},h)}},{children:g}),r&&r)}(e)}),void 0)};xI({});var Ybe=Object.freeze({__proto__:null,default:function(e){var t=e.children,n=e.borderColor,r=cs().palette,i=r.background,o=r.info,a=function(l){var c=l;(c=c.replaceAll("#","")).length===3&&(c=c.split("").map(function(h){return h+h}).join(""));var d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(c);return d?{r:parseInt(d[1],16),g:parseInt(d[2],16),b:parseInt(d[3],16)}:null}(i.paper),s=a?"rgba(".concat(a.r,", ").concat(a.g,", ").concat(a.b,", 0.5)"):i.paper;return _(Pl,pn({sx:{padding:"1rem",backgroundColor:s,borderLeft:"4px solid ".concat(n||o.main)}},{children:t}),void 0)}}),qbe=fe(ki,{name:"PreContainer"})(function(e){return{borderRadius:e.theme.shape.borderRadius,padding:"1rem"}}),Zbe=fe("pre")({overflowX:"auto"}),Kbe=function(e){var t=e.code,n=t===void 0?"const sayHello = (name:string) => console.log(`Hello${name}`);":t,r=e.language,i=r===void 0?"tsx":r,o=e.theme;return _(Fbe,pn({},Ibe,{theme:o===void 0?Dbe:o,code:n,language:i},{children:function(a){var s=a.className,l=a.style,c=a.tokens,d=a.getLineProps,h=a.getTokenProps;return _(qbe,pn({className:s,style:l},{children:_(Zbe,{children:c.map(function(g,p){return _("div",pn({},d({line:g,key:p}),{children:g.map(function(m,v){return _("span",pn({},h({token:m,key:v})),v)})}),p)})},void 0)}),void 0)}}),void 0)},Qbe=Object.freeze({__proto__:null,default:function(e){var t=e.children,n=e.theme;if(t&&t.type&&t.type==="code"){var r=t.props.className?t.props.className.replace("lang-",""):"tsx";return _(Kbe,{code:t.props.children,language:r,theme:n&&n},void 0)}return _(ki,pn({component:"pre",sx:{whiteSpace:"pre-wrap"}},{children:t}),void 0)}}),Xbe=Object.freeze({__proto__:null,default:function(e){var t=e.children,n=vI(e,["children"]);return _(vhe,pn({component:Pl},{children:_(bx,pn({},n,{children:t}),void 0)}),void 0)}});function Jbe({name:e,children:t,namespace:n,rhfProps:r,disableEmptyErrorText:i}){const o=c=>n?`${n}.${c}`:c;if(le.Children.toArray(t).length>1)throw"RHFTextfield may only have a single child component";const s=c=>c?c.message:i?void 0:" ",l={name:o(e),render:({field:c,fieldState:d})=>{const h=d==null?void 0:d.error;return c.value=c.value??"",t(!!h,s(h),c)}};return r!=null&&r.control&&(l.control=r.control),_(HQ,{...l})}const DS=e=>{const t={};for(const[n,r]of Object.entries(e))r.type==="phoneNumber"?t[n]=Es().test({name:`${n}-required-test`,test:i=>!(r.isRequired&&!i),message:"Notwendig"}).test({name:`${n}-number-test`,test:i=>i?$ye(i,"DE"):!0,message:"Nummer is nicht valide"}):t[n]=r.validation;return t},IS=e=>{const t={};for(const[n,r]of Object.entries(e))t[n]=r.prefilled;return t};function m1({fields:e,containerProps:t={},textFieldProps:n={},telFieldProps:r={},selectFieldProps:i={},textAreaProps:o={},disableEmptyErrorText:a,rhfProps:s}){const{t:l}=xr();return _(nt,{container:!0,item:!0,sx:{maxHeight:"250px",overflowY:"auto",overflowX:"hidden",width:"100%"},...t,children:Object.entries(e).map(([c,d])=>_(nt,{item:!0,xs:12,my:1,sx:{display:d.preventRendering?"none":"flex"},children:_(Jbe,{name:c,rhfProps:s,disableEmptyErrorText:a,children:(h,g,p)=>{if(!d.type||d.type==="text")return _(fp,{fullWidth:!0,size:"small",label:Ln.isString(d.title)?_(Uc,{children:l(d.title)}):d.title,type:d.format,error:h,helperText:l(g),...p,...n});if(d.type==="phoneNumber")return _(Tye,{fullWidth:!0,size:"small",label:Ln.isString(d.title)?_(Uc,{children:l(d.title)}):d.title,error:h,forceCallingCode:!0,defaultCountry:"DE",preferredCountries:["DE","CH","AT"],helperText:l(g)||g,...p,...r});if(d.type==="checkbox")return be(i_,{component:"fieldset",variant:"standard",error:h,children:[_(ffe,{children:_(sfe,{control:_(cde,{...p}),label:Ln.isString(d.title)?_(Uc,{children:l(d.title)}):d.title})}),_(s_,{children:l(g)||g})]});if(d.type==="textarea"){const m=()=>{var x;let v="";return g&&(v=l(g)||g),d.limit&&(v+=` ${((x=p==null?void 0:p.value)==null?void 0:x.length)??0}/${d.limit}`),v};return _(fp,{fullWidth:!0,multiline:!0,size:"small",label:Ln.isString(d.title)?_(Uc,{children:l(d.title)}):d.title,type:d.format,error:h,helperText:m(),inputProps:{maxLength:d.limit??99999},...p,...o})}if(d.type==="select"&&d.options)return _(fp,{fullWidth:!0,select:!0,size:"small",label:Ln.isString(d.title)?_(Uc,{children:l(d.title)}):d.title,type:d.format,error:h,helperText:l(g)||g,...p,...i,children:d.options.map(m=>_(C_,{value:m.key,children:l(m.title)},m.key))})}})},c))})}m1.propTypes={fields:Re.object.isRequired,textFieldProps:Re.object,telFieldProps:Re.object,selectFieldProps:Re.object,textAreaProps:Re.object};function SI({timeslot:e,productName:t,productMinDuration:n,resourceName:r,placeholderId:i,onBookingSuccessfull:o,onBookingFailed:a,bookingProcess:s}){const{t:l}=xr(),c=Ge(T=>et(T,"ref")),d=Ge(T=>et(T,"sendCustomValuesInMessage")),h=Ge(T=>et(T,"channelKey")),g=Ge(Q3),p=Ge(T=>et(T,"fields")),m=Ge(T=>et(T,"callbacks.createBookingStarted")),v=Ge(T=>et(T,"callbacks.createBookingSuccessful")),x=Ge(T=>et(T,"callbacks.createBookingFailed")),w=Ge(T=>et(T,"auth2")),b=ww({defaultValues:IS(p),resolver:ix(ip().shape(DS(p)))});console.debug(b.formState.errors);const[S,{isLoading:$}]=Rk(),E=async T=>{console.table(T),m&&m({timeslot:e,data:{...T}});let k=T.message;if(d){k="";for(const I of Object.keys(p))I!=="firstName"&&I!=="lastName"&&I!=="email"&&I!=="mobile"&&I!=="agbs"&&T[I]&&(k+=T[I]+", ");k=k.slice(0,-3)}const A=await S({channelOrResourceId:c,body:{start:e.start.toISO({suppressMilliseconds:!0}),end:e.end.toISO({suppressMilliseconds:!0}),product_uuid:g.uuid,timeslot_uuid:e.uuid,placeholder_id:i,email:T.email,firstname:T.firstName,lastname:T.lastName,locale:T.locale,mobile:T.mobile,message:k,channelId:h},headers:w?{auth2:w}:void 0});A.error?(console.log("Caught error while creating booking:"+A.error),x&&x({timeslot:e,response:A,data:{...T}}),a&&a({timeslot:e,response:A,data:{...T}})):(v&&v({timeslot:e,response:A,data:{...T}}),o&&o({timeslot:e,response:A,data:{...T}}))};return _("form",{onSubmit:b.handleSubmit(E),children:be(nt,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",spacing:1,pt:1,children:[_(i1,{start:e==null?void 0:e.start,end:e==null?void 0:e.end,productName:t,productMinDuration:n,resourceName:r}),_(m1,{fields:p,containerProps:{spacing:0,sx:{maxHeight:"calc(100vh - 180px)",overflowY:"auto",overflowX:"hidden",width:"100%"}},disableEmptyErrorText:!0,rhfProps:{control:b.control}}),_(nt,{item:!0,children:_(om,{variant:"contained",color:"primary",type:"submit",loading:$,children:s.toLowerCase()==="immediate"?l("submit_button_book"):l("submit_button_request")})})]})})}SI.propTypes={onProductSelected:Re.func};function $I({timeslot:e,productName:t,productMinDuration:n,resourceName:r,placeholderId:i,onBookingSuccessfull:o,onBookingFailed:a,bookingProcess:s,customerData:l}){const{t:c}=xr(),d=Ge(A=>et(A,"ref")),h=Ge(A=>et(A,"channelKey")),g=Ge(Q3),p=Ge(A=>et(A,"pData")),m=Ge(A=>et(A,"sendCustomValuesInMessage")),v=()=>{var A,I,D,L,B;return!!((A=l==null?void 0:l.missingFields)!=null&&A.firstName||(I=l==null?void 0:l.missingFields)!=null&&I.lastName||(D=l==null?void 0:l.missingFields)!=null&&D.email||(L=l==null?void 0:l.missingFields)!=null&&L.mobile||(B=l==null?void 0:l.missingFields)!=null&&B.agbs)},x=Ge(A=>{var L,B,U,j,G;const I=et(A,"fields"),D={};for(const K of Object.keys(I))(K!=="firstName"||(L=l==null?void 0:l.missingFields)!=null&&L.firstName)&&(K!=="lastName"||(B=l==null?void 0:l.missingFields)!=null&&B.lastName)&&(K!=="email"||(U=l==null?void 0:l.missingFields)!=null&&U.email)&&(K!=="mobile"||(j=l==null?void 0:l.missingFields)!=null&&j.mobile)&&(K!=="agbs"||(G=l==null?void 0:l.missingFields)!=null&&G.agbs)&&(D[K]=I[K]);return D}),w=Ge(A=>et(A,"createBookingStarted")),b=Ge(A=>et(A,"createBookingSuccessful")),S=Ge(A=>et(A,"createBookingFailed")),$=ww({defaultValues:IS(x),resolver:ix(ip().shape(DS(x)))}),[E,{isLoading:T}]=Rk(),k=async A=>{w&&w({timeslot:e,...p});let I=A.message;if(m){I="";for(const L of Object.keys(x))L!=="firstName"&&L!=="lastName"&&L!=="email"&&L!=="mobile"&&L!=="agbs"&&(I+=A[L]+", ");I=I.slice(0,-3)}const D=await E({channelOrResourceId:d,shouldInvalidateCustomerIdentification:v(),body:{start:e.start.toISO({suppressMilliseconds:!0}),end:e.end.toISO({suppressMilliseconds:!0}),product_uuid:g.uuid,timeslot_uuid:e.uuid,customer_id:p?p.personId+"@"+p.platform:void 0,placeholder_id:i,channelId:h,...A},params:{message:I}});D.error?(S&&S({timeslot:e,resonse:D,data:{...A},pData:{...p}}),a&&a({timeslot:e,resonse:D,data:{...A},pData:{...p}})):(b&&b({timeslot:e,response:D,data:{...A},pData:{...p}}),o&&o({timeslot:e,response:D,data:{...A},pData:{...p}}))};return _("form",{onSubmit:$.handleSubmit(k),children:be(nt,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",mt:2,mx:"auto",children:[_(i1,{start:e==null?void 0:e.start,end:e==null?void 0:e.end,productMinDuration:n,productName:t,resourceName:r}),_(nt,{item:!0,borderBottom:"1px solid #ddd",width:"100%",alignSelf:"center",mt:2,mb:2}),((l==null?void 0:l.name)||(l==null?void 0:l.email))&&_(nt,{item:!0,xs:12,sm:8,children:_(bx,{size:"small",children:be(B_,{children:[be(xx,{sx:{border:"none"},children:[_(dp,{sx:{border:"none",pl:0},children:c("fields.name")}),_(dp,{sx:{border:"none"},children:`*** ${l.name}***`})]}),be(xx,{children:[_(dp,{sx:{border:"none",pl:0},children:c("fields.email")}),_(dp,{sx:{border:"none"},children:l.email})]})]})})}),_(nt,{mt:2,children:_(Ye,{paragraph:!0,variant:"body1",children:c("identified_customer_hint")})}),_(nt,{item:!0,xs:12,sm:9,children:_(m1,{fields:x,containerProps:{spacing:0,sx:{maxHeight:"calc(100vh - 180px)",overflowY:"auto",overflowX:"hidden",width:"100%"}},disableEmptyErrorText:!0,rhfProps:{control:$.control}})}),_(nt,{item:!0,children:_(om,{variant:"contained",color:"primary",type:"submit",loading:T,children:(s==null?void 0:s.toLowerCase())==="immediate"?c("submit_button_book"):c("submit_button_request")})})]})})}$I.propTypes={timeslot:Re.object,productName:Re.string,resourceName:Re.string,placeholderId:Re.string,onBookingSuccessfull:Re.func,onBookingFailed:Re.func,bookingProcess:Re.string,confirmationComponent:Re.func};function CI({visible:e,backdropSx:t,circleSx:n,size:r,children:i}){return be(ki,{sx:{position:"relative"},children:[_(lx,{sx:{height:"100%",width:"100%",position:"absolute",pointerEvents:e?"all":"none",backgroundColor:"#ffffffc5",zIndex:o=>o.zIndex.drawer+1,...t},open:e,children:_(O6,{color:"secondary",size:r,sx:{zIndex:o=>o.zIndex.drawer+2,...n}})}),i]})}CI.propTypes={visible:Re.bool.isRequired,color:Re.string,area:Re.string};function EI(){return _(ki,{sx:{mt:"8px",height:"20px",width:"100%",zIndex:e=>e.zIndex.drawer+1},children:_(nt,{container:!0,justifyContent:"flex-end",sx:{height:"inherit"},children:_(nt,{item:!0,children:be(hx,{color:"text.secondary",variant:"caption",underline:"none",href:`http://timum.de?utm_medium=link&utm_source=${window.location.hostname.replace(/\./g,"-")}&utm_campaign=bookingjs2&utm_content=powered-by`,sx:{pr:1,fontSize:"10px",lineHeight:"20px",position:"static!important",display:"block!important",visibility:"visible!important",opacity:"1.0!important"},children:["powered by"," ",_(ki,{fontWeight:900,display:"inline",children:"timum"})]})})})})}EI.propTypes={};var MS={},e2e=zn;Object.defineProperty(MS,"__esModule",{value:!0});var TI=MS.default=void 0,t2e=e2e(dr()),n2e=fr,r2e=(0,t2e.default)((0,n2e.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Event");TI=MS.default=r2e;var NS={},i2e=zn;Object.defineProperty(NS,"__esModule",{value:!0});var kI=NS.default=void 0,o2e=i2e(dr()),a2e=fr,s2e=(0,o2e.default)((0,a2e.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"}),"Phonelink");kI=NS.default=s2e;var PS={},l2e=zn;Object.defineProperty(PS,"__esModule",{value:!0});var AI=PS.default=void 0,u2e=l2e(dr()),c2e=fr,d2e=(0,u2e.default)((0,c2e.jsx)("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"}),"Forum");AI=PS.default=d2e;var LS={},f2e=zn;Object.defineProperty(LS,"__esModule",{value:!0});var _I=LS.default=void 0,p2e=f2e(dr()),h2e=fr,g2e=(0,p2e.default)((0,h2e.jsx)("path",{d:"M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"}),"PhoneAndroid");_I=LS.default=g2e;var FS={},m2e=zn;Object.defineProperty(FS,"__esModule",{value:!0});var RI=FS.default=void 0,v2e=m2e(dr()),y2e=fr,b2e=(0,v2e.default)((0,y2e.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z"}),"Adjust");RI=FS.default=b2e;var zS={},w2e=zn;Object.defineProperty(zS,"__esModule",{value:!0});var OI=zS.default=void 0,x2e=w2e(dr()),S2e=fr,$2e=(0,x2e.default)((0,S2e.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),"Place");OI=zS.default=$2e;var BS={},C2e=zn;Object.defineProperty(BS,"__esModule",{value:!0});var DI=BS.default=void 0,E2e=C2e(dr()),T2e=fr,k2e=(0,E2e.default)((0,T2e.jsx)("path",{d:"M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"}),"HeadsetMic");DI=BS.default=k2e;var HS={},A2e=zn;Object.defineProperty(HS,"__esModule",{value:!0});var II=HS.default=void 0,_2e=A2e(dr()),R2e=fr,O2e=(0,_2e.default)((0,R2e.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");II=HS.default=O2e;var D2e=["color","size","title"];function US(){return US=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},US.apply(this,arguments)}function I2e(e,t){if(e==null)return{};var n=M2e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function M2e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var jS=R.forwardRef(function(e,t){var n=e.color,r=e.size,i=e.title,o=I2e(e,D2e);return le.createElement("svg",US({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n},o),i?le.createElement("title",null,i):null,le.createElement("path",{d:"M8 7a.5.5 0 0 1 .5.5V9H10a.5.5 0 0 1 0 1H8.5v1.5a.5.5 0 0 1-1 0V10H6a.5.5 0 0 1 0-1h1.5V7.5A.5.5 0 0 1 8 7z"}),le.createElement("path",{d:"M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"}))});jS.propTypes={color:Re.string,size:Re.oneOfType([Re.string,Re.number]),title:Re.string},jS.defaultProps={color:"currentColor",size:"1em",title:null};const N2e=jS;/*!
|
|
313
|
+
***************************************************************************** */var pn=function(){return pn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pn.apply(this,arguments)};function vI(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}var yI=le.lazy(function(){return Promise.resolve().then(()=>wQ)}),bI=le.lazy(function(){return Promise.resolve().then(()=>Zfe)});le.lazy(function(){return Promise.resolve().then(()=>kK)});var ql=le.lazy(function(){return Promise.resolve().then(()=>_Z)}),zbe=le.lazy(function(){return Promise.resolve().then(()=>nhe)}),Bbe=le.lazy(function(){return Promise.resolve().then(()=>lhe)}),wI=le.lazy(function(){return Promise.resolve().then(()=>fhe)}),Hbe=le.lazy(function(){return Promise.resolve().then(()=>$he)}),Ube=le.lazy(function(){return Promise.resolve().then(()=>_he)}),jbe=le.lazy(function(){return Promise.resolve().then(()=>Ihe)}),Wbe=le.lazy(function(){return Promise.resolve().then(function(){return Ybe})}),Vbe=le.lazy(function(){return Promise.resolve().then(function(){return Qbe})}),Gbe=le.lazy(function(){return Promise.resolve().then(function(){return Xbe})}),xI=function(e){var t=e.disableTableContainer,n=t!==void 0&&t,r=e.blockquoteBorderColor,i=e.inlineCodeBgColor,o=i===void 0?"rgba(126, 126, 126, 0.1)":i,a=e.inlineCodeColor,s=a===void 0?"currentcolor":a,l=e.codeBlockTheme;return{a:{component:bI},blockquote:{component:Wbe,props:{borderColor:r}},button:{component:yI},Button:{component:yI},code:{component:"code",props:{style:{backgroundColor:o,borderRadius:"4px",color:s,margin:"0 0.2rem",padding:"0.5rem 0.5rem"}}},h1:{component:ql,props:{variant:"h1",gutterBottom:!0}},h2:{component:ql,props:{variant:"h2",gutterBottom:!0}},h3:{component:ql,props:{variant:"h3",gutterBottom:!0}},h4:{component:ql,props:{variant:"h4",gutterBottom:!0}},h5:{component:ql,props:{variant:"h5",gutterBottom:!0}},h6:{component:ql,props:{variant:"h6",gutterBottom:!0}},li:{component:"li"},Link:{component:bI},ol:{component:"ol"},p:{component:ql,props:{variant:"body1",gutterBottom:!0}},pre:{component:Vbe,props:{theme:l}},table:{component:n?zbe:Gbe},tbody:{component:Bbe},td:{component:wI},tfoot:{component:Hbe},thead:{component:Ube},th:{component:wI},tr:{component:jbe},ul:{component:"ul"}}},Uc=function(e){return _(R.Suspense,pn({fallback:_("div",{children:"..."},void 0)},{children:function(t){var n=t.children,r=t.key,i=t.options,o=t.overrides,a=t.disableTableContainer,s=t.blockquoteBorderColor,l=t.inlineCodeBgColor,c=t.inlineCodeColor,d=t.codeBlockTheme,h=xI({disableTableContainer:a,blockquoteBorderColor:s,inlineCodeBgColor:l,inlineCodeColor:c,codeBlockTheme:d}),g=n||"";if(i){var p=i.overrides,m=vI(i,["overrides"]);return _(pI,p?pn({options:pn({overrides:pn(pn({},h),p)},m)},{children:g}):pn({options:pn({overrides:pn({},h)},m)},{children:g}),r&&r)}return _(pI,pn(o?{options:{overrides:pn(pn({},h),o)}}:{options:{overrides:pn({},h)}},{children:g}),r&&r)}(e)}),void 0)};xI({});var Ybe=Object.freeze({__proto__:null,default:function(e){var t=e.children,n=e.borderColor,r=cs().palette,i=r.background,o=r.info,a=function(l){var c=l;(c=c.replaceAll("#","")).length===3&&(c=c.split("").map(function(h){return h+h}).join(""));var d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(c);return d?{r:parseInt(d[1],16),g:parseInt(d[2],16),b:parseInt(d[3],16)}:null}(i.paper),s=a?"rgba(".concat(a.r,", ").concat(a.g,", ").concat(a.b,", 0.5)"):i.paper;return _(Pl,pn({sx:{padding:"1rem",backgroundColor:s,borderLeft:"4px solid ".concat(n||o.main)}},{children:t}),void 0)}}),qbe=fe(ki,{name:"PreContainer"})(function(e){return{borderRadius:e.theme.shape.borderRadius,padding:"1rem"}}),Zbe=fe("pre")({overflowX:"auto"}),Kbe=function(e){var t=e.code,n=t===void 0?"const sayHello = (name:string) => console.log(`Hello${name}`);":t,r=e.language,i=r===void 0?"tsx":r,o=e.theme;return _(Fbe,pn({},Ibe,{theme:o===void 0?Dbe:o,code:n,language:i},{children:function(a){var s=a.className,l=a.style,c=a.tokens,d=a.getLineProps,h=a.getTokenProps;return _(qbe,pn({className:s,style:l},{children:_(Zbe,{children:c.map(function(g,p){return _("div",pn({},d({line:g,key:p}),{children:g.map(function(m,v){return _("span",pn({},h({token:m,key:v})),v)})}),p)})},void 0)}),void 0)}}),void 0)},Qbe=Object.freeze({__proto__:null,default:function(e){var t=e.children,n=e.theme;if(t&&t.type&&t.type==="code"){var r=t.props.className?t.props.className.replace("lang-",""):"tsx";return _(Kbe,{code:t.props.children,language:r,theme:n&&n},void 0)}return _(ki,pn({component:"pre",sx:{whiteSpace:"pre-wrap"}},{children:t}),void 0)}}),Xbe=Object.freeze({__proto__:null,default:function(e){var t=e.children,n=vI(e,["children"]);return _(vhe,pn({component:Pl},{children:_(bx,pn({},n,{children:t}),void 0)}),void 0)}});function Jbe({name:e,children:t,namespace:n,rhfProps:r,disableEmptyErrorText:i}){const o=c=>n?`${n}.${c}`:c;if(le.Children.toArray(t).length>1)throw"RHFTextfield may only have a single child component";const s=c=>c?c.message:i?void 0:" ",l={name:o(e),render:({field:c,fieldState:d})=>{const h=d==null?void 0:d.error;return c.value=c.value??"",t(!!h,s(h),c)}};return r!=null&&r.control&&(l.control=r.control),_(HQ,{...l})}const DS=e=>{const t={};for(const[n,r]of Object.entries(e))r.type==="phoneNumber"?t[n]=Es().test({name:`${n}-required-test`,test:i=>!(r.isRequired&&!i),message:"Notwendig"}).test({name:`${n}-number-test`,test:i=>i?$ye(i,"DE"):!0,message:"Nummer is nicht valide"}):t[n]=r.validation;return t},IS=e=>{const t={};for(const[n,r]of Object.entries(e))t[n]=r.prefilled;return t};function m1({fields:e,containerProps:t={},textFieldProps:n={},telFieldProps:r={},selectFieldProps:i={},textAreaProps:o={},disableEmptyErrorText:a,rhfProps:s}){const{t:l}=xr();return _(nt,{container:!0,item:!0,sx:{maxHeight:"250px",overflowY:"auto",overflowX:"hidden",width:"100%"},...t,children:Object.entries(e).map(([c,d])=>_(nt,{item:!0,xs:12,my:1,sx:{display:d.preventRendering?"none":"flex"},children:_(Jbe,{name:c,rhfProps:s,disableEmptyErrorText:a,children:(h,g,p)=>{if(!d.type||d.type==="text")return _(fp,{fullWidth:!0,size:"small",label:Ln.isString(d.title)?_(Uc,{children:l(d.title)}):d.title,type:d.format,error:h,helperText:l(g),...p,...n});if(d.type==="phoneNumber")return _(Tye,{fullWidth:!0,size:"small",label:Ln.isString(d.title)?_(Uc,{children:l(d.title)}):d.title,error:h,forceCallingCode:!0,defaultCountry:"DE",preferredCountries:["DE","CH","AT"],helperText:l(g)||g,...p,...r});if(d.type==="checkbox")return be(i_,{component:"fieldset",variant:"standard",error:h,children:[_(ffe,{children:_(sfe,{control:_(cde,{...p}),label:Ln.isString(d.title)?_(Uc,{children:l(d.title)}):d.title})}),_(s_,{children:l(g)||g})]});if(d.type==="textarea"){const m=()=>{var x;let v="";return g&&(v=l(g)||g),d.limit&&(v+=` ${((x=p==null?void 0:p.value)==null?void 0:x.length)??0}/${d.limit}`),v};return _(fp,{fullWidth:!0,multiline:!0,size:"small",label:Ln.isString(d.title)?_(Uc,{children:l(d.title)}):d.title,type:d.format,error:h,helperText:m(),inputProps:{maxLength:d.limit??99999},...p,...o})}if(d.type==="select"&&d.options)return _(fp,{fullWidth:!0,select:!0,size:"small",label:Ln.isString(d.title)?_(Uc,{children:l(d.title)}):d.title,type:d.format,error:h,helperText:l(g)||g,...p,...i,children:d.options.map(m=>_(C_,{value:m.key,children:l(m.title)},m.key))})}})},c))})}m1.propTypes={fields:Re.object.isRequired,textFieldProps:Re.object,telFieldProps:Re.object,selectFieldProps:Re.object,textAreaProps:Re.object};function SI({timeslot:e,productName:t,productMinDuration:n,resourceName:r,placeholderId:i,onBookingSuccessfull:o,onBookingFailed:a,bookingProcess:s}){const{t:l}=xr(),c=Ge(T=>et(T,"ref")),d=Ge(T=>et(T,"sendCustomValuesInMessage")),h=Ge(T=>et(T,"channelKey")),g=Ge(Q3),p=Ge(T=>et(T,"fields")),m=Ge(T=>et(T,"callbacks.createBookingStarted")),v=Ge(T=>et(T,"callbacks.createBookingSuccessful")),x=Ge(T=>et(T,"callbacks.createBookingFailed")),w=Ge(T=>et(T,"auth2")),b=ww({defaultValues:IS(p),resolver:ix(ip().shape(DS(p)))});console.debug(b.formState.errors);const[S,{isLoading:$}]=Rk(),E=async T=>{console.table(T),m&&m({timeslot:e,data:{...T}});let k=T.message;if(d){k="";for(const I of Object.keys(p))I!=="firstName"&&I!=="lastName"&&I!=="email"&&I!=="mobile"&&I!=="agbs"&&T[I]&&(k+=T[I]+", ");k=k.slice(0,-3)}const A=await S({channelOrResourceId:c,body:{start:e.start.toISO({suppressMilliseconds:!0}),end:e.end.toISO({suppressMilliseconds:!0}),product_uuid:g.uuid,timeslot_uuid:e.uuid,placeholder_id:i,email:T.email,firstname:T.firstName,lastname:T.lastName,locale:T.locale,mobile:T.mobile,message:k,channelId:h},headers:w?{auth2:w}:void 0});A.error?(console.log("Caught error while creating booking:"+A.error),x&&x({timeslot:e,response:A,data:{...T}}),a&&a({timeslot:e,response:A,data:{...T}})):(v&&v({timeslot:e,response:A,data:{...T}}),o&&o({timeslot:e,response:A,data:{...T}}))};return _("form",{onSubmit:b.handleSubmit(E),children:be(nt,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",spacing:1,pt:1,children:[_(i1,{start:e==null?void 0:e.start,end:e==null?void 0:e.end,productName:t,productMinDuration:n,resourceName:r}),_(m1,{fields:p,containerProps:{spacing:0,sx:{maxHeight:"calc(100vh - 180px)",overflowY:"auto",overflowX:"hidden",width:"100%"}},disableEmptyErrorText:!0,rhfProps:{control:b.control}}),_(nt,{item:!0,children:_(om,{variant:"contained",color:"primary",type:"submit",loading:$,children:s.toLowerCase()==="immediate"?l("submit_button_book"):l("submit_button_request")})})]})})}SI.propTypes={onProductSelected:Re.func};function $I({timeslot:e,productName:t,productMinDuration:n,resourceName:r,placeholderId:i,onBookingSuccessfull:o,onBookingFailed:a,bookingProcess:s,customerData:l}){const{t:c}=xr(),d=Ge(A=>et(A,"ref")),h=Ge(A=>et(A,"channelKey")),g=Ge(Q3),p=Ge(A=>et(A,"pData")),m=Ge(A=>et(A,"sendCustomValuesInMessage")),v=()=>{var A,I,D,L,B;return!!((A=l==null?void 0:l.missingFields)!=null&&A.firstName||(I=l==null?void 0:l.missingFields)!=null&&I.lastName||(D=l==null?void 0:l.missingFields)!=null&&D.email||(L=l==null?void 0:l.missingFields)!=null&&L.mobile||(B=l==null?void 0:l.missingFields)!=null&&B.agbs)},x=Ge(A=>{var L,B,U,j,G;const I=et(A,"fields"),D={};for(const K of Object.keys(I))(K!=="firstName"||(L=l==null?void 0:l.missingFields)!=null&&L.firstName)&&(K!=="lastName"||(B=l==null?void 0:l.missingFields)!=null&&B.lastName)&&(K!=="email"||(U=l==null?void 0:l.missingFields)!=null&&U.email)&&(K!=="mobile"||(j=l==null?void 0:l.missingFields)!=null&&j.mobile)&&(K!=="agbs"||(G=l==null?void 0:l.missingFields)!=null&&G.agbs)&&(D[K]=I[K]);return D}),w=Ge(A=>et(A,"createBookingStarted")),b=Ge(A=>et(A,"createBookingSuccessful")),S=Ge(A=>et(A,"createBookingFailed")),$=ww({defaultValues:IS(x),resolver:ix(ip().shape(DS(x)))}),[E,{isLoading:T}]=Rk(),k=async A=>{w&&w({timeslot:e,...p});let I=A.message;if(m){I="";for(const B of Object.keys(x))B!=="firstName"&&B!=="lastName"&&B!=="email"&&B!=="mobile"&&B!=="agbs"&&A[B]&&(I+=A[B]+", ");I=I.slice(0,-3)}const D={channelOrResourceId:d,shouldInvalidateCustomerIdentification:v(),body:{start:e.start.toISO({suppressMilliseconds:!0}),end:e.end.toISO({suppressMilliseconds:!0}),product_uuid:g.uuid,timeslot_uuid:e.uuid,customer_id:p?p.personId+"@"+p.platform:void 0,placeholder_id:i,channelId:h,...A}};I&&(D.params={message:I});const L=await E(D);L.error?(S&&S({timeslot:e,resonse:L,data:{...A},pData:{...p}}),a&&a({timeslot:e,resonse:L,data:{...A},pData:{...p}})):(b&&b({timeslot:e,response:L,data:{...A},pData:{...p}}),o&&o({timeslot:e,response:L,data:{...A},pData:{...p}}))};return _("form",{onSubmit:$.handleSubmit(k),children:be(nt,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",mt:2,mx:"auto",children:[_(i1,{start:e==null?void 0:e.start,end:e==null?void 0:e.end,productMinDuration:n,productName:t,resourceName:r}),_(nt,{item:!0,borderBottom:"1px solid #ddd",width:"100%",alignSelf:"center",mt:2,mb:2}),((l==null?void 0:l.name)||(l==null?void 0:l.email))&&_(nt,{item:!0,xs:12,sm:8,children:_(bx,{size:"small",children:be(B_,{children:[be(xx,{sx:{border:"none"},children:[_(dp,{sx:{border:"none",pl:0},children:c("fields.name")}),_(dp,{sx:{border:"none"},children:`*** ${l.name}***`})]}),be(xx,{children:[_(dp,{sx:{border:"none",pl:0},children:c("fields.email")}),_(dp,{sx:{border:"none"},children:l.email})]})]})})}),_(nt,{mt:2,children:_(Ye,{paragraph:!0,variant:"body1",children:c("identified_customer_hint")})}),_(nt,{item:!0,xs:12,sm:9,children:_(m1,{fields:x,containerProps:{spacing:0,sx:{maxHeight:"calc(100vh - 180px)",overflowY:"auto",overflowX:"hidden",width:"100%"}},disableEmptyErrorText:!0,rhfProps:{control:$.control}})}),_(nt,{item:!0,children:_(om,{variant:"contained",color:"primary",type:"submit",loading:T,children:(s==null?void 0:s.toLowerCase())==="immediate"?c("submit_button_book"):c("submit_button_request")})})]})})}$I.propTypes={timeslot:Re.object,productName:Re.string,resourceName:Re.string,placeholderId:Re.string,onBookingSuccessfull:Re.func,onBookingFailed:Re.func,bookingProcess:Re.string,confirmationComponent:Re.func};function CI({visible:e,backdropSx:t,circleSx:n,size:r,children:i}){return be(ki,{sx:{position:"relative"},children:[_(lx,{sx:{height:"100%",width:"100%",position:"absolute",pointerEvents:e?"all":"none",backgroundColor:"#ffffffc5",zIndex:o=>o.zIndex.drawer+1,...t},open:e,children:_(O6,{color:"secondary",size:r,sx:{zIndex:o=>o.zIndex.drawer+2,...n}})}),i]})}CI.propTypes={visible:Re.bool.isRequired,color:Re.string,area:Re.string};function EI(){return _(ki,{sx:{mt:"8px",height:"20px",width:"100%",zIndex:e=>e.zIndex.drawer+1},children:_(nt,{container:!0,justifyContent:"flex-end",sx:{height:"inherit"},children:_(nt,{item:!0,children:be(hx,{color:"text.secondary",variant:"caption",underline:"none",href:`http://timum.de?utm_medium=link&utm_source=${window.location.hostname.replace(/\./g,"-")}&utm_campaign=bookingjs2&utm_content=powered-by`,sx:{pr:1,fontSize:"10px",lineHeight:"20px",position:"static!important",display:"block!important",visibility:"visible!important",opacity:"1.0!important"},children:["powered by"," ",_(ki,{fontWeight:900,display:"inline",children:"timum"})]})})})})}EI.propTypes={};var MS={},e2e=zn;Object.defineProperty(MS,"__esModule",{value:!0});var TI=MS.default=void 0,t2e=e2e(dr()),n2e=fr,r2e=(0,t2e.default)((0,n2e.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Event");TI=MS.default=r2e;var NS={},i2e=zn;Object.defineProperty(NS,"__esModule",{value:!0});var kI=NS.default=void 0,o2e=i2e(dr()),a2e=fr,s2e=(0,o2e.default)((0,a2e.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"}),"Phonelink");kI=NS.default=s2e;var PS={},l2e=zn;Object.defineProperty(PS,"__esModule",{value:!0});var AI=PS.default=void 0,u2e=l2e(dr()),c2e=fr,d2e=(0,u2e.default)((0,c2e.jsx)("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"}),"Forum");AI=PS.default=d2e;var LS={},f2e=zn;Object.defineProperty(LS,"__esModule",{value:!0});var _I=LS.default=void 0,p2e=f2e(dr()),h2e=fr,g2e=(0,p2e.default)((0,h2e.jsx)("path",{d:"M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"}),"PhoneAndroid");_I=LS.default=g2e;var FS={},m2e=zn;Object.defineProperty(FS,"__esModule",{value:!0});var RI=FS.default=void 0,v2e=m2e(dr()),y2e=fr,b2e=(0,v2e.default)((0,y2e.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z"}),"Adjust");RI=FS.default=b2e;var zS={},w2e=zn;Object.defineProperty(zS,"__esModule",{value:!0});var OI=zS.default=void 0,x2e=w2e(dr()),S2e=fr,$2e=(0,x2e.default)((0,S2e.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),"Place");OI=zS.default=$2e;var BS={},C2e=zn;Object.defineProperty(BS,"__esModule",{value:!0});var DI=BS.default=void 0,E2e=C2e(dr()),T2e=fr,k2e=(0,E2e.default)((0,T2e.jsx)("path",{d:"M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"}),"HeadsetMic");DI=BS.default=k2e;var HS={},A2e=zn;Object.defineProperty(HS,"__esModule",{value:!0});var II=HS.default=void 0,_2e=A2e(dr()),R2e=fr,O2e=(0,_2e.default)((0,R2e.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");II=HS.default=O2e;var D2e=["color","size","title"];function US(){return US=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},US.apply(this,arguments)}function I2e(e,t){if(e==null)return{};var n=M2e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function M2e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var jS=R.forwardRef(function(e,t){var n=e.color,r=e.size,i=e.title,o=I2e(e,D2e);return le.createElement("svg",US({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n},o),i?le.createElement("title",null,i):null,le.createElement("path",{d:"M8 7a.5.5 0 0 1 .5.5V9H10a.5.5 0 0 1 0 1H8.5v1.5a.5.5 0 0 1-1 0V10H6a.5.5 0 0 1 0-1h1.5V7.5A.5.5 0 0 1 8 7z"}),le.createElement("path",{d:"M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"}))});jS.propTypes={color:Re.string,size:Re.oneOfType([Re.string,Re.number]),title:Re.string},jS.defaultProps={color:"currentColor",size:"1em",title:null};const N2e=jS;/*!
|
|
314
314
|
* @preserve
|
|
315
315
|
*
|
|
316
316
|
* ++++++++++++++++++++++++++++++++++++++
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as p, s as b, u as m, v as H, w as C, _ as T, x as r, y as n, z as f, A as h, C as v } from "./index-
|
|
1
|
+
import { r as p, s as b, u as m, v as H, w as C, _ as T, x as r, y as n, z as f, A as h, C as v } from "./index-97c5e513.js";
|
|
2
2
|
function x(e) {
|
|
3
3
|
return p("MuiTableHead", e);
|
|
4
4
|
}
|
|
@@ -43668,27 +43668,27 @@ function vL(e, t) {
|
|
|
43668
43668
|
return n;
|
|
43669
43669
|
}
|
|
43670
43670
|
var Q7 = ce.lazy(function() {
|
|
43671
|
-
return import("./index-
|
|
43671
|
+
return import("./index-bf98fdfb.js");
|
|
43672
43672
|
}), X7 = ce.lazy(function() {
|
|
43673
|
-
return import("./index-
|
|
43673
|
+
return import("./index-b3e26fa8.js");
|
|
43674
43674
|
});
|
|
43675
43675
|
ce.lazy(function() {
|
|
43676
|
-
return import("./index-
|
|
43676
|
+
return import("./index-cbcb0d60.js");
|
|
43677
43677
|
});
|
|
43678
43678
|
var bl = ce.lazy(function() {
|
|
43679
|
-
return import("./index-
|
|
43679
|
+
return import("./index-b9348629.js");
|
|
43680
43680
|
}), LCe = ce.lazy(function() {
|
|
43681
|
-
return import("./index-
|
|
43681
|
+
return import("./index-25997521.js");
|
|
43682
43682
|
}), FCe = ce.lazy(function() {
|
|
43683
|
-
return import("./index-
|
|
43683
|
+
return import("./index-1da71c1e.js");
|
|
43684
43684
|
}), J7 = ce.lazy(function() {
|
|
43685
|
-
return import("./index-
|
|
43685
|
+
return import("./index-121e850f.js");
|
|
43686
43686
|
}), zCe = ce.lazy(function() {
|
|
43687
|
-
return import("./index-
|
|
43687
|
+
return import("./index-cc65004c.js");
|
|
43688
43688
|
}), BCe = ce.lazy(function() {
|
|
43689
|
-
return import("./index-
|
|
43689
|
+
return import("./index-55733a63.js");
|
|
43690
43690
|
}), HCe = ce.lazy(function() {
|
|
43691
|
-
return import("./index-
|
|
43691
|
+
return import("./index-8428bcb4.js");
|
|
43692
43692
|
}), UCe = ce.lazy(function() {
|
|
43693
43693
|
return Promise.resolve().then(function() {
|
|
43694
43694
|
return VCe;
|
|
@@ -44107,11 +44107,11 @@ function wL({
|
|
|
44107
44107
|
let I = A.message;
|
|
44108
44108
|
if (m) {
|
|
44109
44109
|
I = "";
|
|
44110
|
-
for (const
|
|
44111
|
-
|
|
44110
|
+
for (const B of Object.keys(x))
|
|
44111
|
+
B !== "firstName" && B !== "lastName" && B !== "email" && B !== "mobile" && B !== "agbs" && A[B] && (I += A[B] + ", ");
|
|
44112
44112
|
I = I.slice(0, -3);
|
|
44113
44113
|
}
|
|
44114
|
-
const D =
|
|
44114
|
+
const D = {
|
|
44115
44115
|
channelOrResourceId: d,
|
|
44116
44116
|
shouldInvalidateCustomerIdentification: v(),
|
|
44117
44117
|
body: {
|
|
@@ -44123,29 +44123,30 @@ function wL({
|
|
|
44123
44123
|
placeholder_id: i,
|
|
44124
44124
|
channelId: h,
|
|
44125
44125
|
...A
|
|
44126
|
-
},
|
|
44127
|
-
params: {
|
|
44128
|
-
message: I
|
|
44129
44126
|
}
|
|
44127
|
+
};
|
|
44128
|
+
I && (D.params = {
|
|
44129
|
+
message: I
|
|
44130
44130
|
});
|
|
44131
|
-
|
|
44131
|
+
const L = await E(D);
|
|
44132
|
+
L.error ? (S && S({
|
|
44132
44133
|
timeslot: e,
|
|
44133
|
-
resonse:
|
|
44134
|
+
resonse: L,
|
|
44134
44135
|
data: { ...A },
|
|
44135
44136
|
pData: { ...p }
|
|
44136
44137
|
}), a && a({
|
|
44137
44138
|
timeslot: e,
|
|
44138
|
-
resonse:
|
|
44139
|
+
resonse: L,
|
|
44139
44140
|
data: { ...A },
|
|
44140
44141
|
pData: { ...p }
|
|
44141
44142
|
})) : (b && b({
|
|
44142
44143
|
timeslot: e,
|
|
44143
|
-
response:
|
|
44144
|
+
response: L,
|
|
44144
44145
|
data: { ...A },
|
|
44145
44146
|
pData: { ...p }
|
|
44146
44147
|
}), o && o({
|
|
44147
44148
|
timeslot: e,
|
|
44148
|
-
response:
|
|
44149
|
+
response: L,
|
|
44149
44150
|
data: { ...A },
|
|
44150
44151
|
pData: { ...p }
|
|
44151
44152
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as b, s as f, u as m, v as F, w as d, _ as C, x as l, y as n, z as T, A as v, C as x } from "./index-
|
|
1
|
+
import { r as b, s as f, u as m, v as F, w as d, _ as C, x as l, y as n, z as T, A as v, C as x } from "./index-97c5e513.js";
|
|
2
2
|
function y(o) {
|
|
3
3
|
return b("MuiTableFooter", o);
|
|
4
4
|
}
|