!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.app.components,a=window.nisje.app.constants;(0,t.addFilter)("EventFormEditInitialState","normisjon-event-taxonomies",((e,n)=>((0,a.getConstant)("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,a.getConstant)("normisjonEventTaxonomies",[]);return(0,n.createElement)(i.EventCreateControls,null,(t=>{let{values:i,setValues:s}=t;return e.map((e=>{const t=(0,o.get)(i,e.key,0);return(0,n.createElement)(r.SelectControl,{key:e.key,label:e.name,value:t,options:e.options,onChange:n=>s({...i,[e.key]:n})})}))}))}}),(window.nisje=window.nisje||{}).pluginNormisjon=e}();