diff --git a/.editorconfig b/.editorconfig index 10b7ee6d..efbef8e9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,7 +11,10 @@ charset = utf-8 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true -indent_style = tab +indent_style = space +indent_size = 2 + +[*.php] [*.{yml,yaml}] indent_style = space diff --git a/.tours/fixing-existing-blocks.tour b/.tours/fixing-existing-blocks.tour new file mode 100644 index 00000000..7003bd3a --- /dev/null +++ b/.tours/fixing-existing-blocks.tour @@ -0,0 +1,119 @@ +{ + "$schema": "https://aka.ms/codetour-schema", + "title": "Fixing existing Blocks", + "steps": [ + { + "file": "package.json", + "description": "Step 1: Install all required dependencies by changing into the working directory in your terminal and running ```npm install```.", + "line": 38 + }, + { + "file": "package.json", + "description": "Step 2: Start the development process via ```npm run start``` - If you are finished with your changes, run ```npm run build-all``` (or ```npm run build``` )", + "line": 16 + }, + { + "file": "package.json", + "description": "Step 3: Make sure to bump up the version number and update it throughout the plugin via ```npm run update-version```. Readme.txt and readme.md need to be updated manually.", + "line": 3 + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "Blocks can be always found in the src/blocks-directory.\n\nThis is the Edit.tsx-File. This file controls the Editor behavior of the block.\nWe are using TypeScript to reduce errors during the development process.", + "line": 1 + }, + { + "file": "src/blocks/alert/editor.scss", + "description": "Styling for the backend. It imports the Frontent Styling partially from src/_shared/scss/alert.", + "line": 1 + }, + { + "file": "src/blocks/alert/index.tsx", + "description": "The index.tsx brings all together. We can see that we reference the edit.tsx and save.tsx in here", + "line": 35 + }, + { + "file": "src/blocks/alert/index.tsx", + "description": "We can also see, that there is a Transformation set via transforms.ts", + "line": 44 + }, + { + "file": "src/blocks/alert/block.json", + "description": "The attributes of the plugin. Whenever you change one of those, make sure that you remember to add a Deprecation via WordPress Deprecation API! This is mandatory (even if it is no fun)", + "line": 9 + }, + { + "file": "src/blocks/alert/block.json", + "description": "The textdomain of our plugin", + "line": 56 + }, + { + "file": "src/blocks/alert/save.tsx", + "description": "Our save-Function. It runs every time the Editor autosaves, or whenever a user opens the editor to retrieve the content.\nWhenever you change the save.tsx, remember to add a deprecation Array via WordPress Deprecation API. This is mandatory.\n\nDon't do complex computation inside the save.tsx. Instead rely on the attributes available.", + "line": 14 + }, + { + "file": "src/blocks/alert/transforms.ts", + "description": "transforms allow conversion from one block to another.", + "line": 22 + }, + { + "file": "src/blocks/alert/transforms.ts", + "description": "From shortcode [alert] to this block.", + "line": 25 + }, + { + "file": "src/blocks/alert/transforms.ts", + "description": "Or from paragraph-blocks to this block. Multi-Select allows selection of several paragraphs for example...\n\nThis is not mandatory. But it is nice to have to increase UX", + "line": 87 + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "Inside Edit.tsx return-statement we can see what components are used and output inside our block for the Editor-view.", + "line": 92 + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "InspectorControls as the Editor Sidebar panel", + "line": 94 + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "Containing a StandardColorSwitcher (a custom component)", + "line": 95 + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "WordPress' ContrastChecker Component", + "line": 104 + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "BlockControls, die Block-Werkzeugleiste über dem Block", + "line": 131 + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "Output of inner blocks via InnerBlocks. This allows interacting and adding other blocks inside the block's content.", + "line": 155 + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "This is used, to tell the BlockEditor to NOT create a Undo-Layer after updating the attribute.\n\nElse blocks might create a almost endless Undo-Layer-cycle which prevents users from going back via Ctrl+Z ", + "line": 84 + }, + { + "directory": "src/components", + "description": "All custom written components are stored inside src/components for global use inside the project." + }, + { + "directory": "src/stores", + "description": "All custom stores are placed inside src/stores. Redux." + }, + { + "file": "package.json", + "description": "Do not forget to ```npm run build-all``` or ```npm run build``` after adding your changes.", + "line": 17 + } + ] +} \ No newline at end of file diff --git a/assets/css/rrze-elements-blocks.css b/assets/css/rrze-elements-blocks.css index ba775348..63976dc0 100644 --- a/assets/css/rrze-elements-blocks.css +++ b/assets/css/rrze-elements-blocks.css @@ -8282,7 +8282,7 @@ readers do not read off random characters that represent icons */ font-style: normal; font-weight: 400; font-display: block; - src: url("../webfonts/fa-regular-400.woff2") format("woff2"), url("../webfonts/fa-regular-400.ttf") format("truetype"); + src: url("../../webfonts/fa-regular-400.woff2") format("woff2"), url("../../webfonts/fa-regular-400.ttf") format("truetype"); } .far, .fa-regular { @@ -8304,7 +8304,7 @@ readers do not read off random characters that represent icons */ font-style: normal; font-weight: 900; font-display: block; - src: url("../webfonts/fa-solid-900.woff2") format("woff2"), url("../webfonts/fa-solid-900.ttf") format("truetype"); + src: url("../../webfonts/fa-solid-900.woff2") format("woff2"), url("../../webfonts/fa-solid-900.ttf") format("truetype"); } .fas, .accordion .accordion-toggle.active:hover:before, .accordion .accordion-toggle.active:focus:before, .accordion .accordion-toggle:hover:before, .accordion .accordion-toggle:focus:before, .accordion .accordion-toggle.active:before, .accordion .accordion-toggle:before, .fa-solid { @@ -8326,7 +8326,7 @@ readers do not read off random characters that represent icons */ font-style: normal; font-weight: 400; font-display: block; - src: url("../webfonts/fa-brands-400.woff2") format("woff2"), url("../webfonts/fa-brands-400.ttf") format("truetype"); + src: url("../../webfonts/fa-brands-400.woff2") format("woff2"), url("../../webfonts/fa-brands-400.ttf") format("truetype"); } .fab, .fa-brands { diff --git a/build/blocks/accordion/index.asset.php b/build/blocks/accordion/index.asset.php index afde10cd..ad68957a 100644 --- a/build/blocks/accordion/index.asset.php +++ b/build/blocks/accordion/index.asset.php @@ -1 +1 @@ - array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'ffd6c375c8d3e6ce2a93'); + array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '39039fc8d7eec7b11b69'); diff --git a/build/blocks/accordion/index.js b/build/blocks/accordion/index.js index b1fdcecd..3defb2f0 100644 --- a/build/blocks/accordion/index.js +++ b/build/blocks/accordion/index.js @@ -1,3 +1,3 @@ -!function(){var e={293:function(e,r,t){"use strict";var n=window.wp.apiFetch,a=t.n(n),o=t(143);function i(e){return i="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},i(e)}function s(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--r){var t=this.tryEntries[r];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),C(t),y}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var a=n.arg;C(t)}return a}}throw Error("illegal catch attempt")},delegateYield:function(r,t,n){return this.delegate={iterator:A(r),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=e),y}},r}var c={jumpNames:[]},u={getJumpNames:function(){return{type:"GET_JUMP_NAMES"}},addJumpName:function(e,r){return{type:"ADD_JUMP_NAME",jumpName:e,clientId:r}},removeJumpName:function(e){return{type:"REMOVE_JUMP_NAME",jumpName:e}},removeJumpNameByClientId:function(e){return{type:"REMOVE_JUMP_NAME_BY_CLIENT_ID",clientId:e}},setJumpNames:function(e){return{type:"SET_JUMP_NAMES",jumpNames:e}}},h={getJumpNames:l().mark((function e(){var r,t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a()({path:"/rrze-elements-blocks/v1/jump-names"});case 3:return r=e.sent,t=Array.isArray(r)?r.filter((function(e){return e&&e.jumpName&&e.clientId})):[],e.next=7,u.setJumpNames(t);case 7:e.next=14;break;case 9:return e.prev=9,e.t0=e.catch(0),console.error("Error fetching jump names:",e.t0),e.next=14,u.setJumpNames([]);case 14:case"end":return e.stop()}}),e,null,[[0,9]])}))},d=(0,o.createReduxStore)("rrze/elements-blocks",{reducer:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_JUMP_NAME":return t.jumpName&&t.clientId?r.jumpNames.some((function(e){return e.jumpName===t.jumpName}))?r:Object.assign(Object.assign({},r),{jumpNames:[].concat((e=r.jumpNames,function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return s(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,r):void 0}}(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.")}()),[{jumpName:t.jumpName,clientId:t.clientId}])}):r;case"REMOVE_JUMP_NAME":return Object.assign(Object.assign({},r),{jumpNames:r.jumpNames.filter((function(e){return e.jumpName!==t.jumpName}))});case"REMOVE_JUMP_NAME_BY_CLIENT_ID":return Object.assign(Object.assign({},r),{jumpNames:r.jumpNames.filter((function(e){return e.clientId!==t.clientId}))});case"SET_JUMP_NAMES":return 0===t.jumpNames.length&&r.jumpNames.length>0?r:Object.assign(Object.assign({},r),{jumpNames:t.jumpNames});default:return r}},actions:u,selectors:{jumpNameExists:function(e,r){return e.jumpNames.some((function(e){return e.jumpName===r}))},getJumpNames:function(e){return e.jumpNames}},resolvers:h});window.__RRZE_ELEMENTS_BLOCKS_STORE_REGISTERED__||((0,o.register)(d),window.__RRZE_ELEMENTS_BLOCKS_STORE_REGISTERED__=!0)},659:function(e,r,t){const n=t(156),a={};for(const e of Object.keys(n))a[n[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:r,labels:t}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:r}),Object.defineProperty(o[e],"labels",{value:t})}o.rgb.hsl=function(e){const r=e[0]/255,t=e[1]/255,n=e[2]/255,a=Math.min(r,t,n),o=Math.max(r,t,n),i=o-a;let s,l;o===a?s=0:r===o?s=(t-n)/i:t===o?s=2+(n-r)/i:n===o&&(s=4+(r-t)/i),s=Math.min(60*s,360),s<0&&(s+=360);const c=(a+o)/2;return l=o===a?0:c<=.5?i/(o+a):i/(2-o-a),[s,100*l,100*c]},o.rgb.hsv=function(e){let r,t,n,a,o;const i=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(i,s,l),u=c-Math.min(i,s,l),h=function(e){return(c-e)/6/u+.5};return 0===u?(a=0,o=0):(o=u/c,r=h(i),t=h(s),n=h(l),i===c?a=n-t:s===c?a=1/3+r-n:l===c&&(a=2/3+t-r),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*c]},o.rgb.hwb=function(e){const r=e[0],t=e[1];let n=e[2];const a=o.rgb.hsl(e)[0],i=1/255*Math.min(r,Math.min(t,n));return n=1-1/255*Math.max(r,Math.max(t,n)),[a,100*i,100*n]},o.rgb.cmyk=function(e){const r=e[0]/255,t=e[1]/255,n=e[2]/255,a=Math.min(1-r,1-t,1-n);return[100*((1-r-a)/(1-a)||0),100*((1-t-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},o.rgb.keyword=function(e){const r=a[e];if(r)return r;let t,o=1/0;for(const r of Object.keys(n)){const a=(s=n[r],((i=e)[0]-s[0])**2+(i[1]-s[1])**2+(i[2]-s[2])**2);a.04045?((r+.055)/1.055)**2.4:r/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*r+.3576*t+.1805*n),100*(.2126*r+.7152*t+.0722*n),100*(.0193*r+.1192*t+.9505*n)]},o.rgb.lab=function(e){const r=o.rgb.xyz(e);let t=r[0],n=r[1],a=r[2];return t/=95.047,n/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*n-16,500*(t-n),200*(n-a)]},o.hsl.rgb=function(e){const r=e[0]/360,t=e[1]/100,n=e[2]/100;let a,o,i;if(0===t)return i=255*n,[i,i,i];a=n<.5?n*(1+t):n+t-n*t;const s=2*n-a,l=[0,0,0];for(let e=0;e<3;e++)o=r+1/3*-(e-1),o<0&&o++,o>1&&o--,i=6*o<1?s+6*(a-s)*o:2*o<1?a:3*o<2?s+(a-s)*(2/3-o)*6:s,l[e]=255*i;return l},o.hsl.hsv=function(e){const r=e[0];let t=e[1]/100,n=e[2]/100,a=t;const o=Math.max(n,.01);return n*=2,t*=n<=1?n:2-n,a*=o<=1?o:2-o,[r,100*(0===n?2*a/(o+a):2*t/(n+t)),(n+t)/2*100]},o.hsv.rgb=function(e){const r=e[0]/60,t=e[1]/100;let n=e[2]/100;const a=Math.floor(r)%6,o=r-Math.floor(r),i=255*n*(1-t),s=255*n*(1-t*o),l=255*n*(1-t*(1-o));switch(n*=255,a){case 0:return[n,l,i];case 1:return[s,n,i];case 2:return[i,n,l];case 3:return[i,s,n];case 4:return[l,i,n];case 5:return[n,i,s]}},o.hsv.hsl=function(e){const r=e[0],t=e[1]/100,n=e[2]/100,a=Math.max(n,.01);let o,i;i=(2-t)*n;const s=(2-t)*a;return o=t*a,o/=s<=1?s:2-s,o=o||0,i/=2,[r,100*o,100*i]},o.hwb.rgb=function(e){const r=e[0]/360;let t=e[1]/100,n=e[2]/100;const a=t+n;let o;a>1&&(t/=a,n/=a);const i=Math.floor(6*r),s=1-n;o=6*r-i,1&i&&(o=1-o);const l=t+o*(s-t);let c,u,h;switch(i){default:case 6:case 0:c=s,u=l,h=t;break;case 1:c=l,u=s,h=t;break;case 2:c=t,u=s,h=l;break;case 3:c=t,u=l,h=s;break;case 4:c=l,u=t,h=s;break;case 5:c=s,u=t,h=l}return[255*c,255*u,255*h]},o.cmyk.rgb=function(e){const r=e[0]/100,t=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},o.xyz.rgb=function(e){const r=e[0]/100,t=e[1]/100,n=e[2]/100;let a,o,i;return a=3.2406*r+-1.5372*t+-.4986*n,o=-.9689*r+1.8758*t+.0415*n,i=.0557*r+-.204*t+1.057*n,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),[255*a,255*o,255*i]},o.xyz.lab=function(e){let r=e[0],t=e[1],n=e[2];return r/=95.047,t/=100,n/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*t-16,500*(r-t),200*(t-n)]},o.lab.xyz=function(e){let r,t,n;t=(e[0]+16)/116,r=e[1]/500+t,n=t-e[2]/200;const a=t**3,o=r**3,i=n**3;return t=a>.008856?a:(t-16/116)/7.787,r=o>.008856?o:(r-16/116)/7.787,n=i>.008856?i:(n-16/116)/7.787,r*=95.047,t*=100,n*=108.883,[r,t,n]},o.lab.lch=function(e){const r=e[0],t=e[1],n=e[2];let a;return a=360*Math.atan2(n,t)/2/Math.PI,a<0&&(a+=360),[r,Math.sqrt(t*t+n*n),a]},o.lch.lab=function(e){const r=e[0],t=e[1],n=e[2]/360*2*Math.PI;return[r,t*Math.cos(n),t*Math.sin(n)]},o.rgb.ansi16=function(e,r=null){const[t,n,a]=e;let i=null===r?o.rgb.hsv(e)[2]:r;if(i=Math.round(i/50),0===i)return 30;let s=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(s+=60),s},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const r=e[0],t=e[1],n=e[2];return r===t&&t===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},o.ansi16.rgb=function(e){let r=e%10;if(0===r||7===r)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];const t=.5*(1+~~(e>50));return[(1&r)*t*255,(r>>1&1)*t*255,(r>>2&1)*t*255]},o.ansi256.rgb=function(e){if(e>=232){const r=10*(e-232)+8;return[r,r,r]}let r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},o.rgb.hex=function(e){const r=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(r.length)+r},o.hex.rgb=function(e){const r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let t=r[0];3===r[0].length&&(t=t.split("").map((e=>e+e)).join(""));const n=parseInt(t,16);return[n>>16&255,n>>8&255,255&n]},o.rgb.hcg=function(e){const r=e[0]/255,t=e[1]/255,n=e[2]/255,a=Math.max(Math.max(r,t),n),o=Math.min(Math.min(r,t),n),i=a-o;let s,l;return s=i<1?o/(1-i):0,l=i<=0?0:a===r?(t-n)/i%6:a===t?2+(n-r)/i:4+(r-t)/i,l/=6,l%=1,[360*l,100*i,100*s]},o.hsl.hcg=function(e){const r=e[1]/100,t=e[2]/100,n=t<.5?2*r*t:2*r*(1-t);let a=0;return n<1&&(a=(t-.5*n)/(1-n)),[e[0],100*n,100*a]},o.hsv.hcg=function(e){const r=e[1]/100,t=e[2]/100,n=r*t;let a=0;return n<1&&(a=(t-n)/(1-n)),[e[0],100*n,100*a]},o.hcg.rgb=function(e){const r=e[0]/360,t=e[1]/100,n=e[2]/100;if(0===t)return[255*n,255*n,255*n];const a=[0,0,0],o=r%1*6,i=o%1,s=1-i;let l=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=i,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=i;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=i,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return l=(1-t)*n,[255*(t*a[0]+l),255*(t*a[1]+l),255*(t*a[2]+l)]},o.hcg.hsv=function(e){const r=e[1]/100,t=r+e[2]/100*(1-r);let n=0;return t>0&&(n=r/t),[e[0],100*n,100*t]},o.hcg.hsl=function(e){const r=e[1]/100,t=e[2]/100*(1-r)+.5*r;let n=0;return t>0&&t<.5?n=r/(2*t):t>=.5&&t<1&&(n=r/(2*(1-t))),[e[0],100*n,100*t]},o.hcg.hwb=function(e){const r=e[1]/100,t=r+e[2]/100*(1-r);return[e[0],100*(t-r),100*(1-t)]},o.hwb.hcg=function(e){const r=e[1]/100,t=1-e[2]/100,n=t-r;let a=0;return n<1&&(a=(t-n)/(1-n)),[e[0],100*n,100*a]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const r=255&Math.round(e[0]/100*255),t=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},734:function(e,r,t){const n=t(659),a=t(507),o={};Object.keys(n).forEach((e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:n[e].channels}),Object.defineProperty(o[e],"labels",{value:n[e].labels});const r=a(e);Object.keys(r).forEach((t=>{const n=r[t];o[e][t]=function(e){const r=function(...r){const t=r[0];if(null==t)return t;t.length>1&&(r=t);const n=e(r);if("object"==typeof n)for(let e=n.length,r=0;r1&&(r=t),e(r))};return"conversion"in e&&(r.conversion=e.conversion),r}(n)}))})),e.exports=o},507:function(e,r,t){const n=t(659);function a(e,r){return function(t){return r(e(t))}}function o(e,r){const t=[r[e].parent,e];let o=n[r[e].parent][e],i=r[e].parent;for(;r[i].parent;)t.unshift(r[i].parent),o=a(n[r[i].parent][i],o),i=r[i].parent;return o.conversion=t,o}e.exports=function(e){const r=function(e){const r=function(){const e={},r=Object.keys(n);for(let t=r.length,n=0;n=4&&1!==e[3]&&(r=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+r+")"},l.to.keyword=function(e){return i[e.slice(0,3)]}},520:function(e,r,t){const n=t(854),a=t(734),o=["keyword","gray","hex"],i={};for(const e of Object.keys(a))i[[...a[e].labels].sort().join("")]=e;const s={};function l(e,r){if(!(this instanceof l))return new l(e,r);if(r&&r in o&&(r=null),r&&!(r in a))throw new Error("Unknown model: "+r);let t,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const r=n.get(e);if(null===r)throw new Error("Unable to parse color from string: "+e);this.model=r.model,c=a[this.model].channels,this.color=r.value.slice(0,c),this.valpha="number"==typeof r.value[c]?r.value[c]:1}else if(e.length>0){this.model=r||"rgb",c=a[this.model].channels;const t=Array.prototype.slice.call(e,0,c);this.color=d(t,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const r=Object.keys(e);"alpha"in e&&(r.splice(r.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=r.sort().join("");if(!(n in i))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=i[n];const{labels:o}=a[this.model],s=[];for(t=0;t(e%360+360)%360)),saturationl:u("hsl",1,h(100)),lightness:u("hsl",2,h(100)),saturationv:u("hsv",1,h(100)),value:u("hsv",2,h(100)),chroma:u("hcg",1,h(100)),gray:u("hcg",2,h(100)),white:u("hwb",1,h(100)),wblack:u("hwb",2,h(100)),cyan:u("cmyk",0,h(100)),magenta:u("cmyk",1,h(100)),yellow:u("cmyk",2,h(100)),black:u("cmyk",3,h(100)),x:u("xyz",0,h(95.047)),y:u("xyz",1,h(100)),z:u("xyz",2,h(108.833)),l:u("lab",0,h(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new l(e):a[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):n.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const r=this.rgb().round().color;let t=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===t.length&&(t="0"+t),n.to.hex(r)+t},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,r=[];for(const[t,n]of e.entries()){const e=n/255;r[t]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*r[0]+.7152*r[1]+.0722*r[2]},contrast(e){const r=this.luminosity(),t=e.luminosity();return r>t?(r+.05)/(t+.05):(t+.05)/(r+.05)},level(e){const r=this.contrast(e);return r>=7?"AAA":r>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let r=0;r<3;r++)e.color[r]=255-e.color[r];return e},lighten(e){const r=this.hsl();return r.color[2]+=r.color[2]*e,r},darken(e){const r=this.hsl();return r.color[2]-=r.color[2]*e,r},saturate(e){const r=this.hsl();return r.color[1]+=r.color[1]*e,r},desaturate(e){const r=this.hsl();return r.color[1]-=r.color[1]*e,r},whiten(e){const r=this.hwb();return r.color[1]+=r.color[1]*e,r},blacken(e){const r=this.hwb();return r.color[2]+=r.color[2]*e,r},grayscale(){const e=this.rgb().color,r=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(r,r,r)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const r=this.hsl();let t=r.color[0];return t=(t+e)%360,t=t<0?360+t:t,r.color[0]=t,r},mix(e,r){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const t=e.rgb(),n=this.rgb(),a=void 0===r?.5:r,o=2*a-1,i=t.alpha()-n.alpha(),s=((o*i==-1?o:(o+i)/(1+o*i))+1)/2,c=1-s;return l.rgb(s*t.red()+c*n.red(),s*t.green()+c*n.green(),s*t.blue()+c*n.blue(),t.alpha()*a+n.alpha()*(1-a))}};for(const e of Object.keys(a)){if(o.includes(e))continue;const{channels:r}=a[e];l.prototype[e]=function(...r){return this.model===e?new l(this):r.length>0?new l(r,e):new l([...(t=a[this.model][e].raw(this.color),Array.isArray(t)?t:[t]),this.valpha],e);var t},l[e]=function(...t){let n=t[0];return"number"==typeof n&&(n=d(t,r)),new l(n,e)}}function c(e){return function(r){return function(e,r){return Number(e.toFixed(r))}(r,e)}}function u(e,r,t){e=Array.isArray(e)?e:[e];for(const n of e)(s[n]||(s[n]=[]))[r]=t;return e=e[0],function(n){let a;return void 0!==n?(t&&(n=t(n)),a=this[e](),a.color[r]=n,a):(a=this[e]().color[r],t&&(a=t(a)),a)}}function h(e){return function(r){return Math.max(0,Math.min(e,r))}}function d(e,r){for(let t=0;t=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},143:function(e){"use strict";e.exports=window.wp.data}},r={};function t(n){var a=r[n];if(void 0!==a)return a.exports;var o=r[n]={exports:{}};return e[n](o,o.exports,t),o.exports}t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},t.d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){"use strict";var e=window.ReactJSXRuntime,r=window.wp.blocks,n=window.wp.i18n,a=window.wp.components,o=window.wp.blockEditor,i=window.wp.element,s=window.wp.primitives,l=(0,e.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(s.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),c=(0,e.jsx)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)(s.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})}),u=t(520),h=t.n(u),d=function(e,r){try{if(e)r({textColor:h()(e).isDark()?"#ffffff":""})}catch(e){console.error("Invalid color string provided to updateColorAttributes:",e)}},p=function(r){var t,i=r.attributes,s=r.setAttributes,l=r.hex,c=r.useStyle,u=r.customColor,h=void 0!==u&&u,p=r.useTextColor,m=void 0!==p&&p,f=r.overwriteThemeColors,b=void 0!==f&&f,y=r.clearButton,v=void 0!==y&&y,w=(b?null:(0,o.useSettings)("color.palette")[0])||g,k=l?i.color:null===(t=w.find((function(e){return e.slug===i.color})))||void 0===t?void 0:t.color;return(0,e.jsx)(a.PanelBody,{title:(0,n.__)("Color Settings","rrze-elements-blocks"),children:(0,e.jsx)(a.ColorPalette,{colors:w,value:k,onChange:function(e){return function(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=e.find((function(e){return e.color===r}));i&&n?(t({color:i.color}),d(r,t),a&&(t({style:i.slug}),d(r,t))):i?t({color:i.slug}):a&&(t({color:r,style:""}),o&&d(r,t))}(w,e,s,l,c,m)},disableCustomColors:!h,clearable:v})})},m=function(r){var t=r.attributes,i=r.setAttributes,s=r.colorData,l=void 0===s?g:s,u=r.useStyle,h=void 0!==u&&u,d=r.hex,p=void 0!==d&&d,m=r.overwriteThemeColors,f=(void 0!==m&&m?null:(0,o.useSettings)("color.palette")[0])||l,b="rrzeElementsBFakColorSelector";return t.color&&(b="rrzeElementsBFakColorSelector ".concat(p?t.color.slice(1):t.color)),(0,e.jsx)(a.ToolbarGroup,{children:(0,e.jsx)(a.ToolbarItem,{children:function(){return(0,e.jsx)(a.ToolbarDropdownMenu,{icon:c,className:b,label:(0,n.__)("Select a Color","rrze-elements-blocks"),controls:f.map((function(e){return{key:e.slug,title:e.name,icon:c,onClick:function(){return i({color:p?e.color:e.slug,style:h?e.slug:""})}}}))})}})})},g=[{color:"#04316A",slug:"",name:(0,n.__)("Central institution","rrze-elements-blocks")},{color:"#C50F3C",slug:"rw",name:(0,n.__)("Faculty of Business, Economics, and Law","rrze-elements-blocks")},{color:"#7bb725",slug:"nat",name:(0,n.__)("Faculty of Sciences","rrze-elements-blocks")},{color:"#18B4F1",slug:"med",name:(0,n.__)("Faculty of Medicine","rrze-elements-blocks")},{color:"#FDB735",slug:"phil",name:(0,n.__)("Faculty of Humanities, Social Sciences, and Theology","rrze-elements-blocks")},{color:"#8C9FB1",slug:"tf",name:(0,n.__)("Faculty of Engineering","rrze-elements-blocks")}],f=[{color:"#fff",slug:"inherit",name:(0,n.__)("Inherit color","rrze-elements-blocks")}].concat(g),b=function(r){return(0,e.jsx)(p,Object.assign({},r,{colorData:f}))},y=function(r){return(0,e.jsx)(m,Object.assign({},r,{colorData:f}))},v=function(r){var t=r.level,n=r.children,a=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);ae.length)&&(r=e.length);for(var t=0,n=Array(r);t0?(0,e.jsx)(a.__experimentalGrid,{columns:12,children:_.map((function(r){return(0,e.jsx)(a.Button,{isPressed:r.value===t.icon,onClick:function(){return F(r.value)},size:"compact",className:"elements-blocks-icon-Button",label:r.value.split(" ")[1],showTooltip:!0,children:(0,e.jsx)(E,{type:r.value.split(" ")[0],iconName:r.value.split(" ")[1],attributes:t,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:r.value})},r.value)}))}):(0,e.jsx)("p",{children:(0,n.__)("No icons found. Please try a different search term.","rrze-elements-blocks")})]})]}),(0,e.jsx)(a.__experimentalDivider,{}),(0,e.jsxs)(a.__experimentalSpacer,{paddingTop:"1rem",paddingBottom:"1rem",children:[(0,e.jsx)(a.__experimentalHeading,{children:(0,n.__)("Solid Icons","rrze-elements-blocks")}),(0,e.jsx)(a.__experimentalGrid,{columns:12,children:l.map((function(r){return(0,e.jsx)(a.Button,{isPressed:r.value===t.icon,onClick:function(){return F(r.value)},size:"compact",className:"elements-blocks-icon-Button",label:r.value.split(" ")[1],showTooltip:!0,children:(0,e.jsx)(E,{type:r.value.split(" ")[0],iconName:r.value.split(" ")[1],attributes:t,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:r.value})},r.value)}))})]}),(0,e.jsx)(a.__experimentalDivider,{}),(0,e.jsxs)(a.__experimentalSpacer,{paddingTop:"1rem",paddingBottom:"1rem",children:[(0,e.jsx)(a.__experimentalHeading,{children:(0,n.__)("Regular Icons","rrze-elements-blocks")}),(0,e.jsx)(a.__experimentalGrid,{columns:12,children:h.map((function(r){return(0,e.jsx)(a.Button,{isPressed:r.value===t.icon,onClick:function(){return F(r.value)},size:"compact",className:"elements-blocks-icon-Button",label:r.value.split(" ")[1],showTooltip:!0,children:(0,e.jsx)(E,{type:r.value.split(" ")[0],iconName:r.value.split(" ")[1],attributes:t,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:r.value})},r.value)}))})]}),(0,e.jsx)(a.__experimentalDivider,{}),(0,e.jsxs)(a.__experimentalSpacer,{paddingTop:"1rem",paddingBottom:"1rem",children:[(0,e.jsx)(a.__experimentalHeading,{children:(0,n.__)("Brand Icons","rrze-elements-blocks")}),(0,e.jsx)(a.__experimentalGrid,{columns:12,children:m.map((function(r){return(0,e.jsx)(a.Button,{isPressed:r.value===t.icon,onClick:function(){return F(r.value)},size:"compact",className:"elements-blocks-icon-Button",label:r.value.split(" ")[1],showTooltip:!0,children:(0,e.jsx)(E,{type:r.value.split(" ")[0],iconName:r.value.split(" ")[1],attributes:t,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:r.value})},r.value)}))})]}),(0,e.jsx)(a.__experimentalSpacer,{paddingBottom:"1rem",children:(0,e.jsx)(a.__experimentalDivider,{})})]})})),E=function(r){var t=r.attributes,n=r.className,a=void 0===n?"":n,o=r.onClick,i=r.iconValue,s=void 0===i?"":i,l=function(){o&&o()},c=s.split(" ")[0]||"",u=s.split(" ")[1]||"";return""===s?(0,e.jsx)("span",{className:"".concat(t.svgString," ").concat(a),onClick:l}):(0,e.jsx)("span",{className:"fa-".concat(c," fa-").concat(u," ").concat(a),onClick:l})},M=t(143);function C(e){if(!e)return"";var r=e.toLowerCase();return(r=r.replace(/ö/g,"oe").replace(/ä/g,"ae").replace(/ü/g,"ue").replace(/ß/g,"ss")).replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}t(293);var O=(0,e.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(s.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})});function A(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,i,s=[],l=!0,c=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=o.call(t)).done)&&(s.push(n.value),s.length!==r);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}(e,r)||function(e,r){if(e){if("string"==typeof e)return B(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?B(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);te.length)&&(r=e.length);for(var t=0,n=Array(r);te.length)&&(r=e.length);for(var t=0,n=Array(r);t=0;--o){var s=this.tryEntries[o],i=s.completion;if("root"===s.tryLoc)return a("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--r){var t=this.tryEntries[r];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),C(t),y}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var a=n.arg;C(t)}return a}}throw Error("illegal catch attempt")},delegateYield:function(r,t,n){return this.delegate={iterator:A(r),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=e),y}},r}var c={jumpNames:[]},u={getJumpNames:function(){return{type:"GET_JUMP_NAMES"}},addJumpName:function(e,r){return{type:"ADD_JUMP_NAME",jumpName:e,clientId:r}},removeJumpName:function(e){return{type:"REMOVE_JUMP_NAME",jumpName:e}},removeJumpNameByClientId:function(e){return{type:"REMOVE_JUMP_NAME_BY_CLIENT_ID",clientId:e}},setJumpNames:function(e){return{type:"SET_JUMP_NAMES",jumpNames:e}}},h={getJumpNames:l().mark((function e(){var r,t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a()({path:"/rrze-elements-blocks/v1/jump-names"});case 3:return r=e.sent,t=Array.isArray(r)?r.filter((function(e){return e&&e.jumpName&&e.clientId})):[],e.next=7,u.setJumpNames(t);case 7:e.next=14;break;case 9:return e.prev=9,e.t0=e.catch(0),console.error("Error fetching jump names:",e.t0),e.next=14,u.setJumpNames([]);case 14:case"end":return e.stop()}}),e,null,[[0,9]])}))},d=(0,o.createReduxStore)("rrze/elements-blocks",{reducer:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_JUMP_NAME":return t.jumpName&&t.clientId?r.jumpNames.some((function(e){return e.jumpName===t.jumpName}))?r:Object.assign(Object.assign({},r),{jumpNames:[].concat((e=r.jumpNames,function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return i(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,r):void 0}}(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.")}()),[{jumpName:t.jumpName,clientId:t.clientId}])}):r;case"REMOVE_JUMP_NAME":return Object.assign(Object.assign({},r),{jumpNames:r.jumpNames.filter((function(e){return e.jumpName!==t.jumpName}))});case"REMOVE_JUMP_NAME_BY_CLIENT_ID":return Object.assign(Object.assign({},r),{jumpNames:r.jumpNames.filter((function(e){return e.clientId!==t.clientId}))});case"SET_JUMP_NAMES":return 0===t.jumpNames.length&&r.jumpNames.length>0?r:Object.assign(Object.assign({},r),{jumpNames:t.jumpNames});default:return r}},actions:u,selectors:{jumpNameExists:function(e,r){return e.jumpNames.some((function(e){return e.jumpName===r}))},getJumpNames:function(e){return e.jumpNames}},resolvers:h});window.__RRZE_ELEMENTS_BLOCKS_STORE_REGISTERED__||((0,o.register)(d),window.__RRZE_ELEMENTS_BLOCKS_STORE_REGISTERED__=!0)},659:function(e,r,t){const n=t(156),a={};for(const e of Object.keys(n))a[n[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:r,labels:t}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:r}),Object.defineProperty(o[e],"labels",{value:t})}o.rgb.hsl=function(e){const r=e[0]/255,t=e[1]/255,n=e[2]/255,a=Math.min(r,t,n),o=Math.max(r,t,n),s=o-a;let i,l;o===a?i=0:r===o?i=(t-n)/s:t===o?i=2+(n-r)/s:n===o&&(i=4+(r-t)/s),i=Math.min(60*i,360),i<0&&(i+=360);const c=(a+o)/2;return l=o===a?0:c<=.5?s/(o+a):s/(2-o-a),[i,100*l,100*c]},o.rgb.hsv=function(e){let r,t,n,a,o;const s=e[0]/255,i=e[1]/255,l=e[2]/255,c=Math.max(s,i,l),u=c-Math.min(s,i,l),h=function(e){return(c-e)/6/u+.5};return 0===u?(a=0,o=0):(o=u/c,r=h(s),t=h(i),n=h(l),s===c?a=n-t:i===c?a=1/3+r-n:l===c&&(a=2/3+t-r),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*c]},o.rgb.hwb=function(e){const r=e[0],t=e[1];let n=e[2];const a=o.rgb.hsl(e)[0],s=1/255*Math.min(r,Math.min(t,n));return n=1-1/255*Math.max(r,Math.max(t,n)),[a,100*s,100*n]},o.rgb.cmyk=function(e){const r=e[0]/255,t=e[1]/255,n=e[2]/255,a=Math.min(1-r,1-t,1-n);return[100*((1-r-a)/(1-a)||0),100*((1-t-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},o.rgb.keyword=function(e){const r=a[e];if(r)return r;let t,o=1/0;for(const r of Object.keys(n)){const a=(i=n[r],((s=e)[0]-i[0])**2+(s[1]-i[1])**2+(s[2]-i[2])**2);a.04045?((r+.055)/1.055)**2.4:r/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*r+.3576*t+.1805*n),100*(.2126*r+.7152*t+.0722*n),100*(.0193*r+.1192*t+.9505*n)]},o.rgb.lab=function(e){const r=o.rgb.xyz(e);let t=r[0],n=r[1],a=r[2];return t/=95.047,n/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*n-16,500*(t-n),200*(n-a)]},o.hsl.rgb=function(e){const r=e[0]/360,t=e[1]/100,n=e[2]/100;let a,o,s;if(0===t)return s=255*n,[s,s,s];a=n<.5?n*(1+t):n+t-n*t;const i=2*n-a,l=[0,0,0];for(let e=0;e<3;e++)o=r+1/3*-(e-1),o<0&&o++,o>1&&o--,s=6*o<1?i+6*(a-i)*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,l[e]=255*s;return l},o.hsl.hsv=function(e){const r=e[0];let t=e[1]/100,n=e[2]/100,a=t;const o=Math.max(n,.01);return n*=2,t*=n<=1?n:2-n,a*=o<=1?o:2-o,[r,100*(0===n?2*a/(o+a):2*t/(n+t)),(n+t)/2*100]},o.hsv.rgb=function(e){const r=e[0]/60,t=e[1]/100;let n=e[2]/100;const a=Math.floor(r)%6,o=r-Math.floor(r),s=255*n*(1-t),i=255*n*(1-t*o),l=255*n*(1-t*(1-o));switch(n*=255,a){case 0:return[n,l,s];case 1:return[i,n,s];case 2:return[s,n,l];case 3:return[s,i,n];case 4:return[l,s,n];case 5:return[n,s,i]}},o.hsv.hsl=function(e){const r=e[0],t=e[1]/100,n=e[2]/100,a=Math.max(n,.01);let o,s;s=(2-t)*n;const i=(2-t)*a;return o=t*a,o/=i<=1?i:2-i,o=o||0,s/=2,[r,100*o,100*s]},o.hwb.rgb=function(e){const r=e[0]/360;let t=e[1]/100,n=e[2]/100;const a=t+n;let o;a>1&&(t/=a,n/=a);const s=Math.floor(6*r),i=1-n;o=6*r-s,1&s&&(o=1-o);const l=t+o*(i-t);let c,u,h;switch(s){default:case 6:case 0:c=i,u=l,h=t;break;case 1:c=l,u=i,h=t;break;case 2:c=t,u=i,h=l;break;case 3:c=t,u=l,h=i;break;case 4:c=l,u=t,h=i;break;case 5:c=i,u=t,h=l}return[255*c,255*u,255*h]},o.cmyk.rgb=function(e){const r=e[0]/100,t=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},o.xyz.rgb=function(e){const r=e[0]/100,t=e[1]/100,n=e[2]/100;let a,o,s;return a=3.2406*r+-1.5372*t+-.4986*n,o=-.9689*r+1.8758*t+.0415*n,s=.0557*r+-.204*t+1.057*n,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*a,255*o,255*s]},o.xyz.lab=function(e){let r=e[0],t=e[1],n=e[2];return r/=95.047,t/=100,n/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*t-16,500*(r-t),200*(t-n)]},o.lab.xyz=function(e){let r,t,n;t=(e[0]+16)/116,r=e[1]/500+t,n=t-e[2]/200;const a=t**3,o=r**3,s=n**3;return t=a>.008856?a:(t-16/116)/7.787,r=o>.008856?o:(r-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,r*=95.047,t*=100,n*=108.883,[r,t,n]},o.lab.lch=function(e){const r=e[0],t=e[1],n=e[2];let a;return a=360*Math.atan2(n,t)/2/Math.PI,a<0&&(a+=360),[r,Math.sqrt(t*t+n*n),a]},o.lch.lab=function(e){const r=e[0],t=e[1],n=e[2]/360*2*Math.PI;return[r,t*Math.cos(n),t*Math.sin(n)]},o.rgb.ansi16=function(e,r=null){const[t,n,a]=e;let s=null===r?o.rgb.hsv(e)[2]:r;if(s=Math.round(s/50),0===s)return 30;let i=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===s&&(i+=60),i},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const r=e[0],t=e[1],n=e[2];return r===t&&t===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},o.ansi16.rgb=function(e){let r=e%10;if(0===r||7===r)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];const t=.5*(1+~~(e>50));return[(1&r)*t*255,(r>>1&1)*t*255,(r>>2&1)*t*255]},o.ansi256.rgb=function(e){if(e>=232){const r=10*(e-232)+8;return[r,r,r]}let r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},o.rgb.hex=function(e){const r=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(r.length)+r},o.hex.rgb=function(e){const r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let t=r[0];3===r[0].length&&(t=t.split("").map((e=>e+e)).join(""));const n=parseInt(t,16);return[n>>16&255,n>>8&255,255&n]},o.rgb.hcg=function(e){const r=e[0]/255,t=e[1]/255,n=e[2]/255,a=Math.max(Math.max(r,t),n),o=Math.min(Math.min(r,t),n),s=a-o;let i,l;return i=s<1?o/(1-s):0,l=s<=0?0:a===r?(t-n)/s%6:a===t?2+(n-r)/s:4+(r-t)/s,l/=6,l%=1,[360*l,100*s,100*i]},o.hsl.hcg=function(e){const r=e[1]/100,t=e[2]/100,n=t<.5?2*r*t:2*r*(1-t);let a=0;return n<1&&(a=(t-.5*n)/(1-n)),[e[0],100*n,100*a]},o.hsv.hcg=function(e){const r=e[1]/100,t=e[2]/100,n=r*t;let a=0;return n<1&&(a=(t-n)/(1-n)),[e[0],100*n,100*a]},o.hcg.rgb=function(e){const r=e[0]/360,t=e[1]/100,n=e[2]/100;if(0===t)return[255*n,255*n,255*n];const a=[0,0,0],o=r%1*6,s=o%1,i=1-s;let l=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=i,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=i,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=i}return l=(1-t)*n,[255*(t*a[0]+l),255*(t*a[1]+l),255*(t*a[2]+l)]},o.hcg.hsv=function(e){const r=e[1]/100,t=r+e[2]/100*(1-r);let n=0;return t>0&&(n=r/t),[e[0],100*n,100*t]},o.hcg.hsl=function(e){const r=e[1]/100,t=e[2]/100*(1-r)+.5*r;let n=0;return t>0&&t<.5?n=r/(2*t):t>=.5&&t<1&&(n=r/(2*(1-t))),[e[0],100*n,100*t]},o.hcg.hwb=function(e){const r=e[1]/100,t=r+e[2]/100*(1-r);return[e[0],100*(t-r),100*(1-t)]},o.hwb.hcg=function(e){const r=e[1]/100,t=1-e[2]/100,n=t-r;let a=0;return n<1&&(a=(t-n)/(1-n)),[e[0],100*n,100*a]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const r=255&Math.round(e[0]/100*255),t=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},734:function(e,r,t){const n=t(659),a=t(507),o={};Object.keys(n).forEach((e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:n[e].channels}),Object.defineProperty(o[e],"labels",{value:n[e].labels});const r=a(e);Object.keys(r).forEach((t=>{const n=r[t];o[e][t]=function(e){const r=function(...r){const t=r[0];if(null==t)return t;t.length>1&&(r=t);const n=e(r);if("object"==typeof n)for(let e=n.length,r=0;r1&&(r=t),e(r))};return"conversion"in e&&(r.conversion=e.conversion),r}(n)}))})),e.exports=o},507:function(e,r,t){const n=t(659);function a(e,r){return function(t){return r(e(t))}}function o(e,r){const t=[r[e].parent,e];let o=n[r[e].parent][e],s=r[e].parent;for(;r[s].parent;)t.unshift(r[s].parent),o=a(n[r[s].parent][s],o),s=r[s].parent;return o.conversion=t,o}e.exports=function(e){const r=function(e){const r=function(){const e={},r=Object.keys(n);for(let t=r.length,n=0;n=4&&1!==e[3]&&(r=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+r+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},520:function(e,r,t){const n=t(854),a=t(734),o=["keyword","gray","hex"],s={};for(const e of Object.keys(a))s[[...a[e].labels].sort().join("")]=e;const i={};function l(e,r){if(!(this instanceof l))return new l(e,r);if(r&&r in o&&(r=null),r&&!(r in a))throw new Error("Unknown model: "+r);let t,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const r=n.get(e);if(null===r)throw new Error("Unable to parse color from string: "+e);this.model=r.model,c=a[this.model].channels,this.color=r.value.slice(0,c),this.valpha="number"==typeof r.value[c]?r.value[c]:1}else if(e.length>0){this.model=r||"rgb",c=a[this.model].channels;const t=Array.prototype.slice.call(e,0,c);this.color=d(t,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const r=Object.keys(e);"alpha"in e&&(r.splice(r.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=r.sort().join("");if(!(n in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[n];const{labels:o}=a[this.model],i=[];for(t=0;t(e%360+360)%360)),saturationl:u("hsl",1,h(100)),lightness:u("hsl",2,h(100)),saturationv:u("hsv",1,h(100)),value:u("hsv",2,h(100)),chroma:u("hcg",1,h(100)),gray:u("hcg",2,h(100)),white:u("hwb",1,h(100)),wblack:u("hwb",2,h(100)),cyan:u("cmyk",0,h(100)),magenta:u("cmyk",1,h(100)),yellow:u("cmyk",2,h(100)),black:u("cmyk",3,h(100)),x:u("xyz",0,h(95.047)),y:u("xyz",1,h(100)),z:u("xyz",2,h(108.833)),l:u("lab",0,h(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new l(e):a[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):n.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const r=this.rgb().round().color;let t=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===t.length&&(t="0"+t),n.to.hex(r)+t},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,r=[];for(const[t,n]of e.entries()){const e=n/255;r[t]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*r[0]+.7152*r[1]+.0722*r[2]},contrast(e){const r=this.luminosity(),t=e.luminosity();return r>t?(r+.05)/(t+.05):(t+.05)/(r+.05)},level(e){const r=this.contrast(e);return r>=7?"AAA":r>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let r=0;r<3;r++)e.color[r]=255-e.color[r];return e},lighten(e){const r=this.hsl();return r.color[2]+=r.color[2]*e,r},darken(e){const r=this.hsl();return r.color[2]-=r.color[2]*e,r},saturate(e){const r=this.hsl();return r.color[1]+=r.color[1]*e,r},desaturate(e){const r=this.hsl();return r.color[1]-=r.color[1]*e,r},whiten(e){const r=this.hwb();return r.color[1]+=r.color[1]*e,r},blacken(e){const r=this.hwb();return r.color[2]+=r.color[2]*e,r},grayscale(){const e=this.rgb().color,r=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(r,r,r)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const r=this.hsl();let t=r.color[0];return t=(t+e)%360,t=t<0?360+t:t,r.color[0]=t,r},mix(e,r){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const t=e.rgb(),n=this.rgb(),a=void 0===r?.5:r,o=2*a-1,s=t.alpha()-n.alpha(),i=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,c=1-i;return l.rgb(i*t.red()+c*n.red(),i*t.green()+c*n.green(),i*t.blue()+c*n.blue(),t.alpha()*a+n.alpha()*(1-a))}};for(const e of Object.keys(a)){if(o.includes(e))continue;const{channels:r}=a[e];l.prototype[e]=function(...r){return this.model===e?new l(this):r.length>0?new l(r,e):new l([...(t=a[this.model][e].raw(this.color),Array.isArray(t)?t:[t]),this.valpha],e);var t},l[e]=function(...t){let n=t[0];return"number"==typeof n&&(n=d(t,r)),new l(n,e)}}function c(e){return function(r){return function(e,r){return Number(e.toFixed(r))}(r,e)}}function u(e,r,t){e=Array.isArray(e)?e:[e];for(const n of e)(i[n]||(i[n]=[]))[r]=t;return e=e[0],function(n){let a;return void 0!==n?(t&&(n=t(n)),a=this[e](),a.color[r]=n,a):(a=this[e]().color[r],t&&(a=t(a)),a)}}function h(e){return function(r){return Math.max(0,Math.min(e,r))}}function d(e,r){for(let t=0;t=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},143:function(e){"use strict";e.exports=window.wp.data}},r={};function t(n){var a=r[n];if(void 0!==a)return a.exports;var o=r[n]={exports:{}};return e[n](o,o.exports,t),o.exports}t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},t.d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){"use strict";var e=window.ReactJSXRuntime,r=window.wp.blocks,n=window.wp.i18n,a=window.wp.components,o=window.wp.blockEditor,s=window.wp.element,i=window.wp.primitives,l=(0,e.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(i.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),c=(0,e.jsx)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)(i.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})}),u=t(520),h=t.n(u),d=function(e,r){try{if(e)r({textColor:h()(e).isDark()?"#ffffff":""})}catch(e){console.error("Invalid color string provided to updateColorAttributes:",e)}},p=function(r){var t,s=r.attributes,i=r.setAttributes,l=r.hex,c=r.useStyle,u=r.customColor,h=void 0!==u&&u,p=r.useTextColor,m=void 0!==p&&p,f=r.overwriteThemeColors,b=void 0!==f&&f,y=r.clearButton,v=void 0!==y&&y,w=(b?null:(0,o.useSettings)("color.palette")[0])||g,k=l?s.color:null===(t=w.find((function(e){return e.slug===s.color})))||void 0===t?void 0:t.color;return(0,e.jsx)(a.PanelBody,{title:(0,n.__)("Color Settings","rrze-elements-blocks"),children:(0,e.jsx)(a.ColorPalette,{colors:w,value:k,onChange:function(e){return function(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e.find((function(e){return e.color===r}));s&&n?(t({color:s.color}),d(r,t),a&&(t({style:s.slug}),d(r,t))):s?t({color:s.slug}):a&&(t({color:r,style:""}),o&&d(r,t))}(w,e,i,l,c,m)},disableCustomColors:!h,clearable:v})})},m=function(r){var t=r.attributes,s=r.setAttributes,i=r.colorData,l=void 0===i?g:i,u=r.useStyle,h=void 0!==u&&u,d=r.hex,p=void 0!==d&&d,m=r.overwriteThemeColors,f=(void 0!==m&&m?null:(0,o.useSettings)("color.palette")[0])||l,b="rrzeElementsBFakColorSelector";return t.color&&(b="rrzeElementsBFakColorSelector ".concat(p?t.color.slice(1):t.color)),(0,e.jsx)(a.ToolbarGroup,{children:(0,e.jsx)(a.ToolbarItem,{children:function(){return(0,e.jsx)(a.ToolbarDropdownMenu,{icon:c,className:b,label:(0,n.__)("Select a Color","rrze-elements-blocks"),controls:f.map((function(e){return{key:e.slug,title:e.name,icon:c,onClick:function(){return s({color:p?e.color:e.slug,style:h?e.slug:""})}}}))})}})})},g=[{color:"#04316A",slug:"",name:(0,n.__)("Central institution","rrze-elements-blocks")},{color:"#C50F3C",slug:"rw",name:(0,n.__)("Faculty of Business, Economics, and Law","rrze-elements-blocks")},{color:"#7bb725",slug:"nat",name:(0,n.__)("Faculty of Sciences","rrze-elements-blocks")},{color:"#18B4F1",slug:"med",name:(0,n.__)("Faculty of Medicine","rrze-elements-blocks")},{color:"#FDB735",slug:"phil",name:(0,n.__)("Faculty of Humanities, Social Sciences, and Theology","rrze-elements-blocks")},{color:"#8C9FB1",slug:"tf",name:(0,n.__)("Faculty of Engineering","rrze-elements-blocks")}],f=[{color:"#fff",slug:"inherit",name:(0,n.__)("Inherit color","rrze-elements-blocks")}].concat(g),b=function(r){return(0,e.jsx)(p,Object.assign({},r,{colorData:f}))},y=function(r){return(0,e.jsx)(m,Object.assign({},r,{colorData:f}))},v=function(r){var t=r.level,n=r.children,a=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);ae.length)&&(r=e.length);for(var t=0,n=Array(r);t0?(0,e.jsx)(a.__experimentalGrid,{columns:12,children:_.map((function(r){return(0,e.jsx)(a.Button,{isPressed:r.value===t.icon,onClick:function(){return P(r.value)},size:"compact",className:"elements-blocks-icon-Button",label:r.value.split(" ")[1],showTooltip:!0,children:(0,e.jsx)(M,{type:r.value.split(" ")[0],iconName:r.value.split(" ")[1],attributes:t,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:r.value})},r.value)}))}):(0,e.jsx)("p",{children:(0,n.__)("No icons found. Please try a different search term.","rrze-elements-blocks")})]})]}),(0,e.jsx)(a.__experimentalDivider,{}),(0,e.jsxs)(a.__experimentalSpacer,{paddingTop:"1rem",paddingBottom:"1rem",children:[(0,e.jsx)(a.__experimentalHeading,{children:(0,n.__)("Solid Icons","rrze-elements-blocks")}),(0,e.jsx)(a.__experimentalGrid,{columns:12,children:l.map((function(r){return(0,e.jsx)(a.Button,{isPressed:r.value===t.icon,onClick:function(){return P(r.value)},size:"compact",className:"elements-blocks-icon-Button",label:r.value.split(" ")[1],showTooltip:!0,children:(0,e.jsx)(M,{type:r.value.split(" ")[0],iconName:r.value.split(" ")[1],attributes:t,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:r.value})},r.value)}))})]}),(0,e.jsx)(a.__experimentalDivider,{}),(0,e.jsxs)(a.__experimentalSpacer,{paddingTop:"1rem",paddingBottom:"1rem",children:[(0,e.jsx)(a.__experimentalHeading,{children:(0,n.__)("Regular Icons","rrze-elements-blocks")}),(0,e.jsx)(a.__experimentalGrid,{columns:12,children:h.map((function(r){return(0,e.jsx)(a.Button,{isPressed:r.value===t.icon,onClick:function(){return P(r.value)},size:"compact",className:"elements-blocks-icon-Button",label:r.value.split(" ")[1],showTooltip:!0,children:(0,e.jsx)(M,{type:r.value.split(" ")[0],iconName:r.value.split(" ")[1],attributes:t,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:r.value})},r.value)}))})]}),(0,e.jsx)(a.__experimentalDivider,{}),(0,e.jsxs)(a.__experimentalSpacer,{paddingTop:"1rem",paddingBottom:"1rem",children:[(0,e.jsx)(a.__experimentalHeading,{children:(0,n.__)("Brand Icons","rrze-elements-blocks")}),(0,e.jsx)(a.__experimentalGrid,{columns:12,children:m.map((function(r){return(0,e.jsx)(a.Button,{isPressed:r.value===t.icon,onClick:function(){return P(r.value)},size:"compact",className:"elements-blocks-icon-Button",label:r.value.split(" ")[1],showTooltip:!0,children:(0,e.jsx)(M,{type:r.value.split(" ")[0],iconName:r.value.split(" ")[1],attributes:t,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:r.value})},r.value)}))})]}),(0,e.jsx)(a.__experimentalSpacer,{paddingBottom:"1rem",children:(0,e.jsx)(a.__experimentalDivider,{})})]})})),M=function(r){var t=r.attributes,n=r.className,a=void 0===n?"":n,o=r.onClick,s=r.iconValue,i=void 0===s?"":s,l=function(){o&&o()},c=i.split(" ")[0]||"",u=i.split(" ")[1]||"";return""===i?(0,e.jsx)("span",{className:"".concat(t.svgString," ").concat(a),onClick:l}):(0,e.jsx)("span",{className:"fa-".concat(c," fa-").concat(u," ").concat(a),onClick:l})},E=t(143);function C(e){if(!e)return"";var r=e.toLowerCase();return(r=r.replace(/ö/g,"oe").replace(/ä/g,"ae").replace(/ü/g,"ue").replace(/ß/g,"ss")).replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}t(293);var O=(0,e.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(i.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})});function A(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,s,i=[],l=!0,c=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=o.call(t)).done)&&(i.push(n.value),i.length!==r);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(c)throw a}}return i}}(e,r)||function(e,r){if(e){if("string"==typeof e)return B(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?B(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);te.length)&&(r=e.length);for(var t=0,n=Array(r);t array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n', 'wp-primitives'), 'version' => '2a02814b15d442e14fec'); + array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n', 'wp-primitives'), 'version' => '668576fe9525bf90eaa1'); diff --git a/build/blocks/alert/index.js b/build/blocks/alert/index.js index 14c9bc87..14073f63 100644 --- a/build/blocks/alert/index.js +++ b/build/blocks/alert/index.js @@ -1 +1 @@ -!function(){var e={659:function(e,t,r){const n=r(156),o={};for(const e of Object.keys(n))o[n[e]]=e;const l={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=l;for(const e of Object.keys(l)){if(!("channels"in l[e]))throw new Error("missing channels property: "+e);if(!("labels"in l[e]))throw new Error("missing channel labels property: "+e);if(l[e].labels.length!==l[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=l[e];delete l[e].channels,delete l[e].labels,Object.defineProperty(l[e],"channels",{value:t}),Object.defineProperty(l[e],"labels",{value:r})}l.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),l=Math.max(t,r,n),s=l-o;let a,c;l===o?a=0:t===l?a=(r-n)/s:r===l?a=2+(n-t)/s:n===l&&(a=4+(t-r)/s),a=Math.min(60*a,360),a<0&&(a+=360);const i=(o+l)/2;return c=l===o?0:i<=.5?s/(l+o):s/(2-l-o),[a,100*c,100*i]},l.rgb.hsv=function(e){let t,r,n,o,l;const s=e[0]/255,a=e[1]/255,c=e[2]/255,i=Math.max(s,a,c),u=i-Math.min(s,a,c),h=function(e){return(i-e)/6/u+.5};return 0===u?(o=0,l=0):(l=u/i,t=h(s),r=h(a),n=h(c),s===i?o=n-r:a===i?o=1/3+t-n:c===i&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*l,100*i]},l.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const o=l.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,100*s,100*n]},l.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n);return[100*((1-t-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},l.rgb.keyword=function(e){const t=o[e];if(t)return t;let r,l=1/0;for(const t of Object.keys(n)){const o=(a=n[t],((s=e)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);o.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},l.rgb.lab=function(e){const t=l.rgb.xyz(e);let r=t[0],n=t[1],o=t[2];return r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*n-16,500*(r-n),200*(n-o)]},l.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let o,l,s;if(0===r)return s=255*n,[s,s,s];o=n<.5?n*(1+r):n+r-n*r;const a=2*n-o,c=[0,0,0];for(let e=0;e<3;e++)l=t+1/3*-(e-1),l<0&&l++,l>1&&l--,s=6*l<1?a+6*(o-a)*l:2*l<1?o:3*l<2?a+(o-a)*(2/3-l)*6:a,c[e]=255*s;return c},l.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,o=r;const l=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,o*=l<=1?l:2-l,[t,100*(0===n?2*o/(l+o):2*r/(n+r)),(n+r)/2*100]},l.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const o=Math.floor(t)%6,l=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*l),c=255*n*(1-r*(1-l));switch(n*=255,o){case 0:return[n,c,s];case 1:return[a,n,s];case 2:return[s,n,c];case 3:return[s,a,n];case 4:return[c,s,n];case 5:return[n,s,a]}},l.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01);let l,s;s=(2-r)*n;const a=(2-r)*o;return l=r*o,l/=a<=1?a:2-a,l=l||0,s/=2,[t,100*l,100*s]},l.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const o=r+n;let l;o>1&&(r/=o,n/=o);const s=Math.floor(6*t),a=1-n;l=6*t-s,1&s&&(l=1-l);const c=r+l*(a-r);let i,u,h;switch(s){default:case 6:case 0:i=a,u=c,h=r;break;case 1:i=c,u=a,h=r;break;case 2:i=r,u=a,h=c;break;case 3:i=r,u=c,h=a;break;case 4:i=c,u=r,h=a;break;case 5:i=a,u=r,h=c}return[255*i,255*u,255*h]},l.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},l.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let o,l,s;return o=3.2406*t+-1.5372*r+-.4986*n,l=-.9689*t+1.8758*r+.0415*n,s=.0557*t+-.204*r+1.057*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),l=Math.min(Math.max(0,l),1),s=Math.min(Math.max(0,s),1),[255*o,255*l,255*s]},l.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];return t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*r-16,500*(t-r),200*(r-n)]},l.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const o=r**3,l=t**3,s=n**3;return r=o>.008856?o:(r-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},l.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let o;return o=360*Math.atan2(n,r)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(r*r+n*n),o]},l.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},l.rgb.ansi16=function(e,t=null){const[r,n,o]=e;let s=null===t?l.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===s&&(a+=60),a},l.hsv.ansi16=function(e){return l.rgb.ansi16(l.hsv.rgb(e),e[2])},l.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},l.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},l.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},l.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},l.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},l.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),l=Math.min(Math.min(t,r),n),s=o-l;let a,c;return a=s<1?l/(1-s):0,c=s<=0?0:o===t?(r-n)/s%6:o===r?2+(n-t)/s:4+(t-r)/s,c/=6,c%=1,[360*c,100*s,100*a]},l.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},l.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},l.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const o=[0,0,0],l=t%1*6,s=l%1,a=1-s;let c=0;switch(Math.floor(l)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return c=(1-r)*n,[255*(r*o[0]+c),255*(r*o[1]+c),255*(r*o[2]+c)]},l.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},l.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},l.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},l.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},l.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},l.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},l.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},l.gray.hsl=function(e){return[0,0,e[0]]},l.gray.hsv=l.gray.hsl,l.gray.hwb=function(e){return[0,100,e[0]]},l.gray.cmyk=function(e){return[0,0,0,e[0]]},l.gray.lab=function(e){return[e[0],0,0]},l.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},l.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},734:function(e,t,r){const n=r(659),o=r(507),l={};Object.keys(n).forEach((e=>{l[e]={},Object.defineProperty(l[e],"channels",{value:n[e].channels}),Object.defineProperty(l[e],"labels",{value:n[e].labels});const t=o(e);Object.keys(t).forEach((r=>{const n=t[r];l[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=l},507:function(e,t,r){const n=r(659);function o(e,t){return function(r){return t(e(r))}}function l(e,t){const r=[t[e].parent,e];let l=n[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)r.unshift(t[s].parent),l=o(n[t[s].parent][s],l),s=t[s].parent;return l.conversion=r,l}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(n);for(let r=t.length,n=0;n=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},c.to.keyword=function(e){return s[e.slice(0,3)]}},520:function(e,t,r){const n=r(854),o=r(734),l=["keyword","gray","hex"],s={};for(const e of Object.keys(o))s[[...o[e].labels].sort().join("")]=e;const a={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in l&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let r,i;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=n.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,i=o[this.model].channels,this.color=t.value.slice(0,i),this.valpha="number"==typeof t.value[i]?t.value[i]:1}else if(e.length>0){this.model=t||"rgb",i=o[this.model].channels;const r=Array.prototype.slice.call(e,0,i);this.color=d(r,i),this.valpha="number"==typeof e[i]?e[i]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=t.sort().join("");if(!(n in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[n];const{labels:l}=o[this.model],a=[];for(r=0;r(e%360+360)%360)),saturationl:u("hsl",1,h(100)),lightness:u("hsl",2,h(100)),saturationv:u("hsv",1,h(100)),value:u("hsv",2,h(100)),chroma:u("hcg",1,h(100)),gray:u("hcg",2,h(100)),white:u("hwb",1,h(100)),wblack:u("hwb",2,h(100)),cyan:u("cmyk",0,h(100)),magenta:u("cmyk",1,h(100)),yellow:u("cmyk",2,h(100)),black:u("cmyk",3,h(100)),x:u("xyz",0,h(95.047)),y:u("xyz",1,h(100)),z:u("xyz",2,h(108.833)),l:u("lab",0,h(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new c(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new c(e):n.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new c(e);const t=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),n.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const e=n/255;t[r]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),o=void 0===t?.5:t,l=2*o-1,s=r.alpha()-n.alpha(),a=((l*s==-1?l:(l+s)/(1+l*s))+1)/2,i=1-a;return c.rgb(a*r.red()+i*n.red(),a*r.green()+i*n.green(),a*r.blue()+i*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const e of Object.keys(o)){if(l.includes(e))continue;const{channels:t}=o[e];c.prototype[e]=function(...t){return this.model===e?new c(this):t.length>0?new c(t,e):new c([...(r=o[this.model][e].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],e);var r},c[e]=function(...r){let n=r[0];return"number"==typeof n&&(n=d(r,t)),new c(n,e)}}function i(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(a[n]||(a[n]=[]))[t]=r;return e=e[0],function(n){let o;return void 0!==n?(r&&(n=r(n)),o=this[e](),o.color[t]=n,o):(o=this[e]().color[t],r&&(o=r(o)),o)}}function h(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e,t){for(let r=0;r=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,r),l.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.ReactJSXRuntime,t=window.wp.blocks,n=window.wp.components,o=window.wp.blockEditor,l=window.wp.i18n,s=window.wp.data,a=window.wp.primitives,c=(0,e.jsx)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)(a.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})}),i=r(520),u=r.n(i),h=function(e,t){try{if(e)t({textColor:u()(e).isDark()?"#ffffff":""})}catch(e){console.error("Invalid color string provided to updateColorAttributes:",e)}},d=function(t){var r,s=t.attributes,a=t.setAttributes,c=t.hex,i=t.useStyle,u=t.customColor,d=void 0!==u&&u,f=t.useTextColor,b=void 0!==f&&f,p=t.overwriteThemeColors,m=void 0!==p&&p,y=t.clearButton,v=void 0!==y&&y,w=(m?null:(0,o.useSettings)("color.palette")[0])||g,k=c?s.color:null===(r=w.find((function(e){return e.slug===s.color})))||void 0===r?void 0:r.color;return(0,e.jsx)(n.PanelBody,{title:(0,l.__)("Color Settings","rrze-elements-blocks"),children:(0,e.jsx)(n.ColorPalette,{colors:w,value:k,onChange:function(e){return function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e.find((function(e){return e.color===t}));s&&n?(r({color:s.color}),h(t,r),o&&(r({style:s.slug}),h(t,r))):s?r({color:s.slug}):o&&(r({color:t,style:""}),l&&h(t,r))}(w,e,a,c,i,b)},disableCustomColors:!d,clearable:v})})},f=function(t){var r=t.attributes,s=t.setAttributes,a=t.colorData,i=void 0===a?g:a,u=t.useStyle,h=void 0!==u&&u,d=t.hex,f=void 0!==d&&d,b=t.overwriteThemeColors,p=(void 0!==b&&b?null:(0,o.useSettings)("color.palette")[0])||i,m="rrzeElementsBFakColorSelector";return r.color&&(m="rrzeElementsBFakColorSelector ".concat(f?r.color.slice(1):r.color)),(0,e.jsx)(n.ToolbarGroup,{children:(0,e.jsx)(n.ToolbarItem,{children:function(){return(0,e.jsx)(n.ToolbarDropdownMenu,{icon:c,className:m,label:(0,l.__)("Select a Color","rrze-elements-blocks"),controls:p.map((function(e){return{key:e.slug,title:e.name,icon:c,onClick:function(){return s({color:f?e.color:e.slug,style:h?e.slug:""})}}}))})}})})},b=function(t){var r=t.attributes,o=t.setAttributes;return(0,e.jsx)(n.PanelBody,{title:(0,l.__)("Border Settings","rrze-elements-blocks"),initialOpen:!1,children:(0,e.jsx)(n.ColorPicker,{color:r.borderColor,onChange:function(e){o({borderColor:e})}})})},g=[{color:"#04316A",slug:"",name:(0,l.__)("Central institution","rrze-elements-blocks")},{color:"#C50F3C",slug:"rw",name:(0,l.__)("Faculty of Business, Economics, and Law","rrze-elements-blocks")},{color:"#7bb725",slug:"nat",name:(0,l.__)("Faculty of Sciences","rrze-elements-blocks")},{color:"#18B4F1",slug:"med",name:(0,l.__)("Faculty of Medicine","rrze-elements-blocks")},{color:"#FDB735",slug:"phil",name:(0,l.__)("Faculty of Humanities, Social Sciences, and Theology","rrze-elements-blocks")},{color:"#8C9FB1",slug:"tf",name:(0,l.__)("Faculty of Engineering","rrze-elements-blocks")}],p=([{color:"#fff",slug:"inherit",name:(0,l.__)("Inherit color","rrze-elements-blocks")}].concat(g),function(t){return(0,e.jsx)(d,Object.assign({},t))}),m=function(t){return(0,e.jsx)(f,Object.assign({},t))},y=JSON.parse('{"UU":"rrze-elements/alert"}');(0,t.registerBlockType)(y.UU,{icon:{src:(0,e.jsx)("svg",{id:"Ebene_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,e.jsx)("rect",{x:"75.86",y:"231.31",width:"360.28",height:"49.39",rx:"5.73",ry:"5.73",fillRule:"evenodd",strokeWidth:"0"})})},edit:function(t){var r=t.attributes,a=t.setAttributes,c=(0,o.useBlockProps)(),i=[{color:"#e9edf2",slug:"default",name:(0,l.__)("Default","rrze-elements-blocks")},{color:"#dff0d8",slug:"success",name:(0,l.__)("Success","rrze-elements-blocks")},{color:"#d9edf7",slug:"info",name:(0,l.__)("Info","rrze-elements-blocks")},{color:"#fcf8e3",slug:"warning",name:(0,l.__)("Warning","rrze-elements-blocks")},{color:"#f2dede",slug:"danger",name:(0,l.__)("Danger","rrze-elements-blocks")}],u=r.borderColor?{border:"1px solid ".concat(r.borderColor)}:{};"example"===r.style&&(u={border:"1px dashed var(--color-TextLight, #707070)"});var h=(0,s.useDispatch)(o.store).__unstableMarkNextChangeAsNotPersistent;return(0,e.jsxs)("div",Object.assign({},c,{children:[(0,e.jsxs)(o.InspectorControls,{children:[(0,e.jsx)(p,{attributes:{color:r.color},setAttributes:a,colorData:i,hex:!0,useStyle:!0,customColor:!1,useTextColor:!0}),(0,e.jsx)(o.ContrastChecker,{textColor:r.textColor,backgroundColor:r.color}),r.style?null:(0,e.jsx)(b,{attributes:{color:r.borderColor},setAttributes:a}),(0,e.jsxs)(n.PanelBody,{title:(0,l.__)("Label settings","rrze-elements-blocks"),initialOpen:!0,children:[(0,e.jsx)(n.__experimentalSpacer,{children:(0,e.jsx)(n.__experimentalText,{children:(0,l.__)("Add a Label for your Alert. This changes the style to example","rrze-elements-blocks")})}),(0,e.jsx)(n.TextControl,{value:r.title,onChange:function(e){""===e?(h(),a({title:"",style:"default"})):(h(),a({title:e,style:"example"}))},placeholder:(0,l.__)("Add a Label","rrze-elements-blocks"),className:"elements-blocks-input-following-icon"})]})]}),(0,e.jsx)(o.BlockControls,{children:(0,e.jsx)(m,{attributes:{color:r.color,style:r.style},setAttributes:a,colorData:i,hex:!0,useStyle:!0})}),(0,e.jsx)("div",{className:"alert clearfix clear ".concat(r.style?"alert-".concat(r.style):""),style:Object.assign(Object.assign({},r.style?{}:{backgroundColor:r.color,color:r.textColor}),u),title:r.title,children:(0,e.jsx)(o.InnerBlocks,{template:[["core/paragraph",{placeholder:(0,l.__)("Add a description…","rrze-elements-blocks")}]],allowedBlocks:["core/paragraph","core/heading","core/list"],templateLock:!1})})]}))},save:function(t){var r=t.attributes,n=o.useBlockProps.save();return(0,e.jsx)("div",Object.assign({},n,{children:(0,e.jsx)("div",{className:"alert clearfix clear ".concat(r.style?"alert-".concat(r.style):""),style:function(){if(r.style)return{};var e={backgroundColor:r.color,color:r.textColor};return r.borderColor&&(e.border="1px solid ".concat(r.borderColor)),e}(),title:function(){if(r.title&&"example"===r.style)return r.title.replace(/"/g,""")}(),children:(0,e.jsx)(o.InnerBlocks.Content,{})})}))},transforms:{from:[{type:"shortcode",tag:"alert",attributes:{style:{type:"string",shortcode:function(e){return["success","danger","default","info","warning"].includes(e.named.style)?e.named.style:"info"}},content:{type:"string",shortcode:function(e,t){return t.content}}},transform:function(e,r){var n,o=null===(n=r.shortcode)||void 0===n?void 0:n.content,l=(0,t.createBlock)("core/freeform",{content:o});return(0,t.createBlock)(y.UU,{style:function(e){switch(e){case"success":return"success";case"danger":return"danger";case"default":return"default";case"info":return"info";case"warning":return"warning";case"example":return"example";default:return""}}(e.named.style),title:e.named.title},[l])}}]}})}()}(); \ No newline at end of file +!function(){var e={659:function(e,t,r){const n=r(156),o={};for(const e of Object.keys(n))o[n[e]]=e;const l={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=l;for(const e of Object.keys(l)){if(!("channels"in l[e]))throw new Error("missing channels property: "+e);if(!("labels"in l[e]))throw new Error("missing channel labels property: "+e);if(l[e].labels.length!==l[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=l[e];delete l[e].channels,delete l[e].labels,Object.defineProperty(l[e],"channels",{value:t}),Object.defineProperty(l[e],"labels",{value:r})}l.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),l=Math.max(t,r,n),s=l-o;let a,c;l===o?a=0:t===l?a=(r-n)/s:r===l?a=2+(n-t)/s:n===l&&(a=4+(t-r)/s),a=Math.min(60*a,360),a<0&&(a+=360);const i=(o+l)/2;return c=l===o?0:i<=.5?s/(l+o):s/(2-l-o),[a,100*c,100*i]},l.rgb.hsv=function(e){let t,r,n,o,l;const s=e[0]/255,a=e[1]/255,c=e[2]/255,i=Math.max(s,a,c),u=i-Math.min(s,a,c),h=function(e){return(i-e)/6/u+.5};return 0===u?(o=0,l=0):(l=u/i,t=h(s),r=h(a),n=h(c),s===i?o=n-r:a===i?o=1/3+t-n:c===i&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*l,100*i]},l.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const o=l.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,100*s,100*n]},l.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n);return[100*((1-t-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},l.rgb.keyword=function(e){const t=o[e];if(t)return t;let r,l=1/0;for(const t of Object.keys(n)){const o=(a=n[t],((s=e)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);o.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},l.rgb.lab=function(e){const t=l.rgb.xyz(e);let r=t[0],n=t[1],o=t[2];return r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*n-16,500*(r-n),200*(n-o)]},l.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let o,l,s;if(0===r)return s=255*n,[s,s,s];o=n<.5?n*(1+r):n+r-n*r;const a=2*n-o,c=[0,0,0];for(let e=0;e<3;e++)l=t+1/3*-(e-1),l<0&&l++,l>1&&l--,s=6*l<1?a+6*(o-a)*l:2*l<1?o:3*l<2?a+(o-a)*(2/3-l)*6:a,c[e]=255*s;return c},l.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,o=r;const l=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,o*=l<=1?l:2-l,[t,100*(0===n?2*o/(l+o):2*r/(n+r)),(n+r)/2*100]},l.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const o=Math.floor(t)%6,l=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*l),c=255*n*(1-r*(1-l));switch(n*=255,o){case 0:return[n,c,s];case 1:return[a,n,s];case 2:return[s,n,c];case 3:return[s,a,n];case 4:return[c,s,n];case 5:return[n,s,a]}},l.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01);let l,s;s=(2-r)*n;const a=(2-r)*o;return l=r*o,l/=a<=1?a:2-a,l=l||0,s/=2,[t,100*l,100*s]},l.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const o=r+n;let l;o>1&&(r/=o,n/=o);const s=Math.floor(6*t),a=1-n;l=6*t-s,1&s&&(l=1-l);const c=r+l*(a-r);let i,u,h;switch(s){default:case 6:case 0:i=a,u=c,h=r;break;case 1:i=c,u=a,h=r;break;case 2:i=r,u=a,h=c;break;case 3:i=r,u=c,h=a;break;case 4:i=c,u=r,h=a;break;case 5:i=a,u=r,h=c}return[255*i,255*u,255*h]},l.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},l.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let o,l,s;return o=3.2406*t+-1.5372*r+-.4986*n,l=-.9689*t+1.8758*r+.0415*n,s=.0557*t+-.204*r+1.057*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),l=Math.min(Math.max(0,l),1),s=Math.min(Math.max(0,s),1),[255*o,255*l,255*s]},l.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];return t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*r-16,500*(t-r),200*(r-n)]},l.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const o=r**3,l=t**3,s=n**3;return r=o>.008856?o:(r-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},l.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let o;return o=360*Math.atan2(n,r)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(r*r+n*n),o]},l.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},l.rgb.ansi16=function(e,t=null){const[r,n,o]=e;let s=null===t?l.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===s&&(a+=60),a},l.hsv.ansi16=function(e){return l.rgb.ansi16(l.hsv.rgb(e),e[2])},l.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},l.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},l.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},l.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},l.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},l.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),l=Math.min(Math.min(t,r),n),s=o-l;let a,c;return a=s<1?l/(1-s):0,c=s<=0?0:o===t?(r-n)/s%6:o===r?2+(n-t)/s:4+(t-r)/s,c/=6,c%=1,[360*c,100*s,100*a]},l.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},l.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},l.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const o=[0,0,0],l=t%1*6,s=l%1,a=1-s;let c=0;switch(Math.floor(l)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return c=(1-r)*n,[255*(r*o[0]+c),255*(r*o[1]+c),255*(r*o[2]+c)]},l.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},l.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},l.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},l.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},l.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},l.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},l.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},l.gray.hsl=function(e){return[0,0,e[0]]},l.gray.hsv=l.gray.hsl,l.gray.hwb=function(e){return[0,100,e[0]]},l.gray.cmyk=function(e){return[0,0,0,e[0]]},l.gray.lab=function(e){return[e[0],0,0]},l.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},l.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},734:function(e,t,r){const n=r(659),o=r(507),l={};Object.keys(n).forEach((e=>{l[e]={},Object.defineProperty(l[e],"channels",{value:n[e].channels}),Object.defineProperty(l[e],"labels",{value:n[e].labels});const t=o(e);Object.keys(t).forEach((r=>{const n=t[r];l[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=l},507:function(e,t,r){const n=r(659);function o(e,t){return function(r){return t(e(r))}}function l(e,t){const r=[t[e].parent,e];let l=n[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)r.unshift(t[s].parent),l=o(n[t[s].parent][s],l),s=t[s].parent;return l.conversion=r,l}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(n);for(let r=t.length,n=0;n=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},c.to.keyword=function(e){return s[e.slice(0,3)]}},520:function(e,t,r){const n=r(854),o=r(734),l=["keyword","gray","hex"],s={};for(const e of Object.keys(o))s[[...o[e].labels].sort().join("")]=e;const a={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in l&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let r,i;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=n.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,i=o[this.model].channels,this.color=t.value.slice(0,i),this.valpha="number"==typeof t.value[i]?t.value[i]:1}else if(e.length>0){this.model=t||"rgb",i=o[this.model].channels;const r=Array.prototype.slice.call(e,0,i);this.color=d(r,i),this.valpha="number"==typeof e[i]?e[i]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=t.sort().join("");if(!(n in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[n];const{labels:l}=o[this.model],a=[];for(r=0;r(e%360+360)%360)),saturationl:u("hsl",1,h(100)),lightness:u("hsl",2,h(100)),saturationv:u("hsv",1,h(100)),value:u("hsv",2,h(100)),chroma:u("hcg",1,h(100)),gray:u("hcg",2,h(100)),white:u("hwb",1,h(100)),wblack:u("hwb",2,h(100)),cyan:u("cmyk",0,h(100)),magenta:u("cmyk",1,h(100)),yellow:u("cmyk",2,h(100)),black:u("cmyk",3,h(100)),x:u("xyz",0,h(95.047)),y:u("xyz",1,h(100)),z:u("xyz",2,h(108.833)),l:u("lab",0,h(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new c(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new c(e):n.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new c(e);const t=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),n.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const e=n/255;t[r]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),o=void 0===t?.5:t,l=2*o-1,s=r.alpha()-n.alpha(),a=((l*s==-1?l:(l+s)/(1+l*s))+1)/2,i=1-a;return c.rgb(a*r.red()+i*n.red(),a*r.green()+i*n.green(),a*r.blue()+i*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const e of Object.keys(o)){if(l.includes(e))continue;const{channels:t}=o[e];c.prototype[e]=function(...t){return this.model===e?new c(this):t.length>0?new c(t,e):new c([...(r=o[this.model][e].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],e);var r},c[e]=function(...r){let n=r[0];return"number"==typeof n&&(n=d(r,t)),new c(n,e)}}function i(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(a[n]||(a[n]=[]))[t]=r;return e=e[0],function(n){let o;return void 0!==n?(r&&(n=r(n)),o=this[e](),o.color[t]=n,o):(o=this[e]().color[t],r&&(o=r(o)),o)}}function h(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e,t){for(let r=0;r=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,r),l.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.ReactJSXRuntime,t=window.wp.blocks,n=window.wp.components,o=window.wp.blockEditor,l=window.wp.i18n,s=window.wp.data,a=window.wp.primitives,c=(0,e.jsx)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)(a.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})}),i=r(520),u=r.n(i),h=function(e,t){try{if(e)t({textColor:u()(e).isDark()?"#ffffff":""})}catch(e){console.error("Invalid color string provided to updateColorAttributes:",e)}},d=function(t){var r,s=t.attributes,a=t.setAttributes,c=t.hex,i=t.useStyle,u=t.customColor,d=void 0!==u&&u,f=t.useTextColor,b=void 0!==f&&f,p=t.overwriteThemeColors,m=void 0!==p&&p,y=t.clearButton,v=void 0!==y&&y,w=(m?null:(0,o.useSettings)("color.palette")[0])||g,k=c?s.color:null===(r=w.find((function(e){return e.slug===s.color})))||void 0===r?void 0:r.color;return(0,e.jsx)(n.PanelBody,{title:(0,l.__)("Color Settings","rrze-elements-blocks"),children:(0,e.jsx)(n.ColorPalette,{colors:w,value:k,onChange:function(e){return function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e.find((function(e){return e.color===t}));s&&n?(r({color:s.color}),h(t,r),o&&(r({style:s.slug}),h(t,r))):s?r({color:s.slug}):o&&(r({color:t,style:""}),l&&h(t,r))}(w,e,a,c,i,b)},disableCustomColors:!d,clearable:v})})},f=function(t){var r=t.attributes,s=t.setAttributes,a=t.colorData,i=void 0===a?g:a,u=t.useStyle,h=void 0!==u&&u,d=t.hex,f=void 0!==d&&d,b=t.overwriteThemeColors,p=(void 0!==b&&b?null:(0,o.useSettings)("color.palette")[0])||i,m="rrzeElementsBFakColorSelector";return r.color&&(m="rrzeElementsBFakColorSelector ".concat(f?r.color.slice(1):r.color)),(0,e.jsx)(n.ToolbarGroup,{children:(0,e.jsx)(n.ToolbarItem,{children:function(){return(0,e.jsx)(n.ToolbarDropdownMenu,{icon:c,className:m,label:(0,l.__)("Select a Color","rrze-elements-blocks"),controls:p.map((function(e){return{key:e.slug,title:e.name,icon:c,onClick:function(){return s({color:f?e.color:e.slug,style:h?e.slug:""})}}}))})}})})},b=function(t){var r=t.attributes,o=t.setAttributes;return(0,e.jsx)(n.PanelBody,{title:(0,l.__)("Border Settings","rrze-elements-blocks"),initialOpen:!1,children:(0,e.jsx)(n.ColorPicker,{color:r.borderColor,onChange:function(e){o({borderColor:e})}})})},g=[{color:"#04316A",slug:"",name:(0,l.__)("Central institution","rrze-elements-blocks")},{color:"#C50F3C",slug:"rw",name:(0,l.__)("Faculty of Business, Economics, and Law","rrze-elements-blocks")},{color:"#7bb725",slug:"nat",name:(0,l.__)("Faculty of Sciences","rrze-elements-blocks")},{color:"#18B4F1",slug:"med",name:(0,l.__)("Faculty of Medicine","rrze-elements-blocks")},{color:"#FDB735",slug:"phil",name:(0,l.__)("Faculty of Humanities, Social Sciences, and Theology","rrze-elements-blocks")},{color:"#8C9FB1",slug:"tf",name:(0,l.__)("Faculty of Engineering","rrze-elements-blocks")}],p=([{color:"#fff",slug:"inherit",name:(0,l.__)("Inherit color","rrze-elements-blocks")}].concat(g),function(t){return(0,e.jsx)(d,Object.assign({},t))}),m=function(t){return(0,e.jsx)(f,Object.assign({},t))},y=JSON.parse('{"UU":"rrze-elements/alert"}'),v={from:[{type:"shortcode",tag:"alert",attributes:{style:{type:"string",shortcode:function(e){return["success","danger","default","info","warning"].includes(e.named.style)?e.named.style:"info"}},content:{type:"string",shortcode:function(e,t){return t.content}}},transform:function(e,r){var n,o=null===(n=r.shortcode)||void 0===n?void 0:n.content,l=(0,t.createBlock)("core/freeform",{content:o});return(0,t.createBlock)(y.UU,{style:function(e){switch(e){case"success":return"success";case"danger":return"danger";case"default":return"default";case"info":return"info";case"warning":return"warning";case"example":return"example";default:return""}}(e.named.style),title:e.named.title},[l])}},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],isMatch:function(e,t){return!t.some((function(e){return"rrze-elements/alert"===e.name}))},__experimentalConvert:function(e){var r=[];return e.forEach((function(e){r.push((0,t.createBlock)(e.name,e.attributes,e.innerBlocks))})),(0,t.createBlock)("rrze-elements/alert",{},r)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e,t){return t}}]};(0,t.registerBlockType)(y.UU,{icon:{src:(0,e.jsx)("svg",{id:"Ebene_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,e.jsx)("rect",{x:"75.86",y:"231.31",width:"360.28",height:"49.39",rx:"5.73",ry:"5.73",fillRule:"evenodd",strokeWidth:"0"})})},edit:function(t){var r=t.attributes,a=t.setAttributes,c=(0,o.useBlockProps)(),i=[{color:"#e9edf2",slug:"default",name:(0,l.__)("Default","rrze-elements-blocks")},{color:"#dff0d8",slug:"success",name:(0,l.__)("Success","rrze-elements-blocks")},{color:"#d9edf7",slug:"info",name:(0,l.__)("Info","rrze-elements-blocks")},{color:"#fcf8e3",slug:"warning",name:(0,l.__)("Warning","rrze-elements-blocks")},{color:"#f2dede",slug:"danger",name:(0,l.__)("Danger","rrze-elements-blocks")}],u=r.borderColor?{border:"1px solid ".concat(r.borderColor)}:{};"example"===r.style&&(u={border:"1px dashed var(--color-TextLight, #707070)"});var h=(0,s.useDispatch)(o.store).__unstableMarkNextChangeAsNotPersistent;return(0,e.jsxs)("div",Object.assign({},c,{children:[(0,e.jsxs)(o.InspectorControls,{children:[(0,e.jsx)(p,{attributes:{color:r.color},setAttributes:a,colorData:i,hex:!0,useStyle:!0,customColor:!1,useTextColor:!0}),(0,e.jsx)(o.ContrastChecker,{textColor:r.textColor,backgroundColor:r.color}),r.style?null:(0,e.jsx)(b,{attributes:{color:r.borderColor},setAttributes:a}),(0,e.jsxs)(n.PanelBody,{title:(0,l.__)("Label settings","rrze-elements-blocks"),initialOpen:!0,children:[(0,e.jsx)(n.__experimentalSpacer,{children:(0,e.jsx)(n.__experimentalText,{children:(0,l.__)("Add a Label for your Alert. This changes the style to example","rrze-elements-blocks")})}),(0,e.jsx)(n.TextControl,{value:r.title,onChange:function(e){""===e?(h(),a({title:"",style:"default"})):(h(),a({title:e,style:"example"}))},placeholder:(0,l.__)("Add a Label","rrze-elements-blocks"),className:"elements-blocks-input-following-icon"})]})]}),(0,e.jsx)(o.BlockControls,{children:(0,e.jsx)(m,{attributes:{color:r.color,style:r.style},setAttributes:a,colorData:i,hex:!0,useStyle:!0})}),(0,e.jsx)("div",{className:"alert clearfix clear ".concat(r.style?"alert-".concat(r.style):""),style:Object.assign(Object.assign({},r.style?{}:{backgroundColor:r.color,color:r.textColor}),u),title:r.title,children:(0,e.jsx)(o.InnerBlocks,{template:[["core/paragraph",{placeholder:(0,l.__)("Add a description…","rrze-elements-blocks")}]],allowedBlocks:["core/paragraph","core/heading","core/list"],templateLock:!1})})]}))},save:function(t){var r=t.attributes,n=o.useBlockProps.save();return(0,e.jsx)("div",Object.assign({},n,{children:(0,e.jsx)("div",{className:"alert clearfix clear ".concat(r.style?"alert-".concat(r.style):""),style:function(){if(r.style)return{};var e={backgroundColor:r.color,color:r.textColor};return r.borderColor&&(e.border="1px solid ".concat(r.borderColor)),e}(),title:function(){if(r.title&&"example"===r.style)return r.title.replace(/"/g,""")}(),children:(0,e.jsx)(o.InnerBlocks.Content,{})})}))},transforms:v})}()}(); \ No newline at end of file diff --git a/build/blocks/collapse/index.asset.php b/build/blocks/collapse/index.asset.php index f0969d4d..6a8e766c 100644 --- a/build/blocks/collapse/index.asset.php +++ b/build/blocks/collapse/index.asset.php @@ -1 +1 @@ - array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'd8270c4e63fb7306e6c1'); + array('react-jsx-runtime', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '07e67d97e3a76ace756e'); diff --git a/build/blocks/collapse/index.js b/build/blocks/collapse/index.js index c617c289..edcab8a2 100644 --- a/build/blocks/collapse/index.js +++ b/build/blocks/collapse/index.js @@ -1,3 +1,3 @@ -!function(){var e,r={104:function(e,r,t){"use strict";var n=window.ReactJSXRuntime,a=window.wp.blocks,o=window.wp.i18n,s=window.wp.components,i=window.wp.blockEditor,l=window.wp.primitives,c=(0,n.jsx)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(l.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})}),u=(0,n.jsx)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(l.Path,{d:"M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z"})}),h=(0,n.jsx)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(l.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})}),d=window.wp.element,p=function(e){var r=e.level,t=e.children,a=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);ae.length)&&(r=e.length);for(var t=0,n=Array(r);t3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e.find((function(e){return e.color===r}));s&&n?(t({color:s.color}),j(r,t),a&&(t({style:s.slug}),j(r,t))):s?t({color:s.slug}):a&&(t({color:r,style:""}),o&&j(r,t))}(v,e,a,l,c,p)},disableCustomColors:!h,clearable:b})})},N=function(e){var r=e.attributes,t=e.setAttributes,a=e.colorData,l=void 0===a?S:a,c=e.useStyle,u=void 0!==c&&c,h=e.hex,d=void 0!==h&&h,p=e.overwriteThemeColors,m=(void 0!==p&&p?null:(0,i.useSettings)("color.palette")[0])||l,g="rrzeElementsBFakColorSelector";return r.color&&(g="rrzeElementsBFakColorSelector ".concat(d?r.color.slice(1):r.color)),(0,n.jsx)(s.ToolbarGroup,{children:(0,n.jsx)(s.ToolbarItem,{children:function(){return(0,n.jsx)(s.ToolbarDropdownMenu,{icon:w,className:g,label:(0,o.__)("Select a Color","rrze-elements-blocks"),controls:m.map((function(e){return{key:e.slug,title:e.name,icon:w,onClick:function(){return t({color:d?e.color:e.slug,style:u?e.slug:""})}}}))})}})})},S=[{color:"#04316A",slug:"",name:(0,o.__)("Central institution","rrze-elements-blocks")},{color:"#C50F3C",slug:"rw",name:(0,o.__)("Faculty of Business, Economics, and Law","rrze-elements-blocks")},{color:"#7bb725",slug:"nat",name:(0,o.__)("Faculty of Sciences","rrze-elements-blocks")},{color:"#18B4F1",slug:"med",name:(0,o.__)("Faculty of Medicine","rrze-elements-blocks")},{color:"#FDB735",slug:"phil",name:(0,o.__)("Faculty of Humanities, Social Sciences, and Theology","rrze-elements-blocks")},{color:"#8C9FB1",slug:"tf",name:(0,o.__)("Faculty of Engineering","rrze-elements-blocks")}],z=([{color:"#fff",slug:"inherit",name:(0,o.__)("Inherit color","rrze-elements-blocks")}].concat(S),function(e){return(0,n.jsx)(_,Object.assign({},e))}),q=function(e){return(0,n.jsx)(N,Object.assign({},e))},C=function(e){var r=e.attributes,t=e.setAttributes;return(0,n.jsx)(s.PanelBody,{title:(0,o.__)("Advanced Settings","rrze-elements-blocks"),children:(0,n.jsx)(s.CheckboxControl,{label:(0,o.__)("Open collapse on Page load","rrze-elements-blocks"),checked:r.loadOpen,onChange:function(){t({loadOpen:!r.loadOpen})}})})},M=JSON.parse('{"brands":["42-group","500px","accessible-icon","accusoft","adn","adversal","affiliatetheme","airbnb","algolia","alipay","amazon-pay","amazon","amilia","android","angellist","angrycreative","angular","app-store-ios","app-store","apper","apple-pay","apple","artstation","asymmetrik","atlassian","audible","autoprefixer","avianex","aviato","aws","bandcamp","battle-net","behance","bilibili","bimobject","bitbucket","bitcoin","bity","black-tie","blackberry","blogger-b","blogger","bluetooth-b","bluetooth","bootstrap","bots","btc","buffer","buromobelexperte","buy-n-large","buysellads","canadian-maple-leaf","cc-amazon-pay","cc-amex","cc-apple-pay","cc-diners-club","cc-discover","cc-jcb","cc-mastercard","cc-paypal","cc-stripe","cc-visa","centercode","centos","chrome","chromecast","cloudflare","cloudscale","cloudsmith","cloudversify","cmplid","codepen","codiepie","confluence","connectdevelop","contao","cotton-bureau","cpanel","creative-commons-by","creative-commons-nc-eu","creative-commons-nc-jp","creative-commons-nc","creative-commons-nd","creative-commons-pd-alt","creative-commons-pd","creative-commons-remix","creative-commons-sa","creative-commons-sampling-plus","creative-commons-sampling","creative-commons-share","creative-commons-zero","creative-commons","critical-role","css3-alt","css3","cuttlefish","d-and-d-beyond","d-and-d","dailymotion","dashcube","debian","deezer","delicious","deploydog","deskpro","dev","deviantart","dhl","diaspora","digg","digital-ocean","discord","discourse","dochub","docker","draft2digital","dribbble","dropbox","drupal","dyalog","earlybirds","ebay","edge-legacy","edge","elementor","ello","ember","empire","envira","erlang","ethereum","etsy","evernote","expeditedssl","facebook-f","facebook-messenger","facebook","fantasy-flight-games","fedex","fedora","figma","firefox-browser","firefox","first-order-alt","first-order","firstdraft","flickr","flipboard","fly","font-awesome","fonticons-fi","fonticons","fort-awesome-alt","fort-awesome","forumbee","foursquare","free-code-camp","freebsd","fulcrum","galactic-republic","galactic-senate","get-pocket","gg-circle","gg","git-alt","git","github-alt","github","gitkraken","gitlab","gitter","glide-g","glide","gofore","golang","goodreads-g","goodreads","google-drive","google-pay","google-play","google-plus-g","google-plus","google-wallet","google","gratipay","grav","gripfire","grunt","guilded","gulp","hacker-news","hackerrank","hashnode","hips","hire-a-helper","hive","hooli","hornbill","hotjar","houzz","html5","hubspot","ideal","imdb","instagram","instalod","intercom","internet-explorer","invision","ioxhost","itch-io","itunes-note","itunes","java","jedi-order","jenkins","jira","joget","joomla","js","jsfiddle","kaggle","keybase","keycdn","kickstarter-k","kickstarter","korvue","laravel","lastfm","leanpub","less","line","linkedin-in","linkedin","linode","linux","lyft","magento","mailchimp","mandalorian","markdown","mastodon","maxcdn","mdb","medapps","medium","medrt","meetup","megaport","mendeley","meta","microblog","microsoft","mix","mixcloud","mixer","mizuni","modx","monero","napster","neos","nfc-directional","nfc-symbol","nimblr","node-js","node","npm","ns8","nutritionix","octopus-deploy","odnoklassniki","odysee","old-republic","opencart","openid","opera","optin-monster","orcid","osi","padlet","page4","pagelines","palfed","patreon","paypal","perbyte","periscope","phabricator","phoenix-framework","phoenix-squadron","php","pied-piper-alt","pied-piper-hat","pied-piper-pp","pied-piper","pinterest-p","pinterest","pix","playstation","product-hunt","pushed","python","qq","quinscape","quora","r-project","raspberry-pi","ravelry","react","reacteurope","readme","rebel","red-river","reddit-alien","reddit","redhat","renren","replyd","researchgate","resolving","rev","rocketchat","rockrms","rust","safari","salesforce","sass","schlix","screenpal","scribd","searchengin","sellcast","sellsy","servicestack","shirtsinbulk","shopify","shopware","simplybuilt","sistrix","sith","sitrox","sketch","skyatlas","skype","slack","slideshare","snapchat","soundcloud","sourcetree","space-awesome","speakap","speaker-deck","spotify","square-behance","square-dribbble","square-facebook","square-font-awesome-stroke","square-font-awesome","square-git","square-github","square-gitlab","square-google-plus","square-hacker-news","square-instagram","square-js","square-lastfm","square-odnoklassniki","square-pied-piper","square-pinterest","square-reddit","square-snapchat","square-steam","square-threads","square-tumblr","square-twitter","square-viadeo","square-vimeo","square-whatsapp","square-x-twitter","square-xing","square-youtube","squarespace","stack-exchange","stack-overflow","stackpath","staylinked","steam-symbol","steam","sticker-mule","strava","stripe-s","stripe","stubber","studiovinari","stumbleupon-circle","stumbleupon","superpowers","supple","suse","swift","symfony","teamspeak","telegram","tencent-weibo","the-red-yeti","themeco","themeisle","think-peaks","threads","tiktok","trade-federation","trello","tumblr","twitch","twitter","typo3","uber","ubuntu","uikit","umbraco","uncharted","uniregistry","unity","unsplash","untappd","ups","usb","usps","ussunnah","vaadin","viacoin","viadeo","viber","vimeo-v","vimeo","vine","vk","vnv","vuejs","watchman-monitoring","waze","weebly","weibo","weixin","whatsapp","whmcs","wikipedia-w","windows","wirsindhandwerk","wix","wizards-of-the-coast","wodu","wolf-pack-battalion","wordpress-simple","wordpress","wpbeginner","wpexplorer","wpforms","wpressr","x-twitter","xbox","xing","y-combinator","yahoo","yammer","yandex-international","yandex","yarn","yelp","yoast","youtube","zhihu"],"regular":["address-book","address-card","bell-slash","bell","bookmark","building","calendar-check","calendar-days","calendar-minus","calendar-plus","calendar-xmark","calendar","chart-bar","chess-bishop","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","circle-check","circle-dot","circle-down","circle-left","circle-pause","circle-play","circle-question","circle-right","circle-stop","circle-up","circle-user","circle-xmark","circle","clipboard","clock","clone","closed-captioning","comment-dots","comment","comments","compass","copy","copyright","credit-card","envelope-open","envelope","eye-slash","eye","face-angry","face-dizzy","face-flushed","face-frown-open","face-frown","face-grimace","face-grin-beam-sweat","face-grin-beam","face-grin-hearts","face-grin-squint-tears","face-grin-squint","face-grin-stars","face-grin-tears","face-grin-tongue-squint","face-grin-tongue-wink","face-grin-tongue","face-grin-wide","face-grin-wink","face-grin","face-kiss-beam","face-kiss-wink-heart","face-kiss","face-laugh-beam","face-laugh-squint","face-laugh-wink","face-laugh","face-meh-blank","face-meh","face-rolling-eyes","face-sad-cry","face-sad-tear","face-smile-beam","face-smile-wink","face-smile","face-surprise","face-tired","file-audio","file-code","file-excel","file-image","file-lines","file-pdf","file-powerpoint","file-video","file-word","file-zipper","file","flag","floppy-disk","folder-closed","folder-open","folder","font-awesome","futbol","gem","hand-back-fist","hand-lizard","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","hand-pointer","hand-scissors","hand-spock","hand","handshake","hard-drive","heart","hospital","hourglass-half","hourglass","id-badge","id-card","image","images","keyboard","lemon","life-ring","lightbulb","map","message","money-bill-1","moon","newspaper","notdef","note-sticky","object-group","object-ungroup","paper-plane","paste","pen-to-square","rectangle-list","rectangle-xmark","registered","share-from-square","snowflake","square-caret-down","square-caret-left","square-caret-right","square-caret-up","square-check","square-full","square-minus","square-plus","square","star-half-stroke","star-half","star","sun","thumbs-down","thumbs-up","trash-can","user","window-maximize","window-minimize","window-restore"],"solid":["0","1","2","3","4","5","6","7","8","9","a","address-book","address-card","align-center","align-justify","align-left","align-right","anchor-circle-check","anchor-circle-exclamation","anchor-circle-xmark","anchor-lock","anchor","angle-down","angle-left","angle-right","angle-up","angles-down","angles-left","angles-right","angles-up","ankh","apple-whole","archway","arrow-down-1-9","arrow-down-9-1","arrow-down-a-z","arrow-down-long","arrow-down-short-wide","arrow-down-up-across-line","arrow-down-up-lock","arrow-down-wide-short","arrow-down-z-a","arrow-down","arrow-left-long","arrow-left","arrow-pointer","arrow-right-arrow-left","arrow-right-from-bracket","arrow-right-long","arrow-right-to-bracket","arrow-right-to-city","arrow-right","arrow-rotate-left","arrow-rotate-right","arrow-trend-down","arrow-trend-up","arrow-turn-down","arrow-turn-up","arrow-up-1-9","arrow-up-9-1","arrow-up-a-z","arrow-up-from-bracket","arrow-up-from-ground-water","arrow-up-from-water-pump","arrow-up-long","arrow-up-right-dots","arrow-up-right-from-square","arrow-up-short-wide","arrow-up-wide-short","arrow-up-z-a","arrow-up","arrows-down-to-line","arrows-down-to-people","arrows-left-right-to-line","arrows-left-right","arrows-rotate","arrows-spin","arrows-split-up-and-left","arrows-to-circle","arrows-to-dot","arrows-to-eye","arrows-turn-right","arrows-turn-to-dots","arrows-up-down-left-right","arrows-up-down","arrows-up-to-line","asterisk","at","atom","audio-description","austral-sign","award","b","baby-carriage","baby","backward-fast","backward-step","backward","bacon","bacteria","bacterium","bag-shopping","bahai","baht-sign","ban-smoking","ban","bandage","bangladeshi-taka-sign","barcode","bars-progress","bars-staggered","bars","baseball-bat-ball","baseball","basket-shopping","basketball","bath","battery-empty","battery-full","battery-half","battery-quarter","battery-three-quarters","bed-pulse","bed","beer-mug-empty","bell-concierge","bell-slash","bell","bezier-curve","bicycle","binoculars","biohazard","bitcoin-sign","blender-phone","blender","blog","bold","bolt-lightning","bolt","bomb","bone","bong","book-atlas","book-bible","book-bookmark","book-journal-whills","book-medical","book-open-reader","book-open","book-quran","book-skull","book-tanakh","book","bookmark","border-all","border-none","border-top-left","bore-hole","bottle-droplet","bottle-water","bowl-food","bowl-rice","bowling-ball","box-archive","box-open","box-tissue","box","boxes-packing","boxes-stacked","braille","brain","brazilian-real-sign","bread-slice","bridge-circle-check","bridge-circle-exclamation","bridge-circle-xmark","bridge-lock","bridge-water","bridge","briefcase-medical","briefcase","broom-ball","broom","brush","bucket","bug-slash","bug","bugs","building-circle-arrow-right","building-circle-check","building-circle-exclamation","building-circle-xmark","building-columns","building-flag","building-lock","building-ngo","building-shield","building-un","building-user","building-wheat","building","bullhorn","bullseye","burger","burst","bus-simple","bus","business-time","c","cable-car","cake-candles","calculator","calendar-check","calendar-day","calendar-days","calendar-minus","calendar-plus","calendar-week","calendar-xmark","calendar","camera-retro","camera-rotate","camera","campground","candy-cane","cannabis","capsules","car-battery","car-burst","car-on","car-rear","car-side","car-tunnel","car","caravan","caret-down","caret-left","caret-right","caret-up","carrot","cart-arrow-down","cart-flatbed-suitcase","cart-flatbed","cart-plus","cart-shopping","cash-register","cat","cedi-sign","cent-sign","certificate","chair","chalkboard-user","chalkboard","champagne-glasses","charging-station","chart-area","chart-bar","chart-column","chart-gantt","chart-line","chart-pie","chart-simple","check-double","check-to-slot","check","cheese","chess-bishop","chess-board","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","chess","chevron-down","chevron-left","chevron-right","chevron-up","child-combatant","child-dress","child-reaching","child-rifle","child","children","church","circle-arrow-down","circle-arrow-left","circle-arrow-right","circle-arrow-up","circle-check","circle-chevron-down","circle-chevron-left","circle-chevron-right","circle-chevron-up","circle-dollar-to-slot","circle-dot","circle-down","circle-exclamation","circle-h","circle-half-stroke","circle-info","circle-left","circle-minus","circle-nodes","circle-notch","circle-pause","circle-play","circle-plus","circle-question","circle-radiation","circle-right","circle-stop","circle-up","circle-user","circle-xmark","circle","city","clapperboard","clipboard-check","clipboard-list","clipboard-question","clipboard-user","clipboard","clock-rotate-left","clock","clone","closed-captioning","cloud-arrow-down","cloud-arrow-up","cloud-bolt","cloud-meatball","cloud-moon-rain","cloud-moon","cloud-rain","cloud-showers-heavy","cloud-showers-water","cloud-sun-rain","cloud-sun","cloud","clover","code-branch","code-commit","code-compare","code-fork","code-merge","code-pull-request","code","coins","colon-sign","comment-dollar","comment-dots","comment-medical","comment-slash","comment-sms","comment","comments-dollar","comments","compact-disc","compass-drafting","compass","compress","computer-mouse","computer","cookie-bite","cookie","copy","copyright","couch","cow","credit-card","crop-simple","crop","cross","crosshairs","crow","crown","crutch","cruzeiro-sign","cube","cubes-stacked","cubes","d","database","delete-left","democrat","desktop","dharmachakra","diagram-next","diagram-predecessor","diagram-project","diagram-successor","diamond-turn-right","diamond","dice-d6","dice-d20","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","dice","disease","display","divide","dna","dog","dollar-sign","dolly","dong-sign","door-closed","door-open","dove","down-left-and-up-right-to-center","down-long","download","dragon","draw-polygon","droplet-slash","droplet","drum-steelpan","drum","drumstick-bite","dumbbell","dumpster-fire","dumpster","dungeon","e","ear-deaf","ear-listen","earth-africa","earth-americas","earth-asia","earth-europe","earth-oceania","egg","eject","elevator","ellipsis-vertical","ellipsis","envelope-circle-check","envelope-open-text","envelope-open","envelope","envelopes-bulk","equals","eraser","ethernet","euro-sign","exclamation","expand","explosion","eye-dropper","eye-low-vision","eye-slash","eye","f","face-angry","face-dizzy","face-flushed","face-frown-open","face-frown","face-grimace","face-grin-beam-sweat","face-grin-beam","face-grin-hearts","face-grin-squint-tears","face-grin-squint","face-grin-stars","face-grin-tears","face-grin-tongue-squint","face-grin-tongue-wink","face-grin-tongue","face-grin-wide","face-grin-wink","face-grin","face-kiss-beam","face-kiss-wink-heart","face-kiss","face-laugh-beam","face-laugh-squint","face-laugh-wink","face-laugh","face-meh-blank","face-meh","face-rolling-eyes","face-sad-cry","face-sad-tear","face-smile-beam","face-smile-wink","face-smile","face-surprise","face-tired","fan","faucet-drip","faucet","fax","feather-pointed","feather","ferry","file-arrow-down","file-arrow-up","file-audio","file-circle-check","file-circle-exclamation","file-circle-minus","file-circle-plus","file-circle-question","file-circle-xmark","file-code","file-contract","file-csv","file-excel","file-export","file-image","file-import","file-invoice-dollar","file-invoice","file-lines","file-medical","file-pdf","file-pen","file-powerpoint","file-prescription","file-shield","file-signature","file-video","file-waveform","file-word","file-zipper","file","fill-drip","fill","film","filter-circle-dollar","filter-circle-xmark","filter","fingerprint","fire-burner","fire-extinguisher","fire-flame-curved","fire-flame-simple","fire","fish-fins","fish","flag-checkered","flag-usa","flag","flask-vial","flask","floppy-disk","florin-sign","folder-closed","folder-minus","folder-open","folder-plus","folder-tree","folder","font-awesome","font","football","forward-fast","forward-step","forward","franc-sign","frog","futbol","g","gamepad","gas-pump","gauge-high","gauge-simple-high","gauge-simple","gauge","gavel","gear","gears","gem","genderless","ghost","gift","gifts","glass-water-droplet","glass-water","glasses","globe","golf-ball-tee","gopuram","graduation-cap","greater-than-equal","greater-than","grip-lines-vertical","grip-lines","grip-vertical","grip","group-arrows-rotate","guarani-sign","guitar","gun","h","hammer","hamsa","hand-back-fist","hand-dots","hand-fist","hand-holding-dollar","hand-holding-droplet","hand-holding-hand","hand-holding-heart","hand-holding-medical","hand-holding","hand-lizard","hand-middle-finger","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","hand-pointer","hand-scissors","hand-sparkles","hand-spock","hand","handcuffs","hands-asl-interpreting","hands-bound","hands-bubbles","hands-clapping","hands-holding-child","hands-holding-circle","hands-holding","hands-praying","hands","handshake-angle","handshake-simple-slash","handshake-simple","handshake-slash","handshake","hanukiah","hard-drive","hashtag","hat-cowboy-side","hat-cowboy","hat-wizard","head-side-cough-slash","head-side-cough","head-side-mask","head-side-virus","heading","headphones-simple","headphones","headset","heart-circle-bolt","heart-circle-check","heart-circle-exclamation","heart-circle-minus","heart-circle-plus","heart-circle-xmark","heart-crack","heart-pulse","heart","helicopter-symbol","helicopter","helmet-safety","helmet-un","highlighter","hill-avalanche","hill-rockslide","hippo","hockey-puck","holly-berry","horse-head","horse","hospital-user","hospital","hot-tub-person","hotdog","hotel","hourglass-end","hourglass-half","hourglass-start","hourglass","house-chimney-crack","house-chimney-medical","house-chimney-user","house-chimney-window","house-chimney","house-circle-check","house-circle-exclamation","house-circle-xmark","house-crack","house-fire","house-flag","house-flood-water-circle-arrow-right","house-flood-water","house-laptop","house-lock","house-medical-circle-check","house-medical-circle-exclamation","house-medical-circle-xmark","house-medical-flag","house-medical","house-signal","house-tsunami","house-user","house","hryvnia-sign","hurricane","i-cursor","i","ice-cream","icicles","icons","id-badge","id-card-clip","id-card","igloo","image-portrait","image","images","inbox","indent","indian-rupee-sign","industry","infinity","info","italic","j","jar-wheat","jar","jedi","jet-fighter-up","jet-fighter","joint","jug-detergent","k","kaaba","key","keyboard","khanda","kip-sign","kit-medical","kitchen-set","kiwi-bird","l","land-mine-on","landmark-dome","landmark-flag","landmark","language","laptop-code","laptop-file","laptop-medical","laptop","lari-sign","layer-group","leaf","left-long","left-right","lemon","less-than-equal","less-than","life-ring","lightbulb","lines-leaning","link-slash","link","lira-sign","list-check","list-ol","list-ul","list","litecoin-sign","location-arrow","location-crosshairs","location-dot","location-pin-lock","location-pin","lock-open","lock","locust","lungs-virus","lungs","m","magnet","magnifying-glass-arrow-right","magnifying-glass-chart","magnifying-glass-dollar","magnifying-glass-location","magnifying-glass-minus","magnifying-glass-plus","magnifying-glass","manat-sign","map-location-dot","map-location","map-pin","map","marker","mars-and-venus-burst","mars-and-venus","mars-double","mars-stroke-right","mars-stroke-up","mars-stroke","mars","martini-glass-citrus","martini-glass-empty","martini-glass","mask-face","mask-ventilator","mask","masks-theater","mattress-pillow","maximize","medal","memory","menorah","mercury","message","meteor","microchip","microphone-lines-slash","microphone-lines","microphone-slash","microphone","microscope","mill-sign","minimize","minus","mitten","mobile-button","mobile-retro","mobile-screen-button","mobile-screen","mobile","money-bill-1-wave","money-bill-1","money-bill-transfer","money-bill-trend-up","money-bill-wave","money-bill-wheat","money-bill","money-bills","money-check-dollar","money-check","monument","moon","mortar-pestle","mosque","mosquito-net","mosquito","motorcycle","mound","mountain-city","mountain-sun","mountain","mug-hot","mug-saucer","music","n","naira-sign","network-wired","neuter","newspaper","not-equal","notdef","note-sticky","notes-medical","o","object-group","object-ungroup","oil-can","oil-well","om","otter","outdent","p","pager","paint-roller","paintbrush","palette","pallet","panorama","paper-plane","paperclip","parachute-box","paragraph","passport","paste","pause","paw","peace","pen-clip","pen-fancy","pen-nib","pen-ruler","pen-to-square","pen","pencil","people-arrows","people-carry-box","people-group","people-line","people-pulling","people-robbery","people-roof","pepper-hot","percent","person-arrow-down-to-line","person-arrow-up-from-line","person-biking","person-booth","person-breastfeeding","person-burst","person-cane","person-chalkboard","person-circle-check","person-circle-exclamation","person-circle-minus","person-circle-plus","person-circle-question","person-circle-xmark","person-digging","person-dots-from-line","person-dress-burst","person-dress","person-drowning","person-falling-burst","person-falling","person-half-dress","person-harassing","person-hiking","person-military-pointing","person-military-rifle","person-military-to-person","person-praying","person-pregnant","person-rays","person-rifle","person-running","person-shelter","person-skating","person-skiing-nordic","person-skiing","person-snowboarding","person-swimming","person-through-window","person-walking-arrow-loop-left","person-walking-arrow-right","person-walking-dashed-line-arrow-right","person-walking-luggage","person-walking-with-cane","person-walking","person","peseta-sign","peso-sign","phone-flip","phone-slash","phone-volume","phone","photo-film","piggy-bank","pills","pizza-slice","place-of-worship","plane-arrival","plane-circle-check","plane-circle-exclamation","plane-circle-xmark","plane-departure","plane-lock","plane-slash","plane-up","plane","plant-wilt","plate-wheat","play","plug-circle-bolt","plug-circle-check","plug-circle-exclamation","plug-circle-minus","plug-circle-plus","plug-circle-xmark","plug","plus-minus","plus","podcast","poo-storm","poo","poop","power-off","prescription-bottle-medical","prescription-bottle","prescription","print","pump-medical","pump-soap","puzzle-piece","q","qrcode","question","quote-left","quote-right","r","radiation","radio","rainbow","ranking-star","receipt","record-vinyl","rectangle-ad","rectangle-list","rectangle-xmark","recycle","registered","repeat","reply-all","reply","republican","restroom","retweet","ribbon","right-from-bracket","right-left","right-long","right-to-bracket","ring","road-barrier","road-bridge","road-circle-check","road-circle-exclamation","road-circle-xmark","road-lock","road-spikes","road","robot","rocket","rotate-left","rotate-right","rotate","route","rss","ruble-sign","rug","ruler-combined","ruler-horizontal","ruler-vertical","ruler","rupee-sign","rupiah-sign","s","sack-dollar","sack-xmark","sailboat","satellite-dish","satellite","scale-balanced","scale-unbalanced-flip","scale-unbalanced","school-circle-check","school-circle-exclamation","school-circle-xmark","school-flag","school-lock","school","scissors","screwdriver-wrench","screwdriver","scroll-torah","scroll","sd-card","section","seedling","server","shapes","share-from-square","share-nodes","share","sheet-plastic","shekel-sign","shield-cat","shield-dog","shield-halved","shield-heart","shield-virus","shield","ship","shirt","shoe-prints","shop-lock","shop-slash","shop","shower","shrimp","shuffle","shuttle-space","sign-hanging","signal","signature","signs-post","sim-card","sink","sitemap","skull-crossbones","skull","slash","sleigh","sliders","smog","smoking","snowflake","snowman","snowplow","soap","socks","solar-panel","sort-down","sort-up","sort","spa","spaghetti-monster-flying","spell-check","spider","spinner","splotch","spoon","spray-can-sparkles","spray-can","square-arrow-up-right","square-caret-down","square-caret-left","square-caret-right","square-caret-up","square-check","square-envelope","square-full","square-h","square-minus","square-nfi","square-parking","square-pen","square-person-confined","square-phone-flip","square-phone","square-plus","square-poll-horizontal","square-poll-vertical","square-root-variable","square-rss","square-share-nodes","square-up-right","square-virus","square-xmark","square","staff-snake","stairs","stamp","stapler","star-and-crescent","star-half-stroke","star-half","star-of-david","star-of-life","star","sterling-sign","stethoscope","stop","stopwatch-20","stopwatch","store-slash","store","street-view","strikethrough","stroopwafel","subscript","suitcase-medical","suitcase-rolling","suitcase","sun-plant-wilt","sun","superscript","swatchbook","synagogue","syringe","t","table-cells-large","table-cells","table-columns","table-list","table-tennis-paddle-ball","table","tablet-button","tablet-screen-button","tablet","tablets","tachograph-digital","tag","tags","tape","tarp-droplet","tarp","taxi","teeth-open","teeth","temperature-arrow-down","temperature-arrow-up","temperature-empty","temperature-full","temperature-half","temperature-high","temperature-low","temperature-quarter","temperature-three-quarters","tenge-sign","tent-arrow-down-to-line","tent-arrow-left-right","tent-arrow-turn-left","tent-arrows-down","tent","tents","terminal","text-height","text-slash","text-width","thermometer","thumbs-down","thumbs-up","thumbtack","ticket-simple","ticket","timeline","toggle-off","toggle-on","toilet-paper-slash","toilet-paper","toilet-portable","toilet","toilets-portable","toolbox","tooth","torii-gate","tornado","tower-broadcast","tower-cell","tower-observation","tractor","trademark","traffic-light","trailer","train-subway","train-tram","train","transgender","trash-arrow-up","trash-can-arrow-up","trash-can","trash","tree-city","tree","triangle-exclamation","trophy","trowel-bricks","trowel","truck-arrow-right","truck-droplet","truck-fast","truck-field-un","truck-field","truck-front","truck-medical","truck-monster","truck-moving","truck-pickup","truck-plane","truck-ramp-box","truck","tty","turkish-lira-sign","turn-down","turn-up","tv","u","umbrella-beach","umbrella","underline","universal-access","unlock-keyhole","unlock","up-down-left-right","up-down","up-long","up-right-and-down-left-from-center","up-right-from-square","upload","user-astronaut","user-check","user-clock","user-doctor","user-gear","user-graduate","user-group","user-injured","user-large-slash","user-large","user-lock","user-minus","user-ninja","user-nurse","user-pen","user-plus","user-secret","user-shield","user-slash","user-tag","user-tie","user-xmark","user","users-between-lines","users-gear","users-line","users-rays","users-rectangle","users-slash","users-viewfinder","users","utensils","v","van-shuttle","vault","vector-square","venus-double","venus-mars","venus","vest-patches","vest","vial-circle-check","vial-virus","vial","vials","video-slash","video","vihara","virus-covid-slash","virus-covid","virus-slash","virus","viruses","voicemail","volcano","volleyball","volume-high","volume-low","volume-off","volume-xmark","vr-cardboard","w","walkie-talkie","wallet","wand-magic-sparkles","wand-magic","wand-sparkles","warehouse","water-ladder","water","wave-square","weight-hanging","weight-scale","wheat-awn-circle-exclamation","wheat-awn","wheelchair-move","wheelchair","whiskey-glass","wifi","wind","window-maximize","window-minimize","window-restore","wine-bottle","wine-glass-empty","wine-glass","won-sign","worm","wrench","x-ray","x","xmark","xmarks-lines","y","yen-sign","yin-yang","z"]}'),O=window.wp.a11y;function E(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||B(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.")}()}function A(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,s,i=[],l=!0,c=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=o.call(t)).done)&&(i.push(n.value),i.length!==r);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(c)throw a}}return i}}(e,r)||B(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,r){if(e){if("string"==typeof e)return I(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?I(e,r):void 0}}function I(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t0?(0,n.jsx)(s.__experimentalGrid,{columns:12,children:w.map((function(e){return(0,n.jsx)(s.Button,{isPressed:e.value===r.icon,onClick:function(){return T(e.value)},size:"compact",className:"elements-blocks-icon-Button",label:e.value.split(" ")[1],showTooltip:!0,children:(0,n.jsx)(F,{type:e.value.split(" ")[0],iconName:e.value.split(" ")[1],attributes:r,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:e.value})},e.value)}))}):(0,n.jsx)("p",{children:(0,o.__)("No icons found. Please try a different search term.","rrze-elements-blocks")})]})]}),(0,n.jsx)(s.__experimentalDivider,{}),(0,n.jsxs)(s.__experimentalSpacer,{paddingTop:"1rem",paddingBottom:"1rem",children:[(0,n.jsx)(s.__experimentalHeading,{children:(0,o.__)("Solid Icons","rrze-elements-blocks")}),(0,n.jsx)(s.__experimentalGrid,{columns:12,children:i.map((function(e){return(0,n.jsx)(s.Button,{isPressed:e.value===r.icon,onClick:function(){return T(e.value)},size:"compact",className:"elements-blocks-icon-Button",label:e.value.split(" ")[1],showTooltip:!0,children:(0,n.jsx)(F,{type:e.value.split(" ")[0],iconName:e.value.split(" ")[1],attributes:r,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:e.value})},e.value)}))})]}),(0,n.jsx)(s.__experimentalDivider,{}),(0,n.jsxs)(s.__experimentalSpacer,{paddingTop:"1rem",paddingBottom:"1rem",children:[(0,n.jsx)(s.__experimentalHeading,{children:(0,o.__)("Regular Icons","rrze-elements-blocks")}),(0,n.jsx)(s.__experimentalGrid,{columns:12,children:u.map((function(e){return(0,n.jsx)(s.Button,{isPressed:e.value===r.icon,onClick:function(){return T(e.value)},size:"compact",className:"elements-blocks-icon-Button",label:e.value.split(" ")[1],showTooltip:!0,children:(0,n.jsx)(F,{type:e.value.split(" ")[0],iconName:e.value.split(" ")[1],attributes:r,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:e.value})},e.value)}))})]}),(0,n.jsx)(s.__experimentalDivider,{}),(0,n.jsxs)(s.__experimentalSpacer,{paddingTop:"1rem",paddingBottom:"1rem",children:[(0,n.jsx)(s.__experimentalHeading,{children:(0,o.__)("Brand Icons","rrze-elements-blocks")}),(0,n.jsx)(s.__experimentalGrid,{columns:12,children:m.map((function(e){return(0,n.jsx)(s.Button,{isPressed:e.value===r.icon,onClick:function(){return T(e.value)},size:"compact",className:"elements-blocks-icon-Button",label:e.value.split(" ")[1],showTooltip:!0,children:(0,n.jsx)(F,{type:e.value.split(" ")[0],iconName:e.value.split(" ")[1],attributes:r,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:e.value})},e.value)}))})]}),(0,n.jsx)(s.__experimentalSpacer,{paddingBottom:"1rem",children:(0,n.jsx)(s.__experimentalDivider,{})})]})})),F=function(e){var r=e.attributes,t=e.className,a=void 0===t?"":t,o=e.onClick,s=e.iconValue,i=void 0===s?"":s,l=function(){o&&o()},c=i.split(" ")[0]||"",u=i.split(" ")[1]||"";return""===i?(0,n.jsx)("span",{className:"".concat(r.svgString," ").concat(a),onClick:l}):(0,n.jsx)("span",{className:"fa-".concat(c," fa-").concat(u," ").concat(a),onClick:l})};function J(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,s,i=[],l=!0,c=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=o.call(t)).done)&&(i.push(n.value),i.length!==r);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(c)throw a}}return i}}(e,r)||function(e,r){if(e){if("string"==typeof e)return R(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?R(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);te.length)&&(r=e.length);for(var t=0,n=Array(r);t3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e.find((function(e){return e.color===r}));s&&n?(t({color:s.color}),j(r,t),a&&(t({style:s.slug}),j(r,t))):s?t({color:s.slug}):a&&(t({color:r,style:""}),o&&j(r,t))}(v,e,a,l,c,p)},disableCustomColors:!h,clearable:b})})},N=function(e){var r=e.attributes,t=e.setAttributes,a=e.colorData,l=void 0===a?z:a,c=e.useStyle,u=void 0!==c&&c,h=e.hex,d=void 0!==h&&h,p=e.overwriteThemeColors,m=(void 0!==p&&p?null:(0,i.useSettings)("color.palette")[0])||l,g="rrzeElementsBFakColorSelector";return r.color&&(g="rrzeElementsBFakColorSelector ".concat(d?r.color.slice(1):r.color)),(0,n.jsx)(s.ToolbarGroup,{children:(0,n.jsx)(s.ToolbarItem,{children:function(){return(0,n.jsx)(s.ToolbarDropdownMenu,{icon:w,className:g,label:(0,o.__)("Select a Color","rrze-elements-blocks"),controls:m.map((function(e){return{key:e.slug,title:e.name,icon:w,onClick:function(){return t({color:d?e.color:e.slug,style:u?e.slug:""})}}}))})}})})},z=[{color:"#04316A",slug:"",name:(0,o.__)("Central institution","rrze-elements-blocks")},{color:"#C50F3C",slug:"rw",name:(0,o.__)("Faculty of Business, Economics, and Law","rrze-elements-blocks")},{color:"#7bb725",slug:"nat",name:(0,o.__)("Faculty of Sciences","rrze-elements-blocks")},{color:"#18B4F1",slug:"med",name:(0,o.__)("Faculty of Medicine","rrze-elements-blocks")},{color:"#FDB735",slug:"phil",name:(0,o.__)("Faculty of Humanities, Social Sciences, and Theology","rrze-elements-blocks")},{color:"#8C9FB1",slug:"tf",name:(0,o.__)("Faculty of Engineering","rrze-elements-blocks")}],S=([{color:"#fff",slug:"inherit",name:(0,o.__)("Inherit color","rrze-elements-blocks")}].concat(z),function(e){return(0,n.jsx)(_,Object.assign({},e))}),q=function(e){return(0,n.jsx)(N,Object.assign({},e))},C=function(e){var r=e.attributes,t=e.setAttributes;return(0,n.jsx)(s.PanelBody,{title:(0,o.__)("Advanced Settings","rrze-elements-blocks"),children:(0,n.jsx)(s.CheckboxControl,{label:(0,o.__)("Open collapse on Page load","rrze-elements-blocks"),checked:r.loadOpen,onChange:function(){t({loadOpen:!r.loadOpen})}})})},M=JSON.parse('{"brands":["42-group","500px","accessible-icon","accusoft","adn","adversal","affiliatetheme","airbnb","algolia","alipay","amazon-pay","amazon","amilia","android","angellist","angrycreative","angular","app-store-ios","app-store","apper","apple-pay","apple","artstation","asymmetrik","atlassian","audible","autoprefixer","avianex","aviato","aws","bandcamp","battle-net","behance","bilibili","bimobject","bitbucket","bitcoin","bity","black-tie","blackberry","blogger-b","blogger","bluetooth-b","bluetooth","bootstrap","bots","btc","buffer","buromobelexperte","buy-n-large","buysellads","canadian-maple-leaf","cc-amazon-pay","cc-amex","cc-apple-pay","cc-diners-club","cc-discover","cc-jcb","cc-mastercard","cc-paypal","cc-stripe","cc-visa","centercode","centos","chrome","chromecast","cloudflare","cloudscale","cloudsmith","cloudversify","cmplid","codepen","codiepie","confluence","connectdevelop","contao","cotton-bureau","cpanel","creative-commons-by","creative-commons-nc-eu","creative-commons-nc-jp","creative-commons-nc","creative-commons-nd","creative-commons-pd-alt","creative-commons-pd","creative-commons-remix","creative-commons-sa","creative-commons-sampling-plus","creative-commons-sampling","creative-commons-share","creative-commons-zero","creative-commons","critical-role","css3-alt","css3","cuttlefish","d-and-d-beyond","d-and-d","dailymotion","dashcube","debian","deezer","delicious","deploydog","deskpro","dev","deviantart","dhl","diaspora","digg","digital-ocean","discord","discourse","dochub","docker","draft2digital","dribbble","dropbox","drupal","dyalog","earlybirds","ebay","edge-legacy","edge","elementor","ello","ember","empire","envira","erlang","ethereum","etsy","evernote","expeditedssl","facebook-f","facebook-messenger","facebook","fantasy-flight-games","fedex","fedora","figma","firefox-browser","firefox","first-order-alt","first-order","firstdraft","flickr","flipboard","fly","font-awesome","fonticons-fi","fonticons","fort-awesome-alt","fort-awesome","forumbee","foursquare","free-code-camp","freebsd","fulcrum","galactic-republic","galactic-senate","get-pocket","gg-circle","gg","git-alt","git","github-alt","github","gitkraken","gitlab","gitter","glide-g","glide","gofore","golang","goodreads-g","goodreads","google-drive","google-pay","google-play","google-plus-g","google-plus","google-wallet","google","gratipay","grav","gripfire","grunt","guilded","gulp","hacker-news","hackerrank","hashnode","hips","hire-a-helper","hive","hooli","hornbill","hotjar","houzz","html5","hubspot","ideal","imdb","instagram","instalod","intercom","internet-explorer","invision","ioxhost","itch-io","itunes-note","itunes","java","jedi-order","jenkins","jira","joget","joomla","js","jsfiddle","kaggle","keybase","keycdn","kickstarter-k","kickstarter","korvue","laravel","lastfm","leanpub","less","line","linkedin-in","linkedin","linode","linux","lyft","magento","mailchimp","mandalorian","markdown","mastodon","maxcdn","mdb","medapps","medium","medrt","meetup","megaport","mendeley","meta","microblog","microsoft","mix","mixcloud","mixer","mizuni","modx","monero","napster","neos","nfc-directional","nfc-symbol","nimblr","node-js","node","npm","ns8","nutritionix","octopus-deploy","odnoklassniki","odysee","old-republic","opencart","openid","opera","optin-monster","orcid","osi","padlet","page4","pagelines","palfed","patreon","paypal","perbyte","periscope","phabricator","phoenix-framework","phoenix-squadron","php","pied-piper-alt","pied-piper-hat","pied-piper-pp","pied-piper","pinterest-p","pinterest","pix","playstation","product-hunt","pushed","python","qq","quinscape","quora","r-project","raspberry-pi","ravelry","react","reacteurope","readme","rebel","red-river","reddit-alien","reddit","redhat","renren","replyd","researchgate","resolving","rev","rocketchat","rockrms","rust","safari","salesforce","sass","schlix","screenpal","scribd","searchengin","sellcast","sellsy","servicestack","shirtsinbulk","shopify","shopware","simplybuilt","sistrix","sith","sitrox","sketch","skyatlas","skype","slack","slideshare","snapchat","soundcloud","sourcetree","space-awesome","speakap","speaker-deck","spotify","square-behance","square-dribbble","square-facebook","square-font-awesome-stroke","square-font-awesome","square-git","square-github","square-gitlab","square-google-plus","square-hacker-news","square-instagram","square-js","square-lastfm","square-odnoklassniki","square-pied-piper","square-pinterest","square-reddit","square-snapchat","square-steam","square-threads","square-tumblr","square-twitter","square-viadeo","square-vimeo","square-whatsapp","square-x-twitter","square-xing","square-youtube","squarespace","stack-exchange","stack-overflow","stackpath","staylinked","steam-symbol","steam","sticker-mule","strava","stripe-s","stripe","stubber","studiovinari","stumbleupon-circle","stumbleupon","superpowers","supple","suse","swift","symfony","teamspeak","telegram","tencent-weibo","the-red-yeti","themeco","themeisle","think-peaks","threads","tiktok","trade-federation","trello","tumblr","twitch","twitter","typo3","uber","ubuntu","uikit","umbraco","uncharted","uniregistry","unity","unsplash","untappd","ups","usb","usps","ussunnah","vaadin","viacoin","viadeo","viber","vimeo-v","vimeo","vine","vk","vnv","vuejs","watchman-monitoring","waze","weebly","weibo","weixin","whatsapp","whmcs","wikipedia-w","windows","wirsindhandwerk","wix","wizards-of-the-coast","wodu","wolf-pack-battalion","wordpress-simple","wordpress","wpbeginner","wpexplorer","wpforms","wpressr","x-twitter","xbox","xing","y-combinator","yahoo","yammer","yandex-international","yandex","yarn","yelp","yoast","youtube","zhihu"],"regular":["address-book","address-card","bell-slash","bell","bookmark","building","calendar-check","calendar-days","calendar-minus","calendar-plus","calendar-xmark","calendar","chart-bar","chess-bishop","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","circle-check","circle-dot","circle-down","circle-left","circle-pause","circle-play","circle-question","circle-right","circle-stop","circle-up","circle-user","circle-xmark","circle","clipboard","clock","clone","closed-captioning","comment-dots","comment","comments","compass","copy","copyright","credit-card","envelope-open","envelope","eye-slash","eye","face-angry","face-dizzy","face-flushed","face-frown-open","face-frown","face-grimace","face-grin-beam-sweat","face-grin-beam","face-grin-hearts","face-grin-squint-tears","face-grin-squint","face-grin-stars","face-grin-tears","face-grin-tongue-squint","face-grin-tongue-wink","face-grin-tongue","face-grin-wide","face-grin-wink","face-grin","face-kiss-beam","face-kiss-wink-heart","face-kiss","face-laugh-beam","face-laugh-squint","face-laugh-wink","face-laugh","face-meh-blank","face-meh","face-rolling-eyes","face-sad-cry","face-sad-tear","face-smile-beam","face-smile-wink","face-smile","face-surprise","face-tired","file-audio","file-code","file-excel","file-image","file-lines","file-pdf","file-powerpoint","file-video","file-word","file-zipper","file","flag","floppy-disk","folder-closed","folder-open","folder","font-awesome","futbol","gem","hand-back-fist","hand-lizard","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","hand-pointer","hand-scissors","hand-spock","hand","handshake","hard-drive","heart","hospital","hourglass-half","hourglass","id-badge","id-card","image","images","keyboard","lemon","life-ring","lightbulb","map","message","money-bill-1","moon","newspaper","notdef","note-sticky","object-group","object-ungroup","paper-plane","paste","pen-to-square","rectangle-list","rectangle-xmark","registered","share-from-square","snowflake","square-caret-down","square-caret-left","square-caret-right","square-caret-up","square-check","square-full","square-minus","square-plus","square","star-half-stroke","star-half","star","sun","thumbs-down","thumbs-up","trash-can","user","window-maximize","window-minimize","window-restore"],"solid":["0","1","2","3","4","5","6","7","8","9","a","address-book","address-card","align-center","align-justify","align-left","align-right","anchor-circle-check","anchor-circle-exclamation","anchor-circle-xmark","anchor-lock","anchor","angle-down","angle-left","angle-right","angle-up","angles-down","angles-left","angles-right","angles-up","ankh","apple-whole","archway","arrow-down-1-9","arrow-down-9-1","arrow-down-a-z","arrow-down-long","arrow-down-short-wide","arrow-down-up-across-line","arrow-down-up-lock","arrow-down-wide-short","arrow-down-z-a","arrow-down","arrow-left-long","arrow-left","arrow-pointer","arrow-right-arrow-left","arrow-right-from-bracket","arrow-right-long","arrow-right-to-bracket","arrow-right-to-city","arrow-right","arrow-rotate-left","arrow-rotate-right","arrow-trend-down","arrow-trend-up","arrow-turn-down","arrow-turn-up","arrow-up-1-9","arrow-up-9-1","arrow-up-a-z","arrow-up-from-bracket","arrow-up-from-ground-water","arrow-up-from-water-pump","arrow-up-long","arrow-up-right-dots","arrow-up-right-from-square","arrow-up-short-wide","arrow-up-wide-short","arrow-up-z-a","arrow-up","arrows-down-to-line","arrows-down-to-people","arrows-left-right-to-line","arrows-left-right","arrows-rotate","arrows-spin","arrows-split-up-and-left","arrows-to-circle","arrows-to-dot","arrows-to-eye","arrows-turn-right","arrows-turn-to-dots","arrows-up-down-left-right","arrows-up-down","arrows-up-to-line","asterisk","at","atom","audio-description","austral-sign","award","b","baby-carriage","baby","backward-fast","backward-step","backward","bacon","bacteria","bacterium","bag-shopping","bahai","baht-sign","ban-smoking","ban","bandage","bangladeshi-taka-sign","barcode","bars-progress","bars-staggered","bars","baseball-bat-ball","baseball","basket-shopping","basketball","bath","battery-empty","battery-full","battery-half","battery-quarter","battery-three-quarters","bed-pulse","bed","beer-mug-empty","bell-concierge","bell-slash","bell","bezier-curve","bicycle","binoculars","biohazard","bitcoin-sign","blender-phone","blender","blog","bold","bolt-lightning","bolt","bomb","bone","bong","book-atlas","book-bible","book-bookmark","book-journal-whills","book-medical","book-open-reader","book-open","book-quran","book-skull","book-tanakh","book","bookmark","border-all","border-none","border-top-left","bore-hole","bottle-droplet","bottle-water","bowl-food","bowl-rice","bowling-ball","box-archive","box-open","box-tissue","box","boxes-packing","boxes-stacked","braille","brain","brazilian-real-sign","bread-slice","bridge-circle-check","bridge-circle-exclamation","bridge-circle-xmark","bridge-lock","bridge-water","bridge","briefcase-medical","briefcase","broom-ball","broom","brush","bucket","bug-slash","bug","bugs","building-circle-arrow-right","building-circle-check","building-circle-exclamation","building-circle-xmark","building-columns","building-flag","building-lock","building-ngo","building-shield","building-un","building-user","building-wheat","building","bullhorn","bullseye","burger","burst","bus-simple","bus","business-time","c","cable-car","cake-candles","calculator","calendar-check","calendar-day","calendar-days","calendar-minus","calendar-plus","calendar-week","calendar-xmark","calendar","camera-retro","camera-rotate","camera","campground","candy-cane","cannabis","capsules","car-battery","car-burst","car-on","car-rear","car-side","car-tunnel","car","caravan","caret-down","caret-left","caret-right","caret-up","carrot","cart-arrow-down","cart-flatbed-suitcase","cart-flatbed","cart-plus","cart-shopping","cash-register","cat","cedi-sign","cent-sign","certificate","chair","chalkboard-user","chalkboard","champagne-glasses","charging-station","chart-area","chart-bar","chart-column","chart-gantt","chart-line","chart-pie","chart-simple","check-double","check-to-slot","check","cheese","chess-bishop","chess-board","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","chess","chevron-down","chevron-left","chevron-right","chevron-up","child-combatant","child-dress","child-reaching","child-rifle","child","children","church","circle-arrow-down","circle-arrow-left","circle-arrow-right","circle-arrow-up","circle-check","circle-chevron-down","circle-chevron-left","circle-chevron-right","circle-chevron-up","circle-dollar-to-slot","circle-dot","circle-down","circle-exclamation","circle-h","circle-half-stroke","circle-info","circle-left","circle-minus","circle-nodes","circle-notch","circle-pause","circle-play","circle-plus","circle-question","circle-radiation","circle-right","circle-stop","circle-up","circle-user","circle-xmark","circle","city","clapperboard","clipboard-check","clipboard-list","clipboard-question","clipboard-user","clipboard","clock-rotate-left","clock","clone","closed-captioning","cloud-arrow-down","cloud-arrow-up","cloud-bolt","cloud-meatball","cloud-moon-rain","cloud-moon","cloud-rain","cloud-showers-heavy","cloud-showers-water","cloud-sun-rain","cloud-sun","cloud","clover","code-branch","code-commit","code-compare","code-fork","code-merge","code-pull-request","code","coins","colon-sign","comment-dollar","comment-dots","comment-medical","comment-slash","comment-sms","comment","comments-dollar","comments","compact-disc","compass-drafting","compass","compress","computer-mouse","computer","cookie-bite","cookie","copy","copyright","couch","cow","credit-card","crop-simple","crop","cross","crosshairs","crow","crown","crutch","cruzeiro-sign","cube","cubes-stacked","cubes","d","database","delete-left","democrat","desktop","dharmachakra","diagram-next","diagram-predecessor","diagram-project","diagram-successor","diamond-turn-right","diamond","dice-d6","dice-d20","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","dice","disease","display","divide","dna","dog","dollar-sign","dolly","dong-sign","door-closed","door-open","dove","down-left-and-up-right-to-center","down-long","download","dragon","draw-polygon","droplet-slash","droplet","drum-steelpan","drum","drumstick-bite","dumbbell","dumpster-fire","dumpster","dungeon","e","ear-deaf","ear-listen","earth-africa","earth-americas","earth-asia","earth-europe","earth-oceania","egg","eject","elevator","ellipsis-vertical","ellipsis","envelope-circle-check","envelope-open-text","envelope-open","envelope","envelopes-bulk","equals","eraser","ethernet","euro-sign","exclamation","expand","explosion","eye-dropper","eye-low-vision","eye-slash","eye","f","face-angry","face-dizzy","face-flushed","face-frown-open","face-frown","face-grimace","face-grin-beam-sweat","face-grin-beam","face-grin-hearts","face-grin-squint-tears","face-grin-squint","face-grin-stars","face-grin-tears","face-grin-tongue-squint","face-grin-tongue-wink","face-grin-tongue","face-grin-wide","face-grin-wink","face-grin","face-kiss-beam","face-kiss-wink-heart","face-kiss","face-laugh-beam","face-laugh-squint","face-laugh-wink","face-laugh","face-meh-blank","face-meh","face-rolling-eyes","face-sad-cry","face-sad-tear","face-smile-beam","face-smile-wink","face-smile","face-surprise","face-tired","fan","faucet-drip","faucet","fax","feather-pointed","feather","ferry","file-arrow-down","file-arrow-up","file-audio","file-circle-check","file-circle-exclamation","file-circle-minus","file-circle-plus","file-circle-question","file-circle-xmark","file-code","file-contract","file-csv","file-excel","file-export","file-image","file-import","file-invoice-dollar","file-invoice","file-lines","file-medical","file-pdf","file-pen","file-powerpoint","file-prescription","file-shield","file-signature","file-video","file-waveform","file-word","file-zipper","file","fill-drip","fill","film","filter-circle-dollar","filter-circle-xmark","filter","fingerprint","fire-burner","fire-extinguisher","fire-flame-curved","fire-flame-simple","fire","fish-fins","fish","flag-checkered","flag-usa","flag","flask-vial","flask","floppy-disk","florin-sign","folder-closed","folder-minus","folder-open","folder-plus","folder-tree","folder","font-awesome","font","football","forward-fast","forward-step","forward","franc-sign","frog","futbol","g","gamepad","gas-pump","gauge-high","gauge-simple-high","gauge-simple","gauge","gavel","gear","gears","gem","genderless","ghost","gift","gifts","glass-water-droplet","glass-water","glasses","globe","golf-ball-tee","gopuram","graduation-cap","greater-than-equal","greater-than","grip-lines-vertical","grip-lines","grip-vertical","grip","group-arrows-rotate","guarani-sign","guitar","gun","h","hammer","hamsa","hand-back-fist","hand-dots","hand-fist","hand-holding-dollar","hand-holding-droplet","hand-holding-hand","hand-holding-heart","hand-holding-medical","hand-holding","hand-lizard","hand-middle-finger","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","hand-pointer","hand-scissors","hand-sparkles","hand-spock","hand","handcuffs","hands-asl-interpreting","hands-bound","hands-bubbles","hands-clapping","hands-holding-child","hands-holding-circle","hands-holding","hands-praying","hands","handshake-angle","handshake-simple-slash","handshake-simple","handshake-slash","handshake","hanukiah","hard-drive","hashtag","hat-cowboy-side","hat-cowboy","hat-wizard","head-side-cough-slash","head-side-cough","head-side-mask","head-side-virus","heading","headphones-simple","headphones","headset","heart-circle-bolt","heart-circle-check","heart-circle-exclamation","heart-circle-minus","heart-circle-plus","heart-circle-xmark","heart-crack","heart-pulse","heart","helicopter-symbol","helicopter","helmet-safety","helmet-un","highlighter","hill-avalanche","hill-rockslide","hippo","hockey-puck","holly-berry","horse-head","horse","hospital-user","hospital","hot-tub-person","hotdog","hotel","hourglass-end","hourglass-half","hourglass-start","hourglass","house-chimney-crack","house-chimney-medical","house-chimney-user","house-chimney-window","house-chimney","house-circle-check","house-circle-exclamation","house-circle-xmark","house-crack","house-fire","house-flag","house-flood-water-circle-arrow-right","house-flood-water","house-laptop","house-lock","house-medical-circle-check","house-medical-circle-exclamation","house-medical-circle-xmark","house-medical-flag","house-medical","house-signal","house-tsunami","house-user","house","hryvnia-sign","hurricane","i-cursor","i","ice-cream","icicles","icons","id-badge","id-card-clip","id-card","igloo","image-portrait","image","images","inbox","indent","indian-rupee-sign","industry","infinity","info","italic","j","jar-wheat","jar","jedi","jet-fighter-up","jet-fighter","joint","jug-detergent","k","kaaba","key","keyboard","khanda","kip-sign","kit-medical","kitchen-set","kiwi-bird","l","land-mine-on","landmark-dome","landmark-flag","landmark","language","laptop-code","laptop-file","laptop-medical","laptop","lari-sign","layer-group","leaf","left-long","left-right","lemon","less-than-equal","less-than","life-ring","lightbulb","lines-leaning","link-slash","link","lira-sign","list-check","list-ol","list-ul","list","litecoin-sign","location-arrow","location-crosshairs","location-dot","location-pin-lock","location-pin","lock-open","lock","locust","lungs-virus","lungs","m","magnet","magnifying-glass-arrow-right","magnifying-glass-chart","magnifying-glass-dollar","magnifying-glass-location","magnifying-glass-minus","magnifying-glass-plus","magnifying-glass","manat-sign","map-location-dot","map-location","map-pin","map","marker","mars-and-venus-burst","mars-and-venus","mars-double","mars-stroke-right","mars-stroke-up","mars-stroke","mars","martini-glass-citrus","martini-glass-empty","martini-glass","mask-face","mask-ventilator","mask","masks-theater","mattress-pillow","maximize","medal","memory","menorah","mercury","message","meteor","microchip","microphone-lines-slash","microphone-lines","microphone-slash","microphone","microscope","mill-sign","minimize","minus","mitten","mobile-button","mobile-retro","mobile-screen-button","mobile-screen","mobile","money-bill-1-wave","money-bill-1","money-bill-transfer","money-bill-trend-up","money-bill-wave","money-bill-wheat","money-bill","money-bills","money-check-dollar","money-check","monument","moon","mortar-pestle","mosque","mosquito-net","mosquito","motorcycle","mound","mountain-city","mountain-sun","mountain","mug-hot","mug-saucer","music","n","naira-sign","network-wired","neuter","newspaper","not-equal","notdef","note-sticky","notes-medical","o","object-group","object-ungroup","oil-can","oil-well","om","otter","outdent","p","pager","paint-roller","paintbrush","palette","pallet","panorama","paper-plane","paperclip","parachute-box","paragraph","passport","paste","pause","paw","peace","pen-clip","pen-fancy","pen-nib","pen-ruler","pen-to-square","pen","pencil","people-arrows","people-carry-box","people-group","people-line","people-pulling","people-robbery","people-roof","pepper-hot","percent","person-arrow-down-to-line","person-arrow-up-from-line","person-biking","person-booth","person-breastfeeding","person-burst","person-cane","person-chalkboard","person-circle-check","person-circle-exclamation","person-circle-minus","person-circle-plus","person-circle-question","person-circle-xmark","person-digging","person-dots-from-line","person-dress-burst","person-dress","person-drowning","person-falling-burst","person-falling","person-half-dress","person-harassing","person-hiking","person-military-pointing","person-military-rifle","person-military-to-person","person-praying","person-pregnant","person-rays","person-rifle","person-running","person-shelter","person-skating","person-skiing-nordic","person-skiing","person-snowboarding","person-swimming","person-through-window","person-walking-arrow-loop-left","person-walking-arrow-right","person-walking-dashed-line-arrow-right","person-walking-luggage","person-walking-with-cane","person-walking","person","peseta-sign","peso-sign","phone-flip","phone-slash","phone-volume","phone","photo-film","piggy-bank","pills","pizza-slice","place-of-worship","plane-arrival","plane-circle-check","plane-circle-exclamation","plane-circle-xmark","plane-departure","plane-lock","plane-slash","plane-up","plane","plant-wilt","plate-wheat","play","plug-circle-bolt","plug-circle-check","plug-circle-exclamation","plug-circle-minus","plug-circle-plus","plug-circle-xmark","plug","plus-minus","plus","podcast","poo-storm","poo","poop","power-off","prescription-bottle-medical","prescription-bottle","prescription","print","pump-medical","pump-soap","puzzle-piece","q","qrcode","question","quote-left","quote-right","r","radiation","radio","rainbow","ranking-star","receipt","record-vinyl","rectangle-ad","rectangle-list","rectangle-xmark","recycle","registered","repeat","reply-all","reply","republican","restroom","retweet","ribbon","right-from-bracket","right-left","right-long","right-to-bracket","ring","road-barrier","road-bridge","road-circle-check","road-circle-exclamation","road-circle-xmark","road-lock","road-spikes","road","robot","rocket","rotate-left","rotate-right","rotate","route","rss","ruble-sign","rug","ruler-combined","ruler-horizontal","ruler-vertical","ruler","rupee-sign","rupiah-sign","s","sack-dollar","sack-xmark","sailboat","satellite-dish","satellite","scale-balanced","scale-unbalanced-flip","scale-unbalanced","school-circle-check","school-circle-exclamation","school-circle-xmark","school-flag","school-lock","school","scissors","screwdriver-wrench","screwdriver","scroll-torah","scroll","sd-card","section","seedling","server","shapes","share-from-square","share-nodes","share","sheet-plastic","shekel-sign","shield-cat","shield-dog","shield-halved","shield-heart","shield-virus","shield","ship","shirt","shoe-prints","shop-lock","shop-slash","shop","shower","shrimp","shuffle","shuttle-space","sign-hanging","signal","signature","signs-post","sim-card","sink","sitemap","skull-crossbones","skull","slash","sleigh","sliders","smog","smoking","snowflake","snowman","snowplow","soap","socks","solar-panel","sort-down","sort-up","sort","spa","spaghetti-monster-flying","spell-check","spider","spinner","splotch","spoon","spray-can-sparkles","spray-can","square-arrow-up-right","square-caret-down","square-caret-left","square-caret-right","square-caret-up","square-check","square-envelope","square-full","square-h","square-minus","square-nfi","square-parking","square-pen","square-person-confined","square-phone-flip","square-phone","square-plus","square-poll-horizontal","square-poll-vertical","square-root-variable","square-rss","square-share-nodes","square-up-right","square-virus","square-xmark","square","staff-snake","stairs","stamp","stapler","star-and-crescent","star-half-stroke","star-half","star-of-david","star-of-life","star","sterling-sign","stethoscope","stop","stopwatch-20","stopwatch","store-slash","store","street-view","strikethrough","stroopwafel","subscript","suitcase-medical","suitcase-rolling","suitcase","sun-plant-wilt","sun","superscript","swatchbook","synagogue","syringe","t","table-cells-large","table-cells","table-columns","table-list","table-tennis-paddle-ball","table","tablet-button","tablet-screen-button","tablet","tablets","tachograph-digital","tag","tags","tape","tarp-droplet","tarp","taxi","teeth-open","teeth","temperature-arrow-down","temperature-arrow-up","temperature-empty","temperature-full","temperature-half","temperature-high","temperature-low","temperature-quarter","temperature-three-quarters","tenge-sign","tent-arrow-down-to-line","tent-arrow-left-right","tent-arrow-turn-left","tent-arrows-down","tent","tents","terminal","text-height","text-slash","text-width","thermometer","thumbs-down","thumbs-up","thumbtack","ticket-simple","ticket","timeline","toggle-off","toggle-on","toilet-paper-slash","toilet-paper","toilet-portable","toilet","toilets-portable","toolbox","tooth","torii-gate","tornado","tower-broadcast","tower-cell","tower-observation","tractor","trademark","traffic-light","trailer","train-subway","train-tram","train","transgender","trash-arrow-up","trash-can-arrow-up","trash-can","trash","tree-city","tree","triangle-exclamation","trophy","trowel-bricks","trowel","truck-arrow-right","truck-droplet","truck-fast","truck-field-un","truck-field","truck-front","truck-medical","truck-monster","truck-moving","truck-pickup","truck-plane","truck-ramp-box","truck","tty","turkish-lira-sign","turn-down","turn-up","tv","u","umbrella-beach","umbrella","underline","universal-access","unlock-keyhole","unlock","up-down-left-right","up-down","up-long","up-right-and-down-left-from-center","up-right-from-square","upload","user-astronaut","user-check","user-clock","user-doctor","user-gear","user-graduate","user-group","user-injured","user-large-slash","user-large","user-lock","user-minus","user-ninja","user-nurse","user-pen","user-plus","user-secret","user-shield","user-slash","user-tag","user-tie","user-xmark","user","users-between-lines","users-gear","users-line","users-rays","users-rectangle","users-slash","users-viewfinder","users","utensils","v","van-shuttle","vault","vector-square","venus-double","venus-mars","venus","vest-patches","vest","vial-circle-check","vial-virus","vial","vials","video-slash","video","vihara","virus-covid-slash","virus-covid","virus-slash","virus","viruses","voicemail","volcano","volleyball","volume-high","volume-low","volume-off","volume-xmark","vr-cardboard","w","walkie-talkie","wallet","wand-magic-sparkles","wand-magic","wand-sparkles","warehouse","water-ladder","water","wave-square","weight-hanging","weight-scale","wheat-awn-circle-exclamation","wheat-awn","wheelchair-move","wheelchair","whiskey-glass","wifi","wind","window-maximize","window-minimize","window-restore","wine-bottle","wine-glass-empty","wine-glass","won-sign","worm","wrench","x-ray","x","xmark","xmarks-lines","y","yen-sign","yin-yang","z"]}'),O=window.wp.a11y;function E(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||B(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.")}()}function A(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,s,i=[],l=!0,c=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=o.call(t)).done)&&(i.push(n.value),i.length!==r);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(c)throw a}}return i}}(e,r)||B(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,r){if(e){if("string"==typeof e)return I(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?I(e,r):void 0}}function I(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t0?(0,n.jsx)(s.__experimentalGrid,{columns:12,children:w.map((function(e){return(0,n.jsx)(s.Button,{isPressed:e.value===r.icon,onClick:function(){return P(e.value)},size:"compact",className:"elements-blocks-icon-Button",label:e.value.split(" ")[1],showTooltip:!0,children:(0,n.jsx)(F,{type:e.value.split(" ")[0],iconName:e.value.split(" ")[1],attributes:r,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:e.value})},e.value)}))}):(0,n.jsx)("p",{children:(0,o.__)("No icons found. Please try a different search term.","rrze-elements-blocks")})]})]}),(0,n.jsx)(s.__experimentalDivider,{}),(0,n.jsxs)(s.__experimentalSpacer,{paddingTop:"1rem",paddingBottom:"1rem",children:[(0,n.jsx)(s.__experimentalHeading,{children:(0,o.__)("Solid Icons","rrze-elements-blocks")}),(0,n.jsx)(s.__experimentalGrid,{columns:12,children:i.map((function(e){return(0,n.jsx)(s.Button,{isPressed:e.value===r.icon,onClick:function(){return P(e.value)},size:"compact",className:"elements-blocks-icon-Button",label:e.value.split(" ")[1],showTooltip:!0,children:(0,n.jsx)(F,{type:e.value.split(" ")[0],iconName:e.value.split(" ")[1],attributes:r,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:e.value})},e.value)}))})]}),(0,n.jsx)(s.__experimentalDivider,{}),(0,n.jsxs)(s.__experimentalSpacer,{paddingTop:"1rem",paddingBottom:"1rem",children:[(0,n.jsx)(s.__experimentalHeading,{children:(0,o.__)("Regular Icons","rrze-elements-blocks")}),(0,n.jsx)(s.__experimentalGrid,{columns:12,children:u.map((function(e){return(0,n.jsx)(s.Button,{isPressed:e.value===r.icon,onClick:function(){return P(e.value)},size:"compact",className:"elements-blocks-icon-Button",label:e.value.split(" ")[1],showTooltip:!0,children:(0,n.jsx)(F,{type:e.value.split(" ")[0],iconName:e.value.split(" ")[1],attributes:r,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:e.value})},e.value)}))})]}),(0,n.jsx)(s.__experimentalDivider,{}),(0,n.jsxs)(s.__experimentalSpacer,{paddingTop:"1rem",paddingBottom:"1rem",children:[(0,n.jsx)(s.__experimentalHeading,{children:(0,o.__)("Brand Icons","rrze-elements-blocks")}),(0,n.jsx)(s.__experimentalGrid,{columns:12,children:m.map((function(e){return(0,n.jsx)(s.Button,{isPressed:e.value===r.icon,onClick:function(){return P(e.value)},size:"compact",className:"elements-blocks-icon-Button",label:e.value.split(" ")[1],showTooltip:!0,children:(0,n.jsx)(F,{type:e.value.split(" ")[0],iconName:e.value.split(" ")[1],attributes:r,className:"elements-blocks-icon-insideEditor elements-blocks-icon-insideEditorModal",iconValue:e.value})},e.value)}))})]}),(0,n.jsx)(s.__experimentalSpacer,{paddingBottom:"1rem",children:(0,n.jsx)(s.__experimentalDivider,{})})]})})),F=function(e){var r=e.attributes,t=e.className,a=void 0===t?"":t,o=e.onClick,s=e.iconValue,i=void 0===s?"":s,l=function(){o&&o()},c=i.split(" ")[0]||"",u=i.split(" ")[1]||"";return""===i?(0,n.jsx)("span",{className:"".concat(r.svgString," ").concat(a),onClick:l}):(0,n.jsx)("span",{className:"fa-".concat(c," fa-").concat(u," ").concat(a),onClick:l})};function J(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,s,i=[],l=!0,c=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=o.call(t)).done)&&(i.push(n.value),i.length!==r);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(c)throw a}}return i}}(e,r)||function(e,r){if(e){if("string"==typeof e)return R(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?R(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);te.length)&&(r=e.length);for(var t=0,n=Array(r);t=0;--o){var s=this.tryEntries[o],i=s.completion;if("root"===s.tryLoc)return a("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--r){var t=this.tryEntries[r];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),O(t),v}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var a=n.arg;O(t)}return a}}throw Error("illegal catch attempt")},delegateYield:function(r,t,n){return this.delegate={iterator:A(r),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=e),v}},r}var c={jumpNames:[]},u={getJumpNames:function(){return{type:"GET_JUMP_NAMES"}},addJumpName:function(e,r){return{type:"ADD_JUMP_NAME",jumpName:e,clientId:r}},removeJumpName:function(e){return{type:"REMOVE_JUMP_NAME",jumpName:e}},removeJumpNameByClientId:function(e){return{type:"REMOVE_JUMP_NAME_BY_CLIENT_ID",clientId:e}},setJumpNames:function(e){return{type:"SET_JUMP_NAMES",jumpNames:e}}},h={getJumpNames:l().mark((function e(){var r,t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a()({path:"/rrze-elements-blocks/v1/jump-names"});case 3:return r=e.sent,t=Array.isArray(r)?r.filter((function(e){return e&&e.jumpName&&e.clientId})):[],e.next=7,u.setJumpNames(t);case 7:e.next=14;break;case 9:return e.prev=9,e.t0=e.catch(0),console.error("Error fetching jump names:",e.t0),e.next=14,u.setJumpNames([]);case 14:case"end":return e.stop()}}),e,null,[[0,9]])}))},d=(0,o.createReduxStore)("rrze/elements-blocks",{reducer:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_JUMP_NAME":return t.jumpName&&t.clientId?r.jumpNames.some((function(e){return e.jumpName===t.jumpName}))?r:Object.assign(Object.assign({},r),{jumpNames:[].concat((e=r.jumpNames,function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return i(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,r):void 0}}(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.")}()),[{jumpName:t.jumpName,clientId:t.clientId}])}):r;case"REMOVE_JUMP_NAME":return Object.assign(Object.assign({},r),{jumpNames:r.jumpNames.filter((function(e){return e.jumpName!==t.jumpName}))});case"REMOVE_JUMP_NAME_BY_CLIENT_ID":return Object.assign(Object.assign({},r),{jumpNames:r.jumpNames.filter((function(e){return e.clientId!==t.clientId}))});case"SET_JUMP_NAMES":return 0===t.jumpNames.length&&r.jumpNames.length>0?r:Object.assign(Object.assign({},r),{jumpNames:t.jumpNames});default:return r}},actions:u,selectors:{jumpNameExists:function(e,r){return e.jumpNames.some((function(e){return e.jumpName===r}))},getJumpNames:function(e){return e.jumpNames}},resolvers:h});window.__RRZE_ELEMENTS_BLOCKS_STORE_REGISTERED__||((0,o.register)(d),window.__RRZE_ELEMENTS_BLOCKS_STORE_REGISTERED__=!0)},659:function(e,r,t){const n=t(156),a={};for(const e of Object.keys(n))a[n[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:r,labels:t}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:r}),Object.defineProperty(o[e],"labels",{value:t})}o.rgb.hsl=function(e){const r=e[0]/255,t=e[1]/255,n=e[2]/255,a=Math.min(r,t,n),o=Math.max(r,t,n),s=o-a;let i,l;o===a?i=0:r===o?i=(t-n)/s:t===o?i=2+(n-r)/s:n===o&&(i=4+(r-t)/s),i=Math.min(60*i,360),i<0&&(i+=360);const c=(a+o)/2;return l=o===a?0:c<=.5?s/(o+a):s/(2-o-a),[i,100*l,100*c]},o.rgb.hsv=function(e){let r,t,n,a,o;const s=e[0]/255,i=e[1]/255,l=e[2]/255,c=Math.max(s,i,l),u=c-Math.min(s,i,l),h=function(e){return(c-e)/6/u+.5};return 0===u?(a=0,o=0):(o=u/c,r=h(s),t=h(i),n=h(l),s===c?a=n-t:i===c?a=1/3+r-n:l===c&&(a=2/3+t-r),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*c]},o.rgb.hwb=function(e){const r=e[0],t=e[1];let n=e[2];const a=o.rgb.hsl(e)[0],s=1/255*Math.min(r,Math.min(t,n));return n=1-1/255*Math.max(r,Math.max(t,n)),[a,100*s,100*n]},o.rgb.cmyk=function(e){const r=e[0]/255,t=e[1]/255,n=e[2]/255,a=Math.min(1-r,1-t,1-n);return[100*((1-r-a)/(1-a)||0),100*((1-t-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},o.rgb.keyword=function(e){const r=a[e];if(r)return r;let t,o=1/0;for(const r of Object.keys(n)){const a=(i=n[r],((s=e)[0]-i[0])**2+(s[1]-i[1])**2+(s[2]-i[2])**2);a.04045?((r+.055)/1.055)**2.4:r/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*r+.3576*t+.1805*n),100*(.2126*r+.7152*t+.0722*n),100*(.0193*r+.1192*t+.9505*n)]},o.rgb.lab=function(e){const r=o.rgb.xyz(e);let t=r[0],n=r[1],a=r[2];return t/=95.047,n/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*n-16,500*(t-n),200*(n-a)]},o.hsl.rgb=function(e){const r=e[0]/360,t=e[1]/100,n=e[2]/100;let a,o,s;if(0===t)return s=255*n,[s,s,s];a=n<.5?n*(1+t):n+t-n*t;const i=2*n-a,l=[0,0,0];for(let e=0;e<3;e++)o=r+1/3*-(e-1),o<0&&o++,o>1&&o--,s=6*o<1?i+6*(a-i)*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,l[e]=255*s;return l},o.hsl.hsv=function(e){const r=e[0];let t=e[1]/100,n=e[2]/100,a=t;const o=Math.max(n,.01);return n*=2,t*=n<=1?n:2-n,a*=o<=1?o:2-o,[r,100*(0===n?2*a/(o+a):2*t/(n+t)),(n+t)/2*100]},o.hsv.rgb=function(e){const r=e[0]/60,t=e[1]/100;let n=e[2]/100;const a=Math.floor(r)%6,o=r-Math.floor(r),s=255*n*(1-t),i=255*n*(1-t*o),l=255*n*(1-t*(1-o));switch(n*=255,a){case 0:return[n,l,s];case 1:return[i,n,s];case 2:return[s,n,l];case 3:return[s,i,n];case 4:return[l,s,n];case 5:return[n,s,i]}},o.hsv.hsl=function(e){const r=e[0],t=e[1]/100,n=e[2]/100,a=Math.max(n,.01);let o,s;s=(2-t)*n;const i=(2-t)*a;return o=t*a,o/=i<=1?i:2-i,o=o||0,s/=2,[r,100*o,100*s]},o.hwb.rgb=function(e){const r=e[0]/360;let t=e[1]/100,n=e[2]/100;const a=t+n;let o;a>1&&(t/=a,n/=a);const s=Math.floor(6*r),i=1-n;o=6*r-s,1&s&&(o=1-o);const l=t+o*(i-t);let c,u,h;switch(s){default:case 6:case 0:c=i,u=l,h=t;break;case 1:c=l,u=i,h=t;break;case 2:c=t,u=i,h=l;break;case 3:c=t,u=l,h=i;break;case 4:c=l,u=t,h=i;break;case 5:c=i,u=t,h=l}return[255*c,255*u,255*h]},o.cmyk.rgb=function(e){const r=e[0]/100,t=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},o.xyz.rgb=function(e){const r=e[0]/100,t=e[1]/100,n=e[2]/100;let a,o,s;return a=3.2406*r+-1.5372*t+-.4986*n,o=-.9689*r+1.8758*t+.0415*n,s=.0557*r+-.204*t+1.057*n,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*a,255*o,255*s]},o.xyz.lab=function(e){let r=e[0],t=e[1],n=e[2];return r/=95.047,t/=100,n/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*t-16,500*(r-t),200*(t-n)]},o.lab.xyz=function(e){let r,t,n;t=(e[0]+16)/116,r=e[1]/500+t,n=t-e[2]/200;const a=t**3,o=r**3,s=n**3;return t=a>.008856?a:(t-16/116)/7.787,r=o>.008856?o:(r-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,r*=95.047,t*=100,n*=108.883,[r,t,n]},o.lab.lch=function(e){const r=e[0],t=e[1],n=e[2];let a;return a=360*Math.atan2(n,t)/2/Math.PI,a<0&&(a+=360),[r,Math.sqrt(t*t+n*n),a]},o.lch.lab=function(e){const r=e[0],t=e[1],n=e[2]/360*2*Math.PI;return[r,t*Math.cos(n),t*Math.sin(n)]},o.rgb.ansi16=function(e,r=null){const[t,n,a]=e;let s=null===r?o.rgb.hsv(e)[2]:r;if(s=Math.round(s/50),0===s)return 30;let i=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===s&&(i+=60),i},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const r=e[0],t=e[1],n=e[2];return r===t&&t===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},o.ansi16.rgb=function(e){let r=e%10;if(0===r||7===r)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];const t=.5*(1+~~(e>50));return[(1&r)*t*255,(r>>1&1)*t*255,(r>>2&1)*t*255]},o.ansi256.rgb=function(e){if(e>=232){const r=10*(e-232)+8;return[r,r,r]}let r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},o.rgb.hex=function(e){const r=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(r.length)+r},o.hex.rgb=function(e){const r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let t=r[0];3===r[0].length&&(t=t.split("").map((e=>e+e)).join(""));const n=parseInt(t,16);return[n>>16&255,n>>8&255,255&n]},o.rgb.hcg=function(e){const r=e[0]/255,t=e[1]/255,n=e[2]/255,a=Math.max(Math.max(r,t),n),o=Math.min(Math.min(r,t),n),s=a-o;let i,l;return i=s<1?o/(1-s):0,l=s<=0?0:a===r?(t-n)/s%6:a===t?2+(n-r)/s:4+(r-t)/s,l/=6,l%=1,[360*l,100*s,100*i]},o.hsl.hcg=function(e){const r=e[1]/100,t=e[2]/100,n=t<.5?2*r*t:2*r*(1-t);let a=0;return n<1&&(a=(t-.5*n)/(1-n)),[e[0],100*n,100*a]},o.hsv.hcg=function(e){const r=e[1]/100,t=e[2]/100,n=r*t;let a=0;return n<1&&(a=(t-n)/(1-n)),[e[0],100*n,100*a]},o.hcg.rgb=function(e){const r=e[0]/360,t=e[1]/100,n=e[2]/100;if(0===t)return[255*n,255*n,255*n];const a=[0,0,0],o=r%1*6,s=o%1,i=1-s;let l=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=i,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=i,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=i}return l=(1-t)*n,[255*(t*a[0]+l),255*(t*a[1]+l),255*(t*a[2]+l)]},o.hcg.hsv=function(e){const r=e[1]/100,t=r+e[2]/100*(1-r);let n=0;return t>0&&(n=r/t),[e[0],100*n,100*t]},o.hcg.hsl=function(e){const r=e[1]/100,t=e[2]/100*(1-r)+.5*r;let n=0;return t>0&&t<.5?n=r/(2*t):t>=.5&&t<1&&(n=r/(2*(1-t))),[e[0],100*n,100*t]},o.hcg.hwb=function(e){const r=e[1]/100,t=r+e[2]/100*(1-r);return[e[0],100*(t-r),100*(1-t)]},o.hwb.hcg=function(e){const r=e[1]/100,t=1-e[2]/100,n=t-r;let a=0;return n<1&&(a=(t-n)/(1-n)),[e[0],100*n,100*a]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const r=255&Math.round(e[0]/100*255),t=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},734:function(e,r,t){const n=t(659),a=t(507),o={};Object.keys(n).forEach((e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:n[e].channels}),Object.defineProperty(o[e],"labels",{value:n[e].labels});const r=a(e);Object.keys(r).forEach((t=>{const n=r[t];o[e][t]=function(e){const r=function(...r){const t=r[0];if(null==t)return t;t.length>1&&(r=t);const n=e(r);if("object"==typeof n)for(let e=n.length,r=0;r1&&(r=t),e(r))};return"conversion"in e&&(r.conversion=e.conversion),r}(n)}))})),e.exports=o},507:function(e,r,t){const n=t(659);function a(e,r){return function(t){return r(e(t))}}function o(e,r){const t=[r[e].parent,e];let o=n[r[e].parent][e],s=r[e].parent;for(;r[s].parent;)t.unshift(r[s].parent),o=a(n[r[s].parent][s],o),s=r[s].parent;return o.conversion=t,o}e.exports=function(e){const r=function(e){const r=function(){const e={},r=Object.keys(n);for(let t=r.length,n=0;n=4&&1!==e[3]&&(r=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+r+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},520:function(e,r,t){const n=t(854),a=t(734),o=["keyword","gray","hex"],s={};for(const e of Object.keys(a))s[[...a[e].labels].sort().join("")]=e;const i={};function l(e,r){if(!(this instanceof l))return new l(e,r);if(r&&r in o&&(r=null),r&&!(r in a))throw new Error("Unknown model: "+r);let t,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const r=n.get(e);if(null===r)throw new Error("Unable to parse color from string: "+e);this.model=r.model,c=a[this.model].channels,this.color=r.value.slice(0,c),this.valpha="number"==typeof r.value[c]?r.value[c]:1}else if(e.length>0){this.model=r||"rgb",c=a[this.model].channels;const t=Array.prototype.slice.call(e,0,c);this.color=d(t,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const r=Object.keys(e);"alpha"in e&&(r.splice(r.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=r.sort().join("");if(!(n in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[n];const{labels:o}=a[this.model],i=[];for(t=0;t(e%360+360)%360)),saturationl:u("hsl",1,h(100)),lightness:u("hsl",2,h(100)),saturationv:u("hsv",1,h(100)),value:u("hsv",2,h(100)),chroma:u("hcg",1,h(100)),gray:u("hcg",2,h(100)),white:u("hwb",1,h(100)),wblack:u("hwb",2,h(100)),cyan:u("cmyk",0,h(100)),magenta:u("cmyk",1,h(100)),yellow:u("cmyk",2,h(100)),black:u("cmyk",3,h(100)),x:u("xyz",0,h(95.047)),y:u("xyz",1,h(100)),z:u("xyz",2,h(108.833)),l:u("lab",0,h(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new l(e):a[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):n.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const r=this.rgb().round().color;let t=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===t.length&&(t="0"+t),n.to.hex(r)+t},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,r=[];for(const[t,n]of e.entries()){const e=n/255;r[t]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*r[0]+.7152*r[1]+.0722*r[2]},contrast(e){const r=this.luminosity(),t=e.luminosity();return r>t?(r+.05)/(t+.05):(t+.05)/(r+.05)},level(e){const r=this.contrast(e);return r>=7?"AAA":r>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let r=0;r<3;r++)e.color[r]=255-e.color[r];return e},lighten(e){const r=this.hsl();return r.color[2]+=r.color[2]*e,r},darken(e){const r=this.hsl();return r.color[2]-=r.color[2]*e,r},saturate(e){const r=this.hsl();return r.color[1]+=r.color[1]*e,r},desaturate(e){const r=this.hsl();return r.color[1]-=r.color[1]*e,r},whiten(e){const r=this.hwb();return r.color[1]+=r.color[1]*e,r},blacken(e){const r=this.hwb();return r.color[2]+=r.color[2]*e,r},grayscale(){const e=this.rgb().color,r=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(r,r,r)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const r=this.hsl();let t=r.color[0];return t=(t+e)%360,t=t<0?360+t:t,r.color[0]=t,r},mix(e,r){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const t=e.rgb(),n=this.rgb(),a=void 0===r?.5:r,o=2*a-1,s=t.alpha()-n.alpha(),i=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,c=1-i;return l.rgb(i*t.red()+c*n.red(),i*t.green()+c*n.green(),i*t.blue()+c*n.blue(),t.alpha()*a+n.alpha()*(1-a))}};for(const e of Object.keys(a)){if(o.includes(e))continue;const{channels:r}=a[e];l.prototype[e]=function(...r){return this.model===e?new l(this):r.length>0?new l(r,e):new l([...(t=a[this.model][e].raw(this.color),Array.isArray(t)?t:[t]),this.valpha],e);var t},l[e]=function(...t){let n=t[0];return"number"==typeof n&&(n=d(t,r)),new l(n,e)}}function c(e){return function(r){return function(e,r){return Number(e.toFixed(r))}(r,e)}}function u(e,r,t){e=Array.isArray(e)?e:[e];for(const n of e)(i[n]||(i[n]=[]))[r]=t;return e=e[0],function(n){let a;return void 0!==n?(t&&(n=t(n)),a=this[e](),a.color[r]=n,a):(a=this[e]().color[r],t&&(a=t(a)),a)}}function h(e){return function(r){return Math.max(0,Math.min(e,r))}}function d(e,r){for(let t=0;t=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},143:function(e){"use strict";e.exports=window.wp.data}},t={};function n(e){var a=t[e];if(void 0!==a)return a.exports;var o=t[e]={exports:{}};return r[e](o,o.exports,n),o.exports}n.m=r,e=[],n.O=function(r,t,a,o){if(!t){var s=1/0;for(u=0;u=o)&&Object.keys(n.O).every((function(e){return n.O[e](t[l])}))?t.splice(l--,1):(i=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[t,a,o]},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},n.d=function(e,r){for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){var e={144:0,940:0,904:0};n.O.j=function(r){return 0===e[r]};var r=function(r,t){var a,o,s=t[0],i=t[1],l=t[2],c=0;if(s.some((function(r){return 0!==e[r]}))){for(a in i)n.o(i,a)&&(n.m[a]=i[a]);if(l)var u=l(n)}for(r&&r(t);ce.length)&&(r=e.length);for(var t=0,n=Array(r);t=0;--o){var s=this.tryEntries[o],i=s.completion;if("root"===s.tryLoc)return a("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--r){var t=this.tryEntries[r];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),O(t),v}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var a=n.arg;O(t)}return a}}throw Error("illegal catch attempt")},delegateYield:function(r,t,n){return this.delegate={iterator:A(r),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=e),v}},r}var c={jumpNames:[]},u={getJumpNames:function(){return{type:"GET_JUMP_NAMES"}},addJumpName:function(e,r){return{type:"ADD_JUMP_NAME",jumpName:e,clientId:r}},removeJumpName:function(e){return{type:"REMOVE_JUMP_NAME",jumpName:e}},removeJumpNameByClientId:function(e){return{type:"REMOVE_JUMP_NAME_BY_CLIENT_ID",clientId:e}},setJumpNames:function(e){return{type:"SET_JUMP_NAMES",jumpNames:e}}},h={getJumpNames:l().mark((function e(){var r,t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a()({path:"/rrze-elements-blocks/v1/jump-names"});case 3:return r=e.sent,t=Array.isArray(r)?r.filter((function(e){return e&&e.jumpName&&e.clientId})):[],e.next=7,u.setJumpNames(t);case 7:e.next=14;break;case 9:return e.prev=9,e.t0=e.catch(0),console.error("Error fetching jump names:",e.t0),e.next=14,u.setJumpNames([]);case 14:case"end":return e.stop()}}),e,null,[[0,9]])}))},d=(0,o.createReduxStore)("rrze/elements-blocks",{reducer:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_JUMP_NAME":return t.jumpName&&t.clientId?r.jumpNames.some((function(e){return e.jumpName===t.jumpName}))?r:Object.assign(Object.assign({},r),{jumpNames:[].concat((e=r.jumpNames,function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return i(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,r):void 0}}(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.")}()),[{jumpName:t.jumpName,clientId:t.clientId}])}):r;case"REMOVE_JUMP_NAME":return Object.assign(Object.assign({},r),{jumpNames:r.jumpNames.filter((function(e){return e.jumpName!==t.jumpName}))});case"REMOVE_JUMP_NAME_BY_CLIENT_ID":return Object.assign(Object.assign({},r),{jumpNames:r.jumpNames.filter((function(e){return e.clientId!==t.clientId}))});case"SET_JUMP_NAMES":return 0===t.jumpNames.length&&r.jumpNames.length>0?r:Object.assign(Object.assign({},r),{jumpNames:t.jumpNames});default:return r}},actions:u,selectors:{jumpNameExists:function(e,r){return e.jumpNames.some((function(e){return e.jumpName===r}))},getJumpNames:function(e){return e.jumpNames}},resolvers:h});window.__RRZE_ELEMENTS_BLOCKS_STORE_REGISTERED__||((0,o.register)(d),window.__RRZE_ELEMENTS_BLOCKS_STORE_REGISTERED__=!0)},659:function(e,r,t){const n=t(156),a={};for(const e of Object.keys(n))a[n[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:r,labels:t}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:r}),Object.defineProperty(o[e],"labels",{value:t})}o.rgb.hsl=function(e){const r=e[0]/255,t=e[1]/255,n=e[2]/255,a=Math.min(r,t,n),o=Math.max(r,t,n),s=o-a;let i,l;o===a?i=0:r===o?i=(t-n)/s:t===o?i=2+(n-r)/s:n===o&&(i=4+(r-t)/s),i=Math.min(60*i,360),i<0&&(i+=360);const c=(a+o)/2;return l=o===a?0:c<=.5?s/(o+a):s/(2-o-a),[i,100*l,100*c]},o.rgb.hsv=function(e){let r,t,n,a,o;const s=e[0]/255,i=e[1]/255,l=e[2]/255,c=Math.max(s,i,l),u=c-Math.min(s,i,l),h=function(e){return(c-e)/6/u+.5};return 0===u?(a=0,o=0):(o=u/c,r=h(s),t=h(i),n=h(l),s===c?a=n-t:i===c?a=1/3+r-n:l===c&&(a=2/3+t-r),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*c]},o.rgb.hwb=function(e){const r=e[0],t=e[1];let n=e[2];const a=o.rgb.hsl(e)[0],s=1/255*Math.min(r,Math.min(t,n));return n=1-1/255*Math.max(r,Math.max(t,n)),[a,100*s,100*n]},o.rgb.cmyk=function(e){const r=e[0]/255,t=e[1]/255,n=e[2]/255,a=Math.min(1-r,1-t,1-n);return[100*((1-r-a)/(1-a)||0),100*((1-t-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},o.rgb.keyword=function(e){const r=a[e];if(r)return r;let t,o=1/0;for(const r of Object.keys(n)){const a=(i=n[r],((s=e)[0]-i[0])**2+(s[1]-i[1])**2+(s[2]-i[2])**2);a.04045?((r+.055)/1.055)**2.4:r/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*r+.3576*t+.1805*n),100*(.2126*r+.7152*t+.0722*n),100*(.0193*r+.1192*t+.9505*n)]},o.rgb.lab=function(e){const r=o.rgb.xyz(e);let t=r[0],n=r[1],a=r[2];return t/=95.047,n/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*n-16,500*(t-n),200*(n-a)]},o.hsl.rgb=function(e){const r=e[0]/360,t=e[1]/100,n=e[2]/100;let a,o,s;if(0===t)return s=255*n,[s,s,s];a=n<.5?n*(1+t):n+t-n*t;const i=2*n-a,l=[0,0,0];for(let e=0;e<3;e++)o=r+1/3*-(e-1),o<0&&o++,o>1&&o--,s=6*o<1?i+6*(a-i)*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,l[e]=255*s;return l},o.hsl.hsv=function(e){const r=e[0];let t=e[1]/100,n=e[2]/100,a=t;const o=Math.max(n,.01);return n*=2,t*=n<=1?n:2-n,a*=o<=1?o:2-o,[r,100*(0===n?2*a/(o+a):2*t/(n+t)),(n+t)/2*100]},o.hsv.rgb=function(e){const r=e[0]/60,t=e[1]/100;let n=e[2]/100;const a=Math.floor(r)%6,o=r-Math.floor(r),s=255*n*(1-t),i=255*n*(1-t*o),l=255*n*(1-t*(1-o));switch(n*=255,a){case 0:return[n,l,s];case 1:return[i,n,s];case 2:return[s,n,l];case 3:return[s,i,n];case 4:return[l,s,n];case 5:return[n,s,i]}},o.hsv.hsl=function(e){const r=e[0],t=e[1]/100,n=e[2]/100,a=Math.max(n,.01);let o,s;s=(2-t)*n;const i=(2-t)*a;return o=t*a,o/=i<=1?i:2-i,o=o||0,s/=2,[r,100*o,100*s]},o.hwb.rgb=function(e){const r=e[0]/360;let t=e[1]/100,n=e[2]/100;const a=t+n;let o;a>1&&(t/=a,n/=a);const s=Math.floor(6*r),i=1-n;o=6*r-s,1&s&&(o=1-o);const l=t+o*(i-t);let c,u,h;switch(s){default:case 6:case 0:c=i,u=l,h=t;break;case 1:c=l,u=i,h=t;break;case 2:c=t,u=i,h=l;break;case 3:c=t,u=l,h=i;break;case 4:c=l,u=t,h=i;break;case 5:c=i,u=t,h=l}return[255*c,255*u,255*h]},o.cmyk.rgb=function(e){const r=e[0]/100,t=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},o.xyz.rgb=function(e){const r=e[0]/100,t=e[1]/100,n=e[2]/100;let a,o,s;return a=3.2406*r+-1.5372*t+-.4986*n,o=-.9689*r+1.8758*t+.0415*n,s=.0557*r+-.204*t+1.057*n,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*a,255*o,255*s]},o.xyz.lab=function(e){let r=e[0],t=e[1],n=e[2];return r/=95.047,t/=100,n/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*t-16,500*(r-t),200*(t-n)]},o.lab.xyz=function(e){let r,t,n;t=(e[0]+16)/116,r=e[1]/500+t,n=t-e[2]/200;const a=t**3,o=r**3,s=n**3;return t=a>.008856?a:(t-16/116)/7.787,r=o>.008856?o:(r-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,r*=95.047,t*=100,n*=108.883,[r,t,n]},o.lab.lch=function(e){const r=e[0],t=e[1],n=e[2];let a;return a=360*Math.atan2(n,t)/2/Math.PI,a<0&&(a+=360),[r,Math.sqrt(t*t+n*n),a]},o.lch.lab=function(e){const r=e[0],t=e[1],n=e[2]/360*2*Math.PI;return[r,t*Math.cos(n),t*Math.sin(n)]},o.rgb.ansi16=function(e,r=null){const[t,n,a]=e;let s=null===r?o.rgb.hsv(e)[2]:r;if(s=Math.round(s/50),0===s)return 30;let i=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===s&&(i+=60),i},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const r=e[0],t=e[1],n=e[2];return r===t&&t===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},o.ansi16.rgb=function(e){let r=e%10;if(0===r||7===r)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];const t=.5*(1+~~(e>50));return[(1&r)*t*255,(r>>1&1)*t*255,(r>>2&1)*t*255]},o.ansi256.rgb=function(e){if(e>=232){const r=10*(e-232)+8;return[r,r,r]}let r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},o.rgb.hex=function(e){const r=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(r.length)+r},o.hex.rgb=function(e){const r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let t=r[0];3===r[0].length&&(t=t.split("").map((e=>e+e)).join(""));const n=parseInt(t,16);return[n>>16&255,n>>8&255,255&n]},o.rgb.hcg=function(e){const r=e[0]/255,t=e[1]/255,n=e[2]/255,a=Math.max(Math.max(r,t),n),o=Math.min(Math.min(r,t),n),s=a-o;let i,l;return i=s<1?o/(1-s):0,l=s<=0?0:a===r?(t-n)/s%6:a===t?2+(n-r)/s:4+(r-t)/s,l/=6,l%=1,[360*l,100*s,100*i]},o.hsl.hcg=function(e){const r=e[1]/100,t=e[2]/100,n=t<.5?2*r*t:2*r*(1-t);let a=0;return n<1&&(a=(t-.5*n)/(1-n)),[e[0],100*n,100*a]},o.hsv.hcg=function(e){const r=e[1]/100,t=e[2]/100,n=r*t;let a=0;return n<1&&(a=(t-n)/(1-n)),[e[0],100*n,100*a]},o.hcg.rgb=function(e){const r=e[0]/360,t=e[1]/100,n=e[2]/100;if(0===t)return[255*n,255*n,255*n];const a=[0,0,0],o=r%1*6,s=o%1,i=1-s;let l=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=i,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=i,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=i}return l=(1-t)*n,[255*(t*a[0]+l),255*(t*a[1]+l),255*(t*a[2]+l)]},o.hcg.hsv=function(e){const r=e[1]/100,t=r+e[2]/100*(1-r);let n=0;return t>0&&(n=r/t),[e[0],100*n,100*t]},o.hcg.hsl=function(e){const r=e[1]/100,t=e[2]/100*(1-r)+.5*r;let n=0;return t>0&&t<.5?n=r/(2*t):t>=.5&&t<1&&(n=r/(2*(1-t))),[e[0],100*n,100*t]},o.hcg.hwb=function(e){const r=e[1]/100,t=r+e[2]/100*(1-r);return[e[0],100*(t-r),100*(1-t)]},o.hwb.hcg=function(e){const r=e[1]/100,t=1-e[2]/100,n=t-r;let a=0;return n<1&&(a=(t-n)/(1-n)),[e[0],100*n,100*a]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const r=255&Math.round(e[0]/100*255),t=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},734:function(e,r,t){const n=t(659),a=t(507),o={};Object.keys(n).forEach((e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:n[e].channels}),Object.defineProperty(o[e],"labels",{value:n[e].labels});const r=a(e);Object.keys(r).forEach((t=>{const n=r[t];o[e][t]=function(e){const r=function(...r){const t=r[0];if(null==t)return t;t.length>1&&(r=t);const n=e(r);if("object"==typeof n)for(let e=n.length,r=0;r1&&(r=t),e(r))};return"conversion"in e&&(r.conversion=e.conversion),r}(n)}))})),e.exports=o},507:function(e,r,t){const n=t(659);function a(e,r){return function(t){return r(e(t))}}function o(e,r){const t=[r[e].parent,e];let o=n[r[e].parent][e],s=r[e].parent;for(;r[s].parent;)t.unshift(r[s].parent),o=a(n[r[s].parent][s],o),s=r[s].parent;return o.conversion=t,o}e.exports=function(e){const r=function(e){const r=function(){const e={},r=Object.keys(n);for(let t=r.length,n=0;n=4&&1!==e[3]&&(r=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+r+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},520:function(e,r,t){const n=t(854),a=t(734),o=["keyword","gray","hex"],s={};for(const e of Object.keys(a))s[[...a[e].labels].sort().join("")]=e;const i={};function l(e,r){if(!(this instanceof l))return new l(e,r);if(r&&r in o&&(r=null),r&&!(r in a))throw new Error("Unknown model: "+r);let t,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const r=n.get(e);if(null===r)throw new Error("Unable to parse color from string: "+e);this.model=r.model,c=a[this.model].channels,this.color=r.value.slice(0,c),this.valpha="number"==typeof r.value[c]?r.value[c]:1}else if(e.length>0){this.model=r||"rgb",c=a[this.model].channels;const t=Array.prototype.slice.call(e,0,c);this.color=d(t,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const r=Object.keys(e);"alpha"in e&&(r.splice(r.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=r.sort().join("");if(!(n in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[n];const{labels:o}=a[this.model],i=[];for(t=0;t(e%360+360)%360)),saturationl:u("hsl",1,h(100)),lightness:u("hsl",2,h(100)),saturationv:u("hsv",1,h(100)),value:u("hsv",2,h(100)),chroma:u("hcg",1,h(100)),gray:u("hcg",2,h(100)),white:u("hwb",1,h(100)),wblack:u("hwb",2,h(100)),cyan:u("cmyk",0,h(100)),magenta:u("cmyk",1,h(100)),yellow:u("cmyk",2,h(100)),black:u("cmyk",3,h(100)),x:u("xyz",0,h(95.047)),y:u("xyz",1,h(100)),z:u("xyz",2,h(108.833)),l:u("lab",0,h(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new l(e):a[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):n.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const r=this.rgb().round().color;let t=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===t.length&&(t="0"+t),n.to.hex(r)+t},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,r=[];for(const[t,n]of e.entries()){const e=n/255;r[t]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*r[0]+.7152*r[1]+.0722*r[2]},contrast(e){const r=this.luminosity(),t=e.luminosity();return r>t?(r+.05)/(t+.05):(t+.05)/(r+.05)},level(e){const r=this.contrast(e);return r>=7?"AAA":r>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let r=0;r<3;r++)e.color[r]=255-e.color[r];return e},lighten(e){const r=this.hsl();return r.color[2]+=r.color[2]*e,r},darken(e){const r=this.hsl();return r.color[2]-=r.color[2]*e,r},saturate(e){const r=this.hsl();return r.color[1]+=r.color[1]*e,r},desaturate(e){const r=this.hsl();return r.color[1]-=r.color[1]*e,r},whiten(e){const r=this.hwb();return r.color[1]+=r.color[1]*e,r},blacken(e){const r=this.hwb();return r.color[2]+=r.color[2]*e,r},grayscale(){const e=this.rgb().color,r=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(r,r,r)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const r=this.hsl();let t=r.color[0];return t=(t+e)%360,t=t<0?360+t:t,r.color[0]=t,r},mix(e,r){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const t=e.rgb(),n=this.rgb(),a=void 0===r?.5:r,o=2*a-1,s=t.alpha()-n.alpha(),i=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,c=1-i;return l.rgb(i*t.red()+c*n.red(),i*t.green()+c*n.green(),i*t.blue()+c*n.blue(),t.alpha()*a+n.alpha()*(1-a))}};for(const e of Object.keys(a)){if(o.includes(e))continue;const{channels:r}=a[e];l.prototype[e]=function(...r){return this.model===e?new l(this):r.length>0?new l(r,e):new l([...(t=a[this.model][e].raw(this.color),Array.isArray(t)?t:[t]),this.valpha],e);var t},l[e]=function(...t){let n=t[0];return"number"==typeof n&&(n=d(t,r)),new l(n,e)}}function c(e){return function(r){return function(e,r){return Number(e.toFixed(r))}(r,e)}}function u(e,r,t){e=Array.isArray(e)?e:[e];for(const n of e)(i[n]||(i[n]=[]))[r]=t;return e=e[0],function(n){let a;return void 0!==n?(t&&(n=t(n)),a=this[e](),a.color[r]=n,a):(a=this[e]().color[r],t&&(a=t(a)),a)}}function h(e){return function(r){return Math.max(0,Math.min(e,r))}}function d(e,r){for(let t=0;t=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},143:function(e){"use strict";e.exports=window.wp.data}},t={};function n(e){var a=t[e];if(void 0!==a)return a.exports;var o=t[e]={exports:{}};return r[e](o,o.exports,n),o.exports}n.m=r,e=[],n.O=function(r,t,a,o){if(!t){var s=1/0;for(u=0;u=o)&&Object.keys(n.O).every((function(e){return n.O[e](t[l])}))?t.splice(l--,1):(i=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[t,a,o]},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},n.d=function(e,r){for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){var e={144:0,940:0,904:0};n.O.j=function(r){return 0===e[r]};var r=function(r,t){var a,o,s=t[0],i=t[1],l=t[2],c=0;if(s.some((function(r){return 0!==e[r]}))){for(a in i)n.o(i,a)&&(n.m[a]=i[a]);if(l)var u=l(n)}for(r&&r(t);c array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-primitives'), 'version' => '5190e7b0c2d7d44f0795'); + array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '4d9b708326a7e9c6516d'); diff --git a/build/blocks/collapsibles/index.js b/build/blocks/collapsibles/index.js index c2ff907a..70942006 100644 --- a/build/blocks/collapsibles/index.js +++ b/build/blocks/collapsibles/index.js @@ -1 +1 @@ -!function(){"use strict";var e=window.ReactJSXRuntime,r=window.wp.blocks,a=window.wp.blockEditor,t=window.wp.components,i=window.wp.i18n,o=function(r){var a=r.attributes,o=r.setAttributes;return(0,e.jsx)(t.CheckboxControl,{label:(0,i.__)("Show Expand-All-Link","rrze-elements-blocks"),checked:a.expandAllLink,onChange:function(){o({expandAllLink:!a.expandAllLink})}})},s=window.wp.primitives,l=(0,e.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(s.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})}),n=(0,e.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(s.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})}),c=(0,e.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(s.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})}),d=(0,e.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(s.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})}),u=(0,e.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(s.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})}),p=function(e){switch(e){case 2:default:return l;case 3:return n;case 4:return c;case 5:return d;case 6:return u}},h=function(r){var a=r.attributes,o=r.setAttributes,s=function(e){o({hstart:e})};return(0,e.jsx)(t.ToolbarDropdownMenu,{icon:p(a.hstart),label:(0,i.__)("Select heading level","rrze-elements-blocks"),controls:[{title:"H2",isDisabled:2===a.hstart,onClick:function(){return s(2)}},{title:"H3",isDisabled:3===a.hstart,onClick:function(){return s(3)}},{title:"H4",isDisabled:4===a.hstart,onClick:function(){return s(4)}},{title:"H5",isDisabled:5===a.hstart,onClick:function(){return s(5)}},{title:"H6",isDisabled:6===a.hstart,onClick:function(){return s(6)}}]})},g=function(r){var a=r.attributes,o=r.setAttributes;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.__experimentalToggleGroupControl,{label:(0,i.__)("Heading level","rrze-elements-blocks"),value:a.hstart,onChange:function(e){o({hstart:e})},isBlock:!0,children:[(0,e.jsx)(t.__experimentalToggleGroupControlOption,{value:2,label:"H2"}),(0,e.jsx)(t.__experimentalToggleGroupControlOption,{value:3,label:"H3"}),(0,e.jsx)(t.__experimentalToggleGroupControlOption,{value:4,label:"H4"}),(0,e.jsx)(t.__experimentalToggleGroupControlOption,{value:5,label:"H5"}),(0,e.jsx)(t.__experimentalToggleGroupControlOption,{value:6,label:"H6"})]}),(0,e.jsx)(t.__experimentalText,{children:(0,i.__)("Controls the heading level of the accordion","rrze-elements-blocks")}),(0,e.jsx)(t.__experimentalDivider,{})]})},m=JSON.parse('{"UU":"rrze-elements/collapsibles"}'),b=[{attributes:{expandAllLink:{type:"boolean",default:!1},hstart:{type:"integer",default:2},register:{type:"boolean",default:!1},sameBlockCount:{type:"integer",default:0},childrenCount:{type:"integer",default:0},previousBlockIds:{type:"array",default:[]}},save:function(r){var t=r.attributes,o=a.useBlockProps.save(),s=t.sameBlockCount,l=t.expandAllLink;return(0,e.jsxs)("div",Object.assign({},o,{children:[" ",(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"accordion",id:"accordion-".concat(s),children:[l&&(0,e.jsx)("div",{className:"button-container-right",children:(0,e.jsx)("button",{className:"expand-all standard-btn primary-btn xsmall-btn","data-status":"closed",children:(0,i.__)("Expand All","rrze-elements-b")})}),(0,e.jsx)(a.InnerBlocks.Content,{})]})})]}))},migrate:function(e){return Object.assign({},e)}}],f=JSON.parse('{"brands":["42-group","500px","accessible-icon","accusoft","adn","adversal","affiliatetheme","airbnb","algolia","alipay","amazon-pay","amazon","amilia","android","angellist","angrycreative","angular","app-store-ios","app-store","apper","apple-pay","apple","artstation","asymmetrik","atlassian","audible","autoprefixer","avianex","aviato","aws","bandcamp","battle-net","behance","bilibili","bimobject","bitbucket","bitcoin","bity","black-tie","blackberry","blogger-b","blogger","bluetooth-b","bluetooth","bootstrap","bots","btc","buffer","buromobelexperte","buy-n-large","buysellads","canadian-maple-leaf","cc-amazon-pay","cc-amex","cc-apple-pay","cc-diners-club","cc-discover","cc-jcb","cc-mastercard","cc-paypal","cc-stripe","cc-visa","centercode","centos","chrome","chromecast","cloudflare","cloudscale","cloudsmith","cloudversify","cmplid","codepen","codiepie","confluence","connectdevelop","contao","cotton-bureau","cpanel","creative-commons-by","creative-commons-nc-eu","creative-commons-nc-jp","creative-commons-nc","creative-commons-nd","creative-commons-pd-alt","creative-commons-pd","creative-commons-remix","creative-commons-sa","creative-commons-sampling-plus","creative-commons-sampling","creative-commons-share","creative-commons-zero","creative-commons","critical-role","css3-alt","css3","cuttlefish","d-and-d-beyond","d-and-d","dailymotion","dashcube","debian","deezer","delicious","deploydog","deskpro","dev","deviantart","dhl","diaspora","digg","digital-ocean","discord","discourse","dochub","docker","draft2digital","dribbble","dropbox","drupal","dyalog","earlybirds","ebay","edge-legacy","edge","elementor","ello","ember","empire","envira","erlang","ethereum","etsy","evernote","expeditedssl","facebook-f","facebook-messenger","facebook","fantasy-flight-games","fedex","fedora","figma","firefox-browser","firefox","first-order-alt","first-order","firstdraft","flickr","flipboard","fly","font-awesome","fonticons-fi","fonticons","fort-awesome-alt","fort-awesome","forumbee","foursquare","free-code-camp","freebsd","fulcrum","galactic-republic","galactic-senate","get-pocket","gg-circle","gg","git-alt","git","github-alt","github","gitkraken","gitlab","gitter","glide-g","glide","gofore","golang","goodreads-g","goodreads","google-drive","google-pay","google-play","google-plus-g","google-plus","google-wallet","google","gratipay","grav","gripfire","grunt","guilded","gulp","hacker-news","hackerrank","hashnode","hips","hire-a-helper","hive","hooli","hornbill","hotjar","houzz","html5","hubspot","ideal","imdb","instagram","instalod","intercom","internet-explorer","invision","ioxhost","itch-io","itunes-note","itunes","java","jedi-order","jenkins","jira","joget","joomla","js","jsfiddle","kaggle","keybase","keycdn","kickstarter-k","kickstarter","korvue","laravel","lastfm","leanpub","less","line","linkedin-in","linkedin","linode","linux","lyft","magento","mailchimp","mandalorian","markdown","mastodon","maxcdn","mdb","medapps","medium","medrt","meetup","megaport","mendeley","meta","microblog","microsoft","mix","mixcloud","mixer","mizuni","modx","monero","napster","neos","nfc-directional","nfc-symbol","nimblr","node-js","node","npm","ns8","nutritionix","octopus-deploy","odnoklassniki","odysee","old-republic","opencart","openid","opera","optin-monster","orcid","osi","padlet","page4","pagelines","palfed","patreon","paypal","perbyte","periscope","phabricator","phoenix-framework","phoenix-squadron","php","pied-piper-alt","pied-piper-hat","pied-piper-pp","pied-piper","pinterest-p","pinterest","pix","playstation","product-hunt","pushed","python","qq","quinscape","quora","r-project","raspberry-pi","ravelry","react","reacteurope","readme","rebel","red-river","reddit-alien","reddit","redhat","renren","replyd","researchgate","resolving","rev","rocketchat","rockrms","rust","safari","salesforce","sass","schlix","screenpal","scribd","searchengin","sellcast","sellsy","servicestack","shirtsinbulk","shopify","shopware","simplybuilt","sistrix","sith","sitrox","sketch","skyatlas","skype","slack","slideshare","snapchat","soundcloud","sourcetree","space-awesome","speakap","speaker-deck","spotify","square-behance","square-dribbble","square-facebook","square-font-awesome-stroke","square-font-awesome","square-git","square-github","square-gitlab","square-google-plus","square-hacker-news","square-instagram","square-js","square-lastfm","square-odnoklassniki","square-pied-piper","square-pinterest","square-reddit","square-snapchat","square-steam","square-threads","square-tumblr","square-twitter","square-viadeo","square-vimeo","square-whatsapp","square-x-twitter","square-xing","square-youtube","squarespace","stack-exchange","stack-overflow","stackpath","staylinked","steam-symbol","steam","sticker-mule","strava","stripe-s","stripe","stubber","studiovinari","stumbleupon-circle","stumbleupon","superpowers","supple","suse","swift","symfony","teamspeak","telegram","tencent-weibo","the-red-yeti","themeco","themeisle","think-peaks","threads","tiktok","trade-federation","trello","tumblr","twitch","twitter","typo3","uber","ubuntu","uikit","umbraco","uncharted","uniregistry","unity","unsplash","untappd","ups","usb","usps","ussunnah","vaadin","viacoin","viadeo","viber","vimeo-v","vimeo","vine","vk","vnv","vuejs","watchman-monitoring","waze","weebly","weibo","weixin","whatsapp","whmcs","wikipedia-w","windows","wirsindhandwerk","wix","wizards-of-the-coast","wodu","wolf-pack-battalion","wordpress-simple","wordpress","wpbeginner","wpexplorer","wpforms","wpressr","x-twitter","xbox","xing","y-combinator","yahoo","yammer","yandex-international","yandex","yarn","yelp","yoast","youtube","zhihu"],"regular":["address-book","address-card","bell-slash","bell","bookmark","building","calendar-check","calendar-days","calendar-minus","calendar-plus","calendar-xmark","calendar","chart-bar","chess-bishop","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","circle-check","circle-dot","circle-down","circle-left","circle-pause","circle-play","circle-question","circle-right","circle-stop","circle-up","circle-user","circle-xmark","circle","clipboard","clock","clone","closed-captioning","comment-dots","comment","comments","compass","copy","copyright","credit-card","envelope-open","envelope","eye-slash","eye","face-angry","face-dizzy","face-flushed","face-frown-open","face-frown","face-grimace","face-grin-beam-sweat","face-grin-beam","face-grin-hearts","face-grin-squint-tears","face-grin-squint","face-grin-stars","face-grin-tears","face-grin-tongue-squint","face-grin-tongue-wink","face-grin-tongue","face-grin-wide","face-grin-wink","face-grin","face-kiss-beam","face-kiss-wink-heart","face-kiss","face-laugh-beam","face-laugh-squint","face-laugh-wink","face-laugh","face-meh-blank","face-meh","face-rolling-eyes","face-sad-cry","face-sad-tear","face-smile-beam","face-smile-wink","face-smile","face-surprise","face-tired","file-audio","file-code","file-excel","file-image","file-lines","file-pdf","file-powerpoint","file-video","file-word","file-zipper","file","flag","floppy-disk","folder-closed","folder-open","folder","font-awesome","futbol","gem","hand-back-fist","hand-lizard","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","hand-pointer","hand-scissors","hand-spock","hand","handshake","hard-drive","heart","hospital","hourglass-half","hourglass","id-badge","id-card","image","images","keyboard","lemon","life-ring","lightbulb","map","message","money-bill-1","moon","newspaper","notdef","note-sticky","object-group","object-ungroup","paper-plane","paste","pen-to-square","rectangle-list","rectangle-xmark","registered","share-from-square","snowflake","square-caret-down","square-caret-left","square-caret-right","square-caret-up","square-check","square-full","square-minus","square-plus","square","star-half-stroke","star-half","star","sun","thumbs-down","thumbs-up","trash-can","user","window-maximize","window-minimize","window-restore"],"solid":["0","1","2","3","4","5","6","7","8","9","a","address-book","address-card","align-center","align-justify","align-left","align-right","anchor-circle-check","anchor-circle-exclamation","anchor-circle-xmark","anchor-lock","anchor","angle-down","angle-left","angle-right","angle-up","angles-down","angles-left","angles-right","angles-up","ankh","apple-whole","archway","arrow-down-1-9","arrow-down-9-1","arrow-down-a-z","arrow-down-long","arrow-down-short-wide","arrow-down-up-across-line","arrow-down-up-lock","arrow-down-wide-short","arrow-down-z-a","arrow-down","arrow-left-long","arrow-left","arrow-pointer","arrow-right-arrow-left","arrow-right-from-bracket","arrow-right-long","arrow-right-to-bracket","arrow-right-to-city","arrow-right","arrow-rotate-left","arrow-rotate-right","arrow-trend-down","arrow-trend-up","arrow-turn-down","arrow-turn-up","arrow-up-1-9","arrow-up-9-1","arrow-up-a-z","arrow-up-from-bracket","arrow-up-from-ground-water","arrow-up-from-water-pump","arrow-up-long","arrow-up-right-dots","arrow-up-right-from-square","arrow-up-short-wide","arrow-up-wide-short","arrow-up-z-a","arrow-up","arrows-down-to-line","arrows-down-to-people","arrows-left-right-to-line","arrows-left-right","arrows-rotate","arrows-spin","arrows-split-up-and-left","arrows-to-circle","arrows-to-dot","arrows-to-eye","arrows-turn-right","arrows-turn-to-dots","arrows-up-down-left-right","arrows-up-down","arrows-up-to-line","asterisk","at","atom","audio-description","austral-sign","award","b","baby-carriage","baby","backward-fast","backward-step","backward","bacon","bacteria","bacterium","bag-shopping","bahai","baht-sign","ban-smoking","ban","bandage","bangladeshi-taka-sign","barcode","bars-progress","bars-staggered","bars","baseball-bat-ball","baseball","basket-shopping","basketball","bath","battery-empty","battery-full","battery-half","battery-quarter","battery-three-quarters","bed-pulse","bed","beer-mug-empty","bell-concierge","bell-slash","bell","bezier-curve","bicycle","binoculars","biohazard","bitcoin-sign","blender-phone","blender","blog","bold","bolt-lightning","bolt","bomb","bone","bong","book-atlas","book-bible","book-bookmark","book-journal-whills","book-medical","book-open-reader","book-open","book-quran","book-skull","book-tanakh","book","bookmark","border-all","border-none","border-top-left","bore-hole","bottle-droplet","bottle-water","bowl-food","bowl-rice","bowling-ball","box-archive","box-open","box-tissue","box","boxes-packing","boxes-stacked","braille","brain","brazilian-real-sign","bread-slice","bridge-circle-check","bridge-circle-exclamation","bridge-circle-xmark","bridge-lock","bridge-water","bridge","briefcase-medical","briefcase","broom-ball","broom","brush","bucket","bug-slash","bug","bugs","building-circle-arrow-right","building-circle-check","building-circle-exclamation","building-circle-xmark","building-columns","building-flag","building-lock","building-ngo","building-shield","building-un","building-user","building-wheat","building","bullhorn","bullseye","burger","burst","bus-simple","bus","business-time","c","cable-car","cake-candles","calculator","calendar-check","calendar-day","calendar-days","calendar-minus","calendar-plus","calendar-week","calendar-xmark","calendar","camera-retro","camera-rotate","camera","campground","candy-cane","cannabis","capsules","car-battery","car-burst","car-on","car-rear","car-side","car-tunnel","car","caravan","caret-down","caret-left","caret-right","caret-up","carrot","cart-arrow-down","cart-flatbed-suitcase","cart-flatbed","cart-plus","cart-shopping","cash-register","cat","cedi-sign","cent-sign","certificate","chair","chalkboard-user","chalkboard","champagne-glasses","charging-station","chart-area","chart-bar","chart-column","chart-gantt","chart-line","chart-pie","chart-simple","check-double","check-to-slot","check","cheese","chess-bishop","chess-board","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","chess","chevron-down","chevron-left","chevron-right","chevron-up","child-combatant","child-dress","child-reaching","child-rifle","child","children","church","circle-arrow-down","circle-arrow-left","circle-arrow-right","circle-arrow-up","circle-check","circle-chevron-down","circle-chevron-left","circle-chevron-right","circle-chevron-up","circle-dollar-to-slot","circle-dot","circle-down","circle-exclamation","circle-h","circle-half-stroke","circle-info","circle-left","circle-minus","circle-nodes","circle-notch","circle-pause","circle-play","circle-plus","circle-question","circle-radiation","circle-right","circle-stop","circle-up","circle-user","circle-xmark","circle","city","clapperboard","clipboard-check","clipboard-list","clipboard-question","clipboard-user","clipboard","clock-rotate-left","clock","clone","closed-captioning","cloud-arrow-down","cloud-arrow-up","cloud-bolt","cloud-meatball","cloud-moon-rain","cloud-moon","cloud-rain","cloud-showers-heavy","cloud-showers-water","cloud-sun-rain","cloud-sun","cloud","clover","code-branch","code-commit","code-compare","code-fork","code-merge","code-pull-request","code","coins","colon-sign","comment-dollar","comment-dots","comment-medical","comment-slash","comment-sms","comment","comments-dollar","comments","compact-disc","compass-drafting","compass","compress","computer-mouse","computer","cookie-bite","cookie","copy","copyright","couch","cow","credit-card","crop-simple","crop","cross","crosshairs","crow","crown","crutch","cruzeiro-sign","cube","cubes-stacked","cubes","d","database","delete-left","democrat","desktop","dharmachakra","diagram-next","diagram-predecessor","diagram-project","diagram-successor","diamond-turn-right","diamond","dice-d6","dice-d20","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","dice","disease","display","divide","dna","dog","dollar-sign","dolly","dong-sign","door-closed","door-open","dove","down-left-and-up-right-to-center","down-long","download","dragon","draw-polygon","droplet-slash","droplet","drum-steelpan","drum","drumstick-bite","dumbbell","dumpster-fire","dumpster","dungeon","e","ear-deaf","ear-listen","earth-africa","earth-americas","earth-asia","earth-europe","earth-oceania","egg","eject","elevator","ellipsis-vertical","ellipsis","envelope-circle-check","envelope-open-text","envelope-open","envelope","envelopes-bulk","equals","eraser","ethernet","euro-sign","exclamation","expand","explosion","eye-dropper","eye-low-vision","eye-slash","eye","f","face-angry","face-dizzy","face-flushed","face-frown-open","face-frown","face-grimace","face-grin-beam-sweat","face-grin-beam","face-grin-hearts","face-grin-squint-tears","face-grin-squint","face-grin-stars","face-grin-tears","face-grin-tongue-squint","face-grin-tongue-wink","face-grin-tongue","face-grin-wide","face-grin-wink","face-grin","face-kiss-beam","face-kiss-wink-heart","face-kiss","face-laugh-beam","face-laugh-squint","face-laugh-wink","face-laugh","face-meh-blank","face-meh","face-rolling-eyes","face-sad-cry","face-sad-tear","face-smile-beam","face-smile-wink","face-smile","face-surprise","face-tired","fan","faucet-drip","faucet","fax","feather-pointed","feather","ferry","file-arrow-down","file-arrow-up","file-audio","file-circle-check","file-circle-exclamation","file-circle-minus","file-circle-plus","file-circle-question","file-circle-xmark","file-code","file-contract","file-csv","file-excel","file-export","file-image","file-import","file-invoice-dollar","file-invoice","file-lines","file-medical","file-pdf","file-pen","file-powerpoint","file-prescription","file-shield","file-signature","file-video","file-waveform","file-word","file-zipper","file","fill-drip","fill","film","filter-circle-dollar","filter-circle-xmark","filter","fingerprint","fire-burner","fire-extinguisher","fire-flame-curved","fire-flame-simple","fire","fish-fins","fish","flag-checkered","flag-usa","flag","flask-vial","flask","floppy-disk","florin-sign","folder-closed","folder-minus","folder-open","folder-plus","folder-tree","folder","font-awesome","font","football","forward-fast","forward-step","forward","franc-sign","frog","futbol","g","gamepad","gas-pump","gauge-high","gauge-simple-high","gauge-simple","gauge","gavel","gear","gears","gem","genderless","ghost","gift","gifts","glass-water-droplet","glass-water","glasses","globe","golf-ball-tee","gopuram","graduation-cap","greater-than-equal","greater-than","grip-lines-vertical","grip-lines","grip-vertical","grip","group-arrows-rotate","guarani-sign","guitar","gun","h","hammer","hamsa","hand-back-fist","hand-dots","hand-fist","hand-holding-dollar","hand-holding-droplet","hand-holding-hand","hand-holding-heart","hand-holding-medical","hand-holding","hand-lizard","hand-middle-finger","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","hand-pointer","hand-scissors","hand-sparkles","hand-spock","hand","handcuffs","hands-asl-interpreting","hands-bound","hands-bubbles","hands-clapping","hands-holding-child","hands-holding-circle","hands-holding","hands-praying","hands","handshake-angle","handshake-simple-slash","handshake-simple","handshake-slash","handshake","hanukiah","hard-drive","hashtag","hat-cowboy-side","hat-cowboy","hat-wizard","head-side-cough-slash","head-side-cough","head-side-mask","head-side-virus","heading","headphones-simple","headphones","headset","heart-circle-bolt","heart-circle-check","heart-circle-exclamation","heart-circle-minus","heart-circle-plus","heart-circle-xmark","heart-crack","heart-pulse","heart","helicopter-symbol","helicopter","helmet-safety","helmet-un","highlighter","hill-avalanche","hill-rockslide","hippo","hockey-puck","holly-berry","horse-head","horse","hospital-user","hospital","hot-tub-person","hotdog","hotel","hourglass-end","hourglass-half","hourglass-start","hourglass","house-chimney-crack","house-chimney-medical","house-chimney-user","house-chimney-window","house-chimney","house-circle-check","house-circle-exclamation","house-circle-xmark","house-crack","house-fire","house-flag","house-flood-water-circle-arrow-right","house-flood-water","house-laptop","house-lock","house-medical-circle-check","house-medical-circle-exclamation","house-medical-circle-xmark","house-medical-flag","house-medical","house-signal","house-tsunami","house-user","house","hryvnia-sign","hurricane","i-cursor","i","ice-cream","icicles","icons","id-badge","id-card-clip","id-card","igloo","image-portrait","image","images","inbox","indent","indian-rupee-sign","industry","infinity","info","italic","j","jar-wheat","jar","jedi","jet-fighter-up","jet-fighter","joint","jug-detergent","k","kaaba","key","keyboard","khanda","kip-sign","kit-medical","kitchen-set","kiwi-bird","l","land-mine-on","landmark-dome","landmark-flag","landmark","language","laptop-code","laptop-file","laptop-medical","laptop","lari-sign","layer-group","leaf","left-long","left-right","lemon","less-than-equal","less-than","life-ring","lightbulb","lines-leaning","link-slash","link","lira-sign","list-check","list-ol","list-ul","list","litecoin-sign","location-arrow","location-crosshairs","location-dot","location-pin-lock","location-pin","lock-open","lock","locust","lungs-virus","lungs","m","magnet","magnifying-glass-arrow-right","magnifying-glass-chart","magnifying-glass-dollar","magnifying-glass-location","magnifying-glass-minus","magnifying-glass-plus","magnifying-glass","manat-sign","map-location-dot","map-location","map-pin","map","marker","mars-and-venus-burst","mars-and-venus","mars-double","mars-stroke-right","mars-stroke-up","mars-stroke","mars","martini-glass-citrus","martini-glass-empty","martini-glass","mask-face","mask-ventilator","mask","masks-theater","mattress-pillow","maximize","medal","memory","menorah","mercury","message","meteor","microchip","microphone-lines-slash","microphone-lines","microphone-slash","microphone","microscope","mill-sign","minimize","minus","mitten","mobile-button","mobile-retro","mobile-screen-button","mobile-screen","mobile","money-bill-1-wave","money-bill-1","money-bill-transfer","money-bill-trend-up","money-bill-wave","money-bill-wheat","money-bill","money-bills","money-check-dollar","money-check","monument","moon","mortar-pestle","mosque","mosquito-net","mosquito","motorcycle","mound","mountain-city","mountain-sun","mountain","mug-hot","mug-saucer","music","n","naira-sign","network-wired","neuter","newspaper","not-equal","notdef","note-sticky","notes-medical","o","object-group","object-ungroup","oil-can","oil-well","om","otter","outdent","p","pager","paint-roller","paintbrush","palette","pallet","panorama","paper-plane","paperclip","parachute-box","paragraph","passport","paste","pause","paw","peace","pen-clip","pen-fancy","pen-nib","pen-ruler","pen-to-square","pen","pencil","people-arrows","people-carry-box","people-group","people-line","people-pulling","people-robbery","people-roof","pepper-hot","percent","person-arrow-down-to-line","person-arrow-up-from-line","person-biking","person-booth","person-breastfeeding","person-burst","person-cane","person-chalkboard","person-circle-check","person-circle-exclamation","person-circle-minus","person-circle-plus","person-circle-question","person-circle-xmark","person-digging","person-dots-from-line","person-dress-burst","person-dress","person-drowning","person-falling-burst","person-falling","person-half-dress","person-harassing","person-hiking","person-military-pointing","person-military-rifle","person-military-to-person","person-praying","person-pregnant","person-rays","person-rifle","person-running","person-shelter","person-skating","person-skiing-nordic","person-skiing","person-snowboarding","person-swimming","person-through-window","person-walking-arrow-loop-left","person-walking-arrow-right","person-walking-dashed-line-arrow-right","person-walking-luggage","person-walking-with-cane","person-walking","person","peseta-sign","peso-sign","phone-flip","phone-slash","phone-volume","phone","photo-film","piggy-bank","pills","pizza-slice","place-of-worship","plane-arrival","plane-circle-check","plane-circle-exclamation","plane-circle-xmark","plane-departure","plane-lock","plane-slash","plane-up","plane","plant-wilt","plate-wheat","play","plug-circle-bolt","plug-circle-check","plug-circle-exclamation","plug-circle-minus","plug-circle-plus","plug-circle-xmark","plug","plus-minus","plus","podcast","poo-storm","poo","poop","power-off","prescription-bottle-medical","prescription-bottle","prescription","print","pump-medical","pump-soap","puzzle-piece","q","qrcode","question","quote-left","quote-right","r","radiation","radio","rainbow","ranking-star","receipt","record-vinyl","rectangle-ad","rectangle-list","rectangle-xmark","recycle","registered","repeat","reply-all","reply","republican","restroom","retweet","ribbon","right-from-bracket","right-left","right-long","right-to-bracket","ring","road-barrier","road-bridge","road-circle-check","road-circle-exclamation","road-circle-xmark","road-lock","road-spikes","road","robot","rocket","rotate-left","rotate-right","rotate","route","rss","ruble-sign","rug","ruler-combined","ruler-horizontal","ruler-vertical","ruler","rupee-sign","rupiah-sign","s","sack-dollar","sack-xmark","sailboat","satellite-dish","satellite","scale-balanced","scale-unbalanced-flip","scale-unbalanced","school-circle-check","school-circle-exclamation","school-circle-xmark","school-flag","school-lock","school","scissors","screwdriver-wrench","screwdriver","scroll-torah","scroll","sd-card","section","seedling","server","shapes","share-from-square","share-nodes","share","sheet-plastic","shekel-sign","shield-cat","shield-dog","shield-halved","shield-heart","shield-virus","shield","ship","shirt","shoe-prints","shop-lock","shop-slash","shop","shower","shrimp","shuffle","shuttle-space","sign-hanging","signal","signature","signs-post","sim-card","sink","sitemap","skull-crossbones","skull","slash","sleigh","sliders","smog","smoking","snowflake","snowman","snowplow","soap","socks","solar-panel","sort-down","sort-up","sort","spa","spaghetti-monster-flying","spell-check","spider","spinner","splotch","spoon","spray-can-sparkles","spray-can","square-arrow-up-right","square-caret-down","square-caret-left","square-caret-right","square-caret-up","square-check","square-envelope","square-full","square-h","square-minus","square-nfi","square-parking","square-pen","square-person-confined","square-phone-flip","square-phone","square-plus","square-poll-horizontal","square-poll-vertical","square-root-variable","square-rss","square-share-nodes","square-up-right","square-virus","square-xmark","square","staff-snake","stairs","stamp","stapler","star-and-crescent","star-half-stroke","star-half","star-of-david","star-of-life","star","sterling-sign","stethoscope","stop","stopwatch-20","stopwatch","store-slash","store","street-view","strikethrough","stroopwafel","subscript","suitcase-medical","suitcase-rolling","suitcase","sun-plant-wilt","sun","superscript","swatchbook","synagogue","syringe","t","table-cells-large","table-cells","table-columns","table-list","table-tennis-paddle-ball","table","tablet-button","tablet-screen-button","tablet","tablets","tachograph-digital","tag","tags","tape","tarp-droplet","tarp","taxi","teeth-open","teeth","temperature-arrow-down","temperature-arrow-up","temperature-empty","temperature-full","temperature-half","temperature-high","temperature-low","temperature-quarter","temperature-three-quarters","tenge-sign","tent-arrow-down-to-line","tent-arrow-left-right","tent-arrow-turn-left","tent-arrows-down","tent","tents","terminal","text-height","text-slash","text-width","thermometer","thumbs-down","thumbs-up","thumbtack","ticket-simple","ticket","timeline","toggle-off","toggle-on","toilet-paper-slash","toilet-paper","toilet-portable","toilet","toilets-portable","toolbox","tooth","torii-gate","tornado","tower-broadcast","tower-cell","tower-observation","tractor","trademark","traffic-light","trailer","train-subway","train-tram","train","transgender","trash-arrow-up","trash-can-arrow-up","trash-can","trash","tree-city","tree","triangle-exclamation","trophy","trowel-bricks","trowel","truck-arrow-right","truck-droplet","truck-fast","truck-field-un","truck-field","truck-front","truck-medical","truck-monster","truck-moving","truck-pickup","truck-plane","truck-ramp-box","truck","tty","turkish-lira-sign","turn-down","turn-up","tv","u","umbrella-beach","umbrella","underline","universal-access","unlock-keyhole","unlock","up-down-left-right","up-down","up-long","up-right-and-down-left-from-center","up-right-from-square","upload","user-astronaut","user-check","user-clock","user-doctor","user-gear","user-graduate","user-group","user-injured","user-large-slash","user-large","user-lock","user-minus","user-ninja","user-nurse","user-pen","user-plus","user-secret","user-shield","user-slash","user-tag","user-tie","user-xmark","user","users-between-lines","users-gear","users-line","users-rays","users-rectangle","users-slash","users-viewfinder","users","utensils","v","van-shuttle","vault","vector-square","venus-double","venus-mars","venus","vest-patches","vest","vial-circle-check","vial-virus","vial","vials","video-slash","video","vihara","virus-covid-slash","virus-covid","virus-slash","virus","viruses","voicemail","volcano","volleyball","volume-high","volume-low","volume-off","volume-xmark","vr-cardboard","w","walkie-talkie","wallet","wand-magic-sparkles","wand-magic","wand-sparkles","warehouse","water-ladder","water","wave-square","weight-hanging","weight-scale","wheat-awn-circle-exclamation","wheat-awn","wheelchair-move","wheelchair","whiskey-glass","wifi","wind","window-maximize","window-minimize","window-restore","wine-bottle","wine-glass-empty","wine-glass","won-sign","worm","wrench","x-ray","x","xmark","xmarks-lines","y","yen-sign","yin-yang","z"]}');function w(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(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.")}()}function k(e,r){if(e){if("string"==typeof e)return v(e,r);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?v(e,r):void 0}}function v(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=Array(r);a/g,"")).matchAll(/\[collapse(?=\s)((?:\s+\w+=(?:'[^']*'|"[^"]*"|“[^”]*”))*)\]([\s\S]*?)\[\/collapse\]/g)),l=[];console.log(a);var n=(null==a?void 0:a.content)||"";s.forEach((function(e,a){for(var t,i=e[1],s=/(\w+)="([^"]*)"/g,n={};null!==(t=s.exec(i));){var c=t[1],d=t[2];n[c]=d}var u=e[2].trim(),p=[],h=[];u.split(/\[accordion(?=\s|\])(?:\s+\w+="[^"]*")*\]([\s\S]*?)\[\/accordion\]/g).forEach((function(e,a){if(a%2==0)e.trim()&&p.push((0,r.createBlock)("core/freeform",{content:e.trim()}));else{var t=w(e.matchAll(/\[accordion-item(?=\s)((?:\s+\w+=(?:'[^']*'|"[^"]*"|“[^”]*”))*)\]([\s\S]*?)\[\/accordion-item\]/g)),i=[];t.forEach((function(e){var a=e[1],t=e[2].trim(),o=a.match(/(\w+)=('[^']*'|"[^"]*"|“[^”]*”)/g),s={};null==o||o.forEach((function(e){var r,a,t=(r=e.split("="),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,i,o,s,l=[],n=!0,c=!1;try{if(o=(a=a.call(e)).next,0===r){if(Object(a)!==a)return;n=!1}else for(;!(n=(t=o.call(a)).done)&&(l.push(t.value),l.length!==r);n=!0);}catch(e){c=!0,i=e}finally{try{if(!n&&null!=a.return&&(s=a.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}(r,a)||k(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=t[0],o=t[1].slice(1,-1);s[i]=o})),h.push({title:s.title||"No title detected",type:"accordion",level:2}),i.push((0,r.createBlock)("rrze-elements/accordion",{title:s.title||"Enter a title"},[(0,r.createBlock)("core/freeform",{content:t})]))})),i.length&&p.push((0,r.createBlock)("rrze-elements/accordions",{},i))}})),l.push({title:n.title||"Collapse #".concat(a+1),type:"collapse",level:1,items:h}),o.push((0,r.createBlock)("rrze-elements/collapse",{title:n.title||"Enter a title",color:function(e){switch(e){case"tf":return"tf";case"nat":return"nat";case"phil":return"phil";case"med":return"med";case"rw":return"rw";default:return""}}(n.color),jumpName:n.name||"",icon:y(n.icon)||""},p))}));var c=parseInt(e.named.hstart,10)||2;i.push((0,r.createBlock)("rrze-elements/collapsibles",{hstart:c},o));var d=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.map((function(e){return"".concat(" ".repeat(r),"• ").concat(e.title,"\n").concat(e.items?d(e.items,r+1):"")})).join("")},u=d(l);return confirm("Wichtiger Hinweis\n\nBitte überprüfen Sie Ihre Akkordeonstruktur, um sicherzustellen, dass alle Elemente vorhanden sind.\n\n".concat(u,"\n\nBestätigen Sie mit Ok, damit die Umwandlung in einen Block durchgeführt wird."))||(i=[]).push((0,r.createBlock)("core/freeform",{content:n})),i}}]},q=x;(0,r.registerBlockType)(m.UU,{icon:{src:(0,e.jsxs)("svg",{id:"Ebene_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,e.jsx)("g",{opacity:".5",children:(0,e.jsx)("rect",{x:"75.86",y:"131.85",width:"360.29",height:"142.31",fillRule:"evenodd",strokeWidth:"0"})}),(0,e.jsx)("path",{d:"m81.59,109.83h348.82c3.16,0,5.73,2.57,5.73,5.73v25.16H75.86v-25.16c0-3.16,2.57-5.73,5.73-5.73Z",fillRule:"evenodd",strokeWidth:"0"}),(0,e.jsx)("rect",{x:"75.86",y:"298.32",width:"360.28",height:"39.9",rx:"5.73",ry:"5.73",fillRule:"evenodd",strokeWidth:"0"}),(0,e.jsx)("rect",{x:"75.86",y:"362.27",width:"360.28",height:"39.9",rx:"5.73",ry:"5.73",fillRule:"evenodd",strokeWidth:"0"})]})},edit:function(r){var s=r.attributes,l=r.setAttributes,n=(0,a.useBlockProps)();return(0,e.jsxs)("div",Object.assign({},n,{children:[(0,e.jsx)(a.BlockControls,{children:(0,e.jsx)(h,{attributes:s,setAttributes:l})}),(0,e.jsxs)(a.InspectorControls,{children:[(0,e.jsx)(t.PanelBody,{title:(0,i.__)("Heading Settings","rrze-elements-blocks"),initialOpen:!0,children:(0,e.jsx)(g,{attributes:s,setAttributes:l})}),(0,e.jsx)(t.PanelBody,{title:(0,i.__)("Collapsibles Settings","rrze-elements-blocks"),initialOpen:!0,children:(0,e.jsx)(o,{attributes:s,setAttributes:l})})]}),(0,e.jsxs)("div",{className:"accordion",children:[s.expandAllLink&&(0,e.jsx)("div",{className:"button-container-right",children:(0,e.jsx)("button",{className:"expand-all standard-btn primary-btn xsmall-btn","data-status":"closed",children:(0,i.__)("Expand All","rrze-elements-blocks")})}),(0,e.jsx)(a.InnerBlocks,{allowedBlocks:["rrze-elements/collapse"],template:[["rrze-elements/collapse",{}],["rrze-elements/collapse",{}]]})]})]}))},save:function(r){var t=r.attributes,o=a.useBlockProps.save(),s=t.expandAllLink;return(0,e.jsxs)("div",Object.assign({},o,{children:[" ",(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"accordion",children:[s&&(0,e.jsx)("div",{className:"button-container-right",children:(0,e.jsx)("button",{className:"expand-all standard-btn primary-btn xsmall-btn","data-status":"closed",children:(0,i.__)("Expand All","rrze-elements-blocks")})}),(0,e.jsx)(a.InnerBlocks.Content,{})]})})]}))},deprecated:b,transforms:q})}(); \ No newline at end of file +!function(){"use strict";var e=window.ReactJSXRuntime,r=window.wp.blocks,a=window.wp.blockEditor,t=window.wp.components,o=window.wp.i18n,i=function(r){var a=r.attributes,i=r.setAttributes;return(0,e.jsx)(t.CheckboxControl,{label:(0,o.__)("Show Expand-All-Link","rrze-elements-blocks"),checked:a.expandAllLink,onChange:function(){i({expandAllLink:!a.expandAllLink})}})},s=window.wp.primitives,n=(0,e.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(s.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})}),l=(0,e.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(s.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})}),c=(0,e.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(s.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})}),u=(0,e.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(s.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})}),d=(0,e.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(s.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})}),p=function(e){switch(e){case 2:default:return n;case 3:return l;case 4:return c;case 5:return u;case 6:return d}},h=function(r){var a=r.attributes,i=r.setAttributes,s=function(e){i({hstart:e})};return(0,e.jsx)(t.ToolbarDropdownMenu,{icon:p(a.hstart),label:(0,o.__)("Select heading level","rrze-elements-blocks"),controls:[{title:"H2",isDisabled:2===a.hstart,onClick:function(){return s(2)}},{title:"H3",isDisabled:3===a.hstart,onClick:function(){return s(3)}},{title:"H4",isDisabled:4===a.hstart,onClick:function(){return s(4)}},{title:"H5",isDisabled:5===a.hstart,onClick:function(){return s(5)}},{title:"H6",isDisabled:6===a.hstart,onClick:function(){return s(6)}}]})},g=function(r){var a=r.attributes,i=r.setAttributes;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.__experimentalToggleGroupControl,{label:(0,o.__)("Heading level","rrze-elements-blocks"),value:a.hstart,onChange:function(e){i({hstart:e})},isBlock:!0,children:[(0,e.jsx)(t.__experimentalToggleGroupControlOption,{value:2,label:"H2"}),(0,e.jsx)(t.__experimentalToggleGroupControlOption,{value:3,label:"H3"}),(0,e.jsx)(t.__experimentalToggleGroupControlOption,{value:4,label:"H4"}),(0,e.jsx)(t.__experimentalToggleGroupControlOption,{value:5,label:"H5"}),(0,e.jsx)(t.__experimentalToggleGroupControlOption,{value:6,label:"H6"})]}),(0,e.jsx)(t.__experimentalText,{children:(0,o.__)("Controls the heading level of the accordion","rrze-elements-blocks")}),(0,e.jsx)(t.__experimentalDivider,{})]})},m=window.wp.element,f=JSON.parse('{"UU":"rrze-elements/collapsibles"}'),b=[{attributes:{expandAllLink:{type:"boolean",default:!1},hstart:{type:"integer",default:2},register:{type:"boolean",default:!1},sameBlockCount:{type:"integer",default:0},childrenCount:{type:"integer",default:0},previousBlockIds:{type:"array",default:[]}},save:function(r){var t=r.attributes,o=a.useBlockProps.save(),i=t.expandAllLink;return(0,e.jsxs)("div",Object.assign({},o,{children:[" ",(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"accordion",children:[i&&(0,e.jsx)("div",{className:"button-container-right",children:(0,e.jsx)("button",{className:"expand-all standard-btn primary-btn xsmall-btn","data-status":"closed",children:"Alle öffnen"})}),(0,e.jsx)(a.InnerBlocks.Content,{})]})})]}))},migrate:function(e){return Object.assign({},e)}},{attributes:{expandAllLink:{type:"boolean",default:!1},hstart:{type:"integer",default:2},register:{type:"boolean",default:!1},sameBlockCount:{type:"integer",default:0},childrenCount:{type:"integer",default:0},previousBlockIds:{type:"array",default:[]}},save:function(r){var t=r.attributes,o=a.useBlockProps.save(),i=t.expandAllLink;return(0,e.jsxs)("div",Object.assign({},o,{children:[" ",(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"accordion",children:[i&&(0,e.jsx)("div",{className:"button-container-right",children:(0,e.jsx)("button",{className:"expand-all standard-btn primary-btn xsmall-btn","data-status":"closed",children:"Expand All"})}),(0,e.jsx)(a.InnerBlocks.Content,{})]})})]}))},migrate:function(e){return Object.assign({},e)}},{attributes:{expandAllLink:{type:"boolean",default:!1},hstart:{type:"integer",default:2},register:{type:"boolean",default:!1},sameBlockCount:{type:"integer",default:0},childrenCount:{type:"integer",default:0},previousBlockIds:{type:"array",default:[]}},save:function(r){var t=r.attributes,i=a.useBlockProps.save(),s=t.sameBlockCount,n=t.expandAllLink;return(0,e.jsxs)("div",Object.assign({},i,{children:[" ",(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"accordion",id:"accordion-".concat(s),children:[n&&(0,e.jsx)("div",{className:"button-container-right",children:(0,e.jsx)("button",{className:"expand-all standard-btn primary-btn xsmall-btn","data-status":"closed",children:(0,o.__)("Expand All","rrze-elements-b")})}),(0,e.jsx)(a.InnerBlocks.Content,{})]})})]}))},migrate:function(e){return Object.assign({},e)}}],w=JSON.parse('{"brands":["42-group","500px","accessible-icon","accusoft","adn","adversal","affiliatetheme","airbnb","algolia","alipay","amazon-pay","amazon","amilia","android","angellist","angrycreative","angular","app-store-ios","app-store","apper","apple-pay","apple","artstation","asymmetrik","atlassian","audible","autoprefixer","avianex","aviato","aws","bandcamp","battle-net","behance","bilibili","bimobject","bitbucket","bitcoin","bity","black-tie","blackberry","blogger-b","blogger","bluetooth-b","bluetooth","bootstrap","bots","btc","buffer","buromobelexperte","buy-n-large","buysellads","canadian-maple-leaf","cc-amazon-pay","cc-amex","cc-apple-pay","cc-diners-club","cc-discover","cc-jcb","cc-mastercard","cc-paypal","cc-stripe","cc-visa","centercode","centos","chrome","chromecast","cloudflare","cloudscale","cloudsmith","cloudversify","cmplid","codepen","codiepie","confluence","connectdevelop","contao","cotton-bureau","cpanel","creative-commons-by","creative-commons-nc-eu","creative-commons-nc-jp","creative-commons-nc","creative-commons-nd","creative-commons-pd-alt","creative-commons-pd","creative-commons-remix","creative-commons-sa","creative-commons-sampling-plus","creative-commons-sampling","creative-commons-share","creative-commons-zero","creative-commons","critical-role","css3-alt","css3","cuttlefish","d-and-d-beyond","d-and-d","dailymotion","dashcube","debian","deezer","delicious","deploydog","deskpro","dev","deviantart","dhl","diaspora","digg","digital-ocean","discord","discourse","dochub","docker","draft2digital","dribbble","dropbox","drupal","dyalog","earlybirds","ebay","edge-legacy","edge","elementor","ello","ember","empire","envira","erlang","ethereum","etsy","evernote","expeditedssl","facebook-f","facebook-messenger","facebook","fantasy-flight-games","fedex","fedora","figma","firefox-browser","firefox","first-order-alt","first-order","firstdraft","flickr","flipboard","fly","font-awesome","fonticons-fi","fonticons","fort-awesome-alt","fort-awesome","forumbee","foursquare","free-code-camp","freebsd","fulcrum","galactic-republic","galactic-senate","get-pocket","gg-circle","gg","git-alt","git","github-alt","github","gitkraken","gitlab","gitter","glide-g","glide","gofore","golang","goodreads-g","goodreads","google-drive","google-pay","google-play","google-plus-g","google-plus","google-wallet","google","gratipay","grav","gripfire","grunt","guilded","gulp","hacker-news","hackerrank","hashnode","hips","hire-a-helper","hive","hooli","hornbill","hotjar","houzz","html5","hubspot","ideal","imdb","instagram","instalod","intercom","internet-explorer","invision","ioxhost","itch-io","itunes-note","itunes","java","jedi-order","jenkins","jira","joget","joomla","js","jsfiddle","kaggle","keybase","keycdn","kickstarter-k","kickstarter","korvue","laravel","lastfm","leanpub","less","line","linkedin-in","linkedin","linode","linux","lyft","magento","mailchimp","mandalorian","markdown","mastodon","maxcdn","mdb","medapps","medium","medrt","meetup","megaport","mendeley","meta","microblog","microsoft","mix","mixcloud","mixer","mizuni","modx","monero","napster","neos","nfc-directional","nfc-symbol","nimblr","node-js","node","npm","ns8","nutritionix","octopus-deploy","odnoklassniki","odysee","old-republic","opencart","openid","opera","optin-monster","orcid","osi","padlet","page4","pagelines","palfed","patreon","paypal","perbyte","periscope","phabricator","phoenix-framework","phoenix-squadron","php","pied-piper-alt","pied-piper-hat","pied-piper-pp","pied-piper","pinterest-p","pinterest","pix","playstation","product-hunt","pushed","python","qq","quinscape","quora","r-project","raspberry-pi","ravelry","react","reacteurope","readme","rebel","red-river","reddit-alien","reddit","redhat","renren","replyd","researchgate","resolving","rev","rocketchat","rockrms","rust","safari","salesforce","sass","schlix","screenpal","scribd","searchengin","sellcast","sellsy","servicestack","shirtsinbulk","shopify","shopware","simplybuilt","sistrix","sith","sitrox","sketch","skyatlas","skype","slack","slideshare","snapchat","soundcloud","sourcetree","space-awesome","speakap","speaker-deck","spotify","square-behance","square-dribbble","square-facebook","square-font-awesome-stroke","square-font-awesome","square-git","square-github","square-gitlab","square-google-plus","square-hacker-news","square-instagram","square-js","square-lastfm","square-odnoklassniki","square-pied-piper","square-pinterest","square-reddit","square-snapchat","square-steam","square-threads","square-tumblr","square-twitter","square-viadeo","square-vimeo","square-whatsapp","square-x-twitter","square-xing","square-youtube","squarespace","stack-exchange","stack-overflow","stackpath","staylinked","steam-symbol","steam","sticker-mule","strava","stripe-s","stripe","stubber","studiovinari","stumbleupon-circle","stumbleupon","superpowers","supple","suse","swift","symfony","teamspeak","telegram","tencent-weibo","the-red-yeti","themeco","themeisle","think-peaks","threads","tiktok","trade-federation","trello","tumblr","twitch","twitter","typo3","uber","ubuntu","uikit","umbraco","uncharted","uniregistry","unity","unsplash","untappd","ups","usb","usps","ussunnah","vaadin","viacoin","viadeo","viber","vimeo-v","vimeo","vine","vk","vnv","vuejs","watchman-monitoring","waze","weebly","weibo","weixin","whatsapp","whmcs","wikipedia-w","windows","wirsindhandwerk","wix","wizards-of-the-coast","wodu","wolf-pack-battalion","wordpress-simple","wordpress","wpbeginner","wpexplorer","wpforms","wpressr","x-twitter","xbox","xing","y-combinator","yahoo","yammer","yandex-international","yandex","yarn","yelp","yoast","youtube","zhihu"],"regular":["address-book","address-card","bell-slash","bell","bookmark","building","calendar-check","calendar-days","calendar-minus","calendar-plus","calendar-xmark","calendar","chart-bar","chess-bishop","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","circle-check","circle-dot","circle-down","circle-left","circle-pause","circle-play","circle-question","circle-right","circle-stop","circle-up","circle-user","circle-xmark","circle","clipboard","clock","clone","closed-captioning","comment-dots","comment","comments","compass","copy","copyright","credit-card","envelope-open","envelope","eye-slash","eye","face-angry","face-dizzy","face-flushed","face-frown-open","face-frown","face-grimace","face-grin-beam-sweat","face-grin-beam","face-grin-hearts","face-grin-squint-tears","face-grin-squint","face-grin-stars","face-grin-tears","face-grin-tongue-squint","face-grin-tongue-wink","face-grin-tongue","face-grin-wide","face-grin-wink","face-grin","face-kiss-beam","face-kiss-wink-heart","face-kiss","face-laugh-beam","face-laugh-squint","face-laugh-wink","face-laugh","face-meh-blank","face-meh","face-rolling-eyes","face-sad-cry","face-sad-tear","face-smile-beam","face-smile-wink","face-smile","face-surprise","face-tired","file-audio","file-code","file-excel","file-image","file-lines","file-pdf","file-powerpoint","file-video","file-word","file-zipper","file","flag","floppy-disk","folder-closed","folder-open","folder","font-awesome","futbol","gem","hand-back-fist","hand-lizard","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","hand-pointer","hand-scissors","hand-spock","hand","handshake","hard-drive","heart","hospital","hourglass-half","hourglass","id-badge","id-card","image","images","keyboard","lemon","life-ring","lightbulb","map","message","money-bill-1","moon","newspaper","notdef","note-sticky","object-group","object-ungroup","paper-plane","paste","pen-to-square","rectangle-list","rectangle-xmark","registered","share-from-square","snowflake","square-caret-down","square-caret-left","square-caret-right","square-caret-up","square-check","square-full","square-minus","square-plus","square","star-half-stroke","star-half","star","sun","thumbs-down","thumbs-up","trash-can","user","window-maximize","window-minimize","window-restore"],"solid":["0","1","2","3","4","5","6","7","8","9","a","address-book","address-card","align-center","align-justify","align-left","align-right","anchor-circle-check","anchor-circle-exclamation","anchor-circle-xmark","anchor-lock","anchor","angle-down","angle-left","angle-right","angle-up","angles-down","angles-left","angles-right","angles-up","ankh","apple-whole","archway","arrow-down-1-9","arrow-down-9-1","arrow-down-a-z","arrow-down-long","arrow-down-short-wide","arrow-down-up-across-line","arrow-down-up-lock","arrow-down-wide-short","arrow-down-z-a","arrow-down","arrow-left-long","arrow-left","arrow-pointer","arrow-right-arrow-left","arrow-right-from-bracket","arrow-right-long","arrow-right-to-bracket","arrow-right-to-city","arrow-right","arrow-rotate-left","arrow-rotate-right","arrow-trend-down","arrow-trend-up","arrow-turn-down","arrow-turn-up","arrow-up-1-9","arrow-up-9-1","arrow-up-a-z","arrow-up-from-bracket","arrow-up-from-ground-water","arrow-up-from-water-pump","arrow-up-long","arrow-up-right-dots","arrow-up-right-from-square","arrow-up-short-wide","arrow-up-wide-short","arrow-up-z-a","arrow-up","arrows-down-to-line","arrows-down-to-people","arrows-left-right-to-line","arrows-left-right","arrows-rotate","arrows-spin","arrows-split-up-and-left","arrows-to-circle","arrows-to-dot","arrows-to-eye","arrows-turn-right","arrows-turn-to-dots","arrows-up-down-left-right","arrows-up-down","arrows-up-to-line","asterisk","at","atom","audio-description","austral-sign","award","b","baby-carriage","baby","backward-fast","backward-step","backward","bacon","bacteria","bacterium","bag-shopping","bahai","baht-sign","ban-smoking","ban","bandage","bangladeshi-taka-sign","barcode","bars-progress","bars-staggered","bars","baseball-bat-ball","baseball","basket-shopping","basketball","bath","battery-empty","battery-full","battery-half","battery-quarter","battery-three-quarters","bed-pulse","bed","beer-mug-empty","bell-concierge","bell-slash","bell","bezier-curve","bicycle","binoculars","biohazard","bitcoin-sign","blender-phone","blender","blog","bold","bolt-lightning","bolt","bomb","bone","bong","book-atlas","book-bible","book-bookmark","book-journal-whills","book-medical","book-open-reader","book-open","book-quran","book-skull","book-tanakh","book","bookmark","border-all","border-none","border-top-left","bore-hole","bottle-droplet","bottle-water","bowl-food","bowl-rice","bowling-ball","box-archive","box-open","box-tissue","box","boxes-packing","boxes-stacked","braille","brain","brazilian-real-sign","bread-slice","bridge-circle-check","bridge-circle-exclamation","bridge-circle-xmark","bridge-lock","bridge-water","bridge","briefcase-medical","briefcase","broom-ball","broom","brush","bucket","bug-slash","bug","bugs","building-circle-arrow-right","building-circle-check","building-circle-exclamation","building-circle-xmark","building-columns","building-flag","building-lock","building-ngo","building-shield","building-un","building-user","building-wheat","building","bullhorn","bullseye","burger","burst","bus-simple","bus","business-time","c","cable-car","cake-candles","calculator","calendar-check","calendar-day","calendar-days","calendar-minus","calendar-plus","calendar-week","calendar-xmark","calendar","camera-retro","camera-rotate","camera","campground","candy-cane","cannabis","capsules","car-battery","car-burst","car-on","car-rear","car-side","car-tunnel","car","caravan","caret-down","caret-left","caret-right","caret-up","carrot","cart-arrow-down","cart-flatbed-suitcase","cart-flatbed","cart-plus","cart-shopping","cash-register","cat","cedi-sign","cent-sign","certificate","chair","chalkboard-user","chalkboard","champagne-glasses","charging-station","chart-area","chart-bar","chart-column","chart-gantt","chart-line","chart-pie","chart-simple","check-double","check-to-slot","check","cheese","chess-bishop","chess-board","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","chess","chevron-down","chevron-left","chevron-right","chevron-up","child-combatant","child-dress","child-reaching","child-rifle","child","children","church","circle-arrow-down","circle-arrow-left","circle-arrow-right","circle-arrow-up","circle-check","circle-chevron-down","circle-chevron-left","circle-chevron-right","circle-chevron-up","circle-dollar-to-slot","circle-dot","circle-down","circle-exclamation","circle-h","circle-half-stroke","circle-info","circle-left","circle-minus","circle-nodes","circle-notch","circle-pause","circle-play","circle-plus","circle-question","circle-radiation","circle-right","circle-stop","circle-up","circle-user","circle-xmark","circle","city","clapperboard","clipboard-check","clipboard-list","clipboard-question","clipboard-user","clipboard","clock-rotate-left","clock","clone","closed-captioning","cloud-arrow-down","cloud-arrow-up","cloud-bolt","cloud-meatball","cloud-moon-rain","cloud-moon","cloud-rain","cloud-showers-heavy","cloud-showers-water","cloud-sun-rain","cloud-sun","cloud","clover","code-branch","code-commit","code-compare","code-fork","code-merge","code-pull-request","code","coins","colon-sign","comment-dollar","comment-dots","comment-medical","comment-slash","comment-sms","comment","comments-dollar","comments","compact-disc","compass-drafting","compass","compress","computer-mouse","computer","cookie-bite","cookie","copy","copyright","couch","cow","credit-card","crop-simple","crop","cross","crosshairs","crow","crown","crutch","cruzeiro-sign","cube","cubes-stacked","cubes","d","database","delete-left","democrat","desktop","dharmachakra","diagram-next","diagram-predecessor","diagram-project","diagram-successor","diamond-turn-right","diamond","dice-d6","dice-d20","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","dice","disease","display","divide","dna","dog","dollar-sign","dolly","dong-sign","door-closed","door-open","dove","down-left-and-up-right-to-center","down-long","download","dragon","draw-polygon","droplet-slash","droplet","drum-steelpan","drum","drumstick-bite","dumbbell","dumpster-fire","dumpster","dungeon","e","ear-deaf","ear-listen","earth-africa","earth-americas","earth-asia","earth-europe","earth-oceania","egg","eject","elevator","ellipsis-vertical","ellipsis","envelope-circle-check","envelope-open-text","envelope-open","envelope","envelopes-bulk","equals","eraser","ethernet","euro-sign","exclamation","expand","explosion","eye-dropper","eye-low-vision","eye-slash","eye","f","face-angry","face-dizzy","face-flushed","face-frown-open","face-frown","face-grimace","face-grin-beam-sweat","face-grin-beam","face-grin-hearts","face-grin-squint-tears","face-grin-squint","face-grin-stars","face-grin-tears","face-grin-tongue-squint","face-grin-tongue-wink","face-grin-tongue","face-grin-wide","face-grin-wink","face-grin","face-kiss-beam","face-kiss-wink-heart","face-kiss","face-laugh-beam","face-laugh-squint","face-laugh-wink","face-laugh","face-meh-blank","face-meh","face-rolling-eyes","face-sad-cry","face-sad-tear","face-smile-beam","face-smile-wink","face-smile","face-surprise","face-tired","fan","faucet-drip","faucet","fax","feather-pointed","feather","ferry","file-arrow-down","file-arrow-up","file-audio","file-circle-check","file-circle-exclamation","file-circle-minus","file-circle-plus","file-circle-question","file-circle-xmark","file-code","file-contract","file-csv","file-excel","file-export","file-image","file-import","file-invoice-dollar","file-invoice","file-lines","file-medical","file-pdf","file-pen","file-powerpoint","file-prescription","file-shield","file-signature","file-video","file-waveform","file-word","file-zipper","file","fill-drip","fill","film","filter-circle-dollar","filter-circle-xmark","filter","fingerprint","fire-burner","fire-extinguisher","fire-flame-curved","fire-flame-simple","fire","fish-fins","fish","flag-checkered","flag-usa","flag","flask-vial","flask","floppy-disk","florin-sign","folder-closed","folder-minus","folder-open","folder-plus","folder-tree","folder","font-awesome","font","football","forward-fast","forward-step","forward","franc-sign","frog","futbol","g","gamepad","gas-pump","gauge-high","gauge-simple-high","gauge-simple","gauge","gavel","gear","gears","gem","genderless","ghost","gift","gifts","glass-water-droplet","glass-water","glasses","globe","golf-ball-tee","gopuram","graduation-cap","greater-than-equal","greater-than","grip-lines-vertical","grip-lines","grip-vertical","grip","group-arrows-rotate","guarani-sign","guitar","gun","h","hammer","hamsa","hand-back-fist","hand-dots","hand-fist","hand-holding-dollar","hand-holding-droplet","hand-holding-hand","hand-holding-heart","hand-holding-medical","hand-holding","hand-lizard","hand-middle-finger","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","hand-pointer","hand-scissors","hand-sparkles","hand-spock","hand","handcuffs","hands-asl-interpreting","hands-bound","hands-bubbles","hands-clapping","hands-holding-child","hands-holding-circle","hands-holding","hands-praying","hands","handshake-angle","handshake-simple-slash","handshake-simple","handshake-slash","handshake","hanukiah","hard-drive","hashtag","hat-cowboy-side","hat-cowboy","hat-wizard","head-side-cough-slash","head-side-cough","head-side-mask","head-side-virus","heading","headphones-simple","headphones","headset","heart-circle-bolt","heart-circle-check","heart-circle-exclamation","heart-circle-minus","heart-circle-plus","heart-circle-xmark","heart-crack","heart-pulse","heart","helicopter-symbol","helicopter","helmet-safety","helmet-un","highlighter","hill-avalanche","hill-rockslide","hippo","hockey-puck","holly-berry","horse-head","horse","hospital-user","hospital","hot-tub-person","hotdog","hotel","hourglass-end","hourglass-half","hourglass-start","hourglass","house-chimney-crack","house-chimney-medical","house-chimney-user","house-chimney-window","house-chimney","house-circle-check","house-circle-exclamation","house-circle-xmark","house-crack","house-fire","house-flag","house-flood-water-circle-arrow-right","house-flood-water","house-laptop","house-lock","house-medical-circle-check","house-medical-circle-exclamation","house-medical-circle-xmark","house-medical-flag","house-medical","house-signal","house-tsunami","house-user","house","hryvnia-sign","hurricane","i-cursor","i","ice-cream","icicles","icons","id-badge","id-card-clip","id-card","igloo","image-portrait","image","images","inbox","indent","indian-rupee-sign","industry","infinity","info","italic","j","jar-wheat","jar","jedi","jet-fighter-up","jet-fighter","joint","jug-detergent","k","kaaba","key","keyboard","khanda","kip-sign","kit-medical","kitchen-set","kiwi-bird","l","land-mine-on","landmark-dome","landmark-flag","landmark","language","laptop-code","laptop-file","laptop-medical","laptop","lari-sign","layer-group","leaf","left-long","left-right","lemon","less-than-equal","less-than","life-ring","lightbulb","lines-leaning","link-slash","link","lira-sign","list-check","list-ol","list-ul","list","litecoin-sign","location-arrow","location-crosshairs","location-dot","location-pin-lock","location-pin","lock-open","lock","locust","lungs-virus","lungs","m","magnet","magnifying-glass-arrow-right","magnifying-glass-chart","magnifying-glass-dollar","magnifying-glass-location","magnifying-glass-minus","magnifying-glass-plus","magnifying-glass","manat-sign","map-location-dot","map-location","map-pin","map","marker","mars-and-venus-burst","mars-and-venus","mars-double","mars-stroke-right","mars-stroke-up","mars-stroke","mars","martini-glass-citrus","martini-glass-empty","martini-glass","mask-face","mask-ventilator","mask","masks-theater","mattress-pillow","maximize","medal","memory","menorah","mercury","message","meteor","microchip","microphone-lines-slash","microphone-lines","microphone-slash","microphone","microscope","mill-sign","minimize","minus","mitten","mobile-button","mobile-retro","mobile-screen-button","mobile-screen","mobile","money-bill-1-wave","money-bill-1","money-bill-transfer","money-bill-trend-up","money-bill-wave","money-bill-wheat","money-bill","money-bills","money-check-dollar","money-check","monument","moon","mortar-pestle","mosque","mosquito-net","mosquito","motorcycle","mound","mountain-city","mountain-sun","mountain","mug-hot","mug-saucer","music","n","naira-sign","network-wired","neuter","newspaper","not-equal","notdef","note-sticky","notes-medical","o","object-group","object-ungroup","oil-can","oil-well","om","otter","outdent","p","pager","paint-roller","paintbrush","palette","pallet","panorama","paper-plane","paperclip","parachute-box","paragraph","passport","paste","pause","paw","peace","pen-clip","pen-fancy","pen-nib","pen-ruler","pen-to-square","pen","pencil","people-arrows","people-carry-box","people-group","people-line","people-pulling","people-robbery","people-roof","pepper-hot","percent","person-arrow-down-to-line","person-arrow-up-from-line","person-biking","person-booth","person-breastfeeding","person-burst","person-cane","person-chalkboard","person-circle-check","person-circle-exclamation","person-circle-minus","person-circle-plus","person-circle-question","person-circle-xmark","person-digging","person-dots-from-line","person-dress-burst","person-dress","person-drowning","person-falling-burst","person-falling","person-half-dress","person-harassing","person-hiking","person-military-pointing","person-military-rifle","person-military-to-person","person-praying","person-pregnant","person-rays","person-rifle","person-running","person-shelter","person-skating","person-skiing-nordic","person-skiing","person-snowboarding","person-swimming","person-through-window","person-walking-arrow-loop-left","person-walking-arrow-right","person-walking-dashed-line-arrow-right","person-walking-luggage","person-walking-with-cane","person-walking","person","peseta-sign","peso-sign","phone-flip","phone-slash","phone-volume","phone","photo-film","piggy-bank","pills","pizza-slice","place-of-worship","plane-arrival","plane-circle-check","plane-circle-exclamation","plane-circle-xmark","plane-departure","plane-lock","plane-slash","plane-up","plane","plant-wilt","plate-wheat","play","plug-circle-bolt","plug-circle-check","plug-circle-exclamation","plug-circle-minus","plug-circle-plus","plug-circle-xmark","plug","plus-minus","plus","podcast","poo-storm","poo","poop","power-off","prescription-bottle-medical","prescription-bottle","prescription","print","pump-medical","pump-soap","puzzle-piece","q","qrcode","question","quote-left","quote-right","r","radiation","radio","rainbow","ranking-star","receipt","record-vinyl","rectangle-ad","rectangle-list","rectangle-xmark","recycle","registered","repeat","reply-all","reply","republican","restroom","retweet","ribbon","right-from-bracket","right-left","right-long","right-to-bracket","ring","road-barrier","road-bridge","road-circle-check","road-circle-exclamation","road-circle-xmark","road-lock","road-spikes","road","robot","rocket","rotate-left","rotate-right","rotate","route","rss","ruble-sign","rug","ruler-combined","ruler-horizontal","ruler-vertical","ruler","rupee-sign","rupiah-sign","s","sack-dollar","sack-xmark","sailboat","satellite-dish","satellite","scale-balanced","scale-unbalanced-flip","scale-unbalanced","school-circle-check","school-circle-exclamation","school-circle-xmark","school-flag","school-lock","school","scissors","screwdriver-wrench","screwdriver","scroll-torah","scroll","sd-card","section","seedling","server","shapes","share-from-square","share-nodes","share","sheet-plastic","shekel-sign","shield-cat","shield-dog","shield-halved","shield-heart","shield-virus","shield","ship","shirt","shoe-prints","shop-lock","shop-slash","shop","shower","shrimp","shuffle","shuttle-space","sign-hanging","signal","signature","signs-post","sim-card","sink","sitemap","skull-crossbones","skull","slash","sleigh","sliders","smog","smoking","snowflake","snowman","snowplow","soap","socks","solar-panel","sort-down","sort-up","sort","spa","spaghetti-monster-flying","spell-check","spider","spinner","splotch","spoon","spray-can-sparkles","spray-can","square-arrow-up-right","square-caret-down","square-caret-left","square-caret-right","square-caret-up","square-check","square-envelope","square-full","square-h","square-minus","square-nfi","square-parking","square-pen","square-person-confined","square-phone-flip","square-phone","square-plus","square-poll-horizontal","square-poll-vertical","square-root-variable","square-rss","square-share-nodes","square-up-right","square-virus","square-xmark","square","staff-snake","stairs","stamp","stapler","star-and-crescent","star-half-stroke","star-half","star-of-david","star-of-life","star","sterling-sign","stethoscope","stop","stopwatch-20","stopwatch","store-slash","store","street-view","strikethrough","stroopwafel","subscript","suitcase-medical","suitcase-rolling","suitcase","sun-plant-wilt","sun","superscript","swatchbook","synagogue","syringe","t","table-cells-large","table-cells","table-columns","table-list","table-tennis-paddle-ball","table","tablet-button","tablet-screen-button","tablet","tablets","tachograph-digital","tag","tags","tape","tarp-droplet","tarp","taxi","teeth-open","teeth","temperature-arrow-down","temperature-arrow-up","temperature-empty","temperature-full","temperature-half","temperature-high","temperature-low","temperature-quarter","temperature-three-quarters","tenge-sign","tent-arrow-down-to-line","tent-arrow-left-right","tent-arrow-turn-left","tent-arrows-down","tent","tents","terminal","text-height","text-slash","text-width","thermometer","thumbs-down","thumbs-up","thumbtack","ticket-simple","ticket","timeline","toggle-off","toggle-on","toilet-paper-slash","toilet-paper","toilet-portable","toilet","toilets-portable","toolbox","tooth","torii-gate","tornado","tower-broadcast","tower-cell","tower-observation","tractor","trademark","traffic-light","trailer","train-subway","train-tram","train","transgender","trash-arrow-up","trash-can-arrow-up","trash-can","trash","tree-city","tree","triangle-exclamation","trophy","trowel-bricks","trowel","truck-arrow-right","truck-droplet","truck-fast","truck-field-un","truck-field","truck-front","truck-medical","truck-monster","truck-moving","truck-pickup","truck-plane","truck-ramp-box","truck","tty","turkish-lira-sign","turn-down","turn-up","tv","u","umbrella-beach","umbrella","underline","universal-access","unlock-keyhole","unlock","up-down-left-right","up-down","up-long","up-right-and-down-left-from-center","up-right-from-square","upload","user-astronaut","user-check","user-clock","user-doctor","user-gear","user-graduate","user-group","user-injured","user-large-slash","user-large","user-lock","user-minus","user-ninja","user-nurse","user-pen","user-plus","user-secret","user-shield","user-slash","user-tag","user-tie","user-xmark","user","users-between-lines","users-gear","users-line","users-rays","users-rectangle","users-slash","users-viewfinder","users","utensils","v","van-shuttle","vault","vector-square","venus-double","venus-mars","venus","vest-patches","vest","vial-circle-check","vial-virus","vial","vials","video-slash","video","vihara","virus-covid-slash","virus-covid","virus-slash","virus","viruses","voicemail","volcano","volleyball","volume-high","volume-low","volume-off","volume-xmark","vr-cardboard","w","walkie-talkie","wallet","wand-magic-sparkles","wand-magic","wand-sparkles","warehouse","water-ladder","water","wave-square","weight-hanging","weight-scale","wheat-awn-circle-exclamation","wheat-awn","wheelchair-move","wheelchair","whiskey-glass","wifi","wind","window-maximize","window-minimize","window-restore","wine-bottle","wine-glass-empty","wine-glass","won-sign","worm","wrench","x-ray","x","xmark","xmarks-lines","y","yen-sign","yin-yang","z"]}');function k(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(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.")}()}function v(e,r){if(e){if("string"==typeof e)return y(e,r);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?y(e,r):void 0}}function y(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=Array(r);a/g,"")).matchAll(/\[collapse(?=\s)((?:\s+\w+=(?:'[^']*'|"[^"]*"|“[^”]*”))*)\]([\s\S]*?)\[\/collapse\]/g)),n=[];console.log(a);var l=(null==a?void 0:a.content)||"";s.forEach((function(e,a){for(var t,o=e[1],s=/(\w+)="([^"]*)"/g,l={};null!==(t=s.exec(o));){var c=t[1],u=t[2];l[c]=u}var d=e[2].trim(),p=[],h=[];d.split(/\[accordion(?=\s|\])(?:\s+\w+="[^"]*")*\]([\s\S]*?)\[\/accordion\]/g).forEach((function(e,a){if(a%2==0)e.trim()&&p.push((0,r.createBlock)("core/freeform",{content:e.trim()}));else{var t=k(e.matchAll(/\[accordion-item(?=\s)((?:\s+\w+=(?:'[^']*'|"[^"]*"|“[^”]*”))*)\]([\s\S]*?)\[\/accordion-item\]/g)),o=[];t.forEach((function(e){var a=e[1],t=e[2].trim(),i=a.match(/(\w+)=('[^']*'|"[^"]*"|“[^”]*”)/g),s={};null==i||i.forEach((function(e){var r,a,t=(r=e.split("="),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,o,i,s,n=[],l=!0,c=!1;try{if(i=(a=a.call(e)).next,0===r){if(Object(a)!==a)return;l=!1}else for(;!(l=(t=i.call(a)).done)&&(n.push(t.value),n.length!==r);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=a.return&&(s=a.return(),Object(s)!==s))return}finally{if(c)throw o}}return n}}(r,a)||v(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=t[0],i=t[1].slice(1,-1);s[o]=i})),h.push({title:s.title||"No title detected",type:"accordion",level:2}),o.push((0,r.createBlock)("rrze-elements/accordion",{title:s.title||"Enter a title"},[(0,r.createBlock)("core/freeform",{content:t})]))})),o.length&&p.push((0,r.createBlock)("rrze-elements/accordions",{},o))}})),n.push({title:l.title||"Collapse #".concat(a+1),type:"collapse",level:1,items:h}),i.push((0,r.createBlock)("rrze-elements/collapse",{title:l.title||"Enter a title",color:function(e){switch(e){case"tf":return"tf";case"nat":return"nat";case"phil":return"phil";case"med":return"med";case"rw":return"rw";default:return""}}(l.color),jumpName:l.name||"",icon:j(l.icon)||""},p))}));var c=parseInt(e.named.hstart,10)||2;o.push((0,r.createBlock)("rrze-elements/collapsibles",{hstart:c},i));var u=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.map((function(e){return"".concat(" ".repeat(r),"• ").concat(e.title,"\n").concat(e.items?u(e.items,r+1):"")})).join("")},d=u(n);return confirm("Wichtiger Hinweis\n\nBitte überprüfen Sie Ihre Akkordeonstruktur, um sicherzustellen, dass alle Elemente vorhanden sind.\n\n".concat(d,"\n\nBestätigen Sie mit Ok, damit die Umwandlung in einen Block durchgeführt wird."))||(o=[]).push((0,r.createBlock)("core/freeform",{content:l})),o}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e,r){var a,t=[],o=function(e){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=v(e))){r&&(e=r);var _n=0,a=function(){};return{s:a,n:function(){return _n>=e.length?{done:!0}:{done:!1,value:e[_n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var t,o=!0,i=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){i=!0,t=e},f:function(){try{o||null==r.return||r.return()}finally{if(i)throw t}}}}(r);try{for(o.s();!(a=o.n()).done;){var i=x(a.value);t.push.apply(t,k(i))}}catch(e){o.e(e)}finally{o.f()}return t}}]},z=q;(0,r.registerBlockType)(f.UU,{icon:{src:(0,e.jsxs)("svg",{id:"Ebene_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,e.jsx)("g",{opacity:".5",children:(0,e.jsx)("rect",{x:"75.86",y:"131.85",width:"360.29",height:"142.31",fillRule:"evenodd",strokeWidth:"0"})}),(0,e.jsx)("path",{d:"m81.59,109.83h348.82c3.16,0,5.73,2.57,5.73,5.73v25.16H75.86v-25.16c0-3.16,2.57-5.73,5.73-5.73Z",fillRule:"evenodd",strokeWidth:"0"}),(0,e.jsx)("rect",{x:"75.86",y:"298.32",width:"360.28",height:"39.9",rx:"5.73",ry:"5.73",fillRule:"evenodd",strokeWidth:"0"}),(0,e.jsx)("rect",{x:"75.86",y:"362.27",width:"360.28",height:"39.9",rx:"5.73",ry:"5.73",fillRule:"evenodd",strokeWidth:"0"})]})},edit:function(r){var s=r.attributes,n=r.setAttributes,l=(0,a.useBlockProps)();return(0,m.useEffect)((function(){n({expandLabel:(0,o.__)("Expand All","rrze-elements-blocks")})}),[]),(0,e.jsxs)("div",Object.assign({},l,{children:[(0,e.jsx)(a.BlockControls,{children:(0,e.jsx)(h,{attributes:s,setAttributes:n})}),(0,e.jsxs)(a.InspectorControls,{children:[(0,e.jsx)(t.PanelBody,{title:(0,o.__)("Heading Settings","rrze-elements-blocks"),initialOpen:!0,children:(0,e.jsx)(g,{attributes:s,setAttributes:n})}),(0,e.jsx)(t.PanelBody,{title:(0,o.__)("Collapsibles Settings","rrze-elements-blocks"),initialOpen:!0,children:(0,e.jsx)(i,{attributes:s,setAttributes:n})})]}),(0,e.jsxs)("div",{className:"accordion",children:[s.expandAllLink&&(0,e.jsx)("div",{className:"button-container-right",children:(0,e.jsx)("button",{className:"expand-all standard-btn primary-btn xsmall-btn","data-status":"closed",children:(0,o.__)("Expand All","rrze-elements-blocks")})}),(0,e.jsx)(a.InnerBlocks,{allowedBlocks:["rrze-elements/collapse"],template:[["rrze-elements/collapse",{}],["rrze-elements/collapse",{}]]})]})]}))},save:function(r){var t=r.attributes,o=a.useBlockProps.save(),i=t.expandAllLink,s=t.expandLabel;return(0,e.jsxs)("div",Object.assign({},o,{children:[" ",(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"accordion",children:[i&&(0,e.jsx)("div",{className:"button-container-right",children:(0,e.jsx)("button",{className:"expand-all standard-btn primary-btn xsmall-btn","data-status":"closed",children:s})}),(0,e.jsx)(a.InnerBlocks.Content,{})]})})]}))},deprecated:b,transforms:z})}(); \ No newline at end of file diff --git a/build/blocks/columns/index.asset.php b/build/blocks/columns/index.asset.php index c6d0e186..a3eddee1 100644 --- a/build/blocks/columns/index.asset.php +++ b/build/blocks/columns/index.asset.php @@ -1 +1 @@ - array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '3cbb0ee79eb360e77d6a'); + array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'd4688bc986f1ea71554e'); diff --git a/build/blocks/columns/index.js b/build/blocks/columns/index.js index cb77d9d5..a221f692 100644 --- a/build/blocks/columns/index.js +++ b/build/blocks/columns/index.js @@ -1 +1 @@ -!function(){var e={659:function(e,t,r){const n=r(156),o={};for(const e of Object.keys(n))o[n[e]]=e;const l={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=l;for(const e of Object.keys(l)){if(!("channels"in l[e]))throw new Error("missing channels property: "+e);if(!("labels"in l[e]))throw new Error("missing channel labels property: "+e);if(l[e].labels.length!==l[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=l[e];delete l[e].channels,delete l[e].labels,Object.defineProperty(l[e],"channels",{value:t}),Object.defineProperty(l[e],"labels",{value:r})}l.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),l=Math.max(t,r,n),s=l-o;let a,i;l===o?a=0:t===l?a=(r-n)/s:r===l?a=2+(n-t)/s:n===l&&(a=4+(t-r)/s),a=Math.min(60*a,360),a<0&&(a+=360);const c=(o+l)/2;return i=l===o?0:c<=.5?s/(l+o):s/(2-l-o),[a,100*i,100*c]},l.rgb.hsv=function(e){let t,r,n,o,l;const s=e[0]/255,a=e[1]/255,i=e[2]/255,c=Math.max(s,a,i),u=c-Math.min(s,a,i),h=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,l=0):(l=u/c,t=h(s),r=h(a),n=h(i),s===c?o=n-r:a===c?o=1/3+t-n:i===c&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*l,100*c]},l.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const o=l.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,100*s,100*n]},l.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n);return[100*((1-t-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},l.rgb.keyword=function(e){const t=o[e];if(t)return t;let r,l=1/0;for(const t of Object.keys(n)){const o=(a=n[t],((s=e)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);o.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},l.rgb.lab=function(e){const t=l.rgb.xyz(e);let r=t[0],n=t[1],o=t[2];return r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*n-16,500*(r-n),200*(n-o)]},l.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let o,l,s;if(0===r)return s=255*n,[s,s,s];o=n<.5?n*(1+r):n+r-n*r;const a=2*n-o,i=[0,0,0];for(let e=0;e<3;e++)l=t+1/3*-(e-1),l<0&&l++,l>1&&l--,s=6*l<1?a+6*(o-a)*l:2*l<1?o:3*l<2?a+(o-a)*(2/3-l)*6:a,i[e]=255*s;return i},l.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,o=r;const l=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,o*=l<=1?l:2-l,[t,100*(0===n?2*o/(l+o):2*r/(n+r)),(n+r)/2*100]},l.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const o=Math.floor(t)%6,l=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*l),i=255*n*(1-r*(1-l));switch(n*=255,o){case 0:return[n,i,s];case 1:return[a,n,s];case 2:return[s,n,i];case 3:return[s,a,n];case 4:return[i,s,n];case 5:return[n,s,a]}},l.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01);let l,s;s=(2-r)*n;const a=(2-r)*o;return l=r*o,l/=a<=1?a:2-a,l=l||0,s/=2,[t,100*l,100*s]},l.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const o=r+n;let l;o>1&&(r/=o,n/=o);const s=Math.floor(6*t),a=1-n;l=6*t-s,1&s&&(l=1-l);const i=r+l*(a-r);let c,u,h;switch(s){default:case 6:case 0:c=a,u=i,h=r;break;case 1:c=i,u=a,h=r;break;case 2:c=r,u=a,h=i;break;case 3:c=r,u=i,h=a;break;case 4:c=i,u=r,h=a;break;case 5:c=a,u=r,h=i}return[255*c,255*u,255*h]},l.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},l.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let o,l,s;return o=3.2406*t+-1.5372*r+-.4986*n,l=-.9689*t+1.8758*r+.0415*n,s=.0557*t+-.204*r+1.057*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),l=Math.min(Math.max(0,l),1),s=Math.min(Math.max(0,s),1),[255*o,255*l,255*s]},l.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];return t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*r-16,500*(t-r),200*(r-n)]},l.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const o=r**3,l=t**3,s=n**3;return r=o>.008856?o:(r-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},l.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let o;return o=360*Math.atan2(n,r)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(r*r+n*n),o]},l.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},l.rgb.ansi16=function(e,t=null){const[r,n,o]=e;let s=null===t?l.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===s&&(a+=60),a},l.hsv.ansi16=function(e){return l.rgb.ansi16(l.hsv.rgb(e),e[2])},l.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},l.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},l.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},l.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},l.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},l.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),l=Math.min(Math.min(t,r),n),s=o-l;let a,i;return a=s<1?l/(1-s):0,i=s<=0?0:o===t?(r-n)/s%6:o===r?2+(n-t)/s:4+(t-r)/s,i/=6,i%=1,[360*i,100*s,100*a]},l.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},l.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},l.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const o=[0,0,0],l=t%1*6,s=l%1,a=1-s;let i=0;switch(Math.floor(l)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return i=(1-r)*n,[255*(r*o[0]+i),255*(r*o[1]+i),255*(r*o[2]+i)]},l.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},l.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},l.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},l.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},l.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},l.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},l.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},l.gray.hsl=function(e){return[0,0,e[0]]},l.gray.hsv=l.gray.hsl,l.gray.hwb=function(e){return[0,100,e[0]]},l.gray.cmyk=function(e){return[0,0,0,e[0]]},l.gray.lab=function(e){return[e[0],0,0]},l.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},l.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},734:function(e,t,r){const n=r(659),o=r(507),l={};Object.keys(n).forEach((e=>{l[e]={},Object.defineProperty(l[e],"channels",{value:n[e].channels}),Object.defineProperty(l[e],"labels",{value:n[e].labels});const t=o(e);Object.keys(t).forEach((r=>{const n=t[r];l[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=l},507:function(e,t,r){const n=r(659);function o(e,t){return function(r){return t(e(r))}}function l(e,t){const r=[t[e].parent,e];let l=n[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)r.unshift(t[s].parent),l=o(n[t[s].parent][s],l),s=t[s].parent;return l.conversion=r,l}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(n);for(let r=t.length,n=0;n=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},i.to.keyword=function(e){return s[e.slice(0,3)]}},520:function(e,t,r){const n=r(854),o=r(734),l=["keyword","gray","hex"],s={};for(const e of Object.keys(o))s[[...o[e].labels].sort().join("")]=e;const a={};function i(e,t){if(!(this instanceof i))return new i(e,t);if(t&&t in l&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let r,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof i)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=n.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=o[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"==typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=o[this.model].channels;const r=Array.prototype.slice.call(e,0,c);this.color=d(r,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=t.sort().join("");if(!(n in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[n];const{labels:l}=o[this.model],a=[];for(r=0;r(e%360+360)%360)),saturationl:u("hsl",1,h(100)),lightness:u("hsl",2,h(100)),saturationv:u("hsv",1,h(100)),value:u("hsv",2,h(100)),chroma:u("hcg",1,h(100)),gray:u("hcg",2,h(100)),white:u("hwb",1,h(100)),wblack:u("hwb",2,h(100)),cyan:u("cmyk",0,h(100)),magenta:u("cmyk",1,h(100)),yellow:u("cmyk",2,h(100)),black:u("cmyk",3,h(100)),x:u("xyz",0,h(95.047)),y:u("xyz",1,h(100)),z:u("xyz",2,h(108.833)),l:u("lab",0,h(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new i(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new i(e):n.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new i(e);const t=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),n.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const e=n/255;t[r]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return i.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),o=void 0===t?.5:t,l=2*o-1,s=r.alpha()-n.alpha(),a=((l*s==-1?l:(l+s)/(1+l*s))+1)/2,c=1-a;return i.rgb(a*r.red()+c*n.red(),a*r.green()+c*n.green(),a*r.blue()+c*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const e of Object.keys(o)){if(l.includes(e))continue;const{channels:t}=o[e];i.prototype[e]=function(...t){return this.model===e?new i(this):t.length>0?new i(t,e):new i([...(r=o[this.model][e].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],e);var r},i[e]=function(...r){let n=r[0];return"number"==typeof n&&(n=d(r,t)),new i(n,e)}}function c(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(a[n]||(a[n]=[]))[t]=r;return e=e[0],function(n){let o;return void 0!==n?(r&&(n=r(n)),o=this[e](),o.color[t]=n,o):(o=this[e]().color[t],r&&(o=r(o)),o)}}function h(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e,t){for(let r=0;r=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,r),l.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.ReactJSXRuntime,t=window.wp.blocks,n=window.wp.blockEditor,o=window.wp.i18n,l=window.wp.components,s=r(520),a=r.n(s),i=function(e,t){try{if(e)t({textColor:a()(e).isDark()?"#ffffff":""})}catch(e){console.error("Invalid color string provided to updateColorAttributes:",e)}},c=function(t){var r,s=t.attributes,a=t.setAttributes,c=t.hex,h=t.useStyle,d=t.customColor,f=void 0!==d&&d,g=t.useTextColor,b=void 0!==g&&g,m=t.overwriteThemeColors,p=void 0!==m&&m,v=t.clearButton,y=void 0!==v&&v,w=(p?null:(0,n.useSettings)("color.palette")[0])||u,k=c?s.color:null===(r=w.find((function(e){return e.slug===s.color})))||void 0===r?void 0:r.color;return(0,e.jsx)(l.PanelBody,{title:(0,o.__)("Color Settings","rrze-elements-blocks"),children:(0,e.jsx)(l.ColorPalette,{colors:w,value:k,onChange:function(e){return function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e.find((function(e){return e.color===t}));s&&n?(r({color:s.color}),i(t,r),o&&(r({style:s.slug}),i(t,r))):s?r({color:s.slug}):o&&(r({color:t,style:""}),l&&i(t,r))}(w,e,a,c,h,b)},disableCustomColors:!f,clearable:y})})},u=[{color:"#04316A",slug:"",name:(0,o.__)("Central institution","rrze-elements-blocks")},{color:"#C50F3C",slug:"rw",name:(0,o.__)("Faculty of Business, Economics, and Law","rrze-elements-blocks")},{color:"#7bb725",slug:"nat",name:(0,o.__)("Faculty of Sciences","rrze-elements-blocks")},{color:"#18B4F1",slug:"med",name:(0,o.__)("Faculty of Medicine","rrze-elements-blocks")},{color:"#FDB735",slug:"phil",name:(0,o.__)("Faculty of Humanities, Social Sciences, and Theology","rrze-elements-blocks")},{color:"#8C9FB1",slug:"tf",name:(0,o.__)("Faculty of Engineering","rrze-elements-blocks")}],h=([{color:"#fff",slug:"inherit",name:(0,o.__)("Inherit color","rrze-elements-blocks")}].concat(u),function(t){return(0,e.jsx)(c,Object.assign({},t))}),d=window.wp.element,f=JSON.parse('{"UU":"rrze-elements/columns"}');(0,t.registerBlockType)(f.UU,{icon:{src:(0,e.jsxs)("svg",{id:"Ebene_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,e.jsx)("rect",{x:"60.05",y:"115.69",width:"112.94",height:"280.62",rx:"5.73",ry:"5.73",fill:"evenodd",strokeWidth:"0"}),(0,e.jsx)("rect",{x:"199.53",y:"115.69",width:"112.94",height:"280.62",rx:"5.73",ry:"5.73",fill:"evenodd",strokeWidth:"0"}),(0,e.jsx)("rect",{x:"339.01",y:"115.69",width:"112.94",height:"280.62",rx:"5.73",ry:"5.73",fill:"evenodd",strokeWidth:"0"})]})},__experimentalLabel:function(e,t){var r=t.context,n=e.title;if("list-view"===r&&n)return n},edit:function(t){var r=t.attributes,s=t.setAttributes,a=(0,n.useBlockProps)(),i=r.numberOfColumns,c=r.rule,u=r.width,f=r.borderColor,g=r.border,b=r.color,m=[{color:"#e9edf2",slug:"default",name:(0,o.__)("Default","rrze-elements-blocks")},{color:"#dff0d8",slug:"success",name:(0,o.__)("Success","rrze-elements-blocks")},{color:"#d9edf7",slug:"info",name:(0,o.__)("Info","rrze-elements-blocks")},{color:"#fcf8e3",slug:"warning",name:(0,o.__)("Warning","rrze-elements-blocks")},{color:"#f2dede",slug:"danger",name:(0,o.__)("Danger","rrze-elements-blocks")}];(0,d.useEffect)((function(){if(b){var e=m.find((function(e){return e.color.toUpperCase()===b.toUpperCase()}));e&&s({colorSlug:e.slug})}else s({colorSlug:"colorless"})}),[b,s]);var p=Object.assign(Object.assign(Object.assign(Object.assign({},a.style),{columnCount:i,columnWidth:u}),c?{columnRule:"1px solid ".concat(f)}:{}),g?{border:"1px solid ".concat(f)}:{});return(0,d.useEffect)((function(){r.color||s({textColor:void 0,color:"default"})}),[r.color]),(0,e.jsx)("div",Object.assign({},a,{children:(0,e.jsxs)("div",{className:"rrze-elements-blocks-text-column bg-".concat(r.colorSlug),style:p,children:[(0,e.jsx)(n.InspectorControls,{children:(0,e.jsxs)(l.PanelBody,{title:(0,o.__)("Display settings","rrze-elements-blocks"),initialOpen:!0,children:[(0,e.jsx)(l.RangeControl,{label:(0,o.__)("Number of columns","rrze-elements-blocks"),marks:!0,max:4,min:2,onChange:function(e){s({numberOfColumns:e})},step:1,value:i}),(0,e.jsx)(l.ToggleControl,{checked:c,label:(0,o.__)("Show Rule","rrze-elements-blocks"),onChange:function(e){s({rule:e})}}),(0,e.jsx)(h,{attributes:{color:r.color},setAttributes:s,colorData:m,hex:!0,useStyle:!0,customColor:!1,useTextColor:!0,clearButton:!0}),(0,e.jsx)(n.ContrastChecker,{textColor:r.textColor,backgroundColor:r.color})]})}),(0,e.jsx)(n.InnerBlocks,{template:[["core/paragraph",{placeholder:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo."}],["core/paragraph",{placeholder:"Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi."}]]})]})}))},save:function(t){var r=t.attributes,o=r.numberOfColumns,l=r.borderColor,s=r.width,a=r.rule,i=r.border,c=n.useBlockProps.save({className:"elements-textcolumns"}),u=Object.assign(Object.assign({columnCount:o,columnWidth:s},a?{columnRule:"1px solid ".concat(l)}:{}),i?{border:"1px solid ".concat(l)}:{});return(0,e.jsx)("div",Object.assign({},c,{children:(0,e.jsx)("div",{className:"rrze-elements-blocks-text-column bg-".concat(r.colorSlug),style:u,children:(0,e.jsx)(n.InnerBlocks.Content,{})})}))},transforms:{from:[{type:"shortcode",tag:"text-columns",transform:function(e,r){var n,o,l=null===(n=r.shortcode)||void 0===n?void 0:n.content,s=(0,t.createBlock)("core/freeform",{content:l});return(0,t.createBlock)(f.UU,{numberOfColumns:(o=e.named.number,parseInt(o)||2)},[s])}}]}})}()}(); \ No newline at end of file +!function(){var e={659:function(e,t,r){const n=r(156),o={};for(const e of Object.keys(n))o[n[e]]=e;const l={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=l;for(const e of Object.keys(l)){if(!("channels"in l[e]))throw new Error("missing channels property: "+e);if(!("labels"in l[e]))throw new Error("missing channel labels property: "+e);if(l[e].labels.length!==l[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=l[e];delete l[e].channels,delete l[e].labels,Object.defineProperty(l[e],"channels",{value:t}),Object.defineProperty(l[e],"labels",{value:r})}l.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),l=Math.max(t,r,n),s=l-o;let a,i;l===o?a=0:t===l?a=(r-n)/s:r===l?a=2+(n-t)/s:n===l&&(a=4+(t-r)/s),a=Math.min(60*a,360),a<0&&(a+=360);const c=(o+l)/2;return i=l===o?0:c<=.5?s/(l+o):s/(2-l-o),[a,100*i,100*c]},l.rgb.hsv=function(e){let t,r,n,o,l;const s=e[0]/255,a=e[1]/255,i=e[2]/255,c=Math.max(s,a,i),u=c-Math.min(s,a,i),h=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,l=0):(l=u/c,t=h(s),r=h(a),n=h(i),s===c?o=n-r:a===c?o=1/3+t-n:i===c&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*l,100*c]},l.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const o=l.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,100*s,100*n]},l.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n);return[100*((1-t-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},l.rgb.keyword=function(e){const t=o[e];if(t)return t;let r,l=1/0;for(const t of Object.keys(n)){const o=(a=n[t],((s=e)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);o.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},l.rgb.lab=function(e){const t=l.rgb.xyz(e);let r=t[0],n=t[1],o=t[2];return r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*n-16,500*(r-n),200*(n-o)]},l.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let o,l,s;if(0===r)return s=255*n,[s,s,s];o=n<.5?n*(1+r):n+r-n*r;const a=2*n-o,i=[0,0,0];for(let e=0;e<3;e++)l=t+1/3*-(e-1),l<0&&l++,l>1&&l--,s=6*l<1?a+6*(o-a)*l:2*l<1?o:3*l<2?a+(o-a)*(2/3-l)*6:a,i[e]=255*s;return i},l.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,o=r;const l=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,o*=l<=1?l:2-l,[t,100*(0===n?2*o/(l+o):2*r/(n+r)),(n+r)/2*100]},l.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const o=Math.floor(t)%6,l=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*l),i=255*n*(1-r*(1-l));switch(n*=255,o){case 0:return[n,i,s];case 1:return[a,n,s];case 2:return[s,n,i];case 3:return[s,a,n];case 4:return[i,s,n];case 5:return[n,s,a]}},l.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01);let l,s;s=(2-r)*n;const a=(2-r)*o;return l=r*o,l/=a<=1?a:2-a,l=l||0,s/=2,[t,100*l,100*s]},l.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const o=r+n;let l;o>1&&(r/=o,n/=o);const s=Math.floor(6*t),a=1-n;l=6*t-s,1&s&&(l=1-l);const i=r+l*(a-r);let c,u,h;switch(s){default:case 6:case 0:c=a,u=i,h=r;break;case 1:c=i,u=a,h=r;break;case 2:c=r,u=a,h=i;break;case 3:c=r,u=i,h=a;break;case 4:c=i,u=r,h=a;break;case 5:c=a,u=r,h=i}return[255*c,255*u,255*h]},l.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},l.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let o,l,s;return o=3.2406*t+-1.5372*r+-.4986*n,l=-.9689*t+1.8758*r+.0415*n,s=.0557*t+-.204*r+1.057*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),l=Math.min(Math.max(0,l),1),s=Math.min(Math.max(0,s),1),[255*o,255*l,255*s]},l.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];return t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*r-16,500*(t-r),200*(r-n)]},l.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const o=r**3,l=t**3,s=n**3;return r=o>.008856?o:(r-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},l.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let o;return o=360*Math.atan2(n,r)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(r*r+n*n),o]},l.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},l.rgb.ansi16=function(e,t=null){const[r,n,o]=e;let s=null===t?l.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===s&&(a+=60),a},l.hsv.ansi16=function(e){return l.rgb.ansi16(l.hsv.rgb(e),e[2])},l.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},l.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},l.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},l.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},l.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},l.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),l=Math.min(Math.min(t,r),n),s=o-l;let a,i;return a=s<1?l/(1-s):0,i=s<=0?0:o===t?(r-n)/s%6:o===r?2+(n-t)/s:4+(t-r)/s,i/=6,i%=1,[360*i,100*s,100*a]},l.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},l.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},l.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const o=[0,0,0],l=t%1*6,s=l%1,a=1-s;let i=0;switch(Math.floor(l)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return i=(1-r)*n,[255*(r*o[0]+i),255*(r*o[1]+i),255*(r*o[2]+i)]},l.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},l.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},l.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},l.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},l.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},l.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},l.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},l.gray.hsl=function(e){return[0,0,e[0]]},l.gray.hsv=l.gray.hsl,l.gray.hwb=function(e){return[0,100,e[0]]},l.gray.cmyk=function(e){return[0,0,0,e[0]]},l.gray.lab=function(e){return[e[0],0,0]},l.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},l.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},734:function(e,t,r){const n=r(659),o=r(507),l={};Object.keys(n).forEach((e=>{l[e]={},Object.defineProperty(l[e],"channels",{value:n[e].channels}),Object.defineProperty(l[e],"labels",{value:n[e].labels});const t=o(e);Object.keys(t).forEach((r=>{const n=t[r];l[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=l},507:function(e,t,r){const n=r(659);function o(e,t){return function(r){return t(e(r))}}function l(e,t){const r=[t[e].parent,e];let l=n[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)r.unshift(t[s].parent),l=o(n[t[s].parent][s],l),s=t[s].parent;return l.conversion=r,l}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(n);for(let r=t.length,n=0;n=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},i.to.keyword=function(e){return s[e.slice(0,3)]}},520:function(e,t,r){const n=r(854),o=r(734),l=["keyword","gray","hex"],s={};for(const e of Object.keys(o))s[[...o[e].labels].sort().join("")]=e;const a={};function i(e,t){if(!(this instanceof i))return new i(e,t);if(t&&t in l&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let r,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof i)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=n.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=o[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"==typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=o[this.model].channels;const r=Array.prototype.slice.call(e,0,c);this.color=d(r,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=t.sort().join("");if(!(n in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[n];const{labels:l}=o[this.model],a=[];for(r=0;r(e%360+360)%360)),saturationl:u("hsl",1,h(100)),lightness:u("hsl",2,h(100)),saturationv:u("hsv",1,h(100)),value:u("hsv",2,h(100)),chroma:u("hcg",1,h(100)),gray:u("hcg",2,h(100)),white:u("hwb",1,h(100)),wblack:u("hwb",2,h(100)),cyan:u("cmyk",0,h(100)),magenta:u("cmyk",1,h(100)),yellow:u("cmyk",2,h(100)),black:u("cmyk",3,h(100)),x:u("xyz",0,h(95.047)),y:u("xyz",1,h(100)),z:u("xyz",2,h(108.833)),l:u("lab",0,h(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new i(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new i(e):n.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new i(e);const t=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),n.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const e=n/255;t[r]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return i.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),o=void 0===t?.5:t,l=2*o-1,s=r.alpha()-n.alpha(),a=((l*s==-1?l:(l+s)/(1+l*s))+1)/2,c=1-a;return i.rgb(a*r.red()+c*n.red(),a*r.green()+c*n.green(),a*r.blue()+c*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const e of Object.keys(o)){if(l.includes(e))continue;const{channels:t}=o[e];i.prototype[e]=function(...t){return this.model===e?new i(this):t.length>0?new i(t,e):new i([...(r=o[this.model][e].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],e);var r},i[e]=function(...r){let n=r[0];return"number"==typeof n&&(n=d(r,t)),new i(n,e)}}function c(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(a[n]||(a[n]=[]))[t]=r;return e=e[0],function(n){let o;return void 0!==n?(r&&(n=r(n)),o=this[e](),o.color[t]=n,o):(o=this[e]().color[t],r&&(o=r(o)),o)}}function h(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e,t){for(let r=0;r=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,r),l.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.ReactJSXRuntime,t=window.wp.blocks,n=window.wp.blockEditor,o=window.wp.i18n,l=window.wp.components,s=r(520),a=r.n(s),i=function(e,t){try{if(e)t({textColor:a()(e).isDark()?"#ffffff":""})}catch(e){console.error("Invalid color string provided to updateColorAttributes:",e)}},c=function(t){var r,s=t.attributes,a=t.setAttributes,c=t.hex,h=t.useStyle,d=t.customColor,f=void 0!==d&&d,g=t.useTextColor,b=void 0!==g&&g,m=t.overwriteThemeColors,p=void 0!==m&&m,v=t.clearButton,y=void 0!==v&&v,w=(p?null:(0,n.useSettings)("color.palette")[0])||u,k=c?s.color:null===(r=w.find((function(e){return e.slug===s.color})))||void 0===r?void 0:r.color;return(0,e.jsx)(l.PanelBody,{title:(0,o.__)("Color Settings","rrze-elements-blocks"),children:(0,e.jsx)(l.ColorPalette,{colors:w,value:k,onChange:function(e){return function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e.find((function(e){return e.color===t}));s&&n?(r({color:s.color}),i(t,r),o&&(r({style:s.slug}),i(t,r))):s?r({color:s.slug}):o&&(r({color:t,style:""}),l&&i(t,r))}(w,e,a,c,h,b)},disableCustomColors:!f,clearable:y})})},u=[{color:"#04316A",slug:"",name:(0,o.__)("Central institution","rrze-elements-blocks")},{color:"#C50F3C",slug:"rw",name:(0,o.__)("Faculty of Business, Economics, and Law","rrze-elements-blocks")},{color:"#7bb725",slug:"nat",name:(0,o.__)("Faculty of Sciences","rrze-elements-blocks")},{color:"#18B4F1",slug:"med",name:(0,o.__)("Faculty of Medicine","rrze-elements-blocks")},{color:"#FDB735",slug:"phil",name:(0,o.__)("Faculty of Humanities, Social Sciences, and Theology","rrze-elements-blocks")},{color:"#8C9FB1",slug:"tf",name:(0,o.__)("Faculty of Engineering","rrze-elements-blocks")}],h=([{color:"#fff",slug:"inherit",name:(0,o.__)("Inherit color","rrze-elements-blocks")}].concat(u),function(t){return(0,e.jsx)(c,Object.assign({},t))}),d=window.wp.element,f=window.wp.data,g=JSON.parse('{"UU":"rrze-elements/columns"}'),b={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:function(e,t){return!t.some((function(e){return"rrze-elements/columns"===e.name}))},__experimentalConvert:function(e){var r=[];return e.forEach((function(e){r.push((0,t.createBlock)(e.name,e.attributes,e.innerBlocks))})),(0,t.createBlock)("rrze-elements/columns",{},r)}},{type:"shortcode",tag:"text-columns",transform:function(e,r){var n,o,l=null===(n=r.shortcode)||void 0===n?void 0:n.content,s=(0,t.createBlock)("core/freeform",{content:l});return(0,t.createBlock)(g.UU,{numberOfColumns:(o=e.named.number,parseInt(o)||2)},[s])}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e,t){return t}}]};(0,t.registerBlockType)(g.UU,{icon:{src:(0,e.jsxs)("svg",{id:"Ebene_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,e.jsx)("rect",{x:"60.05",y:"115.69",width:"112.94",height:"280.62",rx:"5.73",ry:"5.73",fill:"evenodd",strokeWidth:"0"}),(0,e.jsx)("rect",{x:"199.53",y:"115.69",width:"112.94",height:"280.62",rx:"5.73",ry:"5.73",fill:"evenodd",strokeWidth:"0"}),(0,e.jsx)("rect",{x:"339.01",y:"115.69",width:"112.94",height:"280.62",rx:"5.73",ry:"5.73",fill:"evenodd",strokeWidth:"0"})]})},__experimentalLabel:function(e,t){var r=t.context,n=e.title;if("list-view"===r&&n)return n},edit:function(t){var r=t.attributes,s=t.setAttributes,a=(0,n.useBlockProps)(),i=(0,f.useDispatch)(n.store).__unstableMarkNextChangeAsNotPersistent,c=r.numberOfColumns,u=r.rule,g=r.width,b=r.borderColor,m=r.border,p=r.color,v=[{color:"#e9edf2",slug:"default",name:(0,o.__)("Default","rrze-elements-blocks")},{color:"#dff0d8",slug:"success",name:(0,o.__)("Success","rrze-elements-blocks")},{color:"#d9edf7",slug:"info",name:(0,o.__)("Info","rrze-elements-blocks")},{color:"#fcf8e3",slug:"warning",name:(0,o.__)("Warning","rrze-elements-blocks")},{color:"#f2dede",slug:"danger",name:(0,o.__)("Danger","rrze-elements-blocks")}];(0,d.useEffect)((function(){if(p){var e=v.find((function(e){return e.color.toUpperCase()===p.toUpperCase()}));e&&(i(),s({colorSlug:e.slug}))}else i(),s({colorSlug:"colorless"})}),[p,s]);var y=Object.assign(Object.assign(Object.assign(Object.assign({},a.style),{columnCount:c,columnWidth:g}),u?{columnRule:"1px solid ".concat(b)}:{}),m?{border:"1px solid ".concat(b)}:{});return(0,d.useEffect)((function(){r.color||(i(),s({textColor:void 0,color:"default"}))}),[r.color]),(0,e.jsx)("div",Object.assign({},a,{children:(0,e.jsxs)("div",{className:"rrze-elements-blocks-text-column bg-".concat(r.colorSlug),style:y,children:[(0,e.jsx)(n.InspectorControls,{children:(0,e.jsxs)(l.PanelBody,{title:(0,o.__)("Display settings","rrze-elements-blocks"),initialOpen:!0,children:[(0,e.jsx)(l.RangeControl,{label:(0,o.__)("Number of columns","rrze-elements-blocks"),marks:!0,max:4,min:2,onChange:function(e){s({numberOfColumns:e})},step:1,value:c}),(0,e.jsx)(l.ToggleControl,{checked:u,label:(0,o.__)("Show Rule","rrze-elements-blocks"),onChange:function(e){s({rule:e})}}),(0,e.jsx)(h,{attributes:{color:r.color},setAttributes:s,colorData:v,hex:!0,useStyle:!0,customColor:!1,useTextColor:!0,clearButton:!0}),(0,e.jsx)(n.ContrastChecker,{textColor:r.textColor,backgroundColor:r.color})]})}),(0,e.jsx)(n.InnerBlocks,{template:[["core/paragraph",{placeholder:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo."}],["core/paragraph",{placeholder:"Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi."}]]})]})}))},save:function(t){var r=t.attributes,o=r.numberOfColumns,l=r.borderColor,s=r.width,a=r.rule,i=r.border,c=n.useBlockProps.save({className:"elements-textcolumns"}),u=Object.assign(Object.assign({columnCount:o,columnWidth:s},a?{columnRule:"1px solid ".concat(l)}:{}),i?{border:"1px solid ".concat(l)}:{});return(0,e.jsx)("div",Object.assign({},c,{children:(0,e.jsx)("div",{className:"rrze-elements-blocks-text-column bg-".concat(r.colorSlug),style:u,children:(0,e.jsx)(n.InnerBlocks.Content,{})})}))},transforms:b})}()}(); \ No newline at end of file diff --git a/build/blocks/insertion/index.asset.php b/build/blocks/insertion/index.asset.php index 18c39fa8..6f0a10f9 100644 --- a/build/blocks/insertion/index.asset.php +++ b/build/blocks/insertion/index.asset.php @@ -1 +1 @@ - array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-primitives'), 'version' => '9625425a6563fcebb276'); + array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-primitives'), 'version' => 'aa7cf1097b2206832ed4'); diff --git a/build/blocks/insertion/index.js b/build/blocks/insertion/index.js index eb0fd4e8..7d3f1bb9 100644 --- a/build/blocks/insertion/index.js +++ b/build/blocks/insertion/index.js @@ -1 +1 @@ -!function(){"use strict";var e=window.ReactJSXRuntime,t=window.wp.blocks,n=window.wp.blockEditor,i=window.wp.i18n,r=window.wp.components,o=window.wp.primitives,s=(0,e.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(o.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),l=(0,e.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(o.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),c=(0,e.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(o.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),a=function(t){var n=t.attributes,o=t.setAttributes,a=t.showLeftAlign,h=void 0===a||a,d=t.showCenterAlign,w=void 0!==d&&d,v=t.showRightAlign,u=void 0===v||v,m=n.alignment,x=function(e){o({alignment:e})},g=[h&&{title:(0,i.__)("Align left","rrze-elements-blocks"),icon:s,onClick:function(){return x("left")}},w&&{title:(0,i.__)("Align center","rrze-elements-blocks"),icon:l,onClick:function(){return x("center")}},u&&{title:(0,i.__)("Align right","rrze-elements-blocks"),icon:c,onClick:function(){return x("right")}}].filter(Boolean);return(0,e.jsx)(r.ToolbarGroup,{children:(0,e.jsx)(r.ToolbarItem,{children:function(){return(0,e.jsx)(r.ToolbarDropdownMenu,{icon:"left"===m?s:"center"===m?l:c,label:(0,i.__)("Display options for the Editor","rrze-elements-blocks"),controls:g})}})})},h=JSON.parse('{"UU":"rrze-elements/insertion"}');(0,t.registerBlockType)(h.UU,{icon:{src:(0,e.jsxs)("svg",{id:"Ebene_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,e.jsx)("path",{d:"m443.28,267.16v86.6c0,3.17-2.56,5.73-5.73,5.73H74.45c-3.16,0-5.73-2.56-5.73-5.73v-195.51c0-3.16,2.57-5.73,5.73-5.73h193.33v108.92c0,3.16,2.56,5.72,5.73,5.72h169.77Z",fillRule:"evenodd",strokeWidth:"0"}),(0,e.jsx)("rect",{x:"280.49",y:"153.81",width:"161",height:"100.64",rx:"5.73",ry:"5.73",fillRule:"evenodd",opacity:".2",strokeWidth:"0"})]})},__experimentalLabel:function(e,t){var n=t.context,i=e.title;if("list-view"===n&&i)return i},edit:function(t){var r=t.attributes,o=t.setAttributes,s=(0,n.useBlockProps)(),l=r.alignment;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",Object.assign({},s,{children:[(0,e.jsx)(n.BlockControls,{children:(0,e.jsx)(a,{attributes:{alignment:l},setAttributes:o})}),(0,e.jsx)("aside",{className:"pull-".concat(l," ").concat(null==s?void 0:s.className),children:(0,e.jsx)(n.InnerBlocks,{allowedBlocks:["core/paragraph","core/heading","core/list","core/image"],template:[["core/paragraph",{placeholder:(0,i.__)("Insertion","rrze-elements-blocks")}]]})})]}))})},save:function(t){var i=t.attributes,r=n.useBlockProps.save(),o=i.alignment;return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("aside",{className:"pull-".concat(o," ").concat(null==r?void 0:r.className),children:(0,e.jsx)(n.InnerBlocks.Content,{})})})}})}(); \ No newline at end of file +!function(){"use strict";var e=window.ReactJSXRuntime,t=window.wp.blocks,n=window.wp.blockEditor,r=window.wp.i18n,o=window.wp.components,i=window.wp.primitives,s=(0,e.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(i.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}),l=(0,e.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(i.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}),c=(0,e.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e.jsx)(i.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}),a=function(t){var n=t.attributes,i=t.setAttributes,a=t.showLeftAlign,h=void 0===a||a,u=t.showCenterAlign,d=void 0!==u&&u,w=t.showRightAlign,m=void 0===w||w,v=n.alignment,p=function(e){i({alignment:e})},g=[h&&{title:(0,r.__)("Align left","rrze-elements-blocks"),icon:s,onClick:function(){return p("left")}},d&&{title:(0,r.__)("Align center","rrze-elements-blocks"),icon:l,onClick:function(){return p("center")}},m&&{title:(0,r.__)("Align right","rrze-elements-blocks"),icon:c,onClick:function(){return p("right")}}].filter(Boolean);return(0,e.jsx)(o.ToolbarGroup,{children:(0,e.jsx)(o.ToolbarItem,{children:function(){return(0,e.jsx)(o.ToolbarDropdownMenu,{icon:"left"===v?s:"center"===v?l:c,label:(0,r.__)("Display options for the Editor","rrze-elements-blocks"),controls:g})}})})},h=JSON.parse('{"UU":"rrze-elements/insertion"}'),u={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],isMatch:function(e,t){return!t.some((function(e){return"rrze-elements/insertion"===e.name}))},__experimentalConvert:function(e){var n=[];return e.forEach((function(e){n.push((0,t.createBlock)(e.name,e.attributes,e.innerBlocks))})),(0,t.createBlock)("rrze-elements/insertion",{},n)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e,t){return t}}]};(0,t.registerBlockType)(h.UU,{icon:{src:(0,e.jsxs)("svg",{id:"Ebene_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:[(0,e.jsx)("path",{d:"m443.28,267.16v86.6c0,3.17-2.56,5.73-5.73,5.73H74.45c-3.16,0-5.73-2.56-5.73-5.73v-195.51c0-3.16,2.57-5.73,5.73-5.73h193.33v108.92c0,3.16,2.56,5.72,5.73,5.72h169.77Z",fillRule:"evenodd",strokeWidth:"0"}),(0,e.jsx)("rect",{x:"280.49",y:"153.81",width:"161",height:"100.64",rx:"5.73",ry:"5.73",fillRule:"evenodd",opacity:".2",strokeWidth:"0"})]})},__experimentalLabel:function(e,t){var n=t.context,r=e.title;if("list-view"===n&&r)return r},edit:function(t){var o=t.attributes,i=t.setAttributes,s=(0,n.useBlockProps)(),l=o.alignment;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",Object.assign({},s,{children:[(0,e.jsx)(n.BlockControls,{children:(0,e.jsx)(a,{attributes:{alignment:l},setAttributes:i})}),(0,e.jsx)("aside",{className:"pull-".concat(l," ").concat(null==s?void 0:s.className),children:(0,e.jsx)(n.InnerBlocks,{allowedBlocks:["core/paragraph","core/heading","core/list","core/image"],template:[["core/paragraph",{placeholder:(0,r.__)("Insertion","rrze-elements-blocks")}]]})})]}))})},save:function(t){var r=t.attributes,o=n.useBlockProps.save(),i=r.alignment;return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)("aside",{className:"pull-".concat(i," ").concat(null==o?void 0:o.className),children:(0,e.jsx)(n.InnerBlocks.Content,{})})})},transforms:u})}(); \ No newline at end of file diff --git a/build/blocks/notice/index.asset.php b/build/blocks/notice/index.asset.php index 1a301da5..e11ae89b 100644 --- a/build/blocks/notice/index.asset.php +++ b/build/blocks/notice/index.asset.php @@ -1 +1 @@ - array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '1d18a701c8aa15a970ea'); + array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '6a425a3ebf1d9768a4a5'); diff --git a/build/blocks/notice/index.js b/build/blocks/notice/index.js index 577266e7..5f0207c2 100644 --- a/build/blocks/notice/index.js +++ b/build/blocks/notice/index.js @@ -1 +1 @@ -!function(){"use strict";var e=window.wp.blocks,t=window.ReactJSXRuntime,l=window.wp.blockEditor,c=window.wp.element,r=window.wp.i18n,a=window.wp.data,n=window.wp.components,o=window.wp.primitives,i=(0,t.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t.jsx)(o.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var l=0,c=Array(t);le.length)&&(t=e.length);for(var l=0,c=Array(t);l\",\n\t\t\"url\": \"https://www.wordpress.rrze.fau.de/person/webmaster\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@babel/core\": \"^7.26.0\",\n\t\t\"@babel/preset-env\": \"^7.26.0\",\n\t\t\"@babel/preset-react\": \"^7.26.3\",\n\t\t\"@eslint/eslintrc\": \"^3.2.0\",\n\t\t\"@eslint/js\": \"^9.16.0\",\n\t\t\"@playwright/test\": \"^1.49.1\",\n\t\t\"@svgr/webpack\": \"^8.1.0\",\n\t\t\"@types/color\": \"^4.2.0\",\n\t\t\"@types/lodash\": \"^4.17.13\",\n\t\t\"@types/node\": \"^22.10.2\",\n\t\t\"@types/wordpress__block-editor\": \"^11.5.16\",\n\t\t\"@types/wordpress__blocks\": \"^12.5.16\",\n\t\t\"@typescript-eslint/eslint-plugin\": \"^8.18.0\",\n\t\t\"@typescript-eslint/parser\": \"^8.18.0\",\n\t\t\"@wordpress/api-fetch\": \"^7.14.0\",\n\t\t\"@wordpress/babel-plugin-makepot\": \"^6.14.0\",\n\t\t\"@wordpress/compose\": \"^7.14.0\",\n\t\t\"@wordpress/data\": \"^10.14.0\",\n\t\t\"@wordpress/e2e-test-utils-playwright\": \"^1.14.0\",\n\t\t\"@wordpress/eslint-plugin\": \"^22.0.0\",\n\t\t\"@wordpress/i18n\": \"^5.14.0\",\n\t\t\"@wordpress/icons\": \"^10.14.0\",\n\t\t\"@wordpress/keycodes\": \"^4.14.0\",\n\t\t\"@wordpress/notices\": \"^5.14.0\",\n\t\t\"@wordpress/scripts\": \"^30.7.0\",\n\t\t\"@wordpress/server-side-render\": \"^5.14.0\",\n\t\t\"autoprefixer\": \"^10.4.20\",\n\t\t\"babel-loader\": \"^9.2.1\",\n\t\t\"dotenv\": \"^16.4.7\",\n\t\t\"eslint\": \"^9.16.0\",\n\t\t\"eslint-plugin-react\": \"^7.37.2\",\n\t\t\"eslint-plugin-tsdoc\": \"^0.4.0\",\n\t\t\"inquirer\": \"^12.2.0\",\n\t\t\"prompt\": \"^1.3.0\",\n\t\t\"semver\": \"^7.6.3\",\n\t\t\"ts-loader\": \"^9.5.1\",\n\t\t\"typescript\": \"^5.7.2\"\n\t},\n\t\"dependencies\": {\n\t\t\"@wordpress/a11y\": \"^4.14.0\",\n\t\t\"@wordpress/shortcode\": \"^4.14.0\",\n\t\t\"color\": \"^4.2.3\",\n\t\t\"gsap\": \"^3.12.5\",\n\t\t\"lodash\": \"^4.17.21\",\n\t\t\"react-error-boundary\": \"^4.1.2\"\n\t},\n\t\"resolutions\": {\n\t\t\"postcss\": \"8.4.38\",\n\t\t\"svg-baker\": \"1.7.0\",\n\t\t\"svg-baker-runtime\": \"1.4.7\"\n\t},\n\t\"engines\": {\n\t\t\"node\": \">=21.7.3\",\n\t\t\"npm\": \">=10.8.0\"\n\t}\n}\n" + }, + { + "file": "package.json", + "description": "Step 2: Start the development process via ```npm run start``` - If you are finished with your changes, run ```npm run build-all``` (or ```npm run build``` )", + "line": 16, + "contents": "{\n\t\"name\": \"rrze-elements\",\n\t\"version\": \"1.0.14\",\n\t\"description\": \"RRZE Elements: Gestalterische Erweiterungen für den BlockEditor\",\n\t\"main\": \"build/index.js\",\n\t\"textdomain\": \"rrze-elements-blocks\",\n\t\"license\": \"GPL-3.0-or-later\",\n\t\"private\": true,\n\t\"scripts\": {\n\t\t\"build\": \"wp-scripts build\",\n\t\t\"format\": \"wp-scripts format\",\n\t\t\"lint:css\": \"wp-scripts lint-style\",\n\t\t\"lint\": \"eslint 'src/**/*.{js,jsx,ts,tsx}'\",\n\t\t\"packages-update\": \"wp-scripts packages-update\",\n\t\t\"plugin-zip\": \"wp-scripts plugin-zip\",\n\t\t\"start\": \"wp-scripts start\",\n\t\t\"build-all\": \"node check-compatibility.js && sass src/_shared/scss/rrze-elements-blocks.scss assets/css/rrze-elements-blocks.css && npm run build && npx playwright test\",\n\t\t\"update-version\": \"node update-version.js && npm run build\"\n\t},\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"https://github.com/RRZE-Webteam/rrze-elements\",\n\t\t\"issues\": \"https://github.com/RRZE-Webteam/rrze-elements/issues\",\n\t\t\"clone\": \"git+https://github.com/RRZE-Webteam/rrze-elements.git\"\n\t},\n\t\"browserslist\": [\n\t\t\"last 3 years\",\n\t\t\"ie 11\"\n\t],\n\t\"supports\": {\n\t\t\"email\": \"webmaster@fau.de\",\n\t\t\"docs\": \"https://www.wordpress.rrze.fau.de/plugins/fau-und-rrze-plugins/elements/\"\n\t},\n\t\"author\": {\n\t\t\"name\": \"RRZE-Webteam \",\n\t\t\"url\": \"https://www.wordpress.rrze.fau.de/person/webmaster\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@babel/core\": \"^7.26.0\",\n\t\t\"@babel/preset-env\": \"^7.26.0\",\n\t\t\"@babel/preset-react\": \"^7.26.3\",\n\t\t\"@eslint/eslintrc\": \"^3.2.0\",\n\t\t\"@eslint/js\": \"^9.16.0\",\n\t\t\"@playwright/test\": \"^1.49.1\",\n\t\t\"@svgr/webpack\": \"^8.1.0\",\n\t\t\"@types/color\": \"^4.2.0\",\n\t\t\"@types/lodash\": \"^4.17.13\",\n\t\t\"@types/node\": \"^22.10.2\",\n\t\t\"@types/wordpress__block-editor\": \"^11.5.16\",\n\t\t\"@types/wordpress__blocks\": \"^12.5.16\",\n\t\t\"@typescript-eslint/eslint-plugin\": \"^8.18.0\",\n\t\t\"@typescript-eslint/parser\": \"^8.18.0\",\n\t\t\"@wordpress/api-fetch\": \"^7.14.0\",\n\t\t\"@wordpress/babel-plugin-makepot\": \"^6.14.0\",\n\t\t\"@wordpress/compose\": \"^7.14.0\",\n\t\t\"@wordpress/data\": \"^10.14.0\",\n\t\t\"@wordpress/e2e-test-utils-playwright\": \"^1.14.0\",\n\t\t\"@wordpress/eslint-plugin\": \"^22.0.0\",\n\t\t\"@wordpress/i18n\": \"^5.14.0\",\n\t\t\"@wordpress/icons\": \"^10.14.0\",\n\t\t\"@wordpress/keycodes\": \"^4.14.0\",\n\t\t\"@wordpress/notices\": \"^5.14.0\",\n\t\t\"@wordpress/scripts\": \"^30.7.0\",\n\t\t\"@wordpress/server-side-render\": \"^5.14.0\",\n\t\t\"autoprefixer\": \"^10.4.20\",\n\t\t\"babel-loader\": \"^9.2.1\",\n\t\t\"dotenv\": \"^16.4.7\",\n\t\t\"eslint\": \"^9.16.0\",\n\t\t\"eslint-plugin-react\": \"^7.37.2\",\n\t\t\"eslint-plugin-tsdoc\": \"^0.4.0\",\n\t\t\"inquirer\": \"^12.2.0\",\n\t\t\"prompt\": \"^1.3.0\",\n\t\t\"semver\": \"^7.6.3\",\n\t\t\"ts-loader\": \"^9.5.1\",\n\t\t\"typescript\": \"^5.7.2\"\n\t},\n\t\"dependencies\": {\n\t\t\"@wordpress/a11y\": \"^4.14.0\",\n\t\t\"@wordpress/shortcode\": \"^4.14.0\",\n\t\t\"color\": \"^4.2.3\",\n\t\t\"gsap\": \"^3.12.5\",\n\t\t\"lodash\": \"^4.17.21\",\n\t\t\"react-error-boundary\": \"^4.1.2\"\n\t},\n\t\"resolutions\": {\n\t\t\"postcss\": \"8.4.38\",\n\t\t\"svg-baker\": \"1.7.0\",\n\t\t\"svg-baker-runtime\": \"1.4.7\"\n\t},\n\t\"engines\": {\n\t\t\"node\": \">=21.7.3\",\n\t\t\"npm\": \">=10.8.0\"\n\t}\n}\n" + }, + { + "file": "package.json", + "description": "Step 3: Make sure to bump up the version number and update it throughout the plugin via ```npm run update-version```. Readme.txt and readme.md need to be updated manually.", + "line": 3, + "contents": "{\n\t\"name\": \"rrze-elements\",\n\t\"version\": \"1.0.14\",\n\t\"description\": \"RRZE Elements: Gestalterische Erweiterungen für den BlockEditor\",\n\t\"main\": \"build/index.js\",\n\t\"textdomain\": \"rrze-elements-blocks\",\n\t\"license\": \"GPL-3.0-or-later\",\n\t\"private\": true,\n\t\"scripts\": {\n\t\t\"build\": \"wp-scripts build\",\n\t\t\"format\": \"wp-scripts format\",\n\t\t\"lint:css\": \"wp-scripts lint-style\",\n\t\t\"lint\": \"eslint 'src/**/*.{js,jsx,ts,tsx}'\",\n\t\t\"packages-update\": \"wp-scripts packages-update\",\n\t\t\"plugin-zip\": \"wp-scripts plugin-zip\",\n\t\t\"start\": \"wp-scripts start\",\n\t\t\"build-all\": \"node check-compatibility.js && sass src/_shared/scss/rrze-elements-blocks.scss assets/css/rrze-elements-blocks.css && npm run build && npx playwright test\",\n\t\t\"update-version\": \"node update-version.js && npm run build\"\n\t},\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"https://github.com/RRZE-Webteam/rrze-elements\",\n\t\t\"issues\": \"https://github.com/RRZE-Webteam/rrze-elements/issues\",\n\t\t\"clone\": \"git+https://github.com/RRZE-Webteam/rrze-elements.git\"\n\t},\n\t\"browserslist\": [\n\t\t\"last 3 years\",\n\t\t\"ie 11\"\n\t],\n\t\"supports\": {\n\t\t\"email\": \"webmaster@fau.de\",\n\t\t\"docs\": \"https://www.wordpress.rrze.fau.de/plugins/fau-und-rrze-plugins/elements/\"\n\t},\n\t\"author\": {\n\t\t\"name\": \"RRZE-Webteam \",\n\t\t\"url\": \"https://www.wordpress.rrze.fau.de/person/webmaster\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@babel/core\": \"^7.26.0\",\n\t\t\"@babel/preset-env\": \"^7.26.0\",\n\t\t\"@babel/preset-react\": \"^7.26.3\",\n\t\t\"@eslint/eslintrc\": \"^3.2.0\",\n\t\t\"@eslint/js\": \"^9.16.0\",\n\t\t\"@playwright/test\": \"^1.49.1\",\n\t\t\"@svgr/webpack\": \"^8.1.0\",\n\t\t\"@types/color\": \"^4.2.0\",\n\t\t\"@types/lodash\": \"^4.17.13\",\n\t\t\"@types/node\": \"^22.10.2\",\n\t\t\"@types/wordpress__block-editor\": \"^11.5.16\",\n\t\t\"@types/wordpress__blocks\": \"^12.5.16\",\n\t\t\"@typescript-eslint/eslint-plugin\": \"^8.18.0\",\n\t\t\"@typescript-eslint/parser\": \"^8.18.0\",\n\t\t\"@wordpress/api-fetch\": \"^7.14.0\",\n\t\t\"@wordpress/babel-plugin-makepot\": \"^6.14.0\",\n\t\t\"@wordpress/compose\": \"^7.14.0\",\n\t\t\"@wordpress/data\": \"^10.14.0\",\n\t\t\"@wordpress/e2e-test-utils-playwright\": \"^1.14.0\",\n\t\t\"@wordpress/eslint-plugin\": \"^22.0.0\",\n\t\t\"@wordpress/i18n\": \"^5.14.0\",\n\t\t\"@wordpress/icons\": \"^10.14.0\",\n\t\t\"@wordpress/keycodes\": \"^4.14.0\",\n\t\t\"@wordpress/notices\": \"^5.14.0\",\n\t\t\"@wordpress/scripts\": \"^30.7.0\",\n\t\t\"@wordpress/server-side-render\": \"^5.14.0\",\n\t\t\"autoprefixer\": \"^10.4.20\",\n\t\t\"babel-loader\": \"^9.2.1\",\n\t\t\"dotenv\": \"^16.4.7\",\n\t\t\"eslint\": \"^9.16.0\",\n\t\t\"eslint-plugin-react\": \"^7.37.2\",\n\t\t\"eslint-plugin-tsdoc\": \"^0.4.0\",\n\t\t\"inquirer\": \"^12.2.0\",\n\t\t\"prompt\": \"^1.3.0\",\n\t\t\"semver\": \"^7.6.3\",\n\t\t\"ts-loader\": \"^9.5.1\",\n\t\t\"typescript\": \"^5.7.2\"\n\t},\n\t\"dependencies\": {\n\t\t\"@wordpress/a11y\": \"^4.14.0\",\n\t\t\"@wordpress/shortcode\": \"^4.14.0\",\n\t\t\"color\": \"^4.2.3\",\n\t\t\"gsap\": \"^3.12.5\",\n\t\t\"lodash\": \"^4.17.21\",\n\t\t\"react-error-boundary\": \"^4.1.2\"\n\t},\n\t\"resolutions\": {\n\t\t\"postcss\": \"8.4.38\",\n\t\t\"svg-baker\": \"1.7.0\",\n\t\t\"svg-baker-runtime\": \"1.4.7\"\n\t},\n\t\"engines\": {\n\t\t\"node\": \">=21.7.3\",\n\t\t\"npm\": \">=10.8.0\"\n\t}\n}\n" + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "Blocks can be always found in the src/blocks-directory.\n\nThis is the Edit.tsx-File. This file controls the Editor behavior of the block.\nWe are using TypeScript to reduce errors during the development process.", + "line": 1, + "contents": "import {\n TextControl,\n PanelBody,\n __experimentalText as Text,\n __experimentalSpacer as Spacer,\n} from \"@wordpress/components\";\nimport {\n useBlockProps,\n InnerBlocks,\n InspectorControls,\n BlockControls,\n ContrastChecker,\n} from \"@wordpress/block-editor\";\n\nimport { __ } from \"@wordpress/i18n\";\nimport { useDispatch } from \"@wordpress/data\";\nimport { store as blockEditorStore } from \"@wordpress/block-editor\";\nimport {\n StandardColorSwitcher,\n StandardColorSwitcherToolbar,\n BorderColorPicker,\n} from \"../../components/CustomColorSwitcher\";\n\ninterface EditProps {\n attributes: {\n style?: string;\n color: string;\n textColor?: string;\n borderColor?: string;\n title?: string;\n };\n setAttributes: (attributes: Partial) => void;\n clientId: string;\n context: { [key: string]: any };\n blockProps: any;\n}\n\nexport default function Edit({\n attributes,\n setAttributes,\n}: EditProps) {\n const props = useBlockProps();\n\n // Data for color options\n const colorDataAlert = [\n {\n color: \"#e9edf2\",\n slug: \"default\",\n name: __(\"Default\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#dff0d8\",\n slug: \"success\",\n name: __(\"Success\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#d9edf7\",\n slug: \"info\",\n name: __(\"Info\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#fcf8e3\",\n slug: \"warning\",\n name: __(\"Warning\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#f2dede\",\n slug: \"danger\",\n name: __(\"Danger\", \"rrze-elements-blocks\"),\n },\n ];\n\n let borderStyle = attributes.borderColor\n ? { border: `1px solid ${attributes.borderColor}` }\n : {};\n if (attributes.style === \"example\") {\n borderStyle = { border: `1px dashed var(--color-TextLight, #707070)` };\n }\n\n const { __unstableMarkNextChangeAsNotPersistent } =\n useDispatch(blockEditorStore);\n const onChangeTitle = (newText: string) => {\n if (newText === \"\") {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: \"\", style:\"default\" });\n } else {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: newText, style: \"example\"});\n }\n };\n\n return (\n
\n \n \n \n\n {attributes.style ? null : (\n \n )}\n \n \n {__(\"Add a Label for your Alert. This changes the style to example\", \"rrze-elements-blocks\")}\n \n\n \n \n \n \n \n \n \n \n
\n \n );\n}\n" + }, + { + "file": "src/blocks/alert/editor.scss", + "description": "Styling for the backend. It imports the Frontent Styling partially from src/_shared/scss/alert.", + "line": 1, + "contents": "@import \"../../_shared/scss/alert\";\n\n.alert {\n line-height: 1.5;\n & p {\n margin: 0;\n }\n}\n\n.rrzeElementsBFakColorSelector{\n &.dff0d8{\n background-color: #dff0d8;\n }\n &.e9edf2{\n background-color: #e9edf2;\n }\n &.d9edf7{\n background-color: #d9edf7;\n }\n &.fcf8e3{\n background-color: #fcf8e3;\n }\n &.f2dede{\n background-color: #f2dede;\n }\n}\n\np, h1, h2, h3, h4, h5, h6, span {\n font-family: 'Roboto', sans-serif;\n}\n" + }, + { + "file": "src/blocks/alert/index.tsx", + "description": "The index.tsx brings all together. We can see that we reference the edit.tsx and save.tsx in here", + "line": 35, + "contents": "import { registerBlockType } from \"@wordpress/blocks\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\nimport transforms from \"./transforms\";\nimport \"./editor.scss\";\n\nregisterBlockType(\n metadata.name as any,\n {\n /**\n * Used to construct a preview for the block to be shown in the block inserter.\n */\n icon: {\n src: (\n \n \n \n ),\n },\n /**\n * @see ./edit.js\n */\n edit: Edit,\n\n /**\n * @see ./save.js\n */\n save,\n transforms: transforms,\n } as any,\n);\n" + }, + { + "file": "src/blocks/alert/index.tsx", + "description": "We can also see, that there is a Transformation set via transforms.ts", + "line": 44, + "contents": "import { registerBlockType } from \"@wordpress/blocks\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\nimport transforms from \"./transforms\";\nimport \"./editor.scss\";\n\nregisterBlockType(\n metadata.name as any,\n {\n /**\n * Used to construct a preview for the block to be shown in the block inserter.\n */\n icon: {\n src: (\n \n \n \n ),\n },\n /**\n * @see ./edit.js\n */\n edit: Edit,\n\n /**\n * @see ./save.js\n */\n save,\n transforms: transforms,\n } as any,\n);\n" + }, + { + "file": "src/blocks/alert/block.json", + "description": "The attributes of the plugin. Whenever you change one of those, make sure that you remember to add a Deprecation via WordPress Deprecation API! This is mandatory (even if it is no fun)", + "line": 9, + "contents": "{\n \"$schema\": \"https://schemas.wp.org/trunk/block.json\",\n \"apiVersion\": 3,\n \"name\": \"rrze-elements/alert\",\n \"version\": \"1.0.13\",\n \"title\": \"Alert\",\n \"category\": \"rrze_elements\",\n \"description\": \"Used to highlight important information and warnings.\",\n \"attributes\": {\n \"style\": {\n \"type\": \"string\",\n \"default\": \"default\"\n },\n \"color\": {\n \"type\": \"string\",\n \"default\": \"#e9edf2\"\n },\n \"border_color\": {\n \"type\": \"string\",\n \"default\": \"\"\n },\n \"title\": {\n \"type\": \"string\",\n \"default\": \"\"\n },\n \"textColor\": {\n \"type\": \"string\",\n \"default\": \"#000000\"\n },\n \"borderColor\": {\n \"type\": \"string\",\n \"default\": \"\"\n }\n },\n \"example\": {\n \"attributes\": {\n \"style\": \"success\",\n \"color\": \"#e9edf2\",\n \"border_color\": \"\",\n \"title\": \"Alert\",\n \"textColor\": \"#000000\",\n \"borderColor\": \"\"\n },\n \"innerBlocks\": [\n {\n \"name\": \"core/paragraph\",\n \"attributes\": {\n \"content\": \"This is an alert box.\"\n }\n }\n ]\n },\n \"supports\": {\n \"html\": false\n },\n \"textdomain\": \"rrze-elements-blocks\",\n \"editorScript\": \"file:./index.js\",\n \"editorStyle\": \"file:./index.css\",\n \"style\": \"file:./style-index.css\"\n}" + }, + { + "file": "src/blocks/alert/block.json", + "description": "The textdomain of our plugin", + "line": 56, + "contents": "{\n \"$schema\": \"https://schemas.wp.org/trunk/block.json\",\n \"apiVersion\": 3,\n \"name\": \"rrze-elements/alert\",\n \"version\": \"1.0.13\",\n \"title\": \"Alert\",\n \"category\": \"rrze_elements\",\n \"description\": \"Used to highlight important information and warnings.\",\n \"attributes\": {\n \"style\": {\n \"type\": \"string\",\n \"default\": \"default\"\n },\n \"color\": {\n \"type\": \"string\",\n \"default\": \"#e9edf2\"\n },\n \"border_color\": {\n \"type\": \"string\",\n \"default\": \"\"\n },\n \"title\": {\n \"type\": \"string\",\n \"default\": \"\"\n },\n \"textColor\": {\n \"type\": \"string\",\n \"default\": \"#000000\"\n },\n \"borderColor\": {\n \"type\": \"string\",\n \"default\": \"\"\n }\n },\n \"example\": {\n \"attributes\": {\n \"style\": \"success\",\n \"color\": \"#e9edf2\",\n \"border_color\": \"\",\n \"title\": \"Alert\",\n \"textColor\": \"#000000\",\n \"borderColor\": \"\"\n },\n \"innerBlocks\": [\n {\n \"name\": \"core/paragraph\",\n \"attributes\": {\n \"content\": \"This is an alert box.\"\n }\n }\n ]\n },\n \"supports\": {\n \"html\": false\n },\n \"textdomain\": \"rrze-elements-blocks\",\n \"editorScript\": \"file:./index.js\",\n \"editorStyle\": \"file:./index.css\",\n \"style\": \"file:./style-index.css\"\n}" + }, + { + "file": "src/blocks/alert/save.tsx", + "description": "Our save-Function. It runs every time the Editor autosaves, or whenever a user opens the editor to retrieve the content.\nWhenever you change the save.tsx, remember to add a deprecation Array via WordPress Deprecation API. This is mandatory.\n\nDon't do complex computation inside the save.tsx. Instead rely on the attributes available.", + "line": 14, + "contents": "import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport type { CSSProperties } from 'react';\n\ninterface SaveProps {\n attributes: {\n style?: string;\n color?: string;\n title?: string;\n textColor?: string;\n borderColor?: string;\n };\n}\n\nexport default function save({ attributes }: SaveProps) {\n const blockProps = useBlockProps.save();\n\n const createStyleObject = () => {\n if (attributes.style) {\n return {};\n }\n\n const styleObj: CSSProperties = {\n backgroundColor: attributes.color,\n color: attributes.textColor,\n };\n\n if (attributes.borderColor) {\n styleObj.border = `1px solid ${attributes.borderColor}`;\n }\n\n return styleObj;\n };\n\n const createTitle = () => {\n if (attributes.title && attributes.style === \"example\") {\n return attributes.title.replace(/\"/g, \""\");\n }\n return undefined;\n };\n\n return (\n
\n
\n \n
\n
\n );\n}\n" + }, + { + "file": "src/blocks/alert/transforms.ts", + "description": "transforms allow conversion from one block to another.", + "line": 22, + "contents": "import { createBlock, BlockInstance } from \"@wordpress/blocks\";\nimport metadata from \"./block.json\";\ninterface ShortcodeAttributes {\n named: {\n style?: string;\n title?: string;\n color?: string;\n };\n content: string;\n numeric: any[];\n}\n\ninterface ShortcodeTransformAttributes {\n named: {\n style?: string;\n title?: string;\n };\n style: string;\n content: string;\n}\n\nconst transforms = {\n from: [\n {\n type: \"shortcode\",\n tag: \"alert\",\n attributes: {\n style: {\n type: \"string\",\n shortcode: (attrs: ShortcodeAttributes) => {\n if (\n [\"success\", \"danger\", \"default\", \"info\", \"warning\"].includes(\n attrs.named.style,\n )\n ) {\n return attrs.named.style;\n } else {\n return \"info\";\n }\n },\n },\n content: {\n type: \"string\",\n shortcode: (\n attrs: ShortcodeAttributes,\n { content }: { content: string },\n ) => {\n return content;\n },\n },\n },\n transform: (attributes: ShortcodeTransformAttributes, data: any) => {\n let cleanData = data.shortcode?.content;\n const styleChoice = (style: string) => {\n switch (style) {\n case \"success\":\n return \"success\";\n case \"danger\":\n return \"danger\";\n case \"default\":\n return \"default\";\n case \"info\":\n return \"info\";\n case \"warning\":\n return \"warning\";\n case \"example\":\n return \"example\";\n default:\n return \"\";\n }\n };\n // console.log('cleaned data:', cleanData);\n const blockContent = createBlock(\"core/freeform\", {\n content: cleanData,\n });\n return createBlock(\n metadata.name,\n {\n style: styleChoice(attributes.named.style),\n title: attributes.named.title,\n },\n [blockContent],\n );\n },\n },\n {\n type: 'block' as const,\n isMultiBlock: true,\n blocks: [\"core/paragraph\"],\n isMatch: (_attributes: any, blocks: any) => {\n return !blocks.some((block: any) => block.name === 'rrze-elements/alert');\n },\n\n __experimentalConvert: (blocks: BlockInstance[]) => {\n const columns: BlockInstance[] = [];\n\n blocks.forEach((block) => {\n columns.push(\n createBlock(\n block.name,\n block.attributes,\n block.innerBlocks\n )\n );\n });\n\n return createBlock(\n 'rrze-elements/alert',\n {},\n columns\n );\n },\n },\n ],\n to: [\n {\n type: 'block' as const,\n blocks: ['core/paragraph'],\n transform: (\n attributes: any,\n innerBlocks: BlockInstance[]\n ): BlockInstance[] => {\n return innerBlocks;\n },\n },\n ],\n};\n\nexport default transforms;\n" + }, + { + "file": "src/blocks/alert/transforms.ts", + "description": "From shortcode [alert] to this block.", + "line": 25, + "contents": "import { createBlock, BlockInstance } from \"@wordpress/blocks\";\nimport metadata from \"./block.json\";\ninterface ShortcodeAttributes {\n named: {\n style?: string;\n title?: string;\n color?: string;\n };\n content: string;\n numeric: any[];\n}\n\ninterface ShortcodeTransformAttributes {\n named: {\n style?: string;\n title?: string;\n };\n style: string;\n content: string;\n}\n\nconst transforms = {\n from: [\n {\n type: \"shortcode\",\n tag: \"alert\",\n attributes: {\n style: {\n type: \"string\",\n shortcode: (attrs: ShortcodeAttributes) => {\n if (\n [\"success\", \"danger\", \"default\", \"info\", \"warning\"].includes(\n attrs.named.style,\n )\n ) {\n return attrs.named.style;\n } else {\n return \"info\";\n }\n },\n },\n content: {\n type: \"string\",\n shortcode: (\n attrs: ShortcodeAttributes,\n { content }: { content: string },\n ) => {\n return content;\n },\n },\n },\n transform: (attributes: ShortcodeTransformAttributes, data: any) => {\n let cleanData = data.shortcode?.content;\n const styleChoice = (style: string) => {\n switch (style) {\n case \"success\":\n return \"success\";\n case \"danger\":\n return \"danger\";\n case \"default\":\n return \"default\";\n case \"info\":\n return \"info\";\n case \"warning\":\n return \"warning\";\n case \"example\":\n return \"example\";\n default:\n return \"\";\n }\n };\n // console.log('cleaned data:', cleanData);\n const blockContent = createBlock(\"core/freeform\", {\n content: cleanData,\n });\n return createBlock(\n metadata.name,\n {\n style: styleChoice(attributes.named.style),\n title: attributes.named.title,\n },\n [blockContent],\n );\n },\n },\n {\n type: 'block' as const,\n isMultiBlock: true,\n blocks: [\"core/paragraph\"],\n isMatch: (_attributes: any, blocks: any) => {\n return !blocks.some((block: any) => block.name === 'rrze-elements/alert');\n },\n\n __experimentalConvert: (blocks: BlockInstance[]) => {\n const columns: BlockInstance[] = [];\n\n blocks.forEach((block) => {\n columns.push(\n createBlock(\n block.name,\n block.attributes,\n block.innerBlocks\n )\n );\n });\n\n return createBlock(\n 'rrze-elements/alert',\n {},\n columns\n );\n },\n },\n ],\n to: [\n {\n type: 'block' as const,\n blocks: ['core/paragraph'],\n transform: (\n attributes: any,\n innerBlocks: BlockInstance[]\n ): BlockInstance[] => {\n return innerBlocks;\n },\n },\n ],\n};\n\nexport default transforms;\n" + }, + { + "file": "src/blocks/alert/transforms.ts", + "description": "Or from paragraph-blocks to this block. Multi-Select allows selection of several paragraphs for example...\n\nThis is not mandatory. But it is nice to have to increase UX", + "line": 87, + "contents": "import { createBlock, BlockInstance } from \"@wordpress/blocks\";\nimport metadata from \"./block.json\";\ninterface ShortcodeAttributes {\n named: {\n style?: string;\n title?: string;\n color?: string;\n };\n content: string;\n numeric: any[];\n}\n\ninterface ShortcodeTransformAttributes {\n named: {\n style?: string;\n title?: string;\n };\n style: string;\n content: string;\n}\n\nconst transforms = {\n from: [\n {\n type: \"shortcode\",\n tag: \"alert\",\n attributes: {\n style: {\n type: \"string\",\n shortcode: (attrs: ShortcodeAttributes) => {\n if (\n [\"success\", \"danger\", \"default\", \"info\", \"warning\"].includes(\n attrs.named.style,\n )\n ) {\n return attrs.named.style;\n } else {\n return \"info\";\n }\n },\n },\n content: {\n type: \"string\",\n shortcode: (\n attrs: ShortcodeAttributes,\n { content }: { content: string },\n ) => {\n return content;\n },\n },\n },\n transform: (attributes: ShortcodeTransformAttributes, data: any) => {\n let cleanData = data.shortcode?.content;\n const styleChoice = (style: string) => {\n switch (style) {\n case \"success\":\n return \"success\";\n case \"danger\":\n return \"danger\";\n case \"default\":\n return \"default\";\n case \"info\":\n return \"info\";\n case \"warning\":\n return \"warning\";\n case \"example\":\n return \"example\";\n default:\n return \"\";\n }\n };\n // console.log('cleaned data:', cleanData);\n const blockContent = createBlock(\"core/freeform\", {\n content: cleanData,\n });\n return createBlock(\n metadata.name,\n {\n style: styleChoice(attributes.named.style),\n title: attributes.named.title,\n },\n [blockContent],\n );\n },\n },\n {\n type: 'block' as const,\n isMultiBlock: true,\n blocks: [\"core/paragraph\"],\n isMatch: (_attributes: any, blocks: any) => {\n return !blocks.some((block: any) => block.name === 'rrze-elements/alert');\n },\n\n __experimentalConvert: (blocks: BlockInstance[]) => {\n const columns: BlockInstance[] = [];\n\n blocks.forEach((block) => {\n columns.push(\n createBlock(\n block.name,\n block.attributes,\n block.innerBlocks\n )\n );\n });\n\n return createBlock(\n 'rrze-elements/alert',\n {},\n columns\n );\n },\n },\n ],\n to: [\n {\n type: 'block' as const,\n blocks: ['core/paragraph'],\n transform: (\n attributes: any,\n innerBlocks: BlockInstance[]\n ): BlockInstance[] => {\n return innerBlocks;\n },\n },\n ],\n};\n\nexport default transforms;\n" + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "Inside Edit.tsx return-statement we can see what components are used and output inside our block for the Editor-view.", + "line": 92, + "contents": "import {\n TextControl,\n PanelBody,\n __experimentalText as Text,\n __experimentalSpacer as Spacer,\n} from \"@wordpress/components\";\nimport {\n useBlockProps,\n InnerBlocks,\n InspectorControls,\n BlockControls,\n ContrastChecker,\n} from \"@wordpress/block-editor\";\n\nimport { __ } from \"@wordpress/i18n\";\nimport { useDispatch } from \"@wordpress/data\";\nimport { store as blockEditorStore } from \"@wordpress/block-editor\";\nimport {\n StandardColorSwitcher,\n StandardColorSwitcherToolbar,\n BorderColorPicker,\n} from \"../../components/CustomColorSwitcher\";\n\ninterface EditProps {\n attributes: {\n style?: string;\n color: string;\n textColor?: string;\n borderColor?: string;\n title?: string;\n };\n setAttributes: (attributes: Partial) => void;\n clientId: string;\n context: { [key: string]: any };\n blockProps: any;\n}\n\nexport default function Edit({\n attributes,\n setAttributes,\n}: EditProps) {\n const props = useBlockProps();\n\n // Data for color options\n const colorDataAlert = [\n {\n color: \"#e9edf2\",\n slug: \"default\",\n name: __(\"Default\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#dff0d8\",\n slug: \"success\",\n name: __(\"Success\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#d9edf7\",\n slug: \"info\",\n name: __(\"Info\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#fcf8e3\",\n slug: \"warning\",\n name: __(\"Warning\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#f2dede\",\n slug: \"danger\",\n name: __(\"Danger\", \"rrze-elements-blocks\"),\n },\n ];\n\n let borderStyle = attributes.borderColor\n ? { border: `1px solid ${attributes.borderColor}` }\n : {};\n if (attributes.style === \"example\") {\n borderStyle = { border: `1px dashed var(--color-TextLight, #707070)` };\n }\n\n const { __unstableMarkNextChangeAsNotPersistent } =\n useDispatch(blockEditorStore);\n const onChangeTitle = (newText: string) => {\n if (newText === \"\") {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: \"\", style:\"default\" });\n } else {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: newText, style: \"example\"});\n }\n };\n\n return (\n
\n \n \n \n\n {attributes.style ? null : (\n \n )}\n \n \n {__(\"Add a Label for your Alert. This changes the style to example\", \"rrze-elements-blocks\")}\n \n\n \n \n \n \n \n \n \n \n
\n \n );\n}\n" + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "InspectorControls as the Editor Sidebar panel", + "line": 94, + "contents": "import {\n TextControl,\n PanelBody,\n __experimentalText as Text,\n __experimentalSpacer as Spacer,\n} from \"@wordpress/components\";\nimport {\n useBlockProps,\n InnerBlocks,\n InspectorControls,\n BlockControls,\n ContrastChecker,\n} from \"@wordpress/block-editor\";\n\nimport { __ } from \"@wordpress/i18n\";\nimport { useDispatch } from \"@wordpress/data\";\nimport { store as blockEditorStore } from \"@wordpress/block-editor\";\nimport {\n StandardColorSwitcher,\n StandardColorSwitcherToolbar,\n BorderColorPicker,\n} from \"../../components/CustomColorSwitcher\";\n\ninterface EditProps {\n attributes: {\n style?: string;\n color: string;\n textColor?: string;\n borderColor?: string;\n title?: string;\n };\n setAttributes: (attributes: Partial) => void;\n clientId: string;\n context: { [key: string]: any };\n blockProps: any;\n}\n\nexport default function Edit({\n attributes,\n setAttributes,\n}: EditProps) {\n const props = useBlockProps();\n\n // Data for color options\n const colorDataAlert = [\n {\n color: \"#e9edf2\",\n slug: \"default\",\n name: __(\"Default\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#dff0d8\",\n slug: \"success\",\n name: __(\"Success\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#d9edf7\",\n slug: \"info\",\n name: __(\"Info\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#fcf8e3\",\n slug: \"warning\",\n name: __(\"Warning\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#f2dede\",\n slug: \"danger\",\n name: __(\"Danger\", \"rrze-elements-blocks\"),\n },\n ];\n\n let borderStyle = attributes.borderColor\n ? { border: `1px solid ${attributes.borderColor}` }\n : {};\n if (attributes.style === \"example\") {\n borderStyle = { border: `1px dashed var(--color-TextLight, #707070)` };\n }\n\n const { __unstableMarkNextChangeAsNotPersistent } =\n useDispatch(blockEditorStore);\n const onChangeTitle = (newText: string) => {\n if (newText === \"\") {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: \"\", style:\"default\" });\n } else {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: newText, style: \"example\"});\n }\n };\n\n return (\n
\n \n \n \n\n {attributes.style ? null : (\n \n )}\n \n \n {__(\"Add a Label for your Alert. This changes the style to example\", \"rrze-elements-blocks\")}\n \n\n \n \n \n \n \n \n \n \n
\n \n );\n}\n" + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "Containing a StandardColorSwitcher (a custom component)", + "line": 95, + "contents": "import {\n TextControl,\n PanelBody,\n __experimentalText as Text,\n __experimentalSpacer as Spacer,\n} from \"@wordpress/components\";\nimport {\n useBlockProps,\n InnerBlocks,\n InspectorControls,\n BlockControls,\n ContrastChecker,\n} from \"@wordpress/block-editor\";\n\nimport { __ } from \"@wordpress/i18n\";\nimport { useDispatch } from \"@wordpress/data\";\nimport { store as blockEditorStore } from \"@wordpress/block-editor\";\nimport {\n StandardColorSwitcher,\n StandardColorSwitcherToolbar,\n BorderColorPicker,\n} from \"../../components/CustomColorSwitcher\";\n\ninterface EditProps {\n attributes: {\n style?: string;\n color: string;\n textColor?: string;\n borderColor?: string;\n title?: string;\n };\n setAttributes: (attributes: Partial) => void;\n clientId: string;\n context: { [key: string]: any };\n blockProps: any;\n}\n\nexport default function Edit({\n attributes,\n setAttributes,\n}: EditProps) {\n const props = useBlockProps();\n\n // Data for color options\n const colorDataAlert = [\n {\n color: \"#e9edf2\",\n slug: \"default\",\n name: __(\"Default\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#dff0d8\",\n slug: \"success\",\n name: __(\"Success\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#d9edf7\",\n slug: \"info\",\n name: __(\"Info\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#fcf8e3\",\n slug: \"warning\",\n name: __(\"Warning\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#f2dede\",\n slug: \"danger\",\n name: __(\"Danger\", \"rrze-elements-blocks\"),\n },\n ];\n\n let borderStyle = attributes.borderColor\n ? { border: `1px solid ${attributes.borderColor}` }\n : {};\n if (attributes.style === \"example\") {\n borderStyle = { border: `1px dashed var(--color-TextLight, #707070)` };\n }\n\n const { __unstableMarkNextChangeAsNotPersistent } =\n useDispatch(blockEditorStore);\n const onChangeTitle = (newText: string) => {\n if (newText === \"\") {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: \"\", style:\"default\" });\n } else {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: newText, style: \"example\"});\n }\n };\n\n return (\n
\n \n \n \n\n {attributes.style ? null : (\n \n )}\n \n \n {__(\"Add a Label for your Alert. This changes the style to example\", \"rrze-elements-blocks\")}\n \n\n \n \n \n \n \n \n \n \n
\n \n );\n}\n" + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "WordPress' ContrastChecker Component", + "line": 104, + "contents": "import {\n TextControl,\n PanelBody,\n __experimentalText as Text,\n __experimentalSpacer as Spacer,\n} from \"@wordpress/components\";\nimport {\n useBlockProps,\n InnerBlocks,\n InspectorControls,\n BlockControls,\n ContrastChecker,\n} from \"@wordpress/block-editor\";\n\nimport { __ } from \"@wordpress/i18n\";\nimport { useDispatch } from \"@wordpress/data\";\nimport { store as blockEditorStore } from \"@wordpress/block-editor\";\nimport {\n StandardColorSwitcher,\n StandardColorSwitcherToolbar,\n BorderColorPicker,\n} from \"../../components/CustomColorSwitcher\";\n\ninterface EditProps {\n attributes: {\n style?: string;\n color: string;\n textColor?: string;\n borderColor?: string;\n title?: string;\n };\n setAttributes: (attributes: Partial) => void;\n clientId: string;\n context: { [key: string]: any };\n blockProps: any;\n}\n\nexport default function Edit({\n attributes,\n setAttributes,\n}: EditProps) {\n const props = useBlockProps();\n\n // Data for color options\n const colorDataAlert = [\n {\n color: \"#e9edf2\",\n slug: \"default\",\n name: __(\"Default\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#dff0d8\",\n slug: \"success\",\n name: __(\"Success\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#d9edf7\",\n slug: \"info\",\n name: __(\"Info\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#fcf8e3\",\n slug: \"warning\",\n name: __(\"Warning\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#f2dede\",\n slug: \"danger\",\n name: __(\"Danger\", \"rrze-elements-blocks\"),\n },\n ];\n\n let borderStyle = attributes.borderColor\n ? { border: `1px solid ${attributes.borderColor}` }\n : {};\n if (attributes.style === \"example\") {\n borderStyle = { border: `1px dashed var(--color-TextLight, #707070)` };\n }\n\n const { __unstableMarkNextChangeAsNotPersistent } =\n useDispatch(blockEditorStore);\n const onChangeTitle = (newText: string) => {\n if (newText === \"\") {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: \"\", style:\"default\" });\n } else {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: newText, style: \"example\"});\n }\n };\n\n return (\n
\n \n \n \n\n {attributes.style ? null : (\n \n )}\n \n \n {__(\"Add a Label for your Alert. This changes the style to example\", \"rrze-elements-blocks\")}\n \n\n \n \n \n \n \n \n \n \n
\n \n );\n}\n" + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "BlockControls, die Block-Werkzeugleiste über dem Block", + "line": 131, + "contents": "import {\n TextControl,\n PanelBody,\n __experimentalText as Text,\n __experimentalSpacer as Spacer,\n} from \"@wordpress/components\";\nimport {\n useBlockProps,\n InnerBlocks,\n InspectorControls,\n BlockControls,\n ContrastChecker,\n} from \"@wordpress/block-editor\";\n\nimport { __ } from \"@wordpress/i18n\";\nimport { useDispatch } from \"@wordpress/data\";\nimport { store as blockEditorStore } from \"@wordpress/block-editor\";\nimport {\n StandardColorSwitcher,\n StandardColorSwitcherToolbar,\n BorderColorPicker,\n} from \"../../components/CustomColorSwitcher\";\n\ninterface EditProps {\n attributes: {\n style?: string;\n color: string;\n textColor?: string;\n borderColor?: string;\n title?: string;\n };\n setAttributes: (attributes: Partial) => void;\n clientId: string;\n context: { [key: string]: any };\n blockProps: any;\n}\n\nexport default function Edit({\n attributes,\n setAttributes,\n}: EditProps) {\n const props = useBlockProps();\n\n // Data for color options\n const colorDataAlert = [\n {\n color: \"#e9edf2\",\n slug: \"default\",\n name: __(\"Default\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#dff0d8\",\n slug: \"success\",\n name: __(\"Success\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#d9edf7\",\n slug: \"info\",\n name: __(\"Info\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#fcf8e3\",\n slug: \"warning\",\n name: __(\"Warning\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#f2dede\",\n slug: \"danger\",\n name: __(\"Danger\", \"rrze-elements-blocks\"),\n },\n ];\n\n let borderStyle = attributes.borderColor\n ? { border: `1px solid ${attributes.borderColor}` }\n : {};\n if (attributes.style === \"example\") {\n borderStyle = { border: `1px dashed var(--color-TextLight, #707070)` };\n }\n\n const { __unstableMarkNextChangeAsNotPersistent } =\n useDispatch(blockEditorStore);\n const onChangeTitle = (newText: string) => {\n if (newText === \"\") {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: \"\", style:\"default\" });\n } else {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: newText, style: \"example\"});\n }\n };\n\n return (\n
\n \n \n \n\n {attributes.style ? null : (\n \n )}\n \n \n {__(\"Add a Label for your Alert. This changes the style to example\", \"rrze-elements-blocks\")}\n \n\n \n \n \n \n \n \n \n \n
\n \n );\n}\n" + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "Output of inner blocks via InnerBlocks. This allows interacting and adding other blocks inside the block's content.", + "line": 155, + "contents": "import {\n TextControl,\n PanelBody,\n __experimentalText as Text,\n __experimentalSpacer as Spacer,\n} from \"@wordpress/components\";\nimport {\n useBlockProps,\n InnerBlocks,\n InspectorControls,\n BlockControls,\n ContrastChecker,\n} from \"@wordpress/block-editor\";\n\nimport { __ } from \"@wordpress/i18n\";\nimport { useDispatch } from \"@wordpress/data\";\nimport { store as blockEditorStore } from \"@wordpress/block-editor\";\nimport {\n StandardColorSwitcher,\n StandardColorSwitcherToolbar,\n BorderColorPicker,\n} from \"../../components/CustomColorSwitcher\";\n\ninterface EditProps {\n attributes: {\n style?: string;\n color: string;\n textColor?: string;\n borderColor?: string;\n title?: string;\n };\n setAttributes: (attributes: Partial) => void;\n clientId: string;\n context: { [key: string]: any };\n blockProps: any;\n}\n\nexport default function Edit({\n attributes,\n setAttributes,\n}: EditProps) {\n const props = useBlockProps();\n\n // Data for color options\n const colorDataAlert = [\n {\n color: \"#e9edf2\",\n slug: \"default\",\n name: __(\"Default\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#dff0d8\",\n slug: \"success\",\n name: __(\"Success\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#d9edf7\",\n slug: \"info\",\n name: __(\"Info\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#fcf8e3\",\n slug: \"warning\",\n name: __(\"Warning\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#f2dede\",\n slug: \"danger\",\n name: __(\"Danger\", \"rrze-elements-blocks\"),\n },\n ];\n\n let borderStyle = attributes.borderColor\n ? { border: `1px solid ${attributes.borderColor}` }\n : {};\n if (attributes.style === \"example\") {\n borderStyle = { border: `1px dashed var(--color-TextLight, #707070)` };\n }\n\n const { __unstableMarkNextChangeAsNotPersistent } =\n useDispatch(blockEditorStore);\n const onChangeTitle = (newText: string) => {\n if (newText === \"\") {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: \"\", style:\"default\" });\n } else {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: newText, style: \"example\"});\n }\n };\n\n return (\n
\n \n \n \n\n {attributes.style ? null : (\n \n )}\n \n \n {__(\"Add a Label for your Alert. This changes the style to example\", \"rrze-elements-blocks\")}\n \n\n \n \n \n \n \n \n \n \n
\n \n );\n}\n" + }, + { + "file": "src/blocks/alert/edit.tsx", + "description": "This is used, to tell the BlockEditor to NOT create a Undo-Layer after updating the attribute.\n\nElse blocks might create a almost endless Undo-Layer-cycle which prevents users from going back via Ctrl+Z ", + "line": 84, + "contents": "import {\n TextControl,\n PanelBody,\n __experimentalText as Text,\n __experimentalSpacer as Spacer,\n} from \"@wordpress/components\";\nimport {\n useBlockProps,\n InnerBlocks,\n InspectorControls,\n BlockControls,\n ContrastChecker,\n} from \"@wordpress/block-editor\";\n\nimport { __ } from \"@wordpress/i18n\";\nimport { useDispatch } from \"@wordpress/data\";\nimport { store as blockEditorStore } from \"@wordpress/block-editor\";\nimport {\n StandardColorSwitcher,\n StandardColorSwitcherToolbar,\n BorderColorPicker,\n} from \"../../components/CustomColorSwitcher\";\n\ninterface EditProps {\n attributes: {\n style?: string;\n color: string;\n textColor?: string;\n borderColor?: string;\n title?: string;\n };\n setAttributes: (attributes: Partial) => void;\n clientId: string;\n context: { [key: string]: any };\n blockProps: any;\n}\n\nexport default function Edit({\n attributes,\n setAttributes,\n}: EditProps) {\n const props = useBlockProps();\n\n // Data for color options\n const colorDataAlert = [\n {\n color: \"#e9edf2\",\n slug: \"default\",\n name: __(\"Default\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#dff0d8\",\n slug: \"success\",\n name: __(\"Success\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#d9edf7\",\n slug: \"info\",\n name: __(\"Info\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#fcf8e3\",\n slug: \"warning\",\n name: __(\"Warning\", \"rrze-elements-blocks\"),\n },\n {\n color: \"#f2dede\",\n slug: \"danger\",\n name: __(\"Danger\", \"rrze-elements-blocks\"),\n },\n ];\n\n let borderStyle = attributes.borderColor\n ? { border: `1px solid ${attributes.borderColor}` }\n : {};\n if (attributes.style === \"example\") {\n borderStyle = { border: `1px dashed var(--color-TextLight, #707070)` };\n }\n\n const { __unstableMarkNextChangeAsNotPersistent } =\n useDispatch(blockEditorStore);\n const onChangeTitle = (newText: string) => {\n if (newText === \"\") {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: \"\", style:\"default\" });\n } else {\n __unstableMarkNextChangeAsNotPersistent();\n setAttributes({ title: newText, style: \"example\"});\n }\n };\n\n return (\n
\n \n \n \n\n {attributes.style ? null : (\n \n )}\n \n \n {__(\"Add a Label for your Alert. This changes the style to example\", \"rrze-elements-blocks\")}\n \n\n \n \n \n \n \n \n \n \n
\n \n );\n}\n" + }, + { + "directory": "src/components", + "description": "All custom written components are stored inside src/components for global use inside the project." + }, + { + "directory": "src/stores", + "description": "All custom stores are placed inside src/stores. Redux." + }, + { + "file": "package.json", + "description": "Do not forget to ```npm run build-all``` or ```npm run build``` after adding your changes.", + "line": 17, + "contents": "{\n\t\"name\": \"rrze-elements\",\n\t\"version\": \"1.0.14\",\n\t\"description\": \"RRZE Elements: Gestalterische Erweiterungen für den BlockEditor\",\n\t\"main\": \"build/index.js\",\n\t\"textdomain\": \"rrze-elements-blocks\",\n\t\"license\": \"GPL-3.0-or-later\",\n\t\"private\": true,\n\t\"scripts\": {\n\t\t\"build\": \"wp-scripts build\",\n\t\t\"format\": \"wp-scripts format\",\n\t\t\"lint:css\": \"wp-scripts lint-style\",\n\t\t\"lint\": \"eslint 'src/**/*.{js,jsx,ts,tsx}'\",\n\t\t\"packages-update\": \"wp-scripts packages-update\",\n\t\t\"plugin-zip\": \"wp-scripts plugin-zip\",\n\t\t\"start\": \"wp-scripts start\",\n\t\t\"build-all\": \"node check-compatibility.js && sass src/_shared/scss/rrze-elements-blocks.scss assets/css/rrze-elements-blocks.css && npm run build && npx playwright test\",\n\t\t\"update-version\": \"node update-version.js && npm run build\"\n\t},\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"https://github.com/RRZE-Webteam/rrze-elements\",\n\t\t\"issues\": \"https://github.com/RRZE-Webteam/rrze-elements/issues\",\n\t\t\"clone\": \"git+https://github.com/RRZE-Webteam/rrze-elements.git\"\n\t},\n\t\"browserslist\": [\n\t\t\"last 3 years\",\n\t\t\"ie 11\"\n\t],\n\t\"supports\": {\n\t\t\"email\": \"webmaster@fau.de\",\n\t\t\"docs\": \"https://www.wordpress.rrze.fau.de/plugins/fau-und-rrze-plugins/elements/\"\n\t},\n\t\"author\": {\n\t\t\"name\": \"RRZE-Webteam \",\n\t\t\"url\": \"https://www.wordpress.rrze.fau.de/person/webmaster\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@babel/core\": \"^7.26.0\",\n\t\t\"@babel/preset-env\": \"^7.26.0\",\n\t\t\"@babel/preset-react\": \"^7.26.3\",\n\t\t\"@eslint/eslintrc\": \"^3.2.0\",\n\t\t\"@eslint/js\": \"^9.16.0\",\n\t\t\"@playwright/test\": \"^1.49.1\",\n\t\t\"@svgr/webpack\": \"^8.1.0\",\n\t\t\"@types/color\": \"^4.2.0\",\n\t\t\"@types/lodash\": \"^4.17.13\",\n\t\t\"@types/node\": \"^22.10.2\",\n\t\t\"@types/wordpress__block-editor\": \"^11.5.16\",\n\t\t\"@types/wordpress__blocks\": \"^12.5.16\",\n\t\t\"@typescript-eslint/eslint-plugin\": \"^8.18.0\",\n\t\t\"@typescript-eslint/parser\": \"^8.18.0\",\n\t\t\"@wordpress/api-fetch\": \"^7.14.0\",\n\t\t\"@wordpress/babel-plugin-makepot\": \"^6.14.0\",\n\t\t\"@wordpress/compose\": \"^7.14.0\",\n\t\t\"@wordpress/data\": \"^10.14.0\",\n\t\t\"@wordpress/e2e-test-utils-playwright\": \"^1.14.0\",\n\t\t\"@wordpress/eslint-plugin\": \"^22.0.0\",\n\t\t\"@wordpress/i18n\": \"^5.14.0\",\n\t\t\"@wordpress/icons\": \"^10.14.0\",\n\t\t\"@wordpress/keycodes\": \"^4.14.0\",\n\t\t\"@wordpress/notices\": \"^5.14.0\",\n\t\t\"@wordpress/scripts\": \"^30.7.0\",\n\t\t\"@wordpress/server-side-render\": \"^5.14.0\",\n\t\t\"autoprefixer\": \"^10.4.20\",\n\t\t\"babel-loader\": \"^9.2.1\",\n\t\t\"dotenv\": \"^16.4.7\",\n\t\t\"eslint\": \"^9.16.0\",\n\t\t\"eslint-plugin-react\": \"^7.37.2\",\n\t\t\"eslint-plugin-tsdoc\": \"^0.4.0\",\n\t\t\"inquirer\": \"^12.2.0\",\n\t\t\"prompt\": \"^1.3.0\",\n\t\t\"semver\": \"^7.6.3\",\n\t\t\"ts-loader\": \"^9.5.1\",\n\t\t\"typescript\": \"^5.7.2\"\n\t},\n\t\"dependencies\": {\n\t\t\"@wordpress/a11y\": \"^4.14.0\",\n\t\t\"@wordpress/shortcode\": \"^4.14.0\",\n\t\t\"color\": \"^4.2.3\",\n\t\t\"gsap\": \"^3.12.5\",\n\t\t\"lodash\": \"^4.17.21\",\n\t\t\"react-error-boundary\": \"^4.1.2\"\n\t},\n\t\"resolutions\": {\n\t\t\"postcss\": \"8.4.38\",\n\t\t\"svg-baker\": \"1.7.0\",\n\t\t\"svg-baker-runtime\": \"1.4.7\"\n\t},\n\t\"engines\": {\n\t\t\"node\": \">=21.7.3\",\n\t\t\"npm\": \">=10.8.0\"\n\t}\n}\n" + } + ] +} \ No newline at end of file diff --git a/package.json b/package.json index 8ae596d9..2fc6a643 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rrze-elements", - "version": "1.0.13", + "version": "1.0.14", "description": "RRZE Elements: Gestalterische Erweiterungen für den BlockEditor", "main": "build/index.js", "textdomain": "rrze-elements-blocks", diff --git a/readme.md b/readme.md index 0d3a0910..109bcd37 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ [![Aktuelle Version](https://img.shields.io/github/package-json/v/rrze-webteam/rrze-elements-blocks/main?label=Version)](https://github.com/RRZE-Webteam/rrze-elements-blocks) [![Release Version](https://img.shields.io/github/v/release/rrze-webteam/rrze-elements-blocks?label=Release+Version)](https://github.com/rrze-webteam/rrze-elements-blocks/releases/) [![GitHub License](https://img.shields.io/github/license/rrze-webteam/rrze-elements-blocks)](https://github.com/RRZE-Webteam/rrze-elements-blocks) [![GitHub issues](https://img.shields.io/github/issues/RRZE-Webteam/rrze-elements-blocks)](https://github.com/RRZE-Webteam/rrze-elements-blocks/issues) -![GitHub milestone details](https://img.shields.io/github/milestones/progress-percent/RRZE-Webteam/RRZE-Elements-blocks/13) ![GitHub milestone details](https://img.shields.io/github/milestones/progress-percent/RRZE-Webteam/RRZE-Elements-blocks/14) +![GitHub milestone details](https://img.shields.io/github/milestones/progress-percent/RRZE-Webteam/RRZE-Elements-blocks/15) # RRZE Elements Blocks RRZE Elements Blocks ermöglicht die Nutzung der RRZE Elements-Suite im Gutenberg BlockEditor. Die folgenden Elemente / Blöcke werden unterstützt: diff --git a/readme.txt b/readme.txt index 48406c69..f073b31f 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: blocks, gutenberg, design, elements Requires at least: 6.0 Tested up to: 6.7 Requires PHP: 8.0 -Stable tag: 1.0.13 +Stable tag: 1.0.14 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/rrze-elements-blocks.php b/rrze-elements-blocks.php index 85e44149..a8dd2b1c 100644 --- a/rrze-elements-blocks.php +++ b/rrze-elements-blocks.php @@ -4,7 +4,7 @@ Plugin Name: RRZE Elements Blocks Plugin URI: https://github.com/RRZE-Webteam/rrze-elements Description: Advanced design elements for WordPress BlockEditor. -Version: 1.0.13 +Version: 1.0.14 Author: RRZE Webteam Author URI: https://blogs.fau.de/webworking/ License: GNU General Public License v2 diff --git a/src/blocks/accordion/edit.tsx b/src/blocks/accordion/edit.tsx index 65aa472f..93ba406c 100644 --- a/src/blocks/accordion/edit.tsx +++ b/src/blocks/accordion/edit.tsx @@ -1,30 +1,30 @@ import { - ToolbarButton, - ToolbarGroup, - ToolbarItem, - Modal, - Button, - PanelBody, + ToolbarButton, + ToolbarGroup, + ToolbarItem, + Modal, + Button, + PanelBody, } from "@wordpress/components"; import { - useBlockProps, - BlockControls, - InnerBlocks, - InspectorControls, - RichText, + useBlockProps, + BlockControls, + InnerBlocks, + InspectorControls, + RichText, } from "@wordpress/block-editor"; import { useState, useEffect } from "@wordpress/element"; import { __ } from "@wordpress/i18n"; import { symbol } from "@wordpress/icons"; import { - ExtendedColorSwitcher, - ExtendedColorSwitcherToolbar, + ExtendedColorSwitcher, + ExtendedColorSwitcherToolbar, } from "../../components/CustomColorSwitcher"; import HeadingComponent from "../../components/HeadingComponent"; import { - IconPicker, - IconMarkComponent, - IconPickerModalInset, + IconPicker, + IconMarkComponent, + IconPickerModalInset, } from "../../components/IconPicker"; import { speak } from "@wordpress/a11y"; @@ -32,254 +32,267 @@ import { useJumpNameStore } from "../../hooks/useJumpNameStore"; import { JumpNameEntry } from "../../stores/jumpNameStore"; import { sanitizeTitleToJumpName } from "../../utility/utils"; import JumpLinkSelector from "../../components/JumpLinkSelector"; +import { useDispatch } from "@wordpress/data"; +import { store as blockEditorStore } from "@wordpress/block-editor"; interface EditProps { - attributes: { - totalChildrenCount?: number; - sameBlockCount?: number; - title: string; - color: string; - loadOpen: boolean; - icon: string; - hstart?: number; - jumpName?: string; - svgString?: string; - isCustomJumpname?: boolean; - }; - setAttributes: (attributes: Partial) => void; - clientId: string; - context: { [key: string]: any }; // You might want to further specify the shape of context if known + attributes: { + totalChildrenCount?: number; + sameBlockCount?: number; + title: string; + color: string; + loadOpen: boolean; + icon: string; + hstart?: number; + jumpName?: string; + svgString?: string; + isCustomJumpname?: boolean; + }; + setAttributes: (attributes: Partial) => void; + clientId: string; + context: { [key: string]: any }; // You might want to further specify the shape of context if known } const Edit = ({ attributes, setAttributes, clientId, context }: EditProps) => { - /////////// Use Selects /////////// + /////////// Use Selects /////////// - const props = useBlockProps(); - const { loadOpen, icon, jumpName, title, isCustomJumpname } = attributes; - const [isActive, setIsActive] = useState(false); - const [iconType, iconName] = icon?.split(" ") || []; - const [isOpen, setOpen] = useState(false); + const props = useBlockProps(); + const { loadOpen, icon, jumpName, title, isCustomJumpname } = attributes; + const [isActive, setIsActive] = useState(false); + const [iconType, iconName] = icon?.split(" ") || []; + const [isOpen, setOpen] = useState(false); + const { __unstableMarkNextChangeAsNotPersistent } = + useDispatch(blockEditorStore); - /// Helper /// - const doesJumpNameExist = (name: string): boolean => { - return jumpNames.some((entry: JumpNameEntry) => entry.jumpName === name); - }; + /// Helper /// + const doesJumpNameExist = (name: string): boolean => { + return jumpNames.some((entry: JumpNameEntry) => entry.jumpName === name); + }; - let computedDefaultJumpName = jumpName; + let computedDefaultJumpName = jumpName; useEffect(() => { if (!attributes.jumpName || attributes.jumpName === "") { const computedDefaultJumpName = `panel_${clientId?.slice(-8)}`; + __unstableMarkNextChangeAsNotPersistent(); setAttributes({ jumpName: computedDefaultJumpName }); } if (jumpName && jumpName.startsWith("panel_")) { + __unstableMarkNextChangeAsNotPersistent(); setAttributes({ isCustomJumpname: false }); } }, [attributes.jumpName, clientId, setAttributes]); - const { jumpNames }: { jumpNames: JumpNameEntry[] } = useJumpNameStore({ - clientId, - jumpName: computedDefaultJumpName, - setAttributes: (attrs) => setAttributes(attrs), - }); + const { jumpNames }: { jumpNames: JumpNameEntry[] } = useJumpNameStore({ + clientId, + jumpName: computedDefaultJumpName, + setAttributes: (attrs) => setAttributes(attrs), + }); - //////////////// Use Effects //////////////// + //////////////// Use Effects //////////////// - useEffect(() => { - if (jumpName === "") { - setAttributes({ - jumpName: `panel_${clientId?.slice(-8)}`, - }); - } - }, [clientId]); + useEffect(() => { + if (jumpName === "") { + setAttributes({ + jumpName: `panel_${clientId?.slice(-8)}`, + }); + } + }, [clientId]); - useEffect(() => { - let color = context["rrze-elements/collapseColor"]; + useEffect(() => { + let color = context["rrze-elements/collapseColor"]; - if (color !== attributes.color) { - color = attributes.color; - } + if (color !== attributes.color) { + color = attributes.color; + } - setAttributes({ - color: color, - }); - }, [context["rrze-elements/collapseColor"], attributes.color]); + setAttributes({ + color: color, + }); + }, [context["rrze-elements/collapseColor"], attributes.color]); - useEffect(() => { - setAttributes({ - hstart: context["rrze-elements/accordion-hstart"], - }); - }), - [context["rrze-elements/accordion-hstart"]]; + useEffect(() => { + if ( + context["rrze-elements/accordion-hstart"] && + context["rrze-elements/accordion-hstart"] !== attributes.hstart + ) { + __unstableMarkNextChangeAsNotPersistent(); + setAttributes({ + hstart: context["rrze-elements/accordion-hstart"], + }); + } + }), + [context["rrze-elements/accordion-hstart"]]; - /////////////////////// Event Handler / OnClick Handler ////////// - const openModal = () => setOpen(true); - const closeModal = () => setOpen(false); + /////////////////////// Event Handler / OnClick Handler ////////// + const openModal = () => setOpen(true); + const closeModal = () => setOpen(false); - const toggleActive = () => { - setIsActive(!isActive); - if (isActive) { - speak(__("reduced. Button.", "rrze-elements-blocks")); - } else if (!isActive) { - speak(__("extended. Button.", "rrze-elements-blocks")); - } - }; + const toggleActive = () => { + setIsActive(!isActive); + if (isActive) { + speak(__("reduced. Button.", "rrze-elements-blocks")); + } else if (!isActive) { + speak(__("extended. Button.", "rrze-elements-blocks")); + } + }; - const onChangeTitle = (newText: string) => { - setAttributes({ title: newText }); - }; + const onChangeTitle = (newText: string) => { + __unstableMarkNextChangeAsNotPersistent(); + setAttributes({ title: newText }); + }; - const onChangeTitleFocus = () => { - const newJumpName = sanitizeTitleToJumpName(title); - if ( - newJumpName && - newJumpName !== jumpName && - !doesJumpNameExist(newJumpName) && + const onChangeTitleFocus = () => { + const newJumpName = sanitizeTitleToJumpName(title); + if ( + newJumpName && + newJumpName !== jumpName && + !doesJumpNameExist(newJumpName) && !isCustomJumpname - ) { - setAttributes({ jumpName: newJumpName }); - } - }; + ) { + setAttributes({ jumpName: newJumpName }); + } + }; - let finalColor = - attributes.color === "inherit" - ? context["rrze-elements/collapseColor"] - : attributes.color; + let finalColor = + attributes.color === "inherit" + ? context["rrze-elements/collapseColor"] + : attributes.color; - return ( -
- - - - {/* {isTextInString("Title", attributes.show) && ( + return ( +
+ + + + {/* {isTextInString("Title", attributes.show) && ( )} */} - - {() => ( - <> - - {isOpen && ( - - - - - )} - - )} - - - - - + {() => ( + <> + + {isOpen && ( + + + + + )} + + )} + + + + + - - - - - -
- -
- {attributes.icon && ( - - )} - -
-
-
-
- -
-
-
-
- ); + }} + setAttributes={setAttributes} + clientId={clientId} + /> + + + + + +
+ +
+ {attributes.icon && ( + + )} + +
+
+
+
+ +
+
+
+
+ ); }; export default Edit; diff --git a/src/blocks/alert/index.tsx b/src/blocks/alert/index.tsx index e2f79d05..bcd65ee3 100644 --- a/src/blocks/alert/index.tsx +++ b/src/blocks/alert/index.tsx @@ -1,132 +1,46 @@ import { registerBlockType } from "@wordpress/blocks"; -import { createBlock } from "@wordpress/blocks"; import Edit from "./edit"; import save from "./save"; import metadata from "./block.json"; +import transforms from "./transforms"; import "./editor.scss"; -interface ShortcodeAttributes { - named: { - style?: string; - title?: string; - color?: string; - }; - content: string; - numeric: any[]; -} - -interface ShortcodeTransformAttributes { - named: { - style?: string; - title?: string; - }; - style: string; - content: string; -} - registerBlockType( - metadata.name as any, - { - /** - * Used to construct a preview for the block to be shown in the block inserter. - */ - icon: { - src: ( - - - - ), - }, - /** - * @see ./edit.js - */ - edit: Edit, + metadata.name as any, + { + /** + * Used to construct a preview for the block to be shown in the block inserter. + */ + icon: { + src: ( + + + + ), + }, + /** + * @see ./edit.js + */ + edit: Edit, - /** - * @see ./save.js - */ - save, - transforms: { - from: [ - { - type: "shortcode", - tag: "alert", - attributes: { - style: { - type: "string", - shortcode: (attrs: ShortcodeAttributes) => { - if ( - ["success", "danger", "default", "info", "warning"].includes( - attrs.named.style, - ) - ) { - return attrs.named.style; - } else { - return "info"; - } - }, - }, - content: { - type: "string", - shortcode: ( - attrs: ShortcodeAttributes, - { content }: { content: string }, - ) => { - return content; - }, - }, - }, - transform: (attributes: ShortcodeTransformAttributes, data: any) => { - // console.log('Transforming content:', attributes); - // console.log('transformation data:', data); - let cleanData = data.shortcode?.content; - const styleChoice = (style: string) => { - switch (style) { - case "success": - return "success"; - case "danger": - return "danger"; - case "default": - return "default"; - case "info": - return "info"; - case "warning": - return "warning"; - case "example": - return "example"; - default: - return ""; - } - }; - // console.log('cleaned data:', cleanData); - const blockContent = createBlock("core/freeform", { - content: cleanData, - }); - return createBlock( - metadata.name, - { - style: styleChoice(attributes.named.style), - title: attributes.named.title, - }, - [blockContent], - ); - }, - }, - ], - }, - } as any, + /** + * @see ./save.js + */ + save, + transforms: transforms, + } as any, ); diff --git a/src/blocks/alert/transforms.ts b/src/blocks/alert/transforms.ts new file mode 100644 index 00000000..0e9084cf --- /dev/null +++ b/src/blocks/alert/transforms.ts @@ -0,0 +1,129 @@ +import { createBlock, BlockInstance } from "@wordpress/blocks"; +import metadata from "./block.json"; +interface ShortcodeAttributes { + named: { + style?: string; + title?: string; + color?: string; + }; + content: string; + numeric: any[]; +} + +interface ShortcodeTransformAttributes { + named: { + style?: string; + title?: string; + }; + style: string; + content: string; +} + +const transforms = { + from: [ + { + type: "shortcode", + tag: "alert", + attributes: { + style: { + type: "string", + shortcode: (attrs: ShortcodeAttributes) => { + if ( + ["success", "danger", "default", "info", "warning"].includes( + attrs.named.style, + ) + ) { + return attrs.named.style; + } else { + return "info"; + } + }, + }, + content: { + type: "string", + shortcode: ( + attrs: ShortcodeAttributes, + { content }: { content: string }, + ) => { + return content; + }, + }, + }, + transform: (attributes: ShortcodeTransformAttributes, data: any) => { + let cleanData = data.shortcode?.content; + const styleChoice = (style: string) => { + switch (style) { + case "success": + return "success"; + case "danger": + return "danger"; + case "default": + return "default"; + case "info": + return "info"; + case "warning": + return "warning"; + case "example": + return "example"; + default: + return ""; + } + }; + // console.log('cleaned data:', cleanData); + const blockContent = createBlock("core/freeform", { + content: cleanData, + }); + return createBlock( + metadata.name, + { + style: styleChoice(attributes.named.style), + title: attributes.named.title, + }, + [blockContent], + ); + }, + }, + { + type: 'block' as const, + isMultiBlock: true, + blocks: ["core/paragraph"], + isMatch: (_attributes: any, blocks: any) => { + return !blocks.some((block: any) => block.name === 'rrze-elements/alert'); + }, + + __experimentalConvert: (blocks: BlockInstance[]) => { + const columns: BlockInstance[] = []; + + blocks.forEach((block) => { + columns.push( + createBlock( + block.name, + block.attributes, + block.innerBlocks + ) + ); + }); + + return createBlock( + 'rrze-elements/alert', + {}, + columns + ); + }, + }, + ], + to: [ + { + type: 'block' as const, + blocks: ['core/paragraph'], + transform: ( + attributes: any, + innerBlocks: BlockInstance[] + ): BlockInstance[] => { + return innerBlocks; + }, + }, + ], +}; + +export default transforms; diff --git a/src/blocks/collapse/edit.tsx b/src/blocks/collapse/edit.tsx index 153d85c9..278258bc 100644 --- a/src/blocks/collapse/edit.tsx +++ b/src/blocks/collapse/edit.tsx @@ -14,7 +14,7 @@ import { BlockControls, RichText, } from "@wordpress/block-editor"; -import { BlockEditProps } from '@wordpress/blocks'; +import { BlockEditProps } from "@wordpress/blocks"; import { seen, unseen, symbol } from "@wordpress/icons"; import { useState, useEffect } from "@wordpress/element"; import { __ } from "@wordpress/i18n"; @@ -32,21 +32,22 @@ import { IconMarkComponent, IconPickerModalInset, } from "../../components/IconPicker"; -import { speak } from '@wordpress/a11y'; +import { speak } from "@wordpress/a11y"; -import { useJumpNameStore } from '../../hooks/useJumpNameStore' +import { useJumpNameStore } from "../../hooks/useJumpNameStore"; import { JumpNameEntry } from "../../stores/jumpNameStore"; import { sanitizeTitleToJumpName } from "../../utility/utils"; +import { useDispatch } from "@wordpress/data"; +import { store as blockEditorStore } from "@wordpress/block-editor"; -import { AttributesV1_0_12 as BlockAttributes } from './index'; +import { AttributesV1_0_12 as BlockAttributes } from "./index"; -const Edit= ({ +const Edit = ({ attributes, setAttributes, clientId, - context + context, }: BlockEditProps) => { - const props = useBlockProps(); const { color, loadOpen, icon, jumpName, isCustomJumpname } = attributes; const title = attributes.title; @@ -54,14 +55,18 @@ const Edit= ({ const [isActive, setIsActive] = useState(false); const [iconType, iconName] = icon?.split(" ") || []; const [isOpen, setOpen] = useState(false); + const { __unstableMarkNextChangeAsNotPersistent } = + useDispatch(blockEditorStore); let computedDefaultJumpName = jumpName; useEffect(() => { if (!attributes.jumpName || attributes.jumpName === "") { const computedDefaultJumpName = `panel_${clientId?.slice(-8)}`; + __unstableMarkNextChangeAsNotPersistent(); setAttributes({ jumpName: computedDefaultJumpName }); } if (jumpName && jumpName.startsWith("panel_")) { + __unstableMarkNextChangeAsNotPersistent(); setAttributes({ isCustomJumpname: false }); } }, [attributes.jumpName, clientId, setAttributes]); @@ -69,9 +74,9 @@ const Edit= ({ const { jumpNames }: { jumpNames: JumpNameEntry[] } = useJumpNameStore({ clientId, jumpName: computedDefaultJumpName, - setAttributes: (attrs) => setAttributes(attrs) + setAttributes: (attrs) => setAttributes(attrs), }); - + const doesJumpNameExist = (name: string): boolean => { return jumpNames.some((entry: JumpNameEntry) => entry.jumpName === name); }; @@ -79,8 +84,14 @@ const Edit= ({ let sameTypeSiblingsBefore = 0; useEffect(() => { - setAttributes({ hstart: context["rrze-elements/hstart"] as number }); - }, [context["rrze-elements/hstart"]]); + if ( + context["rrze-elements/accordion-hstart"] && + context["rrze-elements/accordion-hstart"] !== attributes.hstart + ) { + __unstableMarkNextChangeAsNotPersistent(); + setAttributes({ hstart: context["rrze-elements/accordion-hstart"] as number }); + } + }, [context["rrze-elements/accordion-hstart"]]); // Functions to handle the opening and closing of the icon picker modal. const openModal = () => setOpen(true); @@ -88,27 +99,34 @@ const Edit= ({ const toggleActive = () => { setIsActive(!isActive); - if (isActive){ - speak(__('reduced. Button.', 'rrze-elements-blocks')) + if (isActive) { + speak(__("reduced. Button.", "rrze-elements-blocks")); } else if (!isActive) { - speak(__('extended. Button.', 'rrze-elements-blocks')); + speak(__("extended. Button.", "rrze-elements-blocks")); } }; // Function to handle the change of the title attribute. const onChangeTitle = (newText: string) => { if (newText === "") { + __unstableMarkNextChangeAsNotPersistent(); setAttributes({ title: "" }); } else { + __unstableMarkNextChangeAsNotPersistent(); setAttributes({ title: newText }); } }; const onChangeTitleFocus = () => { const newJumpName = sanitizeTitleToJumpName(title); - if (newJumpName && newJumpName !== jumpName && !doesJumpNameExist(newJumpName) && !isCustomJumpname) { + if ( + newJumpName && + newJumpName !== jumpName && + !doesJumpNameExist(newJumpName) && + !isCustomJumpname + ) { setAttributes({ jumpName: newJumpName }); - } + } }; // Function to handle the toggle of the loadOpen attribute. @@ -278,4 +296,4 @@ const Edit= ({ ); }; -export default Edit; \ No newline at end of file +export default Edit; diff --git a/src/blocks/collapsibles/block.json b/src/blocks/collapsibles/block.json index 90cb5635..a960f4d3 100644 --- a/src/blocks/collapsibles/block.json +++ b/src/blocks/collapsibles/block.json @@ -15,21 +15,9 @@ "type": "integer", "default": 2 }, - "register": { - "type": "boolean", - "default": false - }, - "sameBlockCount": { - "type": "integer", - "default": 0 - }, - "childrenCount": { - "type": "integer", - "default": 0 - }, - "previousBlockIds": { - "type": "array", - "default": [] + "expandLabel": { + "type": "string", + "default": "Expand All" } }, "providesContext": { diff --git a/src/blocks/collapsibles/deprecated.tsx b/src/blocks/collapsibles/deprecated.tsx index 29966603..bdd23075 100644 --- a/src/blocks/collapsibles/deprecated.tsx +++ b/src/blocks/collapsibles/deprecated.tsx @@ -4,6 +4,14 @@ import saveV1_0_3 from "./v1.0.3/save"; import migrateV1_0_3 from "./v1.0.3/migrate"; import {attributes as attributesV1, AttributesV1 } from "./v1.0.3/attributes"; +import saveV1_0_13 from "./v1.0.13/save"; +import migrateV1_0_13 from "./v1.0.13/migrate"; +import {attributes as attributesV1_0_13 } from "./v1.0.13/attributes"; + +import saveV1_0_13_2 from "./v1.0.13-2/save"; +import migrateV1_0_13_2 from "./v1.0.13-2/migrate"; +import {attributes as attributesV1_0_13_2 } from "./v1.0.13-2/attributes"; + // interface AttributesV2 extends AttributesV1 { // newAttribute: string; // } @@ -13,6 +21,16 @@ import {attributes as attributesV1, AttributesV1 } from "./v1.0.3/attributes"; // } const deprecated: BlockDeprecation[] = [ + { + attributes: attributesV1_0_13_2, + save: saveV1_0_13_2, + migrate: migrateV1_0_13_2, + }, + { + attributes: attributesV1_0_13, + save: saveV1_0_13, + migrate: migrateV1_0_13, + }, { attributes: attributesV1, save: saveV1_0_3, diff --git a/src/blocks/collapsibles/edit.tsx b/src/blocks/collapsibles/edit.tsx index 2f89f688..ddea11f2 100644 --- a/src/blocks/collapsibles/edit.tsx +++ b/src/blocks/collapsibles/edit.tsx @@ -1,16 +1,17 @@ import { - useBlockProps, - InnerBlocks, - InspectorControls, - BlockControls, + useBlockProps, + InnerBlocks, + InspectorControls, + BlockControls, } from "@wordpress/block-editor"; import { PanelBody } from "@wordpress/components"; import { __ } from "@wordpress/i18n"; import ExpandAllLink from "../../components/ExpandAllLink"; import { - HeadingSelector, - HeadingSelectorInspector, + HeadingSelector, + HeadingSelectorInspector, } from "../../components/HeadingSelector"; +import { useEffect } from "@wordpress/element"; /** * Retrieve all blocks, including nested ones. @@ -20,77 +21,85 @@ import { */ type SaveProps = { - attributes: { - expandAllLink: boolean; - sameBlockCount: number; - previousBlockIds: string[]; - hstart: number; - childrenCount: number; - message: string; - previousBlockClients: string[]; - }; - setAttributes: (newAttributes: { - expandAllLink?: boolean; - sameBlockCount?: number; - previousBlockIds?: string[]; - hstart?: number; - childrenCount?: number; - message?: string; - previousBlockClients?: string[]; - }) => void; - clientId?: string; + attributes: { + expandAllLink: boolean; + sameBlockCount: number; + previousBlockIds: string[]; + hstart: number; + childrenCount: number; + message: string; + previousBlockClients: string[]; + expandLabel: string; + }; + setAttributes: (newAttributes: { + expandAllLink?: boolean; + sameBlockCount?: number; + previousBlockIds?: string[]; + hstart?: number; + childrenCount?: number; + message?: string; + previousBlockClients?: string[]; + expandLabel?: string; + }) => void; + clientId?: string; }; export default function Edit({ attributes, setAttributes }: SaveProps) { - const props = useBlockProps(); + const props = useBlockProps(); - return ( -
- - - - - - - - - - - -
- {attributes.expandAllLink && ( -
- -
- )} - -
-
- ); + useEffect(() => { + setAttributes({ + expandLabel: __("Expand All", "rrze-elements-blocks"), + }) + }, []); + + return ( +
+ + + + + + + + + + + +
+ {attributes.expandAllLink && ( +
+ +
+ )} + +
+
+ ); } diff --git a/src/blocks/collapsibles/index.tsx b/src/blocks/collapsibles/index.tsx index 096634b5..71a7ebb5 100644 --- a/src/blocks/collapsibles/index.tsx +++ b/src/blocks/collapsibles/index.tsx @@ -7,67 +7,66 @@ import deprecated from "./deprecated"; import transforms from "./transforms"; registerBlockType( - metadata.name as any, - { - /** - * Used to construct a preview for the block to be shown in the block inserter. - */ - icon: { - src: ( - - - - - - - - - ), - }, - /** - * @see ./edit.js - */ - edit: Edit, + metadata.name as any, + { + /** + * Used to construct a preview for the block to be shown in the block inserter. + */ + icon: { + src: ( + + + + + + + + + ), + }, + /** + * @see ./edit.js + */ + edit: Edit, - /** - * @see ./save.js - */ - save, - deprecated, + /** + * @see ./save.js + */ + save, + deprecated, transforms, - - } as any, + } as any, ); diff --git a/src/blocks/collapsibles/save.tsx b/src/blocks/collapsibles/save.tsx index 26c2c950..5bcb53ed 100644 --- a/src/blocks/collapsibles/save.tsx +++ b/src/blocks/collapsibles/save.tsx @@ -1,16 +1,16 @@ import { useBlockProps, InnerBlocks } from "@wordpress/block-editor"; -import { __ } from "@wordpress/i18n"; type SaveProps = { attributes: { sameBlockCount: number; expandAllLink: boolean; + expandLabel: string; }; }; export default function save({ attributes }: SaveProps) { const blockProps = useBlockProps.save(); - const { expandAllLink } = attributes; + const { expandAllLink, expandLabel } = attributes; return (
@@ -23,7 +23,7 @@ export default function save({ attributes }: SaveProps) { className="expand-all standard-btn primary-btn xsmall-btn" data-status="closed" > - {__("Expand All", "rrze-elements-blocks")} + {expandLabel}
)} diff --git a/src/blocks/collapsibles/transforms.ts b/src/blocks/collapsibles/transforms.ts index ea0f8537..eee010cb 100644 --- a/src/blocks/collapsibles/transforms.ts +++ b/src/blocks/collapsibles/transforms.ts @@ -1,234 +1,370 @@ -import { createBlock } from "@wordpress/blocks"; +import { createBlock, BlockInstance } from "@wordpress/blocks"; import iconJson from "../../components/assets/fontawesome/fontawesomeIconNames.json"; +import { __ } from "@wordpress/i18n"; + +interface CollapseBlockAttributes { + title: string; +} + +interface CollapsiblesBlockAttributes { + // Define the attributes for rrze-elements/collapsibles if needed +} /** * Helper Functions */ -function validateIcon(iconStr: string) { - // Splitting the string to see if it has a prefix. - if (iconStr === undefined) return ""; - - const parts = iconStr.split(" "); - - let prefix, iconName; - - if (parts.length === 1) { - // If only icon name is provided, use "solid" as the default prefix. - prefix = "solid"; - iconName = parts[0]; - } else if (parts.length === 2) { - prefix = parts[0]; - iconName = parts[1]; - } else { - // Invalid icon string format - return null; +function flattenBlockToHeadingsAndInnerBlocks(block: BlockInstance): BlockInstance[] { + const output: BlockInstance[] = []; + const { name, attributes, innerBlocks } = block; + + if (name === 'rrze-elements/collapse') { + const { title } = attributes as { title?: string }; + if (title) { + output.push( + createBlock('core/heading', { content: title }) + ); } - - if (["brands", "regular", "solid"].includes(prefix)) { - const key: keyof typeof iconJson = prefix as any; - if (iconJson[key].includes(iconName)) { - return `${prefix} ${iconName}`; - } + innerBlocks.forEach((child) => { + output.push(...flattenBlockToHeadingsAndInnerBlocks(child)); + }); + + return output; + } + + if (name === 'rrze-elements/accordions') { + innerBlocks.forEach((accordionBlock) => { + output.push(...flattenBlockToHeadingsAndInnerBlocks(accordionBlock)); + }); + return output; + } + + if (name === 'rrze-elements/accordion') { + const { title } = attributes as { title?: string }; + if (title) { + output.push( + createBlock('core/heading', { content: title }) + ); + } + innerBlocks.forEach((child) => { + output.push(...flattenBlockToHeadingsAndInnerBlocks(child)); + }); + + return output; + } + + if (innerBlocks?.length) { + const flattenedChildren: BlockInstance[] = []; + innerBlocks.forEach((child) => { + flattenedChildren.push(...flattenBlockToHeadingsAndInnerBlocks(child)); + }); + output.push(createBlock( + name, + attributes, + flattenedChildren + )); + } else { + output.push(block); + } + + return output; +} + +function validateIcon(iconStr: string) { + if (iconStr === undefined) return ""; + + const parts = iconStr.split(" "); + + let prefix, iconName; + + if (parts.length === 1) { + // If only icon name is provided, use "solid" as the default prefix. + prefix = "solid"; + iconName = parts[0]; + } else if (parts.length === 2) { + prefix = parts[0]; + iconName = parts[1]; + } else { + // Invalid icon string format + return null; + } + + if (["brands", "regular", "solid"].includes(prefix)) { + const key: keyof typeof iconJson = prefix as any; + if (iconJson[key].includes(iconName)) { + return `${prefix} ${iconName}`; } - - return ""; } + return ""; +} + const transforms = { - from: [ - { - type: "shortcode", - tag: "collapsibles", - attributes: { - hstart: { - type: "integer", - shortcode: (attributes: { named: { hstart?: number } }) => { - return attributes.named.hstart || 2; - }, - }, - }, - priority: 1, - transform: (attributes: any, data: any) => { - let blocks = []; - const globalInnerBlocks: any[] = []; - - const cleanData = data.shortcode?.content.replace(/<\/?p>/g, ""); - const regexCollapse = - /\[collapse(?=\s)((?:\s+\w+=(?:'[^']*'|"[^"]*"|“[^”]*”))*)\]([\s\S]*?)\[\/collapse\]/g; - const matchesCollapseContent = [ - ...cleanData.matchAll(regexCollapse), - ]; - let titleStore: { title: string; type: string; level: number; items?: any[] }[] = []; - console.log(data); - const originalContent = data?.content || ""; - - matchesCollapseContent.forEach((match, collapseIndex) => { - const collapseAttributesString = match[1]; - const attributesRegex = /(\w+)="([^"]*)"/g; - let attributeMatches; - let collapseAttributes: { [key: string]: string } = {}; - while ( - (attributeMatches = attributesRegex.exec( - collapseAttributesString - )) !== null - ) { - const key = attributeMatches[1]; - const value = attributeMatches[2]; - collapseAttributes[key] = value; - } - - const contentInsideCollapse = match[2].trim(); - - let collapseInnerBlocks: any[] = []; - let accordionTitles: { title: string; type: string; level: number }[] = []; - - const accordionRegex = - /\[accordion(?=\s|\])(?:\s+\w+="[^"]*")*\]([\s\S]*?)\[\/accordion\]/g; - const splitContents = contentInsideCollapse.split(accordionRegex); - splitContents.forEach((splitContent: string, index: number) => { - if (index % 2 === 0) { - // This should be freeform content outside of the accordions - if (splitContent.trim()) { - collapseInnerBlocks.push( - createBlock("core/freeform", { - content: splitContent.trim(), - }) - ); - } - } else { - // This should be content inside an accordion - const accordionItemsRegex = - /\[accordion-item(?=\s)((?:\s+\w+=(?:'[^']*'|"[^"]*"|“[^”]*”))*)\]([\s\S]*?)\[\/accordion-item\]/g; - const accordionItemMatches = [ - ...splitContent.matchAll(accordionItemsRegex), - ]; - - let innerAccordionBlocks: any = []; - - accordionItemMatches.forEach((accordionItem) => { - const accordionAttributesString = accordionItem[1]; - const accordionContent = accordionItem[2].trim(); - - const accordionAttributeMatches = - accordionAttributesString.match( - /(\w+)=('[^']*'|"[^"]*"|“[^”]*”)/g - ); - let accordionAttributes: { [key: string]: string } = {}; - - accordionAttributeMatches?.forEach((attr) => { - const [key, fullValue] = attr.split("="); - const actualValue = fullValue.slice(1, -1); - accordionAttributes[key] = actualValue; // <-- Populate the object correctly - }); - - accordionTitles.push( - { - title: accordionAttributes.title || "No title detected", - type: "accordion", - level: 2 - } - ); - - innerAccordionBlocks.push( - createBlock( - "rrze-elements/accordion", - { title: accordionAttributes.title || "Enter a title" }, - [ - createBlock("core/freeform", { - content: accordionContent, - }), - ] - ) - ); - }); - - if (innerAccordionBlocks.length) { - collapseInnerBlocks.push( - createBlock( - "rrze-elements/accordions", - {}, - innerAccordionBlocks - ) - ); - } - } - }); - - const colorChoice = (color: string) => { - switch (color) { - case "tf": - return "tf"; - case "nat": - return "nat"; - case "phil": - return "phil"; - case "med": - return "med"; - case "rw": - return "rw"; - default: - return ""; - } - }; - - titleStore.push({ - title: collapseAttributes.title || `Collapse #${collapseIndex + 1}`, - type: "collapse", - level: 1, - items: accordionTitles, - }); - - globalInnerBlocks.push( - createBlock( - "rrze-elements/collapse", - { - title: collapseAttributes.title || "Enter a title", - color: colorChoice(collapseAttributes.color), - jumpName: collapseAttributes.name || "", - icon: validateIcon(collapseAttributes.icon) || "", - }, - collapseInnerBlocks - ) - ); - }); + from: [ + { + type: 'block' as const, + isMultiBlock: true, + blocks: ['*'], + isMatch: (_attributes: any, blocks: any) => { + return !blocks.some((block: any) => block.name === 'rrze-elements/collapsibles'); + }, + + __experimentalConvert: (blocks: BlockInstance[]) => { + const collapses: BlockInstance[] = []; + + let currentCollapseBlocks: BlockInstance[] = []; + let currentTitle = __("Untitled Collapse", "rrze-elements-blocks"); - const hstart = parseInt(attributes.named.hstart, 10) || 2; - blocks.push( - createBlock( - "rrze-elements/collapsibles", - { hstart: hstart }, - globalInnerBlocks - ) + blocks.forEach((block, index) => { + if (block.name === 'core/heading') { + if (currentCollapseBlocks.length) { + collapses.push( + createBlock( + 'rrze-elements/collapse', + { title: currentTitle }, + currentCollapseBlocks + ) + ); + currentCollapseBlocks = []; + } + currentTitle = (block.attributes as any).content || `Collapse #${index + 1}`; + } else { + currentCollapseBlocks.push( + createBlock( + block.name, + block.attributes, + block.innerBlocks + ) + ); + } + }); + + if (currentCollapseBlocks.length) { + collapses.push( + createBlock( + 'rrze-elements/collapse', + { title: currentTitle }, + currentCollapseBlocks + ) + ); + } + + return createBlock( + 'rrze-elements/collapsibles', + {}, + collapses + ); + }, + }, + { + type: "shortcode", + tag: "collapsibles", + attributes: { + hstart: { + type: "integer", + shortcode: (attributes: { named: { hstart?: number } }) => { + return attributes.named.hstart || 2; + }, + }, + }, + priority: 1, + transform: (attributes: any, data: any) => { + let blocks = []; + const globalInnerBlocks: any[] = []; + + const cleanData = data.shortcode?.content.replace(/<\/?p>/g, ""); + const regexCollapse = + /\[collapse(?=\s)((?:\s+\w+=(?:'[^']*'|"[^"]*"|“[^”]*”))*)\]([\s\S]*?)\[\/collapse\]/g; + const matchesCollapseContent = [ + ...cleanData.matchAll(regexCollapse), + ]; + let titleStore: { title: string; type: string; level: number; items?: any[] }[] = []; + console.log(data); + const originalContent = data?.content || ""; + + matchesCollapseContent.forEach((match, collapseIndex) => { + const collapseAttributesString = match[1]; + const attributesRegex = /(\w+)="([^"]*)"/g; + let attributeMatches; + let collapseAttributes: { [key: string]: string } = {}; + while ( + (attributeMatches = attributesRegex.exec( + collapseAttributesString + )) !== null + ) { + const key = attributeMatches[1]; + const value = attributeMatches[2]; + collapseAttributes[key] = value; + } + + const contentInsideCollapse = match[2].trim(); + + let collapseInnerBlocks: any[] = []; + let accordionTitles: { title: string; type: string; level: number }[] = []; + + const accordionRegex = + /\[accordion(?=\s|\])(?:\s+\w+="[^"]*")*\]([\s\S]*?)\[\/accordion\]/g; + const splitContents = contentInsideCollapse.split(accordionRegex); + splitContents.forEach((splitContent: string, index: number) => { + if (index % 2 === 0) { + // This should be freeform content outside of the accordions + if (splitContent.trim()) { + collapseInnerBlocks.push( + createBlock("core/freeform", { + content: splitContent.trim(), + }) ); + } + } else { + // This should be content inside an accordion + const accordionItemsRegex = + /\[accordion-item(?=\s)((?:\s+\w+=(?:'[^']*'|"[^"]*"|“[^”]*”))*)\]([\s\S]*?)\[\/accordion-item\]/g; + const accordionItemMatches = [ + ...splitContent.matchAll(accordionItemsRegex), + ]; + + let innerAccordionBlocks: any = []; + + accordionItemMatches.forEach((accordionItem) => { + const accordionAttributesString = accordionItem[1]; + const accordionContent = accordionItem[2].trim(); - // Create the list of titles with bullet points - const formatTitles = (items: any[], level = 0): string => - items - .map((item) => `${' '.repeat(level)}• ${item.title}\n${item.items ? formatTitles(item.items, level + 1) : ''}`) - .join(""); + const accordionAttributeMatches = + accordionAttributesString.match( + /(\w+)=('[^']*'|"[^"]*"|“[^”]*”)/g + ); + let accordionAttributes: { [key: string]: string } = {}; - const titleList: string = formatTitles(titleStore); + accordionAttributeMatches?.forEach((attr) => { + const [key, fullValue] = attr.split("="); + const actualValue = fullValue.slice(1, -1); + accordionAttributes[key] = actualValue; // <-- Populate the object correctly + }); - // Ask user if they want to proceed and show the array of titles as bullet points - const proceed: boolean = confirm( - `Wichtiger Hinweis\n\nBitte überprüfen Sie Ihre Akkordeonstruktur, um sicherzustellen, dass alle Elemente vorhanden sind.\n\n${titleList}\n\nBestätigen Sie mit Ok, damit die Umwandlung in einen Block durchgeführt wird.` + accordionTitles.push( + { + title: accordionAttributes.title || "No title detected", + type: "accordion", + level: 2 + } ); - if (!proceed) { - // else return it in a freeformblock - // empty blocks - blocks = []; - blocks.push( - createBlock("core/freeform", { - content: originalContent, - }) - ); - } - - return blocks; - }, - }, - ], + innerAccordionBlocks.push( + createBlock( + "rrze-elements/accordion", + { title: accordionAttributes.title || "Enter a title" }, + [ + createBlock("core/freeform", { + content: accordionContent, + }), + ] + ) + ); + }); + + if (innerAccordionBlocks.length) { + collapseInnerBlocks.push( + createBlock( + "rrze-elements/accordions", + {}, + innerAccordionBlocks + ) + ); + } + } + }); + + const colorChoice = (color: string) => { + switch (color) { + case "tf": + return "tf"; + case "nat": + return "nat"; + case "phil": + return "phil"; + case "med": + return "med"; + case "rw": + return "rw"; + default: + return ""; + } + }; + + titleStore.push({ + title: collapseAttributes.title || `Collapse #${collapseIndex + 1}`, + type: "collapse", + level: 1, + items: accordionTitles, + }); + + globalInnerBlocks.push( + createBlock( + "rrze-elements/collapse", + { + title: collapseAttributes.title || "Enter a title", + color: colorChoice(collapseAttributes.color), + jumpName: collapseAttributes.name || "", + icon: validateIcon(collapseAttributes.icon) || "", + }, + collapseInnerBlocks + ) + ); + }); + + const hstart = parseInt(attributes.named.hstart, 10) || 2; + blocks.push( + createBlock( + "rrze-elements/collapsibles", + { hstart: hstart }, + globalInnerBlocks + ) + ); + + const formatTitles = (items: any[], level = 0): string => + items + .map((item) => `${' '.repeat(level)}• ${item.title}\n${item.items ? formatTitles(item.items, level + 1) : ''}`) + .join(""); + + const titleList: string = formatTitles(titleStore); + + // Ask user if they want to proceed and show the array of titles as bullet points + const proceed: boolean = confirm( + `Wichtiger Hinweis\n\nBitte überprüfen Sie Ihre Akkordeonstruktur, um sicherzustellen, dass alle Elemente vorhanden sind.\n\n${titleList}\n\nBestätigen Sie mit Ok, damit die Umwandlung in einen Block durchgeführt wird.` + ); + + if (!proceed) { + blocks = []; + blocks.push( + createBlock("core/freeform", { + content: originalContent, + }) + ); + } + + return blocks; + }, + }, + ], + to: [ + { + type: 'block' as const, + blocks: ['core/paragraph'], // or '*' if you prefer + transform: ( + collapsiblesAttributes: CollapsiblesBlockAttributes, + collapsiblesInnerBlocks: BlockInstance[] + ): BlockInstance[] => { + const output: BlockInstance[] = []; + + // For each collapse/accordion child inside collapsibles, flatten + for (const childBlock of collapsiblesInnerBlocks) { + const flattened = flattenBlockToHeadingsAndInnerBlocks(childBlock); + output.push(...flattened); + } + + return output; + }, + }, + ], } as any; export default transforms; \ No newline at end of file diff --git a/src/blocks/collapsibles/v1.0.13-2/attributes.ts b/src/blocks/collapsibles/v1.0.13-2/attributes.ts new file mode 100644 index 00000000..4ac130ee --- /dev/null +++ b/src/blocks/collapsibles/v1.0.13-2/attributes.ts @@ -0,0 +1,48 @@ +import { BlockAttributes } from "@wordpress/blocks"; + +export const attributes: BlockAttributes = { + expandAllLink: { + type: "boolean", + default: false + }, + hstart: { + type: "integer", + default: 2 + }, + register: { + type: "boolean", + default: false + }, + sameBlockCount: { + type: "integer", + default: 0 + }, + childrenCount: { + type: "integer", + default: 0 + }, + previousBlockIds: { + type: "array", + default: [] + } +}; + +export interface AttributesV1_0_13_2 { + expandAllLink: boolean; + sameBlockCount: number; + previousBlockIds: string[]; + hstart: number; + childrenCount: number; + message: string; + previousBlockClients: string[]; + setAttributes: (newAttributes: { + expandAllLink?: boolean; + sameBlockCount?: number; + previousBlockIds?: string[]; + hstart?: number; + childrenCount?: number; + message?: string; + previousBlockClients?: string[]; + }) => void; + clientId?: string; +} \ No newline at end of file diff --git a/src/blocks/collapsibles/v1.0.13-2/migrate.ts b/src/blocks/collapsibles/v1.0.13-2/migrate.ts new file mode 100644 index 00000000..5faa8c3c --- /dev/null +++ b/src/blocks/collapsibles/v1.0.13-2/migrate.ts @@ -0,0 +1,8 @@ +//@ts-ignore +const migrate = (attributes) => { + return { + ...attributes, + }; +}; + +export default migrate; \ No newline at end of file diff --git a/src/blocks/collapsibles/v1.0.13-2/save.tsx b/src/blocks/collapsibles/v1.0.13-2/save.tsx new file mode 100644 index 00000000..8ca21f8e --- /dev/null +++ b/src/blocks/collapsibles/v1.0.13-2/save.tsx @@ -0,0 +1,31 @@ +import { BlockSaveProps } from "@wordpress/blocks"; +import { useBlockProps, InnerBlocks } from "@wordpress/block-editor"; +import { AttributesV1_0_13_2 } from "./attributes"; + +const Save = ({ attributes }: BlockSaveProps) => { + const blockProps = useBlockProps.save(); + const { expandAllLink } = attributes; + + return ( +
+ {" "} + <> +
+ {expandAllLink && ( +
+ +
+ )} + +
+ +
+ ); +}; + +export default Save; diff --git a/src/blocks/collapsibles/v1.0.13/attributes.ts b/src/blocks/collapsibles/v1.0.13/attributes.ts new file mode 100644 index 00000000..24564fc0 --- /dev/null +++ b/src/blocks/collapsibles/v1.0.13/attributes.ts @@ -0,0 +1,48 @@ +import { BlockAttributes } from "@wordpress/blocks"; + +export const attributes: BlockAttributes = { + expandAllLink: { + type: "boolean", + default: false + }, + hstart: { + type: "integer", + default: 2 + }, + register: { + type: "boolean", + default: false + }, + sameBlockCount: { + type: "integer", + default: 0 + }, + childrenCount: { + type: "integer", + default: 0 + }, + previousBlockIds: { + type: "array", + default: [] + } +}; + +export interface AttributesV1_0_13 { + expandAllLink: boolean; + sameBlockCount: number; + previousBlockIds: string[]; + hstart: number; + childrenCount: number; + message: string; + previousBlockClients: string[]; + setAttributes: (newAttributes: { + expandAllLink?: boolean; + sameBlockCount?: number; + previousBlockIds?: string[]; + hstart?: number; + childrenCount?: number; + message?: string; + previousBlockClients?: string[]; + }) => void; + clientId?: string; +} \ No newline at end of file diff --git a/src/blocks/collapsibles/v1.0.13/migrate.ts b/src/blocks/collapsibles/v1.0.13/migrate.ts new file mode 100644 index 00000000..5faa8c3c --- /dev/null +++ b/src/blocks/collapsibles/v1.0.13/migrate.ts @@ -0,0 +1,8 @@ +//@ts-ignore +const migrate = (attributes) => { + return { + ...attributes, + }; +}; + +export default migrate; \ No newline at end of file diff --git a/src/blocks/collapsibles/v1.0.13/save.tsx b/src/blocks/collapsibles/v1.0.13/save.tsx new file mode 100644 index 00000000..07ea2bc4 --- /dev/null +++ b/src/blocks/collapsibles/v1.0.13/save.tsx @@ -0,0 +1,31 @@ +import { BlockSaveProps } from "@wordpress/blocks"; +import { useBlockProps, InnerBlocks } from "@wordpress/block-editor"; +import { AttributesV1_0_13 } from "./attributes"; + +const Save = ({ attributes }: BlockSaveProps) => { + const blockProps = useBlockProps.save(); + const { expandAllLink } = attributes; + + return ( +
+ {" "} + <> +
+ {expandAllLink && ( +
+ +
+ )} + +
+ +
+ ); +}; + +export default Save; diff --git a/src/blocks/collapsibles/v1.0.3/save.tsx b/src/blocks/collapsibles/v1.0.3/save.tsx index 3e6c42c2..bcf2d640 100644 --- a/src/blocks/collapsibles/v1.0.3/save.tsx +++ b/src/blocks/collapsibles/v1.0.3/save.tsx @@ -3,12 +3,7 @@ import { BlockSaveProps } from "@wordpress/blocks"; import { AttributesV1 } from "./attributes"; import { __ } from "@wordpress/i18n"; -type SaveProps = { - sameBlockCount: number; - expandAllLink: boolean; -}; - -const Save: React.FC> = ({ attributes }) => { +const Save = ({ attributes }: BlockSaveProps) => { const blockProps = useBlockProps.save(); const { sameBlockCount, expandAllLink } = attributes; diff --git a/src/blocks/columns/edit.tsx b/src/blocks/columns/edit.tsx index bccd634e..4ed35b05 100644 --- a/src/blocks/columns/edit.tsx +++ b/src/blocks/columns/edit.tsx @@ -12,6 +12,8 @@ import { import { RangeControl, PanelBody, ToggleControl } from "@wordpress/components"; import { __ } from "@wordpress/i18n"; import { useEffect } from "@wordpress/element"; +import { useDispatch } from "@wordpress/data"; +import { store as blockEditorStore } from "@wordpress/block-editor"; interface EditProps { blockProps: string[]; @@ -41,6 +43,8 @@ export default function Edit({ setAttributes, }: EditProps) { const props = useBlockProps(); + const { __unstableMarkNextChangeAsNotPersistent } = + useDispatch(blockEditorStore); const { numberOfColumns, @@ -90,12 +94,14 @@ export default function Edit({ // Lookup color slug based on hex value useEffect(() => { if (!color) { + __unstableMarkNextChangeAsNotPersistent(); setAttributes({ colorSlug: "colorless" }); } else { const colorEntry = colorDataAlert.find( (c) => c.color.toUpperCase() === color.toUpperCase() ); if (colorEntry) { + __unstableMarkNextChangeAsNotPersistent(); setAttributes({ colorSlug: colorEntry.slug }); } } @@ -113,6 +119,7 @@ export default function Edit({ useEffect(() => { if (!attributes.color) { + __unstableMarkNextChangeAsNotPersistent(); setAttributes({ textColor: undefined, color: "default" }); } }, [attributes.color]); @@ -137,30 +144,11 @@ export default function Edit({ step={1} value={numberOfColumns} /> - {/* */} - {/* */} { - let cleanData = data.shortcode?.content; - const numberChoice = (number: string) => { - return parseInt(number); - }; - const blockContent = createBlock("core/freeform", { - content: cleanData, - }); - return createBlock( - metadata.name, - { - numberOfColumns: numberChoice(attributes.named.number) || 2, - }, - [blockContent] - ); - }, - }, - ], - }, + transforms: transforms } as any ); diff --git a/src/blocks/columns/transforms.ts b/src/blocks/columns/transforms.ts new file mode 100644 index 00000000..40ab52ca --- /dev/null +++ b/src/blocks/columns/transforms.ts @@ -0,0 +1,78 @@ +import { createBlock, BlockInstance } from "@wordpress/blocks"; +import metadata from "./block.json"; + +interface ShortcodeTransformAttributes { + named: { + number?: string; + title?: string; + }; + number: string; + content: string; +} + +const transforms = { + from: [ + { + type: 'block' as const, + isMultiBlock: true, + blocks: ["*"], + isMatch: (_attributes: any, blocks: any) => { + return !blocks.some((block: any) => block.name === 'rrze-elements/columns'); + }, + + __experimentalConvert: (blocks: BlockInstance[]) => { + const columns: BlockInstance[] = []; + + blocks.forEach((block) => { + columns.push( + createBlock( + block.name, + block.attributes, + block.innerBlocks + ) + ); + }); + + return createBlock( + 'rrze-elements/columns', + {}, + columns + ); + }, + }, + { + type: "shortcode", + tag: "text-columns", + transform: (attributes: ShortcodeTransformAttributes, data: any) => { + let cleanData = data.shortcode?.content; + const numberChoice = (number: string) => { + return parseInt(number); + }; + const blockContent = createBlock("core/freeform", { + content: cleanData, + }); + return createBlock( + metadata.name, + { + numberOfColumns: numberChoice(attributes.named.number) || 2, + }, + [blockContent] + ); + }, + }, + ], + to: [ + { + type: 'block' as const, + blocks: [ 'core/paragraph' ], + transform: ( + attributes: any, + innerBlocks: BlockInstance[] + ): BlockInstance[] => { + return innerBlocks; + }, + }, + ], +}; + +export default transforms; \ No newline at end of file diff --git a/src/blocks/insertion/index.tsx b/src/blocks/insertion/index.tsx index 1586a838..073159cc 100644 --- a/src/blocks/insertion/index.tsx +++ b/src/blocks/insertion/index.tsx @@ -1,26 +1,54 @@ -import { registerBlockType } from '@wordpress/blocks'; +import { registerBlockType } from "@wordpress/blocks"; -import Edit from './edit'; -import save from './save'; -import metadata from './block.json'; -import './editor.scss'; +import Edit from "./edit"; +import save from "./save"; +import metadata from "./block.json"; +import "./editor.scss"; +import transforms from "./transforms"; -registerBlockType( metadata.name as any, { - icon: { - src: - }, - __experimentalLabel: (attributes: any, { context }: any) => { - const { title } = attributes; +registerBlockType( + metadata.name as any, + { + icon: { + src: ( + + + + + ), + }, + __experimentalLabel: (attributes: any, { context }: any) => { + const { title } = attributes; - // In the list view, use the block's title as the label. - // If the title is empty, fall back to the default label. - if (context === 'list-view' && title) { - return title; - } - }, - //* @see ./edit.js - edit: Edit, + // In the list view, use the block's title as the label. + // If the title is empty, fall back to the default label. + if (context === "list-view" && title) { + return title; + } + }, + //* @see ./edit.js + edit: Edit, - // @see ./save.js - save, -} as any ); + // @see ./save.js + save, + transforms: transforms, + } as any, +); diff --git a/src/blocks/insertion/transforms.ts b/src/blocks/insertion/transforms.ts new file mode 100644 index 00000000..07db1fef --- /dev/null +++ b/src/blocks/insertion/transforms.ts @@ -0,0 +1,48 @@ +import { createBlock, BlockInstance } from "@wordpress/blocks"; + +const transforms = { + from: [ + { + type: 'block' as const, + isMultiBlock: true, + blocks: ["core/paragraph"], + isMatch: (_attributes: any, blocks: any) => { + return !blocks.some((block: any) => block.name === 'rrze-elements/insertion'); + }, + + __experimentalConvert: (blocks: BlockInstance[]) => { + const columns: BlockInstance[] = []; + + blocks.forEach((block) => { + columns.push( + createBlock( + block.name, + block.attributes, + block.innerBlocks + ) + ); + }); + + return createBlock( + 'rrze-elements/insertion', + {}, + columns + ); + }, + }, + ], + to: [ + { + type: 'block' as const, + blocks: ['core/paragraph'], + transform: ( + attributes: any, + innerBlocks: BlockInstance[] + ): BlockInstance[] => { + return innerBlocks; + }, + }, + ], +}; + +export default transforms; diff --git a/src/blocks/notice/index.js b/src/blocks/notice/index.js index 19f3905d..c6805d30 100644 --- a/src/blocks/notice/index.js +++ b/src/blocks/notice/index.js @@ -5,6 +5,7 @@ import save from './save'; import metadata from './block.json'; import './editor.scss'; import variations from './variations'; +import transforms from './transforms'; registerBlockType( metadata.name, { icon: { @@ -15,4 +16,5 @@ registerBlockType( metadata.name, { edit: Edit, // @see ./save.js save, + transforms: transforms, } ); diff --git a/src/blocks/notice/transforms.ts b/src/blocks/notice/transforms.ts new file mode 100644 index 00000000..d71db4bb --- /dev/null +++ b/src/blocks/notice/transforms.ts @@ -0,0 +1,48 @@ +import { createBlock, BlockInstance } from "@wordpress/blocks"; + +const transforms = { + from: [ + { + type: 'block' as const, + isMultiBlock: true, + blocks: ["core/paragraph"], + isMatch: (_attributes: any, blocks: any) => { + return !blocks.some((block: any) => block.name === 'rrze-elements/notice'); + }, + + __experimentalConvert: (blocks: BlockInstance[]) => { + const columns: BlockInstance[] = []; + + blocks.forEach((block) => { + columns.push( + createBlock( + block.name, + block.attributes, + block.innerBlocks + ) + ); + }); + + return createBlock( + 'rrze-elements/notice', + {}, + columns + ); + }, + }, + ], + to: [ + { + type: 'block' as const, + blocks: ['core/paragraph'], + transform: ( + attributes: any, + innerBlocks: BlockInstance[] + ): BlockInstance[] => { + return innerBlocks; + }, + }, + ], +}; + +export default transforms;