/*! This file is auto-generated */
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.ReactJSXRuntime,n=window.wp.element,o=window.wp.i18n;var r=function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function s(e){return e.toLowerCase()}var a=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],i=/[^A-Z0-9]+/gi;function l(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function c(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?a:n,r=t.stripRegexp,c=void 0===r?i:r,p=t.transform,d=void 0===p?s:p,u=t.delimiter,w=void 0===u?" ":u,f=l(l(e,o,"$1\0$2"),c,"\0"),m=0,b=f.length;"\0"===f.charAt(m);)m++;for(;"\0"===f.charAt(b-1);)b--;return f.slice(m,b).split("\0").map(d).join(w)}(e,r({delimiter:"."},t))}const p=window.wp.apiFetch;var d=e.n(p);const u=window.wp.blob;var w=async function(e){const t=await d()({path:"/wp/v2/types/wp_block"}),n=await d()({path:`/wp/v2/${t.rest_base}/${e}?context=edit`}),o=n.title.raw,s=n.content.raw,a=n.wp_pattern_sync_status,i=JSON.stringify({__file:"wp_block",title:o,content:s,syncStatus:a},null,2),l=(void 0===p&&(p={}),c(o,r({delimiter:"-"},p))+".json");var p;(0,u.downloadBlob)(l,i,"application/json")};const f=window.wp.compose,m=window.wp.components;var b=async function(e){const t=await function(e){const t=new window.FileReader;return new Promise((n=>{t.onload=()=>{n(t.result)},t.readAsText(e)}))}(e);let n;try{n=JSON.parse(t)}catch(e){throw new Error("Invalid JSON file")}if("wp_block"!==n.__file||!n.title||!n.content||"string"!=typeof n.title||"string"!=typeof n.content||n.syncStatus&&"string"!=typeof n.syncStatus)throw new Error("Invalid pattern JSON file");const o=await d()({path:"/wp/v2/types/wp_block"});return await d()({path:`/wp/v2/${o.rest_base}`,data:{title:n.title,content:n.content,status:"publish",meta:"unsynced"===n.syncStatus?{wp_pattern_sync_status:n.syncStatus}:void 0},method:"POST"})};var _=(0,f.withInstanceId)((function({instanceId:e,onUpload:r}){const s="list-reusable-blocks-import-form-"+e,a=(0,n.useRef)(),[i,l]=(0,n.useState)(!1),[c,p]=(0,n.useState)(null),[d,u]=(0,n.useState)(null);return(0,t.jsxs)("form",{className:"list-reusable-blocks-import-form",onSubmit:e=>{e.preventDefault(),d&&(l({isLoading:!0}),b(d).then((e=>{a&&(l(!1),r(e))})).catch((e=>{if(!a)return;let t;switch(e.message){case"Invalid JSON file":t=(0,o.__)("Invalid JSON file");break;case"Invalid pattern JSON file":t=(0,o.__)("Invalid pattern JSON file");break;default:t=(0,o.__)("Unknown error")}l(!1),p(t)})))},ref:a,children:[c&&(0,t.jsx)(m.Notice,{status:"error",onRemove:()=>{p(null)},children:c}),(0,t.jsx)("label",{htmlFor:s,className:"list-reusable-blocks-import-form__label",children:(0,o.__)("File")}),(0,t.jsx)("input",{id:s,type:"file",onChange:e=>{u(e.target.files[0]),p(null)}}),(0,t.jsx)(m.Button,{__next40pxDefaultSize:!0,type:"submit",isBusy:i,accessibleWhenDisabled:!0,disabled:!d||i,variant:"secondary",className:"list-reusable-blocks-import-form__button",children:(0,o._x)("Import","button label")})]})}));var v=function({onUpload:e}){return(0,t.jsx)(m.Dropdown,{popoverProps:{placement:"bottom-start"},contentClassName:"list-reusable-blocks-import-dropdown__content",renderToggle:({isOpen:e,onToggle:n})=>(0,t.jsx)(m.Button,{size:"compact",className:"list-reusable-blocks-import-dropdown__button","aria-expanded":e,onClick:n,variant:"primary",children:(0,o.__)("Import from JSON")}),renderContent:({onClose:n})=>(0,t.jsx)(_,{onUpload:(0,f.pipe)(n,e)})})};document.body.addEventListener("click",(e=>{e.target.classList.contains("wp-list-reusable-blocks__export")&&(e.preventDefault(),w(e.target.dataset.id))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".page-title-action");if(!e)return;const r=document.createElement("div");r.className="list-reusable-blocks__container",e.parentNode.insertBefore(r,e),(0,n.createRoot)(r).render((0,t.jsx)(n.StrictMode,{children:(0,t.jsx)(v,{onUpload:()=>{const e=document.createElement("div");e.className="notice notice-success is-dismissible",e.innerHTML=`<p>${(0,o.__)("Pattern imported successfully!")}</p>`;const t=document.querySelector(".wp-header-end");t&&t.parentNode.insertBefore(e,t)}})}))})),(window.wp=window.wp||{}).listReusableBlocks={}})();| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| development/ | 2026-02-23 19:41 | 175.64 KB | 76129f60960:kunden | dxwrx-rx-r | |
| script-modules/ | 2026-02-23 19:41 | 408.35 KB | 76129f60960:kunden | dxwrx-rx-r | |
| vendor/ | 2026-02-23 19:41 | 2.54 MB | 76129f60960:kunden | dxwrx-rx-r | |
| a11y.js | 2026-02-23 19:41 | 5.58 KB | 76129f60960:kunden | -xw-x----- | |
| a11y.min.js | 2026-02-23 19:41 | 2.16 KB | 76129f60960:kunden | -xw-x----- | |
| admin-ui.js | 2026-02-23 19:41 | 5.58 KB | 76129f60960:kunden | -xw-x----- | |
| admin-ui.min.js | 2026-02-23 19:41 | 2.11 KB | 76129f60960:kunden | -xw-x----- | |
| annotations.js | 2026-02-23 19:41 | 15.83 KB | 76129f60960:kunden | -xw-x----- | |
| annotations.min.js | 2026-02-23 19:41 | 5.19 KB | 76129f60960:kunden | -xw-x----- | |
| api-fetch.js | 2026-02-23 19:41 | 15.94 KB | 76129f60960:kunden | -xw-x----- | |
| api-fetch.min.js | 2026-02-23 19:41 | 5.66 KB | 76129f60960:kunden | -xw-x----- | |
| autop.js | 2026-02-23 19:41 | 9.95 KB | 76129f60960:kunden | -xw-x----- | |
| autop.min.js | 2026-02-23 19:41 | 5.48 KB | 76129f60960:kunden | -xw-x----- | |
| base-styles.js | 2026-02-23 19:41 | 266 B | 76129f60960:kunden | -xw-x----- | |
| base-styles.min.js | 2026-02-23 19:41 | 75 B | 76129f60960:kunden | -xw-x----- | |
| blob.js | 2026-02-23 19:41 | 3.09 KB | 76129f60960:kunden | -xw-x----- | |
| blob.min.js | 2026-02-23 19:41 | 1.08 KB | 76129f60960:kunden | -xw-x----- | |
| block-directory.js | 2026-02-23 19:41 | 70.22 KB | 76129f60960:kunden | -xw-x----- | |
| block-directory.min.js | 2026-02-23 19:41 | 20.18 KB | 76129f60960:kunden | -xw-x----- | |
| block-editor.js | 2026-02-23 19:41 | 2.23 MB | 76129f60960:kunden | -xw-x----- | |
| block-editor.min.js | 2026-02-23 19:41 | 871.33 KB | 76129f60960:kunden | -xw-x----- | |
| block-library.js | 2026-02-23 19:41 | 2.19 MB | 76129f60960:kunden | -xw-x----- | |
| block-library.min.js | 2026-02-23 19:41 | 960 KB | 76129f60960:kunden | -xw-x----- | |
| block-serialization-default-parser.js | 2026-02-23 19:41 | 6.81 KB | 76129f60960:kunden | -xw-x----- | |
| block-serialization-default-parser.min.js | 2026-02-23 19:41 | 2.34 KB | 76129f60960:kunden | -xw-x----- | |
| blocks.js | 2026-02-23 19:41 | 427.46 KB | 76129f60960:kunden | -xw-x----- | |
| blocks.min.js | 2026-02-23 19:41 | 172.73 KB | 76129f60960:kunden | -xw-x----- | |
| commands.js | 2026-02-23 19:41 | 171.71 KB | 76129f60960:kunden | -xw-x----- | |
| commands.min.js | 2026-02-23 19:41 | 48.76 KB | 76129f60960:kunden | -xw-x----- | |
| components.js | 2026-02-23 19:41 | 2.39 MB | 76129f60960:kunden | -xw-x----- | |
| components.min.js | 2026-02-23 19:41 | 786.6 KB | 76129f60960:kunden | -xw-x----- | |
| compose.js | 2026-02-23 19:41 | 142.91 KB | 76129f60960:kunden | -xw-x----- | |
| compose.min.js | 2026-02-23 19:41 | 35.78 KB | 76129f60960:kunden | -xw-x----- | |
| core-commands.js | 2026-02-23 19:41 | 25.66 KB | 76129f60960:kunden | -xw-x----- | |
| core-commands.min.js | 2026-02-23 19:41 | 10.39 KB | 76129f60960:kunden | -xw-x----- | |
| core-data.js | 2026-02-23 19:41 | 216.7 KB | 76129f60960:kunden | -xw-x----- | |
| core-data.min.js | 2026-02-23 19:41 | 68.73 KB | 76129f60960:kunden | -xw-x----- | |
| customize-widgets.js | 2026-02-23 19:41 | 86.45 KB | 76129f60960:kunden | -xw-x----- | |
| customize-widgets.min.js | 2026-02-23 19:41 | 34.22 KB | 76129f60960:kunden | -xw-x----- | |
| data-controls.js | 2026-02-23 19:41 | 4.39 KB | 76129f60960:kunden | -xw-x----- | |
| data-controls.min.js | 2026-02-23 19:41 | 1.44 KB | 76129f60960:kunden | -xw-x----- | |
| data.js | 2026-02-23 19:41 | 88.15 KB | 76129f60960:kunden | -xw-x----- | |
| data.min.js | 2026-02-23 19:41 | 24.85 KB | 76129f60960:kunden | -xw-x----- | |
| date.js | 2026-02-23 19:41 | 790.86 KB | 76129f60960:kunden | -xw-x----- | |
| date.min.js | 2026-02-23 19:41 | 765.33 KB | 76129f60960:kunden | -xw-x----- | |
| deprecated.js | 2026-02-23 19:41 | 2.25 KB | 76129f60960:kunden | -xw-x----- | |
| deprecated.min.js | 2026-02-23 19:41 | 684 B | 76129f60960:kunden | -xw-x----- | |
| dom-ready.js | 2026-02-23 19:41 | 1.57 KB | 76129f60960:kunden | -xw-x----- | |
| dom-ready.min.js | 2026-02-23 19:41 | 457 B | 76129f60960:kunden | -xw-x----- | |
| dom.js | 2026-02-23 19:41 | 34.18 KB | 76129f60960:kunden | -xw-x----- | |
| dom.min.js | 2026-02-23 19:41 | 12.3 KB | 76129f60960:kunden | -xw-x----- | |
| edit-post.js | 2026-02-23 19:41 | 104.66 KB | 76129f60960:kunden | -xw-x----- | |
| edit-post.min.js | 2026-02-23 19:41 | 42.69 KB | 76129f60960:kunden | -xw-x----- | |
| edit-site.js | 2026-02-23 19:41 | 1.76 MB | 76129f60960:kunden | -xw-x----- | |
| edit-site.min.js | 2026-02-23 19:41 | 700.25 KB | 76129f60960:kunden | -xw-x----- | |
| edit-widgets.js | 2026-02-23 19:41 | 152.38 KB | 76129f60960:kunden | -xw-x----- | |
| edit-widgets.min.js | 2026-02-23 19:41 | 57.61 KB | 76129f60960:kunden | -xw-x----- | |
| editor.js | 2026-02-23 19:41 | 1.09 MB | 76129f60960:kunden | -xw-x----- | |
| editor.min.js | 2026-02-23 19:41 | 409.79 KB | 76129f60960:kunden | -xw-x----- | |
| element.js | 2026-02-23 19:41 | 46.17 KB | 76129f60960:kunden | -xw-x----- | |
| element.min.js | 2026-02-23 19:41 | 11.83 KB | 76129f60960:kunden | -xw-x----- | |
| escape-html.js | 2026-02-23 19:41 | 2.99 KB | 76129f60960:kunden | -xw-x----- | |
| escape-html.min.js | 2026-02-23 19:41 | 1000 B | 76129f60960:kunden | -xw-x----- | |
| format-library.js | 2026-02-23 19:41 | 71.43 KB | 76129f60960:kunden | -xw-x----- | |
| format-library.min.js | 2026-02-23 19:41 | 26.76 KB | 76129f60960:kunden | -xw-x----- | |
| hooks.js | 2026-02-23 19:41 | 15.64 KB | 76129f60960:kunden | -xw-x----- | |
| hooks.min.js | 2026-02-23 19:41 | 5.53 KB | 76129f60960:kunden | -xw-x----- | |
| html-entities.js | 2026-02-23 19:41 | 2.29 KB | 76129f60960:kunden | -xw-x----- | |
| html-entities.min.js | 2026-02-23 19:41 | 792 B | 76129f60960:kunden | -xw-x----- | |
| i18n.js | 2026-02-23 19:41 | 24.35 KB | 76129f60960:kunden | -xw-x----- | |
| i18n.min.js | 2026-02-23 19:41 | 5.19 KB | 76129f60960:kunden | -xw-x----- | |
| is-shallow-equal.js | 2026-02-23 19:41 | 3.28 KB | 76129f60960:kunden | -xw-x----- | |
| is-shallow-equal.min.js | 2026-02-23 19:41 | 1018 B | 76129f60960:kunden | -xw-x----- | |
| keyboard-shortcuts.js | 2026-02-23 19:41 | 9.23 KB | 76129f60960:kunden | -xw-x----- | |
| keyboard-shortcuts.min.js | 2026-02-23 19:41 | 2.98 KB | 76129f60960:kunden | -xw-x----- | |
| keycodes.js | 2026-02-23 19:41 | 7.89 KB | 76129f60960:kunden | -xw-x----- | |
| keycodes.min.js | 2026-02-23 19:41 | 2.51 KB | 76129f60960:kunden | -xw-x----- | |
| latex-to-mathml.js | 2026-02-23 19:41 | 444.74 KB | 76129f60960:kunden | -xw-x----- | |
| latex-to-mathml.min.js | 2026-02-23 19:41 | 192.02 KB | 76129f60960:kunden | -xw-x----- | |
| list-reusable-blocks.js | 2026-02-23 19:41 | 29.95 KB | 76129f60960:kunden | -xw-x----- | |
| list-reusable-blocks.min.js | 2026-02-23 19:41 | 4.62 KB | 76129f60960:kunden | -xw-x----- | |
| media-utils.js | 2026-02-23 19:41 | 23.35 KB | 76129f60960:kunden | -xw-x----- | |
| media-utils.min.js | 2026-02-23 19:41 | 9.72 KB | 76129f60960:kunden | -xw-x----- | |
| notices.js | 2026-02-23 19:41 | 5.84 KB | 76129f60960:kunden | -xw-x----- | |
| notices.min.js | 2026-02-23 19:41 | 2.03 KB | 76129f60960:kunden | -xw-x----- | |
| nux.js | 2026-02-23 19:41 | 9.89 KB | 76129f60960:kunden | -xw-x----- | |
| nux.min.js | 2026-02-23 19:41 | 3.43 KB | 76129f60960:kunden | -xw-x----- | |
| patterns.js | 2026-02-23 19:41 | 60.31 KB | 76129f60960:kunden | -xw-x----- | |
| patterns.min.js | 2026-02-23 19:41 | 21.47 KB | 76129f60960:kunden | -xw-x----- | |
| plugins.js | 2026-02-23 19:41 | 13.65 KB | 76129f60960:kunden | -xw-x----- | |
| plugins.min.js | 2026-02-23 19:41 | 4.23 KB | 76129f60960:kunden | -xw-x----- | |
| preferences-persistence.js | 2026-02-23 19:41 | 16.82 KB | 76129f60960:kunden | -xw-x----- | |
| preferences-persistence.min.js | 2026-02-23 19:41 | 5.33 KB | 76129f60960:kunden | -xw-x----- | |
| preferences.js | 2026-02-23 19:41 | 20.27 KB | 76129f60960:kunden | -xw-x----- | |
| preferences.min.js | 2026-02-23 19:41 | 6.85 KB | 76129f60960:kunden | -xw-x----- | |
| primitives.js | 2026-02-23 19:41 | 5.1 KB | 76129f60960:kunden | -xw-x----- | |
| primitives.min.js | 2026-02-23 19:41 | 1.62 KB | 76129f60960:kunden | -xw-x----- | |
| priority-queue.js | 2026-02-23 19:41 | 9.89 KB | 76129f60960:kunden | -xw-x----- | |
| priority-queue.min.js | 2026-02-23 19:41 | 3.3 KB | 76129f60960:kunden | -xw-x----- | |
| private-apis.js | 2026-02-23 19:41 | 5.35 KB | 76129f60960:kunden | -xw-x----- | |
| private-apis.min.js | 2026-02-23 19:41 | 2.77 KB | 76129f60960:kunden | -xw-x----- | |
| redux-routine.js | 2026-02-23 19:41 | 21.23 KB | 76129f60960:kunden | -xw-x----- | |
| redux-routine.min.js | 2026-02-23 19:41 | 8.68 KB | 76129f60960:kunden | -xw-x----- | |
| reusable-blocks.js | 2026-02-23 19:41 | 18.45 KB | 76129f60960:kunden | -xw-x----- | |
| reusable-blocks.min.js | 2026-02-23 19:41 | 5.91 KB | 76129f60960:kunden | -xw-x----- | |
| rich-text.js | 2026-02-23 19:41 | 83.52 KB | 76129f60960:kunden | -xw-x----- | |
| rich-text.min.js | 2026-02-23 19:41 | 36.42 KB | 76129f60960:kunden | -xw-x----- | |
| router.js | 2026-02-23 19:41 | 52.23 KB | 76129f60960:kunden | -xw-x----- | |
| router.min.js | 2026-02-23 19:41 | 13.44 KB | 76129f60960:kunden | -xw-x----- | |
| server-side-render.js | 2026-02-23 19:41 | 9.68 KB | 76129f60960:kunden | -xw-x----- | |
| server-side-render.min.js | 2026-02-23 19:41 | 3.08 KB | 76129f60960:kunden | -xw-x----- | |
| shortcode.js | 2026-02-23 19:41 | 9.83 KB | 76129f60960:kunden | -xw-x----- | |
| shortcode.min.js | 2026-02-23 19:41 | 2.83 KB | 76129f60960:kunden | -xw-x----- | |
| style-engine.js | 2026-02-23 19:41 | 35.12 KB | 76129f60960:kunden | -xw-x----- | |
| style-engine.min.js | 2026-02-23 19:41 | 5.92 KB | 76129f60960:kunden | -xw-x----- | |
| token-list.js | 2026-02-23 19:41 | 5.86 KB | 76129f60960:kunden | -xw-x----- | |
| token-list.min.js | 2026-02-23 19:41 | 1.27 KB | 76129f60960:kunden | -xw-x----- | |
| url.js | 2026-02-23 19:41 | 20.26 KB | 76129f60960:kunden | -xw-x----- | |
| url.min.js | 2026-02-23 19:41 | 8.33 KB | 76129f60960:kunden | -xw-x----- | |
| viewport.js | 2026-02-23 19:41 | 6.29 KB | 76129f60960:kunden | -xw-x----- | |
| viewport.min.js | 2026-02-23 19:41 | 1.83 KB | 76129f60960:kunden | -xw-x----- | |
| views.js | 2026-02-23 19:41 | 7.8 KB | 76129f60960:kunden | -xw-x----- | |
| views.min.js | 2026-02-23 19:41 | 2.68 KB | 76129f60960:kunden | -xw-x----- | |
| warning.js | 2026-02-23 19:41 | 1.6 KB | 76129f60960:kunden | -xw-x----- | |
| warning.min.js | 2026-02-23 19:41 | 303 B | 76129f60960:kunden | -xw-x----- | |
| widgets.js | 2026-02-23 19:41 | 47.61 KB | 76129f60960:kunden | -xw-x----- | |
| widgets.min.js | 2026-02-23 19:41 | 19.5 KB | 76129f60960:kunden | -xw-x----- | |
| wordcount.js | 2026-02-23 19:41 | 13.25 KB | 76129f60960:kunden | -xw-x----- | |
| wordcount.min.js | 2026-02-23 19:41 | 3.24 KB | 76129f60960:kunden | -xw-x----- | |