"use strict";(self.webpackChunkelementor_pro_notes=self.webpackChunkelementor_pro_notes||[]).push([[969],{2749:(t,n,e)=>{e.r(n),e.d(n,{default:()=>Ts});var r,o=e(7363),a=e.n(o),i=e(8471),c=e(3736),l=e(2671);const s=l.ZP.button(r||(r=(0,c.Z)(['\n\tall: revert;\n\n\t--color: #000;\n\t--padding: 0;\n\t--background: transparent;\n\t--font-weight: 500;\n\t--font-size: 16px;\n\t--font-family: Roboto, sans-serif;\n\t--text-transform: none;\n\t--letter-spacing: 0;\n\t--font-style: normal;\n\t--text-decoration: none;\n\t--line-height: normal;\n\t--word-spacing: normal;\n\t--text-shadow: none;\n\t--box-shadow: none;\n\t--border: none;\n\t--border-radius: 0;\n\n\t// Override themes selectors.\n\t&,\n\t&&,\n\t&[type="button"],\n\t&[type="submit"],\n\t&[type="reset"],\n\t&:hover,\n\t&:focus,\n\t&:active,\n\t&:not( :hover ):not( :active ):not( .has-background ),\n\t&:not( :hover ):not( :active ):not( .has-text-color ) {\n\t\tfont-family: var( --font-family ) !important;\n\t\tfont-size: var( --font-size ) !important;\n\t\tfont-weight: var( --font-weight ) !important;\n\t\ttext-transform: var( --text-transform ) !important;\n\t\tletter-spacing: var( --letter-spacing ) !important;\n\t\tfont-style: normal !important;\n\t\ttext-decoration: none !important;\n\t\tline-height: normal !important;\n\t\tword-spacing: normal !important;\n\t\tcolor: var( --color ) !important;\n\t\tbackground: var( --background ) !important;\n\t\tborder: var( --border ) !important;\n\t\ttext-shadow: var( --text-shadow ) !important;\n\t\tbox-shadow: var( --box-shadow ) !important;\n\t\tborder-radius: var( --border-radius ) !important;\n\t\tpadding: var( --padding ) !important;\n\t\toutline: none !important;\n\t\twidth: var( --width, auto ) !important;\n\t\theight: var( --height, auto ) !important;\n\t\tdisplay: var( --display, inline-block ) !important;\n\t\tmin-height: revert !important;\n\t}\n\n\t&:before,\n\t&:after {\n\t\tdisplay: none !important;\n\t}\n'])));var p,u,d,m=e(216),f={contained:{background:"--color-editor-info",border:"--color-editor-info",text:"--color-white",backgroundHover:"--color-editor-info-dark"},outlined:{background:"--color-ghost",border:"--color-gray-400",text:"--color-gray-600",backgroundHover:"--color-darken"},transparent:{background:"--color-ghost",border:"--color-ghost",text:"--color-default"}},v={md:{padding:"--padding-md",fontSize:"--font-size-md"}},g=(0,l.ZP)(s)(p||(p=(0,c.Z)(["\n\t--color-editor-info: #58d0f5;\n\t--color-editor-info-dark: #10bcf2;\n\t--color-default: inherit;\n\t--color-ghost: transparent;\n\t--color-white: #fff;\n\t--color-gray-400: #c2cbd2;\n\t--color-gray-600: #6d7882;\n\t--color-darken: rgba( 0, 0, 0, .05 );\n\n\t--font-size-md: 13px;\n\t--padding-md: 8px 12px;\n\n\t--padding: var( "," );\n\t--color: var( "," );\n\t--background: var( "," );\n\t--border-color: var( "," );\n\t--border: 1px solid var( --border-color );\n\t--cursor: pointer;\n\t--font-weight: 400;\n\t--font-family: Roboto, sans-serif;\n\t--font-size: var( "," );\n\t--border-radius: 3px;\n\n\tfont-style: normal !important;\n\ttext-align: center !important;\n\tline-height: 1 !important;\n\tcursor: var( --cursor ) !important;\n\ttransition: .3s all !important;\n\n \t&, & * {\n\t cursor: var( --cursor ) !important;\n\t}\n\n\t","\n\n\t","\n\n\t&:hover, &:focus {\n\t\t--background: var(\n\t\t\t","\n\t\t);\n\t}\n"])),(function(t){var n=t.size;return v[n].padding}),(function(t){var n=t.variant;return f[n].text}),(function(t){var n=t.variant;return f[n].background}),(function(t){var n=t.variant;return f[n].border}),(function(t){var n=t.size;return v[n].fontSize}),(function(t){return t.disabled&&(0,l.iv)(u||(u=(0,c.Z)(["\n\t\t\topacity: .5;\n\t\t\tpointer-events: none;\n\t\t\t--cursor: not-allowed;\n\t"])))}),(function(t){return"transparent"===t.variant&&(0,l.iv)(d||(d=(0,c.Z)(["\n\t\t\t--padding: 0;\n\t"])))}),(function(t){var n=t.variant;return f[n].backgroundHover||f[n].background}));g.propTypes={variant:m.oneOf(["contained","outlined","transparent"]).isRequired,size:m.oneOf(["md"]).isRequired,disabled:m.bool},g.defaultProps={variant:"contained",size:"md"};const h=g;var y,b,w,x,Z,O=e(216),E={xs:20,sm:25,md:34,lg:80,xl:160},P={active:{background:"--color-editor-info",text:"--color-white"},solid:{background:"--color-editor-info",text:"--color-white"},ghost:{background:"--color-ghost",text:"--color-gray"}},k=(0,l.F4)(y||(y=(0,c.Z)(["\n 0% {\n\topacity: 0;\n\ttransform: scale(.8);\n\ttransform-origin: 50% 100%;\n }\n\n 50% {\n\topacity: 1;\n\ttransform: scale(1.2);\n\ttransform-origin: 50% 100%;\n }\n\n 100% {\n\topacity: 1;\n\ttransform: scale(1);\n\ttransform-origin: 50% 100%;\n }\n"]))),R=l.ZP.span.withConfig({shouldForwardProp:function(t){return"children"===t}})(b||(b=(0,c.Z)(["\n all: revert;\n\n --color-editor-info: #58d0f5;\n --color-ghost: #fff;\n --color-white: #fff;\n --color-gray: #a4afb6;\n --color-shadow: rgba(0, 0, 0, 0.2);\n --size: ",";\n --position: relative;\n\n display: grid;\n place-items: center;\n position: relative;\n height: calc(var(--size) * 1px);\n width: calc(var(--size) * 1px);\n line-height: 2.8;\n font-family: Roboto, sans-serif !important;\n font-size: calc(var(--size) * .38px);\n font-weight: 500;\n color: var(",");\n isolation: isolate;\n animation: .3s "," both;\n transition: .3s all;\n\n ","\n\n &::before {\n\t--background-color: var(",");\n\t--border-color: var( --background-color );\n\n\tcontent: '';\n\tdisplay: block;\n\tposition: absolute;\n\tz-index: -1;\n\tinset: 0;\n\tbackground-color: var( --background-color );\n\tborder: calc(var(--size) / 20 * 1px) solid var(--border-color);\n\tborder-radius: 100% 100% 25% 100%;\n\ttransform: rotate(45deg);\n\n\t","\n\n\t","\n }\n"])),(function(t){var n=t.size;return E[n]}),(function(t){var n=t.variant;return P[n].text}),k,(function(t){return t.muted&&(0,l.iv)(w||(w=(0,c.Z)(["\n\t--color-shadow: transparent;\n\topacity: .5 !important;\n "])))}),(function(t){var n=t.variant;return P[n].background}),(function(t){return"active"===t.variant&&(0,l.iv)(x||(x=(0,c.Z)(["\n\t\t mask-image: radial-gradient(transparent 30%, #000 32%);\n\t"])))}),(function(t){return"ghost"===t.variant&&(0,l.iv)(Z||(Z=(0,c.Z)(["\n\t\t --border-color: var(--color-gray);\n\t"])))}));R.propTypes={variant:O.oneOf(["active","solid","ghost"]).isRequired,size:O.oneOf(["xs","sm","md","lg","xl"]).isRequired,muted:O.bool,children:O.oneOfType([O.node,O.arrayOf(O.node)])},R.defaultProps={variant:"solid",size:"md",muted:!1};const j=R;var C,T=e(9819);const _=(0,l.ZP)(T.Eh)(C||(C=(0,c.Z)(["\n fill: #fff;\n margin: 0 10px;\n"])));var z,D=e(7169),S=e(11),A=e(2726);const I=l.ZP.i(z||(z=(0,c.Z)(["\n\tmargin: 0 !important;\n\tpadding: 0 !important;\n"])));var F,L,q=e(216),M=["name"],B={sm:"15px",md:"18px"},N=(0,l.ZP)(s)(F||(F=(0,c.Z)(["\n --color: #a4afb7;\n --background: transparent;\n --padding: 4px;\n --font-size: ",";\n --border: none;\n --border-radius: 100%;\n --display: grid;\n\n transition: 0.2s all;\n place-items: center;\n border-radius: 100%;\n cursor: pointer;\n\n &:hover, &:focus {\n\t--background: transparent;\n\t--color: #6d7882;\n\toutline: none;\n }\n\n &:focus {\n\t--background: #f1f3f5;\n }\n\n ","\n"])),(function(t){var n=t.size;return B[n]}),(function(t){return t.disabled&&(0,l.iv)(L||(L=(0,c.Z)(["\n\topacity: .5;\n\tpointer-events: none;\n\tcursor: not-allowed;\n "])))})),$=a().forwardRef((function(t,n){var e=t.name,r=(0,A.Z)(t,M);return a().createElement(N,(0,S.Z)({},r,{ref:n}),a().createElement(I,{className:e}))}));$.displayName="IconButton",$.propTypes={size:q.oneOf(["sm","md"]),name:q.string.isRequired,onClick:q.func,disabled:q.bool},$.defaultProps={size:"md"};const V=$;var U;function W(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}var H,K,Q,Y,X,G,J=(0,l.ZP)(V)(U||(U=(0,c.Z)(["\n --position-spacing: 4px;\n\n position: absolute;\n top: var(--position-spacing);\n inset-inline-end: var(--position-spacing);\n"])));function tt(t){return a().createElement(T.x8,{asChild:!0},a().createElement(J,(0,S.Z)({},t,{name:"eicon-editor-close",size:"sm"})))}tt.propTypes=function(t){for(var n=1;n1?e-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},e=n.tokenClasses,r=n.fallbackTokenClass,o=n.parsePipeFunctions;(0,Ht.Z)(this,t),(0,D.Z)(this,"tokenClasses",void 0),(0,D.Z)(this,"fallbackTokenClass",void 0),(0,D.Z)(this,"parsePipeFunctions",void 0),this.tokenClasses=e,this.fallbackTokenClass=r,this.parsePipeFunctions=o}return(0,Kt.Z)(t,[{key:"parse",value:function(t){var n,e=this.extractLexemes(t),r=this.tokenize(e);return Qt.apply(void 0,(0,dt.Z)(null!==(n=this.parsePipeFunctions)&&void 0!==n?n:[]))(r)}},{key:"extractLexemes",value:function(t){return t.trim().split(this.getLexerRegex()).reduce((function(t,n){return n&&t.push(n),t}),[])}},{key:"tokenize",value:function(t){var n=this;return t.map((function(t){var e=n.tokenClasses.find((function(n){return n.isToken(t)}));return e?e.create(t):n.fallbackTokenClass?n.fallbackTokenClass.create(t):null})).filter((function(t){return!!t}))}},{key:"getLexerRegex",value:function(){var t=this.tokenClasses.map((function(t){var n;return null===(n=t.getPattern())||void 0===n?void 0:n.source})).filter((function(t){return!!t}));return new RegExp("(".concat(t.join("|"),")"),"igm")}}]),t}(),Xt=e(2248),Gt=e(7245),Jt=e(2312),tn=function(){function t(n){(0,Ht.Z)(this,t),(0,D.Z)(this,"type",void 0),(0,D.Z)(this,"value",void 0),this.value=n,this.type=this.constructor.type}return(0,Kt.Z)(t,[{key:"is",value:function(t){return this.type===t.type}}],[{key:"getPattern",value:function(){return null}},{key:"isToken",value:function(t){return!!t.match(new RegExp(this.getPattern(),"igm"))}},{key:"create",value:function(){return new this(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)}}]),t}();function nn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=(0,Jt.Z)(t);if(n){var o=(0,Jt.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,Gt.Z)(this,e)}}(0,D.Z)(tn,"type","");var en=function(t){(0,Xt.Z)(e,t);var n=nn(e);function e(){return(0,Ht.Z)(this,e),n.apply(this,arguments)}return(0,Kt.Z)(e,null,[{key:"getPattern",value:function(){return/[\w\-.]+@(?:[\w-]+\.)+[\w-]{2,4}/}}]),e}(tn);function rn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=(0,Jt.Z)(t);if(n){var o=(0,Jt.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,Gt.Z)(this,e)}}(0,D.Z)(en,"type","Email");var on=function(t){(0,Xt.Z)(e,t);var n=rn(e);function e(t){return(0,Ht.Z)(this,e),n.call(this,t||"\n")}return(0,Kt.Z)(e,null,[{key:"getPattern",value:function(){return/(?:\r?\n)/}}]),e}(tn);function an(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=(0,Jt.Z)(t);if(n){var o=(0,Jt.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,Gt.Z)(this,e)}}(0,D.Z)(on,"type","LineBreak");var cn=function(t){(0,Xt.Z)(e,t);var n=an(e);function e(){return(0,Ht.Z)(this,e),n.apply(this,arguments)}return(0,Kt.Z)(e)}(tn);function ln(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=(0,Jt.Z)(t);if(n){var o=(0,Jt.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,Gt.Z)(this,e)}}(0,D.Z)(cn,"type","Paragraph");var sn=function(t){(0,Xt.Z)(e,t);var n=ln(e);function e(){return(0,Ht.Z)(this,e),n.apply(this,arguments)}return(0,Kt.Z)(e)}(tn);function pn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=(0,Jt.Z)(t);if(n){var o=(0,Jt.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,Gt.Z)(this,e)}}(0,D.Z)(sn,"type","Text");var un=function(t){(0,Xt.Z)(e,t);var n=pn(e);function e(){return(0,Ht.Z)(this,e),n.apply(this,arguments)}return(0,Kt.Z)(e)}(tn);(0,D.Z)(un,"type","Content");var dn=e(3173);function mn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=(0,Jt.Z)(t);if(n){var o=(0,Jt.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,Gt.Z)(this,e)}}var fn=function(t){(0,Xt.Z)(e,t);var n=mn(e);function e(t){var r;return(0,Ht.Z)(this,e),r=n.call(this,t),(0,D.Z)((0,dn.Z)(r),"handle",void 0),(0,D.Z)((0,dn.Z)(r),"username",void 0),r.handle=gn.create(r.constructor.handleChar),r.username=yn.create(t.replace(r.constructor.handleChar,"")),r}return(0,Kt.Z)(e,null,[{key:"getPattern",value:function(){return new RegExp("\\B".concat(this.handleChar,"[\\w\\-]+"))}}]),e}(tn);function vn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=(0,Jt.Z)(t);if(n){var o=(0,Jt.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,Gt.Z)(this,e)}}(0,D.Z)(fn,"type","Mention"),(0,D.Z)(fn,"handleChar","@");var gn=function(t){(0,Xt.Z)(e,t);var n=vn(e);function e(){return(0,Ht.Z)(this,e),n.apply(this,arguments)}return(0,Kt.Z)(e)}(tn);function hn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=(0,Jt.Z)(t);if(n){var o=(0,Jt.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,Gt.Z)(this,e)}}(0,D.Z)(gn,"type","Handle");var yn=function(t){(0,Xt.Z)(e,t);var n=hn(e);function e(){return(0,Ht.Z)(this,e),n.apply(this,arguments)}return(0,Kt.Z)(e)}(tn);function bn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=(0,Jt.Z)(t);if(n){var o=(0,Jt.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,Gt.Z)(this,e)}}(0,D.Z)(yn,"type","Username");var wn=function(t){(0,Xt.Z)(e,t);var n=bn(e);function e(){return(0,Ht.Z)(this,e),n.apply(this,arguments)}return(0,Kt.Z)(e,null,[{key:"getPattern",value:function(){return/https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)/}}]),e}(tn);function xn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=(0,Jt.Z)(t);if(n){var o=(0,Jt.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,Gt.Z)(this,e)}}(0,D.Z)(wn,"type","Url");var Zn=function(t){(0,Xt.Z)(e,t);var n=xn(e);function e(){return(0,Ht.Z)(this,e),n.apply(this,arguments)}return(0,Kt.Z)(e,null,[{key:"getPattern",value:function(){return/(?:(?:\b(?:yay|wow)\b)|🎉)/}}]),e}(tn);function On(t){return t.push(on.create()),t.reduce((function(t,n){var e=n;if(n.is(on)){var r=function(t,n){for(var e=t.length-1;e>=0;e--)if(n(t[e],e))return e;return-1}(t,(function(t){return t.is(cn)}));e=cn.create(t.slice(r+1,t.length)),t=t.slice(0,r+1)}return t.push(e),t}),[])}function En(t){return un.create(t)}function Pn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.tokenClasses,e=t.fallbackTokenClass,r=t.parsePipeFunctions;return new Yt({tokenClasses:null!=n?n:[en,on,fn,wn,Zn],fallbackTokenClass:null!=e?e:sn,parsePipeFunctions:null!=r?r:[On,En]})}(0,D.Z)(Zn,"type","Wow");var kn=["onlyIfNeeded"];function Rn(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function jn(t){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},e=n.onlyIfNeeded,r=void 0===e||e,o=(0,A.Z)(n,kn);return r&&function(t){var n=t.getBoundingClientRect(),e=n.top,r=n.left,o=n.bottom,a=n.right,i=t.parentElement.getBoundingClientRect(),c=i.top,l=i.right,s=i.bottom,p=i.left,u=e>=0&&r>=0&&e<=window.innerHeight&&r<=window.innerWidth,d=e>=c&&a<=l&&o<=s&&r>=p;return u&&d}(t)?Promise.resolve():new Promise((function(n){!function(t,n){new IntersectionObserver((function(t,e){var r;null!=t&&null!==(r=t[0])&&void 0!==r&&r.isIntersecting&&(e.disconnect(),n())})).observe(t)}(t,(function(){n()})),t.scrollIntoView(jn({behavior:"smooth",block:"center",inline:"center"},o))}))}function Fn(t){t.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))}function Ln(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}var qn,Mn=(0,l.F4)(Cn||(Cn=(0,c.Z)(["\n 0% {\n\topacity: 0;\n }\n 100% {\n\topacity: 1;\n }\n"]))),Bn=(0,l.F4)(Tn||(Tn=(0,c.Z)(["\n 0% {\n\topacity: 0;\n\ttransform: translate(-50%, -48%) scale(.96);\n }\n 100% {\n\topacity: 1;\n\ttransform: translate(-50%, -50%) scale(1);\n }\n"]))),Nn=(0,l.ZP)(Wt.VY)(_n||(_n=(0,c.Z)(["\n all: revert;\n\n font-family: Roboto, sans-serif !important;\n font-size: 1em !important;\n font-weight: normal !important;\n text-transform: none !important;\n font-style: normal !important;\n text-decoration: none !important;\n line-height: normal !important;\n letter-spacing: normal !important;\n word-spacing: normal !important;\n background-color: #fff !important;\n box-shadow: 2px 8px 23px rgba(0, 0, 0, 0.2) !important;\n border-radius: 3px !important;\n width: 375px !important;\n text-align: center !important;\n position: fixed !important;\n top: 50% !important;\n left: 50% !important;\n transform: translate(-50%, -50%) !important;\n max-height: 85vh !important;\n animation-duration: 150ms !important;\n animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;\n animation-name: "," !important;\n z-index: "," !important;\n\n &:focus {\n\toutline: none !important;\n }\n"])),Bn,Dn),$n=(0,l.ZP)(Wt.aV)(zn||(zn=(0,c.Z)(["\n background-color: rgba(0, 0, 0, 0.5) !important;\n position: fixed !important;\n inset: 0 !important;\n animation-duration: 150ms !important;\n animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;\n animation-name: "," !important;\n z-index: "," !important;\n"])),Mn,Dn);function Vn(t){return a().createElement(Wt.h_,null,a().createElement($n,null),a().createElement(Nn,t))}function Un(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}Vn.propTypes=function(t){for(var n=1;n button:not(:first-child) {\n\t/**\n\t * will create a divider between the buttons,\n\t * not matter how much buttons exists in the container.\n\t */\n\tborder-inline-start: 1px solid #d5dadf;\n }\n"])));var te;function ne(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}var ee=(0,l.ZP)(Wt.dk)(te||(te=(0,c.Z)(["\n all: revert;\n\n font-family: Roboto, sans-serif !important;\n font-size: 13px !important;\n font-weight: 500 !important;\n text-transform: none !important;\n font-style: normal !important;\n text-decoration: none !important;\n line-height: normal !important;\n letter-spacing: normal !important;\n word-spacing: normal !important;\n margin: 0 !important;\n color: #495157 !important;\n"])));ee.propTypes=function(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(n).forEach((function(n){var e=(0,i.Z)(n,2),r=e[0],o=e[1];t[r]=o})),this}}]),t}(),ve=e(8003).__;function ge(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=(0,Jt.Z)(t);if(n){var o=(0,Jt.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,Gt.Z)(this,e)}}var he=function(t){(0,Xt.Z)(e,t);var n=ge(e);function e(){var t;(0,Ht.Z)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:"",n=window.top.$e.components.get("notes").config.urls.avatar_defaults;return(new e).init({name:[t,ve("(deleted user)","elementor-pro")].join(" "),avatarUrls:n})}}]),e}(fe);function ye(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=(0,Jt.Z)(t);if(n){var o=(0,Jt.Z)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,Gt.Z)(this,e)}}var be=function(t){(0,Xt.Z)(e,t);var n=ye(e);function e(){var t;(0,Ht.Z)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a0)}},{key:"isThread",value:function(){return 0===this.parentId}},{key:"isReply",value:function(){return!this.isThread()}}],[{key:"createFromResponse",value:function(t){return(new e).init({id:t.id,parentId:t.parent_id,elementId:t.element_id,content:t.content,position:t.position,repliesCount:t.replies_count,unreadRepliesCount:t.unread_replies_count,replies:t.replies.map((function(t){return e.createFromResponse(t)})),author:t.author?he.createFromResponse(t.author):he.createDeleted(t.author_display_name),document:t.document?be.createFromResponse(t.document):null,readers:t.readers?t.readers.map((function(t){return he.createFromResponse(t)})):[],isRead:t.is_read,isResolved:t.is_resolved,routeUrl:t.route_url,routeTitle:t.route_title,userCan:t.user_can,createdAt:new Date(t.created_at),updatedAt:new Date(t.updated_at),lastActivityAt:new Date(t.last_activity_at)})}},{key:"getURL",value:function(t){return window.top.$e.components.get("notes").config.route.note_url_pattern.replace("{{NOTE_ID}}",t)}}]),e}(fe),Ze=React,Oe=Ze.useEffect,Ee=Ze.useRef;function Pe(t,n){var e=Ee(!0);Oe((function(){e.current?e.current=!1:t()}),n)}var ke=e(8950),Re=e(2975),je=e.n(Re);function Ce(){return(0,o.useMemo)((function(){return window.top.$e.components.get("notes").config}),[])}var Te=e(108),_e=(0,o.createContext)(null),ze=function(){return(0,o.useContext)(_e)},De=function(t){var n=(0,o.useState)((function(){return new Map})),e=(0,i.Z)(n,2),r=e[0],c=e[1];(0,o.useEffect)((function(){var t=new Map;document.querySelectorAll(".elementor-element[data-id]").forEach((function(n){var e=n.dataset.id;t.has(e)||t.set(e,n)})),c(t)}),[]);var l=(0,o.useCallback)((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.top.$e.components.get("notes").config.route.post_id;if(!r.has(t))return n;var e=r.get(t).closest("[data-elementor-id]");return e?e.dataset.elementorId:n}),[r]),s={elements:r,getDocumentIdByElement:l};return a().createElement(_e.Provider,(0,S.Z)({value:s},t))},Se=e(2237),Ae="thread",Ie="new-thread";function Fe(){var t=(0,Se.v9)((function(t){return t.notes.active})),n=(0,o.useCallback)((function(t){var n=t.type,e=t.data,r=[Ae,Ie];if(!r.includes(n))throw new Error("`setActive()` type must be one of: "+r.join(", "));return window.top.$e.run("notes/set-active",{type:n,data:e})}),[]),e=(0,o.useCallback)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return window.top.$e.run("notes/clear-active",{id:t})}),[]),r=(0,o.useCallback)((function(n){return Ae===(null==t?void 0:t.type)&&(null==t?void 0:t.data.noteId)===n}),[t]);return{activeThread:t,setActive:n,clearActive:e,isThreadActive:r}}var Le=["id"];function qe(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Me(t){for(var n=1;n0})),t.next=4,window.top.$e.data[r?"create":"delete"]("notes/read-status",{ids:e});case 4:return t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),{onSuccess:function(r){var o=function(t){var n=t.queryKey;return Object.prototype.hasOwnProperty.call(n[1]||{},"only_unread")};return Promise.all([n({predicate:function(t){var n=t.queryKey;return r.includes(n[1])}}),e({predicate:o}),t({predicate:o,refetchActive:!1})])}})}function $e(){var t=(0,Te.useQueryClient)();return(0,o.useCallback)((function(n){var e=n.id,r=(0,A.Z)(n,Le),o=["note"];return e&&o.push(e),t.invalidateQueries(o,r)}),[t])}function Ve(){var t=(0,Te.useQueryClient)();return(0,o.useCallback)((function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.invalidateQueries(["notes"],n)}),[t])}function Ue(){var t=(0,Te.useQueryClient)();return(0,o.useCallback)((function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.invalidateQueries(["notes/summary"],n)}),[t])}var We=e(8003).__,He=e(216);function Ke(t){var n,e,r,o,i=(n=Ve(),e=$e(),r=Ue(),o=Fe().clearActive,(0,Te.useMutation)(function(){var t=(0,ke.Z)(je().mark((function t(n){var e,r,o,a;return je().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.id,r=n.parentId,o=n.force,a=void 0!==o&&o,t.next=3,window.top.$e.data.delete("notes/index",An({id:e,force:a}));case 3:return t.abrupt("return",{id:e,parentId:r});case 4:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),{onSuccess:function(t){var a=t.id,i=t.parentId;o(a);var c=!i;return Promise.all(c?[r({exact:!1}),n({exact:!1})]:[e({id:i})])}}));return Pe((function(){t.onLoadingChange&&t.onLoadingChange(i.isLoading)}),[i.isLoading]),a().createElement(me,{open:t.isOpen,onOpenChange:t.onOpenChange},a().createElement(me.Content,null,a().createElement(me.DescriptionContainer,null,a().createElement(me.Title,null,t.note.isReply()?We("Delete this reply?","elementor-pro"):We("Delete this note?","elementor-pro")),a().createElement(me.Description,null,t.note.isReply()?We("Deleted replies can't be recovered.","elementor-pro"):We("Deleted notes can't be recovered.","elementor-pro"))),a().createElement(me.ActionsContainer,null,a().createElement(me.Cancel,null,We("Cancel","elementor-pro")),a().createElement(me.Action,{onClick:function(){window.top.$e.run("notes/delete",{noteId:t.note.id}),i.mutateAsync({id:t.note.id,parentId:t.note.parentId,force:!0})}},We("Delete","elementor-pro")))))}Ke.propTypes={isOpen:He.bool.isRequired,onOpenChange:He.func.isRequired,note:He.instanceOf(xe),onLoadingChange:He.func};var Qe=e(8003).__,Ye=e(216);function Xe(t){var n=t.note.isRead,e=Ne();return a().createElement(Ut.Item,{icon:"eicon-envelope",disabled:e.isLoading,onSelect:function(){return e.mutateAsync({ids:[t.note.id,t.note.parentId],isRead:!n})}},Qe(n?"Mark as unread":"Mark as read","elementor-pro"))}Xe.propTypes={note:Ye.shape({id:Ye.number,parentId:Ye.number,isRead:Ye.bool}).isRequired};var Ge=e(8003).__,Je=e(216);function tr(t){var n,e,r,o=t.note.isResolved,i=(n=Ve(),e=$e(),r=Ue(),(0,Te.useMutation)(function(){var t=(0,ke.Z)(je().mark((function t(n){var e,r,o,a;return je().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.id,r=n.isResolved,t.next=3,window.top.$e.data.update("notes/index",{is_resolved:r},{id:e});case 3:return o=t.sent,a=o.data,t.abrupt("return",xe.createFromResponse(a.data));case 6:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),{onSuccess:function(t){var o=function(t){var n=t.queryKey;return Object.prototype.hasOwnProperty.call(n[1]||{},"is_resolved")};return Promise.all([e({id:t.id}),n({predicate:o}),r({predicate:o})])}})),c=Fe().clearActive;return Pe((function(){t.onLoadingChange&&t.onLoadingChange(i.isLoading)}),[i.isLoading]),a().createElement(Rt,null,a().createElement(Rt.Trigger,{asChild:!0},a().createElement(V,{name:o?"eicon-check-circle-o":"eicon-check",disabled:i.isLoading,onClick:(0,ke.Z)(je().mark((function n(){var e;return je().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(e=!o)?window.top.$e.run("notes/resolve",{noteId:t.note.id}):window.top.$e.run("notes/re-open",{noteId:t.note.id}),n.next=4,i.mutateAsync({id:t.note.id,isResolved:e});case 4:e&&c(t.note.id);case 5:case"end":return n.stop()}}),n)})))})),a().createElement(Rt.Content,null,Ge(o?"Re-open":"Resolve","elementor-pro"),a().createElement(Rt.Arrow,null)))}tr.propTypes={note:Je.instanceOf(xe).isRequired,onLoadingChange:Je.func};var nr,er,rr=e(8003).__,or=e(216),ar=(0,l.ZP)(Rt.Content)(nr||(nr=(0,c.Z)(["\n max-width: 200px;\n"]))),ir=(0,l.ZP)(I)(er||(er=(0,c.Z)(["\n padding: 4px !important;\n color: #a4afb7 !important;\n transition: 0.2s all !important;\n display: grid !important;\n place-items: center !important;\n font-size: 18px !important;\n border-radius: 100% !important;\n\n &:hover, &:focus {\n color: #6d7882;\n\toutline: none;\n\tbackground: #f1f3f5;\n }\n"])));function cr(t){return 0===t.readers.length?null:a().createElement(Rt,{delayDuration:400},a().createElement(Rt.Trigger,{asChild:!0},a().createElement(ir,{className:"eicon-preview-medium",tabIndex:0})),a().createElement(ar,null,a().createElement("strong",null,rr("Seen by","elementor-pro")+": "),t.readers.map((function(t){return t.name})).join(", "),a().createElement(Rt.Arrow,null)))}cr.propTypes={readers:or.arrayOf(or.shape({name:or.string})).isRequired};var lr="create",sr="edit",pr="delete",ur="create_users",dr="edit_users";const mr=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=Ce();return(0,o.useMemo)((function(){return n?!!n.userCan[t]:!!e.current_user_can[t]}),[t,n,e])};function fr(){var t;return!(null===(t=navigator)||void 0===t||!t.clipboard)}var vr=e(8003).__,gr=e(216);function hr(t){var n=Ce().direction,e=(0,o.useContext)(hi).setIsDisabled,r=(0,o.useState)(!1),c=(0,i.Z)(r,2),l=c[0],s=c[1],p=mr(pr,t.note),u=mr(sr,t.note),d=t.note.isThread()&&u,m=u||p||t.note.isThread();return(0,o.useEffect)((function(){return function(){return e(!1)}}),[]),a().createElement(a().Fragment,null,d&&a().createElement(tr,{note:t.note,onLoadingChange:function(t){return e(t)}}),a().createElement(cr,{readers:t.note.readers}),m&&a().createElement(Ut,{modal:!1,dir:n,onOpenChange:function(t){t?window.top.$e.run("notes/open-note-actions"):window.top.$e.run("notes/close-note-actions")}},a().createElement(Ut.Trigger,{asChild:!0},a().createElement(V,{name:"eicon-ellipsis-h"})),a().createElement(Ut.Content,{align:"end"},t.note.isThread()&&a().createElement(Xe,{note:t.note}),u&&a().createElement(Ut.Item,{onSelect:function(){return t.setIsEditMode(!0)},icon:"eicon-edit"},vr("Edit","elementor-pro")),t.note.isThread()&&a().createElement(Ut.Item,{onSelect:function(){window.top.$e.run("notes/copy-link",{id:t.note.id})},icon:"eicon-copy",disabled:!fr(),tooltip:!fr()&&vr('Supported in "https" sites only',"elementor-pro")},vr("Copy Link","elementor-pro")),p&&a().createElement(a().Fragment,null,a().createElement(Ut.Separator,null),a().createElement(Ut.Item,{onSelect:function(){return s(!0)},icon:"eicon-trash",variant:"danger"},vr("Delete","elementor-pro"))),a().createElement(Ut.Arrow,null))),p&&a().createElement(Ke,{note:t.note,isOpen:l,onOpenChange:s,onLoadingChange:function(t){return e(t)}}))}hr.propTypes={note:gr.instanceOf(xe).isRequired,setIsEditMode:gr.func.isRequired};var yr,br,wr,xr,Zr=e(216),Or=["maxRows","autoSize"],Er=(0,l.ZP)(Qn)(yr||(yr=(0,c.Z)(["\n --font: 300 12px Roboto, sans-serif;\n --line-height: 1.5;\n --padding-block: 8px;\n\n font-size: 12px !important;\n border-radius: 4px !important;\n border: 1px solid #c2cbd2 !important;\n transition: .3s border-color, .3s opacity !important;\n padding: var(--padding-block) 12px !important;\n overflow: auto !important;\n width: 100% !important;\n box-sizing: border-box !important;\n\n ",";\n\n textarea {\n all: revert;\n\n\tborder: none !important;\n font: var( --font ) !important;\n\tline-height: var(--line-height) !important;\n\tpadding: 0 !important;\n\tmargin: 0 !important;\n\tcolor: #6d7882 !important;\n\tdisplay: block !important;\n\theight: 100% !important;\n\n\t&::placeholder {\n\t color: #c2cbd2 !important;\n\t}\n }\n\n &:focus-within {\n\tborder-color: #a4afb6 !important;\n\n\t// Accessibility-friendly, since the Container itself has a border on focus.\n\ttextarea:focus {\n\t outline: none !important;\n\t border: none !important;\n\t}\n }\n\n ","\n\n ",""])),(function(t){var n=t.maxRows;return n&&(0,l.iv)(br||(br=(0,c.Z)(["\n\t--max-rows: ",";\n\n\tmax-height: calc((1em * var(--line-height) * var(--max-rows)) + (var(--padding-block) * 2)) !important;\n "])),n)}),(function(t){return t.disabled&&(0,l.iv)(wr||(wr=(0,c.Z)(["\n\topacity: .5 !important;\n\tpointer-events: none !important;\n "])))}),(function(t){return t.autoSize&&(0,l.iv)(xr||(xr=(0,c.Z)(["\n\tdisplay: inline-grid !important;\n\tvertical-align: top !important;\n\talign-items: center !important;\n\n\ttextarea {\n\t grid-area: 2 / 1 !important;\n\t resize: none !important;\n\t background: none !important;\n\t appearance: none !important;\n\t box-shadow: none !important;\n\t overflow: hidden !important;\n\n\t &::placeholder {\n\t all: revert;\n\t }\n\t}\n\n\t&::after {\n\t content: attr(data-value) ' ' !important;\n\t display: block !important;\n\t font: var( --font ) !important;\n\t white-space: pre-wrap !important;\n\t grid-area: 2 / 1 !important;\n\t visibility: hidden !important;\n\t line-height: var(--line-height) !important;\n\t}"])))})),Pr=a().forwardRef((function(t,n){var e=t.maxRows,r=t.autoSize,i=(0,A.Z)(t,Or),c=(0,o.useRef)();return a().createElement(Er,{maxRows:e,"data-value":i.value||i.defaultValue,autoSize:r,ref:c,disabled:i.disabled},a().createElement("textarea",(0,S.Z)({},i,{ref:n,onInput:function(t){i.onInput&&i.onInput(t),c.current.dataset.value=t.target.value}})))}));Pr.displayName="Textarea",Pr.propTypes={disabled:Zr.bool,autoSize:Zr.bool,maxRows:Zr.number,onInput:Zr.func,value:Zr.string,defaultValue:Zr.string};const kr=Pr;function Rr(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function jr(t){for(var n=1;n