.flexa-devices{background:#fff;border-bottom:1px solid #e0e0e0;display:flex;gap:4px;margin:0 0 4px;padding:10px 16px;position:sticky;top:0;z-index:2}.flexa-devices__btn.components-button{background:#f0f0f1;border-radius:6px;color:#1e1e1e;flex:1;height:34px;justify-content:center;transition:background .12s ease,color .12s ease}.flexa-devices__btn.components-button svg{height:22px;width:22px}.flexa-devices__btn.components-button:hover{background:#e8e8ea}.flexa-devices__btn.components-button.is-active{background:#2563eb;color:#fff}.flexa-tabs .components-tab-panel__tabs{border-bottom:1px solid #e0e0e0;display:flex;gap:2px;padding:8px 16px 0}.flexa-tabs .components-tab-panel__tabs-item{border-radius:6px 6px 0 0;color:#6d7882;flex:1;font-weight:500;height:38px;justify-content:center;transition:color .12s ease,background .12s ease}.flexa-tabs .components-tab-panel__tabs-item:hover{background:#f6f7f7;color:#1e1e1e}.flexa-tabs .components-tab-panel__tabs-item.is-active{box-shadow:inset 0 -2px 0 0 #2563eb;color:#2563eb;font-weight:600}.flexa-tabs .components-tab-panel__tabs-item.is-active:after{display:none}.flexa-tabs .flexa-tab__content{padding-top:4px}.flexa-inspector .components-panel__body-title .components-button{color:#1e1e1e;font-size:13px;font-weight:600;padding-bottom:14px;padding-top:14px}.flexa-inspector .components-panel__body.is-opened{padding-bottom:4px}.flexa-inspector .components-base-control,.flexa-inspector .components-toggle-group-control{margin-bottom:16px}.flexa-inspector .components-base-control__label,.flexa-inspector .components-input-control__label,.flexa-inspector .components-toggle-group-control+.components-base-control__label{color:#6d7882!important;font-size:13px!important;font-weight:500!important;letter-spacing:normal!important;margin-bottom:6px;text-transform:none!important}.flexa-inspector .components-input-control__container,.flexa-inspector .components-select-control__input,.flexa-inspector .components-text-control__input{border-radius:5px}.flexa-inspector .components-input-control__backdrop{border-radius:5px!important}.flexa-inspector .components-toggle-group-control{background:#f6f7f7;border:none!important;border-radius:6px}.flexa-inspector .components-toggle-group-control,.flexa-inspector .components-toggle-group-control *,.flexa-inspector .components-toggle-group-control :active,.flexa-inspector .components-toggle-group-control :focus,.flexa-inspector .components-toggle-group-control :focus-visible,.flexa-inspector .components-toggle-group-control:focus,.flexa-inspector .components-toggle-group-control:focus-visible,.flexa-inspector .components-toggle-group-control:focus-within{box-shadow:none!important;outline:none!important}.flexa-inspector .components-toggle-group-control:before{background:#dcf2ff!important;border:none!important;box-shadow:none!important;outline:none!important}.flexa-inspector .components-toggle-group-control .components-toggle-group-control__backdrop{display:none!important}.flexa-inspector .components-toggle-group-control .components-toggle-group-control-option-base{border:none!important;color:#1e1e1e}.flexa-inspector .components-toggle-group-control .components-toggle-group-control-option-base svg{fill:currentcolor}.flexa-inspector .components-toggle-group-control .components-toggle-group-control-option-base:active,.flexa-inspector .components-toggle-group-control .components-toggle-group-control-option-base:focus,.flexa-inspector .components-toggle-group-control .components-toggle-group-control-option-base:focus-visible{border:none!important;box-shadow:none!important;outline:none!important}.flexa-inspector .components-toggle-group-control .is-selected,.flexa-inspector .components-toggle-group-control [aria-checked=true],.flexa-inspector .components-toggle-group-control [data-active=true]{background:#dcf2ff!important;border:none!important;border-radius:5px;box-shadow:none!important;color:#1d4ed8!important;font-weight:600;outline:none!important}.flexa-inspector .components-toggle-group-control .is-selected svg,.flexa-inspector .components-toggle-group-control [aria-checked=true] svg,.flexa-inspector .components-toggle-group-control [data-active=true] svg{fill:#1d4ed8!important}.flexa-inspector{--wp-admin-theme-color:#2563eb;--wp-admin-theme-color-darker-10:#1d4ed8;--wp-admin-theme-color-darker-20:#1e40af}.flexa-slider-unit{margin-bottom:16px}.flexa-slider-unit__head{align-items:center;display:flex;justify-content:space-between;margin-bottom:6px}.flexa-slider-unit__label{align-items:center;color:#6d7882;display:flex;font-size:13px;font-weight:500;gap:6px}.flexa-slider-unit__tools{align-items:center;display:flex;gap:10px}.flexa-slider-unit__reset,.flexa-slider-unit__reset.components-button{align-items:center;background:none;border:0;color:#2563eb;cursor:pointer;display:inline-flex;justify-content:center;padding:0}.flexa-slider-unit__reset svg,.flexa-slider-unit__reset.components-button svg{fill:none;height:15px;stroke:currentcolor;width:15px}.flexa-slider-unit__reset.components-button:hover,.flexa-slider-unit__reset:hover{color:#1d4ed8}.flexa-slider-unit .components-base-control{margin-bottom:0}.flexa-slider-unit .components-range-control__root{align-items:center}.flexa-unit-chip{appearance:none!important;-webkit-appearance:none!important;background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%278%27 height=%278%27 viewBox=%270 0 12 12%27%3E%3Cpath fill=%27none%27 stroke=%27%236d7882%27 stroke-width=%271.6%27 d=%27m2 4 4 4 4-4%27/%3E%3C/svg%3E") no-repeat right 4px center;background-size:8px;border:1px solid #e0e0e0;border-radius:4px;box-sizing:border-box;color:#2563eb;cursor:pointer;font-size:11px!important;font-weight:600;height:22px!important;letter-spacing:.2px;line-height:20px!important;margin:0!important;max-width:54px;min-height:0!important;padding:0 15px 0 6px!important}.flexa-unit-chip:focus{border-color:#2563eb;box-shadow:0 0 0 1px #2563eb;outline:none}.flexa-box__head{align-items:center;display:flex;justify-content:space-between;margin-bottom:8px}.flexa-box__tools{align-items:center;display:flex;gap:8px}.flexa-box__inputs{align-items:stretch;display:flex;gap:6px}.flexa-box__input{appearance:textfield;-moz-appearance:textfield;border:1px solid #e0e0e0!important;border-radius:5px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e;flex:1 1 0;font-size:12px!important;height:32px!important;margin:0!important;min-height:0!important;min-width:0;padding:0 4px!important;text-align:center}.flexa-box__input::-webkit-inner-spin-button,.flexa-box__input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.flexa-box__input:focus{border-color:#2563eb!important;box-shadow:0 0 0 1px #2563eb!important;outline:none}.flexa-box__link{align-items:center;background:#fff;border:1px solid #e0e0e0;border-radius:5px;color:#6d7882;cursor:pointer;display:inline-flex;flex:0 0 34px;height:32px;justify-content:center;padding:0}.flexa-box__link svg{fill:none;height:16px;stroke:currentcolor;width:16px}.flexa-box__link:hover{color:#1e1e1e}.flexa-box__link.is-linked{background:#dcf2ff;border-color:#dcf2ff;color:#1d4ed8}.flexa-box__labels{display:flex;gap:6px;margin-top:4px}.flexa-box__labels span{color:#6d7882;flex:1 1 0;font-size:9px;font-weight:500;letter-spacing:.3px;text-align:center;text-transform:uppercase}.flexa-box__labels:after{content:"";flex:0 0 34px}.flexa-device-tag{align-items:center;background:none;border:0;color:#6d7882;cursor:pointer;display:inline-flex;justify-content:center;padding:0}.flexa-device-tag svg{fill:none;height:16px;stroke:currentcolor;width:16px}.flexa-device-tag.is-active,.flexa-device-tag:hover{color:#2563eb}.flexa-device-menu{display:flex;flex-direction:row;gap:4px;padding:5px}.flexa-device-menu__item{align-items:center;background:none;border:0;border-radius:5px;color:#6d7882;cursor:pointer;display:inline-flex;height:30px;justify-content:center;padding:0;width:34px}.flexa-device-menu__item svg{fill:none;height:17px;stroke:currentcolor;width:17px}.flexa-device-menu__item:hover{background:#f6f7f7;color:#1e1e1e}.flexa-device-menu__item.is-active{background:#dcf2ff;color:#2563eb}.flexa-inspector .flexa-field{margin-bottom:16px}.flexa-inspector .flexa-field .components-base-control,.flexa-inspector .flexa-field .components-toggle-group-control{margin-bottom:0}.flexa-inspector .flexa-field .flexa-slider-unit{margin-bottom:14px}.flexa-inspector .flexa-field .flexa-slider-unit:last-child{margin-bottom:0}.flexa-inspector .flexa-field__head{align-items:center;display:flex;justify-content:flex-start;margin-bottom:6px;min-height:20px}.flexa-inspector .flexa-field__label{align-items:center;color:#6d7882;display:inline-flex;font-size:13px;font-weight:500;gap:6px}.flexa-inspector .components-input-control__container,.flexa-inspector .components-input-control__suffix,.flexa-inspector .components-unit-control{overflow:visible}.flexa-inspector .components-input-control__suffix,.flexa-inspector .components-unit-control select,.flexa-inspector .components-unit-control__select{align-items:center;display:flex;height:auto;line-height:1.4!important;min-height:28px}.flexa-dualcolor__head{align-items:center;display:flex;justify-content:space-between}.flexa-dualcolor__tools{align-items:center;display:flex;gap:10px}.flexa-dualcolor__reset{align-items:center;background:none;border:0;color:#2563eb;cursor:pointer;display:inline-flex;justify-content:center;padding:0}.flexa-dualcolor__reset svg{fill:none;height:15px;stroke:currentcolor;width:15px}.flexa-dualcolor__reset:hover{color:#1d4ed8}.flexa-gradient .flexa-dualcolor__head{margin-bottom:10px}.flexa-bg-preview{background:#f6f7f7;border:1px solid #e0e0e0;border-radius:6px;cursor:pointer;display:block;height:120px;margin-bottom:10px;overflow:hidden;padding:0;width:100%}.flexa-bg-preview img{display:block;height:100%;object-fit:cover;width:100%}.flexa-bg-preview:hover{border-color:#2563eb}.flexa-swatch__btn{border:1px solid rgba(0,0,0,.12);border-radius:50%;box-shadow:inset 0 0 0 2px #fff,0 1px 2px rgba(0,0,0,.12);cursor:pointer;height:28px;overflow:hidden;padding:0;position:relative;transition:transform .1s ease,box-shadow .1s ease;width:28px}.flexa-swatch__btn:hover{transform:scale(1.08)}.flexa-swatch__btn:focus-visible{outline:2px solid #2563eb;outline-offset:1px}.flexa-swatch__empty{background:linear-gradient(to top left,transparent calc(50% - 1px),#e02929 calc(50% - 1px),#e02929 calc(50% + 1px),transparent calc(50% + 1px));inset:0;position:absolute}.flexa-swatch__content{padding:12px}.flexa-iconpicker__row{align-items:center;display:flex;gap:8px}.flexa-iconpicker__toggle.components-button{align-items:center;display:inline-flex;gap:8px;height:34px}.flexa-iconpicker__preview{align-items:center;color:#1e1e1e;display:inline-flex;font-size:18px;height:18px;justify-content:center;width:18px}.flexa-iconpicker__preview img,.flexa-iconpicker__preview svg{height:18px;width:18px}.flexa-iconpicker__preview.is-empty{border:1px dashed #e0e0e0;border-radius:4px}.flexa-iconpicker__panel{padding:6px 10px 10px;width:288px}.flexa-iconpicker__search{margin-bottom:4px;position:sticky;top:0;z-index:1}.flexa-iconpicker__grid{display:grid;gap:4px;grid-template-columns:repeat(6,1fr);max-height:220px;overflow-y:auto;padding-top:8px}.flexa-iconpicker__empty{color:#6d7882;grid-column:1/-1;margin:8px 0;text-align:center}.flexa-iconpicker__btn{align-items:center;background:#fff;border:1px solid #e0e0e0;border-radius:6px;color:#1e1e1e;cursor:pointer;display:inline-flex;height:34px;justify-content:center;padding:0;transition:border-color .12s ease,box-shadow .12s ease,color .12s ease;width:100%}.flexa-iconpicker__btn svg{height:20px;width:20px}.flexa-iconpicker__btn.is-active,.flexa-iconpicker__btn:hover{border-color:#2563eb;color:#2563eb}.flexa-iconpicker__btn.is-active{box-shadow:0 0 0 1px #2563eb}.flexa-iconpicker__upload{padding:12px 2px 2px}.flexa-iconpicker__hint{color:#6d7882;font-size:11px;margin:8px 0 0}.block-editor-list-view-leaf.is-selected .block-editor-block-icon,.block-editor-list-view-leaf.is-selected .block-editor-block-icon svg{color:#fff!important;fill:currentcolor}.flexa-skel{background:#dfe3e8;border-radius:5px;display:block;overflow:hidden;position:relative}.flexa-skel:after{animation:flexa-skeleton-shimmer 1.5s ease-in-out infinite;background:linear-gradient(100deg,hsla(0,0%,100%,0) 30%,hsla(0,0%,100%,.55) 50%,hsla(0,0%,100%,0) 70%);background-repeat:no-repeat;background-size:200% 100%;content:"";inset:0;position:absolute}.flexa-skel--circle{border-radius:50%}.flexa-skel--box{border-radius:8px}@keyframes flexa-skeleton-shimmer{0%{background-position:150% 0}to{background-position:-50% 0}}.flexa-item-card{border:1px solid #e0e0e0;border-radius:6px;margin-bottom:8px;padding:8px 10px}.flexa-item-card__head{align-items:center;display:flex;gap:8px;justify-content:space-between}.flexa-item-card__toggle{align-items:center;background:none;border:0;cursor:pointer;display:flex;flex:1 1 auto;gap:8px;min-width:0;padding:2px 0;text-align:left}.flexa-item-card__preview{align-items:center;display:inline-flex;flex:0 0 auto;height:20px;justify-content:center;width:20px}.flexa-item-card__preview img,.flexa-item-card__preview svg{height:100%;width:100%}.flexa-item-card__preview.is-empty{border:1px dashed silver;border-radius:4px}.flexa-item-card__title{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flexa-item-card__tools{display:inline-flex;flex:0 0 auto;gap:2px}.flexa-item-card__body{margin-top:10px}.flexa-item-card__body .components-base-control,.flexa-item-card__body .flexa-field,.flexa-item-card__body .flexa-iconpicker{margin-bottom:12px}.flexa-item-card__add{justify-content:center;width:100%} (()=>{"use strict";var e={9134(){const e=window.wp.blocks,o=JSON.parse('{"UU":"flexa/product-detail"}'),t=window.ReactJSXRuntime,r="#2563eb",l={container:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:r},grid:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"12",y1:"4",x2:"12",y2:"20",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"3",y1:"12",x2:"21",y2:"12",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:r},slides:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M3.5 9v6M20.5 9v6",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},slide:{src:(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("rect",{x:"4",y:"6",width:"16",height:"12",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"})}),foreground:r},button:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"7",width:"18",height:"10",rx:"5",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},heading:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M5 5v14M13 5v14M5 12h8",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M17 10h3v9",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:r},image:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"8.5",cy:"9",r:"1.6",fill:"currentColor"}),(0,t.jsx)("path",{d:"M4 17l4.5-4.5 3.5 3.5 3-3L20 16.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:r},"before-after":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M12 3v18",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"2.4",fill:"currentColor"}),(0,t.jsx)("path",{d:"M8 12H6M18 12h-2",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]}),foreground:r},countdown:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"12",cy:"13",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M12 9v4l2.5 2.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("line",{x1:"9",y1:"2.5",x2:"15",y2:"2.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},faq:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"18",height:"4.5",rx:"1.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("rect",{x:"3",y:"11.5",width:"18",height:"4.5",rx:"1.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M17.5 6.25h.01M17.5 13.75h.01",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),foreground:r},"social-icon":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"6",cy:"12",r:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"16.5",cy:"5.5",r:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"16.5",cy:"18.5",r:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M8.3 10.7l5.9-3.7M8.3 13.3l5.9 3.7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"social-share":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"18",cy:"5.5",r:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"6",cy:"12",r:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"18",cy:"18.5",r:"2.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M8.3 10.7l7.4-4.2M8.3 13.3l7.4 4.2",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},text:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("line",{x1:"4",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"4",y1:"10",x2:"20",y2:"10",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"4",y1:"14",x2:"14",y2:"14",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"4",y1:"18",x2:"17",y2:"18",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},separator:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("line",{x1:"3",y1:"12",x2:"21",y2:"12",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,t.jsx)("circle",{cx:"6",cy:"12",r:"0.6",fill:"currentColor"}),(0,t.jsx)("circle",{cx:"18",cy:"12",r:"0.6",fill:"currentColor"})]}),foreground:r},testimonial:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M4 4h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H9l-4 4v-4H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"m12 7 1.1 2.3 2.4.3-1.8 1.7.5 2.4-2.2-1.2-2.2 1.2.5-2.4L8.5 9.6l2.4-.3L12 7Z",fill:"currentColor"})]}),foreground:r},counter:{src:(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M4 20V10M12 20V4M20 20v-7",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})}),foreground:r},"info-box":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"8",cy:"9",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"12",y1:"8",x2:"18",y2:"8",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"6",y1:"14",x2:"18",y2:"14",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"6",y1:"17",x2:"15",y2:"17",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:r},"table-of-content":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("line",{x1:"4",y1:"6",x2:"6",y2:"6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"9",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"4",y1:"12",x2:"6",y2:"12",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"9",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"4",y1:"18",x2:"6",y2:"18",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"9",y1:"18",x2:"20",y2:"18",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),foreground:r},"comparison-table":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"9",y1:"9",x2:"9",y2:"20",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"15",y1:"9",x2:"15",y2:"20",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:r},breadcrumb:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M3 6h6M3 12h6M3 18h6",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M13 7l3 5-3 5M18 7l3 5-3 5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:r},"video-popup":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M10 9.2v5.6l5-2.8z",fill:"currentColor"})]}),foreground:r},tabs:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M3 9h18",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("rect",{x:"4.5",y:"6.2",width:"4.5",height:"1.6",rx:"0.8",fill:"currentColor"})]}),foreground:r},steps:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"6",cy:"6",r:"2.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"6",cy:"18",r:"2.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"6",y1:"8.5",x2:"6",y2:"15.5",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"11",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"11",y1:"18",x2:"20",y2:"18",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"google-map":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M12 21s6-5.2 6-10a6 6 0 1 0-12 0c0 4.8 6 10 6 10Z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"12",cy:"11",r:"2.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:r},"images-gallery":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"8",height:"8",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("rect",{x:"13",y:"4",width:"8",height:"8",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("rect",{x:"3",y:"14",width:"8",height:"6",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("rect",{x:"13",y:"14",width:"8",height:"6",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:r},banner:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"7",y1:"10",x2:"17",y2:"10",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"9",y1:"13",x2:"15",y2:"13",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),(0,t.jsx)("rect",{x:"9.5",y:"15.2",width:"5",height:"2.2",rx:"1.1",fill:"currentColor"})]}),foreground:r},cta:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("line",{x1:"6",y1:"7",x2:"18",y2:"7",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"8",y1:"10.5",x2:"16",y2:"10.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),(0,t.jsx)("rect",{x:"7",y:"13.5",width:"10",height:"4.5",rx:"2.25",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"10",y1:"15.75",x2:"14",y2:"15.75",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"subscribe-form":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"7",y1:"9",x2:"17",y2:"9",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"7",y1:"12",x2:"14",y2:"12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("rect",{x:"7",y:"15",width:"6",height:"2.6",rx:"1.3",fill:"currentColor"})]}),foreground:r},"subscribe-form-email":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M4 8l8 5 8-5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:r},"subscribe-form-name":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"8",width:"18",height:"8",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"6",y1:"12",x2:"7",y2:"12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"subscribe-form-phone":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"7",y:"3",width:"10",height:"18",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"10.5",y1:"18",x2:"13.5",y2:"18",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"subscribe-form-textarea":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"6",y1:"9",x2:"18",y2:"9",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"6",y1:"12",x2:"18",y2:"12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"6",y1:"15",x2:"13",y2:"15",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"subscribe-form-select":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"7",width:"18",height:"10",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M14 11l2 2 2-2",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:r},"subscribe-form-radio":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"7",cy:"8",r:"2.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"7",cy:"8",r:"0.9",fill:"currentColor"}),(0,t.jsx)("circle",{cx:"7",cy:"16",r:"2.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"12",y1:"8",x2:"19",y2:"8",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"12",y1:"16",x2:"19",y2:"16",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"subscribe-form-checkbox":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"4",y:"5.5",width:"6.5",height:"6.5",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M5.5 8.8l1.4 1.4 2.2-2.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("line",{x1:"13",y1:"8.5",x2:"20",y2:"8.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"4",y1:"16.5",x2:"20",y2:"16.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"subscribe-form-date":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"8",y1:"3",x2:"8",y2:"6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"16",y1:"3",x2:"16",y2:"6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("rect",{x:"7",y:"12",width:"3",height:"3",rx:"0.6",fill:"currentColor"})]}),foreground:r},"subscribe-form-url":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M10 14a3.5 3.5 0 0 0 5 0l2.5-2.5a3.5 3.5 0 0 0-5-5L11 8",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M14 10a3.5 3.5 0 0 0-5 0l-2.5 2.5a3.5 3.5 0 0 0 5 5L13 16",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:r},"subscribe-form-toggle":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"2",y:"7",width:"20",height:"10",rx:"5",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"16",cy:"12",r:"3",fill:"currentColor"})]}),foreground:r},"subscribe-form-upload":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M12 15V5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M8.5 8.5L12 5l3.5 3.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M5 15v3a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-3",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:r},"subscribe-form-hidden":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M3 12s3.5-6 9-6 9 6 9 6-3.5 6-9 6-9-6-9-6Z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"2.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"4",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"pricing-table":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"5.5",height:"16",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("rect",{x:"9.25",y:"4",width:"5.5",height:"16",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("rect",{x:"15.5",y:"4",width:"5.5",height:"16",rx:"1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"10.5",y1:"8",x2:"13.5",y2:"8",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"team-member":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"12",cy:"8",r:"3.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M5.5 19a6.5 6.5 0 0 1 13 0",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"post-grid":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"8",height:"7",rx:"1.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("rect",{x:"13",y:"4",width:"8",height:"7",rx:"1.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("rect",{x:"3",y:"13",width:"8",height:"7",rx:"1.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("rect",{x:"13",y:"13",width:"8",height:"7",rx:"1.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"})]}),foreground:r},"post-filter":{src:(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M3 5h18l-7 8v6l-4 2v-8L3 5Z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"})}),foreground:r},"filter-search":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"15.5",y1:"15.5",x2:"20",y2:"20",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"filter-taxonomy":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"m8 10.5 2.5 2.5L16 8",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:r},"filter-reset":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M20 12a8 8 0 1 1-2.6-5.9",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M20 4v4h-4",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),foreground:r},"process-bar":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"9",width:"18",height:"6",rx:"3",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("rect",{x:"5",y:"11",width:"9",height:"2",rx:"1",fill:"currentColor"})]}),foreground:r},timeline:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"21",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("circle",{cx:"12",cy:"7",r:"2.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"12",cy:"16",r:"2.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"14.5",y1:"7",x2:"20",y2:"7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"4",y1:"16",x2:"9.5",y2:"16",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},icon:{src:(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"m12 3 2.6 5.6 6.1.7-4.5 4.1 1.2 6-5.4-3-5.4 3 1.2-6L3.3 9.3l6.1-.7L12 3Z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"})}),foreground:r},"icon-list":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"5",cy:"6",r:"1.8",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"5",cy:"12",r:"1.8",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"5",cy:"18",r:"1.8",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"10",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"10",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"10",y1:"18",x2:"16",y2:"18",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"star-rating":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"m6 8 .9 2 2.1.2-1.6 1.4.5 2.1L6 12.6 4.1 13.7l.5-2.1L3 10.2l2.1-.2L6 8Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"m12 8 .9 2 2.1.2-1.6 1.4.5 2.1-1.9-1.1-1.9 1.1.5-2.1L9 10.2l2.1-.2L12 8Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"m18 8 .9 2 2.1.2-1.6 1.4.5 2.1-1.9-1.1-1.9 1.1.5-2.1L15 10.2l2.1-.2L18 8Z",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round"})]}),foreground:r},modal:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.4",opacity:"0.4"}),(0,t.jsx)("rect",{x:"6",y:"7",width:"12",height:"10",rx:"1.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"8.5",y1:"10.5",x2:"15.5",y2:"10.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"8.5",y1:"13.5",x2:"13",y2:"13.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]}),foreground:r},lottie:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M10 8.5v7l6-3.5-6-3.5Z",fill:"currentColor"})]}),foreground:r},notice:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"8.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"facebook-feed":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"3",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M14 8h-1.5c-.8 0-1.5.7-1.5 1.5V11H9.5v2H11v5h2v-5h1.6l.4-2H13V9.8c0-.4.2-.8.7-.8H14V8Z",fill:"currentColor"})]}),foreground:r},"instagram-feed":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"4.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("circle",{cx:"16.6",cy:"7.4",r:"1.1",fill:"currentColor"})]}),foreground:r},taxonomy:{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M4 5.5A1.5 1.5 0 0 1 5.5 4h6.7c.4 0 .8.16 1.06.44l6.3 6.3a1.5 1.5 0 0 1 0 2.12l-6.7 6.7a1.5 1.5 0 0 1-2.12 0l-6.3-6.3A1.5 1.5 0 0 1 4 12.2V5.5Z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.3",fill:"currentColor"})]}),foreground:r},"data-table":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"9",y1:"9",x2:"9",y2:"20",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"3",y1:"14.5",x2:"21",y2:"14.5",stroke:"currentColor",strokeWidth:"1.4"})]}),foreground:r},"product-name":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M4 7h16",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M4 12h11",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M4 17h7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),foreground:r},"product-price":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"8.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M14.5 9.2c-.6-.8-1.6-1.2-2.6-1.2-1.5 0-2.6.9-2.6 2.1 0 2.9 5.4 1.6 5.4 4.4 0 1.3-1.2 2.2-2.8 2.2-1.1 0-2.2-.5-2.8-1.4",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M12 6.2v11.6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),foreground:r},"product-rating":{src:(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M12 3.5l2.6 5.27 5.82.85-4.21 4.1.99 5.8L12 16.77 6.79 19.5l.99-5.8-4.21-4.1 5.82-.85L12 3.5z",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})}),foreground:r},"product-detail":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("rect",{x:"3",y:"4",width:"7",height:"5",rx:"2",fill:"currentColor",opacity:"0.18",stroke:"none"}),(0,t.jsx)("line",{x1:"6",y1:"13",x2:"18",y2:"13",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),(0,t.jsx)("line",{x1:"6",y1:"16.5",x2:"14",y2:"16.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]}),foreground:r},"product-image":{src:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"3",y:"3.5",width:"18",height:"13",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M6 13.5l3.2-3.6 2.6 2.7 2.4-2.1 3.8 3.9",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"9",cy:"7.5",r:"1.3",fill:"currentColor"}),(0,t.jsx)("rect",{x:"4",y:"19",width:"4.5",height:"2.5",rx:"0.8",fill:"currentColor",opacity:"0.5",stroke:"none"}),(0,t.jsx)("rect",{x:"9.8",y:"19",width:"4.5",height:"2.5",rx:"0.8",fill:"currentColor",opacity:"0.25",stroke:"none"}),(0,t.jsx)("rect",{x:"15.6",y:"19",width:"4.5",height:"2.5",rx:"0.8",fill:"currentColor",opacity:"0.25",stroke:"none"})]}),foreground:r}},n=window.wp.i18n,s=window.wp.element,i=window.wp.blockEditor,a=window.wp.components,c=(e,o="0 0 24 24")=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:o,xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:e}),x=c((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"18",height:"12",rx:"1.5"}),(0,t.jsx)("line",{x1:"8",y1:"20",x2:"16",y2:"20"}),(0,t.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"20"})]})),d=c((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"6",y:"3",width:"12",height:"18",rx:"1.5"}),(0,t.jsx)("line",{x1:"11",y1:"18",x2:"13",y2:"18"})]})),h=c((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"8",y:"3",width:"8",height:"18",rx:"1.5"}),(0,t.jsx)("line",{x1:"11",y1:"18",x2:"13",y2:"18"})]})),u=(c((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("line",{x1:"4",y1:"12",x2:"19",y2:"12"}),(0,t.jsx)("path",{d:"M14.5 7.5 L19 12 L14.5 16.5"})]})),c((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("line",{x1:"12",y1:"4",x2:"12",y2:"19"}),(0,t.jsx)("path",{d:"M7.5 14.5 L12 19 L16.5 14.5"})]})),(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M18 5a1 1 0 100-2H2a1 1 0 000 2h16zm-8 4a1 1 0 100-2H2a1 1 0 100 2h8zm9 3a1 1 0 01-1 1H2a1 1 0 110-2h16a1 1 0 011 1zm-9 5a1 1 0 100-2H2a1 1 0 100 2h8z"})})),g=(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M18 5a1 1 0 100-2H2a1 1 0 000 2h16zm0 4a1 1 0 100-2h-8a1 1 0 100 2h8zm1 3a1 1 0 01-1 1H2a1 1 0 110-2h16a1 1 0 011 1zm-1 5a1 1 0 100-2h-8a1 1 0 100 2h8z"})}),k=(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M18 5a1 1 0 100-2H2a1 1 0 000 2h16zm-4 4a1 1 0 100-2H6a1 1 0 100 2h8zm5 3a1 1 0 01-1 1H2a1 1 0 110-2h16a1 1 0 011 1zm-5 5a1 1 0 100-2H6a1 1 0 100 2h8z"})}),b=c((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M5 12a7 7 0 1 0 2-4.9"}),(0,t.jsx)("polyline",{points:"4 4 4 8 8 8"})]})),f=c((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M10 13a3 3 0 0 0 4.2 0l2.3-2.3a3 3 0 0 0-4.2-4.2l-1 1"}),(0,t.jsx)("path",{d:"M14 11a3 3 0 0 0-4.2 0L7.5 13.3a3 3 0 0 0 4.2 4.2l1-1"})]})),p=c((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,t.jsx)("line",{x1:"12",y1:"2.5",x2:"12",y2:"5"}),(0,t.jsx)("line",{x1:"12",y1:"19",x2:"12",y2:"21.5"}),(0,t.jsx)("line",{x1:"2.5",y1:"12",x2:"5",y2:"12"}),(0,t.jsx)("line",{x1:"19",y1:"12",x2:"21.5",y2:"12"}),(0,t.jsx)("line",{x1:"5.3",y1:"5.3",x2:"7",y2:"7"}),(0,t.jsx)("line",{x1:"17",y1:"17",x2:"18.7",y2:"18.7"}),(0,t.jsx)("line",{x1:"5.3",y1:"18.7",x2:"7",y2:"17"}),(0,t.jsx)("line",{x1:"17",y1:"7",x2:"18.7",y2:"5.3"})]})),j=c((0,t.jsx)("path",{d:"M20 14.5A8 8 0 0 1 9.5 4a7 7 0 1 0 10.5 10.5z"})),v=["top","right","bottom","left"],_=["topLeft","topRight","bottomRight","bottomLeft"],w=(e={},o="desktop")=>{const t=e?.desktop||{},r=e?.tablet||{},l=e?.mobile||{};return"tablet"===o?{...t,...r}:"mobile"===o?{...t,...r,...l}:{...t}},m=(e={},o="desktop")=>e?.[o]||{},y=(e={},o="desktop",t={})=>({...e,[o]:{...e?.[o]||{},...t}}),C=(e,o="px")=>{const t=String(e??"");return""===t?"":"auto"===t||"none"===t||/[a-z%)]$/i.test(t)?t:`${t}${o}`},W=(e={})=>{const o=e.unit||"px";let t=!1;const r=v.map(r=>{const l=e[r]??"";return""!==String(l)&&(t=!0),""===l?"0":C(l,o)});return t?r.join(" "):void 0},L=[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"vh",label:"vh"},{value:"vw",label:"vw"}],B=L,T=[{value:"",label:"Default"},{value:"visible",label:"Visible"},{value:"hidden",label:"Hidden"},{value:"auto",label:"Auto"},{value:"scroll",label:"Scroll"}],M=[{value:"",label:"Default"},{value:"relative",label:"Relative"},{value:"absolute",label:"Absolute"},{value:"fixed",label:"Fixed"},{value:"sticky",label:"Sticky"},{value:"static",label:"Static"}],S=[{value:"",label:"None"},{value:"solid",label:"Solid"},{value:"dashed",label:"Dashed"},{value:"dotted",label:"Dotted"},{value:"double",label:"Double"}],N=(S.filter(e=>""!==e.value),[{name:"Black",color:"#111827"},{name:"Gray 700",color:"#374151"},{name:"Gray 400",color:"#9ca3af"},{name:"Gray 100",color:"#f3f4f6"},{name:"White",color:"#ffffff"},{name:"Blue",color:"#2563eb"},{name:"Indigo",color:"#4f46e5"},{name:"Green",color:"#16a34a"},{name:"Amber",color:"#f59e0b"},{name:"Red",color:"#dc2626"}]),D=(...e)=>e.filter(Boolean).join(" "),I=(e={})=>[e.hideOnDesktop?"flexa-hide-desktop":"",e.hideOnTablet?"flexa-hide-tablet":"",e.hideOnMobile?"flexa-hide-mobile":""].filter(Boolean),z=(e,o={})=>{o.fontSize?.value&&(e.fontSize=C(o.fontSize.value,o.fontSize.unit||"px")),o.fontWeight&&(e.fontWeight=o.fontWeight),o.letterSpacing?.value&&(e.letterSpacing=C(o.letterSpacing.value,o.letterSpacing.unit||"px")),o.textTransform&&(e.textTransform=o.textTransform),o.lineHeight&&(e.lineHeight=o.lineHeight)},A=window.wp.data,H=["core/edit-site","core/edit-post"],P=e=>e?"function"==typeof e.__experimentalGetPreviewDeviceType?e.__experimentalGetPreviewDeviceType():"function"==typeof e.getDeviceType?e.getDeviceType():null:null,R=e=>{const o=[...H,"core/editor"];for(const t of o)try{const o=(0,A.select)(t);if(!o)continue;const r=(0,A.dispatch)(t);if("function"==typeof o.__experimentalGetPreviewDeviceType&&r.__experimentalSetPreviewDeviceType)return void r.__experimentalSetPreviewDeviceType(e);if("function"==typeof o.getDeviceType&&r.setDeviceType)return void r.setDeviceType(e)}catch(e){}},O=e=>{switch(e){case"Tablet":return"tablet";case"Mobile":return"mobile";default:return"desktop"}},F=a.CustomGradientPicker||a.__experimentalCustomGradientPicker,G=["top","right","bottom","left"],V=()=>{const e=(0,A.useSelect)(e=>{for(const o of H)try{const t=P(e(o));if(t)return t}catch(e){}try{const o=P(e("core/editor"));if(o)return o}catch(e){}return"Desktop"},[]);return[O(e),R]},U=({label:e,value:o,options:r,onChange:l,isBlock:n=!0,responsive:s=!1})=>(0,t.jsxs)("div",{className:"flexa-field",children:[s&&(0,t.jsx)(te,{label:e}),(0,t.jsx)(a.__experimentalToggleGroupControl,{label:e,hideLabelFromVision:s,value:o,onChange:l,isBlock:n,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,children:r.map(e=>e.icon?(0,t.jsx)(a.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:(0,t.jsx)(a.Icon,{icon:e.icon}),label:e.label},e.value):(0,t.jsx)(a.__experimentalToggleGroupControlOption,{value:e.value,label:e.label},e.value))})]}),Z=({label:e,value:o={},onChange:r,units:l,responsive:i=!1})=>{const[c,x]=(0,s.useState)(!0),d=o.unit||l?.[0]?.value||"px";return(0,t.jsxs)("div",{className:"flexa-field flexa-box",children:[(0,t.jsxs)("div",{className:"flexa-box__head",children:[(0,t.jsxs)("span",{className:"flexa-field__label",children:[e,i&&(0,t.jsx)(oe,{})]}),(0,t.jsx)("div",{className:"flexa-box__tools",children:l&&l.length>1&&(0,t.jsx)("select",{className:"flexa-unit-chip",value:d,"aria-label":(0,n.__)("Unit","flexa-block"),onChange:e=>r({...o,unit:e.target.value}),children:l.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))})})]}),(0,t.jsxs)("div",{className:"flexa-box__inputs",children:[G.map(e=>(0,t.jsx)("input",{type:"number",className:"flexa-box__input",value:o[e]??"",onChange:t=>((e,t)=>{r(c?{top:t,right:t,bottom:t,left:t,unit:d}:{...o,[e]:t,unit:d})})(e,t.target.value)},e)),(0,t.jsx)("button",{type:"button",className:"flexa-box__link"+(c?" is-linked":""),"aria-label":(0,n.__)("Link sides","flexa-block"),"aria-pressed":c,onClick:()=>x(!c),children:(0,t.jsx)(a.Icon,{icon:f})})]}),(0,t.jsx)("div",{className:"flexa-box__labels",children:G.map(e=>(0,t.jsx)("span",{children:e},e))})]})},E=({label:e,color:o,onChange:r,palette:l})=>(0,t.jsx)(a.Dropdown,{className:"flexa-swatch",contentClassName:"flexa-swatch__popover",renderToggle:({isOpen:r,onToggle:l})=>(0,t.jsx)(a.Tooltip,{text:e,children:(0,t.jsx)("button",{type:"button","aria-expanded":r,onClick:l,className:"flexa-swatch__btn",style:{background:o||"transparent"},children:!o&&(0,t.jsx)("span",{className:"flexa-swatch__empty"})})}),renderContent:()=>(0,t.jsx)("div",{className:"flexa-swatch__content",children:(0,t.jsx)(a.ColorPalette,{colors:l,value:o,onChange:e=>r(e||""),enableAlpha:!0})})}),$=()=>!1!==window.flexaBlockEditor?.darkModeEnabled,q=[{key:"light",icon:p,label:(0,n.__)("Light","flexa-block")},{key:"dark",icon:j,label:(0,n.__)("Dark","flexa-block")}],X=({mode:e,onChange:o})=>{const r=q.find(o=>o.key===e)||q[0];return(0,t.jsx)(a.Dropdown,{className:"flexa-mode-tag-wrap",contentClassName:"flexa-device-menu__popover",popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:o,onToggle:l})=>(0,t.jsx)(a.Tooltip,{text:(0,n.__)("Light / Dark colour","flexa-block"),children:(0,t.jsx)("button",{type:"button",className:"flexa-device-tag"+("dark"===e?" is-active":""),"aria-expanded":o,"aria-label":(0,n.__)("Choose light or dark","flexa-block"),onClick:l,children:(0,t.jsx)(a.Icon,{icon:r.icon})})}),renderContent:({onClose:r})=>(0,t.jsx)("div",{className:"flexa-device-menu",children:q.map(l=>(0,t.jsx)(a.Tooltip,{text:l.label,children:(0,t.jsx)("button",{type:"button","aria-label":l.label,className:"flexa-device-menu__item"+(e===l.key?" is-active":""),onClick:()=>{o(l.key),r()},children:(0,t.jsx)(a.Icon,{icon:l.icon})})},l.key))})})},J=({label:e,value:o={},onChange:r,palette:l=N})=>{const i=$(),[c,x]=(0,s.useState)("light"),d=i?c:"light";return(0,t.jsx)("div",{className:"flexa-field flexa-dualcolor",children:(0,t.jsxs)("div",{className:"flexa-dualcolor__head",children:[(0,t.jsxs)("span",{className:"flexa-field__label",children:[e,i&&(0,t.jsx)(X,{mode:d,onChange:x})]}),(0,t.jsxs)("div",{className:"flexa-dualcolor__tools",children:[(0,t.jsx)("button",{type:"button",className:"flexa-dualcolor__reset","aria-label":(0,n.__)("Reset","flexa-block"),onClick:()=>r({...o,[d]:""}),children:(0,t.jsx)(a.Icon,{icon:b})}),(0,t.jsx)(E,{label:"dark"===d?(0,n.__)("Dark","flexa-block"):(0,n.__)("Color","flexa-block"),color:o[d],palette:l,onChange:e=>r({...o,[d]:e})})]})]})})},Y=({label:e,value:o={},onChange:r})=>{const l=$(),[i,c]=(0,s.useState)("light"),x=l?i:"light";return(0,t.jsxs)("div",{className:"flexa-field flexa-gradient",children:[(0,t.jsxs)("div",{className:"flexa-dualcolor__head",children:[(0,t.jsxs)("span",{className:"flexa-field__label",children:[e,l&&(0,t.jsx)(X,{mode:x,onChange:c})]}),(0,t.jsx)("div",{className:"flexa-dualcolor__tools",children:(0,t.jsx)("button",{type:"button",className:"flexa-dualcolor__reset","aria-label":(0,n.__)("Reset","flexa-block"),onClick:()=>r({...o,[x]:""}),children:(0,t.jsx)(a.Icon,{icon:b})})})]}),(0,t.jsx)(F,{__nextHasNoMargin:!0,value:o[x]||void 0,onChange:e=>r({...o,[x]:e})})]})},K={px:1600,"%":100,vw:100,vh:100,em:60,rem:60},Q={desktop:x,tablet:d,mobile:h},ee=[{key:"desktop",type:"Desktop",label:(0,n.__)("Desktop","flexa-block")},{key:"tablet",type:"Tablet",label:(0,n.__)("Tablet","flexa-block")},{key:"mobile",type:"Mobile",label:(0,n.__)("Mobile","flexa-block")}],oe=()=>{const[e,o]=V();return(0,t.jsx)(a.Dropdown,{className:"flexa-device-tag-wrap",contentClassName:"flexa-device-menu__popover",popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:o,onToggle:r})=>(0,t.jsx)(a.Tooltip,{text:(0,n.__)("Responsive — choose device","flexa-block"),children:(0,t.jsx)("button",{type:"button",className:"flexa-device-tag"+("desktop"!==e?" is-active":""),"aria-expanded":o,"aria-label":(0,n.__)("Choose device","flexa-block"),onClick:r,children:(0,t.jsx)(a.Icon,{icon:Q[e]})})}),renderContent:({onClose:r})=>(0,t.jsx)("div",{className:"flexa-device-menu",children:ee.map(l=>(0,t.jsx)(a.Tooltip,{text:l.label,children:(0,t.jsx)("button",{type:"button",title:l.label,"aria-label":l.label,className:"flexa-device-menu__item"+(e===l.key?" is-active":""),onClick:()=>{o(l.type),r()},children:(0,t.jsx)(a.Icon,{icon:Q[l.key]})})},l.key))})})},te=({label:e})=>(0,t.jsx)("div",{className:"flexa-field__head",children:(0,t.jsxs)("span",{className:"flexa-field__label",children:[e,(0,t.jsx)(oe,{})]})}),re=({label:e,value:o={},units:r,onChange:l,min:s=0,max:i,defaultUnit:c,showDevice:x=!0})=>{const d=o.unit??c??r[0]?.value??"px",h=o.value,u=""===h||null==h?void 0:parseFloat(String(h)),g=(i&&i[d])??K[d]??1e3;return(0,t.jsxs)(a.BaseControl,{__nextHasNoMarginBottom:!0,className:"flexa-slider-unit",children:[(0,t.jsxs)("div",{className:"flexa-slider-unit__head",children:[(0,t.jsxs)("span",{className:"flexa-slider-unit__label",children:[e,x&&(0,t.jsx)(oe,{})]}),(0,t.jsxs)("div",{className:"flexa-slider-unit__tools",children:[(0,t.jsx)("button",{type:"button",className:"flexa-slider-unit__reset","aria-label":(0,n.__)("Reset","flexa-block"),onClick:()=>l({value:"",unit:d}),children:(0,t.jsx)(a.Icon,{icon:b})}),(0,t.jsx)("select",{className:"flexa-unit-chip",value:d,onChange:e=>l({value:h??"",unit:e.target.value}),"aria-label":(0,n.__)("Unit","flexa-block"),children:r.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))})]})]}),(0,t.jsx)(a.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:u,min:s,max:g,onChange:e=>l({value:null==e?"":String(e),unit:d})})]})},le=[{value:"",label:(0,n.__)("Default","flexa-block")},{value:"300",label:(0,n.__)("Light (300)","flexa-block")},{value:"400",label:(0,n.__)("Normal (400)","flexa-block")},{value:"500",label:(0,n.__)("Medium (500)","flexa-block")},{value:"600",label:(0,n.__)("Semibold (600)","flexa-block")},{value:"700",label:(0,n.__)("Bold (700)","flexa-block")},{value:"800",label:(0,n.__)("Extra bold (800)","flexa-block")},{value:"900",label:(0,n.__)("Black (900)","flexa-block")}],ne=[{value:"",label:(0,n.__)("Default","flexa-block")},{value:"none",label:(0,n.__)("None","flexa-block")},{value:"uppercase",label:(0,n.__)("Uppercase","flexa-block")},{value:"lowercase",label:(0,n.__)("Lowercase","flexa-block")},{value:"capitalize",label:(0,n.__)("Capitalize","flexa-block")}],se=((0,n.__)("Normal","flexa-block"),(0,n.__)("Multiply","flexa-block"),(0,n.__)("Screen","flexa-block"),(0,n.__)("Overlay","flexa-block"),(0,n.__)("Darken","flexa-block"),(0,n.__)("Lighten","flexa-block"),(0,n.__)("Color Dodge","flexa-block"),(0,n.__)("Color Burn","flexa-block"),(0,n.__)("Hard Light","flexa-block"),(0,n.__)("Soft Light","flexa-block"),(0,n.__)("Difference","flexa-block"),(0,n.__)("Exclusion","flexa-block"),(0,n.__)("Left","flexa-block"),(0,n.__)("Center","flexa-block"),(0,n.__)("Right","flexa-block"),(0,n.__)("Justify","flexa-block"),[{value:"left",label:(0,n.__)("Left","flexa-block"),icon:u},{value:"center",label:(0,n.__)("Center","flexa-block"),icon:k},{value:"right",label:(0,n.__)("Right","flexa-block"),icon:g}]),ie=((0,n.__)("Boxed","flexa-block"),(0,n.__)("Full Width","flexa-block"),(0,n.__)("Cover","flexa-block"),(0,n.__)("Contain","flexa-block"),(0,n.__)("Fill","flexa-block"),(0,n.__)("None","flexa-block"),(0,n.__)("Scale down","flexa-block"),(0,n.__)("Square 1:1","flexa-block"),(0,n.__)("Landscape 4:3","flexa-block"),(0,n.__)("Landscape 3:2","flexa-block"),(0,n.__)("Widescreen 16:9","flexa-block"),(0,n.__)("Cinema 21:9","flexa-block"),(0,n.__)("Portrait 3:4","flexa-block"),(0,n.__)("Portrait 2:3","flexa-block"),(0,n.__)("Portrait 9:16","flexa-block"),(0,n.__)("None","flexa-block"),(0,n.__)("Zoom in","flexa-block"),(0,n.__)("Zoom out","flexa-block"),(0,n.__)("Grayscale","flexa-block"),(0,n.__)("Blur","flexa-block"),(0,n.__)("Rotate","flexa-block"),(0,n.__)("Shine","flexa-block"),(0,n.__)("Slide","flexa-block"),({value:e,onChange:o})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(re,{label:(0,n.__)("Font Size","flexa-block"),value:e.fontSize||{},units:L,defaultUnit:"px",max:{px:200,rem:12,em:12,"%":300,vw:30,vh:30},onChange:e=>o({fontSize:e})}),(0,t.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Font Weight","flexa-block"),value:e.fontWeight||"",options:le,onChange:e=>o({fontWeight:e})}),(0,t.jsx)(re,{label:(0,n.__)("Letter Spacing","flexa-block"),value:e.letterSpacing||{},units:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],defaultUnit:"px",min:-5,max:{px:20,em:2,rem:2},onChange:e=>o({letterSpacing:e})}),(0,t.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Text Transform","flexa-block"),value:e.textTransform||"",options:ne,onChange:e=>o({textTransform:e})}),(0,t.jsx)(a.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Line Height","flexa-block"),type:"number",step:.1,value:e.lineHeight??"",onChange:e=>o({lineHeight:e})})]})),ae=({attributes:e,setAttributes:o,initialOpen:r=!1})=>{const[l]=V(),s=m(e.spacing,l),i=t=>o({spacing:y(e.spacing,l,t)});return(0,t.jsxs)(a.PanelBody,{title:(0,n.__)("Spacing","flexa-block"),initialOpen:r,children:[(0,t.jsx)(Z,{label:(0,n.__)("Margin","flexa-block"),responsive:!0,value:s.margin||{},units:B,onChange:e=>i({margin:e})}),(0,t.jsx)(Z,{label:(0,n.__)("Padding","flexa-block"),responsive:!0,value:s.padding||{},units:B,onChange:e=>i({padding:e})})]})},ce=({attributes:e,setAttributes:o,initialOpen:r=!1,allowImage:l=!0})=>{const s=e.background||{},c=e=>o({background:{...s,...e}}),x=[{value:"none",label:(0,n.__)("None","flexa-block")},{value:"classic",label:(0,n.__)("Color","flexa-block")},{value:"gradient",label:(0,n.__)("Gradient","flexa-block")},...l?[{value:"image",label:(0,n.__)("Image","flexa-block")}]:[]];return(0,t.jsxs)(a.PanelBody,{title:(0,n.__)("Background","flexa-block"),initialOpen:r,children:[(0,t.jsx)(U,{label:(0,n.__)("Type","flexa-block"),value:s.type||"none",onChange:e=>c({type:e}),options:x}),"classic"===s.type&&(0,t.jsx)(J,{label:(0,n.__)("Color","flexa-block"),value:s.color||{},onChange:e=>c({color:e})}),"gradient"===s.type&&(0,t.jsx)(Y,{label:(0,n.__)("Gradient","flexa-block"),value:s.gradient||{},onChange:e=>c({gradient:e})}),"image"===s.type&&(0,t.jsx)(a.BaseControl,{__nextHasNoMarginBottom:!0,label:(0,n.__)("Image","flexa-block"),children:(0,t.jsx)(i.MediaUploadCheck,{children:(0,t.jsx)(i.MediaUpload,{allowedTypes:["image"],value:s.image?.id,onSelect:e=>c({image:{...s.image,id:e.id,url:e.url}}),render:({open:e})=>(0,t.jsxs)(t.Fragment,{children:[s.image?.url&&(0,t.jsx)("button",{type:"button",className:"flexa-bg-preview",onClick:e,"aria-label":(0,n.__)("Replace image","flexa-block"),children:(0,t.jsx)("img",{src:s.image.url,alt:""})}),(0,t.jsxs)(a.Flex,{gap:2,justify:"flex-start",children:[(0,t.jsx)(a.Button,{variant:"secondary",onClick:e,children:s.image?.url?(0,n.__)("Replace","flexa-block"):(0,n.__)("Select Image","flexa-block")}),s.image?.url&&(0,t.jsx)(a.Button,{isDestructive:!0,variant:"tertiary",onClick:()=>c({image:{...s.image,id:null,url:""}}),children:(0,n.__)("Remove","flexa-block")})]})]})})})}),"image"===s.type&&s.image?.url&&(0,t.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Scroll behavior","flexa-block"),value:s.image?.attachment||"scroll",options:[{value:"scroll",label:(0,n.__)("Scroll with page","flexa-block")},{value:"fixed",label:(0,n.__)("Fixed — image stays, content scrolls","flexa-block")}],help:(0,n.__)("Fixed keeps the background image still while the content scrolls over it. Some mobile browsers ignore this and fall back to scrolling.","flexa-block"),onChange:e=>c({image:{...s.image,attachment:e}})}),"image"===s.type&&s.image?.url&&(0,t.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,n.__)("Lazy load image","flexa-block"),help:(0,n.__)("Only fetch the background image when it nears the viewport.","flexa-block"),checked:!!s.lazyLoad,onChange:e=>c({lazyLoad:e})})]})},xe=(e={})=>({top:e.topLeft??"",right:e.topRight??"",bottom:e.bottomRight??"",left:e.bottomLeft??"",unit:e.unit||"px"}),de=(e={})=>({topLeft:e.top??"",topRight:e.right??"",bottomRight:e.bottom??"",bottomLeft:e.left??"",unit:e.unit||"px"}),he=({attributes:e,setAttributes:o,initialOpen:r=!1})=>{const[l]=V(),s=m(e.border,l),i=t=>o({border:y(e.border,l,t)});return(0,t.jsxs)(a.PanelBody,{title:(0,n.__)("Border","flexa-block"),initialOpen:r,children:[(0,t.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Style","flexa-block"),value:s.style||"",options:S,onChange:e=>i({style:e})}),(0,t.jsx)(Z,{label:(0,n.__)("Width","flexa-block"),responsive:!0,value:s.width||{},units:B,onChange:e=>i({width:e})}),(0,t.jsx)(J,{label:(0,n.__)("Color","flexa-block"),value:s.color||{},onChange:e=>i({color:e})}),(0,t.jsx)(Z,{label:(0,n.__)("Radius","flexa-block"),responsive:!0,value:xe(s.radius||{}),units:B,onChange:e=>i({radius:de(e)})})]})},ue=[{k:"horizontal",l:(0,n.__)("X offset","flexa-block")},{k:"vertical",l:(0,n.__)("Y offset","flexa-block")},{k:"blur",l:(0,n.__)("Blur","flexa-block")},{k:"spread",l:(0,n.__)("Spread","flexa-block")}],ge=({attributes:e,setAttributes:o,initialOpen:r=!1})=>{const l=e.boxShadow||{},s=e=>o({boxShadow:{...l,...e}});return(0,t.jsxs)(a.PanelBody,{title:(0,n.__)("Box Shadow","flexa-block"),initialOpen:r,children:[(0,t.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,n.__)("Enable","flexa-block"),checked:!!l.enabled,onChange:e=>s({enabled:e})}),l.enabled&&(0,t.jsxs)(t.Fragment,{children:[ue.map(e=>(0,t.jsx)(a.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:e.l,value:parseInt(String(l[e.k]??""),10)||0,min:-100,max:100,onChange:o=>s({[e.k]:String(o)})},e.k)),(0,t.jsx)(J,{label:(0,n.__)("Color","flexa-block"),value:l.color||{},onChange:e=>s({color:e})}),(0,t.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,n.__)("Inset","flexa-block"),checked:!!l.inset,onChange:e=>s({inset:e})})]})]})},ke=({attributes:e,setAttributes:o,initialOpen:r=!0})=>{const[l]=V(),s=m(e.advancedLayout,l),i=t=>o({advancedLayout:y(e.advancedLayout,l,t)}),c=["relative","absolute","fixed","sticky"].includes(s.position||"");return(0,t.jsxs)(a.PanelBody,{title:(0,n.__)("Position & Overflow","flexa-block"),initialOpen:r,children:[(0,t.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Position","flexa-block"),value:s.position||"",options:M,onChange:e=>i({position:e})}),c&&(0,t.jsx)(Z,{label:(0,n.__)("Offset (T/R/B/L)","flexa-block"),responsive:!0,value:s.inset||{},units:B,onChange:e=>i({inset:e})}),(0,t.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Overflow","flexa-block"),value:s.overflow||"",options:T,onChange:e=>i({overflow:e})}),(0,t.jsx)(a.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,n.__)("Z-Index","flexa-block"),value:s.zIndex??"",onChange:e=>i({zIndex:e})})]})},be=({attributes:e,setAttributes:o,initialOpen:r=!1})=>{const l=e.responsiveVisibility||{},s=e=>o({responsiveVisibility:{...l,...e}});return(0,t.jsxs)(a.PanelBody,{title:(0,n.__)("Visibility","flexa-block"),initialOpen:r,children:[(0,t.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,n.__)("Hide on Desktop","flexa-block"),checked:!!l.hideOnDesktop,onChange:e=>s({hideOnDesktop:e})}),(0,t.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,n.__)("Hide on Tablet","flexa-block"),checked:!!l.hideOnTablet,onChange:e=>s({hideOnTablet:e})}),(0,t.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,n.__)("Hide on Mobile","flexa-block"),checked:!!l.hideOnMobile,onChange:e=>s({hideOnMobile:e})})]})},fe=[{value:"none",label:(0,n.__)("None","flexa-block")},{value:"fadeIn",label:(0,n.__)("Fade In","flexa-block")},{value:"fadeInUp",label:(0,n.__)("Fade In Up","flexa-block")},{value:"fadeInDown",label:(0,n.__)("Fade In Down","flexa-block")},{value:"fadeInLeft",label:(0,n.__)("Fade In Left","flexa-block")},{value:"fadeInRight",label:(0,n.__)("Fade In Right","flexa-block")},{value:"zoomIn",label:(0,n.__)("Zoom In","flexa-block")},{value:"scaleIn",label:(0,n.__)("Scale In","flexa-block")},{value:"blurIn",label:(0,n.__)("Blur In","flexa-block")},{value:"bounceIn",label:(0,n.__)("Bounce In","flexa-block")},{value:"bounceInUp",label:(0,n.__)("Bounce In Up","flexa-block")},{value:"bounceInDown",label:(0,n.__)("Bounce In Down","flexa-block")},{value:"bounceInLeft",label:(0,n.__)("Bounce In Left","flexa-block")},{value:"bounceInRight",label:(0,n.__)("Bounce In Right","flexa-block")},{value:"flipInX",label:(0,n.__)("Flip In X","flexa-block")},{value:"flipInY",label:(0,n.__)("Flip In Y","flexa-block")}],pe=[{value:"slow",label:(0,n.__)("Slow","flexa-block")},{value:"normal",label:(0,n.__)("Normal","flexa-block")},{value:"fast",label:(0,n.__)("Fast","flexa-block")}],je=({attributes:e,setAttributes:o,initialOpen:r=!1})=>{const l=e.animation||{},s=e=>o({animation:{...l,...e}}),i="none"!==(l.type||"none"),c=parseInt(l.delay||"0",10)||0;return(0,t.jsxs)(a.PanelBody,{title:(0,n.__)("Animation","flexa-block"),initialOpen:r,children:[(0,t.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Effect","flexa-block"),value:l.type||"none",options:fe,onChange:e=>s({type:e})}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Speed","flexa-block"),value:l.duration||"normal",options:pe,onChange:e=>s({duration:e})}),(0,t.jsx)(a.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Delay (ms)","flexa-block"),value:c,min:0,max:1e4,step:100,onChange:e=>s({delay:e?String(e):""})})]})]})},ve=[{value:"none",label:(0,n.__)("None","flexa-block")},{value:"numbered",label:(0,n.__)("Numbered pages","flexa-block")},{value:"loadmore",label:(0,n.__)("Load more button","flexa-block")}],_e=({attributes:e,setAttributes:o,perPage:r,onPerPage:l,perLoad:s,onPerLoad:i,typeHelp:c,initialOpen:x=!1})=>{const d=e.paginationType||"none";return(0,t.jsxs)(a.PanelBody,{title:(0,n.__)("Pagination","flexa-block"),initialOpen:x,children:[(0,t.jsx)(a.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Pagination","flexa-block"),help:c,value:d,options:ve,onChange:e=>o({paginationType:e})}),"numbered"===d&&void 0!==r&&l&&(0,t.jsx)(a.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Items per page","flexa-block"),value:"number"==typeof r?r:6,min:1,max:30,onChange:e=>l(e||1)}),"none"!==d&&(0,t.jsx)(U,{label:(0,n.__)("Alignment","flexa-block"),value:e.paginationAlign||"center",onChange:e=>o({paginationAlign:e}),options:se}),"none"!==d&&(0,t.jsx)(re,{label:(0,n.__)("Font size","flexa-block"),value:e.paginationFontSize||{},units:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],defaultUnit:"px",max:{px:80,em:6,rem:6},onChange:e=>o({paginationFontSize:e})}),"numbered"===d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Previous label","flexa-block"),help:(0,n.__)("Leave empty for the default arrow.","flexa-block"),value:e.prevLabel??"",onChange:e=>o({prevLabel:e})}),(0,t.jsx)(a.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Next label","flexa-block"),value:e.nextLabel??"",onChange:e=>o({nextLabel:e})}),(0,t.jsx)(J,{label:(0,n.__)("Text colour","flexa-block"),value:e.paginationColor||{},onChange:e=>o({paginationColor:e})}),(0,t.jsx)(J,{label:(0,n.__)("Background","flexa-block"),value:e.paginationBackground||{},onChange:e=>o({paginationBackground:e})}),(0,t.jsx)(J,{label:(0,n.__)("Active text colour","flexa-block"),value:e.paginationActiveColor||{},onChange:e=>o({paginationActiveColor:e})}),(0,t.jsx)(J,{label:(0,n.__)("Active background","flexa-block"),value:e.paginationActiveBackground||{},onChange:e=>o({paginationActiveBackground:e})}),(0,t.jsx)(re,{label:(0,n.__)("Corner radius","flexa-block"),value:e.paginationRadius||{},units:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"}],defaultUnit:"px",max:{px:100,em:10,rem:10,"%":100},onChange:e=>o({paginationRadius:e})})]}),"loadmore"===d&&(0,t.jsxs)(t.Fragment,{children:[void 0!==s&&i&&(0,t.jsx)(a.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Items per load","flexa-block"),help:(0,n.__)("How many more items each “Load more” click reveals.","flexa-block"),value:"number"==typeof s?s:6,min:1,max:30,onChange:e=>i(e||1)}),(0,t.jsx)(a.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("Load more text","flexa-block"),value:e.loadMoreText??"",onChange:e=>o({loadMoreText:e})}),(0,t.jsx)(J,{label:(0,n.__)("Text colour","flexa-block"),value:e.loadMoreColor||{},onChange:e=>o({loadMoreColor:e})}),(0,t.jsx)(J,{label:(0,n.__)("Background","flexa-block"),value:e.loadMoreBackground||{},onChange:e=>o({loadMoreBackground:e})})]})]})},we=({layout:e,style:o,advanced:r})=>{const l=[{name:"layout",title:(0,n.__)("Layout","flexa-block")},{name:"style",title:(0,n.__)("Style","flexa-block")},{name:"advanced",title:(0,n.__)("Advanced","flexa-block")}],s={layout:e,style:o,advanced:r};return(0,t.jsx)(a.TabPanel,{className:"flexa-tabs",tabs:l,initialTabName:"layout",children:e=>(0,t.jsx)("div",{className:"flexa-tab__content",children:s[e.name]})})},me=(...e)=>e.filter(Boolean).join(" "),ye={display:"block",background:"#dfe3e8",borderRadius:5,position:"relative",overflow:"hidden"};function Ce({w:e="100%",h:o=12,className:r="",style:l={}}){return(0,t.jsx)("span",{className:me("flexa-skel",r),style:{...ye,width:e,height:o,...l}})}function We({size:e=40,style:o={}}){return(0,t.jsx)("span",{className:"flexa-skel flexa-skel--circle",style:{...ye,borderRadius:"50%",width:e,height:e,...o}})}function Le({w:e="100%",h:o=80,style:r={}}){return(0,t.jsx)("span",{className:"flexa-skel flexa-skel--box",style:{...ye,borderRadius:8,width:e,height:o,...r}})}const Be={display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:"100%",minHeight:350,padding:"48px 32px",border:"1px solid #dfe3e8",borderRadius:10,background:"#fff"},Te={display:"flex",flexDirection:"column",gap:12,alignItems:"center",width:"100%"},Me={display:"flex",alignItems:"center",justifyContent:"center",gap:16,width:"100%"};function Se(){return(0,t.jsxs)("div",{style:Te,children:[(0,t.jsx)(Ce,{w:"70%",h:16}),(0,t.jsx)(Ce,{w:"90%",h:9}),(0,t.jsx)(Ce,{w:"82%",h:9}),(0,t.jsx)(Ce,{w:"55%",h:9})]})}function Ne(){return(0,t.jsx)("div",{style:Me,children:[0,1,2,3].map(e=>(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[(0,t.jsx)(Le,{w:44,h:44}),(0,t.jsx)(Ce,{w:30,h:8})]},e))})}function De(){return(0,t.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:20,width:"100%"},children:[0,1,2].map(e=>(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[(0,t.jsx)(We,{size:34}),(0,t.jsx)(Ce,{w:54,h:20}),(0,t.jsx)(Ce,{w:40,h:8})]},e))})}function Ie(){return(0,t.jsx)("div",{style:Me,children:[0,1,2].map(e=>(0,t.jsx)(We,{size:40},e))})}function ze(){return(0,t.jsx)("div",{style:Me,children:(0,t.jsx)(Le,{w:128,h:42,style:{borderRadius:999}})})}function Ae(){return(0,t.jsxs)("div",{style:Te,children:[(0,t.jsx)(Le,{w:"100%",h:130}),(0,t.jsx)(Ce,{w:"50%",h:9})]})}function He(){return(0,t.jsx)("div",{style:{...Te,gap:10},children:[0,1,2].map(e=>(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,width:"90%"},children:[(0,t.jsx)(Ce,{w:0===e?"62%":"48%",h:12}),(0,t.jsx)(Le,{w:16,h:16,style:{borderRadius:4,flex:"0 0 auto"}})]},e))})}function Pe(){return(0,t.jsxs)("div",{style:{...Te,gap:14},children:[(0,t.jsx)("div",{style:{display:"flex",gap:4},children:[0,1,2,3,4].map(e=>(0,t.jsx)(Le,{w:14,h:14,style:{borderRadius:3}},e))}),(0,t.jsx)(Ce,{w:"66%",h:14}),(0,t.jsx)(Ce,{w:"90%",h:9}),(0,t.jsx)(Ce,{w:"80%",h:9}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginTop:6},children:[(0,t.jsx)(We,{size:44}),(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,t.jsx)(Ce,{w:90,h:9}),(0,t.jsx)(Ce,{w:64,h:8})]})]})]})}function Re(){return(0,t.jsxs)("div",{style:{...Te,gap:9,alignItems:"stretch"},children:[(0,t.jsx)(Ce,{w:"100%",h:9}),(0,t.jsx)(Ce,{w:"100%",h:9}),(0,t.jsx)(Ce,{w:"94%",h:9}),(0,t.jsx)(Ce,{w:"98%",h:9}),(0,t.jsx)(Ce,{w:"60%",h:9})]})}function Oe(){return(0,t.jsx)("div",{style:{...Me,justifyContent:"center"},children:(0,t.jsx)(Ce,{w:"72%",h:4,style:{borderRadius:2}})})}function Fe(){return(0,t.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12,width:"100%"},children:[0,1,2,3].map(e=>(0,t.jsx)(Le,{w:"100%",h:64},e))})}function Ge(){return(0,t.jsxs)("div",{style:{...Te,gap:12},children:[(0,t.jsx)(We,{size:48}),(0,t.jsx)(Ce,{w:"60%",h:14}),(0,t.jsx)(Ce,{w:"90%",h:9}),(0,t.jsx)(Ce,{w:"80%",h:9}),(0,t.jsx)(Le,{w:116,h:38,style:{borderRadius:999,marginTop:6}})]})}function Ve(){return(0,t.jsxs)("div",{style:{position:"relative",width:"100%"},children:[(0,t.jsx)(Le,{w:"100%",h:150}),(0,t.jsx)("span",{style:{position:"absolute",top:0,bottom:0,left:"52%",width:3,background:"#c4cad2"}}),(0,t.jsx)("span",{style:{position:"absolute",top:"50%",left:"52%",width:34,height:34,marginTop:-17,marginLeft:-17,borderRadius:"50%",background:"#c4cad2",border:"3px solid #fff"}})]})}function Ue(){return(0,t.jsxs)("div",{style:{...Te,gap:8,alignItems:"stretch"},children:[(0,t.jsx)(Ce,{w:"34%",h:10}),(0,t.jsx)(Le,{w:"100%",h:40,style:{borderRadius:8}})]})}function Ze(){return(0,t.jsxs)("div",{style:{...Te,gap:8,alignItems:"stretch"},children:[(0,t.jsx)(Ce,{w:"42%",h:10}),(0,t.jsxs)("div",{style:{position:"relative",width:"100%"},children:[(0,t.jsx)(Le,{w:"100%",h:40,style:{borderRadius:8}}),(0,t.jsx)("span",{style:{position:"absolute",top:"50%",right:14,width:9,height:9,marginTop:-6,borderRight:"2px solid #c4cad2",borderBottom:"2px solid #c4cad2",transform:"rotate(45deg)"}})]})]})}function Ee(){return(0,t.jsx)("div",{style:Me,children:(0,t.jsx)(Ce,{w:84,h:14,style:{borderRadius:4}})})}function $e(){return(0,t.jsxs)("div",{style:{width:"100%",border:"2px dashed #dfe3e8",borderRadius:8,padding:18,display:"flex",flexDirection:"column",alignItems:"center",gap:10},children:[(0,t.jsx)(Ce,{w:"40%",h:14}),(0,t.jsx)(Ce,{w:"88%",h:9}),(0,t.jsx)(Ce,{w:"76%",h:9})]})}function qe(e){switch(e){case"countdown":return(0,t.jsx)(Ne,{});case"counter":return(0,t.jsx)(De,{});case"social-icon":return(0,t.jsx)(Ie,{});case"button":return(0,t.jsx)(ze,{});case"image":return(0,t.jsx)(Ae,{});case"faq":return(0,t.jsx)(He,{});case"testimonial":return(0,t.jsx)(Pe,{});case"info-box":return(0,t.jsx)(Ge,{});case"container":return(0,t.jsx)($e,{});case"grid":return(0,t.jsx)(Fe,{});case"separator":return(0,t.jsx)(Oe,{});case"before-after":return(0,t.jsx)(Ve,{});case"filter-search":return(0,t.jsx)(Ue,{});case"filter-taxonomy":return(0,t.jsx)(Ze,{});case"filter-reset":return(0,t.jsx)(Ee,{});case"text":return(0,t.jsx)(Re,{});default:return(0,t.jsx)(Se,{})}}function Xe({kind:e}){return(0,t.jsx)("div",{style:Be,children:qe(e)})}const Je=({attributes:e,setAttributes:o})=>{const{showDescriptionTab:r,showAdditionalTab:l,showReviewsTab:s}=e;return(0,t.jsxs)(a.PanelBody,{title:(0,n.__)("Settings","flexa-block"),initialOpen:!0,children:[(0,t.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,n.__)("Show Description tab","flexa-block"),checked:!1!==r,onChange:e=>o({showDescriptionTab:e})}),(0,t.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,n.__)("Show Additional information tab","flexa-block"),checked:!1!==l,onChange:e=>o({showAdditionalTab:e})}),(0,t.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,n.__)("Show Reviews tab","flexa-block"),checked:!1!==s,onChange:e=>o({showReviewsTab:e})})]})},Ye=({attributes:e,setAttributes:o})=>{const[r]=V(),l=m(e.tabTitleTypography,r);return(0,t.jsxs)(a.PanelBody,{title:(0,n.__)("Tab Title","flexa-block"),initialOpen:!0,children:[(0,t.jsx)(ie,{value:l,onChange:t=>o({tabTitleTypography:y(e.tabTitleTypography,r,t)})}),(0,t.jsx)(J,{label:(0,n.__)("Text","flexa-block"),value:e.tabTitleColor||{},onChange:e=>o({tabTitleColor:e})}),(0,t.jsx)(J,{label:(0,n.__)("Background","flexa-block"),value:e.tabTitleBg||{},onChange:e=>o({tabTitleBg:e})}),(0,t.jsx)(J,{label:(0,n.__)("Active text","flexa-block"),value:e.tabActiveColor||{},onChange:e=>o({tabActiveColor:e})}),(0,t.jsx)(J,{label:(0,n.__)("Active background","flexa-block"),value:e.tabActiveBg||{},onChange:e=>o({tabActiveBg:e})}),(0,t.jsx)(Z,{label:(0,n.__)("Padding","flexa-block"),responsive:!0,value:m(e.tabTitlePadding,r),units:B,onChange:t=>o({tabTitlePadding:{...e.tabTitlePadding,[r]:t}})}),(0,t.jsx)(re,{label:(0,n.__)("Gap","flexa-block"),value:e.tabGap?.[r]||{},units:B,defaultUnit:"px",max:{px:80,em:8,rem:8,"%":100},onChange:t=>o({tabGap:{...e.tabGap,[r]:t}})})]})},Ke=({attributes:e,setAttributes:o})=>{const[r]=V(),l=m(e.contentTypography,r);return(0,t.jsxs)(a.PanelBody,{title:(0,n.__)("Content","flexa-block"),initialOpen:!1,children:[(0,t.jsx)(ie,{value:l,onChange:t=>o({contentTypography:y(e.contentTypography,r,t)})}),(0,t.jsx)(J,{label:(0,n.__)("Text","flexa-block"),value:e.contentColor||{},onChange:e=>o({contentColor:e})}),(0,t.jsx)(Z,{label:(0,n.__)("Padding","flexa-block"),responsive:!0,value:m(e.contentPadding,r),units:B,onChange:t=>o({contentPadding:{...e.contentPadding,[r]:t}})})]})},Qe=({attributes:e,setAttributes:o})=>{const[r]=V(),l=m(e.reviewsTitleTypography,r);return(0,t.jsxs)(a.PanelBody,{title:(0,n.__)("Reviews","flexa-block"),initialOpen:!1,children:[(0,t.jsx)(te,{label:(0,n.__)("Title","flexa-block")}),(0,t.jsx)(J,{label:(0,n.__)("Title colour","flexa-block"),value:e.reviewsTitleColor||{},onChange:e=>o({reviewsTitleColor:e})}),(0,t.jsx)(ie,{value:l,onChange:t=>o({reviewsTitleTypography:y(e.reviewsTitleTypography,r,t)})}),(0,t.jsx)(te,{label:(0,n.__)("Meta","flexa-block")}),(0,t.jsx)(J,{label:(0,n.__)("Author colour","flexa-block"),value:e.reviewAuthorColor||{},onChange:e=>o({reviewAuthorColor:e})}),(0,t.jsx)(J,{label:(0,n.__)("Date colour","flexa-block"),value:e.reviewDateColor||{},onChange:e=>o({reviewDateColor:e})}),(0,t.jsx)(te,{label:(0,n.__)("Stars","flexa-block")}),(0,t.jsx)(J,{label:(0,n.__)("Stars colour","flexa-block"),value:e.reviewStarsColor||{},onChange:e=>o({reviewStarsColor:e})}),(0,t.jsx)(re,{label:(0,n.__)("Stars size","flexa-block"),value:e.reviewStarsSize||{},units:L,defaultUnit:"px",max:{px:40,em:4,rem:4,"%":300},onChange:e=>o({reviewStarsSize:e})}),(0,t.jsx)(te,{label:(0,n.__)("Text","flexa-block")}),(0,t.jsx)(J,{label:(0,n.__)("Text colour","flexa-block"),value:e.reviewTextColor||{},onChange:e=>o({reviewTextColor:e})})]})},eo=({attributes:e,setAttributes:o})=>{const[r]=V(),l=m(e.additionalLabelTypography,r),s=m(e.additionalValueTypography,r);return(0,t.jsxs)(a.PanelBody,{title:(0,n.__)("Additional information","flexa-block"),initialOpen:!1,children:[(0,t.jsx)(te,{label:(0,n.__)("Label","flexa-block")}),(0,t.jsx)(J,{label:(0,n.__)("Label colour","flexa-block"),value:e.additionalLabelColor||{},onChange:e=>o({additionalLabelColor:e})}),(0,t.jsx)(ie,{value:l,onChange:t=>o({additionalLabelTypography:y(e.additionalLabelTypography,r,t)})}),(0,t.jsx)(te,{label:(0,n.__)("Value","flexa-block")}),(0,t.jsx)(J,{label:(0,n.__)("Value colour","flexa-block"),value:e.additionalValueColor||{},onChange:e=>o({additionalValueColor:e})}),(0,t.jsx)(ie,{value:s,onChange:t=>o({additionalValueTypography:y(e.additionalValueTypography,r,t)})}),(0,t.jsx)(te,{label:(0,n.__)("Cells","flexa-block")}),(0,t.jsx)(J,{label:(0,n.__)("Border colour","flexa-block"),value:e.additionalBorderColor||{},onChange:e=>o({additionalBorderColor:e})}),(0,t.jsx)(Z,{label:(0,n.__)("Cell padding","flexa-block"),value:m(e.additionalCellPadding,r),units:B,responsive:!0,onChange:t=>o({additionalCellPadding:{...e.additionalCellPadding,[r]:t}})})]})},oo=(e,o)=>{const{spacing:t,background:r,border:l,boxShadow:n,advancedLayout:s}=e,i=w(t,o),a=w(s,o),c={},x=W(i.padding);x&&(c.padding=x);const d=W(i.margin);d&&(c.margin=d),((e,o={})=>{"classic"===o.type&&o.color?.light?e.backgroundColor=o.color.light:"gradient"===o.type&&o.gradient?.light?e.backgroundImage=o.gradient.light:"image"===o.type&&o.image?.url&&(e.backgroundImage=`url(${o.image.url})`,e.backgroundSize=o.image.size||"cover",e.backgroundPosition=o.image.position||"center center",e.backgroundRepeat=o.image.repeat||"no-repeat",e.backgroundAttachment=o.image.attachment||"scroll")})(c,r),((e,o={})=>{o.style&&(e.borderStyle=o.style);const t=W(o.width);t&&(e.borderWidth=t),o.color?.light&&(e.borderColor=o.color.light);const r=((e={})=>{const o=e.unit||"px";let t=!1;const r=_.map(r=>{const l=e[r]??"";return""!==String(l)&&(t=!0),""===l?"0":C(l,o)});return t?r.join(" "):void 0})(o.radius);r&&(e.borderRadius=r)})(c,w(l,o));const h=((e={})=>{if(!e.enabled)return"";const o=e.color?.light||"rgba(0,0,0,0.1)";return`${e.inset?"inset ":""}${C(e.horizontal)} ${C(e.vertical)} ${C(e.blur)} ${C(e.spread)} ${o}`})(n);return h&&(c.boxShadow=h),a.overflow&&(c.overflow=a.overflow),c},to=l["product-detail"];(0,e.registerBlockType)(o.UU,{icon:to,edit:function({attributes:e,setAttributes:o,clientId:r}){const{className:l,responsiveVisibility:a,showDescriptionTab:c,showAdditionalTab:x,showReviewsTab:d}=e,h=e.blockId,[u]=V();((e,o,t)=>{(0,s.useEffect)(()=>{const r=e.replace(/[^a-z0-9]/gi,"").slice(0,8);o&&o===r||t({blockId:r})},[o,e,t])})(r,h,o);const[g,k]=(0,s.useState)(0),b=(0,i.useBlockProps)({className:D("flexa-product-detail",h&&`flexa-product-detail-${h}`,l,...I(a)),style:oo(e,u)});if(e.isExamplePreview)return(0,t.jsx)("div",{...b,children:(0,t.jsx)(Xe,{kind:"text"})});const f=[{key:"description",enabled:!1!==c,label:(0,n.__)("Description","flexa-block"),content:(0,n.__)("The product description shows here on the front end. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.","flexa-block")},{key:"additional",enabled:!1!==x,label:(0,n.__)("Additional information","flexa-block"),content:(0,n.__)("A table of product attributes (weight, dimensions, variations…) shows here on the front end.","flexa-block")},{key:"reviews",enabled:!1!==d,label:(0,n.__)("Reviews","flexa-block"),content:(0,n.__)("A summary of the product’s average rating and review count shows here on the front end.","flexa-block")}].filter(e=>e.enabled),p=Math.min(Math.max(g,0),Math.max(f.length-1,0)),j=((e,o)=>{const t={},r=w(e.tabGap,o);return r.value&&(t.columnGap=C(r.value,r.unit||"px")),t})(e,u),v=((e,o)=>{const t={};z(t,w(e.tabTitleTypography,o));const r=W(m(e.tabTitlePadding,o));return r&&(t.padding=r),e.tabTitleColor?.light&&(t.color=e.tabTitleColor.light),e.tabTitleBg?.light&&(t.backgroundColor=e.tabTitleBg.light),t})(e,u),_=(e=>{const o={};return e.tabActiveColor?.light&&(o.color=e.tabActiveColor.light),e.tabActiveBg?.light&&(o.backgroundColor=e.tabActiveBg.light),o})(e),y=((e,o)=>{const t={};z(t,w(e.contentTypography,o)),e.contentColor?.light&&(t.color=e.contentColor.light);const r=W(m(e.contentPadding,o));return r&&(t.padding=r),t})(e,u);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.InspectorControls,{children:(0,t.jsx)("div",{className:"flexa-inspector flexa-product-detail-inspector",children:(0,t.jsx)(we,{layout:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Je,{attributes:e,setAttributes:o}),(0,t.jsx)(ae,{attributes:e,setAttributes:o})]}),style:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Ye,{attributes:e,setAttributes:o}),(0,t.jsx)(Ke,{attributes:e,setAttributes:o}),(0,t.jsx)(eo,{attributes:e,setAttributes:o}),(0,t.jsx)(Qe,{attributes:e,setAttributes:o}),(0,t.jsx)(_e,{attributes:e,setAttributes:o,perPage:e.reviewsPerPage??5,onPerPage:e=>o({reviewsPerPage:e}),perLoad:e.reviewsLoadMore??5,onPerLoad:e=>o({reviewsLoadMore:e}),typeHelp:(0,n.__)("How the product Reviews tab list is paginated.","flexa-block")}),(0,t.jsx)(ce,{attributes:e,setAttributes:o}),(0,t.jsx)(he,{attributes:e,setAttributes:o}),(0,t.jsx)(ge,{attributes:e,setAttributes:o})]}),advanced:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ke,{attributes:e,setAttributes:o}),(0,t.jsx)(be,{attributes:e,setAttributes:o}),(0,t.jsx)(je,{attributes:e,setAttributes:o})]})})})}),(0,t.jsx)("div",{...b,children:f.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("ul",{className:"flexa-product-detail__nav",role:"tablist",style:j,children:f.map((e,o)=>{const r=o===p;return(0,t.jsx)("li",{children:(0,t.jsx)("button",{type:"button",className:D("flexa-product-detail__tab",r&&"is-active"),role:"tab","aria-selected":r,onClick:()=>k(o),style:r?{...v,..._}:v,children:e.label})},e.key)})}),(0,t.jsx)("div",{className:"flexa-product-detail__panel is-active",children:(0,t.jsx)("div",{className:"flexa-product-detail__content",style:y,children:(0,t.jsx)("p",{children:f[p]?.content})})})]}):(0,t.jsx)("p",{children:(0,n.__)("Enable at least one tab to show the product details.","flexa-block")})})]})},save:()=>null})}};const o={};function t(r){const l=o[r];if(void 0!==l)return l.exports;const n=o[r]={exports:{}};return e[r](n,n.exports,t),n.exports}t.m=e,(()=>{const e=[];t.O=(o,r,l,n)=>{if(r){n=n||0;for(var s=e.length;s>0&&e[s-1][2]>n;s--)e[s]=e[s-1];return void(e[s]=[r,l,n])}let i=1/0;for(s=0;s=n)&&Object.keys(t.O).every(e=>t.O[e](r[a]))?r.splice(a--,1):(c=!1,nObject.hasOwn(e,o),(()=>{const e={8864:0,4296:0};t.O.j=o=>0===e[o];const o=(o,r)=>{let[l,n,s]=r;var i,a,c=0;if(l.some(o=>0!==e[o])){for(i in n)t.o(n,i)&&(t.m[i]=n[i]);if(s)var x=s(t)}for(o&&o(r);ct(9134));r=t.O(r)})();import { useStorage } from '@ea11y/hooks'; import { mixpanelEvents, mixpanelService } from '@ea11y-apps/global/services'; import { createContext, useContext, useEffect, useState, } from '@wordpress/element'; import APISettings from '../api'; const AnalyticsContext = createContext(null); export const AnalyticsContextProvider = ({ children }) => { const { save } = useStorage(); const [isAnalyticsEnabled, setIsAnalyticsEnabled] = useState(false); const [isProVersion, setIsProVersion] = useState(false); const [loading, setLoading] = useState(false); const [period, setPeriod] = useState(30); const [stats, setStats] = useState({ dates: [], elements: [], }); const [showConfirmPopup, setShowConfirmPopup] = useState(false); /** * Get initial logs list */ useEffect(() => { if (isProVersion) { setLoading(true); void APISettings.getStatistic({ period }).then((data) => { setStats(data); setLoading(false); }); } }, [period, isAnalyticsEnabled, isProVersion]); const updateIsAnalyticsEnabled = async () => { await save({ ea11y_analytics_enabled: !isAnalyticsEnabled, }); setIsAnalyticsEnabled(!isAnalyticsEnabled); setPeriod(30); }; const handleAnalyticsToggle = () => { if (isAnalyticsEnabled) { updateIsAnalyticsEnabled(); } else { setShowConfirmPopup(true); } mixpanelService.sendEvent(mixpanelEvents.toggleClicked, { state: isAnalyticsEnabled ? 'off' : 'on', type: 'Enable analytics', }); }; return ( {children} ); }; export const useAnalyticsContext = () => { return useContext(AnalyticsContext); }; https://nirbuild.co.il/post-sitemap.xml 2026-06-16T06:59:11+00:00 https://nirbuild.co.il/page-sitemap.xml 2026-08-26T08:36:22+00:00 https://nirbuild.co.il/category-sitemap.xml 2026-06-16T06:59:11+00:00 https://nirbuild.co.il/author-sitemap.xml 2022-12-29T11:15:26+00:00