(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{185:function(t,e,o){"use strict";var i=o(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(o(55)),a=i(o(0)),r=i(o(97)),d=o(101),l=o(525),u=o(781),c=o(989);const s=(0,o(533).defAtom)(t=>{var e;const{color:o,Provider:i}=(0,l.useColorCompute)({},t.atomModel.styles$),s=t.atomModel._preview_data&&Object.keys(t.atomModel._preview_data).length?t.atomModel._preview_data:t.atomModel.data,f=Object.values((null===(e=s.text)||void 0===e?void 0:e.entityMap)||{}).some(t=>t.data.highlight_type);return(0,c.useDrawHighlightForAtom)(f,t.atomModel),a.default.createElement("div",{className:(0,r.default)("con-kit-atom-header",{"con-kit-atom-header--gradient":o.css["--gradient-text"]}),style:{...o.css}},a.default.createElement(d.AlignContextProvider,{align_horizontal:t.atomModel.styles$.align_horizontal,align_vertical:t.atomModel.styles$.align_vertical},a.default.createElement(i,{value:o.js},a.default.createElement(u.HeaderDraftjsComponent,(0,n.default)({text:t.atomModel.data$.text},t.atomModel.styles$)))))});e.default=s},989:function(t,e,o){"use strict";var i=o(1);Object.defineProperty(e,"__esModule",{value:!0}),e.drawHighlightsForAtom=r,e.useDrawHighlightForAtom=void 0;var n=o(0),a=i(o(990));o(993);function r(t,e,i=1){const n=t.querySelectorAll(`[data-atom][data-id="${e}"]`);let a=(t,e,o=1)=>{console.warn("drawHighlights is not defined")};"undefined"!=typeof window&&(a=window.drawHighlights?window.drawHighlights:o(140).default,n.length&&n.forEach(e=>{const o=e.querySelectorAll(".con-kit-quark-highlight"),n=e.querySelector(".con-kit-atom__effects");n&&(n.innerHTML=""),o.length&&a(t,Array.from(o),i)}))}e.useDrawHighlightForAtom=(t,e)=>{{const o=(0,n.useCallback)(()=>{if("undefined"!=typeof document){var t;const o=null===(t=document.querySelector(`[data-atom][data-id="${e._id}"]`))||void 0===t?void 0:t.closest("section");o&&o.getAttribute("data-kit-animation")||r(document,e._id)}},[e]),i=(0,n.useCallback)((0,a.default)(()=>{requestAnimationFrame(()=>{o()})},100),[o]);(0,n.useEffect)(()=>{t&&i()},[t])}}},990:function(t,e,o){"use strict";var i=o(991),n=o(572);t.exports=function(t,e,o){var a=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return n(o)&&(a="leading"in o?!!o.leading:a,r="trailing"in o?!!o.trailing:r),i(t,e,{leading:a,maxWait:e,trailing:r})}},991:function(t,e,o){"use strict";var i=o(572),n=o(992),a=o(775),r=Math.max,d=Math.min;t.exports=function(t,e,o){var l,u,c,s,f,v,m=0,g=!1,h=!1,w=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var o=l,i=u;return l=u=void 0,m=e,s=t.apply(i,o)}function y(t){var o=t-v;return void 0===v||o>=e||o<0||h&&t-m>=c}function _(){var t=n();if(y(t))return x(t);f=setTimeout(_,function(t){var o=e-(t-v);return h?d(o,c-(t-m)):o}(t))}function x(t){return f=void 0,w&&l?p(t):(l=u=void 0,s)}function M(){var t=n(),o=y(t);if(l=arguments,u=this,v=t,o){if(void 0===f)return function(t){return m=t,f=setTimeout(_,e),g?p(t):s}(v);if(h)return clearTimeout(f),f=setTimeout(_,e),p(v)}return void 0===f&&(f=setTimeout(_,e)),s}return e=a(e)||0,i(o)&&(g=!!o.leading,c=(h="maxWait"in o)?r(a(o.maxWait)||0,e):c,w="trailing"in o?!!o.trailing:w),M.cancel=function(){void 0!==f&&clearTimeout(f),m=0,l=v=u=f=void 0},M.flush=function(){return void 0===f?s:x(n())},M}},992:function(t,e,o){"use strict";var i=o(588);t.exports=function(){return i.Date.now()}},993:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EnvContext=void 0;var i=o(0);e.EnvContext=(0,i.createContext)({window:"undefined"!=typeof window?window:null,env:void 0})}}]);