/******/ (() => { // webpackBootstrap
/******/ 	var __webpack_modules__ = ({

/***/ "./node_modules/@humanmade/block-editor-components/dist/index.js":
/*!***********************************************************************!*\
  !*** ./node_modules/@humanmade/block-editor-components/dist/index.js ***!
  \***********************************************************************/
/***/ ((module) => {

/*! For license information please see index.js.LICENSE.txt */
!function(e,t){ true?module.exports=t():0}(self,(()=>(()=>{var e={694:(e,t,n)=>{"use strict";var o=n(925);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,l,a){if(a!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:r};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,l(n)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{ConditionalComponent:()=>t,DateTimeControl:()=>E,FetchAllTermSelectControl:()=>m,FileControls:()=>f,GenericServerSideEdit:()=>h,ImageControl:()=>x,InnerBlockSlider:()=>j,InnerBlocksDisplaySingle:()=>O,LinkControl:()=>U,LinkToolbar:()=>W,PlainTextWithLimit:()=>z,PostPickerButton:()=>ue,PostPickerModal:()=>ce,PostPickerToolbarButton:()=>se,PostTitleControl:()=>G,PostTypeCheck:()=>Y,RichTextWithLimit:()=>K,TermSearchControl:()=>re,TermSelector:()=>le,createOptionFromPost:()=>Ce,createOptionFromTerm:()=>Te,createOptionsFromPosts:()=>Be,createOptionsFromPostsWithHierarchy:()=>xe,createOptionsFromTerms:()=>Ie,createOptionsFromTermsWithHierarchy:()=>Pe,findBlockByName:()=>ve,findInvalidBlock:()=>Ee,findInvalidBlocks:()=>Se,findValidBlock:()=>we,findValidBlocks:()=>_e,getImageDataForSize:()=>S,useActiveBlockStyle:()=>me,useBlockStyles:()=>pe,useDisallowedBlocks:()=>fe,useMeta:()=>ge,usePostThumbnail:()=>be,useRenderAppenderWithBlockLimit:()=>he,useSelectBlock:()=>ke,useSetAttribute:()=>ye,withActiveVariation:()=>Re});const e=window.React;function t(t){const{children:n=null,ComponentFalse:o=(()=>null),ComponentTrue:r=(()=>n),predicate:l,...a}=t,i=l(a)?r:o;return(0,e.createElement)(i,{...a})}const r=window.wp.apiFetch;var l=n.n(r);const a=window.wp.components,i=window.wp.data,c=window.wp.i18n,s=window.wp.url,u={label:"",value:""},d={disabled:!0,label:(0,c.__)("No items found!","block-editor-components"),value:""};const m=function(t){const{defaultOption:n=u,fallbackOption:o=d,taxonomy:r,...m}=t,[p,f]=(0,e.useState)(),[g,b]=(0,e.useState)(),h=(0,i.useSelect)((e=>e("core").getTaxonomy(r)?.rest_base),[r]);return(0,e.useEffect)((()=>{h&&(async()=>{try{const e=await l()({path:(0,s.addQueryArgs)(`/wp/v2/${h}`,{_fields:"id,name",context:"view",per_page:-1})});if(!e?.length)return void b(o?[o]:[]);b([...n?[n]:[],...Ie(e)])}catch(t){var e;f(null!==(e=t.message)&&void 0!==e?e:(0,c.__)("Unknown error.","block-editor-components"))}})()}),[h,n,o]),p?(0,e.createElement)(a.Notice,{isDismissible:!1,status:"error"},(0,e.createElement)("p",null,p)):g?(0,e.createElement)(a.SelectControl,{...m,options:g}):(0,e.createElement)(a.Spinner,null)},p=window.wp.blockEditor;function f(t){const{value:n,onChange:o,...r}=t;return(0,e.createElement)(p.MediaUploadCheck,null,(0,e.createElement)(p.MediaUpload,{title:(0,c.__)("Select or Upload File","block-editor-components"),...r,multiple:!1,render:({open:t})=>(0,e.createElement)(a.ToolbarGroup,null,(0,e.createElement)(a.ToolbarButton,{icon:"admin-links",label:n?(0,c.__)("Edit file","block-editor-components"):(0,c.__)("Select file","block-editor-components"),onClick:t}),n&&(0,e.createElement)(a.ToolbarButton,{icon:"editor-unlink",label:(0,c.__)("Deselect file","block-editor-components"),onClick:()=>o(null)})),value:n,onSelect:o}))}const g=window.wp.serverSideRender;var b=n.n(g);const h=function({attributes:t,context:n,name:o}){return(0,e.createElement)("div",{...(0,p.useBlockProps)()},(0,e.createElement)(a.Disabled,null,(0,e.createElement)(b(),{attributes:t,block:o,EmptyResponsePlaceholder:()=>(0,e.createElement)("div",{className:`wp-block-${o.replace("/","-")}`},o," ",(0,c.__)("Block rendered as empty.")),urlQueryArgs:"object"==typeof n&&Object.hasOwn(n,"postId")?{post_id:n.postId}:{}})))},k=window.wp.date,y=window.wp.element,v=()=>{const{timezone:t}=(0,k.getSettings)(),n=(new Date).getTimezoneOffset()/60*-1;if(Number(t.offset)===n)return null;const o=Number(t.offset)>=0?"+":"",r=""!==t.abbr&&isNaN(Number(t.abbr))?t.abbr:`UTC${o}${t.offsetFormatted}`,l=t.string.replace("_"," "),i="UTC"===t.string?(0,c.__)("Coordinated Universal Time"):`(${r}) ${l}`;return 0===l.trim().length?(0,e.createElement)(e.Fragment,null,r):(0,e.createElement)(a.Tooltip,{placement:"top",text:i},(0,e.createElement)("span",null,r))};const E=function({editButtonText:t,label:n,id:o,onChange:r,value:l}){const[i,s]=(0,y.useState)(!1),u=(0,k.getSettings)(),d=l?(0,c.__)("Edit date","block-editor-components"):(0,c.__)("Set date","block-editor-components"),m=(e,t="Y-m-d H:i:s")=>{const n=new Date(e+" +00:00");return n instanceof Date&&!isNaN(n)?(0,k.date)(t,n):null};return(0,e.createElement)(a.BaseControl,{id:o,label:n},l&&(0,e.createElement)("p",null,m(l,u.formats.datetime),(0,e.createElement)(v,null)),(0,e.createElement)(a.Button,{style:{display:"block"},variant:"link",onClick:()=>s(!i)},t||d),i&&(0,e.createElement)(a.Popover,{onFocusOutside:()=>s(!i)},(0,e.createElement)("div",{style:{padding:"1.5em"}},(0,e.createElement)(a.DateTimePicker,{currentDate:m(l)||"",is12Hour:!1,onChange:e=>r((e=>{const t=wp.date.getDate(e);return(0,k.gmdate)("Y-m-d H:i:s",t)})(e))}),(0,e.createElement)(a.Button,{size:"small",style:{marginTop:"1em"},variant:"primary",onClick:()=>s(!i)},(0,c.__)("Done","block-editor-components")))))};function S(e,t){var n;const o=null!==(n=e?.sizes)&&void 0!==n?n:e?.media_details?.sizes,r=o?.[t];return r?{src:r.url||r.source_url,width:r.width,height:r.height}:null}const w=["image"],_=(0,c.__)("Select Image","block-editor-components"),C=(0,c.__)("Select Image","block-editor-components"),T=(0,c.__)("Remove image","block-editor-components"),B=(0,c.__)("Replace Image","block-editor-components");function x(t){const{buttonText:n=_,className:o,help:r,id:l,label:c,modalTitle:s=C,removeButtonText:u=T,replaceButtonText:d=B,size:m,value:f,onChange:g}=t,b=(0,i.useSelect)((e=>{const t=e("core").getMedia(f,{context:"view"});return t?t.alt_text:""}),[f]),h=(0,i.useSelect)((e=>{const t=e("core").getMedia(f,{context:"view"});if(t){if(m){const e=S(t,m);if(e)return e.src}return t.source_url}}),[m,f]);return(0,e.createElement)(a.BaseControl,{className:o,help:r,id:l,label:c},(0,e.createElement)(p.MediaUploadCheck,null,(0,e.createElement)(p.MediaUpload,{allowedTypes:w,render:({open:t})=>(0,e.createElement)("div",null,f?h?(0,e.createElement)(a.Button,{isLink:!0,onClick:t},(0,e.createElement)("img",{alt:b,src:h})):(0,e.createElement)(a.Spinner,null):null,(0,e.createElement)(a.Button,{isSecondary:!0,onClick:t},f?d:n)),title:s,onSelect:g})),(0,e.createElement)("br",null),f?(0,e.createElement)(a.Button,{isDestructive:!0,isLink:!0,onClick:()=>g(null)},u):null)}var I=n(556),P=n.n(I);const R=window.wp.blocks;function N({className:t,allowedBlocks:n,template:o,currentItemIndex:r=0,parentBlockId:l,renderAppender:a=!1,captureToolbars:i=!0,perPage:c=1}){const s=(0,e.useRef)(),u=(0,p.useInnerBlocksProps)({id:`inner-block-display-single-${l}`,className:t},{__experimentalCaptureToolbars:i,allowedBlocks:n,orientation:"horizontal",renderAppender:a,template:o,templateLock:!1});return(0,e.useEffect)((()=>{if(!s.current)return;const e=`#inner-block-display-single-${l}`;let t="";c>1&&(t+=`${e} { display: grid; grid-template-columns: repeat(${c}, 1fr); gap: 1em; }`),t+=`${e} > *:not(`;for(let e=1;e<=c;e++)t+=`:nth-child(${r+e}), `;t=t.slice(0,-2)+")",t+="{ display: none; }",s.current.innerHTML=`${t}`}),[r,s,l,c]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("style",{ref:s}),(0,e.createElement)("div",{...u}))}N.propTypes={parentBlockId:P().string.isRequired,allowedBlocks:P().arrayOf(P().string).isRequired,template:P().array,className:P().string,currentItemIndex:P().number,renderAppender:P().oneOfType([P().bool,P().element]),perPage:P().number};const O=N;var F=n(942),M=n.n(F);function L({totalPages:t,currentPage:n,setCurrentPage:o,prevEnabled:r,nextEnabled:l,addSlide:i=(()=>{}),addSlideEnabled:c=!1}){return(0,e.createElement)("div",{className:"inner-block-slider__navigation"},(0,e.createElement)(a.IconButton,{disabled:!r,icon:"arrow-left-alt2",isSecondary:!0,isSmall:!0,onClick:()=>{r&&o(n-1)}}),[...Array(t).keys()].map((t=>(0,e.createElement)(a.Button,{key:t+1,"aria-label":`Slide ${t+1}`,className:M()("components-button","is-not-small",{"is-primary":n===t+1,"is-secondary":n!==t+1}),type:"button",onClick:()=>{o(t+1)}},t+1))),(0,e.createElement)(a.IconButton,{disabled:!l,icon:"arrow-right-alt2",isSecondary:!0,isSmall:!0,onClick:()=>{l&&o(n+1)}}),(0,e.createElement)(a.IconButton,{disabled:!c,icon:"plus-alt2",isSecondary:!0,isSmall:!0,onClick:()=>i()}))}L.propTypes={totalPages:P().number.isRequired,currentPage:P().number.isRequired,setCurrentPage:P().func.isRequired,prevEnabled:P().bool.isRequired,nextEnabled:P().bool.isRequired,addSlide:P().func,addSlideEnabled:P().bool};const A=L,D=({parentBlockId:t,allowedBlock:n,template:o,slideLimit:r=10,currentItemIndex:l,setCurrentItemIndex:a,showNavigation:c=!0,perPage:s=1})=>{const u=o||[[n]],{slideBlocks:d,selectedBlockId:m,getLowestCommonAncestorWithSelectedBlock:p}=(0,i.useSelect)((e=>{const n=e("core/block-editor");return{slideBlocks:n.getBlock(t).innerBlocks,selectedBlockId:n.getSelectedBlockClientId(),getLowestCommonAncestorWithSelectedBlock:n.getLowestCommonAncestorWithSelectedBlock}})),{selectBlock:f}=(0,i.useDispatch)("core/block-editor"),g=(0,e.useRef)(d.length),{insertBlock:b}=(0,i.useDispatch)("core/block-editor");return(0,e.useEffect)((()=>{if(d.length>g.current){const e=d.length-1;a(e),f(d[e].clientId)}else if(d.length<g.current&&l+1>d.length){const e=d.length-1;a(e),f(d[e].clientId)}g.current=d.length}),[d.length,l,g,a,f,d]),(0,e.useEffect)((()=>{const e=d.findIndex((e=>p(e.clientId)===e.clientId));e>=0&&a(e)}),[m,d,a,p]),(0,e.createElement)("div",{className:"inner-block-slider"},(0,e.createElement)(O,{allowedBlocks:[n],className:"slides",currentItemIndex:l,parentBlockId:t,perPage:s,template:u}),c&&(0,e.createElement)(A,{addSlide:()=>{const e=(0,R.createBlock)(n);b(e,void 0,t)},addSlideEnabled:d.length<r,currentPage:l+1,nextEnabled:l+1<d.length,prevEnabled:l+1>1,setCurrentPage:e=>{a(e-1),f(d[e-1].clientId)},totalPages:d.length}))};D.propTypes={parentBlockId:P().string.isRequired,allowedBlock:P().string.isRequired,template:P().array,showNavigation:P().bool,currentItemIndex:P().number.isRequired,setCurrentItemIndex:P().func.isRequired};const $=D,q=t=>{const[n,o]=(0,e.useState)(0);return(0,e.createElement)($,{...t,currentItemIndex:n,setCurrentItemIndex:o})};q.Controlled=$;const j=q;function H({label:t,id:n,help:o,onChange:r,value:l}){const i="hm-block-editor-components-link-control";return(0,e.useEffect)((()=>{const e=document.createElement("style");return e.innerHTML=`\n\t\t\t.${i} {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t.${i} .block-editor-url-input {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: none;\n\t\t\t\tposition: relative;\n\t\t\t}\n\n\t\t\t.${i} .components-base-control__field,\n\t\t\t.${i} .components-input-control {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t`,document.head.appendChild(e),()=>{document.head.removeChild(e)}}),[i]),(0,e.createElement)(a.BaseControl,{className:i,help:o,id:n,label:t},(0,e.createElement)(p.URLInput,{value:l,onChange:r}))}H.propTypes={label:P().string.isRequired,help:P().string,id:P().string,onChange:P().func.isRequired,value:P().string};const U=H;function W(t){const{onChange:n,opensInNewTab:o,url:r}=t,[l,i]=(0,e.useState)(!1),s=(0,e.useMemo)((()=>[{icon:"admin-links",title:(0,c.__)("Link","block-editor-components"),isActive:r?.length>0,onClick:()=>i(!l)}]),[i,l,r]),u=(0,e.useMemo)((()=>({url:r,opensInNewTab:o})),[o,r]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a.ToolbarGroup,{controls:s}),l&&(0,e.createElement)(a.Popover,null,(0,e.createElement)(p.__experimentalLinkControl,{forceIsEditingLink:l,opensInNewTab:o,value:u,onChange:n})))}function z(t){const{className:n,limit:o=0,onChange:r,...l}=t,[a,i]=(0,e.useState)(o&&t.value?.length>o);return(0,e.createElement)(p.PlainText,{className:`${n} limit-text ${a?"invalid":""}`.trim(),onChange:e=>{o&&e.length>o?a||i(!0):(a&&i(!1),r(e))},...l})}const V=/[\r\n]+/g;function G(t){const{editPost:n}=(0,i.useDispatch)("core/editor"),o=(0,i.useSelect)((e=>e("core/editor").getEditedPostAttribute("title")),[]),r=(0,e.useCallback)((e=>n({title:e.replace(V," ")})),[n]);return(0,e.createElement)(p.RichText,{...t,allowedFormats:[],value:o,onChange:r})}function Y(e){var t;const{postType:n}=e;return(0,i.useSelect)((e=>e("core/editor").getCurrentPostType()),[])===n?e.children:null!==(t=e.fallback)&&void 0!==t?t:null}const Q=window.wp.dom,J=e=>{const t=document.createRange();t.selectNodeContents(e),t.collapse(!1);const n=window.getSelection();n.removeAllRanges(),n.addRange(t)};function K(t){const{className:n,limit:o=0,onChange:r,...l}=t,a=(0,e.useRef)(),[i,c]=(0,e.useState)(o&&t.value?.length>o),[s,u]=(0,e.useState)(!1);return(0,e.createElement)(p.RichText,{ref:a,className:`${n} limit-text ${i?"invalid":""}`.trim(),onChange:e=>{if(o&&(0,Q.__unstableStripHTML)(e).length>o)return u(!1),a.current.innerHTML=t.value,J(a.current),void(i||c(!0));s&&i&&c(!1),u(!0),r(e)},...l})}const X=window.wp.compose,Z=window.wp.coreData,ee=window.wp.htmlEntities,te=[],ne={order:"asc",_fields:"id,name",context:"view"},oe=(e,t)=>{const n=t?.id||e?.find((e=>e.name===t))?.id;if(n)return n;const o=t.toLocaleLowerCase();return e?.find((e=>e.name.toLocaleLowerCase()===o))?.id};const re=function({label:t,taxonomy:n,termIds:o,onChange:r}){const[l,s]=(0,y.useState)(""),[u,d]=(0,y.useState)(te),[m,p]=(0,y.useState)(te),f=(0,X.useDebounce)(s,250),g=(0,i.useSelect)((e=>e("core").getTaxonomy(n)),[n]),{searchResults:b,searchHasResolved:h}=(0,i.useSelect)((e=>{if(!l)return{searchResults:te,searchHasResolved:!0};const{getEntityRecords:t,hasFinishedResolution:r}=e(Z.store),a=["taxonomy",n,{...ne,search:l,orderby:"name",exclude:o,per_page:20}];return{searchResults:t(...a),searchHasResolved:r("getEntityRecords",a)}}),[l,o]),k=(0,i.useSelect)((e=>{if(!o?.length)return te;const{getEntityRecords:t}=e(Z.store);return t("taxonomy",n,{...ne,include:o,per_page:o.length})}),[o]);return(0,y.useEffect)((()=>{if(o?.length||d(te),!k?.length)return;const e=o.reduce(((e,t)=>{const n=k.find((e=>e.id===t));return n&&e.push({id:t,value:n.name}),e}),[]);d(e)}),[o,k]),(0,y.useEffect)((()=>{h&&p(b.map((e=>e.name)))}),[b,h]),(0,e.createElement)(a.FormTokenField,{displayTransform:ee.decodeEntities,label:t||(0,c.sprintf)((0,c.__)("Filter by %s","block-editor-components"),g?g?.labels?.singular_name:(0,c.__)("term","block-editor-components")),suggestions:m,value:u,onChange:e=>{const t=new Set;for(const n of e){const e=oe(b,n);e&&t.add(e)}p(te),r(Array.from(t))},onInputChange:f})};const le=function(t){const{taxonomy:n,value:o=[],onChange:r}=t,l=(0,i.useSelect)((e=>e("core").getTaxonomy(n)),[n]),{taxonomyTermsById:s,taxonomyTermsByTitle:u}=(0,i.useSelect)((e=>{var t;const o=null!==(t=e("core").getEntityRecords("taxonomy",n,{per_page:100}))&&void 0!==t?t:[],r=function(e){return e?e.reduce(((e,t)=>(e[t.id]=t.name,e)),{}):[]}(o),l=function(e){return e?e.reduce(((e,t)=>(e[t.name]=t.id,e)),{}):[]}(o);return{taxonomyTermsById:r,taxonomyTermsByTitle:l}}),[n]),d=o.map((e=>s[e])).filter(Boolean);return(0,e.createElement)(a.FormTokenField,{label:(0,c.sprintf)((0,c.__)("Filter by %s","block-editor-components"),l?l.labels.singular_name:""),suggestions:Object.values(s),value:d,onChange:e=>{r(e.map((e=>u[e])))}})};function ae(t){const{postType:n,queryArgs:o,onChange:r,values:l=[],isSortable:s=!1}=t,u=(0,i.useSelect)((e=>{var t;return null!==(t=e("core").getEntityRecords("postType",n,o))&&void 0!==t?t:[]}),[n,o]),d=(0,i.useSelect)((e=>e("core/data").isResolving("core","getEntityRecords",["postType",n,o])));return(0,e.createElement)("div",{style:{marginTop:-24,paddingTop:24,paddingLeft:4,marginLeft:-4}},d&&(0,e.createElement)(a.Spinner,null)||u.length<1&&(0,e.createElement)(a.Notice,{isDismissible:!1},(0,c.__)("No results found","block-editor-components"))||u.map((t=>(0,e.createElement)("div",{style:{display:"grid",gridTemplateColumns:"1fr auto",marginRight:-2,paddingRight:2}},(0,e.createElement)(a.CheckboxControl,{key:t.id,checked:l.includes(t.id),label:t.title?.rendered||(0,c.__)("(No title)","block-editor-components"),onChange:e=>{r(e?[...l,t.id]:l.filter((e=>e!==t.id)))}}),s&&(0,e.createElement)(a.ButtonGroup,null,(0,e.createElement)(a.Button,{icon:"arrow-up-alt2",iconSize:12,isSmall:!0,label:(0,c.__)("Move up","block-editor-components"),variant:"secondary",onClick:()=>(e=>{const t=l.indexOf(e);-1!==t&&0!==t&&r([...l.slice(0,t-1),l[t],l[t-1],...l.slice(t+1)])})(t.id)}),(0,e.createElement)(a.Button,{icon:"arrow-down-alt2",iconSize:12,isSmall:!0,label:(0,c.__)("Move down","block-editor-components"),variant:"secondary",onClick:()=>(e=>{const t=l.indexOf(e);-1!==t&&t!==l.length-1&&r([...l.slice(0,t),l[t+1],l[t],...l.slice(t+2)])})(t.id)}))))))}function ie(t){const{postType:n,onChange:o,values:r,taxonomies:l}=t,[s,u]=(0,y.useState)(""),d=(0,i.useSelect)((e=>l.map((t=>e("core").getTaxonomy(t)))),[l]),[m,p]=(0,y.useState)([]),f=(0,e.useCallback)(((e,t)=>{const n=d.find((t=>t&&t.slug===e));n&&p({...m,[`${n.rest_base}`]:t})}),[m,d]);(0,e.useEffect)((()=>{d.forEach((e=>{e&&!m[e.rest_base]&&f(e.rest_base,[])}))}),[d,f,m]);const g={search:s||void 0,per_page:30,...m,context:"view"};return(0,e.createElement)(a.Flex,{align:"flex-start",style:{gap:24}},(0,e.createElement)(a.FlexItem,{style:{width:"35%"}},(0,e.createElement)(a.SearchControl,{label:(0,c.__)("Search Posts","block-editor-components"),style:{marginBottom:24},value:s,onChange:e=>u(e)}),l.map((t=>{const n=d.find((e=>e&&e.slug===t));return n?(0,e.createElement)(le,{taxonomy:t,value:m[n.rest_base],onChange:e=>f(t,e)}):null}))),(0,e.createElement)(a.FlexItem,{style:{width:"65%"}},(0,e.createElement)(ae,{postType:n,queryArgs:g,values:r,onChange:o})))}function ce(t){const{title:n,postType:o="post",taxonomies:r=[],values:l=[],onChange:i,setModalOpen:s}=t;return(0,e.createElement)(a.Modal,{style:{width:"800px",maxWidth:"100%"},title:n,onRequestClose:()=>s(!1)},(0,e.createElement)("div",{style:{marginTop:-16}},(0,e.createElement)(a.TabPanel,{tabs:[{name:"browse",title:(0,c.__)("Browse Posts","block-editor-components"),content:()=>(0,e.createElement)(e.Fragment,null,"Foo")},{name:"selection",title:(0,c.__)("Current Selection","block-editor-components")}]},(t=>(0,e.createElement)("div",{style:{marginTop:"calc( var(--wp-admin-border-width-focus) * -1 )",borderStyle:"none",borderTop:"var( --wp-admin-border-width-focus ) solid #ddd",paddingTop:24}},"browse"===t.name&&(0,e.createElement)(ie,{postType:o,taxonomies:r,values:l,onChange:i}),"selection"===t.name&&(0,e.createElement)(ae,{isSortable:!0,postType:o,queryArgs:{include:l,orderby:"include",per_page:l.length},values:l,onChange:i}))))))}function se(t){const{title:n=(0,c.__)("Select posts","block-editor-components"),icon:o="edit"}=t,[r,l]=(0,y.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a.ToolbarButton,{icon:o,label:n,onClick:()=>l(!0)},n),r&&(0,e.createElement)(ce,{...t,setModalOpen:l,title:n}))}function ue(t){const{title:n=(0,c.__)("Select posts","block-editor-components")}=t,[o,r]=(0,y.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a.Button,{variant:"primary",onClick:()=>r(!0)},n),o&&(0,e.createElement)(ce,{...t,setModalOpen:r,title:n}))}const de=/^is-style-/;function me(t){const{blockName:n,className:o}=(0,i.useSelect)((e=>{var n,o;const r=e("core/block-editor").getBlock(t);return{blockName:null!==(n=r?.name)&&void 0!==n?n:"",className:null!==(o=r?.attributes?.className)&&void 0!==o?o:""}}),[t]),{blockStyles:r,defaultStyle:l}=pe(n),a=(0,e.useMemo)((()=>r.map((({name:e})=>e))),[r]),c=(0,e.useMemo)((()=>function(e=""){return e.trim().replace(/\s+/," ").split(" ").map((e=>de.test(e)?e.replace(de,""):"")).filter(Boolean)}(o)),[o]);return(0,e.useMemo)((()=>{var e;return null!==(e=c.find((e=>a.includes(e))))&&void 0!==e?e:l}),[a,c,l])}function pe(t){const n=(0,i.useSelect)((e=>e("core/blocks").getBlockStyles(t)),[t]);return(0,e.useMemo)((()=>{var e;return{blockStyles:n,defaultStyle:null!==(e=n.find((({isDefault:e})=>e))?.name)&&void 0!==e?e:""}}),[n])}function fe(t){return(0,e.useMemo)((()=>{const e=(0,R.getBlockTypes)();return e?.length?e.filter((({name:e,parent:n})=>!n&&!t.includes(e))).map((({name:e})=>e)):[]}),[t])}function ge(t,n){var o;const{editPost:r}=(0,i.useDispatch)("core/editor"),l=(0,i.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta"))),a=(0,e.useCallback)((e=>r({meta:{[t]:e}})),[r,t]);return[null!==(o=l?.[t])&&void 0!==o?o:n,a]}function be(){const{editPost:e}=(0,i.useDispatch)("core/editor"),t=(0,i.useSelect)((e=>e("core/editor").getEditedPostAttribute("featured_media"))),n=(0,i.useSelect)((e=>t?e("core").getMedia(t):null),[t]),o=(0,y.useCallback)((t=>{e({featured_media:t})}),[e]);return{postThumbnail:n,postThumbnailId:t,setPostThumbnail:o}}function he(e,t,n){return(0,i.useSelect)((o=>{const{innerBlocks:r}=o("core/block-editor").getBlock(e);return r?.length<t&&n}),[])}function ke(){const{selectBlock:t}=(0,i.useDispatch)("core/block-editor");return(0,e.useCallback)((e=>{const n=document.getElementById(`block-${e}`);n&&(t(e),setTimeout((()=>n.scrollIntoView({behavior:"smooth"})),200))}),[t])}function ye(t,n,o){return(0,e.useCallback)(((e=o)=>n({[t]:e})),[t,o,n])}function ve(e){const{getBlocks:t}=(0,i.select)("core/block-editor");return t().find((({name:t})=>t===e))}function Ee(e,t){return e.find((e=>!t(e)))}function Se(e,t){return e.filter((e=>!t(e)))}function we(e,t){return e.find((e=>t(e)))}function _e(e,t){return e.filter((e=>t(e)))}function Ce(e,t=""){const{id:n,title:o}=e;return{label:t+(0,ee.decodeEntities)(o.rendered||(0,c.sprintf)((0,c.__)("#%d (no title)","block-editor-components"),n)),value:n}}function Te(e,t=""){const{id:n,name:o}=e;return{label:t+(0,ee.decodeEntities)(o||(0,c.sprintf)((0,c.__)("#%d (no name)","block-editor-components"),n)),value:n}}function Be(e){return e.map((e=>Ce(e)))}function xe(e,t="\u2014 ",n=0){return e.map((({children:e=[],...o})=>[Ce(o,t.repeat(n)),...xe(e,t,n+1)])).flat()}function Ie(e){return e.map((e=>Te(e)))}function Pe(e,t="\u2014 ",n=0){return e.map((({children:e=[],...o})=>[Te(o,t.repeat(n)),...Pe(e,t,n+1)])).flat()}function Re(e,...t){if(e.variations?.length){const n=function(e){return(t,n)=>e.every((e=>t[e]===n[e]))}(t);e.variations=e.variations.map((e=>(e.isActive=n,e)))}return e}})(),o})()));

/***/ }),

/***/ "./node_modules/@wordpress/icons/build-module/library/chevron-left.js":
/*!****************************************************************************!*\
  !*** ./node_modules/@wordpress/icons/build-module/library/chevron-left.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
/**
 * WordPress dependencies
 */


const chevronLeft = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
  xmlns: "http://www.w3.org/2000/svg",
  viewBox: "0 0 24 24",
  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
    d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
  })
});
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chevronLeft);
//# sourceMappingURL=chevron-left.js.map

/***/ }),

/***/ "./node_modules/@wordpress/icons/build-module/library/chevron-right.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/@wordpress/icons/build-module/library/chevron-right.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
/**
 * WordPress dependencies
 */


const chevronRight = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
  xmlns: "http://www.w3.org/2000/svg",
  viewBox: "0 0 24 24",
  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
    d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
  })
});
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chevronRight);
//# sourceMappingURL=chevron-right.js.map

/***/ }),

/***/ "./node_modules/@wordpress/icons/build-module/library/desktop.js":
/*!***********************************************************************!*\
  !*** ./node_modules/@wordpress/icons/build-module/library/desktop.js ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
/**
 * WordPress dependencies
 */


const desktop = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
  xmlns: "http://www.w3.org/2000/svg",
  viewBox: "0 0 24 24",
  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
    d: "M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"
  })
});
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (desktop);
//# sourceMappingURL=desktop.js.map

/***/ }),

/***/ "./node_modules/@wordpress/icons/build-module/library/mobile.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@wordpress/icons/build-module/library/mobile.js ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
/**
 * WordPress dependencies
 */


const mobile = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
  xmlns: "http://www.w3.org/2000/svg",
  viewBox: "0 0 24 24",
  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
    d: "M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"
  })
});
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (mobile);
//# sourceMappingURL=mobile.js.map

/***/ }),

/***/ "./node_modules/@wordpress/icons/build-module/library/plus.js":
/*!********************************************************************!*\
  !*** ./node_modules/@wordpress/icons/build-module/library/plus.js ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
/**
 * WordPress dependencies
 */


const plus = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
  xmlns: "http://www.w3.org/2000/svg",
  viewBox: "0 0 24 24",
  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
    d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"
  })
});
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (plus);
//# sourceMappingURL=plus.js.map

/***/ }),

/***/ "./node_modules/@wordpress/icons/build-module/library/tablet.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@wordpress/icons/build-module/library/tablet.js ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
/**
 * WordPress dependencies
 */


const tablet = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
  xmlns: "http://www.w3.org/2000/svg",
  viewBox: "0 0 24 24",
  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
    d: "M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"
  })
});
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (tablet);
//# sourceMappingURL=tablet.js.map

/***/ }),

/***/ "./assets/src/blocks/tabs/edit.js":
/*!****************************************!*\
  !*** ./assets/src/blocks/tabs/edit.js ***!
  \****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ Edit)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _humanmade_block_editor_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @humanmade/block-editor-components */ "./node_modules/@humanmade/block-editor-components/dist/index.js");
/* harmony import */ var _humanmade_block_editor_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_humanmade_block_editor_components__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/plus.js");
/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/chevron-left.js");
/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/chevron-right.js");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _components_library_icon_InserterModal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../components/library-icon/InserterModal */ "./assets/src/components/library-icon/InserterModal.jsx");
/* harmony import */ var _components_dimensions_dimensions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../components/dimensions/dimensions */ "./assets/src/components/dimensions/dimensions.js");











const TAB_LIMIT = 6;
const ALLOWED_BLOCK = "thim-blocks/tab-item";
function Edit(props) {
  var _tabGap$device2, _navTabs$spaceContent;
  const {
    clientId,
    attributes,
    setAttributes
  } = props;
  const {
    alignment,
    tabGap,
    titlePadding,
    titleFontSize,
    titleFontWeight,
    showIcon,
    iconPosition,
    iconFontSize,
    iconSpace,
    Colors,
    Borders,
    navTabs
  } = attributes;
  const innerBlocks = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(select => select("core/block-editor").getBlock(clientId)?.innerBlocks || [], [clientId]);
  const itemList = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useMemo)(() => innerBlocks.map(block => {
    var _block$attributes$tit;
    return {
      title: (_block$attributes$tit = block?.attributes?.title) !== null && _block$attributes$tit !== void 0 ? _block$attributes$tit : "",
      blockId: block.clientId
    };
  }), [innerBlocks]);
  const [isIconModalOpen, setIconModalOpen] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(false);
  const deviceType = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(select => {
    const {
      getDeviceType
    } = select("core/editor");
    return getDeviceType ? getDeviceType() : "desktop";
  }, []);
  const device = deviceType.toLowerCase();
  const blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.useBlockProps)({
    className: "thim-blocks-tabs"
  });
  const {
    updateBlockAttributes
  } = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useDispatch)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.store.name);
  const {
    insertBlock
  } = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useDispatch)("core/block-editor");
  const [currentItemIndex, setCurrentItemIndex] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useState)(0);
  const addNewTab = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.useCallback)(() => {
    if (innerBlocks.length >= TAB_LIMIT) return;
    const newBlock = (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__.createBlock)(ALLOWED_BLOCK, {
      title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("New Tab", "thim-blocks")
    });
    insertBlock(newBlock, innerBlocks.length, clientId);
    setCurrentItemIndex(innerBlocks.length);
  }, [innerBlocks.length, clientId, insertBlock]);
  const currentIconAlign = alignment === "center" ? "editor-aligncenter" : alignment === "right" ? "editor-alignright" : alignment === "fluid" ? "menu" : "editor-alignleft";
  const fontSizes = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(select => select(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.store).getSettings().fontSizes, []) || [{
    name: "S",
    slug: "small",
    size: 14
  }, {
    name: "M",
    slug: "medium",
    size: 16
  }, {
    name: "L",
    slug: "large",
    size: 24
  }, {
    name: "XL",
    slug: "x-large",
    size: 32
  }];
  const CurrentIcon = () => {
    const icon = innerBlocks[currentItemIndex]?.attributes?.iconClass;
    const isDefault = !icon || icon === "tb-icon-list-check";
    return isDefault ? (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Select Icon", "thim-blocks")) : (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: icon
    });
  };
  const updateColor = (state, type, value) => {
    setAttributes({
      Colors: {
        ...Colors,
        [state]: {
          ...Colors[state],
          [type]: value
        }
      }
    });
  };
  const sides = ["top", "right", "bottom", "left"];
  const states = ["normal", "active"];
  const types = ["width", "style", "color"];
  const navBorder = navTabs?.border || {};
  const borderVars = states.reduce((acc, state) => {
    const border = Borders[state] || {};
    types.forEach(type => {
      sides.forEach(side => {
        var _border$side$type;
        const value = (_border$side$type = border[side]?.[type]) !== null && _border$side$type !== void 0 ? _border$side$type : border[type];
        if (value !== undefined) {
          acc[`--tab-border-${state}-${side}-${type}`] = value;
        }
      });
    });
    return acc;
  }, {});
  if (Borders.radius !== undefined) borderVars["--tab-border-radius"] = Borders.radius;
  const buttonStyles = {
    "--tab-color-normal": Colors.normal.text,
    "--tab-bg-normal": Colors.normal.background,
    "--tab-icon-normal": Colors.normal.icon,
    "--tab-color-active": Colors.active.text,
    "--tab-bg-active": Colors.active.background,
    "--tab-icon-active": Colors.active.icon,
    ...borderVars
  };
  const navTabsStyles = {
    ...(navBorder.width !== undefined && {
      "--border-nav-width": navBorder.width
    }),
    ...(navBorder.style && {
      "--border-nav-style": navBorder.style
    }),
    ...(navBorder.color && {
      "--border-nav-color": navBorder.color
    }),
    ...sides.reduce((acc, side) => {
      var _navBorder$side$width, _navBorder$side$style, _navBorder$side$color;
      const width = (_navBorder$side$width = navBorder[side]?.width) !== null && _navBorder$side$width !== void 0 ? _navBorder$side$width : navBorder.width;
      const style = (_navBorder$side$style = navBorder[side]?.style) !== null && _navBorder$side$style !== void 0 ? _navBorder$side$style : navBorder.style;
      const color = (_navBorder$side$color = navBorder[side]?.color) !== null && _navBorder$side$color !== void 0 ? _navBorder$side$color : navBorder.color;
      if (width !== undefined) acc[`--border-nav-${side}-width`] = width;
      if (style) acc[`--border-nav-${side}-style`] = style;
      if (color) acc[`--border-nav-${side}-color`] = color;
      return acc;
    }, {})
  };
  return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    ...blockProps
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.BlockControls, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarGroup, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarDropdownMenu, {
    icon: currentIconAlign,
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Change Alignment", "thim-blocks"),
    controls: [{
      title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Align Left", "thim-blocks"),
      icon: "editor-alignleft",
      isActive: alignment === "left",
      onClick: () => setAttributes({
        alignment: "left"
      })
    }, {
      title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Align Center", "thim-blocks"),
      icon: "editor-aligncenter",
      isActive: alignment === "center",
      onClick: () => setAttributes({
        alignment: "center"
      })
    }, {
      title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Align Right", "thim-blocks"),
      icon: "editor-alignright",
      isActive: alignment === "right",
      onClick: () => setAttributes({
        alignment: "right"
      })
    }, {
      title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Align Fluid", "thim-blocks"),
      icon: "menu",
      isActive: alignment === "fluid",
      onClick: () => setAttributes({
        alignment: "fluid"
      })
    }]
  })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarGroup, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarButton, {
    icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_10__["default"],
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Add Tab", "thim-blocks"),
    onClick: addNewTab,
    disabled: innerBlocks.length >= TAB_LIMIT
  }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarButton, {
    icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_11__["default"],
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Previous Tab", "thim-blocks"),
    disabled: currentItemIndex <= 0,
    onClick: () => {
      setCurrentItemIndex(index => Math.max(0, index - 1));
    }
  }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarButton, {
    icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_12__["default"],
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Next Tab", "thim-blocks"),
    disabled: currentItemIndex >= innerBlocks.length - 1,
    onClick: () => {
      setCurrentItemIndex(index => Math.min(innerBlocks.length - 1, index + 1));
    }
  }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarButton, {
    icon: "trash",
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Delete Current Tab", "thim-blocks"),
    isDestructive: true,
    disabled: innerBlocks.length <= 1,
    onClick: () => {
      const currentBlock = innerBlocks[currentItemIndex];
      if (!currentBlock) return;

      // Remove this tab-item block
      wp.data.dispatch("core/block-editor").removeBlock(currentBlock.clientId);

      // Adjust current index after delete
      const nextIndex = Math.max(0, currentItemIndex - 1);
      setCurrentItemIndex(nextIndex);
    }
  })), innerBlocks.length > 0 && showIcon && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarGroup, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    className: "custom-toolbar-button-wrapper"
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarButton, {
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Select Icon", "thim-blocks"),
    onClick: () => setIconModalOpen(true)
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(CurrentIcon, null))), innerBlocks[currentItemIndex]?.attributes?.iconClass && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarButton, {
    icon: "trash",
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Remove Icon", "thim-blocks"),
    onClick: () => {
      const tabId = innerBlocks[currentItemIndex].clientId;
      updateBlockAttributes(tabId, {
        iconClass: ""
      });
    }
  }))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.InspectorControls, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.PanelBody, {
    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Tab Block Advanced Settings", "thim-blocks")
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.TextControl, {
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Tab list container ID", "thim-blocks"),
    help: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("By default, the tabs are inserted at the top of the tab block. To override this behaviour and insert the tabs elsewhere on the page, specify the ID of the alternative container element.", "thim-blocks"),
    value: attributes.tablistContainerId,
    onChange: tablistContainerId => setAttributes({
      tablistContainerId
    })
  }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToggleControl, {
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Show Icon on Tab", "thim-blocks"),
    checked: showIcon,
    onChange: value => {
      setAttributes({
        showIcon: value
      });
      if (!value) {
        innerBlocks.forEach(block => {
          updateBlockAttributes(block.clientId, {
            iconClass: ""
          });
        });
      }
    }
  }))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.InspectorControls, {
    group: "styles"
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.PanelBody, {
    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Tab Nav", "thim-blocks"),
    initialOpen: false
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    style: {
      marginBottom: "20px"
    }
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.BorderBoxControl, {
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Border", "thim-blocks"),
    value: navTabs.border || {
      width: 1,
      style: "solid",
      color: "#000000"
    },
    onChange: value => {
      setAttributes({
        navTabs: {
          ...navTabs,
          border: value
        }
      });
    }
  })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    style: {
      marginBottom: "20px"
    }
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.BoxControl, {
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Radius", "thim-blocks"),
    values: navTabs?.radius,
    onChange: value => setAttributes({
      navTabs: {
        ...navTabs,
        radius: value
      }
    })
  })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_components_dimensions_dimensions__WEBPACK_IMPORTED_MODULE_9__["default"], {
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Screen Type", "thim-blocks")
  }, deviceType => {
    const device = deviceType.toLowerCase();
    return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
      style: {
        marginBottom: "20px"
      }
    }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.BoxControl, {
      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Padding (px)", "thim-blocks"),
      values: navTabs?.padding?.[device],
      onChange: value => setAttributes({
        navTabs: {
          ...navTabs,
          padding: {
            ...navTabs.padding,
            [device]: value
          }
        }
      })
    })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.RangeControl, {
      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Tab Nav Spacing (px)", "thim-blocks"),
      value: navTabs?.spaceContent?.[device] || 30,
      onChange: value => setAttributes({
        navTabs: {
          ...navTabs,
          spaceContent: {
            ...navTabs.spaceContent,
            [device]: value
          }
        }
      }),
      min: 0,
      max: 100,
      step: 1
    }));
  }))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.InspectorControls, {
    group: "styles"
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.PanelBody, {
    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Title Style", "thim-blocks"),
    initialOpen: false
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    style: {
      marginBottom: "20px"
    }
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_components_dimensions_dimensions__WEBPACK_IMPORTED_MODULE_9__["default"], {
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Screen Type", "thim-blocks")
  }, deviceType => {
    var _tabGap$device;
    return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.FontSizePicker, {
      fontSizes: fontSizes,
      value: titleFontSize[device],
      onChange: value => {
        setAttributes({
          titleFontSize: {
            ...titleFontSize,
            [device]: value
          }
        });
      }
    }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
      style: {
        marginBottom: "20px"
      }
    }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.RangeControl, {
      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Gap between tab titles (px)", "thim-blocks"),
      value: (_tabGap$device = tabGap?.[device]) !== null && _tabGap$device !== void 0 ? _tabGap$device : 0,
      onChange: value => setAttributes({
        tabGap: {
          ...tabGap,
          [device]: value
        }
      }),
      min: 0,
      max: 100,
      step: 1
    })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.BoxControl, {
      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Title Padding (px)", "thim-blocks"),
      values: titlePadding?.[device],
      onChange: value => setAttributes({
        titlePadding: {
          ...titlePadding,
          [device]: value
        }
      })
    }));
  })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    style: {
      marginBottom: "20px"
    }
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.SelectControl, {
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Font Weight", "thim-blocks"),
    value: titleFontWeight,
    options: [{
      label: "400",
      value: "400"
    }, {
      label: "500",
      value: "500"
    }, {
      label: "600",
      value: "600"
    }, {
      label: "700",
      value: "700"
    }],
    onChange: value => setAttributes({
      titleFontWeight: value
    })
  })))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.InspectorControls, {
    group: "styles"
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.PanelBody, {
    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Icon Styles", "thim-blocks"),
    initialOpen: false
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.SelectControl, {
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Icon Position", "thim-blocks"),
    value: iconPosition,
    options: [{
      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Top", "thim-blocks"),
      value: "top"
    }, {
      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Right", "thim-blocks"),
      value: "right"
    }, {
      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Left", "thim-blocks"),
      value: "left"
    }],
    onChange: val => setAttributes({
      iconPosition: val
    })
  }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    style: {
      marginBottom: "20px"
    }
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.RangeControl, {
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Icon Spacing (px)", "thim-blocks"),
    value: iconSpace,
    onChange: val => setAttributes({
      iconSpace: val
    }),
    min: 0,
    max: 50
  })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_components_dimensions_dimensions__WEBPACK_IMPORTED_MODULE_9__["default"], {
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Screen Type", "thim-blocks")
  }, deviceType => {
    const device = deviceType.toLowerCase();
    return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.FontSizePicker, {
      fontSizes: fontSizes,
      value: iconFontSize[device],
      onChange: value => {
        setAttributes({
          iconFontSize: {
            ...iconFontSize,
            [device]: value
          }
        });
      }
    }));
  }))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.InspectorControls, {
    group: "styles"
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.PanelBody, {
    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Colors", "thim-blocks"),
    initialOpen: false
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.TabPanel, {
    className: "thim-blocks-title-colors-tabs",
    activeClass: "active-tab",
    tabs: [{
      name: "normal",
      title: "Normal",
      className: "tab-normal"
    }, {
      name: "active",
      title: "Active",
      className: "tab-active"
    }]
  }, tab => (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    style: {
      marginTop: "16px"
    }
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.PanelColorSettings, {
    colorSettings: [{
      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Text Color", "thim-blocks"),
      value: Colors[tab.name].text,
      onChange: value => updateColor(tab.name, "text", value)
    }, {
      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Background Color", "thim-blocks"),
      value: Colors[tab.name].background,
      onChange: value => updateColor(tab.name, "background", value)
    }, {
      label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Icon Color", "thim-blocks"),
      value: Colors[tab.name].icon,
      onChange: value => updateColor(tab.name, "icon", value)
    }]
  }))))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.InspectorControls, {
    group: "styles"
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.PanelBody, {
    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Borders", "thim-blocks"),
    initialOpen: false
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.TabPanel, {
    className: "thim-blocks-borders-tabs",
    activeClass: "active-tab",
    tabs: [{
      name: "normal",
      title: "Normal",
      className: "tab-normal"
    }, {
      name: "active",
      title: "Active",
      className: "tab-active"
    }]
  }, tab => {
    const defaultBorder = {
      top: {
        width: 0,
        style: "solid",
        color: ""
      },
      right: {
        width: 0,
        style: "solid",
        color: ""
      },
      bottom: {
        width: 0,
        style: "solid",
        color: ""
      },
      left: {
        width: 0,
        style: "solid",
        color: ""
      }
    };
    const borderData = Borders?.[tab.name] || defaultBorder;
    return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
      className: `tab-panel tab-${tab.name}`,
      style: {
        marginTop: "10px"
      }
    }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.BorderBoxControl, {
      label: `Border (${tab.title})`,
      value: borderData,
      onChange: value => {
        setAttributes({
          Borders: {
            ...Borders,
            [tab.name]: value
          }
        });
      }
    }));
  }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    style: {
      marginTop: "15px"
    }
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.RangeControl, {
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Border Radius (px)", "thim-blocks"),
    value: Borders?.radius ? parseInt(Borders.radius) : 0,
    onChange: value => setAttributes({
      Borders: {
        ...Borders,
        radius: `${value}px`
      }
    }),
    min: 0,
    max: 50
  })))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    className: ["thim-blocks-tabs__nav", showIcon && `thim-blocks-tabs__nav--icon-${iconPosition}`].filter(Boolean).join(" "),
    role: "tablist",
    style: {
      gap: `${(_tabGap$device2 = tabGap?.[device]) !== null && _tabGap$device2 !== void 0 ? _tabGap$device2 : 0}px`,
      justifyContent: alignment === "center" ? "center" : alignment === "right" ? "flex-end" : alignment === "fluid" ? "space-between" : "flex-start",
      "--icon-gap": iconSpace ? `${iconSpace}px` : "8px",
      borderRadius: `${navTabs?.radius?.top || 0}px ${navTabs?.radius?.right || 0}px ${navTabs?.radius?.bottom || 0}px ${navTabs?.radius?.left || 0}px`,
      padding: (() => {
        const navPadding = navTabs?.padding?.[device];
        if (!navPadding) return '0px';
        const addPx = val => {
          if (!val) return '0px';
          const str = val.toString();
          return str.includes('px') ? str : `${val}px`;
        };
        return `${addPx(navPadding.top)} ${addPx(navPadding.right)} ${addPx(navPadding.bottom)} ${addPx(navPadding.left)}`;
      })(),
      marginBottom: `${(_navTabs$spaceContent = navTabs?.spaceContent?.[device]) !== null && _navTabs$spaceContent !== void 0 ? _navTabs$spaceContent : 30}px`,
      ...navTabsStyles
    }
  }, itemList.map((item, i) => {
    const buttonClassName = ["thim-blocks-tabs__nav-button", i === currentItemIndex ? "is-active" : ""].join(" ");
    const iconClass = innerBlocks[i]?.attributes?.iconClass;
    const iconStyle = {
      fontSize: iconFontSize[device]
    };
    const titlePaddingForDevice = titlePadding?.[device];
    return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
      key: item.blockId,
      className: buttonClassName,
      role: "tab",
      "aria-selected": i === currentItemIndex,
      onClick: () => setCurrentItemIndex(i),
      style: {
        ...(titlePaddingForDevice && (titlePaddingForDevice.top || titlePaddingForDevice.right || titlePaddingForDevice.bottom || titlePaddingForDevice.left) ? {
          padding: `${titlePaddingForDevice.top || 0}px ${titlePaddingForDevice.right || 0}px ${titlePaddingForDevice.bottom || 0}px ${titlePaddingForDevice.left || 0}px`
        } : {}),
        fontSize: titleFontSize[device],
        fontWeight: titleFontWeight,
        ...buttonStyles
      }
    }, iconClass && showIcon && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: iconClass,
      style: iconStyle
    }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.RichText, {
      tagName: "span",
      value: item.title,
      onChange: title => updateBlockAttributes(item.blockId, {
        title
      }),
      placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Tab title…", "thim-blocks"),
      allowedFormats: []
    }));
  })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_humanmade_block_editor_components__WEBPACK_IMPORTED_MODULE_1__.InnerBlockSlider.Controlled, {
    allowedBlock: ALLOWED_BLOCK,
    className: "thim-blocks-tabs__content",
    slideLimit: TAB_LIMIT,
    parentBlockId: clientId,
    currentItemIndex: currentItemIndex,
    setCurrentItemIndex: setCurrentItemIndex,
    showNav: false
  }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_components_library_icon_InserterModal__WEBPACK_IMPORTED_MODULE_8__["default"], {
    isOpen: isIconModalOpen,
    setIsOpen: setIconModalOpen,
    setAttributes: newAttrs => {
      const activeBlockId = innerBlocks[currentItemIndex]?.clientId;
      if (!activeBlockId) return;
      updateBlockAttributes(activeBlockId, newAttrs);
    }
  }));
}

/***/ }),

/***/ "./assets/src/blocks/tabs/index.js":
/*!*****************************************!*\
  !*** ./assets/src/blocks/tabs/index.js ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _edit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./edit.js */ "./assets/src/blocks/tabs/edit.js");
/* harmony import */ var _save_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./save.js */ "./assets/src/blocks/tabs/save.js");
/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block.json */ "./assets/src/blocks/tabs/block.json");
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./style.scss */ "./assets/src/blocks/tabs/style.scss");






// Register the block with the original metadata, ancestor will be set on block.json
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_2__.name, {
  ..._block_json__WEBPACK_IMPORTED_MODULE_2__,
  edit: _edit_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  save: _save_js__WEBPACK_IMPORTED_MODULE_1__["default"]
});

/***/ }),

/***/ "./assets/src/blocks/tabs/save.js":
/*!****************************************!*\
  !*** ./assets/src/blocks/tabs/save.js ***!
  \****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);



/**
 * Saves the block content for display on the frontend.
 *
 * @param {Object} props
 * @param {Object} props.attributes
 * @return {Element} Formatted block.
 */
function Save({
  attributes
}) {
  const {
    tabGap,
    alignment,
    tablistContainerId,
    titlePadding,
    titleFontSize,
    titleFontWeight,
    iconPosition,
    showIcon,
    iconFontSize,
    iconSpace,
    Colors,
    Borders,
    navTabs
  } = attributes;
  const mapAlignmentToCSS = align => {
    if (align === "fluid") return "space-between";
    if (align === "center") return "center";
    if (align === "right") return "flex-end";
    return "flex-start";
  };
  const sides = ["top", "right", "bottom", "left"];
  const states = ["normal", "active"];
  const types = ["width", "style", "color"];
  const navBorder = navTabs?.border || {};
  const borderVars = states.reduce((acc, state) => {
    const border = Borders[state] || {};
    types.forEach(type => {
      sides.forEach(side => {
        var _border$side$type;
        const value = (_border$side$type = border[side]?.[type]) !== null && _border$side$type !== void 0 ? _border$side$type : border[type];
        if (value !== undefined && value !== "") {
          acc[`--tab-border-${state}-${side}-${type}`] = value;
        }
      });
    });

    // single-side fallback
    types.forEach(type => {
      if (border[type] !== undefined && border[type] !== "") {
        acc[`--tab-border-${state}-${type}`] = border[type];
      }
    });
    return acc;
  }, {});
  const createResponsiveVars = (prefix, values) => {
    if (!values) return {};
    return Object.entries(values).reduce((acc, [key, val]) => {
      if (val) {
        // Add px unit if value is a number and doesn't already have a unit
        const value = typeof val === 'number' || !isNaN(val) && !val.toString().includes('px') ? `${val}px` : val;
        acc[`--${prefix}-${key}`] = value;
      }
      return acc;
    }, {});
  };
  const createResponsivePaddingVars = (prefix, paddingObj) => {
    if (!paddingObj) return {};
    return Object.entries(paddingObj).reduce((acc, [device, padding]) => {
      if (padding && (padding.top != null || padding.right != null || padding.bottom != null || padding.left != null)) {
        const {
          top = 0,
          right = 0,
          bottom = 0,
          left = 0
        } = padding;
        // Ensure values don't already have px before adding
        const addPx = val => {
          const str = val.toString();
          return str.includes('px') ? str : `${val}px`;
        };
        acc[`--${prefix}-${device}`] = `${addPx(top)} ${addPx(right)} ${addPx(bottom)} ${addPx(left)}`;
      }
      return acc;
    }, {});
  };
  const navTabsStyles = {
    ...createResponsivePaddingVars("nav-tab-padding", navTabs.padding),
    ...(navTabs?.radius ? {
      "--nav-tab-radius": `${navTabs?.radius?.top}px ${navTabs?.radius?.right}px ${navTabs?.radius?.bottom}px ${navTabs?.radius?.left}px`
    } : {}),
    ...createResponsiveVars("nav-tab-space-content", navTabs.spaceContent),
    ...(navBorder.width !== undefined && navBorder.width !== "" && {
      "--border-nav-width": navBorder.width
    }),
    ...(navBorder.style && {
      "--border-nav-style": navBorder.style
    }),
    ...(navBorder.color && {
      "--border-nav-color": navBorder.color
    }),
    ...sides.reduce((acc, side) => {
      var _navBorder$side$width, _navBorder$side$style, _navBorder$side$color;
      const width = (_navBorder$side$width = navBorder[side]?.width) !== null && _navBorder$side$width !== void 0 ? _navBorder$side$width : navBorder.width;
      const style = (_navBorder$side$style = navBorder[side]?.style) !== null && _navBorder$side$style !== void 0 ? _navBorder$side$style : navBorder.style;
      const color = (_navBorder$side$color = navBorder[side]?.color) !== null && _navBorder$side$color !== void 0 ? _navBorder$side$color : navBorder.color;
      if (width !== undefined) acc[`--border-nav-${side}-width`] = width;
      if (style) acc[`--border-nav-${side}-style`] = style;
      if (color) acc[`--border-nav-${side}-color`] = color;
      return acc;
    }, {})
  };
  const cleanVars = obj => Object.fromEntries(Object.entries(obj).filter(([, v]) => v !== "" && v !== undefined && v !== null));
  const blockProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({
    className: ["thim-blocks-tabs", showIcon && `thim-blocks-tabs__nav--icon-${iconPosition}`].filter(Boolean).join(" "),
    style: cleanVars({
      ...createResponsiveVars("tab-gap", tabGap),
      ...(alignment ? {
        "--tab-align": mapAlignmentToCSS(alignment)
      } : {}),
      ...createResponsivePaddingVars("title-padding", titlePadding),
      ...(titleFontWeight ? {
        "--tab-title-font-weight": `${titleFontWeight}`
      } : {}),
      ...createResponsiveVars("tab-title-font-size", titleFontSize),
      ...(iconSpace ? {
        "--icon-gap": `${iconSpace}px`
      } : {}),
      ...createResponsiveVars("icon-font-size", iconFontSize),
      ...(Colors.normal.text && {
        "--tab-color-normal": Colors.normal.text
      }),
      ...(Colors.normal.background && {
        "--tab-bg-normal": Colors.normal.background
      }),
      ...(Colors.normal.icon && {
        "--tab-icon-normal": Colors.normal.icon
      }),
      ...(Colors.active.text && {
        "--tab-color-active": Colors.active.text
      }),
      ...(Colors.active.background && {
        "--tab-bg-active": Colors.active.background
      }),
      ...(Colors.active.icon && {
        "--tab-icon-active": Colors.active.icon
      }),
      ...(Borders.radius && {
        "--tab-border-radius": Borders.radius
      }),
      ...borderVars,
      ...navTabsStyles
    }),
    "data-tablist-container-id": tablistContainerId || undefined
  });
  const innerBlocksProps = _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useInnerBlocksProps.save({
    className: "thim-blocks-tabs__content"
  });
  return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    ...blockProps
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    ...innerBlocksProps
  }));
}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Save);

/***/ }),

/***/ "./assets/src/components/dimensions/dimensions.js":
/*!********************************************************!*\
  !*** ./assets/src/components/dimensions/dimensions.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/desktop.js");
/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/tablet.js");
/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/mobile.js");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/compose */ "@wordpress/compose");
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _dimensions_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./dimensions.scss */ "./assets/src/components/dimensions/dimensions.scss");








const ResponsiveControl = ({
  label,
  className,
  children
}) => {
  const instanceId = (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_4__.useInstanceId)(ResponsiveControl);
  const id = `thim-responsive-control-${instanceId}`;
  const deviceType = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useSelect)(select => {
    const {
      getDeviceType
    } = select('core/editor');
    return getDeviceType ? getDeviceType() : 'Tablet';
  }, []);
  const {
    setDeviceType: setPreviewDeviceType
  } = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useDispatch)('core/editor');
  const setDeviceType = device => {
    if (setPreviewDeviceType) {
      setPreviewDeviceType(device);
    }
  };
  return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    id: id,
    className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('thim-responsive-control', className)
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    className: "components-base-control__field"
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    className: "components-base-control__title"
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", {
    className: "components-base-control__label"
  }, label), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Flex, {
    className: "thim-responsive-buttons"
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, {
    icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_7__["default"],
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Desktop', 'thim-blocks'),
    onClick: () => setDeviceType('Desktop'),
    className: classnames__WEBPACK_IMPORTED_MODULE_1___default()({
      'is-selected': deviceType === 'Desktop'
    })
  }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, {
    icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_8__["default"],
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Tablet', 'thim-blocks'),
    onClick: () => setDeviceType('Tablet'),
    className: classnames__WEBPACK_IMPORTED_MODULE_1___default()({
      'is-selected': deviceType === 'Tablet'
    })
  }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.Button, {
    icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_9__["default"],
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Mobile', 'thim-blocks'),
    onClick: () => setDeviceType('Mobile'),
    className: classnames__WEBPACK_IMPORTED_MODULE_1___default()({
      'is-selected': deviceType === 'Mobile'
    })
  }))), typeof children === 'function' && children(deviceType)));
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ResponsiveControl);

/***/ }),

/***/ "./assets/src/components/library-icon/InserterModal.jsx":
/*!**************************************************************!*\
  !*** ./assets/src/components/library-icon/InserterModal.jsx ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ InserterModal)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./icons */ "./assets/src/components/library-icon/icons.js");

// InserterModal.jsx




function InserterModal({
  isOpen,
  setIsOpen,
  setAttributes
}) {
  const icons = (0,_icons__WEBPACK_IMPORTED_MODULE_4__["default"])();
  const [search, setSearch] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useState)('');
  if (!isOpen) return null;
  const handleSelect = iconClass => {
    setAttributes({
      iconClass
    });
    setIsOpen(false);
  };
  const filteredIcons = icons.filter(item => item.name.toLowerCase().includes(search.toLowerCase()));
  return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Modal, {
    onRequestClose: () => setIsOpen(false),
    className: "thim-blocks-icon-modal no-default-header",
    title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Select Icon', 'thim-blocks')
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    className: "thim-blocks-modal-custom-header"
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("h2", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Select Icon', 'thim-blocks')), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    style: {
      display: 'flex',
      gap: '8px',
      alignItems: 'center'
    }
  }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, {
    placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Search icons…', 'thim-blocks'),
    value: search,
    onChange: val => setSearch(val),
    style: {
      width: 200
    }
  }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, {
    icon: "no-alt",
    label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Close', 'thim-blocks'),
    onClick: () => setIsOpen(false),
    isSmall: true
  }))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: 'repeat(auto-fill, minmax(60px, 1fr))',
      gap: '12px',
      maxHeight: '400px',
      maxWidth: '1200px',
      overflowY: 'auto'
    }
  }, filteredIcons.map(item => (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, {
    key: item.name,
    onClick: () => handleSelect(item.icon.props.className),
    style: {
      height: 60,
      width: 60,
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center',
      fontSize: 24,
      color: '#111111'
    },
    variant: "secondary"
  }, item.icon))));
}

/***/ }),

/***/ "./assets/src/components/library-icon/icons.js":
/*!*****************************************************!*\
  !*** ./assets/src/components/library-icon/icons.js ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getIcons)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

function getIcons() {
  return [{
    name: "alarm-clock",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-alarm-clock"
    })
  }, {
    name: "angle-double-down",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-angle-double-down"
    })
  }, {
    name: "angle-double-left",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-angle-double-left"
    })
  }, {
    name: "angle-double-right",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-angle-double-right"
    })
  }, {
    name: "angle-double-up",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-angle-double-up"
    })
  }, {
    name: "angle-down",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-angle-down"
    })
  }, {
    name: "angle-left",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-angle-left"
    })
  }, {
    name: "angle-right",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-angle-right"
    })
  }, {
    name: "angle-up",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-angle-up"
    })
  }, {
    name: "arrow-left",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-arrow-left"
    })
  }, {
    name: "arrow-right",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-arrow-right"
    })
  }, {
    name: "drag",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-drag"
    })
  }, {
    name: "drag-alt",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-drag-alt"
    })
  }, {
    name: "art-and-design",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-art-and-design"
    })
  }, {
    name: "bar-chart",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-bar-chart"
    })
  }, {
    name: "bar-chart-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-bar-chart-o"
    })
  }, {
    name: "bell-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-bell-o"
    })
  }, {
    name: "best-customer-experience",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-best-customer-experience"
    })
  }, {
    name: "book",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-book"
    })
  }, {
    name: "book-open",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-book-open"
    })
  }, {
    name: "bookmark",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-bookmark"
    })
  }, {
    name: "bookmark-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-bookmark-o"
    })
  }, {
    name: "box",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-box"
    })
  }, {
    name: "briefcase",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-briefcase"
    })
  }, {
    name: "bullhorn",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-bullhorn"
    })
  }, {
    name: "calendar",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-calendar"
    })
  }, {
    name: "calendar-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-calendar-o"
    })
  }, {
    name: "caret-down",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-caret-down"
    })
  }, {
    name: "caret-left",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-caret-left"
    })
  }, {
    name: "caret-right",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-caret-right"
    })
  }, {
    name: "caret-up",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-caret-up"
    })
  }, {
    name: "certificate",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-certificate"
    })
  }, {
    name: "certificate-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-certificate-o"
    })
  }, {
    name: "check",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-check"
    })
  }, {
    name: "check-circle",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-check-circle"
    })
  }, {
    name: "check-square-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-check-square-o"
    })
  }, {
    name: "chevron-down",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-chevron-down"
    })
  }, {
    name: "chevron-left",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-chevron-left"
    })
  }, {
    name: "chevron-right",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-chevron-right"
    })
  }, {
    name: "chevron-up",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-chevron-up"
    })
  }, {
    name: "circle-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-circle-o"
    })
  }, {
    name: "circle-thin",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-circle-thin"
    })
  }, {
    name: "clock",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-clock"
    })
  }, {
    name: "clock-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-clock-o"
    })
  }, {
    name: "close",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-close"
    })
  }, {
    name: "close-circle",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-close-circle"
    })
  }, {
    name: "co-instructor",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-co-instructor"
    })
  }, {
    name: "code",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-code"
    })
  }, {
    name: "cog",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-cog"
    })
  }, {
    name: "cogs",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-cogs"
    })
  }, {
    name: "comment",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-comment"
    })
  }, {
    name: "comment-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-comment-o"
    })
  }, {
    name: "comment-written",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-comment-written"
    })
  }, {
    name: "community",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-community"
    })
  }, {
    name: "compress",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-compress"
    })
  }, {
    name: "concierge-bell",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-concierge-bell"
    })
  }, {
    name: "content-marketing",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-content-marketing"
    })
  }, {
    name: "copy",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-copy"
    })
  }, {
    name: "courses",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-courses"
    })
  }, {
    name: "database",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-database"
    })
  }, {
    name: "desktop",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-desktop"
    })
  }, {
    name: "dollar-sign",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-dollar-sign"
    })
  }, {
    name: "dot-circle-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-dot-circle-o"
    })
  }, {
    name: "download",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-download"
    })
  }, {
    name: "dropbox",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-dropbox"
    })
  }, {
    name: "ebook",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-ebook"
    })
  }, {
    name: "edit",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-edit"
    })
  }, {
    name: "educational-programs",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-educational-programs"
    })
  }, {
    name: "ellipsis-h",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-ellipsis-h"
    })
  }, {
    name: "ellipsis-v",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-ellipsis-v"
    })
  }, {
    name: "envelope-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-envelope-o"
    })
  }, {
    name: "exclamation-circle",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-exclamation-circle"
    })
  }, {
    name: "exclamation-triangle",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-exclamation-triangle"
    })
  }, {
    name: "expand",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-expand"
    })
  }, {
    name: "eye",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-eye"
    })
  }, {
    name: "eye-slash",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-eye-slash"
    })
  }, {
    name: "facebook",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-facebook"
    })
  }, {
    name: "facebook-f",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-facebook-f"
    })
  }, {
    name: "failed_courses",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-failed_courses"
    })
  }, {
    name: "file",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file"
    })
  }, {
    name: "file-alt",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-alt"
    })
  }, {
    name: "file-archive",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-archive"
    })
  }, {
    name: "file-audio",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-audio"
    })
  }, {
    name: "file-code",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-code"
    })
  }, {
    name: "file-download",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-download"
    })
  }, {
    name: "file-excel",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-excel"
    })
  }, {
    name: "file-image",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-image"
    })
  }, {
    name: "file-movie",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-movie"
    })
  }, {
    name: "file-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-o"
    })
  }, {
    name: "file-pdf",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-pdf"
    })
  }, {
    name: "file-photo",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-photo"
    })
  }, {
    name: "file-picture",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-picture"
    })
  }, {
    name: "file-powerpoint",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-powerpoint"
    })
  }, {
    name: "file-sound",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-sound"
    })
  }, {
    name: "file-text-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-text-o"
    })
  }, {
    name: "file-video",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-video"
    })
  }, {
    name: "file-word",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-word"
    })
  }, {
    name: "file-zip",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-file-zip"
    })
  }, {
    name: "files-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-files-o"
    })
  }, {
    name: "filter",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-filter"
    })
  }, {
    name: "finished_courses",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-finished_courses"
    })
  }, {
    name: "flag",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-flag"
    })
  }, {
    name: "gear",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-gear"
    })
  }, {
    name: "gears",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-gears"
    })
  }, {
    name: "gift",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-gift"
    })
  }, {
    name: "google",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-google"
    })
  }, {
    name: "google-plus",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-google-plus"
    })
  }, {
    name: "google-plus-circle",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-google-plus-circle"
    })
  }, {
    name: "google-plus-official",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-google-plus-official"
    })
  }, {
    name: "google-plus-square",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-google-plus-square"
    })
  }, {
    name: "graduation-cap",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-graduation-cap"
    })
  }, {
    name: "heart",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-heart"
    })
  }, {
    name: "heart-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-heart-o"
    })
  }, {
    name: "home",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-home"
    })
  }, {
    name: "icon-h5p",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-icon-h5p"
    })
  }, {
    name: "in_progress_course",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-in_progress_course"
    })
  }, {
    name: "instagram",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-instagram"
    })
  }, {
    name: "key",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-key"
    })
  }, {
    name: "language",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-language"
    })
  }, {
    name: "layers",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-layers"
    })
  }, {
    name: "line-chart",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-line-chart"
    })
  }, {
    name: "linkedin",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-linkedin"
    })
  }, {
    name: "linkedin-square",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-linkedin-square"
    })
  }, {
    name: "list",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-list"
    })
  }, {
    name: "list-check",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-list-check"
    })
  }, {
    name: "lock",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-lock"
    })
  }, {
    name: "lucide",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-lucide"
    })
  }, {
    name: "map-marker",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-map-marker"
    })
  }, {
    name: "map-pin",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-map-pin"
    })
  }, {
    name: "minus",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-minus"
    })
  }, {
    name: "mobile",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-mobile"
    })
  }, {
    name: "mobile-phone",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-mobile-phone"
    })
  }, {
    name: "money-bill-alt",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-money-bill-alt"
    })
  }, {
    name: "monitor",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-monitor"
    })
  }, {
    name: "mortar-board",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-mortar-board"
    })
  }, {
    name: "my-courses",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-my-courses"
    })
  }, {
    name: "online-class",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-online-class"
    })
  }, {
    name: "online-education",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-online-education"
    })
  }, {
    name: "passed_courses",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-passed_courses"
    })
  }, {
    name: "pencil-square-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-pencil-square-o"
    })
  }, {
    name: "pending_course",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-pending_course"
    })
  }, {
    name: "phone",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-phone"
    })
  }, {
    name: "pie-chart",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-pie-chart"
    })
  }, {
    name: "pinterest",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-pinterest"
    })
  }, {
    name: "pinterest-square",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-pinterest-square"
    })
  }, {
    name: "play-circle-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-play-circle-o"
    })
  }, {
    name: "plus",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-plus"
    })
  }, {
    name: "published_course",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-published_course"
    })
  }, {
    name: "puzzle-piece",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-puzzle-piece"
    })
  }, {
    name: "question",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-question"
    })
  }, {
    name: "question-circle",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-question-circle"
    })
  }, {
    name: "question-circle-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-question-circle-o"
    })
  }, {
    name: "refresh",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-refresh"
    })
  }, {
    name: "remove",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-remove"
    })
  }, {
    name: "search",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-search"
    })
  }, {
    name: "share-alt",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-share-alt"
    })
  }, {
    name: "shopping-cart",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-shopping-cart"
    })
  }, {
    name: "sign-in",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-sign-in"
    })
  }, {
    name: "sign-out",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-sign-out"
    })
  }, {
    name: "signal",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-signal"
    })
  }, {
    name: "spinner",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-spinner"
    })
  }, {
    name: "square-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-square-o"
    })
  }, {
    name: "star",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-star"
    })
  }, {
    name: "star-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-star-o"
    })
  }, {
    name: "stopwatch",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-stopwatch"
    })
  }, {
    name: "student_completed",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-student_completed"
    })
  }, {
    name: "student_in_progress",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-student_in_progress"
    })
  }, {
    name: "students",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-students"
    })
  }, {
    name: "target",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-target"
    })
  }, {
    name: "television",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-television"
    })
  }, {
    name: "th",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-th"
    })
  }, {
    name: "th-large",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-th-large"
    })
  }, {
    name: "th-list",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-th-list"
    })
  }, {
    name: "thumbs-o-down",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-thumbs-o-down"
    })
  }, {
    name: "thumbs-o-up",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-thumbs-o-up"
    })
  }, {
    name: "tiktok",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-tiktok"
    })
  }, {
    name: "times",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-times"
    })
  }, {
    name: "trash-o",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-trash-o"
    })
  }, {
    name: "tv",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-tv"
    })
  }, {
    name: "twitter",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-twitter"
    })
  }, {
    name: "unlock",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-unlock"
    })
  }, {
    name: "user",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-user"
    })
  }, {
    name: "user-circle",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-user-circle"
    })
  }, {
    name: "user-edit",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-user-edit"
    })
  }, {
    name: "user-graduate",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-user-graduate"
    })
  }, {
    name: "user-secret",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-user-secret"
    })
  }, {
    name: "video-camera",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-video-camera"
    })
  }, {
    name: "warning",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-warning"
    })
  }, {
    name: "website",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-website"
    })
  }, {
    name: "worldwide-security",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-worldwide-security"
    })
  }, {
    name: "youtube",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-youtube"
    })
  }, {
    name: "reddit",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-reddit"
    })
  }, {
    name: "whatsapp",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-whatsapp"
    })
  }, {
    name: "pocket",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-pocket"
    })
  }, {
    name: "stumbleupon",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-stumbleupon"
    })
  }, {
    name: "tumblr",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-tumblr"
    })
  }, {
    name: "blogger",
    icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("i", {
      className: "tb-icon-blogger"
    })
  }];
}

/***/ }),

/***/ "./assets/src/blocks/tabs/style.scss":
/*!*******************************************!*\
  !*** ./assets/src/blocks/tabs/style.scss ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./assets/src/components/dimensions/dimensions.scss":
/*!**********************************************************!*\
  !*** ./assets/src/components/dimensions/dimensions.scss ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "react":
/*!************************!*\
  !*** external "React" ***!
  \************************/
/***/ ((module) => {

"use strict";
module.exports = window["React"];

/***/ }),

/***/ "react/jsx-runtime":
/*!**********************************!*\
  !*** external "ReactJSXRuntime" ***!
  \**********************************/
/***/ ((module) => {

"use strict";
module.exports = window["ReactJSXRuntime"];

/***/ }),

/***/ "@wordpress/block-editor":
/*!*************************************!*\
  !*** external ["wp","blockEditor"] ***!
  \*************************************/
/***/ ((module) => {

"use strict";
module.exports = window["wp"]["blockEditor"];

/***/ }),

/***/ "@wordpress/blocks":
/*!********************************!*\
  !*** external ["wp","blocks"] ***!
  \********************************/
/***/ ((module) => {

"use strict";
module.exports = window["wp"]["blocks"];

/***/ }),

/***/ "@wordpress/components":
/*!************************************!*\
  !*** external ["wp","components"] ***!
  \************************************/
/***/ ((module) => {

"use strict";
module.exports = window["wp"]["components"];

/***/ }),

/***/ "@wordpress/compose":
/*!*********************************!*\
  !*** external ["wp","compose"] ***!
  \*********************************/
/***/ ((module) => {

"use strict";
module.exports = window["wp"]["compose"];

/***/ }),

/***/ "@wordpress/data":
/*!******************************!*\
  !*** external ["wp","data"] ***!
  \******************************/
/***/ ((module) => {

"use strict";
module.exports = window["wp"]["data"];

/***/ }),

/***/ "@wordpress/element":
/*!*********************************!*\
  !*** external ["wp","element"] ***!
  \*********************************/
/***/ ((module) => {

"use strict";
module.exports = window["wp"]["element"];

/***/ }),

/***/ "@wordpress/i18n":
/*!******************************!*\
  !*** external ["wp","i18n"] ***!
  \******************************/
/***/ ((module) => {

"use strict";
module.exports = window["wp"]["i18n"];

/***/ }),

/***/ "@wordpress/primitives":
/*!************************************!*\
  !*** external ["wp","primitives"] ***!
  \************************************/
/***/ ((module) => {

"use strict";
module.exports = window["wp"]["primitives"];

/***/ }),

/***/ "./node_modules/classnames/index.js":
/*!******************************************!*\
  !*** ./node_modules/classnames/index.js ***!
  \******************************************/
/***/ ((module, exports) => {

var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/
/* global define */

(function () {
	'use strict';

	var hasOwn = {}.hasOwnProperty;

	function classNames () {
		var classes = '';

		for (var i = 0; i < arguments.length; i++) {
			var arg = arguments[i];
			if (arg) {
				classes = appendClass(classes, parseValue(arg));
			}
		}

		return classes;
	}

	function parseValue (arg) {
		if (typeof arg === 'string' || typeof arg === 'number') {
			return arg;
		}

		if (typeof arg !== 'object') {
			return '';
		}

		if (Array.isArray(arg)) {
			return classNames.apply(null, arg);
		}

		if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
			return arg.toString();
		}

		var classes = '';

		for (var key in arg) {
			if (hasOwn.call(arg, key) && arg[key]) {
				classes = appendClass(classes, key);
			}
		}

		return classes;
	}

	function appendClass (value, newClass) {
		if (!newClass) {
			return value;
		}
	
		if (value) {
			return value + ' ' + newClass;
		}
	
		return value + newClass;
	}

	if ( true && module.exports) {
		classNames.default = classNames;
		module.exports = classNames;
	} else if (true) {
		// register as 'classnames', consistent with npm package name
		!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
			return classNames;
		}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
	} else {}
}());


/***/ }),

/***/ "./assets/src/blocks/tabs/block.json":
/*!*******************************************!*\
  !*** ./assets/src/blocks/tabs/block.json ***!
  \*******************************************/
/***/ ((module) => {

"use strict";
module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"thim-blocks/tabs","title":"Thim Tabs","category":"thim-block-category","description":"Display a set of tabs with customizable tab items.","icon":"index-card","textdomain":"thim-blocks","attributes":{"tablistContainerId":{"type":"string"},"navTabs":{"type":"object","default":{"border":{"width":"","style":"","color":""},"padding":{"desktop":"","tablet":"","mobile":""},"spaceContent":{"desktop":30,"tablet":30,"mobile":20},"radius":""}},"tabGap":{"type":"object","default":{"desktop":30,"tablet":30,"mobile":20}},"alignment":{"type":"string","default":"left"},"titlePadding":{"type":"object","default":{"desktop":"","tablet":"","mobile":""}},"titleFontSize":{"type":"object","default":{"desktop":"","tablet":"","mobile":""}},"titleFontWeight":{"type":"string","default":"700"},"showIcon":{"type":"boolean","default":false},"iconPosition":{"type":"string","default":"left"},"iconFontSize":{"type":"object","default":{"desktop":"","tablet":"","mobile":""}},"iconSpace":{"type":"number","default":8},"Colors":{"type":"object","default":{"normal":{"text":"","background":"","icon":""},"active":{"text":"","background":"","icon":""}}},"Borders":{"type":"object","default":{"normal":{"top":{"width":"","style":"","color":""},"right":{"width":"","style":"","color":""},"bottom":{"width":"","style":"","color":""},"left":{"width":"","style":"","color":""}},"active":{"top":{"width":"","style":"","color":""},"right":{"width":"","style":"","color":""},"bottom":{"width":"","style":"","color":""},"left":{"width":"","style":"","color":""}},"radius":0}}},"supports":{"align":true,"html":false,"innerBlocks":true,"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":true,"padding":true}}}}');

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = __webpack_modules__;
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/chunk loaded */
/******/ 	(() => {
/******/ 		var deferred = [];
/******/ 		__webpack_require__.O = (result, chunkIds, fn, priority) => {
/******/ 			if(chunkIds) {
/******/ 				priority = priority || 0;
/******/ 				for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
/******/ 				deferred[i] = [chunkIds, fn, priority];
/******/ 				return;
/******/ 			}
/******/ 			var notFulfilled = Infinity;
/******/ 			for (var i = 0; i < deferred.length; i++) {
/******/ 				var [chunkIds, fn, priority] = deferred[i];
/******/ 				var fulfilled = true;
/******/ 				for (var j = 0; j < chunkIds.length; j++) {
/******/ 					if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
/******/ 						chunkIds.splice(j--, 1);
/******/ 					} else {
/******/ 						fulfilled = false;
/******/ 						if(priority < notFulfilled) notFulfilled = priority;
/******/ 					}
/******/ 				}
/******/ 				if(fulfilled) {
/******/ 					deferred.splice(i--, 1)
/******/ 					var r = fn();
/******/ 					if (r !== undefined) result = r;
/******/ 				}
/******/ 			}
/******/ 			return result;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	(() => {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = (module) => {
/******/ 			var getter = module && module.__esModule ?
/******/ 				() => (module['default']) :
/******/ 				() => (module);
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = (exports, definition) => {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/jsonp chunk loading */
/******/ 	(() => {
/******/ 		// no baseURI
/******/ 		
/******/ 		// object to store loaded and loading chunks
/******/ 		// undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ 		// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
/******/ 		var installedChunks = {
/******/ 			"blocks/tabs": 0,
/******/ 			"blocks/style-tabs": 0
/******/ 		};
/******/ 		
/******/ 		// no chunk on demand loading
/******/ 		
/******/ 		// no prefetching
/******/ 		
/******/ 		// no preloaded
/******/ 		
/******/ 		// no HMR
/******/ 		
/******/ 		// no HMR manifest
/******/ 		
/******/ 		__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
/******/ 		
/******/ 		// install a JSONP callback for chunk loading
/******/ 		var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
/******/ 			var [chunkIds, moreModules, runtime] = data;
/******/ 			// add "moreModules" to the modules object,
/******/ 			// then flag all "chunkIds" as loaded and fire callback
/******/ 			var moduleId, chunkId, i = 0;
/******/ 			if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
/******/ 				for(moduleId in moreModules) {
/******/ 					if(__webpack_require__.o(moreModules, moduleId)) {
/******/ 						__webpack_require__.m[moduleId] = moreModules[moduleId];
/******/ 					}
/******/ 				}
/******/ 				if(runtime) var result = runtime(__webpack_require__);
/******/ 			}
/******/ 			if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
/******/ 			for(;i < chunkIds.length; i++) {
/******/ 				chunkId = chunkIds[i];
/******/ 				if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ 					installedChunks[chunkId][0]();
/******/ 				}
/******/ 				installedChunks[chunkId] = 0;
/******/ 			}
/******/ 			return __webpack_require__.O(result);
/******/ 		}
/******/ 		
/******/ 		var chunkLoadingGlobal = globalThis["webpackChunkthim_blocks"] = globalThis["webpackChunkthim_blocks"] || [];
/******/ 		chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
/******/ 		chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
/******/ 	})();
/******/ 	
/************************************************************************/
/******/ 	
/******/ 	// startup
/******/ 	// Load entry module and return exports
/******/ 	// This entry module depends on other loaded chunks and execution need to be delayed
/******/ 	var __webpack_exports__ = __webpack_require__.O(undefined, ["blocks/style-tabs"], () => (__webpack_require__("./assets/src/blocks/tabs/index.js")))
/******/ 	__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
/******/ 	
/******/ })()
;
//# sourceMappingURL=tabs.js.map