Your IP : 3.144.242.235


Current Path : /home/ncdcgo/public_html/wp-content/plugins/gutena-accordion/build/
Upload File :
Current File : /home/ncdcgo/public_html/wp-content/plugins/gutena-accordion/build/index.js

!function(){"use strict";var e,t={514:function(){function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},e.apply(this,arguments)}var t=window.wp.element,n=window.wp.blocks,a=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gutena/accordion-panel","title":"Panel","category":"gutena","parent":["gutena/accordion"],"description":"Accordion Panel Block by Gutena","textdomain":"gutena-accordion","supports":{"html":false,"inserter":false,"reusable":false},"editorScript":"file:./index.js"}'),l=window.wp.i18n,o=window.wp.blockEditor;const r=["gutena/accordion-panel-title","gutena/accordion-panel-content"],i=[["gutena/accordion-panel-title"],["gutena/accordion-panel-content"]];(0,n.registerBlockType)(a,{edit:function(){const e=(0,o.useBlockProps)({className:"gutena-accordion-block__panel"}),n=(0,o.useInnerBlocksProps)(e,{allowedBlocks:r,template:i});return(0,t.createElement)("div",n)},save:function(){const e=o.useBlockProps.save({className:"gutena-accordion-block__panel"}),n=o.useInnerBlocksProps.save(e);return(0,t.createElement)("div",n)},icon:(0,t.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{x:"2",y:"2",width:"1.5",height:"20",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"21",y:"2",width:"1.5",height:"20",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"2",y:"3",width:"1.5",height:"20.5",transform:"rotate(-90 2 3)",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"2",y:"22",width:"1.5",height:"20.5",transform:"rotate(-90 2 22)",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"5",y:"13",width:"7",height:"14",transform:"rotate(-90 5 13)",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"5",y:"17",width:"2",height:"14",transform:"rotate(-90 5 17)",fill:"#0EA489"}))});var c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gutena/accordion-panel-title","title":"Title","category":"gutena","parent":["gutena/accordion-panel"],"description":"Accordion Panel Title Block by Gutena","textdomain":"gutena-accordion","supports":{"html":false,"inserter":false,"reusable":false,"spacing":{"padding":true,"margin":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true}},"attributes":{"panelTriggerIconGlobal":{"type":"string"}},"usesContext":["gutenaAccordionTriggerIcon"],"editorScript":"file:./index.js"}');const p=[["core/paragraph"]];(0,n.registerBlockType)(c,{edit:function(e){let{attributes:n,context:a,setAttributes:l}=e;const{panelTriggerIconGlobal:r}=n,i=a?.gutenaAccordionTriggerIcon;(0,t.useEffect)((()=>{r!=i&&l({panelTriggerIconGlobal:i})}),[i]);const c=(0,o.useBlockProps)({className:"gutena-accordion-block__panel-title editor"});return(0,t.createElement)("div",c,(0,t.createElement)("div",{className:"gutena-accordion-block__panel-title-inner"},(0,t.createElement)(o.InnerBlocks,{template:p}),"none"!=r&&(0,t.createElement)("div",{className:`trigger-${r}`},(0,t.createElement)("div",{className:"horizontal"}),(0,t.createElement)("div",{className:"vertical"}))))},save:function(e){let{attributes:n}=e;const a=o.useBlockProps.save({className:"gutena-accordion-block__panel-title"});return(0,t.createElement)("div",a,(0,t.createElement)("div",{className:"gutena-accordion-block__panel-title-inner"},(0,t.createElement)(o.InnerBlocks.Content,null),"none"!=n.panelTriggerIconGlobal&&(0,t.createElement)("div",{className:`trigger-${n.panelTriggerIconGlobal}`},(0,t.createElement)("div",{className:"horizontal"}),(0,t.createElement)("div",{className:"vertical"}))))},icon:(0,t.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M4 2H20C20.2652 2 20.5196 2.10536 20.7071 2.29289C20.8946 2.48043 21 2.73478 21 3V22.276C21.0001 22.3594 20.9793 22.4416 20.9395 22.5149C20.8997 22.5882 20.8422 22.6505 20.7722 22.6959C20.7023 22.7413 20.622 22.7685 20.5388 22.775C20.4557 22.7815 20.3722 22.767 20.296 22.733L12 19.03L3.704 22.732C3.6279 22.766 3.54451 22.7805 3.46141 22.774C3.37831 22.7676 3.29813 22.7405 3.22818 22.6952C3.15822 22.6499 3.1007 22.5878 3.06085 22.5146C3.021 22.4414 3.00008 22.3593 3 22.276V3C3 2.73478 3.10536 2.48043 3.29289 2.29289C3.48043 2.10536 3.73478 2 4 2ZM19 19.965V4H5V19.965L12 16.841L19 19.965ZM12 13.5L9.061 15.045L9.622 11.773L7.245 9.455L10.531 8.977L12 6L13.47 8.977L16.755 9.455L14.378 11.773L14.938 15.045L12 13.5Z",fill:"#0EA489"}))});var s=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gutena/accordion-panel-content","title":"Content","category":"gutena","parent":["gutena/accordion-panel"],"description":"Gutena Accordion Panel Content","textdomain":"gutena-accordion","supports":{"html":false,"inserter":false,"reusable":false,"spacing":{"padding":true,"margin":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true}},"editorScript":"file:./index.js"}');const g=[["core/paragraph"]];(0,n.registerBlockType)(s,{edit:function(){const e=(0,o.useBlockProps)({className:"gutena-accordion-block__panel-content editor"});return(0,t.createElement)("div",e,(0,t.createElement)("div",{className:"gutena-accordion-block__panel-content-inner"},(0,t.createElement)(o.InnerBlocks,{template:g})))},save:function(){const e=o.useBlockProps.save({className:"gutena-accordion-block__panel-content"});return(0,t.createElement)("div",e,(0,t.createElement)("div",{className:"gutena-accordion-block__panel-content-inner"},(0,t.createElement)(o.InnerBlocks.Content,null)))},icon:(0,t.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("g",{"clip-path":"url(#clip0_3264_121)"},(0,t.createElement)("rect",{x:"2",y:"17",width:"9",height:"2",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"14",y:"17",width:"8",height:"2",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"17",y:"22",width:"8",height:"2",transform:"rotate(-90 17 22)",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"2",y:"3",width:"20",height:"2",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"2",y:"10",width:"20",height:"2",fill:"#0EA489"})),(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:"clip0_3264_121"},(0,t.createElement)("rect",{width:"24",height:"24",fill:"white"}))))});var d=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gutena/accordion","title":"Accordion","category":"gutena","keywords":["faq","accordion","block","accordions","toggles"],"description":"Accordion Block by Gutena","textdomain":"gutena-accordion","supports":{"align":["wide","full"],"html":false,"spacing":{"padding":true,"margin":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"__experimentalSettings":true,"__experimentalLayout":true},"attributes":{"uniqueId":{"type":"string"},"panelPadding":{"type":"object"},"panelSpaceBetween":{"type":"number","default":10},"panelCollapse":{"type":"boolean"},"panelDefaultOpen":{"type":"string"},"panelBorder":{"type":"object"},"panelRadius":{"type":"object"},"panelBackgroundColor":{"type":"string"},"panelBorderOpen":{"type":"object"},"panelRadiusOpen":{"type":"object"},"panelBackgroundColorOpen":{"type":"string"},"panelTitleTag":{"type":"string","default":"div"},"panelTitleColor":{"type":"string"},"panelContentColor":{"type":"string"},"panelTitleFontFamily":{"type":"string"},"panelTitleFontSize":{"type":"string"},"panelTitleFontStyle":{"type":"string"},"panelTitleFontWeight":{"type":"string"},"panelTitleLineHeight":{"type":"number","default":1.6},"panelTitleTextTransform":{"type":"string","default":""},"panelContentFontFamily":{"type":"string"},"panelContentFontSize":{"type":"string"},"panelContentFontStyle":{"type":"string"},"panelContentFontWeight":{"type":"string"},"panelContentLineHeight":{"type":"number","default":1.6},"panelContentTextTransform":{"type":"string","default":""},"panelTitleContentGap":{"type":"number","default":10},"panelTriggerIcon":{"type":"string","default":"none"},"showVariation":{"type":"boolean","default":true},"blockStyles":{"type":"object"}},"providesContext":{"gutenaAccordionTriggerIcon":"panelTriggerIcon"},"editorScript":"file:./index.js","script":"file:./view.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}'),u=window.wp.data,h=window.wp.components,m=window.lodash,f=[{name:"default",title:(0,l.__)("Default"),description:(0,l.__)("Default Style"),icon:(0,t.createElement)("svg",{width:"261",height:"175",viewBox:"0 0 261 175",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{x:"0.157349",width:"260",height:"175",fill:"white"}),(0,t.createElement)("rect",{x:"19.8573",y:"93.4993",width:"220.6",height:"22.3721",fill:"white",stroke:"#B3C8FD"}),(0,t.createElement)("rect",{x:"30.3506",y:"101.798",width:"86.7885",height:"5.49933",rx:"2.74966",fill:"#94ABE7"}),(0,t.createElement)("rect",{x:"19.8573",y:"127.595",width:"220.6",height:"22.3721",fill:"white",stroke:"#B3C8FD"}),(0,t.createElement)("rect",{x:"30.3506",y:"135.894",width:"86.7885",height:"5.49933",rx:"2.74966",fill:"#94ABE7"}),(0,t.createElement)("rect",{x:"19.8573",y:"25.0327",width:"220.6",height:"58.9427",fill:"white",stroke:"#B3C8FD"}),(0,t.createElement)("rect",{x:"30.3506",y:"34.7065",width:"82.5694",height:"5.49933",rx:"2.74966",fill:"#94ABE7"}),(0,t.createElement)("rect",{opacity:"0.7",x:"30.3506",y:"48.1799",width:"176.698",height:"1.3752",rx:"0.687601",fill:"#94ABE7"}),(0,t.createElement)("rect",{opacity:"0.7",x:"30.3506",y:"56.429",width:"186.607",height:"1.3752",rx:"0.687601",fill:"#94ABE7"}),(0,t.createElement)("rect",{opacity:"0.7",x:"30.3506",y:"64.678",width:"176.698",height:"1.3752",rx:"0.687601",fill:"#94ABE7"}),(0,t.createElement)("rect",{opacity:"0.7",x:"30.3506",y:"72.9268",width:"73.762",height:"1.3752",rx:"0.687601",fill:"#94ABE7"}),(0,t.createElement)("rect",{x:"224.557",y:"36.7991",width:"6",height:"1.22697",fill:"#6884CA"}),(0,t.createElement)("rect",{x:"228.157",y:"34.3457",width:"6.13318",height:"1.2",transform:"rotate(90 228.157 34.3457)",fill:"#6884CA"}),(0,t.createElement)("rect",{x:"224.557",y:"103.855",width:"6",height:"1.22697",fill:"#6884CA"}),(0,t.createElement)("rect",{x:"228.157",y:"101.402",width:"6.13318",height:"1.2",transform:"rotate(90 228.157 101.402)",fill:"#6884CA"}),(0,t.createElement)("rect",{x:"224.557",y:"138.201",width:"6",height:"1.22697",fill:"#6884CA"}),(0,t.createElement)("rect",{x:"228.157",y:"135.748",width:"6.13318",height:"1.2",transform:"rotate(90 228.157 135.748)",fill:"#6884CA"})),isDefault:!0,innerBlocks:[["gutena/accordion-panel",{},[["gutena/accordion-panel-title",{},[["core/heading",{content:"Add your title here",panelTriggerIconGlobal:"plus-minus",textAlign:"left",level:6,style:{spacing:{margin:{top:"0px",right:"0px",bottom:"0px",left:"0px"}}}}]]],["gutena/accordion-panel-content",{},[["core/paragraph",{content:"Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.",color:{text:"#505050"},style:{spacing:{margin:{top:"0",bottom:"0"}}}}]]]]]],attributes:{showVariation:!1,panelPadding:{top:"15px",right:"15px",bottom:"15px",left:"15px"},panelSpaceBetween:15,panelCollapse:!0,panelBackgroundColor:"#ffffff",panelTitleTag:"h6",panelTitleColor:"#252740",panelContentColor:"#575b7a",panelTitleFontSize:"18px",panelContentFontSize:"14px",panelTitleContentGap:13,panelTriggerIcon:"up-down"},scope:["block"]},{name:"style-one",title:(0,l.__)("Style 1"),description:(0,l.__)("Style 1 - Plus Minus"),icon:(0,t.createElement)("svg",{width:"261",height:"175",viewBox:"0 0 261 175",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{x:"0.157349",width:"260",height:"175",fill:"white"}),(0,t.createElement)("rect",{x:"19.8573",y:"93.4993",width:"220.6",height:"22.3721",fill:"white",stroke:"#B3C8FD"}),(0,t.createElement)("rect",{x:"30.3506",y:"101.798",width:"86.7885",height:"5.49933",rx:"2.74966",fill:"#94ABE7"}),(0,t.createElement)("rect",{x:"19.8573",y:"127.595",width:"220.6",height:"22.3721",fill:"white",stroke:"#B3C8FD"}),(0,t.createElement)("rect",{x:"30.3506",y:"135.894",width:"86.7885",height:"5.49933",rx:"2.74966",fill:"#94ABE7"}),(0,t.createElement)("rect",{x:"19.8573",y:"25.0327",width:"220.6",height:"58.9427",fill:"white",stroke:"#B3C8FD"}),(0,t.createElement)("rect",{x:"30.3506",y:"34.7065",width:"82.5694",height:"5.49933",rx:"2.74966",fill:"#94ABE7"}),(0,t.createElement)("rect",{opacity:"0.7",x:"30.3506",y:"48.1799",width:"176.698",height:"1.3752",rx:"0.687601",fill:"#94ABE7"}),(0,t.createElement)("rect",{opacity:"0.7",x:"30.3506",y:"56.429",width:"186.607",height:"1.3752",rx:"0.687601",fill:"#94ABE7"}),(0,t.createElement)("rect",{opacity:"0.7",x:"30.3506",y:"64.678",width:"176.698",height:"1.3752",rx:"0.687601",fill:"#94ABE7"}),(0,t.createElement)("rect",{opacity:"0.7",x:"30.3506",y:"72.9268",width:"73.762",height:"1.3752",rx:"0.687601",fill:"#94ABE7"}),(0,t.createElement)("rect",{x:"224.557",y:"36.7991",width:"6",height:"1.22697",fill:"#6884CA"}),(0,t.createElement)("rect",{x:"228.157",y:"34.3457",width:"6.13318",height:"1.2",transform:"rotate(90 228.157 34.3457)",fill:"#6884CA"}),(0,t.createElement)("rect",{x:"224.557",y:"103.855",width:"6",height:"1.22697",fill:"#6884CA"}),(0,t.createElement)("rect",{x:"228.157",y:"101.402",width:"6.13318",height:"1.2",transform:"rotate(90 228.157 101.402)",fill:"#6884CA"}),(0,t.createElement)("rect",{x:"224.557",y:"138.201",width:"6",height:"1.22697",fill:"#6884CA"}),(0,t.createElement)("rect",{x:"228.157",y:"135.748",width:"6.13318",height:"1.2",transform:"rotate(90 228.157 135.748)",fill:"#6884CA"})),innerBlocks:[["gutena/accordion-panel",{},[["gutena/accordion-panel-title",{},[["core/heading",{content:"Add your title here",panelTriggerIconGlobal:"plus-minus",textAlign:"left",level:6,style:{spacing:{margin:{top:"0px",right:"0px",bottom:"0px",left:"0px"}}}}]]],["gutena/accordion-panel-content",{},[["core/paragraph",{content:"Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.",color:{text:"#505050"},style:{spacing:{margin:{top:"0",bottom:"0"}}}}]]]]],["gutena/accordion-panel",{},[["gutena/accordion-panel-title",{},[["core/heading",{content:"Add your title here",panelTriggerIconGlobal:"plus-minus",textAlign:"left",level:6,style:{spacing:{margin:{top:"0px",right:"0px",bottom:"0px",left:"0px"}}}}]]],["gutena/accordion-panel-content",{},[["core/paragraph",{content:"Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.",color:{text:"#505050"},style:{spacing:{margin:{top:"0",bottom:"0"}}}}]]]]],["gutena/accordion-panel",{},[["gutena/accordion-panel-title",{},[["core/heading",{content:"Add your title here",panelTriggerIconGlobal:"plus-minus",textAlign:"left",level:6,style:{spacing:{margin:{top:"0px",right:"0px",bottom:"0px",left:"0px"}}}}]]],["gutena/accordion-panel-content",{},[["core/paragraph",{content:"Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.",color:{text:"#505050"},style:{spacing:{margin:{top:"0",bottom:"0"}}}}]]]]]],attributes:{showVariation:!1,panelPadding:{top:"15px",right:"15px",bottom:"15px",left:"15px"},panelSpaceBetween:15,panelCollapse:!1,panelBorder:{color:"#d8dfef",style:"solid",width:"1px"},panelBackgroundColor:"#ffffff",panelTitleTag:"h6",panelTitleColor:"#252740",panelContentColor:"#575b7a",panelTitleFontSize:"18px",panelContentFontSize:"14px",panelTitleContentGap:13,panelTriggerIcon:"plus-minus"},scope:["block"]},{name:"style-two",title:(0,l.__)("Style 2"),description:(0,l.__)("Style 2 - with Dropdown"),icon:(0,t.createElement)("svg",{width:"260",height:"175",viewBox:"0 0 260 175",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"260",height:"175",fill:"white"}),(0,t.createElement)("rect",{x:"19.7",y:"93.4995",width:"220.6",height:"22.3721",fill:"white",stroke:"#B3C8FD"}),(0,t.createElement)("rect",{x:"30.1932",y:"101.798",width:"86.7885",height:"5.49933",rx:"2.74966",fill:"#94ABE7"}),(0,t.createElement)("rect",{x:"19.7",y:"127.595",width:"220.6",height:"22.3721",fill:"white",stroke:"#B3C8FD"}),(0,t.createElement)("rect",{x:"30.1932",y:"135.894",width:"86.7885",height:"5.49933",rx:"2.74966",fill:"#94ABE7"}),(0,t.createElement)("rect",{x:"19.7",y:"25.0327",width:"220.6",height:"58.9427",fill:"white",stroke:"#B3C8FD"}),(0,t.createElement)("rect",{x:"30.1932",y:"34.7063",width:"82.5694",height:"5.49933",rx:"2.74966",fill:"#94ABE7"}),(0,t.createElement)("rect",{opacity:"0.7",x:"30.1932",y:"48.1797",width:"176.698",height:"1.37483",rx:"0.687416",fill:"#94ABE7"}),(0,t.createElement)("rect",{opacity:"0.7",x:"30.1932",y:"56.429",width:"186.607",height:"1.37483",rx:"0.687416",fill:"#94ABE7"}),(0,t.createElement)("rect",{opacity:"0.7",x:"30.1932",y:"64.678",width:"176.698",height:"1.37483",rx:"0.687416",fill:"#94ABE7"}),(0,t.createElement)("rect",{opacity:"0.7",x:"30.1932",y:"72.9265",width:"73.762",height:"1.37483",rx:"0.687416",fill:"#94ABE7"}),(0,t.createElement)("path",{d:"M224.59 39.3414L228 35.8555L231.41 39.3414",stroke:"#6884CA",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M224.59 103.583L228 107.069L231.41 103.583",stroke:"#6884CA",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M224 137.446L227.41 140.932L230.821 137.446",stroke:"#6884CA",strokeWidth:"2"})),innerBlocks:[["gutena/accordion-panel",{},[["gutena/accordion-panel-title",{},[["core/heading",{content:"Add your title here",panelTriggerIconGlobal:"up-down",textAlign:"left",level:6,style:{spacing:{margin:{top:"0px",right:"0px",bottom:"0px",left:"0px"}}}}]]],["gutena/accordion-panel-content",{},[["core/paragraph",{content:"Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.",color:{text:"#505050"},style:{spacing:{margin:{top:"0",bottom:"0"}}}}]]]]],["gutena/accordion-panel",{},[["gutena/accordion-panel-title",{},[["core/heading",{content:"Add your title here",panelTriggerIconGlobal:"up-down",textAlign:"left",level:6,style:{spacing:{margin:{top:"0px",right:"0px",bottom:"0px",left:"0px"}}}}]]],["gutena/accordion-panel-content",{},[["core/paragraph",{content:"Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.",color:{text:"#505050"},style:{spacing:{margin:{top:"0",bottom:"0"}}}}]]]]],["gutena/accordion-panel",{},[["gutena/accordion-panel-title",{},[["core/heading",{content:"Add your title here",panelTriggerIconGlobal:"up-down",textAlign:"left",level:6,style:{spacing:{margin:{top:"0px",right:"0px",bottom:"0px",left:"0px"}}}}]]],["gutena/accordion-panel-content",{},[["core/paragraph",{content:"Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.",color:{text:"#505050"},style:{spacing:{margin:{top:"0",bottom:"0"}}}}]]]]]],attributes:{showVariation:!1,panelPadding:{top:"15px",right:"15px",bottom:"15px",left:"15px"},panelSpaceBetween:15,panelCollapse:!0,panelBorder:{color:"#d8dfef",style:"solid",width:"1px"},panelBackgroundColor:"#ffffff",panelTitleTag:"h6",panelTitleColor:"#252740",panelContentColor:"#575b7a",panelTitleFontSize:"18px",panelContentFontSize:"14px",panelTitleContentGap:13,panelTriggerIcon:"up-down"},scope:["block"]}];const y=[],x=["gutena/accordion-panel"];function w(n){let{clientId:a,attributes:r,setAttributes:i}=n;const{uniqueId:c,panelPadding:p,panelSpaceBetween:s,panelCollapse:g,panelDefaultOpen:d,panelBorder:f,panelRadius:w,panelBackgroundColor:E,panelBorderOpen:b,panelRadiusOpen:C,panelBackgroundColorOpen:_,panelTitleColor:v,panelContentColor:k,panelTitleFontFamily:B,panelTitleFontSize:S,panelTitleFontStyle:T,panelTitleFontWeight:F,panelTitleLineHeight:A,panelTitleTextTransform:P,panelContentFontFamily:I,panelContentFontSize:O,panelContentFontStyle:N,panelContentFontWeight:z,panelContentLineHeight:L,panelContentTextTransform:j,panelTitleContentGap:D,panelTriggerIcon:G,blockStyles:$}=r,V=(0,u.useSelect)((e=>e(o.store).getBlocks(a).length),[a]),W=(0,o.useBlockProps)({className:`gutena-accordion-block gutena-accordion-block-${r.uniqueId}`}),R=(0,o.useInnerBlocksProps)(W,{allowedBlocks:x,orientation:"horizontal",renderAppender:!1});(0,t.useEffect)((()=>{!c||y.includes(c)?(i({uniqueId:a.substr(2,9)}),y.push(a.substr(2,9))):y.push(c)}),[]);const H=(0,t.createElement)(t.Fragment,null,(0,t.createElement)(h.__experimentalSpacer,{marginBottom:5},(0,t.createElement)(h.__experimentalBorderControl,{label:(0,l.__)("Border","gutena-accordion"),onChange:e=>i({panelBorder:e}),value:f})),(0,t.createElement)(h.__experimentalSpacer,{marginBottom:4},(0,t.createElement)(h.__experimentalBoxControl,{label:(0,l.__)("Border radius","gutena-accordion"),values:w,onChange:e=>i({panelRadius:e})})),(0,t.createElement)(h.__experimentalSpacer,{marginBottom:4},(0,t.createElement)(h.__experimentalBoxControl,{label:(0,l.__)("Padding","gutena-accordion"),values:p,onChange:e=>i({panelPadding:e})})),(0,t.createElement)(o.ColorPaletteControl,{label:(0,l.__)("Background color","gutena-accordion"),value:E,onChange:e=>i({panelBackgroundColor:e})})),M=(0,t.createElement)(t.Fragment,null,(0,t.createElement)(h.__experimentalSpacer,{marginBottom:5},(0,t.createElement)(h.__experimentalBorderControl,{label:(0,l.__)("Border","gutena-accordion"),onChange:e=>i({panelBorderOpen:e}),value:b})),(0,t.createElement)(h.__experimentalSpacer,{marginBottom:4},(0,t.createElement)(h.__experimentalBoxControl,{label:(0,l.__)("Border radius","gutena-accordion"),values:C,onChange:e=>i({panelRadiusOpen:e})})),(0,t.createElement)(o.ColorPaletteControl,{label:(0,l.__)("Background color","gutena-accordion"),value:_,onChange:e=>i({panelBackgroundColorOpen:e})})),q=(0,t.createElement)("div",{className:"gutena-accordion-title-typography"},(0,t.createElement)(o.__experimentalFontFamilyControl,{label:(0,l.__)("Font family","gutena-accordion"),fontFamilies:(0,o.useSetting)("typography.fontFamilies"),value:B,onChange:e=>i({panelTitleFontFamily:e})}),(0,t.createElement)(h.FontSizePicker,{label:(0,l.__)("Font size","gutena-accordion"),value:S,onChange:e=>i({panelTitleFontSize:e}),fallBackFontSize:14,fontSizes:(0,o.useSetting)("typography.fontSizes")}),(0,t.createElement)(o.__experimentalFontAppearanceControl,{hasFontStyles:!!(0,o.useSetting)("typography.fontStyle"),hasFontWeights:!!(0,o.useSetting)("typography.fontWeight"),value:{fontStyle:T,fontWeight:F},onChange:e=>{i({panelTitleFontStyle:e?.fontStyle,panelTitleFontWeight:e?.fontWeight})}}),(0,t.createElement)(h.__experimentalSpacer,{marginTop:6,marginBottom:6},(0,t.createElement)(h.RangeControl,{label:(0,l.__)("Line height","gutena-accordion"),value:A,onChange:e=>i({panelTitleLineHeight:e}),min:0,max:10,step:.1,allowReset:!0})),(0,t.createElement)(h.SelectControl,{label:(0,l.__)("Text transform","gutena-accordion"),value:P,options:[{label:(0,l.__)("None","gutena-accordion"),value:""},{label:(0,l.__)("Lower case","gutena-accordion"),value:"lowercase"},{label:(0,l.__)("Upper case","gutena-accordion"),value:"uppercase"},{label:(0,l.__)("Capitalized case","gutena-accordion"),value:"capitalize"}],onChange:e=>i({panelTitleTextTransform:e})})),J=(0,t.createElement)("div",{className:"gutena-accordion-content-typography"},(0,t.createElement)(o.__experimentalFontFamilyControl,{label:(0,l.__)("Font family","gutena-accordion"),fontFamilies:(0,o.useSetting)("typography.fontFamilies"),value:I,onChange:e=>i({panelContentFontFamily:e})}),(0,t.createElement)(h.FontSizePicker,{label:(0,l.__)("Font size","gutena-accordion"),value:O,onChange:e=>i({panelContentFontSize:e}),fallBackFontSize:14,fontSizes:(0,o.useSetting)("typography.fontSizes")}),(0,t.createElement)(o.__experimentalFontAppearanceControl,{hasFontStyles:!!(0,o.useSetting)("typography.fontStyle"),hasFontWeights:!!(0,o.useSetting)("typography.fontWeight"),value:{fontStyle:N,fontWeight:z},onChange:e=>{i({panelContentFontStyle:e?.fontStyle,panelContentFontWeight:e?.fontWeight})}}),(0,t.createElement)(h.__experimentalSpacer,{marginTop:6,marginBottom:6},(0,t.createElement)(h.RangeControl,{label:(0,l.__)("Line height","gutena-accordion"),value:L,onChange:e=>i({panelContentLineHeight:e}),min:0,max:10,step:.1,allowReset:!0})),(0,t.createElement)(h.SelectControl,{label:(0,l.__)("Text transform","gutena-accordion"),value:j,options:[{label:(0,l.__)("None","gutena-accordion"),value:""},{label:(0,l.__)("Lower case","gutena-accordion"),value:"lowercase"},{label:(0,l.__)("Upper case","gutena-accordion"),value:"uppercase"},{label:(0,l.__)("Capitalized case","gutena-accordion"),value:"capitalize"}],onChange:e=>i({panelContentTextTransform:e})})),U=function(e){const{panelPadding:t,panelSpaceBetween:n,panelBorder:a,panelRadius:l,panelBackgroundColor:o,panelBorderOpen:r,panelRadiusOpen:i,panelBackgroundColorOpen:c,panelTitleColor:p,panelContentColor:s,panelTitleFontFamily:g,panelTitleFontSize:d,panelTitleFontStyle:u,panelTitleFontWeight:h,panelTitleLineHeight:f,panelTitleTextTransform:y,panelContentFontFamily:x,panelContentFontSize:w,panelContentFontStyle:E,panelContentFontWeight:b,panelContentLineHeight:C,panelContentTextTransform:_,panelTitleContentGap:v}=e,k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return(0,m.merge)(n,t,e),`${n?.top} ${n?.right} ${n?.bottom} ${n?.left}`},B=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return(0,m.merge)(n,t,e),`${n?.width} ${n?.style} ${n?.color}`};return(0,m.pickBy)({"--gutena--accordion-panel-padding":k(t),"--gutena--accordion-panel-spacing":n,"--gutena--accordion-panel-border":B(a),"--gutena--accordion-panel-border-radius":k(l),"--gutena--accordion-panel-background-color":o,"--gutena--accordion-panel-open-border":B(r,a),"--gutena--accordion-panel-open-border-radius":k(i,l),"--gutena--accordion-panel-open-background-color":c,"--gutena--accordion-panel-title-color":p,"--gutena--accordion-panel-content-color":s,"--gutena--accordion-panel-title-font-family":g,"--gutena--accordion-panel-title-font-size":d,"--gutena--accordion-panel-title-font-style":u,"--gutena--accordion-panel-title-font-weight":h,"--gutena--accordion-panel-title-line-height":f,"--gutena--accordion-panel-title-text-transform":y,"--gutena--accordion-panel-content-font-family":x,"--gutena--accordion-panel-content-font-size":w,"--gutena--accordion-panel-content-font-style":E,"--gutena--accordion-panel-content-font-weight":b,"--gutena--accordion-panel-content-line-height":C,"--gutena--accordion-panel-content-text-transform":_,"--gutena--accordion-panel-title-content-spacing":v},(e=>void 0!==e&&""!==e&&!(0,m.includes)(e,"undefined")))}(r),Z=(0,t.createElement)("style",null,`\n\t\t\t\t.gutena-accordion-block-${c} {\n\t\t\t\t\t${Object.entries(U).map((e=>{let[t,n]=e;return`${t}:${n}`})).join(";")}\n\t\t\t\t}\n\t\t\t`);return(0,t.useEffect)((()=>{(0,m.isEqual)($,U)||i({blockStyles:U})}),[U]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(o.InspectorControls,null,(0,t.createElement)(h.PanelBody,{title:(0,l.__)("Panel Settings","gutena-accordion"),initialOpen:!1},(0,t.createElement)(h.__experimentalSpacer,{marginTop:3,marginBottom:7},(0,t.createElement)(h.ToggleControl,{label:(0,l.__)("Open single panel at a time","gutena-accordion"),checked:g,onChange:e=>i({panelCollapse:e})})),(0,t.createElement)(h.SelectControl,{label:(0,l.__)("Default Open","gutena-accordion"),value:d,onChange:e=>i({panelDefaultOpen:e})},(0,t.createElement)("option",{value:"none"},(0,l.__)("None","gutena-accordion")),Array.from(Array(V).keys()).map((e=>(0,t.createElement)("option",{value:e,key:e.toString()},(0,l.sprintf)((0,l.__)("Panel %d","gutena-accordion"),e+1))))),(0,t.createElement)(h.RangeControl,{label:(0,l.__)("Space between the panels","gutena-accordion"),value:s,onChange:e=>i({panelSpaceBetween:e}),min:0,max:50}),(0,t.createElement)(h.RangeControl,{label:(0,l.__)("Margin below the title","gutena-accordion"),value:D,onChange:e=>i({panelTitleContentGap:e}),min:0,max:50})),(0,t.createElement)(h.PanelBody,{title:(0,l.__)("Panel Styles","gutena-accordion"),initialOpen:!1},(0,t.createElement)(h.TabPanel,{className:"gutena-tab-panel",activeClass:"active-tab",tabs:[{name:"default",title:(0,l.__)("Default","gutena-accordion"),className:"gutena-default-tab"},{name:"active",title:(0,l.__)("Active","gutena-accordion"),className:"gutena-active-tab"}]},(e=>{let t=H;return"active"==e?.name&&(t=M),t}))),(0,t.createElement)(h.PanelBody,{title:(0,l.__)("Color Settings","gutena-tabs"),initialOpen:!1,className:"gutena-accordion-settings"},(0,t.createElement)(o.PanelColorSettings,{__experimentalHasMultipleOrigins:!0,__experimentalIsRenderedInSidebar:!0,colorSettings:[{value:v,onChange:e=>i({panelTitleColor:e}),label:(0,l.__)("Title color","gutena-accordion")},{value:k,onChange:e=>i({panelContentColor:e}),label:(0,l.__)("Content color","gutena-accordion")}]})),(0,t.createElement)(h.PanelBody,{title:(0,l.__)("Typography","gutena-accordion"),initialOpen:!1},(0,t.createElement)(h.TabPanel,{className:"gutena-tab-panel",activeClass:"active-tab",tabs:[{name:"title",title:(0,l.__)("Title","gutena-accordion"),className:"gutena-title-tab"},{name:"content",title:(0,l.__)("Content","gutena-accordion"),className:"gutena-content-tab"}]},(e=>{let t=q;return"content"==e?.name&&(t=J),t}))),(0,t.createElement)(h.PanelBody,{title:(0,l.__)("Trigger Icon Settings","gutena-accordion"),initialOpen:!1},(0,t.createElement)(h.SelectControl,{label:(0,l.__)("Trigger icon","gutena-accordion"),value:G,options:[{label:(0,l.__)("Plus Minus","gutena-accordion"),value:"plus-minus"},{label:(0,l.__)("Up Down","gutena-accordion"),value:"up-down"},{label:(0,l.__)("None","gutena-accordion"),value:"none"}],onChange:e=>i({panelTriggerIcon:e})}))),Z,(0,t.createElement)("div",e({},R,{"data-single":g,"data-open":d})))}function E(e){let{clientId:a,attributes:r,setAttributes:i}=e;const c=f.filter((e=>e.isDefault))[0]||f[0],{replaceInnerBlocks:p}=(0,u.useDispatch)(o.store),s=(0,o.useBlockProps)({className:`gutena-accordion-block gutena-accordion-block-${r.uniqueId}`});return(0,t.createElement)("div",s,(0,t.createElement)(o.__experimentalBlockVariationPicker,{label:(0,l.__)("Accordion Style","gutena-accordion"),instructions:(0,l.__)("Select a Accordion style to start with.","gutena-accordion"),variations:f,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;e.attributes&&i(e.attributes),e.innerBlocks&&p(a,(0,n.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0}))}(0,n.registerBlockType)(d,{edit:function(e){const{clientId:n}=e,a=(0,u.useSelect)((e=>e(o.store).getBlocks(n).length>0),[n])?w:E;return(0,t.createElement)(a,e)},save:function(n){let{attributes:a}=n;const{uniqueId:l,panelCollapse:r,panelDefaultOpen:i}=a,c=o.useBlockProps.save({className:`gutena-accordion-block gutena-accordion-block-${l}`}),p=o.useInnerBlocksProps.save(c);return(0,t.createElement)("div",e({},p,{"data-single":r,"data-open":i}))},icon:(0,t.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{x:"2",y:"2",width:"1.5",height:"20",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"21",y:"2",width:"1.5",height:"20",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"2",y:"3",width:"1.5",height:"20.5",transform:"rotate(-90 2 3)",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"2",y:"22",width:"1.5",height:"20.5",transform:"rotate(-90 2 22)",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"2",y:"15",width:"1.5",height:"20.5",transform:"rotate(-90 2 15)",fill:"#0EA489"}),(0,t.createElement)("rect",{x:"2",y:"9",width:"1.5",height:"20.5",transform:"rotate(-90 2 9)",fill:"#0EA489"})),deprecated:[{attributes:(0,m.omit)(d.attributes,"panelDefaultOpen"),save:n=>{let{attributes:a}=n;const{uniqueId:l,panelCollapse:r}=a,i=o.useBlockProps.save({className:`gutena-accordion-block gutena-accordion-block-${l}`}),c=o.useInnerBlocksProps.save(i);return(0,t.createElement)("div",e({},c,{"data-single":r}))}}]})}},n={};function a(e){var l=n[e];if(void 0!==l)return l.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,a),o.exports}a.m=t,e=[],a.O=function(t,n,l,o){if(!n){var r=1/0;for(s=0;s<e.length;s++){n=e[s][0],l=e[s][1],o=e[s][2];for(var i=!0,c=0;c<n.length;c++)(!1&o||r>=o)&&Object.keys(a.O).every((function(e){return a.O[e](n[c])}))?n.splice(c--,1):(i=!1,o<r&&(r=o));if(i){e.splice(s--,1);var p=l();void 0!==p&&(t=p)}}return t}o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];e[s]=[n,l,o]},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={826:0,431:0};a.O.j=function(t){return 0===e[t]};var t=function(t,n){var l,o,r=n[0],i=n[1],c=n[2],p=0;if(r.some((function(t){return 0!==e[t]}))){for(l in i)a.o(i,l)&&(a.m[l]=i[l]);if(c)var s=c(a)}for(t&&t(n);p<r.length;p++)o=r[p],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(s)},n=self.webpackChunkgutena_accordion=self.webpackChunkgutena_accordion||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var l=a.O(void 0,[431],(function(){return a(514)}));l=a.O(l)}();