playbook_ui 13.6.0.pre.alpha.tiptapreacthookformbug1210 → 13.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8771c78a1ecc2d78dcac4e22ab2ada7e04f99d1e4426d5c824cefb854532cb0
4
- data.tar.gz: ae5e324a57a9340ea86ada259e94943a975c16d0c721100b3551a4e30af63e55
3
+ metadata.gz: 7172374694713ed870dd3d7801aba460bca488288c56a3d1894ae76455e22500
4
+ data.tar.gz: f3fd4ed95bcd7742f66dfeb9831777e9fed9a82fe258001f8b2f5a7dab3da54d
5
5
  SHA512:
6
- metadata.gz: b031c275c0b45eac2065985bc48358cb2c9a05337d9cb198698c1af364486bcdbb42c3c8c4e65d5fb4aeef6998481b61d37ea8d17ec0caca1459cbc4c94eb571
7
- data.tar.gz: e5e2848b9c33616179dac4582f8a3c5c0fecb04a1fa5c8dbddbaa2e2553fc75248bd1f6730c7ef76d2e66a6b27490753e3035f184464370e273a86173d4f8d0c
6
+ metadata.gz: 24f343c6fa7004493b0f18478b3f493f6f6167cfce5a98eacd413d74958dfb204e12e4e53ec809d9e7811d81a611de33fecf95d2c5ae527092e36660beca7178
7
+ data.tar.gz: 958ecce577a1c495085bdea636e656d67a6e805b45b635070d8d7713b623c9ccc09854662b08c06d2c5c21c5631d2370efc59b6596869f038afa73db32c83fca
@@ -31,10 +31,8 @@ const EditorButton = ({
31
31
  >
32
32
  <button
33
33
  className={classname}
34
- disabled={disable}
35
34
  onClick={onclick}
36
- role="button"
37
- type="button"
35
+ disabled={disable}
38
36
  >
39
37
  <Flex
40
38
  align="center"
@@ -22,8 +22,6 @@ const popoverReference = (
22
22
  <button
23
23
  className="toolbar_button"
24
24
  onClick={handleTogglePopover}
25
- role="button"
26
- type="button"
27
25
  >
28
26
  <Flex
29
27
  align="center"
@@ -28,7 +28,7 @@
28
28
  *
29
29
  * http://api.jqueryui.com/category/ui-core/
30
30
  */
31
- var i=/input|select|textarea|button|object|iframe/;function r(t){var e=t.offsetWidth<=0&&t.offsetHeight<=0;if(e&&!t.innerHTML)return!0;try{var n=window.getComputedStyle(t),i=n.getPropertyValue("display");return e?"contents"!==i&&function(t,e){return"visible"!==e.getPropertyValue("overflow")||t.scrollWidth<=0&&t.scrollHeight<=0}(t,n):"none"===i}catch(t){return console.warn("Failed to inspect element style"),!1}}function o(t,e){var n=t.nodeName.toLowerCase();return(i.test(n)&&!t.disabled||"a"===n&&t.href||e)&&function(t){for(var e=t,n=t.getRootNode&&t.getRootNode();e&&e!==document.body;){if(n&&e===n&&(e=n.host.parentNode),r(e))return!1;e=e.parentNode}return!0}(t)}function a(t){var e=t.getAttribute("tabindex");null===e&&(e=void 0);var n=isNaN(e);return(n||e>=0)&&o(t,!n)}t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(t){return t.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(t){return t.removeAttribute("aria-hidden")})));s=null},e.log=function(){0},e.assertNodeList=l,e.setElement=function(t){var e=t;if("string"==typeof e&&a.canUseDOM){var n=document.querySelectorAll(e);l(n,e),e=n}return s=e||s},e.validateElement=d,e.hide=function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=d(t)[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){r.value.setAttribute("aria-hidden","true")}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}},e.show=function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=d(t)[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){r.value.removeAttribute("aria-hidden")}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}},e.documentNotReadyOrSSRTesting=function(){s=null};var i,r=n(166),o=(i=r)&&i.__esModule?i:{default:i},a=n(164);var s=null;function l(t,e){if(!t||!t.length)throw new Error("react-modal: No elements were found for selector "+e+".")}function d(t){var e=t||s;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(t){return console.log(t)})),console.log("end portalOpenInstances ----------")},e.resetState=function(){r=new i};var i=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.register=function(t){-1===e.openInstances.indexOf(t)&&(e.openInstances.push(t),e.emit("register"))},this.deregister=function(t){var n=e.openInstances.indexOf(t);-1!==n&&(e.openInstances.splice(n,1),e.emit("deregister"))},this.subscribe=function(t){e.subscribers.push(t)},this.emit=function(t){e.subscribers.forEach((function(n){return n(t,e.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new i;e.default=r},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(203),l=n.n(s),d=n(2),c=n(5),u=n(12),h=n(23),p=n(177),f=n(175),g=n(176),m=n(10),v=n(63),y=n(14),b=n(134);function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var O=function t(e){var n=e.aria,o=void 0===n?{}:n,s=e.cancelButton,p=e.confirmButton,f=e.className,g=e.data,_=void 0===g?{}:g,O=e.id,w=e.size,C=void 0===w?"md":w,$=e.children,k=e.loading,E=void 0!==k&&k,S=e.fullHeight,j=void 0!==S&&S,A=e.opened,M=e.onCancel,D=void 0===M?function(){}:M,P=e.onConfirm,T=void 0===P?function(){}:P,L=e.onClose,I=void 0===L?function(){}:L,N=e.placement,R=void 0===N?"center":N,F=e.portalClassName,B=e.shouldCloseOnOverlayClick,z=void 0===B||B,W=e.status,H=e.text,Y=e.title,U=e.trigger,G=Object(d.a)(o),X=Object(d.c)(_),V={base:a()("pb_dialog",Object(d.b)("pb_dialog",C,R)),afterOpen:"pb_dialog_after_open",beforeClose:"pb_dialog_before_close"},q={base:"pb_dialog_overlay ".concat(null!==j&&(j?"xl"===C?"full_height_center":"full_height_".concat(R):null)),afterOpen:"pb_dialog_overlay_after_open",beforeClose:"pb_dialog_overlay_before_close"},K=a()(Object(d.b)("pb_dialog_wrapper"),Object(c.c)(e),f),Z=x(Object(i.useState)(!1),2),J=Z[0],Q=Z[1],tt=U?J:A,et={onClose:U?function(){Q(!1)}:I};U&&document.querySelector(U).addEventListener("click",(function(){Q(!0),document.querySelector("#cancel-button").addEventListener("click",(function(){Q(!1)}))}),{once:!0});var nt={default:{icon:"exclamation-circle",variant:"default",size:"lg"},info:{icon:"info-circle",variant:"default",size:"lg"},caution:{icon:"exclamation-triangle",variant:"yellow",size:"lg"},delete:{icon:"trash-alt",variant:"red",size:"lg"},error:{icon:"times-circle",variant:"red",size:"lg"},success:{icon:"check-circle",variant:"green",size:"lg"}};return r.a.createElement(b.a.Provider,{value:et},r.a.createElement("div",Object.assign({},G,X,{className:K}),r.a.createElement(l.a,{ariaHideApp:!1,className:V,closeTimeoutMS:200,contentLabel:"Minimal Modal Example",id:O,isOpen:tt,onRequestClose:I,overlayClassName:q,portalClassName:F,shouldCloseOnOverlayClick:z},r.a.createElement(r.a.Fragment,null,Y&&!W?r.a.createElement(t.Header,null,Y):null,!W&&H?r.a.createElement(t.Body,null,H):null,W&&r.a.createElement(t.Body,{className:"dialog_status_text_align",padding:"md"},r.a.createElement(m.a,{align:"center",orientation:"column"},r.a.createElement(v.a,{icon:nt[W].icon,size:nt[W].size,variant:nt[W].variant}),r.a.createElement(y.a,{marginTop:"sm",size:3},Y),r.a.createElement(u.a,{marginTop:"xs",text:H}))),s&&p?r.a.createElement(t.Footer,null,r.a.createElement(h.a,{loading:E,onClick:T,htmlType:"button",variant:"primary"},p),r.a.createElement(h.a,{id:"cancel-button",onClick:D,variant:"link",htmlType:"button"},s)):null,$))))};O.Header=p.a,O.Body=g.a,O.Footer=f.a,e.a=O},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(70),l=n.n(s),d=n(26),c=n.n(d),u=n(53),h=n(77),p=n(71),f=n(115),g=n.n(f),m=n(206),v=n.n(m),y=n(8),b=n.n(y),x=n(9),_=n.n(x),O=n(2),w=n(5);function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return $(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var k=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};e.a=function(t){var e=t.aria,n=void 0===e?{}:e,o=(t.className,t.chartData),s=t.dark,d=void 0!==s&&s,f=t.data,m=void 0===f?{}:f,y=t.disableAnimation,x=void 0!==y&&y,$=t.fullCircle,E=void 0!==$&&$,S=t.height,j=void 0===S?null:S,A=t.id,M=t.max,D=void 0===M?100:M,P=t.min,T=void 0===P?0:P,L=t.prefix,I=void 0===L?"":L,N=t.showLabels,R=void 0!==N&&N,F=t.style,B=void 0===F?"solidgauge":F,z=t.suffix,W=void 0===z?"":z,H=t.title,Y=void 0===H?"":H,U=t.tooltipHtml,G=void 0===U?'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>':U,X=t.colors,V=void 0===X?[]:X,q=t.minorTickInterval,K=void 0===q?null:q,Z=t.circumference,J=void 0===Z?E?[0,360]:[-100,100]:Z,Q=k(t,["aria","className","chartData","dark","data","disableAnimation","fullCircle","height","id","max","min","prefix","showLabels","style","suffix","title","tooltipHtml","colors","minorTickInterval","circumference"]),tt=Object(O.a)(n),et=Object(O.c)(m);g()(c.a),v()(c.a);d?c.a.setOptions(h.a):c.a.setOptions(u.a),c.a.setOptions({tooltip:{pointFormat:G,followPointer:!0}});var nt=Object(O.b)({pb_gauge_kit:!0}),it=C(Object(i.useState)({}),2),rt=it[0],ot=it[1];return Object(i.useEffect)((function(){var t=o.map((function(t){return t.y=t.value,delete t.value,t})),e={chart:{events:{load:function(){setTimeout(this.reflow.bind(this),0)}},type:B,height:j},title:{text:Y},yAxis:{min:T,max:D,lineWidth:0,tickWidth:0,minorTickInterval:K,tickAmount:2,tickPositions:[T,D],labels:{y:26,enabled:R}},credits:!1,series:[{data:t}],pane:{center:["50%","50%"],size:"90%",startAngle:J[0],endAngle:J[1],background:{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane"}},colors:void 0!==V&&V.length>0?Object(p.a)(V):u.a.colors,plotOptions:{series:{animation:!x},solidgauge:{borderColor:void 0!==V&&1===V.length?Object(p.a)(V).join():u.a.colors[0],borderWidth:20,radius:90,innerRadius:"90%",dataLabels:{borderWidth:0,color:b.a.text_lt_default,enabled:!0,format:'<span class="prefix">'.concat(I,"</span>")+'<span class="fix">{y:,f}</span>'+'<span class="suffix">'.concat(W,"</span>"),style:{fontFamily:_.a.font_family_base,fontWeight:_.a.regular,fontSize:_.a.heading_2},y:-26}}}};ot(Object.assign({},e)),document.querySelector(".prefix")&&(document.querySelectorAll(".prefix").forEach((function(t){t.setAttribute("y","28")})),document.querySelectorAll(".fix").forEach((function(t){return t.setAttribute("y","38")})))}),[o]),r.a.createElement(l.a,{containerProps:Object.assign(Object.assign({className:a()(nt,Object(w.c)(Q)),id:A},tt),et),highcharts:c.a,options:rt})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n(58),r=n(256);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=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 n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=[0,20],h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,n,i,d=l(c);function c(){return o(this,c),d.apply(this,arguments)}return e=c,i=[{key:"selector",get:function(){return"[data-pb-popover-kit]"}}],(n=[{key:"moveTooltip",value:function(){document.querySelector("body").appendChild(this.tooltip)}},{key:"connect",value:function(){var t=this;this.moveTooltip(),this.popper=Object(r.a)(this.triggerElement,this.tooltip,{placement:this.position,strategy:"fixed",modifiers:[{name:"offset",options:{offset:this.offset}}]}),this.triggerElement.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.tooltip.classList.contains("show")||t.checkCloseTooltip(),setTimeout((function(){t.toggleTooltip(),t.popper.update()}),0)}))}},{key:"checkCloseTooltip",value:function(){var t=this;document.querySelector("body").addEventListener("click",(function(e){var n=e.target,i=null!==n.closest("#".concat(t.tooltipId)),r=null!==n.closest("#".concat(t.triggerElementId));switch(t.closeOnClick){case"any":(i||!i&&!r)&&t.hideTooltip();break;case"outside":i||r||t.hideTooltip();break;case"inside":i&&t.hideTooltip()}}),!0)}},{key:"hideTooltip",value:function(){this.tooltip.classList.remove("show"),this.tooltip.classList.add("hide")}},{key:"toggleTooltip",value:function(){this.tooltip.classList.toggle("show"),this.tooltip.classList.toggle("hide")}},{key:"triggerElement",get:function(){return this._triggerElement=this._triggerElement||document.querySelector("#".concat(this.triggerElementId))}},{key:"tooltip",get:function(){return this._tooltip=this._tooltip||this.element.querySelector("#".concat(this.tooltipId))}},{key:"position",get:function(){return this.element.dataset.pbPopoverPosition}},{key:"triggerElementId",get:function(){return this.element.dataset.pbPopoverTriggerElementId}},{key:"tooltipId",get:function(){return this.element.dataset.pbPopoverTooltipId}},{key:"offset",get:function(){return"true"===this.element.dataset.pbPopoverOffset?u:[0,0]}},{key:"closeOnClick",get:function(){return this.element.dataset.pbPopoverCloseOnClick}}])&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var i=n(58),r=n(168),o=n(170),a=n(172),s=n(171);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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 n,i=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=[0,20],g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(p,t);var e,n,i,h=u(p);function p(){return l(this,p),h.apply(this,arguments)}return e=p,i=[{key:"selector",get:function(){return"[data-pb-tooltip-kit]"}}],(n=[{key:"connect",value:function(){var t=this;this.triggerElements.forEach((function(e){e.addEventListener("mouseenter",(function(){t.mouseenterTimeout=setTimeout((function(){t.showTooltip(e),t.checkCloseTooltip(e)}),250),e.addEventListener("mouseleave",(function(){clearTimeout(t.mouseenterTimeout),setTimeout((function(){t.hideTooltip()}),0)}),{once:!0})}))})),this.tooltip.addEventListener("mouseenter",(function(){clearTimeout(t.mouseenterTimeout)})),this.tooltip.addEventListener("mouseleave",(function(){t.hideTooltip()}))}},{key:"checkCloseTooltip",value:function(t){var e=this;document.querySelector("body").addEventListener("click",(function(n){var i=n.target,r=i.closest("#".concat(e.tooltipId))===e.tooltip;i.closest(e.triggerElementSelector)===t||r?e.checkCloseTooltip(t):e.hideTooltip()}),{once:!0})}},{key:"showTooltip",value:function(t){this.popper=Object(r.a)(t,this.tooltip,{placement:this.position,modifiers:[{name:"offset",options:{offset:f}},{name:"arrow",options:{element:document.querySelector("#".concat(this.tooltipId,"-arrow"))}},o.a,a.a,s.a]}),this.tooltip.classList.add("show")}},{key:"hideTooltip",value:function(){var t=this;this.tooltip.classList.add("fade_out"),setTimeout((function(){t.popper&&(t.popper.destroy(),t.tooltip.classList.remove("show"),t.tooltip.classList.remove("fade_out"))}),250)}},{key:"triggerElements",get:function(){var t;return(t=this.triggerElementId?document.querySelector("#".concat(this.triggerElementId)):this.triggerElementSelector.indexOf("#")>-1?document.querySelector("".concat(this.triggerElementSelector)):document.querySelectorAll("".concat(this.triggerElementSelector)))?(t.length||(t=[t]),this._triggerElements=this._triggerElements||t):(console.error("Tooltip Kit: an invalid or unavailable DOM reference was provided!"),[])}},{key:"tooltip",get:function(){return this._tooltip=this._tooltip||this.element.querySelector("#".concat(this.tooltipId))}},{key:"position",get:function(){return this.element.dataset.pbTooltipPosition}},{key:"triggerElementId",get:function(){return this.element.dataset.pbTooltipTriggerElementId}},{key:"tooltipId",get:function(){return this.element.dataset.pbTooltipTooltipId}},{key:"triggerElementSelector",get:function(){return this.element.dataset.pbTooltipTriggerElementSelector}}])&&d(e.prototype,n),i&&d(e,i),Object.defineProperty(e,"prototype",{writable:!1}),p}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n(58),r=n(22);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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 n,i=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return u(this,n)}}function u(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(u,t);var e,n,i,a=c(u);function u(){return s(this,u),a.apply(this,arguments)}return e=u,i=[{key:"selector",get:function(){return"[data-pb-typeahead-kit]"}}],(n=[{key:"connect",value:function(){var t=this;this.element.addEventListener("keydown",(function(e){return t.handleKeydown(e)})),this.searchInput.addEventListener("focus",(function(){return t.debouncedSearch()})),this.searchInput.addEventListener("input",(function(){return t.debouncedSearch()})),this.resultsElement.addEventListener("click",(function(e){return t.optionSelected(e)}))}},{key:"handleKeydown",value:function(t){"ArrowUp"===t.key?(t.preventDefault(),this.focusPreviousOption()):"ArrowDown"===t.key&&(t.preventDefault(),this.focusNextOption())}},{key:"search",value:function(){var t=this;if(this.searchTerm.length<parseInt(this.searchTermMinimumLength))return this.clearResults();this.toggleResultsLoadingIndicator(!0),this.showResults();var e=this.searchTerm,n=this.searchContext,i={searchingFor:e,searchingContext:n,setResults:function(i){t.resultsCacheUpdate(e,n,i)}};this.element.dispatchEvent(new CustomEvent("pb-typeahead-kit-search",{bubbles:!0,detail:i}))}},{key:"resultsCacheUpdate",value:function(t,e,n){var i=this.cacheKeyFor(t,e);this.resultsOptionCache.has(i)&&this.resultsOptionCache.delete(i),this.resultsOptionCache.size>32&&this.resultsOptionCache.delete(this.resultsOptionCache.keys().next().value),this.resultsOptionCache.set(i,n),this.showResults()}},{key:"resultsCacheClear",value:function(){this.resultsOptionCache.clear()}},{key:"debouncedSearch",get:function(){return this._debouncedSearch=this._debouncedSearch||Object(r.debounce)(this.search,parseInt(this.searchDebounceTimeout)).bind(this)}},{key:"showResults",value:function(){var t=this;if(this.resultsOptionCache.has(this.searchTermAndContext)){this.toggleResultsLoadingIndicator(!1),this.clearResults();var e,n=o(this.resultsOptionCache.get(this.searchTermAndContext));try{for(n.s();!(e=n.n()).done;){var i=e.value;this.resultsElement.appendChild(this.newResultOption(i.cloneNode(!0)))}}catch(t){n.e(t)}finally{n.f()}var r,a=o(this.resultsElement.querySelectorAll("[data-result-option-item]"));try{for(a.s();!(r=a.n()).done;)r.value.addEventListener("mousedown",(function(e){return t.optionSelected(e)}))}catch(t){a.e(t)}finally{a.f()}}}},{key:"optionSelected",value:function(t){var e=t.target.closest("[data-result-option-item]");e&&(this.resultsCacheClear(),this.searchInputClear(),this.clearResults(),this.element.dispatchEvent(new CustomEvent("pb-typeahead-kit-result-option-selected",{bubbles:!0,detail:{selected:e,typeahead:this}})))}},{key:"clearResults",value:function(){this.resultsElement.innerHTML=""}},{key:"newResultOption",value:function(t){var e=this.resultOptionTemplate.content.cloneNode(!0);return e.querySelector('slot[name="content"]').replaceWith(t),e}},{key:"focusPreviousOption",value:function(){var t=this.resultOptionItems.indexOf(this.currentSelectedResultOptionItem)-1;(this.resultOptionItems[t]||this.resultOptionItems[this.resultOptionItems.length-1]).focus()}},{key:"focusNextOption",value:function(){var t=this.resultOptionItems.indexOf(this.currentSelectedResultOptionItem)+1;(this.resultOptionItems[t]||this.resultOptionItems[0]).focus()}},{key:"resultOptionItems",get:function(){return Array.from(this.resultsElement.querySelectorAll("[data-result-option-item]"))}},{key:"currentSelectedResultOptionItem",get:function(){return document.activeElement.closest("[data-result-option-item]")}},{key:"searchInput",get:function(){return this._searchInput=this._searchInput||this.element.querySelector('input[type="search"]')}},{key:"searchTerm",get:function(){return this.searchInput.value}},{key:"searchContext",get:function(){if(this._searchContext)return this._searchContext;var t=this.element.dataset.searchContextValueSelector;return t?(this.element.parentNode.querySelector(t)||this.element.closest(t)).value:null},set:function(t){this._searchContext=t}},{key:"searchTermAndContext",get:function(){return this.cacheKeyFor(this.searchTerm,this.searchContext)}},{key:"cacheKeyFor",value:function(t,e){return[t,JSON.stringify(e)].join()}},{key:"searchInputClear",value:function(){this.searchInput.value=""}},{key:"searchTermMinimumLength",get:function(){return this.element.dataset.pbTypeaheadKitSearchTermMinimumLength}},{key:"searchDebounceTimeout",get:function(){return this.element.dataset.pbTypeaheadKitSearchDebounceTimeout}},{key:"resultsElement",get:function(){return this._resultsElement=this._resultsElement||this.element.querySelector("[data-pb-typeahead-kit-results]")}},{key:"resultOptionTemplate",get:function(){return this._resultOptionTemplate=this._resultOptionTemplate||this.element.querySelector("template[data-pb-typeahead-kit-result-option]")}},{key:"resultsOptionCache",get:function(){return this._resultsOptionCache=this._resultsOptionCache||new Map}},{key:"resultsLoadingIndicator",get:function(){return this._resultsLoadingIndicator=this._resultsLoadingIndicator||this.element.querySelector("[data-pb-typeahead-kit-loading-indicator]")}},{key:"toggleResultsLoadingIndicator",value:function(t){var e="0";t&&(e="1"),this.resultsLoadingIndicator.style.opacity=e}}])&&l(e.prototype,n),i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(i.a)},function(t,e,n){"use strict";e.a=function(){var t=document.querySelectorAll("[data-open-dialog]"),e=document.querySelectorAll("[data-close-dialog]"),n=document.querySelectorAll(".pb_dialog_rails");t.forEach((function(t){t.addEventListener("click",(function(){var e=t.dataset.openDialog,n=document.getElementById(e);n.open||n.showModal()}))})),e.forEach((function(t){t.addEventListener("click",(function(){var e=t.dataset.closeDialog;document.getElementById(e).close()}))})),n.forEach((function(t){t.addEventListener("mousedown",(function(e){if("overlay_close"!==t.parentElement.dataset.overlayClick){var n=e.target.getBoundingClientRect();(e.clientX<n.left||e.clientX>n.right||e.clientY<n.top||e.clientY>n.bottom)&&(t.close(),e.stopPropagation())}}))}))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=function(){var t=event.target.closest(".pb_rich_text_editor_kit");t.classList.contains("inline")&&t.classList.toggle("focused")},l=function(){document.querySelectorAll(".focus-editor-targets trix-editor").forEach((function(t){var e=t.toolbarElement;t==document.activeElement?(t.classList.add("focused-editor"),e.style.display="block"):e.contains(document.activeElement)||(t.classList.remove("focused-editor"),e.style.display="none")}))},d=n(5),c=n(2),u=n(208),h=n(109),p=n(10),f=n(15),g=n(55),m=n(7),v=n(159),y=function(t){var e=t.classname,n=t.disable,i=t.onclick,o=t.icon,a=t.text;return r.a.createElement(v.a,{delay:{open:2e3},interaction:!0,placement:"top",text:a},r.a.createElement("button",{className:e,disabled:n,onClick:i,role:"button",type:"button"},r.a.createElement(p.a,{align:"center",className:"toolbar_button_icon",justify:"center"},r.a.createElement(m.a,{icon:o,size:"lg"}))))},b=n(76),x=n(23),_=n(48),O=n(24);function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var $=function(t){for(var e=t.editor,n=w(Object(i.useState)(!1),2),o=n[0],a=n[1],s=[{node:"paragraph",icon:"paragraph",isActive:e.isActive("paragraph"),text:"Paragraph",onclick:function(){return e.chain().focus().setParagraph().run()}},{node:"heading-1",icon:"h1",isActive:e.isActive("heading",{level:1}),text:"Heading 1",onclick:function(){return e.chain().focus().toggleHeading({level:1}).run()}},{node:"heading-2",icon:"h2",isActive:e.isActive("heading",{level:2}),text:"Heading 2",onclick:function(){return e.chain().focus().toggleHeading({level:2}).run()}},{node:"heading-3",icon:"h3",isActive:e.isActive("heading",{level:3}),text:"Heading 3",onclick:function(){return e.chain().focus().toggleHeading({level:3}).run()}},{node:"bulletList",icon:"list",isActive:e.isActive("bulletList"),text:"Bullet List",onclick:function(){return e.chain().focus().toggleBulletList().run()}},{node:"orderedList",icon:"list-ol",isActive:e.isActive("orderedList"),text:"Ordered List",onclick:function(){return e.chain().focus().toggleOrderedList().run()}},{node:"blockquote",icon:"block-quote",isActive:e.isActive("blockquote"),text:"Block Quote",onclick:function(){return e.chain().focus().toggleBlockquote().run()}}],l=0,d=[],c=0,u=s;c<u.length;c++){var h=u[c],f=h.text,g=h.isActive,v=h.icon;g&&(l++,d.push(r.a.createElement(p.a,{align:"center",key:v,gap:"xs"},r.a.createElement(m.a,{icon:v,size:"lg"}),r.a.createElement("div",null,f),r.a.createElement(p.a,{className:o?"fa-flip-vertical":"",display:"inline_flex"},r.a.createElement(m.a,{fixedWidth:!0,icon:"angle-down","margin-left":"xs"})))))}var y=r.a.createElement(x.a,{className:"editor-dropdown-button",onClick:function(){a(!0)},variant:"secondary"},2===l?d[1]:1===l?d[0]||null:r.a.createElement(p.a,{align:"center",key:"paragraph",gap:"xs"},r.a.createElement(m.a,{icon:"paragraph",size:"lg"}),r.a.createElement("div",null,"Paragraph"),r.a.createElement(p.a,{className:o?"fa-flip-vertical":"",display:"inline_flex"},r.a.createElement(m.a,{fixedWidth:!0,icon:"angle-down","margin-left":"xs"}))));return r.a.createElement(b.a,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:y,shouldClosePopover:function(t){a(!t)},show:o},r.a.createElement(_.a,{paddingTop:"xs",paddingBottom:"xs",variant:"subtle"},s.map((function(t,e){var n=t.icon,i=t.text,o=t.onclick,s=t.isActive;return r.a.createElement(O.a,{cursor:"pointer",className:"pb_tiptap_toolbar_dropdown_list_item ".concat(s?"is-active":""),iconLeft:n,key:"".concat(i,"_").concat(e),margin:"none",onClick:function(){o(),a(!1)},text:i,paddingTop:"xxs",paddingBottom:"xxs"})}))))},k=function(t){var e=t.editor,n=Object(i.useCallback)((function(){var t=e.getAttributes("link").href,n=window.prompt("URL",t);null!==n&&(""!==n?e.chain().focus().extendMarkRange("link").setLink({href:n}).run():e.chain().focus().extendMarkRange("link").unsetLink().run())}),[e]),o=[{onclick:function(){return e.chain().focus().toggleCodeBlock().run()},icon:"code",isActive:e.isActive("codeBlock"),text:"Codeblock"},{onclick:n,icon:"link",isActive:e.isActive("link"),text:"Link"}];return r.a.createElement(r.a.Fragment,null,o.map((function(t,e){var n=t.onclick,i=t.icon,o=t.text,a=t.isActive;return r.a.createElement(y,{classname:"toolbar_button ".concat(a?"is-active":""),onclick:n,icon:i,key:e,text:o})})))},E=function(t){var e=t.editor,n=[{classname:"toolbar_button",icon:"undo",text:"Undo",onclick:function(){return e.chain().focus().undo().run()},disable:!e.can().chain().focus().undo().run()},{classname:"toolbar_button",icon:"redo",text:"Redo",onclick:function(){return e.chain().focus().redo().run()},disable:!e.can().chain().focus().redo().run()}];return r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{displayFlex:!0},n.map((function(t,e){var n=t.onclick,i=t.classname,o=t.disable,a=t.icon,s=t.text;return r.a.createElement(y,{classname:i,onclick:n,disable:o,icon:a,key:e,text:s})}))))};function S(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var A=function(t){var e=t.extensions,n=S(Object(i.useState)(!1),2),o=n[0],a=n[1],s=r.a.createElement("button",{className:"toolbar_button",onClick:function(){a(!0)},role:"button",type:"button"},r.a.createElement(p.a,{align:"center",className:"toolbar_button_icon",justify:"center"},r.a.createElement(m.a,{icon:"ellipsis",size:"lg"})));return r.a.createElement(b.a,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:s,shouldClosePopover:function(t){a(!t)},show:o},r.a.createElement(_.a,{paddingTop:e.length>1?"xs":"none",paddingBottom:e.length>1?"xs":"none",variant:"subtle"},e&&e.map((function(t,e){var n=t.icon,i=t.text,o=t.onclick,s=t.isActive;return r.a.createElement(O.a,{cursor:"pointer",className:"pb_tiptap_toolbar_dropdown_list_item ".concat(s?"is-active":""),iconLeft:n,key:"".concat(i,"_").concat(e),margin:"none",onClick:function(){o(),a(!1)},text:i,paddingTop:"xxs",paddingBottom:"xxs"})}))))},M=function(t){var e=t.editor,n=t.extensions,i=[{icon:"bold",text:"Bold",classname:"toolbar_button ".concat(e.isActive("bold")?"is-active":""),onclick:function(){return e.chain().focus().toggleBold().run()}},{icon:"italic",text:"Italic",classname:"toolbar_button ".concat(e.isActive("italic")?"is-active":""),onclick:function(){return e.chain().focus().toggleItalic().run()}},{icon:"strikethrough",text:"Strikethrough",classname:"toolbar_button ".concat(e.isActive("strike")?"is-active":""),onclick:function(){return e.chain().focus().toggleStrike().run()}}];return r.a.createElement(h.a,{backgroundColor:"white",className:"toolbar"},r.a.createElement(p.a,{flex:"0",justify:"between",paddingX:"sm",paddingY:"xxs"},r.a.createElement(f.a,{className:"toolbar_block",displayFlex:!0},r.a.createElement($,{editor:e}),r.a.createElement(g.a,{orientation:"vertical"}),i&&i.map((function(t,e){var n=t.icon,i=t.text,o=t.classname,a=t.onclick;return r.a.createElement(y,{classname:o,icon:n,key:e,text:i,onclick:a})})),r.a.createElement(g.a,{orientation:"vertical"}),r.a.createElement(k,{editor:e}),n&&r.a.createElement(r.a.Fragment,null,r.a.createElement(A,{extensions:n}))),r.a.createElement(E,{editor:e})))};function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return P(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}try{n(249).config.textAttributes.inlineCode={tagName:"code",inheritable:!0}}catch(t){}e.a=function(t){var e=t.aria,n=void 0===e?{}:e,o=t.advancedEditor,h=t.toolbarBottom,p=void 0!==h&&h,f=t.children,g=t.className,m=t.data,v=void 0===m?{}:m,y=t.focus,b=void 0!==y&&y,x=t.inline,_=void 0!==x&&x,O=t.extensions,w=t.name,C=t.onChange,$=void 0===C?c.d:C,k=t.placeholder,E=t.simple,S=void 0!==E&&E,j=t.sticky,A=void 0!==j&&j,P=t.template,T=void 0===P?"":P,L=t.value,I=void 0===L?"":L,N=t.maxWidth,R=void 0===N?"md":N,F=Object(c.a)(n),B=Object(c.c)(v),z=D(Object(i.useState)(),2),W=z[0],H=z[1],Y=null==W?void 0:W.element;if(W){var U=Y.parentElement.querySelector("trix-toolbar"),G=U.querySelector("[data-trix-attribute=code]"),X=U.querySelector("[data-trix-attribute=inlineCode]");X||(X=G.cloneNode(!0)),X.dataset.trixAttribute="inlineCode",G.insertAdjacentElement("afterend",X),p&&W.element.after(U);Y.addEventListener("trix-selection-change",(function(){var t=function(){if(W.attributeIsActive("code"))return"block";if(W.attributeIsActive("inlineCode"))return"inline";var t=W.getSelectedRange();if(t[0]==t[1])return"block";var e=W.getSelectedDocument().toString().trim();return/\n/.test(e)?"block":"inline"}();G.hidden="inline"==t,X.hidden="block"==t})),b&&(document.addEventListener("trix-focus",l),document.addEventListener("trix-blur",l),l()),document.addEventListener("trix-focus",s),document.addEventListener("trix-blur",s)}Object(i.useEffect)((function(){W&&T&&(W.loadHTML(""),W.setSelectedRange([0,0]),W.insertHTML(T))}),[W,T]),Object(i.useEffect)((function(){Y&&Y.addEventListener("click",(function(t){var e=t.target;if(e.closest(".pb_rich_text_editor_kit")){var n=e.closest("a");n&&n.hasAttribute("href")&&window.open(n.href)}}))}),[Y]);var V=S?"simple":"",q=b?"focus-editor-targets":"",K=A?"sticky":"",Z=_?"inline":"",J=p?"toolbar-bottom":"",Q=a()(Object(d.c)(t,{maxWidth:R}),g);return Q=a()("pb_rich_text_editor_kit",V,q,K,Z,J,Q),r.a.createElement("div",Object.assign({},F,B,{className:Q}),o?r.a.createElement("div",{className:"pb_rich_text_editor_advanced_container"},r.a.createElement(M,{extensions:O,editor:o}),f):r.a.createElement(u.TrixEditor,{className:"",fileParamName:w,mergeTags:[],onChange:$,onEditorReady:function(t){return H(t)},placeholder:k,value:I}))}},function(t,e,n){"use strict";var i,r=n(0),o=n.n(r),a=n(3),s=n.n(a),l=n(207),d=n.n(l),c=(n(241),n(248),n(2)),u=n(5),h=n(41),p=function(t){return Object.keys(t).length<1};function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}!function(t){t[t.TooShort=2]="TooShort",t[t.TooLong=3]="TooLong",t[t.MissingAreaCode=4]="MissingAreaCode",t[t.SomethingWentWrong=-99]="SomethingWentWrong"}(i||(i={}));var m=function(){for(var t=window.intlTelInputGlobals.getCountryData(),e=0;e<t.length;e++){var n=t[e];n.name=n.name.split("(")[0].trim()}};m();var v=function(t,e){var n=t.aria,a=void 0===n?{}:n,l=t.className,g=t.dark,v=void 0!==g&&g,y=t.data,b=void 0===y?{}:y,x=t.disabled,_=void 0!==x&&x,O=t.id,w=void 0===O?"":O,C=t.initialCountry,$=void 0===C?"":C,k=t.isValid,E=void 0===k?function(){}:k,S=t.label,j=void 0===S?"":S,A=t.name,M=void 0===A?"":A,D=t.onChange,P=void 0===D?function(){}:D,T=t.onValidate,L=void 0===T?function(){return null}:T,I=t.onlyCountries,N=void 0===I?[]:I,R=t.required,F=void 0!==R&&R,B=t.preferredCountries,z=void 0===B?[]:B,W=t.value,H=void 0===W?"":W,Y=Object(c.a)(a),U=Object(c.c)(b),G=s()(Object(c.b)("pb_phone_number_input"),Object(u.c)(t),l),X=Object(r.useRef)(),V=f(Object(r.useState)(H),2),q=V[0],K=V[1],Z=f(Object(r.useState)(),2),J=Z[0],Q=Z[1],tt=f(Object(r.useState)(t.error),2),et=tt[0],nt=tt[1],it=f(Object(r.useState)(!1),2),rt=it[0],ot=it[1],at=f(Object(r.useState)(),2),st=at[0],lt=at[1];Object(r.useEffect)((function(){(null==et?void 0:et.length)>0?L(!1):L(!0)}),[et,L]),Object(r.useImperativeHandle)(e,(function(){return{clearField:function(){K(""),nt("")},inputNode:function(){return X.current}}}));var dt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=J.getSelectedCountryData().name,n=t.length>0?" (".concat(t,")"):"";return nt("Invalid ".concat(e," phone number").concat(n)),!0},ct=function(){J&&E(J.isValidNumber()),function(t){if(t)return q&&!function(t){return/^[()+\-\ .\d]*$/g.test(t)}(q)?dt("enter numbers only"):void 0}(J)||function(t){if(t)return t.getValidationError()===i.TooLong?dt("too long"):void nt("")}(J)||function(t){if(t)return t.getValidationError()===i.TooShort||1===q.length?dt("too short"):void nt("")}(J)||function(t){if(F&&t)return t.getValidationError()===i.SomethingWentWrong?1===q.length?dt("too short"):0===q.length?(nt("Missing phone number"),!0):dt():void 0}(J)||function(t){if(F&&t)t.getValidationError()===i.MissingAreaCode&&dt("missing area code")}(J)},ut=function(t,e){return Object.assign(Object.assign({},t.getSelectedCountryData()),{number:e})};Object(r.useEffect)(m,[]),Object(r.useEffect)((function(){var t=d()(X.current,{separateDialCode:!0,preferredCountries:z,allowDropdown:!_,autoInsertDialCode:!1,initialCountry:$,onlyCountries:N});X.current.addEventListener("countrychange",(function(e){var n=ut(t,e.target.value);lt(n),P(n),ct()})),X.current.addEventListener("open:countrydropdown",(function(){return ot(!0)})),X.current.addEventListener("close:countrydropdown",(function(){return ot(!1)})),Q(t)}),[]);var ht={className:rt?"dropdown_open":"",dark:v,"data-phone-number":JSON.stringify(st),disabled:_,error:et,type:"tel",id:w,label:j,name:M,onBlur:ct,onChange:function(t){K(t.target.value);var e=ut(J,t.target.value);lt(e),P(e),E(J.isValidNumber())},value:q},pt={className:G};return p(a)||(ht=Object.assign(Object.assign({},ht),Y)),p(b)||(pt=Object.assign(Object.assign({},pt),U)),F&&(ht.required=!0),o.a.createElement("div",Object.assign({},pt),o.a.createElement(h.a,Object.assign({ref:function(t){e&&(e.current=t),X.current=t}},ht)))};e.a=Object(r.forwardRef)(v)},,function(t,e,n){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(2),o=(i=r)&&i.__esModule?i:{default:i};e.default=o.default,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function r(t){return t&&t.__esModule?t:{default:t}}e.default=d;var o=n(3),a=r(n(4)),s=n(14),l=r(n(15));function d(t){var e=t.activeClassName,n=void 0===e?"":e,r=t.activeIndex,a=void 0===r?-1:r,d=t.activeStyle,c=t.autoEscape,u=t.caseSensitive,h=void 0!==u&&u,p=t.className,f=t.findChunks,g=t.highlightClassName,m=void 0===g?"":g,v=t.highlightStyle,y=void 0===v?{}:v,b=t.highlightTag,x=void 0===b?"mark":b,_=t.sanitize,O=t.searchWords,w=t.textToHighlight,C=t.unhighlightTag,$=void 0===C?"span":C,k=t.unhighlightClassName,E=void 0===k?"":k,S=t.unhighlightStyle,j=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),A=(0,o.findAll)({autoEscape:c,caseSensitive:h,findChunks:f,sanitize:_,searchWords:O,textToHighlight:w}),M=x,D=-1,P="",T=void 0,L=(0,l.default)((function(t){var e={};for(var n in t)e[n.toLowerCase()]=t[n];return e}));return(0,s.createElement)("span",i({className:p},j,{children:A.map((function(t,e){var i=w.substr(t.start,t.end-t.start);if(t.highlight){D++;var r=void 0;r="object"==typeof m?h?m[i]:(m=L(m))[i.toLowerCase()]:m;var o=D===+a;P=r+" "+(o?n:""),T=!0===o&&null!=d?Object.assign({},y,d):y;var l={children:i,className:P,key:e,style:T};return"string"!=typeof M&&(l.highlightIndex=D),(0,s.createElement)(M,l)}return(0,s.createElement)($,{children:i,className:E,key:e,style:S})}))}))}d.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},t.exports=e.default},function(t,e){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2);Object.defineProperty(e,"combineChunks",{enumerable:!0,get:function(){return i.combineChunks}}),Object.defineProperty(e,"fillInChunks",{enumerable:!0,get:function(){return i.fillInChunks}}),Object.defineProperty(e,"findAll",{enumerable:!0,get:function(){return i.findAll}}),Object.defineProperty(e,"findChunks",{enumerable:!0,get:function(){return i.findChunks}})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.findAll=function(t){var e=t.autoEscape,o=t.caseSensitive,a=void 0!==o&&o,s=t.findChunks,l=void 0===s?i:s,d=t.sanitize,c=t.searchWords,u=t.textToHighlight;return r({chunksToHighlight:n({chunks:l({autoEscape:e,caseSensitive:a,sanitize:d,searchWords:c,textToHighlight:u})}),totalLength:u?u.length:0})};var n=e.combineChunks=function(t){var e=t.chunks;return e=e.sort((function(t,e){return t.start-e.start})).reduce((function(t,e){if(0===t.length)return[e];var n=t.pop();if(e.start<=n.end){var i=Math.max(n.end,e.end);t.push({start:n.start,end:i})}else t.push(n,e);return t}),[])},i=function(t){var e=t.autoEscape,n=t.caseSensitive,i=t.sanitize,r=void 0===i?o:i,a=t.searchWords,s=t.textToHighlight;return s=r(s),a.filter((function(t){return t})).reduce((function(t,i){i=r(i),e&&(i=i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var o=new RegExp(i,n?"g":"gi"),a=void 0;a=o.exec(s);){var l=a.index,d=o.lastIndex;d>l&&t.push({start:l,end:d}),a.index==o.lastIndex&&o.lastIndex++}return t}),[])};e.findChunks=i;var r=e.fillInChunks=function(t){var e=t.chunksToHighlight,n=t.totalLength,i=[],r=function(t,e,n){e-t>0&&i.push({start:t,end:e,highlight:n})};if(0===e.length)r(0,n,!1);else{var o=0;e.forEach((function(t){r(o,t.start,!1),r(t.start,t.end,!0),o=t.end})),r(o,n,!1)}return i};function o(t){return t}}])},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=n(6)((function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i}),!0)}else t.exports=n(13)()}).call(e,n(5))},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var l,d=[],c=!1,u=-1;function h(){c&&l&&(c=!1,l.length?d=l.concat(d):u=-1,d.length&&p())}function p(){if(!c){var t=s(h);c=!0;for(var e=d.length;e;){for(l=d,d=[];++u<e;)l&&l[u].run();u=-1,e=d.length}l=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function g(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new f(t,e)),1!==d.length||c||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){(function(e){"use strict";var i=n(7),r=n(8),o=n(9),a=n(10),s=n(11),l=n(12);t.exports=function(t,n){var d="function"==typeof Symbol&&Symbol.iterator;var c={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:p(i.thatReturnsNull),arrayOf:function(t){return p((function(e,n,i,r,o){if("function"!=typeof t)return new h("Property `"+o+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a))return new h("Invalid "+r+" `"+o+"` of type `"+m(a)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<a.length;l++){var d=t(a,l,i,r,o+"["+l+"]",s);if(d instanceof Error)return d}return null}))},element:p((function(e,n,i,r,o){var a=e[n];return t(a)?null:new h("Invalid "+r+" `"+o+"` of type `"+m(a)+"` supplied to `"+i+"`, expected a single ReactElement.")})),instanceOf:function(t){return p((function(e,n,i,r,o){if(!(e[n]instanceof t)){var a=t.name||"<<anonymous>>";return new h("Invalid "+r+" `"+o+"` of type `"+function(t){if(!t.constructor||!t.constructor.name)return"<<anonymous>>";return t.constructor.name}(e[n])+"` supplied to `"+i+"`, expected instance of `"+a+"`.")}return null}))},node:p((function(t,e,n,i,r){return g(t[e])?null:new h("Invalid "+i+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return p((function(e,n,i,r,o){if("function"!=typeof t)return new h("Property `"+o+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var a=e[n],l=m(a);if("object"!==l)return new h("Invalid "+r+" `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var d in a)if(a.hasOwnProperty(d)){var c=t(a,d,i,r,o+"."+d,s);if(c instanceof Error)return c}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),i.thatReturnsNull;return p((function(e,n,i,r,o){for(var a=e[n],s=0;s<t.length;s++)if(u(a,t[s]))return null;return new h("Invalid "+r+" `"+o+"` of value `"+a+"` supplied to `"+i+"`, expected one of "+JSON.stringify(t)+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),i.thatReturnsNull;for(var n=0;n<t.length;n++){var r=t[n];if("function"!=typeof r)return o(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",y(r),n),i.thatReturnsNull}return p((function(e,n,i,r,o){for(var a=0;a<t.length;a++){if(null==(0,t[a])(e,n,i,r,o,s))return null}return new h("Invalid "+r+" `"+o+"` supplied to `"+i+"`.")}))},shape:function(t){return p((function(e,n,i,r,o){var a=e[n],l=m(a);if("object"!==l)return new h("Invalid "+r+" `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var d in t){var c=t[d];if(c){var u=c(a,d,i,r,o+"."+d,s);if(u)return u}}return null}))},exact:function(t){return p((function(e,n,i,r,o){var l=e[n],d=m(l);if("object"!==d)return new h("Invalid "+r+" `"+o+"` of type `"+d+"` supplied to `"+i+"`, expected `object`.");var c=a({},e[n],t);for(var u in c){var p=t[u];if(!p)return new h("Invalid "+r+" `"+o+"` key `"+u+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var f=p(l,u,i,r,o+"."+u,s);if(f)return f}return null}))}};function u(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t){this.message=t,this.stack=""}function p(t){if("production"!==e.env.NODE_ENV)var i={},a=0;function l(l,d,c,u,p,f,g){if(u=u||"<<anonymous>>",f=f||c,g!==s)if(n)r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==e.env.NODE_ENV&&"undefined"!=typeof console){var m=u+":"+c;!i[m]&&a<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",f,u),i[m]=!0,a++)}return null==d[c]?l?null===d[c]?new h("The "+p+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+p+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(d,c,u,p,f)}var d=l.bind(null,!1);return d.isRequired=l.bind(null,!0),d}function f(t){return p((function(e,n,i,r,o,a){var s=e[n];return m(s)!==t?new h("Invalid "+r+" `"+o+"` of type `"+v(s)+"` supplied to `"+i+"`, expected `"+t+"`."):null}))}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||t(e))return!0;var n=function(t){var e=t&&(d&&t[d]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!n)return!1;var i,r=n.call(e);if(n!==e.entries){for(;!(i=r.next()).done;)if(!g(i.value))return!1}else for(;!(i=r.next()).done;){var o=i.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function m(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function v(t){if(null==t)return""+t;var e=m(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function y(t){var e=v(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,c.checkPropTypes=l,c.PropTypes=c,c}}).call(e,n(5))},function(t,e){"use strict";function n(t){return function(){return t}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},t.exports=i},function(t,e,n){(function(e){"use strict";var n=function(t){};"production"!==e.env.NODE_ENV&&(n=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),t.exports=function(t,e,i,r,o,a,s,l){if(n(e),!t){var d;if(void 0===e)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[i,r,o,a,s,l],u=0;(d=new Error(e.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw d.framesToPop=1,d}}}).call(e,n(5))},function(t,e,n){(function(e){"use strict";var i=n(7);if("production"!==e.env.NODE_ENV){var r=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=0,o="Warning: "+t.replace(/%s/g,(function(){return n[r++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(t){}};i=function(t,e){if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var n=arguments.length,i=Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];r.apply(void 0,[e].concat(i))}}}t.exports=i}).call(e,n(5))},function(t,e){
31
+ var i=/input|select|textarea|button|object|iframe/;function r(t){var e=t.offsetWidth<=0&&t.offsetHeight<=0;if(e&&!t.innerHTML)return!0;try{var n=window.getComputedStyle(t),i=n.getPropertyValue("display");return e?"contents"!==i&&function(t,e){return"visible"!==e.getPropertyValue("overflow")||t.scrollWidth<=0&&t.scrollHeight<=0}(t,n):"none"===i}catch(t){return console.warn("Failed to inspect element style"),!1}}function o(t,e){var n=t.nodeName.toLowerCase();return(i.test(n)&&!t.disabled||"a"===n&&t.href||e)&&function(t){for(var e=t,n=t.getRootNode&&t.getRootNode();e&&e!==document.body;){if(n&&e===n&&(e=n.host.parentNode),r(e))return!1;e=e.parentNode}return!0}(t)}function a(t){var e=t.getAttribute("tabindex");null===e&&(e=void 0);var n=isNaN(e);return(n||e>=0)&&o(t,!n)}t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(t){return t.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(t){return t.removeAttribute("aria-hidden")})));s=null},e.log=function(){0},e.assertNodeList=l,e.setElement=function(t){var e=t;if("string"==typeof e&&a.canUseDOM){var n=document.querySelectorAll(e);l(n,e),e=n}return s=e||s},e.validateElement=d,e.hide=function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=d(t)[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){r.value.setAttribute("aria-hidden","true")}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}},e.show=function(t){var e=!0,n=!1,i=void 0;try{for(var r,o=d(t)[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){r.value.removeAttribute("aria-hidden")}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}},e.documentNotReadyOrSSRTesting=function(){s=null};var i,r=n(166),o=(i=r)&&i.__esModule?i:{default:i},a=n(164);var s=null;function l(t,e){if(!t||!t.length)throw new Error("react-modal: No elements were found for selector "+e+".")}function d(t){var e=t||s;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(t){return console.log(t)})),console.log("end portalOpenInstances ----------")},e.resetState=function(){r=new i};var i=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.register=function(t){-1===e.openInstances.indexOf(t)&&(e.openInstances.push(t),e.emit("register"))},this.deregister=function(t){var n=e.openInstances.indexOf(t);-1!==n&&(e.openInstances.splice(n,1),e.emit("deregister"))},this.subscribe=function(t){e.subscribers.push(t)},this.emit=function(t){e.subscribers.forEach((function(n){return n(t,e.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new i;e.default=r},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(203),l=n.n(s),d=n(2),c=n(5),u=n(12),h=n(23),p=n(177),f=n(175),g=n(176),m=n(10),v=n(63),y=n(14),b=n(134);function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var O=function t(e){var n=e.aria,o=void 0===n?{}:n,s=e.cancelButton,p=e.confirmButton,f=e.className,g=e.data,_=void 0===g?{}:g,O=e.id,w=e.size,C=void 0===w?"md":w,$=e.children,k=e.loading,E=void 0!==k&&k,S=e.fullHeight,j=void 0!==S&&S,A=e.opened,M=e.onCancel,D=void 0===M?function(){}:M,P=e.onConfirm,T=void 0===P?function(){}:P,L=e.onClose,I=void 0===L?function(){}:L,N=e.placement,R=void 0===N?"center":N,F=e.portalClassName,B=e.shouldCloseOnOverlayClick,z=void 0===B||B,W=e.status,H=e.text,Y=e.title,U=e.trigger,G=Object(d.a)(o),X=Object(d.c)(_),V={base:a()("pb_dialog",Object(d.b)("pb_dialog",C,R)),afterOpen:"pb_dialog_after_open",beforeClose:"pb_dialog_before_close"},q={base:"pb_dialog_overlay ".concat(null!==j&&(j?"xl"===C?"full_height_center":"full_height_".concat(R):null)),afterOpen:"pb_dialog_overlay_after_open",beforeClose:"pb_dialog_overlay_before_close"},K=a()(Object(d.b)("pb_dialog_wrapper"),Object(c.c)(e),f),Z=x(Object(i.useState)(!1),2),J=Z[0],Q=Z[1],tt=U?J:A,et={onClose:U?function(){Q(!1)}:I};U&&document.querySelector(U).addEventListener("click",(function(){Q(!0),document.querySelector("#cancel-button").addEventListener("click",(function(){Q(!1)}))}),{once:!0});var nt={default:{icon:"exclamation-circle",variant:"default",size:"lg"},info:{icon:"info-circle",variant:"default",size:"lg"},caution:{icon:"exclamation-triangle",variant:"yellow",size:"lg"},delete:{icon:"trash-alt",variant:"red",size:"lg"},error:{icon:"times-circle",variant:"red",size:"lg"},success:{icon:"check-circle",variant:"green",size:"lg"}};return r.a.createElement(b.a.Provider,{value:et},r.a.createElement("div",Object.assign({},G,X,{className:K}),r.a.createElement(l.a,{ariaHideApp:!1,className:V,closeTimeoutMS:200,contentLabel:"Minimal Modal Example",id:O,isOpen:tt,onRequestClose:I,overlayClassName:q,portalClassName:F,shouldCloseOnOverlayClick:z},r.a.createElement(r.a.Fragment,null,Y&&!W?r.a.createElement(t.Header,null,Y):null,!W&&H?r.a.createElement(t.Body,null,H):null,W&&r.a.createElement(t.Body,{className:"dialog_status_text_align",padding:"md"},r.a.createElement(m.a,{align:"center",orientation:"column"},r.a.createElement(v.a,{icon:nt[W].icon,size:nt[W].size,variant:nt[W].variant}),r.a.createElement(y.a,{marginTop:"sm",size:3},Y),r.a.createElement(u.a,{marginTop:"xs",text:H}))),s&&p?r.a.createElement(t.Footer,null,r.a.createElement(h.a,{loading:E,onClick:T,htmlType:"button",variant:"primary"},p),r.a.createElement(h.a,{id:"cancel-button",onClick:D,variant:"link",htmlType:"button"},s)):null,$))))};O.Header=p.a,O.Body=g.a,O.Footer=f.a,e.a=O},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(70),l=n.n(s),d=n(26),c=n.n(d),u=n(53),h=n(77),p=n(71),f=n(115),g=n.n(f),m=n(206),v=n.n(m),y=n(8),b=n.n(y),x=n(9),_=n.n(x),O=n(2),w=n(5);function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return $(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var k=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};e.a=function(t){var e=t.aria,n=void 0===e?{}:e,o=(t.className,t.chartData),s=t.dark,d=void 0!==s&&s,f=t.data,m=void 0===f?{}:f,y=t.disableAnimation,x=void 0!==y&&y,$=t.fullCircle,E=void 0!==$&&$,S=t.height,j=void 0===S?null:S,A=t.id,M=t.max,D=void 0===M?100:M,P=t.min,T=void 0===P?0:P,L=t.prefix,I=void 0===L?"":L,N=t.showLabels,R=void 0!==N&&N,F=t.style,B=void 0===F?"solidgauge":F,z=t.suffix,W=void 0===z?"":z,H=t.title,Y=void 0===H?"":H,U=t.tooltipHtml,G=void 0===U?'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>':U,X=t.colors,V=void 0===X?[]:X,q=t.minorTickInterval,K=void 0===q?null:q,Z=t.circumference,J=void 0===Z?E?[0,360]:[-100,100]:Z,Q=k(t,["aria","className","chartData","dark","data","disableAnimation","fullCircle","height","id","max","min","prefix","showLabels","style","suffix","title","tooltipHtml","colors","minorTickInterval","circumference"]),tt=Object(O.a)(n),et=Object(O.c)(m);g()(c.a),v()(c.a);d?c.a.setOptions(h.a):c.a.setOptions(u.a),c.a.setOptions({tooltip:{pointFormat:G,followPointer:!0}});var nt=Object(O.b)({pb_gauge_kit:!0}),it=C(Object(i.useState)({}),2),rt=it[0],ot=it[1];return Object(i.useEffect)((function(){var t=o.map((function(t){return t.y=t.value,delete t.value,t})),e={chart:{events:{load:function(){setTimeout(this.reflow.bind(this),0)}},type:B,height:j},title:{text:Y},yAxis:{min:T,max:D,lineWidth:0,tickWidth:0,minorTickInterval:K,tickAmount:2,tickPositions:[T,D],labels:{y:26,enabled:R}},credits:!1,series:[{data:t}],pane:{center:["50%","50%"],size:"90%",startAngle:J[0],endAngle:J[1],background:{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane"}},colors:void 0!==V&&V.length>0?Object(p.a)(V):u.a.colors,plotOptions:{series:{animation:!x},solidgauge:{borderColor:void 0!==V&&1===V.length?Object(p.a)(V).join():u.a.colors[0],borderWidth:20,radius:90,innerRadius:"90%",dataLabels:{borderWidth:0,color:b.a.text_lt_default,enabled:!0,format:'<span class="prefix">'.concat(I,"</span>")+'<span class="fix">{y:,f}</span>'+'<span class="suffix">'.concat(W,"</span>"),style:{fontFamily:_.a.font_family_base,fontWeight:_.a.regular,fontSize:_.a.heading_2},y:-26}}}};ot(Object.assign({},e)),document.querySelector(".prefix")&&(document.querySelectorAll(".prefix").forEach((function(t){t.setAttribute("y","28")})),document.querySelectorAll(".fix").forEach((function(t){return t.setAttribute("y","38")})))}),[o]),r.a.createElement(l.a,{containerProps:Object.assign(Object.assign({className:a()(nt,Object(w.c)(Q)),id:A},tt),et),highcharts:c.a,options:rt})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n(58),r=n(256);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=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 n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=[0,20],h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,n,i,d=l(c);function c(){return o(this,c),d.apply(this,arguments)}return e=c,i=[{key:"selector",get:function(){return"[data-pb-popover-kit]"}}],(n=[{key:"moveTooltip",value:function(){document.querySelector("body").appendChild(this.tooltip)}},{key:"connect",value:function(){var t=this;this.moveTooltip(),this.popper=Object(r.a)(this.triggerElement,this.tooltip,{placement:this.position,strategy:"fixed",modifiers:[{name:"offset",options:{offset:this.offset}}]}),this.triggerElement.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.tooltip.classList.contains("show")||t.checkCloseTooltip(),setTimeout((function(){t.toggleTooltip(),t.popper.update()}),0)}))}},{key:"checkCloseTooltip",value:function(){var t=this;document.querySelector("body").addEventListener("click",(function(e){var n=e.target,i=null!==n.closest("#".concat(t.tooltipId)),r=null!==n.closest("#".concat(t.triggerElementId));switch(t.closeOnClick){case"any":(i||!i&&!r)&&t.hideTooltip();break;case"outside":i||r||t.hideTooltip();break;case"inside":i&&t.hideTooltip()}}),!0)}},{key:"hideTooltip",value:function(){this.tooltip.classList.remove("show"),this.tooltip.classList.add("hide")}},{key:"toggleTooltip",value:function(){this.tooltip.classList.toggle("show"),this.tooltip.classList.toggle("hide")}},{key:"triggerElement",get:function(){return this._triggerElement=this._triggerElement||document.querySelector("#".concat(this.triggerElementId))}},{key:"tooltip",get:function(){return this._tooltip=this._tooltip||this.element.querySelector("#".concat(this.tooltipId))}},{key:"position",get:function(){return this.element.dataset.pbPopoverPosition}},{key:"triggerElementId",get:function(){return this.element.dataset.pbPopoverTriggerElementId}},{key:"tooltipId",get:function(){return this.element.dataset.pbPopoverTooltipId}},{key:"offset",get:function(){return"true"===this.element.dataset.pbPopoverOffset?u:[0,0]}},{key:"closeOnClick",get:function(){return this.element.dataset.pbPopoverCloseOnClick}}])&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var i=n(58),r=n(168),o=n(170),a=n(172),s=n(171);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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 n,i=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=[0,20],g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(p,t);var e,n,i,h=u(p);function p(){return l(this,p),h.apply(this,arguments)}return e=p,i=[{key:"selector",get:function(){return"[data-pb-tooltip-kit]"}}],(n=[{key:"connect",value:function(){var t=this;this.triggerElements.forEach((function(e){e.addEventListener("mouseenter",(function(){t.mouseenterTimeout=setTimeout((function(){t.showTooltip(e),t.checkCloseTooltip(e)}),250),e.addEventListener("mouseleave",(function(){clearTimeout(t.mouseenterTimeout),setTimeout((function(){t.hideTooltip()}),0)}),{once:!0})}))})),this.tooltip.addEventListener("mouseenter",(function(){clearTimeout(t.mouseenterTimeout)})),this.tooltip.addEventListener("mouseleave",(function(){t.hideTooltip()}))}},{key:"checkCloseTooltip",value:function(t){var e=this;document.querySelector("body").addEventListener("click",(function(n){var i=n.target,r=i.closest("#".concat(e.tooltipId))===e.tooltip;i.closest(e.triggerElementSelector)===t||r?e.checkCloseTooltip(t):e.hideTooltip()}),{once:!0})}},{key:"showTooltip",value:function(t){this.popper=Object(r.a)(t,this.tooltip,{placement:this.position,modifiers:[{name:"offset",options:{offset:f}},{name:"arrow",options:{element:document.querySelector("#".concat(this.tooltipId,"-arrow"))}},o.a,a.a,s.a]}),this.tooltip.classList.add("show")}},{key:"hideTooltip",value:function(){var t=this;this.tooltip.classList.add("fade_out"),setTimeout((function(){t.popper&&(t.popper.destroy(),t.tooltip.classList.remove("show"),t.tooltip.classList.remove("fade_out"))}),250)}},{key:"triggerElements",get:function(){var t;return(t=this.triggerElementId?document.querySelector("#".concat(this.triggerElementId)):this.triggerElementSelector.indexOf("#")>-1?document.querySelector("".concat(this.triggerElementSelector)):document.querySelectorAll("".concat(this.triggerElementSelector)))?(t.length||(t=[t]),this._triggerElements=this._triggerElements||t):(console.error("Tooltip Kit: an invalid or unavailable DOM reference was provided!"),[])}},{key:"tooltip",get:function(){return this._tooltip=this._tooltip||this.element.querySelector("#".concat(this.tooltipId))}},{key:"position",get:function(){return this.element.dataset.pbTooltipPosition}},{key:"triggerElementId",get:function(){return this.element.dataset.pbTooltipTriggerElementId}},{key:"tooltipId",get:function(){return this.element.dataset.pbTooltipTooltipId}},{key:"triggerElementSelector",get:function(){return this.element.dataset.pbTooltipTriggerElementSelector}}])&&d(e.prototype,n),i&&d(e,i),Object.defineProperty(e,"prototype",{writable:!1}),p}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n(58),r=n(22);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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 n,i=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return u(this,n)}}function u(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(u,t);var e,n,i,a=c(u);function u(){return s(this,u),a.apply(this,arguments)}return e=u,i=[{key:"selector",get:function(){return"[data-pb-typeahead-kit]"}}],(n=[{key:"connect",value:function(){var t=this;this.element.addEventListener("keydown",(function(e){return t.handleKeydown(e)})),this.searchInput.addEventListener("focus",(function(){return t.debouncedSearch()})),this.searchInput.addEventListener("input",(function(){return t.debouncedSearch()})),this.resultsElement.addEventListener("click",(function(e){return t.optionSelected(e)}))}},{key:"handleKeydown",value:function(t){"ArrowUp"===t.key?(t.preventDefault(),this.focusPreviousOption()):"ArrowDown"===t.key&&(t.preventDefault(),this.focusNextOption())}},{key:"search",value:function(){var t=this;if(this.searchTerm.length<parseInt(this.searchTermMinimumLength))return this.clearResults();this.toggleResultsLoadingIndicator(!0),this.showResults();var e=this.searchTerm,n=this.searchContext,i={searchingFor:e,searchingContext:n,setResults:function(i){t.resultsCacheUpdate(e,n,i)}};this.element.dispatchEvent(new CustomEvent("pb-typeahead-kit-search",{bubbles:!0,detail:i}))}},{key:"resultsCacheUpdate",value:function(t,e,n){var i=this.cacheKeyFor(t,e);this.resultsOptionCache.has(i)&&this.resultsOptionCache.delete(i),this.resultsOptionCache.size>32&&this.resultsOptionCache.delete(this.resultsOptionCache.keys().next().value),this.resultsOptionCache.set(i,n),this.showResults()}},{key:"resultsCacheClear",value:function(){this.resultsOptionCache.clear()}},{key:"debouncedSearch",get:function(){return this._debouncedSearch=this._debouncedSearch||Object(r.debounce)(this.search,parseInt(this.searchDebounceTimeout)).bind(this)}},{key:"showResults",value:function(){var t=this;if(this.resultsOptionCache.has(this.searchTermAndContext)){this.toggleResultsLoadingIndicator(!1),this.clearResults();var e,n=o(this.resultsOptionCache.get(this.searchTermAndContext));try{for(n.s();!(e=n.n()).done;){var i=e.value;this.resultsElement.appendChild(this.newResultOption(i.cloneNode(!0)))}}catch(t){n.e(t)}finally{n.f()}var r,a=o(this.resultsElement.querySelectorAll("[data-result-option-item]"));try{for(a.s();!(r=a.n()).done;)r.value.addEventListener("mousedown",(function(e){return t.optionSelected(e)}))}catch(t){a.e(t)}finally{a.f()}}}},{key:"optionSelected",value:function(t){var e=t.target.closest("[data-result-option-item]");e&&(this.resultsCacheClear(),this.searchInputClear(),this.clearResults(),this.element.dispatchEvent(new CustomEvent("pb-typeahead-kit-result-option-selected",{bubbles:!0,detail:{selected:e,typeahead:this}})))}},{key:"clearResults",value:function(){this.resultsElement.innerHTML=""}},{key:"newResultOption",value:function(t){var e=this.resultOptionTemplate.content.cloneNode(!0);return e.querySelector('slot[name="content"]').replaceWith(t),e}},{key:"focusPreviousOption",value:function(){var t=this.resultOptionItems.indexOf(this.currentSelectedResultOptionItem)-1;(this.resultOptionItems[t]||this.resultOptionItems[this.resultOptionItems.length-1]).focus()}},{key:"focusNextOption",value:function(){var t=this.resultOptionItems.indexOf(this.currentSelectedResultOptionItem)+1;(this.resultOptionItems[t]||this.resultOptionItems[0]).focus()}},{key:"resultOptionItems",get:function(){return Array.from(this.resultsElement.querySelectorAll("[data-result-option-item]"))}},{key:"currentSelectedResultOptionItem",get:function(){return document.activeElement.closest("[data-result-option-item]")}},{key:"searchInput",get:function(){return this._searchInput=this._searchInput||this.element.querySelector('input[type="search"]')}},{key:"searchTerm",get:function(){return this.searchInput.value}},{key:"searchContext",get:function(){if(this._searchContext)return this._searchContext;var t=this.element.dataset.searchContextValueSelector;return t?(this.element.parentNode.querySelector(t)||this.element.closest(t)).value:null},set:function(t){this._searchContext=t}},{key:"searchTermAndContext",get:function(){return this.cacheKeyFor(this.searchTerm,this.searchContext)}},{key:"cacheKeyFor",value:function(t,e){return[t,JSON.stringify(e)].join()}},{key:"searchInputClear",value:function(){this.searchInput.value=""}},{key:"searchTermMinimumLength",get:function(){return this.element.dataset.pbTypeaheadKitSearchTermMinimumLength}},{key:"searchDebounceTimeout",get:function(){return this.element.dataset.pbTypeaheadKitSearchDebounceTimeout}},{key:"resultsElement",get:function(){return this._resultsElement=this._resultsElement||this.element.querySelector("[data-pb-typeahead-kit-results]")}},{key:"resultOptionTemplate",get:function(){return this._resultOptionTemplate=this._resultOptionTemplate||this.element.querySelector("template[data-pb-typeahead-kit-result-option]")}},{key:"resultsOptionCache",get:function(){return this._resultsOptionCache=this._resultsOptionCache||new Map}},{key:"resultsLoadingIndicator",get:function(){return this._resultsLoadingIndicator=this._resultsLoadingIndicator||this.element.querySelector("[data-pb-typeahead-kit-loading-indicator]")}},{key:"toggleResultsLoadingIndicator",value:function(t){var e="0";t&&(e="1"),this.resultsLoadingIndicator.style.opacity=e}}])&&l(e.prototype,n),i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(i.a)},function(t,e,n){"use strict";e.a=function(){var t=document.querySelectorAll("[data-open-dialog]"),e=document.querySelectorAll("[data-close-dialog]"),n=document.querySelectorAll(".pb_dialog_rails");t.forEach((function(t){t.addEventListener("click",(function(){var e=t.dataset.openDialog,n=document.getElementById(e);n.open||n.showModal()}))})),e.forEach((function(t){t.addEventListener("click",(function(){var e=t.dataset.closeDialog;document.getElementById(e).close()}))})),n.forEach((function(t){t.addEventListener("mousedown",(function(e){if("overlay_close"!==t.parentElement.dataset.overlayClick){var n=e.target.getBoundingClientRect();(e.clientX<n.left||e.clientX>n.right||e.clientY<n.top||e.clientY>n.bottom)&&(t.close(),e.stopPropagation())}}))}))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=function(){var t=event.target.closest(".pb_rich_text_editor_kit");t.classList.contains("inline")&&t.classList.toggle("focused")},l=function(){document.querySelectorAll(".focus-editor-targets trix-editor").forEach((function(t){var e=t.toolbarElement;t==document.activeElement?(t.classList.add("focused-editor"),e.style.display="block"):e.contains(document.activeElement)||(t.classList.remove("focused-editor"),e.style.display="none")}))},d=n(5),c=n(2),u=n(208),h=n(109),p=n(10),f=n(15),g=n(55),m=n(7),v=n(159),y=function(t){var e=t.classname,n=t.disable,i=t.onclick,o=t.icon,a=t.text;return r.a.createElement(v.a,{delay:{open:2e3},interaction:!0,placement:"top",text:a},r.a.createElement("button",{className:e,onClick:i,disabled:n},r.a.createElement(p.a,{align:"center",className:"toolbar_button_icon",justify:"center"},r.a.createElement(m.a,{icon:o,size:"lg"}))))},b=n(76),x=n(23),_=n(48),O=n(24);function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var $=function(t){for(var e=t.editor,n=w(Object(i.useState)(!1),2),o=n[0],a=n[1],s=[{node:"paragraph",icon:"paragraph",isActive:e.isActive("paragraph"),text:"Paragraph",onclick:function(){return e.chain().focus().setParagraph().run()}},{node:"heading-1",icon:"h1",isActive:e.isActive("heading",{level:1}),text:"Heading 1",onclick:function(){return e.chain().focus().toggleHeading({level:1}).run()}},{node:"heading-2",icon:"h2",isActive:e.isActive("heading",{level:2}),text:"Heading 2",onclick:function(){return e.chain().focus().toggleHeading({level:2}).run()}},{node:"heading-3",icon:"h3",isActive:e.isActive("heading",{level:3}),text:"Heading 3",onclick:function(){return e.chain().focus().toggleHeading({level:3}).run()}},{node:"bulletList",icon:"list",isActive:e.isActive("bulletList"),text:"Bullet List",onclick:function(){return e.chain().focus().toggleBulletList().run()}},{node:"orderedList",icon:"list-ol",isActive:e.isActive("orderedList"),text:"Ordered List",onclick:function(){return e.chain().focus().toggleOrderedList().run()}},{node:"blockquote",icon:"block-quote",isActive:e.isActive("blockquote"),text:"Block Quote",onclick:function(){return e.chain().focus().toggleBlockquote().run()}}],l=0,d=[],c=0,u=s;c<u.length;c++){var h=u[c],f=h.text,g=h.isActive,v=h.icon;g&&(l++,d.push(r.a.createElement(p.a,{align:"center",key:v,gap:"xs"},r.a.createElement(m.a,{icon:v,size:"lg"}),r.a.createElement("div",null,f),r.a.createElement(p.a,{className:o?"fa-flip-vertical":"",display:"inline_flex"},r.a.createElement(m.a,{fixedWidth:!0,icon:"angle-down","margin-left":"xs"})))))}var y=r.a.createElement(x.a,{className:"editor-dropdown-button",onClick:function(){a(!0)},variant:"secondary"},2===l?d[1]:1===l?d[0]||null:r.a.createElement(p.a,{align:"center",key:"paragraph",gap:"xs"},r.a.createElement(m.a,{icon:"paragraph",size:"lg"}),r.a.createElement("div",null,"Paragraph"),r.a.createElement(p.a,{className:o?"fa-flip-vertical":"",display:"inline_flex"},r.a.createElement(m.a,{fixedWidth:!0,icon:"angle-down","margin-left":"xs"}))));return r.a.createElement(b.a,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:y,shouldClosePopover:function(t){a(!t)},show:o},r.a.createElement(_.a,{paddingTop:"xs",paddingBottom:"xs",variant:"subtle"},s.map((function(t,e){var n=t.icon,i=t.text,o=t.onclick,s=t.isActive;return r.a.createElement(O.a,{cursor:"pointer",className:"pb_tiptap_toolbar_dropdown_list_item ".concat(s?"is-active":""),iconLeft:n,key:"".concat(i,"_").concat(e),margin:"none",onClick:function(){o(),a(!1)},text:i,paddingTop:"xxs",paddingBottom:"xxs"})}))))},k=function(t){var e=t.editor,n=Object(i.useCallback)((function(){var t=e.getAttributes("link").href,n=window.prompt("URL",t);null!==n&&(""!==n?e.chain().focus().extendMarkRange("link").setLink({href:n}).run():e.chain().focus().extendMarkRange("link").unsetLink().run())}),[e]),o=[{onclick:function(){return e.chain().focus().toggleCodeBlock().run()},icon:"code",isActive:e.isActive("codeBlock"),text:"Codeblock"},{onclick:n,icon:"link",isActive:e.isActive("link"),text:"Link"}];return r.a.createElement(r.a.Fragment,null,o.map((function(t,e){var n=t.onclick,i=t.icon,o=t.text,a=t.isActive;return r.a.createElement(y,{classname:"toolbar_button ".concat(a?"is-active":""),onclick:n,icon:i,key:e,text:o})})))},E=function(t){var e=t.editor,n=[{classname:"toolbar_button",icon:"undo",text:"Undo",onclick:function(){return e.chain().focus().undo().run()},disable:!e.can().chain().focus().undo().run()},{classname:"toolbar_button",icon:"redo",text:"Redo",onclick:function(){return e.chain().focus().redo().run()},disable:!e.can().chain().focus().redo().run()}];return r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{displayFlex:!0},n.map((function(t,e){var n=t.onclick,i=t.classname,o=t.disable,a=t.icon,s=t.text;return r.a.createElement(y,{classname:i,onclick:n,disable:o,icon:a,key:e,text:s})}))))};function S(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var A=function(t){var e=t.extensions,n=S(Object(i.useState)(!1),2),o=n[0],a=n[1],s=r.a.createElement("button",{className:"toolbar_button",onClick:function(){a(!0)}},r.a.createElement(p.a,{align:"center",className:"toolbar_button_icon",justify:"center"},r.a.createElement(m.a,{icon:"ellipsis",size:"lg"})));return r.a.createElement(b.a,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:s,shouldClosePopover:function(t){a(!t)},show:o},r.a.createElement(_.a,{paddingTop:e.length>1?"xs":"none",paddingBottom:e.length>1?"xs":"none",variant:"subtle"},e&&e.map((function(t,e){var n=t.icon,i=t.text,o=t.onclick,s=t.isActive;return r.a.createElement(O.a,{cursor:"pointer",className:"pb_tiptap_toolbar_dropdown_list_item ".concat(s?"is-active":""),iconLeft:n,key:"".concat(i,"_").concat(e),margin:"none",onClick:function(){o(),a(!1)},text:i,paddingTop:"xxs",paddingBottom:"xxs"})}))))},M=function(t){var e=t.editor,n=t.extensions,i=[{icon:"bold",text:"Bold",classname:"toolbar_button ".concat(e.isActive("bold")?"is-active":""),onclick:function(){return e.chain().focus().toggleBold().run()}},{icon:"italic",text:"Italic",classname:"toolbar_button ".concat(e.isActive("italic")?"is-active":""),onclick:function(){return e.chain().focus().toggleItalic().run()}},{icon:"strikethrough",text:"Strikethrough",classname:"toolbar_button ".concat(e.isActive("strike")?"is-active":""),onclick:function(){return e.chain().focus().toggleStrike().run()}}];return r.a.createElement(h.a,{backgroundColor:"white",className:"toolbar"},r.a.createElement(p.a,{flex:"0",justify:"between",paddingX:"sm",paddingY:"xxs"},r.a.createElement(f.a,{className:"toolbar_block",displayFlex:!0},r.a.createElement($,{editor:e}),r.a.createElement(g.a,{orientation:"vertical"}),i&&i.map((function(t,e){var n=t.icon,i=t.text,o=t.classname,a=t.onclick;return r.a.createElement(y,{classname:o,icon:n,key:e,text:i,onclick:a})})),r.a.createElement(g.a,{orientation:"vertical"}),r.a.createElement(k,{editor:e}),n&&r.a.createElement(r.a.Fragment,null,r.a.createElement(A,{extensions:n}))),r.a.createElement(E,{editor:e})))};function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return P(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}try{n(249).config.textAttributes.inlineCode={tagName:"code",inheritable:!0}}catch(t){}e.a=function(t){var e=t.aria,n=void 0===e?{}:e,o=t.advancedEditor,h=t.toolbarBottom,p=void 0!==h&&h,f=t.children,g=t.className,m=t.data,v=void 0===m?{}:m,y=t.focus,b=void 0!==y&&y,x=t.inline,_=void 0!==x&&x,O=t.extensions,w=t.name,C=t.onChange,$=void 0===C?c.d:C,k=t.placeholder,E=t.simple,S=void 0!==E&&E,j=t.sticky,A=void 0!==j&&j,P=t.template,T=void 0===P?"":P,L=t.value,I=void 0===L?"":L,N=t.maxWidth,R=void 0===N?"md":N,F=Object(c.a)(n),B=Object(c.c)(v),z=D(Object(i.useState)(),2),W=z[0],H=z[1],Y=null==W?void 0:W.element;if(W){var U=Y.parentElement.querySelector("trix-toolbar"),G=U.querySelector("[data-trix-attribute=code]"),X=U.querySelector("[data-trix-attribute=inlineCode]");X||(X=G.cloneNode(!0)),X.dataset.trixAttribute="inlineCode",G.insertAdjacentElement("afterend",X),p&&W.element.after(U);Y.addEventListener("trix-selection-change",(function(){var t=function(){if(W.attributeIsActive("code"))return"block";if(W.attributeIsActive("inlineCode"))return"inline";var t=W.getSelectedRange();if(t[0]==t[1])return"block";var e=W.getSelectedDocument().toString().trim();return/\n/.test(e)?"block":"inline"}();G.hidden="inline"==t,X.hidden="block"==t})),b&&(document.addEventListener("trix-focus",l),document.addEventListener("trix-blur",l),l()),document.addEventListener("trix-focus",s),document.addEventListener("trix-blur",s)}Object(i.useEffect)((function(){W&&T&&(W.loadHTML(""),W.setSelectedRange([0,0]),W.insertHTML(T))}),[W,T]),Object(i.useEffect)((function(){Y&&Y.addEventListener("click",(function(t){var e=t.target;if(e.closest(".pb_rich_text_editor_kit")){var n=e.closest("a");n&&n.hasAttribute("href")&&window.open(n.href)}}))}),[Y]);var V=S?"simple":"",q=b?"focus-editor-targets":"",K=A?"sticky":"",Z=_?"inline":"",J=p?"toolbar-bottom":"",Q=a()(Object(d.c)(t,{maxWidth:R}),g);return Q=a()("pb_rich_text_editor_kit",V,q,K,Z,J,Q),r.a.createElement("div",Object.assign({},F,B,{className:Q}),o?r.a.createElement("div",{className:"pb_rich_text_editor_advanced_container"},r.a.createElement(M,{extensions:O,editor:o}),f):r.a.createElement(u.TrixEditor,{className:"",fileParamName:w,mergeTags:[],onChange:$,onEditorReady:function(t){return H(t)},placeholder:k,value:I}))}},function(t,e,n){"use strict";var i,r=n(0),o=n.n(r),a=n(3),s=n.n(a),l=n(207),d=n.n(l),c=(n(241),n(248),n(2)),u=n(5),h=n(41),p=function(t){return Object.keys(t).length<1};function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){d=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}!function(t){t[t.TooShort=2]="TooShort",t[t.TooLong=3]="TooLong",t[t.MissingAreaCode=4]="MissingAreaCode",t[t.SomethingWentWrong=-99]="SomethingWentWrong"}(i||(i={}));var m=function(){for(var t=window.intlTelInputGlobals.getCountryData(),e=0;e<t.length;e++){var n=t[e];n.name=n.name.split("(")[0].trim()}};m();var v=function(t,e){var n=t.aria,a=void 0===n?{}:n,l=t.className,g=t.dark,v=void 0!==g&&g,y=t.data,b=void 0===y?{}:y,x=t.disabled,_=void 0!==x&&x,O=t.id,w=void 0===O?"":O,C=t.initialCountry,$=void 0===C?"":C,k=t.isValid,E=void 0===k?function(){}:k,S=t.label,j=void 0===S?"":S,A=t.name,M=void 0===A?"":A,D=t.onChange,P=void 0===D?function(){}:D,T=t.onValidate,L=void 0===T?function(){return null}:T,I=t.onlyCountries,N=void 0===I?[]:I,R=t.required,F=void 0!==R&&R,B=t.preferredCountries,z=void 0===B?[]:B,W=t.value,H=void 0===W?"":W,Y=Object(c.a)(a),U=Object(c.c)(b),G=s()(Object(c.b)("pb_phone_number_input"),Object(u.c)(t),l),X=Object(r.useRef)(),V=f(Object(r.useState)(H),2),q=V[0],K=V[1],Z=f(Object(r.useState)(),2),J=Z[0],Q=Z[1],tt=f(Object(r.useState)(t.error),2),et=tt[0],nt=tt[1],it=f(Object(r.useState)(!1),2),rt=it[0],ot=it[1],at=f(Object(r.useState)(),2),st=at[0],lt=at[1];Object(r.useEffect)((function(){(null==et?void 0:et.length)>0?L(!1):L(!0)}),[et,L]),Object(r.useImperativeHandle)(e,(function(){return{clearField:function(){K(""),nt("")},inputNode:function(){return X.current}}}));var dt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=J.getSelectedCountryData().name,n=t.length>0?" (".concat(t,")"):"";return nt("Invalid ".concat(e," phone number").concat(n)),!0},ct=function(){J&&E(J.isValidNumber()),function(t){if(t)return q&&!function(t){return/^[()+\-\ .\d]*$/g.test(t)}(q)?dt("enter numbers only"):void 0}(J)||function(t){if(t)return t.getValidationError()===i.TooLong?dt("too long"):void nt("")}(J)||function(t){if(t)return t.getValidationError()===i.TooShort||1===q.length?dt("too short"):void nt("")}(J)||function(t){if(F&&t)return t.getValidationError()===i.SomethingWentWrong?1===q.length?dt("too short"):0===q.length?(nt("Missing phone number"),!0):dt():void 0}(J)||function(t){if(F&&t)t.getValidationError()===i.MissingAreaCode&&dt("missing area code")}(J)},ut=function(t,e){return Object.assign(Object.assign({},t.getSelectedCountryData()),{number:e})};Object(r.useEffect)(m,[]),Object(r.useEffect)((function(){var t=d()(X.current,{separateDialCode:!0,preferredCountries:z,allowDropdown:!_,autoInsertDialCode:!1,initialCountry:$,onlyCountries:N});X.current.addEventListener("countrychange",(function(e){var n=ut(t,e.target.value);lt(n),P(n),ct()})),X.current.addEventListener("open:countrydropdown",(function(){return ot(!0)})),X.current.addEventListener("close:countrydropdown",(function(){return ot(!1)})),Q(t)}),[]);var ht={className:rt?"dropdown_open":"",dark:v,"data-phone-number":JSON.stringify(st),disabled:_,error:et,type:"tel",id:w,label:j,name:M,onBlur:ct,onChange:function(t){K(t.target.value);var e=ut(J,t.target.value);lt(e),P(e),E(J.isValidNumber())},value:q},pt={className:G};return p(a)||(ht=Object.assign(Object.assign({},ht),Y)),p(b)||(pt=Object.assign(Object.assign({},pt),U)),F&&(ht.required=!0),o.a.createElement("div",Object.assign({},pt),o.a.createElement(h.a,Object.assign({ref:function(t){e&&(e.current=t),X.current=t}},ht)))};e.a=Object(r.forwardRef)(v)},,function(t,e,n){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(2),o=(i=r)&&i.__esModule?i:{default:i};e.default=o.default,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function r(t){return t&&t.__esModule?t:{default:t}}e.default=d;var o=n(3),a=r(n(4)),s=n(14),l=r(n(15));function d(t){var e=t.activeClassName,n=void 0===e?"":e,r=t.activeIndex,a=void 0===r?-1:r,d=t.activeStyle,c=t.autoEscape,u=t.caseSensitive,h=void 0!==u&&u,p=t.className,f=t.findChunks,g=t.highlightClassName,m=void 0===g?"":g,v=t.highlightStyle,y=void 0===v?{}:v,b=t.highlightTag,x=void 0===b?"mark":b,_=t.sanitize,O=t.searchWords,w=t.textToHighlight,C=t.unhighlightTag,$=void 0===C?"span":C,k=t.unhighlightClassName,E=void 0===k?"":k,S=t.unhighlightStyle,j=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),A=(0,o.findAll)({autoEscape:c,caseSensitive:h,findChunks:f,sanitize:_,searchWords:O,textToHighlight:w}),M=x,D=-1,P="",T=void 0,L=(0,l.default)((function(t){var e={};for(var n in t)e[n.toLowerCase()]=t[n];return e}));return(0,s.createElement)("span",i({className:p},j,{children:A.map((function(t,e){var i=w.substr(t.start,t.end-t.start);if(t.highlight){D++;var r=void 0;r="object"==typeof m?h?m[i]:(m=L(m))[i.toLowerCase()]:m;var o=D===+a;P=r+" "+(o?n:""),T=!0===o&&null!=d?Object.assign({},y,d):y;var l={children:i,className:P,key:e,style:T};return"string"!=typeof M&&(l.highlightIndex=D),(0,s.createElement)(M,l)}return(0,s.createElement)($,{children:i,className:E,key:e,style:S})}))}))}d.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},t.exports=e.default},function(t,e){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2);Object.defineProperty(e,"combineChunks",{enumerable:!0,get:function(){return i.combineChunks}}),Object.defineProperty(e,"fillInChunks",{enumerable:!0,get:function(){return i.fillInChunks}}),Object.defineProperty(e,"findAll",{enumerable:!0,get:function(){return i.findAll}}),Object.defineProperty(e,"findChunks",{enumerable:!0,get:function(){return i.findChunks}})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.findAll=function(t){var e=t.autoEscape,o=t.caseSensitive,a=void 0!==o&&o,s=t.findChunks,l=void 0===s?i:s,d=t.sanitize,c=t.searchWords,u=t.textToHighlight;return r({chunksToHighlight:n({chunks:l({autoEscape:e,caseSensitive:a,sanitize:d,searchWords:c,textToHighlight:u})}),totalLength:u?u.length:0})};var n=e.combineChunks=function(t){var e=t.chunks;return e=e.sort((function(t,e){return t.start-e.start})).reduce((function(t,e){if(0===t.length)return[e];var n=t.pop();if(e.start<=n.end){var i=Math.max(n.end,e.end);t.push({start:n.start,end:i})}else t.push(n,e);return t}),[])},i=function(t){var e=t.autoEscape,n=t.caseSensitive,i=t.sanitize,r=void 0===i?o:i,a=t.searchWords,s=t.textToHighlight;return s=r(s),a.filter((function(t){return t})).reduce((function(t,i){i=r(i),e&&(i=i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var o=new RegExp(i,n?"g":"gi"),a=void 0;a=o.exec(s);){var l=a.index,d=o.lastIndex;d>l&&t.push({start:l,end:d}),a.index==o.lastIndex&&o.lastIndex++}return t}),[])};e.findChunks=i;var r=e.fillInChunks=function(t){var e=t.chunksToHighlight,n=t.totalLength,i=[],r=function(t,e,n){e-t>0&&i.push({start:t,end:e,highlight:n})};if(0===e.length)r(0,n,!1);else{var o=0;e.forEach((function(t){r(o,t.start,!1),r(t.start,t.end,!0),o=t.end})),r(o,n,!1)}return i};function o(t){return t}}])},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=n(6)((function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i}),!0)}else t.exports=n(13)()}).call(e,n(5))},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var l,d=[],c=!1,u=-1;function h(){c&&l&&(c=!1,l.length?d=l.concat(d):u=-1,d.length&&p())}function p(){if(!c){var t=s(h);c=!0;for(var e=d.length;e;){for(l=d,d=[];++u<e;)l&&l[u].run();u=-1,e=d.length}l=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function g(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new f(t,e)),1!==d.length||c||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){(function(e){"use strict";var i=n(7),r=n(8),o=n(9),a=n(10),s=n(11),l=n(12);t.exports=function(t,n){var d="function"==typeof Symbol&&Symbol.iterator;var c={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:p(i.thatReturnsNull),arrayOf:function(t){return p((function(e,n,i,r,o){if("function"!=typeof t)return new h("Property `"+o+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a))return new h("Invalid "+r+" `"+o+"` of type `"+m(a)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<a.length;l++){var d=t(a,l,i,r,o+"["+l+"]",s);if(d instanceof Error)return d}return null}))},element:p((function(e,n,i,r,o){var a=e[n];return t(a)?null:new h("Invalid "+r+" `"+o+"` of type `"+m(a)+"` supplied to `"+i+"`, expected a single ReactElement.")})),instanceOf:function(t){return p((function(e,n,i,r,o){if(!(e[n]instanceof t)){var a=t.name||"<<anonymous>>";return new h("Invalid "+r+" `"+o+"` of type `"+function(t){if(!t.constructor||!t.constructor.name)return"<<anonymous>>";return t.constructor.name}(e[n])+"` supplied to `"+i+"`, expected instance of `"+a+"`.")}return null}))},node:p((function(t,e,n,i,r){return g(t[e])?null:new h("Invalid "+i+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return p((function(e,n,i,r,o){if("function"!=typeof t)return new h("Property `"+o+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var a=e[n],l=m(a);if("object"!==l)return new h("Invalid "+r+" `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var d in a)if(a.hasOwnProperty(d)){var c=t(a,d,i,r,o+"."+d,s);if(c instanceof Error)return c}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),i.thatReturnsNull;return p((function(e,n,i,r,o){for(var a=e[n],s=0;s<t.length;s++)if(u(a,t[s]))return null;return new h("Invalid "+r+" `"+o+"` of value `"+a+"` supplied to `"+i+"`, expected one of "+JSON.stringify(t)+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),i.thatReturnsNull;for(var n=0;n<t.length;n++){var r=t[n];if("function"!=typeof r)return o(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",y(r),n),i.thatReturnsNull}return p((function(e,n,i,r,o){for(var a=0;a<t.length;a++){if(null==(0,t[a])(e,n,i,r,o,s))return null}return new h("Invalid "+r+" `"+o+"` supplied to `"+i+"`.")}))},shape:function(t){return p((function(e,n,i,r,o){var a=e[n],l=m(a);if("object"!==l)return new h("Invalid "+r+" `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var d in t){var c=t[d];if(c){var u=c(a,d,i,r,o+"."+d,s);if(u)return u}}return null}))},exact:function(t){return p((function(e,n,i,r,o){var l=e[n],d=m(l);if("object"!==d)return new h("Invalid "+r+" `"+o+"` of type `"+d+"` supplied to `"+i+"`, expected `object`.");var c=a({},e[n],t);for(var u in c){var p=t[u];if(!p)return new h("Invalid "+r+" `"+o+"` key `"+u+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var f=p(l,u,i,r,o+"."+u,s);if(f)return f}return null}))}};function u(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t){this.message=t,this.stack=""}function p(t){if("production"!==e.env.NODE_ENV)var i={},a=0;function l(l,d,c,u,p,f,g){if(u=u||"<<anonymous>>",f=f||c,g!==s)if(n)r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==e.env.NODE_ENV&&"undefined"!=typeof console){var m=u+":"+c;!i[m]&&a<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",f,u),i[m]=!0,a++)}return null==d[c]?l?null===d[c]?new h("The "+p+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+p+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(d,c,u,p,f)}var d=l.bind(null,!1);return d.isRequired=l.bind(null,!0),d}function f(t){return p((function(e,n,i,r,o,a){var s=e[n];return m(s)!==t?new h("Invalid "+r+" `"+o+"` of type `"+v(s)+"` supplied to `"+i+"`, expected `"+t+"`."):null}))}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||t(e))return!0;var n=function(t){var e=t&&(d&&t[d]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!n)return!1;var i,r=n.call(e);if(n!==e.entries){for(;!(i=r.next()).done;)if(!g(i.value))return!1}else for(;!(i=r.next()).done;){var o=i.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function m(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function v(t){if(null==t)return""+t;var e=m(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function y(t){var e=v(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,c.checkPropTypes=l,c.PropTypes=c,c}}).call(e,n(5))},function(t,e){"use strict";function n(t){return function(){return t}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},t.exports=i},function(t,e,n){(function(e){"use strict";var n=function(t){};"production"!==e.env.NODE_ENV&&(n=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),t.exports=function(t,e,i,r,o,a,s,l){if(n(e),!t){var d;if(void 0===e)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[i,r,o,a,s,l],u=0;(d=new Error(e.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw d.framesToPop=1,d}}}).call(e,n(5))},function(t,e,n){(function(e){"use strict";var i=n(7);if("production"!==e.env.NODE_ENV){var r=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=0,o="Warning: "+t.replace(/%s/g,(function(){return n[r++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(t){}};i=function(t,e){if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var n=arguments.length,i=Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];r.apply(void 0,[e].concat(i))}}}t.exports=i}).call(e,n(5))},function(t,e){
32
32
  /*
33
33
  object-assign
34
34
  (c) Sindre Sorhus
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "13.6.0"
5
- VERSION = "13.6.0.pre.alpha.tiptapreacthookformbug1210"
4
+ PREVIOUS_VERSION = "13.5.0"
5
+ VERSION = "13.6.0"
6
6
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.6.0.pre.alpha.tiptapreacthookformbug1210
4
+ version: 13.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
8
8
  - Power Devs
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-09-21 00:00:00.000000000 Z
12
+ date: 2023-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -2629,7 +2629,7 @@ homepage: https://playbook.powerapp.cloud/
2629
2629
  licenses:
2630
2630
  - ISC
2631
2631
  metadata: {}
2632
- post_install_message:
2632
+ post_install_message:
2633
2633
  rdoc_options: []
2634
2634
  require_paths:
2635
2635
  - lib
@@ -2640,12 +2640,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
2640
2640
  version: '0'
2641
2641
  required_rubygems_version: !ruby/object:Gem::Requirement
2642
2642
  requirements:
2643
- - - ">"
2643
+ - - ">="
2644
2644
  - !ruby/object:Gem::Version
2645
- version: 1.3.1
2645
+ version: '0'
2646
2646
  requirements: []
2647
2647
  rubygems_version: 3.3.7
2648
- signing_key:
2648
+ signing_key:
2649
2649
  specification_version: 4
2650
2650
  summary: Playbook Design System
2651
2651
  test_files: []