!function(){"use strict";var e={n:function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},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 b}});var r,n=window.vendor.React,o=e.n(n),a=window.lodash,i=new Uint8Array(16);function u(){if(!r&&!(r="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 r(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,r=(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(r))throw TypeError("Stringified UUID is invalid");return r};var f=function(e,t,r){var n=(e=e||{}).random||(e.rng||u)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return v(n)},p=window.divi.window;const b=({initialExpand:e=!0,values:t})=>{const r=[],[i,u]=(0,n.useState)(e);return i&&(0,a.forEach)(t,((e,t)=>{const i=(0,a.isString)(e)||(0,a.isNumber)(e)?e:(0,n.createElement)(b,{values:e}),u=o().createElement("div",{className:"et-vb-object-renderer-value-item et-vb-object-renderer-value-item--"+typeof i,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));r.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?r:"...")};(window.divi=window.divi||{}).objectRenderer=t}();