Файловый менеджер - Редактировать - /home/admin/domains/octawebtools.com/public_html/wp-content/plugins/kadence-blocks/dist/blocks-tableofcontents.js
�азад
(()=>{var e,t={3699:(e,t,o)=>{"use strict";const n=window.wp.blocks,l=window.lodash;var i=o(6942),a=o.n(i);const r=window.kadence.helpers,d=window.kadence.components,s=window.kadence.icons,c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"kadence/tableofcontents","title":"Table of Contents","category":"kadence-blocks","textdomain":"kadence-blocks","icon":"smile","supports":{"html":false,"kbMetadata":true},"attributes":{"uniqueID":{"type":"string"},"allowedHeaders":{"type":"array","default":[{"h1":true,"h2":true,"h3":true,"h4":true,"h5":true,"h6":true}]},"columns":{"type":"number","default":1},"listStyle":{"type":"string","default":"disc"},"linkStyle":{"type":"string","default":"underline"},"containerPadding":{"type":"array","default":["sm","sm","sm","sm"]},"tabletContainerPadding":{"type":"array","default":["","","",""]},"mobileContainerPadding":{"type":"array","default":["","","",""]},"containerPaddingUnit":{"type":"string","default":"px"},"containerBackground":{"type":"string","default":""},"containerBorderColor":{"type":"string","default":""},"containerBorder":{"type":"array","default":["","","",""]},"enableTitle":{"type":"boolean","default":true},"titleAlign":{"type":"string"},"title":{"type":"string","default":"Table of Contents"},"titleColor":{"type":"string"},"titleSize":{"type":"array","default":["","",""]},"titleSizeType":{"type":"string","default":"px"},"titleLineHeight":{"type":"array","default":["","",""]},"titleLineType":{"type":"string","default":"px"},"titleLetterSpacing":{"type":"number"},"titleTypography":{"type":"string","default":""},"titleGoogleFont":{"type":"boolean","default":false},"titleLoadGoogleFont":{"type":"boolean","default":true},"titleFontSubset":{"type":"string","default":""},"titleFontVariant":{"type":"string","default":""},"titleFontWeight":{"type":"string","default":"regular"},"titleFontStyle":{"type":"string","default":"normal"},"titlePadding":{"type":"array","default":["0","0","0","0"]},"tabletTitlePadding":{"type":"array","default":["","","",""]},"mobileTitlePadding":{"type":"array","default":["","","",""]},"titlePaddingType":{"type":"string","default":"px"},"titleBorder":{"type":"array","default":["","","",""]},"titleBorderColor":{"type":"string"},"titleCollapseBorderColor":{"type":"string"},"titleTextTransform":{"type":"string","default":""},"enableToggle":{"type":"boolean","default":false},"startClosed":{"type":"boolean","default":false},"toggleIcon":{"type":"string","default":"arrow"},"contentColor":{"type":"string"},"contentHoverColor":{"type":"string"},"contentSize":{"type":"array","default":["","",""]},"contentSizeType":{"type":"string","default":"px"},"contentLineHeight":{"type":"array","default":["","",""]},"contentLineType":{"type":"string","default":"px"},"contentLetterSpacing":{"type":"number"},"contentTypography":{"type":"string","default":""},"contentGoogleFont":{"type":"boolean","default":false},"contentLoadGoogleFont":{"type":"boolean","default":true},"contentFontSubset":{"type":"string","default":""},"contentFontVariant":{"type":"string","default":""},"contentFontWeight":{"type":"string","default":"regular"},"contentFontStyle":{"type":"string","default":"normal"},"contentMargin":{"type":"array","default":["sm","0","0","0"]},"tabletContentMargin":{"type":"array","default":["","","",""]},"mobileContentMargin":{"type":"array","default":["","","",""]},"contentMarginType":{"type":"string","default":"px"},"contentTextTransform":{"type":"string","default":""},"listGap":{"type":"array","default":["","",""]},"borderRadius":{"type":"array","default":["","","",""]},"tabletBorderRadius":{"type":"array","default":["","","",""]},"mobileBorderRadius":{"type":"array","default":["","","",""]},"borderRadiusUnit":{"type":"string","default":"px"},"maxWidth":{"type":"number","default":""},"tabletMaxWidth":{"type":"number","default":""},"mobileMaxWidth":{"type":"number","default":""},"maxWidthType":{"type":"string","default":"px"},"displayShadow":{"type":"boolean","default":false},"shadow":{"type":"array","default":[{"color":"#000000","opacity":0.2,"spread":0,"blur":14,"hOffset":0,"vOffset":0,"inset":false}]},"enableScrollSpy":{"type":"boolean","default":false},"contentActiveColor":{"type":"string"},"enableSmoothScroll":{"type":"boolean","default":false},"smoothScrollOffset":{"type":"number","default":40},"containerMargin":{"type":"array","default":["","","",""]},"containerTabletMargin":{"type":"array","default":["","","",""]},"containerMobileMargin":{"type":"array","default":["","","",""]},"containerMarginUnit":{"type":"string","default":"px"},"enableDynamicSearch":{"type":"boolean","default":false},"enableTemplateSearch":{"type":"boolean","default":false},"borderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"tabletBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"mobileBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"titleBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"tabletTitleBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"mobileTitleBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"enableTitleToggle":{"type":"boolean","default":false}}}'),g=window.ReactJSXRuntime,p="kb-table-of-contents__entry";function u({nestedHeadingList:e,wrapList:t=!1,listTag:o="ul"}){if(e){const n=o,l=e.map((e,t)=>{const{anchor:n,content:l}=e.heading,i=n?(0,g.jsx)("a",{className:p,href:n,children:l}):(0,g.jsx)("a",{className:p,href:"#placeholder",children:l});return(0,g.jsxs)("li",{children:[i,e.children?(0,g.jsx)(u,{nestedHeadingList:e.children,wrapList:!0,listTag:o}):null]},t)});return t?(0,g.jsx)(n,{className:"kb-table-of-contents-list-sub",children:l}):l}}function b(e,t=0,o=!1){const n=[];return e.forEach((o,l)=>{if(""!==o.content&&o.level===e[0].level)if(void 0!==e[l+1]&&e[l+1].level>o.level){let i=e.length;for(let t=l+1;t<e.length;t++)if(e[t].level===o.level){i=t;break}n.push({heading:o,index:t+l,children:b(e.slice(l+1,i),t+l+1,!0)})}else n.push({heading:o,index:t+l,children:null})}),n}const h=window.wp.keycodes,f=window.wp.data,v=window.wp.compose,y=window.wp.element,m=window.wp.blockEditor,k=window.wp.components,S=window.wp.hooks,x=window.wp.i18n,C=(0,v.compose)([(0,f.withSelect)((e,t)=>{const{clientId:o}=t,{getBlockIndex:n,getBlockName:l,getBlockOrder:i}=e("core/block-editor"),a=e("core/editor")?e("core/editor").getEditedPostContent():"",r=n(o),d=i();let s=1;for(let e=0;e<r;e++)"core/nextpage"===l(d[e])&&s++;return{pageIndex:s,postContent:a,blockOrder:d,isTyping:e("core/block-editor").isTyping()}})])(function(e){const{attributes:t,setAttributes:o,clientId:n,className:i,isSelected:p,pageIndex:v,postContent:C,blockOrder:O,isTyping:T}=e,{uniqueID:w,allowedHeaders:j,columns:_,listStyle:M,listGap:F,title:B,enableTitle:P,titleColor:L,titleSize:z,titleSizeType:H,titleLineHeight:R,titleLineType:N,titleLetterSpacing:V,titleTypography:I,titleGoogleFont:G,titleLoadGoogleFont:A,titleFontSubset:W,titleFontVariant:K,titleFontWeight:$,titleFontStyle:Z,titlePadding:E,titleBorder:U,titleBorderColor:D,titleCollapseBorderColor:J,titleTextTransform:q,contentColor:X,contentHoverColor:Q,contentSize:Y,contentSizeType:ee,contentLineHeight:te,contentLineType:oe,contentLetterSpacing:ne,contentTypography:le,contentGoogleFont:ie,contentLoadGoogleFont:ae,contentFontSubset:re,contentFontVariant:de,contentFontWeight:se,contentFontStyle:ce,contentMargin:ge,contentTextTransform:pe,containerPadding:ue,tabletContainerPadding:be,mobileContainerPadding:he,containerPaddingUnit:fe,containerBorder:ve,containerBorderColor:ye,containerBackground:me,enableToggle:ke,startClosed:Se,toggleIcon:xe,linkStyle:Ce,borderRadius:Oe,shadow:Te,displayShadow:we,maxWidth:je,tabletMaxWidth:_e,mobileMaxWidth:Me,maxWidthType:Fe,smoothScrollOffset:Be,enableSmoothScroll:Pe,containerMobileMargin:Le,containerTabletMargin:ze,containerMargin:He,enableScrollSpy:Re,contentActiveColor:Ne,enableDynamicSearch:Ve,enableTitleToggle:Ie,containerMarginUnit:Ge,enableTemplateSearch:Ae,tabletBorderRadius:We,mobileBorderRadius:Ke,borderRadiusUnit:$e,borderStyle:Ze,mobileBorderStyle:Ee,tabletBorderStyle:Ue,tabletContentMargin:De,mobileContentMargin:Je,contentMarginType:qe,titleBorderStyle:Xe,mobileTitleBorderStyle:Qe,tabletTitleBorderStyle:Ye,tabletTitlePadding:et,mobileTitlePadding:tt,titlePaddingType:ot}=t,[nt,lt]=(0,y.useState)("general"),[it,at]=(0,y.useState)([]),[rt,dt]=(0,y.useState)(!0),{previewDevice:st}=(0,f.useSelect)(e=>({previewDevice:e("kadenceblocks/data").getPreviewDeviceType()}),[n]),ct=(0,r.mouseOverVisualizer)(),gt=(0,r.mouseOverVisualizer)(),pt=(0,r.mouseOverVisualizer)(),ut=(0,r.mouseOverVisualizer)();(0,r.uniqueIdHelper)(e),(0,y.useEffect)(()=>{(0,r.setBlockDefaults)("kadence/tableofcontents",t),void 0!==Se&&Se&&dt(!1);const e=JSON.parse(JSON.stringify(t.borderStyle?t.borderStyle:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"}]));let n=!1;""!==ye&&(e[0].top[0]=ye,e[0].right[0]=ye,e[0].bottom[0]=ye,e[0].left[0]=ye,n=!0,o({containerBorderColor:""})),""===ve?.[0]&&""===ve?.[1]&&""===ve?.[2]&&""===ve?.[3]||(e[0].top[2]=ve?.[0]||"",e[0].right[2]=ve?.[1]||"",e[0].bottom[2]=ve?.[2]||"",e[0].left[2]=ve?.[3]||"",n=!0,""===e[0].top[0]&&(e[0].top[0]="currentColor",e[0].right[0]="currentColor",e[0].bottom[0]="currentColor",e[0].left[0]="currentColor"),o({containerBorder:["","","",""]})),n&&o({borderStyle:JSON.parse(JSON.stringify(e))});const l=JSON.parse(JSON.stringify(t.titleBorderStyle?t.titleBorderStyle:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"}]));let i=!1;""!==D&&(l[0].top[0]=D,l[0].right[0]=D,l[0].bottom[0]=D,l[0].left[0]=D,i=!0,o({titleBorderColor:""})),""===U?.[0]&&""===U?.[1]&&""===U?.[2]&&""===U?.[3]||(l[0].top[2]=U?.[0]||"",l[0].right[2]=U?.[1]||"",l[0].bottom[2]=U?.[2]||"",l[0].left[2]=U?.[3]||"",i=!0,o({titleBorder:["","","",""]})),i&&o({titleBorderStyle:l})},[]),(0,y.useLayoutEffect)(()=>{let e;e=function(e,t){const o=document.createElement("div");o.innerHTML=e;for(const e of o.querySelectorAll("template"))o.removeChild(e);let n=["h1","h2","h3","h4","h5","h6"];t&&void 0!==t.allowedHeaders&&void 0!==t.allowedHeaders[0]&&t.allowedHeaders[0]&&(n=[],t.allowedHeaders[0].h1&&n.push("h1"),t.allowedHeaders[0].h2&&n.push("h2"),t.allowedHeaders[0].h3&&n.push("h3"),t.allowedHeaders[0].h4&&n.push("h4"),t.allowedHeaders[0].h5&&n.push("h5"),t.allowedHeaders[0].h6&&n.push("h6"));const l=n.toString();return l?(i=o.querySelectorAll(l),[...i].map(e=>{let t,o="";switch(e.hasAttribute("id")&&(o=`#${e.getAttribute("id").trim().split(" ")[0]}`),e.tagName){case"H1":t=1;break;case"H2":t=2;break;case"H3":t=3;break;case"H4":t=4;break;case"H5":t=5;break;case"H6":t=6}return{anchor:o,content:e.hasAttribute("data-alt-title")?e.getAttribute("data-alt-title"):e.textContent,level:t}})):[];var i}(C.split("\x3c!--nextpage--\x3e")[v-1],t),(0,l.isEqual)(it,e)||at(e)},[T,O,j]);const bt=e=>{const t=Te.map((t,o)=>(0===o&&(t={...t,...e}),t));o({shadow:t})},ht=()=>{ke&&dt(!rt)},ft=[];ft.arrow=(0,g.jsxs)(y.Fragment,{children:[(0,g.jsxs)("g",{fill:"#444",children:[(0,g.jsx)("path",{d:"M122.2,37.371l-9.887,-9.886l-38.887,38.887l9.887,9.887l38.887,-38.888Z"}),(0,g.jsx)("path",{d:"M83.18,76.515l9.887,-9.886l-38.92,-38.921l-9.887,9.887l38.92,38.92Z"})]}),(0,g.jsxs)("g",{fill:"#444",children:[(0,g.jsx)("path",{d:"M283.65,63.629l9.887,9.886l38.887,-38.887l-9.887,-9.887l-38.887,38.888Z"}),(0,g.jsx)("path",{d:"M322.67,24.485l-9.887,9.886l38.92,38.921l9.887,-9.887l-38.92,-38.92Z"})]})]}),ft.arrowcircle=(0,g.jsxs)(y.Fragment,{children:[(0,g.jsx)("circle",{cx:"83.723",cy:"50",r:"50",fill:"#444"}),(0,g.jsx)("circle",{cx:"322.768",cy:"50",r:"50",fill:"#444"}),(0,g.jsxs)("g",{fill:"#fff",children:[(0,g.jsx)("path",{d:"M122.2,37.371l-9.887,-9.886l-38.887,38.887l9.887,9.887l38.887,-38.888Z"}),(0,g.jsx)("path",{d:"M83.18,76.515l9.887,-9.886l-38.92,-38.921l-9.887,9.887l38.92,38.92Z"})]}),(0,g.jsxs)("g",{fill:"#fff",children:[(0,g.jsx)("path",{d:"M283.65,63.629l9.887,9.886l38.887,-38.887l-9.887,-9.887l-38.887,38.888Z"}),(0,g.jsx)("path",{d:"M322.67,24.485l-9.887,9.886l38.92,38.921l9.887,-9.887l-38.92,-38.92Z"})]})]}),ft.basic=(0,g.jsxs)(y.Fragment,{children:[(0,g.jsx)("rect",{x:"77.002",y:"12.507",width:"13.982",height:"74.986",fill:"#444"}),(0,g.jsx)("path",{d:"M359.538,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#444"}),(0,g.jsx)("path",{d:"M121.486,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#444"}),(0,g.jsx)("path",{d:"M359.538,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#444"})]}),ft.basiccircle=(0,g.jsxs)(y.Fragment,{children:[(0,g.jsx)("circle",{cx:"83.723",cy:"50",r:"50",fill:"#444"}),(0,g.jsx)("circle",{cx:"322.768",cy:"50",r:"50",fill:"#444"}),(0,g.jsx)("rect",{x:"77.002",y:"12.507",width:"13.982",height:"74.986",fill:"#fff"}),(0,g.jsx)("path",{d:"M359.538,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#fff"}),(0,g.jsx)("path",{d:"M121.486,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#fff"}),(0,g.jsx)("path",{d:"M359.538,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#fff"})]}),ft.xclose=(0,g.jsxs)(y.Fragment,{children:[(0,g.jsx)("rect",{x:"77.002",y:"12.507",width:"13.982",height:"74.986",fill:"#444"}),(0,g.jsx)("path",{d:"M353.5,28.432l-9.887,-9.887l-53.023,53.023l9.887,9.887l53.023,-53.023Z",fill:"#444"}),(0,g.jsx)("path",{d:"M121.486,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#444"}),(0,g.jsx)("path",{d:"M343.613,81.455l9.887,-9.887l-53.023,-53.023l-9.887,9.887l53.023,53.023Z",fill:"#444"})]}),ft.xclosecircle=(0,g.jsxs)(y.Fragment,{children:[(0,g.jsx)("circle",{cx:"83.723",cy:"50",r:"50",fill:"#444"}),(0,g.jsx)("circle",{cx:"322.768",cy:"50",r:"50",fill:"#444"}),(0,g.jsx)("rect",{x:"77.002",y:"12.507",width:"13.982",height:"74.986",fill:"#fff"}),(0,g.jsx)("path",{d:"M343.613,81.455l9.887,-9.887l-53.023,-53.023l-9.887,9.887l53.023,53.023Z",fill:"#fff"}),(0,g.jsx)("path",{d:"M121.486,56.991l0,-13.982l-74.986,0l0,13.982l74.986,0Z",fill:"#fff"}),(0,g.jsx)("path",{d:"M290.59,71.568l9.887,9.887l53.023,-53.023l-9.887,-9.887l-53.023,53.023Z",fill:"#fff"})]});const vt=e=>{const t=j.map((t,o)=>(0===o&&(t={...t,...e}),t));o({allowedHeaders:t})},yt=[[{icon:s.oneColumnIcon,title:(0,x.__)("One Column","kadence-blocks"),isActive:1===_,onClick:()=>o({columns:1})}],[{icon:s.twoColumnIcon,title:(0,x.__)("Two columns","kadence-blocks"),isActive:2===_,onClick:()=>o({columns:2})}],[{icon:s.threeColumnIcon,title:(0,x.__)("Three Columns","kadence-blocks"),isActive:3===_,onClick:()=>o({columns:3})}]],mt=1===_?s.oneColumnIcon:s.twoColumnIcon,kt=[[{icon:s.bulletsIcon,title:(0,x.__)("Bullets","kadence-blocks"),isActive:"disc"===M,onClick:()=>o({listStyle:"disc"})}],[{icon:s.numberedIcon,title:(0,x.__)("Numbered","kadence-blocks"),isActive:"numbered"===M,onClick:()=>o({listStyle:"numbered"})}],[{icon:s.noneIcon,title:(0,x.__)("None","kadence-blocks"),isActive:"none"===M,onClick:()=>o({listStyle:"none"})}]],St="numbered"===M?s.numberedIcon:s.bulletsIcon,xt=!("undefined"==typeof kadence_blocks_params||!kadence_blocks_params.isKadenceT),Ct=(0,r.getPreviewSize)(st,void 0!==Y&&void 0!==Y[0]?Y[0]:"",void 0!==Y&&void 0!==Y[1]?Y[1]:"",void 0!==Y&&void 0!==Y[2]?Y[2]:""),Ot=(0,r.getPreviewSize)(st,void 0!==te&&void 0!==te[0]?te[0]:"",void 0!==te&&void 0!==te[1]?te[1]:"",void 0!==te&&void 0!==te[2]?te[2]:""),Tt=(0,r.getPreviewSize)(st,void 0!==z?.[0]?z[0]:"",void 0!==z?.[1]?z[1]:"",void 0!==z?.[2]?z[2]:""),wt=(0,r.getPreviewSize)(st,void 0!==R?.[0]?R[0]:"",void 0!==R?.[1]?R[1]:"",void 0!==R?.[2]?R[2]:""),jt=(0,r.getPreviewSize)(st,void 0!==F?.[0]?F[0]:"",void 0!==F?.[1]?F[1]:"",void 0!==F?.[2]?F[2]:""),_t=(0,r.getPreviewSize)(st,void 0!==je?je:"",void 0!==_e?_e:"",void 0!==Me?Me:""),Mt=(0,r.getPreviewSize)(st,void 0!==He?.[0]?He[0]:"",void 0!==ze?.[0]?ze[0]:"",void 0!==Le?.[0]?Le[0]:""),Ft=(0,r.getPreviewSize)(st,void 0!==He?.[1]?He[1]:"",void 0!==ze?.[1]?ze[1]:"",void 0!==Le?.[1]?Le[1]:""),Bt=(0,r.getPreviewSize)(st,void 0!==He?.[2]?He[2]:"",void 0!==ze?.[2]?ze[2]:"",void 0!==Le?.[2]?Le[2]:""),Pt=(0,r.getPreviewSize)(st,void 0!==He?.[3]?He[3]:"",void 0!==ze?.[3]?ze[3]:"",void 0!==Le?.[3]?Le[3]:""),Lt=Ge||"px",zt=(0,r.getPreviewSize)(st,void 0!==ue?.[0]?ue[0]:"",void 0!==be?.[0]?be[0]:"",void 0!==he?.[0]?he[0]:""),Ht=(0,r.getPreviewSize)(st,void 0!==ue?.[1]?ue[1]:"",void 0!==be?.[1]?be[1]:"",void 0!==he?.[1]?he[1]:""),Rt=(0,r.getPreviewSize)(st,void 0!==ue?.[2]?ue[2]:"",void 0!==be?.[2]?be[2]:"",void 0!==he?.[2]?he[2]:""),Nt=(0,r.getPreviewSize)(st,void 0!==ue?.[3]?ue[3]:"",void 0!==be?.[3]?be[3]:"",void 0!==he?.[3]?he[3]:""),Vt=(0,r.getPreviewSize)(st,void 0!==Oe?Oe[0]:"",void 0!==We?We[0]:"",void 0!==Ke?Ke[0]:""),It=(0,r.getPreviewSize)(st,void 0!==Oe?Oe[1]:"",void 0!==We?We[1]:"",void 0!==Ke?Ke[1]:""),Gt=(0,r.getPreviewSize)(st,void 0!==Oe?Oe[2]:"",void 0!==We?We[2]:"",void 0!==Ke?Ke[2]:""),At=(0,r.getPreviewSize)(st,void 0!==Oe?Oe[3]:"",void 0!==We?We[3]:"",void 0!==Ke?Ke[3]:""),Wt=(0,r.getPreviewSize)(st,void 0!==E&&void 0!==E[0]?E[0]:"",void 0!==et&&void 0!==et[0]?et[0]:"",void 0!==tt&&void 0!==tt[0]?tt[0]:""),Kt=(0,r.getPreviewSize)(st,void 0!==E&&void 0!==E[1]?E[1]:"",void 0!==et&&void 0!==et[1]?et[1]:"",void 0!==tt&&void 0!==tt[1]?tt[1]:""),$t=(0,r.getPreviewSize)(st,void 0!==E&&void 0!==E[2]?E[2]:"",void 0!==et&&void 0!==et[2]?et[2]:"",void 0!==tt&&void 0!==tt[2]?tt[2]:""),Zt=(0,r.getPreviewSize)(st,void 0!==E&&void 0!==E[3]?E[3]:"",void 0!==et&&void 0!==et[3]?et[3]:"",void 0!==tt&&void 0!==tt[3]?tt[3]:""),Et=(0,r.getPreviewSize)(st,void 0!==ge?.[0]?ge[0]:"",void 0!==De?.[0]?De[0]:"",void 0!==Je?.[0]?Je[0]:""),Ut=(0,r.getPreviewSize)(st,void 0!==ge?.[1]?ge[1]:"",void 0!==De?.[1]?De[1]:"",void 0!==Je?.[1]?Je[1]:""),Dt=(0,r.getPreviewSize)(st,void 0!==ge?.[2]?ge[2]:"",void 0!==De?.[2]?De[2]:"",void 0!==Je?.[2]?Je[2]:""),Jt=(0,r.getPreviewSize)(st,void 0!==ge?.[3]?ge[3]:"",void 0!==De?.[3]?De[3]:"",void 0!==Je?.[3]?Je[3]:""),qt=(0,r.getBorderStyle)(st,"top",Ze,Ue,Ee),Xt=(0,r.getBorderStyle)(st,"right",Ze,Ue,Ee),Qt=(0,r.getBorderStyle)(st,"bottom",Ze,Ue,Ee),Yt=(0,r.getBorderStyle)(st,"left",Ze,Ue,Ee),eo=(0,r.getBorderStyle)(st,"top",Xe,Ye,Qe),to=(0,r.getBorderStyle)(st,"right",Xe,Ye,Qe),oo=(0,r.getBorderStyle)(st,"bottom",Xe,Ye,Qe),no=(0,r.getBorderStyle)(st,"left",Xe,Ye,Qe),lo=a()(i,`kb-table-of-content-nav kb-table-of-content-id${w}`),io=(0,m.useBlockProps)({className:lo}),ao=(0,g.jsx)("style",{children:`.kb-table-of-content-id${w} .kb-table-of-content-list li {\n\t\t\t\t\tmargin-bottom: ${jt?jt+"px":"auto"};\n\t\t\t\t}\n\t\t\t\t.kb-table-of-content-id${w} .kb-table-of-content-list li .kb-table-of-contents-list-sub {\n\t\t\t\t\tmargin-top: ${jt?jt+"px":"auto"};\n\t\t\t\t}\n\t\t\t\t.kb-table-of-content-id${w} .kb-table-of-contents__entry:hover {\n\t\t\t\t\tcolor: ${(0,r.KadenceColorOutput)(Q)} !important;\n\t\t\t\t}\n\t\t\t\t.kb-table-of-content-id${w} .kb-table-of-contents-title-wrap.kb-toc-toggle-hidden {\n\t\t\t\t\tborder-color: ${(0,r.KadenceColorOutput)(J)} !important;\n\t\t\t\t}\n\t\t\t\t.kb-table-of-content-id${w} .kb-toggle-icon-style-basiccircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-id${w} .kb-toggle-icon-style-basiccircle .kb-table-of-contents-icon-trigger:before, .kb-table-of-content-id${w} .kb-toggle-icon-style-arrowcircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-id${w} .kb-toggle-icon-style-arrowcircle .kb-table-of-contents-icon-trigger:before, .kb-table-of-content-id${w} .kb-toggle-icon-style-xclosecircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-id${w} .kb-toggle-icon-style-xclosecircle .kb-table-of-contents-icon-trigger:before {\n\t\t\t\t\tbackground-color: ${(0,r.KadenceColorOutput)(me)} !important;\n\t\t\t\t}`}),ro=(0,g.jsxs)(m.BlockControls,{children:[(0,g.jsx)(k.ToolbarGroup,{children:(0,g.jsx)(k.ToolbarDropdownMenu,{icon:3==_?s.threeColumnIcon:mt,label:(0,x.__)("Select List Columns","kadence-blocks"),controls:yt})}),(0,g.jsx)(k.ToolbarGroup,{children:(0,g.jsx)(k.ToolbarDropdownMenu,{icon:"none"===M?s.noneIcon:St,label:(0,x.__)("Select List Style","kadence-blocks"),controls:kt})}),(0,g.jsx)(d.CopyPasteAttributes,{attributes:t,defaultAttributes:c.attributes,blockSlug:c.name,onPaste:e=>o(e)})]}),so=(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(d.KadenceInspectorControls,{blockSlug:"kadence/tableofcontents",children:[(0,g.jsx)(d.InspectorControlTabs,{panelName:"tableofcontents",setActiveTab:e=>lt(e),activeTab:nt}),"general"===nt&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(d.KadencePanelBody,{title:(0,x.__)("Allowed Headers","kadence-blocks"),initialOpen:!0,panelName:"allowedHeaders",blockSlug:"kadence/tableofcontents",children:[(0,g.jsx)(k.ToggleControl,{label:"h1",checked:void 0===j||void 0===j[0]||void 0===j[0].h1||j[0].h1,onChange:e=>vt({h1:e})}),(0,g.jsx)(k.ToggleControl,{label:"h2",checked:void 0===j||void 0===j[0]||void 0===j[0].h2||j[0].h2,onChange:e=>vt({h2:e})}),(0,g.jsx)(k.ToggleControl,{label:"h3",checked:void 0===j||void 0===j[0]||void 0===j[0].h3||j[0].h3,onChange:e=>vt({h3:e})}),(0,g.jsx)(k.ToggleControl,{label:"h4",checked:void 0===j||void 0===j[0]||void 0===j[0].h4||j[0].h4,onChange:e=>vt({h4:e})}),(0,g.jsx)(k.ToggleControl,{label:"h5",checked:void 0===j||void 0===j[0]||void 0===j[0].h5||j[0].h5,onChange:e=>vt({h5:e})}),(0,g.jsx)(k.ToggleControl,{label:"h6",checked:void 0===j||void 0===j[0]||void 0===j[0].h6||j[0].h6,onChange:e=>vt({h6:e})})]}),(0,g.jsx)(y.Fragment,{children:P&&(0,g.jsxs)(d.KadencePanelBody,{title:(0,x.__)("Collapsible Settings","kadence-blocks"),initialOpen:!1,panelName:"collapsibleSettings",blockSlug:"kadence/tableofcontents",children:[(0,g.jsx)(k.ToggleControl,{label:(0,x.__)("Enable Collapsible Content","kadence-blocks"),checked:ke,onChange:e=>o({enableToggle:e})}),P&&(0,g.jsxs)(y.Fragment,{children:[(0,g.jsx)(k.ToggleControl,{label:(0,x.__)("Start Collapsed","kadence-blocks"),checked:Se,onChange:e=>o({startClosed:e})}),(0,g.jsx)("h2",{children:(0,x.__)("Icon Style","kadence-blocks")}),(0,g.jsx)(d.KadenceIconPicker,{icons:["arrow","arrowcircle","basic","basiccircle","xclose","xclosecircle"],value:xe,onChange:e=>o({toggleIcon:e}),renderFunc:e=>(0,g.jsx)("svg",{className:"accord-icon",viewBox:"0 0 400 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414",style:{fill:"#000000"},children:ft[e]}),theme:"dividers",showSearch:!1,placeholder:(0,x.__)("Select Icon Set","kadence-blocks")}),(0,g.jsx)(k.ToggleControl,{label:(0,x.__)("Enable title to toggle as well as icon","kadence-blocks"),checked:Ie,onChange:e=>o({enableTitleToggle:e})})]})]})})]}),"advanced"===nt&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(d.KadencePanelBody,{panelName:"kb-toc-spacing-settings",children:[(0,g.jsx)(d.ResponsiveMeasureRangeControl,{label:(0,x.__)("Padding","kadence-blocks"),value:ue,onChange:e=>o({containerPadding:e}),tabletValue:be,onChangeTablet:e=>o({tabletContainerPadding:e}),mobileValue:he,onChangeMobile:e=>o({mobileContainerPadding:e}),min:"em"===fe||"rem"===fe?-25:-999,max:"em"===fe||"rem"===fe?25:999,step:"em"===fe||"rem"===fe?.1:1,unit:fe,units:["px","em","rem"],onUnit:e=>o({containerPaddingUnit:e}),onMouseOver:gt.onMouseOver,onMouseOut:gt.onMouseOut}),(0,g.jsx)(d.ResponsiveMeasureRangeControl,{label:(0,x.__)("Margin","kadence-blocks"),value:He,onChange:e=>o({containerMargin:e}),tabletValue:ze,onChangeTablet:e=>o({containerTabletMargin:e}),mobileValue:Le,onChangeMobile:e=>o({containerMobileMargin:e}),min:"em"===Ge||"rem"===Ge?-25:-999,max:"em"===Ge||"rem"===Ge?25:999,step:"em"===Ge||"rem"===Ge?.1:1,unit:Ge,units:["px","em","rem"],onUnit:e=>o({containerMarginUnit:e}),onMouseOver:ct.onMouseOver,onMouseOut:ct.onMouseOut,allowAuto:!0}),(0,g.jsx)(d.ResponsiveRangeControls,{label:(0,x.__)("Max Width","kadence-blocks"),value:je||"",onChange:e=>o({maxWidth:e}),tabletValue:_e||"",onChangeTablet:e=>o({tabletMaxWidth:e}),mobileValue:Me||"",onChangeMobile:e=>o({mobileMaxWidth:e}),min:0,max:"px"===Fe?2e3:100,step:1,unit:Fe||"px",onUnit:e=>{o({maxWidthType:e})},units:["px","%","vw"]})]}),(0,g.jsx)("div",{className:"kt-sidebar-settings-spacer"}),(0,g.jsxs)(d.KadencePanelBody,{title:(0,x.__)("Non static content","kadence-blocks"),panelName:"nonStaticContent",initialOpen:!1,blockSlug:"kadence/tableofcontents",children:[(0,g.jsx)(k.ToggleControl,{label:(0,x.__)("Search for Headings in Non static post content?","kadence-blocks"),checked:Ve,onChange:e=>o({enableDynamicSearch:e})}),xt&&Ve&&(0,g.jsx)(k.ToggleControl,{label:(0,x.__)("Search for Headings in Template?","kadence-blocks"),help:(0,x.__)("Expands heading search to use dynamic template from elements.","kadence-blocks"),checked:Ae,onChange:e=>o({enableTemplateSearch:e})})]}),(0,g.jsxs)(d.KadencePanelBody,{title:(0,x.__)("Scroll Settings","kadence-blocks"),initialOpen:!1,panelName:"scrollSettings",blockSlug:"kadence/tableofcontents",children:[(0,g.jsx)(k.ToggleControl,{label:(0,x.__)("Enable Smooth Scroll to ID","kadence-blocks"),checked:Pe,onChange:e=>o({enableSmoothScroll:e})}),Pe&&(0,g.jsx)(d.RangeControl,{label:(0,x.__)("Scroll Offset","kadence-blocks"),value:Be||"",onChange:e=>o({smoothScrollOffset:e}),min:0,max:400,step:1}),(0,g.jsx)(k.ToggleControl,{label:(0,x.__)("Enable Highlighting Heading when scrolling in active area.","kadence-blocks"),checked:Re,onChange:e=>o({enableScrollSpy:e})}),Re&&(0,g.jsx)(d.PopColorControl,{label:(0,x.__)("List Items Active Color","kadence-blocks"),value:Ne||"",default:"",onChange:e=>o({contentActiveColor:e})})]}),(0,g.jsx)(d.KadenceBlockDefaults,{attributes:t,defaultAttributes:c.attributes,blockSlug:c.name})]}),"style"===nt&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(d.KadencePanelBody,{title:(0,x.__)("Title Settings","kadence-blocks"),initialOpen:!0,panelName:"titleSettings",blockSlug:"kadence/tableofcontents",children:[(0,g.jsx)(k.ToggleControl,{label:(0,x.__)("Enable Title","kadence-blocks"),checked:P,onChange:e=>o({enableTitle:e})}),P&&(0,g.jsxs)(y.Fragment,{children:[(0,g.jsx)(d.PopColorControl,{label:(0,x.__)("Title Color","kadence-blocks"),value:L||"",default:"",onChange:e=>o({titleColor:e})}),(0,g.jsx)(d.TypographyControls,{fontGroup:"body",fontSize:z,onFontSize:e=>o({titleSize:e}),fontSizeType:H,onFontSizeType:e=>o({titleSizeType:e}),lineHeight:R,onLineHeight:e=>o({titleLineHeight:e}),lineHeightType:N,onLineHeightType:e=>o({titleLineType:e}),letterSpacing:V,onLetterSpacing:e=>o({titleLetterSpacing:e}),fontFamily:I,onFontFamily:e=>o({titleTypography:e}),onFontChange:e=>{o({titleTypography:e.value,titleGoogleFont:e.google})},googleFont:G,onGoogleFont:e=>o({titleGoogleFont:e}),loadGoogleFont:A,onLoadGoogleFont:e=>o({titleLoadGoogleFont:e}),fontVariant:K,onFontVariant:e=>o({titleFontVariant:e}),fontWeight:$,onFontWeight:e=>o({titleFontWeight:e}),fontStyle:Z,onFontStyle:e=>o({titleFontStyle:e}),fontSubset:W,onFontSubset:e=>o({titleFontSubset:e}),textTransform:q,onTextTransform:e=>o({titleTextTransform:e})}),(0,g.jsx)(d.ResponsiveMeasureRangeControl,{label:(0,x.__)("Padding","kadence-blocks"),value:E,onChange:e=>o({titlePadding:e}),tabletValue:et,onChangeTablet:e=>o({mobileTitlePadding:e}),mobileValue:tt,onChangeMobile:e=>o({mobileTitlePadding:e}),min:0,max:"em"===ot||"rem"===ot?12:999,step:"em"===ot||"rem"===ot?.1:1,unit:ot,units:["px","em","rem"],onUnit:e=>o({titlePaddingType:e}),onMouseOver:pt.onMouseOver,onMouseOut:pt.onMouseOut}),(0,g.jsx)(d.ResponsiveBorderControl,{label:(0,x.__)("Border","kadence-blocks"),value:Xe,tabletValue:Ye,mobileValue:Qe,onChange:e=>o({titleBorderStyle:e}),onChangeTablet:e=>o({tabletTitleBorderStyle:e}),onChangeMobile:e=>o({mobileTitleBorderStyle:e})})]})]}),(0,g.jsxs)(d.KadencePanelBody,{title:(0,x.__)("List Settings","kadence-blocks"),initialOpen:!1,panelName:"listSettings",blockSlug:"kadence/tableofcontents",children:[(0,g.jsx)(d.ResponsiveRangeControls,{label:(0,x.__)("List Item Gap","kadence-blocks"),value:F?.[0]?F[0]:"",mobileValue:F?.[2]?F[2]:"",tabletValue:F?.[1]?F[1]:"",onChange:e=>o({listGap:[e,F?.[1]?F[1]:"",F?.[2]?F[2]:""]}),onChangeTablet:e=>o({listGap:[F?.[0]?F[0]:"",e,F?.[2]?F[2]:""]}),onChangeMobile:e=>o({listGap:[F?.[0]?F[0]:"",F?.[1]?F[1]:"",e]}),min:0,max:60,step:1,unit:"px",units:["px"],showUnit:!0}),(0,g.jsx)(d.PopColorControl,{label:(0,x.__)("List Items Color","kadence-blocks"),swatchLabel:(0,x.__)("Normal Color","kadence-blocks"),value:X||"",default:"",onChange:e=>o({contentColor:e}),swatchLabel2:(0,x.__)("Hover Color","kadence-blocks"),value2:Q||"",default2:"",onChange2:e=>o({contentHoverColor:e})}),(0,g.jsx)(k.SelectControl,{label:(0,x.__)("List Link Style","kadence-blocks"),value:Ce,options:[{value:"underline",label:(0,x.__)("Underline","kadence-blocks")},{value:"underline_hover",label:(0,x.__)("Underline on Hover","kadence-blocks")},{value:"plain",label:(0,x.__)("No underline","kadence-blocks")}],onChange:e=>o({linkStyle:e})}),(0,g.jsx)(d.TypographyControls,{fontGroup:"body",fontSize:Y,onFontSize:e=>o({contentSize:e}),fontSizeType:ee,onFontSizeType:e=>o({contentSizeType:e}),lineHeight:te,onLineHeight:e=>o({contentLineHeight:e}),lineHeightType:oe,onLineHeightType:e=>o({contentLineType:e}),letterSpacing:ne,onLetterSpacing:e=>o({contentLetterSpacing:e}),fontFamily:le,onFontFamily:e=>o({contentTypography:e}),onFontChange:e=>{o({contentTypography:e.value,contentGoogleFont:e.google})},googleFont:ie,onGoogleFont:e=>o({contentGoogleFont:e}),loadGoogleFont:ae,onLoadGoogleFont:e=>o({contentLoadGoogleFont:e}),fontVariant:de,onFontVariant:e=>o({contentFontVariant:e}),fontWeight:se,onFontWeight:e=>o({contentFontWeight:e}),fontStyle:ce,onFontStyle:e=>o({contentFontStyle:e}),fontSubset:re,onFontSubset:e=>o({contentFontSubset:e}),textTransform:pe,onTextTransform:e=>o({contentTextTransform:e})}),(0,g.jsx)(d.ResponsiveMeasureRangeControl,{label:(0,x.__)("Margin","kadence-blocks"),value:ge,onChange:e=>o({contentMargin:e}),tabletValue:De,onChangeTablet:e=>o({tabletContentMargin:e}),mobileValue:Je,onChangeMobile:e=>o({mobileContentMargin:e}),min:"em"===qe||"rem"===qe?-2:-999,max:"em"===qe||"rem"===qe?12:999,step:"em"===qe||"rem"===qe?.1:1,unit:qe,units:["px","em","rem"],onUnit:e=>o({contentMarginType:e}),onMouseOver:ut.onMouseOver,onMouseOut:ut.onMouseOut,allowAuto:!0})]}),(0,g.jsxs)(d.KadencePanelBody,{title:(0,x.__)("Container Settings","kadence-blocks"),panelName:"containerSettings",initialOpen:!1,blockSlug:"kadence/tableofcontents",children:[(0,g.jsx)(d.PopColorControl,{label:(0,x.__)("Background","kadence-blocks"),value:me||"",default:"",onChange:e=>o({containerBackground:e})}),(0,g.jsx)(d.ResponsiveBorderControl,{label:(0,x.__)("Border","kadence-blocks"),value:Ze,tabletValue:Ue,mobileValue:Ee,onChange:e=>o({borderStyle:e}),onChangeTablet:e=>o({tabletBorderStyle:e}),onChangeMobile:e=>o({mobileBorderStyle:e})}),(0,g.jsx)(d.ResponsiveMeasurementControls,{label:(0,x.__)("Border Radius","kadence-blocks"),value:Oe,tabletValue:We,mobileValue:Ke,onChange:e=>o({borderRadius:e}),onChangeTablet:e=>o({tabletBorderRadius:e}),onChangeMobile:e=>o({mobileBorderRadius:e}),unit:$e,units:["px","em","rem","%"],onUnit:e=>o({borderRadiusUnit:e}),max:"em"===$e||"rem"===$e?24:500,step:"em"===$e||"rem"===$e?.1:1,min:0,isBorderRadius:!0,allowEmpty:!0}),(0,g.jsx)(d.BoxShadowControl,{label:(0,x.__)("Box Shadow","kadence-blocks"),enable:void 0!==we&&we,color:void 0!==Te&&void 0!==Te[0]&&void 0!==Te[0].color?Te[0].color:"#000000",colorDefault:"#000000",onArrayChange:(e,t)=>bt({color:e,opacity:t}),opacity:void 0!==Te&&void 0!==Te[0]&&void 0!==Te[0].opacity?Te[0].opacity:.2,hOffset:void 0!==Te&&void 0!==Te[0]&&void 0!==Te[0].hOffset?Te[0].hOffset:0,vOffset:void 0!==Te&&void 0!==Te[0]&&void 0!==Te[0].vOffset?Te[0].vOffset:0,blur:void 0!==Te&&void 0!==Te[0]&&void 0!==Te[0].blur?Te[0].blur:14,spread:void 0!==Te&&void 0!==Te[0]&&void 0!==Te[0].spread?Te[0].spread:0,inset:void 0!==Te&&void 0!==Te[0]&&void 0!==Te[0].inset&&Te[0].inset,onEnableChange:e=>{o({displayShadow:e})},onColorChange:e=>{bt({color:e})},onOpacityChange:e=>{bt({opacity:e})},onHOffsetChange:e=>{bt({hOffset:e})},onVOffsetChange:e=>{bt({vOffset:e})},onBlurChange:e=>{bt({blur:e})},onSpreadChange:e=>{bt({spread:e})},onInsetChange:e=>{bt({inset:e})}})]})]})]})}),co="numbered"===M?"ol":"ul";return(0,g.jsxs)(g.Fragment,{children:[ao,ro,so,(0,g.jsxs)("nav",{...io,children:[(0,g.jsxs)("div",{className:"kb-table-of-content-wrap",style:{paddingTop:zt?(0,r.getSpacingOptionOutput)(zt,fe):void 0,paddingRight:Ht?(0,r.getSpacingOptionOutput)(Ht,fe):void 0,paddingBottom:Rt?(0,r.getSpacingOptionOutput)(Rt,fe):void 0,paddingLeft:Nt?(0,r.getSpacingOptionOutput)(Nt,fe):void 0,marginTop:Mt?(0,r.getSpacingOptionOutput)(Mt,Lt):void 0,marginRight:Ft?(0,r.getSpacingOptionOutput)(Ft,Lt):void 0,marginBottom:Bt?(0,r.getSpacingOptionOutput)(Bt,Lt):void 0,marginLeft:Pt?(0,r.getSpacingOptionOutput)(Pt,Lt):void 0,borderTop:qt||void 0,borderRight:Xt||void 0,borderBottom:Qt||void 0,borderLeft:Yt||void 0,backgroundColor:(0,r.KadenceColorOutput)(me),borderTopLeftRadius:Vt?Vt+($e||"px"):void 0,borderTopRightRadius:It?It+($e||"px"):void 0,borderBottomRightRadius:Gt?Gt+($e||"px"):void 0,borderBottomLeftRadius:At?At+($e||"px"):void 0,boxShadow:void 0!==we&&we&&void 0!==Te&&void 0!==Te[0]&&void 0!==Te[0].color?(void 0!==Te[0].inset&&Te[0].inset?"inset ":"")+(void 0!==Te[0].hOffset?Te[0].hOffset:0)+"px "+(void 0!==Te[0].vOffset?Te[0].vOffset:0)+"px "+(void 0!==Te[0].blur?Te[0].blur:14)+"px "+(void 0!==Te[0].spread?Te[0].spread:0)+"px "+(0,r.KadenceColorOutput)(void 0!==Te[0].color?Te[0].color:"#000000",void 0!==Te[0].opacity?Te[0].opacity:1):void 0,maxWidth:_t?_t+Fe:void 0},children:[P&&(0,g.jsxs)("div",{className:`kb-table-of-contents-title-wrap kb-toggle-icon-style-${ke&&xe?xe:"none"} kb-toc-toggle-${rt?"active":"hidden"}`,style:{borderTop:eo||void 0,borderRight:to||void 0,borderBottom:oo||void 0,borderLeft:no||void 0,color:L?(0,r.KadenceColorOutput)(L):void 0,paddingTop:Wt?(0,r.getSpacingOptionOutput)(Wt,ot):void 0,paddingRight:Kt?(0,r.getSpacingOptionOutput)(Kt,ot):void 0,paddingBottom:$t?(0,r.getSpacingOptionOutput)($t,ot):void 0,paddingLeft:Zt?(0,r.getSpacingOptionOutput)(Zt,ot):void 0},children:[(0,g.jsx)(d.SpacingVisualizer,{type:"inside",forceShow:pt.isMouseOver,spacing:[(0,r.getSpacingOptionOutput)(Wt,ot),(0,r.getSpacingOptionOutput)(Kt,ot),(0,r.getSpacingOptionOutput)($t,ot),(0,r.getSpacingOptionOutput)(Zt,ot)]}),G&&I&&(0,g.jsx)(d.KadenceWebfontLoader,{typography:[{family:I,variant:K||""}],clientId:n,id:"titleTOC"}),(0,g.jsx)(m.RichText,{tagName:"div",placeholder:(0,x.__)("Optional Title","kadence-blocks"),format:"string",value:B,onChange:e=>{o({title:e})},allowedFormats:(0,S.applyFilters)("kadence.whitelist_richtext_formats",["kadence/insert-dynamic","core/bold","core/italic","core/strikethrough","toolset/inline-field"]),className:"kb-table-of-contents-title",style:{color:"inherit",fontWeight:$,fontStyle:Z,fontSize:Tt?(0,r.getFontSizeOptionOutput)(Tt,H):void 0,lineHeight:wt?wt+N:void 0,letterSpacing:V?V+"px":void 0,textTransform:q||void 0,fontFamily:I||""},keepPlaceholderOnFocus:!0}),ke&&(0,g.jsx)("div",{className:"kb-table-of-contents-icon-trigger",onClick:()=>ht(),role:"button",tabIndex:"0",onKeyDown:e=>{const{keyCode:t}=e;t===h.ENTER&&ht()}})]}),0===it.length&&(0,g.jsx)("div",{className:"kb-table-of-content-placeholder",children:(0,g.jsx)("p",{children:(0,x.__)("Start adding Heading blocks to create a table of contents.","kadence-blocks")})}),(ke&&rt||!ke)&&(0,g.jsxs)(co,{className:`kb-table-of-content-list kb-table-of-content-list-columns-${_} kb-table-of-content-list-style-${M} kb-table-of-content-link-style-${Ce}`,style:{color:X?(0,r.KadenceColorOutput)(X):void 0,fontWeight:se,fontStyle:ce,fontSize:Ct?(0,r.getFontSizeOptionOutput)(Ct,ee):void 0,lineHeight:Ot?Ot+oe:void 0,letterSpacing:ne?ne+"px":void 0,textTransform:pe||void 0,fontFamily:le||"",marginTop:Et?(0,r.getSpacingOptionOutput)(Et,qe):void 0,marginRight:Ut?(0,r.getSpacingOptionOutput)(Ut,qe):void 0,marginBottom:Dt?(0,r.getSpacingOptionOutput)(Dt,qe):void 0,marginLeft:Jt?(0,r.getSpacingOptionOutput)(Jt,qe):void 0},children:[(0,g.jsx)(d.SpacingVisualizer,{type:"outside",forceShow:ut.isMouseOver,spacing:[(0,r.getSpacingOptionOutput)(Et,qe),(0,r.getSpacingOptionOutput)(Ut,qe),(0,r.getSpacingOptionOutput)(Dt,qe),(0,r.getSpacingOptionOutput)(Jt,qe)]}),ie&&le&&(0,g.jsx)(d.KadenceWebfontLoader,{typography:[{family:le,variant:de||""}],clientId:n,id:"contentTOC"}),0!==it.length&&(0,g.jsx)(u,{nestedHeadingList:b(it),listTag:co})]})]}),(0,g.jsx)(d.SpacingVisualizer,{style:{marginLeft:void 0!==Pt?(0,r.getSpacingOptionOutput)(Pt,Lt):void 0,marginRight:void 0!==Ft?(0,r.getSpacingOptionOutput)(Ft,Lt):void 0,marginTop:void 0!==Mt?(0,r.getSpacingOptionOutput)(Mt,Lt):void 0,marginBottom:void 0!==Bt?(0,r.getSpacingOptionOutput)(Bt,Lt):void 0},type:"inside",forceShow:gt.isMouseOver,spacing:[(0,r.getSpacingOptionOutput)(zt,fe),(0,r.getSpacingOptionOutput)(Ht,fe),(0,r.getSpacingOptionOutput)(Rt,fe),(0,r.getSpacingOptionOutput)(Nt,fe)]}),(0,g.jsx)(d.SpacingVisualizer,{type:"outsideVertical",forceShow:ct.isMouseOver,spacing:[(0,r.getSpacingOptionOutput)(Mt,Lt),(0,r.getSpacingOptionOutput)(Ft,Lt),(0,r.getSpacingOptionOutput)(Bt,Lt),(0,r.getSpacingOptionOutput)(Pt,Lt)]})]})]})});(0,n.registerBlockType)("kadence/tableofcontents",{...c,title:(0,x._x)("Table of Contents","block title","kadence-blocks"),keywords:[(0,x.__)("table of contents","kadence-blocks"),(0,x.__)("summary","kadence-blocks"),"KB"],icon:{src:s.tableOfContentsIcon},edit:C,save:()=>null,example:{}})},6942:(e,t)=>{var o;!function(){"use strict";var n={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=a(e,i(o)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)n.call(e,o)&&e[o]&&(t=a(t,o));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(o=function(){return l}.apply(t,[]))||(e.exports=o)}()}},o={};function n(e){var l=o[e];if(void 0!==l)return l.exports;var i=o[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=(t,o,l,i)=>{if(!o){var a=1/0;for(c=0;c<e.length;c++){for(var[o,l,i]=e[c],r=!0,d=0;d<o.length;d++)(!1&i||a>=i)&&Object.keys(n.O).every(e=>n.O[e](o[d]))?o.splice(d--,1):(r=!1,i<a&&(a=i));if(r){e.splice(c--,1);var s=l();void 0!==s&&(t=s)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[o,l,i]},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),(()=>{var e={9843:0,170:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var l,i,[a,r,d]=o,s=0;if(a.some(t=>0!==e[t])){for(l in r)n.o(r,l)&&(n.m[l]=r[l]);if(d)var c=d(n)}for(t&&t(o);s<a.length;s++)i=a[s],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(c)},o=globalThis.webpackChunkkadence=globalThis.webpackChunkkadence||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var l=n.O(void 0,[170],()=>n(3699));l=n.O(l),(this.kadence=this.kadence||{})["blocks-tableofcontents"]=l})();
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка