useblocks 1.3.11-dev.3 → 1.3.14

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.
Files changed (85) hide show
  1. package/README.md +1 -1
  2. package/compat-globals.js +1 -1
  3. package/iframe/.vite/manifest.json +4 -4
  4. package/iframe/css/sandbox-dark.css +1 -1
  5. package/iframe/css/sandbox-light.css +1 -1
  6. package/iframe/css/sandbox.css +47 -17
  7. package/iframe/{iframe-eblock.5751e42b.html → iframe-eblock.cd84d2b9.html} +2 -2
  8. package/iframe/{iframe.5751e42b.html → iframe.cd84d2b9.html} +2 -2
  9. package/iframe/js/elMarkupHelper.CgToMPJX.js +278 -0
  10. package/iframe/js/{iframe-eblock.body.5751e42b.js → iframe-eblock.body.cd84d2b9.js} +1 -1
  11. package/iframe/js/iframe-eblock.js +2 -2
  12. package/iframe/js/{iframe.body.5751e42b.js → iframe.body.cd84d2b9.js} +2 -2
  13. package/iframe/js/iframe.js +2 -2
  14. package/package.json +1 -1
  15. package/runtime/react/index.js +1 -1
  16. package/static/core/{e037a420.js → 18b86617.js} +1 -1
  17. package/static/core/{1c7a6d45.js → 1a17438d.js} +1 -1
  18. package/static/core/{11dadbc0.js → 1c9acdf4.js} +1 -1
  19. package/static/core/{1c06cdb7.js → 1dfb486f.js} +1 -1
  20. package/static/core/{b55ae539.js → 209e2686.js} +1 -1
  21. package/static/core/{71727873.js → 2209544a.js} +1 -1
  22. package/static/core/243ff5f9.js +19 -0
  23. package/static/core/{516f59e7.js → 33588588.js} +1 -1
  24. package/static/core/{66113a18.js → 36ffa6e4.js} +1 -1
  25. package/static/core/{3d8e2478.js → 39d9efa2.js} +1 -1
  26. package/static/core/{c13b3d4f.js → 3a605273.js} +1 -1
  27. package/static/core/{e7e888c1.js → 4224aefb.js} +1 -1
  28. package/static/core/{3b65bc50.js → 4bfd6086.js} +1 -1
  29. package/static/core/{d9d5b376.js → 550803ff.js} +1 -1
  30. package/static/core/{b59c63d2.js → 555c0dda.js} +1 -1
  31. package/static/core/{2bed6a18.js → 5661be7c.js} +1 -1
  32. package/static/core/{bda2d9d5.js → 57948058.js} +1 -1
  33. package/static/core/{ef035f6b.js → 58c51568.js} +1 -1
  34. package/static/core/{3eeb4445.js → 5a21c667.js} +1 -1
  35. package/static/core/{76543cb2.js → 5cac7517.js} +1 -1
  36. package/static/core/{513e36bd.js → 5d315649.js} +1 -1
  37. package/static/core/{62855b97.js → 5f0554d8.js} +1 -1
  38. package/static/core/{347b0a0b.js → 605267a0.js} +1 -1
  39. package/static/core/{aee84e3d.js → 6100ddd2.js} +1 -1
  40. package/static/core/{94f9492b.js → 6c59da82.js} +1 -1
  41. package/static/core/{58dca22f.js → 87edea39.js} +1 -1
  42. package/static/core/{1c3a16fc.js → 8f57829b.js} +1 -1
  43. package/static/core/{8845436d.js → 91d46f38.js} +2 -2
  44. package/static/core/{d2cf6b4b.js → 92fb4e07.js} +1 -1
  45. package/static/core/{467344d4.js → 9d0b4233.js} +1 -1
  46. package/static/core/{dd008ec2.js → a8634edd.js} +1 -1
  47. package/static/core/{261a3a42.js → b4e4af36.js} +1 -1
  48. package/static/core/{c0a3f7d0.js → bff175af.js} +2 -2
  49. package/static/core/{e698ec22.js → c571b1dd.js} +1 -1
  50. package/static/core/{b9f553d7.js → c6114314.js} +1 -1
  51. package/static/core/{f8585ce6.js → ce93456f.js} +1 -1
  52. package/static/core/{f1b8515a.js → d4513bf2.js} +1 -1
  53. package/static/core/{d343e46e.js → de3f9bdc.js} +1 -1
  54. package/static/core/{8406bab5.js → e0282a25.js} +1 -1
  55. package/static/core/{7e329493.js → e35eca7d.js} +1 -1
  56. package/static/core/{11009bdf.js → e37ba502.js} +1 -1
  57. package/static/core/{257745eb.js → f4b9148a.js} +1 -1
  58. package/static/core/{6172f09a.js → f4e70f7f.js} +1 -1
  59. package/static/core/{5da33486.js → f9238279.js} +1 -1
  60. package/static/esm/delivery-libs.js +1 -1
  61. package/static/umd-runtime/{Cvm7BS4_.js → CyULsN57.js} +31 -31
  62. package/static/umd-runtime/DdK5piwW.js +1 -0
  63. package/static/umd-runtime/delivery-libs.BJHA1QD4.js +1 -0
  64. package/static/umd-runtime/runtime.DAdCc3rx.js +1 -0
  65. package/static/umd-runtime/{ui-kit.CoVNet0I.js → ui-kit.BZ4Y4jr2.js} +2 -2
  66. package/{useblocks-core.5751e42b.js → useblocks-core.cd84d2b9.js} +22 -22
  67. package/useblocks-esm.js +12 -12
  68. package/{useblocks-po.5751e42b.js → useblocks-po.cd84d2b9.js} +1 -1
  69. package/useblocks.d.ts +1 -1
  70. package/useblocks.js +12 -12
  71. package/vendor/useblocks-ui-kit/es/components/Custom/FormBackgroundSettings/index.js +3 -3
  72. package/vendor/useblocks-ui-kit/es/components/Custom/FormBorderRadiusInputs/index.js +6 -6
  73. package/vendor/useblocks-ui-kit/es/components/Custom/FormBoxShadowInputs/index.js +5 -5
  74. package/vendor/useblocks-ui-kit/es/components/Custom/FormPanel/FormPaddingInputs/index.js +69 -64
  75. package/vendor/useblocks-ui-kit/es/components/Custom/FormPanel/FormSizeInputs/index.js +5 -5
  76. package/vendor/useblocks-ui-kit/es/components/Custom/FormPanel/FormTypographyFields/index.js +5 -5
  77. package/vendor/useblocks-ui-kit/es/components/Custom/Inputs/DraggableInputNumber/index.js +41 -35
  78. package/vendor/useblocks-ui-kit/es/components/Layout/Splitter/index.js +5 -0
  79. package/vendor/useblocks-ui-kit/index.js +12 -11
  80. package/vendor/useblocks-ui-kit/package.json +1 -1
  81. package/iframe/js/elMarkupHelper.BpDXO-hq.js +0 -279
  82. package/static/core/ed65b5c3.js +0 -19
  83. package/static/umd-runtime/B7h7P1Np.js +0 -1
  84. package/static/umd-runtime/delivery-libs.BymXnePv.js +0 -1
  85. package/static/umd-runtime/runtime.Lgfb59e0.js +0 -1
@@ -1 +1 @@
1
- __useblocks__.define("static/core/d2cf6b4b.js",["require","exports","module","static/core/2ff39ddf.js","static/core/11009bdf.js"],function(e,t,r){const l=e("./2ff39ddf.js");var o={wordwrap:200,tables:!0,selectors:[...e("./11009bdf.js").DEFAULT_OPTIONS.selectors||[],{selector:"table",format:"dataTable"},{selector:"ul",format:"list"},{selector:"ol",format:"list"},{selector:"pre",format:"block"},{selector:"blockquote",format:"blockquote"}],baseElements:{selectors:["body","table"]},preserveNewlines:!1,longWordSplit:{forceWrapOnLimit:!1}};t.EmailTextPlainConvertOptions=o});
1
+ __useblocks__.define("static/core/92fb4e07.js",["require","exports","module","static/core/2ff39ddf.js","static/core/e37ba502.js"],function(e,t,r){const l=e("./2ff39ddf.js");var o={wordwrap:200,tables:!0,selectors:[...e("./e37ba502.js").DEFAULT_OPTIONS.selectors||[],{selector:"table",format:"dataTable"},{selector:"ul",format:"list"},{selector:"ol",format:"list"},{selector:"pre",format:"block"},{selector:"blockquote",format:"blockquote"}],baseElements:{selectors:["body","table"]},preserveNewlines:!1,longWordSplit:{forceWrapOnLimit:!1}};t.EmailTextPlainConvertOptions=o});
@@ -1 +1 @@
1
- __useblocks__.define("static/core/467344d4.js",["require","exports","module","static/core/a42ab03f.js"],function(u,t,m){const r=u("./a42ab03f.js");var n="https://cdn.ampproject.org/v0",i=`${n}.js`,c=`script[src='${i}']`;function a(e){return r.isElement(e)&&(e.tagName.startsWith("AMP")||e.tagName==="FORM"||e.tagName==="TEMPLATE"&&e.getAttribute("type")?.toLowerCase()==="amp-mustache")}function s(e){return r.isScriptElement(e)&&e.src?.startsWith("https://cdn.ampproject.org/v0")}Object.defineProperty(t,"AMP_BASE_SCRIPT",{enumerable:!0,get:function(){return i}}),Object.defineProperty(t,"AMP_BASE_SELECTOR",{enumerable:!0,get:function(){return c}}),Object.defineProperty(t,"AMP_SCRIPTS_PATH",{enumerable:!0,get:function(){return n}}),Object.defineProperty(t,"isAmpElement",{enumerable:!0,get:function(){return a}}),Object.defineProperty(t,"isAmpScript",{enumerable:!0,get:function(){return s}})});
1
+ __useblocks__.define("static/core/9d0b4233.js",["require","exports","module","static/core/74875d47.js"],function(u,t,m){const r=u("./74875d47.js");var n="https://cdn.ampproject.org/v0",i=`${n}.js`,c=`script[src='${i}']`;function a(e){return r.isElement(e)&&(e.tagName.startsWith("AMP")||e.tagName==="FORM"||e.tagName==="TEMPLATE"&&e.getAttribute("type")?.toLowerCase()==="amp-mustache")}function s(e){return r.isScriptElement(e)&&e.src?.startsWith("https://cdn.ampproject.org/v0")}Object.defineProperty(t,"AMP_BASE_SCRIPT",{enumerable:!0,get:function(){return i}}),Object.defineProperty(t,"AMP_BASE_SELECTOR",{enumerable:!0,get:function(){return c}}),Object.defineProperty(t,"AMP_SCRIPTS_PATH",{enumerable:!0,get:function(){return n}}),Object.defineProperty(t,"isAmpElement",{enumerable:!0,get:function(){return a}}),Object.defineProperty(t,"isAmpScript",{enumerable:!0,get:function(){return s}})});
@@ -1,2 +1,2 @@
1
1
  (function(){try{if(typeof document<"u"){var o=".blocks-app .block-page-header__dropdown-menu{top:10px}.blocks-app .anticon.anticon-edit.block-page-header__icon-edit{color:#8c8c8c;margin-left:6px;font-size:16px}.blocks-app .ant-typography-edit:hover .anticon.anticon-edit.block-page-header__icon-edit{color:var(--ub-colorPrimaryHover)}.blocks-app .ant-page-header.block-page-header{margin-bottom:20px;padding-left:0;padding-right:0}@media (width<=1450px){.blocks-app .ant-page-header.block-page-header{padding-left:12px;padding-right:12px}}.blocks-app .block-page-header .ant-page-header-heading-left{flex-grow:1;overflow:visible}.blocks-app .block-page-header .ant-page-header-back{align-self:flex-start;margin-left:12px;margin-right:0;padding-top:12px}.blocks-app .block-page-header .ant-page-header-heading-title{white-space:pre-wrap;flex-grow:1;font-weight:500;overflow:visible}.blocks-app .block-page-header .ant-typography{margin-bottom:0;padding:4px 12px}.blocks-app .block-page-header .ant-typography-edit-content{margin-top:0;padding:0;left:auto}.blocks-app .block-page-header .ant-input{font-size:inherit;font-weight:inherit}.blocks-app .block-page-header .ant-page-header-heading-extra>*{margin-left:8px}.blocks-app .block-page-header .ant-btn.block-page-header__btn_extra,.blocks-app header .ant-btn.block-page-header__btn_extra{width:32px;padding:0}.blocks-app .block-page__row{margin-bottom:60px}@media (width>=1700px){.blocks-app .block-page__row{margin-right:-60px}}",e=window.__useblocks_styles__||(window.__useblocks_styles__={sheets:{},order:[]}),n=o;if(!e.sheets[n]){var a=null;try{typeof CSSStyleSheet=="function"&&"replaceSync"in CSSStyleSheet.prototype&&(a=new CSSStyleSheet,a.replaceSync(o))}catch{a=null}if(a){if(!e.host||!e.host.isConnected||!e.host.sheet){var t=document.createElement("style");t.setAttribute("data-useblocks","true"),document.head.appendChild(t),e.host=t}for(var c=e.host.sheet,l=0;l<a.cssRules.length;l++)try{c.insertRule(a.cssRules[l].cssText,c.cssRules.length)}catch{}(e.texts||(e.texts=[])).push(o),(e.listeners||[]).forEach(function(p){try{p(o)}catch{}})}else{var t=document.createElement("style");t.setAttribute("data-useblocks","true"),t.appendChild(document.createTextNode(o)),document.head.appendChild(t)}e.sheets[n]=!0,e.order.push(n)}}}catch(p){console.error("vite-plugin-css-injected-by-js",p)}})();
2
- __useblocks__.define("static/core/dd008ec2.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js","static/core/a42ab03f.js","static/core/d55483bf.js","static/core/347b0a0b.js","react","react/jsx-runtime","__delivery__/libs","classnames"],function(h,re,he){const te=h("./2ff39ddf.js"),X=h("./cf7d1dd7.js"),e=h("./a42ab03f.js"),z=h("./d55483bf.js"),le=h("./347b0a0b.js");let n=h("react");n=te.__toESM(n);let o=h("react/jsx-runtime"),r=h("__delivery__/libs"),Z=h("classnames");Z=te.__toESM(Z);var oe={fontSize:"16px"},ae={color:"#ff4d4f"},se=({block:t,autoSaveBlockResult:d})=>{const{__:s,_x:c}=e.useI18n();let E=e.useDispatch();const l=e.useEmailAttributesWriter(),g=e.useAppNavigate(),a=e.useCurrentUser(),{modal:p}=r.ui_kit$App.useApp(),f=e.useNotification(),{confirm:b}=p,{token:$}=(0,r.ui_kit$useToken)(),W=e.useAppConfig(),M=e.useContainer(),y=e.usePluginMenuItems("menu:document"),S=e.usePluginItems("toolbar"),j=(0,n.useMemo)(()=>e.filterPluginItems(S,"collaboration"),[S]),K=(0,n.useMemo)(()=>e.filterPluginItems(S,e.TOOLBAR_GROUPS_BEFORE_SAVE),[S]),O=e.usePluginMenuItems("menu:save"),w=j.length>0,Q=K.length>0,k=O.length>0,R=()=>{e.leaveBlock(M)},H=e.useSelector(e.selectCodeModeDirection),J=t.hasOwnProperty("type")?e.BLOCK:e.EMAIL,U=e.useSelector(e.selectElementSettings$1),I=e.useSelector(e.selectElementSettings),P=J==="email"?U:I,A=e.useSelector(e.selectIsCodeMode),q=()=>(P?.type===e.ELEMENT_TYPES.TEXT||P?.type===e.ELEMENT_TYPES.LINK||P.type===e.ELEMENT_TYPES.BUTTON)&&A&&H!=="bottom",v=e.useProjectData(),F=e.isAuthoredByMe(t.author,a,v?.members),{owner:x,admin:T}=e.useMyRoles(),G=e.useStore(),V=(u,ee)=>G.dispatch(e.blocksApi.endpoints.deleteBlock.initiate(u.id)).then(ce=>{if(ce.error){f.fromError("BLOCK_REMOVING_ERROR",e.getBlockDesc(u),ce.error);return}R(),ee(`/projects/${v?.id??u.project}/blocks`),f.success({id:"BLOCK_REMOVING_SUCCESS",title:s("The block “")+u.title+c("” was successfully removed.","block"),data:e.getBlockDesc(u)})}),i=(u,ee)=>{b({mask:{closable:!0},centered:!0,title:c("Are you sure you want to delete the “","block")+u.title+s("” block?"),icon:(0,o.jsx)(e.EmIcons,{icon:"DeleteOutlined",component:r.icons$DeleteOutlined,size:22,style:{color:r.ui_kit$iconColors.danger,marginInlineEnd:12,flexShrink:0}}),okText:s("Yes"),cancelText:s("No"),onOk:()=>V(u,ee)})},m=()=>{R(),g(`/projects/${v.id}/blocks`)},_=u=>{l({title:u})},[B,C]=e.useAddBlockMutation(),Y=e.useContentReader(),D=()=>{t.isNew?t.isNew?f.warning({id:"COPY_NOT_SAVED",payload:t,title:s("To create a copy, you need to save the block.")}):B({title:e.generateCopyTitle(t.title),blocktags:t.blocktags,project:v.id,subject:t.subject,description:t.description,html:e.stripEmBlockMark(Y()),type:t.type?t.type:"Other"}).then(u=>{if(u.error||E(e.limitsApi.util.invalidateTags(["LimitsStats","LimitsWarnings"])),u.error){f.error({id:"BLOCK_CLONING_ERROR",data:e.getBlockDesc(t),innerException:u.error,title:u.error.data.code,description:u.error.data.message});return}g(`/projects/${v.id}/blocks/${u.data.id}`),f.success({id:"BLOCK_CLONING_SUCCESS",data:e.getBlockDesc(t),title:s("The copy of block “")+t.title+c("” was successfully created.","block")})}):e.getEmitter(M,X.events.ON_BLOCK_CLONE_ID).fire(t)},L=()=>{t.isNew?(R(),g(`/projects/${v.id}/blocks`),f.success({id:"BLOCK_REMOVING_SUCCESS",title:s("The draft of the block has been deleted."),data:e.getBlockDesc(t)})):i(t,g)};let N=[];N.push({label:s("Clone"),icon:(0,o.jsx)(e.EmIcons,{icon:"CopyOutlined",component:r.icons$CopyOutlined,size:16}),key:"Clone",className:"em-analytics__block-clone",disabled:C.isLoading,onClick:D}),N.push(...e.menuGroup(y,"document"),...e.menuGroup(y,"plugins"));const ie=x||T||F;ie&&N.push({label:(0,o.jsx)(e.SwitchLockBtn,{element:t},"Lock"),icon:t.lock?(0,o.jsx)(e.EmIcons,{icon:"UnlockOutlined",component:r.icons$UnlockOutlined,style:oe}):(0,o.jsx)(e.EmIcons,{icon:"LockOutlined",component:r.icons$LockOutlined,style:oe}),disabled:!!t.isNew}),N.push(...e.menuGroup(y,"access")),ie&&N.push({label:s("Remove"),icon:(0,o.jsx)(e.EmIcons,{icon:"DeleteOutlined",component:r.icons$DeleteOutlined,size:16}),key:"Remove",className:"em-analytics__block-remove",onClick:L,style:ae}),N.push(...e.menuGroup(y,"danger")),e.useSetTitle(t.title===null?s("New block title"):t.title);const Ee=(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(r.ui_kit$Space,{size:10,children:[W.headerArrowBackVisible&&(0,o.jsx)(r.ui_kit$Tooltip,{title:s("Back"),placement:"left",children:(0,o.jsx)(r.ui_kit$Button,{type:"text",icon:(0,o.jsx)(e.EmIcons,{icon:"ArrowLeftOutlined",component:r.icons$ArrowLeftOutlined}),onClick:m,shape:"circle"})}),(0,o.jsx)(r.ui_kit$Paragraph,{className:"ant-page-header-heading-title",editable:{triggerType:["text","icon"],icon:(0,o.jsx)(e.EmIcons,{icon:"EditOutlined",component:r.icons$EditOutlined,className:"email-page-header__icon-edit"}),onChange:_},children:t.title===null?s("New block title"):t.title})]})}),_e=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(z.EmailPreviewMenu,{emailElement:t}),t.lock?(0,o.jsx)(e.EmIcons,{icon:"LockOutlined",component:r.icons$LockOutlined,className:(0,Z.default)("lock-icon",{"lock-icon__disabled":!(x||T||F)}),style:{color:$.colorPrimary,fontSize:"16px"}},"Lock"):null,w&&(0,o.jsx)(e.PluginButtons,{items:j}),(0,o.jsx)(r.ui_kit$Dropdown,{arrow:"true",menu:{items:N},children:(0,o.jsx)(r.ui_kit$Button,{className:"block-page-header__btn block-page-header__btn_extra",onClick:()=>{},children:(0,o.jsx)(e.EmIcons,{icon:"EllipsisOutlined",component:r.icons$EllipsisOutlined})})},"Actions"),Q&&(0,o.jsx)(e.PluginButtons,{items:K}),(0,o.jsx)(le.SaveBlockBtn,{className:"em-analytics__block-save",block:t,isEditableRights:x||T||F,autoSaveBlockResult:d,ownsDocument:!0},"Save"),k&&(0,o.jsx)(e.PluginSaveMore,{items:O})]}),ye=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(z.EmailPreviewMenu,{emailElement:t}),w&&(0,o.jsx)(e.PluginButtons,{items:j}),y.length>0&&(0,o.jsx)(e.PluginMenuButton,{location:"menu:document",items:y,className:"block-page-header__btn block-page-header__btn_extra"}),Q&&(0,o.jsx)(e.PluginButtons,{items:K}),k&&(0,o.jsx)(e.PluginSaveMore,{items:O})]}),ve=W.commandButtonsEnabled?_e:ye;return(0,o.jsx)(e.Header,{leftBlock:Ee,rightBlock:ve,className:"header_blocks",isHeaderCodeMenuOpen:q()})};se.propTypes={};function ne(t=document){const d=t.getElementById("email_iframe_slot");return{slot:d,area:d?.closest("[data-scroll-area]")??null}}function de(t){if(t)return t.renderGuid??(t.id!=null?String(t.id):void 0)}function ue(t,d={}){const s=e.useStore(),c=d.key??de(t),E=d.recovery===!0,l=(0,n.useMemo)(()=>{if(c===void 0)return;const p=e.getEmailDocuments(X.getContainer(s));return E?t?.id!=null?p.open(String(t.id),{email:t}):p.openDraft(t):p.openBlock(c,t)},[c,s,E]),g=t?.modified,a=t?.lock;return(0,n.useEffect)(()=>{e.writeSourceReport(l,e.fromServerFacts({modified:g,lock:a}))},[l,g,a]),l}function me(){const t=e.useContainer(),d=e.useNotification(),{__:s}=e.useI18n(),c=(0,n.useRef)(void 0),E=(0,n.useRef)(0);(0,n.useEffect)(()=>{const l=e.getOpenEmailDocuments(t??void 0);if(l)return l.subscribe(()=>{const{error:g,failures:a,failedIntent:p}=l.saveState(),f=a>E.current;if(E.current=a,a===0||!e.isLockedBlockRefusal(g)){c.current=void 0;return}const b=l.current()?.get(),$=b?.savedVersion??null;!f||p!=="snapshot"||c.current?.saved===$||(c.current={saved:$},d.error({id:"BLOCK_ACCESS_TO_LOCKED_ERROR",title:s("No access to edit the block."),data:e.getBlockDesc({id:b?.serverId??void 0,title:b?.attributes.title})}))})},[t,d,s])}var ge={status:0,data:{code:"timeout",message:"request timed out"}};function pe(t,d){const s=d?void 0:t,c=(0,n.useMemo)(()=>({key:s,inFlight:s!==void 0&&e.isBlockAutosaveInFlight(s)}),[s]),[E,l]=(0,n.useState)(void 0),g=E?.opening===c?E.settled:void 0,a=c.inFlight&&g===void 0;(0,n.useEffect)(()=>a&&c.key!==void 0?e.whenBlockAutosaveSettledWithin(c.key,e.getSaveTimeoutMs(),f=>l({opening:c,settled:f})):void 0,[a,c]);const p=e.useGetBlockQuery(t,{skip:d||a});return a?{...p,data:void 0,isSuccess:!1,isLoading:!0}:g===!1?{...p,data:void 0,isSuccess:!1,isLoading:!1,isError:!0,error:ge}:p}var{Content:Se}=r.ui_kit$Layout,fe=({session:t})=>{const{__:d}=e.useI18n(),s=e.useSendPostMessage(),{blockId:c,projectId:E}=e.useRouteParams();me();const l=e.useDispatch();e.useAppNavigate();const g=e.useCookieManager();e.useSelector(e.selectMonacoFocusing),e.useSelector(e.selectIsPanelHistoryCollapsed),e.useAppConfig();const a=g.get(e.APP_COOKIES.em_new_block),{isSuccess:p,data:f}=e.useGetBlockQuery(+a,{skip:!!t||!a}),[b,$]=(0,n.useState)(!1),{isLoading:W,isSuccess:M,isError:y,error:S,data:j}=pe(c,!!t||!c);(0,n.useEffect)(()=>{y&&S&&e.reportEntityLoadError("block",c,S)},[y,S,c]);const K=a?p:M,O=M&&j?.id?j:p&&f,w=t?t.block:O,Q=ue(t?void 0:O||void 0,{key:!t&&O?.id!=null?e.blockSessionKey(O.id):void 0}),k=t?t.document:Q,R=e.useDocumentAttributes(k),H=(0,n.useMemo)(()=>k?e.resolveOpenEmail({attributes:R,readContent:()=>k.getContent(),docId:k.get().docId,hasSession:!0,serverId:k.get().serverId,show:void 0}):w,[R,k,w]),J=e.useStore(),U=e.getEmailDocuments(X.getContainer(J)).history();e.usePublishDocumentSession(k,U);const I=e.useUserUndo({document:k,history:U}),P=(0,n.useCallback)(()=>{I.undo()},[I]),A=(0,n.useCallback)(()=>{I.redo()},[I]),q=(0,n.useCallback)(()=>I.clear(),[I]);e.useEditorUiReset(k?.get().docId,q);const v=(0,n.useCallback)(i=>{(window.navigator.appVersion.indexOf("Mac")&&i.metaKey||i.ctrlKey)&&(i.code==="KeyZ"?(i.preventDefault(),i.shiftKey?A():P()):i.code==="KeyY"&&!i.shiftKey&&(i.preventDefault(),A()))},[P,A]);(0,n.useEffect)(()=>(document.body.classList.add("editor"),()=>{l(e.resetPanes()),l(e.closeModal$1()),l(e.resetElementHistorySlice()),l(e.setActiveSettingsTab(e.BUILD))}),[l]);const F=i=>{const m=i.data.operation,_=i.data.action,B=document.getElementById("iframe-scroll-top"),C=document.getElementById("iframe-scroll-bottom");if(m===e.EVENT_TYPES.APPLICATION_ACTION&&(_==="undo"?P():_==="redo"&&A()),m===e.EVENT_TYPES.APPLICATION_SCROLL_BLOCK_SHOW){const{slot:Y}=ne(),D=document.body.getBoundingClientRect().height,L=Y?.getClientRects()[0];if(!L||!B||!C)return;L.top<0&&(B.style.display="block"),L.top+L.height>D&&(C.style.display="block")}m===e.EVENT_TYPES.APPLICATION_SCROLL_BLOCK_HIDE&&B&&C&&(B.style.display="none",C.style.display="none")};e.useListenPostMessage(F);const x=(0,n.useCallback)(i=>{i.target?.closest?.(".file-manager, .ant-modal.file-manager")||(i.preventDefault(),i.target&&s({operation:e.EVENT_TYPES.SANDBOX_DRAG_CANCEL}))},[s]),T=(0,n.useCallback)(()=>{},[]),G=(0,n.useCallback)(i=>{if(i.preventDefault(),i.target?.closest?.(".file-manager, .ant-modal.file-manager"))return;const m=document.getElementById("iframe-scroll-top"),_=document.getElementById("iframe-scroll-bottom"),{slot:B,area:C}=ne();if(!B||!m||!_)return;const{height:Y,top:D}=B.getBoundingClientRect(),L=document.body.getBoundingClientRect().height;D>1?m.style.display==="block"&&(m.style.display="none"):m.style.display==="none"&&(m.style.display="block"),Y-L+D<1?_.style.display==="block"&&(_.style.display="none"):_.style.display==="none"&&(_.style.display="block"),i.target===m&&C?.scrollBy(0,-20),i.target===_&&C?.scrollBy(0,20)},[]),V=(0,n.useCallback)(()=>{const i=document.getElementById("iframe-scroll-top"),m=document.getElementById("iframe-scroll-bottom");i&&m&&(i.style.display="none",m.style.display="none")},[]);return(0,n.useEffect)(()=>(window.addEventListener("dragstart",T),window.addEventListener("drop",x),window.addEventListener("dragend",V),window.addEventListener("dragover",G),window.addEventListener("keydown",v),()=>{window.removeEventListener("dragstart",T),window.removeEventListener("drop",x),window.removeEventListener("dragover",G),window.removeEventListener("dragend",V),window.removeEventListener("keydown",v)}),[v,T,x,V,G]),(0,o.jsx)(e.DocumentSessionProvider,{document:k,history:U,children:(0,o.jsxs)(r.ui_kit$Layout,{className:"block-page",children:[w&&(0,o.jsx)(se,{block:H}),W&&(0,o.jsx)(r.ui_kit$PageLoader,{}),y&&S&&!1,t?w&&(0,o.jsx)(z.EmailPane_default,{emailElement:H,kind:"block",isSuccess:!0}):(!c&&(a?b&&f:!0)||M&&j)&&(0,o.jsx)(z.EmailPane_default,{emailElement:H,kind:"block",isSuccess:K})]})})},ke=()=>{const{document:t,email:d}=e.useOpenEmail(),s=(0,n.useMemo)(()=>({document:t,block:d}),[t,d]);return(0,o.jsx)(fe,{session:s})};re.default=ke});
2
+ __useblocks__.define("static/core/a8634edd.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js","static/core/74875d47.js","static/core/865417ab.js","static/core/605267a0.js","react","react/jsx-runtime","__delivery__/libs","classnames"],function(h,re,he){const te=h("./2ff39ddf.js"),X=h("./cf7d1dd7.js"),e=h("./74875d47.js"),z=h("./865417ab.js"),le=h("./605267a0.js");let n=h("react");n=te.__toESM(n);let o=h("react/jsx-runtime"),r=h("__delivery__/libs"),Z=h("classnames");Z=te.__toESM(Z);var oe={fontSize:"16px"},ae={color:"#ff4d4f"},se=({block:t,autoSaveBlockResult:d})=>{const{__:s,_x:c}=e.useI18n();let E=e.useDispatch();const l=e.useEmailAttributesWriter(),g=e.useAppNavigate(),a=e.useCurrentUser(),{modal:p}=r.ui_kit$App.useApp(),f=e.useNotification(),{confirm:b}=p,{token:$}=(0,r.ui_kit$useToken)(),W=e.useAppConfig(),M=e.useContainer(),y=e.usePluginMenuItems("menu:document"),S=e.usePluginItems("toolbar"),j=(0,n.useMemo)(()=>e.filterPluginItems(S,"collaboration"),[S]),K=(0,n.useMemo)(()=>e.filterPluginItems(S,e.TOOLBAR_GROUPS_BEFORE_SAVE),[S]),O=e.usePluginMenuItems("menu:save"),w=j.length>0,Q=K.length>0,k=O.length>0,R=()=>{e.leaveBlock(M)},H=e.useSelector(e.selectCodeModeDirection),J=t.hasOwnProperty("type")?e.BLOCK:e.EMAIL,U=e.useSelector(e.selectElementSettings$1),I=e.useSelector(e.selectElementSettings),P=J==="email"?U:I,A=e.useSelector(e.selectIsCodeMode),q=()=>(P?.type===e.ELEMENT_TYPES.TEXT||P?.type===e.ELEMENT_TYPES.LINK||P.type===e.ELEMENT_TYPES.BUTTON)&&A&&H!=="bottom",v=e.useProjectData(),F=e.isAuthoredByMe(t.author,a,v?.members),{owner:x,admin:T}=e.useMyRoles(),G=e.useStore(),V=(u,ee)=>G.dispatch(e.blocksApi.endpoints.deleteBlock.initiate(u.id)).then(ce=>{if(ce.error){f.fromError("BLOCK_REMOVING_ERROR",e.getBlockDesc(u),ce.error);return}R(),ee(`/projects/${v?.id??u.project}/blocks`),f.success({id:"BLOCK_REMOVING_SUCCESS",title:s("The block “")+u.title+c("” was successfully removed.","block"),data:e.getBlockDesc(u)})}),i=(u,ee)=>{b({mask:{closable:!0},centered:!0,title:c("Are you sure you want to delete the “","block")+u.title+s("” block?"),icon:(0,o.jsx)(e.EmIcons,{icon:"DeleteOutlined",component:r.icons$DeleteOutlined,size:22,style:{color:r.ui_kit$iconColors.danger,marginInlineEnd:12,flexShrink:0}}),okText:s("Yes"),cancelText:s("No"),onOk:()=>V(u,ee)})},m=()=>{R(),g(`/projects/${v.id}/blocks`)},_=u=>{l({title:u})},[B,C]=e.useAddBlockMutation(),Y=e.useContentReader(),D=()=>{t.isNew?t.isNew?f.warning({id:"COPY_NOT_SAVED",payload:t,title:s("To create a copy, you need to save the block.")}):B({title:e.generateCopyTitle(t.title),blocktags:t.blocktags,project:v.id,subject:t.subject,description:t.description,html:e.stripEmBlockMark(Y()),type:t.type?t.type:"Other"}).then(u=>{if(u.error||E(e.limitsApi.util.invalidateTags(["LimitsStats","LimitsWarnings"])),u.error){f.error({id:"BLOCK_CLONING_ERROR",data:e.getBlockDesc(t),innerException:u.error,title:u.error.data.code,description:u.error.data.message});return}g(`/projects/${v.id}/blocks/${u.data.id}`),f.success({id:"BLOCK_CLONING_SUCCESS",data:e.getBlockDesc(t),title:s("The copy of block “")+t.title+c("” was successfully created.","block")})}):e.getEmitter(M,X.events.ON_BLOCK_CLONE_ID).fire(t)},L=()=>{t.isNew?(R(),g(`/projects/${v.id}/blocks`),f.success({id:"BLOCK_REMOVING_SUCCESS",title:s("The draft of the block has been deleted."),data:e.getBlockDesc(t)})):i(t,g)};let N=[];N.push({label:s("Clone"),icon:(0,o.jsx)(e.EmIcons,{icon:"CopyOutlined",component:r.icons$CopyOutlined,size:16}),key:"Clone",className:"em-analytics__block-clone",disabled:C.isLoading,onClick:D}),N.push(...e.menuGroup(y,"document"),...e.menuGroup(y,"plugins"));const ie=x||T||F;ie&&N.push({label:(0,o.jsx)(e.SwitchLockBtn,{element:t},"Lock"),icon:t.lock?(0,o.jsx)(e.EmIcons,{icon:"UnlockOutlined",component:r.icons$UnlockOutlined,style:oe}):(0,o.jsx)(e.EmIcons,{icon:"LockOutlined",component:r.icons$LockOutlined,style:oe}),disabled:!!t.isNew}),N.push(...e.menuGroup(y,"access")),ie&&N.push({label:s("Remove"),icon:(0,o.jsx)(e.EmIcons,{icon:"DeleteOutlined",component:r.icons$DeleteOutlined,size:16}),key:"Remove",className:"em-analytics__block-remove",onClick:L,style:ae}),N.push(...e.menuGroup(y,"danger")),e.useSetTitle(t.title===null?s("New block title"):t.title);const Ee=(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(r.ui_kit$Space,{size:10,children:[W.headerArrowBackVisible&&(0,o.jsx)(r.ui_kit$Tooltip,{title:s("Back"),placement:"left",children:(0,o.jsx)(r.ui_kit$Button,{type:"text",icon:(0,o.jsx)(e.EmIcons,{icon:"ArrowLeftOutlined",component:r.icons$ArrowLeftOutlined}),onClick:m,shape:"circle"})}),(0,o.jsx)(r.ui_kit$Paragraph,{className:"ant-page-header-heading-title",editable:{triggerType:["text","icon"],icon:(0,o.jsx)(e.EmIcons,{icon:"EditOutlined",component:r.icons$EditOutlined,className:"email-page-header__icon-edit"}),onChange:_},children:t.title===null?s("New block title"):t.title})]})}),_e=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(z.EmailPreviewMenu,{emailElement:t}),t.lock?(0,o.jsx)(e.EmIcons,{icon:"LockOutlined",component:r.icons$LockOutlined,className:(0,Z.default)("lock-icon",{"lock-icon__disabled":!(x||T||F)}),style:{color:$.colorPrimary,fontSize:"16px"}},"Lock"):null,w&&(0,o.jsx)(e.PluginButtons,{items:j}),(0,o.jsx)(r.ui_kit$Dropdown,{arrow:"true",menu:{items:N},children:(0,o.jsx)(r.ui_kit$Button,{className:"block-page-header__btn block-page-header__btn_extra",onClick:()=>{},children:(0,o.jsx)(e.EmIcons,{icon:"EllipsisOutlined",component:r.icons$EllipsisOutlined})})},"Actions"),Q&&(0,o.jsx)(e.PluginButtons,{items:K}),(0,o.jsx)(le.SaveBlockBtn,{className:"em-analytics__block-save",block:t,isEditableRights:x||T||F,autoSaveBlockResult:d,ownsDocument:!0},"Save"),k&&(0,o.jsx)(e.PluginSaveMore,{items:O})]}),ye=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(z.EmailPreviewMenu,{emailElement:t}),w&&(0,o.jsx)(e.PluginButtons,{items:j}),y.length>0&&(0,o.jsx)(e.PluginMenuButton,{location:"menu:document",items:y,className:"block-page-header__btn block-page-header__btn_extra"}),Q&&(0,o.jsx)(e.PluginButtons,{items:K}),k&&(0,o.jsx)(e.PluginSaveMore,{items:O})]}),ve=W.commandButtonsEnabled?_e:ye;return(0,o.jsx)(e.Header,{leftBlock:Ee,rightBlock:ve,className:"header_blocks",isHeaderCodeMenuOpen:q()})};se.propTypes={};function ne(t=document){const d=t.getElementById("email_iframe_slot");return{slot:d,area:d?.closest("[data-scroll-area]")??null}}function de(t){if(t)return t.renderGuid??(t.id!=null?String(t.id):void 0)}function ue(t,d={}){const s=e.useStore(),c=d.key??de(t),E=d.recovery===!0,l=(0,n.useMemo)(()=>{if(c===void 0)return;const p=e.getEmailDocuments(X.getContainer(s));return E?t?.id!=null?p.open(String(t.id),{email:t}):p.openDraft(t):p.openBlock(c,t)},[c,s,E]),g=t?.modified,a=t?.lock;return(0,n.useEffect)(()=>{e.writeSourceReport(l,e.fromServerFacts({modified:g,lock:a}))},[l,g,a]),l}function me(){const t=e.useContainer(),d=e.useNotification(),{__:s}=e.useI18n(),c=(0,n.useRef)(void 0),E=(0,n.useRef)(0);(0,n.useEffect)(()=>{const l=e.getOpenEmailDocuments(t??void 0);if(l)return l.subscribe(()=>{const{error:g,failures:a,failedIntent:p}=l.saveState(),f=a>E.current;if(E.current=a,a===0||!e.isLockedBlockRefusal(g)){c.current=void 0;return}const b=l.current()?.get(),$=b?.savedVersion??null;!f||p!=="snapshot"||c.current?.saved===$||(c.current={saved:$},d.error({id:"BLOCK_ACCESS_TO_LOCKED_ERROR",title:s("No access to edit the block."),data:e.getBlockDesc({id:b?.serverId??void 0,title:b?.attributes.title})}))})},[t,d,s])}var ge={status:0,data:{code:"timeout",message:"request timed out"}};function pe(t,d){const s=d?void 0:t,c=(0,n.useMemo)(()=>({key:s,inFlight:s!==void 0&&e.isBlockAutosaveInFlight(s)}),[s]),[E,l]=(0,n.useState)(void 0),g=E?.opening===c?E.settled:void 0,a=c.inFlight&&g===void 0;(0,n.useEffect)(()=>a&&c.key!==void 0?e.whenBlockAutosaveSettledWithin(c.key,e.getSaveTimeoutMs(),f=>l({opening:c,settled:f})):void 0,[a,c]);const p=e.useGetBlockQuery(t,{skip:d||a});return a?{...p,data:void 0,isSuccess:!1,isLoading:!0}:g===!1?{...p,data:void 0,isSuccess:!1,isLoading:!1,isError:!0,error:ge}:p}var{Content:Se}=r.ui_kit$Layout,fe=({session:t})=>{const{__:d}=e.useI18n(),s=e.useSendPostMessage(),{blockId:c,projectId:E}=e.useRouteParams();me();const l=e.useDispatch();e.useAppNavigate();const g=e.useCookieManager();e.useSelector(e.selectMonacoFocusing),e.useSelector(e.selectIsPanelHistoryCollapsed),e.useAppConfig();const a=g.get(e.APP_COOKIES.em_new_block),{isSuccess:p,data:f}=e.useGetBlockQuery(+a,{skip:!!t||!a}),[b,$]=(0,n.useState)(!1),{isLoading:W,isSuccess:M,isError:y,error:S,data:j}=pe(c,!!t||!c);(0,n.useEffect)(()=>{y&&S&&e.reportEntityLoadError("block",c,S)},[y,S,c]);const K=a?p:M,O=M&&j?.id?j:p&&f,w=t?t.block:O,Q=ue(t?void 0:O||void 0,{key:!t&&O?.id!=null?e.blockSessionKey(O.id):void 0}),k=t?t.document:Q,R=e.useDocumentAttributes(k),H=(0,n.useMemo)(()=>k?e.resolveOpenEmail({attributes:R,readContent:()=>k.getContent(),docId:k.get().docId,hasSession:!0,serverId:k.get().serverId,show:void 0}):w,[R,k,w]),J=e.useStore(),U=e.getEmailDocuments(X.getContainer(J)).history();e.usePublishDocumentSession(k,U);const I=e.useUserUndo({document:k,history:U}),P=(0,n.useCallback)(()=>{I.undo()},[I]),A=(0,n.useCallback)(()=>{I.redo()},[I]),q=(0,n.useCallback)(()=>I.clear(),[I]);e.useEditorUiReset(k?.get().docId,q);const v=(0,n.useCallback)(i=>{(window.navigator.appVersion.indexOf("Mac")&&i.metaKey||i.ctrlKey)&&(i.code==="KeyZ"?(i.preventDefault(),i.shiftKey?A():P()):i.code==="KeyY"&&!i.shiftKey&&(i.preventDefault(),A()))},[P,A]);(0,n.useEffect)(()=>(document.body.classList.add("editor"),()=>{l(e.resetPanes()),l(e.closeModal$1()),l(e.resetElementHistorySlice()),l(e.setActiveSettingsTab(e.BUILD))}),[l]);const F=i=>{const m=i.data.operation,_=i.data.action,B=document.getElementById("iframe-scroll-top"),C=document.getElementById("iframe-scroll-bottom");if(m===e.EVENT_TYPES.APPLICATION_ACTION&&(_==="undo"?P():_==="redo"&&A()),m===e.EVENT_TYPES.APPLICATION_SCROLL_BLOCK_SHOW){const{slot:Y}=ne(),D=document.body.getBoundingClientRect().height,L=Y?.getClientRects()[0];if(!L||!B||!C)return;L.top<0&&(B.style.display="block"),L.top+L.height>D&&(C.style.display="block")}m===e.EVENT_TYPES.APPLICATION_SCROLL_BLOCK_HIDE&&B&&C&&(B.style.display="none",C.style.display="none")};e.useListenPostMessage(F);const x=(0,n.useCallback)(i=>{i.target?.closest?.(".file-manager, .ant-modal.file-manager")||(i.preventDefault(),i.target&&s({operation:e.EVENT_TYPES.SANDBOX_DRAG_CANCEL}))},[s]),T=(0,n.useCallback)(()=>{},[]),G=(0,n.useCallback)(i=>{if(i.preventDefault(),i.target?.closest?.(".file-manager, .ant-modal.file-manager"))return;const m=document.getElementById("iframe-scroll-top"),_=document.getElementById("iframe-scroll-bottom"),{slot:B,area:C}=ne();if(!B||!m||!_)return;const{height:Y,top:D}=B.getBoundingClientRect(),L=document.body.getBoundingClientRect().height;D>1?m.style.display==="block"&&(m.style.display="none"):m.style.display==="none"&&(m.style.display="block"),Y-L+D<1?_.style.display==="block"&&(_.style.display="none"):_.style.display==="none"&&(_.style.display="block"),i.target===m&&C?.scrollBy(0,-20),i.target===_&&C?.scrollBy(0,20)},[]),V=(0,n.useCallback)(()=>{const i=document.getElementById("iframe-scroll-top"),m=document.getElementById("iframe-scroll-bottom");i&&m&&(i.style.display="none",m.style.display="none")},[]);return(0,n.useEffect)(()=>(window.addEventListener("dragstart",T),window.addEventListener("drop",x),window.addEventListener("dragend",V),window.addEventListener("dragover",G),window.addEventListener("keydown",v),()=>{window.removeEventListener("dragstart",T),window.removeEventListener("drop",x),window.removeEventListener("dragover",G),window.removeEventListener("dragend",V),window.removeEventListener("keydown",v)}),[v,T,x,V,G]),(0,o.jsx)(e.DocumentSessionProvider,{document:k,history:U,children:(0,o.jsxs)(r.ui_kit$Layout,{className:"block-page",children:[w&&(0,o.jsx)(se,{block:H}),W&&(0,o.jsx)(r.ui_kit$PageLoader,{}),y&&S&&!1,t?w&&(0,o.jsx)(z.EmailPane_default,{emailElement:H,kind:"block",isSuccess:!0}):(!c&&(a?b&&f:!0)||M&&j)&&(0,o.jsx)(z.EmailPane_default,{emailElement:H,kind:"block",isSuccess:K})]})})},ke=()=>{const{document:t,email:d}=e.useOpenEmail(),s=(0,n.useMemo)(()=>({document:t,block:d}),[t,d]);return(0,o.jsx)(fe,{session:s})};re.default=ke});
@@ -1 +1 @@
1
- __useblocks__.define("static/core/261a3a42.js",["require","exports","module","static/core/2ff39ddf.js","static/core/a42ab03f.js"],function(a,m,v){const w=a("./2ff39ddf.js"),h=a("./a42ab03f.js");var d={items_per_page:"/ Seite",jump_to:"Gehe zu",jump_to_confirm:"bestätigen",page:"Seite",prev_page:"Vorherige Seite",next_page:"Nächste Seite",prev_5:"5 Seiten zurück",next_5:"5 Seiten vor",prev_3:"3 Seiten zurück",next_3:"3 Seiten vor",page_size:"Page Size"};function i(t){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);e&&(l=l.filter(function($){return Object.getOwnPropertyDescriptor(t,$).enumerable})),n.push.apply(n,l)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(l){p(t,l,n[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(n,l))})}return t}function p(t,e,n){return e=g(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){var e=b(t,"string");return i(e)=="symbol"?e:String(e)}function b(t,e){if(i(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var l=n.call(t,e||"default");if(i(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var f=s(s({},h.commonLocale),{},{locale:"de_DE",today:"Heute",now:"Jetzt",backToToday:"Zurück zu Heute",ok:"OK",clear:"Zurücksetzen",week:"Woche",month:"Monat",year:"Jahr",timeSelect:"Zeit wählen",dateSelect:"Datum wählen",monthSelect:"Wähle einen Monat",yearSelect:"Wähle ein Jahr",decadeSelect:"Wähle ein Jahrzehnt",previousMonth:"Vorheriger Monat (PageUp)",nextMonth:"Nächster Monat (PageDown)",previousYear:"Vorheriges Jahr (Ctrl + left)",nextYear:"Nächstes Jahr (Ctrl + right)",previousDecade:"Vorheriges Jahrzehnt",nextDecade:"Nächstes Jahrzehnt",previousCentury:"Vorheriges Jahrhundert",nextCentury:"Nächstes Jahrhundert"}),c={placeholder:"Zeit auswählen",rangePlaceholder:["Startzeit","Endzeit"]},u={lang:{placeholder:"Datum auswählen",rangePlaceholder:["Startdatum","Enddatum"],shortWeekDays:["So","Mo","Di","Mi","Do","Fr","Sa"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],...f},timePickerLocale:{...c}},y=u,r="${label} ist nicht gültig. ${type} erwartet",S={locale:"de",Pagination:d,DatePicker:u,TimePicker:c,Calendar:y,global:{placeholder:"Bitte auswählen",close:"Schließen",show:"Anzeigen",hide:"Ausblenden"},Table:{filterTitle:"Filter-Menü",filterConfirm:"OK",filterReset:"Zurücksetzen",filterEmptyText:"Keine Filter",filterSearchPlaceholder:"Suche in Filtern",filterCheckAll:"Alle auswählen",selectAll:"Selektiere Alle",selectInvert:"Selektion Invertieren",selectionAll:"Wählen Sie alle Daten aus",sortTitle:"Sortieren",emptyText:"Keine Daten",expand:"Zeile erweitern",collapse:"Zeile reduzieren",triggerDesc:"Klicken zur absteigenden Sortierung",triggerAsc:"Klicken zur aufsteigenden Sortierung",cancelSort:"Klicken zum Abbrechen der Sortierung"},Tour:{Next:"Weiter",Previous:"Zurück",Finish:"Fertig"},Modal:{okText:"OK",cancelText:"Abbrechen",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Abbrechen"},Transfer:{titles:["",""],searchPlaceholder:"Suchen",itemUnit:"Eintrag",itemsUnit:"Einträge",remove:"Entfernen",selectCurrent:"Alle auf aktueller Seite auswählen",removeCurrent:"Auswahl auf aktueller Seite aufheben",selectAll:"Alle auswählen",deselectAll:"Alle abwählen",removeAll:"Auswahl aufheben",selectInvert:"Auswahl umkehren"},Upload:{uploading:"Hochladen...",removeFile:"Datei entfernen",uploadError:"Fehler beim Hochladen",previewFile:"Dateivorschau",downloadFile:"Download-Datei"},Empty:{description:"Keine Daten"},Text:{edit:"Bearbeiten",copy:"Kopieren",copied:"Kopiert",expand:"Erweitern"},Form:{defaultValidateMessages:{default:"Feld-Validierungsfehler: ${label}",required:"Bitte geben Sie ${label} an",enum:"${label} muss eines der folgenden sein [${enum}]",whitespace:"${label} darf kein Leerzeichen sein",date:{format:"${label} ist ein ungültiges Datumsformat",parse:"${label} kann nicht in ein Datum umgewandelt werden",invalid:"${label} ist ein ungültiges Datum"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label} muss genau ${len} Zeichen lang sein",min:"${label} muss mindestens ${min} Zeichen lang sein",max:"${label} darf höchstens ${max} Zeichen lang sein",range:"${label} muss zwischen ${min} und ${max} Zeichen lang sein"},number:{len:"${label} muss gleich ${len} sein",min:"${label} muss mindestens ${min} sein",max:"${label} darf maximal ${max} sein",range:"${label} muss zwischen ${min} und ${max} liegen"},array:{len:"Es müssen ${len} ${label} sein",min:"Es müssen mindestens ${min} ${label} sein",max:"Es dürfen maximal ${max} ${label} sein",range:"Die Anzahl an ${label} muss zwischen ${min} und ${max} liegen"},pattern:{mismatch:"${label} entspricht nicht dem ${pattern} Muster"}}},QRCode:{expired:"QR-Code abgelaufen",refresh:"Aktualisieren"}};m.default=S});
1
+ __useblocks__.define("static/core/b4e4af36.js",["require","exports","module","static/core/2ff39ddf.js","static/core/74875d47.js"],function(a,m,v){const w=a("./2ff39ddf.js"),h=a("./74875d47.js");var d={items_per_page:"/ Seite",jump_to:"Gehe zu",jump_to_confirm:"bestätigen",page:"Seite",prev_page:"Vorherige Seite",next_page:"Nächste Seite",prev_5:"5 Seiten zurück",next_5:"5 Seiten vor",prev_3:"3 Seiten zurück",next_3:"3 Seiten vor",page_size:"Page Size"};function i(t){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);e&&(l=l.filter(function($){return Object.getOwnPropertyDescriptor(t,$).enumerable})),n.push.apply(n,l)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(l){p(t,l,n[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(n,l))})}return t}function p(t,e,n){return e=g(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){var e=b(t,"string");return i(e)=="symbol"?e:String(e)}function b(t,e){if(i(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var l=n.call(t,e||"default");if(i(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var f=s(s({},h.commonLocale),{},{locale:"de_DE",today:"Heute",now:"Jetzt",backToToday:"Zurück zu Heute",ok:"OK",clear:"Zurücksetzen",week:"Woche",month:"Monat",year:"Jahr",timeSelect:"Zeit wählen",dateSelect:"Datum wählen",monthSelect:"Wähle einen Monat",yearSelect:"Wähle ein Jahr",decadeSelect:"Wähle ein Jahrzehnt",previousMonth:"Vorheriger Monat (PageUp)",nextMonth:"Nächster Monat (PageDown)",previousYear:"Vorheriges Jahr (Ctrl + left)",nextYear:"Nächstes Jahr (Ctrl + right)",previousDecade:"Vorheriges Jahrzehnt",nextDecade:"Nächstes Jahrzehnt",previousCentury:"Vorheriges Jahrhundert",nextCentury:"Nächstes Jahrhundert"}),c={placeholder:"Zeit auswählen",rangePlaceholder:["Startzeit","Endzeit"]},u={lang:{placeholder:"Datum auswählen",rangePlaceholder:["Startdatum","Enddatum"],shortWeekDays:["So","Mo","Di","Mi","Do","Fr","Sa"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],...f},timePickerLocale:{...c}},y=u,r="${label} ist nicht gültig. ${type} erwartet",S={locale:"de",Pagination:d,DatePicker:u,TimePicker:c,Calendar:y,global:{placeholder:"Bitte auswählen",close:"Schließen",show:"Anzeigen",hide:"Ausblenden"},Table:{filterTitle:"Filter-Menü",filterConfirm:"OK",filterReset:"Zurücksetzen",filterEmptyText:"Keine Filter",filterSearchPlaceholder:"Suche in Filtern",filterCheckAll:"Alle auswählen",selectAll:"Selektiere Alle",selectInvert:"Selektion Invertieren",selectionAll:"Wählen Sie alle Daten aus",sortTitle:"Sortieren",emptyText:"Keine Daten",expand:"Zeile erweitern",collapse:"Zeile reduzieren",triggerDesc:"Klicken zur absteigenden Sortierung",triggerAsc:"Klicken zur aufsteigenden Sortierung",cancelSort:"Klicken zum Abbrechen der Sortierung"},Tour:{Next:"Weiter",Previous:"Zurück",Finish:"Fertig"},Modal:{okText:"OK",cancelText:"Abbrechen",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Abbrechen"},Transfer:{titles:["",""],searchPlaceholder:"Suchen",itemUnit:"Eintrag",itemsUnit:"Einträge",remove:"Entfernen",selectCurrent:"Alle auf aktueller Seite auswählen",removeCurrent:"Auswahl auf aktueller Seite aufheben",selectAll:"Alle auswählen",deselectAll:"Alle abwählen",removeAll:"Auswahl aufheben",selectInvert:"Auswahl umkehren"},Upload:{uploading:"Hochladen...",removeFile:"Datei entfernen",uploadError:"Fehler beim Hochladen",previewFile:"Dateivorschau",downloadFile:"Download-Datei"},Empty:{description:"Keine Daten"},Text:{edit:"Bearbeiten",copy:"Kopieren",copied:"Kopiert",expand:"Erweitern"},Form:{defaultValidateMessages:{default:"Feld-Validierungsfehler: ${label}",required:"Bitte geben Sie ${label} an",enum:"${label} muss eines der folgenden sein [${enum}]",whitespace:"${label} darf kein Leerzeichen sein",date:{format:"${label} ist ein ungültiges Datumsformat",parse:"${label} kann nicht in ein Datum umgewandelt werden",invalid:"${label} ist ein ungültiges Datum"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label} muss genau ${len} Zeichen lang sein",min:"${label} muss mindestens ${min} Zeichen lang sein",max:"${label} darf höchstens ${max} Zeichen lang sein",range:"${label} muss zwischen ${min} und ${max} Zeichen lang sein"},number:{len:"${label} muss gleich ${len} sein",min:"${label} muss mindestens ${min} sein",max:"${label} darf maximal ${max} sein",range:"${label} muss zwischen ${min} und ${max} liegen"},array:{len:"Es müssen ${len} ${label} sein",min:"Es müssen mindestens ${min} ${label} sein",max:"Es dürfen maximal ${max} ${label} sein",range:"Die Anzahl an ${label} muss zwischen ${min} und ${max} liegen"},pattern:{mismatch:"${label} entspricht nicht dem ${pattern} Muster"}}},QRCode:{expired:"QR-Code abgelaufen",refresh:"Aktualisieren"}};m.default=S});