useblocks 1.2.0 → 1.2.5
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/CHANGELOG.md +83 -0
- package/README.md +4 -0
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/{iframe-eblock.71aea198.html → iframe-eblock.ad7a9d1f.html} +2 -2
- package/iframe/{iframe.71aea198.html → iframe.ad7a9d1f.html} +2 -2
- package/iframe/js/elMarkupHelper.vJSCLUyq.js +278 -0
- package/iframe/js/iframe-eblock.body.ad7a9d1f.js +9 -0
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/iframe.body.ad7a9d1f.js +129 -0
- package/iframe/js/iframe.js +2 -2
- package/iframe/js/sanitize-html/sanitize-html.js +46 -21756
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{12f773c1.js → 220aeb6e.js} +1 -1
- package/static/core/{cea06bde.js → 25e324a7.js} +1 -1
- package/static/core/{1516d48e.js → 2d7469b5.js} +10 -10
- package/static/core/{1d170e32.js → 35aeebd4.js} +1 -1
- package/static/core/35b68c2d.js +7 -0
- package/static/core/{1dc51b93.js → 46b89e4e.js} +1 -1
- package/static/core/{f9749132.js → 50843a12.js} +1 -1
- package/static/core/{bfb25e63.js → 51c86df3.js} +1 -1
- package/static/core/55135cf2.js +1 -0
- package/static/core/{3d3eb29f.js → 581a610a.js} +1 -1
- package/static/core/{5278dff9.js → 67bd2b51.js} +1 -1
- package/static/core/{cf548c07.js → 719c3c6f.js} +1 -1
- package/static/core/{1594df08.js → 76d7fc00.js} +1 -1
- package/static/core/861ad8b1.js +28 -0
- package/static/core/{e460bb13.js → 8dc1398d.js} +1 -1
- package/static/core/{9f4f4873.js → 8ddf51c0.js} +1 -1
- package/static/core/{29e211b1.js → 91a70e6b.js} +2 -2
- package/static/core/98e0618f.js +2 -0
- package/static/core/{6dcb28a1.js → 9ec744ee.js} +1 -1
- package/static/core/{5b586fcb.js → ac4fee3c.js} +1 -1
- package/static/core/{f0c51560.js → be3fdb1c.js} +1 -1
- package/static/core/{a34a72bf.js → bf98b554.js} +2 -2
- package/static/core/{def48fbd.js → c5066b60.js} +1 -1
- package/static/core/d24bb113.js +4 -0
- package/static/core/{c8fe849c.js → d7c1e1d9.js} +1 -1
- package/static/core/{6f7a2152.js → e22d6382.js} +1 -1
- package/static/core/{d6929171.js → e33e9a92.js} +1 -1
- package/static/core/{6bc1c806.js → fb52c612.js} +10 -10
- package/static/esm/88c4c0b7.js +1 -0
- package/static/umd-runtime/{runtime.DxsFr3F4.js → runtime.CVHhHBC5.js} +1 -1
- package/useblocks-core.ad7a9d1f.js +859 -0
- package/useblocks-esm.js +11 -11
- package/{useblocks-po.71aea198.js → useblocks-po.ad7a9d1f.js} +1 -1
- package/useblocks.d.ts +34 -2
- package/useblocks.js +12 -12
- package/vendor/useblocks-ui-kit/package.json +1 -1
- package/iframe/js/elMarkupHelper.D_gxM3uK.js +0 -279
- package/iframe/js/iframe-eblock.body.71aea198.js +0 -9
- package/iframe/js/iframe.body.71aea198.js +0 -129
- package/iframe/js/sanitize-html/sanitize-html.min.js +0 -16923
- package/static/core/28d63741.js +0 -2
- package/static/core/3f80e59d.js +0 -28
- package/static/core/57fee71e.js +0 -4
- package/static/core/69789892.js +0 -1
- package/static/core/91f77c2d.js +0 -7
- package/static/esm/f97f84b4.js +0 -1
- package/useblocks-core.71aea198.js +0 -859
|
@@ -0,0 +1,2 @@
|
|
|
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/98e0618f.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js","static/core/4265d23e.js","static/core/be5dc8a7.js","static/core/8dc1398d.js","react","react/jsx-runtime","__delivery__/libs","classnames"],function(f,te,le){const J=f("./2ff39ddf.js"),U=f("./cf7d1dd7.js"),e=f("./4265d23e.js"),A=f("./be5dc8a7.js"),oe=f("./8dc1398d.js");let l=f("react");l=J.__toESM(l);let o=f("react/jsx-runtime"),i=f("__delivery__/libs"),V=f("classnames");V=J.__toESM(V);var q=({block:t,autoSaveBlockResult:p})=>{const{__:c,_x:u}=e.useI18n();e.useDispatch();const b=e.useEmailAttributesWriter(),d=e.useAppNavigate(),E=e.useCurrentUser(),{modal:y}=i.ui_kit$App.useApp(),m=e.useNotification(),{confirm:$}=y,{token:Y}=(0,i.ui_kit$useToken)(),F=e.useAppConfig(),K=e.useContainer(),C=()=>{e.leaveBlock(K)},I=e.useSelector(e.selectCodeModeDirection),v=t.hasOwnProperty("type")?e.BLOCK:e.EMAIL,x=e.useSelector(e.selectElementSettings$1),G=e.useSelector(e.selectElementSettings),_=v==="email"?x:G,O=e.useSelector(e.selectIsCodeMode),z=()=>(_?.type===e.ELEMENT_TYPES.TEXT||_?.type===e.ELEMENT_TYPES.LINK||_.type===e.ELEMENT_TYPES.BUTTON)&&O&&I!=="bottom",r=e.useProjectData(),{owner:w,admin:B}=e.useMyRoles(),Q=e.useStore(),N=(s,g)=>Q.dispatch(e.blocksApi.endpoints.deleteBlock.initiate(s.id)).then(k=>{k.error&&m.fromError("BLOCK_REMOVING_ERROR",e.getBlockDesc(s),k.error),C(),g(`/projects/${s.project}/blocks`),m.success({id:"BLOCK_REMOVING_SUCCESS",title:c("The block “")+k.data.title+u("” was successfully removed.","block"),data:e.getBlockDesc(s)})}),S=(s,g)=>{$({mask:{closable:!0},centered:!0,title:u("Are you sure you want to delete the “","block")+s.title+c("” block?"),icon:(0,o.jsx)(e.EmIcons,{icon:"DeleteOutlined",component:i.icons$DeleteOutlined,size:22,style:{color:i.ui_kit$iconColors.danger,marginInlineEnd:12,flexShrink:0}}),okText:c("Yes"),cancelText:c("No"),onOk:()=>N(s,g)})},T=()=>{C(),d(`/projects/${r.id}/blocks`)},L=s=>{b({title:s})},[W,P]=e.useAddBlockMutation(),X=e.useContentReader(),D=()=>{t.isNew?t.isNew?m.warning({id:"COPY_NOT_SAVED",payload:t,title:c("To create a copy, you need to save the block.")}):W({title:e.generateCopyTitle(t.title),blocktags:t.blocktags,project:r.id,subject:t.subject,description:t.description,html:X(),type:t.type?t.type:"Other"}).then(s=>{if(s.error){m.error({id:"BLOCK_CLONING_ERROR",data:e.getBlockDesc(t),innerException:s.error,title:s.error.data.code,description:s.error.data.message});return}d(`/projects/${r.id}/blocks/${s.data.id}`),m.success({id:"BLOCK_CLONING_SUCCESS",data:e.getBlockDesc(t),title:c("The copy of block “")+t.title+u("” was successfully created.","block")})}):e.getEmitter(K,U.events.ON_BLOCK_CLONE_ID).fire(t)},M=()=>{t.isNew?(C(),d(`/projects/${r.id}/blocks`),m.success({id:"BLOCK_REMOVING_SUCCESS",title:c("The draft of the block has been deleted."),data:e.getBlockDesc(t)})):S(t,d)};let h=[];h.push({label:c("Clone"),icon:(0,o.jsx)(e.EmIcons,{icon:"CopyOutlined",component:i.icons$CopyOutlined,size:16}),key:"Clone",className:"em-analytics__block-clone",disabled:P.isLoading,onClick:D}),(w||B||E.id?.toString()===t.author?.toString())&&h.push({label:(0,o.jsx)(e.SwitchLockBtn,{element:t},"Lock"),icon:t.lock?(0,o.jsx)(e.EmIcons,{icon:"UnlockOutlined",component:i.icons$UnlockOutlined,style:{fontSize:"16px"}}):(0,o.jsx)(e.EmIcons,{icon:"LockOutlined",component:i.icons$LockOutlined,style:{fontSize:"16px"}}),disabled:t.isNew},{label:c("Remove"),icon:(0,o.jsx)(e.EmIcons,{icon:"DeleteOutlined",component:i.icons$DeleteOutlined,size:16}),key:"Remove",className:"em-analytics__block-remove",onClick:M,style:{color:"#ff4d4f"}}),e.useSetTitle(t.title===null?c("New block title"):t.title);const R=(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(i.ui_kit$Space,{size:10,children:[F.headerArrowBackVisible&&(0,o.jsx)(i.ui_kit$Tooltip,{title:c("Back"),placement:"left",children:(0,o.jsx)(i.ui_kit$Button,{type:"text",icon:(0,o.jsx)(e.EmIcons,{icon:"ArrowLeftOutlined",component:i.icons$ArrowLeftOutlined}),onClick:T,shape:"circle"})}),(0,o.jsx)(i.ui_kit$Paragraph,{className:"ant-page-header-heading-title",editable:{triggerType:["text","icon"],icon:(0,o.jsx)(e.EmIcons,{icon:"EditOutlined",component:i.icons$EditOutlined,className:"email-page-header__icon-edit"}),onChange:L},children:t.title===null?c("New block title"):t.title})]})}),n=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.EmailPreviewMenu,{emailElement:t}),t.lock?(0,o.jsx)(e.EmIcons,{icon:"LockOutlined",component:i.icons$LockOutlined,className:(0,V.default)("lock-icon",{"lock-icon__disabled":!(w||B||E.id?.toString()===t.author?.toString())}),style:{color:Y.colorPrimary,fontSize:"16px"}},"Lock"):null,(0,o.jsx)(i.ui_kit$Dropdown,{arrow:"true",menu:{items:h},children:(0,o.jsx)(i.ui_kit$Button,{className:"block-page-header__btn block-page-header__btn_extra",onClick:()=>{},children:(0,o.jsx)(e.EmIcons,{icon:"EllipsisOutlined",component:i.icons$EllipsisOutlined})})},"Actions"),(0,o.jsx)(oe.SaveBlockBtn,{className:"em-analytics__block-save",block:t,isEditableRights:w||B||E.id?.toString()===t.author?.toString(),autoSaveBlockResult:p,ownsDocument:!0},"Save")]}),a=F.commandButtonsEnabled?n:(0,o.jsx)(A.EmailPreviewMenu,{emailElement:t});return(0,o.jsx)(e.Header,{leftBlock:R,rightBlock:a,className:"header_blocks",isHeaderCodeMenuOpen:z()})};q.propTypes={};function ee(t=document){const p=t.getElementById("email_iframe_slot");return{slot:p,area:p?.closest("[data-scroll-area]")??null}}function ne(t){if(t)return t.renderGuid??(t.id!=null?String(t.id):void 0)}function se(t,p={}){const c=e.useStore(),u=p.key??ne(t),b=p.recovery===!0,d=(0,l.useMemo)(()=>{if(u===void 0)return;const m=e.getEmailDocuments(U.getContainer(c));return b?t?.id!=null?m.open(String(t.id),{email:t}):m.openDraft(t):m.openBlock(u,t)},[u,c,b]),E=t?.modified,y=t?.lock;return(0,l.useEffect)(()=>{e.writeSourceReport(d,e.fromServerFacts({modified:E,lock:y}))},[d,E,y]),d}var{Content:re}=i.ui_kit$Layout,ie=({session:t})=>{const{__:p}=e.useI18n(),c=e.useSendPostMessage(),{blockId:u,projectId:b}=e.useRouteParams(),d=e.useDispatch();e.useAppNavigate();const E=e.useCookieManager();e.useSelector(e.selectMonacoFocusing),e.useSelector(e.selectIsPanelHistoryCollapsed),e.useAppConfig();const y=E.get(e.APP_COOKIES.em_new_block),{isSuccess:m,data:$}=e.useGetBlockQuery(+y,{skip:!!t||!y}),[Y,F]=(0,l.useState)(!1),{isLoading:K,isSuccess:C,isError:I,error:v,data:x}=e.useGetBlockQuery(u,{skip:!!t||!u});(0,l.useEffect)(()=>{I&&v&&e.reportEntityLoadError("block",u,v)},[I,v,u]);const G=y?m:C,_=C&&x?.id?x:m&&$,O=t?t.block:_,z=se(t?void 0:_||void 0,{key:!t&&_?.id!=null?e.blockSessionKey(_.id):void 0}),r=t?t.document:z,w=e.useDocumentAttributes(r),B=(0,l.useMemo)(()=>r?e.resolveOpenEmail({attributes:w,readContent:()=>r.getContent(),docId:r.get().docId,hasSession:!0,serverId:r.get().serverId,show:void 0}):O,[w,r,O]),Q=e.useStore(),N=e.getEmailDocuments(U.getContainer(Q)).history();e.usePublishDocumentSession(r,N);const S=e.useUserUndo({document:r,history:N}),T=(0,l.useCallback)(()=>{S.undo()},[S]),L=(0,l.useCallback)(()=>{S.redo()},[S]),W=(0,l.useCallback)(()=>S.clear(),[S]);e.useEditorUiReset(r?.get().docId,W);const P=(0,l.useCallback)(n=>{(window.navigator.appVersion.indexOf("Mac")&&n.metaKey||n.ctrlKey)&&(n.code==="KeyZ"?(n.preventDefault(),n.shiftKey?L():T()):n.code==="KeyY"&&!n.shiftKey&&(n.preventDefault(),L()))},[T,L]);(0,l.useEffect)(()=>(document.body.classList.add("editor"),()=>{d(e.resetPanes()),d(e.closeModal$1()),d(e.resetElementHistorySlice()),d(e.setActiveSettingsTab(e.BUILD))}),[d]);const X=n=>{const a=n.data.operation,s=n.data.action,g=document.getElementById("iframe-scroll-top"),k=document.getElementById("iframe-scroll-bottom");if(a===e.EVENT_TYPES.APPLICATION_ACTION&&(s==="undo"?T():s==="redo"&&L()),a===e.EVENT_TYPES.APPLICATION_SCROLL_BLOCK_SHOW){const{slot:Z}=ee(),H=document.body.getBoundingClientRect().height,j=Z?.getClientRects()[0];if(!j||!g||!k)return;j.top<0&&(g.style.display="block"),j.top+j.height>H&&(k.style.display="block")}a===e.EVENT_TYPES.APPLICATION_SCROLL_BLOCK_HIDE&&g&&k&&(g.style.display="none",k.style.display="none")};e.useListenPostMessage(X);const D=(0,l.useCallback)(n=>{n.target?.closest?.(".file-manager, .ant-modal.file-manager")||(n.preventDefault(),n.target&&c({operation:e.EVENT_TYPES.SANDBOX_DRAG_CANCEL}))},[c]),M=(0,l.useCallback)(()=>{},[]),h=(0,l.useCallback)(n=>{if(n.preventDefault(),n.target?.closest?.(".file-manager, .ant-modal.file-manager"))return;const a=document.getElementById("iframe-scroll-top"),s=document.getElementById("iframe-scroll-bottom"),{slot:g,area:k}=ee();if(!g||!a||!s)return;const{height:Z,top:H}=g.getBoundingClientRect(),j=document.body.getBoundingClientRect().height;H>1?a.style.display==="block"&&(a.style.display="none"):a.style.display==="none"&&(a.style.display="block"),Z-j+H<1?s.style.display==="block"&&(s.style.display="none"):s.style.display==="none"&&(s.style.display="block"),n.target===a&&k?.scrollBy(0,-20),n.target===s&&k?.scrollBy(0,20)},[]),R=(0,l.useCallback)(()=>{const n=document.getElementById("iframe-scroll-top"),a=document.getElementById("iframe-scroll-bottom");n&&a&&(n.style.display="none",a.style.display="none")},[]);return(0,l.useEffect)(()=>(window.addEventListener("dragstart",M),window.addEventListener("drop",D),window.addEventListener("dragend",R),window.addEventListener("dragover",h),window.addEventListener("keydown",P),()=>{window.removeEventListener("dragstart",M),window.removeEventListener("drop",D),window.removeEventListener("dragover",h),window.removeEventListener("dragend",R),window.removeEventListener("keydown",P)}),[P,M,D,R,h]),(0,o.jsx)(e.DocumentSessionProvider,{document:r,history:N,children:(0,o.jsxs)(i.ui_kit$Layout,{className:"block-page",children:[O&&(0,o.jsx)(q,{block:B}),K&&(0,o.jsx)(i.ui_kit$PageLoader,{}),I&&v&&!1,t?O&&(0,o.jsx)(A.EmailPane_default,{emailElement:B,kind:"block",isSuccess:!0}):(!u&&(y?Y&&$:!0)||C&&x)&&(0,o.jsx)(A.EmailPane_default,{emailElement:B,kind:"block",isSuccess:G})]})})},ce=()=>{const{document:t,email:p}=e.useOpenEmail(),c=(0,l.useMemo)(()=>({document:t,block:p}),[t,p]);return(0,o.jsx)(ie,{session:c})};te.default=ce});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/9ec744ee.js",["require","exports","module","static/core/2ff39ddf.js","static/core/4265d23e.js"],function(n,p,g){const $=n("./2ff39ddf.js"),u=n("./4265d23e.js");var d={items_per_page:"na stronę",jump_to:"Idź do",jump_to_confirm:"potwierdź",page:"",prev_page:"Poprzednia strona",next_page:"Następna strona",prev_5:"Poprzednie 5 stron",next_5:"Następne 5 stron",prev_3:"Poprzednie 3 strony",next_3:"Następne 3 strony",page_size:"rozmiar strony"};function o(a){"@babel/helpers - typeof";return o=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},o(a)}function l(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(a);e&&(i=i.filter(function(j){return Object.getOwnPropertyDescriptor(a,j).enumerable})),t.push.apply(t,i)}return t}function s(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?l(Object(t),!0).forEach(function(i){y(a,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach(function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(t,i))})}return a}function y(a,e,t){return e=b(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function b(a){var e=w(a,"string");return o(e)=="symbol"?e:String(e)}function w(a,e){if(o(a)!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var i=t.call(a,e||"default");if(o(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}var z=s(s({},u.commonLocale),{},{locale:"pl_PL",today:"Dzisiaj",now:"Teraz",backToToday:"Ustaw dzisiaj",ok:"OK",clear:"Wyczyść",week:"Tydzień",month:"Miesiąc",year:"Rok",timeSelect:"Ustaw czas",dateSelect:"Ustaw datę",monthSelect:"Wybierz miesiąc",yearSelect:"Wybierz rok",decadeSelect:"Wybierz dekadę",previousMonth:"Poprzedni miesiąc (PageUp)",nextMonth:"Następny miesiąc (PageDown)",previousYear:"Ostatni rok (Ctrl + left)",nextYear:"Następny rok (Ctrl + right)",previousDecade:"Ostatnia dekada",nextDecade:"Następna dekada",previousCentury:"Ostatni wiek",nextCentury:"Następny wiek"}),c={placeholder:"Wybierz godzinę",rangePlaceholder:["Czas rozpoczęcia","Czas zakończenia"]},m={lang:{placeholder:"Wybierz datę",rangePlaceholder:["Data początkowa","Data końcowa"],yearFormat:"YYYY",monthFormat:"MMMM",monthBeforeYear:!0,shortWeekDays:["Niedz","Pon","Wt","Śr","Czw","Pt","Sob"],shortMonths:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],...z},timePickerLocale:{...c}},f=m,r="${label} nie posiada poprawnej wartości dla typu ${type}",k={locale:"pl",Pagination:d,DatePicker:m,TimePicker:c,Calendar:f,global:{placeholder:"Wybierz",close:"Zamknij",show:"Pokaż",hide:"Ukryj"},Table:{filterTitle:"Menu filtra",filterConfirm:"OK",filterReset:"Usuń filtry",filterEmptyText:"Brak filtrów",filterCheckAll:"Wybierz wszystkie elementy",filterSearchPlaceholder:"Szukaj w filtrach",emptyText:"Brak danych",selectAll:"Zaznacz bieżącą stronę",selectInvert:"Odwróć zaznaczenie",selectNone:"Wyczyść",selectionAll:"Wybierz wszystkie",sortTitle:"Sortowanie",expand:"Rozwiń wiersz",collapse:"Zwiń wiersz",triggerDesc:"Sortuj malejąco",triggerAsc:"Sortuj rosnąco",cancelSort:"Usuń sortowanie"},Tour:{Next:"Dalej",Previous:"Wróć",Finish:"Zakończ"},Modal:{okText:"OK",cancelText:"Anuluj",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Anuluj"},Transfer:{titles:["",""],searchPlaceholder:"Szukaj",itemUnit:"obiekt",itemsUnit:"obiekty",remove:"Usuń",selectCurrent:"Wybierz aktualną stronę",removeCurrent:"Usuń aktualną stronę",selectAll:"Wybierz wszystkie",removeAll:"Usuń wszystkie",selectInvert:"Odwróć wybór"},Upload:{uploading:"Wysyłanie...",removeFile:"Usuń plik",uploadError:"Błąd wysyłania",previewFile:"Podejrzyj plik",downloadFile:"Pobieranie pliku"},Empty:{description:"Brak danych"},Icon:{icon:"Ikona"},Text:{edit:"Edytuj",copy:"Kopiuj",copied:"Skopiowany",expand:"Rozwiń"},Form:{optional:"(opcjonalne)",defaultValidateMessages:{default:"Błąd walidacji dla pola ${label}",required:"Pole ${label} jest wymagane",enum:"Pole ${label} musi posiadać wartość z listy: [${enum}]",whitespace:"Pole ${label} nie może być puste",date:{format:"${label} posiada zły format daty",parse:"${label} nie może zostać zinterpretowane jako data",invalid:"${label} jest niepoprawną datą"},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} musi posiadać ${len} znaków",min:"${label} musi posiadać co namniej ${min} znaków",max:"${label} musi posiadać maksymalnie ${max} znaków",range:"${label} musi posiadać między ${min} a ${max} znaków"},number:{len:"${label} musi mieć wartość o długości ${len}",min:"${label} musi mieć wartość większą lub równą ${min}",max:"${label} musi mieć wartość mniejszą lub równą ${max}",range:"${label} musi mieć wartość pomiędzy ${min} a ${max}"},array:{len:"${label} musi posiadać ${len} elementów",min:"${label} musi posiadać co najmniej ${min} elementów",max:"${label} musi posiadać maksymalnie ${max} elementów",range:"${label} musi posiadać między ${min} a ${max} elementów"},pattern:{mismatch:"${label} nie posiada wartości zgodnej ze wzorem ${pattern}"}}}};p.default=k});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/ac4fee3c.js",["require","exports","module","static/core/2ff39ddf.js","static/core/4265d23e.js","vite/preload-helper"],function(a,g,z){const j=a("./2ff39ddf.js"),t=a("./4265d23e.js");let f=a("vite/preload-helper");var h=3e3,S=/\.(woff2?|ttf|otf|eot)(\?|$)/i;function b(e){if(S.test(e.name))return"font";switch(e.initiatorType){case"script":return"script";case"link":case"css":return"style";case"fetch":case"xmlhttprequest":return"fetch";case"img":case"image":return"image";default:return"other"}}function _(e){return e.decodedBodySize===0&&e.transferSize===0?{transferred:null,fromCache:null}:{transferred:e.transferSize,fromCache:e.transferSize===0}}function d(e,r){return{name:e.name,kind:b(e),startedAt:t.toAbsolute(e.startTime,r),finishedAt:t.toAbsolute(e.responseEnd,r),..._(e)}}function y(e){if(!t.isDiagnosticsEnabled()||typeof PerformanceObserver>"u")return null;performance.setResourceTimingBufferSize(h);const{timeOrigin:r}=performance,n=new PerformanceObserver(s=>{s.getEntries().forEach(i=>{e(d(i,r))})});return n.observe({type:"resource",buffered:!0}),()=>n.disconnect()}var k="__emmDiagnostics__";function p(e){return typeof e=="object"&&e!==null}function o(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function R(e){if(!p(e))return null;const r=o(e.startTime),n=o(e.responseEnd),s=o(e.transferSize),i=o(e.decodedBodySize);return typeof e.name!="string"||typeof e.initiatorType!="string"||r===null||n===null||s===null||i===null?null:{name:e.name,initiatorType:e.initiatorType,startTime:r,responseEnd:n,transferSize:s,decodedBodySize:i}}function D(e){if(!p(e)||e.mark!=="__emmDiagnostics__")return null;if(e.type==="paint"||e.type==="settled"){const r=o(e.at);return r===null?null:{type:e.type,at:r}}if(e.type==="resources"){const r=o(e.timeOrigin);return r===null||!Array.isArray(e.items)?null:{type:"resources",records:e.items.map(R).filter(n=>n!==null).map(n=>d(n,r))}}return null}var c=null,m=null,u=!1,l=!1;function E(){return c?!0:(c=y(e=>t.getDiagnosticsStore().resources.push(e)),c!==null)}function w(){if(m!==null)return!0;if(!t.isDiagnosticsEnabled()||typeof window>"u")return!1;const e=r=>{const n=D(r.data);if(!n)return;const s=t.getDiagnosticsStore();if(n.type==="paint"){u||(u=!0,s.marks.push({phase:t.PHASES.canvasPainted,at:n.at}));return}if(n.type==="settled"){l||(l=!0,s.marks.push({phase:t.PHASES.canvasSettled,at:n.at}));return}n.records.forEach(i=>s.resources.push(i))};return window.addEventListener("message",e),m=()=>window.removeEventListener("message",e),!0}function v(){t.clearDiagnostics(),u=!1,l=!1}async function P(){if(!t.isDiagnosticsEnabled()||typeof window>"u")return!1;const{buildReportPayload:e,renderReportHtml:r}=await(0,f.__vitePreload)(async()=>{const{buildReportPayload:i,renderReportHtml:O}=await Promise.resolve().then(()=>a("./46b89e4e.js"));return{buildReportPayload:i,renderReportHtml:O}},void 0,{}.url),n=r(e(t.getDiagnosticsSnapshot(),t.getResourcesSnapshot())),s=window.open("","_blank");return s?(s.document.open(),s.document.write(n),s.document.close(),!0):!1}async function T(){const{buildReportPayload:e}=await(0,f.__vitePreload)(async()=>{const{buildReportPayload:r}=await Promise.resolve().then(()=>a("./46b89e4e.js"));return{buildReportPayload:r}},void 0,{}.url);return e(t.getDiagnosticsSnapshot(),t.getResourcesSnapshot())}function A(){if(!t.isDiagnosticsEnabled())return!1;t.drainLoaderMarks(),E(),w();const e=t.getBrandNamespace();return e?(e.diagnostics={snapshot:t.getDiagnosticsSnapshot,resources:t.getResourcesSnapshot,report:P,export:T,clear:v},!0):!1}g.installDiagnostics=A});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/be3fdb1c.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js"],function(o,a,v){const p=o("./2ff39ddf.js"),l=o("./cf7d1dd7.js");var u=class{_plugins=new Map;_listeners=new Map;_getOrCreateEntry(e){let t=this._plugins.get(e);return t||(t={overrides:[]},this._plugins.set(e,t)),t}_applyOverrides(e,t){const r=this._plugins.get(e);if(r?.overrides)for(const n of r.overrides)t=n(t)||t;return t}_notifyListeners(e,t){const r=this._listeners.get(e);if(!r||r.length===0)return;for(const i of r)try{i.callback(t)}catch{}const n=r.filter(i=>!i.once);n.length>0?this._listeners.set(e,n):this._listeners.delete(e)}get(e){const t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor)}async getAsync(e){const t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor);if(t?.loading){const r=await t.loading;return this._applyOverrides(e,r)}if(t?.factory){const r=Promise.resolve(t.factory()).then(i=>(t.ctor=i,t.loading=void 0,this._notifyListeners(e,i),i));t.loading=r;const n=await r;return this._applyOverrides(e,n)}return new Promise(r=>{this.on(e,n=>r(this._applyOverrides(e,n)))})}add(e,t){const r=this._getOrCreateEntry(e);r.ctor=t,this._notifyListeners(e,t)}addAll(e){for(const t of Object.keys(e)){const r=e[t];r!==void 0&&this.add(t,r)}}addAsync(e,t){const r=this._getOrCreateEntry(e);return r.factory=t,{dispose:()=>{r.ctor||(r.factory=void 0)}}}has(e){const t=this._plugins.get(e);return!!(t?.ctor||t?.factory)}isLoaded(e){return!!this._plugins.get(e)?.ctor}override(e,t){const r=this._getOrCreateEntry(e);return r.overrides.push(t),{dispose:()=>{const n=r.overrides.indexOf(t);n>=0&&r.overrides.splice(n,1)}}}on(e,t){const r=this.get(e);r&&t(r);let n=this._listeners.get(e);n||(n=[],this._listeners.set(e,n));const i={callback:t,once:!1};return n.push(i),{dispose:()=>this._removeListener(e,t)}}once(e,t){const r=this.get(e);if(r)return t(r),{dispose:()=>{}};let n=this._listeners.get(e);n||(n=[],this._listeners.set(e,n));const i={callback:t,once:!0};return n.push(i),{dispose:()=>this._removeListener(e,t)}}off(e,t){this._removeListener(e,t)}_removeListener(e,t){const r=this._listeners.get(e);if(r){const n=r.findIndex(i=>i.callback===t);n>=0&&r.splice(n,1),r.length===0&&this._listeners.delete(e)}}keys(){return Array.from(this._plugins.keys())}forContext(){const e=this;return{add(t,r){e.add(t,r)}}}},g=class{resolveRegistry;constructor(e){this.resolveRegistry=e}target(){return this.resolveRegistry()}get(e){return this.target().get(e)}getAsync(e){return this.target().getAsync(e)}add(e,t){return this.target().add(e,t)}addAll(e){return this.target().addAll(e)}addAsync(e,t){return this.target().addAsync(e,t)}has(e){return this.target().has(e)}isLoaded(e){return this.target().isLoaded(e)}override(e,t){return this.target().override(e,t)}on(e,t){return this.target().on(e,t)}once(e,t){return this.target().once(e,t)}off(e,t){return this.target().off(e,t)}keys(){return this.target().keys()}forContext(){return this.target().forContext()}},c="PluginRegistry";function d(e=l.resolveContainer()){return e.getOrCreateInstance(c,()=>new u)}var y=new g(()=>d()),h=100,s={events:[],container:null,collection:null};function f(e,t){s.container=e,s.collection=t,t.onLifecycle(r=>{s.events.push({...r,timestamp:Date.now()}),s.events.length>h&&(s.events=s.events.slice(-100))}),typeof window<"u"&&(window.__EMAILMAKER_DEVTOOLS__=_())}function _(){return{enabled:!0,plugins(){return s.collection?s.collection.getStatus().map(e=>({...e,hasInit:!0,hasDispose:!0,hasAfterInit:!0})):[]},config(){const e=s.container?.getInstance(l.CONFIG_SOURCE_ID);return e?e.state():{kind:"unavailable"}},registry(){if(!s.container)return[];try{return s.container.getInstance(c).keys().map(String)}catch{return[]}},events(e=50){return s.events.slice(-e)},clearEvents(){s.events=[]},getPlugin(e){if(s.collection)try{return s.collection.use(e)}catch{return}}}}a.initDevTools=f});
|