PageSourceSearch

http://reviewdekha.com/js/bookastylist.prod.js

js reviewdekha.com collected 2026-10-04 01:48:51 UTC 42,047 bytes, 1 lines download raw bytes

1!function(){"use strict";var e,t,n,o;Object.keys||(Object.keys=(e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),o=(n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(r){if("function"!=typeof r&&("object"!=typeof r||null===r))throw new TypeError("Object.keys called on non-object");var i,s,a=[];for(i in r)e.call(r,i)&&a.push(i);if(t)for(s=0;s<o;s++)e.call(r,n[s])&&a.push(n[s]);return a})),Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,o=new Array(n);n--;)o[n]=[t[n],e[t[n]]];return o}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),o=1;o<arguments.length;o++){var r=arguments[o];if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n},writable:!0,configurable:!0});const r="Brauz_book_a_stylist_service",i="Book A Stylist",s=i.toLowerCase().trim().replace(/ /g,"_").replace(/&/g,"and"),a=`Brauz_${s}_iframe_container`,c=`Brauz_${s}_iframe`,d="1.0/020124",u="Brauz_book_a_stylist_customer_data",l="Brauz_customer_id",_="production",f="https://api.brauz.ai/thirdparty/",p="https://brauz-book-a-stylist.netlify.app",m="https://brauz-connect-live.netlify.app";function g(e,t=!1){if(!0===t||window.Brauz_show_log&&!0===window.Brauz_show_log){const t="color: white; background: #232b2b; padding: 5px";return"object"==typeof e?(console.log("%cBrauz%c",t,""),console.log(e)):console.log(`%cBrauz%c ${e}`,t,"")}}function h({message:e,origin:t}){const n=document.getElementById(c);
1n&&n.contentWindow&&n.contentWindow.postMessage(e,t)}function b(){return Math.random().toString(36).substring(2,30)+"_"+Date.now()}function y(){const{Brauz_config:e={}}=window,{retailer_appointment:t={}}=e,{product:n={}}=t;return n}function w(e){return e.replace(/(\r\n|\n|\r)/gm,"").replace(/\s+/g," ").trim()}function v(){!function(e){const t=document.createElement("style");let n=null;document.head.appendChild(t),n=t.sheet,n.insertRule(e,n.cssRules.length)}(w("\n      @keyframes brauz-loader-spin {\n        0% {\n          transform: rotate(0deg);\n        }\n        100% {\n          transform: rotate(360deg);\n        }\n      }\n    "))}function $(e){const t=window.location.search.substring(1).split("&");for(var n=0;n<t.length;n++){const o=t[n].split("=");if(decodeURIComponent(o[0])==e)return decodeURIComponent(o[1])}}function x({group_number:e}){let t=localStorage.getItem(l);return t||(t=function({group_number:e}){return e+"#"+b()}({group_number:e}),localStorage.setItem(l,t),t)}function E(){}function z(e){return e()}function S(){return Object.create(null)}function k(e){e.forEach(z)}function B(e){return"function"==typeof e}function C(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let O,A;function I(e,t){return O||(O=document.createElement("a")),O.href=t,e===O.href}function R(e,t,n){e.$$.on_destroy.push(function(e,...t){if(null==e)return E;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}(t,n))}function j(e,t,n,o){return e[1]&&o?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](o(t))):n.ctx}function N(e,t){e.appendChild(t)}function T(e,t,n){e.insertBefore(t,n||null)}function P(e){e.parentNode.removeChild(e)}function L(e){return document.createElement(e)}function U(e){return document.createTextNode(e)}function D(){return U(" ")}function M(){return U("")}function q(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function F(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function H(e,t,n,o){e.style.setProperty(t,n,o?"important":"")}function G(e){A=e}function J(){if(!A)throw new Error("Function called outside component initialization");return A}function V(e){J().$$.on_mount.push(e)}function W(e){J().$$.on_destroy.push(e)}const X=[],K=[],Q=[],Y=[],Z=Promise.resolve();let ee=!1;function te(){ee||(ee=!0,Z.then(ie))}function ne(e){Q.push(e)}let oe=!1;const re=new Set;function ie(){if(!oe){oe=!0;do{for(let e=0;e<X.length;e+=1){const t=X[e];G(t),se(t.$$)}for(G(null),X.length=0;K.length;)K.pop()();for(let e=0;e<Q.length;e+=1){const t=Q[e];re.has(t)||(re.add(t),t())}Q.length=0}while(X.length);for(;Y.length;)Y.pop()();ee=!1,oe=!1,re.clear()}}function se(e){if(null!==e.fragment){e.update(),k(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ne)}}const ae=new Set;let ce;function de(){ce={r:0,c:[],p:ce}}function ue(){ce.r||k(ce.c),ce=ce.p}function le(e,t){e&&e.i&&(ae.delete(e),e.i(t))}function _e(e,t,n,o){if(e&&e.o){if(ae.has(e))return;ae.add(e),ce.c.push((()=>{ae.delete(e),o&&(n&&e.d(1),o())})),e.o(t)}}function fe(e){e&&e.c()}function pe(e,t,n,o){const{fragment:r,on_mount:i,on_destroy:s,after_update:a}=e.$$;r&&r.m(t,n),o||ne((()=>{const t=i.map(z).filter(B);s?s.push(...t):k(t),e.$$.on_mount=[]})),a.forEach(ne)}function me(e,t){const n=e.$$;null!==n.fragment&&(k(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ge(e,t,n,o,r,i,s,a=[-1]){const c=A;G(e);const d=e.$$={fragment:null,ctx:null,props:i,update:E,not_equal:r,bound:S(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:t.context||[]),callbacks:S(),dirty:a,skip_bound:!1,root:t.target||c.$$.root};s&&s(d.root);let u=!1;if(d.ctx=n?n(e,t.props||{},((t,n,...o)=>{const i=o.length?o[0]:n;return d.ctx&&r(d.ctx[t],d.ctx[t]=i)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](i),u&&function(e,t){-1===e.$$.dirty[0]&&(X.push(e),te(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),n})):[],d.update(),u=!0,k(d.before_update),d.fragment=!!o&&o(d.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);d.fragment&&d.fragment.l(e),e.forEach(P)}else d.fragment&&d.fragment.c();t.intro&&le(e.$$.fragment),pe(e,t.target,t.anchor,t.customElement),ie()}G(c)}class he{$destroy(){me(this,1),this.$destroy=E}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const be=[];var ye=function(e,t){return function(){for(var n=new Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];return e.apply(t,n)}},we=Object.prototype.toString;function ve(e){return"[object Array]"===we.call(e)}function $e(e){return void 0===e}function xe(e){return null!==e&&"object"==typeof e}function Ee(e){if("[object Object]"!==we.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function ze(e){return"[object Function]"===we.call(e)}function Se(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),ve(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var ke={isArray:ve,isArrayBuffer:function(e){return"[object ArrayBuffer]"===we.call(e)},isBuffer:function(e){return null!==e&&!$e(e)&&null!==e.constructor&&!$e(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:xe,isPlainObject:Ee,isUndefined:$e,isDate:function(e){return"[object Date]"===we.call(e)},isFile:function(e){return"[object File]"===we.call(e)},isBlob:function(e){return"[object Blob]"===we.call(e)},isFunction:ze,isStream:function(e){return xe(e)&&ze(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}
1,forEach:Se,merge:function e(){var t={};function n(n,o){Ee(t[o])&&Ee(n)?t[o]=e(t[o],n):Ee(n)?t[o]=e({},n):ve(n)?t[o]=n.slice():t[o]=n}for(var o=0,r=arguments.length;o<r;o++)Se(arguments[o],n);return t},extend:function(e,t,n){return Se(t,(function(t,o){e[o]=n&&"function"==typeof t?ye(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}};function Be(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Ce=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(ke.isURLSearchParams(t))o=t.toString();else{var r=[];ke.forEach(t,(function(e,t){null!=e&&(ke.isArray(e)?t+="[]":e=[e],ke.forEach(e,(function(e){ke.isDate(e)?e=e.toISOString():ke.isObject(e)&&(e=JSON.stringify(e)),r.push(Be(t)+"="+Be(e))})))})),o=r.join("&")}if(o){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e};function Oe(){this.handlers=[]}Oe.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Oe.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Oe.prototype.forEach=function(e){ke.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Ae=Oe,Ie=function(e,t,n){return ke.forEach(n,(function(n){e=n(e,t)})),e},Re=function(e){return!(!e||!e.__CANCEL__)},je=function(e,t){ke.forEach(e,(function(n,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[o])}))},Ne=function(e,t,n,o,r){return function(e,t,n,o,r){return e.config=t,n&&(e.code=n),e.request=o,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}(new Error(e),t,n,o,r)},Te=ke.isStandardBrowserEnv()?{write:function(e,t,n,o,r,i){var s=[];s.push(e+"="+encodeURIComponent(t)),ke.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ke.isString(o)&&s.push("path="+o),ke.isString(r)&&s.push("domain="+r),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Pe=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Le=ke.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var o=e;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=ke.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},Ue=function(e){return new Promise((function(t,n){var o=e.data,r=e.headers;ke.isFormData(o)&&delete r["Content-Type"];var i=new XMLHttpRequest;if(e.auth){var s=e.auth.username||"",a=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.Authorization="Basic "+btoa(s+":"+a)}var c,d,u=(c=e.baseURL,d=e.url,c&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(d)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(c,d):d);if(i.open(e.method.toUpperCase(),Ce(u,e.params,e.paramsSerializer),!0),i.timeout=e.timeout,i.onreadystatechange=function(){if(i&&4===i.readyState&&(0!==i.status||i.responseURL&&0===i.responseURL.indexOf("file:"))){var o,r,s,a,c,d="getAllResponseHeaders"in i?(o=i.getAllResponseHeaders(),c={},o?(ke.forEach(o.split("\n"),(function(e){if(a=e.indexOf(":"),r=ke.trim(e.substr(0,a)).toLowerCase(),s=ke.trim(e.substr(a+1)),r){if(c[r]&&Pe.indexOf(r)>=0)return;c[r]="set-cookie"===r?(c[r]?c[r]:[]).concat([s]):c[r]?c[r]+", "+s:s}})),c):c):null,u={data:e.responseType&&"text"!==e.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:d,config:e,request:i};!function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(Ne("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}(t,n,u),i=null}},i.onabort=function(){i&&(n(Ne("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(Ne("Network Error",e,null,i)),i=null},i.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(Ne(t,e,"ECONNABORTED",i)),i=null},ke.isStandardBrowserEnv()){var l=(e.withCredentials||Le(u))&&e.xsrfCookieName?Te.read(e.xsrfCookieName):void 0;l&&(r[e.xsrfHeaderName]=l)}if("setRequestHeader"in i&&ke.forEach(r,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete r[t]:i.setRequestHeader(t,e)})),ke.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),e.responseType)try{i.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&i.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){i&&(i.abort(),n(e),i=null)})),o||(o=null),i.send(o)}))},De={"Content-Type":"application/x-www-form-urlencoded"};function Me(e,t){!ke.isUndefined(e)&&ke.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var qe,Fe={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(qe=Ue),qe),transformRequest:[function(e,t){return je(t,"Accept"),je(t,"Content-Type"),ke.isFormData(e)||ke.isArrayBuffer(e)||ke.isBuffer(e)||ke.isStream(e)||ke.isFile(e)||ke.isBlob(e)?e:ke.isArrayBufferView(e)?e.buffer:ke.isURLSearchParams(e)?(Me(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):ke.isObject(e)?(Me(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};Fe.headers={common:{Accept:"application/json, text/plain, */*"}},ke.forEach(["delete","get","head"],(function(e){Fe.headers[e]={}})),ke.forEach(["post","put","patch"],(function(e){Fe.headers[e]=ke.merge(De)}
1));var He=Fe;function Ge(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Je=function(e){return Ge(e),e.headers=e.headers||{},e.data=Ie(e.data,e.headers,e.transformRequest),e.headers=ke.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),ke.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||He.adapter)(e).then((function(t){return Ge(e),t.data=Ie(t.data,t.headers,e.transformResponse),t}),(function(t){return Re(t)||(Ge(e),t&&t.response&&(t.response.data=Ie(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Ve=function(e,t){t=t||{};var n={},o=["url","method","data"],r=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function a(e,t){return ke.isPlainObject(e)&&ke.isPlainObject(t)?ke.merge(e,t):ke.isPlainObject(t)?ke.merge({},t):ke.isArray(t)?t.slice():t}function c(o){ke.isUndefined(t[o])?ke.isUndefined(e[o])||(n[o]=a(void 0,e[o])):n[o]=a(e[o],t[o])}ke.forEach(o,(function(e){ke.isUndefined(t[e])||(n[e]=a(void 0,t[e]))})),ke.forEach(r,c),ke.forEach(i,(function(o){ke.isUndefined(t[o])?ke.isUndefined(e[o])||(n[o]=a(void 0,e[o])):n[o]=a(void 0,t[o])})),ke.forEach(s,(function(o){o in t?n[o]=a(e[o],t[o]):o in e&&(n[o]=a(void 0,e[o]))}));var d=o.concat(r).concat(i).concat(s),u=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===d.indexOf(e)}));return ke.forEach(u,c),n};function We(e){this.defaults=e,this.interceptors={request:new Ae,response:new Ae}}We.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Ve(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[Je,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},We.prototype.getUri=function(e){return e=Ve(this.defaults,e),Ce(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},ke.forEach(["delete","get","head","options"],(function(e){We.prototype[e]=function(t,n){return this.request(Ve(n||{},{method:e,url:t,data:(n||{}).data}))}})),ke.forEach(["post","put","patch"],(function(e){We.prototype[e]=function(t,n,o){return this.request(Ve(o||{},{method:e,url:t,data:n}))}}));var Xe=We;function Ke(e){this.message=e}Ke.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Ke.prototype.__CANCEL__=!0;var Qe=Ke;function Ye(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new Qe(e),t(n.reason))}))}Ye.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Ye.source=function(){var e;return{token:new Ye((function(t){e=t})),cancel:e}};var Ze=Ye;function et(e){var t=new Xe(e),n=ye(Xe.prototype.request,t);return ke.extend(n,Xe.prototype,t),ke.extend(n,t),n}var tt=et(He);tt.Axios=Xe,tt.create=function(e){return et(Ve(tt.defaults,e))},tt.Cancel=Qe,tt.CancelToken=Ze,tt.isCancel=Re,tt.all=function(e){return Promise.all(e)},tt.spread=function(e){return function(t){return e.apply(null,t)}},tt.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError};var nt=tt,ot=tt;nt.default=ot;var rt=nt;const it={config:{group_number:"",environment:"",brauz_api_url:"",client_name:"",version:"",country:"",origin:window.location.origin,iframe_url:p,iframe_config:"",z_index:0,custom_config:{},customer_id:"",product:{},include_product_data:!1,popup_content_height:0,is_not_popup:!1},controller:{is_show_iframe:!1,is_iframe_ready:!1,is_connect_live:!1}};const st=function(){const{subscribe:e,set:t,update:n}=function(e,t=E){let n;const o=new Set;function r(t){if(C(e,t)&&(e=t,n)){const t=!be.length;for(const t of o)t[1](),be.push(t,e);if(t){for(let e=0;e<be.length;e+=2)be[e][0](be[e+1]);be.length=0}}}return{set:r,update:function(t){r(t(e))},subscribe:function(i,s=E){const a=[i,s];return o.add(a),1===o.size&&(n=t(r)||E),i(e),()=>{o.delete(a),0===o.size&&(n(),n=null)}}}}({...it});return{subscribe:e,setConfig:e=>{const{group_number:t,environment:o,brauz_api_url:r,client_name:i,version:s,country:a,z_index:c,custom_config:d,customer_id:u}=e;return n((e=>({...e,config:{...e.config,group_number:t,environment:o,brauz_api_url:r,client_name:i,version:s,country:a,z_index:c,custom_config:d,customer_id:u}})))},setProductData:e=>n((t=>({...t,config:{...t.config,product:e}}))),updateIframeConfig:({is_preview_mode:e=!1,is_go_to_virtual:t=!1,is_go_to_in_store:o=!1,include_product_data:r=!1,selected_store_id:i="",selected_store_gid:s="",selected_store_gids:a=[],selected_agent_id:c="",children_form_ids:d=[],selected_child_form_id:u="",children_form_config:l=[],is_not_popup:_=!1,appointment_number:f="",flow:p="",customer_email:m="",disable_comms:g=[]}={})=>n((n=>{const{config:h={}}=n,{customer_id:y,product:w={},custom_config:v={}}=h,{is_isolated:$=!1}=v,x=function({customer_id:e}){return e+"#"+b()}({customer_id:y});let E={...h,session_id:x};i&&(E={...E,selected_store_id:String(i)}),c&&(E={...E,selected_agent_id:String(c)}),s&&(E={...E,selected_store_gid:String(s)}),a.length>0&&(E={...E,selected_store_gids:a}),f&&(E={...E,appointment_number:f}),m&&(E={...E,customer_email:m}),p&&(E={...E,flow:p}),_&&(E={...E,is_not_popup:_}),$&&(E={...E,is_isolated:$}),d.length>0&&(E={...E,children_form_ids:d}),u&&String(u)!==String(5)&&(E={...E,selected_child_form_id:String(u)}),!0===t?E={...E,is_go_to_virtual:t}:!0===o&&(E={...E,is_go_to_in_store:o}),!0===Array.isArray(l)&&l.length>0&&(E={...E,children_form_config:window.btoa(JSON.stringify(l))}),!0===Array.isArray(g)&&g.length>0&&(E={...E,disable_comms:g}),E={...E,include_product_data:r,is_preview_mode:e};try{delete E.iframe_config,delete E.z_index,delete E.brauz_api_url}catch(e){}if(!0===r){const e=window.btoa(JSON.stringify(w));E={...E,product:e}}const z=(S={iframe_config:JSON.stringify(E)},Object.keys(S).map((e=>encodeURIComponent(e)+"="+encodeURIComponent(S[e]))).join("&"));var S;return{...n,config:{...n.config,iframe_config:z,session_id:x,is_not_popup:_}}}
1)),setPopupContentHeight:e=>n((t=>({...t,config:{...t.config,popup_content_height:e}}))),showIframe:({is_connect_live:e=!1,is_preview_mode:t=!1}={})=>n((n=>{const{config:o={}}=n,{product:r={},group_number:i,session_id:s,customer_id:a,include_product_data:c}=o;return!1===t&&rt({url:"https://brauz-api-netlify.netlify.app/.netlify/functions/capture-service-events",method:"POST",headers:{"Content-Type":"application/json"},data:{group_number:i,service_code:!1===e?5:8,event_code:"CLICK_BUTTON",session_id:s,customer_id:a,is_preview_mode:t,meta_data:{url:window.location.href,include_product_data:c,product:r},submitted_date_time:Date.now()}}),{...n,controller:{...n.controller,is_show_iframe:!0,is_connect_live:e}}})),hideIframe:()=>n((e=>{try{window.Brauz_retailer_appointment_event_callback.closeIframe()}catch(e){}return{...e,controller:{...e.controller,is_show_iframe:!1,is_connect_live:!1}}})),setIsIframeReady:e=>n((t=>({...t,controller:{...t.controller,is_iframe_ready:e}}))),reset:()=>t({...it})}}();function at(e,t,n){const o=e.slice();return o[3]=t[n],o}function ct(e){let t,n;return{c(){t=L("div"),F(t,"style",n=w(`\n        position: absolute;\n        top: 0;\n        left: 5px;\n        border: 1px solid ${e[2]};\n        width: 1px;\n        height: ${e[1]}px;\n        background: ${e[2]};\n        -ms-transform: rotate(${e[3]}); /* IE 9 */\n        -webkit-transform: rotate($${e[3]}); /* Safari 3-8 */\n        transform: rotate(${e[3]});\n        cursor: pointer;\n        display: block;\n        `))},m(e,n){T(e,t,n)},p:E,d(e){e&&P(t)}}}function dt(e){let t,n,o,r,i,s=["45deg","-45deg"],a=[];for(let t=0;t<2;t+=1)a[t]=ct(at(e,s,t));return{c(){t=L("button"),n=L("div");for(let e=0;e<2;e+=1)a[e].c();F(n,"style",w(`\n    position: relative;\n  \theight: ${e[1]}px;\n    width: ${e[1]}px;\n  `)),F(t,"brauz-identifer","close-button"),F(t,"style",o=w(`\n\t\tposition: absolute;\n\t\tborder: none;\n\t\tpadding: 0;\n\t\tbackground-color: transparent;\n    cursor: pointer;\n\t\t${e[0]?"\n      top: -15px;\n      right: -15px;\n      padding: 15px;\n      ":"\n      top: 20px;\n      right: 20px;\n    "}\n  `))},m(e,o){T(e,t,o),N(t,n);for(let e=0;e<2;e+=1)a[e].m(n,null);r||(i=q(t,"click",st.hideIframe),r=!0)},p(e,[r]){if(6&r){let t;for(s=["45deg","-45deg"],t=0;t<2;t+=1){const o=at(e,s,t);a[t]?a[t].p(o,r):(a[t]=ct(o),a[t].c(),a[t].m(n,null))}for(;t<2;t+=1)a[t].d(1)}1&r&&o!==(o=w(`\n\t\tposition: absolute;\n\t\tborder: none;\n\t\tpadding: 0;\n\t\tbackground-color: transparent;\n    cursor: pointer;\n\t\t${e[0]?"\n      top: -15px;\n      right: -15px;\n      padding: 15px;\n      ":"\n      top: 20px;\n      right: 20px;\n    "}\n  `))&&F(t,"style",o)},i:E,o:E,d(e){e&&P(t),function(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}(a,e),r=!1,i()}}}function ut(e,t,n){let{is_error:o=!0}=t,r=o?13:30,i=o?"#7f8c8d":"#bdc3c7";return e.$$set=e=>{"is_error"in e&&n(0,o=e.is_error)},[o,r,i]}class lt extends he{constructor(e){super(),ge(this,e,ut,dt,C,{is_error:0})}}function _t(e){let t,n,o,r,i;const s=e[2].default,a=function(e,t,n,o){if(e){const r=j(e,t,n,o);return e[0](r)}}(s,e,e[1],null);return{c(){t=L("div"),a&&a.c(),t.hidden=!0},m(s,c){var d;T(s,t,c),a&&a.m(t,null),o=!0,r||(d=n=ft.call(null,t,e[0]),i=d&&B(d.destroy)?d.destroy:E,r=!0)},p(e,[t]){a&&a.p&&(!o||2&t)&&function(e,t,n,o,r,i){if(r){const s=j(t,n,o,i);e.p(s,r)}}(a,s,e,e[1],o?function(e,t,n,o){if(e[2]&&o){const r=e[2](o(n));if(void 0===t.dirty)return r;if("object"==typeof r){const e=[],n=Math.max(t.dirty.length,r.length);for(let o=0;o<n;o+=1)e[o]=t.dirty[o]|r[o];return e}return t.dirty|r}return t.dirty}(s,e[1],t,null):function(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}(e[1]),null),n&&B(n.update)&&1&t&&n.update.call(null,e[0])},i(e){o||(le(a,e),o=!0)},o(e){_e(a,e),o=!1},d(e){e&&P(t),a&&a.d(e),r=!1,i()}}}function ft(e,t="body"){let n;async function o(o){if("string"==typeof(t=o)){if(n=document.querySelector(t),null===n&&(await(te(),Z),n=document.querySelector(t)),null===n)throw new Error(`No element found matching css selector: "${t}"`)}else{if(!(t instanceof HTMLElement))throw new TypeError(`Unknown portal target type: ${null===t?"null":typeof t}. Allowed types: string (CSS selector) or HTMLElement.`);n=t}n.appendChild(e),e.hidden=!1}return o(t),{update:o,destroy:function(){e.parentNode&&e.parentNode.removeChild(e)}}}function pt(e,t,n){let{$$slots:o={},$$scope:r}=t,{target:i="body"}=t;return e.$$set=e=>{"target"in e&&n(0,i=e.target),"$$scope"in e&&n(1,r=e.$$scope)},[i,r,o]}class mt extends he{constructor(e){super(),ge(this,e,pt,_t,C,{target:0})}}function gt(e){let t,n,o,r=!0===e[1]&&ht(e),i=e[2]&&bt(e);return{c(){r&&r.c(),t=D(),i&&i.c(),n=M()}
1,m(e,s){r&&r.m(e,s),T(e,t,s),i&&i.m(e,s),T(e,n,s),o=!0},p(e,o){!0===e[1]?r?(r.p(e,o),2&o&&le(r,1)):(r=ht(e),r.c(),le(r,1),r.m(t.parentNode,t)):r&&(de(),_e(r,1,1,(()=>{r=null})),ue()),e[2]?i?(i.p(e,o),4&o&&le(i,1)):(i=bt(e),i.c(),le(i,1),i.m(n.parentNode,n)):i&&(de(),_e(i,1,1,(()=>{i=null})),ue())},i(e){o||(le(r),le(i),o=!0)},o(e){_e(r),_e(i),o=!1},d(e){r&&r.d(e),e&&P(t),i&&i.d(e),e&&P(n)}}}function ht(e){let t,n,o,r,i,s;return r=new lt({props:{is_error:!1}}),{c(){t=L("div"),n=L("div"),o=D(),fe(r.$$.fragment),F(n,"brauz-identifer","container"),F(n,"style",w("\n              border: 2px solid #7f8c8d;\n              border-top: 2px solid black;\n              border-radius: 50%;\n              width: 68px;\n              height: 68px;\n              animation: brauz-loader-spin 0.8s linear infinite;\n              box-sizing: border-box;\n              display: block;\n            ")),F(t,"brauz-identifer","loader-container"),F(t,"style",i=w(`\n            min-height: ${e[9]?"168px":"100vh"};\n            padding: 0 0.5rem;\n            display: flex;\n            flex-direction: column;\n            justify-content: center;\n            align-items: center;\n            position: relative;\n            box-sizing: border-box;\n            ${e[6]};\n          `))},m(e,i){T(e,t,i),N(t,n),N(t,o),pe(r,t,null),s=!0},p(e,n){(!s||576&n&&i!==(i=w(`\n            min-height: ${e[9]?"168px":"100vh"};\n            padding: 0 0.5rem;\n            display: flex;\n            flex-direction: column;\n            justify-content: center;\n            align-items: center;\n            position: relative;\n            box-sizing: border-box;\n            ${e[6]};\n          `)))&&F(t,"style",i)},i(e){s||(le(r.$$.fragment,e),s=!0)},o(e){_e(r.$$.fragment,e),s=!1},d(e){e&&P(t),me(r)}}}function bt(e){let t,n,o,r,i,s,a;return i=new lt({props:{is_error:!0}}),{c(){t=L("div"),n=L("div"),o=L("div"),o.textContent="Something went wrong, please try again later",r=D(),fe(i.$$.fragment),H(o,"color","#BE3A31"),H(n,"position","relative"),H(n,"text-align","left"),F(t,"brauz-identifer","error-modal"),F(t,"style",s=w(`\n            padding: 20px;\n            width: 400px;\n            max-width: 90%;\n            box-sizing: border-box;\n            margin: 10vh auto 68px;\n            background: white;\n            outline: none;\n            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);\n            border: 1px solid black;\n            background-color: white;\n            position: relative;\n            font-size: 15px;\n            line-height: 20px;\n            text-align: center;\n            z-index: ${e[12]+1};\n          `))},m(e,s){T(e,t,s),N(t,n),N(n,o),N(n,r),pe(i,n,null),a=!0},p(e,n){(!a||4096&n&&s!==(s=w(`\n            padding: 20px;\n            width: 400px;\n            max-width: 90%;\n            box-sizing: border-box;\n            margin: 10vh auto 68px;\n            background: white;\n            outline: none;\n            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);\n            border: 1px solid black;\n            background-color: white;\n            position: relative;\n            font-size: 15px;\n            line-height: 20px;\n            text-align: center;\n            z-index: ${e[12]+1};\n          `)))&&F(t,"style",s)},i(e){a||(le(i.$$.fragment,e),a=!0)},o(e){_e(i.$$.fragment,e),a=!1},d(e){e&&P(t),me(i)}}}function yt(e){let t,n,o,r,s,a,d,u=!1===e[0]&&gt(e);return{c(){t=L("div"),n=L("iframe"),s=D(),u&&u.c(),F(n,"title",i),F(n,"id",c),I(n.src,o=`${e[5]}/${e[11]}?${e[13]}`)||F(n,"src",o),F(n,"style",r=w(`\n\t\t\t\twidth: 100%;\n\t\t\t\theight: ${e[10]>0?e[10]:e[3]}px;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tposition: fixed;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tborder: none;\n\t\t\t\tz-index: ${e[12]};\n\t\t\t\t${!1===e[0]?"height: 0; width: 0;":""};\n\t\t\t\t${e[8]}\n\t\t\t`)),F(t,"brauz-identifer","overlay"),F(t,"style",a=w(`\n\t\t\tposition: fixed;\n\t\t\tbackground-color: rgba(0, 0, 0, 0.5);\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\ttext-align: left;\n\t\t\tbox-sizing: border-box;\n\t\t\tz-index: ${e[12]};\n      ${e[7]};\n\t\t`))},m(e,o){T(e,t,o),N(t,n),N(t,s),u&&u.m(t,null),d=!0}
1,p(e,i){(!d||10272&i&&!I(n.src,o=`${e[5]}/${e[11]}?${e[13]}`))&&F(n,"src",o),(!d||5385&i&&r!==(r=w(`\n\t\t\t\twidth: 100%;\n\t\t\t\theight: ${e[10]>0?e[10]:e[3]}px;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tposition: fixed;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tborder: none;\n\t\t\t\tz-index: ${e[12]};\n\t\t\t\t${!1===e[0]?"height: 0; width: 0;":""};\n\t\t\t\t${e[8]}\n\t\t\t`)))&&F(n,"style",r),!1===e[0]?u?(u.p(e,i),1&i&&le(u,1)):(u=gt(e),u.c(),le(u,1),u.m(t,null)):u&&(de(),_e(u,1,1,(()=>{u=null})),ue()),(!d||4224&i&&a!==(a=w(`\n\t\t\tposition: fixed;\n\t\t\tbackground-color: rgba(0, 0, 0, 0.5);\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\ttext-align: left;\n\t\t\tbox-sizing: border-box;\n\t\t\tz-index: ${e[12]};\n      ${e[7]};\n\t\t`)))&&F(t,"style",a)},i(e){d||(le(u),d=!0)},o(e){_e(u),d=!1},d(e){e&&P(t),u&&u.d()}}}function wt(e){let t,n,o,r;return ne(e[22]),t=new mt({props:{target:"#"+e[4],$$slots:{default:[yt]},$$scope:{ctx:e}}}),{c(){fe(t.$$.fragment)},m(i,s){pe(t,i,s),n=!0,o||(r=q(window,"resize",e[22]),o=!0)},p(e,[n]){const o={};16&n&&(o.target="#"+e[4]),268451823&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){n||(le(t.$$.fragment,e),n=!0)},o(e){_e(t.$$.fragment,e),n=!1},d(e){me(t,e),o=!1,r()}}}function vt(e,t,n){let o,r,i,s,d,u,l,_,f,g,h,b,y,w,$,x,E,z,S,k,B;R(e,st,(e=>n(21,B=e)));let C="",O=!0,A=!1,I=null,j=0;function N(){clearTimeout(I),I=null}return V((()=>{v();let e="undefined"!=typeof document?document.getElementById(z):"";e||(e=document.createElement("div"),e.id=z,document.body.appendChild(e)),!1===x&&(C=document.documentElement.style.overflow,document.documentElement.style.overflow="hidden"),document.getElementById(c).onload=()=>{N(),I=setTimeout((()=>{n(1,O=!1),n(2,A=!0),N()}),1e4)}})),W((()=>{document.documentElement.style.overflow=C,st.setIsIframeReady(!1)})),e.$$.update=()=>{2097152&e.$$.dirty&&n(20,({controller:o={},config:r={}}=B),o,(n(19,r),n(21,B))),1048576&e.$$.dirty&&n(0,({is_iframe_ready:i,is_show_iframe:s,is_connect_live:d}=o),i,(n(16,d),n(20,o),n(21,B))),524288&e.$$.dirty&&n(13,({iframe_config:u,z_index:l,group_number:_,custom_config:f,popup_content_height:g=0,is_not_popup:h=!1}=r),u,(n(12,l),n(19,r),n(21,B)),(n(11,_),n(19,r),n(21,B)),(n(18,f),n(19,r),n(21,B)),(n(10,g),n(19,r),n(21,B)),(n(9,h),n(19,r),n(21,B))),262144&e.$$.dirty&&n(17,({custom_iframe_container_element_id:b="",iframe_custom_styling:y="",overlay_custom_styling:w="",loader_container_custom_styling:$="",is_disable_scrolling:x=!1,is_isolated:E=!1}=f),b,(n(8,y),n(18,f),n(19,r),n(21,B)),(n(7,w),n(18,f),n(19,r),n(21,B)),(n(6,$),n(18,f),n(19,r),n(21,B)),(n(15,E),n(18,f),n(19,r),n(21,B))),131072&e.$$.dirty&&n(4,z=b||a),65536&e.$$.dirty&&n(14,S=!1===d?p:m),49152&e.$$.dirty&&n(5,k=E?`${S}/isolated`:S),1&e.$$.dirty&&i&&(N(),n(1,O=!1))},[i,O,A,j,z,k,$,w,y,h,g,_,l,u,S,E,d,b,f,r,o,B,function(){n(3,j=window.innerHeight)}]}class $t extends he{constructor(e){super(),ge(this,e,vt,wt,C,{})}}const xt="IN_STORE_APPOINTMENT",Et="VIRTUAL_APPOINTMENT";function zt(e){if(-1!==[p,m].indexOf(e.origin)){const{data:t={}}=e,{code:n=""}=t;if("MESSAGE_HIDE_IFRAME"===n&&st.hideIframe(),"MESSAGE_IFRAME_READY"===n&&(g("Iframe has been loaded successfully",!0),st.setIsIframeReady(!0)),"MESSAGE_ADJUST_IFRAME_HEIGHT"===n){const{height:e=0}=t;st.setPopupContentHeight(e)}if("MESSAGE_REQUEST_CUSTOMER_DATA"===n){const{[u]:e={}}=window,{first_name:t="",last_name:n="",email:o="",phone:r=""}=e;h({message:{code:"MESSAGE_SEND_CUSTOMER_DATA",customer_data:{first_name:t,last_name:n,email:o,phone_number:r}},origin:p})}if("MESSAGE_REQUEST_PREVIEW_CONFIG"===n&&"function"==typeof window.Brauz_book_a_stylist_send_preview_data&&window.Brauz_book_a_stylist_send_preview_data(),"MESSAGE_ON_DIALOG_SECTION_CHANGE"===n){const{Brauz_book_a_stylist_preferences_and_customization_config:e={}}=window,{is_enable_webhook:n=!1}=e;!0===n&&"function"==typeof window.Brauz_open_book_a_stylist_event_webhook&&window.Brauz_open_book_a_stylist_event_webhook({type:"WEBHOOK_RA_FORM_SECTION_CHANGED",data:t})}}}function St(e){let t,n;return t=new $t({}),{c(){fe(t.$$.fragment)},m(e,o){pe(t,e,o),n=!0},i(e){n||(le(t.$$.fragment,e),n=!0)},o(e){_e(t.$$.fragment,e),n=!1},d(e){me(t,e)}}}function kt(e){let t,n,o=e[0]&&St();return{c(){o&&o.c(),t=M()},m(e,r){o&&o.m(e,r),T(e,t,r),n=!0},p(e,[n]){e[0]?o?1&n&&le(o,1):(o=St(),o.c(),le(o,1),o.m(t.parentNode,t)):o&&(de(),_e(o,1,1,(()=>{o=null})),ue())},i(e){n||(le(o),n=!0)},o(e){_e(o),n=!1},d(e){o&&o.d(e),e&&P(t)}}}function Bt(e,t,n){let o,r,s,a;return R(e,st,(e=>n(2,a=e))),V((()=>{const e=`Brauz_show_${i.toLowerCase().trim().replace(/ /g,"_")}_config`;window[e]=()=>(console.log(r),r),g(`window.${e} is ready`)})),V((()=>{window.addEventListener("message",zt,!1)})),W((()=>{window.removeEventListener("message",zt,!1)})),V((()=>{window.Brauz_open_book_a_stylist_dialog=({include_product_data:e=!1,selected_store_id:t="",selected_store_gid:n="",selected_agent_id:o="",selected_store_gids:r=[],children_form_ids:i=[],selected_child_form_id:s="",children_form_config:a=[],is_not_popup:c=!1,appointment_number:d="",disable_comms:u=[],flow:l="",customer_email:_=""}={})=>{const f=y();st.setProductData(f),st.updateIframeConfig({include_product_data:e,selected_store_id:t,selected_store_gid:n,selected_store_gids:r,selected_agent_id:o,children_form_ids:i,selected_child_form_id:s,children_form_config:a,is_not_popup:c,appointment_number:d,flow:l,disable_comms:u,customer_email:_}),st.showIframe({is_connect_live:!1})},g("window.Brauz_open_book_a_stylist_dialog is ready")})),V((()=>{window.Brauz_open_book_a_virtual_agent_dialog=({include_product_data:e=!1,selected_store_id:t="",selected_store_gid:n="",selected_agent_id:o="",children_form_ids:r=[],selected_child_form_id:i="",children_form_config:s=[],is_not_popup:a=!1,disable_comms:c=[]}={})=>{const d=y();st.setProductData(d),st.updateIframeConfig({is_go_to_virtual:!0,include_product_data:e,selected_store_id:t,selected_store_gid:n,selected_agent_id:o,children_form_ids:r,selected_child_form_id:i,children_form_config:s,is_not_popup:a,disable_comms:c}),st.showIframe({is_connect_live:!1})},g("window.Brauz_open_book_a_virtual_agent_dialog is ready")})),V((()=>{window.Brauz_open_book_an_in_store_agent_dialog=({include_product_data:e=!1,selected_store_id:t="",selected_store_gid:n="",selected_store_gids:o=[],selected_agent_id:r="",children_form_ids:i=[],selected_child_form_id:s="",children_form_config:a=[],is_not_popup:c=!1,disable_comms:d=[]}={})=>{const u=y();st.setProductData(u),st.updateIframeConfig({is_go_to_in_store:!0,include_product_data:e,selected_store_id:t,selected_store_gid:n,selected_store_gids:o,selected_agent_id:r,children_form_ids:i,selected_child_form_id:s,children_form_config:a,is_not_popup:c,disable_comms:d}),st.showIframe({is_connect_live:!1})},g("window.Brauz_open_book_an_in_store_agent_dialog is ready")})),V((()=>{window.Brauz_open_book_a_stylist_dialog_in_preview_mode=({include_product_data:e=!1,selected_store_id:t="",selected_store_gid:n="",selected_store_gids:o=[],selected_agent_id:r="",children_form_ids:i=[],selected_child_form_id:s="",children_form_config:a=[],is_not_popup:c,disable_comms:d=[]}={})=>{const u=y();st.setProductData(u),st.updateIframeConfig({is_preview_mode:!0,include_product_data:e,selected_store_id:t,selected_store_gid:n,selected_store_gids:o,selected_agent_id:r,children_form_ids:i,selected_child_form_id:s,children_form_config:a,is_not_popup:c,disable_comms:d}),st.showIframe({is_connect_live:!1,is_preview_mode:!0}),g("window.Brauz_open_book_a_stylist_dialog_in_preview_mode is ready")}})),V((()=>{window.Brauz_open_book_a_stylist_dialog_with_selected_store=(e,{include_product_data:t=!1}={})=>{const n=y();st.setProductData(n),st.updateIframeConfig({selected_store_id:e,include_product_data:t}),st.showIframe({is_connect_live:!1})},g("window.Brauz_open_book_a_stylist_dialog_with_selected_store is ready")})),V((()=>{window.Brauz_open_connect_live_dialog=({include_product_data:e=!1}={})=>{const t=y();st.setProductData(t),st.updateIframeConfig({include_product_data:e}),st.showIframe({is_connect_live:!0})},g("window.Brauz_open_connect_live_dialog is ready")})),V((()=>{window.Brauz_open_book_a_stylist_refresh_current_dialog_section=()=>{h({message:{code:"MESSAGE_REFRESH_CURRENT_DIALOG_SECTION"},origin:p})},g("window.Brauz_open_book_a_stylist_refresh_current_dialog_section is ready")})),V((()=>{window.Brauz_book_a_stylist_send_preview_data=()=>{const{Brauz_book_a_stylist_preferences_and_customization_config:e={}}=window,{preferences_config:t=[],customization_config:n={},is_go_to_preferences:o=!1,is_previewing_preferences_config:r=!0,is_previewing_customization_config:i=!0,is_go_to_agent_profile_preview:s=!1,agent_profile_preview_config:a={},is_close_button_disabled:c=!1}=e;h({message:{code:"MESSAGE_SEND_PREVIEW_CONFIG",preferences_config:t,customization_config:n,is_go_to_preferences:o,is_previewing_preferences_config:r,is_previewing_customization_config:i,is_go_to_agent_profile_preview:s,agent_profile_preview_config:a,is_close_button_disabled:c},origin:p})},g("window.Brauz_book_a_stylist_send_preview_data is ready")})),V((()=>{window.Brauz_open_book_a_stylist_go_to_dialog_section=(e="")=>{h({message:{code:"MESSAGE_GO_TO_DIALOG_SECTION",dialog_section:e},origin:p})},g("window.Brauz_open_book_a_stylist_go_to_dialog_section is ready")})),V((()=>{try{const e=$("brauz_trigger_form"),t=$("brauz_flow");let n=$("brauz_store_id");n||(n="");let o=$("brauz_store_gid");o||(o="");let r=$("brauz_child_form_id");r||(r="");let i=$("customer_email");i||(i="");let s=$("brauz_appointment_number");s||(s=""),e&&"true"===e.toLowerCase()&&(t?t.toLowerCase()===xt.toLowerCase()?Brauz_open_book_an_in_store_agent_dialog({selected_store_id:n,selected_store_gid:o,selected_child_form_id:r}):t.toLowerCase()===Et.toLowerCase()?Brauz_open_book_a_virtual_agent_dialog({selected_child_form_id:r}):t.toLowerCase()==="FCOR".toLowerCase()&&Brauz_open_book_a_stylist_dialog({appointment_number:s,customer_email:i,flow:t}):Brauz_open_book_a_stylist_dialog({selected_child_form_id:r,selected_store_id:n,selected_store_gid:o}))}catch(e){}})),e.$$.update=()=>{4&e.$$.dirty&&n(1,({controller:o={},config:r={}}=a),o),2&e.$$.dirty&&n(0,({is_show_iframe:s}=o),s)},[s,o,a]}class Ct extends he{constructor(e){super(),ge(this,e,Bt,kt,C,{})}}let Ot=null;async function At(e,t={},n=(()=>{})){if(!e)return void g(`Missing group_number value [ ${e} ]`,!0);g(`Initialized Book A Stylist service for client [ ${e} ] successfully ✅`,!0),g(`v1.0/020124 - mode [ production ] - URL [ ${f} ]`,!0);const{environment:o="",brauz_api_url:i="",version:s="",preview_mode_config:a={},custom_config:c={}}=t,d=x({group_number:e});await function({element_id:e=r,is_hidden:t=!0}={}){return new Promise((n=>{if(document.getElementById(e))return n();const o=document.createElement("div");
1o.id=r,t&&(o.style.display="none"),document.body.appendChild(o),n()}))}();const u=document.getElementById(r);u?(Ot&&Ot.$destroy(),st.reset(),st.setConfig({group_number:e,environment:o,brauz_api_url:i,client_name:e,version:s,country:"Australia",z_index:9990,custom_config:{...a,...c},customer_id:d}),Ot=new Ct({target:u}),n()):g(`Element with ID [ ${r} ] not found`,!0)}window.Brauz={...window.Brauz,initializeBrauzBookAStylist:(e,t={},n=(()=>{}))=>{At(e,{environment:_,brauz_api_url:f,version:d,...t},n)}},window.Brauz.initializeBrauzBookAnAppointment=window.Brauz.initializeBrauzBookAStylist}();

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.