@vonaffenfels/slate-editor 1.1.56 → 1.1.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Renderer.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/BlockEditor.js +0 -6
- package/src/Renderer.js +2 -0
- package/src/Serializer/Serializer.js +33 -16
package/dist/Renderer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see Renderer.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var r="object"==typeof exports?t(require("react")):t(e.react);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(e=>(()=>{var t={6664:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(5850);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,n.Z)(o.key),o)}}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var a=r(6522);function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var u=r(8156),c=r.n(u);function s(e){var t=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(e){return!1}}();return function(){var r,n=l(e);if(t){var o=l(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===(0,a.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}c().createElement;var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,e);var t,r,n,a=s(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={hasError:!1},t}return t=l,n=[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}],(r=[{key:"componentDidCatch",value:function(e,t){var r="Error in ".concat(this.props.name);console.groupCollapsed(r),console.error("Error",e),console.error("Info",t),console.groupEnd(r)}},{key:"render",value:function(){return this.state.hasError?this.props.fallback?this.props.fallback:this.props.isEditor?c().createElement("div",{className:"storybook-element-error"},c().createElement("p",null,"Error in Element ",this.props.name)):null:this.props.children}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(c().Component)},8703:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});var n=(0,r(8156).createContext)({storybookUrl:null,storybookTarget:null,activeStorybook:null})},1053:(e,t,r)=>{"use strict";r.d(t,{g:()=>m});var n=r(7896),o=r(6666),i=r(2159),a=r(2779),l=r.n(a),u=r(8156),c=r.n(u),s=["attributes","elementPropsMap","specialClassMap","transformAttributes","children","element","isRenderer","isInSlot","defaultComponentReplacement","onElementClick"],p=["noFollow","nofollow"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}c().createElement;var m=function(e){var t=e.attributes,r=e.elementPropsMap,o=e.specialClassMap,a=e.transformAttributes,u=e.children,f=e.element,m=e.isRenderer,v=e.isInSlot,y=void 0!==v&&v,h=e.defaultComponentReplacement,b=e.onElementClick,g=void 0===b?function(){}:b,E=((0,i.Z)(e,s),f.type),w=f.align,k=d(d({},f.attributes||{}),function(e){return r?y&&r[e+"-in-slot"]?r[e+"-in-slot"]:r[e]||{}:{}}(E));"function"==typeof a&&(k=a(E,k));var O=t.className||k.className||"",x=k.wrapper||function(e){var t=e.children;return c().createElement(c().Fragment,null,t)};switch(w&&(o&&o[w]?O+=o[w]:O+="align-"+w),t.onClick=function(){return g(f)},t.className=O.trim()||void 0,E){case"blockquote":return c().createElement(x,{type:E},c().createElement("blockquote",t,u));case"list-item":return c().createElement(x,{type:E},c().createElement("li",t,u));case"unordered-list":return c().createElement(x,{type:E},c().createElement("ul",t,u));case"ordered-list":return c().createElement(x,{type:E},c().createElement("ol",t,u));case"arrow-list":return c().createElement(x,{type:E},c().createElement("ul",(0,n.Z)({},t,{className:l()("arrow-list",t.className)}),u));case"code":var j,P;return m?c().createElement(x,{code:null==f||null===(j=f.attributes)||void 0===j?void 0:j.code,type:E}):c().createElement(x,{type:E},c().createElement("div",t,c().createElement("div",{dangerouslySetInnerHTML:{__html:null==f||null===(P=f.attributes)||void 0===P?void 0:P.code}})));case"heading":var C,S="h".concat(f.attributes.level||1);return c().createElement(x,{level:f.attributes.level,type:E},c().createElement(S,(0,n.Z)({},t,{id:(null==f||null===(C=f.attributes)||void 0===C?void 0:C.id)||void 0}),u));case"link":var Z="noopener noreferrer",L=k,_=L.noFollow,D=L.nofollow,T=(0,i.Z)(L,p);(_||D)&&(Z+=" nofollow");var R="function"==typeof h?h(E):null;return R?c().createElement(x,{type:E},c().createElement(R,(0,n.Z)({},T,t,{rel:Z,className:O.trim()}),u)):c().createElement(x,{type:E},c().createElement("a",(0,n.Z)({},T,t,{rel:Z,className:O.trim()}),u));case"paragraph":return c().createElement(x,{type:E},c().createElement("p",(0,n.Z)({},f.attributes,t,{className:O.trim()}),u));case"divider":return c().createElement(x,{type:E},c().createElement("hr",t),u);case"div":return c().createElement(x,{type:E},c().createElement("div",(0,n.Z)({},f.attributes,t),u));case"span":return c().createElement(x,{type:E},c().createElement("span",(0,n.Z)({},f.attributes,t),u));default:return m?c().createElement(x,{type:E},u):c().createElement("span",(0,n.Z)({},t,{className:O.trim()}),u)}}},8799:(e,t,r)=>{"use strict";r.d(t,{B:()=>y});var n=r(2159),o=r(8156),i=r.n(o),a=r(7896),l=(i().createElement,function(e){var t=e.isRenderer,r=e.attributes,n=e.children,a=e.typeProps;if(t){if(!n)return null;if("string"==typeof n){var l=n.split("\n");return i().createElement(o.Fragment,null,l.length>1?l.map((function(e,t){return i().createElement(o.Fragment,{key:t},u(e,a),t!==l.length-1?i().createElement("br",null):null)})):u(n,a))}return i().createElement(o.Fragment,null,n)}return i().createElement("span",r,n)});function u(e,t){if(!t||!e||"string"!=typeof e)return e;if(t.line_transform)for(var r in t.line_transform)if(e.startsWith(r)){var n=t.line_transform[r];return i().createElement(n,null,e.substr(r.length).trim())}return e}var c=function(e){var t=e.attributes,r=e.children;return i().createElement("strong",t,r)},s=function(e){var t=e.attributes,r=e.children;return i().createElement("i",t,r)},p=function(e){var t=e.attributes,r=e.children;return i().createElement("u",t,r)},f=function(e){var t=e.attributes,r=e.children;return i().createElement("del",t,r)},d=function(e){var t=e.attributes,r=e.children;return i().createElement("small",t,r)},m=function(e){var t=e.attributes,r=e.children;return i().createElement("span",(0,a.Z)({style:{fontSize:"60%",verticalAlign:"top"}},t),r)},v=["attributes","children","leaf","isRenderer","typeProps"],y=(i().createElement,function(e){var t=e.attributes,r=e.children,o=e.leaf,a=e.isRenderer,u=e.typeProps;return(0,n.Z)(e,v),o.bold&&(r=i().createElement(c,{typeProps:u,attributes:t},i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r))),o.italic&&(r=i().createElement(s,{typeProps:u,attributes:t},i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r))),o.underlined&&(r=i().createElement(p,{typeProps:u,attributes:t},i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r))),o.strikethrough&&(r=i().createElement(f,{typeProps:u,attributes:t},i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r))),o.small&&(r=i().createElement(d,{typeProps:u,attributes:t},i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r))),o.superscriptUp&&(r=i().createElement(m,{typeProps:u,attributes:t},i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r))),i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r)})},4715:(e,t,r)=>{"use strict";r.d(t,{O:()=>v});var n=r(5987),o=r(6666),i=r(2841),a=r.n(i),l=r(8156),u=r.n(l),c=(u().createElement,function(){return"production"==="MISSING_ENV_VAR".NEXT_PUBLIC_VERCEL_ENV?null:u().createElement("span",{className:"editor-empty-element",style:{minHeight:200,display:"inline-block"}},"Unbekanntes Element")}),s=r(6664),p=r(2779),f=r.n(p);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}u().createElement;var v=function(e){var t,r,n,o,i=e.storybookComponentLoader,a=e.storybookComponentDataLoader,p=e.element,f=e.isEditor,d=(0,l.useRef)();(0,l.useEffect)((function(){if(f&&d.current){var e=setInterval((function(){!d.current||d.current.innerText||d.current.querySelector("img, svg, iframe, video, audio, picture, frame, input")?d.current&&(d.current.classList.remove("storybook-element-display-empty"),delete d.current.dataset.content):(d.current.classList.add("storybook-element-display-empty"),d.current.dataset.content="Leeres Element :: ".concat(p.block))}),100);return function(){clearInterval(e)}}}),[d.current]);var v=new Date;if(!(!f&&null!=p&&null!==(t=p.attributes)&&void 0!==t&&t.visibleFromDate&&new Date(null==p||null===(r=p.attributes)||void 0===r?void 0:r.visibleFromDate)>v||!f&&null!=p&&null!==(n=p.attributes)&&void 0!==n&&n.visibleToDate&&new Date(null==p||null===(o=p.attributes)||void 0===o?void 0:o.visibleToDate)<v))return p.isEmpty||!p.block?u().createElement(c,p.attributes):f?u().createElement(s.Z,{name:p.block,isEditor:f},u().createElement("span",{ref:d,className:"storybook-element-display"},u().createElement(y,{block:p.block,storybookComponentLoader:i,storybookComponentDataLoader:a,attributes:m({},p.attributes),isEditor:!0}))):u().createElement(s.Z,{name:p.block,isEditor:f},u().createElement(y,{block:p.block,storybookComponentLoader:i,storybookComponentDataLoader:a,attributes:m({},p.attributes)}))},y=function(e){var t,r,o,i,s=e.block,p=e.storybookComponentLoader,d=e.storybookComponentDataLoader,v=e.attributes,y=e.isEditor,h=(0,l.useState)(v),b=h[0],g=h[1],E=p(s);(0,l.useEffect)((function(){if(d){var e=function(){var e=(0,n.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,d(s,v);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t=!0;return e().then((function(e){e&&t&&g(m(m({},v),e||{}))})),g(m({},v)),function(){t=!1}}}),[v,s,d,p]),E||(E=c);var w=b.isInline?"span":"div",k=f()({"block-article-width":"article"===b.blockWidth,"block-site-width":"site"===b.blockWidth,"block-small-width":"small"===b.blockWidth,"editor-mt-large":null==b||null===(t=b.margin)||void 0===t?void 0:t.top,"editor-mr-large":null==b||null===(r=b.margin)||void 0===r?void 0:r.right,"editor-mb-large":null==b||null===(o=b.margin)||void 0===o?void 0:o.bottom,"editor-ml-large":null==b||null===(i=b.margin)||void 0===i?void 0:i.left,"block-hide-on-desktop":(null==b?void 0:b.hideOnDesktop)&&!y,"block-hide-on-tablet":(null==b?void 0:b.hideOnTablet)&&!y,"block-hide-on-smartphone":(null==b?void 0:b.hideOnSmartphone)&&!y});return k?u().createElement(w,{className:k,id:null==b?void 0:b.id},u().createElement(E,b)):u().createElement(E,b)}},2530:(e,t,r)=>{"use strict";r.d(t,{e:()=>E});var n=r(7896),o=r(6666),i=r(8156),a=r.n(i),l=r(1053),u=r(8799),c=r(4715),s=r(2779),p=r.n(s),f=r(8777),d=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=[],o={fullTextCounter:0,currTextCounterDesktop:0,currTextCounterMobile:0,currTextLength:0,currElementsChain:[]},i=(0,f.Z)(t),a=(0,f.Z)(r),l=0;l<e.length;l++){var u=e[l],c=y(u),s=m(u,o),p="after",d="after",h=null,b=null;if(o.fullTextCounter+=c,o.currTextCounterDesktop+=c,o.currTextCounterMobile+=c,o.currTextLength=c,s){var g,E,w,k,O,x,j=i.shift(),P=a.shift();o.currElementsChain.push(u),v(j,o,o.currTextCounterDesktop,u)&&(h=j,!1!==j.reset&&(o.currTextCounterDesktop=0)),v(P,o,o.currTextCounterMobile,u)&&(b=P,!1!==P.reset&&(o.currTextCounterMobile=0)),null!==(g=h)&&void 0!==g&&g.placement?p=null===(O=h)||void 0===O?void 0:O.placement:null!==(E=h)&&void 0!==E&&E.inline&&(p="before"),null!==(w=b)&&void 0!==w&&w.placement?d=null===(x=b)||void 0===x?void 0:x.placement:null!==(k=b)&&void 0!==k&&k.inline&&(d="before"),h&&"before"===p&&n.push(h.component),b&&"before"===d&&n.push(b.component),n=n.concat(o.currElementsChain),h&&"after"===p&&n.push(h.component),b&&"after"===d&&n.push(b.component),o.currElementsChain=[],!h&&j&&i.unshift(j),!b&&P&&a.unshift(P)}else o.currElementsChain.push(u)}return o.currElementsChain.length&&(n=n.concat(o.currElementsChain)),n},m=function(e,t){var r=null==e?void 0:e.type;return null==t||t.currElementsChain,"paragraph"===r||"storybook"===r},v=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=!1;return e?(e.space?r>e.space&&(o=!0):o=!0,null!=e&&e.inline&&"paragraph"!==(null==n?void 0:n.type)&&(o=!1),o):o},y=function e(t){var r,n=0;if(t.children)for(var o=0;o<t.children.length;o++)n+=e(t.children[o]);if(t.text&&(n+=parseInt((null==t||null===(r=t.text)||void 0===r?void 0:r.length)||0)),"storybook"===t.type)switch(null==t?void 0:t.block){case"Media/Image":case"Media/Gallery":n+=100}return n},h=r(6664);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e){var t=e.value,r=void 0===t?[]:t,s=e.elementPropsMap,f=e.specialClassMap,m=e.transformAttributes,v=e.storybookComponentLoader,y=e.storybookComponentDataLoader,b=e.defaultComponentReplacement,E=e.modifyElementFunc,x=e.isRenderer,j=void 0!==x&&x,P=e.fixedPositions,C=void 0===P?{}:P,S=e.fixedPositionTypes,Z=void 0===S?{}:S,L=e.adDefinitionDesktop,_=void 0===L?[]:L,D=e.adDefinitionMobile,T=void 0===D?[]:D;r&&(r=r.filter((function(e){if(!e)return!1;if("paragraph"===e.type){if(!e.children||0===e.children.length)return!1;if(0===e.children.filter((function(e){return!function(e){return!e.type&&!String(e.text).trim()}(e)})).length)return!1}return!0})));var R=function(e){return s?arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&s[e+"-in-slot"]?s[e+"-in-slot"]:s[e]||{}:{}},M=function(e){var t,r,u,d,E,w,k,O=arguments.length>1&&void 0!==arguments[1]&&arguments[1],x=R(e.type,O),P=x.wrapper||function(e){var t=e.children;return a().createElement(h.Z,null,t)};switch(e.type){case"storybook":var C={element:g(g({},e),{},{attributes:g(g({},e.attributes||{}),{},{isInSlot:O})}),attributes:e.attributes,storybookComponentLoader:v,storybookComponentDataLoader:y};return a().createElement(h.Z,null,a().createElement(P,{type:e.type,block:e.block},a().createElement(c.O,C)));case"layout":var S,Z,L,_,D,T,M,A,F,I,G,q,B,U,V=!0;return Array.isArray(e.children)&&e.children.forEach((function(e){"layout-slot"===e.type&&["grid-auto","grid-fill"].includes(e.attributes.name)&&(V=!1)})),a().createElement(h.Z,null,a().createElement(P,{type:e.type},a().createElement("div",{"data-cols":e.children.length,className:p()("block-editor-layout",(U={"block-editor-layout-grid":V,"block-editor-layout-flex":!V,"block-editor-table-border-wrapper":null==e||null===(S=e.attributes)||void 0===S?void 0:S.tableBorder,"md:grid-cols-1":1===e.children.length,"md:grid-cols-2":2===e.children.length,"md:grid-cols-3":3===e.children.length,"md:grid-cols-4":4===e.children.length,"md:grid-cols-5":5===e.children.length,"grid-cols-1":1===(null==e||null===(Z=e.attributes)||void 0===Z?void 0:Z.mobileColumnSpan),"grid-cols-2":2===(null==e||null===(L=e.attributes)||void 0===L?void 0:L.mobileColumnSpan),"md:space-x-4":null===(_=e.attributes)||void 0===_?void 0:_.spacing,"mt-16":null==e||null===(D=e.attributes)||void 0===D||null===(D=D.margin)||void 0===D?void 0:D.top,"mr-16":null==e||null===(T=e.attributes)||void 0===T||null===(T=T.margin)||void 0===T?void 0:T.right,"mb-16":null==e||null===(M=e.attributes)||void 0===M||null===(M=M.margin)||void 0===M?void 0:M.bottom,"ml-16":null==e||null===(A=e.attributes)||void 0===A||null===(A=A.margin)||void 0===A?void 0:A.left,"justify-center":null==e||null===(F=e.attributes)||void 0===F?void 0:F.justifyCenter},(0,o.Z)(U,x.classNameSite+" site-width",!O&&("site"===(null===(I=e.attributes)||void 0===I?void 0:I.width)||"full"===(null===(G=e.attributes)||void 0===G?void 0:G.width))),(0,o.Z)(U,x.classNameArticle+" article-width",!(O||"article"!==(null===(q=e.attributes)||void 0===q?void 0:q.width)&&null!==(B=e.attributes)&&void 0!==B&&B.width)),U))},e.children.map((function(e,t){return a().createElement(i.Fragment,{key:"layout-pos-"+t},N(e,t,O))})))));case"layout-slot":return a().createElement(h.Z,null,a().createElement(P,{type:e.type},a().createElement("div",{className:p()((E={},(0,o.Z)(E,"block-editor-layout-"+e.attributes.name,!0),(0,o.Z)(E,"mt-4",null===(t=e.attributes)||void 0===t||null===(t=t.margin)||void 0===t?void 0:t.top),(0,o.Z)(E,"md:mr-4",null===(r=e.attributes)||void 0===r||null===(r=r.margin)||void 0===r?void 0:r.right),(0,o.Z)(E,"mb-4",null===(u=e.attributes)||void 0===u||null===(u=u.margin)||void 0===u?void 0:u.bottom),(0,o.Z)(E,"md:ml-4",null===(d=e.attributes)||void 0===d||null===(d=d.margin)||void 0===d?void 0:d.left),E))},a().createElement("div",{style:{top:(null===(w=e.attributes)||void 0===w?void 0:w.sticky)&&"80px"},className:p()({sticky:null===(k=e.attributes)||void 0===k?void 0:k.sticky})},e.children.map((function(t,r){return a().createElement("div",{key:"layout-slot-"+r},N(t,r,e.attributes.name))}))))));default:var W={specialClassMap:f,elementPropsMap:s,element:{attributes:e.attributes||{},align:e.align,type:e.type},attributes:e.htmlAttributes||{},children:e.children.map((function(t,r){return a().createElement(i.Fragment,{key:e.type+"-pos-item-"+r},N(t,r,O))}))};return a().createElement(h.Z,null,a().createElement(l.g,(0,n.Z)({},W,{isInSlot:O,isRenderer:j,transformAttributes:m,defaultComponentReplacement:b})))}};function N(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,i.isValidElement)(e))return e;if("function"==typeof E&&(e=E(e)),!e.children||!e.children.length)return n=e,a().createElement(u.B,{leaf:n,isRenderer:!0,typeProps:R("leaf")},n.text||"");if("paragraph"===(null===(r=e)||void 0===r?void 0:r.type)&&!e.children.find((function(e){return!(null!=e&&e.type)&&(null==e?void 0:e.text)}))){var l=e.children.filter((function(e){return"storybook"===(null==e?void 0:e.type)}));if(1===l.length)return M(l.at(0),o)}return M(e,o)}return function(e){var t=d(e,_,T);return t=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!Array.isArray(e))return e;for(var o=[],i=0;i<e.length;i++){var a=e[i],l=null==e?void 0:e[i-1];if(a.type){n[a.type]||(n[a.type]=0);var u="".concat(a.type,"_").concat(n[a.type]);if(O(a,n)){n[a.type]++;var c=null==r?void 0:r[u],s=w(t,u),p=k(a,l,c);s&&"before"===p&&o.push(s),o.push(a),s&&"after"===p&&o.push(s)}else o.push(a)}else o.push(a)}return o}(t,C,Z),a().createElement(a().Fragment,null,!!t&&t.map((function(e,t){return a().createElement(i.Fragment,{key:e.block+"-pos-"+t},N(e,t))})))}(r)}function w(e,t){return(null==e?void 0:e[t])||null}function k(e,t,r){if("inline"===r)return"before";var n="before";return("paragraph"===(null==e?void 0:e.type)&&"heading"===(null==t?void 0:t.type)||function(e){return"paragraph"===(null==e?void 0:e.type)&&(e.children.map((function(e){var t;return(null==e||null===(t=e.text)||void 0===t?void 0:t.length)||0})).reduce((function(e,t){return e+t}),0)||0)<=60}(t))&&(n="after"),n}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!0;if("paragraph"===e.type){var n="paragraph_textlength";t[n]||(t[n]=0);var o=e.children.map((function(e){var t;return(null==e||null===(t=e.text)||void 0===t?void 0:t.length)||0})).reduce((function(e,t){return e+t}),0)||0,i=o<=60;t[n]+=o,(r=!i&&t[n]>=200)&&(t[n]=0)}return r}a().createElement,r(8439)},2779:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},8439:e=>{"use strict";var t=/["'&<>]/;e.exports=function(e){var r,n=""+e,o=t.exec(n);if(!o)return n;var i="",a=0,l=0;for(a=o.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}l!==a&&(i+=n.substring(l,a)),l=a+1,i+=r}return l!==a?i+n.substring(l,a):i}},8156:t=>{"use strict";t.exports=e},7609:(e,t,r)=>{var n=r(7425).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,a=i.hasOwnProperty,l=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",p=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof E?t:E,i=Object.create(o.prototype),a=new T(n||[]);return l(i,"_invoke",{value:Z(e,r,a)}),i}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var v="suspendedStart",y="suspendedYield",h="executing",b="completed",g={};function E(){}function w(){}function k(){}var O={};f(O,c,(function(){return this}));var x=Object.getPrototypeOf,j=x&&x(x(R([])));j&&j!==i&&a.call(j,c)&&(O=j);var P=k.prototype=E.prototype=Object.create(O);function C(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,i,l,u){var c=m(e[o],e,i);if("throw"!==c.type){var s=c.arg,p=s.value;return p&&"object"==n(p)&&a.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,l,u)}),(function(e){r("throw",e,l,u)})):t.resolve(p).then((function(e){s.value=e,l(s)}),(function(e){return r("throw",e,l,u)}))}u(c.arg)}var o;l(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function Z(e,r,n){var o=v;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var u=L(l,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var c=m(e,r,n);if("normal"===c.type){if(o=n.done?b:y,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=b,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=m(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=k,l(P,"constructor",{value:k,configurable:!0}),l(k,"constructor",{value:w,configurable:!0}),w.displayName=f(k,p,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,f(e,p,"GeneratorFunction")),e.prototype=Object.create(P),e},r.awrap=function(e){return{__await:e}},C(S.prototype),f(S.prototype,s,(function(){return this})),r.AsyncIterator=S,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new S(d(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(P),f(P,p,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=R,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(D),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,r)=>{var n=r(7609)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},926:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:()=>n})},5987:(e,t,r)=>{"use strict";function n(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function l(e){n(a,o,i,l,u,"next",e)}function u(e){n(a,o,i,l,u,"throw",e)}l(void 0)}))}}r.d(t,{Z:()=>o})},6666:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(5850);function o(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},7896:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:()=>n})},2159:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,{Z:()=>n})},8777:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(926),o=r(9147);function i(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5850:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(6522);function o(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==(0,n.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===(0,n.Z)(t)?t:String(t)}},6522:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:()=>n})},9147:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(926);function o(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(e,t):void 0}}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{StorybookContext:()=>r.G,default:()=>l});var e=n(8156),t=n.n(e),r=n(8703),i=n(2530);function a(e){var r=e.value,n=e.modifyElementFunc,o=e.specialClassMap,a=e.elementPropsMap,l=e.transformAttributes,u=e.storybookComponentLoader,c=e.storybookComponentDataLoader,s=e.fixedPositions,p=e.fixedPositionTypes,f=e.adDefinitionDesktop,d=e.adDefinitionMobile,m=e.defaultComponentReplacement,v=e.onStorybookElementClick;return t().createElement(i.e,{elementPropsMap:a,specialClassMap:o,defaultComponentReplacement:m,transformAttributes:l,value:r,modifyElementFunc:n,storybookComponentLoader:u,storybookComponentDataLoader:c,fixedPositions:s,fixedPositionTypes:p,adDefinitionDesktop:f,adDefinitionMobile:d,isRenderer:!0,onStorybookElementClick:v})}t().createElement;const l=(0,e.memo)(a)})(),o})()));
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var r="object"==typeof exports?t(require("react")):t(e.react);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(e=>(()=>{var t={6664:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(5850);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,n.Z)(o.key),o)}}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var a=r(6522);function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var u=r(8156),c=r.n(u);function s(e){var t=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(e){return!1}}();return function(){var r,n=l(e);if(t){var o=l(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===(0,a.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}c().createElement;var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,e);var t,r,n,a=s(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={hasError:!1},t}return t=l,n=[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}],(r=[{key:"componentDidCatch",value:function(e,t){var r="Error in ".concat(this.props.name);console.groupCollapsed(r),console.error("Error",e),console.error("Info",t),console.groupEnd(r)}},{key:"render",value:function(){return this.state.hasError?this.props.fallback?this.props.fallback:this.props.isEditor?c().createElement("div",{className:"storybook-element-error"},c().createElement("p",null,"Error in Element ",this.props.name)):null:this.props.children}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(c().Component)},8703:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});var n=(0,r(8156).createContext)({storybookUrl:null,storybookTarget:null,activeStorybook:null})},1053:(e,t,r)=>{"use strict";r.d(t,{g:()=>m});var n=r(7896),o=r(6666),i=r(2159),a=r(2779),l=r.n(a),u=r(8156),c=r.n(u),s=["attributes","elementPropsMap","specialClassMap","transformAttributes","children","element","isRenderer","isInSlot","defaultComponentReplacement","onElementClick"],p=["noFollow","nofollow"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}c().createElement;var m=function(e){var t=e.attributes,r=e.elementPropsMap,o=e.specialClassMap,a=e.transformAttributes,u=e.children,f=e.element,m=e.isRenderer,v=e.isInSlot,y=void 0!==v&&v,h=e.defaultComponentReplacement,b=e.onElementClick,g=void 0===b?function(){}:b,E=((0,i.Z)(e,s),f.type),w=f.align,k=d(d({},f.attributes||{}),function(e){return r?y&&r[e+"-in-slot"]?r[e+"-in-slot"]:r[e]||{}:{}}(E));"function"==typeof a&&(k=a(E,k));var O=t.className||k.className||"",x=k.wrapper||function(e){var t=e.children;return c().createElement(c().Fragment,null,t)};switch(w&&(o&&o[w]?O+=o[w]:O+="align-"+w),t.onClick=function(){return g(f)},t.className=O.trim()||void 0,E){case"blockquote":return c().createElement(x,{type:E},c().createElement("blockquote",t,u));case"list-item":return c().createElement(x,{type:E},c().createElement("li",t,u));case"unordered-list":return c().createElement(x,{type:E},c().createElement("ul",t,u));case"ordered-list":return c().createElement(x,{type:E},c().createElement("ol",t,u));case"arrow-list":return c().createElement(x,{type:E},c().createElement("ul",(0,n.Z)({},t,{className:l()("arrow-list",t.className)}),u));case"code":var j,P;return m?c().createElement(x,{code:null==f||null===(j=f.attributes)||void 0===j?void 0:j.code,type:E}):c().createElement(x,{type:E},c().createElement("div",t,c().createElement("div",{dangerouslySetInnerHTML:{__html:null==f||null===(P=f.attributes)||void 0===P?void 0:P.code}})));case"heading":var C,S="h".concat(f.attributes.level||1);return c().createElement(x,{level:f.attributes.level,type:E},c().createElement(S,(0,n.Z)({},t,{id:(null==f||null===(C=f.attributes)||void 0===C?void 0:C.id)||void 0}),u));case"link":var Z="noopener noreferrer",L=k,_=L.noFollow,D=L.nofollow,T=(0,i.Z)(L,p);(_||D)&&(Z+=" nofollow");var R="function"==typeof h?h(E):null;return R?c().createElement(x,{type:E},c().createElement(R,(0,n.Z)({},T,t,{rel:Z,className:O.trim()}),u)):c().createElement(x,{type:E},c().createElement("a",(0,n.Z)({},T,t,{rel:Z,className:O.trim()}),u));case"paragraph":return c().createElement(x,{type:E},c().createElement("p",(0,n.Z)({},f.attributes,t,{className:O.trim()}),u));case"divider":return c().createElement(x,{type:E},c().createElement("hr",t),u);case"div":return c().createElement(x,{type:E},c().createElement("div",(0,n.Z)({},f.attributes,t),u));case"span":return c().createElement(x,{type:E},c().createElement("span",(0,n.Z)({},f.attributes,t),u));default:return m?c().createElement(x,{type:E},u):c().createElement("span",(0,n.Z)({},t,{className:O.trim()}),u)}}},8799:(e,t,r)=>{"use strict";r.d(t,{B:()=>y});var n=r(2159),o=r(8156),i=r.n(o),a=r(7896),l=(i().createElement,function(e){var t=e.isRenderer,r=e.attributes,n=e.children,a=e.typeProps;if(t){if(!n)return null;if("string"==typeof n){var l=n.split("\n");return i().createElement(o.Fragment,null,l.length>1?l.map((function(e,t){return i().createElement(o.Fragment,{key:t},u(e,a),t!==l.length-1?i().createElement("br",null):null)})):u(n,a))}return i().createElement(o.Fragment,null,n)}return i().createElement("span",r,n)});function u(e,t){if(!t||!e||"string"!=typeof e)return e;if(t.line_transform)for(var r in t.line_transform)if(e.startsWith(r)){var n=t.line_transform[r];return i().createElement(n,null,e.substr(r.length).trim())}return e}var c=function(e){var t=e.attributes,r=e.children;return i().createElement("strong",t,r)},s=function(e){var t=e.attributes,r=e.children;return i().createElement("i",t,r)},p=function(e){var t=e.attributes,r=e.children;return i().createElement("u",t,r)},f=function(e){var t=e.attributes,r=e.children;return i().createElement("del",t,r)},d=function(e){var t=e.attributes,r=e.children;return i().createElement("small",t,r)},m=function(e){var t=e.attributes,r=e.children;return i().createElement("span",(0,a.Z)({style:{fontSize:"60%",verticalAlign:"top"}},t),r)},v=["attributes","children","leaf","isRenderer","typeProps"],y=(i().createElement,function(e){var t=e.attributes,r=e.children,o=e.leaf,a=e.isRenderer,u=e.typeProps;return(0,n.Z)(e,v),o.bold&&(r=i().createElement(c,{typeProps:u,attributes:t},i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r))),o.italic&&(r=i().createElement(s,{typeProps:u,attributes:t},i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r))),o.underlined&&(r=i().createElement(p,{typeProps:u,attributes:t},i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r))),o.strikethrough&&(r=i().createElement(f,{typeProps:u,attributes:t},i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r))),o.small&&(r=i().createElement(d,{typeProps:u,attributes:t},i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r))),o.superscriptUp&&(r=i().createElement(m,{typeProps:u,attributes:t},i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r))),i().createElement(l,{attributes:t,typeProps:u,isRenderer:a},r)})},4715:(e,t,r)=>{"use strict";r.d(t,{O:()=>v});var n=r(5987),o=r(6666),i=r(2841),a=r.n(i),l=r(8156),u=r.n(l),c=(u().createElement,function(){return"production"==="MISSING_ENV_VAR".NEXT_PUBLIC_VERCEL_ENV?null:u().createElement("span",{className:"editor-empty-element",style:{minHeight:200,display:"inline-block"}},"Unbekanntes Element")}),s=r(6664),p=r(2779),f=r.n(p);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}u().createElement;var v=function(e){var t,r,n,o,i=e.storybookComponentLoader,a=e.storybookComponentDataLoader,p=e.element,f=e.isEditor,d=(0,l.useRef)();(0,l.useEffect)((function(){if(f&&d.current){var e=setInterval((function(){!d.current||d.current.innerText||d.current.querySelector("img, svg, iframe, video, audio, picture, frame, input")?d.current&&(d.current.classList.remove("storybook-element-display-empty"),delete d.current.dataset.content):(d.current.classList.add("storybook-element-display-empty"),d.current.dataset.content="Leeres Element :: ".concat(p.block))}),100);return function(){clearInterval(e)}}}),[d.current]);var v=new Date;if(!(!f&&null!=p&&null!==(t=p.attributes)&&void 0!==t&&t.visibleFromDate&&new Date(null==p||null===(r=p.attributes)||void 0===r?void 0:r.visibleFromDate)>v||!f&&null!=p&&null!==(n=p.attributes)&&void 0!==n&&n.visibleToDate&&new Date(null==p||null===(o=p.attributes)||void 0===o?void 0:o.visibleToDate)<v))return p.isEmpty||!p.block?u().createElement(c,p.attributes):f?u().createElement(s.Z,{name:p.block,isEditor:f},u().createElement("span",{ref:d,className:"storybook-element-display"},u().createElement(y,{block:p.block,storybookComponentLoader:i,storybookComponentDataLoader:a,attributes:m({},p.attributes),isEditor:!0}))):u().createElement(s.Z,{name:p.block,isEditor:f},u().createElement(y,{block:p.block,storybookComponentLoader:i,storybookComponentDataLoader:a,attributes:m({},p.attributes)}))},y=function(e){var t,r,o,i,s=e.block,p=e.storybookComponentLoader,d=e.storybookComponentDataLoader,v=e.attributes,y=e.isEditor,h=(0,l.useState)(v),b=h[0],g=h[1],E=p(s);(0,l.useEffect)((function(){if(d){var e=function(){var e=(0,n.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,d(s,v);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t=!0;return e().then((function(e){e&&t&&g(m(m({},v),e||{}))})),g(m({},v)),function(){t=!1}}}),[v,s,d,p]),E||(E=c);var w=b.isInline?"span":"div",k=f()({"block-article-width":"article"===b.blockWidth,"block-site-width":"site"===b.blockWidth,"block-small-width":"small"===b.blockWidth,"editor-mt-large":null==b||null===(t=b.margin)||void 0===t?void 0:t.top,"editor-mr-large":null==b||null===(r=b.margin)||void 0===r?void 0:r.right,"editor-mb-large":null==b||null===(o=b.margin)||void 0===o?void 0:o.bottom,"editor-ml-large":null==b||null===(i=b.margin)||void 0===i?void 0:i.left,"block-hide-on-desktop":(null==b?void 0:b.hideOnDesktop)&&!y,"block-hide-on-tablet":(null==b?void 0:b.hideOnTablet)&&!y,"block-hide-on-smartphone":(null==b?void 0:b.hideOnSmartphone)&&!y});return k?u().createElement(w,{className:k,id:null==b?void 0:b.id},u().createElement(E,b)):u().createElement(E,b)}},2530:(e,t,r)=>{"use strict";r.d(t,{e:()=>E});var n=r(7896),o=r(6666),i=r(8156),a=r.n(i),l=r(1053),u=r(8799),c=r(4715),s=r(2779),p=r.n(s),f=r(8777),d=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=[],o={fullTextCounter:0,currTextCounterDesktop:0,currTextCounterMobile:0,currTextLength:0,currElementsChain:[]},i=(0,f.Z)(t),a=(0,f.Z)(r),l=0;l<e.length;l++){var u=e[l],c=y(u),s=m(u,o),p="after",d="after",h=null,b=null;if(o.fullTextCounter+=c,o.currTextCounterDesktop+=c,o.currTextCounterMobile+=c,o.currTextLength=c,s){var g,E,w,k,O,x,j=i.shift(),P=a.shift();o.currElementsChain.push(u),v(j,o,o.currTextCounterDesktop,u)&&(h=j,!1!==j.reset&&(o.currTextCounterDesktop=0)),v(P,o,o.currTextCounterMobile,u)&&(b=P,!1!==P.reset&&(o.currTextCounterMobile=0)),null!==(g=h)&&void 0!==g&&g.placement?p=null===(O=h)||void 0===O?void 0:O.placement:null!==(E=h)&&void 0!==E&&E.inline&&(p="before"),null!==(w=b)&&void 0!==w&&w.placement?d=null===(x=b)||void 0===x?void 0:x.placement:null!==(k=b)&&void 0!==k&&k.inline&&(d="before"),h&&"before"===p&&n.push(h.component),b&&"before"===d&&n.push(b.component),n=n.concat(o.currElementsChain),h&&"after"===p&&n.push(h.component),b&&"after"===d&&n.push(b.component),o.currElementsChain=[],!h&&j&&i.unshift(j),!b&&P&&a.unshift(P)}else o.currElementsChain.push(u)}return o.currElementsChain.length&&(n=n.concat(o.currElementsChain)),n},m=function(e,t){var r=null==e?void 0:e.type;return null==t||t.currElementsChain,"paragraph"===r||"storybook"===r},v=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=!1;return e?(e.space?r>e.space&&(o=!0):o=!0,null!=e&&e.inline&&"paragraph"!==(null==n?void 0:n.type)&&(o=!1),o):o},y=function e(t){var r,n=0;if(t.children)for(var o=0;o<t.children.length;o++)n+=e(t.children[o]);if(t.text&&(n+=parseInt((null==t||null===(r=t.text)||void 0===r?void 0:r.length)||0)),"storybook"===t.type)switch(null==t?void 0:t.block){case"Media/Image":case"Media/Gallery":n+=100}return n},h=r(6664);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e){var t=e.value,r=void 0===t?[]:t,s=e.elementPropsMap,f=e.specialClassMap,m=e.transformAttributes,v=e.storybookComponentLoader,y=e.storybookComponentDataLoader,b=e.defaultComponentReplacement,E=e.modifyElementFunc,x=e.filterContent,j=void 0===x?null:x,P=e.isRenderer,C=void 0!==P&&P,S=e.fixedPositions,Z=void 0===S?{}:S,L=e.fixedPositionTypes,_=void 0===L?{}:L,D=e.adDefinitionDesktop,T=void 0===D?[]:D,R=e.adDefinitionMobile,M=void 0===R?[]:R,N=(0,i.useMemo)((function(){if(r){var e={content:r};return r.filter((function(t){if(!t)return!1;if("paragraph"===t.type){if(!t.children||0===t.children.length)return!1;if(0===t.children.filter((function(e){return!function(e){return!e.type&&!String(e.text).trim()}(e)})).length)return!1}return!j||j(t,e)}))}return[]}),[r,j]),A=function(e){return s?arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&s[e+"-in-slot"]?s[e+"-in-slot"]:s[e]||{}:{}},F=function(e){var t,r,u,d,E,w,k,O=arguments.length>1&&void 0!==arguments[1]&&arguments[1],x=A(e.type,O),j=x.wrapper||function(e){var t=e.children;return a().createElement(h.Z,null,t)};switch(e.type){case"storybook":var P={element:g(g({},e),{},{attributes:g(g({},e.attributes||{}),{},{isInSlot:O})}),attributes:e.attributes,storybookComponentLoader:v,storybookComponentDataLoader:y};return a().createElement(h.Z,null,a().createElement(j,{type:e.type,block:e.block},a().createElement(c.O,P)));case"layout":var S,Z,L,_,D,T,R,M,N,F,G,q,B,U,V=!0;return Array.isArray(e.children)&&e.children.forEach((function(e){"layout-slot"===e.type&&["grid-auto","grid-fill"].includes(e.attributes.name)&&(V=!1)})),a().createElement(h.Z,null,a().createElement(j,{type:e.type},a().createElement("div",{"data-cols":e.children.length,className:p()("block-editor-layout",(U={"block-editor-layout-grid":V,"block-editor-layout-flex":!V,"block-editor-table-border-wrapper":null==e||null===(S=e.attributes)||void 0===S?void 0:S.tableBorder,"md:grid-cols-1":1===e.children.length,"md:grid-cols-2":2===e.children.length,"md:grid-cols-3":3===e.children.length,"md:grid-cols-4":4===e.children.length,"md:grid-cols-5":5===e.children.length,"grid-cols-1":1===(null==e||null===(Z=e.attributes)||void 0===Z?void 0:Z.mobileColumnSpan),"grid-cols-2":2===(null==e||null===(L=e.attributes)||void 0===L?void 0:L.mobileColumnSpan),"md:space-x-4":null===(_=e.attributes)||void 0===_?void 0:_.spacing,"mt-16":null==e||null===(D=e.attributes)||void 0===D||null===(D=D.margin)||void 0===D?void 0:D.top,"mr-16":null==e||null===(T=e.attributes)||void 0===T||null===(T=T.margin)||void 0===T?void 0:T.right,"mb-16":null==e||null===(R=e.attributes)||void 0===R||null===(R=R.margin)||void 0===R?void 0:R.bottom,"ml-16":null==e||null===(M=e.attributes)||void 0===M||null===(M=M.margin)||void 0===M?void 0:M.left,"justify-center":null==e||null===(N=e.attributes)||void 0===N?void 0:N.justifyCenter},(0,o.Z)(U,x.classNameSite+" site-width",!O&&("site"===(null===(F=e.attributes)||void 0===F?void 0:F.width)||"full"===(null===(G=e.attributes)||void 0===G?void 0:G.width))),(0,o.Z)(U,x.classNameArticle+" article-width",!(O||"article"!==(null===(q=e.attributes)||void 0===q?void 0:q.width)&&null!==(B=e.attributes)&&void 0!==B&&B.width)),U))},e.children.map((function(e,t){return a().createElement(i.Fragment,{key:"layout-pos-"+t},I(e,t,O))})))));case"layout-slot":return a().createElement(h.Z,null,a().createElement(j,{type:e.type},a().createElement("div",{className:p()((E={},(0,o.Z)(E,"block-editor-layout-"+e.attributes.name,!0),(0,o.Z)(E,"mt-4",null===(t=e.attributes)||void 0===t||null===(t=t.margin)||void 0===t?void 0:t.top),(0,o.Z)(E,"md:mr-4",null===(r=e.attributes)||void 0===r||null===(r=r.margin)||void 0===r?void 0:r.right),(0,o.Z)(E,"mb-4",null===(u=e.attributes)||void 0===u||null===(u=u.margin)||void 0===u?void 0:u.bottom),(0,o.Z)(E,"md:ml-4",null===(d=e.attributes)||void 0===d||null===(d=d.margin)||void 0===d?void 0:d.left),E))},a().createElement("div",{style:{top:(null===(w=e.attributes)||void 0===w?void 0:w.sticky)&&"80px"},className:p()({sticky:null===(k=e.attributes)||void 0===k?void 0:k.sticky})},e.children.map((function(t,r){return a().createElement("div",{key:"layout-slot-"+r},I(t,r,e.attributes.name))}))))));default:var W={specialClassMap:f,elementPropsMap:s,element:{attributes:e.attributes||{},align:e.align,type:e.type},attributes:e.htmlAttributes||{},children:e.children.map((function(t,r){return a().createElement(i.Fragment,{key:e.type+"-pos-item-"+r},I(t,r,O))}))};return a().createElement(h.Z,null,a().createElement(l.g,(0,n.Z)({},W,{isInSlot:O,isRenderer:C,transformAttributes:m,defaultComponentReplacement:b})))}};function I(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,i.isValidElement)(e))return e;if("function"==typeof E&&(e=E(e)),!e.children||!e.children.length)return n=e,a().createElement(u.B,{leaf:n,isRenderer:!0,typeProps:A("leaf")},n.text||"");if("paragraph"===(null===(r=e)||void 0===r?void 0:r.type)&&!e.children.find((function(e){return!(null!=e&&e.type)&&(null==e?void 0:e.text)}))){var l=e.children.filter((function(e){return"storybook"===(null==e?void 0:e.type)}));if(1===l.length)return F(l.at(0),o)}return F(e,o)}return function(e){if(!e)return null;var t=d(e,T,M);return t=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!Array.isArray(e))return e;for(var o=[],i=0;i<e.length;i++){var a=e[i],l=null==e?void 0:e[i-1];if(a.type){n[a.type]||(n[a.type]=0);var u="".concat(a.type,"_").concat(n[a.type]);if(O(a,n)){n[a.type]++;var c=null==r?void 0:r[u],s=w(t,u),p=k(a,l,c);s&&"before"===p&&o.push(s),o.push(a),s&&"after"===p&&o.push(s)}else o.push(a)}else o.push(a)}return o}(t,Z,_),a().createElement(a().Fragment,null,!!t&&t.map((function(e,t){return a().createElement(i.Fragment,{key:e.block+"-pos-"+t},I(e,t))})))}(N)}function w(e,t){return(null==e?void 0:e[t])||null}function k(e,t,r){if("inline"===r)return"before";var n="before";return("paragraph"===(null==e?void 0:e.type)&&"heading"===(null==t?void 0:t.type)||function(e){return"paragraph"===(null==e?void 0:e.type)&&(e.children.map((function(e){var t;return(null==e||null===(t=e.text)||void 0===t?void 0:t.length)||0})).reduce((function(e,t){return e+t}),0)||0)<=60}(t))&&(n="after"),n}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!0;if("paragraph"===e.type){var n="paragraph_textlength";t[n]||(t[n]=0);var o=e.children.map((function(e){var t;return(null==e||null===(t=e.text)||void 0===t?void 0:t.length)||0})).reduce((function(e,t){return e+t}),0)||0,i=o<=60;t[n]+=o,(r=!i&&t[n]>=200)&&(t[n]=0)}return r}a().createElement,r(8439)},2779:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},8439:e=>{"use strict";var t=/["'&<>]/;e.exports=function(e){var r,n=""+e,o=t.exec(n);if(!o)return n;var i="",a=0,l=0;for(a=o.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}l!==a&&(i+=n.substring(l,a)),l=a+1,i+=r}return l!==a?i+n.substring(l,a):i}},8156:t=>{"use strict";t.exports=e},7609:(e,t,r)=>{var n=r(7425).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,a=i.hasOwnProperty,l=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",p=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof E?t:E,i=Object.create(o.prototype),a=new T(n||[]);return l(i,"_invoke",{value:Z(e,r,a)}),i}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var v="suspendedStart",y="suspendedYield",h="executing",b="completed",g={};function E(){}function w(){}function k(){}var O={};f(O,c,(function(){return this}));var x=Object.getPrototypeOf,j=x&&x(x(R([])));j&&j!==i&&a.call(j,c)&&(O=j);var P=k.prototype=E.prototype=Object.create(O);function C(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,i,l,u){var c=m(e[o],e,i);if("throw"!==c.type){var s=c.arg,p=s.value;return p&&"object"==n(p)&&a.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,l,u)}),(function(e){r("throw",e,l,u)})):t.resolve(p).then((function(e){s.value=e,l(s)}),(function(e){return r("throw",e,l,u)}))}u(c.arg)}var o;l(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function Z(e,r,n){var o=v;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var u=L(l,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var c=m(e,r,n);if("normal"===c.type){if(o=n.done?b:y,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=b,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=m(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=k,l(P,"constructor",{value:k,configurable:!0}),l(k,"constructor",{value:w,configurable:!0}),w.displayName=f(k,p,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,f(e,p,"GeneratorFunction")),e.prototype=Object.create(P),e},r.awrap=function(e){return{__await:e}},C(S.prototype),f(S.prototype,s,(function(){return this})),r.AsyncIterator=S,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new S(d(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(P),f(P,p,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=R,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(D),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return l.type="throw",l.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,r)=>{var n=r(7609)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},926:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:()=>n})},5987:(e,t,r)=>{"use strict";function n(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function l(e){n(a,o,i,l,u,"next",e)}function u(e){n(a,o,i,l,u,"throw",e)}l(void 0)}))}}r.d(t,{Z:()=>o})},6666:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(5850);function o(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},7896:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:()=>n})},2159:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,{Z:()=>n})},8777:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(926),o=r(9147);function i(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5850:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(6522);function o(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==(0,n.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===(0,n.Z)(t)?t:String(t)}},6522:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:()=>n})},9147:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(926);function o(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(e,t):void 0}}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{StorybookContext:()=>r.G,default:()=>l});var e=n(8156),t=n.n(e),r=n(8703),i=n(2530);function a(e){var r=e.value,n=e.modifyElementFunc,o=e.specialClassMap,a=e.elementPropsMap,l=e.transformAttributes,u=e.storybookComponentLoader,c=e.storybookComponentDataLoader,s=e.filterContent,p=e.fixedPositions,f=e.fixedPositionTypes,d=e.adDefinitionDesktop,m=e.adDefinitionMobile,v=e.defaultComponentReplacement,y=e.onStorybookElementClick;return t().createElement(i.e,{elementPropsMap:a,specialClassMap:o,defaultComponentReplacement:v,transformAttributes:l,value:r,filterContent:s,modifyElementFunc:n,storybookComponentLoader:u,storybookComponentDataLoader:c,fixedPositions:p,fixedPositionTypes:f,adDefinitionDesktop:d,adDefinitionMobile:m,isRenderer:!0,onStorybookElementClick:y})}t().createElement;const l=(0,e.memo)(a)})(),o})()));
|