1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9548],{1182:function(e){e.exports=function(){function e(){return(e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(null,arguments)}var t={ignoreId:!1},i="u">typeof Node,r=i?Node.ELEMENT_NODE:1,l=i?Node.TEXT_NODE:3,n=i?Node.DOCUMENT_TYPE_NODE:10;return function(i,o){var a=e({},t,o),s=i;if(s&&s.id&&!a.ignoreId)return'//*[@id="'+s.id+'"]';for(var d=[];s&&(r===s.nodeType||l===s.nodeType);){for(var u=0,c=!1,f=s.previousSibling;f;)f.nodeType!==n&&f.nodeName===s.nodeName&&u++,f=f.previousSibling;for(f=s.nextSibling;f;){if(f.nodeName===s.nodeName){c=!0;break}f=f.nextSibling}var p=u||c?"["+(u+1)+"]":"";d.push(s.nodeType!=l?(s.prefix?s.prefix+":":"")+s.localName+p:"text()"+(p||"[1]")),s=s.parentNode}return d.length?"/"+d.reverse().join("/"):""}}()},39548:(e,t,i)=>{"use strict";let r,l,n,o,a;i.r(t),i.d(t,{VB_EmptyBlockParentClass:()=>dU,default:()=>dF,isVisualEditorEditing:()=>dV});var s,d=i(51825),u=i(92459),c=i(38374),f=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p=/^\w*$/;let h=function(e,t){if((0,u.A)(e))return!1;var i=typeof e;return!!("number"==i||"symbol"==i||"boolean"==i||null==e||(0,c.A)(e))||p.test(e)||!f.test(e)||null!=t&&e in Object(t)};var v=i(39422),_=i(85810);let b=function(e,t){return(0,u.A)(e)?e:h(e,t)?[e]:(0,v.A)((0,_.A)(e))};var m=i(30253);let g=function(e,t){t=b(t,e);for(var i=0,r=t.length;null!=e&&i<r;)e=e[(0,m.A)(t[i++])];return i&&i==r?e:void 0};var y=i(16019),w=i(26805),C=i(33761);let x=function(e,t,i,r){if(!(0,C.A)(e))return e;t=b(t,e);for(var l=-1,n=t.length,o=n-1,a=e;null!=a&&++l<n;){var s=(0,m.A)(t[l]),d=i;if("__proto__"===s||"constructor"===s||"prototype"===s)break;if(l!=o){var u=a[s];void 0===(d=r?r(u,s,a):void 0)&&(d=(0,C.A)(u)?u:(0,w.A)(t[l+1])?[]:{})}(0,y.A)(a,s,d),a=a[s]}return e},E=function(e,t,i){for(var r=-1,l=t.length,n={};++r<l;){var o=t[r],a=g(e,o);i(a,o)&&x(n,b(o,e),a)}return n},L=function(e,t){return null!=e&&t in Object(e)};var S=i(67903),M=i(52766);let O=function(e,t,i){t=b(t,e);for(var r=-1,l=t.length,n=!1;++r<l;){var o=(0,m.A)(t[r]);if(!(n=null!=e&&i(e,o)))break;e=e[o]}return n||++r!=l?n:!!(l=null==e?0:e.length)&&(0,M.A)(l)&&(0,w.A)(o,l)&&((0,u.A)(e)||(0,S.A)(e))},A=function(e,t){return null!=e&&O(e,t,L)};var T=i(5452),k=i(29703),N=k.A?k.A.isConcatSpreadable:void 0;let R=function(e){return(0,u.A)(e)||(0,S.A)(e)||!!(N&&e&&e[N])},D=function e(t,i,r,l,n){var o=-1,a=t.length;for(r||(r=R),n||(n=[]);++o<a;){var s=t[o];i>0&&r(s)?i>1?e(s,i-1,r,l,n):(0,T.A)(n,s):l||(n[n.length]=s)}return n},H=function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)};var P=Math.max,V=i(90377);let I=function(e){return e};var B=V.A?function(e,t){return(0,V.A)(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:I,U=Date.now,F=(ef=0,ep=0,function(){var e=U(),t=16-(e-ep);if(ep=e,t>0){if(++ef>=800)return arguments[0]}else ef=0;return B.apply(void 0,arguments)})((ev=eh=function(e,t){return null==e?{}:E(e,t,function(t,i){return A(e,i)})},e_=void 0,eb=function(e){return(null==e?0:e.length)?D(e,1):[]},e_=P(void 0===e_?ev.length-1:e_,0),function(){for(var e=arguments,t=-1,i=P(e.length-e_,0),r=Array(i);++t<i;)r[t]=e[e_+t];t=-1;for(var l=Array(e_+1);++t<e_;)l[t]=e[t];return l[e_]=eb(r),H(ev,this,l)}),eh+""),$=i(37846),j=i(11576),W=i(19396),z=i(28071),Z=i(59847),G=i(81019),q=Object.prototype.hasOwnProperty;let Y=function(e){if(null==e)return!0;if((0,W.A)(e)&&((0,u.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,z.A)(e)||(0,G.A)(e)||(0,S.A)(e)))return!e.length;var t=(0,j.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,Z.A)(e))return!(0,$.A)(e).length;for(var i in e)if(q.call(e,i))return!1;return!0},K="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),X=new Uint8Array(16),Q=[];for(let e=0;e<256;++e)Q.push((e+256).toString(16).slice(1));let J=function(e,t,i){if(K&&!t&&!e)return K();let l=(e=e||{}).random??e.rng?.()??function(){if(!r){if("u"<typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(X)}();if(l.length<16)throw Error("Random bytes length must be >= 16");if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t){if((i=i||0)<0||i+16>t.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[i+e]=l[e];return t}return function(e,t=0){return(Q[e[t+0]]+Q[e[t+1]]+Q[e[t+2]]+Q[e[t+3]]+"-"+Q[e[t+4]]+Q[e[t+5]]+"-"+Q[e[t+6]]+Q[e[t+7]]+"-"+Q[e[t+8]]+Q[e[t+9]]+"-"+Q[e[t+10]]+Q[e[t+11]]+Q[e[t+12]]+Q[e[t+13]]+Q[e[t+14]]+Q[e[t+15]]).toLowerCase()}(l)};var ee=i(87358),et=class{static logEvent(e,t){void 0!==ee&&e("Live_Preview_SDK:",...t)}static error(...e){this.logEvent(console.error,e)}static warn(...e){this.logEvent(console.warn,e)}static debug(...e){this.logEvent(console.debug,e)}
1};function ei(){return"u">typeof window}function er(){return!!ei()&&!!new URLSearchParams(window.location.search).get("preview_timestamp")}function el(){return!!ei()&&!!new URLSearchParams(window.location.search).get("builder")}function en(){return!!ei()&&!!new URLSearchParams(window.location.search).get("preview_share")}function eo(){try{return window.self!==window.top}catch(e){return!0}}function ea(){try{if(ei())return!!window.opener;return!1}catch(e){return!1}}var es=((em=es||{})[em.PREVIEW=1]="PREVIEW",em[em.BUILDER=2]="BUILDER",em),ed=((eg=ed||{}).PREVIEW="preview",eg.PREVIEW_SHARE="preview-share",eg.BUILDER="builder",eg.INDEPENDENT="independent",eg);function eu(){return{ssr:!0,enable:!0,debug:!1,cleanCslpOnProduction:!0,editButton:{enable:!0,exclude:[],position:"top",includeByQueryParameter:!0},editInVisualBuilderButton:{enable:!0,position:"bottom-right"},overlayPropagation:{enable:!1},mode:"preview",stackDetails:{apiKey:"",environment:"",branch:""},clientUrlParams:{protocol:"https",host:"app.contentstack.com",port:443},stackSdk:{live_preview:{},environment:""},runScriptsOnUpdate:!1,enableLivePreviewOutsideIframe:void 0}}function ec(){return{ssr:!0,enable:!0,debug:!1,cleanCslpOnProduction:!0,editButton:{enable:!0,exclude:[],position:"top",includeByQueryParameter:!0},editInVisualBuilderButton:{enable:!0,position:"bottom-right"},overlayPropagation:{enable:!1},hash:"",mode:1,windowType:ed.INDEPENDENT,stackDetails:{apiKey:"",environment:"",contentTypeUid:"",entryUid:"",locale:"en-us",branch:"main",masterLocale:"en-us"},clientUrlParams:{protocol:"https",host:"app.contentstack.com",port:443,url:"https://app.contentstack.com:443"},stackSdk:{live_preview:{},headers:{api_key:""},environment:""},runScriptsOnUpdate:!1,onChange(){},elements:{highlightedElement:null},collab:{enable:!1,fromShare:!1,pauseFeedback:!1,isFeedbackMode:!1,inviteMetadata:{currentUser:{email:"",uid:""},users:[],inviteUid:""},payload:[]},enableLivePreviewOutsideIframe:void 0,pageContext:null}}var ef,ep,eh,ev,e_,eb,em,eg,ey,ew,eC,ex,eE,eL,eS,eM,eO,eA,eT,ek,eN,eR,eD,eH={},eP=[],eV=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,eI=Array.isArray;function eB(e,t){for(var i in t)e[i]=t[i];return e}function eU(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function eF(e,t,i){var r,l,n,o={};for(n in t)"key"==n?r=t[n]:"ref"==n?l=t[n]:o[n]=t[n];if(arguments.length>2&&(o.children=arguments.length>3?ey.call(arguments,2):i),"function"==typeof e&&null!=e.defaultProps)for(n in e.defaultProps)void 0===o[n]&&(o[n]=e.defaultProps[n]);return e$(e,o,r,l,null)}function e$(e,t,i,r,l){var n={type:e,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==l?++eC:l,__i:-1,__u:0};return null==l&&null!=ew.vnode&&ew.vnode(n),n}function ej(e){return e.children}function eW(e,t){this.props=e,this.context=t}function ez(e,t){if(null==t)return e.__?ez(e.__,e.__i+1):null;for(var i;t<e.__k.length;t++)if(null!=(i=e.__k[t])&&null!=i.__e)return i.__e;return"function"==typeof e.type?ez(e):null}function eZ(e){(!e.__d&&(e.__d=!0)&&ex.push(e)&&!eG.__r++||eE!=ew.debounceRendering)&&((eE=ew.debounceRendering)||eL)(eG)}function eG(){try{for(var e,t=1;ex.length;)ex.length>t&&ex.sort(eS),e=ex.shift(),t=ex.length,function(e){if(e.__P&&e.__d){var t=e.__v,i=t.__e,r=[],l=[],n=eB({},t);n.__v=t.__v+1,ew.vnode&&ew.vnode(n),eJ(e.__P,n,t,e.__n,e.__P.namespaceURI,32&t.__u?[i]:null,r,null==i?ez(t):i,!!(32&t.__u),l),n.__v=t.__v,n.__.__k[n.__i]=n,e1(r,n,l),t.__e=t.__=null,n.__e!=i&&function e(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some(function(e){if(null!=e&&null!=e.__e)return t.__e=t.__c.base=e.__e}),e(t)}(n)}}(e)}finally{ex.length=eG.__r=0}}function eq(e,t,i,r,l,n,o,a,s,d,u){var c,f,p,h,v,_,b,m=r&&r.__k||eP,g=t.length;for(s=function(e,t,i,r,l){var n,o,a,s,d,u=i.length,c=u,f=0;for(e.__k=Array(l),n=0;n<l;n++)null!=(o=t[n])&&"boolean"!=typeof o&&"function"!=typeof o?("string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?o=e.__k[n]=e$(null,o,null,null,null):eI(o)?o=e.__k[n]=e$(ej,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?o=e.__k[n]=e$(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[n]=o,s=n+f,o.__=e,o.__b=e.__b+1,a=null,-1!=(d=o.__i=function(e,t,i,r){var l,n,o,a=e.key,s=e.type,d=t[i],u=null!=d&&0==(2&d.__u);if(null===d&&null==a||u&&a==d.key&&s==d.type)return i;if(r>+!!u){for(l=i-1,n=i+1;l>=0||n<t.length;)if(null!=(d=t[o=l>=0?l--:n++])&&0==(2&d.__u)&&a==d.key&&s==d.type)return o}return -1}
vendor: 4,548 bytes, line 1
1(o,i,s,c))&&(c--,(a=i[d])&&(a.__u|=2)),null==a||null==a.__v?(-1==d&&(l>u?f--:l<u&&f++),"function"!=typeof o.type&&(o.__u|=4)):d!=s&&(d==s-1?f--:d==s+1?f++:(d>s?f--:f++,o.__u|=4))):e.__k[n]=null;if(c)for(n=0;n<u;n++)null!=(a=i[n])&&0==(2&a.__u)&&(a.__e==r&&(r=ez(a)),function e(t,i,r){var l,n;if(ew.unmount&&ew.unmount(t),(l=t.ref)&&(l.current&&l.current!=t.__e||e2(l,null,i)),null!=(l=t.__c)){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(e){ew.__e(e,i)}l.base=l.__P=l.__n=null}if(l=t.__k)for(n=0;n<l.length;n++)l[n]&&e(l[n],i,r||"function"!=typeof t.type);r||eU(t.__e),t.__c=t.__=t.__e=void 0}(a,a));return r}(i,t,m,s,g),c=0;c<g;c++)null!=(p=i.__k[c])&&(f=-1!=p.__i&&m[p.__i]||eH,p.__i=c,_=eJ(e,p,f,l,n,o,a,s,d,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&e2(f.ref,null,p),u.push(p.ref,p.__c||h,p)),null==v&&null!=h&&(v=h),(b=!!(4&p.__u))||f.__k===p.__k?(s=function e(t,i,r,l){var n,o;if("function"==typeof t.type){for(n=t.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=t,i=e(n[o],i,r,l));return i}t.__e!=i&&(l&&(i&&t.type&&!i.parentNode&&(i=ez(t)),r.insertBefore(t.__e,i||null)),i=t.__e);do i=i&&i.nextSibling;while(null!=i&&8==i.nodeType);return i}(p,s,e,b),b&&f.__e&&(f.__e=null)):"function"==typeof p.type&&void 0!==_?s=_:h&&(s=h.nextSibling),p.__u&=-7);return i.__e=v,s}function eY(e,t){return t=t||[],null==e||"boolean"==typeof e||(eI(e)?e.some(function(e){eY(e,t)}):t.push(e)),t}function eK(e,t,i){"-"==t[0]?e.setProperty(t,null==i?"":i):e[t]=null==i?"":"number"!=typeof i||eV.test(t)?i:i+"px"}function eX(e,t,i,r,l){var n,o;e:if("style"==t)if("string"==typeof i)e.style.cssText=i;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)i&&t in i||eK(e.style,t,"");if(i)for(t in i)r&&i[t]==r[t]||eK(e.style,t,i[t])}else if("o"==t[0]&&"n"==t[1])n=t!=(t=t.replace(eT,"$1")),t=(o=t.toLowerCase())in e||"onFocusOut"==t||"onFocusIn"==t?o.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+n]=i,i?r?i[eA]=r[eA]:(i[eA]=ek,e.addEventListener(t,n?eR:eN,n)):e.removeEventListener(t,n?eR:eN,n);else{if("http://www.w3.org/2000/svg"==l)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==i?"":i;break e}catch(e){}"function"==typeof i||(null==i||!1===i&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==i?"":i))}}function eQ(e){return function(t){if(this.l){var i=this.l[t.type+e];if(null==t[eO])t[eO]=ek++;else if(t[eO]<i[eA])return;return i(ew.event?ew.event(t):t)}}}function eJ(e,t,i,r,l,n,o,a,s,d){var u,c,f,p,h,v,_,b,m,g,y,w,C,x,E,L,S=t.type;if(void 0!==t.constructor)return null;128&i.__u&&(s=!!(32&i.__u),n=[a=t.__e=i.__e]),(u=ew.__b)&&u(t);e:if("function"==typeof S){c=o.length;try{if(m=t.props,g=S.prototype&&S.prototype.render,y=(u=S.contextType)&&r[u.__c],w=u?y?y.props.value:u.__:r,i.__c?b=(f=t.__c=i.__c).__=f.__E:(g?t.__c=f=new S(m,w):(t.__c=f=new eW(m,w),f.constructor=S,f.render=e5),y&&y.sub(f),f.state||(f.state={}),f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),g&&null==f.__s&&(f.__s=f.state),g&&null!=S.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=eB({},f.__s)),eB(f.__s,S.getDerivedStateFromProps(m,f.__s))),h=f.props,v=f.state,f.__v=t,p)g&&null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),g&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(g&&null==S.getDerivedStateFromProps&&m!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(m,w),t.__v==i.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(m,f.__s,w)){t.__v!=i.__v&&(f.props=m,f.state=f.__s,f.__d=!1),t.__e=i.__e,t.__k=i.__k,t.__k.some(function(e){e&&(e.__=t)}),eP.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&o.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(m,f.__s,w),g&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(h,v,_)})}if(f.context=w,f.props=m,f.__P=e,f.__e=!1,C=ew.__r,x=0,g)f.state=f.__s,f.__d=!1,C&&C(t),u=f.render(f.props,f.state,f.context),eP.push.apply(f.__h,f._sb),f._sb=[];else do f.__d=!1,C&&C(t),u=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++x<25);f.state=f.__s,null!=f.getChildContext&&(r=eB(eB({},r),f.getChildContext())),g&&!p&&null!=f.getSnapshotBeforeUpdate&&(_=f.getSnapshotBeforeUpdate(h,v)),E=null!=u&&u.type===ej&&null==u.key?function e(t){return"object"!=typeof t||null==t||t.__b>0?t:eI(t)?t.map(e):void 0!==t.constructor?null:eB({},t)}(u.props.children):u,a=eq(e,eI(E)?E:[E],t,i,r,l,n,o,a,s,d),f.base
vendor: 3,800 bytes, line 1
1=t.__e,t.__u&=-161,f.__h.length&&o.push(f),b&&(f.__E=f.__=null)}catch(e){if(o.length=c,t.__v=null,s||null!=n){if(e.then){for(t.__u|=s?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;null!=n&&(n[n.indexOf(a)]=null),t.__e=a}else if(null!=n)for(L=n.length;L--;)eU(n[L])}else t.__e=i.__e;null==t.__k&&(t.__k=i.__k||[]),e.then||function e(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(e))}(t),ew.__e(e,t,i)}}else null==n&&t.__v==i.__v?(t.__k=i.__k,t.__e=i.__e):a=t.__e=function(e,t,i,r,l,n,o,a,s){var d,u,c,f,p,h,v,_=i.props||eH,b=t.props,m=t.type;if("svg"==m?l="http://www.w3.org/2000/svg":"math"==m?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=n){for(d=0;d<n.length;d++)if((p=n[d])&&"setAttribute"in p==!!m&&(m?p.localName==m:3==p.nodeType)){e=p,n[d]=null;break}}if(null==e){if(null==m)return document.createTextNode(b);e=document.createElementNS(l,m,b.is&&b),a&&(ew.__m&&ew.__m(t,n),a=!1),n=null}if(null==m)_===b||a&&e.data==b||(e.data=b);else{if(n="textarea"==m&&null!=b.defaultValue?null:n&&ey.call(e.childNodes),!a&&null!=n)for(_={},d=0;d<e.attributes.length;d++)_[(p=e.attributes[d]).name]=p.value;for(d in _)p=_[d],"dangerouslySetInnerHTML"==d?c=p:"children"==d||d in b||"value"==d&&"defaultValue"in b||"checked"==d&&"defaultChecked"in b||eX(e,d,null,p,l);for(d in b)p=b[d],"children"==d?f=p:"dangerouslySetInnerHTML"==d?u=p:"value"==d?h=p:"checked"==d?v=p:a&&"function"!=typeof p||_[d]===p||eX(e,d,p,_[d],l);if(u)a||c&&(u.__html==c.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(c&&(e.innerHTML=""),eq("template"==t.type?e.content:e,eI(f)?f:[f],t,i,r,"foreignObject"==m?"http://www.w3.org/1999/xhtml":l,n,o,n?n[0]:i.__k&&ez(i,0),a,s),null!=n)for(d=n.length;d--;)eU(n[d]);a&&"textarea"!=m||(d="value","progress"==m&&null==h?e.removeAttribute("value"):null==h||h===e[d]&&("progress"!=m||h)&&("option"!=m||h==_[d])||eX(e,d,h,_[d],l),d="checked",null!=v&&v!=e[d]&&eX(e,d,v,_[d],l))}return e}(i.__e,t,i,r,l,n,o,s,d);return(u=ew.diffed)&&u(t),128&t.__u?void 0:a}function e1(e,t,i){for(var r=0;r<i.length;r++)e2(i[r],i[++r],i[++r]);ew.__c&&ew.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){ew.__e(e,t.__v)}})}function e2(e,t,i){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){ew.__e(e,i)}}function e5(e,t,i){return this.constructor(e,i)}function e0(e,t,i){var r,l,n,o;t==document&&(t=document.documentElement),ew.__&&ew.__(e,t),l=(r="function"==typeof i)?null:i&&i.__k||t.__k,n=[],o=[],eJ(t,e=(!r&&i||t).__k=eF(ej,null,[e]),l||eH,eH,t.namespaceURI,!r&&i?[i]:l?null:t.firstChild?ey.call(t.childNodes):null,n,!r&&i?i:l?l.__e:t.firstChild,r,o),e1(n,e,o),e.props.children=null}function e3(e,t){e0(e,t,e3)}function e7(e,t,i){var r,l,n,o,a=eB({},e.props);for(n in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)"key"==n?r=t[n]:"ref"==n?l=t[n]:a[n]=void 0===t[n]&&null!=o?o[n]:t[n];return arguments.length>2&&(a.children=arguments.length>3?ey.call(arguments,2):i),e$(e.type,a,r||e.key,l||e.ref,null)}ey=eP.slice,ew={__e:function(e,t,i,r){for(var l,n,o;t=t.__;)if((l=t.__c)&&!l.__)try{if((n=l.constructor)&&null!=n.getDerivedStateFromError&&(l.setState(n.getDerivedStateFromError(e)),o=l.__d),null!=l.componentDidCatch&&(l.componentDidCatch(e,r||{}),o=l.__d),o)return l.__E=l}catch(t){e=t}throw e}},eC=0,eW.prototype.setState=function(e,t){var i;i=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=eB({},this.state),"function"==typeof e&&(e=e(eB({},i),this.props)),e&&eB(i,e),null!=e&&this.__v&&(t&&this._sb.push(t),eZ(this))},eW.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),eZ(this))},eW.prototype.render=ej,ex=[],eL="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,eS=function(e,t){return e.__v.__b-t.__v.__b},eG.__r=0,eO="__d"+(eM=Math.random().toString(8)),eA="__a"+eM,eT=/(PointerCapture)$|Capture$/i,ek=0,eN=eQ(!1),eR=eQ(!0),eD=0;var e6,e8,e4,e9,te=0,tt=[],ti=ew,tr=ti.__b,tl=ti.__r,tn=ti.diffed,to=ti.__c,ta=ti.unmount,ts=ti.__;function td(e,t){ti.__h&&ti.__h(e8,e,te||t),te=0;var i=e8.__H||(e8.__H={__:[],__h:[]});return e>=i.__.length&&i.__.push({}),i.__[e]}function tu(e){return te=1,tc(tC,e)}function tc(e,t,i){var r=td(e6++,2);if(r.t=e,!r.__c&&(r.__=[i?i(t):tC(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],i=r.t(t,e);t!==i&&(r.__N=[i,r.__[1]],r.__c.setState({}))}],r.__c=e8,!e8.__f)){var l=function(e,t,i){if(!r.__c.__H)return!0;var l=!1,o=r.__c.props!==e;if(r.__c.__H.__.some(function(e){if(e.__N){l=!0;var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),n){var a=n.call(this,e,t,i);return l?a||o:a}return!l||o};e8.__f=!0;var n=e8.shouldComponentUpdate,o=e8.componentWillUpdate;e8.componentWillUpdate=function(e,t,i){if(this.__e){var r=n;n=void 0,l(e,t,i),n=r}o&&o.call(this,e,t,i)},e8.shouldComponentUpdate=l}return r.__N||r.__}function tf(e,t){var i=td(e6++,3);!ti.__s&&tw(i.__H,t)&&(i.__=e,i.u=t,e8.__H.__h.push(i))}function tp(e){return te=5,th(function(){return{current:e}},[])}function th(e,t){var i=td(e6++,7);return tw(i.__H,t)&&(i.__=e(),i.__H=t,i.__h=e),i.__}function tv(e,t){return te=8,th(function(){return e},t)}function t_(e){var t=e8.context[e.__c],i=td(e6++,9);return i.c=e,t?(null==i.__&&(i.__=!0,t.sub(e8)),t.props.value):e.__}function tb(){for(var e;e=tt.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(tg),t.__h.some(ty),t.__h=[]}catch(i){t.__h=[],ti.__e(i,e.__v)}}}ti.__b=function(e){e8=null,tr&&tr(e)},ti.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ts&&ts(e,t)},ti.__r=function(e){tl&&tl(e),e6=0;var t=(e8=e.__c).__H;t&&(e4===e8?(t.__h=[],e8.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(tg),t.__h.some(ty),t.__h=[],e6=0)),e4=e8},ti.diffed=function(e){tn&&tn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==tt.push(t)&&e9===ti.requestAnimationFrame||((e9=ti.requestAnimationFrame)||function(e){var t,i=function(){clearTimeout(r),tm&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(i,35);tm&&(t=requestAnimationFrame(i))})(tb)),t.__H.__.some(function(e){e.u&&(e.__H=e.u,e.u=void 0)})),e4=e8=null},ti.__c=function(e,t){t.some(function(e){try{e.__h.some(tg),e.__h=e.__h.filter(function(e){return!e.__||ty(e)})}catch(i){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ti.__e(i,e.__v)}}),to&&to(e,t)},ti.unmount=function(e){ta&&ta(e);var t,i=e.__c;i&&i.__H&&(i.__H.__.some(function(e){try{tg(e)}catch(e){t=e}}),i.__H=void 0,t&&ti.__e(t,i.__v))};var tm="function"==typeof requestAnimationFrame;function tg(e){var t=e8,i=e.__c;"function"==typeof i&&(e.__c=void 0,i()),e8=t}function ty(e){var t=e8;e.__c=e.__(),e8=t}function tw(e,t){return!e||e.length!==t.length||t.some(function(t,i){return t!==e[i]})}function tC(e,t){return"function"==typeof t?t(e):t}var tx=Symbol.for("preact-signals");function tE(){if(tA>1)tA--;else{var e,t=!1,i=tR;for(tR=void 0;void 0!==i;){var r=i.S;if(r.v===i.v)for(var l=r.t;void 0!==l;l=l.x)l.i===i.i&&(l.i=r.i);i=i.o}for(;void 0!==tO;){var n=tO;for(tO=void 0,tT++;void 0!==n;){var o=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&tI(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=o}}if(tT=0,tA--,t)throw e}}var tL,tS=void 0;function tM(e){var t=tS,i=tL;tS=void 0,tL=void 0;try{return e()}finally{tS=t,tL=i}}var tO=void 0,tA=0,tT=0,tk=0,tN=0,tR=void 0,tD=0;function tH(e){if(void 0!==tS){var t=e.n;if(void 0===t||t.t!==tS)return t={i:0,S:e,p:tS.s,n:void 0,t:tS,e:void 0,x:void 0,r:t},void 0!==tS.s&&(tS.s.n=t),tS.s=t,e.n=t,32&tS.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=tS.s,t.n=void 0,tS.s.n=t,tS.s=t),t}}function tP(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function tV(e,t){return new tP(e,t)}function tI(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tB(e){for(var t=e.s;void 0!==t;t=t.n){var i=t.S.n;if(void 0!==i&&(t.r=i),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function tU(e){for(var t=e.s,i=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):i=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=i}function tF(e,t){tP.call(this,void 0,t),this.x=e,this.s=void 0,this.g=tD-1,this.f=4}function t$(e){var t=e.m;if(e.m=void 0,"function"==typeof t){tA++;var i=tS;tS=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,tj(e),t}finally{tS=i,tE()}}}function tj(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,t$(e)}function tW(e){if(tS!==this)throw Error("Out-of-order effect");tU(this),tS=e,this.f&=-2,8&this.f&&tj(this),tE()}function tz(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,tL&&tL.push(this)}function tZ(e,t){var i=new tz(e,t);try{i.c()}catch(e){throw i.d(),e}var r=i.d.bind(i);return r[Symbol.dispose]=r,r}tP.prototype.brand=tx,tP.prototype.h=function(){return!0},tP.prototype.S=function(e){var t=this,i=this.t;i!==e&&void 0===e.e&&(e.x=i,this.t=e,void 0!==i?i.e=e:tM(function(){var e;null==(e=t.W)||e.call(t)}))},tP.prototype.U=function(e){var t=this;if(void 0!==this.t){var i=e.e,r=e.x;void 0!==i&&(i.x=r,e.e=void 0),void 0!==r&&(r.e=i,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&tM(function(){var e;null==(e=t.Z)||e.call(t)}))}},tP.prototype.subscribe=function(e){var t=this;return tZ(function(){var i=t.value;tM(function(){return e(i)})},{name:"sub"})},tP.prototype.valueOf=function(){return this.value},tP.prototype.toString=function(){return this.value+""},tP.prototype.toJSON=function(){return this.value},tP.prototype.peek=function(){var e=this;return tM(function(){return e.value})},Object.defineProperty(tP.prototype,"value",{get:function(){var e=tH(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(tT>100)throw Error("Cycle detected");0!==tA&&0===tT&&this.l!==tN&&(this.l=tN,tR={S:this,v:this.v,i:this.i,o:tR}),this.v=e,this.i++,tD++,tA++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{tE()}}}}),tF.prototype=new tP,tF.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f)||(this.f&=-5,this.g===tD))return!0;
1if(this.g=tD,this.f|=1,this.i>0&&!tI(this))return this.f&=-2,!0;var e=tS;try{tB(this),tS=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return tS=e,tU(this),this.f&=-2,!0},tF.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}tP.prototype.S.call(this,e)},tF.prototype.U=function(e){if(void 0!==this.t&&(tP.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},tF.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(tF.prototype,"value",{get:function(){if(1&this.f)throw Error("Cycle detected");var e=tH(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),tz.prototype.c=function(){var e=this.S();try{if(8&this.f||void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},tz.prototype.S=function(){if(1&this.f)throw Error("Cycle detected");this.f|=1,this.f&=-9,t$(this),tB(this),tA++;var e=tS;return tS=this,tW.bind(this,e)},tz.prototype.N=function(){2&this.f||(this.f|=2,this.u=tO,tO=this)},tz.prototype.d=function(){this.f|=8,1&this.f||tj(this)},tz.prototype.dispose=function(){this.d()};var tG,tq,tY="u">typeof window&&!!window.__PREACT_SIGNALS_DEVTOOLS__,tK=[];function tX(e,t){ew[e]=t.bind(null,ew[e]||function(){})}function tQ(e){if(tq){var t=tq;tq=void 0,t()}tq=e&&e.S()}function tJ(e){var t,i=this,r=e.data,l=(t=r,th(function(){return tV(t,void 0)},[]));l.name="ReactiveDom",l.value=r;var n=th(function(){for(var e=i.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}var t=new tF(function(){var e=l.value.value;return 0===e?0:!0===e?"":e||""},void 0),r=new tF(function(){var e;return!Array.isArray(t.value)&&(null==(e=t.value)||void 0!==e.constructor)},void 0),n=tZ(function(){if(this.N=t5,r.value){var e=t.value;i.__v&&i.__v.__e&&3===i.__v.__e.nodeType&&(i.__v.__e.data=e)}}),o=i.__$u.d;return i.__$u.d=function(){n(),o.call(this)},[r,t]},[]),o=n[0],a=n[1];return o.value?a.peek():a.value}tZ(function(){tG=this.N})(),tJ.displayName="ReactiveTextNode",Object.defineProperties(tP.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:tJ},props:{configurable:!0,get:function(){var e=this;return{data:{get value(){return e.value}}}}},__b:{configurable:!0,value:1}}),tX("__b",function(e,t){if(tQ(),"string"==typeof t.type){var i,r=t.props;for(var l in r)if("children"!==l){var n=r[l];n instanceof tP&&(i||(t.__np=i={}),i[l]=n,r[l]=n.peek())}}e(t)}),tX("__r",function(e,t){if(e(t),t.type!==ej){tQ();var i,r,l=t.__c;l&&(l.__$f&=-2,void 0===(r=l.__$u)&&(tZ(function(){i=this},{name:"function"==typeof t.type?t.type.displayName||t.type.name:""}),i.c=function(){var e;tY&&(null==(e=this.y)||e.call(this)),l.__$f|=1,l.setState({})},l.__$u=r=i)),tQ(r)}}),tX("__e",function(e,t,i,r){tQ(),e(t,i,r)}),tX("diffed",function(e,t){if(tQ(),"string"==typeof t.type&&(i=t.__e)){var i,r=t.__np,l=t.props,n=i.U;if(n)for(var o in n){var a=n[o];void 0===a||r&&o in r||(a.d(),n[o]=void 0)}if(r)for(var s in n||(n={},i.U=n),r){var d=n[s],u=r[s];void 0===d?(d=function(e,t,i,r){var l=t in e&&void 0===e.ownerSVGElement,n=tV(i);return{o:function(e,t){n.value=e,r=t},d:tZ(function(){this.N=t5;var i=n.value.value;r[t]!==i&&(r[t]=i,l?e[t]=i:null!=i&&(!1!==i||"-"===t[4])?e.setAttribute(t,i):e.removeAttribute(t))})}}(i,s,u,l),n[s]=d):d.o(u,l)}}e(t)}),tX("unmount",function(e,t){if("string"==typeof t.type){var i=t.__e;if(i){var r=i.U;if(r)for(var l in i.U=void 0,r){var n=r[l];n&&n.d()}}var o=t.__np;if(o){var a=t.props;for(var s in o)a[s]=o[s]}t.__np=void 0}else{var d=t.__c;if(d){var u=d.__$u;u&&(d.__$u=void 0,u.d())}}e(t)}),tX("__h",function(e,t,i,r){r<3&&(t.__$f|=2),e(t,i,r)}),eW.prototype.shouldComponentUpdate=function(e,t){if(this.__R)return!0;var i=this.__$u,r=i&&void 0!==i.s;for(var l in t)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){var n=2&this.__$f;if(!(r||n||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var o in e)if("__source"!==o&&e[o]!==this.props[o])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};var t1=function(e){queueMicrotask(function(){queueMicrotask(e)})};function t2(){!function(e){if(tA>0)return e();tN=++tk,tA++;try{return e()}finally{tE()}}(function(){for(var e;e=tK.shift();)tG.call(e)})}function t5(){1===tK.push(this)&&(ew.requestAnimationFrame||t1)(t2)}var t0=new WeakMap,t3=new WeakMap,t7=new WeakMap,t6=new WeakSet,t8=new WeakMap,t4=/^\$/,t9=Object.getOwnPropertyDescriptor,ie=function(e,t){var i=new Proxy(e,t);return t6.add(i),i},it=function(){throw Error("Don't mutate the signals directly.")}
1,ii=function(e){return function(t,i,r){var l,n=e||"$"===i[0];if(!e&&n&&Array.isArray(t)){if("$"===i)return t7.has(t)||t7.set(t,ie(t,il)),t7.get(t);n="$length"===i}t0.has(r)||t0.set(r,new Map);var o=t0.get(r),a=n?i.replace(t4,""):i;if(o.has(a)||"function"!=typeof(null==(l=t9(t,a))?void 0:l.get)){var s=Reflect.get(t,a,r);if(n&&"function"==typeof s)return;if("symbol"==typeof a&&io.has(a))return s;o.has(a)||(is(s)&&(t3.has(s)||t3.set(s,ie(s,ir)),s=t3.get(s)),o.set(a,tV(s)))}else o.set(a,new tF(function(){return Reflect.get(t,a,r)},void 0));return n?o.get(a):o.get(a).value}},ir={get:ii(!1),set:function(e,t,i,r){if("function"==typeof(null==(l=t9(e,t))?void 0:l.set))return Reflect.set(e,t,i,r);t0.has(r)||t0.set(r,new Map);var l,n=t0.get(r);if("$"===t[0]){i instanceof tP||it();var o=t.replace(t4,"");return n.set(o,i),Reflect.set(e,o,i.peek(),r)}var a=i;is(i)&&(t3.has(i)||t3.set(i,ie(i,ir)),a=t3.get(i));var s=!(t in e),d=Reflect.set(e,t,i,r);return n.has(t)?n.get(t).value=a:n.set(t,tV(a)),s&&t8.has(e)&&t8.get(e).value++,Array.isArray(e)&&n.has("length")&&(n.get("length").value=e.length),d},deleteProperty:function(e,t){"$"===t[0]&&it();var i=t0.get(t3.get(e)),r=Reflect.deleteProperty(e,t);return i&&i.has(t)&&(i.get(t).value=void 0),t8.has(e)&&t8.get(e).value++,r},ownKeys:function(e){return t8.has(e)||t8.set(e,tV(0)),t8._=t8.get(e).value,Reflect.ownKeys(e)}},il={get:ii(!0),set:it,deleteProperty:it},io=new Set(Object.getOwnPropertyNames(Symbol).map(function(e){return Symbol[e]}).filter(function(e){return"symbol"==typeof e})),ia=new Set([Object,Array]),is=function(e){return"object"==typeof e&&null!==e&&ia.has(e.constructor)&&!t6.has(e)},id=Object.prototype.hasOwnProperty;let iu=function(e,t){return null!=e&&id.call(e,t)},ic=function(e,t){return null!=e&&O(e,t,iu)},ip=function(e,t,i){return null==e?e:x(e,t,i)};var ih=class{static replace(e=eu()){let t=iv.get(),i=e.stackSdk||t.stackSdk;if(iv.set("enable",e.enable??i.live_preview?.enable??t.enable),iv.set("ssr",i.live_preview?.ssr??e.ssr??"object"!=typeof e.stackSdk??!0),iv.set("runScriptsOnUpdate",e.runScriptsOnUpdate??i.live_preview?.runScriptsOnUpdate??t.runScriptsOnUpdate),iv.set("stackSdk",e.stackSdk??t.stackSdk),iv.set("cleanCslpOnProduction",e.cleanCslpOnProduction??i.live_preview?.cleanCslpOnProduction??t.cleanCslpOnProduction),iv.set("editButton",{enable:e.editButton?.enable??i.live_preview?.editButton?.enable??t.editButton.enable,exclude:Array.isArray(e.editButton?.exclude)&&e.editButton?.exclude?e.editButton?.exclude:Array.isArray(i.live_preview?.exclude)&&i.live_preview?.exclude?i.live_preview?.exclude:t.editButton.exclude??[],position:e.editButton?.position??i.live_preview?.position??t.editButton.position??"top",includeByQueryParameter:e.editButton?.includeByQueryParameter??i.live_preview?.includeByQueryParameter??t.editButton.includeByQueryParameter??!0}),iv.set("editInVisualBuilderButton",{enable:e.editInVisualBuilderButton?.enable??i.live_preview?.editInVisualBuilderButton?.enable??t.editInVisualBuilderButton.enable,position:e.editInVisualBuilderButton?.position??i.live_preview?.position??t.editInVisualBuilderButton.position??"bottom-right"}),iv.set("overlayPropagation",{enable:e.overlayPropagation?.enable??i.live_preview?.overlayPropagation?.enable??t.overlayPropagation.enable}),iv.set("enableLivePreviewOutsideIframe",e.enableLivePreviewOutsideIframe??t.enableLivePreviewOutsideIframe),(e=>{let t=iv.get(),i=t.clientUrlParams;if(iv.set("clientUrlParams.host",e.host??t.clientUrlParams.host),iv.set("clientUrlParams.protocol",e.protocol??i.protocol),iv.set("clientUrlParams.port",e.port??i.port),void 0!==e.protocol&&void 0===e.port)switch(e.protocol){case"http":iv.set("clientUrlParams.port",80);break;case"https":iv.set("clientUrlParams.port",443)}let r=t.clientUrlParams.host;"string"==typeof r&&r.endsWith("/")&&(r=r.slice(0,-1),iv.set("clientUrlParams.host",r));let l=`${i.protocol}://${t.clientUrlParams.host}:${i.port}`;iv.set("clientUrlParams.url",l)})(e.clientUrlParams??i.live_preview?.clientUrlParams??t.clientUrlParams),e.mode)switch(e.mode){case"preview":iv.set("mode",es.PREVIEW);break;case"builder":iv.set("mode",es.BUILDER);break;default:throw TypeError("Live Preview SDK: The mode must be either 'builder' or 'preview'")}iv.set("debug",e.debug??i.live_preview?.debug??t.debug),function(e,t){let i=iv.get();
1if(iv.set("stackDetails.apiKey",e.stackDetails?.apiKey??i.stackDetails.apiKey),iv.set("stackDetails.environment",e.stackDetails?.environment??t.environment??i.stackDetails.environment),iv.set("stackDetails.branch",e.stackDetails?.branch??t.branch??t.headers?.branch??i.stackDetails.branch),iv.set("stackDetails.locale",e.stackDetails?.locale??i.stackDetails.locale),i.mode>=es.BUILDER){if(!i.stackDetails.environment)throw Error("Live preview SDK: environment is required");if(!i.stackDetails.apiKey)throw Error("Live preview SDK: api key is required")}}(e,i)}static set(e,t){if(!ic(this.config.state,e))throw Error(`Invalid key: ${e}`);ip(this.config.state,e,t)}static get(){return this.config.state}static reset(){ip(this.config,"state",ec())}};ih.config={state:function(e){if(!is(e))throw Error("This object can't be observed.");return t3.has(e)||t3.set(e,ie(e,ir)),t3.get(e)}(ec())};var iv=ih;function i_(){!function(e={}){let t=new URLSearchParams(e),i=t.get("live_preview"),r=t.get("content_type_uid"),l=t.get("entry_uid");i&&ih.set("hash",i),r&&ih.set("stackDetails.contentTypeUid",r),l&&ih.set("stackDetails.entryUid",l),ib({hash:i,contentTypeUid:r,entryUid:l})}(new URLSearchParams(window.location.search).toString())}function ib({hash:e,contentTypeUid:t,entryUid:i}){let r=ih.get().stackSdk.live_preview;e&&(r.hash=e,r.live_preview=e),t&&(r.content_type_uid=t),i&&(r.entry_uid=i),ih.set("stackSdk.live_preview",r)}var im=i(51603);let ig=function(){return im.A.Date.now()};var iy=/\s/;let iw=function(e){for(var t=e.length;t--&&iy.test(e.charAt(t)););return t};var iC=/^\s+/,ix=0/0,iE=/^[-+]0x[0-9a-f]+$/i,iL=/^0b[01]+$/i,iS=/^0o[0-7]+$/i,iM=parseInt;let iO=function(e){if("number"==typeof e)return e;if((0,c.A)(e))return ix;if((0,C.A)(e)){var t,i="function"==typeof e.valueOf?e.valueOf():e;e=(0,C.A)(i)?i+"":i}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,iw(t)+1).replace(iC,""):t;var r=iL.test(e);return r||iS.test(e)?iM(e.slice(2),r?2:8):iE.test(e)?ix:+e};var iA=Math.max,iT=Math.min;let ik=function(e,t,i){var r,l,n,o,a,s,d=0,u=!1,c=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(t){var i=r,n=l;return r=l=void 0,d=t,o=e.apply(n,i)}function h(e){var i=e-s,r=e-d;return void 0===s||i>=t||i<0||c&&r>=n}function v(){var e,i,r,l=ig();if(h(l))return _(l);a=setTimeout(v,(e=l-s,i=l-d,r=t-e,c?iT(r,n-i):r))}function _(e){return(a=void 0,f&&r)?p(e):(r=l=void 0,o)}function b(){var e,i=ig(),n=h(i);if(r=arguments,l=this,s=i,n){if(void 0===a)return d=e=s,a=setTimeout(v,t),u?p(e):o;if(c)return clearTimeout(a),a=setTimeout(v,t),p(s)}return void 0===a&&(a=setTimeout(v,t)),o}return t=iO(t)||0,(0,C.A)(i)&&(u=!!i.leading,n=(c="maxWait"in i)?iA(iO(i.maxWait)||0,t):n,f="trailing"in i?!!i.trailing:f),b.cancel=function(){void 0!==a&&clearTimeout(a),d=0,r=s=l=a=void 0},b.flush=function(){return void 0===a?o:_(ig())},b},iN=function(e,t,i){var r=!0,l=!0;if("function"!=typeof e)throw TypeError("Expected a function");return(0,C.A)(i)&&(r="leading"in i?!!i.leading:r,l="trailing"in i?!!i.trailing:l),ik(e,t,{leading:r,maxWait:t,trailing:l})},iR=function(e){return null==e};var iD=im.A.isFinite;let iH=function(e){return"number"==typeof e&&iD(e)},iP=function(e,t,i,r){for(var l=e.length,n=i+(r?1:-1);r?n--:++n<l;)if(t(e[n],n,e))return n;return -1};var iV=i(1105),iI=i(59233);function iB(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new iI.A;++t<i;)this.add(e[t])}iB.prototype.add=iB.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},iB.prototype.has=function(e){return this.__data__.has(e)};let iU=function(e,t){for(var i=-1,r=null==e?0:e.length;++i<r;)if(t(e[i],i,e))return!0;return!1},iF=function(e,t){return e.has(t)},i$=function(e,t,i,r,l,n){var o=1&i,a=e.length,s=t.length;if(a!=s&&!(o&&s>a))return!1;var d=n.get(e),u=n.get(t);if(d&&u)return d==t&&u==e;var c=-1,f=!0,p=2&i?new iB:void 0;for(n.set(e,t),n.set(t,e);++c<a;){var h=e[c],v=t[c];if(r)var _=o?r(v,h,c,t,e,n):r(h,v,c,e,t,n);if(void 0!==_){if(_)continue;f=!1;break}if(p){if(!iU(t,function(e,t){if(!iF(p,t)&&(h===e||l(h,e,i,r,n)))return p.push(t)})){f=!1;break}}else if(!(h===v||l(h,v,i,r,n))){f=!1;break}}return n.delete(e),n.delete(t),f};var ij=i(15914),iW=i(29568);let iz=function(e){var t=-1,i=Array(e.size);return e.forEach(function(e,r){i[++t]=[r,e]}),i},iZ=function(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i};var iG=k.A?k.A.prototype:void 0,iq=iG?iG.valueOf:void 0;let iY=function(e,t,i,r,l,n,o){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!n(new ij.A(e),new ij.A(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,iW.A)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=iz;case"[object Set]":var s=1&r;if(a||(a=iZ),e.size!=t.size&&!s)break;var d=o.get(e);if(d)return d==t;r|=2,o.set(e,t);var u=i$(a(e),a(t),r,l,n,o);return o.delete(e),u;case"[object Symbol]":if(iq)return iq.call(e)==iq.call(t)}return!1};var iK=i(22748),iX=Object.prototype.hasOwnProperty;let iQ=function(e,t,i,r,l,n){var o=1&i,a=(0,iK.A)(e),s=a.length;if(s!=(0,iK.A)(t).length&&!o)return!1;for(var d=s;d--;){var u=a[d];if(!(o?u in t:iX.call(t,u)))return!1}var c=n.get(e),f=n.get(t);if(c&&f)return c==t&&f==e;var p=!0;n.set(e,t),n.set(t,e);for(var h=o;++d<s;){var v=e[u=a[d]],_=t[u];if(r)var b=o?r(_,v,u,t,e,n):r(v,_,u,e,t,n);if(!(void 0===b?v===_||l(v,_,i,r,n):b)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var m=e.constructor,g=t.constructor;m!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof g&&g instanceof g)&&(p=!1)}return n.delete(e),n.delete(t),p};var iJ="[object Arguments]",i1="[object Array]",i2="[object Object]",i5=Object.prototype.hasOwnProperty;let i0=function(e,t,i,r,l,n){var o=(0,u.A)(e),a=(0,u.A)(t),s=o?i1:(0,j.A)(e),d=a?i1:(0,j.A)(t);s=s==iJ?i2:s,d=d==iJ?i2:d;var c=s==i2,f=d==i2,p=s==d;if(p&&(0,z.A)(e)){if(!(0,z.A)(t))return!1;o=!0,c=!1}if(p&&!c)return n||(n=new iV.A),o||(0,G.A)(e)?i$(e,t,i,r,l,n):iY(e,t,s,i,r,l,n);if(!(1&i)){var h=c&&i5.call(e,"__wrapped__"),v=f&&i5.call(t,"__wrapped__");
1if(h||v){var _=h?e.value():e,b=v?t.value():t;return n||(n=new iV.A),l(_,b,i,r,n)}}return!!p&&(n||(n=new iV.A),iQ(e,t,i,r,l,n))};var i3=i(77494);let i7=function e(t,i,r,l,n){return t===i||(null!=t&&null!=i&&((0,i3.A)(t)||(0,i3.A)(i))?i0(t,i,r,l,e,n):t!=t&&i!=i)},i6=function(e,t,i,r){var l=i.length,n=l,o=!r;if(null==e)return!n;for(e=Object(e);l--;){var a=i[l];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++l<n;){var s=(a=i[l])[0],d=e[s],u=a[1];if(o&&a[2]){if(void 0===d&&!(s in e))return!1}else{var c=new iV.A;if(r)var f=r(d,u,s,e,t,c);if(!(void 0===f?i7(u,d,3,r,c):f))return!1}}return!0},i8=function(e){return e==e&&!(0,C.A)(e)};var i4=i(70638);let i9=function(e){for(var t=(0,i4.A)(e),i=t.length;i--;){var r=t[i],l=e[r];t[i]=[r,l,i8(l)]}return t},re=function(e,t){return function(i){return null!=i&&i[e]===t&&(void 0!==t||e in Object(i))}},rt=function(e){var t=i9(e);return 1==t.length&&t[0][2]?re(t[0][0],t[0][1]):function(i){return i===e||i6(i,e,t)}},ri=function(e,t,i){var r=null==e?void 0:g(e,t);return void 0===r?i:r},rr=function(e){var t;return h(e)?(t=(0,m.A)(e),function(e){return null==e?void 0:e[t]}):function(t){return g(t,e)}},rl=function(e){if("function"==typeof e)return e;if(null==e)return I;if("object"==typeof e){var t,i;return(0,u.A)(e)?(t=e[0],i=e[1],h(t)&&i8(i)?re((0,m.A)(t),i):function(e){var r=ri(e,t);return void 0===r&&r===i?A(e,t):i7(i,r,3)}):rt(e)}return rr(e)};var rn=1/0;let ro=function(e){var t,i=(t=e)?(t=iO(t))===rn||t===-rn?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,r=i%1;return i==i?r?i-r:i:0};var ra=Math.max,rs=Math.min;let rd=function(e,t,i){var r=null==e?0:e.length;if(!r)return -1;var l=r-1;return void 0!==i&&(l=ro(i),l=i<0?ra(r+l,0):rs(l,r-1)),iP(e,rl(t),l,!0)};var ru=function(e,t,i){var r=Object(e);if(!(0,W.A)(e)){var l=rl(t);e=(0,i4.A)(e),t=function(e){return l(r[e],e,r)}}var n=rd(e,t,i);return n>-1?r[l?e[n]:n]:void 0};let rc={data:""},rf=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,rp=/\/\*[^]*?\*\/| +/g,rh=/\n+/g,rv=(e,t)=>{let i="",r="",l="";for(let n in e){let o=e[n];"@"==n[0]?"i"==n[1]?i=n+" "+o+";":r+="f"==n[1]?rv(o,n):n+"{"+rv(o,"k"==n[1]?"":t)+"}":"object"==typeof o?r+=rv(o,t?t.replace(/([^,])+/g,e=>n.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):n):null!=o&&(n="-"==n[1]?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=rv.p?rv.p(n,o):n+":"+o+";")}return i+(t&&l?t+"{"+l+"}":l)+r},r_={},rb=e=>{if("object"==typeof e){let t="";for(let i in e)t+=i+rb(e[i]);return t}return e};function rm(e){let t,i,r=this||{},l=e.call?e(r.p):e;return((e,t,i,r,l)=>{var n;let o=rb(e),a=r_[o]||(r_[o]=(e=>{let t=0,i=11;for(;t<e.length;)i=101*i+e.charCodeAt(t++)>>>0;return"go"+i})(o));if(!r_[a]){let t=o!==e?e:(e=>{let t,i,r=[{}];for(;t=rf.exec(e.replace(rp,""));)t[4]?r.shift():t[3]?(i=t[3].replace(rh," ").trim(),r.unshift(r[0][i]=r[0][i]||{})):r[0][t[1]]=t[2].replace(rh," ").trim();return r[0]})(e);r_[a]=rv(l?{["@keyframes "+a]:t}:t,i?"":"."+a)}let s=i&&r_.g;return i&&(r_.g=r_[a]),n=r_[a],s?t.data=t.data.replace(s,n):-1===t.data.indexOf(n)&&(t.data=r?n+t.data:t.data+n),a})(l.unshift?l.raw?(t=[].slice.call(arguments,1),i=r.p,l.reduce((e,r,l)=>{let n=t[l];if(n&&n.call){let e=n(i),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;n=t?"."+t:e&&"object"==typeof e?e.props?"":rv(e,""):!1===e?"":e}return e+r+(null==n?"":n)},"")):l.reduce((e,t)=>Object.assign(e,t&&t.call?t(r.p):t),{}):l,(e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||rc})(r.target),r.g,r.o,r.k)}let rg=rm.bind({g:1}),ry=rm.bind({k:1});function rw(){return{"cslp-edit-mode":rm` 2 outline: 1px dashed #6c5ce7 !important; 3 `,"cslp-tooltip":rm` 4 padding: 0; 5 display: flex; 6 outline: none; 7 border: none; 8 z-index: 200 !important; 9 position: fixed; 10 margin: 0; 11 height: 35px; 12 width: 72px; 13 background: white; 14 font-weight: 400 !important; 15 color: #718096 !important; 16 transition: background 0.2s; 17 text-align: center !important; 18 border-radius: 8px !important; 19 font-size: 14px !important; 20 justify-content: space-around; 21 align-items: center; 22 box-shadow: 0px 8px 20px 0px #2222221a; 23 box-sizing: border-box; 24 top: -100%; 25 & div { 26 display: flex; 27 justify-content: space-around; 28 border-radius: 6px !important; 29 cursor: pointer; 30 } 31
32 & div.cslp-tooltip-child:hover { 33 background: #edf2f7; 34 } 35 36 & div.cslp-tooltip-child:active:hover { 37 background: #c7d0e1; 38 } 39 40 & > div { 41 display: flex; 42 justify-content: space-evenly; 43 white-space: nowrap; 44 width: 70px; 45 } 46 47 & .cslp-tooltip-child.singular { 48 padding: 9px 1px; 49 } 50 `,multiple:rm` 51 & div.cslp-tooltip-child { 52 padding: 9px; 53 } 54 55 & div.cslp-tooltip-child:before { 56 opacity: 0; 57 font-size: 12px; 58 font-weight: 400; 59 pointer-events: none; 60 content: attr(data-title); 61 color: white; 62 padding: 5px 10px; 63 border-radius: 4px; 64 position: absolute; 65 background: #4a5568; 66 top: -30px; 67 transition: 0.2s all ease-in-out; 68 } 69 70 & div.cslp-tooltip-child:hover:before { 71 opacity: 1; 72 } 73 `}}function rC(e){return!(e.length<3)&&e[0].length>0&&e[1].length>0&&e[2].length>0}function rx(e){if(!e)return!1;if(e.startsWith("v2:")){let t=e.substring(3).split(".");if(!rC(t))return!1;let i=t[1].split("_");return i.length>=2&&i.every(e=>e.length>0)}return rC(e.split("."))}function rE(e){var t;let i,r,l,n,[o,a]=e.split(":");o.length>2&&(a=o,o="v1");let[s,d,u,...c]=a.split(".");if("v2"===o){let[e,t]=d.split("_");l=e,n=t}else l=d;let f=c.join("."),p=c.filter(e=>{let t=iR(e),i=iH(+e);return!t&&!i}),h=(i=function(e,t,i,r){let l=rd(r,e=>iH(+e));if(-1===l)return null;let n=r.slice(0,l);return{parentPath:n.join("."),parentCslpValue:[e,t,i,...n].join(".")}}(s,l,u,t=c),{parentDetails:i,index:iR(r=ru(t,e=>iH(+e)))?-1:+r});return iH(+c[c.length-1])&&c.pop(),{entry_uid:l,content_type_uid:s,variant:n,locale:u,cslpValue:e,fieldPath:p.join("."),fieldPathWithIndex:c.join("."),multipleFieldMetadata:h,instance:{fieldPathWithIndex:f}}}function rL(e,t,i,r){i.highlightedElement&&i.highlightedElement.classList.remove(rw()["cslp-edit-mode"]),e.classList.add(rw()["cslp-edit-mode"]),i.highlightedElement=e,iv.set("elements",i),r?.({cslpTag:t,highlightedElement:e})}var rS=Object.create,rM=Object.defineProperty,rO=Object.getOwnPropertyDescriptor,rA=Object.getOwnPropertyNames,rT=Object.getPrototypeOf,rk=Object.prototype.hasOwnProperty,rN=(e,t,i)=>(i=null!=e?rS(rT(e)):{},((e,t,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of rA(t))rk.call(e,r)||void 0===r||rM(e,r,{get:()=>t[r],enumerable:!(i=rO(t,r))||i.enumerable});return e})(!t&&e&&e.__esModule?i:rM(i,"default",{value:e,enumerable:!0}),e)),rR=(n={"node_modules/@contentstack/advanced-post-message/dist/index.js"(e,t){var i;i=()=>{var e,t;return e={706(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.Config=void 0;var r=i(450),l=i(666),n=i(628),o=i(399);t.Config=function(){function e(){this.config=(0,l.getDefaultConfig)()}return e.prototype.replace=function(e){!function(e,t){if(t.debug=null!=(i=e.debug)?i:t.debug,""===e.channelId)throw Error((0,n.getErrorMessage)(r.ERROR_MESSAGES.common.channelIdRequired));t.channelId=null!=(l=e.channelId)?l:t.channelId,t.suppressErrors=null!=(a=e.suppressErrors)?a:t.suppressErrors,t.targetOrigin=null!=(s=e.targetOrigin)?s:t.targetOrigin;var i,l,a,s,d=(0,o.getWindow)();e.target?t.targetWindow=e.target:t.targetWindow=d||{postMessage:function(){}}}(e,this.config)},e.prototype.set=function(e,t){this.config[e]=t},e.prototype.get=function(e){return this.config[e]},e.prototype.getAll=function(){return this.config},e.prototype.reset=function(){this.config=(0,l.getDefaultConfig)()},e}()},851(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_CODES=t.ERROR_MESSAGES=void 0,t.ERROR_MESSAGES={common:{windowClosed:"The window closed before the response was received",windowNotFound:"The window was not found.",channelIdRequired:"The channelId is required"},sendEvent:{receiverReturnedError:"The receiver returned an error",eventCancelled:"The event was cancelled",noAckReceived:"The ACK was not received"},receiveEvent:{noRequestListenerFound:function(e){return'No request listener found for event "'.concat(e,'"')},codeReturnedError:"The code returned an error",noResponseListenerFound:function(e){return'No response listener found for hash "'.concat(e,'"')},noAckListenerFound:function(e){return'No ack listener found for hash "'.concat(e,'"')},unknownNature:function(e){return'The nature "'.concat(e,'" is unknown')}},registerEvent:{eventAlreadyRegistered:function(e){return'The event "'.concat(e,'" is already registered')}},unregisterEvent:{eventDoesNotExist:function(e){return'The event "'.concat(e,'" does not exist')}}},t.ERROR_CODES={common:{windowClosed:"WINDOW_CLOSED",windowNotFound:"WINDOW_NOT_FOUND"},sendEvent:{receiverReturnedError:"RECEIVER_RETURNED_ERROR",eventCancelled:"EVENT_CANCELLED",noAckReceived:"NO_ACK_RECEIVED"},receiveEvent:{noRequestListenerFound:"NO_REQUEST_LISTENER_FOUND",codeReturnedError:"CODE_RETURNED_ERROR",noResponseListenerFound:"NO_RESPONSE_LISTENER_FOUND",noAckListenerFound:"NO_ACK_LISTENER_FOUND",unknownNature:"UNKNOWN_NATURE"},registerEvent:{eventAlreadyRegistered:"EVENT_ALREADY_REGISTERED"},unregisterEvent:{eventDoesNotExist:"EVENT_DOES_NOT_EXIST"}}},450(e,t,i){var r=this&&this.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var l=Object.getOwnPropertyDescriptor(t,i);
73l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,l)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),l=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||r(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.EVENT_MANAGER_NAME=t.ANY_ORIGIN=t.RESPONSE_CYCLE=void 0,t.RESPONSE_CYCLE=500,t.ANY_ORIGIN="*",t.EVENT_MANAGER_NAME="contentstack-adv-post-message",l(i(851),t)},666(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultConfig=void 0;var r=i(450);t.getDefaultConfig=function(){return{targetOrigin:r.ANY_ORIGIN,targetWindow:{postMessage:function(){}},debug:!1,channelId:"",suppressErrors:!1}}},156(e,t,i){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var l in t=arguments[i])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e}).apply(this,arguments)},l=this&&this.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var l=Object.getOwnPropertyDescriptor(t,i);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,l)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),n=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||l(t,e,i)},o=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(l,n){function o(e){try{s(r.next(e))}catch(e){n(e)}}function a(e){try{s(r.throw(e))}catch(e){n(e)}}function s(e){var t;e.done?l(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(o,a)}s((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var i,r,l,n,o={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(a){return function(s){var d=[a,s];if(i)throw TypeError("Generator is already executing.");for(;n&&(n=0,d[0]&&(o=0)),o;)try{if(i=1,r&&(l=2&d[0]?r.return:d[0]?r.throw||((l=r.return)&&l.call(r),0):r.next)&&!(l=l.call(r,d[1])).done)return l;
73switch(r=0,l&&(d=[2&d[0],l.value]),d[0]){case 0:case 1:l=d;break;case 4:return o.label++,{value:d[1],done:!1};case 5:o.label++,r=d[1],d=[0];continue;case 7:d=o.ops.pop(),o.trys.pop();continue;default:if(!((l=(l=o.trys).length>0&&l[l.length-1])||6!==d[0]&&2!==d[0])){o=0;continue}if(3===d[0]&&(!l||d[1]>l[0]&&d[1]<l[3])){o.label=d[1];break}if(6===d[0]&&o.label<l[1]){o.label=l[1],l=d;break}if(l&&o.label<l[2]){o.label=l[2],o.ops.push(d);break}l[2]&&o.ops.pop(),o.trys.pop();continue}d=t.call(e,o)}catch(e){d=[6,e],r=0}finally{i=l=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventManager=void 0;var s=i(834),d=i(706),u=i(450),c=i(897),f=i(628),p=i(768),h=i(610),v=i(399),_=i(574);t.EventManager=function(){function e(e,t){if(void 0===t&&(t={}),this.requestMessageHandlers=new Map,this.responseMessageHandlers=new Map,!e)throw Error((0,f.getErrorMessage)(u.ERROR_MESSAGES.common.channelIdRequired));this.config=new d.Config,this.config.replace(r(r({},t),{channelId:e})),this.logger=new f.Logger(this.config),this.postMessage=new c.PostMessage(this.logger,this.config),this.handleIncomingMessage=this.handleIncomingMessage.bind(this),this.send=this.send.bind(this),this.on=this.on.bind(this),this.unregisterEvent=this.unregisterEvent.bind(this);var i=(0,v.getWindow)();i?i.addEventListener("message",this.handleIncomingMessage):this.logger.debug((0,f.getErrorMessage)(u.ERROR_MESSAGES.common.windowNotFound))}return e.prototype.handleIncomingMessage=function(e){return o(this,void 0,void 0,function(){var t,i,r,l,n,o,d,c,p,h,v,b,m=this;return a(this,function(a){if(i=(t=e.data).type,r=t.channel,l=t.payload,n=t.eventManager,o=t.metadata,d=t.error,n!==u.EVENT_MANAGER_NAME||r!==this.config.get("channelId"))return[2];switch(c=o.hash,p=o.nature){case _.EditorPostMessageNature.REQUEST:return this.logger.debug("REQUEST received",e.data),this.config.get("targetWindow").closed&&this.logger.error((0,f.getErrorMessage)(u.ERROR_MESSAGES.common.windowClosed)),this.postMessage.sendAck({type:i,hash:c}),this.requestMessageHandlers.has(i)?(h=this.requestMessageHandlers.get(i).handler,v={data:l},[2,s.ZalgoPromise.all([s.ZalgoPromise.try(function(){return h(v)}).then(function(e){m.postMessage.sendResponse({type:i,hash:c,payload:e,error:void 0})}).catch(function(e){m.logger.error((0,f.getErrorMessage)(u.ERROR_MESSAGES.receiveEvent.codeReturnedError),e)})])]):(this.logger.debug((0,f.getErrorMessage)(u.ERROR_MESSAGES.receiveEvent.noRequestListenerFound(i))),this.postMessage.sendResponse({type:i,hash:c,payload:void 0,error:{code:u.ERROR_CODES.receiveEvent.noRequestListenerFound,message:(0,f.getErrorMessage)(u.ERROR_MESSAGES.receiveEvent.noRequestListenerFound(i))}}),[2]);case _.EditorPostMessageNature.RESPONSE:if(this.logger.debug("RESPONSE received",e.data),!this.responseMessageHandlers.has(c))return this.logger.error((0,f.getErrorMessage)(u.ERROR_MESSAGES.receiveEvent.noResponseListenerFound(c))),[2];b=this.responseMessageHandlers.get(c),d?b.promise.reject(d):b.promise.resolve(l);break;case _.EditorPostMessageNature.ACK:if(this.logger.debug("ACK received",e.data),!this.responseMessageHandlers.has(c))return this.logger.error((0,f.getErrorMessage)(u.ERROR_MESSAGES.receiveEvent.noAckListenerFound(c))),[2];(b=this.responseMessageHandlers.get(c)).hasReceivedAck=!0;break;default:this.logger.error((0,f.getErrorMessage)(u.ERROR_MESSAGES.receiveEvent.unknownNature(p)),e.data)}return[2]})})},e.prototype.send=function(e,t){return o(this,void 0,void 0,function(){var i,r,l,n,o,d=this;return a(this,function(a){return i=new s.ZalgoPromise,r=(0,h.uniqueId)(e),l={type:e,promise:i,hasCancelled:!1,hasReceivedAck:!1},this.responseMessageHandlers.set(r,l),n=1e3,o=(0,p.safeInterval)(function(){return d.config.get("targetWindow").closed?i.reject(Error((0,f.getErrorMessage)(u.ERROR_MESSAGES.common.windowClosed))):(n=Math.max(n-u.RESPONSE_CYCLE,0),!l.hasReceivedAck&&n<=0?i.reject((0,f.getErrorMessage)(u.ERROR_MESSAGES.sendEvent.noAckReceived)):void 0)},u.RESPONSE_CYCLE),i.finally(function(){d.responseMessageHandlers.delete(r),o.cancel()}).catch(function(e){d.logger.debug((0,f.getErrorMessage)(u.ERROR_MESSAGES.sendEvent.receiverReturnedError),e)}),this.postMessage.sendRequest({type:e,hash:r,error:void 0,payload:t}),[2,i]})})},e.prototype.on=function(e,t){var i=this;return this.requestMessageHandlers.has(e)&&this.logger.error((0,f.getErrorMessage)(u.ERROR_MESSAGES.registerEvent.eventAlreadyRegistered(e))),this.requestMessageHandlers.set(e,{handler:t}),{unregister:function(){i.unregisterEvent(e)}}},e.prototype.unregisterEvent=function(e){this.requestMessageHandlers.has(e)?(this.logger.debug("Unregistering event",e),this.requestMessageHandlers.delete(e)):this.logger.error((0,f.getErrorMessage)(u.ERROR_MESSAGES.unregisterEvent.eventDoesNotExist(e)))},e.prototype.updateConfig=function(e){this.config.replace(e)},e.prototype.destroy=function(e){var t;this.requestMessageHandlers.clear(),this.responseMessageHandlers.clear(),(null==e?void 0:e.soft)||null==(t=(0,v.getWindow)())||t.removeEventListener("message",this.handleIncomingMessage)},e}(),n(i(574),t)},897(e,t,i){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var l in t=arguments[i])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e}).apply(this,arguments)};
73Object.defineProperty(t,"__esModule",{value:!0}),t.PostMessage=void 0;var l=i(574);t.PostMessage=function(){function e(e,t){this.logger=e,this.sendResponse=this.sendResponse.bind(this),this.sendRequest=this.sendRequest.bind(this),this.sendAck=this.sendAck.bind(this),this.getMessage=this.getMessage.bind(this),this.config=t.getAll()}return e.prototype.sendRequest=function(e){var t=r(r({},e),{nature:l.EditorPostMessageNature.REQUEST});this.logger.debug("Sending REQUEST",t);var i=this.getMessage(t);this.config.targetWindow.postMessage(i,this.config.targetOrigin)},e.prototype.sendResponse=function(e){var t=r(r({},e),{nature:l.EditorPostMessageNature.RESPONSE});this.logger.debug("Sending RESPONSE",t);var i=this.getMessage(t);this.config.targetWindow.postMessage(i,this.config.targetOrigin)},e.prototype.sendAck=function(e){var t=r(r({},e),{payload:void 0,error:void 0,nature:l.EditorPostMessageNature.ACK});this.logger.debug("Sending ACK",t);var i=this.getMessage(t);this.config.targetWindow.postMessage(i,this.config.targetOrigin)},e.prototype.getMessage=function(e){var t=e.nature,i=e.hash,r=e.payload,l=e.type,n=e.error;return{eventManager:"contentstack-adv-post-message",metadata:{hash:i,nature:t},channel:this.config.channelId,error:n,payload:r,type:l}},e}()},255(e,t){Object.defineProperty(t,"__esModule",{value:!0})},884(e,t){Object.defineProperty(t,"__esModule",{value:!0})},574(e,t,i){var r=this&&this.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var l=Object.getOwnPropertyDescriptor(t,i);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,l)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),l=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||r(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),l(i(884),t),l(i(145),t),l(i(255),t)},145(e,t){var i,r;Object.defineProperty(t,"__esModule",{value:!0}),t.EditorPostMessageNature=void 0,(r=i||(t.EditorPostMessageNature=i={})).ACK="ACK",r.RESPONSE="RESPONSE",r.REQUEST="REQUEST"},628(e,t,i){var r=this&&this.__spreadArray||function(e,t,i){if(i||2==arguments.length)for(var r,l=0,n=t.length;l<n;l++)!r&&l in t||(r||(r=Array.prototype.slice.call(t,0,l)),r[l]=t[l]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorMessage=t.Logger=void 0;var l=i(450);t.Logger=function(){function e(e){this.config=e,this.prefix=l.EVENT_MANAGER_NAME,this.log=this.log.bind(this),this.info=this.info.bind(this),this.debug=this.debug.bind(this),this.error=this.error.bind(this)}return e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.log.apply(console,r([this.prefix],e,!1))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.info.apply(console,r([this.prefix],e,!1))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.config.get("debug")&&console.debug.apply(console,r(r([this.prefix,"DEBUG:"],e,!1),[this.getDebugOptions()],!1))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.config.get("suppressErrors")||console.error.apply(console,r([this.prefix],e,!1))},e.prototype.getDebugOptions=function(){return{targetOrigin:this.config.get("targetOrigin"),targetWindow:this.config.get("targetWindow")}},e}(),t.getErrorMessage=function(e){return l.EVENT_MANAGER_NAME+": "+e}},768(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.safeInterval=void 0,t.safeInterval=function(e,t){var i;return function r(){i=setTimeout(function(){e(),r()},t)}(),{cancel:function(){clearTimeout(i)}}}},610(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueId=void 0,t.uniqueId=function(e){var t=("u">typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})).split("-")[0];return e?"".concat(e,"-").concat(t):t}}
73,399(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getWindow=void 0,t.getWindow=function(){return"u">typeof window?window:null}},994(e){"u">typeof self&&self,e.exports=function(e){var t={};function i(r){if(t[r])return t[r].exports;var l=t[r]={i:r,l:!1,exports:{}};return e[r].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)i.d(r,l,(function(t){return e[t]}).bind(null,l));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return({}).hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){function r(e){try{if(!e)return!1;if("u">typeof Promise&&e instanceof Promise)return!0;if("u">typeof window&&"function"==typeof window.Window&&e instanceof window.Window||"u">typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var t={}.toString;if(t){var i=t.call(e);if("[object Window]"===i||"[object global]"===i||"[object DOMWindow]"===i)return!1}if("function"==typeof e.then)return!0}catch(e){}return!1}i.r(t),i.d(t,"ZalgoPromise",function(){return u});var l,n=[],o=[],a=0;function s(){if(!a&&l){var e=l;l=null,e.resolve()}}function d(){a-=1,s()}var u=function(){function e(e){var t=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var i,r,l=!1,n=!1,o=!1;a+=1;try{e(function(e){o?t.resolve(e):(l=!0,i=e)},function(e){o?t.reject(e):(n=!0,r=e)})}catch(e){return d(),void this.reject(e)}d(),o=!0,l?this.resolve(i):n&&this.reject(r)}}var t=e.prototype;return t.resolve=function(e){if(this.resolved||this.rejected)return this;if(r(e))throw Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},t.reject=function(e){var t=this;if(this.resolved||this.rejected)return this;if(r(e))throw Error("Can not reject promise with another promise");return e||(e=Error("Expected reject to be called with Error, got "+(e&&"function"==typeof e.toString?e.toString():({}).toString.call(e)))),this.rejected=!0,this.error=e,this.errorHandled||setTimeout(function(){t.errorHandled||function(e,t){if(-1===n.indexOf(e)){n.push(e),setTimeout(function(){throw e},1);for(var i=0;i<o.length;i++)o[i](e,t)}}(e,t)},1),this.dispatch(),this},t.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},t.dispatch=function(){var t=this.resolved,i=this.rejected,l=this.handlers;if(!this.dispatching&&(t||i)){this.dispatching=!0,a+=1;for(var n=function(e,t){return e.then(function(e){t.resolve(e)},function(e){t.reject(e)})},o=0;o<l.length;o++){var s=l[o],u=s.onSuccess,c=s.onError,f=s.promise,p=void 0;if(t)try{p=u?u(this.value):this.value}catch(e){f.reject(e);continue}else if(i){if(!c){f.reject(this.error);continue}try{p=c(this.error)}catch(e){f.reject(e);continue}}if(p instanceof e&&(p.resolved||p.rejected)){var h=p;h.resolved?f.resolve(h.value):f.reject(h.error),h.errorHandled=!0}else r(p)?p instanceof e&&(p.resolved||p.rejected)?p.resolved?f.resolve(p.value):f.reject(p.error):n(p,f):f.resolve(p)}l.length=0,this.dispatching=!1,d()}},t.then=function(t,i){if(t&&"function"!=typeof t&&!t.call)throw Error("Promise.then expected a function for success handler");if(i&&"function"!=typeof i&&!i.call)throw Error("Promise.then expected a function for error handler");var r=new e;return this.handlers.push({promise:r,onSuccess:t,onError:i}),this.errorHandled=!0,this.dispatch(),r},t.catch=function(e){return this.then(void 0,e)},t.finally=function(t){if(t&&"function"!=typeof t&&!t.call)throw Error("Promise.finally expected a function");return this.then(function(i){return e.try(t).then(function(){return i})},function(i){return e.try(t).then(function(){throw i})})},t.timeout=function(e,t){var i=this;if(this.resolved||this.rejected)return this;var r=setTimeout(function(){i.resolved||i.rejected||i.reject(t||Error("Promise timed out after "+e+"ms"))},e);return this.then(function(e){return clearTimeout(r),e})},t.toPromise=function(){if("u"<typeof Promise)throw TypeError("Could not find Promise");return Promise.resolve(this)},t.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(t){return t instanceof e?t:r(t)?new e(function(e,i){return t.then(e,i)}):new e().resolve(t)},e.reject=function(t){return new e().reject(t)},e.asyncReject=function(t){return new e().asyncReject(t)},e.all=function(t){var i=new e,l=t.length,n=[];if(!l)return i.resolve(n),i;for(var o=function(e,t,r){return t.then(function(t){n[e]=t,0==(l-=1)&&i.resolve(n)},function(e){r.reject(e)})},a=0;a<t.length;a++){var s=t[a];if(s instanceof e){if(s.resolved){n[a]=s.value,l-=1;continue}}else if(!r(s)){n[a]=s,l-=1;continue}o(a,e.resolve(s),i)}return 0===l&&i.resolve(n),i},e.hash=function(t){var i={},l=[],n=function(e){if(t.hasOwnProperty(e)){var n=t[e];r(n)?l.push(n.then(function(t){i[e]=t})):i[e]=n}};for(var o in t)n(o);return e.all(l).then(function(){return i})},e.map=function(t,i){return e.all(t.map(i))},e.onPossiblyUnhandledException=function(e){return o.push(e),{cancel:function(){o.splice(o.indexOf(e),1)}}},e.try=function(t,i,r){var l;if(t&&"function"!=typeof t&&!t.call)throw Error("Promise.try expected a function");a+=1;try{l=t.apply(i,r||[])}catch(t){return d(),e.reject(t)}return d(),e.resolve(l)},e.delay=function(t){return new e(function(e){setTimeout(e,t)})},e.isPromise=function(t){return!!(t&&t instanceof e)||r(t)},e.flush=function(){var t;return t=l=l||new e,s(),t},e}()}])},834(e,t,i){e.exports=i(994)}},t={},function i(r){var l=t[r];if(void 0!==l)return l.exports;var n=t[r]={exports:{}};return e[r].call(n.exports,n,n.exports,i),n.exports}(156)}
73,"object"==typeof e&&"object"==typeof t?t.exports=i():"function"==typeof define&&define.amd?define([],i):e.ContentstackAdvPostMessage=i()}},function(){return o||(0,n[rA(n)[0]])((o={exports:{}}).exports,o),o.exports}),rD=rN(rR(),1);if("u">typeof window){let e={target:window.parent,debug:!1,suppressErrors:!0};ea()&&(e.target=window.opener),nd=new rD.EventManager("live-preview",e)}var rH=nd,rP="cslp-tooltip",rV=i(87358);function rI(e,t){let i={upperBoundOfTooltip:0,leftBoundOfTooltip:0},r=e.getBoundingClientRect();try{switch(t){case"top-center":i.upperBoundOfTooltip=r.top-40,i.leftBoundOfTooltip=r.width/2-36+r.left;break;case"top-right":i.upperBoundOfTooltip=r.top-40,i.leftBoundOfTooltip=r.right-72;break;case"right":i.upperBoundOfTooltip=r.top-5,i.leftBoundOfTooltip=r.right+5;break;case"bottom":case"bottom-left":i.upperBoundOfTooltip=r.bottom+5,i.leftBoundOfTooltip=r.left-5;break;case"bottom-center":i.upperBoundOfTooltip=r.bottom+5,i.leftBoundOfTooltip=r.width/2-36+r.left;break;case"bottom-right":i.upperBoundOfTooltip=r.bottom+5,i.leftBoundOfTooltip=r.right-72;break;case"left":i.upperBoundOfTooltip=r.top-5,i.leftBoundOfTooltip=r.left-77;break;default:i.upperBoundOfTooltip=r.top-40,i.leftBoundOfTooltip=r.left-5}return i}catch(e){return et.error(e),i}}function rB(){let e=iv.get();if(!e.editButton.enable)return void 0===e.editButton.enable&&et.error("enable key is required inside editButton object"),!1;try{let t=new URL(window.location.href).searchParams.get("cslp-buttons");if(null!==t&&!1!==e.editButton.includeByQueryParameter)return"false"!==t}catch(e){et.error(e)}let t=eo();return!(!t&&e.editButton.exclude?.find(e=>"outsideLivePreviewPortal"===e)||t&&e.editButton.exclude?.find(e=>"insideLivePreviewPortal"===e))&&(!t||"builder"!==e.windowType)&&!0}var rU=class{constructor(){this.tooltip=null,this.typeOfCurrentChild="singular",this.tooltipChild={singular:null,multiple:null},this.overlayMouseMoveHandler=null,this.createCslpTooltip=this.createCslpTooltip.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.addEditStyleOnHover=this.addEditStyleOnHover.bind(this),this.scrollHandler=this.scrollHandler.bind(this),this.generateRedirectUrl=this.generateRedirectUrl.bind(this),this.linkClickHandler=this.linkClickHandler.bind(this),this.destroy=this.destroy.bind(this),this.createCslpTooltip()&&(this.updateTooltipPosition(),window.addEventListener("scroll",this.updateTooltipPosition),window.addEventListener("mouseover",this.addEditStyleOnHover),iv.get().overlayPropagation?.enable&&(this.overlayMouseMoveHandler=iN(this.addEditStyleOnHover,200),window.addEventListener("mousemove",this.overlayMouseMoveHandler)))}createCslpTooltip(){let e=iv.get().editButton;if(!document.getElementById(rP)&&e.enable&&rB()){var t,i,r;let e,l,n,o,a,s=document.createElement("button");return this.tooltip=s,this.tooltip.classList.add(rw()["cslp-tooltip"]),this.tooltip.setAttribute("data-test-id","cs-cslp-tooltip"),this.tooltip.id=rP,window.document.body.insertAdjacentElement("beforeend",this.tooltip),this.tooltipChild.singular=(t=this.scrollHandler,(e=document.createElement("div")).classList.add("cslp-tooltip-child","singular"),e.setAttribute("data-test-id","cslp-singular-edit-button"),e.innerHTML=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 74 <path d="M8.1 3.5L0.3 11.3C0.1 11.5 0 11.7 0 12V15C0 15.6 0.4 16 1 16H4C4.3 16 4.5 15.9 4.7 15.7L12.5 7.9L8.1 3.5Z" fill="#718096"></path> 75 <path d="M15.7 3.3L12.7 0.3C12.3 -0.1 11.7 -0.1 11.3 0.3L9.5 2.1L13.9 6.5L15.7 4.7C16.1 4.3 16.1 3.7 15.7 3.3Z" fill="#718096"></path> 76 </svg>Edit`,e.addEventListener("click",t),e),this.tooltipChild.multiple=(i=this.scrollHandler,r=this.linkClickHandler,(l=document.createElement("div")).classList.add("cslp-tooltip-child"),l.setAttribute("data-title","Edit"),l.setAttribute("data-test-id","cslp-multiple-edit-button"),l.innerHTML=` <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 77 <path d="M8.1 3.5L0.3 11.3C0.1 11.5 0 11.7 0 12V15C0 15.6 0.4 16 1 16H4C4.3 16 4.5 15.9 4.7 15.7L12.5 7.9L8.1 3.5Z" fill="#718096"></path> 78 <path d="M15.7 3.3L12.7 0.3C12.3 -0.1 11.7 -0.1 11.3 0.3L9.5 2.1L13.9 6.5L15.7 4.7C16.1 4.3 16.1 3.7 15.7 3.3Z" fill="#718096"></path> 79 </svg>`,l.addEventListener("click",i),(n=document.createElement("div")).classList.add("cslp-tooltip-child"),n.setAttribute("data-title","Go to link"),n.setAttribute("data-test-id","cslp-multiple-external-link-button"),n.innerHTML=` <svg width="16" height="16" viewB
79ox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 80 <path d="M2.66654 2.66758H13.3332V13.3342H6.66654V16.0009H13.3332C14.0405 16.0009 14.7187 15.72 15.2188 15.2199C15.7189 14.7198 15.9999 14.0415 15.9999 13.3342V2.66758C15.9999 1.96034 15.7189 1.28206 15.2188 0.781964C14.7187 0.281867 14.0405 0.000915527 13.3332 0.000915527H2.66654C1.9593 0.000915527 1.28102 0.281867 0.780927 0.781964C0.280829 1.28206 -0.00012207 1.96034 -0.00012207 2.66758V9.33425H2.66654V2.66758Z" fill="#718096" /> 81 <path d="M6.94263 7.05734L0.999958 13L2.88529 14.8853L8.82796 8.94267L10.8853 11V5.00001H4.88529L6.94263 7.05734Z" fill="#718096" /> 82 </svg>`,n.addEventListener("click",r),(o=document.createDocumentFragment()).appendChild(l),o.appendChild(n),(a=document.createElement("div")).appendChild(o),a.classList.add(rw().multiple),a),this.tooltip.appendChild(this.tooltipChild.singular),!0}return!1}updateTooltipPosition(){document.getElementById("cslp-tooltip")||this.createCslpTooltip();let e=iv.get().editButton,t=iv.get().elements;if(!t.highlightedElement||!this.tooltip)return!1;let i=t.highlightedElement.getBoundingClientRect(),r=this.tooltip.parentElement?.getBoundingClientRect();if(i&&r){let r=function(e,t){if(!e)return{upperBoundOfTooltip:0,leftBoundOfTooltip:0};let i=e.getAttribute("data-cslp-button-position");return i?rI(e,i):rI(e,t||"top")}(t.highlightedElement,e.position),l=r.upperBoundOfTooltip,n=r.leftBoundOfTooltip;return l<0&&(l=i.top<0?i.top:0),this.tooltip.style.top=l+"px",this.tooltip.style.zIndex=t.highlightedElement.style.zIndex||"200",this.tooltip.style.left=n+"px",this.tooltipChild.singular&&this.tooltipChild.multiple&&(t.highlightedElement.hasAttribute("href")&&"multiple"!==this.typeOfCurrentChild?(this.tooltip.innerHTML="",this.tooltip.appendChild(this.tooltipChild.multiple),this.typeOfCurrentChild="multiple"):"singular"!==this.typeOfCurrentChild&&(this.tooltip.innerHTML="",this.tooltip.appendChild(this.tooltipChild.singular),this.typeOfCurrentChild="singular")),!0}return!1}addEditStyleOnHover(e){let t=this.shouldUpdateStyle(e);if(!(void 0===t||t))return;let i=({cslpTag:e,highlightedElement:t})=>{this.updateTooltipPosition()&&(this.tooltip?.setAttribute("current-data-cslp",e),this.tooltip?.setAttribute("current-href",t.getAttribute("href")??""))},r=iv.get().editButton,l=iv.get().windowType;(l===ed.PREVIEW||l===ed.INDEPENDENT)&&r.enable&&function(e,t){let i=iv.get().elements,r=!0;for(let l of e.composedPath()){if("BODY"===l.nodeName)break;if("function"!=typeof l?.getAttribute)continue;let e=l.getAttribute("data-cslp");r&&rx(e)?(rL(l,e,i,t),r=!1):r||l.classList.remove(rw()["cslp-edit-mode"])}if(r&&iv.get().overlayPropagation?.enable)for(let r of document.elementsFromPoint(e.clientX,e.clientY)){if("BODY"===r.nodeName)break;if("function"!=typeof r?.getAttribute)continue;let e=r.getAttribute("data-cslp");if(rx(e)){rL(r,e,i,t);break}}}(e,i)}shouldUpdateStyle(e){return function({event:e,editButtonDomRect:t,editButtonPos:i}){if(!t||!i||!(t.x>0)||!(t.y>0))return;let r=i.includes("top"),l=i.includes("left"),n=i.includes("bottom"),o=e.composedPath().find(e=>"BODY"!==e.nodeName&&"function"==typeof e?.hasAttribute&&e.hasAttribute("data-cslp"));if(!o)return;let a=o.getBoundingClientRect(),s=r||n?.1*a.width:.1*a.height;s=s>30?30:s;let d=t.x+t.width,u=t.y+t.height,c=t.x-s,f=d+s,p=t.y-s,h=u+s;if(r||n){let i=r?Math.abs(u-e.clientY):Math.abs(t.y-e.clientY);if(e.clientX>c&&e.clientX<f&&i<s)return!1}else{let i=l?Math.abs(d-e.clientX):Math.abs(t.x-e.clientX);if(e.clientY>p&&e.clientY<h&&i<s)return!1}return!0}({event:e,editButtonPos:iv.get().editButton.position,editButtonDomRect:this.tooltip?.getBoundingClientRect()})}scrollHandler(){if(!this.tooltip)return;let e=this.tooltip.getAttribute("current-data-cslp");if(rx(e)){let{content_type_uid:t,entry_uid:i,locale:r,variant:l,fieldPathWithIndex:n}=rE(e);if(eo()||ea())rH?.send("scroll",{field:n,content_type_uid:t,entry_uid:i,variant:l,locale:r});else try{let e=this.generateRedirectUrl(t,r,i,l,n);window.open(e,"_blank")}catch(e){et.error(e)}}}generateRedirectUrl(e,t="en-us",i,r,l){let n=iv.get();
82if(!n.stackDetails.apiKey)throw`To use edit tags, you must provide the stack API key. Specify the API key while initializing the Live Preview SDK. 83 84 ContentstackLivePreview.init({ 85 ..., 86 stackDetails: { 87 apiKey: 'your-api-key' 88 }, 89 ... 90 })`;if(!n.stackDetails.environment)throw`To use edit tags, you must provide the preview environment. Specify the preview environment while initializing the Live Preview SDK. 91 92 ContentstackLivePreview.init({ 93 ..., 94 stackDetails: { 95 environment: 'Your-environment' 96 }, 97 ... 98 })`;let o=String(n.clientUrlParams.protocol),a=String(n.clientUrlParams.host),s=String(n.clientUrlParams.port),d=String(n.stackDetails.environment),u=String(n.stackDetails.branch||"main"),c=`!/stack/${n.stackDetails.apiKey}/content-type/${e}/${t??"en-us"}/entry/${i}`;r?c+=`/variant/${r}/edit`:c+="/edit";let f=new URL(`${o}://${a}`);return f.port=s,f.hash=c,n.stackDetails.branch&&f.searchParams.append("branch",u),f.searchParams.append("preview-field",l),f.searchParams.append("preview-locale",t??"en-us"),f.searchParams.append("preview-environment",d),`${f.origin}/${f.hash}${f.search}`}linkClickHandler(){if(!this.tooltip)return;let e=this.tooltip.getAttribute("current-href");e&&window.location.assign(e)}destroy(){window.removeEventListener("scroll",this.updateTooltipPosition),window.removeEventListener("mouseover",this.addEditStyleOnHover),this.overlayMouseMoveHandler&&(window.removeEventListener("mousemove",this.overlayMouseMoveHandler),this.overlayMouseMoveHandler=null),this.tooltip?.remove()}};rU.livePreviewEditButton=null,tZ(function(){if(!("u"<typeof window)&&(void 0===rV||"true"!==rV.env.PURGE_PREVIEW_SDK&&"true"!==rV.env.REACT_APP_PURGE_PREVIEW_SDK)){let e,t;iv.get().windowType,rU&&!er()&&(e=rB(),t=null!==document.getElementById(rP),e&&!t?rU.livePreviewEditButton=new rU:!e&&t&&rU.livePreviewEditButton?.destroy())}});function rF(){rH?.on("history",e=>{switch(e.data.type){case"forward":window.history.forward();break;case"backward":window.history.back();break;case"reload":window.history.go();break;default:{let t=e.data.type;throw Error(`Unhandled event: ${t}`)}}})}function r$(){rH?.on("client-data-send",e=>{try{let{ssr:t,onChange:i,stackDetails:r}=iv.get(),l=e.data._metadata?.event_type;if(e.data.hash&&(iv.set("hash",e.data.hash),ib({hash:e.data.hash})),t||l||i(),ea()){if(!window)return void et.error("window is not defined");if(t&&!l){let t=new URL(window.location.href),i=t.searchParams.get("live_preview"),l=t.searchParams.get("content_type_uid"),n=t.searchParams.get("entry_uid");i&&l&&n?window.location.reload():(i=e.data.hash,l=e.data.content_type_uid||r.contentTypeUid?.toString()||"",n=e.data.entry_uid||r.entryUid?.toString()||"",t.searchParams.set("live_preview",i),l&&t.searchParams.set("content_type_uid",l),n&&t.searchParams.set("entry_uid",n),window.location.href=t.toString())}if("hash_change"===l){let t=new URL(window.location.href);t.searchParams.set("live_preview",e.data.hash),window.history.pushState({},"",t.toString())}"url_change"===l&&e.data.url&&(window.location.href=e.data.url)}}catch(e){et.error("Error handling live preview update:",e);return}})}function rj(e,t){"string"==typeof t?(e[t]||et.warn("No subscriber found with the given id."),delete e[t]):"function"==typeof t&&(Object.entries(e).some(([i,r])=>r===t&&(delete e[i],!0))||et.warn("No subscriber found with the given callback."))}var rW=class{constructor(){this.subscribers={},this.requestDataSync=this.requestDataSync.bind(this),this.subscribeToOnEntryChange=this.subscribeToOnEntryChange.bind(this),this.publish=this.publish.bind(this),this.unsubscribeOnEntryChange=this.unsubscribeOnEntryChange.bind(this);const e=iv.get();e.debug&&et.debug("Contentstack Live Preview Debugging mode: config --",iv.config),e.enable?("interactive"===document.readyState||"complete"===document.readyState?this.requestDataSync():document.addEventListener("DOMContentLoaded",this.requestDataSync),!er()&&(e.editButton.enable||e.mode>=es.BUILDER)&&(rU.livePreviewEditButton?.destroy(),rU.livePreviewEditButton=new rU)):e.cleanCslpOnProduction&&document.querySelectorAll("[data-cslp]").forEach(e
98=>{e.removeAttribute("data-cslp"),e.removeAttribute("data-cslp-button-position")})}requestDataSync(){let e,t,i=iv.get();iv.set("onChange",this.publish),i.onChange(),t={shouldReload:(e=iv.get()).ssr,href:window.location.href,sdkVersion:"4.5.0",mode:e.mode},void 0!==e.enableLivePreviewOutsideIframe&&(t.enableLivePreviewOutsideIframe=e.enableLivePreviewOutsideIframe),rH?.send("init",{config:t}).then(e=>{let{contentTypeUid:t,entryUid:i,windowType:r=ed.PREVIEW}=e||{};(function(){try{return eo()&&window?.name=="visual-editor"}catch(e){return!1}})()||iv?.get()?.windowType&&iv.get().windowType===ed.BUILDER||(t&&i&&(iv.set("stackDetails.contentTypeUid",t),iv.set("stackDetails.entryUid",i),ib({contentTypeUid:t,entryUid:i})),(iv.get().ssr||er()||ea())&&window.addEventListener("click",e=>{let t=e.target,i=t.closest("a");if(!i||!i.contains(t))return;let r=i.href,l=document.location.origin;r&&r.includes(l)&&!r.includes("live_preview")&&(i.href=function(e){try{let t=new URL(document.location.href),i=new URL(e),r=t.searchParams.get("live_preview"),l=t.searchParams.get("content_type_uid"),n=t.searchParams.get("entry_uid"),o=t.searchParams.get("preview_timestamp");return r&&i.searchParams.set("live_preview",r),l&&n&&(i.searchParams.set("content_type_uid",l),i.searchParams.set("entry_uid",n)),o&&i.searchParams.set("preview_timestamp",o),i.href}catch(t){return et.error("Error while adding live preview to URL"),e}}(r)||r)}),iv.set("windowType",r),iv.get().ssr||setInterval(()=>{rH?.send("check-entry-page",{href:window.location.href}).catch(()=>{})},1500),rF(),r$())}).catch(e=>{})}subscribeToOnEntryChange(e,t){return this.subscribers[t]=e,t}publish(){Object.values(this.subscribers).forEach(e=>{e()})}unsubscribeOnEntryChange(e){rj(this.subscribers,e)}},rz=rN(rR(),1);"u">typeof window&&(nu=new rz.EventManager("timeline",{target:window.parent,debug:!1}));var rZ=nu,rG=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","video"]),rq="[data-cslp]:not(:has([data-cslp]))",rY="cs-compare",rK=i(69730);function rX(){let e=iv.get().pageContext;return{entryUid:e?.entryUid??window.__CS_PAGE_CONTEXT__?.entryUid??document.querySelector('meta[name="contentstack:entry-uid"]')?.getAttribute("content")??void 0,contentTypeUid:e?.contentTypeUid??window.__CS_PAGE_CONTEXT__?.contentTypeUid??document.querySelector('meta[name="contentstack:content-type-uid"]')?.getAttribute("content")??void 0}}function rQ(){let{stackDetails:e,clientUrlParams:t}=iv.get(),{branch:i,apiKey:r,environment:l,locale:n}=e,{url:o}=t,a=new URLSearchParams;i&&a.set("branch",i),l&&a.set("environment",l),a.set("target-url",window.location.href);let s=document.querySelector("[data-cslp]"),d=n;if(s){let e=s.getAttribute("data-cslp");if(rx(e)){let{locale:t}=rE(e);d=t}}d&&a.set("locale",d);let{entryUid:u,contentTypeUid:c}=rX();return u&&a.set("entry_uid",u),c&&a.set("content_type_uid",c),new URL(`/#!/stack/${r}/visual-editor?${a.toString()}`,o)}var rJ=` 99 pointer-events: all; 100 svg { 101 pointer-events: none; 102 } 103 &:before { 104 content: attr(data-tooltip); 105 position: absolute; 106 bottom: 20px; 107 margin-bottom: 24px; 108 padding: 12px; 109 border-radius: 4px; 110 width: max-content; 111 max-width: 200px; 112 color: #fff; 113 font-family: Inter, sans-serif; 114 font-size: 0.75rem; 115 font-style: normal; 116 font-weight: 400; 117 line-height: 132%; /* 0.99rem */ 118 letter-spacing: 0.015rem; 119 background: #767676; 120 } 121 &:after { 122 content: ""; 123 position: absolute; 124 bottom: 28px; 125 /* the arrow */ 126 border: 10px solid #000; 127 border-color: #767676 transparent transparent transparent; 128 } 129`;function r1(){return{"visual-builder__container":rm` 130 --outline-transition: all 0.15s ease-in; 131 font-family: "Inter", sans-serif; 132 `,"visual-builder__cursor":rm` 133 visibility: hidden; 134 height: 0; 135 136 &.visible { 137 visibility: visible; 138 position: fixed; 139 top: 0; 140 left: 0; 141 z-index: 2147483647 !important; 142 143 color: #fff; 144 145 height: auto; 146 padding: 0 10px; 147 148 display: flex; 149 align-items: center; 150 justify-content: center; 151 152 pointer-events: none !important; 153 position: fixed !important;
154 cursor: none; 155 } 156 `,"tooltip-container":rm` 157 position: absolute; 158 background-color: #767676; 159 color: white; 160 padding: 12px; 161 border-radius: 4px; 162 font-size: 12px; 163 line-height: 1.4; 164 z-index: 1000; 165 pointer-events: none; 166 max-width: 250px; 167 text-align: center; 168 `,"tooltip-arrow":rm` 169 position: absolute; 170 background: #767676; 171 width: 8px; 172 height: 8px; 173 transform: rotate(45deg); 174 `,"toolbar-tooltip-content":rm` 175 display: flex; 176 flex-direction: column; 177 gap: 4px; 178 `,"toolbar-tooltip-content-item":rm` 179 display: flex; 180 align-items: center; 181 justify-content: start; 182 gap: 4px; 183 white-space: nowrap; 184 overflow: hidden; 185 text-overflow: ellipsis; 186 187 p { 188 margin: 0; 189 color: #fff; 190 overflow: hidden; 191 text-overflow: ellipsis; 192 max-width: 100%; 193 } 194 `,"visual-builder__overlay__wrapper":rm` 195 position: absolute; 196 top: 0; 197 left: 0; 198 width: 100%; 199 height: 100vh; 200 visibility: hidden; 201 z-index: 99999; 202 203 pointer-events: none; 204 205 &.visible { 206 visibility: visible; 207 } 208 `,"visual-builder__empty-block-plus-icon":rm` 209 font-size: 22px; 210 font-weight: 300; 211 display: flex; 212 align-items: center; 213 justify-content: center; 214 `,"visual-builder__overlay--outline":rm` 215 position: absolute; 216 outline: 4px solid #715cdd; 217 transition: var(--outline-transition); 218 `,"visual-builder__overlay":rm` 219 background: rgba(0, 0, 0, 0.3); 220 box-sizing: content-box; 221 pointer-events: all; 222 position: absolute; 223 transition: var(--outline-transition); 224 `,"visual-builder__add-button":rm` 225 position: absolute; 226 pointer-events: all; 227 228 background: #ffffff; 229 color: #475161; 230 231 border-radius: 4px; 232 border: 1px solid #6c5ce7; 233 234 height: 32px; 235 min-width: 32px; 236 max-width: 180px; 237 padding: 8px 6px; 238 transform: translate(-50%, -50%); 239 240 font-weight: 600; 241 color: #6c5ce7; 242 overflow: hidden; 243 244 z-index: 2147483646 !important; 245 246 display: grid; 247 grid-template-columns: min-content 0fr; 248 align-content: center; 249 gap: 0; 250 251 transition: 252 grid-template-columns 0.25s, 253 left 0.15s ease-in, 254 top 0.15s ease-in, 255 gap 0.15s ease-in; 256 257 &:has(.visual-builder__add-button-label):hover { 258 grid-template-columns: min-content 1fr; 259 gap: 8px; 260 padding: 8px 16px; 261 } 262 263 svg { 264 fill: #6c5ce7; 265 } 266 267 &:disabled { 268 border-color: #bbbec3; 269 cursor: not-allowed; 270 } 271 272 &:disabled svg { 273 fill: #bbbec3; 274 } 275 `,"visual-builder__add-button-label":rm` 276 white-space: nowrap; 277 overflow: hidden; 278 text-overflow: ellipsis; 279 `,"visual-builder__add-button--loading":rm` 280 cursor: wait; 281 /* we have not-allowed on disabled, so we need this */ 282 &:disabled { 283 cursor: wait; 284 } 285 `,"visual-builder__start-editing-btn":rm` 286 z-index: 1000; 287 text-decoration: none; 288 position: fixed; 289 box-shadow: 290 0px 4px 15px 0px rgba(108, 92, 231, 0.2), 291 0px 3px 14px 3px rgba(0, 0, 0, 0.12), 292 0px 8px 10px 1px rgba(0, 0, 0, 0.14); 293 display: inline-flex; 294 padding: 0.5rem 1rem; 295 justify-content: center; 296 align-items: center; 297 gap: 0.5rem; 298 299 border-radius: 4px; 300 border: 1px solid transparent; 301 background: #6c5ce7; 302 transition: 303 background-color 0.15s ease-in-out, 304 border-color 0.15s ease-in-out, 305 box-shadow 0.15s ease-in-out, 306 -webkit-box-shadow 0.15s ease-in-out; 307 308 &:hover { 309 background-color: #5d50be; 310 } 311 &:focus { 312 outline: none; 313 box-shadow: 0 0 0 2px #ada4f4; 314 } 315 & > span { 316 color: #fff; 317 /* Body/P1 Bold */ 318 font-size: 1rem; 319 font-family: Inter, sans-serif; 320 font-weight: 600; 321 line-height: 150%; 322 letter-spacing: 0.01rem; 323 text-transform: capitalize; 324 } 325 326 & > svg { 327 color: #fff; 328 font-size: 1rem; 329 font-family: Inter, sans-serif; 330 font-weight: 600; 331 line-height: 150%; 332 letter-spacing: 0.01rem; 333 text-transform: capitalize; 334 } 335 `,"visual-builder__start-editing-btn__bottom-right":rm` 336 bottom: 30px; 337 right: 30px; 338 `,"visual-builder__start-editing-btn__bottom-left":rm` 339 bottom: 30px; 340 left: 30px; 341 `,"visual-builder__start-editing-btn__top-right":rm` 342 top: 30px; 343 right: 30px; 344 `,"visual-builder__start-editing-btn__top-left":rm` 345 top: 30px; 346 left: 30px; 347 `,"visual-builder__cursor-icon":rm` 348 height: 40px; 349 width: 40px; 350 display: flex; 351 align-items: center; 352 justify-content: center; 353 background: #5d50be; 354 border-radius: 50%; 355 position: absolute; 356 top: 0; 357 left: 0; 358 `,"visual-builder__cursor-pointer":rm` 359 position: absolute; 360 top: -8px; 361 left: -8px; 362 `,"visual-builder__cursor-icon--loader":rm`
363 animation: visual-builder__spinner 1s linear infinite; 364 `,"visual-builder__variant-indicator":rm` 365 height: calc(100% - 1px); 366 aspect-ratio: 1; 367 background: white; 368 border-radius: 2px; 369 border-width: 2px; 370 border-style: solid; 371 align-content: center; 372 text-align: center; 373 border-color: #BD59FA; 374 375 svg { 376 color: #BD59FA; 377 } 378 `,"visual-builder__focused-toolbar":rm` 379 position: absolute; 380 transform: translateY(-100%); 381 z-index: 100000; 382 gap: 8px; 383 width: 0; 384 display: flex; 385 align-items: end; 386 transition: var(--outline-transition); 387 `,"visual-builder__focused-toolbar__field-label-wrapper__current-field":rm` 388 padding: 4px 8px !important; 389 background: #6c5ce7; 390 color: #fff; 391 z-index: 1; 392 border-radius: 2px !important; 393 display: flex; 394 align-items: center; 395 justify-content: space-between; 396 width: fit-content; 397 398 &:disabled { 399 filter: contrast(0.7); 400 } 401 402 .visual-builder__focused-toolbar__text { 403 padding-right: 3px; 404 height: 16px; 405 } 406 `,"visual-builder__focused-toolbar__field-label-wrapper__parent-field":rm` 407 pointer-events: none; 408 color: #5d50be; 409 padding: 4px !important; 410 margin-bottom: 3px; 411 display: none; 412 width: fit-content; 413 position: absolute; 414 z-index: 100000; 415 `,"field-label-dropdown-open":rm` 416 .visual-builder__focused-toolbar__field-label-wrapper__parent-field { 417 pointer-events: all; 418 visibility: visible; 419 display: initial; 420 } 421 422 .visual-builder__button--secondary:hover { 423 background-color: #6c5ce7; 424 color: #f9f8ff; 425 } 426 `,"visual-builder__focused-toolbar__field-label-wrapper":rm` 427 display: flex; 428 flex-direction: column-reverse; 429 position: relative; 430 margin-right: 0.5rem; 431 `,"visual-builder__focused-toolbar__field-label-container":rm` 432 display: flex; 433 height: 1.75rem; 434 align-items: center; 435 `,"visual-builder__button":rm` 436 background-color: transparent; 437 border: 1px solid transparent; 438 border-radius: 4px; 439 font-size: 16px; 440 font-weight: 600; 441 line-height: 100%; 442 padding: 8px 16px; 443 text-align: center; 444 z-index: 2147483647 !important; 445 transition: 446 color 0.15s ease-in-out, 447 background-color 0.15s ease-in-out, 448 border-color 0.15s ease-in-out, 449 box-shadow 0.15s ease-in-out; 450 // vertical-align: middle; 451 &:disabled { 452 cursor: not-allowed; 453 svg { 454 fill: #999; 455 path { 456 fill: #999; 457 } 458 } 459 } 460 `,"visual-builder__button--primary":rm` 461 background-color: #6c5ce7; 462 color: #fff; 463 464 &:hover { 465 background-color: #5d50be; 466 } 467 `,"visual-builder__button--secondary":rm` 468 background-color: #f9f8ff; 469 border: 1px solid #6c5ce7; 470 color: #6c5ce7; 471 `,"visual-builder__button--edit":rm` 472 svg { 473 height: 16px; 474 width: 16px; 475 476 path { 477 fill: #475161; 478 } 479 } 480 `,"visual-builder__button-loader":rm` 481 svg.loader { 482 height: 16px; 483 width: 16px; 484 485 path { 486 fill: #ffffff; 487 } 488 } 489 `,"visual-builder__button--comment-loader":rm` 490 cursor: wait !important; 491 svg.loader { 492 height: 16px; 493 width: 16px; 494 495 path { 496 fill: #475161; 497 } 498 } 499 `,"visual-builder__field-icon":rm` 500 svg { 501 height: 16px; 502 width: 16px; 503 margin-right: 3px; 504 } 505 `,"visual-builder__content-type-icon":rm` 506 svg { 507 height: 16px; 508 width: 16px; 509 margin-right: 3px; 510 } 511 `,"visual-builder__caret-right-icon":rm` 512 svg { 513 height: 16px; 514 width: 16px; 515 } 516 `,"visual-builder__reference-icon-container":rm` 517 display: flex; 518 align-items: center; 519 520 .visual-builder__field-icon { 521 svg { 522 margin-right: 0px; 523 } 524 } 525 `,"visual-builder__focused-toolbar__button-group":rm` 526 display: flex; 527 background: #fff; 528 border-radius: 2px; 529 height: 100%; 530 padding: 4px !important; 531 z-index: 2147483647 !important; 532 533 &:has(.visual-builder__button) { 534 padding: 2px; 535 gap: 8px; 536 } 537 538 .visual-builder__button:enabled:hover { 539 background-color: #f5f5f5; 540 541 svg { 542 color: #5d50be; 543 } 544 } 545 546 .visual-builder__button { 547 background-color: #fff; 548 border-color: transparent; 549 color: #475161; 550 padding: 4px; 551 min-width: 32px; 552 min-height: 32px; 553 } 554 `,"visual-builder__focused-toolbar__text":rm` 555 font-family: Inter, "sans-serif"; 556 font-size: 0.75rem; 557 font-style: normal; 558 font-weight: 400; 559 line-height: 150%; 560 letter-spacing: 0.015rem; 561 max-width: 150px; 562 overflow: hidden; 563 text-overflow: ellipsis; 564 text-wrap: nowrap; 565 `,"visual-builder__focused-toolbar__multiple-field-toolbar":rm` 566 height: 40px; 567 z-index: 2147483647 !important; 568 569 svg { 570 height: 100%; 571 width: 100%; 572 } 573 `,"visual-builder__rotate--90":rm` 574 transform: rotate(90deg); 575 `,"visual-builder__focused-toolbar--field-disabled":rm` 576 pointer-events: none;
577 cursor: not-allowed; 578 .visual-builder__focused-toolbar__field-label-wrapper__current-field { 579 background: #909090; 580 } 581 `,"visual-builder__focused-toolbar--variant":rm` 582 .visual-builder__focused-toolbar__field-label-wrapper__current-field { 583 background: #BD59FA; 584 } 585 `,"visual-builder__cursor-disabled":rm` 586 .visual-builder__cursor-icon { 587 background: #909090; 588 } 589 590 .visual-builder__cursor-pointer path { 591 fill: #909090; 592 } 593 `,"visual-builder__tooltip":rm` 594 ${rJ} 595 596 &:before { 597 display: none; 598 } 599 600 &:hover:before, 601 &:hover:after { 602 display: block; 603 z-index: 2147483647 !important; 604 } 605 606 &:after { 607 display: none; 608 } 609 `,"visual-builder__tooltip--bottom":rm` 610 &:before { 611 bottom: -66px; 612 } 613 &:after { 614 bottom: -6px; 615 transform: rotate(180deg); 616 } 617 `,"visual-builder__tooltip--persistent":rm` 618 ${rJ} 619 620 &:before { 621 display: block; 622 } 623 624 &:after { 625 display: block; 626 } 627 628 &:has(.visual-builder__custom-tooltip):before, 629 &:has(.visual-builder__custom-tooltip):after { 630 display: none; 631 } 632 `,"visual-builder__tooltip--persistent--below":rm` 633 &:before { 634 bottom: -66px; 635 margin-bottom: 0; 636 margin-top: 0; 637 top: auto; 638 } 639 640 &:after { 641 bottom: -13px; 642 margin-top: 0; 643 top: auto; 644 transform: rotate(180deg); 645 } 646 `,"visual-builder__custom-tooltip":rm` 647 position: absolute; 648 bottom: 20px; 649 margin-bottom: 24px; 650 padding: 12px; 651 border-radius: 4px; 652 width: max-content; 653 max-width: 200px; 654 color: #fff; 655 font-family: Inter; 656 font-size: 0.75rem; 657 font-style: normal; 658 font-weight: 400; 659 line-height: 132%; /* 0.99rem */ 660 letter-spacing: 0.015rem; 661 background: #767676; 662 663 &:after { 664 content: ""; 665 position: absolute; 666 bottom: -10px; 667 left: 10px; 668 border: 10px solid #000; 669 border-color: #767676 transparent transparent transparent; 670 } 671 `,"visual-builder__custom-tooltip--below":rm` 672 bottom: auto; 673 top: 100%; 674 margin-bottom: 0; 675 margin-top: 8px; 676 677 &:after { 678 content: none; 679 } 680 `,"visual-builder__custom-tooltip--workflow-access":rm` 681 max-width: 325px; 682 `,"visual-builder__empty-block":rm` 683 width: 100%; 684 height: 100%; 685 display: flex; 686 align-items: center; 687 justify-content: center; 688 flex-direction: column; 689 gap: 1rem; 690 min-height: 100px; 691 `,"visual-builder__empty-block-title":rm` 692 font-size: 0.95rem; 693 font-family: Inter, sans-serif; 694 font-weight: 400; 695 line-height: 100%; 696 color: #647696; 697 `,"visual-builder__empty-block-field-name":rm` 698 font-weight: 700; 699 `,"visual-builder__empty-block-add-button":rm` 700 height: 32px; 701 border-radius: 4px; 702 background: #f9f8ff; 703 border-color: #6c5ce7; 704 border-width: 1px; 705 padding: 0 16px; 706 font-size: 0.9rem; 707 font-family: Inter, sans-serif; 708 font-weight: 600; 709 color: #6c5ce7; 710 letter-spacing: 0.01rem; 711 display: inline-flex; 712 align-items: center; 713 justify-content: center; 714 `,"visual-builder__hover-outline":rm` 715 position: absolute; 716 outline: 2px dashed #6c5ce7; 717 transition: var(--outline-transition); 718 z-index: 2147483646 !important; 719 `,"visual-builder__hover-outline--hidden":rm` 720 visibility: hidden; 721 `,"visual-builder__hover-outline--unclickable":rm` 722 pointer-events: none; 723 `,"visual-builder__hover-outline--disabled":rm` 724 outline: 2px dashed #909090; 725 `,"visual-builder__hover-outline--variant":rm` 726 outline: 2px dashed #BD59FA; 727 `,"visual-builder__default-cursor--disabled":rm`
728 cursor: none; 729 /* links/buttons carry their own cursor:pointer â suppress it too 730 while the custom cursor is active. Scoped to this body class so 731 it auto-reverts when the class is removed */ 732 & a, 733 & button { 734 cursor: none !important; 735 } 736 `,"visual-builder__draft-field":rm` 737 outline: 2px dashed #eb5646; 738 `,"visual-builder__variant-field":rm``,"visual-builder__variant-field-outline":rm` 739 outline: 2px solid #bd59fa; 740 outline-offset: -2px; 741 `,"visual-builder__pseudo-editable-element":rm` 742 z-index: 99999 !important; 743 `,"visual-builder__button-error":rm` 744 background-color: #ffeeeb; 745 padding: 0px !important; 746 &:hover { 747 background-color: #ffeeeb; 748 } 749 `,"visual-builder__focused-toolbar__error":rm` 750 display: flex; 751 justify-content: center; 752 align-items: center; 753 column-gap: 3px; 754 padding: 4px 8px; 755 `,"visual-builder__focused-toolbar__error-text":rm` 756 font-weight: 400; 757 font-size: 12px; 758 line-height: 18px; 759 color: #a31b00; 760 `,"visual-builder__focused-toolbar__error-toolip":rm` 761 position: absolute; 762 width: 400px; 763 background-color: red; 764 left: 0; 765 top: -7px; 766 transform: translateY(-100%); 767 background-color: #767676; 768 border-radius: 4px; 769 box-shadow: 770 0px 1px 10px 0px #6c5ce733, 771 0px 5px 5px 0px #0000001f, 772 0px 2px 4px 0px #00000024; 773 padding: 12px; 774 text-align: left; 775 776 &:before { 777 content: ""; 778 position: absolute; 779 bottom: -3px; 780 left: 4%; 781 transform: translateX(-50%) rotate(45deg); 782 width: 10px; 783 height: 10px; 784 background-color: #767676; 785 } 786 787 > p { 788 margin: 0; 789 color: #ffffff; 790 font-size: 14px; 791 font-weight: 600; 792 line-height: 21px; 793 margin-bottom: 4px; 794 } 795 796 > span { 797 color: #ffffff; 798 font-size: 12px; 799 font-weight: 400; 800 line-height: 18px; 801 } 802 `,"variant-field-revert-component":rm` 803 position: relative; 804 display: inline-block; 805 z-index: 2147483647 !important; 806 `,"variant-field-revert-component__dropdown-content":rm` 807 position: absolute; 808 top: -12px; 809 left: -4px; 810 background-color: #ffffff; 811 min-width: max-content; 812 box-shadow: 813 0 4px 15px 0 rgba(108, 92, 231, 0.2), 814 0 3px 14px 3px rgba(0, 0, 0, 0.12), 815 0 8px 10px 1px rgba(0, 0, 0, 0.14); 816 z-index: 2147483647 !important; 817 margin-top: 4px; 818 padding: 4px 0px; 819 border-radius: 2px; 820 `,"variant-field-revert-component__dropdown-content__list-item":rm` 821 color: black; 822 font-weight: 400; 823 padding: 9.6px 16px; 824 text-decoration: none; 825 display: block; 826 font-size: 0.75rem; 827 height: 32px; 828 line-height: 2rem; 829 display: flex; 830 align-items: center; 831 z-index: 2147483647 !important; 832 cursor: pointer; 833 &:hover { 834 background-color: #f1f1f1; 835 } 836 &:hover > span { 837 color: #5d50be; 838 } 839 & > span { 840 margin-top: 4px; 841 margin-bottom: 4px; 842 } 843 `,"visual-builder__field-toolbar-container":rm` 844 display: flex; 845 flex-direction: column-reverse; 846 z-index: 2147483647 !important; 847 position: relative; 848 `,"visual-builder__custom-field-instance-message":rm` 849 display: flex; 850 align-items: center; 851 height: 40px; 852 padding: 0 12px; 853 background: #fff; 854 border-radius: 4px; 855 box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15); 856 font-size: 12px; 857 color: #475161; 858 white-space: nowrap; 859 `,"visual-builder__variant-button":rm` 860 display: flex; 861 min-width: 3rem !important; 862 gap: 0.25rem; 863 align-items: center; 864 justify-content: center; 865 display: flex; 866 & svg path { 867 fill: #475161; 868 } 869 `,"visual-builder__field-location-icons-container":rm` 870 display: flex; 871 gap: 0.25rem; 872 align-items: center; 873 justify-content: center; 874 margin-left: 0.25rem; 875 `,"visual-builder__field-location-icons-container__divider":rm` 876 height: 32px !important; 877 width: 1px; 878 border-radius: 2px; 879 background-color: #8a8f99; 880 `,"visual-builder__field-location-icons-container__app-icon":rm` 881 width: 24px; 882 height: 24px; 883 object-fit: cover; 884 `,"visual-builder__field-location-app-list":rm` 885 position: absolute; 886 top: 0; 887 background: #fff; 888 border: 1px solid #e0e0e0; 889 border-radius: 8px; 890 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); 891 z-index: 1000; 892 min-width: 230px; 893 max-height: 250px; 894 min-height: 250px; 895 overflow-y: auto; 896 display: flex; 897 flex-direction: column; 898 `,"visual-builder__field-location-app-list--left":rm` 899 right: 100%; 900 margin-right: 8px; 901 `,"visual-builder__field-location-app-list--right":rm` 902 left: 100%; 903 margin-left: 8px; 904 `,"visual-builder__field-location-app-list__search-container":rm` 905 display: flex; 906 align-items: center; 907 padding: 10px 16px 0px 16px; 908 border: none;
909 border-bottom: 1px solid #f0f0f0; 910 `,"visual-builder__field-location-app-list__search-input":rm` 911 width: 100%; 912 padding: 10px 12px; 913 font-size: 14px; 914 outline: none; 915 box-sizing: border-box; 916 border: none; 917 `,"visual-builder__field-location-app-list__search-icon":rm` 918 width: 14px; 919 height: 14px; 920 `,"visual-builder__field-location-app-list__content":rm` 921 flex: 1; 922 overflow-y: auto; 923 `,"visual-builder__field-location-app-list__no-results":rm` 924 display: flex; 925 align-items: center; 926 justify-content: center; 927 height: 100%; 928 width: 100%; 929 text-align: center; 930 `,"visual-builder__field-location-app-list__no-results-text":rm` 931 color: #373b40; 932 font-weight: 400; 933 `,"visual-builder__field-location-app-list__item":rm` 934 display: flex; 935 align-items: center; 936 padding: 10px 16px; 937 cursor: pointer; 938 font-size: 14px; 939 `,"visual-builder__field-location-app-list__item-icon-container":rm` 940 width: 24px; 941 height: 24px; 942 margin-right: 12px; 943 display: flex; 944 align-items: center; 945 justify-content: center; 946 `,"visual-builder__field-location-app-list__item-icon":rm` 947 width: 24px; 948 height: 24px; 949 border-radius: 50%; 950 object-fit: cover; 951 `,"visual-builder__field-location-app-list__item-title":rm` 952 color: #373b40; 953 font-weight: 400; 954 `}}var r2=` 955 @import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"); 956 957 [data-cslp] [contenteditable="true"] { 958 outline: none; 959 } 960 961 @keyframes visual-builder__spinner { 962 0% { 963 transform: rotate(0deg); 964 } 965 100% { 966 transform: rotate(360deg); 967 } 968 } 969 970`,r5=0;function r0(e,t,i,r,l,n){t||(t={});var o,a,s=t;if("ref"in s)for(a in s={}
970,t)"ref"==a?o=t[a]:s[a]=t[a];var d={type:e,props:s,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--r5,__i:-1,__u:0,__source:l,__self:n};if("function"==typeof e&&(o=e.defaultProps))for(a in o)void 0===s[a]&&(s[a]=o[a]);return ew.vnode&&ew.vnode(d),d}var r3=({disabled:e=!1})=>({opacity:e?.5:1,cursor:e?"not-allowed":"pointer"});function r7({open:e=!1}){return r0("svg",{"data-testid":"visual-builder__caret-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:e?"rotate(180deg)":"rotate(0deg)"},children:r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.73483 5.73483C2.88128 5.58839 3.11872 5.58839 3.26517 5.73483L8 10.4697L12.7348 5.73483C12.8813 5.58839 13.1187 5.58839 13.2652 5.73483C13.4116 5.88128 13.4116 6.11872 13.2652 6.26517L8.26516 11.2652C8.11872 11.4116 7.88128 11.4116 7.73484 11.2652L2.73483 6.26517C2.58839 6.11872 2.58839 5.88128 2.73483 5.73483Z",fill:"white"})})}function r6(){return r0("svg",{"data-testid":"visual-builder__delete-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r0("path",{d:"M6.5 6.125C6.70711 6.125 6.875 6.29289 6.875 6.5V10.5C6.875 10.7071 6.70711 10.875 6.5 10.875C6.29289 10.875 6.125 10.7071 6.125 10.5V6.5C6.125 6.29289 6.29289 6.125 6.5 6.125Z",fill:"currentColor"}),r0("path",{d:"M9.875 6.5C9.875 6.29289 9.70711 6.125 9.5 6.125C9.29289 6.125 9.125 6.29289 9.125 6.5V10.5C9.125 10.7071 9.29289 10.875 9.5 10.875C9.70711 10.875 9.875 10.7071 9.875 10.5V6.5Z",fill:"currentColor"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.5 1.125C6.13533 1.125 5.78559 1.26987 5.52773 1.52773C5.26987 1.78559 5.125 2.13533 5.125 2.5V3.125H2.5C2.29289 3.125 2.125 3.29289 2.125 3.5C2.125 3.70711 2.29289 3.875 2.5 3.875H3.125V13C3.125 13.2321 3.21719 13.4546 3.38128 13.6187C3.54538 13.7828 3.76794 13.875 4 13.875H12C12.2321 13.875 12.4546 13.7828 12.6187 13.6187C12.7828 13.4546 12.875 13.2321 12.875 13V3.875H13.5C13.7071 3.875 13.875 3.70711 13.875 3.5C13.875 3.29289 13.7071 3.125 13.5 3.125H10.875V2.5C10.875 2.13533 10.7301 1.78559 10.4723 1.52773C10.2144 1.26987 9.86467 1.125 9.5 1.125H6.5ZM10.125 3.125V2.5C10.125 2.33424 10.0592 2.17527 9.94194 2.05806C9.82473 1.94085 9.66576 1.875 9.5 1.875H6.5C6.33424 1.875 6.17527 1.94085 6.05806 2.05806C5.94085 2.17527 5.875 2.33424 5.875 2.5V3.125H10.125ZM3.875 3.875V13C3.875 13.0332 3.88817 13.0649 3.91161 13.0884C3.93505 13.1118 3.96685 13.125 4 13.125H12C12.0332 13.125 12.0649 13.1118 12.0884 13.0884C12.1118 13.0649 12.125 13.0332 12.125 13V3.875H3.875Z",fill:"currentColor"})]})}function r8(){return r0("svg",{width:"17",height:"21",viewBox:"0 0 17 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.75223 0.900517C5.05206 0.712906 4.33237 1.12842 4.14475 1.82859L3.44577 4.43724H1.75C1.02513 4.43724 0.4375 5.02486 0.4375 5.74974V19.2497C0.4375 19.9746 1.02513 20.5622 1.75 20.5622H12.25C12.9749 20.5622 13.5625 19.9746 13.5625 19.2497V17.3922L16.8225 5.22559C17.0101 4.52542 16.5946 3.80573 15.8945 3.61812L5.75223 0.900517ZM13.5625 13.0455L15.7359 4.93442C15.7627 4.8344 15.7033 4.73158 15.6033 4.70478L5.46106 1.98718C5.36104 1.96038 5.25822 2.01974 5.23142 2.11977L4.61046 4.43724H12.25C12.9749 4.43724 13.5625 5.02486 13.5625 5.74974V13.0455ZM1.5625 5.74974C1.5625 5.64618 1.64645 5.56224 1.75 5.56224H12.25C12.3536 5.56224 12.4375 5.64618 12.4375 5.74974V19.2497C12.4375 19.3533 12.3536 19.4372 12.25 19.4372H1.75C1.64645 19.4372 1.5625 19.3533 1.5625 19.2497V5.74974Z",fill:"currentColor"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4375 8.74974C3.4375 8.43908 3.68934 8.18724 4 8.18724H10C10.3107 8.18724 10.5625 8.43908 10.5625 8.74974C10.5625 9.0604 10.3107 9.31224 10 9.31224H4C3.68934 9.31224 3.4375 9.0604 3.4375 8.74974Z",fill:"currentColor"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4375 11.7497C3.4375 11.4391 3.68934 11.1872 4 11.1872H10C10.3107 11.1872 10.5625 11.4391 10.5625 11.7497C10.5625 12.0604 10.3107 12.3122 10 12.3122H4C3.68934 12.3122 3.4375 12.0604 3.4375 11.7497Z",fill:"currentColor"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4375 14.7497C3.4375 14.4391 3.68934 14.1872 4 14.1872H10C10.3107 14.1872 10.5625 14.4391 10.5625 14.7497C10.5625 15.0604 10.3107 15.3122 10 15.3122H4C3.68934 15.3122 3.4375 15.0604 3.4375 14.7497Z",fill:"currentColor"})]})}function r4(e){return r0("svg",{"data-testid":"visual-builder__move-left-icon",className:e.className,width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:r3(e),children:[r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.125 8C2.125 7.79289 2.29289 7.625 2.5 7.625H13.5C13.7071 7.625 13.875 7.79289 13.875 8C13.875 8.20711 13.7071 8.375 13.5 8.375H2.5C2.29289 8.375 2.125 8.20711 2.125 8Z",fill:"currentColor"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26516 3.23483C7.41161 3.38128 7.41161 3.61872 7.26516 3.76517L3.03033 8L7.26516 12.2348C7.41161 12.3813 7.41161 12.6187 7.26516 12.7652C7.11872 12.9116 6.88128 12.9116 6.73484 12.7652L2.23483 8.26516C2.08839 8.11872 2.08839 7.88128 2.23483 7.73484L6.73484 3.23483C6.88128 3.08839 7.11872 3.08839 7.26516 3.23483Z",fill:"currentColor"})]})}function r9(e){return r0("svg",{className:e.className,"data-testid":"visual-builder__move-right-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:r3(e),children:[r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.125 8C2.125 7.79289 2.29289 7.625 2.5 7.625H13.5C13.7071 7.625 13.875 7.79289 13.875 8C13.875 8.20711 13.7071 8.375 13.5 8.375H2.5C2.29289 8.375 2.125 8.20711 2.125 8Z",fill:"currentColor"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.73484 3.23483C8.88128 3.08839 9.11872 3.08839 9.26516 3.23483L13.7652 7.73484C13.9116 7.88128 13.9116 8.11872 13.7652 8.26516L9.26516 12.7652C9.11872 12.9116 8.88128 12.9116 8.73484 12.7652C8.58839 12.6187 8.58839 12.3813 8.73484 12.2348L12.9697 8L8.73484 3.76517C8.58839 3.61872 8.58839 3.38128 8.73484 3.23483Z",fill:"currentColor"})]})}function le(){return r0("svg",{"data-testid":"visual-builder__info-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r0("path",{d:"M8 5.5C7.72386 5.5 7.5 5.72386 7.5 6C7.5 6.27614 7.72386 6.5 8 6.5C8.27614 6.5 8.5 6.27614 8.5 6C8.5 5.72386 8.27614 5.5 8 5.5Z",fill:"white"}),r0("path",{d:"M8 10.875C7.79289 10.875 7.625 10.7071 7.625 10.5V7.5C7.625 7.29289 7.79289 7.125 8 7.125C8.20711 7.125 8.375 7.29289 8.375 7.5V10.5C8.375 10.7071 8.20711 10.875 8 10.875Z",fill:"white"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8ZM13.25 8C13.25 10.8995 10.8995 13.25 8 13.25C5.10051 13.25 2.75 10.8995 2.75 8C2.75 5.10051 5.10051 2.75 8 2.75C10.8995 2.75 13.25 5.10051 13.25 8Z",fill:"white"})]})}function lt(){return r0("svg",{"data-testid":"visual-builder__edit-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"
970currentColor",xmlns:"http://www.w3.org/2000/svg",children:r0("g",{id:"Edit",children:r0("path",{id:"Edit_2","fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.58347 15.3803C3.35617 15.6076 3.22019 15.9104 3.20131 16.2313L3.00244 19.6122C2.95629 20.3967 3.60524 21.0456 4.38975 20.9995L7.7706 20.8006C8.0915 20.7817 8.39431 20.6458 8.62161 20.4185L20.6176 8.4225C21.1301 7.90993 21.1301 7.07891 20.6176 6.56634L17.4356 3.38436C16.923 2.8718 16.092 2.8718 15.5794 3.38436L3.58347 15.3803ZM4.32437 16.2974C4.32707 16.2515 4.3465 16.2083 4.37897 16.1758L14.2003 6.35446L17.4954 9.64949C17.5492 9.70337 17.6113 9.74403 17.6776 9.77148L7.82611 19.623C7.79364 19.6554 7.75038 19.6749 7.70454 19.6776L4.32369 19.8764C4.21161 19.883 4.11891 19.7903 4.1255 19.6782L4.32437 16.2974ZM18.4128 9.03624L19.8221 7.627C19.8953 7.55378 19.8953 7.43506 19.8221 7.36184L16.6401 4.17986C16.5669 4.10663 16.4481 4.10663 16.3749 4.17986L14.9958 5.55897L18.2908 8.854C18.3447 8.90788 18.3854 8.96996 18.4128 9.03624Z",fill:"currentColor"})})})}function li(){return r0("svg",{"data-testid":"visual-builder__plus-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",children:r0("path",{d:"M10.4688 4.375C10.4688 4.11612 10.259 3.90625 10.0001 3.90625C9.74121 3.90625 9.53135 4.11612 9.53135 4.375V9.27307H4.37402C4.11514 9.27307 3.90527 9.48294 3.90527 9.74182C3.90527 10.0007 4.11514 10.2106 4.37402 10.2106H9.53135V15.625C9.53135 15.8839 9.74121 16.0937 10.0001 16.0937C10.259 16.0937 10.4688 15.8839 10.4688 15.625V10.2106H15.6259C15.8847 10.2106 16.0946 10.0007 16.0946 9.74182C16.0946 9.48294 15.8847 9.27307 15.6259 9.27307H10.4688V4.375Z"})})}function lr(){return r0("svg",{width:"18",height:"18",viewBox:"-1 -1 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.88235 1.23529C9.88235 0.942908 10.1194 0.705882 10.4118 0.705882H14.1641C14.8463 0.705882 15.3994 1.25894 15.3994 1.94118V6.47441L17.1363 5.06006C17.363 4.87544 17.6965 4.90958 17.8811 5.1363C18.0657 5.36303 18.0316 5.69649 17.8049 5.88111L15.2042 7.99876C15.0096 8.15728 14.7303 8.15728 14.5357 7.99876L11.9351 5.88111C11.7083 5.69649 11.6742 5.36303 11.8588 5.1363C12.0434 4.90958 12.3769 4.87544 12.6036 5.06006L14.3405 6.47441V1.94118C14.3405 1.84371 14.2615 1.76471 14.1641 1.76471H10.4118C10.1194 1.76471 9.88235 1.52768 9.88235 1.23529Z",fill:"currentColor"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.11765 16.7647C8.11765 17.0571 7.88062 17.2941 7.58824 17.2941H3.83592C3.15369 17.2941 2.60063 16.7411 2.60063 16.0588V11.5256L0.863711 12.9399C0.636985 13.1246 0.303523 13.0904 0.118903 12.8637C-0.0657165 12.637 -0.0315828 12.3035 0.195144 12.1189L2.79576 10.0012C2.99043 9.84272 3.26966 9.84272 3.46433 10.0012L6.06494 12.1189C6.29167 12.3035 6.3258 12.637 6.14118 12.8637C5.95656 13.0904 5.6231 13.1246 5.39637 12.9399L3.65945 11.5256V16.0588C3.65945 16.1563 3.73846 16.2353 3.83592 16.2353H7.58824C7.88062 16.2353 8.11765 16.4723 8.11765 16.7647Z",fill:"currentColor"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.11765 1.23529C8.11765 0.55306 7.56459 0 6.88236 0H1.23531C0.553077 0 1.69415e-05 0.55306 1.69415e-05 1.23529V6.88235C1.69415e-05 7.56459 0.553076 8.11765 1.23531 8.11765H6.88236C7.56459 8.11765 8.11765 7.56459 8.11765 6.88235V1.23529ZM6.88236 1.05882C6.97982 1.05882 7.05883 1.13783 7.05883 1.23529V6.88235C7.05883 6.97982 6.97982 7.05882 6.88236 7.05882H1.23531C1.13785 7.05882 1.05884 6.97982 1.05884 6.88235V1.23529C1.05884 1.13783 1.13785 1.05882 1.23531 1.05882H6.88236Z",fill:"currentColor"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 11.1176C18 10.4354 17.4469 9.88235 16.7647 9.88235H11.1176C10.4354 9.88235 9.88235 10.4354 9.88235 11.1176V16.7647C9.88235 17.4469 10.4354 18 11.1176 18H16.7647C17.4469 18 18 17.4469 18 16.7647V11.1176ZM16.7647 10.9412C16.8622 10.9412 16.9412 11.0202 16.9412 11.1176V16.7647C16.9412 16.8622 16.8622 16.9412 16.7647 16.9412H11.1176C11.0202 16.9412 10.9412 16.8622 10.9412 16.7647V11.1176C10.9412 11.0202 11.0202 10.9412 11.1176 10.9412H16.7647Z",fill:"currentColor"})]})}function ll(){return r0("svg",{className:"collab-icon__svg",width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r0("g",{className:"collab-icon__svg",filter:"url
970(#filter0_d_13652_461491)",children:r0("circle",{className:"collab-icon__svg",cx:"25",cy:"21",r:"21",fill:"#777777","fill-opacity":"0.84","shape-rendering":"crispEdges"})}),r0("path",{className:"collab-icon__svg",d:"M21.4375 20C21.4375 19.6893 21.6893 19.4375 22 19.4375H28C28.3107 19.4375 28.5625 19.6893 28.5625 20C28.5625 20.3107 28.3107 20.5625 28 20.5625H22C21.6893 20.5625 21.4375 20.3107 21.4375 20Z",fill:"white"}),r0("path",{className:"collab-icon__svg",d:"M21.4375 23C21.4375 22.6893 21.6893 22.4375 22 22.4375H28C28.3107 22.4375 28.5625 22.6893 28.5625 23C28.5625 23.3107 28.3107 23.5625 28 23.5625H22C21.6893 23.5625 21.4375 23.3107 21.4375 23Z",fill:"white"}),r0("path",{className:"collab-icon__svg","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 16.25C16 15.8358 16.3358 15.5 16.75 15.5H33.25C33.6642 15.5 34 15.8358 34 16.25V27.4423C34 27.8565 33.6642 28.1923 33.25 28.1923H27.9804C27.853 28.1923 27.7343 28.257 27.6652 28.3641L25.9633 31.0042C25.6651 31.4669 24.9866 31.4613 24.696 30.9938L23.1746 28.5464C23.0378 28.3262 22.7969 28.1923 22.5377 28.1923H16.75C16.3358 28.1923 16 27.8565 16 27.4423V16.25ZM17.125 27.0673V16.625H32.875V27.0673H27.9804C27.4707 27.0673 26.9958 27.3262 26.7197 27.7546L25.3387 29.8968L24.1301 27.9524C23.7879 27.402 23.1858 27.0673 22.5377 27.0673H17.125Z",fill:"white"}),r0("circle",{className:"collab-icon__svg",cx:"34",cy:"15",r:"4",fill:"#EB5646"}),r0("circle",{className:"collab-icon__svg",cx:"34",cy:"15",r:"4.5",stroke:"white","stroke-opacity":"0.6"}),r0("defs",{className:"collab-icon__svg",children:r0("filter",{className:"collab-icon__svg",id:"filter0_d_13652_461491",x:"0",y:"0",width:"50",height:"50",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[r0("feFlood",{className:"collab-icon__svg","flood-opacity":"0",result:"BackgroundImageFix"}),r0("feColorMatrix",{className:"collab-icon__svg",in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r0("feOffset",{className:"collab-icon__svg",dy:"4"}),r0("feGaussianBlur",{className:"collab-icon__svg",stdDeviation:"2"}),r0("feComposite",{className:"collab-icon__svg",in2:"hardAlpha",operator:"out"}),r0("feColorMatrix",{className:"collab-icon__svg",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),r0("feBlend",{className:"collab-icon__svg",mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13652_461491"}),r0("feBlend",{className:"collab-icon__svg",mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_13652_461491",result:"shape"})]})})]})}function ln(){return r0("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r0("path",{d:"M11.25 12C11.25 11.5858 11.5858 11.25 12 11.25H20C20.4142 11.25 20.75 11.5858 20.75 12C20.75 12.4142 20.4142 12.75 20 12.75H12C11.5858 12.75 11.25 12.4142 11.25 12Z",fill:"#475161"}),r0("path",{d:"M11.25 16C11.25 15.5858 11.5858 15.25 12 15.25H20C20.4142 15.25 20.75 15.5858 20.75 16C20.75 16.4142 20.4142 16.75 20 16.75H12C11.5858 16.75 11.25 16.4142 11.25 16Z",fill:"#475161"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 7C4 6.44772 4.44772 6 5 6H27C27.5523 6 28 6.44772 28 7V21.9231C28 22.4754 27.5523 22.9231 27 22.9231H19.9739C19.804 22.9231 19.6457 23.0094 19.5536 23.1522L17.2844 26.6723C16.8868 27.2892 15.9821 27.2818 15.5946 26.6584L13.5662 23.3952C13.3837 23.1016 13.0625 22.9231 12.7169 22.9231H5C4.44771 22.9231 4 22.4754 4 21.9231V7ZM5.5 21.4231V7.5H26.5V21.4231H19.9739C19.2942 21.4231 18.6611 21.7682 18.2929 22.3395L16.4516 25.1958L14.8401 22.6033C14.3839 21.8694 13.581 21.4231 12.7169 21.4231H5.5Z",fill:"#475161"})]})}function lo(){return r0("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r0("path",{d:"M16 10.25C16.4142 10.25 16.75 10.5858 16.75 11V13.25H19C19.4142 13.25 19.75 13.5858 19.75 14C19.75 14.4142 19.4142 14.75 19 14.75H16.75V17C16.75 17.4142 16.4142 17.75 16 17.75C15.5858 17.75 15.25 17.4142 15.25 17V14.75H13C12.5858 14.75 12.25 14.4142 12.25 14C12.25 13.5858 12.5858 13.25 13 13.25H15.25V11C15.25 10.5858 15.5858 10.25 16 10.25Z",fill:"#475161"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 7C4 6.44772 4.44772 6 5 6H27C27.5523 6 28 6.44772 28 7V21.9231C28 22.4754 27.5523 22.9231 27 22.9231H19.9739C19.804 22.9231 19.6457 23.0094 19.5536 23.1522L17.2844 26.6723C16.8868 27.2892 15.9821 27.2818 15.5946 26.6584L13.5662 23.3952C13.3837 23.1016 13.0625 22.9231 12.7169 22.9231H5C4.44771 22.9231 4 22.4754 4 21.9231V7ZM5.5 21.4231V7.5H26.5V21.4231H19.9739C19.2942 21.4231 18.6611 21.7682 18.2929 22.3395L16.4516 25.1958L14.8401 22.6033C14.3839 21.8694 13.581 21.4231 12.7169 21.4231H5.5Z",fill:"#475161"})]})}function la(){return r0("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.49999 5.00389C8.71574 5.00389 8.89
970065 5.1788 8.89065 5.39456V9.04076C8.89065 9.25652 8.71574 9.43142 8.49999 9.43142C8.28423 9.43142 8.10932 9.25652 8.10932 9.04076V5.39456C8.10932 5.1788 8.28423 5.00389 8.49999 5.00389Z",fill:"#A31B00"}),r0("path",{d:"M8.49999 12.0359C8.85958 12.0359 9.15109 11.7443 9.15109 11.3847C9.15109 11.0252 8.85958 10.7336 8.49999 10.7336C8.14039 10.7336 7.84888 11.0252 7.84888 11.3847C7.84888 11.7443 8.14039 12.0359 8.49999 12.0359Z",fill:"#A31B00"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.54062 2.26699C5.71157 2.09604 5.94343 2 6.18519 2L10.8148 2C11.0566 2 11.2884 2.09604 11.4594 2.26699L14.733 5.54062C14.904 5.71157 15 5.94343 15 6.18519L15 10.8148C15 11.0566 14.904 11.2884 14.733 11.4594L11.4594 14.733C11.2884 14.904 11.0566 15 10.8148 15L6.18519 15C5.94343 15 5.71157 14.904 5.54062 14.733L2.26699 11.4594C2.09604 11.2884 2 11.0566 2 10.8148L2 6.18519C2 5.94343 2.09604 5.71157 2.26699 5.54062L5.54062 2.26699ZM6.18519 2.78133C6.15065 2.78133 6.11753 2.79505 6.09311 2.81947L2.81947 6.09311C2.79505 6.11753 2.78133 6.15065 2.78133 6.18519V10.8148C2.78133 10.8493 2.79505 10.8825 2.81947 10.9069L6.09311 14.1805C6.11753 14.205 6.15065 14.2187 6.18519 14.2187H10.8148C10.8493 14.2187 10.8825 14.205 10.9069 14.1805L14.1805 10.9069C14.205 10.8825 14.2187 10.8493 14.2187 10.8148V6.18519C14.2187 6.15065 14.205 6.11753 14.1805 6.09311L10.9069 2.81947C10.8825 2.79505 10.8493 2.78133 10.8148 2.78133L6.18519 2.78133Z",fill:"#A31B00"})]})}function ls(){return r0("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r0("circle",{cx:"12",cy:"6",r:"2",fill:"#475161"}),r0("circle",{cx:"12",cy:"12",r:"2",fill:"#475161"}),r0("circle",{cx:"12",cy:"18",r:"2",fill:"#475161"})]})}function ld(){return r0("div",{className:rK("visual-builder__content-type-icon",r1()["visual-builder__content-type-icon"]),children:r0("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r0("path",{d:"M4 22L16 29L28 22",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),r0("path",{d:"M4 16L16 23L28 16",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),r0("path",{d:"M4 10L16 17L28 10L16 3L4 10Z",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})})}function lu(){return r0("div",{className:rK("visual-builder__caret-right-icon",r1()["visual-builder__caret-right-icon"]),children:r0("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.4697 5.46967C11.7626 5.17678 12.2374 5.17678 12.5303 5.46967L22.5303 15.4697C22.8232 15.7626 22.8232 16.2374 22.5303 16.5303L12.5303 26.5303C12.2374 26.8232 11.7626 26.8232 11.4697 26.5303C11.1768 26.2374 11.1768 25.7626 11.4697 25.4697L20.9393 16L11.4697 6.53033C11.1768 6.23744 11.1768 5.76256 11.4697 5.46967Z",fill:"#fff"})})})}var lc={"bottom-right":r1()["visual-builder__start-editing-btn__bottom-right"],"bottom-left":r1()["visual-builder__start-editing-btn__bottom-left"],"top-left":r1()["visual-builder__start-editing-btn__top-left"],"top-right":r1()["visual-builder__start-editing-btn__top-right"]},lf=function(){let e=iv.get(),t=e.editInVisualBuilderButton.enable,i=e.editInVisualBuilderButton.position||"bottom-right";function r(e){e.target.setAttribute("href",rQ().toString())}return t?r0("a",{href:rQ().toString(),className:rK("visual-builder__start-editing-btn",r1()["visual-builder__start-editing-btn"],lc[["bottom-left","bottom-right","top-left","top-right"].includes(i)?i:"bottom-right"]),"data-testid":"vcms-start-editing-btn",onMouseEnter:e=>r(e),onFocus:e=>r(e),onClick:e=>r(e),children:[r0(lt,{}),r0("span",{children:"Start Editing"})]}):null},lp=((na=lp||{}).CUSTOM_FIELD="custom_field",na.MULTILINE="multiline",na.HTML_RTE="html_rte",na.MARKDOWN_RTE="markdown_rte",na.SELECT="select",na.URL="url",na.SINGLELINE="singleline",na.JSON_RTE="json_rte",na.MODULAR_BLOCK="modular_block",na.LINK="link",na.ISODATE="isodate",na.BOOLEAN="boolean",na.BLOCK="block",na.NUMBER="number",na.REFERENCE="reference",na.GROUP="group",na.EXPERIENCE_CONTAINER="experience_container",na.FILE="file",na.GLOBAL_FIELD="global_field",na.TAXONOMY="taxonomy",na),lh=/^-?\d*(\.\d*)?([eE][-+]?\d*)?$/,lv="data-cslp-field-type",l_="data-cslp",lb=Object.freeze({SUCCESS:"success",ERROR:"error"});Object.freeze({REVIEW:"Review Stage",FINAL_REVIEW:"Final Review",UNKNOWN:"Unknown"});var lm=[lp.SINGLELINE,lp.MULTILINE,lp.NUMBER],lg=[lp.HTML_RTE,lp.MARKDOWN_RTE,lp.JSON_RTE,lp.CUSTOM_FIELD,lp.LINK,lp.ISODATE,lp.URL],ly=[lp.REFERENCE,lp.FILE];lp.GLOBAL_FIELD,lp.GROUP,lp.BLOCK;let lw=function(e,t){return i7(e,t)};var lC=rN(rR(),1);"u">typeof window&&(nc=new lC.EventManager("visual-builder",{target:window.parent,debug:!1}));var lx=nc,lE=((ns=lE||{}).INIT="init",ns.ADD_INSTANCE="add-instance",ns.UPDATE_FIELD="update-field",ns.SYNC_FIELD="sync-field",ns.OPEN_ASSET_MODAL="open-asset-modal",ns.OPEN_REFERENCE_MODAL="open-reference-modal",ns.OPEN_QUICK_FORM="open-quick-form",ns.TOGGLE_FORM="toggle-quick-form",ns.GET_FIELD_SCHEMA="get-field-schema",ns.GET_FIELD_DATA="get-field-data",ns.OPEN_LINK_VARIANT_MODAL="open-link-variant-modal",ns.GET_FIELD_PATH_WITH_UID="get-field-path-with-uid",ns.GET_FIELD_DISPLAY_NAMES="get-field-display-names",ns.MOUSE_CLICK="mouse-click",ns.FOCUS_FIELD="focus-field",ns.OPEN_FIELD_EDIT_MODAL="open-field-edit-modal",ns.DELETE_INSTANCE="delete-instance",ns.MOVE_INSTANCE="move-instance",ns.GET_DISCUSSION_ID="get-discussion-id-for-comment-modal",ns.OPEN_FIELD_COMMENT_MODAL="open-field-comment-modal",ns.COLLAB_CREATE_THREAD="collab-create-thread",ns.COLLAB_CREATE_COMMENT="collab-create-comment",ns.COLLAB_FETCH_COMMENTS="collab-fetch-comments",ns.COLLAB_EDIT_COMMENT="collab-edit-comment",ns.COLLAB_DELETE_COMMENT="collab-delete-comment",ns.COLLAB_RESOLVE_THREAD="collab-resolve-thread",ns.COLLAB_DELETE_THREAD="collab-delete-thread",ns.COLLAB_MISSING_THREADS="collab-missing-threads",ns.FIELD_LOCATION_DATA="field-location-data",ns.FIELD_LOCATION_
970SELECTED_APP="field-location-selected-app",ns.GET_PERMISSIONS="get-permissions",ns.GET_WORKFLOW_STAGE_DETAILS="get-workflow-stage-details",ns.GET_RESOLVED_VARIANT_PERMISSIONS="get-resolved-variant-permissions",ns.OPEN_REQUEST_EDIT_ACCESS="open-request-edit-access",ns.GET_ALL_ENTRIES_IN_CURRENT_PAGE="get-entries-in-current-page",ns.HIDE_FOCUS_OVERLAY="hide-focus-overlay",ns.SHOW_DRAFT_FIELDS="show-draft-fields",ns.REMOVE_DRAFT_FIELDS="remove-draft-fields",ns.SHOW_VARIANT_FIELDS="show-variant-fields",ns.REMOVE_VARIANT_FIELDS="remove-variant-fields",ns.SET_AUDIENCE_MODE="set-audience-mode",ns.UPDATE_DISCUSSION_ID="update-discussion-id-for-focus-field",ns.SCROLL_TO_FIELD="scroll-to-view-field-by-cslp-value",ns.HIGHLIGHT_ACTIVE_COMMENTS="highlight-active-comments-by-data-cs",ns.REMOVE_HIGHLIGHTED_COMMENTS="remove-highlighted-comments",ns.GET_VARIANT_ID="get-variant-id",ns.GET_LOCALE="get-locale",ns.GET_HIGHLIGHT_VARIANT_FIELDS_STATUS="get-highlight-variant-fields-status",ns.SEND_VARIANT_AND_LOCALE="send-variant-and-locale",ns.GET_CONTENT_TYPE_NAME="get-content-type-name",ns.REFERENCE_MAP="get-reference-map",ns.COLLAB_ENABLE="collab-enable",ns.COLLAB_DATA_UPDATE="collab-data-update",ns.COLLAB_DISABLE="collab-disable",ns.COLLAB_THREADS_REMOVE="collab-threads-remove",ns.COLLAB_THREAD_REOPEN="collab-thread-reopen",ns.COLLAB_THREAD_HIGHLIGHT="collab-thread-highlight",ns.TOGGLE_SCROLL="toggle-scroll",ns.PAGE_CONTEXT="page-context",ns.REQUEST_DISCUSSION_HIGHLIGHTS="request-discussion-highlights",ns),lL=class e{static async fetchFieldSchema(t){return e.fieldSchemaPromise?.[t]||(e.fieldSchemaPromise[t]=lx?.send(lE.GET_FIELD_SCHEMA,{contentTypeUid:t})),e.fieldSchemaPromise[t]}static async getFieldSchema(t,i){if(e.hasFieldSchema(t,i))return Promise.resolve(e.fieldSchema[t][i]);let r=await e.fetchFieldSchema(t);return r?.fieldSchemaMap&&(e.fieldSchema[t]=r.fieldSchemaMap),e?.fieldSchema?.[t]?.[i]||null}static hasFieldSchema(t,i){return ic(e.fieldSchema,[t,i])}static areFieldSchemaEqual(e,t){return lw(e,t)}static setFieldSchema(t,i){e.fieldSchema[t]=i}static clearContentTypeSchema(t){delete e.fieldSchema[t],delete e.fieldSchemaPromise[t]}static clear(){e.fieldSchema={},e.fieldSchemaPromise={}}};function lS(e){return e?.error===!0}async function lM(e,t){let i=await lx?.send(lE.GET_FIELD_DATA,{fieldMetadata:e,entryPath:t??""});return lS(i)?"":i?.fieldData}function lO(e){if(e){if(Object.hasOwnProperty.call(e,"extension_uid"))return lp.CUSTOM_FIELD;switch(e.data_type){case"text":if(e.field_metadata?.multiline)return lp.MULTILINE;if(e.field_metadata?.allow_rich_text)return lp.HTML_RTE;if(e.field_metadata?.markdown)return lp.MARKDOWN_RTE;else if(e.enum)return lp.SELECT;else if("url"===e.uid&&e.field_metadata?._default)return lp.URL;else return lp.SINGLELINE;case"json":if(e.field_metadata?.allow_json_rte)return lp.JSON_RTE;break;case"blocks":return"modular_block";case"link":case"isodate":case"boolean":case"block":case"number":case"reference":case"group":case"experience_container":case"file":case"taxonomy":case"global_field":return lp[e.data_type.toUpperCase()]}return""}}function lA(e){let t=e.target,i=t.getAttribute(lv),r=document.querySelector("[data-cs-last-edited]");r!==t&&(r?.removeAttribute("data-cs-last-edited"),t.setAttribute("data-cs-last-edited","true")),"input"===e.type&&lm.includes(i)&&(dN.VisualBuilderGlobalState.value.focusFieldReceivedInput||(dN.VisualBuilderGlobalState.value.focusFieldReceivedInput=!0),lT())}lL.fieldSchema={},lL.fieldSchemaPromise={};var lT=iN(()=>{try{let e=document.querySelector(".visual-builder__container");if(!e)return;dd({visualBuilderContainer:e,eventType:lE.SYNC_FIELD})}catch(e){console.error("Error in throttledFieldSync",e)}},300);function lk(e){var t,i;let r=e.target.getAttribute(lv);e.composedPath().some(e=>e instanceof Element&&"BUTTON"===e.tagName)&&"Space"===(t=e).code&&t.target&&(t.preventDefault(),function(e){let t=window.getSelection();if(t&&t.rangeCount>0){let e=t.getRangeAt(0),i=document.createTextNode("\xa0");e.deleteContents(),e.insertNode(i),e.setStartAfter(i),e.setEndAfter(i),t.removeAllRanges(),t.addRange(e)}}(t.target),lT()),r===lp.NUMBER?function(e){let t=e.target;if(e.ctrlKey||e.metaKey||e.altKey||["Backspace","Tab","Enter","End","Home","ArrowLeft","ArrowRight","Delete"].includes(e.code)||e.code.includes("Digit"))return;
970if(!["-",".","e","E"].includes(e.key))return e.preventDefault();let i={startOffset:window.getSelection()?.getRangeAt(0).startOffset||0,endOffset:window.getSelection()?.getRangeAt(0).endOffset||0},r=(t.textContent||"").split("");r.splice(i.startOffset,i.endOffset-i.startOffset,e.key);let l=r.join("");lh.test(l)||e.preventDefault()}(e):r===lp.SINGLELINE&&"Enter"===(i=e).code&&i.preventDefault()}var lN="This field is not editable as it is not linked to the selected variant.",lR="Click here to link a variant",lD="here",lH=(e,t,i,r,l)=>{let n,{editableElement:o,fieldMetadata:a}=t,s=iv.get().stackDetails.masterLocale||"en-us",{locale:d,variant:u}=dN.VisualBuilderGlobalState.value,c={updateRestrictDueToRole:!!e?.field_metadata?.updateRestrict,updateRestrictDueToUnlinkVariant:!!e?.field_metadata?.isUnlinkedVariant,canLinkVariant:!!e?.field_metadata?.canLinkVariant,updateRestrictDueToUnlocalizedVariant:!!(u&&a.locale!==d),updateRestrictDueToNonLocalizableFields:!!(e?.non_localizable&&s!==a.locale),updateRestrictDueToResolvedVariantPermissions:!!i&&!i.update,updateRestrictDueToAudienceMode:!1,updateRestrictDueToDisabledVariant:!1};r&&!r.update&&(c.updateRestrictDueToEntryUpdateRestriction=!0),l&&!l.permissions.entry.update&&(c.updateRestrictDueToWorkflowStagePermission=!0),dN.VisualBuilderGlobalState.value.audienceMode&&o.classList.contains("visual-builder__lower-order-variant-field")&&(c.updateRestrictDueToDisabledVariant=!!i&&!!i.error),!dN.VisualBuilderGlobalState.value.audienceMode||o.classList.contains("visual-builder__variant-field")||o.classList.contains("visual-builder__base-field")||(o.classList.contains("visual-builder__disabled-variant-field")?c.updateRestrictDueToDisabledVariant=!0:c.updateRestrictDueToAudienceMode=!0);let f=Object.values(c).some(Boolean),p={};l?.stage?.name!==void 0&&(p.stageName=l.stage.name),void 0!==l&&(p.entryWorkflowStageDetails=l),void 0!==r&&(p.entryPermissions=r);let h=((e,t)=>{if(e.updateRestrictDueToRole)return"You have only read access to this field";if(e.updateRestrictDueToNonLocalizableFields)return"Editing this field is restricted in localized entries";if(e.updateRestrictDueToUnlocalizedVariant)return"This field is not editable as it is not localized";if(e.updateRestrictDueToUnlinkVariant)return e.canLinkVariant?`${lN} ${lR} `:`${lN} Contact your stack admin or owner to link it.`;if(e.updateRestrictDueToAudienceMode)return"To edit an experience, open the Audience widget and click the Edit icon.";if(e.updateRestrictDueToDisabledVariant)return"This field is not editable as it doesn't match the selected variant";if(e.updateRestrictDueToEntryUpdateRestriction&&e.updateRestrictDueToWorkflowStagePermission)return(({stageName:e})=>`Editing is restricted for your role or by the rules for the '${e}' stage. Contact your admin for edit access.`)({stageName:t?.stageName?t.stageName:"Unknown"});if(e.updateRestrictDueToEntryUpdateRestriction)return"You do not have permission to edit this entry";if(e.updateRestrictDueToWorkflowStagePermission){let i=t?.stageName?t.stageName:"Unknown",r=t?.entryWorkflowStageDetails?.requestEditAccess;if((t?.entryPermissions==null||!0===t.entryPermissions.update)&&!e.updateRestrictDueToEntryUpdateRestriction&&r){if(r.hasPending)return(({stageName:e})=>`You do not have the edit access to this entry on the '${e}' workflow stage. Your request has been sent and is awaiting approval.`)({stageName:i});if(r.canRequest)return(({stageName:e})=>`You do not have the edit access to this entry on the '${e}' workflow stage.`)({stageName:i})}return(({stageName:e})=>`You do not have Edit access to this entry on the '${e}' workflow stage`)({stageName:i})}return e.updateRestrictDueToResolvedVariantPermissions?"This field does not exist in the selected variant":""})(c,p);if(c.updateRestrictDueToWorkflowStagePermission&&!c.updateRestrictDueToEntryUpdateRestriction&&(null==r||!0===r.update)&&l?.requestEditAccess){let e=l.requestEditAccess;e.hasPending?n="pending":e.canRequest&&(n="request")}return void 0!==n?{isDisabled:f,reason:h,workflowRequestUi:n}:{isDisabled:f,reason:h}},lP=function(e){let t=e.fieldSchema,i=e.fieldMetadata,r=e.index,l=e.loading,n=async t=>{l.value=!0;try{await lx?.send(lE.ADD_INSTANCE,{fieldMetadata:i,index:r})}catch(e){console.error("Visual Builder: Failed to add instance",e)}l.value=!1,e.onClick(t)},o=rK("visual-builder__add-button",r1()["visual-builder__add-button"],{"visual-builder__add-button--with-label":e.label},{[r1()["visual-builder__add-button--loading"]]:l.value},r1()["visual-builder__tooltip"]),a=t&&"block"!==t.data_type?t.max_instance:void 0,s=!!a&&e.value.length>=a;return r0("button",{className:o,"data-tooltip":"Add section","data-testid":"visual-builder
970-add-instance-button",disabled:l.value||s,title:a&&s?`Max ${a} instances allowed`:void 0,onClick:e=>{n(e)},children:[r0(li,{}),e.label?r0("span",{title:e.label,className:rK("visual-builder__add-button-label",r1()["visual-builder__add-button-label"]),children:e.label}):null]})};function lV({value:e,fieldSchema:t,fieldMetadata:i,index:r,loading:l,onClick:n,label:o}){let a=document.createDocumentFragment();return e0(r0(lP,{loading:l,index:r,value:e,label:o,onClick:n,fieldSchema:t,fieldMetadata:i}),a),a.children[0]}function lI(e,t=!1){let i=e.getElementsByClassName("visual-builder__add-button");return t?Array.from(i):i.length<2?null:[i[0],i[1]]}var lB=["vertical","horizontal","none"];function lU(e,t){if(!e)return"none";let i=e.closest(`[data-cslp="${t}"]`);if(!i)return"none";let r=i.getAttribute("data-add-direction"),l=lB.includes(r);if(r&&l)return r;let[n,o,a]=function(e,t){let i=Array.from(e.querySelectorAll(`[data-cslp^="${t+"."}"]`)).filter(e=>e.getAttribute("data-cslp")?.match(/\.\d+$/)!==null),r=i.at(0);if(!r)return[null,null,()=>{}];let l=i.at(1);if(l)return[r,l,()=>{}];let n=document.createElement(r.tagName);return n.setAttribute("class",r.getAttribute("class")??""),n.setAttribute("style","overflow: hidden !important; width: 0 !important; height: 0 !important; padding: 0 !important; border: 0 !important;"),e.appendChild(n),[r,n,function(){e.removeChild(n)}]}(i,t);if(!n)return"none";let s=n.getBoundingClientRect(),d=o.getBoundingClientRect(),u=Math.abs(s.left-d.left),c=Math.abs(s.top-d.top);return a(),u>c?"horizontal":"vertical"}function lF(e){let t=e.target;if(!t)return;let i=t.closest("[data-cslp]");if(i||!iv.get().overlayPropagation.enable||t.closest(".visual-builder__container")||(i=document.elementsFromPoint(e.clientX,e.clientY).find(e=>e.hasAttribute("data-cslp"))??null),!i)return;let r=i.getAttribute("data-cslp");if(!rx(r))return;let l=rE(r);return{editableElement:i,cslpData:r,fieldMetadata:l}}function l$(e){let t;if(e.startsWith("v2:")){let i=e.split(":")[1],r=i.split(".")[0],l=i.split(".")[1].split("_")[0],n=i.split(".")[2];t=`${r}.${l}.${n}`}else t=e;return t.split(".").slice(0,3).join(".")}function lj(e){let t=[],i=e.closest(`[${l_}]`);for(;i;){let e=i.getAttribute(l_);if(!rx(e)){i=i.parentElement?.closest(`[${l_}]`);continue}let r=l$(e);l$(t.at(0)||"").startsWith(r)||t.unshift(e),i=i.parentElement?.closest(`[${l_}]`)}return t.filter(rx).map(e=>rE(e))}var lW='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 3.5625C2.25 2.83763 2.83763 2.25 3.5625 2.25H20.441C21.1659 2.25 21.7535 2.83763 21.7535 3.5625V20.441C21.7535 21.1659 21.1659 21.7535 20.441 21.7535H3.5625C2.83763 21.7535 2.25 21.1659 2.25 20.441V3.5625ZM3.375 12.5643V20.441C3.375 20.5446 3.45895 20.6285 3.5625 20.6285H11.4393V12.5643L3.375 12.5643ZM11.4393 11.4393L3.375 11.4393V3.5625C3.375 3.45895 3.45895 3.375 3.5625 3.375H11.4393V11.4393ZM12.5643 12.5643V20.6285H20.441C20.5446 20.6285 20.6285 20.5446 20.6285 20.441V12.5643L12.5643 12.5643ZM20.6285 11.4393L12.5643 11.4393V3.375H20.441C20.5446 3.375 20.6285 3.45895 20.6285 3.5625V11.4393Z" fill="white"/></svg>',lz='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5747 8.4136C15.7945 8.63311 15.7948 8.98927 15.5753 9.2091L9.21902 15.5747C8.99952 15.7946 8.64336 15.7948 8.42353 15.5753C8.2037 15.3558 8.20344 14.9996 8.42294 14.7798L14.7792 8.41419C14.9987 8.19436 15.3549 8.1941 15.5747 8.4136Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7.6251 10.0076C7.84477 10.2273 7.84477 10.5835 7.6251 10.8031L4.97197 13.4563C4.23333 14.1949 3.81836 15.1967 3.81836 16.2413C3.81836 17.2859 4.23333 18.2878 4.97197 19.0264C5.71062 19.765 6.71243 20.18 7.75704 20.18C8.27427 20.18 8.78644 20.0781 9.2643 19.8802C9.74216 19.6823 10.1764 19.3921 10.5421 19.0264L13.1952 16.3733C13.4149 16.1536 13.7711 16.1536 13.9907 16.3733C14.2104 16.5929 14.2104 16.9491 13.9907 17.1688L11.3376 19.8219C10.8674 20.2921 10.3092 20.6651 9.69482 20.9196C9.08047 21.174 8.42201 21.305 7.75704 21.305C6.41406 21.305 5.1261 20.7715 4.17648 19.8219C3.22685 18.8723 2.69336 17.5843 2.69336 16.2413C2.69336 14.8984 3.22685 13.6104 4.17648 12.6608L6.8296 10.0076C7.04927 9.78798 7.40543 9.78798 7.6251 10.0076Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.6608 4.17648C13.6104 3.22685 14.8984 2.69336 16.2413 2.69336C17.5843 2.69336 18.8723 3.22685 19.8219 4.17648C20.7715 5.1261 21.305 6.41406 21.305 7.75704C21.305 9.10001 20.7715 10.388 19.8219 11.3376L17.1688 13.9907C16.9491 14.2104 16.5929 14.2104 16.3733 13.9907C16.1536 13.7711 16.1536 13.4149 16.3733 13.1952L19.0264 10.5421C19.765 9.80345 20.18 8.80164 20.18 7.75704C20.18 6.71243 19.765 5.71062 19.0264 4.97197C18.2878 4.23333 17.2859 3.8
9701836 16.2413 3.81836C15.1967 3.81836 14.1949 4.23333 13.4563 4.97197L10.8031 7.6251C10.5835 7.84477 10.2273 7.84477 10.0076 7.6251C9.78798 7.40543 9.78798 7.04927 10.0076 6.8296L12.6608 4.17648Z" fill="white"/></svg>',lZ={singleline:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.94958 7.8294C5.85419 7.6199 5.64077 7.48967 5.41084 7.50064C5.1809 7.51162 4.98086 7.66158 4.90585 7.87921L3.19036 12.8566L2.2835 15.3717C2.17813 15.664 2.32962 15.9863 2.62186 16.0917C2.9141 16.197 3.23643 16.0455 3.34181 15.7533L3.95144 14.0625H7.53908L8.29768 15.7888C8.42266 16.0732 8.75454 16.2025 9.03895 16.0775C9.32336 15.9525 9.4526 15.6206 9.32762 15.3362L8.22073 12.8173L8.21769 12.8105L5.94958 7.8294ZM7.03937 12.9375L5.51002 9.57881L4.35242 12.9375H7.03937Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.625 8.0625C11.625 7.75184 11.3732 7.5 11.0625 7.5C10.7518 7.5 10.5 7.75184 10.5 8.0625V15.5625C10.5 15.8732 10.7518 16.125 11.0625 16.125C11.3731 16.125 11.6249 15.8733 11.625 15.5627C12.0951 15.9158 12.6793 16.125 13.3125 16.125C14.8658 16.125 16.125 14.8658 16.125 13.3125C16.125 11.7592 14.8658 10.5 13.3125 10.5C12.6793 10.5 12.0951 10.7092 11.625 11.0623V8.0625ZM11.625 13.3116C11.625 13.3119 11.625 13.3122 11.625 13.3125C11.625 13.3128 11.625 13.3131 11.625 13.3134C11.6255 14.245 12.3808 15 13.3125 15C14.2445 15 15 14.2445 15 13.3125C15 12.3805 14.2445 11.625 13.3125 11.625C12.3808 11.625 11.6255 12.38 11.625 13.3116Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M19.9448 10.5025C20.4222 10.4825 20.8969 10.5844 21.324 10.7988C21.6017 10.9381 21.7138 11.2762 21.5744 11.5538C21.4351 11.8315 21.0971 11.9436 20.8194 11.8043C20.5631 11.6757 20.2783 11.6145 19.9919 11.6265C19.7054 11.6385 19.4267 11.7233 19.1821 11.8729C18.9375 12.0224 18.735 12.2319 18.5938 12.4814C18.4526 12.731 18.3773 13.0124 18.375 13.2991C18.3728 13.5858 18.4436 13.8684 18.5808 14.1201C18.718 14.3719 18.9171 14.5845 19.1593 14.738C19.4015 14.8914 19.6788 14.9806 19.9651 14.9972C20.2513 15.0137 20.5371 14.9571 20.7953 14.8326C21.0752 14.6977 21.4114 14.8151 21.5463 15.095C21.6812 15.3748 21.5637 15.711 21.2839 15.846C20.8534 16.0535 20.3772 16.1479 19.9001 16.1203C19.423 16.0927 18.9609 15.944 18.5572 15.6883C18.1535 15.4325 17.8217 15.0781 17.593 14.6585C17.3643 14.2389 17.2463 13.768 17.2501 13.2901C17.2539 12.8123 17.3794 12.3433 17.6147 11.9274C17.8501 11.5115 18.1875 11.1624 18.5952 10.9131C19.0029 10.6638 19.4673 10.5225 19.9448 10.5025Z" fill="white"/></svg>',multiline:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.8125 6.75C20.8125 7.06066 20.5607 7.3125 20.25 7.3125L12.75 7.3125C12.4393 7.3125 12.1875 7.06066 12.1875 6.75C12.1875 6.43934 12.4393 6.1875 12.75 6.1875L20.25 6.1875C20.5607 6.1875 20.8125 6.43934 20.8125 6.75Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.8125 11.25C20.8125 11.5607 20.5607 11.8125 20.25 11.8125H12.75C12.4393 11.8125 12.1875 11.5607 12.1875 11.25C12.1875 10.9393 12.4393 10.6875 12.75 10.6875H20.25C20.5607 10.6875 20.8125 10.9393 20.8125 11.25Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.8125 15.75C20.8125 16.0607 20.5607 16.3125 20.25 16.3125L3.75 16.3125C3.43934 16.3125 3.1875 16.0607 3.1875 15.75C3.1875 15.4393 3.43934 15.1875 3.75 15.1875L20.25 15.1875C20.5607 15.1875 20.8125 15.4393 20.8125 15.75Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.8125 20.25C20.8125 20.5607 20.5607 20.8125 20.25 20.8125L3.75 20.8125C3.43934 20.8125 3.1875 20.5607 3.1875 20.25C3.1875 19.9393 3.43934 19.6875 3.75 19.6875L20.25 19.6875C20.5607 19.6875 20.8125 19.9393 20.8125 20.25Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M6.69958 4.0794C6.60419 3.8699 6.39077 3.73967 6.16084 3.75064C5.9309 3.76162 5.73086 3.91158 5.65585 4.12921L3.94036 9.10658L3.0335 11.6217C2.92813 11.914 3.07962 12.2363 3.37186 12.3417C3.6641 12.447 3.98643 12.2955 4.09181 12.0033L4.70145 10.3125H8.28908L9.04768 12.0388C9.17266 12.3232 9.50454 12.4525 9.78895 12.3275C10.0734 12.2025 10.2026 11.8706 10.0776 11.5862L8.97074 9.06732L8.96769 9.06052L6.69958 4.0794ZM7.78938 9.1875L6.26002 5.8288L5.10242 9.1875H7.78938Z" fill="white"/></svg>',html_rte:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.5625 11.4375V5.0625H11.4375V10.7422L10.1108 8.0888C9.82462 7.51646 9.06183 7.39267 8.60936 7.84515L5.017 11.4375H3.5625ZM6.608 11.4375H10.5274L9.2209 8.82459L6.608 11.4375ZM3.375 3.9375C2.85723 3.9375 2.4375 4.35723 2.4375 4.875V11.625C2.4375 12.1428 2.85723 12.5625 3.375 12.5625H11.625C12.1428 12.5625 12.5625 12.1428 12.5625 11.625V4.875C12.5625 4.35723 12.1428 3.9375 11.625 3.9375H3.375Z" fill="white"/><path d="M6.11566 7.73132C6.59375 7.73132 6.98132 7.34375 6.98132 6.86566C6.98132 6.38757 6.59375 6 6.11566 6C5.63757 6 5.25 6.38757 5.25 6.86566C5.25 7.34375 5.63757 7.73132 6.11566 7.73132Z" fill="#475161"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.5625 6C21.5625 6.31066 21.3107 6.5625 21 6.5625L15 6.5625C14.6893 6.5625 14.4375 6.31066 14.4375 6C14.4375 5.68934 14.6893 5.4375 15 5.4375L21 5.4375C21.3107 5.4375 21.5625 5.68934 21.5625 6Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.5625 10.5C21.5625 10.8107 21.3107 11.0625 21 11.0625H15C14.6893 11.0625 14.4375 10.8107 14.4375 10.5C14.4375 10.
9701893 14.6893 9.9375 15 9.9375L21 9.9375C21.3107 9.9375 21.5625 10.1893 21.5625 10.5Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.5625 15C21.5625 15.3107 21.3107 15.5625 21 15.5625L3.75 15.5625C3.43934 15.5625 3.1875 15.3107 3.1875 15C3.1875 14.6893 3.43934 14.4375 3.75 14.4375L21 14.4375C21.3107 14.4375 21.5625 14.6893 21.5625 15Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.5625 19.5C21.5625 19.8107 21.3107 20.0625 21 20.0625L3.75 20.0625C3.43934 20.0625 3.1875 19.8107 3.1875 19.5C3.1875 19.1893 3.43934 18.9375 3.75 18.9375L21 18.9375C21.3107 18.9375 21.5625 19.1893 21.5625 19.5Z" fill="white"/></svg>',json_rte:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.67113 7.5005C7.94625 7.5005 7.35863 8.08812 7.35863 8.813V9.87593C7.35863 10.1866 7.61047 10.4384 7.92113 10.4384C8.23179 10.4384 8.48363 10.1866 8.48363 9.87593V8.813C8.48363 8.70944 8.56757 8.6255 8.67113 8.6255H11.4375V15.6584H10.3575C10.0468 15.6584 9.79501 15.9103 9.79501 16.2209C9.79501 16.5316 10.0468 16.7834 10.3575 16.7834H13.9834C14.294 16.7834 14.5459 16.5316 14.5459 16.2209C14.5459 15.9103 14.294 15.6584 13.9834 15.6584H12.5625V8.6255H15.3293C15.4329 8.6255 15.5168 8.70945 15.5168 8.813V9.87593C15.5168 10.1866 15.7687 10.4384 16.0793 10.4384C16.39 10.4384 16.6418 10.1866 16.6418 9.87593V8.813C16.6418 8.08812 16.0542 7.5005 15.3293 7.5005H8.67113Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M6.97059 2.99805C5.00307 2.99805 3.40809 4.59303 3.40809 6.56055V9.51691C3.40809 10.5707 2.55381 11.425 1.5 11.425V12.55C2.55381 12.55 3.40809 13.4043 3.40809 14.4581V17.4145C3.40809 19.382 5.00307 20.977 6.97059 20.977H7.5V19.852H6.97059C5.6244 19.852 4.53309 18.7607 4.53309 17.4145V14.4581C4.53309 13.4391 4.03059 12.5375 3.25988 11.9875C4.03059 11.4375 4.53309 10.5359 4.53309 9.51691V6.56055C4.53309 5.21435 5.6244 4.12305 6.97059 4.12305H7.5V2.99805H6.97059Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.0294 2.99805C18.9969 2.99805 20.5919 4.59303 20.5919 6.56055V9.51691C20.5919 10.5707 21.4462 11.425 22.5 11.425V12.55C21.4462 12.55 20.5919 13.4043 20.5919 14.4581V17.4145C20.5919 19.382 18.9969 20.977 17.0294 20.977H16.5V19.852H17.0294C18.3756 19.852 19.4669 18.7607 19.4669 17.4145V14.4581C19.4669 13.4391 19.9694 12.5375 20.7401 11.9875C19.9694 11.4375 19.4669 10.5359 19.4669 9.51691V6.56055C19.4669 5.21435 18.3756 4.12305 17.0294 4.12305H16.5V2.99805H17.0294Z" fill="white"/></svg>',markdown_rte:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.3163 16.1134L11.3051 11.4011L8.9938 15.2831H8.17475L5.87469 11.502V16.1134H4.16928V8.25951H5.67273L8.61232 13.1401L11.507 8.25951H12.9993L13.0217 16.1134H11.3163Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M1.6875 6C1.6875 5.27513 2.27513 4.6875 3 4.6875H21C21.7249 4.6875 22.3125 5.27513 22.3125 6V18C22.3125 18.7249 21.7249 19.3125 21 19.3125H3C2.27513 19.3125 1.6875 18.7249 1.6875 18V6ZM3 5.8125C2.89645 5.8125 2.8125 5.89645 2.8125 6V18C2.8125 18.1036 2.89645 18.1875 3 18.1875H21C21.1036 18.1875 21.1875 18.1036 21.1875 18V6C21.1875 5.89645 21.1036 5.8125 21 5.8125H3Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.1818 12.408H20.1013L17.4168 16.1134L14.7323 12.408H16.6518V8.27225H18.1818V12.408Z" fill="white"/></svg>',select:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3 8.8125C2.89645 8.8125 2.8125 8.89645 2.8125 9V10.5C2.8125 10.8107 2.56066 11.0625 2.25 11.0625C1.93934 11.0625 1.6875 10.8107 1.6875 10.5V9C1.6875 8.27513 2.27513 7.6875 3 7.6875H4.5C4.81066 7.6875 5.0625 7.93934 5.0625 8.25C5.0625 8.56066 4.81066 8.8125 4.5 8.8125H3ZM6.9375 8.25C6.9375 7.93934 7.18934 7.6875 7.5 7.6875H10.5C10.8107 7.6875 11.0625 7.93934 11.0625 8.25C11.0625 8.56066 10.8107 8.8125 10.5 8.8125H7.5C7.18934 8.8125 6.9375 8.56066 6.9375 8.25ZM12.9375 8.25C12.9375 7.93934 13.1893 7.6875 13.5 7.687
9705H16.5C16.8107 7.6875 17.0625 7.93934 17.0625 8.25C17.0625 8.56066 16.8107 8.8125 16.5 8.8125H13.5C13.1893 8.8125 12.9375 8.56066 12.9375 8.25ZM18.9375 8.25C18.9375 7.93934 19.1893 7.6875 19.5 7.6875H21C21.7249 7.6875 22.3125 8.27513 22.3125 9V10.6875C22.3125 10.9982 22.0607 11.25 21.75 11.25C21.4393 11.25 21.1875 10.9982 21.1875 10.6875V9C21.1875 8.89645 21.1036 8.8125 21 8.8125H19.5C19.1893 8.8125 18.9375 8.56066 18.9375 8.25ZM2.25 12.9375C2.56066 12.9375 2.8125 13.1893 2.8125 13.5V15C2.8125 15.1036 2.89645 15.1875 3 15.1875H4.125C4.43566 15.1875 4.6875 15.4393 4.6875 15.75C4.6875 16.0607 4.43566 16.3125 4.125 16.3125H3C2.27513 16.3125 1.6875 15.7249 1.6875 15V13.5C1.6875 13.1893 1.93934 12.9375 2.25 12.9375ZM21.75 13.5C22.0607 13.5 22.3125 13.7518 22.3125 14.0625V15.75C22.3125 16.0607 22.0607 16.3125 21.75 16.3125C21.4393 16.3125 21.1875 16.0607 21.1875 15.75V14.0625C21.1875 13.7518 21.4393 13.5 21.75 13.5ZM5.8125 15.75C5.8125 15.4393 6.06434 15.1875 6.375 15.1875H8.625C8.93566 15.1875 9.1875 15.4393 9.1875 15.75C9.1875 16.0607 8.93566 16.3125 8.625 16.3125H6.375C6.06434 16.3125 5.8125 16.0607 5.8125 15.75ZM10.3125 15.75C10.3125 15.4393 10.5643 15.1875 10.875 15.1875H12C12.3107 15.1875 12.5625 15.4393 12.5625 15.75C12.5625 16.0607 12.3107 16.3125 12 16.3125H10.875C10.5643 16.3125 10.3125 16.0607 10.3125 15.75Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.4457 13.3706C13.3603 12.5628 14.2727 12.036 14.9296 12.5139L21.2889 17.1406C21.9906 17.6511 21.6818 18.7589 20.8172 18.8328L17.7404 19.0958L15.9742 21.6289C15.4779 22.3407 14.3642 22.0543 14.2729 21.1913L13.4457 13.3706ZM14.6089 13.6718L15.3388 20.5732L16.8678 18.3803C17.027 18.1519 17.2796 18.0061 17.557 17.9823L20.2207 17.7547L14.6089 13.6718Z" fill="white"/></svg>',modular_block:lW,block:lW,number:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.46172 8.08704C6.45117 8.02147 6.42928 7.9597 6.39813 7.90379C6.35727 7.8301 6.3012 7.7682 6.23536 7.72082C6.16973 7.67343 6.09347 7.63985 6.01084 7.62433C5.94777 7.61236 5.88203 7.61108 5.81629 7.62183C5.78173 7.6274 5.74822 7.63611 5.71607 7.64767L3.47852 8.39352C3.18381 8.49176 3.02453 8.81031 3.12277 9.10503C3.22101 9.39975 3.53956 9.55903 3.83428 9.46079L5.3439 8.95758L5.3439 15.302H4.59375C4.28309 15.302 4.03125 15.5538 4.03125 15.8645C4.03125 16.1752 4.28309 16.427 4.59375 16.427H7.33594C7.6466 16.427 7.89844 16.1752 7.89844 15.8645C7.89844 15.5538 7.6466 15.302 7.33594 15.302H6.4689L6.4689 8.19029C6.4697 8.15613 6.46737 8.12159 6.46172 8.08704Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.51562 9.32004C9.51562 8.35585 10.2973 7.57422 11.2614 7.57422H12.8054C13.6809 7.57422 14.3906 8.28395 14.3906 9.15945V10.9828C14.3906 11.6816 13.9922 12.3191 13.3642 12.6254L12.2817 13.1533C12.2739 13.1571 12.266 13.1607 12.258 13.1641L11.3359 13.562C10.6003 13.8794 10.0831 14.537 9.93348 15.302H13.8281C14.1388 15.302 14.3906 15.5538 14.3906 15.8645C14.3906 16.1752 14.1388 16.427 13.8281 16.427H9.36208C9.03756 16.427 8.77241 16.1679 8.76493 15.8435C8.73182 14.4088 9.57261 13.0976 10.8902 12.5291L11.8003 12.1364L12.8711 11.6142C13.1125 11.4965 13.2656 11.2514 13.2656 10.9828V9.15945C13.2656 8.90527 13.0596 8.69922 12.8054 8.69922H11.2614C10.9186 8.69922 10.6406 8.97717 10.6406 9.32004C10.6406 9.6307 10.3888 9.88254 10.0781 9.88254C9.76746 9.88254 9.51562 9.6307 9.51562 9.32004Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.5938 7.62677C16.2831 7.62677 16.0312 7.87861 16.0312 8.18927C16.0312 8.49993 16.2831 8.75177 16.5938 8.75177H19.5938C19.6973 8.75177 19.7812 8.83572 19.7812 8.93927V11.4583H16.5938C16.2831 11.4583 16.0312 11.7101 16.0312 12.0208C16.0312 12.3315 16.2831 12.5833 16.5938 12.5833H19.7812V15.1023C19.7812 15.2059 19.6973 15.2898 19.5938 15.2898H16.5938C16.2831 15.2898 16.0312 15.5417 16.0312 15.8523C16.0312 16.163 16.2831 16.4148 16.5938 16.4148H19.5938C20.3186 16.4148 20.9062 15.8272 20.9062 15.1023V8.93927C20.9062 8.2144 20.3186 7.62677 19.5938 7.62677H16.5938Z" fill="white"/></svg>',boolean:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
970<path fill-rule="evenodd" clip-rule="evenodd" d="M1.6875 12C1.6875 8.78984 4.28985 6.1875 7.5 6.1875H16.5C19.7102 6.1875 22.3125 8.78984 22.3125 12C22.3125 15.2102 19.7102 17.8125 16.5 17.8125H7.5C4.28985 17.8125 1.6875 15.2102 1.6875 12ZM7.5 7.3125C4.91117 7.3125 2.8125 9.41117 2.8125 12C2.8125 14.5888 4.91117 16.6875 7.5 16.6875H16.5C19.0888 16.6875 21.1875 14.5888 21.1875 12C21.1875 9.41117 19.0888 7.3125 16.5 7.3125H7.5Z" fill="white"/><path d="M19.5 12C19.5 13.6569 18.1569 15 16.5 15C14.8431 15 13.5 13.6569 13.5 12C13.5 10.3431 14.8431 9 16.5 9C18.1569 9 19.5 10.3431 19.5 12Z" fill="white"/></svg>',isodate:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.18616 2.22852C7.49682 2.22852 7.74866 2.48036 7.74866 2.79102V3.90302H14.9956V2.79102C14.9956 2.48036 15.2474 2.22852 15.5581 2.22852C15.8688 2.22852 16.1206 2.48036 16.1206 2.79102V3.90302H18.9942C19.7191 3.90302 20.3067 4.49064 20.3067 5.21552V11.1632C20.3067 11.4739 20.0548 11.7257 19.7442 11.7257C19.4335 11.7257 19.1817 11.4739 19.1817 11.1632V9.48865L3.5625 9.48865V18.7853C3.5625 18.8888 3.64645 18.9728 3.75 18.9728H10.5349C10.8455 18.9728 11.0974 19.2246 11.0974 19.5353C11.0974 19.8459 10.8455 20.0978 10.5349 20.0978H3.75C3.02513 20.0978 2.4375 19.5102 2.4375 18.7853V5.21551C2.4375 4.49064 3.02513 3.90302 3.75 3.90302H6.62366V2.79102C6.62366 2.48036 6.8755 2.22852 7.18616 2.22852ZM14.9956 5.02802V6.13985C14.9956 6.45051 15.2474 6.70235 15.5581 6.70235C15.8688 6.70235 16.1206 6.45051 16.1206 6.13985V5.02802H18.9942C19.0977 5.02802 19.1817 5.11196 19.1817 5.21552V8.36365L3.5625 8.36365V5.21551C3.5625 5.11196 3.64645 5.02802 3.75 5.02802H6.62366V6.13985C6.62366 6.45051 6.8755 6.70235 7.18616 6.70235C7.49682 6.70235 7.74866 6.45051 7.74866 6.13985V5.02802H14.9956Z" fill="white"/><path d="M7.18589 12.0004C7.18589 12.4627 6.81106 12.8376 6.34868 12.8376C5.88631 12.8376 5.51147 12.4627 5.51147 12.0004C5.51147 11.538 5.88631 11.1631 6.34868 11.1631C6.81106 11.1631 7.18589 11.538 7.18589 12.0004Z" fill="white"/><path d="M11.3721 12.0004C11.3721 12.4627 10.9972 12.8376 10.5348 12.8376C10.0725 12.8376 9.69763 12.4627 9.69763 12.0004C9.69763 11.538 10.0725 11.1631 10.5348 11.1631C10.9972 11.1631 11.3721 11.538 11.3721 12.0004Z" fill="white"/><path d="M7.18589 16.1863C7.18589 16.6487 6.81106 17.0235 6.34868 17.0235C5.88631 17.0235 5.51147 16.6487 5.51147 16.1863C5.51147 15.724 5.88631 15.3491 6.34868 15.3491C6.81106 15.3491 7.18589 15.724 7.18589 16.1863Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.8141 13.4C14.8129 13.4 13.1906 15.0223 13.1906 17.0235C13.1906 19.0247 14.8129 20.6471 16.8141 20.6471C18.8153 20.6471 20.4376 19.0247 20.4376 17.0235C20.4376 15.0223 18.8153 13.4 16.8141 13.4ZM12.0656 17.0235C12.0656 14.401 14.1915 12.275 16.8141 12.275C19.4366 12.275 21.5626 14.401 21.5626 17.0235C21.5626 19.6461 19.4366 21.7721 16.8141 21.7721C14.1915 21.7721 12.0656 19.6461 12.0656 17.0235Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.6307 14.9959C16.9414 14.9959 17.1932 15.2478 17.1932 15.5584V17.2959L17.9186 17.6404C18.1992 17.7737 18.3
970186 18.1093 18.1853 18.3899C18.0521 18.6705 17.7165 18.7899 17.4359 18.6566L16.3894 18.1595C16.1932 18.0664 16.0682 17.8686 16.0682 17.6514V15.5584C16.0682 15.2478 16.3201 14.9959 16.6307 14.9959Z" fill="white"/></svg>',file:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.25 3.5625C5.20027 3.5625 5.15258 3.58225 5.11742 3.61742C5.08225 3.65258 5.0625 3.70027 5.0625 3.75V20.25C5.0625 20.2997 5.08225 20.3474 5.11742 20.3826C5.15258 20.4177 5.20027 20.4375 5.25 20.4375H18.75C18.7997 20.4375 18.8474 20.4177 18.8826 20.3826C18.9177 20.3474 18.9375 20.2997 18.9375 20.25V8.483L14.017 3.5625H5.25ZM4.32192 2.82192C4.56806 2.57578 4.9019 2.4375 5.25 2.4375H14.25C14.3992 2.4375 14.5423 2.49676 14.6477 2.60225L19.8977 7.85225C20.0032 7.95774 20.0625 8.10082 20.0625 8.25V20.25C20.0625 20.5981 19.9242 20.9319 19.6781 21.1781C19.4319 21.4242 19.0981 21.5625 18.75 21.5625H5.25C4.9019 21.5625 4.56806 21.4242 4.32192 21.1781C4.07578 20.9319 3.9375 20.5981 3.9375 20.25V3.75C3.9375 3.4019 4.07578 3.06806 4.32192 2.82192Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.25 2.4375C14.5607 2.4375 14.8125 2.68934 14.8125 3V7.6875H19.5C19.8107 7.6875 20.0625 7.93934 20.0625 8.25C20.0625 8.56066 19.8107 8.8125 19.5 8.8125H14.25C13.9393 8.8125 13.6875 8.56066 13.6875 8.25V3C13.6875 2.68934 13.9393 2.4375 14.25 2.4375Z" fill="white"/></svg>',link:lz,url:lz,reference:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 3.9375C4.81066 3.9375 5.0625 4.18934 5.0625 4.5V18.9375H19.5C19.8107 18.9375 20.0625 19.1893 20.0625 19.5C20.0625 19.8107 19.8107 20.0625 19.5 20.0625H4.5C4.18934 20.0625 3.9375 19.8107 3.9375 19.5V4.5C3.9375 4.18934 4.18934 3.9375 4.5 3.9375Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.3756 7.08021C15.6074 6.87343 15.963 6.89375 16.1698 7.12559L18.4198 9.64832C18.6151 9.86727 18.6093 10.1995 18.4065 10.4115L16.1565 12.7638C15.9417 12.9883 15.5857 12.9962 15.3612 12.7815C15.1367 12.5668 15.1288 12.2107 15.3435 11.9862L16.6836 10.5852H11.3182C9.52012 10.5852 8.0625 12.0428 8.0625 13.8409V15.75C8.0625 16.0607 7.81066 16.3125 7.5 16.3125C7.18934 16.3125 6.9375 16.0607 6.9375 15.75V13.8409C6.9375 11.4215 8.8988 9.46023 11.3182 9.46023H16.7446L15.3302 7.87441C15.1234 7.64256 15.1437 7.28699 15.3756 7.08021Z" fill="white"/></svg>',group:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.8125 3.75C2.8125 3.23223 3.23223 2.8125 3.75 2.8125C4.26777 2.8125 4.6875 3.23223 4.6875 3.75C4.6875 4.26777 4.26777 4.6875 3.75 4.6875C3.23223 4.6875 2.8125 4.26777 2.8125 3.75ZM3.75 1.6875C4.69408 1.6875 5.49001 2.32181 5.73486 3.1875H18.2651C18.51 2.32181 19.3059 1.6875 20.25 1.6875C21.3891 1.6875 22.3125 2.61091 22.3125 3.75C22.3125 4.69408 21.6782 5.49002 20.8125 5.73486V18.2651C21.6782 18.51 22.3125 19.3059 22.3125 20.25C22.3125 21.3891 21.3891 22.3125 20.25 22.3125C19.3059 22.3125 18.51 21.6782 18.2651 20.8125H5.73486C5.49001 21.6782 4.69408 22.3125 3.75 22.3125C2.61091 22.3125 1.6875 21.3891 1.6875 20.25C1.6875 19.3059 2.32181 18.51 3.1875 18.2651V5.73486C2.32181 5.49001 1.6875 4.69408 1.6875 3.75C1.6875 2.61091 2.61091 1.6875 3.75 1.6875ZM20.25 4.6875C20.7678 4.6875 21.1875 4.26777 21.1875 3.75C21.1875 3.23223 20.7678 2.8125 20.25 2.8125C19.7322 2.8125 19.3125 3.23223 19.3125 3.75C19.3125 4.26777 19.7322 4.6875 20.25 4.6875ZM18.2651 4.3125C18.4594 4.99938 19.0006 5.54059 19.6875 5.73486V18.2651C19.0006 18.4594 18.4594 19.0006 18.2651 19.6875H5.73486C5.54059 19.0006 4.99938 18.4594 4.3125 18.2651V5.73486C4.99938 5.54059 5.54059 4.99938 5.73486 4.3125H18.2651ZM19.3125 20.25C19.3125 19.7322 19.7322 19.3125 20.25 19.3125C20.7678 19.3125 21.1875 19.7322 21.1875 20.25C21.1875 20.7678 20.7678 21.1875 20.25 21.1875C19.7322 21.1875 19.3125 20.7678 19.3125 20.25ZM4.6875 20.25C4.6875 19.7322 4.26777 19.3125 3.75 19.3125C3.23223 19.3125 2.8125 19.7322 2.8125 20.25C2.8125 20.7678 3.23223 21.1875 3.75 21.1875C4.26777 21.1875 4.6875 20.7678 4.6875 20.25ZM9.75 7.6875C9.75 6.96263 10.3376 6.375 11.0625 6.375H15.5625C16.2874 6.375 16.875 6.96263 16.875 7.6875V13.6875C16.875 14.4124 16.2874 15 15.5625 15H14.625V15.9375C14.625 16.6624 14.0374 17.25 13.3125 17.25H8.8125C8.08763 17.25 7.5 16.6624 7.5 15.9375V9.1875C7.5 8.46263 8.08763 7.875 8.8125 7.875H9.75V7.6875ZM9.75 9H8.8125C8.70895 9 8.625 9.08395 8.625 9.1875V15.9375C8.625 16.0411 8.70895 16.
970125 8.8125 16.125H13.3125C13.4161 16.125 13.5 16.0411 13.5 15.9375V15H11.0625C10.3376 15 9.75 14.4124 9.75 13.6875V9ZM11.0625 7.5C10.9589 7.5 10.875 7.58395 10.875 7.6875V13.6875C10.875 13.7911 10.9589 13.875 11.0625 13.875H15.5625C15.6661 13.875 15.75 13.7911 15.75 13.6875V7.6875C15.75 7.58395 15.6661 7.5 15.5625 7.5H11.0625Z" fill="white"/></svg>',global_field:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.375 3C17.3456 3 21.375 7.02944 21.375 12C21.375 16.9706 17.3456 21 12.375 21C7.40444 21 3.375 16.9706 3.375 12C3.375 7.02944 7.40444 3 12.375 3ZM12.375 19.875C12.5009 19.875 12.7226 19.8185 13.0332 19.5032C13.3478 19.184 13.6828 18.6642 13.9882 17.9313C14.1866 17.455 14.3632 16.9113 14.5111 16.3125H10.2389C10.3868 16.9113 10.5634 17.455 10.7618 17.9313C11.0672 18.6642 11.4022 19.184 11.7168 19.5032C12.0274 19.8185 12.2491 19.875 12.375 19.875ZM10.0068 15.1875C9.84289 14.2154 9.75 13.1397 9.75 12C9.75 10.8603 9.84289 9.78464 10.0068 8.8125H14.7432C14.9071 9.78464 15 10.8603 15 12C15 13.1397 14.9071 14.2154 14.7432 15.1875H10.0068ZM15.6673 16.3125C15.3597 17.6622 14.9122 18.8021 14.3716 19.6197C16.2825 19.1203 17.9105 17.9212 18.9653 16.3125H15.6673ZM19.5782 15.1875H15.883C16.0394 14.1967 16.125 13.1223 16.125 12C16.125 10.8777 16.0394 9.80332 15.883 8.8125H19.5782C20.0101 9.78699 20.25 10.8655 20.25 12C20.25 13.1345 20.0101 14.213 19.5782 15.1875ZM8.86698 15.1875H5.17177C4.73991 14.213 4.5 13.1345 4.5 12C4.5 10.8655 4.73991 9.78699 5.17177 8.8125H8.86698C8.7106 9.80332 8.625 10.8777 8.625 12C8.625 13.1223 8.7106 14.1967 8.86698 15.1875ZM5.7847 16.3125H9.08273C9.39032 17.6622 9.83781 18.8021 10.3784 19.6197C8.46751 19.1203 6.83953 17.9212 5.7847 16.3125ZM10.2389 7.6875H14.5111C14.3632 7.08867 14.1866 6.54495 13.9882 6.06873C13.6828 5.33576 13.3478 4.81605 13.0332 4.49677C12.7226 4.18146 12.5009 4.125 12.375 4.125C12.2491 4.125 12.0274 4.18146 11.7168 4.49677C11.4022 4.81605 11.0672 5.33576 10.7618 6.06873C10.5634 6.54495 10.3868 7.08867 10.2389 7.6875ZM15.6673 7.6875H18.9653C17.9105 6.07879 16.2825 4.87965 14.3716 4.38032C14.9122 5.19795 15.3597 6.33778 15.6673 7.6875ZM10.3784 4.38032C9.83781 5.19795 9.39032 6.33778 9.08273 7.6875H5.7847C6.83953 6.07879 8.46751 4.87965 10.3784 4.38032Z" fill="white"/></svg>',custom_field:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.25 3.9375H9.05319C9.16513 3.35112 9.45051 2.80685 9.87868 2.37868C10.4413 1.81607 11.2044 1.5 12 1.5C12.7956 1.5 13.5587 1.81607 14.1213 2.37868C14.5495 2.80685 14.8349 3.35112 14.9468 3.9375H18.75C19.4749 3.9375 20.0625 4.52513 20.0625 5.25V9.05319C20.6489 9.16513 21.1931 9.45051 21.6213 9.87868C22.1839 10.4413 22.5 11.2044 22.5 12C22.5 12.7956 22.1839 13.5587 21.6213 14.1213C21.1931 14.5495 20.6489 14.8349 20.0625 14.9468V18.75C20.0625 19.4749 19.4749 20.0625 18.75 20.0625H14.7137C14.4215 20.0625 14.1613 19.8779 14.0648 19.6021C13.3812 17.6489 10.6188 17.6489 9.93522 19.6021C9.83871 19.8779 9.57846 20.0625 9.28631 20.0625H5.25C4.52513 20.0625 3.9375 19.4749 3.9375 18.75V14.7343C3.9375 14.4269 4.13421 14.154 4.42585 14.0568C6.40245 13.3979 6.40245 10.6021 4.42585 9.94321C4.13421 9.846 3.9375 9.57307 3.9375 9.26566V5.25C3.9375 4.52513 4.52513 3.9375 5.25 3.9375ZM5.25 5.0625C5.14645 5.0625 5.0625 5.14645 5.0625 5.25V8.98259C7.69023 10.1082 7.69023 13.8918 5.0625 15.0174V18.75C5.0625 18.8536 5.14645 18.9375 5.25 18.9375H8.99033C10.1484 16.3704 13.8516 16.3704 15.0097 18.9375H18.75C18.8536 18.9375 18.9375 18.8536 18.9375 18.75V5.25C18.9375 5.14645 18.8536 5.0625 18.75 5.0625H5.25Z" fill="white"/></svg>',experience_container:"",empty:"",loading:`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" class="${rK("visual-builder__cursor-icon--loader",r1()["visual-builder__cursor-icon--loader"])}"><path d="M15.5023 18.3501C13.5466 19.6388 11.2007 20.2002 8.87354 19.9364C6.54637 19.6725 4.38563 18.6002 2.76808 16.9065C1.15053 15.2127 0.178807 13.0049 0.0223406 10.6681C-0.134126 8.33122 0.534595 6.0136 1.9119 4.1193C3.2892 2.22501 5.2877 0.874235 7.55893 0.302518C9.83015 -0.2692 12.23 -0.0255895 14.34 0.990871C16.45 2.00733 18.1363 3.73215 19.1048 5.86457C20.0734 7.997 20.2627 10.4017 19.6399 12.6595L17.7119 12.1276C18.2102 10.3214 18.0587 8.3976 17.2839 6.69166C16.509 4.98572 15.16 3.60586 13.472 2.7927C11.784 1.97953 9.86412 1.78464 8.04714 2.24201C6.23016 2.69939 4.63136 3.78001 3.52952 5.29544C2.42768 6.81088 1.8927 8.66498 2.01787 10.5345C2.14305 12.4039 2.92043 14.1702 4.21446 15.5252C5.5085 16.8802 7.23709 17.738 9.09883 17.9491C10.9606 18.1601 12.8373 17.711 14.4018 16.6801L15.5023 18.3501Z" fill="white"/></svg>`,taxonomy:'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 1.52727C0 0.683783 0.683783 0 1.52727 0H22.4727C23.3162 0 24 0.683783 24
9701.52727V5.01818C24 5.86167 23.3162 6.54545 22.4727 6.54545H4.8V11.3455H8.72727V10.2545C8.72727 9.41106 9.41106 8.72727 10.2545 8.72727H17.2364C18.0799 8.72727 18.7636 9.41106 18.7636 10.2545V13.7455C18.7636 14.5889 18.0799 15.2727 17.2364 15.2727H10.2545C9.41106 15.2727 8.72727 14.5889 8.72727 13.7455V12.6545H4.8V20.0727H8.72727V18.9818C8.72727 18.1383 9.41106 17.4545 10.2545 17.4545H17.2364C18.0799 17.4545 18.7636 18.1383 18.7636 18.9818V22.4727C18.7636 23.3162 18.0799 24 17.2364 24H10.2545C9.41106 24 8.72727 23.3162 8.72727 22.4727V21.3818H4.14545C3.78396 21.3818 3.49091 21.0888 3.49091 20.7273V6.54545H1.52727C0.683785 6.54545 0 5.86167 0 5.01818V1.52727ZM10.0364 22.4727C10.0364 22.5932 10.134 22.6909 10.2545 22.6909H17.2364C17.3569 22.6909 17.4545 22.5932 17.4545 22.4727V18.9818C17.4545 18.8613 17.3569 18.7636 17.2364 18.7636H10.2545C10.134 18.7636 10.0364 18.8613 10.0364 18.9818V22.4727ZM10.0364 13.7455V10.2545C10.0364 10.134 10.134 10.0364 10.2545 10.0364H17.2364C17.3569 10.0364 17.4545 10.134 17.4545 10.2545V13.7455C17.4545 13.866 17.3569 13.9636 17.2364 13.9636H10.2545C10.134 13.9636 10.0364 13.866 10.0364 13.7455ZM22.4727 5.23636H1.52727C1.40677 5.23636 1.30909 5.13868 1.30909 5.01818V1.52727C1.30909 1.40677 1.40677 1.30909 1.52727 1.30909H22.4727C22.5932 1.30909 22.6909 1.40677 22.6909 1.52727V5.01818C22.6909 5.13868 22.5932 5.23636 22.4727 5.23636Z" fill="white"/></svg>',discussion:'<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.15007 0.985773C1.1065 0.985773 1.06471 1.00308 1.03389 1.03389C1.00308 1.06471 0.985773 1.1065 0.985773 1.15007V14.1925C0.986259 14.2231 0.995289 14.253 1.01186 14.2788C1.02866 14.3049 1.05253 14.3258 1.08069 14.3389C1.10886 14.352 1.14017 14.3568 1.17098 14.3529C1.20142 14.349 1.23014 14.3366 1.25391 14.3172L1.25479 14.3165L3.95491 12.0514C4.00036 12.0132 4.05232 11.9836 4.1083 11.9639L4.41225 11.8571C4.46474 11.8387 4.51999 11.8293 4.57563 11.8293H15.6081C15.6517 11.8293 15.6934 11.812 15.7243 11.7812C15.7551 11.7503 15.7724 11.7086 15.7724 11.665V1.15007C15.7724 1.10649 15.7551 1.06471 15.7243 1.03389C15.6934 1.00308 15.6517 0.985773 15.6081 0.985773H1.15007ZM0.336848 0.336848C0.552527 0.121168 0.845051 0 1.15007 0H15.6081C15.9131 0 16.2056 0.121168 16.4213 0.336848C16.637 0.552528 16.7581 0.845053 16.7581 1.15007V11.665C16.7581 11.97 16.637 12.2625 16.4213 12.4782C16.2056 12.6939 15.9131 12.8151 15.6081 12.8151H4.6597L4.51972 12.8642L1.88326 15.076C1.71571 15.2146 1.51228 15.3029 1.29657 15.3306C1.08086 15.3583 0.861722 15.3243 0.664572 15.2325C0.467421 15.1407 0.300341 14.9949 0.182714 14.812C0.0650888 14.629 0.00173885 14.4165 1.54726e-05 14.199L0 14.1951V1.15007C0 0.845051 0.121168 0.552527 0.336848 0.336848Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.25746 5.09316C5.25746 4.82095 5.47813 4.60028 5.75034 4.60028H11.0078C11.28 4.60028 11.5007 4.82095 11.5007 5.09316C11.5007 5.36538 11.28 5.58605 11.0078 5.58605H5.75034C5.47813 5.58605 5.25746 5.36538 5.25746 5.09316Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.25746 7.72189C5.25746 7.44968 5.47813 7.229 5.75034 7.229H11.0078C11.28 7.229 11.5007 7.44968 11.5007 7.72189C11.5007 7.99411 11.28 8.21478 11.0078 8.21478H5.75034C5.47813 8.21478 5.25746 7.99411 5.25746 7.72189Z" fill="white"/></svg>'};function lG({fieldType:e,customCursor:t,fieldDisabled:i=!1}){let r=e?lZ[e]:"";t.getAttribute("data-icon")!==e&&(t.innerHTML=`<div class="${rK("visual-builder__cursor-wrapper",{"visual-builder__cursor-disabled":i,[r1()["visual-builder__cursor-disabled"]]:i})}"><div class="${rK("visual-builder__cursor-pointer",r1()["visual-builder__cursor-pointer"])}"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M0.0167948 0.602214C-0.0784404 0.246792 0.246794 -0.0784402 0.602216 0.0167948L15.6457 4.04767C16.0914 4.1671 16.1259 4.78625 15.6962 4.95447L8.17161 7.90048C8.04753 7.94906 7.94936 8.04723 7.90078 8.17131L4.95449 15.6962C4.78627 16.1259 4.16712 16.0914 4.04769 15.6457L0.0167948 0.602214Z" fill="#5D50BE"/></svg></div><div class="${rK("visual-builder__cursor-icon",r1()["visual-builder__cursor-icon"])}">${r}</div>`,t.setAttribute("data-icon",e))}function lq(e,t,i){let r=e.getBoundingClientRect(),l=document.querySelector(".visual-builder__hover-outline");l&&(l.classList.remove(r1()["visual-builder__hover-outline--hidden"]),t?l.classList.add(r1()["visual-builder__hover-outline--disabled"]):(l.classList.remove(r1()["visual-builder__hover-outline--disabled"]),i?l.classList.add(r1()["visual-builder__hover-outline--variant"]):l.classList.remove(r1()["visual-builder__hover-outline--variant"])),l.style.top=`${r.top+window.scrollY}px`,l.style.left=`${r.left}px`,l.style.width=`${r.width}px`,l.style.height=`${r.height}px`)}var lY=ry` 971 0%, 100% { 972 fill: #edf1f7; 973 } 974 60% { 975 opacity: 0.4; 976 } 977`,lK=ry` 978 0% { 979 opacity: 0.2; 980 transform: scale(0.8, 0.8); 981 } 982 983 50% { 984 opacity: 1; 985 transform: scale(1.2, 1.2); 986 } 987 988 100% { 989 opacity: 0; 990 transform: scale(1, 1); 991 } 992`;function lX(){return{"collab-indicator":rm` 993 width: 2.25rem; 994 height: 2.25rem; 995 background-color: gray; 996 border-radius: 50% 50% 50% 0%; 997 border: 2px solid white; 998 display: flex; 999 align-items: center; 1000 justify-content: center; 1001 cursor: pointer; 1002 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 1003 `,"collab-popup":rm` 1004 position: fixed; 1005 z-index: 1000; 1006 background: white; 1007 border-radius: 8px; 1008 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 1009 border: 1px solid #e5e7eb; 1010 overflow: auto; 1011 `,"collab-avatar":rm` 1012 background-color: #edf1f7; 1013 border: 1.5px solid #ffffff; 1014 border-radius: 50%; 1015 font-family: Inter, sans-serif; 1016 font-weight: 600; 1017 justify-content: center; 1018 position: relative; 1019 `,"collab-avatar--single":rm` 1020 border: none; 1021 font-size: 0.6875rem; 1022 height: 2rem; 1023 width: 2rem; 1024 border-radius: 22.5rem; 1025 border: 0.125rem solid #dde3ee; 1026 background: #ffffff; 1027 position: relative; 1028 overflow: hidden; 1029 1030 &:hover .collab-avatar__image { 1031 filter: grayscale(0); 1032 } 1033 `,"collab-avatar__image":rm` 1034 filter: grayscale(1); 1035 transition: filter 300ms ease; 1036 border-radius: 50%; 1037 height: 0; 1038 left: 50%; 1039 min-width: 100%; 1040 position: absolute; 1041 top: 50%; 1042 transform: translate(-50%, -50%); 1043 width: 0; 1044 `,"collab-avatar__link":rm` 1045 color: #475161; 1046 cursor: pointer; 1047 height: 100%; 1048 justify-content: center; 1049 overflow: hidden; 1050 text-decoration: none; 1051 text-transform: uppercase; 1052 transition: 1053 background-color 300ms ease, 1054 color 300ms ease; 1055 width: 100%; 1056 font-weight: 600; 1057 font-size: 0.75rem; 1058 `,"collab-tooltip--wrapper":rm` 1059 position: relative; 1060 display: inline-block; 1061 `,"collab-tooltip":rm` 1062 position: fixed; 1063 z-index: 2147483647 !important; 1064 padding: 8px 12px; 1065 font-size: 14px; 1066 color: #f7f9fc; 1067 background-color: #767676; 1068 border-radius: 4px; 1069 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 1070 1071 opacity: 0; 1072 animation: simpleFade 0.15s ease-in forwards; 1073 1074 @keyframes simpleFade { 1075 from { 1076 opacity: 0; 1077 } 1078 to { 1079 opacity: 1; 1080 } 1081 } 1082 `,"collab-tooltip--top":rm` 1083 &::before { 1084 content: ""; 1085 position: absolute; 1086 bottom: -5px; 1087 left: 50%; 1088 transform: translateX(-50%); 1089 border-width: 5px 5px 0; 1090 border-style: solid; 1091 border-color: #767676 transparent transparent; 1092 } 1093 `,"collab-tooltip--bottom":rm` 1094 &::before { 1095 content: ""; 1096 position: absolute; 1097 top: -5px; 1098 left: 50%; 1099 transform: translateX(-50%); 1100 border-width: 0 5px 5px; 1101 border-style: solid; 1102 border-color: transparent transparent #767676; 1103 } 1104 `,"collab-tooltip--left":rm` 1105 &::before { 1106 content: ""; 1107 position: absolute; 1108 right: -5px; 1109 top: 50%; 1110 transform: translateY(-50%); 1111 border-width: 5px 0 5px 5px; 1112 border-style: solid; 1113 border-color: transparent transparent transparent #767676; 1114 } 1115 `,"collab-tooltip--right":rm` 1116 &::before { 1117 content: ""; 1118 position: absolute; 1119 left: -5px; 1120 top: 50%; 1121 transform: translateY(-50%); 1122 border-width: 5px 5px 5px 0; 1123 border-style: solid; 1124 border-color: transparent #767676 transparent transparent; 1125 } 1126 `,"collab-icon":rm` 1127 height: 1.25rem; 1128 width: 1.25rem; 1129 cursor: pointer; 1130 `,"collab-icon-wrapper":rm` 1131 padding: 0 0.5rem; 1132 `,"collab-button--basestyle":rm` 1133 box-sizing: border-box; 1134 -moz-box-sizing: border-box; 1135 -webkit-box-sizing: border-box; 1136 background-color: transparent; 1137 border: 1px solid transparent; 1138 border-radius: 4px; 1139 cursor: pointer; 1140 font-family: Inter, sans-serif; 1141 font-size: 1rem; 1142 font-weight: 600; 1143 line-height: 1; 1144 min-height: 2rem; 1145 min-width: 2rem; 1146 padding: 0.5rem 1rem; 1147 position: relative; 1148 text-align: center; 1149 transition: 1150 color 0.15s ease-in-out, 1151 background-color 0.15s ease-in-out, 1152 border-color 0.15s ease-in-out, 1153 box-shadow 0.15s ease-in-out; 1154 vertical-align: middle; 1155 cursor: pointer; 1156 opacity: 1; 1157 pointer-events: auto; 1158 `,"collab-button--disabled":rm`
1159 cursor: not-allowed; 1160 opacity: 0.4; 1161 pointer-events: auto; 1162 `,"collab-button--loading":rm` 1163 cursor: default; 1164 pointer-events: none; 1165 `,"collab-button--loader":rm` 1166 display: flex; 1167 justify-content: center; 1168 text-align: center; 1169 `,"collab-button--loader--wrapper":rm` 1170 left: 50%; 1171 position: absolute; 1172 top: 50%; 1173 -webkit-transform: translateX(-50%) translateY(-50%); 1174 -moz-transform: translateX(-50%) translateY(-50%); 1175 `,"collab-button--loader--animation":rm` 1176 animation: ${lK} 1.5s infinite ease-in-out; 1177 1178 border-radius: 0.625rem; 1179 display: inline-block; 1180 height: 0.3125rem; 1181 margin-right: 0.25rem; 1182 width: 0.3125rem; 1183 1184 &:nth-child(2) { 1185 animation-delay: 0.5s; 1186 } 1187 1188 &:nth-child(3) { 1189 animation-delay: 1s; 1190 margin-right: 0; 1191 } 1192 `,"collab-button--visible":rm` 1193 visibility: visible; 1194 `,"collab-button--hidden":rm` 1195 visibility: hidden; 1196 `,"collab-button--loading--color":{primary:rm` 1197 background-color: #f9f8ff !important; 1198 `,secondary:rm` 1199 background-color: #6c5ce7 !important; 1200 `,tertiary:rm` 1201 background-color: #6c5ce7 !important; 1202 `,destructive:rm` 1203 background-color: #f9f8ff !important; 1204 `},"collab-button--type":{primary:rm` 1205 background-color: #6c5ce7 !important; 1206 color: #ffffff; 1207 &:hover { 1208 background-color: #5d50be !important; 1209 } 1210 &:focus { 1211 box-shadow: 0px 0px 0px 2px #ada4f4 !important; 1212 } 1213 &:active { 1214 background-color: #3e3871 !important; 1215 } 1216 `,secondary:rm` 1217 background-color: #f9f8ff !important; 1218 border: 1px solid #6c5ce7 !important; 1219 color: #6c5ce7 !important; 1220 &:hover { 1221 border-color: #5d50be !important; 1222 color: #5d50be !important; 1223 } 1224 &:focus { 1225 box-shadow: 0px 0px 0px 2px #ada4f4 !important; 1226 } 1227 &:active { 1228 border-color: #3e3871 !important; 1229 color: #3e3871 !important; 1230 } 1231 `,tertiary:rm` 1232 color: #6c5ce7 !important; 1233 &:hover { 1234 color: #5d50be !important; 1235 } 1236 &:focus { 1237 box-shadow: 0px 0px 0px 2px #ada4f4 !important; 1238 } 1239 `,destructive:rm` 1240 background-color: #a31b00 !important; 1241 color: #ffffff !important; 1242 &:hover { 1243 background-color: #701300 !important; 1244 } 1245 &:focus { 1246 box-shadow: 0px 0px 0px 2px #ada4f4 !important; 1247 } 1248 `},"collab-button--size":{large:rm` 1249 font-size: 1rem; 1250 min-height: 2.5rem; 1251 max-height: 2.5rem; 1252 `,regular:rm` 1253 margin-top: -1px; 1254 `,small:rm` 1255 font-size: 0.875rem; 1256 min-height: 2rem; 1257 max-height: 2rem; 1258 padding: 0.3125rem 1rem; 1259 `},"collab-button--icon-allignment":{left:rm` 1260 svg:first-child { 1261 float: left; 1262 margin-left: 0; 1263 margin-right: 0.5rem; 1264 } 1265 `,right:rm` 1266 svg:first-child { 1267 float: right; 1268 margin-left: 0.5rem; 1269 margin-right: 0; 1270 } 1271 `,both:rm` 1272 svg:first-child { 1273 float: left; 1274 margin-right: 0.5rem; 1275 margin-left: 0; 1276 } 1277 svg:last-child { 1278 float: right; 1279 margin-left: 0.5rem; 1280 margin-right: 0; 1281 } 1282 `},"collab-button-group":rm` 1283 display: flex; 1284 & > button { 1285 margin-right: 1rem; 1286 &:last-child { 1287 margin-right: 0; 1288 } 1289 } 1290 `,"collab-skeletonTileSvgClass":rm` 1291 & > g rect { 1292 animation: ${lY} 1.8s infinite; 1293 } 1294 `,"collab-thread-body-comment--loader":rm` 1295 padding: 0.625rem; 1296 `,"collab-thread--wrapper":rm` 1297 cursor: default; 1298 position: relative; 1299 padding: 0 !important; 1300 font-family: Inter, sans-serif; 1301 color: #475161; 1302 width: 20.75rem; 1303 `,"collab-thread--container":rm` 1304 max-height: 23.125rem; 1305 display: flex; 1306 flex-direction: column; 1307 overflow: hidden; 1308 `,"collab-thread-header--wrapper":rm` 1309 height: 2.5rem; 1310 padding: 0.2rem 0.1rem 0rem 0.625rem; 1311 `,"collab-thread-header--container":rm` 1312 justify-content: space-between; 1313 width: 100%; 1314 `,"collab-thread-header--title":rm` 1315 font-weight: 600; 1316 font-size: 0.875rem; 1317 `,"collab-thread-header--resolve":rm` 1318 border-radius: 6px !important; 1319 `,"collab-thread-header--resolve--icon":rm` 1320 width: 1.25rem; 1321 height: 1.25rem; 1322 margin-right: 0.5rem !important; 1323 `,"collab-thread-header--resolve--text":rm` 1324 font-size: 0.875rem; 1325 `,"collab-thread-footer--wrapper":rm` 1326 height: 3.5rem; 1327 width: 100%; 1328 flex-direction: row-reverse; 1329 padding: 0 0.9375rem; 1330 flex-shrink: 0; 1331 `,"collab-thread-body--wrapper":rm` 1332 border: solid #edf1f7; 1333 border-width: 0.0625rem 0; 1334 flex: 1; 1335 overflow: auto; 1336 display: flex; 1337 flex-direction: column; 1338 `,"collab-thread-input-indicator--wrapper":rm` 1339 padding: 0 0.5rem; 1340 font-weight: 400; 1341 font-size: 0.875rem; 1342 line-height: 150%; 1343 letter-spacing: 0.01em; 1344 min-height: 1.3125rem !important; 1345 `,"collab-thread-input-indicator--error":rm` 1346 width: 100%; 1347 margin-right: 0.5rem; 1348 color: #d62400; 1349 `,"collab-thread-input-indicator--count":rm` 1350 color: #475161; 1351 `,"collab-thread-comment--user-details":rm` 1352 display: flex; 1353 align-items: center; 1354 justify-content: space-between; 1355 width: 100%; 1356 `,"collab-thread-comment--user-details__text":rm` 1357 padding-left: 0.625rem; 1358 flex-grow: 1; 1359 min-width: 0; 1360 `,"collab-thread-comment--user-name":rm` 1361 font-style: normal; 1362 font-weight: 600; 1363 font-size: 0.75rem; 1364 line-height: 150%; 1365 letter-spacing: 0.015rem; 1366 color: #475161; 1367 white-space: nowrap; 1368 overflow: hidden; 1369 text-overflow: ellipsis; 1370 `,"collab-thread-comment--list":rm` 1371 max-height: 10.9rem; 1372 display: flex; 1373 overflow: auto; 1374 flex-flow: column-reverse; 1375 `,"collab-thread-comment-seperator":rm` 1376 width: 100%; 1377 height: 1.5rem; 1378 stroke-width: 0.0625rem; 1379 stroke: #dde3ee; 1380 `,"collab-thread-comment--time-details":rm` 1381 font-weight: 400; 1382 font-size: 0.75rem; 1383 line-height: 150%; 1384 font-style: Inter; 1385 letter-spacing: 0.015rem; 1386 color: #6e6b86; 1387 `,"collab-thread-comment--message":rm` 1388 font-weight: 400; 1389 font-size: 1rem; 1390 line-height: 1.5rem; 1391 color: #475161; 1392 word-break: break-all;
1393 width: calc(100% - 10px); 1394 min-height: 2.25rem; 1395 white-space: pre-wrap; 1396 1397 b { 1398 color: #6c5ce7; 1399 font-weight: 400; 1400 } 1401 `,"collab-thread-comment--wrapper":rm` 1402 display: flex; 1403 flex-direction: column; 1404 align-items: flex-start; 1405 gap: 0.625rem; 1406 padding: 0.625rem; 1407 `,"collab-thread-comment-action--wrapper":rm` 1408 margin-left: auto; 1409 display: flex; 1410 `,"collab-thread-body--input--wrapper":rm` 1411 width: 100%; 1412 display: flex; 1413 flex-direction: column; 1414 gap: 0.25rem; 1415 grid-gap: 0.25rem; 1416 `,"collab-thread-body--input":rm` 1417 position: relative; 1418 overflow-y: visible; 1419 `,"collab-thread-body--input--textarea--wrapper":rm` 1420 width: 100%; 1421 transition: height 0.2s ease-in 0s; 1422 `,"collab-thread-body--input--textarea":rm` 1423 display: block; 1424 width: 100%; 1425 position: relative; 1426 top: 0; 1427 left: 0; 1428 box-sizing: border-box; 1429 background-color: #ffffff; 1430 font-family: inherit; 1431 font-size: 1rem; 1432 letter-spacing: inherit; 1433 height: 100%; 1434 bottom: 0; 1435 overflow: auto; 1436 resize: vertical; 1437 border-radius: 4px; 1438 border: 0.0625rem solid #dde3ee; 1439 line-height: 1.375rem; 1440 color: #222222; 1441 padding: 0.5rem 1rem; 1442 max-height: 6.25rem; 1443 min-height: 4.125rem; 1444 transition: 1445 border 0.2s ease, 1446 box-shadow 0.2s ease, 1447 background-color 0.2s ease; 1448 `,"collab-thread-body--input--textarea--focus":rm` 1449 background-color: #ffffff !important; 1450 border: 0.0625rem solid #5d50be !important; 1451 box-shadow: 0 0 0 0.0625rem #5d50be !important; 1452 border-radius: 4px !important; 1453 outline: none; 1454 `,"collab-thread-body--input--textarea--hover":rm` 1455 background-color: #edf1f7; 1456 border: 0.0625rem solid #5d50be !important; 1457 box-shadow: 0 0 0 0.0625rem #5d50be !important; 1458 `,"collab-thread-body--input--textarea--suggestionsList":rm` 1459 list-style: none; 1460 padding-inline: unset; 1461 position: fixed; 1462 background-color: #ffffff; 1463 border: 1px solid #e2e8f0; 1464 border-radius: 8px; 1465 box-shadow: 1466 0 4px 6px -1px rgba(0, 0, 0, 0.1), 1467 0 2px 4px -1px rgba(0, 0, 0, 0.06); 1468 max-height: 192px; 1469 overflow-y: auto; 1470 width: 256px; 1471 max-height: 160px; 1472 z-index: 50; 1473 animation: fadeIn 0.2s ease-in-out; 1474 1475 @keyframes fadeIn { 1476 from { 1477 opacity: 0; 1478 transform: translateY(-4px); 1479 } 1480 to { 1481 opacity: 1; 1482 transform: translateY(0); 1483 } 1484 } 1485 `,"collab-thread-body--input--textarea--suggestionsList--item":rm` 1486 width: 100%; 1487 padding: 8px 16px; 1488 text-align: left; 1489 border: none; 1490 background: none; 1491 cursor: pointer; 1492 font-size: 14px; 1493 transition: background-color 0.2s; 1494 1495 &:hover { 1496 background-color: #f3f4f6; 1497 color: #5d50be; 1498 } 1499 `,"collab-thread-body--input--textarea--suggestionsList--item-selected":rm` 1500 background-color: #f3f4f6; 1501 color: #5d50be; 1502 `}}var lQ=rm` 1503 display: flex; 1504 align-items: center; 1505 justify-content: center; 1506`,lJ=rm` 1507 display: flex; 1508 align-items: center; 1509`;function l1(e,t){for(var i in t)e[i]=t[i];return e}function l2(e,t){for(var i in e)if("__source"!==i&&!(i in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function l5(e,t){this.props=e,this.context=t}(l5.prototype=new eW).isPureReactComponent=!0,l5.prototype.shouldComponentUpdate=function(e,t){return l2(this.props,e)||l2(this.state,t)};var l0=ew.__b;ew.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),l0&&l0(e)};var l3="u">typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,l7=ew.__e;ew.__e=function(e,t,i,r){if(e.then){for(var l,n=t;n=n.__;)if((l=n.__c)&&l.__c)return null==t.__e&&(t.__e=i.__e,t.__k=i.__k||[]),l.__c(e,t)}l7(e,t,i,r)};var l6=ew.unmount;function l8(){this.__u=0,this.o=null,this.__b=null}function l4(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function l9(){this.i=null,this.l=null}ew.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),l6&&l6(e)},(l8.prototype=new eW).__c=function(e,t){var i=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(i);var l=l4(r.__v),n=!1,o=function(){n||r.__z||(n=!0,i.__R=null,l?l(s):s())};i.__R=o;var a=i.__P;i.__P=null;var s=function(){if(!--r.__u){if(r.state.__a){var e,t=r.state.__a;r.__v.__k[0]=function e(t,i,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,i,r)}),t.__c&&t.__c.__P===i&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(t,t.__c.__P,t.__c.__O)}for(r.setState({__a:r.__b=null});e=r.o.pop();)e.__P=a,e.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},l8.prototype.componentWillUnmount=function(){this.o=[]},l8.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var i=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,i,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=l1({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=i),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,i,r)})),t}(this.__b,i,r.__O=r.__P)}this.__b=null}var l=t.__a&&eF(ej,null,e.fallback);return l&&(l.__u&=-33),[eF(ej,null,t.__a?null:e.children),l]};var ne=function(e,t,i){if(++i[1]===i[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(i=e.i;i;){for(;i.length>3;)i.pop()();if(i[1]<i[0])break;e.i=i=i[2]}};(l9.prototype=new eW).__a=function(e){var t=this,i=l4(t.__v),r=t.l.get(e);return r[0]++,function(l){var n=function(){t.props.revealOrder?(r.push(l),ne(t,e,r)):l()};i?i(n):n()}},l9.prototype.render=function(e){this.i=null,this.l=new Map;var t=eY(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var i=t.length;i--;)this.l.set(t[i],this.i=[1,0,this.i]);return e.children},l9.prototype.componentDidUpdate=l9.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,i){ne(e,i,t)})};var nt="u">typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ni=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,nr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,nl=/[A-Z0-9]/g,nn="u">typeof document;eW.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(eW.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var no=ew.event;ew.event=function(e){return no&&(e=no(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var na,ns,nd,nu,nc,nf,np={configurable:!0,get:function(){return this.class}},nh=ew.vnode;ew.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,i=e.type,r={},l=-1==i.indexOf("-");for(var n in t){var o=t[n];if(!("value"===n&&"defaultValue"in t&&null==o||nn&&"children"===n&&"noscript"===i||"class"===n||"className"===n)){var a,s=n.toLowerCase();"defaultValue"===n&&"value"in t&&null==t.value?n="value":"download"===n&&!0===o?o="":"translate"===s&&"no"===o?o=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?n="ondblclick":"onchange"!==s||"input"!==i&&"textarea"!==i||(a=t.type,("u">typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(a))?"onfocus"===s?n="onfocusin":"onblur"===s?n="onfocusout":nr.test(n)&&(n=s):s=n="onin
1509put":l&&ni.test(n)?n=n.replace(nl,"-$&").toLowerCase():null===o&&(o=void 0),"oninput"===s&&r[n=s]&&(n="oninputCapture"),r[n]=o}}"select"==i&&(r.multiple&&Array.isArray(r.value)&&(r.value=eY(t.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),null!=r.defaultValue&&(r.value=eY(t.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",np)):t.className&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=nt,nh&&nh(e)};var nv=ew.__r;ew.__r=function(e){nv&&nv(e),nf=e.__c};var n_=ew.diffed;ew.diffed=function(e){n_&&n_(e);var t=e.props,i=e.__e;null!=i&&"textarea"===e.type&&"value"in t&&t.value!==i.value&&(i.value=null==t.value?"":t.value),nf=null};var nb=eY,nm=function(e,t){function i(e){var i=this.props.ref;return i!=e.ref&&i&&("function"==typeof i?i(null):i.current=null),t?!t(this.props,e)||i!=e.ref:l2(this.props,e)}function r(t){return this.shouldComponentUpdate=i,eF(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.__f=r.prototype.isReactComponent=!0,r.type=e,r};let ng=function(e){return e!=e},ny=function(e,t,i){for(var r=i-1,l=e.length;++r<l;)if(e[r]===t)return r;return -1},nw=function(e,t){return!!(null==e?0:e.length)&&(t==t?ny(e,t,0):iP(e,ng,0))>-1},nC=function(e,t,i){for(var r=-1,l=null==e?0:e.length;++r<l;)if(i(t,e[r]))return!0;return!1};var nx=i(78261),nE=nx.A&&1/iZ(new nx.A([,-0]))[1]==1/0?function(e){return new nx.A(e)}:function(){};let nL=function(e,t,i){var r=-1,l=nw,n=e.length,o=!0,a=[],s=a;if(i)o=!1,l=nC;else if(n>=200){var d=t?null:nE(e);if(d)return iZ(d);o=!1,l=iF,s=new iB}else s=t?[]:a;t:for(;++r<n;){var u=e[r],c=t?t(u):u;if(u=i||0!==u?u:0,o&&c==c){for(var f=s.length;f--;)if(s[f]===c)continue t;t&&s.push(c),a.push(u)}else l(s,c,i)||(s!==a&&s.push(c),a.push(u))}return a},nS=function(e,t){return e&&e.length?nL(e,rl(t)):[]};var nM=i(91992),nO=i(27866),nA=e=>e.firstName&&e.lastName?`${e.firstName} ${e.lastName}`:e.firstName||e.lastName||e.email,nT=(e,t,i)=>{if(!e)return;let r=nk(e.message).replace(/<[^>]*>/g,"");return e.toUsers?.forEach(e=>{let l=RegExp(`{{${e}}}`,"g"),n=t.userMap[e],o=n?n.display||nA(n):"unknown user",a="html"===i?`<b class="collab-thread-comment--message">@${o}</b>`:`@${o}`;r=r.replace(l,a)}),r},nk=e=>nM.A.sanitize(e,{USE_PROFILES:{html:!0}});function nN(e,t={}){let{top:i,left:r}=e,l=window.innerWidth,n=t.safeMargin??16,o=t.topSafeMargin??42,a=t.threadWidth??16,s=r,d=i;return s+a>l-n&&(s=l-n-a),d-window.scrollY<o&&(d=window.scrollY+o),{top:d,left:s}}var nR=e=>{let{content:t,children:i,position:r="bottom",className:l,testId:n,...o}=e,[a,s]=tu(!1),[d,u]=tu(r),c=tp(null),f=tp(null),p=tp(i);return tf(()=>{p.current!==i&&(s(!1),p.current=i)},[i]),tf(()=>{let e=()=>((e,t,i,r)=>{if(!e.current||!t.current)return;let l=t.current.getBoundingClientRect(),n=e.current.getBoundingClientRect(),o={bottom:{top:l.bottom+8,left:l.left+(l.width-n.width)/2},top:{top:l.top-n.height-8,left:l.left+(l.width-n.width)/2},left:{top:l.top+(l.height-n.height)/2,left:l.left-n.width-8},right:{top:l.top+(l.height-n.height)/2,left:l.right+8}},a=i,s=o[i],d=window.innerWidth,u=window.innerHeight,c={bottom:s.top+n.height>u,top:s.top<0,left:s.left<0,right:s.left+n.width>d},f=s.left<0||s.left+n.width>d;if(c[i]||f){let e=["bottom","top","right","left"];for(let t of(e.splice(e.indexOf(i),1),e.push(i),e)){let e=o[t];if(e.top>=0&&e.top+n.height<=u&&e.left>
1509=0&&e.left+n.width<=d){a=t,s=e;break}}}s.left<0?s.left=8:s.left+n.width>d&&(s.left=d-n.width-8),s.top<0?s.top=8:s.top+n.height>u&&(s.top=u-n.height-8),r(a),Object.assign(e.current.style,{top:`${s.top}px`,left:`${s.left}px`})})(c,f,r,u);return e(),window.addEventListener("scroll",e),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[a,r]),r0("div",{ref:f,className:rK("collab-tooltip--wrapper",lX()["collab-tooltip--wrapper"],l),onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),"data-testid":n,...o,children:[i,a&&r0("div",{ref:c,className:rK("collab-tooltip",`collab-tooltip--${d}`,lX()["collab-tooltip"],lX()[`collab-tooltip--${d}`]),role:"tooltip","aria-hidden":!a,"data-position":d,children:t})]})};nR.defaultProps={testId:"collab-tooltip"};var nD={Cancel:e=>r0("svg",{...e,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r0("path",{class:"collab-icon__svg",d:"M25.5303 7.53033C25.8232 7.23744 25.8232 6.76256 25.5303 6.46967C25.2374 6.17678 24.7626 6.17678 24.4697 6.46967L16 14.9393L7.53033 6.46967C7.23744 6.17678 6.76256 6.17678 6.46967 6.46967C6.17678 6.76256 6.17678 7.23744 6.46967 7.53033L14.9393 16L6.46967 24.4697C6.17678 24.7626 6.17678 25.2374 6.46967 25.5303C6.76256 25.8232 7.23744 25.8232 7.53033 25.5303L16 17.0607L24.4697 25.5303C24.7626 25.8232 25.2374 25.8232 25.5303 25.5303C25.8232 25.2374 25.8232 24.7626 25.5303 24.4697L17.0607 16L25.5303 7.53033Z",fill:"#475161"})}),Delete:e=>r0("svg",{...e,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M4.25 7C4.25 6.58579 4.58579 6.25 5 6.25H27C27.4142 6.25 27.75 6.58579 27.75 7C27.75 7.41421 27.4142 7.75 27 7.75H5C4.58579 7.75 4.25 7.41421 4.25 7Z",fill:"#475161"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M13 12.25C13.4142 12.25 13.75 12.5858 13.75 13V21C13.75 21.4142 13.4142 21.75 13 21.75C12.5858 21.75 12.25 21.4142 12.25 21V13C12.25 12.5858 12.5858 12.25 13 12.25Z",fill:"#475161"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M19 12.25C19.4142 12.25 19.75 12.5858 19.75 13V21C19.75 21.4142 19.4142 21.75 19 21.75C18.5858 21.75 18.25 21.4142 18.25 21V13C18.25 12.5858 18.5858 12.25 19 12.25Z",fill:"#475161"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M7 6.25C7.41421 6.25 7.75 6.58579 7.75 7V26C7.75 26.0663 7.77634 26.1299 7.82322 26.1768C7.87011 26.2237 7.93369 26.25 8 26.25H24C24.0663 26.25 24.1299 26.2237 24.1768 26.1768C24.2237 26.1299 24.25 26.0663 24.25 26V7C24.25 6.58579 24.5858 6.25 25 6.25C25.4142 6.25 25.75 6.58579 25.75 7V26C25.75 26.4641 25.5656 26.9092 25.2374 27.2374C24.9092 27.5656 24.4641 27.75 24 27.75H8C7.53587 27.75 7.09075 27.5656 6.76256 27.2374C6.43437 26.9092 6.25 26.4641 6.25 26V7C6.25 6.58579 6.58579 6.25 7 6.25Z",fill:"#475161"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M11.0555 3.05546C11.5712 2.53973 12.2707 2.25 13 2.25H19C19.7293 2.25 20.4288 2.53973 20.9445 3.05546C21.4603 3.57118 21.75 4.27065 21.75 5V7C21.75 7.41421 21.4142 7.75 21 7.75C20.5858 7.75 20.25 7.41421 20.25 7V5C20.25 4.66848 20.1183 4.35054 19.8839 4.11612C19.6495 3.8817 19.3315 3.75 19 3.75H13C12.6685 3.75 12.3505 3.8817 12.1161 4.11612C11.8817 4.35054 11.75 4.66848 11.75 5V7C11.75 7.41421 11.4142 7.75 11 7.75C10.5858 7.75 10.25 7.41421 10.25 7V5C10.25 4.27065 10.5397 3.57118 11.0555 3.05546Z",fill:"#475161"})]}),Edit:e=>r0("svg",{...e,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M4.7778 20.5072C4.47473 20.8102 4.29342 21.214 4.26826 21.6418L4.00309 26.1497C3.94156 27.1957 4.80682 28.0609 5.85284 27.9994L10.3606 27.7342C10.7885 27.7091 11.1922 27.5278 11.4953 27.2247L27.4899 11.2301C28.1733 10.5467 28.1733 9.43862 27.4899 8.7552L23.2473 4.51256C22.5639 3.82915 21.4558 3.82915 20.7724 4.51256L4.7778 20.5072ZM5.76567 21.7299C5.76926 21.6688 5.79516 21.6111 5.83846 21.5678L18.9336 8.4727L23.327 12.8661C23.3988 12.9379 23.4816 12.9921 23.57 13.0287L10.4347 26.164C10.3914 26.2073 10.3337 26.2332 10.2726 26.2368L5.76475 26.502C5.61532 26.5108 5.49171 26.3872 5.5005 26.2377L5.76567 21.7299ZM24.5503 12.0484L26.4293 10.1694C26.5269 10.0718 26.5269 9.9135 26.4293 9.81586L22.1866 5.57322C22.089 5.47559 21.9307 5.47559 21.8331 5.57322L19.9943 7.41204L24.3876 11.8054C24.4595 11.8772 24.5137 11.96 24.5503 12.0484Z",fill:"#475161"})}),RightMarkActive:e=>r0("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M17.2065 5.29354C17.3895 5.4766 17.3895 5.7734 17.2065 5.95646L8.45646 14.7065C8.2734 14.8895 7.9766 14.8895 7.79354 14.7065L3.41854 10.3315C3.23549 10.1484 3.23549 9.8516 3.41854 9.66854C3.6016 9.48549 3.8984 9.48549 4.08146 9.66854L8.125 13.7121L16.5435 5.29354C16.7266 5.11049 17.0234 5.11049 17.2065 5.29354Z",fill:"#6C5CE7"})}),Indicator:({active:e})=>r0("svg",{width:e?"25":"24",height:"24",viewBox:`0 0 ${e?25:24} 24`,fill:"none",class:"collab-icon",xmlns:"http://www.w3.org/2000/svg",style:{marginTop:"2px"},children:[r0("path",{class:"collab-icon__svg",d:"M8.4375 9C8.4375 8.68934 8.68934 8.4375 9 8.4375H15C15.3107 8.4375 15.5625 8.68934 15.5625 9C15.5625 9.31066 15.3107 9.5625 15 9.5625H9C8.68934 9.5625 8.4375 9.31066 8.4375 9Z",fill:"white"}),r0("path",{class:"collab-icon__svg",d:"M8.4375 12C8.4375 11.6893 8.68934 11.4375 9 11.4375H15C15.3107 11.4375 15.5625 11.6893 15.5625 12C15.5625 12.3107 15.3107 12.5625 15 12.5625H9C8.68934 12.5625 8.4375 12.3107 8.4375 12Z",fill:"white"}),r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M3 5.25C3 4.83579 3.33579 4.5 3.75 4.5H20.25C20.6642 4.5 21 4.83579 21 5.25V16.4423C21 16.8565 20.6642 17.1923 20.25 17.1923H14.9804C14.853 17.1923 14.7343 17.257 14.6652 17.3641L12.9633 20.0042C12.6651 20.4669 11.9866 20.4613 11.696 19.9938L10.1746 17.5464C10.0378 17.3262 9.79691 17.1923 9.53766 17.1923H3.75C3.33579 17.1923 3 16.8565 3 16.4423V5.25ZM4.125 16.0673V5.625H19.875V16.0673H14.9804C14.4707 16.0673 13.9958 16.3262 13.7197 16.7546L12.3387 18.8968L11.1301 16.9524C10.7879 16.402 10.1858 16.0673 9.53766 16.0673H4.125Z",fill:"white"}),e&&r0("g",{children:[r0("circle",{cx:"20",cy:"5",r:"4",fill:"#EB5646",class:"collab-icon__svg"}),r0("circle",{cx:"20",cy:"5",r:"4.5",stroke:"white","stroke-opacity":"0.6",class:"collab-icon__svg"})]})]})},nH=(a=({icon:e,className:t,onClick:i,testId:r,disabled:l,...n})=>{let o=nD[e];return r0("div",{className:rK("collab-icon-wrapper",lX()["collab-icon-wrapper"]),onClick:e=>{l||i?.(e)},"data-testid":r,...n,children:o?r0(o,{className:rK("collab-icon",lX()["collab-icon"],t)}):null})},({withTooltip:e=!1,tooltipContent:t="",testId:i="collab-icon",...r})=>e&&t?r0("div",{"data-testid":i,children:r0(nR,{content:t,position:"bottom",testId:"collab-icon-tooltip",children:r0(a,{...r})})}):r0(a,{...r,testId:i})),nP=({className:e,color:t="primary",testId:i="collab-async-loader",...r})=>{let l=rK(lX()["collab-button--loader--animation"],lX()["collab-button--loading--color"][t],"collab-button--loader--animation",`collab-button--loading--${t}`);return r0("div",{className:rK("collab-button--loader",lX()["collab-button--loader"],e),...r,"data-testid":i,children:[r0("div",{className:l}),r0("div",{className:l}),r0("div",{className:l})]})},nV=({buttonType:e="primary",children:t,className:i="",testId:r,onClick:l,isLoading:n,loadingColor:o="primary",disabled:a=!1,t
1509ype:s="button",style:d,href:u,id:c,size:f="large",icon:p,iconProps:h,iconAlignment:v="left"})=>{let _=t&&nb([t]);if(p){let e=r0(nH,{icon:p,...h});switch(v){case"left":_=nb([e,_]);break;case"right":_=nb([_,e]);break;case"both":_=nb([e,_,e])}}return r0(u?"a":"button",{className:rK(lX()["collab-button--basestyle"],lX()["collab-button--type"][e],lX()["collab-button--size"][f],p&&lX()["collab-button--icon-allignment"][v],a&&lX()["collab-button--disabled"],n&&lX()["collab-button--loading"],i,`collab-button collab-button--${e} collab-button--${f} ${p?`collab-button--icon-${v}`:""} ${a?"collab-button--disabled":""} 1510 ${n?"collab-button--loading":""}`),id:c,onClick:l,type:s,style:Object.fromEntries(Object.entries(d||{}).filter(([e,t])=>null!=t)),disabled:a,href:u,"data-testid":r,children:r0("div",{className:rK("flex-center",lQ),children:[n&&r0("div",{className:rK(lX()["collab-button--loader--wrapper"],"collab-button--loader--wrapper"),children:r0(nP,{color:o})}),r0("div",{className:rK("flex-v-center",lJ,{[`${lX()["collab-button--size"].regular} collab-button--regular`]:"small"!==f},n?`${lX()["collab-button--hidden"]} collab-button--hidden`:`${lX()["collab-button--visible"]} collab-button--visible`),children:_})]})})},nI=({commentCount:e,displayResolve:t,handleResolve:i,isResolving:r})=>r0(ej,{children:[r0("div",{className:rK("collab-thread-header--title",lX()["collab-thread-header--title"]),children:0===e?"Add New Comment":1===e?"1 Comment":`${e} Comments`}),t&&r0(nV,{buttonType:"tertiary",className:rK("collab-thread-header--resolve",lX()["collab-thread-header--resolve"]),icon:"RightMarkActive",iconProps:{className:rK(lX()["collab-thread-header--resolve--icon"],"collab-thread-header--resolve--icon")},onClick:i,testId:"collab-thread-resolve-btn",isLoading:r,loadingColor:"secondary",children:r0("span",{className:rK("collab-thread-header--resolve--text",lX()["collab-thread-header--resolve--text"]),children:"Resolve"})})]}),nB=nm(({onClose:e,displayResolve:t,onResolve:i,commentCount:r,activeThread:l})=>{let[n,o]=tu(!1),a=tv(async()=>{if(!n)try{o(!0);let e={threadUid:l._id,payload:{threadState:2}};await i(e)}finally{e(!0),o(!1)}},[l,n,i,e]);return r0("div",{className:rK("collab-thread-header--wrapper","flex-v-center",lX()["collab-thread-header--wrapper"],lJ),children:r0("div",{className:rK("collab-thread-header--container","flex-v-center",lX()["collab-thread-header--container"],lJ),children:r0(nI,{commentCount:r,displayResolve:t,handleResolve:a,isResolving:n})})})}),nU=e=>{let{className:t,children:i,style:r,testId:l,...n}=e;return r0("div",{className:rK("collab-button-group",lX()["collab-button-group"],t),style:r,"data-testid":l,...n,children:i})};nU.defaultProps={testId:"collab-button-group"};var nF=({onClose:e,handleOnSaveRef:t,isDisabled:i,editComment:r})=>{let[l,n]=tu(!1),o=async e=>{n(!0),e.preventDefault(),await t.current?.(),n(!1)};return r0("div",{className:rK("collab-thread-footer--wrapper","flex-v-center",lX()["collab-thread-footer--wrapper"],lJ),children:r0(nU,{children:[r0(nV,{type:"button",buttonType:"tertiary",testId:"thread-cancel-btn",onClick:()=>e(!1),children:"Cancel"}),r0(nV,{type:"button",buttonType:"primary",onClick:o,testId:"thread-save-btn",disabled:i||l,isLoading:l,children:""===r?"Post":"Update"})]})})},n$=e=>{let{numberOfTiles:t,tileleftSpace:i,tileTopSpace:r,tileHeight:l,tileBottomSpace:n,tileWidth:o,testId:a,tileRadius:s=7}=e;return r0("svg",{"data-testid":a,height:t*l+t*n+t*r,width:"string"==typeof o?o:o+i,className:rK("collab-skeletonTileSvgClass",lX()["collab-skeletonTileSvgClass"]),fill:"#EDF1F7",children:Array.from({length:t}).map((e,t)=>r0("g",{children:r0("rect",{"data-testid":"rect",x:i,y:t*(l+n)+r,rx:s,width:o,height:l})},t))})};n$.defaultProps={testId:"collab-skeletonTile"};var nj=()=>r0("div",{className:rK("collab-thread-body-comment--loader",lX()["collab-thread-body-comment--loader"]),children:[r0("div",{style:{display:"flex"},children:[r0(n$,{numberOfTiles:1,tileHeight:32,tileWidth:32,tileBottomSpace:0,tileTopSpace:0,tileleftSpace:0,tileRadius:50}),r0(n$,{numberOfTiles:2,tileHeight:10,tileWidth:130,tileBottomSpace:7,tileTopSpace:3,tileleftSpace:10})]}),r0(n$,{numberOfTiles:1,tileHeight:14,tileWidth:300,tileBottomSpace:5,tileTopSpace:0,tileleftSpace:0}),r0(n$,{numberOfTiles:1,tileHeight:14,tileWidth:230,tileBottomSpace:0,tileTopSpace:0,tileleftSpace:0})]}),nW=Math.max;let nz=function(e,t,i){var r=null==e?0:e.length;if(!r)return -1;var l=null==i?0:ro(i);return l<0&&(l=nW(r+l,0)),iP(e,rl(t),l)};var nZ=function(){function e(t){var i,r;return this.getChildContext||(i=new Set,(r={})[e.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&i.forEac
1510h(function(e){e.__e=!0,eZ(e)})},this.sub=function(e){i.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){i&&i.delete(e),t&&t.call(e)}}),t.children}return e.__c="__cC"+eD++,e.__=null,e.Provider=e.__l=(e.Consumer=function(e,t){return e.children(t)}).contextType=e,e}(),nG={message:"",toUsers:[],images:[],createdBy:"",author:""},nq=({errorMessage:e})=>r0("div",{className:rK("collab-thread-input-indicator--error",lX()["collab-thread-input-indicator--error"]),children:e}),nY=({currentLength:e,maxLength:t})=>r0("div",{className:rK("collab-thread-input-indicator--count",lX()["collab-thread-input-indicator--count"]),children:[e,"/",t]}),nK=({filteredUsers:e,selectedIndex:t,cursorPosition:i,inputRef:r,listRef:l,itemRefs:n,insertMention:o,handleKeyDown:a})=>0===e.length?null:r0("ul",{className:rK("collab-thread-body--input--textarea--suggestionsList",lX()["collab-thread-body--input--textarea--suggestionsList"]),style:{...i.showAbove?{bottom:`${window.innerHeight-(r.current?.getBoundingClientRect().top||0)-i.top}px`,top:"auto"}:{top:`${(r.current?.getBoundingClientRect().top||0)+i.top}px`}},ref:l,children:e.map((e,i)=>r0("li",{onClick:()=>o(e),className:rK("collab-thread-body--input--textarea--suggestionsList--item",lX()["collab-thread-body--input--textarea--suggestionsList--item"],i===t?lX()["collab-thread-body--input--textarea--suggestionsList--item-selected"]:""),ref:e=>{n.current[i]=e},onKeyDown:t=>"Enter"===t.key?o(e):a(t),tabIndex:-1,"aria-selected":i===t,children:e.display===e.email?e.display.length>20?r0(nR,{content:e.display||"",children:(e.display||"").substring(0,18)+"..."}):e.display:r0(nR,{content:e.display+" - "+e.email||"",children:e.display.length>20?(e.display||"").substring(0,18)+"...":e.display})},e.uid))}),nX=nm(({userState:e,handleOnSaveRef:t,comment:i,onClose:r})=>{let{state:l,error:n,showSuggestions:o,cursorPosition:a,selectedIndex:s,filteredUsers:u,inputRef:c,listRef:f,itemRefs:p,handleInputChange:h,handleKeyDown:v,handleSubmit:_,insertMention:b,maxMessageLength:m}=((e,t,i)=>{let[r,l]=tu(nG),[n,o]=tu(!1),[a,s]=tu({top:0,left:0,showAbove:!1}),[u,c]=tu(""),[f,p]=tu(0),[h,v]=tu([]),_=tp(null),b=tp(null),m=tp([]),{error:g,setError:y,onCreateComment:w,onEditComment:C,editComment:x,setThreadState:E,activeThread:L,setActiveThread:S,createNewThread:M}=t_(nZ);((e,t,i=1,r=3)=>{tf(()=>{let l=document.querySelector(e);return l&&l.setAttribute("rows",t.length>0?`${r}`:`${i}`),()=>{l?.setAttribute("rows",`${i}`)}},[t,e,i,r])})(".collab-thread-body--input--textarea",r.message),tf(()=>{m.current=m.current.slice(0,e.mentionsList.length)},[e.mentionsList]),tf(()=>{v(e.mentionsList.filter(e=>!u||e.display.toLowerCase().includes(u.toLowerCase())))},[u,e.mentionsList]),tf(()=>{let e=document.getElementById("collab-thread-body--input--textarea");if(!e)return;let t={focus:{base:"collab-thread-body--input--textarea--focus",goober:lX()["collab-thread-body--input--textarea--focus"]},hover:{base:"collab-thread-body--input--textarea--hover",goober:lX()["collab-thread-body--input--textarea--hover"]}},i=()=>{e.classList.add(t.focus.base,t.focus.goober)},r=()=>{e.classList.remove(t.focus.base,t.focus.goober)},l=()=>{e.classList.add(t.hover.base,t.hover.goober)},n=()=>{e.classList.remove(t.hover.base,t.hover.goober)};return e.addEventListener("focus",i),e.addEventListener("blur",r),e.addEventListener("mouseenter",l),e.addEventListener("mouseleave",n),()=>{e.removeEventListener("focus",i),e.removeEventListener("blur",r),e.removeEventListener("mouseenter",l),e.removeEventListener("mouseleave",n)}},[]),tf(()=>{if(!t)return;let i=[];t?.toUsers?.forEach(t=>{let r=e.userMap[t];i.push({display:`${r.display||nA(r)}`,id:t})}),l({message:nT(t,e,"text")??"",toUsers:i,images:t?.images??[],createdBy:t?.createdBy??"",author:t?.author??""})},[t,e]);let O=tv((e,t)=>{let i=e.slice(0,t),r=i.lastIndexOf("@");if(-1===r)return null;let l=i.slice(r+1);return l.includes(" ")?null:{start:r,searchTerm:l}},[]),A=tv((e,t)=>{let i=e?.value,r=i?.slice(0,t),l=r?.split("\n"),n=(l?.length||0)-1,o=l?.[n],a=window.getComputedStyle(e),s=parseInt(a.lineHeight),d=parseInt(a.paddingLeft),u=parseInt(a.paddingTop),c=document.createElement("span");c.style.font=a.font,c.style.visibility="hidden",c.style.position="absolute",c.style.whiteSpace="pre",c.textContent=o||"",document.body.appendChild(c);let f=Math.min(c.offsetWidth+d,e.offsetWidth-200);document.body.removeChild(c);let p=e.scrollTop,h=n*s+u-p,v=h+s,_=window.innerHeight,b=e.getBoundingClientRect().top+v,m=_-b<160;return{top:m?h:v,left:f,showAbove:m,absoluteTop:b,scrollTop:p,currentLineNumber:n}},[]),T=tv(e=>{let t=O(r.message,_.current?.selectionStart||0);if(!t)return;let i=r.message.slice(0,t.start),n=r.message.slice(_.current?.selectionStart||0),a=`${i}@${e.display} ${n}`,s={toUsers:nS([...r.toUsers||[],{display:e.display,id:e.uid||""}].filter(e=>a.includes(e.display)),"id")};l(e=>({...e,message:a,toUsers:s.toUsers})),o(!1);let d=_.current;d&&d.focus()},[r.message,r.toUsers,O]),k=tv(e=>{var t;let i=e.target;if(!i)return;let n=i.value,a=n.trim(),d=i.selectionStart,u=O(n,d);u?(c(u.searchTerm),o(!0),s(A(_.current,d)),p(0)):o(!1);let f=(t=r.toUsers??[],n.length>500?"Limit exceeded. You can have a maximum length of 500 characters.":t.length>20?"Limit exceeded. You can tag a maximum of 20 users.":"");y({hasError:""!==f||""===a,message:f}),l(e=>({...e,message:n}))},[r.toUsers,O,A,y]),N=tv(e=>{if("@"===e.key&&(s(A(_.current,e.target.selectionStart)),p(0)),n)switch(e.key){case"ArrowDown":e.preventDefault(),p(e=>e<h.length-1?e+1:e);break;case"ArrowUp":e.preventDefault(),p(e=>e>0?e-1:e);break;case"Enter":e.preventDefault(),n&&T(h[f]);break;case"Escape":o(!1),_.current?.focus()}},[n,h,f,T,A]);tf(()=>{m.current[f]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[f]);let R=tv(async()=>
1510{if(!g.hasError)try{var n;let o,a,s=L?._id;if(L?._id=="new"){let e=await M();s=e?.thread?._id,S(e?.thread)}let u={...(n={...r,createdBy:e.currentUser.uid,author:e.currentUser.email},a={message:o=nk(n.message).replace(/[^\S\r\n]+/g," ").replace(/ *\n */g,"\n").replace(/<[^>]*>/g,"").trim(),toUsers:[],images:[],createdBy:n.createdBy,author:n.author},n.toUsers?.forEach(e=>{var t,i;let r,l;return t=e,i=a.toUsers,r=t.display,l=RegExp(`@${r}`.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),void(o=o.replace(l,`{{${t.id}}}`),i.push(t.id))}),a.message=o,a)},c={threadUid:s,commentPayload:u};if(x){let e=await C({threadUid:s,commentUid:x,payload:u});E(i=>{let r=(0,d.A)(i.comments),l=nz(r,e=>e._id===t?._id);return r.splice(l,1,e?.comment),{...i,editComment:"",comments:r}}),i(!1)}else{let e=await w(c);E(t=>({...t,comments:[e.comment,...t.comments],commentCount:t.commentCount+1})),l(nG),i(!1)}}catch(e){console.error("Error submitting comment:",e)}},[g.hasError,r,L]);return tf(()=>{0===r.message.length&&y({hasError:!0,message:""})},[r.message,y]),{state:r,setState:l,error:g,showSuggestions:n,cursorPosition:a,selectedIndex:f,filteredUsers:h,inputRef:_,listRef:b,itemRefs:m,handleInputChange:k,handleKeyDown:N,handleSubmit:R,insertMention:T,maxMessageLength:500}})(e,i,r);return tf(()=>{t.current=_},[_,t]),r0("div",{className:rK("collab-thread-body--input--wrapper",lX()["collab-thread-body--input--wrapper"]),children:[r0("div",{className:rK("collab-thread-body--input",lX()["collab-thread-body--input"]),children:r0("div",{className:rK("collab-thread-body--input--textarea--wrapper",lX()["collab-thread-body--input--textarea--wrapper"]),children:[r0("textarea",{name:"collab-thread-body--input--textarea",id:"collab-thread-body--input--textarea",rows:1,className:rK("collab-thread-body--input--textarea",lX()["collab-thread-body--input--textarea"]),value:l.message,onChange:e=>h(e),onKeyDown:e=>v(e),maxLength:m,placeholder:"Enter a comment or tag others using â@â",ref:c}),o&&r0(nK,{filteredUsers:u,selectedIndex:s,cursorPosition:a,inputRef:c,listRef:f,itemRefs:p,insertMention:b,handleKeyDown:v})]})}),r0("div",{className:rK("collab-thread-input-indicator--wrapper","flex-v-center",lX()["collab-thread-input-indicator--wrapper"],lJ),children:[r0(nq,{errorMessage:n.message}),r0(nY,{currentLength:l.message.length,maxLength:m})]})]})}),nQ=({mode:e,commentUser:t,currentUser:i,commentUID:r})=>{let{setThreadState:l,onDeleteComment:n,activeThread:o,onDeleteThread:a}=t_(nZ),[s,d]=tu(!1),u=e=>{l(t=>({...t,editComment:e||""}))},c=async()=>{if(r&&!s){d(!0);try{await n({threadUid:o?._id,commentUid:r}),l(e=>{let t=e.comments.filter(e=>e._id!==r);return e.commentCount-1==0&&a({threadUid:o?._id}),{...e,comments:t,commentCount:e.commentCount-1}})}catch(e){}finally{d(!1)}}};return"edit"===e&&r?r0("div",{className:rK("collab-thread-comment-action--wrapper",lX()["collab-thread-comment-action--wrapper"]),children:r0(nH,{icon:"Cancel",withTooltip:!0,tooltipContent:"Cancel",onClick:()=>{u(null)}})}):t?.uid===i?.uid&&r?r0("div",{className:rK("collab-thread-comment-action--wrapper",lX()["collab-thread-comment-action--wrapper"]),"data-testid":"collab-thread-comment-action--wrapper",children:[r0(nH,{icon:"Edit",tooltipContent:"Edit",withTooltip:!0,testId:"collab-thread-comment-edit",onClick:()=>{r&&u(r)}}),r0(nH,{icon:"Delete",tooltipContent:"Delete",withTooltip:!0,testId:"collab-thread-comment-delete",onClick:c,disabled:s})]}):null},nJ=({comment:e,userState:t})=>{let i=th(()=>nT(e,t,"html")??"",[e.message,t.userMap,e.toUsers]);return r0("div",{"data-testid":"collab-thread-comment--message",className:rK("collab-thread-comment--message",lX()["collab-thread-comment--message"]),dangerouslySetInnerHTML:{__html:i}})};function n1({type:e,avatar:t,initials:i}){return"image"===e&&t.image?r0("img",{"data-testid":"collab-avatar-image",src:t.image,alt:t.name,className:rK("collab-avatar__image",lX()["collab-avatar__image"])}):r0("span",{className:"collab-avatar-link__initials",children:i})}var n2=function({avatar:e,type:t="text",testId:i="collab-avatar"}){let r=function(e){if(!e)return"";let t=e.trim().split(" ");return 1===t.length?e.substring(0,2):t[0][0]+t[t.length-1][0]}(e.name);return r0("div",{"data-testid":i,children:r0(nR,{content:e.name||e.email||"",position:"bottom",children:r0("div",{className:rK("collab-avatar","collab-avatar--single","flex-v-center",lX()["collab-avatar"],lX()["collab-avatar--single"],lJ),children:r0("span",{className:rK("collab-avatar__link","flex-v-center",lX()["collab-avatar__link"],lJ),children:r0(n1,{type:t,avatar:e,initials:r})})})})})},n5=({userState:e,comment:t,onClose:i,handleOnSaveRef:r,mode:l})=>{let[n,o]=tu(null),[a,s]=tu(!1);tf(()=>{o(t?e.userMap[t.createdBy]:e.currentUser)},[t,e]);let d=th(()=>{var e;return t&&(e=t.updatedAt||t.createdAt)?nO(e).format("MMM DD, YYYY, hh:mm A"):""},[t]);return n?r0("div",{className:rK("collab-thread-comment--wrapper",lX()["collab-thread-comment--wrapper"]),onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[r0("div",{className:rK("collab-thread-comment--user-details","flex-v-center",lX()["collab-thread-comment--user-details"],lJ),children:[r0(n2,{avatar:{name:nA(n),id:n.uid}}),r0("div",{className:rK("collab-thread-comment--user-details__text",lX()["collab-thread-comment--user-details__text"]),children:[r0("div",{className:rK("collab-thread-comment--user-name",lX()["collab-thread-comment--user-name"]),children:nA(n)}),t&&r0("div",{className:rK("collab-thread-comment--time-details",lX()["collab-thread-comment--time-details"]),children:d})]}),a&&r0(nQ,{mode:l,commentUser:n,currentUser:e.currentUser,commentUID:t?._id})]}),"edit"===l?r0(nX,{onClose:i,userState:e,handleOnSaveRef:r,comment:t}):t&&r0(nJ,{comment:t,userState:e})]}):r0(nj,{},"collab-thread-body--comment-loader")},n0=({isLoading:e,children:t})=>e?r0(nj,{},"collab-thread-body--comment-loader"):r0(ej,{children:t}),n3=({comments:e,userState:t,onClose:i,handleOnSaveRef:r,editComment:l,fetchingMore:n})=>r0("div",{className:rK("collab-thread-comment--list",lX()["collab-thread-comment--list"]),id:"collab-thread-comment--list",children:[e?.map(e=>r0(ej,{children:[r0("div",{className:rK("collab-thread-comment-seperator","flex-v-center",lX()["collab-thread-comment-seperator"],lJ),children:r0("svg",{class:"collab-thread-comment-seperator--svg",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"2",viewBox:"0 0 332 2",fill:"none",preserveAspectRatio:"none",children:r0("path",{d:"M0 1H332",stroke:"#DDE3EE",strokeDasharray:"2 2"})})}),r0(n5,{userState:t,comment:e,onClose:i,handleOnSaveRef:r,mode:l===e._id?"edit":"view"})]})),n&&r0(nj,{})]}),n7=nm(({handleOnSaveRef:e,onClose:t,userState:i,isLoading:r,comments:l,fetchingMore:n,editComment:o})=>r0("div",{className:rK("collab-thread-body--wrapper",lX()["collab-thread-body--wrapper"]),children:[r0(n0,{isLoading:r,children:r0(n3,{c
1510omments:l,userState:i,onClose:t,handleOnSaveRef:e,editComment:o,fetchingMore:n})}),""===o&&r0(n5,{userState:i,comment:null,onClose:t,handleOnSaveRef:e,mode:"edit"})]})),n6={hasError:!1,message:""},n8=nm(({onCreateComment:e,onEditComment:t,onDeleteComment:i,onDeleteThread:r,onClose:l,onResolve:n,inviteMetadata:o,loadMoreMessages:a,activeThread:s,setActiveThread:d,createNewThread:u})=>{let c=tp(null),[f,p]=tu({isLoading:!1,commentCount:0,comments:[],editComment:"",userState:{mentionsList:[],currentUser:o?.currentUser,userMap:{}}}),[h,v]=tu(n6),_=(({containerId:e,isFetching:t,canFetchMore:i,loadMore:r,offset:l,limit:n})=>{let[o,a]=tu(t);return tf(()=>{let t=document.getElementById(e);if(!t)return;let s=async()=>{if(t.scrollHeight+t.scrollTop-t.clientHeight<3&&!o&&i){a(!0);try{await r(l,n)}finally{a(!1)}}};return t.addEventListener("scroll",s,!0),()=>{t.removeEventListener("scroll",s,!0)}},[e,o,i,r,l,n]),o})({containerId:"collab-thread-comment--list",isFetching:!1,canFetchMore:f.commentCount>f.comments.length,loadMore:async(e,t)=>{try{let i={offset:e,limit:t,threadUid:s?._id},r=await a(i);p(e=>({...e,commentCount:r.count,comments:[...e.comments,...r.comments]}))}catch(e){console.error(e)}},offset:f.comments.length,limit:10});tf(()=>{let e=[],t={};o?.users?.forEach(i=>{if(i){let r=nA(i);e.push({display:r,email:i.email,uid:i.uid}),t[i.uid]={...i,display:r}}}),p(i=>({...i,userState:{mentionsList:e,userMap:t,currentUser:o?.currentUser}}))},[o]),tf(()=>{s?s?._id=="new"||(async()=>{p(e=>({...e,isLoading:!0}));try{let e={offset:0,limit:10,threadUid:s?._id},t=await a(e);p(e=>({...e,isLoading:!1,commentCount:t.count,comments:t.comments}))}catch(e){p(e=>({...e,isLoading:!1})),console.error(e)}})():p(e=>({...e,isLoading:!0}))},[]);let b=th(()=>({inviteMetadata:o,userState:f.userState,commentCount:f.commentCount,setThreadState:p,error:h,setError:v,onCreateComment:e,onEditComment:t,onDeleteComment:i,onDeleteThread:r,onClose:l,editComment:f.editComment,activeThread:s,setActiveThread:d,createNewThread:u}),[o,f.userState,f.commentCount,h,f.editComment,s]);return r0(nZ.Provider,{value:b,children:r0("div",{className:rK("collab-thread--wrapper",lX()["collab-thread--wrapper"]),children:[r0(nB,{onClose:l,onResolve:n,displayResolve:!!s&&s?._id!=="new",commentCount:f.commentCount,activeThread:s}),r0("div",{class:rK("collab-thread--container",lX()["collab-thread--container"]),children:[r0(n7,{handleOnSaveRef:c,onClose:l,userState:f.userState,isLoading:f.isLoading,comments:f.comments,fetchingMore:_,editComment:f.editComment}),r0(nF,{onClose:l,handleOnSaveRef:c,isDisabled:h.hasError,editComment:f.editComment})]})]})})}),n4=e=>{let t=iv.get(),[i,r]=tu(t?.collab?.inviteMetadata);tf(()=>{r(t?.collab?.inviteMetadata)},[t?.collab?.inviteMetadata]);let{buttonRef:l,popupRef:n,showPopup:o,setShowPopup:a,activeThread:s,setActiveThread:d,togglePopup:u}=(({newThread:e,thread:t})=>{let i=tp(null),r=tp(null),l=iv.get(),[n,o]=tu(e||!1),[a,s]=tu(()=>e?{_id:"new"}:t||{_id:"new"});return tf(()=>{n&&i.current&&r.current&&ol(i.current,r.current)},[n]),tf(()=>{let e=e=>{let{threadUid:t,action:r}=e.detail,n=document.querySelector(`div[threaduid='${t}']`);od();let a=i.current?.closest("div[field-path]");if(a&&(a.style.zIndex="999"),o(!1),"open"===r&&n&&n.contains(i.current)){o(!0);let e=i.current?.closest("div[field-path]");n.scrollIntoView({behavior:"smooth",block:"center"}),e&&(e.style.zIndex="1000"),l?.collab?.isFeedbackMode===!0&&iv.set("collab.isFeedbackMode",!1)}};return document.addEventListener("toggleCollabPopup",e),()=>{document.removeEventListener("toggleCollabPopup",e)}},[]),{buttonRef:i,popupRef:r,showPopup:n,setShowPopup:o,activeThread:a,setActiveThread:s,togglePopup:()=>{if(n){o(!1);let e=i.current?.closest("div[field-path]");e?.hasAttribute("threaduid")||e?.remove(),l?.collab?.isFeedbackMode===!1&&iv.set("collab.isFeedbackMode",!0)}else{oo({threadUid:"",action:"close"}),o(!0);let e=i.current?.closest("div[field-path]");e&&(e.style.zIndex="1000")}}}})({newThread:e.newThread??!1,thread:e.activeThread||{_id:"new"}}),{createComment:c,editComment:f,deleteComment:p,resolveThread:h,fetchComments:v,createNewThread:_,deleteThread:b}={createComment:async e=>{let t=await lx?.send(lE.COLLAB_CREATE_COMMENT,e);if(!t)throw Error("Failed to create comment");return t},editComment:async e=>{let t=await lx?.send(lE.COLLAB_EDIT_COMMENT,e);if(!t)throw Error("Failed to update comment");return t},deleteComment:async e=>{let t=await lx?.send(lE.COLLAB_DELETE_COMMENT,e);if(!t)throw Error("Failed to delete comment");return t},resolveThread:async e=>{let t=await lx?.send(lE.COLLAB_RESOLVE_THREAD,e);if(!t)throw Error("Failed to resolve thread");return t},fetchComments:async e=>await lx?.send(lE.COLLAB_FETCH_COMMENTS,e),createNewThread:async(e,t)=>{var i;if(!e.current)throw Error("Button ref not found");let r=e.current.closest("div[field-path]");if(!r)throw Error("Count not find parent div");
1510let l=r.getAttribute("field-path"),n=r.getAttribute("relative");if(!l||!n)throw Error("Invalid field attributes");let o=n?.match(/x: ([\d.]+), y: ([\d.]+)/);if(!o)throw Error("Invalid relative attribute");let a={elementXPath:l,position:{x:parseFloat(o[1]),y:parseFloat(o[2])},author:t.currentUser.email,pageRoute:"/"===(i=window.location.pathname)?i:i.endsWith("/")?i.slice(0,-1):i,inviteUid:t.inviteUid,createdBy:t.currentUser.uid},s=await lx?.send(lE.COLLAB_CREATE_THREAD,a);return r.setAttribute("threaduid",s.thread._id),s},deleteThread:async e=>{let t=await lx?.send(lE.COLLAB_DELETE_THREAD,e);if(!t)throw Error("Failed to delete thread");on(e.threadUid);let i=iv.get();return i?.collab?.isFeedbackMode===!1&&iv.set("collab.isFeedbackMode",!0),t}},m=nD.Indicator;return r0(ej,{children:[r0("button",{ref:l,"data-testid":"collab-indicator",className:rK("collab-indicator",lX()["collab-indicator"]),onClick:u,children:r0(m,{active:!o})}),o&&r0("div",{ref:n,className:rK("collab-popup",lX()["collab-popup"]),"data-testid":"collab-popup",children:r0(n8,{onCreateComment:c,onEditComment:f,onDeleteComment:p,onClose:(e=!1)=>{e&&l.current?.closest("div[field-path]")?.remove(),od(),a(!1),t?.collab?.isFeedbackMode===!1&&iv.set("collab.isFeedbackMode",!0)},onResolve:h,inviteMetadata:i,loadMoreMessages:v,activeThread:s,setActiveThread:d,onDeleteThread:b,createNewThread:()=>_(l,i)})})]})},n9=rm` 1511 display: none; 1512`;function oe(e,t={}){var i,r,l,n,o;let a,s,d,u,{isNewThread:c=!1,updateConfig:f=!1,hidden:p=!1}=t,h=iv.get?.();if(c)({relativeX:a,relativeY:s,xpath:d}=e);else{let{position:t,elementXPath:i}=e;({x:a,y:s}=t),d=i}if(e?._id&&document.querySelector(`div[threaduid='${e._id}']`))return;let v=og(d);if(!v)return e._id;let _=v.getBoundingClientRect(),b=_.top+window.scrollY+s*_.height,m=_.left+window.scrollX+a*_.width,g=nN({top:b,left:m});b=g.top,m=g.left;let y=(i=d,r=a,l=s,n=b,o=m,(u=document.createElement("div")).setAttribute("field-path",i),u.setAttribute("relative",`x: ${r}, y: ${l}`),u.style.position="absolute",u.style.top=`${n-43}px`,u.style.left=`${o-9}px`,u.style.zIndex=f?"1000":"999",u.style.cursor="pointer",u.className="collab-thread",p&&u.classList.add(n9),e?._id&&u.setAttribute("threaduid",e._id),u);f&&h?.collab?.enable&&h?.collab.isFeedbackMode&&iv.set("collab.isFeedbackMode",!1),e0(r0(n4,{activeThread:c?void 0:e,newThread:c}),y);let w=document.querySelector(".visual-builder__container");if(w){let e=w.querySelector(".visual-builder__collab-wrapper");e||((e=document.createElement("div")).className="visual-builder__collab-wrapper",w.appendChild(e)),e.appendChild(y)}else document.body.appendChild(y)}function ot(){let e=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread"),t=iv.get?.();t?.collab?.pauseFeedback||e.forEach(e=>{if(!(e instanceof HTMLElement))return;let t=e.getAttribute("field-path"),i=e.getAttribute("relative");if(!t||!i)return void console.error("Missing field-path or relative attribute.");let r=i.match(/x: ([\d.]+), y: ([\d.]+)/);if(!r)return void console.error("Invalid relative attribute format.");let l=parseFloat(r[1]),n=parseFloat(r[2]),o=og(t);if(!o)return void e.classList.add(n9);let a=o.getBoundingClientRect(),s=a.left+a.width*l+window.scrollX,d=a.top+a.height*n+window.scrollY,u=nN({top:d,left:s});d=u.top,s=u.left,e.style.top=`${d-43}px`,e.style.left=`${s-9}px`,e.classList.remove(n9)})}function oi(){let e=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread .collab-popup"),t=iv.get?.();t?.collab?.pauseFeedback||e.forEach(e=>{if(e&&e instanceof HTMLElement){let t=e.closest(".visual-builder__collab-wrapper .collab-thread");if(!t)return void console.error("Parent element with class 'collab-thread' not found.");let i=t.querySelector(".visual-builder__collab-wrapper .collab-thread .collab-indicator");if(!i||!(i instanceof HTMLElement))return void console.error("Button with class 'collab-indicator' not found.");ol(i,e)}})}function or(){let e=document.querySelectorAll(".collab-thread-body--input--textarea--suggestionsList");e.length&&e.forEach(e=>{if(!(e instanceof HTMLElement))return;
1512let t=document.querySelector(".collab-thread-body--input--textarea");if(!t)return;let i=e.getAttribute("data-position"),r=i?JSON.parse(i):null,l="auto"!==window.getComputedStyle(e).bottom,n=t.getBoundingClientRect();if(l){let i=parseInt(window.getComputedStyle(t).lineHeight)||20,l=parseInt(window.getComputedStyle(t).paddingTop)||8,o=r?.cursorLineY||l+i;e.style.position="fixed",e.style.bottom=`${window.innerHeight-n.top-o+i}px`,e.style.top="auto"}else{let i=parseInt(window.getComputedStyle(t).lineHeight)||20,l=parseInt(window.getComputedStyle(t).paddingTop)||8,o=r?.cursorLineY||l+i;e.style.position="fixed",e.style.top=`${n.top+o}px`,e.style.bottom="auto"}if(!i&&n){let i=parseInt(window.getComputedStyle(t).lineHeight)||20,r=parseInt(window.getComputedStyle(t).paddingTop)||8;e.setAttribute("data-position",JSON.stringify({showAbove:l,cursorLineY:r+i}))}let o=e.getBoundingClientRect();if(!l&&o.bottom>window.innerHeight){let l=parseInt(window.getComputedStyle(t).lineHeight)||20,o=parseInt(window.getComputedStyle(t).paddingTop)||8,a=r?.cursorLineY||o+l;if(e.style.bottom=`${window.innerHeight-n.top-a+l}px`,e.style.top="auto",i){let t=JSON.parse(i);t.showAbove=!0,e.setAttribute("data-position",JSON.stringify(t))}}else if(l&&o.top<0){let l=parseInt(window.getComputedStyle(t).lineHeight)||20,o=parseInt(window.getComputedStyle(t).paddingTop)||8,a=r?.cursorLineY||o+l;if(e.style.top=`${n.top+a}px`,e.style.bottom="auto",i){let t=JSON.parse(i);t.showAbove=!1,e.setAttribute("data-position",JSON.stringify(t))}}})}function ol(e,t){let i,r,l=e.getBoundingClientRect(),n=window.innerHeight,o=window.innerWidth,a=t.offsetHeight||198,s=t.offsetWidth||334,d=l.top,u=n-l.bottom;i=d>=a?l.top-a-8:u>=a||u>d?l.bottom+8:Math.max(l.top-a-8,0),r=l.left+l.width/2-s/2,i=Math.max(i,0),r=Math.min(r=Math.max(r,0),o-s),t.style.top=`${i}px`,t.style.left=`${r}px`,requestAnimationFrame(()=>{t.offsetHeight!==a&&ol(e,t)})}function on(e){let t=document.querySelector(`div[threaduid='${e}']`);t?.remove()}function oo({threadUid:e="",action:t}){document.dispatchEvent(new CustomEvent("toggleCollabPopup",{detail:{threadUid:e,action:t}}))}function oa(e){return Array.from(e.classList).some(e=>e.startsWith("collab"))}function os(e){lx?.send(lE.COLLAB_MISSING_THREADS,e)}function od(){let e=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread");e?.forEach(e=>{e.hasAttribute("threaduid")||e.remove()})}var ou=!1,oc=new Map;function of(e){return new Promise(t=>setTimeout(t,e))}function op(e){return oc.has(e)||oc.set(e,{threadId:e,attempts:0,isRendered:!1}),oc.get(e)}function oh(e,t){let i=op(e);i.isRendered=t,oc.set(e,i)}function ov(e){oc.delete(e)}async function o_(e){let t=op(e._id);for(;t.attempts<5;)try{let i=oe(e);if(void 0===i)return void oh(e._id,!0);t.attempts++,oh(e._id,!1),t.attempts<5&&await of(1e3)}catch(i){if(console.error(`Error rendering thread ${e._id}:`,i),t.attempts++,t.attempts>=5)break;await of(1e3)}return e._id}async function ob(e){if(ou)return[];try{ou=!0;let t=om(e);if(0===t.length)return[];let i=(await Promise.all(t.map(e=>o_(e)))).filter(Boolean);return i.forEach(ov),i}finally{ou=!1}}function om(e){return e.filter(e=>!document.querySelector(`[threaduid="${e._id}"]`)||(oh(e._id,!0),!1))}function og(e){return document.evaluate(e,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}function oy(e,t){lx?.send(lE.MOVE_INSTANCE,{data:e.fieldPathWithIndex+"."+e.multipleFieldMetadata.index,direction:t,fieldMetadata:e}).finally(ow)}function ow(){document.querySelector(".visual-builder__overlay--top")?.click()}var oC={link:lt,json_rte:lt,html_rte:lt,markdown_rte:lt,custom_field:lt,isodate:lt,url:lt};async function ox(e){let{fieldMetadata:t,fieldSchema:i}=e,r=await lx?.send(lE.GET_DISCUSSION_ID,{fieldMetadata:t,fieldSchema:i})??null;return lS(r)?null:r}function oE(){return r0("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:rK("visual-builder__cursor-icon--loader loader",r1()["visual-builder__cursor-icon--loader"]),children:r0("path",{d:"M15.5023 18.3501C13.5466 19.6388 11.2007 20.2002 8.87354 19.9364C6.54637 19.6725 4.38563 18.6002 2.76808 16.9065C1.15053 15.2127 0.178807 13.0049 0.0223406 10.6681C-0.134126 8.33122 0.534595 6.0136 1.9119 4.1193C3.2892 2.22501 5.2877 0.874235 7.55893 0.302518C9.83015 -0.2692 12.23 -0.0255895 14.34 0.990871C16.45 2.00733 18.1363 3.73215 19.1048 5.86457C20.0734 7.997 20.2627 10.4017 19.6399 12.6595L17.7119 12.1276C18.2102 10.3214 18.0587 8.3976 17.2839 6.69166C16.509 4.98572 15.16 3.60586 13.472 2.7927C11.784 1.97953 9.86412 1.78464 8.04714 2.24201C6.23016 2.69939 4.63136 3.78001 3.52952 5.29544C2.42768 6.81088 1.8927 8.66498 2.01787 10.5345C2.14305 12.4039 2.92043 14.1702 4.21446 15.5252C5.5085 16.8802 7.23709 17.738 9.09883 17.9491C10.9606 18.1601 12.8373 17.711 14.4018 16.6801L15.5023 18.3501Z"})})}function oL(e){let{fieldMetadata:t,fieldSchema:i,invertTooltipPosition:r=!1}=e,[l,n]=tu(null),[o,a]=tu(!1);tf(()=>{(async()=>{try{a(!0);let e=await ox({fieldMetadata:t,fieldSchema:i});n(e)}catch(e){console.error("Failed to fetch discussion ID:",e),n({uid:"new"})}finally{a(!1)}})()},[t]),tf(()=>{let e=lx?.on(lE.UPDATE_DISCUSSION_ID,e=>{let{entryId:i,discussion:r,contentTypeId:l,fieldPath:o}=e.data;t.entry_uid===i&&t.content_type_uid===l&&t.fieldPathWithIndex===o&&n(r??{uid:"new"})});return()=>{e?.unregister()}},[]);let s=async()=>
1512{lx?.send(lE.OPEN_FIELD_COMMENT_MODAL,{fieldMetadata:t,discussion:l,fieldSchema:i})};return o?r0("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__comment-button-loading",className:rK("visual-builder__button visual-builder__button--secondary visual-builder__button--comment-loader",r1()["visual-builder__button"],r1()["visual-builder__button--secondary"],r1()["visual-builder__button--comment-loader"]),children:r0(oE,{})}):l?.uid?r0("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__comment-button",className:rK("visual-builder__button visual-builder__button--secondary",r1()["visual-builder__button"],r1()["visual-builder__button--secondary"],r1()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":r,[r1()["visual-builder__tooltip--bottom"]]:r}),"data-tooltip":"Add comment",onClick:e=>{e.preventDefault(),e.stopPropagation(),s()},children:l?.uid==="new"?r0(lo,{}):r0(ln,{})}):void 0}function oS(e){return r0("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:e.size,height:e.size},children:r0("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.41131 0.157165C4.34585 0.0589769 4.23565 0 4.11765 0C3.99964 0 3.88944 0.0589769 3.82398 0.157165L0.0592764 5.80422C-0.0197588 5.92278 -0.0197588 6.07722 0.0592764 6.19578L3.82398 11.8428C3.88944 11.941 3.99964 12 4.11765 12C4.23565 12 4.34585 11.941 4.41131 11.8428L6 9.4598L7.58869 11.8428C7.65415 11.941 7.76435 12 7.88235 12C8.00036 12 8.11056 11.941 8.17602 11.8428L11.9407 6.19578C12.0198 6.07722 12.0198 5.92278 11.9407 5.80422L8.17602 0.157165C8.11056 0.0589769 8.00036 0 7.88235 0C7.76435 0 7.65415 0.0589769 7.58869 0.157165L6 2.5402L4.41131 0.157165ZM5.57582 3.17647L4.11765 0.989215L0.777124 6L4.11765 11.0108L5.57582 8.82353L3.82398 6.19578C3.74495 6.07722 3.74495 5.92278 3.82398 5.80422
1512L5.57582 3.17647ZM6 8.18726L4.54183 6L6 3.81274L7.45817 6L6 8.18726ZM6.42418 8.82353L8.17602 6.19578C8.25505 6.07722 8.25505 5.92278 8.17602 5.80422L6.42418 3.17647L7.88235 0.989215L11.2229 6L7.88235 11.0108L6.42418 8.82353Z",fill:"currentColor"})})}var oM={isAddedInstances:!1,isBaseModified:!1,isDeletedInstances:!1,isOrderChanged:!1,fieldLevelCustomizations:!1};async function oO(e){try{return await lx?.send("get-field-variant-status",e)}catch(e){console.error("Failed to get field variant status:",e)}}var oA=e=>{let{fieldDataName:t,fieldMetadata:i,variantStatus:r=oM,isOpen:l,closeDropdown:n}=e,o=(()=>{let{isAddedInstances:e,isDeletedInstances:i,isBaseModified:l,isOrderChanged:n,fieldLevelCustomizations:o}=r,a=[];return l&&a.push({label:"Revert to base entry value",action:"revert_to_base_entry_value",id:`iframe-cs-variant-field-${t}-revert`,testId:`iframe-cs-variant-field-${t}-revert`,fieldDataName:t}),e&&a.push({label:"Revert added instances",action:"revert_added_instances",id:`iframe-cs-variant-field-${t}-revert-added-instances`,testId:`iframe-cs-variant-field-${t}-revert-added-instances`,fieldDataName:t}),i&&a.push({label:"Restore deleted instances",action:"restore_deleted_instances",id:`iframe-cs-variant-field-${t}-restore-deleted-instances`,testId:`iframe-cs-variant-field-${t}-restore-deleted-instances`,fieldDataName:t}),o&&a.push({label:"Reset field-level customizations",action:"reset_field_level_customizations",id:`iframe-cs-variant-field-${t}-reset-field-level-customizations`,testId:`iframe-cs-variant-field-${t}-reset-field-level-customizations`,fieldDataName:t}),n&&a.push({label:"Restore sorted instances",action:"restore_sorted_instances",id:`iframe-cs-variant-field-${t}-restore-sorted-instances`,testId:`iframe-cs-variant-field-${t}-restore-sorted-instances`,fieldDataName:t}),a})();return r0("div",{className:rK("variant-field-revert-component",r1()["variant-field-revert-component"]),onClick:e=>e.stopPropagation(),children:l&&r0("div",{"data-testid":"variant-field-revert-component__dropdown-content",className:rK("variant-field-revert-component__dropdown-content",r1()["variant-field-revert-component__dropdown-content"]),children:o.map(e=>r0("div",{className:rK("variant-field-revert-component__dropdown-content__list-item",r1()["variant-field-revert-component__dropdown-content__list-item"]),onClick:t=>{t.preventDefault(),function(e){let{fieldDataName:t,action:r}=e;lx?.send("send-variant-revert-action-trigger",{fieldDataName:t,action:r,euid:i.entry_uid,ct_uid:i.content_type_uid,locale:i.locale})}(e),n()},"data-testid":e.testId,children:r0("span",{children:e.label})},e.id))})})},oT=e=>{var t,i;let{closeDropdown:r,invertTooltipPosition:l,toggleVariantDropdown:n,variantStatus:o=oM,disabled:a}=e,s=tp(null);tf(()=>{let e=e=>{t.current&&!t.current.contains(e.target)&&i()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t=s,i=r]);let d=Object.values(o).some(e=>e),u=rK("visual-builder__button visual-builder__button--secondary",r1()["visual-builder__button"],r1()["visual-builder__button--secondary"],r1()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":l,[r1()["visual-builder__tooltip--bottom"]]:l});return d?r0("div",{ref:s,children:[r0("button",{className:rK(u,r1()["visual-builder__variant-button"]),"data-tooltip":"Variant Revert","data-testid":"visual-builder
1512-canvas-variant-revert",onClick:n,disabled:a,children:[r0(oS,{}),r0(r7,{open:e.isOpen})]}),r0(oA,{...e})]}):r0("button",{className:rK(u),style:{padding:"6px"},"data-tooltip":"Variant","data-testid":"visual-builder-canvas-variant-icon",disabled:a,children:r0(oS,{})})},ok=({id:e="",...t})=>r0("svg",{width:"35",height:"35",viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[r0("circle",{cx:"36",cy:"36",r:"36",fill:oN(e)}),r0("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.0577 27.3091H25.7747C25.1627 27.3091 24.6667 27.8052 24.6667 28.4171V31.6933H25.4351C28.2423 31.6933 30.9099 33.6523 30.9099 36.8808C30.9099 40.0525 28.3048 42.1467 25.4351 42.1467H24.6667V47.2253C24.6667 47.8372 25.1627 48.3333 25.7747 48.3333H30.8533V47.5649C30.8533 44.6952 32.9475 42.0901 36.1192 42.0901C39.3477 42.0901 41.3067 44.7577 41.3067 47.5649V48.3333H44.5829C45.1948 48.3333 45.6909 47.8372 45.6909 47.2253V40.8782L47.9921 40.5598C49.9596 40.2875 51.3333 38.7771 51.3333 36.8808C51.3333 35.0149 49.9935 33.5515 47.9984 33.2804L45.6909 32.9668V28.4171C45.6909 27.8052 45.1948 27.3091 44.5829 27.3091H40.0974L39.7801 25.0065C39.5081 23.0327 38.0085 21.6667 36.1192 21.6667C34.1999 21.6667 32.6528 23.0659 32.3798 25.0128L32.0577 27.3091ZM38.64 51V47.5649C38.64 45.9382 37.5988 44.7567 36.1192 44.7567C34.6198 44.7567 33.52 45.9602 33.52 47.5649V51H25.7747C23.69 51 22 49.31 22 47.2253V39.48H25.4351C27.0398 39.48 28.2433 38.3802 28.2433 36.8808C28.2433 35.4012 27.0618 34.36 25.4351 34.36H22V28.4171C22 26.3324 23.69 24.6424 25.7747 24.6424H29.739C30.1842 21.4681 32.7819 19 36.1192 19C39.4662 19 41.9856 21.4774 42.4218 24.6424H44.5829C46.6676 24.6424 48.3576 26.3324 48.3576 28.4171V30.638C51.5153 31.0671 54 33.5263 54 36.8808C54 40.2256 51.5248 42.763 48.3576 43.2013V47.2253C48.3576 49.31 46.6676 51 44.5829 51H38.64Z",fill:"white"})]}),oN=(e="")=>{let t=["#99D8CE","#6BC3FE","#5060C1","#835EC3","#B16DBD","#FF85BC","#FF7E83","#A2D959","#59BA5E"];return t[[...e].reduce((e,t)=>e+t.charCodeAt(0),0)%t.length]},oR=e=>e.toLowerCase().replace(/[^a-z0-9 ]/gi,"").trim(),oD=({apps:e,position:t,toolbarRef:i,domEditStack:r,setDisplayAllApps:l})=>{let n=e.filter((e,t)=>0!==t),[o,a]=tu(""),s=th(()=>
1512{if(!o.trim())return n;let e=oR(o);return n.filter(t=>oR(t.title).includes(e))},[o,n]);return r0("div",{className:rK(r1()["visual-builder__field-location-app-list"],{[r1()["visual-builder__field-location-app-list--left"]]:"left"===t,[r1()["visual-builder__field-location-app-list--right"]]:"right"===t}),children:[r0("div",{className:r1()["visual-builder__field-location-app-list__search-container"],children:[r0("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:rK("Search__search-icon Icon--mini",r1()["visual-builder__field-location-app-list__search-icon"]),children:r0("path",{d:"M12.438 12.438L9.624 9.624M6.25 10.75a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",stroke:"#A9B6CB",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),r0("input",{type:"text",value:o,onInput:e=>a(e.target.value),placeholder:"Search for Apps",className:r1()["visual-builder__field-location-app-list__search-input"]})]}),r0("div",{className:r1()["visual-builder__field-location-app-list__content"],children:[0===s.length&&r0("div",{className:r1()["visual-builder__field-location-app-list__no-results"],children:r0("span",{className:r1()["visual-builder__field-location-app-list__no-results-text"],children:"No matching results found!"})}),s.map(e=>r0("div",{className:r1()["visual-builder__field-location-app-list__item"],onClick:()=>{lx?.send(lE.FIELD_LOCATION_SELECTED_APP,{app:e,position:i.current?.getBoundingClientRect(),DomEditStack:r}),l(!1)},children:[r0("div",{className:r1()["visual-builder__field-location-app-list__item-icon-container"],children:e.icon?r0("img",{src:e.icon,alt:e.title,className:r1()["visual-builder__field-location-app-list__item-icon"]}):r0(ok,{id:e.app_installation_uid})}),r0("span",{className:r1()["visual-builder__field-location-app-list__item-title"],children:e.title})]},e.uid))]})]})},oH=({fieldLocationData:e,multipleFieldToolbarButtonClasses:t,handleMoreIconClick:i,moreButtonRef:r,toolbarRef:l,domEditStack:n})=>e?.apps&&e?.apps?.length!==0?r0("div",{ref:l,className:rK(r1()["visual-builder__field-location-icons-container"]),children:[r0("hr",{className:r1()["visual-builder__field-location-icons-container__divider"]}),r0("button",{title:e.apps[0].title,className:t,"data-tooltip":e.apps[0].title,onClick:t=>{var i;t.preventDefault(),t.stopPropagation(),i=e.apps[0],l.current&&lx?.send(lE.FIELD_LOCATION_SELECTED_APP,{app:i,position:l.current?.getBoundingClientRect(),DomEditStack:n})},"data-testid":"field-location-icon",children:e.apps[0].icon?r0("img",{src:e.apps[0].icon,alt:e.apps[0].title,className:r1()["visual-builder__field-location-icons-container__app-icon"]}):r0(ok,{id:e.apps[0].app_installation_uid})},`${e.apps[0].uid}`),e.apps.length>1&&r0("button",{ref:r,className:t,"data-tooltip":"More",onClick:i,"data-testid":"field-location-more-button",children:r0(ls,{})})]}):null;function oP(e){return e&&(e.multiple||"reference"===e.data_type&&e.field_metadata.ref_multiple)}function oV(e,t){return!!e&&!!t&&lO(e)===lp.CUSTOM_FIELD&&oP(e)&&t.fieldPathWithIndex!==t.instance?.fieldPathWithIndex&&(t.multipleFieldMetadata?.index??-1)!==-1}var oI=function(e){let{eventDetails:t,isVariant:i,entryPermissions:r,entryWorkflowStageDetails:l,resolvedVariantPermissions:n}=e,{fieldMetadata:o,editableElement:a}=t,[s,d]=tu(!1),[u,c]=tu(null),[f,p]=tu(!1),h=tp(null),v=tp(null),[_,b]=tu("right"),m=o?.multipleFieldMetadata?.parentDetails?.parentCslpValue||"",g=!!o?.variant||i,y=lU(a,m),[w,C]=tu(null),[x,E]=tu(oM),[L,S]=tu(!1),M=!1,O=!1,A=!1,T=null,k=null,N=!1,R=!1,D=!1;if(w){let{isDisabled:e}=lH(w,{editableElement:a,fieldMetadata:o},n,r,l);R=e,T=oC[k=lO(w)],A=w.multiple||!1,k===lp.REFERENCE&&(A=w.field_metadata.ref_multiple),N=A&&(o.fieldPathWithIndex===o.instance.fieldPathWithIndex||o.multipleFieldMetadata?.index===-1),D=oV(w,o),M=!!(k===lp.CUSTOM_FIELD&&A&&N)||lg.includes(k)&&!N,O=ly.includes(k)&&!N}let H=lj(t.editableElement),P=a.getBoundingClientRect().top<=96,V=T?r0("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__edit-button",className:rK("visual-builder__button visual-builder__button--secondary visual-builder__button--edit",r1()["visual-builder__button"],r1()["visual-builder__button--secondary"],r1()["visual-builder__button--edit"],r1()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":P,[r1()["visual-builder__tooltip--bottom"]]:P}),"data-tooltip":"Edit",onClick:e=>{e.preventDefault(),e.stopPropagation(),lx?.send(lE.OPEN_FIELD_EDIT_MODAL,{fieldMetadata:o})},disabled:R,children:r0(T,{})}):null,I=k?r0("button",{className:rK("visual-builder__replace-button visual-builder__button visual-builder__button--secondary",r1()["visual-builder__button"],r1()["visual-builder__button--secondary"],r1()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":P,[r1()["visual-builder__tooltip--bottom"]]:P}
1512),"data-tooltip":"Replace","data-testid":`visual-builder-replace-${k}`,onClick:e=>{if(e.stopPropagation(),e.preventDefault(),k===lp.REFERENCE){let e;return void(e=o.multipleFieldMetadata.index>-1&&o.fieldPathWithIndex===o.multipleFieldMetadata.parentDetails?.parentPath?o.instance.fieldPathWithIndex:o.fieldPathWithIndex,lx?.send(lE.OPEN_REFERENCE_MODAL,{entry_uid:o.entry_uid,content_type_uid:o.content_type_uid,locale:o.locale,fieldPath:o.fieldPath,fieldPathWithIndex:o.fieldPathWithIndex,entryPath:e}))}if(k===lp.FILE)return void lx?.send(lE.OPEN_ASSET_MODAL,{fieldMetadata:o})},disabled:R,children:r0(lr,{})}):null,B=r0("button",{className:rK("visual-builder__replace-button visual-builder__button visual-builder__button--secondary",r1()["visual-builder__button"],r1()["visual-builder__button--secondary"],r1()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":P,[r1()["visual-builder__tooltip--bottom"]]:P},{[r1()["visual-builder__button--comment-loader"]]:s,"visual-builder__button--comment-loader":s}),"data-tooltip":"Form","data-testid":"visual-builder
1512-form",onClick:async e=>{e.preventDefault(),e.stopPropagation(),d(!0);try{await function(e){let{editableElement:t}=e;return lx?.send(lE.FOCUS_FIELD,{DOMEditStack:lj(t),toggleVisibility:!0})}(t)}finally{d(!1)}},disabled:s,children:s?r0(oE,{}):r0(r8,{})});rK("visual-builder__variant-button visual-builder__button visual-builder__button--secondary",r1()["visual-builder__button"],r1()["visual-builder__button--secondary"],r1()["visual-builder__tooltip"],r1()["visual-builder__variant-button"],{"visual-builder__tooltip--bottom":P,[r1()["visual-builder__tooltip--bottom"]]:P});let U=a?.parentNode?.childElementCount??1,F=o?.multipleFieldMetadata?.index,$=0===F,j=F===U-1;tf(()=>{!async function(){let e=await lL.getFieldSchema(o.content_type_uid,o.fieldPath);e&&C(e),E(await oO(o)??oM)}()},[o]),tf(()=>{let t=lx?.on(lE.DELETE_INSTANCE,t=>{t.data?.path===o.instance.fieldPathWithIndex&&e.hideOverlay()});return()=>{t?.unregister()}},[]),tf(()=>{(async()=>{try{let e=await lx?.send(lE.FIELD_LOCATION_DATA,{domEditStack:lj(t.editableElement)});c(e)}catch(e){console.error("Error fetching field location data:",e)}})()},[t.editableElement]);let W=rK("visual-builder__button visual-builder__button--secondary",r1()["visual-builder__button"],r1()["visual-builder__button--secondary"],r1()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":P,[r1()["visual-builder__tooltip--bottom"]]:P});return D?r0("div",{className:rK("visual-builder__field-toolbar-container",r1()["visual-builder__field-toolbar-container"]),children:r0("div",{className:rK("visual-builder__custom-field-instance-message",r1()["visual-builder__custom-field-instance-message"]),"data-testid":"visual-builder__custom-field-instance-message",children:"You're on a custom field item. Select the entire custom field to edit or manage it."})}):r0("div",{className:rK("visual-builder__field-toolbar-container",r1()["visual-builder__field-toolbar-container"]),children:[r0("div",{className:rK("visual-builder__focused-toolbar__multiple-field-toolbar",r1()["visual-builder__focused-toolbar__multiple-field-toolbar"]),"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar",children:r0("div",{className:rK("visual-builder__focused-toolbar__button-group",r1()["visual-builder__focused-toolbar__button-group"]),children:r0(ej,{children:[g?r0(oT,{fieldDataName:o.fieldPathWithIndex,fieldMetadata:o,variantStatus:x,isOpen:L,closeDropdown:()=>{S(!1)},invertTooltipPosition:P,toggleVariantDropdown:()=>{S(!L)},disabled:R}):null,A&&!N?r0(ej,{children:[r0("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__move-left-button",className:W,"data-tooltip":"vertical"===y?"Move up":"Move left",onClick:e=>{e.preventDefault(),e.stopPropagation(),oy(o,"previous")},disabled:R||$,children:r0(r4,{className:rK({"visual-builder__rotate--90":"vertical"===y,[r1()["visual-builder__rotate--90"]]:"vertical"===y}),disabled:R||$})}),r0("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__move-right-button",className:W,"data-tooltip":"vertical"===y?"Move down":"Move right",onClick:e=>{e.preventDefault(),e.stopPropagation(),oy(o,"next")},disabled:R||j,children:r0(r9,{className:rK({"visual-builder__rotate--90":"vertical"===y,[r1()["visual-builder__rotate--90"]]:"vertical"===y}),disabled:R||j})}),M?V:null,B,O?I:null,r0("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__delete-button",className:W,"data-tooltip":"Delete",onClick:e=>{e.preventDefault(),e.stopPropagation(),lx?.send(lE.DELETE_INSTANCE,{data:o.fieldPathWithIndex+"."+o.multipleFieldMetadata.index,fieldMetadata:o}).finally(ow)},disabled:R,children:r0(r6,{})})]}):r0(ej,{children:[M?V:null,O?I:null,B,w&&!R?r0(oL,{fieldMetadata:o,fieldSchema:w,invertTooltipPosition:P}):null]}),!R&&r0(oH,{fieldLocationData:u,multipleFieldToolbarButtonClasses:W,handleMoreIconClick:()=>{if(v.current){let e=v.current.getBoundingClientRect(),t=window.innerWidth-e.right,i=e.left;b(t<230?"left":t>230||t>i?"right":"left")}p(!f)},moreButtonRef:h,toolbarRef:v,domEditStack:H})]})})}),f&&r0(oD,{toolbarRef:v,apps:u?.apps||[],position:_,domEditStack:H,setDisplayAllApps:p,displayAllApps:f})]})};function oB({}){let e=tp(null),[t,i]=tu(!1);return tf(()=>{let t=e.current,r=()=>{i(!0)},l=()=>{i(!1)};return t&&(t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",l)),()=>{t&&(t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",l))}},[]),r0("div",{className:rK(r1()["visual-builder__focused-toolbar__error"]),ref:e,children:[r0(la,{}),r0("span",{className:rK(r1()["visual-builder__focused-toolbar__error-text"]),children:"Error"}),t?r0("div",{className:rK(r1()["visual-builder__focused-toolbar__error-toolip"]),children:[r0("p",{children:"Invalid CSLP tag"}
1512),r0("span",{children:"The CSLP is invalid or incorrectly generated."})]}):null]})}let oU=Math.min,oF=Math.max,o$=Math.round,oj=e=>({x:e,y:e}),oW={left:"right",right:"left",bottom:"top",top:"bottom"};function oz(e,t){return"function"==typeof e?e(t):e}function oZ(e){return e.split("-")[0]}function oG(e){return e.split("-")[1]}function oq(e){return"x"===e?"y":"x"}function oY(e){return"y"===e?"height":"width"}function oK(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function oX(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let oQ=["left","right"],oJ=["right","left"],o1=["top","bottom"],o2=["bottom","top"];function o5(e){let t=oZ(e);return oW[t]+e.slice(t.length)}function o0(e){var t,i,r,l;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(i=e.right)?i:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(l=e.left)?l:0}:{top:e,right:e,bottom:e,left:e}}function o3(e){let{x:t,y:i,width:r,height:l}=e;return{width:r,height:l,top:i,left:t,right:t+r,bottom:i+l,x:t,y:i}}function o7(e,t,i){let r,{reference:l,floating:n}=e,o=oK(t),a=oq(oK(t)),s=oY(a),d=oZ(t),u=l.x+l.width/2-n.width/2,c=l.y+l.height/2-n.height/2,f=l[s]/2-n[s]/2;switch(d){case"top":r={x:u,y:l.y-n.height};break;case"bottom":r={x:u,y:l.y+l.height};break;case"right":r={x:l.x+l.width,y:c};break;case"left":r={x:l.x-n.width,y:c};break;default:r={x:l.x,y:l.y}}let p=oG(t);return p&&(r[a]+=f*("end"===p?1:-1)*(i&&"y"===o?-1:1)),r}async function o6(e,t){var i;void 0===t&&(t={});let{x:r,y:l,platform:n,rects:o,elements:a,strategy:s}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:f=!1,padding:p=0}=oz(t,e),h=o0(p),v=a[f?"floating"===c?"reference":"floating":c],_=o3(await n.getClippingRect({element:null==(i=await (null==n.isElement?void 0:n.isElement(v)))||i?v:v.contextElement||await (null==n.getDocumentElement?void 0:n.getDocumentElement(a.floating)),boundary:d,rootBoundary:u,strategy:s})),b="floating"===c?{x:r,y:l,width:o.floating.width,height:o.floating.height}:o.reference,m=await (null==n.getOffsetParent?void 0:n.getOffsetParent(a.floating)),g=await (null==n.isElement?void 0:n.isElement(m))&&await (null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},y=o3(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:m,strategy:s}):b);return{top:(_.top-y.top+h.top)/g.y,bottom:(y.bottom-_.bottom+h.bottom)/g.y,left:(_.left-y.left+h.left)/g.x,right:(y.right-_.right+h.right)/g.x}}let o8=async(e,t,i)=>{let{placement:r="bottom",strategy:l="absolute",middleware:n=[],platform:o}=i,a=o.detectOverflow?o:{...o,detectOverflow:o6},s=await (null==o.isRTL?void 0:o.isRTL(t)),d=await o.getElementRects({reference:e,floating:t,strategy:l}),{x:u,y:c}=o7(d,r,s),f=r,p=0,h={};for(let i=0;i<n.length;i++){let v=n[i];if(!v)continue;let{name:_,fn:b}=v,{x:m,y:g,data:y,reset:w}=await b({x:u,y:c,initialPlacement:r,placement:f,strategy:l,middlewareData:h,rects:d,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,c=null!=g?g:c,h[_]={...h[_],...y},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(d=!0===w.rects?await o.getElementRects({reference:e,floating:t,strategy:l}):w.rects),{x:u,y:c}=o7(d,f,s)),i=-1)}return{x:u,y:c,placement:f,strategy:l,middlewareData:h}},o4=new Set(["left","top"]);async function o9(e,t){let{placement:i,platform:r,elements:l}=e,n=await (null==r.isRTL?void 0:r.isRTL(l.floating)),o=oZ(i),a=oG(i),s="y"===oK(i),d=o4.has(o)?-1:1,u=n&&s?-1:1,c=oz(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*u,y:f*d}:{x:f*d,y:p*u}}function ae(){return"u">typeof window}function at(e){return al(e)?(e.nodeName||"").toLowerCase():"#document"}function ai(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ar(e){var t;return null==(t=(al(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function al(e){return!!ae()&&(e instanceof Node||e instanceof ai(e).Node)}function an(e){return!!ae()&&(e instanceof Element||e instanceof ai(e).Element)}function ao(e){return!!ae()&&(e instanceof HTMLElement||e instanceof ai(e).HTMLElement)}function aa(e){return!(!ae()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ai(e).ShadowRoot)}function as(e){let{overflow:t,overflowX:i,overflowY:r,display:l}=a_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&"inline"!==l&&"contents"!==l}function ad(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let au=/transform|translate|scale|rotate|perspective|filter/,ac=/paint|layout|strict|content/,af=e=>!!e&&"none"!==e;function ap(e){let t=an(e)?a_(e):e;return af(t.transform)||af(t.translate)||af(t.scale)||af(t.rotate)||af(t.perspective)||!ah()&&(af(t.backdropFilter)||af(t.filter))||au.test(t.willChange||"")||ac.test(t.contain||"")}function ah(){return null==l&&(l="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),l}function av(e){return/^(html|body|#document)$/.test(at(e))}function a_(e){return ai(e).getComputedStyle(e)}function ab(e){return an(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function am(e){if("html"===at(e))return e;let t=e.assignedSlot||e.parentNode||aa(e)&&e.host||ar(e);return aa(t)?t.host:t}function ag(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ay(e){let t=a_(e),i=parseFloat(t.width)||0,r=parseFloat(t.height)||0,l=ao(e),n=l?e.offsetWidth:i,o=l?e.offsetHeight:r,a=o$(i)!==n||o$(r)!==o;return a&&(i=n,r=o),{width:i,height:r,$:a}}function aw(e){return an(e)?e:e.contextElement}function aC(e){let t=aw(e);if(!ao(t))return oj(1);let i=t.getBoundingClientRect(),{width:r,height:l,$:n}=ay(t),o=(n?o$(i.width):i.width)/r,a=(n?o$(i.height):i.height)/l;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}let ax=oj(0);function aE(e){let t=ai(e);
1512return ah()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ax}function aL(e,t,i,r){var l;void 0===t&&(t=!1),void 0===i&&(i=!1);let n=e.getBoundingClientRect(),o=aw(e),a=oj(1);t&&(r?an(r)&&(a=aC(r)):a=aC(e));let s=(void 0===(l=i)&&(l=!1),r&&l&&r===ai(o))?aE(o):oj(0),d=(n.left+s.x)/a.x,u=(n.top+s.y)/a.y,c=n.width/a.x,f=n.height/a.y;if(o&&r){let e=ai(o),t=an(r)?ai(r):r,i=e,l=ag(i);for(;l&&t!==i;){let e=aC(l),t=l.getBoundingClientRect(),r=a_(l),n=t.left+(l.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(l.clientTop+parseFloat(r.paddingTop))*e.y;d*=e.x,u*=e.y,c*=e.x,f*=e.y,d+=n,u+=o,l=ag(i=ai(l))}}return o3({width:c,height:f,x:d,y:u})}function aS(e,t){let i=ab(e).scrollLeft;return t?t.left+i:aL(ar(e)).left+i}function aM(e,t){let i=e.getBoundingClientRect();return{x:i.left+t.scrollLeft-aS(e,i),y:i.top+t.scrollTop}}function aO(e,t,i){var r;let l;if("viewport"===t||"layoutViewport"===t)l=function(e,t,i){void 0===i&&(i="viewport");let r="layoutViewport"===i,l=ai(e),n=ar(e),o=l.visualViewport,a=n.clientWidth,s=n.clientHeight,d=0,u=0;if(o){let e=!ah()||"fixed"===t;r?e||(d=-o.offsetLeft,u=-o.offsetTop):(a=o.width,s=o.height,e&&(d=o.offsetLeft,u=o.offsetTop))}if(0>=aS(n)){let e=n.ownerDocument,t=e.body,i=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(i.marginLeft)+parseFloat(i.marginRight)||0,l=Math.abs(n.clientWidth-t.clientWidth-r),o="stable both-edges"===getComputedStyle(n).scrollbarGutter?l/2:l;o<=25&&(a-=o)}return{width:a,height:s,x:d,y:u}}(e,i,t);else if("document"===t){let t,i,n,o,a,s;t=ab(r=ar(e)),i=r.ownerDocument.body,n=oF(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),o=oF(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight),a=-t.scrollLeft+aS(r),s=-t.scrollTop,"rtl"===a_(i).direction&&(a+=oF(r.clientWidth,i.clientWidth)-n),l={width:n,height:o,x:a,y:s}}else if(an(t)){let e,r,n,o,a,s;r=(e=aL(t,!0,"fixed"===i)).top+t.clientTop,n=e.left+t.clientLeft,o=aC(t),a=t.clientWidth*o.x,s=t.clientHeight*o.y,l={width:a,height:s,x:n*o.x,y:r*o.y}}else{let i=aE(e);l={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return o3(l)}function aA(e){return"static"===a_(e).position}function aT(e,t){if(!ao(e)||"fixed"===a_(e).position)return null;if(t)return t(e);let i=e.offsetParent;return ar(e)===i&&(i=i.ownerDocument.body),i}function ak(e,t){var i;let r=ai(e);if(ad(e))return r;if(!ao(e)){let t=am(e);for(;t&&!av(t);){if(an(t)&&!aA(t))return t;t=am(t)}return r}let l=aT(e,t);for(;l&&(i=l,/^(table|td|th)$/.test(at(i)))&&aA(l);)l=aT(l,t);return l&&av(l)&&aA(l)&&!ap(l)?r:l||function(e){let t=am(e);for(;ao(t)&&!av(t);){if(ap(t))return t;if(ad(t))break;t=am(t)}return null}(e)||r}let aN=async function(e){let t=this.getOffsetParent||ak,i=this.getDimensions,r=await i(e.floating);return{reference:function(e,t,i){let r=ao(t),l=ar(t),n="fixed"===i,o=aL(e,!0,n,t),a={scrollLeft:0,scrollTop:0},s=oj(0);if((r||!n)&&(("body"!==at(t)||as(l))&&(a=ab(t)),r)){let e=aL(t,!0,n,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}!r&&l&&(s.x=aS(l));let d=!l||r||n?oj(0):aM(l,a);return{x:o.left+a.scrollLeft-s.x-d.x,y:o.top+a.scrollTop-s.y-d.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},aR={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:i,offsetParent:r,strategy:l}=e,n="fixed"===l,o=ar(r),a=!!t&&ad(t.floating);if(r===o||a&&n)return i;let s={scrollLeft:0,scrollTop:0},d=oj(1),u=oj(0),c=ao(r);if((c||!n)&&(("body"!==at(r)||as(o))&&(s=ab(r)),c)){let e=aL(r);d=aC(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=!o||c||n?oj(0):aM(o,s);return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-s.scrollLeft*d.x+u.x+f.x,y:i.y*d.y-s.scrollTop*d.y+u.y+f.y}},getDocumentElement:ar,getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:r,strategy:l}=e,n=[..."clippingAncestors"===i?ad(t)?[]:function(e,t){let i=t.get(e);if(i)return i;let r=(function e(t,i,r){var l;void 0===i&&(i=[]),void 0===r&&(r=!0);let n=function e(t){let i=am(t);return av(i)?(t.ownerDocument||t).body:ao(i)&&as(i)?i:e(i)}(t),o=n===(null==(l=t.ownerDocument)?void 0:l.body),a=ai(n);if(!o)return i.concat(n,e(n,[],r));{let t=ag(a);
1512return i.concat(a,a.visualViewport||[],as(n)?n:[],t&&r?e(t):[])}})(e,[],!1).filter(e=>an(e)&&"body"!==at(e)),l=null,n="fixed"===a_(e).position,o=n?am(e):e;for(;an(o)&&!av(o);){let e=a_(o),t=ap(o),i=l?l.position:n?"fixed":"";t||"fixed"!==i&&("absolute"!==i||"static"!==e.position)?l=e:r=r.filter(e=>e!==o),o=am(o)}return t.set(e,r),r}(t,this._c):[].concat(i),r],o=aO(t,n[0],l),a=o.top,s=o.right,d=o.bottom,u=o.left;for(let e=1;e<n.length;e++){let i=aO(t,n[e],l);a=oF(i.top,a),s=oU(i.right,s),d=oU(i.bottom,d),u=oF(i.left,u)}return{width:s-u,height:d-a,x:u,y:a}},getOffsetParent:ak,getElementRects:aN,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:i}=ay(e);return{width:t,height:i}},getScale:aC,isElement:an,isRTL:function(e){return"rtl"===a_(e).direction}};var aD=({children:e,content:t,placement:i="top-start"})=>{let[r,l]=tu(!1),n=tp(null),o=tp(null),a=tp(null),s=()=>l(!0),d=()=>l(!1);return tf(()=>{var e,t,l;let s,d,u,c;if(!r||!n.current||!o.current)return;let f=n.current,p=o.current;(l={placement:i,middleware:[{name:"offset",options:8,async fn(e){var t,i;let{x:r,y:l,placement:n,middlewareData:o}=e,a=await o9(e,8);return n===(null==(t=o.offset)?void 0:t.placement)&&null!=(i=o.arrow)&&i.alignmentOffset?{}:{x:r+a.x,y:l+a.y,data:{...a,placement:n}}}},(void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var i,r,l,n,o,a,s,d;let u,c,f,{placement:p,middlewareData:h,rects:v,initialPlacement:_,platform:b,elements:m}=t,{mainAxis:g=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:E=!0,...L}=oz(e,t);if(null!=(i=h.arrow)&&i.alignmentOffset)return{};let S=oZ(p),M=oK(_),O=oZ(_)===_,A=await (null==b.isRTL?void 0:b.isRTL(m.floating)),T=w||(O||!E?[o5(_)]:(u=o5(_),[oX(_),u,oX(u)])),k="none"!==x;!w&&k&&T.push(...(c=oG(_),f=function(e,t,i){switch(e){case"top":case"bottom":if(i)return t?oJ:oQ;return t?oQ:oJ;case"left":case"right":return t?o1:o2;default:return[]}}(oZ(_),"start"===x,A),c&&(f=f.map(e=>e+"-"+c),E&&(f=f.concat(f.map(oX)))),f));let N=[_,...T],R=await b.detectOverflow(t,L),D=[],H=(null==(r=h.flip)?void 0:r.overflows)||[];if(g&&D.push(R[S]),y){let e,t,i,r,l=(a=p,s=v,void 0===(d=A)&&(d=!1),e=oG(a),i=oY(t=oq(oK(a))),r="x"===t?e===(d?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[i]>s.floating[i]&&(r=o5(r)),[r,o5(r)]);D.push(R[l[0]],R[l[1]])}if(H=[...H,{placement:p,overflows:D}],!D.every(e=>e<=0)){let e=((null==(l=h.flip)?void 0:l.index)||0)+1,t=N[e];if(t&&("alignment"!==y||M===oK(t)||H.every(e=>oK(e.placement)!==M||e.overflows[0]>0)))return{data:{index:e,overflows:H},reset:{placement:t}};let i=null==(n=H.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:n.placement;if(!i)switch(C){case"bestFit":{let e=null==(o=H.filter(e=>{if(k){let t=oK(e.placement);return t===M||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(i=e);break}case"initialPlacement":i=_}if(p!==i)return{reset:{placement:i}}}return{}}}),{name:"shift",options:t={padding:5},async fn(e){let{x:i,y:r,placement:l,platform:n}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:i}=e;return{x:t,y:i}}},...d}=oz(t,e),u={x:i,y:r},c=await n.detectOverflow(e,d),f=oK(l),p=oq(f),h=u[p],v=u[f],_=(e,t)=>oF(t+c["y"===e?"top":"left"],oU(t,t-c["y"===e?"bottom":"right"]));o&&(h=_(p,h)),a&&(v=_(f,v));let b=s.fn({...e,[p]:h,[f]:v});return{...b,data:{x:b.x-i,y:b.y-r,enabled:{[p]:o,[f]:a}}}}},...a.current?[{name:"arrow",options:s={element:a.current},async fn(e){let{x:t,y:i,placement:r,rects:l,platform:n,elements:o,middlewareData:a}=e,{element:d,padding:u=0}=oz(s,e)||{};if(null==d)return{};let c=o0(u),f={x:t,y:i},p=oq(oK(r)),h=oY(p),v=await n.getDimensions(d),_="y"===p,b=_?"clientHeight":"clientWidth",m=l.reference[h]+l.reference[p]-f[p]-l.floating[h],g=f[p]-l.reference[p],y=await (null==n.getOffsetParent?void 0:n.getOffsetParent(d)),w=y?y[b]:0;w&&await (null==n.isElement?void 0:n.isElement(y))||(w=o.floating[b]||l.floating[h]);let C=w/2-v[h]/2-1,x=oU(c[_?"top":"left"],C),E=oU(c[_?"bottom":"right"],C),L=w-v[h]-E,S=w/2-v[h]/2+(m/2-g/2),M=oF(x,oU(S,L)),O=!a.arrow&&null!=oG(r)&&S!==M&&l.reference[h]/2-(S<x?x:E)-v[h]/2<0,A=O?S<x?S-x:S-L:0;return{[p]:f[p]+A,data:{[p]:M,centerOffset:S-M-A,...O&&{alignmentOffset:A}},reset:O}}}]:[]]},d=new Map,u=null!=l?l:{},c={...aR,...u.platform,_c:d},o8(f,p,{...u,platform:c})).then(({x:e,y:t,placement:i,middlewareData:r})=>{if(Object.assign(p.style,{left:`${e}px`,top:`${t}px`}),r.arrow&&a.current){let{x:e,y:t}=r.arrow,l=i.split("-")[0],n=a.current;if(Object.assign(n.style,{left:"",top:"",right:"",bottom:""}),i.includes("-start")||i.includes("-end")){let i=p.getBoundingClientRect();"top"===l||"bottom"===l?(n.style.left="14px",null!=t&&(n.style.top=`${t}px`)):(n.style.top=`${i.height/2-4}px`,null!=e&&(n.style.left=`${e}px`))}else null!=e&&(n.style.left=`${e}px`),null!=t&&(n.style.top=`${t}px`);
1512n.style[({top:"bottom",right:"left",bottom:"top",left:"right"})[l]]="-4px"}})},[r,i,t]),r0(ej,{children:[e7(e,{ref:n,onMouseEnter:s,onMouseLeave:d,onFocus:s,onBlur:d,"aria-describedby":"lightweight-tooltip"}),r&&r0("div",{ref:o,role:"tooltip",id:"lightweight-tooltip",className:rK("tooltip-container",r1()["tooltip-container"]),children:[t,r0("div",{ref:a,className:rK("tooltip-arrow",r1()["tooltip-arrow"])})]})]})};function aH({contentTypeName:e,referenceFieldName:t}){return r0("div",{className:rK("toolbar-tooltip-content",r1()["toolbar-tooltip-content"]),children:[e&&r0("div",{className:rK("toolbar-tooltip-content-item",r1()["toolbar-tooltip-content-item"]),children:[r0(ld,{}),r0("p",{children:e})]}),t&&r0("div",{className:rK("toolbar-tooltip-content-item",r1()["toolbar-tooltip-content-item"]),children:[r0("div",{dangerouslySetInnerHTML:{__html:lZ.reference},className:rK("visual-builder__field-icon",r1()["visual-builder__field-icon"])}),r0("p",{children:t})]})]})}function aP({children:e,data:t,disabled:i=!1}){if(i)return e;let{contentTypeName:r,referenceFieldName:l}=t;return r0(aD,{content:r0(aH,{contentTypeName:r,referenceFieldName:l}),children:e})}var aV=function(e,t=(...e)=>JSON.stringify(e)){let i=new Map,r=new Map;async function l(...n){let o=t(...n);if(i.has(o))return i.get(o);if(r.has(o))return r.get(o);let a=e(...n).then(e=>(i.set(o,e),r.delete(o),e)).catch(e=>{throw r.delete(o),e});return r.set(o,a),a}return l.clearCache=()=>{i.clear(),r.clear()},l}(async function e({entryUid:t,contentTypeUid:i,locale:r}){try{let e=await lx?.send(lE.GET_PERMISSIONS,{type:"entry",entryUid:t,contentTypeUid:i,locale:r});if(e)return e}catch(e){console.debug("[Visual Builder] Error fetching permissions",e)}return{create:!0,read:!0,update:!0,delete:!0,publish:!0}},({entryUid:e,contentTypeUid:t,locale:i})=>`${e}.${t}.${i}`);async function aI(e){try{return await lx?.send(lE.GET_RESOLVED_VARIANT_PERMISSIONS,e)??{update:!0,error:!0}}catch(e){return console.warn("Error retrieving resolved variant permissions",e),{update:!0,error:!0}}}async function aB({entryUid:e,contentTypeUid:t,locale:i,variantUid:r}){try{let l=await lx?.send(lE.GET_WORKFLOW_STAGE_DETAILS,{entryUid:e,contentTypeUid:t,locale:i,variantUid:r});if(l)return l}catch(e){console.debug("[Visual Builder] Error fetching workflow stage details",e)}return{stage:{name:"Unknown"},permissions:{entry:{update:!0}},requestEditAccess:{canRequest:!1,hasPending:!1}}}async function aU({entryUid:e,contentTypeUid:t,locale:i,variantUid:r,fieldPathWithIndex:l}){let n=aV({entryUid:e,contentTypeUid:t,locale:i}),o=aI({entry_uid:e,content_type_uid:t,locale:i,variant:r,fieldPathWithIndex:l}),a=aB({entryUid:e,contentTypeUid:t,locale:i,variantUid:r}),s=await Promise.allSettled([n,a,o]);"rejected"===s[0].status&&console.debug("[Visual Builder] Error retrieving entry permissions",s[0].reason),"rejected"===s[1].status&&console.debug("[Visual Builder] Error retrieving entry stage details",s[1].reason),"rejected"===s[2].status&&console.debug("[Visual Builder] Error retrieving resolved variant permissions",s[2].reason);let d="fulfilled"===s[0].status?s[0].value:void 0;return{acl:d,workflowStage:"fulfilled"===s[1].status?s[1].value:void 0,resolvedVariantPermissions:"fulfilled"===s[2].status?s[2].value:void 0}}function aF(){return r0("div",{className:r1()["visual-builder__variant-indicator"],children:r0(oS,{size:"18px"})})}var a$=e=>{let{data:t}=e;return iv.get(),r0("div",{className:"collab-icon",onClick:async()=>{lx?.send(lE.OPEN_FIELD_COMMENT_MODAL,{fieldMetadata:t?.fieldMetadata,discussion:t?.discussion,fieldSchema:t?.fieldSchema,absolutePath:t.absolutePath}),oo({threadUid:"",action:"close"}),iv.set("collab.isFeedbackMode",!0)},children:r0(ll,{})})};function aj(){document.querySelectorAll(".highlighted-comment").forEach(e=>{if(e&&e instanceof HTMLElement){let t=e.getAttribute("field-path");if(t){let i=document.querySelector(`[data-cslp="${t}"]`);if(i&&i instanceof HTMLElement){let{top:t,left:r}=i.getBoundingClientRect();e.style.top=`${t-25}px`,e.style.left=`${r-25}px`}else e.remove()}}})}var aW=rm` 1513 display: none; 1514`,az=i(1182);function aZ(e){return e.split(".").slice(0,-1).join(".")}function aG(e,t){return e.closest(`[data-cslp="${t}"]`)}var aq=new Set(["http:","https:","mailto:","tel:"]);function aY(e){e.overlayWrapper&&e.editableElement&&(da(e.editableElement,e.overlayWrapper,e.isFieldDisabled),e.resizeObserver.observe(e.editableElement))}async function aK(e){var t,i,r,l,n,o,a,s,d,u,c,f,p,h;let v,_,b=e.event.target,m=b?.closest("a")??null,g=b&&(b.hasAttribute("data-cslp")||b.closest("[data-cslp]")),y=b?.getAttribute("data-cslp");if(rx(y)){let e=document.querySelectorAll(`[data-cslp="${y}"]`);e.length>
15141&&e.forEach(e=>{if(!e.hasAttribute("data-cslp-unique-id")){let t=`cslp-${J()}`;e.setAttribute("data-cslp-unique-id",t)}})}if(b?.getAttribute("data-studio-ui")==="true")return;if(e.event.altKey){if(m){let{href:t,target:i,protocol:r}=m;e.event.preventDefault(),e.event.stopPropagation(),t&&aq.has(r)&&("_blank"===i?window.open(t,"_blank","noopener,noreferrer"):window.location.href=t)}return}(null!==m||g&&!b.closest(".visual-builder__empty-block"))&&(e.event.preventDefault(),e.event.stopPropagation());let w=iv.get();if(w?.collab.enable===!0){if(w?.collab.pauseFeedback)return;let i=(t=az(b))?t.replace(/\/svg/g,"/*[name()='svg']"):"";if(!b)return;let r=b.getBoundingClientRect(),l=(e.event.clientX-r.left)/r.width,n=(e.event.clientY-r.top)/r.height;oa(b)||(e.event.preventDefault(),e.event.stopPropagation()),oa(b)?iv.set("collab.isFeedbackMode",!1):w?.collab.isFeedbackMode?oe({xpath:i,relativeX:l,relativeY:n},{isNewThread:!0,updateConfig:!0}):(oo({threadUid:"",action:"close"}),iv.set("collab.isFeedbackMode",!0));return}let C=lF(e.event);if(i=C,lx?.send(lE.MOUSE_CLICK,{cslpData:i?.cslpData,fieldMetadata:i?.fieldMetadata}).catch(e=>{console.warn("Error while sending post message",e)}),!C||!e.overlayWrapper||!e.visualBuilderContainer)return;let{editableElement:x,fieldMetadata:E}=C,{content_type_uid:L,fieldPath:S}=E;if(lL.hasFieldSchema(L,S)){let t=await lL.getFieldSchema(L,S);if(t&&oV(t,E)){let t=aZ(E.cslpValue),i=aG(x,t);i?i.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,clientX:e.event.clientX,clientY:e.event.clientY})):w.debug&&console.debug("[Visual Builder] Custom field multiple instance: whole-field parent not found in DOM for CSLP",t);return}}let M=await oO(E),O=!!M&&Object.values(M).some(e=>!0===e);if(r=e,l=x,((v=dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM)&&v!==l||r.reEvaluate)&&dn({overlayWrapper:r.overlayWrapper,visualBuilderContainer:r.visualBuilderContainer,focusedToolbar:r.focusedToolbar,resizeObserver:r.resizeObserver}),(n=x).classList.contains(dU)||n.classList.contains("visual-builder__empty-block"))return;let A=dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(o=A,a=x,s=e,o&&o===a&&!s.reEvaluate)return;dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM=x,d=e,u=C,c=x,f=O,dN.VisualBuilderGlobalState.value.isFocussed=!0,aY({overlayWrapper:d.overlayWrapper,resizeObserver:d.resizeObserver,editableElement:c}),function(e){let{editableElement:t}=e.eventDetails;t&&e.focusedToolbar&&function(e,t,i,r=!1,l){a4(e,t,l),l?.isHover||a8(e,t,i,r)}(e.eventDetails,e.focusedToolbar,e.hideOverlay,e.isVariant,e.options)}({eventDetails:u,focusedToolbar:d.focusedToolbar,hideOverlay:()=>{du({visualBuilderContainer:d.visualBuilderContainer,visualBuilderOverlayWrapper:d.overlayWrapper,focusedToolbar:d.focusedToolbar,resizeObserver:d.resizeObserver})},isVariant:f});let{cslpValue:T}=E;document.querySelectorAll(`.highlighted-comment[field-path="${T}"]`).forEach(e=>{e.classList.add(aW)}),await aX(e,C,E,x,A),p=e,h=x,_=new MutationObserver(e=>{e.forEach(e=>{"attributes"===e.type&&"data-cslp"===e.attributeName&&(_?.disconnect(),dN.VisualBuilderGlobalState.value.focusElementObserver=null,aK({...p,reEvaluate:!0}))})}),dN.VisualBuilderGlobalState.value.focusElementObserver=_,_.observe(h,{attributes:!0})}async function aX(e,t,i,r,l){let{content_type_uid:n,entry_uid:o,fieldPath:a,locale:s,variant:d,fieldPathWithIndex:u}=i,c=await lL.getFieldSchema(n,a),{acl:f,workflowStage:p,resolvedVariantPermissions:h}=await aU({entryUid:o,contentTypeUid:n,locale:s,variantUid:d,fieldPathWithIndex:u});if(c){let{isDisabled:i}=lH(c,t,h,f,p);i&&aY({overlayWrapper:e.overlayWrapper,resizeObserver:e.resizeObserver,editableElement:r,isFieldDisabled:!0})}lx?.send(lE.FOCUS_FIELD,{DOMEditStack:lj(r)}),await dl(t,{visualBuilderContainer:e.visualBuilderContainer,resizeObserver:e.resizeObserver,lastEditedField:l})}async function aQ(){let e=dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM,t=dN.VisualBuilderGlobalState.value.previousHoveredTargetDOM,i=e?.getAttribute("data-cslp"),r=e?.getAttribute("data-cslp-unique-id")||null,l=!!e;try{l&&await aJ();let i=t||e;if(i){let e=i.getAttribute("data-cslp");if(rx(e)){let t=rE(e);lL.clearContentTypeSchema(t.content_type_uid)}}lL.clear()}catch(e){console.error("Error handling revalidate field data:",e),window.location.reload()}finally{l&&rx(i)&&await a1(i,r)}}async function aJ(){let{visualBuilderContainer:e,overlayWrapper:t,focusedToolbar:i}=a2();e&&t&&(ds({visualBuilderContainer:e,visualBuilderOverlayWrapper:t,focusedToolbar:i,resizeObserver:new ResizeObserver(()=>{}),noTrigger:!0}),dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM=null,dN.VisualBuilderGlobalState.value.isFocussed=!1)}async function a1(e,t){try{let i=t&&document.querySelector(`[data-cslp-unique-id="${t}"]`)||document.querySelector(`[data-cslp="${e}"]`);if(!i)return;let{visualBuilderContainer:r,overlayWrapper:l,focusedToolbar:n}=a2();if(!r||!l)return;let o=new MouseEvent("click",{bubbles:!0,cancelable:!0});Object.defineProperty(o,"target",{value:i,enumerable:!0}),await aK({event:o,previousSelectedEditableDOM:null,visualBuilderContainer:r,overlayWrapper:l,focusedToolbar:n,resizeObserver:new ResizeObserver(()=>{})})}catch(e){console.warn("Could not refocus element after revalidation:",e)}}function a2(){return{visualBuilderContainer:document.querySelector(".visual-builder__container"),overlayWrapper:document.querySelector(".visual-builder__overlay__wrapper"),focusedToolbar:document.querySelector(".visual-builder__focused-toolbar")}}async function a5(e){return await lx?.send(lE.GET_FIELD_DISPLAY_NAMES,e)}async function a0(e){try{let t=await lx?.send(lE.GET_CONTENT_TYPE_NAME,{content_type_uid:e});return t?.contentTypeName}catch(e){return console.warn("[getFieldLabelWrapper] Error getting content type name",e),""}}async function a3(){try{return await lx?.send(lE.REFERENCE_MAP,{})??{}}catch(e){return console.warn("[getFieldLabelWrapper] Error getting reference parent map",e),{}}}function a7(e){let{reason:t,workflowRequestUi:i,usePlainDataTooltip:r,onLinkVariant:l,onRequestEditAccess:n}=e,o=tp(null),[a,s]=tu(!1),d=rK(r1()["visual-builder__custom-tooltip"],a&&r1()["visual-builder__custom-tooltip--below"]),u=rK(r1()["visual-builder__custom-tooltip"],a&&r1()["visual-builder__custom-tooltip--below"],r1()["visual-builder__custom-tooltip--workflow-access"]);return r0("div",{ref:o,onMouseEnter:()=>{let e=o.current;if(!e)return;let{top:t}=e.getBoundingClientRect();s(t<148)},className:rK(r1()["visual-builder__tooltip--persistent"],a&&r1()["visual-builder__tooltip--persistent--below"]),"data-tooltip":r?t:void 0,children:[t?.includes(lR)?r0("div",{className:d,onClick:l,children:(()=>{let[e,i]=t.split(lD);return r0(ej,{children:[e,r0("span",{style:{textDecoration:"underline"},children:lD}),i]})})()}):null,"request"===i&&t?r0("div",{className:u,children:[r0("span",{children:t})," ",r0("span",{role:"button",tabIndex:0,style:{textDecoration:"underline",cursor:"pointer"},onClick:e=>{e.stopPropagation(),n()},onKeyDown:e=>
1514{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),n())},children:"Request Edit Access"})]}):null,"pending"===i&&t?r0("div",{className:u,children:t}):null,r0(le,{})]})}var a6=function(e){let{eventDetails:t}=e,[i,r]=tu({text:"",contentTypeName:"",icon:r0(r7,{}),prefixIcon:null,disabled:!1,isVariant:!1,isReference:!1,referenceFieldName:"",parentContentTypeName:""}),[l,n]=tu({}),[o,a]=tu(!0),[s,d]=tu(!1),[u,c]=tu(!1);return tf(()=>{let i=async()=>{a(!0);let i=nS([e.fieldMetadata,...e.parentPaths.filter(e=>e).map(e=>rE(e))],"cslpValue"),[l,o,s,u]=await Promise.all([a5(i),lL.getFieldSchema(e.fieldMetadata.content_type_uid,e.fieldMetadata.fieldPath),a0(e.fieldMetadata.content_type_uid),a3()]),c=u[e.fieldMetadata.entry_uid],f=!!c,p=c?c[0].referenceFieldName:"",h=c?c[0].contentTypeTitle:"";if(f){let i=t.editableElement.closest(`[data-cslp]:not([data-cslp^="${e.fieldMetadata.content_type_uid}"])`);if(i){let e=i.getAttribute("data-cslp");if(rx(e)){let t=rE(e).content_type_uid,i=c?.find(e=>e.contentTypeUid===t);i&&(p=i.referenceFieldName,h=i.contentTypeTitle)}}}if(lS(l)||!o){a(!1),d(!0);return}let{acl:v,workflowStage:_,resolvedVariantPermissions:b}=await aU({entryUid:e.fieldMetadata.entry_uid,contentTypeUid:e.fieldMetadata.content_type_uid,locale:e.fieldMetadata.locale,variantUid:e.fieldMetadata.variant,fieldPathWithIndex:e.fieldMetadata.fieldPathWithIndex}),{isDisabled:m,reason:g,workflowRequestUi:y}=lH(o,t,b,v,_),w=async()=>{try{await lx?.send(lE.OPEN_REQUEST_EDIT_ACCESS,{entryUid:e.fieldMetadata.entry_uid,contentTypeUid:e.fieldMetadata.content_type_uid,locale:e.fieldMetadata.locale,variantUid:e.fieldMetadata.variant})}catch(e){console.error("Error opening request edit access flow:",e)}},C=async()=>{try{if(o.field_metadata?.canLinkVariant){let t=await lx?.send(lE.OPEN_LINK_VARIANT_MODAL,{contentTypeUid:e.fieldMetadata.content_type_uid});if(!t||t.type===lb.ERROR)return;t.type===lb.SUCCESS&&await aQ()}}catch(e){console.error("Error in link variant modal flow:",e)}},x=l?.[e.fieldMetadata.cslpValue]??o.display_name,E=!!e?.parentPaths?.length,L=!!e.fieldMetadata.variant,S=g&&!g.includes(lR)&&null==y;r({text:x,contentTypeName:s??"",icon:m?r0(a7,{reason:g,...null!=y?{workflowRequestUi:y}:{},usePlainDataTooltip:!!S,onLinkVariant:C,onRequestEditAccess:w}):E?r0(r7,{}):r0(ej,{}),isReference:f,prefixIcon:lZ[lO(o)],disabled:m,referenceFieldName:p,parentContentTypeName:h,isVariant:L}),l&&n(l),Object.keys(l||{})?.length===i.length&&a(!1)};try{i()}catch(e){console.warn("[getFieldLabelWrapper] Error fetching field label data",e)}},[e]),r0("div",{className:rK("visual-builder__focused-toolbar__field-label-container",r1()["visual-builder__focused-toolbar__field-label-container"]),children:[i.isVariant?r0(aF,{}):null,r0(aP,{data:{contentTypeName:i.parentContentTypeName,referenceFieldName:i.referenceFieldName},disabled:!i.isReference||u,children:r0("div",{className:rK("visual-builder__focused-toolbar__field-label-wrapper",r1()["visual-builder__focused-toolbar__field-label-wrapper"],{"visual-builder__focused-toolbar--field-disabled":i.disabled},{[r1()["visual-builder__focused-toolbar--field-disabled"]]:i.disabled},{"field-label-dropdown-open":u,[r1()["field-label-dropdown-open"]]:u},{"visual-builder__focused-toolbar--variant":i.isVariant},{[r1()["visual-builder__focused-toolbar--variant"]]:i.isVariant}),onClick:()=>c(e=>!e),"data-testid":"visual-builder__focused-toolbar__field-label-wrapper","data-hovered-cslp":e.fieldMetadata.cslpValue,children:[r0("button",{className:rK("visual-builder__focused-toolbar__field-label-wrapper__current-field visual-builder__button visual-builder__button--primary visual-builder__button-loader",r1()["visual-builder__focused-toolbar__field-label-wrapper__current-field"],r1()["visual-builder__button"],r1()["visual-builder__button--primary"],r1()["visual-builder__button-loader"],s&&r1()["visual-builder__button-error"]),disabled:o,children:[!i.isReference||o||s?null:r0("div",{className:rK("visual-builder__reference-icon-container",r1()["visual-builder__reference-icon-container"]),children:[r0("div",{className:rK("visual-builder__field-icon",r1()["visual-builder__field-icon"]),dangerouslySetInnerHTML:{__html:lZ.reference},"data-testid":"visual-builder__field-icon-caret"}),r0(lu,{})]}),!i.contentTypeName||o||s?null:r0(ej,{children:[r0(ld,{}),r0("div",{className:rK("visual-builder__focused-toolbar__text",r1()["visual-builder__focused-toolbar__text"]),"data-testid":"visual-builder__focused-toolbar__ct-name",children:i.contentTypeName+" : "})]}),i.prefixIcon?r0("div",{className:rK("visual-builder__field-icon",r1()["visual-builder__field-icon"]),dangerouslySetInnerHTML:{__html:i.prefixIcon},"data-testid":"visual-builder__field-icon"}):null,i.text?r0("div",{className:rK("visual-builder__focused-toolbar__text",r1()["visual-builder__focused-toolbar__text"]),"data-testid":"visual-builder__focused-toolbar__text",children:i.text}):null,s?null:o?r0(oE,{}):i.icon,s?r0(oB,{}):null]}),e.parentPaths.map((t,i)=>r0("button",{className:rK("visual-builder__focused-toolbar__field-label-wrapper__parent-field visual-builder__button visual-builder__button--secondary visual-builder__focused-toolbar__text",r1()["visual-builder__focused-toolbar__field-label-wrapper__parent-field"],r1()["visual-builder__button"],r1()["visual-builder__button--secondary"],r1()["visual-builder__focused-toolbar__text"]),"data-target-cslp":t,style:{to
1514p:`${-((i+1)*30)}px`},onClick:()=>{let i;(i=e.getParentEditableElement(t))&&i.click()},children:l[t]},t))]})})]})};async function a8(e,t,i,r=!1,l){let{isHover:n}=l||{},o=".visual-builder__focused-toolbar__multiple-field-toolbar";if(t.querySelector(o)&&!n)return;let{acl:a,workflowStage:s,resolvedVariantPermissions:d}=await aU({entryUid:e.fieldMetadata.entry_uid,contentTypeUid:e.fieldMetadata.content_type_uid,locale:e.fieldMetadata.locale,variantUid:e.fieldMetadata.variant,fieldPathWithIndex:e.fieldMetadata.fieldPathWithIndex});if(t.querySelector(o)&&!n)return;let u=document.createDocumentFragment();e0(r0(oI,{eventDetails:e,hideOverlay:i,isVariant:r,entryPermissions:a,entryWorkflowStageDetails:s,resolvedVariantPermissions:d}),u),t.append(u)}function a4(e,t,i){let{isHover:r}=i||{},l=document.querySelector(".visual-builder__focused-toolbar__field-label-wrapper"),{editableElement:n,fieldMetadata:o}=e;if(l)if(!r)return;else{if(l.getAttribute("data-hovered-cslp")===o.cslpValue)return;a9(t)}let a=n.getBoundingClientRect(),s=a.top+window.scrollY-8,d=a.top+window.scrollY<42?s+a.height+42:s,u=Math.max(a.left-2,8);window.scrollX+window.innerWidth-a.left<180?(t.style.justifyContent="flex-end",t.style.left=`${a.right+2}px`):(t.style.justifyContent="flex-start",t.style.left=`${u}px`),t.style.top=`${d}px`;let c=function(e,t){let i=[],r=e.parentElement;for(;(t>0||r===window.document.body)&&r;)r.hasAttribute(l_)&&(i.push(r.getAttribute(l_)),t--),r=r.parentElement;return i}(n,2),f=document.createDocumentFragment();e0(r0(a6,{fieldMetadata:o,eventDetails:e,parentPaths:c,getParentEditableElement:e=>n.closest(`[${l_}="${e}"]`)}),f),t.appendChild(f)}function a9(e){e.innerHTML="",[lE.DELETE_INSTANCE,lE.UPDATE_DISCUSSION_ID,lE.FIELD_LOCATION_DATA].forEach(e=>{lx?.requestMessageHandlers?.has(e)&&lx?.unregisterEvent?.(e)})}var se=iv.get();function st(e){e&&lG({fieldType:"empty",customCursor:e})}function si(e){e&&lG({fieldType:"discussion",customCursor:e})}function sr(e,t){if(t){let i=e.clientY,r=e.clientX;t.style.left=`${r}px`,t.style.top=`${i}px`}}var sl=ik(async function(e){if(!e)return;let{editableElement:t,eventDetails:i,content_type_uid:r,fieldPath:l,fieldMetadata:n,fieldDisabled:o}=e;if(!t)return;let a=!!n.variant;lq(t,o,a);let s=await lL.getFieldSchema(r,l);if(!s)return;let{acl:d,workflowStage:u,resolvedVariantPermissions:c}=await aU({entryUid:n.entry_uid,contentTypeUid:n.content_type_uid,locale:n.locale,variantUid:n.variant,fieldPathWithIndex:n.fieldPathWithIndex}),{isDisabled:f}=lH(s,i,c,d,u);lq(t,o||f,a)},50,{trailing:!0});function sn(e){if(!e)return;let t=e.querySelector(".visual-builder__hover-outline");t&&t.classList.add(r1()["visual-builder__hover-outline--hidden"])}function so(e){document?.body&&document.body.classList.contains(r1()["visual-builder__default-cursor--disabled"])&&document.body.classList.remove(r1()["visual-builder__default-cursor--disabled"]),e?.classList.remove("visible")}function sa(e){document?.body&&!document.body.classList.contains(r1()["visual-builder__default-cursor--disabled"])&&document.body.classList.add(r1()["visual-builder__default-cursor--disabled"]),se.collab.enable&&(!se.collab.isFeedbackMode||se.collab.pauseFeedback)||e?.classList.add("visible")}var ss=ik(async e=>{let t=lF(e.event);t&&e.overlayWrapper&&e.visualBuilderContainer&&e.focusedToolbar&&a4(t,e.focusedToolbar,{isHover:!0})},50,{trailing:!0}),sd=async e=>await ss(e),su=iN(async e=>{let t=lF(e.event),i=e.event.target;if(se?.collab.enable&&se?.collab.pauseFeedback)return void so(e.customCursor);if(!t){if(i&&(i.classList.contains("visual-builder__overlay")||i.hasAttribute("contenteditable")&&"true"===i.getAttribute("contenteditable")||oa(i))){sr(e.event,e.customCursor),so(e.customCursor);return}i&&(i.classList.contains("visual-builder__focused-toolbar__field-label-wrapper")||i.classList.contains("visual-builder__focused-toolbar__field-label-wrapper__current-field")||i.classList.contains("visual-builder__focused-toolbar__field-label-wrapper__parent-field"))&&(e.customCursor&&so(e.customCursor),sl(void 0),sd({event:e.event,overlayWrapper:e.overlayWrapper,visualBuilderContainer:e.visualBuilderContainer,previousSelectedEditableDOM:dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM,focusedToolbar:e.focu
1514sedToolbar,resizeObserver:e.resizeObserver})),se?.collab.enable||st(e.customCursor),sp({eventTarget:e.event.target,visualBuilderContainer:e.visualBuilderContainer,overlayWrapper:e.overlayWrapper}),sr(e.event,e.customCursor),se?.collab.enable&&se?.collab.isFeedbackMode&&(sa(e.customCursor),si(e.customCursor));return}let{editableElement:r,fieldMetadata:l}=t,{content_type_uid:n,fieldPath:o}=l;if(lL.hasFieldSchema(n,o)){let t=await lL.getFieldSchema(n,o);if(t&&oV(t,l)){let t=aZ(l.cslpValue),i=aG(r,t);i?i.dispatchEvent(new MouseEvent("mousemove",{bubbles:!0,cancelable:!0,clientX:e.event.clientX,clientY:e.event.clientY})):(se.debug&&console.debug("[Visual Builder] Custom field multiple instance: whole-field parent not found in DOM for CSLP",t),st(e.customCursor),sr(e.event,e.customCursor));return}}if(dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM&&dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM.isSameNode(r))return void so(e.customCursor);if(e.customCursor){if(se?.collab.enable&&se?.collab.isFeedbackMode){si(e.customCursor),sr(e.event,e.customCursor),sa(e.customCursor);return}if(se?.collab.enable&&!se?.collab.isFeedbackMode)return void so(e.customCursor);dN.VisualBuilderGlobalState.value.previousHoveredTargetDOM!==r&&(st(e.customCursor),sp({eventTarget:e.event.target,visualBuilderContainer:e.visualBuilderContainer,overlayWrapper:e.overlayWrapper})),lL.hasFieldSchema(n,o)||lG({fieldType:"loading",customCursor:e.customCursor}),dN.VisualBuilderGlobalState.value.previousHoveredTargetDOM!==r&&sc({eventDetails:t,customCursor:e.customCursor}),sr(e.event,e.customCursor),sa(e.customCursor)}r.classList.contains(dU)||r.classList.contains("visual-builder__empty-block")||(sl({editableElement:r,eventDetails:t,content_type_uid:n,fieldPath:o,fieldMetadata:l}),dN.VisualBuilderGlobalState.value.isFocussed||sd({event:e.event,overlayWrapper:e.overlayWrapper,visualBuilderContainer:e.visualBuilderContainer,previousSelectedEditableDOM:dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM,focusedToolbar:e.focusedToolbar,resizeObserver:e.resizeObserver})),dN.VisualBuilderGlobalState.value.previousHoveredTargetDOM!==r&&(dN.VisualBuilderGlobalState.value.previousHoveredTargetDOM=r)},10);async function sc({eventDetails:e,customCursor:t}){if(!t)return;let{fieldMetadata:i}=e,r=await lL.getFieldSchema(i.content_type_uid,i.fieldPath);if(!r)return;let{acl:l,workflowStage:n,resolvedVariantPermissions:o}=await aU({entryUid:i.entry_uid,contentTypeUid:i.content_type_uid,locale:i.locale,variantUid:i.variant,fieldPathWithIndex:i.fieldPathWithIndex}),{isDisabled:a}=lH(r,e,o,l,n);lG({fieldType:lO(r),customCursor:t,fieldDisabled:a})}var sf=async e=>await su(e);function sp(e,t=!1){let{visualBuilderContainer:i,overlayWrapper:r,eventTarget:l}=e;if(!i)return;if(t){let e=lI(i,!0);e?.forEach(e=>e.remove())}let n=lI(i);if(!n)return;let[o,a]=n;r?.classList.contains("visible")||l&&(o.contains(l)||a.contains(l))||(a.remove(),o.remove())}function sh({parentCslp:e,index:t}){let i=document.querySelector(`[data-cslp='${e}']`);if(i){let r=[e,t].join("."),l=!1,n=null;new MutationObserver((e,t)=>{let o=i.querySelector(`[data-cslp='${r}']`);if(o){setTimeout(()=>o.click(),350),t.disconnect(),l=!0;return}l||n||(n=setTimeout(()=>{t.disconnect(),l=!1},4e3))}).observe(i,{childList:!0,subtree:!0,attributes:!1})}}let sv=function(e,t,i){var r=-1,l=e.length;t<0&&(t=-t>l?0:l+t),(i=i>l?l:i)<0&&(i+=l),l=t>i?0:i-t>>>0,t>>>=0;for(var n=Array(l);++r<l;)n[r]=e[r+t];return n},s_=function(e,t,i){var r=e.length;return i=void 0===i?r:i,!t&&i>=r?e:sv(e,t,i)};var sb=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let sm=function(e){return sb.test(e)};var sg="\\ud800-\\udfff",sy="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",sw="\\ud83c[\\udffb-\\udfff]",sC="[^"+sg+"]",sx="(?:\\ud83c[\\udde6-\\uddff]){2}",sE="[\\ud800-\\udbff][\\udc00-\\udfff]",sL="(?:"+sy+"|"+sw+")?",sS="[\\ufe0e\\ufe0f]?",sM="(?:\\u200d(?:"+[sC,sx,sE].join("|")+")"+sS+sL+")*",sO=RegExp(sw+"(?="+sw+")|"+("(?:"+[sC+sy+"?",sy,sx,sE,"["+sg+"]"].join("|"))+")"+(sS+sL+sM),"g");let sA=function(e){var t,i=sm(e=(0,_.A)(e))?sm(t=e)?t.match(sO)||[]:t.split(""):void 0,r=i?i[0]:e.charAt(0),l=i?s_(i,1).join(""):e.slice(1);return r.toUpperCase()+l},sT=function(e,t,i,r){var l=-1,n=null==e?0:e.length;for(r&&n&&(i=e[++l]);++l<n;)i=t(i,e[l],l,e);return i};var sk=(s={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"},function(e){return null==s?void 0:s[e]}
1514),sN=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sR=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),sD=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,sH=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sP="\\ud800-\\udfff",sV="\\u2700-\\u27bf",sI="a-z\\xdf-\\xf6\\xf8-\\xff",sB="A-Z\\xc0-\\xd6\\xd8-\\xde",sU="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",sF="['â]",s$="["+sU+"]",sj="["+sI+"]",sW="[^"+sP+sU+"\\d+"+sV+sI+sB+"]",sz="(?:\\ud83c[\\udde6-\\uddff]){2}",sZ="[\\ud800-\\udbff][\\udc00-\\udfff]",sG="["+sB+"]",sq="(?:"+sj+"|"+sW+")",sY="(?:"+sG+"|"+sW+")",sK="(?:"+sF+"(?:d|ll|m|re|s|t|ve))?",sX="(?:"+sF+"(?:D|LL|M|RE|S|T|VE))?",sQ="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",sJ="[\\ufe0e\\ufe0f]?",s1="(?:\\u200d(?:"+["[^"+sP+"]",sz,sZ].join("|")+")"+sJ+sQ+")*",s2="(?:"+["["+sV+"]",sz,sZ].join("|")+")"+(sJ+sQ+s1),s5=RegExp([sG+"?"+sj+"+"+sK+"(?="+[s$,sG,"$"].join("|")+")",sY+"+"+sX+"(?="+[s$,sG+sq,"$"].join("|")+")",sG+"?"+sq+"+"+sK,sG+"+"+sX,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",s2].join("|"),"g");let s0=function(e,t,i){if(e=(0,_.A)(e),void 0===(t=i?void 0:t)){var r;return(r=e,sH.test(r))?e.match(s5)||[]:e.match(sD)||[]}return e.match(t)||[]};var s3=RegExp("['â]","g");let s7=function(e){return function(t){var i;return sT(s0((i=t,(i=(0,_.A)(i))&&i.replace(sN,sk).replace(sR,"")).replace(s3,"")),e,"")}};var s6=s7(function(e,t,i){var r;return t=t.toLowerCase(),e+(i?(r=t,sA((0,_.A)(r).toLowerCase())):t)});function s8(e){return Object.keys(e).reduce((t,i)=>(t[s6(i)]=e[i],t),{})}function s4(e,t){let i,r,l,n,o=(r=Array.from(i=window.getComputedStyle(e)),l=["position","left","top","right","bottom","text-overflow","text-transform","margin","margin-block-end","margin-block-start","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-bottom","-webkit-user-modify","cursor","direction","unicode-bidi"],n={},r.forEach(e=>{if(!l.includes(e)){let t=i.getPropertyValue(e);n[e]=t}}),n),a=e.getBoundingClientRect();t&&(o=s8(o));let s=function({rect:e,camelCase:t}){let i={position:"absolute",top:`${e.top+window.scrollY}px`,left:`${e.left+window.scrollX}px`,height:"auto","min-height":`${Math.abs(e.height)}px`,"white-space":"normal","text-transform":"none","text-wrap-mode":"wrap","text-overflow":"visible"};return t?s8(i):i}({rect:a,camelCase:t});return{...o,...s}}var s9=function(e){let t=s4(e.editableElement,!0);return r0("div",{className:rK("visual-builder__pseudo-editable-element",r1()["visual-builder__pseudo-editable-element"]),"data-testid":"visual-builder__pseudo-editable-element",style:t,children:e.config.textContent})};function de(e){let t="",i=!0;return!function e(r){for(let l=0;l<r.length;l++){let n=r[l];if("BR"===n.nodeName){t+="\n",i=!0;continue}"DIV"===n.nodeName&&!1===i&&0!==l&&(t+="\n"),i=!1,3===n.nodeType&&n.textContent&&""!==n.textContent.trim()&&(t+=n.textContent),e(n.childNodes)}}(e.childNodes),t}async function dt({editableElement:e,visualBuilderContainer:t,overlayWrapper:i,focusedToolbar:r,resizeObserver:l}){let n=dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(!t||!e||!n||!i)return;let o=e?.getAttribute("data-cslp")||"",a=n?.getAttribute("data-cslp-unique-id"),s=document.querySelector(`[data-cslp-unique-id="${a}"]`)||document.querySelector(`[data-cslp="${o}"]`);if(!s&&l)return void du({visualBuilderOverlayWrapper:i,focusedToolbar:r,visualBuilderContainer:t,resizeObserver:l,noTrigger:!0});s!==n&&(n=s,dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM=n);let d=e?.getAttribute("data-cslp")||"";if(!rx(d))return;let u=rE(d);sn(t);let c=await lL.getFieldSchema(u.content_type_uid,u.fieldPath),{acl:f,workflowStage:p,resolvedVariantPermissions:h}=await aU({entryUid:u.entry_uid,contentTypeUid:u.content_type_uid,locale:u.locale,variantUid:u.variant,fieldPathWithIndex:u.f
1514ieldPathWithIndex}),{isDisabled:v}=lH(c,{editableElement:e,fieldMetadata:u},h,f,p);da(n,i,v);let _=t.querySelector(".visual-builder__pseudo-editable-element");if(_){let t=Object.entries(s4(e)).reduce((e,[t,i])=>`${e}${t}:${i};`,"");_.style.cssText=t,_.style.visibility="visible"}let b=e.getBoundingClientRect();if(b.width&&b.height){let e=dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(!e)return;!function({focusedToolbar:e,selectedElementDimension:t}){if(e){let i=window.scrollX+window.innerWidth-t.left,r=t.top+window.scrollY-8,l=t.top+window.scrollY<42?r+t.height+42:r,n=Math.max(t.left-2,8);i<180&&("flex-end"!==e.style.justifyContent||e.style.left!==`${t.right+2}px`)?(e.style.justifyContent="flex-end",e.style.left=`${t.right+2}px`):("flex-start"!==e.style.justifyContent||e.style.left!==`${n}px`)&&(e.style.justifyContent="flex-start",e.style.left=`${n}px`),e.style.top!==`${l}px`&&(e.style.top=`${l}px`)}}({focusedToolbar:r,selectedElementDimension:e.getBoundingClientRect()})}let m=lI(t),g=u.multipleFieldMetadata?.parentDetails?.parentCslpValue;if(m&&g&&m.length>1&&m[0]&&m[1]){let[t,i]=m,r=lU(e,g),l=e.getBoundingClientRect();if("horizontal"===r){let e=l.top+(l.bottom-l.top)/2+window.scrollY;t.style.left=`${l.left}px`,t.style.top=`${e}px`,i.style.left=`${l.right}px`,i.style.top=`${e}px`}else if("vertical"===r){let e=l.left+(l.right-l.left)/2;t.style.left=`${e}px`,t.style.top=`${l.top+window.scrollY}px`,i.style.left=`${e}px`,i.style.top=`${l.bottom+window.scrollY}px`}}}var di=ik(e=>{e.preventDefault();let t=e.clipboardData;document.execCommand("inserttext",!1,t?.getData("text/plain"))},100,{leading:!0});function dr({expectedFieldData:e,editableElement:t,fieldType:i,elements:r}){let{visualBuilderContainer:l,resizeObserver:n}=r,o=t;dN.VisualBuilderGlobalState.value.focusFieldValue=o?.innerText;let a=window.getComputedStyle(o).display,s=t.innerText||t.textContent||"";i===lp.MULTILINE&&(s=de(o),o.addEventListener("paste",di));let d=document.querySelector("[data-cs-last-edited]")===t;if(e&&s!==e||t.offsetWidth<t.scrollWidth||d){let n=function(e,t){let{editableElement:i}=e,r=document.querySelector(".visual-builder__container"),l=document.createDocumentFragment();return e0(r0(s9,{editableElement:i,config:t}),l),r?.appendChild(l),document.querySelector(".visual-builder__pseudo-editable-element")}({editableElement:t},{textContent:e});t.style.visibility="hidden",n.setAttribute(lv,i),l.appendChild(n),o=n,i===lp.MULTILINE&&o.addEventListener("paste",di),r.resizeObserver.observe(n)}else if("inline"===a){let e=iN(()=>{let e=l.querySelector(".visual-builder__overlay__wrapper"),t=l.querySelector(".visual-builder__focused-toolbar");dt({editableElement:o,visualBuilderContainer:l,overlayWrapper:e,focusedToolbar:t,resizeObserver:n})},200);o.addEventListener("input",e)}o.setAttribute("contenteditable","true"),o.setAttribute("dir","auto"),o.addEventListener("input",lA),o.addEventListener("keydown",lk),t.setAttribute("data-cs-last-edited","true"),o.focus()}async function dl(e,t){let{fieldMetadata:i,editableElement:r}=e,{visualBuilderContainer:l,lastEditedField:n,resizeObserver:o}=t,{content_type_uid:a,entry_uid:s,locale:d,variant:u,fieldPath:c,fieldPathWithIndex:f}=i,[p,h]=await Promise.all([lL.getFieldSchema(a,c),lM({content_type_uid:a,entry_uid:s,locale:d},f)]),v=lO(p),{acl:_,workflowStage:b,resolvedVariantPermissions:m}=await aU({entryUid:s,contentTypeUid:a,locale:d,variantUid:u,fieldPathWithIndex:f}),{isDisabled:g}=lH(p,e,m,_,b);if(r.setAttribute(lv,v),oP(p)&&!oV(p,i)&&n!==r){let t="blocks"===p.data_type?"Add Section":void 0;!function(e,t,i){let{editableElement:r,visualBuilderContainer:l,resizeObserver:n}=t,{expectedFieldData:o,fieldSchema:a,disabled:s,label:d}=i,u=e.fieldMetadata.multipleFieldMetadata?.parentDetails?.parentCslpValue;if(!r||!u)return;let c=lU(r,u);if("none"===c||!l)return;let f=r.getBoundingClientRect();sp({visualBuilderContainer:l,eventTarget:null,overlayWrapper:null},!0);let p=l.querySelector(".visual-builder__overlay__wrapper"),h=l.querySelector(".visual-builder__focused-toolbar");if(s)return;let v=e.fieldMetadata.instance.fieldPathWithIndex===e.fieldMetadata.fieldPathWithIndex,_=v?0:e.fieldMetadata.multipleFieldMetadata.index,b=v?o.length:e.fieldMetadata.multipleFieldMetadata.index+1,m=v?e.cslpData:u,g=e=>{sn(l),du({visualBuilderContainer:l,visualBuilderOverlayWrapper:p,focusedToolbar:h,resizeObserver:n}),sh({parentCslp:m,index:e})},y=tV(!1),w=lV({fieldSchema:a,value:o,fieldMetadata:e.fieldMetadata,index:_,onClick:g.bind(null,_),loading:y,label:d}),C=lV({fieldSchema:a,value:o,fieldMetadata:e.fieldMetadata,index:b,onClick:g.bind(null,b),loading:y,label:d});if(l.contains(w)||l.appendChild(w),l.contains(C)||l.appendChild(C),"horizontal"===c){let e=f.top+(f.bottom-f.top)/2+window.scrollY;w.style.left=`${f.left}px`,w.style.top=`${e}px`,C.style.left=`${f.right}px`,C.style.top=`${e}px`}else{let e=f.left+(f.right-f.left)/2;w.style.left=`${e}px`,w.style.top=`${f.top+window.scrollY}px`,C.style.left=`${e}px`,C.style.top=`${f.bottom+window.scrollY}px`}}(e,{editableElement:e.editableElement,visualBuilderContainer:l,resizeObserver:o},{fieldSchema:p,expectedFieldData:h,disabled:g,label:t})}g||function({fieldType:e,fieldSchema:t,fieldMetadata:i,expectedFieldData:r,editableElement:l,elements:n}){if(!lm.includes(e))return;let o=Number(i.instance.fieldPathWithIndex.split(".").at(-1)),a=Number.isFinite(o);if(oP(t)){let t=null;if(Array.isArray(r)){if(!a)return;o>=r.length||(t=r.at(o))}else t=r;dr({fieldType:e,expectedFieldData:t,editableElement:l,elements:n})}else{let t=null;if(a){if(0!==o)return;t=Array.isArray(r)?r.at(0):r}dr({fieldType:e,expectedFieldData:t??r,editableElement:l,elements:n})}}({fieldType:v,fieldSchema:p,fieldMetadata:i,expectedFieldData:h,editableElement:r,elements:t})}function dn(e){let{overlayWrapper:t,visualBuilderContainer:i,focusedToolbar:r}=e;sp({eventTarget:null,visualBuilderContainer:i,overlayWrapper:t},!0);let l=dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM;l&&(l.removeAttribute(lv),l.removeAttribute("contenteditable"),l.removeAttribute("dir"),l.removeEventListener("input",lA),l.removeEventListener("keydown",lk),l.removeEventListener("paste",di),e.resizeObserver.unobserve(l));let n=i?.querySelector(".visual-builder__pseudo-editable-element");n&&(e.resizeObserver.unobserve(n),n.removeEventListener("paste",di),n.remove(),l&&l.style.removeProperty("visibility")),r&&a9(r)}function da(e,t,i){let r=e.getBoundingClientRect();if(0===r.width||0===r.height)return;t.classList.add("visible");let l=r.top+window.scrollY,n=t.querySelector(".visual-builder__overlay--top");n&&(n.style.top="0",n.style.left="0",n.style.width="100%",n.style.height=`calc(${l}px)`);let o=t.querySelector(".visual-builder__overlay--bottom");o&&(o.style.top=`${r.bottom+window.scrollY}px`,o.style.height=`${window.document.body.scrollHeight-r.bottom-window.scrollY}px`,o.style.left="0",o.style.width="100%");let a=t.querySelector(".visual-builder__overlay--left");a&&(a.style.left="0",a.style.top=`${l}px`,a.style.height=`${r.height}px`,a.style.width=`${r.left}px`);let s=t.querySelector(".visual-builder__overlay--right");s&&(s.style.left=`${r.right}px`,s.style.top=`${l}px`,s.style.height=`${r.height}px`,s.style.width=`${document.documentElement.clientWidth-r.right}px`);let d=t.querySelector(".visual-builder__overlay--outline");d&&(d.style.top=`${r.top+window.scrollY}px`,d.style.height=`${r.height}px`,d.style.width=`${r.width}px`,d.style.left=`${r.left}px`,d.style.outlineColor=i?"#909090":"#715cdd")}function ds(e){let{visualBuilderContainer:t,visualBuilderOverlayWrapper:i,focusedToolbar:r,resizeObserver:l,noTrigger:n}=e;
1514if(i){if(i.classList.remove("visible"),i.childNodes.forEach(e=>{e instanceof Element&&e.removeAttribute("style")}),!n&&dN.VisualBuilderGlobalState.value.focusFieldReceivedInput)dd({visualBuilderContainer:t,eventType:lE.UPDATE_FIELD});else if(n){let{previousSelectedEditableDOM:e,focusFieldValue:t}=dN.VisualBuilderGlobalState.value||{};e&&"innerText"in e&&null!=t&&(e.innerText=t)}dN.VisualBuilderGlobalState.value.focusFieldValue=null,dN.VisualBuilderGlobalState.value.focusFieldReceivedInput=!1,dn({overlayWrapper:i,visualBuilderContainer:t,focusedToolbar:r,resizeObserver:l})}}function dd(e){let{visualBuilderContainer:t,eventType:i}=e,r=dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM,l=t?.querySelector("div.visual-builder__pseudo-editable-element");if(r&&(r.hasAttribute("contenteditable")||l)){let e=l||r,t="innerText"in e?e.innerText:e.textContent,n=r.getAttribute("data-cslp");if(!rx(n))return;let o=rE(n);lL.getFieldSchema(o.content_type_uid,o.fieldPath).then(r=>{if(r&&i===lE.UPDATE_FIELD){let i=lO(r);i&&i===lp.MULTILINE&&(t=de(e),e.innerText=t)}}).finally(()=>{lx?.send(i,{data:t,fieldMetadata:o})})}}function du(e){dN.VisualBuilderGlobalState.value.isFocussed=!1;let t=dN.VisualBuilderGlobalState.value.focusElementObserver;t&&(t.disconnect(),dN.VisualBuilderGlobalState.value.focusElementObserver=null),ds({visualBuilderContainer:e.visualBuilderContainer,visualBuilderOverlayWrapper:e.visualBuilderOverlayWrapper,focusedToolbar:e.focusedToolbar,resizeObserver:e.resizeObserver,noTrigger:!!e.noTrigger}),document.querySelectorAll(`.highlighted-comment.${aW}`).forEach(e=>{e.classList.remove(aW)}),dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM&&(e.resizeObserver.unobserve(dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM),dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM=null)}function dc(){let e=Array.from(document.querySelectorAll("[data-cslp]")),t=new Map;return e.forEach(e=>{let i=e.getAttribute("data-cslp");if(!rx(i))return;let r=rE(i);t.set(r.entry_uid,{entryUid:r.entry_uid,contentTypeUid:r.content_type_uid,locale:r.locale})}),{entriesInCurrentPage:Array.from(t.values())}}var df=function(e){let t=el(),i=en();return t||i?r0(ej,{children:[r0("style",{dangerouslySetInnerHTML:{__html:r2}}),r0("div",{className:rK(r1()["visual-builder__cursor"],"visual-builder__cursor"),"data-testid":"visual-builder__cursor"}),r0("div",{className:rK(r1()["visual-builder__overlay__wrapper"],"visual-builder__overlay__wrapper"),"data-testid":"visual-builder__overlay__wrapper",onClick:t=>{let i=t.currentTarget,r=document.querySelector(".visual-builder__focused-toolbar");du({visualBuilderContainer:e.visualBuilderContainer,visualBuilderOverlayWrapper:i,focusedToolbar:r,resizeObserver:e.resizeObserver})},children:[r0("div",{className:rK("visual-builder__overlay visual-builder__overlay--top",r1()["visual-builder__overlay"]),"data-testid":"visual-builder__overlay--top"}),r0("div",{"data-testid":"visual-builder__overlay--left",className:rK("visual-builder__overlay visual-builder__overlay--left",r1()["visual-builder__overlay"])}),r0("div",{"data-testid":"visual-builder__overlay--right",className:rK("visual-builder__overlay visual-builder__overlay--right",r1()["visual-builder__overlay"])}),r0("div",{"data-testid":"visual-builder__overlay--bottom",className:rK("visual-builder__overlay visual-builder__overlay--bottom",r1()["visual-builder__overlay"])}),r0("div",{"data-testid":"visual-builder__overlay--outline",className:rK("visual-builder__overlay--outline",r1()["visual-builder__overlay--outline"])})]}),r0("div",{className:rK("visual-builder__hover-outline visual-builder__hover-outline--unclickable",r1()["visual-builder__hover-outline"],r1()["visual-builder__hover-outline--unclickable"]),"data-testid":"visual-builder__hover-outline"}),r0("div",{className:rK("visual-builder__focused-toolbar",r1()["visual-builder__focused-toolbar"]),"data-testid":"visual-builder__focused-toolbar"})]}):null},dp=function(e){let t=document.querySelector(".visual-builder__container"),i=el(),r=en();if(!t&&(i||r)){let t=document.createElement("div");t.classList.add(r1()["visual-builder__container"],"visual-builder__container"),t.setAttribute("data-testid","visual-builder__container"),document.body.appendChild(t),e0(r0(df,{visualBuilderContainer:t,resizeObserver:e.resizeObserver}),t)}};function dh(){document.querySelectorAll(`.${r1()["visual-builder__draft-field"]}
1514`).forEach(e=>{e.classList.remove(r1()["visual-builder__draft-field"])})}var dv=e=>{let{content_type_uid:t,entry_uid:i,locale:r,path:l}=e.data.cslpData,n=`${t}.${i}.${r}.${l}`,o=document.querySelector(`[data-cslp="${n}"]`);o&&o.scrollIntoView({behavior:"smooth",block:"center"})},d_=ik(()=>{lx?.send(lE.REQUEST_DISCUSSION_HIGHLIGHTS)},200);function db(){let e=dN.VisualBuilderGlobalState.value.highlightVariantFields,t=dN.VisualBuilderGlobalState.value.variant,i=[],r=t=>{let i=t.getAttribute(l_);if(!rx(i))return void t.childNodes.forEach(e=>{e instanceof HTMLElement&&r(e)});if(!(i.startsWith("v2:")&&t.classList.contains("visual-builder__variant-field"))){if(i.startsWith("v2:")&&!t.classList.contains("visual-builder__variant-field")){t.classList.contains("visual-builder__base-field")&&t.classList.remove("visual-builder__base-field");let i=["visual-builder__variant-field"];e&&i.push(r1()["visual-builder__variant-field-outline"]),t.classList.add(...i)}else i.startsWith("v2:")||(t.classList.contains("visual-builder__variant-field")&&t.classList.remove(r1()["visual-builder__variant-field-outline"],"visual-builder__variant-field"),t.classList.add("visual-builder__base-field"));t.childNodes.forEach(e=>{e instanceof HTMLElement&&r(e)})}};document.querySelectorAll(`[${l_}]`).forEach(l=>{let n=new MutationObserver(o=>{o.forEach(o=>{if("attributes"===o.type&&o.attributeName===l_||"childList"===o.type){o.addedNodes.length>0&&o.addedNodes.forEach(e=>{e instanceof HTMLElement&&r(e)});let a=l.getAttribute(l_);((r,l,n)=>{if(!rx(l))return;if(l.startsWith("v2:")&&!r.classList.contains("visual-builder__variant-field")){r.classList.contains("visual-builder__base-field")&&r.classList.remove("visual-builder__base-field");let t=["visual-builder__variant-field"];e&&t.push(r1()["visual-builder__variant-field-outline"]),r.classList.add(...t)}else!l.startsWith("v2:")&&r.classList.contains("visual-builder__variant-field")?(r.classList.remove(r1()["visual-builder__variant-field-outline"],"visual-builder__variant-field"),r.classList.add("visual-builder__base-field")):l.startsWith("v2:")&&t&&!l.includes(t)&&r.classList.contains("visual-builder__variant-field")&&(r.classList.remove(r1()["visual-builder__variant-field-outline"],"visual-builder__variant-field"),r.classList.add("visual-builder__disabled-variant-field"));if(!n)return;n.disconnect();let o=i.indexOf(n);o>-1&&i.splice(o,1)})(l,a||"",n),d_()}})});i.push(n),n.observe(l,{attributes:!0,childList:!0,subtree:!0})}),setTimeout(()=>{i.length>0&&(i.forEach(e=>e.disconnect()),i.length=0)},8e3)}function dm(e){let t=dN.VisualBuilderGlobalState.value.variantOrder,i=dN.VisualBuilderGlobalState.value.highlightVariantFields;document.querySelectorAll("[data-cslp]").forEach(r=>{let l=r.getAttribute("data-cslp");rx(l)&&(l?.includes(e)?(r.classList.add("visual-builder__variant-field"),i&&r.classList.add(r1()["visual-builder__variant-field-outline"])):l.startsWith("v2:")?function(e,t,i){if(!i||0===i.length)return!1;let{variant:r}=rE(t),l=i.lastIndexOf(e),n=i.lastIndexOf(r||"");return!(n<0)&&n<l}(e,l,t)?r.classList.add("visual-builder__variant-field","visual-builder__lower-order-variant-field"):r.classList.add("visual-builder__disabled-variant-field"):r.classList.add("visual-builder__base-field"))})}var dg=ik(dm,1e3,{trailing:!0});function dy(e=!1){e?document.querySelectorAll(`.${r1()["visual-builder__variant-field-outline"]}`).forEach(e=>{e.classList.remove(r1()["visual-builder__variant-field-outline"])}):document.querySelectorAll(".visual-builder__disabled-variant-field, .visual-builder__variant-field, .visual-builder__base-field, .visual-builder__lower-order-variant-field").forEach(e=>{e.classList.remove("visual-builder__disabled-variant-field","visual-builder__variant-field",r1()["visual-builder__variant-field-outline"],"visual-builder__base-field","visual-builder__lower-order-variant-field")})}function dw(e){dN.VisualBuilderGlobalState.value.highlightVariantFields=e}async function dC(){try{return await lx?.send(lE.GET_HIGHLIGHT_VARIANT_FIELDS_STATUS)??{highlightVariantFields:!1}}catch(e){return console.error("Failed to get highlight variant fields status:",e),{highlightVariantFields:!1}}}var dx=s7(function(e,t,i){return e+(i?" ":"")+sA(t)});function dE(e){let{details:t}=e,i=t.fieldSchema.display_name;async function r(){await lx?.send(lE.ADD_INSTANCE,{fieldMetadata:t.fieldMetadata,index:0}),sh({parentCslp:t.fieldMetadata.cslpValue,index:0})}return r0("div",{className:rK("visual-builder__empty-block",r1()["visual-builder__empty-block"]),children:[r0("div",{className:rK("visual-builder__empty-block-title",r1()["visual-builder__empty-block-title"]),children:["This page doesnât have any"," ",r0("span",{className:rK("visual-builder__empty-block-field-name",r1()["visual-builder__empty-block-field-name"]),children:dx((0,_.A)(i).toLowerCase())})," ","added. Click the button below to add one."]}),r0("button",{className:rK("visual-builder__empty-block-add-button",r1()["visual-builder__empty-block-add-button"]),onClick:()=>r(),type:"button","data-testid":"visual-builder__empty-block-add-button",children:[r0("span",{className:rK("visual-builder__empty-block-plus-icon",r1()["visual-builder__empty-block-plus-icon"]),children:"+"}),"\xa0 Add ",i]})]})}async function dL(e){for(let t of e){let e=t.getAttribute("data-cslp");if(!rx(e))return;let i=rE(e),r=await lL.getFieldSchema(i.content_type_uid,i.fieldPath);if(!r)return;e3(r0(dE,{details:{fieldSchema:r,fieldMetadata:i}}),t)}}var dS=new Map,dM=e=>{let t,{payload:i}=e.data;t={}
1514,i.forEach(e=>{let i=e?.fieldMetadata?.cslpValue;if(!rx(i)||t[i])return;t[i]=!0;let r=document.querySelector(`[data-cslp="${i}"]`);if(r&&r instanceof HTMLElement){let{top:t,left:l}=r.getBoundingClientRect(),n=document.createElement("div");n.setAttribute("field-path",i),n.style.position="fixed",n.style.top=`${t-25}px`,n.style.left=`${l-25}px`,n.style.zIndex="900",n.style.cursor="pointer",n.className="highlighted-comment collab-icon",e0(eF(a$,{data:e}),n);let o=document.querySelector(".visual-builder__container");if(o){let e=o.querySelector(".visual-builder__highlighted-comment-wrapper");e||((e=document.createElement("div")).className="visual-builder__highlighted-comment-wrapper",o.appendChild(e)),e.appendChild(n)}}})},dO=()=>{let e;e=document.querySelectorAll(".highlighted-comment"),e?.forEach(e=>e?.remove())},dA=(e=!1)=>{let t;if(e){let e;return void(e=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread"),e?.forEach(e=>e?.classList.add(n9)),oo({threadUid:"",action:"close"}))}t=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread"),t?.forEach(e=>e?.remove())},dT=[],dk=class e{constructor(){this.customCursor=null,this.overlayWrapper=null,this.visualBuilderContainer=null,this.focusedToolbar=null,this.scrollEventHandler=()=>{ot(),oi(),or(),aj()},this.resizeEventHandler=()=>{let t=e.VisualBuilderGlobalState.value.previousSelectedEditableDOM;aj(),ot(),oi(),or(),t&&this.handlePositionChange(t)},this.resizeObserver=new ResizeObserver(([t])=>{let i=e.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(!this.overlayWrapper||!i||!t.target.isSameNode(i)&&!t.target.classList.contains("visual-builder__pseudo-editable-element"))return;let r=t.target.classList.contains("visual-builder__pseudo-editable-element"),l=r?i:t.target.closest("[data-cslp]");r?da(t.target,this.overlayWrapper):l&&this.handlePositionChange(l);let n=l&&l.getAttribute("data-cslp");if(!l||!rx(n))return;let o=rE(n);lL.getFieldSchema(o.content_type_uid,o.fieldPath).then(e=>{if(!e)return;let{isDisabled:t}=lH(e,{editableElement:l,fieldMetadata:o});t&&da(l,this.overlayWrapper,t)})}),this.mutationObserver=new MutationObserver(ik(async()=>{!function(e,t,i,r){var l,n;if(!e)return;let o=dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(!o)return;let a=o?.getAttribute("data-cslp"),s=o?.getAttribute("data-cslp-unique-id"),d=document.querySelector(`[data-cslp-unique-id="${s}"]`)||document.querySelector(`[data-cslp="${a}"]`);if(!d&&r)return du({visualBuilderOverlayWrapper:e,focusedToolbar:t,visualBuilderContainer:i,resizeObserver:r,noTrigger:!0});d!==o&&(o=d,dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM=o);let u=o.getBoundingClientRect(),c=e.querySelector(".visual-builder__overlay--outline");c&&(l=u,n=c.getBoundingClientRect(),l.top!==n.top||l.left!==n.left||l.width!==n.width||l.height!==n.height)&&(c.style.top=`${u.top+window.scrollY}px`,c.style.left=`${u.left}px`,c.style.width=`${u.width}px`,c.style.height=`${u.height}px`);let f=e.querySelector(".visual-builder__overlay--top"),p=e.querySelector(".visual-builder__overlay--bottom"),h=e.querySelector(".visual-builder__overlay--left"),v=e.querySelector(".visual-builder__overlay--right"),_=u.top+window.scrollY;if(f&&f.getBoundingClientRect().height!==_&&(f.style.height=`calc(${_}px)`),p){let e=p.getBoundingClientRect();(e.top!==u.bottom||e.height!==window.document.body.scrollHeight-u.bottom-window.scrollY)&&(p.style.top=`${u.bottom+window.scrollY}px`,p.style.height=`${window.document.body.scrollHeight-u.bottom-window.scrollY}px`)}if(h){let e=h.getBoundingClientRect();(e.top+window.scrollY!==_||e.height!==u.height||e.width!==u.left)&&(h.style.top=`${_}px`,h.style.height=`${u.height}px`,h.style.width=`${u.left}px`)}if(v){let e=v.getBoundingClientRect();(e.left!==u.right||e.top+window.scrollY!==_||e.height!==u.height||e.width!==document.documentElement.clientWidth-u.right)&&(v.style.left=`${u.right}px`,v.style.top=`${_}px`,v.style.height=`${u.height}px`,v.style.width=`${document.documentElement.clientWidth-u.right}px`)}if(t){let e=window.scrollX+window.innerWidth-u.left,i=u.top+window.scrollY-8,r=u.top+window.scrollY<42?i+u.height+42:i,l=Math.max(u.left-2,8);e<180&&("flex-end"!==t.style.justifyContent||t.style.left!==`${u.right+2}px`)?(t.style.justifyContent="flex-end",t.style.left=`${u.right+2}px`):("flex-start"!==t.style.justifyContent||t.style.left!==`${l}px`)&&(t.style.justifyContent="flex-start",t.style.left=`${l}px`),t.style.top!==`${r}px`&&(t.style.top=`${r}px`)}if(i){let e=i.querySelector(".visual-builder__pseudo-editable-element"),t=Object.entries(s4(o)).reduce((e,[t,i])=>`${e}${t}:${i};`,"");e&&(e.style.cssText!==t||"visible"!==e.style.visibility)&&(e.style.cssText=t,e.style.visibility="visible")}}(this.overlayWrapper,this.focusedToolbar,this.visualBuilderContainer,this.resizeObserver);let t=Array.from(document.querySelectorAll(`.${dU}`)),i=e.VisualBuilderGlobalState.value.previousEmptyBlockParents;if(!lw(t,i)){let r=i.filter(e=>!t.includes(e)),l=t.filter(e=>!i.includes(e));
1514r?.forEach(e=>{let t=e.querySelector(".visual-builder__empty-block");t&&t.remove()}),await dL(l),e.VisualBuilderGlobalState.value={...e.VisualBuilderGlobalState.value,previousEmptyBlockParents:t}}e.VisualBuilderGlobalState.value.variant&&e.VisualBuilderGlobalState.value.highlightVariantFields&&dg(e.VisualBuilderGlobalState.value.variant)},100,{trailing:!0})),this.threadMutationObserver=new MutationObserver(ik(()=>{document.querySelector(".visual-builder__container")&&dT&&(om(dT).length>0&&ob(dT).then(e=>{e.forEach(ov),e.length>0&&os({payload:{isElementPresent:!1},threadUids:e})}),dT=[])},1e3)),this.destroy=()=>{var t;let i,r,l,n;window.removeEventListener("resize",this.resizeEventHandler),window.removeEventListener("scroll",this.scrollEventHandler),this.overlayWrapper,this.visualBuilderContainer,e.VisualBuilderGlobalState.value.previousSelectedEditableDOM,this.focusedToolbar,this.resizeObserver,t=this.customCursor,i=dS.get("click"),r=dS.get("mousemove"),l=dS.get("mouseleave"),n=dS.get("mouseenter"),i&&window.removeEventListener("click",i,{capture:!0}),r&&window.removeEventListener("mousemove",r),l&&document.documentElement.removeEventListener("mouseleave",l),n&&document.documentElement.removeEventListener("mouseenter",n),dS.clear(),this.resizeObserver.disconnect(),this.mutationObserver.disconnect(),this.threadMutationObserver.disconnect(),e.VisualBuilderGlobalState.value={previousSelectedEditableDOM:null,previousHoveredTargetDOM:null,previousEmptyBlockParents:[],focusFieldValue:null,focusFieldReceivedInput:!1,audienceMode:!1,locale:"en-us",variant:null,highlightVariantFields:!1,variantOrder:[],focusElementObserver:null,referenceParentMap:{},isFocussed:!1},this.visualBuilderContainer&&window.document.body.removeChild(this.visualBuilderContainer),this.customCursor&&this.customCursor.remove(),this.overlayWrapper&&this.overlayWrapper.remove(),this.focusedToolbar&&this.focusedToolbar.remove(),this.customCursor=null,this.overlayWrapper=null,this.visualBuilderContainer=null,this.focusedToolbar=null},window.addEventListener("resize",this.resizeEventHandler),window.addEventListener("scroll",this.scrollEventHandler),dp({resizeObserver:this.resizeObserver}),this.visualBuilderContainer=document.querySelector(".visual-builder__container"),this.overlayWrapper=document.querySelector(".visual-builder__overlay__wrapper"),this.customCursor=document.querySelector(".visual-builder__cursor"),this.focusedToolbar=document.querySelector(".visual-builder__focused-toolbar");const t=iv.get();if(!t.enable||t.mode<es.BUILDER)return;const{entryUid:i,contentTypeUid:r}=rX(),l={isSSR:t.ssr,href:window.location.href,entry_uid:i,content_type_uid:r};lx?.send("init",l).then(i=>{var r;let l,n,o,a,s,d,u,c,f,{windowType:p=ed.BUILDER,stackDetails:h,collab:v}=i||{};iv.set("windowType",p),iv.set("stackDetails.masterLocale",h?.masterLocale||"en-us"),v&&(iv.set("collab.enable",v.enable),iv.set("collab.isFeedbackMode",v.isFeedbackMode),iv.set("collab.inviteMetadata",v.inviteMetadata)),v?.payload&&(dT=v?.payload);r={overlayWrapper:this.overlayWrapper,visualBuilderContainer:this.visualBuilderContainer,previousSelectedEditableDOM:e.VisualBuilderGlobalState.value.previousSelectedEditableDOM,focusedToolbar:this.focusedToolbar,resizeObserver:this.resizeObserver,customCursor:this.customCursor},l=r,s=e=>{aK({event:e,overlayWrapper:l.overlayWrapper,visualBuilderContainer:l.visualBuilderContainer,previousSelectedEditableDOM:dN.VisualBuilderGlobalState.value.previousSelectedEditableDOM,focusedToolbar:l.focusedToolbar,resizeObserver:l.resizeObserver})},n=r,d=e=>{sf({event:e,overlayWrapper:n.overlayWrapper,visualBuilderContainer:n.visualBuilderContainer,customCursor:n.customCursor,resizeObserver:n.resizeObserver,focusedToolbar:n.focusedToolbar})},o=r,u=()=>{su.cancel(),ss.cancel(),sl.cancel(),so(o.customCursor),sn(o.visualBuilderContainer),!dN?.VisualBuilderGlobalState?.value?.isFocussed&&o?.focusedToolbar&&a9(o.focusedToolbar)},a=r,c=()=>{sa(a.customCursor)},dS.set("click",s),dS.set("mousemove",d),dS.set("mouseleave",u),dS.set("mouseenter",c),window.addEventListener("click",s,{capture:!0}),window.addEventListener("mousemove",d),document.documentElement.addEventListener("mouseleave",u),document.documentElement.addEventListener("mouseenter",c),this.threadMutationObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!1}),rF(),f=iv.get(),lx?.on(lE.COLLAB_ENABLE,e=>{if(!e?.data?.collab)return void console.error("Invalid collab data structure:",e);if(e?.data?.collab?.fromShare){let t;iv.set("collab.pauseFeedback",e?.data?.collab?.pauseFeedback),iv.set("collab.isFeedbackMode",e?.data?.collab?.
1514isFeedbackMode),t=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread"),t?.forEach(e=>e?.classList.remove(n9));return}iv.set("collab.enable",e.data.collab.enable??!1),iv.set("collab.isFeedbackMode",e.data.collab.isFeedbackMode??!1),iv.set("collab.pauseFeedback",e?.data?.collab?.pauseFeedback),iv.set("collab.inviteMetadata",e.data.collab.inviteMetadata)}),lx?.on(lE.COLLAB_DATA_UPDATE,e=>{if(!f?.collab?.enable)return;if(!e?.data?.collab)return void console.error("Invalid collab data structure:",e);if(e?.data?.collab?.inviteMetadata)return void iv.set("collab.inviteMetadata",e?.data?.collab?.inviteMetadata);let t=e?.data?.collab?.payload?.map(e=>oe(e)).filter(e=>void 0!==e)||[];t.length>0&&os({payload:{isElementPresent:!1},threadUids:t})}),lx?.on(lE.COLLAB_DISABLE,e=>{if(e?.data?.collab?.fromShare){iv.set("collab.pauseFeedback",e?.data?.collab?.pauseFeedback),dA(!0);return}iv.set("collab.enable",!1),iv.set("collab.isFeedbackMode",!1),dA()}),lx?.on(lE.COLLAB_THREADS_REMOVE,e=>{let t=e?.data?.threadUids;f?.collab?.enable&&(e?.data?.updateConfig&&iv.set("collab.isFeedbackMode",!0),t?.length>0&&t.forEach(e=>{on(e)}))}),lx?.on(lE.COLLAB_THREAD_REOPEN,e=>{let t=e?.data?.thread;if(!f?.collab?.enable||!t)return;let i=oe(t,{hidden:!!f?.collab?.pauseFeedback});i&&os({payload:{isElementPresent:!1},threadUids:[i]})}),lx?.on(lE.COLLAB_THREAD_HIGHLIGHT,e=>{let t=e?.data?.threadUid;!(!f?.collab?.enable||f?.collab?.pauseFeedback)&&t&&oo({threadUid:t,action:"open"})}),p===ed.BUILDER&&(!function({overlayWrapper:e,visualBuilderContainer:t,focusedToolbar:i,resizeObserver:r}){document.addEventListener("keydown",l=>{"Escape"===l.key&&du({visualBuilderOverlayWrapper:e,visualBuilderContainer:t,focusedToolbar:i,resizeObserver:r})})}({overlayWrapper:this.overlayWrapper,visualBuilderContainer:this.visualBuilderContainer,focusedToolbar:this.focusedToolbar,resizeObserver:this.resizeObserver}),lx?.on(lE.SCROLL_TO_FIELD,dv),lx?.on(lE.HIGHLIGHT_ACTIVE_COMMENTS,dM),lx?.on(lE.REMOVE_HIGHLIGHTED_COMMENTS,dO),this.mutationObserver.observe(document.body,{childList:!0,subtree:!0}),dC().then(e=>{dw(e.highlightVariantFields)}),lx?.on(lE.GET_ALL_ENTRIES_IN_CURRENT_PAGE,dc),lx?.send(lE.SEND_VARIANT_AND_LOCALE),lx?.on(lE.TOGGLE_SCROLL,e=>{e.data.scroll?document.body.style.overflow="auto":document.body.style.overflow="hidden"}),function({visualBuilderContainer:e,overlayWrapper:t,focusedToolbar:i,resizeObserver:r}){lx?.on(lE.HIDE_FOCUS_OVERLAY,l=>{l?.data?.fromCollab&&(iv.set("collab.enable",!0),iv.set("collab.pauseFeedback",!0)),du({visualBuilderOverlayWrapper:t,visualBuilderContainer:e,focusedToolbar:i,resizeObserver:r,noTrigger:!!l?.data?.noTrigger})})}({overlayWrapper:this.overlayWrapper,visualBuilderContainer:this.visualBuilderContainer,focusedToolbar:this.focusedToolbar,resizeObserver:this.resizeObserver}),r$(),rH?.on("variant-patch-update",e=>{dN.VisualBuilderGlobalState.value.audienceMode&&(dw(e.data.highlightVariantFields),db())}),lx?.on(lE.SHOW_DRAFT_FIELDS,e=>{dh(),e.data.fields.forEach(e=>{let t=document.querySelector(`[data-cslp="${e}"]`);t&&t.classList.add(r1()["visual-builder__draft-field"])})}),lx?.on(lE.REMOVE_DRAFT_FIELDS,()=>{dh()}),function({isSSR:e}){lx?.on(lE.GET_VARIANT_ID,t=>{let i=t.data.variant;dN.VisualBuilderGlobalState.value.variant=i,lL.clear(),e?i&&dm(i):db(),lx?.send(lE.REQUEST_DISCUSSION_HIGHLIGHTS)}),lx?.on(lE.GET_LOCALE,e=>{var t;t=e.data.locale,dN.VisualBuilderGlobalState.value.locale=t}),lx?.on(lE.SET_AUDIENCE_MODE,e=>{var t;t=e.data.audienceMode,dN.VisualBuilderGlobalState.value.audienceMode=t}),lx?.on(lE.SHOW_VARIANT_FIELDS,e=>{var t;dw(e.data.variant_data.highlightVariantFields),t=e.data.variant_data.variantOrder||[],dN.VisualBuilderGlobalState.value.variantOrder=t,dy(),dm(e.data.variant_data.variant)}),lx?.on(lE.REMOVE_VARIANT_FIELDS,e=>{dw(!1),dy(e?.data?.onlyHighlighted)})}({isSSR:t.ssr??!1}))}).catch(()=>{eo()||function(){if(document.querySelector(".visual-builder__start-editing-btn"))return;let e=document.createDocumentFragment();e0(r0(lf,{}),e),0!==e.children.length&&(document.body.appendChild(e),document.querySelector(".visual-builder__start-editing-btn"))}()})}handlePositionChange(e){dt({editableElement:e,visualBuilderContainer:this.visualBuilderContainer,overlayWrapper:this.overlayWrapper,focusedToolbar:this.focusedToolbar,resizeObserver:this.resizeObserver})}};dk.VisualBuilderGlobalState=tV({previousSelectedEditableDOM:null,previousHoveredTargetDOM:null,previousEmptyBlockParents:[],focusFieldValue:null,focusFieldReceivedInput:!1,audienceMode:!1,locale:iv.get().stackDetail
1514s.masterLocale||"en-us",variant:null,highlightVariantFields:!1,variantOrder:[],focusElementObserver:null,referenceParentMap:{},isFocussed:!1});var dN=dk,dR=class e{static init(t=eu()){return"u"<typeof window?(et.warn("The SDK is not initialized in the browser."),Promise.resolve(e.previewConstructors)):(iv.replace(t),i_(),e.isInitialized())?(et.warn("You have already initialized the Live Preview SDK. So, any subsequent initialization returns the existing SDK instance."),Promise.resolve(e.previewConstructors)):e.initializePreview()}static get hash(){return e.isInitialized()||i_(),iv.get().hash}static get config(){e.isInitialized()||i_();let t=iv.get();return F((0,d.A)(t),["ssr","enable","cleanCslpOnProduction","stackDetails","clientUrlParams","windowType","hash","editButton","mode"])}static isInitialized(){return!Y(e.previewConstructors)}static initializePreview(){e.previewConstructors={livePreview:new rW,visualBuilder:new dN};let t=e.previewConstructors.livePreview;return Object.entries(e.onEntryChangeCallbacks).forEach(([e,i])=>{t.subscribeToOnEntryChange(i,e)}),e.onEntryChangeCallbacks={},window.addEventListener("pagehide",()=>{let e=document.activeElement.href;e&&rH?.send("url-change",{targetURL:e})}),!function(){if(!("u"<typeof window)&&!("u"<typeof document)){rg` 1515 cs-compare { 1516 &.cs-compare--added { 1517 background: rgba(0, 122, 82, 0.2); 1518 border-bottom: 2px solid rgba(0, 122, 82); 1519 } 1520 1521 &.cs-compare--removed { 1522 background: rgba(214, 36, 0, 0.2); 1523 text-decoration: line-through 2px solid rgba(214, 36, 0, 1); 1524 } 1525 } 1526 .cs-compare__void--added { 1527 background: rgba(0, 122, 82, 0.2); 1528 outline: 2px solid rgba(0, 122, 82); 1529 } 1530 1531 .cs-compare__void--removed { 1532 background: rgba(214, 36, 0, 0.2); 1533 outline: 2px solid rgba(214, 36, 0, 1); 1534 } 1535 `;class e extends HTMLSpanElement{constructor(){super()}}customElements.get(rY)||customElements.define(rY,e,{extends:"span"}),rZ?.on("send-current-base-route",async()=>({url:window.location.href.split("?")[0]})),rZ?.on("send-cslp-data",async()=>{let e=Array.from(document.querySelectorAll(rq)),t={};for(let i of e){let e=i.getAttribute("data-cslp");if(rx(e))if(i.hasAttributes()&&rG.has(i.tagName.toLowerCase())){let r="";for(let e of i.attributes)r+=`${e.name} -> ${e.value} 1536`;t[e]=r}else t[e]=i.innerHTML}return t}),rZ?.on("diff-value",async e=>{let{diff:t,type:i}=e.data,r="base"===i?"removed":"added";for(let e of Array.from(document.querySelectorAll(rq))){let i=e.getAttribute("data-cslp");rx(i)&&t[i]&&(rG.has(e.tagName.toLowerCase())?e.classList.add(`cs-compare__void--${r}`):e.innerHTML=t[i])}((e=".cs-compare--added")=>{let t=Array.from(document.querySelectorAll(e));for(let e=1;e<t.length;e++){let i=t[e-1],r=t[e];i.nextElementSibling===r&&i.appendChild(i.nextSibling)}})(`.cs-compare--${r}`)}),rZ?.on("remove-diff",async()=>{for(let e of Array.from(document.querySelectorAll("cs-compare"))){let t=e.parentElement;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}for(let e of Array.from(document.querySelectorAll(".cs-compare__void--added, .cs-compare__void--removed")))e.classList.remove("cs-compare__void--added"),e.classList.remove("cs-compare__void--removed")})}}(),Promise.resolve(e.previewConstructors)}static onEntryChange(t,i={}){let{skipInitialRender:r=!1}=i,l=J();e.isInitialized()?e.previewConstructors.livePreview.subscribeToOnEntryChange(t,l):e.onEntryChangeCallbacks[l]=t;let n="u">typeof window?new URLSearchParams(window.location.search):null,o=n&&n.has("live_preview"),a=n&&n.has("builder");return(!r||o&&a)&&t(),l}static onLiveEdit(t){return e.onEntryChange(t,{skipInitialRender:!0})}static unsubscribeOnEntryChange(t){e.isInitialized()?e.previewConstructors.livePreview.unsubscribeOnEntryChange(t):rj(e.onEntryChangeCallbacks,t)}static setPageContext(e){iv.set("pageContext",e),eo()&&lx?.send(lE.PAGE_CONTEXT,{entryUid:e.entryUid,contentTypeUid:e.contentTypeUid}).catch(e=>{et.error("Failed to send page context to Visual Builder.",e)})}static getSdkVersion(){return"4.5.0"}};dR.previewConstructors={},dR.onEntryChangeCallbacks={};var dD=i(87358),dH=class e{static init(){return"u"<typeof window?Promise.resolve(e.previewConstructors):e.initializePreview()}static initializePreview(){return e.previewConstructors={livePreview:{},visualBuilder:{}},e.onEntryChangeCallbacks={},Promise.resolve(e.previewConstructors)}static get hash(){return""}static get config(){return{}}static isInitialized(){return!1}static onEntryChange(e,t={}){let{skipInitialRender:i=!1}=t;return i||e(),"live-preview-id"}static onLiveEdit(e){return"live-preview-id"}static unsubscribeOnEntryChange(){}static getSdkVersion(){return(void 0!==dD?"4.5.0":void 0)??""}};dH.previewConstructors={},dH.onEntryChangeCallbacks={};var dP=`[${lv}]`;function dV(e){return!("u"<typeof document)&&(e?"function"==typeof e.matches&&e.matches(dP)||null!==e.querySelector(dP):null!==document.querySelector(dP))}var dI=i(87358),dB=void 0!==dI&&("true"===dI.env.PURGE_PREVIEW_SDK||"true"===dI.env.REACT_APP_PURGE_PREVIEW_SDK)?dH:dR,dU="visual-builder__empty-block-parent",dF=dB},69730:(e,t)=>{var i;!function(){"use strict";var r={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=n(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var i in e)r.call(e,i)&&e[i]&&(t=n(t,i));return t}(i)))}return e}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(i=(function(){return l}
1536).apply(t,[]))||(e.exports=i)}()}}]);
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.