!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 n=window.wp.element,o=window.lodash,t=window.wp.hooks,i=window.nisje.pluginEvents,s=window.nisje.settings,r=window.nisje.components;(0,t.addFilter)("EventFormEditInitialState","normisjon-event-taxonomies",((e,n)=>((0,s.getOption)("normisjonEventTaxonomies",[]).forEach((t=>{const i=(0,o.get)(n,t.key,[]);(0,o.isEmpty)(i)||(e[t.key]=i[0])})),e))),(0,s.registerPlugin)("normisjon",{render(){const e=(0,s.getOption)("normisjonEventTaxonomies",[]);return(0,n.createElement)(i.EventCreateControls,null,(({values:t,setValues:i})=>e.map((e=>{const s=(0,o.get)(t,e.key,0);return(0,n.createElement)(r.SelectControl,{key:e.key,label:e.name,value:s,options:e.options,onChange:n=>i({...t,[e.key]:n})})}))))}}),(window.nisje=window.nisje||{}).pluginNormisjon=e}();