!function(){"use strict";var e={n:function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ObjectRenderer:function(){return m}});var n,r=window.vendor.React,o=e.n(r),a=window.lodash,i=new Uint8Array(16);function u(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var l=function(e){return"string"==typeof e&&d.test(e)},c=[],s=0;s<256;++s)c.push((s+256).toString(16).substr(1));var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!l(n))throw TypeError("Stringified UUID is invalid");return n};var f=function(e,t,n){var r=(e=e||{}).random||(e.rng||u)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return v(r)},p=window.divi.window;const m=({initialExpand:e=!0,values:t})=>{const n=[],[i,u]=(0,r.useState)(e);return i&&(0,a.forEach)(t,((e,t)=>{const i=(0,a.isString)(e)?e:(0,r.createElement)(m,{values:e}),u=o().createElement("div",{className:"et-vb-object-renderer-value-item",key:`et-vb-object-renderer-value-item--${t}-${f()}`},o().createElement("span",{className:"et-vb-object-renderer-value-item-name"},t),o().createElement("span",{className:"et-vb-object-renderer-value-item-value"},i));n.push(u)})),o().createElement("div",{className:"et-vb-object-renderer-value"},o().createElement("button",{type:"button",className:"et-vb-object-renderer-value-toggle","data-status":i?"expanded":"collapsed",onClick:p.handleOnClickFallback,onMouseDown:()=>u(!i)},o().createElement("span",{className:"et-vb-object-renderer-value-toggle-label"},i?"Collapse":"Expand")),i?n:"...")};(window.divi=window.divi||{}).objectRenderer=t}();