"use strict";(self.webpackChunkbookings_web_accounts_portal_workspaces=self.webpackChunkbookings_web_accounts_portal_workspaces||[]).push([[699],{52435:function(t,n,e){var r,o,i,s,u,a,f,c,l;function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}e(70489),e(95853),e(64509),e(20341),e(17482),e(7849),e(78604),e(68305),function(t,n){if(!n.jstmpl){var e,r,o,i,s,u,a,f,c,l,p,h,g,_,v,m,d,y,b,T,E,S,w,A,L,M,j=[];i=function(t,n){this.closure=t,this.name=n},s=function(t){var n=[];return c(n,t,0),1===n.length?n[0]:n.join("")},a=function(t,n,e){return/^[0-9]+$/.test(t)?t:""===t?null:(M("Attempting to use non-numeric value '"+t+"' for translation tag '"+e+"'"),0)},M=function(r,o){r=r||"BHCJS runtime issue",n&&n.env&&n.env.b_dev_server?(o&&console.warn("Template: "+o),console.error(r)):e.error_out&&t.onerror&&t.onerror("JSTMPL:: "+r,o||"jstmpl",0)},f=function(t){if("string"!=typeof t||-1===t.indexOf("{"))return t;var n=[];return p(n,t,0),1===n.length?n[0]:n.join("")},h=new Array(42),p=function(t,n,e){var r=0;for(n.length;;){var o=n.indexOf("{",r);if(-1===o){0===r?t.push(n):t.push(n.substring(r));break}o!==r&&(t.push(n.substring(r,o)),r=o);var i=n.indexOf("}",o+1);if(i!==o+1){if(-1===i){t.push(n.substring(r));break}for(var s=o+1;s="0"&&u<="9"||u>="a"&&u<="z"||"_"==u||"/"==u||"-"==u))break}s===i?(c(t,n.substring(o+1,i),e+1),r=i+1):(t.push(n.substring(o,s)),r=s)}else t.push("{}"),r=i+1}},c=function(t,n,e){if(e>0){if(e>=42)return console.warn("Detected excessive recursion in tag sequence: %s, returning '%s'",interpolate_tags.slice(1,42).join(" "),value),void t.push(n);if(n===h[e-1])return console.warn("Detected self-referential tag '%s', returning '%s'",value,value),void t.push(n)}h[e]=n;for(var i=0,s=r.length;i=n;)r.push({value:String.fromCharCode(t)}),t-=e;else if(t<=n)for(;t<=n;)r.push({value:t}),t+=e;else for(;t>=n;)r.push({value:t}),t-=e;return r},defined:function(t){return void 0!==t?1:0},substr:function(t,n,e){return t.substr(n,e)},sprintf:T,ucfirst:E=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},lcfirst:function(t){return t.charAt(0).toLowerCase()+t.substr(1)},ucfirstword:S,rand:function(t){return void 0===t?Math.random():Math.random()*t},time:function(){return+new Date/1e3},in_array:w}},(e=function(t,n){if(void 0===n)return t in A?A[t]:A.__no_op__;var e=new i(n,t);return A[t]=e,e}).setup=function(t){var n=function(t,n){if(n)for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])};n(i.prototype.fn,t.fn),n(i.prototype.fn.FILTERS,t.filters),"get_trans"in t&&(i.prototype.fn.GET_TRANS=i.prototype.fn.ME=t.get_trans),"get_text"in t&&(i.prototype.fn.GET_TEXT=i.prototype.fn.MF=t.get_text),"get_var_plural"in t&&(i.prototype.fn.GET_VAR_PLURAL=i.prototype.fn.VP=t.get_var_plural),"get_static_hostname"in t&&(i.prototype.fn.STATIC_HOSTNAME=t.get_static_hostname),"get_csrf_token"in t&&(i.prototype.fn.CSRF_TOKEN=t.get_csrf_token),"get_date"in t&&(i.prototype.fn.DATE=t.get_date),"get_helper"in t&&(i.prototype.fn.HELPER=t.get_helper),"translations"in t&&(o=t.translations)},e.fn=i.prototype.fn,e("__no_op__",(function(){return M("JSTMPL -> TMPL not found")||""})),n.jstmpl=e}}(window,window.booking||{}),e(4040),function(t){if(t.jstmpl=t.jstmpl||{setup:function(){console.error("This is a mocked method. It's needed for client BHC templates to work, and doesn't need to work while we don't use them")}},!t.jstmpl.translations){var n,e=t.jstmpl,r=t.env,o=function(t,n,e,o){var s=0,u=!(0!==o&&!o);if(u){if(/^[0-9]+$/.test(o))s=parseInt(o,10);else{var a=n(o);/^[0-9]+$/.test(a)?s=a:console.warn("Trying to use a non-numeric template var for exception tool on copy '%s'",t)}e("num",s)}if(r&&r.global_translation_tags)for(var f in r.global_translation_tags)n(f)||e(f,r.global_translation_tags[f]);return i(t,n,e,s,u)},i=function(t,n,e,r,o){var a,f=t.split("/");""===f[0]&&f.shift(),1==f.length&&("{"===(p=f[0]).charAt(0)&&"}"===p.charAt(p.length-1)&&(p=p.substr(1,p.length-2)),f=["private",p,"name"]);for(var c=0,l=f.length;c=100){var i=n%100;i<10&&o.push("*0"),o.push("*"+i)}n>=10&&o.push("*"+n%10);for(var u=0,a=o.length;u":">",'"':""","'":"'","/":"/"},A={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","'":"\\'",'"':'\\"',"<":"\\u003c",">":"\\u003e","\\":"\\\\","'":"'",""":"""},L={">":"\\u003e","<":"\\u003c"};e=function(t){return w[t]},n=function(t){return String(t).replace(/&(?!amp;|lt;|gt;|quot;|#39;|#47;)/g,"&").replace(/[<>"'\/]/g,e)},o=function(t,n){return"\n
"+(n?"\n
":"")},r=function(t){return t.replace(/(?:\r?\n)((?:\r?\n)*)/,o)},s=function(t,n){return n?"

\n

":"\n
"},i=function(t){return t.replace(/(?:\r?\n)((?:\r?\n)*)/,s)},a=function(t){return r(d(t))},u=function(t){return r(n(t))},f=function(t){return"

"+i(n(t))+"

"},c=function(t){return"

"+i(String(t))+"

"},p=function(t){return A[t]},l=function(t){return String(t).replace(/([\b\f\n\r\t'"\\<>]|"|')/g,p)},h=function(n){return t.jstmpl.fn.PERL_BOOL(n)?"true":"false"},g=function(t){return null==t?"":"'"+l(t)+"'"},_=function(t){return encodeURIComponent(t).replace(/[!'()]/g,escape).replace(/\*/g,"%2A")},v=function(t){return String(t).replace(/ /g,"")},m=function(t){return String(t).replace(/\n/g,"
")},T=function(t){return t in w?w[t]:"&#"+t.charCodeAt(0)+";"},d=function(t){return String(t).replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f&<>"'\/\u00A0-\u9999<>]/g,T)},E=function(t){return String(t).replace(/^\s+|\s+$/g,"")},b=function(t){return L[t]},y=function(t){return JSON.stringify(t).replace(/[<>]/g,b)},S=function(t){return t},t.jstmpl.setup({filters:{html:n,text2entities:a,text2html:u,text2para:f,html2para:c,js:l,jsbool:h,jsstr:g,url:_,nospace:v,br:m,entities:d,json:y,trim:E,maybexss:S}})}}(window.booking||{}),e(88647),e(11430),e(99650),e(82975),e(17546),e(35890),r=window.booking,o=function(t){var n,e,r=0;if(!t||0===t.length)return r;for(n=0,e=t.length;n"}var f=u.getAttribute("viewBox"),c=f.split(" "),l=parseInt(c[2]-c[0],10),h=parseInt(c[3]-c[1],10);e&&!r?r=Math.floor(e/(h/l)):r&&!e&&(e=Math.floor(r/(l/h))),Object.assign(n,{width:r||l,height:e||h,viewBox:f,class:o});var g={color:"fill"},_=Object.keys(n).reduce((function(t,e){return t+" "+(g[e]||e)+'="'+n[e]+'"'}),""),v=u.innerHTML;if(!v&&void 0!==("undefined"==typeof XMLSerializer?"undefined":p(XMLSerializer))){var m=new XMLSerializer;v="";for(var d=u.childNodes,y=0;y"+v+""},u=function(t,n){if("icon"===t){var e=n.name;return delete n.name,l(e,n)}throw new Error("unkown TMPL_HELPER "+name)},r.jstmpl.setup({get_static_hostname:i,get_date:s,get_helper:u,fn:{escape_html:f,escape_entities:c,array_length:a}})},96853:function(t,n,e){e(10177),e(15144),e(55e3),e(27594),e(87146),e(78624),e(9491),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var n=this;do{if(n.matches(t))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null}),String.prototype.startsWith||(String.prototype.startsWith=function(t,n){return n=n||0,this.indexOf(t,n)===n}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError("this is null or not defined");var n=Object(this),e=n.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o