2021-05-20 08:20:04 -04:00
|
|
|
this.wp=this.wp||{},this.wp.richText=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./node_modules/@wordpress/rich-text/build-module/index.js")}({"./node_modules/@wordpress/rich-text/build-module/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return g})),n.d(t,"applyFormat",(function(){return v})),n.d(t,"concat",(function(){return L})),n.d(t,"create",(function(){return w})),n.d(t,"getActiveFormat",(function(){return P})),n.d(t,"getActiveObject",(function(){return W})),n.d(t,"getTextContent",(function(){return k})),n.d(t,"__unstableIsListRootSelected",(function(){return $})),n.d(t,"__unstableIsActiveListType",(function(){return H})),n.d(t,"isCollapsed",(function(){return V})),n.d(t,"isEmpty",(function(){return K})),n.d(t,"__unstableIsEmptyLine",(function(){return B})),n.d(t,"join",(function(){return z})),n.d(t,"registerFormatType",(function(){return U})),n.d(t,"removeFormat",(function(){return G})),n.d(t,"remove",(function(){return Y})),n.d(t,"replace",(function(){return Z})),n.d(t,"insert",(function(){return X})),n.d(t,"__unstableInsertLineSeparator",(function(){return J})),n.d(t,"__unstableRemoveLineSeparator",(function(){return Q})),n.d(t,"insertObject",(function(){return ee})),n.d(t,"slice",(function(){return te})),n.d(t,"split",(function(){return ne})),n.d(t,"__unstableToDom",(function(){return he})),n.d(t,"toHTMLString",(function(){return ve})),n.d(t,"toggleFormat",(function(){return Ae})),n.d(t,"__UNSTABLE_LINE_SEPARATOR",(function(){return T})),n.d(t,"unregisterFormatType",(function(){return Ne})),n.d(t,"__unstableCanIndentListItems",(function(){return Se})),n.d(t,"__unstableCanOutdentListItems",(function(){return De})),n.d(t,"__unstableIndentListItems",(function(){return Re})),n.d(t,"__unstableOutdentListItems",(function(){return Ie})),n.d(t,"__unstableChangeListType",(function(){return Pe})),n.d(t,"__unstableCreateElement",(function(){return x})),n.d(t,"useAnchorRef",(function(){return ke})),n.d(t,"__experimentalRichText",(function(){return Qe})),n.d(t,"__unstableFormatEdit",(function(){return Ve}));var r={};n.r(r),n.d(r,"getFormatTypes",(function(){return l})),n.d(r,"getFormatType",(function(){return u})),n.d(r,"getFormatTypeForBareElement",(function(){return f})),n.d(r,"getFormatTypeForClassName",(function(){return d}));var a={};n.r(a),n.d(a,"addFormatTypes",(function(){return m})),n.d(a,"removeFormatTypes",(function(){return p}));var o=n("@wordpress/data"),i=n("lodash");var s=Object(o.combineReducers)({formatTypes:function(e={},t){switch(t.type){case"ADD_FORMAT_TYPES":return{...e,...Object(i.keyBy)(t.formatTypes,"name")};case"REMOVE_FORMAT_TYPES":return Object(i.omit)(e,t.names)}return e}}),c=n("./node_modules/rememo/es/rememo.js");const l=Object(c.a)(e=>Object.values(e.formatTypes),e=>[e.formatTypes]);function u(e,t){return e.formatTypes[t]}function f(e,t){return Object(i.find)(l(e),({className:e,tagName:n})=>null===e&&t===n)}function d(e,t){return Object(i.find)(l(e),({className:e})=>null!==e&&` ${t} `.indexOf(` ${e} `)>=0)}function m(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Object(i.castArray)(e)}}function p(e){return{type:"REMOVE_FORMAT_TYPES",names:Object(i.castArray)(e)}}const g=Object(o.createReduxStore)("core/rich-text",
|