!function(){"use strict";var e={};(function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e);var r=window.wp.i18n,t=window.wp.blocks,n=window.wp.element,o=window.wp.primitives,i=(0,n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(o.Path,{fillRule:"evenodd",d:"M6.863 13.644L5 13.25h-.5a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5H5L18 6.5h2V16h-2l-3.854-.815.026.008a3.75 3.75 0 01-7.31-1.549zm1.477.313a2.251 2.251 0 004.356.921l-4.356-.921zm-2.84-3.28L18.157 8h.343v6.5h-.343L5.5 11.823v-1.146z",clipRule:"evenodd"}));function l(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var a=window.wp.blockEditor;function c(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function u(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}var s=function(e){var r=e.icon,t=e.size,o=void 0===t?24:t,i=function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,["icon","size"]);return(0,n.cloneElement)(r,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?u(Object(t),!0).forEach((function(r){c(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({width:o,height:o},i))},f=window.nisje.components,d=window.nisje.format,p=window.nisje.fullSiteEditing;(0,t.registerBlockType)("nisje/card-retriever",{title:(0,r.__)("Retriever"),icon:i,edit:function(){var e,t,o=(e=(0,p.useDarkClassname)(),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=t){var n,o,i=[],_n=!0,l=!1;try{for(t=t.call(e);!(_n=(n=t.next()).done)&&(i.push(n.value),!r||i.length!==r);_n=!0);}catch(e){l=!0,o=e}finally{try{_n||null==t.return||t.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,r){if(e){if("string"==typeof e)return l(e,r);var t=Object.prototype.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)?l(e,r):void 0}}(e,t)||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.")}()),c=o[0],u=o[1],m=(0,a.useBlockProps)({style:u,className:(0,d.classnames)("editor-retriever",c)}),w=(0,a.__experimentalUseColors)([{name:"backgroundColor"}]),y=w.BackgroundColor,b=w.InspectorControlsColorPanel;return(0,n.createElement)(n.Fragment,null,b,(0,n.createElement)(y,null,(0,n.createElement)(f.BaseCard,m,(0,n.createElement)("div",null,(0,n.createElement)(s,{icon:i,size:40}),(0,n.createElement)(f.TextDeprecated,{as:"h2",variant:"title-medium"},(0,r.__)("Retriever"))))))}}),(window.nisje=window.nisje||{}).pluginRetrieverAdmin=e}();