'+a+'
',r+='
',r+='
"+astraTypo[l[e]]+"");t.html(s)},generateFieldHtml:function(e,t){let c="",s=[];return _.each(e,(function(e,t){if(null!=e){let t=wp.customize.control(e.name)?wp.customize.control(e.name).setting.get():"",l=e.control,a="customize-control-"+l+"-content",r=wp.template(a),o=t||e.default,i="",n="";e.value=o,e.label=e.title,_.each(e.data_attrs,(function(e,t){i+=" data-"+t+" ='"+e+"'"})),_.each(e.input_attrs,(function(e,t){n+=t+'="'+e+'" '})),e.dataAttrs=i,e.inputAttrs=n,s.push({key:l,value:o,name:e.name});let h=e.name.replace("[","-");h=h.replace("]","");let v="";e?.divider?.ast_class&&(v=`${e.divider.ast_class} `),c+="
",jQuery("#tmpl-"+a).length&&(c+=r(e)),c+=""}})),{controls:s,html:c}},renderReactControl:function(e,c){const s={"ast-background":ie,"ast-responsive-background":he,"ast-responsive-color":me,"ast-color":de,"ast-border":W,"ast-responsive-slider":X,"ast-slider":te,"ast-responsive-spacing":K,"ast-select":ue,"ast-divider":R,"ast-selector":Ce,"ast-toggle":Pa,"ast-text-input":z,"ast-list-icons":er,"ast-description":p,"ast-number":za};astra.customizer.is_pro&&(s["ast-box-shadow"]=fe),_.each(e,(function(e,l){if(null!=e&&"ast-font"!==e.control){let l=e.name.replace("[","-");l=l.replace("]","");let a="#customize-control-"+l,r=wp.customize.control("astra-settings["+e.name+"]");r=c.getFinalControlObject(e,r);const o=s[e.control];ReactDOM.render((0,t.createElement)(o,{control:r,customizer:wp.customize}),jQuery(a)[0])}}))},getFinalControlObject:function(e,t){return void 0!==e.choices&&void 0===t.params.choices&&(t.params.choices=e.choices),void 0!==e.inputAttrs&&void 0===t.params.inputAttrs&&(t.params.inputAttrs=e.inputAttrs),void 0!==e.input_attrs&&void 0===t.params.input_attrs&&(t.params.input_attrs=e.input_attrs),void 0!==e.link&&void 0===t.params.link&&(t.params.link=e.link),void 0!==e.qty_selector&&void 0===t.params.qty_selector&&(t.params.qty_selector=e.qty_selector),void 0!==e.units&&void 0===t.params.units&&(t.params.units=e.units),void 0!==e.linked_choices&&void 0===t.params.linked_choices&&(t.params.linked_choices=e.linked_choices),void 0===e.title||void 0!==t.params.label&&""!==t.params.label&&null!==t.params.label||(t.params.label=e.title),void 0===e.responsive||void 0!==t.params.responsive&&""!==t.params.responsive&&null!==t.params.responsive||(t.params.responsive=e.responsive),void 0===e.renderAs||void 0!==t.params.renderAs&&""!==t.params.renderAs&&null!==t.params.renderAs||(t.params.renderAs=e.renderAs),t},updateValue:function(){let e=this,t=[];if(void 0!==e.params.consider_hidden&&e.params.consider_hidden){let t={};wp.customize.control(e.params.hidden_dataset).setting.set(t),this.sortableContainer.find(".ast-sortable-item").each((function(){jQuery(this).hasClass("invisible")?t[jQuery(this).data("value")]=!1:t[jQuery(this).data("value")]=!0})),wp.customize.control(e.params.hidden_dataset).setting.set(t)}this.sortableContainer.find(".ast-sortable-item:not(.invisible)").each((function(){t.push(jQuery(this).data("value"))})),t=[...new Set(t)],this.sortableContainer.find(".ast-sortable-item[data-clone_tracker]").each((function(){let t=jQuery(this).data("clone_tracker"),c=jQuery(this).data("index");if(""!=t){let s=e.sortableContainer.find('.ast-sortable-item:not(.invisible)[data-index="'+c+'"]');wp.customize.control(t).setting.set(s.length)}})),e.setting.set(t)}}),cr=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(W,{control:this}),this.container[0])}}),{Dashicon:sr}=wp.components,lr=e=>{const[c,s]=(0,t.useState)(!1),l=()=>{const{linked:t,link_type:c}=e.control.params;switch(c){case"section":wp.customize.section(t).expand();break;case"control":wp.customize.control(t).focus(),setTimeout((()=>{wp.customize.control(t).focus()}),500)}},{linked:a,link_text:r,link_type:o,is_button_link:i,is_toggle:n}=e.control.params;let h=null;return h=a&&r&&""===i?(0,t.createElement)("a",{href:"#",onClick:()=>{l()},className:"customizer-link","data-customizer-linked":a,"data-ast-customizer-link-type":o,dangerouslySetInnerHTML:{__html:r}}):(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"ast-builder-elements-section"},(0,t.createElement)("div",{className:"ahfb-builder-item-start"},n?(0,t.createElement)("div",{className:"components-button ahfb-builder-item","data-customizer-linked":a,"data-ast-customizer-link-type":o},r,(0,t.createElement)(C.ToggleControl,{checked:c,onChange:()=>{s(!c)}}),c?(0,t.createElement)("span",{onClick:e=>{e.preventDefault(),l()},className:"ahfb-builder-item-icon"},(0,t.createElement)(sr,{icon:"arrow-right-alt2"})):(0,t.createElement)(t.Fragment,null)):(0,t.createElement)("button",{onClick:e=>{e.preventDefault(),l()},className:"components-button ahfb-builder-item","data-customizer-linked":a,"data-ast-customizer-link-type":o},r,(0,t.createElement)("span",{className:"ahfb-builder-item-icon"},(0,t.createElement)(sr,{icon:"arrow-right-alt2"})))))),(0,t.createElement)(t.Fragment,null,h)};lr.propTypes={control:l().object.isRequired};const ar=React.memo(lr),rr=wp.customize.Control.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(ar,{control:this}),this.container[0])}}),{Dashicon:or}=wp.components,ir=e=>{const[c,s]=(0,t.useState)(e.control.setting.get()),{linked:l,linkText:a}=e.control.params;return(0,t.createElement)("div",{className:"ast-section-toggle "+(c?"active":""),"data-customizer-linked":l},(0,t.createElement)("label",{onClick:t=>{t.preventDefault(),(()=>{const{linked:t}=e.control.params;c&&wp.customize.section(t).expand()})()}}," ",a," "),(0,t.createElement)(A,{checked:c,onChange:()=>{s(!c),e.control.setting.set(!c)}}),c?(0,t.createElement)("span",{onClick:t=>{t.preventDefault(),(()=>{const{linked:t}=e.control.params;c||(s(!c),e.control.setting.set(!c)),wp.customize.section(t).expand()})()},className:"ast-section-toggle-icon"},(0,t.createElement)(or,{icon:"arrow-right-alt2"})):(0,t.createElement)(t.Fragment,null))};ir.propTypes={control:l().object.isRequired};const nr=React.memo(ir),hr=wp.customize.Control.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(nr,{control:this}),this.container[0])}}),vr=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(X,{control:this}),this.container[0])},ready:function(){xa(this)}}),dr=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(te,{control:this}),this.container[0])}}),pr=e=>{const[c,s]=(0,g.useState)(e.control.setting.get()),{input_attrs:l=null}=e.control.params,{label:a,description:r,id:o,alt_layout:i,choices:n,inputAttrs:h,choices_titles:v,choices_upgrade:d,link:p,labelStyle:m}=e.control.params;let u,w=null,z=null,f=[];const C=i?"ast-divide-four":"modern-layout";return a&&(w=(0,t.createElement)("span",{className:"customize-control-title"},a)),r&&(z=(0,t.createElement)("span",{className:"description customize-control-description"},r)),h&&h.split(" ").forEach((e=>{let t=e.split("=");void 0!==t[1]&&(f[t[0]]=t[1].replace(/"/g,""))})),p&&p.split(" ").forEach((e=>{let t=e.split("=");void 0!==t[1]&&(f[t[0]]=t[1].replace(/"/g,""))})),u=Object.entries(n).map((([a,r])=>{let i=c===a;return d[a]?(0,t.createElement)("a",{href:window.AstraBuilderCustomizerData.upgradeUrl,target:"_blank",key:a,className:"ast-upgrade-trigger"},(0,t.createElement)("label",{className:"ast-radio-img-svg "+(d[a]?"ast-pro-option":"")},(0,t.createElement)("span",{dangerouslySetInnerHTML:{__html:n[a]}}),(0,t.createElement)("span",{className:"image-clickable","data-title":d[a]?(0,b.__)("Upgrade to unlock","astra"):v[a]}))):(0,t.createElement)(t.Fragment,{key:a},(0,t.createElement)("input",(0,L.A)({},f,{className:"image-select",type:"radio",value:a,name:`_customize-radio-${o}`,id:o+a,checked:i,onChange:()=>(t=>{if(s(t),e.control.setting.set(t),null!==l&&l.hasOwnProperty("dependents")&&l.dependents){let e=new CustomEvent("AstraToggleSubControls",{detail:{controlValue:t,dependents:l.dependents}});document.dispatchEvent(e)}})(a)})),(0,t.createElement)("label",(0,L.A)({htmlFor:o+a},m,{className:"ast-radio-img-svg "+(d[a]?"ast-pro-option":"")}),(0,t.createElement)("span",{dangerouslySetInnerHTML:{__html:n[a]}}),(0,t.createElement)("span",{className:"image-clickable","data-title":d[a]?(0,b.__)("Upgrade to unlock","astra"):v[a]})))})),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("label",{className:"customizer-text"},w,z),(0,t.createElement)("div",{id:`input_${o}`,className:`image ${C}`},u))};pr.propTypes={control:l().object.isRequired};const mr=React.memo(pr),gr=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(mr,{control:this}),this.container[0])}}),ur=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(K,{control:this}),this.container[0])},ready:function(){ya(this)}}),wr=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(ue,{control:this}),this.container[0])}}),zr=e=>{const{description:c,label:s,connect:l,variant:a,name:r,link:o}=e.control.params,[i,n]=(0,g.useState)({value:e.control.setting.get()});document.addEventListener("AstRemoteUpdateState",(function(t){"typography"===t.detail&&n({value:e.control.setting.get()})}));let h=null,v=null,d=null,p=[],m=(0,b.__)("Inherit","astra");return s&&(h=(0,t.createElement)("span",{className:"customize-control-title"},s)),c&&(v=(0,t.createElement)("span",{className:"description customize-control-description"},c)),void 0!==o&&o.split(" ").forEach((e=>{let t=e.split("=");void 0!==t[1]&&(p[t[0]]=t[1].replace(/"/g,""))})),l&&a?d=(0,t.createElement)("select",(0,L.A)({},p,{"data-connected-control":l,"data-connected-variant":a,"data-value":i.value,"data-name":r,"data-inherit":m})):l?d=(0,t.createElement)("select",(0,L.A)({},p,{"data-connected-control":l,"data-value":i.value,"data-name":r,"data-inherit":m})):a&&(d=(0,t.createElement)("select",(0,L.A)({},p,{"data-connected-variant":a,"data-value":i.value,"data-name":r,"data-inherit":m}))),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("label",null,h,v),d)};zr.propTypes={control:l().object.isRequired};const fr=zr,br=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(fr,{control:this}),this.container[0])},ready:function(){AstTypography.init()}}),Cr=e=>{const{description:c,label:s,connect:l,variant:a,name:r,link:o,ast_all_font_weight:i}=e.control.params;let n=e.control.setting.get(),h=(0,t.createElement)("span",null,s||(0,b.__)("Background","astra")),v=c?(0,t.createElement)("span",{className:"description customize-control-description"},c):null,d=null,p=[],m=(0,b.__)("Inherit","astra"),g=null;n=void 0===n||""===n?[]:n,o&&o.split(" ").forEach(((e,t)=>{let c=e.split("=");c[1]&&(p[c[0]]=c[1].replace(/"/g,""))}));let u=Object.entries(i).map((e=>(0,t.createElement)("option",{key:e[0],value:e[0]},e[1])));return g="normal"===n?(0,t.createElement)("option",{key:"normal",value:"normal"},m):(0,t.createElement)("option",{key:"inherit",value:"inherit"},m),l&&a?d=(0,t.createElement)("select",(0,L.A)({},p,{"data-connected-control":l,"data-connected-variant":a,"data-value":n,"data-name":r,"data-inherit":m}),g,u):a?d=(0,t.createElement)("select",(0,L.A)({},p,{"data-connected-variant":a,"data-value":n,"data-name":r,"data-inherit":m}),g,u):l&&(d=(0,t.createElement)("select",(0,L.A)({},p,{"data-connected-control":l,"data-value":n,"data-name":r,"data-inherit":m}),g,u)),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("label",{className:"customize-control-title"},h,v),d)};Cr.propTypes={control:l().object.isRequired};const Mr=React.memo(Cr),xr=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(Mr,{control:this}),this.container[0])}}),{__:yr}=wp.i18n,Hr=e=>{const c=e.control.params.section.replace("section-",""),s=window.AstraBuilderCustomizerData.upgradeUrl[c]||window.AstraBuilderCustomizerData.upgradeUrl?.default,{generalTab:l,designTab:a}=(()=>{let t=yr("General","astra"),c=yr("Design","astra");return"section-header-builder-layout"===e.control.params.section||"section-footer-builder-layout"===e.control.params.section?t=yr("Elements","astra"):"section-buttons"===e.control.params.section&&(t=yr("Primary","astra"),c=yr("Secondary","astra")),{generalTab:t,designTab:c}})();return"section-footer-builder"===e.control.params.section||"section-header-builder"===e.control.params.section?(0,t.createElement)(u().Fragment,null,(0,t.createElement)("p",{className:"ast-customize-control-title"},astra.customizer.show_upgrade_notice&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("span",{style:{marginRight:"10px"}}," ",(0,t.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}," ",(0,t.createElement)("rect",{width:"18",height:"18",rx:"9",fill:"white"})," ",(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.74702 5.06643C9.46123 4.49128 9.17545 3.91614 8.88188 3.34521C8.41365 4.33365 7.94539 5.32208 7.47713 6.31053C6.31797 8.75734 5.15879 11.2042 4 13.6513C4.27019 13.652 4.54043 13.6517 4.81069 13.6513C5.23742 13.6508 5.66419 13.6502 6.09081 13.654C6.81384 12.2046 7.53195 10.7526 8.25008 9.30066C8.84855 8.09064 9.44702 6.88061 10.0484 5.67201C9.94768 5.47027 9.84735 5.26835 9.74702 5.06643ZM12.9929 11.5845C12.3465 10.257 11.7 8.92955 11.0518 7.60294C10.368 9.02538 9.68354 10.4478 8.99749 11.8691C9.27982 11.8689 9.56208 11.869 9.84432 11.869C10.2206 11.8691 10.597 11.8692 10.9734 11.8687C11.0785 12.106 11.1813 12.3442 11.2841 12.5825C11.4387 12.941 11.5934 13.2995 11.7559 13.6544C12.21 13.6502 12.6641 13.6508 13.1182 13.6514C13.412 13.6518 13.7059 13.6522 13.9997 13.6513C13.6639 12.9624 13.3284 12.2734 12.9929 11.5845Z",fill:"#0284C7"})," ")," "),(0,t.createElement)("span",{style:{verticalAlign:"super"}}," ",yr("Upgrade to Astra Pro for even more header and footer options, as well as several other wonderful features!","astra")," ")," ",(0,t.createElement)("a",{className:"ast-builder-upgrade-link",href:s,target:"_blank"},yr("Upgrade Now","astra")))),(0,t.createElement)("p",{className:"ast-customize-control-description"},(0,t.createElement)("span",{className:"button button-secondary ahfb-builder-section-shortcut "+e.control.params.section,"data-section":e.control.params.section,onClick:()=>(e=>{e.customizer.section.each((function(e){if(e.expanded())return e.collapse(),!1}))})(e)},(0,t.createElement)("span",{className:"dashicons dashicons-admin-generic"}," ")),(0,t.createElement)("span",{className:"button button-secondary ahfb-builder-hide-button ahfb-builder-tab-toggle"},(0,t.createElement)("span",{className:"ast-builder-hide-action"}," ",(0,t.createElement)("span",{className:"dashicons dashicons-arrow-down-alt2"})," ",yr("Hide Builder","astra")," "),(0,t.createElement)("span",{className:"ast-builder-show-action"}," ",(0,t.createElement)("span",{className:"dashicons dashicons-arrow-up-alt2"})," ",yr("Show Builder","astra")," ")))):(0,t.createElement)(u().Fragment,null,(0,t.createElement)("div",{className:"ahfb-compontent-tabs nav-tab-wrapper wp-clearfix"},(0,t.createElement)("a",{href:"#",className:"nav-tab ahfb-general-tab ahfb-compontent-tabs-button "+("general"===e.tab?"nav-tab-active":""),"data-tab":"general"},(0,t.createElement)("span",null,l)),(0,t.createElement)("a",{href:"#",className:"nav-tab ahfb-design-tab ahfb-compontent-tabs-button "+("design"===e.tab?"nav-tab-active":""),"data-tab":"design"},(0,t.createElement)("span",null,a))))};u().memo(Hr);const Vr=wp.customize.astraControl.extend({renderContent:function(){dc().render((0,t.createElement)(Hr,{control:this,tab:wp.customize.state("astra-customizer-tab").get(),customizer:wp.customize}),this.container[0])}}),{Dashicon:Lr,Button:Br}=wp.components,{__:Er}=wp.i18n,Ar=e=>{let c=AstraBuilderCustomizerData&&AstraBuilderCustomizerData.choices&&AstraBuilderCustomizerData.choices[e.controlParams.group]?AstraBuilderCustomizerData.choices[e.controlParams.group]:[];const s=void 0!==c[e.item].delete&&c[e.item].delete?"item-has-controls":" ";return(0,t.createElement)("div",{className:`ahfb-builder-item ${s} `,"data-id":e.item,"data-section":void 0!==c[e.item]&&void 0!==c[e.item].section?c[e.item].section:"",key:e.item,onClick:()=>{e.focusItem(void 0!==c[e.item]&&void 0!==c[e.item].section?c[e.item].section:"")}},(0,t.createElement)("span",{className:"ahfb-builder-item-text"},void 0!==c[e.item]&&void 0!==c[e.item].name?c[e.item].name:""),astra.customizer.is_pro&&(0,t.createElement)("div",{className:"ahfb-slide-up"},c[e.item].clone&&(0,t.createElement)("span",{"data-tooltip":Er("Clone element","astra"),onClick:t=>{t.stopPropagation(),sessionStorage.getItem("astra-builder-clone-in-progress")||e.cloneItem(e.item)},className:"dashicons dashicons-admin-page"})),astra.customizer.is_block_widget&&e.item.includes("widget")&&(0,t.createElement)(Br,{className:"ahfb-builder-item-icon ahfb-setting-icon",onClick:t=>{t.stopPropagation(),e.focusItem(void 0!==c[e.item]&&void 0!==c[e.item].section?c[e.item].section:"")}},(0,t.createElement)(Lr,{"data-tooltip":Er("General","astra"),icon:"dashicon dashicons dashicons-admin-generic"})),astra.customizer.is_block_widget&&e.item.includes("widget")&&(0,t.createElement)(Br,{className:"ahfb-builder-item-icon ahfb-setting-icon",onClick:t=>{t.stopPropagation(),e.focusItem(void 0!==c[e.item]&&void 0!==c[e.item].section?"astra-"+c[e.item].section:"")}},(0,t.createElement)(Lr,{"data-tooltip":Er("Design","astra"),icon:"dashicon dashicons dashicons-admin-settings"})),(0,t.createElement)(Br,{className:"ahfb-builder-item-icon",onClick:t=>{t.stopPropagation(),e.removeItem(e.item)}},(0,t.createElement)(Lr,{"data-tooltip":Er("Remove element from grid","astra"),icon:"no-alt"})))},kr={core:!1,base:!1};function Sr({css:e,id:t="react-tooltip-base-styles",type:c="base",ref:s}){var l,a;if(!e||"undefined"==typeof document||kr[c])return;if("core"===c&&"undefined"!=typeof process&&(null===(l=null===process||void 0===process?void 0:process.env)||void 0===l?void 0:l.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==c&&"undefined"!=typeof process&&(null===(a=null===process||void 0===process?void 0:process.env)||void 0===a?void 0:a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===c&&(t="react-tooltip-core-styles"),s||(s={});const{insertAt:r}=s;if(document.getElementById(t))return;const o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.id=t,i.type="text/css","top"===r&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),kr[c]=!0}const _r=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:c=null,place:s="top",offset:l=10,strategy:a="absolute",middlewares:r=[us(Number(l)),zs({fallbackAxisSideDirection:"start"}),ws({padding:5})],border:o})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:s};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:s};const i=r;return c?(i.push((e=>({name:"arrow",options:e,async fn(t){const{x:c,y:s,placement:l,rects:a,platform:r,elements:o,middlewareData:i}=t,{element:n,padding:h=0}=Cc(e,t)||{};if(null==n)return{};const v=Ac(h),d={x:c,y:s},p=Lc(l),m=Hc(p),g=await r.getDimensions(n),u="y"===p,w=u?"top":"left",z=u?"bottom":"right",f=u?"clientHeight":"clientWidth",b=a.reference[m]+a.reference[p]-d[p]-a.floating[m],C=d[p]-a.reference[p],M=await(null==r.getOffsetParent?void 0:r.getOffsetParent(n));let x=M?M[f]:0;x&&await(null==r.isElement?void 0:r.isElement(M))||(x=o.floating[f]||a.floating[m]);const y=b/2-C/2,H=x/2-g[m]/2-1,V=pc(v[w],H),L=pc(v[z],H),B=V,E=x-g[m]-L,A=x/2-g[m]/2+y,k=bc(B,A,E),S=!i.arrow&&null!=xc(l)&&A!==k&&a.reference[m]/2-(A
{var l,a;const r={left:`${e}px`,top:`${t}px`,border:o},{x:i,y:n}=null!==(l=s.arrow)&&void 0!==l?l:{x:0,y:0},h=null!==(a={top:"bottom",right:"left",bottom:"top",left:"right"}[c.split("-")[0]])&&void 0!==a?a:"bottom",v=o&&{borderBottom:o,borderRight:o};let d=0;if(o){const e=`${o}`.match(/(\d+)px/);d=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:r,tooltipArrowStyles:{left:null!=i?`${i}px`:"",top:null!=n?`${n}px`:"",right:"",bottom:"",...v,[h]:`-${4+d}px`},place:c}}))):fs(e,t,{placement:"bottom",strategy:a,middleware:i}).then((({x:e,y:t,placement:c})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:c})))},Dr=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Zr=(e,t,c)=>{let s=null;const l=function(...l){const a=()=>{s=null,c||e.apply(this,l)};c&&!s&&(e.apply(this,l),s=setTimeout(a,t)),c||(s&&clearTimeout(s),s=setTimeout(a,t))};return l.cancel=()=>{s&&(clearTimeout(s),s=null)},l},Or=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,Nr=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,c)=>Nr(e,t[c])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!Or(e)||!Or(t))return e===t;const c=Object.keys(e),s=Object.keys(t);return c.length===s.length&&c.every((c=>Nr(e[c],t[c])))},Tr=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const c=t.getPropertyValue(e);return"auto"===c||"scroll"===c}))},Pr=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Tr(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},jr="undefined"!=typeof window?g.useLayoutEffect:g.useEffect,qr=e=>{e.current&&(clearTimeout(e.current),e.current=null)},Rr={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Ir=(0,g.createContext)({getTooltipData:()=>Rr});function Fr(e="DEFAULT_TOOLTIP_ID"){return(0,g.useContext)(Ir).getTooltipData(e)}var Ur={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Qr={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Gr=({forwardRef:e,id:t,className:c,classNameArrow:s,variant:l="dark",anchorId:a,anchorSelect:r,place:o="top",offset:i=10,events:n=["hover"],openOnClick:h=!1,positionStrategy:v="absolute",middlewares:d,wrapper:p,delayShow:m=0,delayHide:u=0,float:w=!1,hidden:z=!1,noArrow:f=!1,clickable:b=!1,closeOnEsc:C=!1,closeOnScroll:M=!1,closeOnResize:x=!1,openEvents:H,closeEvents:V,globalCloseEvents:L,imperativeModeOnly:B,style:E,position:A,afterShow:k,afterHide:S,disableTooltip:_,content:D,contentWrapperRef:Z,isOpen:O,defaultIsOpen:N=!1,setIsOpen:T,activeAnchor:P,setActiveAnchor:j,border:q,opacity:R,arrowColor:I,role:F="tooltip"})=>{var U;const Q=(0,g.useRef)(null),G=(0,g.useRef)(null),$=(0,g.useRef)(null),W=(0,g.useRef)(null),Y=(0,g.useRef)(null),[X,J]=(0,g.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:o}),[K,ee]=(0,g.useState)(!1),[te,ce]=(0,g.useState)(!1),[se,le]=(0,g.useState)(null),ae=(0,g.useRef)(!1),re=(0,g.useRef)(null),{anchorRefs:oe,setActiveAnchor:ie}=Fr(t),ne=(0,g.useRef)(!1),[he,ve]=(0,g.useState)([]),de=(0,g.useRef)(!1),pe=h||n.includes("click"),me=pe||(null==H?void 0:H.click)||(null==H?void 0:H.dblclick)||(null==H?void 0:H.mousedown),ge=H?{...H}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!H&&pe&&Object.assign(ge,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const ue=V?{...V}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!V&&pe&&Object.assign(ue,{mouseleave:!1,blur:!1,mouseout:!1});const we=L?{...L}:{escape:C||!1,scroll:M||!1,resize:x||!1,clickOutsideAnchor:me||!1};B&&(Object.assign(ge,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(ue,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(we,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),jr((()=>(de.current=!0,()=>{de.current=!1})),[]);const ze=e=>{de.current&&(e&&ce(!0),setTimeout((()=>{de.current&&(null==T||T(e),void 0===O&&ee(e))}),10))};(0,g.useEffect)((()=>{if(void 0===O)return()=>null;O&&ce(!0);const e=setTimeout((()=>{ee(O)}),10);return()=>{clearTimeout(e)}}),[O]),(0,g.useEffect)((()=>{if(K!==ae.current)if(qr(Y),ae.current=K,K)null==k||k();else{const e=(()=>{const e=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!e)return 0;const[,t,c]=e;return Number(t)*("ms"===c?1:1e3)})();Y.current=setTimeout((()=>{ce(!1),le(null),null==S||S()}),e+25)}}),[K]);const fe=e=>{J((t=>Nr(t,e)?t:e))},be=(e=m)=>{qr($),te?ze(!0):$.current=setTimeout((()=>{ze(!0)}),e)},Ce=(e=u)=>{qr(W),W.current=setTimeout((()=>{ne.current||ze(!1)}),e)},Me=e=>{var t;if(!e)return;const c=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==c?void 0:c.isConnected))return j(null),void ie({current:null});m?be():ze(!0),j(c),ie({current:c}),qr(W)},xe=()=>{b?Ce(u||100):u?Ce():ze(!1),qr($)},ye=({x:e,y:t})=>{var c;const s={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};_r({place:null!==(c=null==se?void 0:se.place)&&void 0!==c?c:o,offset:i,elementReference:s,tooltipReference:Q.current,tooltipArrowReference:G.current,strategy:v,middlewares:d,border:q}).then((e=>{fe(e)}))},He=e=>{if(!e)return;const t=e,c={x:t.clientX,y:t.clientY};ye(c),re.current=c},Ve=e=>{var t;if(!K)return;const c=e.target;c.isConnected&&((null===(t=Q.current)||void 0===t?void 0:t.contains(c))||[document.querySelector(`[id='${a}']`),...he].some((e=>null==e?void 0:e.contains(c)))||(ze(!1),qr($)))},Le=Zr(Me,50,!0),Be=Zr(xe,50,!0),Ee=e=>{Be.cancel(),Le(e)},Ae=()=>{Le.cancel(),Be()},ke=(0,g.useCallback)((()=>{var e,t;const c=null!==(e=null==se?void 0:se.position)&&void 0!==e?e:A;c?ye(c):w?re.current&&ye(re.current):(null==P?void 0:P.isConnected)&&_r({place:null!==(t=null==se?void 0:se.place)&&void 0!==t?t:o,offset:i,elementReference:P,tooltipReference:Q.current,tooltipArrowReference:G.current,strategy:v,middlewares:d,border:q}).then((e=>{de.current&&fe(e)}))}),[K,P,D,E,o,null==se?void 0:se.place,i,v,A,null==se?void 0:se.position,w]);(0,g.useEffect)((()=>{var e,t;const c=new Set(oe);he.forEach((e=>{(null==_?void 0:_(e))||c.add({current:e})}));const s=document.querySelector(`[id='${a}']`);s&&!(null==_?void 0:_(s))&&c.add({current:s});const l=()=>{ze(!1)},r=Pr(P),o=Pr(Q.current);we.scroll&&(window.addEventListener("scroll",l),null==r||r.addEventListener("scroll",l),null==o||o.addEventListener("scroll",l));let i=null;we.resize?window.addEventListener("resize",l):P&&Q.current&&(i=gs(P,Q.current,ke,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const n=e=>{"Escape"===e.key&&ze(!1)};we.escape&&window.addEventListener("keydown",n),we.clickOutsideAnchor&&window.addEventListener("click",Ve);const h=[],v=e=>{K&&(null==e?void 0:e.target)===P||Me(e)},d=e=>{K&&(null==e?void 0:e.target)===P&&xe()},p=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],m=["click","dblclick","mousedown","mouseup"];Object.entries(ge).forEach((([e,t])=>{t&&(p.includes(e)?h.push({event:e,listener:Ee}):m.includes(e)&&h.push({event:e,listener:v}))})),Object.entries(ue).forEach((([e,t])=>{t&&(p.includes(e)?h.push({event:e,listener:Ae}):m.includes(e)&&h.push({event:e,listener:d}))})),w&&h.push({event:"pointermove",listener:He});const g=()=>{ne.current=!0},u=()=>{ne.current=!1,xe()};return b&&!me&&(null===(e=Q.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=Q.current)||void 0===t||t.addEventListener("mouseleave",u)),h.forEach((({event:e,listener:t})=>{c.forEach((c=>{var s;null===(s=c.current)||void 0===s||s.addEventListener(e,t)}))})),()=>{var e,t;we.scroll&&(window.removeEventListener("scroll",l),null==r||r.removeEventListener("scroll",l),null==o||o.removeEventListener("scroll",l)),we.resize?window.removeEventListener("resize",l):null==i||i(),we.clickOutsideAnchor&&window.removeEventListener("click",Ve),we.escape&&window.removeEventListener("keydown",n),b&&!me&&(null===(e=Q.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=Q.current)||void 0===t||t.removeEventListener("mouseleave",u)),h.forEach((({event:e,listener:t})=>{c.forEach((c=>{var s;null===(s=c.current)||void 0===s||s.removeEventListener(e,t)}))}))}}),[P,ke,te,oe,he,H,V,L,pe,m,u]),(0,g.useEffect)((()=>{var e,c;let s=null!==(c=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:r)&&void 0!==c?c:"";!s&&t&&(s=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const l=new MutationObserver((e=>{const c=[],l=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?c.push(e.target):e.oldValue===t&&l.push(e.target)),"childList"===e.type){if(P){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(s)try{l.push(...t.filter((e=>e.matches(s)))),l.push(...t.flatMap((e=>[...e.querySelectorAll(s)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,P))&&(ce(!1),ze(!1),j(null),qr($),qr(W),!0)}))}if(s)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));c.push(...t.filter((e=>e.matches(s)))),c.push(...t.flatMap((e=>[...e.querySelectorAll(s)])))}catch(e){}}})),(c.length||l.length)&&ve((e=>[...e.filter((e=>!l.includes(e))),...c]))}));return l.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{l.disconnect()}}),[t,r,null==se?void 0:se.anchorSelect,P]),(0,g.useEffect)((()=>{ke()}),[ke]),(0,g.useEffect)((()=>{if(!(null==Z?void 0:Z.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>ke()))}));return e.observe(Z.current),()=>{e.disconnect()}}),[D,null==Z?void 0:Z.current]),(0,g.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),c=[...he,t];P&&c.includes(P)||j(null!==(e=he[0])&&void 0!==e?e:t)}),[a,he,P]),(0,g.useEffect)((()=>(N&&ze(!0),()=>{qr($),qr(W)})),[]),(0,g.useEffect)((()=>{var e;let c=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:r;if(!c&&t&&(c=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),c)try{const e=Array.from(document.querySelectorAll(c));ve(e)}catch(e){ve([])}}),[t,r,null==se?void 0:se.anchorSelect]),(0,g.useEffect)((()=>{$.current&&(qr($),be(m))}),[m]);const Se=null!==(U=null==se?void 0:se.content)&&void 0!==U?U:D,_e=K&&Object.keys(X.tooltipStyles).length>0;return(0,g.useImperativeHandle)(e,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}le(null!=e?e:null),(null==e?void 0:e.delay)?be(e.delay):ze(!0)},close:e=>{(null==e?void 0:e.delay)?Ce(e.delay):ze(!1)},activeAnchor:P,place:X.place,isOpen:Boolean(te&&!z&&Se&&_e)}))),te&&!z&&Se?g.createElement(p,{id:t,role:F,className:y("react-tooltip",Ur.tooltip,Qr.tooltip,Qr[l],c,`react-tooltip__place-${X.place}`,Ur[_e?"show":"closing"],_e?"react-tooltip__show":"react-tooltip__closing","fixed"===v&&Ur.fixed,b&&Ur.clickable),onTransitionEnd:e=>{qr(Y),K||"opacity"!==e.propertyName||(ce(!1),le(null),null==S||S())},style:{...E,...X.tooltipStyles,opacity:void 0!==R&&_e?R:void 0},ref:Q},Se,g.createElement(p,{className:y("react-tooltip-arrow",Ur.arrow,Qr.arrow,s,f&&Ur.noArrow),style:{...X.tooltipArrowStyles,background:I?`linear-gradient(to right bottom, transparent 50%, ${I} 50%)`:void 0},ref:G})):null},$r=({content:e})=>g.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Wr=g.forwardRef((({id:e,anchorId:t,anchorSelect:c,content:s,html:l,render:a,className:r,classNameArrow:o,variant:i="dark",place:n="top",offset:h=10,wrapper:v="div",children:d=null,events:p=["hover"],openOnClick:m=!1,positionStrategy:u="absolute",middlewares:w,delayShow:z=0,delayHide:f=0,float:b=!1,hidden:C=!1,noArrow:M=!1,clickable:x=!1,closeOnEsc:H=!1,closeOnScroll:V=!1,closeOnResize:L=!1,openEvents:B,closeEvents:E,globalCloseEvents:A,imperativeModeOnly:k=!1,style:S,position:_,isOpen:D,defaultIsOpen:Z=!1,disableStyleInjection:O=!1,border:N,opacity:T,arrowColor:P,setIsOpen:j,afterShow:q,afterHide:R,disableTooltip:I,role:F="tooltip"},U)=>{const[Q,G]=(0,g.useState)(s),[$,W]=(0,g.useState)(l),[Y,X]=(0,g.useState)(n),[J,K]=(0,g.useState)(i),[ee,te]=(0,g.useState)(h),[ce,se]=(0,g.useState)(z),[le,ae]=(0,g.useState)(f),[re,oe]=(0,g.useState)(b),[ie,ne]=(0,g.useState)(C),[he,ve]=(0,g.useState)(v),[de,pe]=(0,g.useState)(p),[me,ge]=(0,g.useState)(u),[ue,we]=(0,g.useState)(null),[ze,fe]=(0,g.useState)(null),be=(0,g.useRef)(O),{anchorRefs:Ce,activeAnchor:Me}=Fr(e),xe=e=>null==e?void 0:e.getAttributeNames().reduce(((t,c)=>{var s;return c.startsWith("data-tooltip-")&&(t[c.replace(/^data-tooltip-/,"")]=null!==(s=null==e?void 0:e.getAttribute(c))&&void 0!==s?s:null),t}),{}),ye=e=>{const t={place:e=>{var t;X(null!==(t=e)&&void 0!==t?t:n)},content:e=>{G(null!=e?e:s)},html:e=>{W(null!=e?e:l)},variant:e=>{var t;K(null!==(t=e)&&void 0!==t?t:i)},offset:e=>{te(null===e?h:Number(e))},wrapper:e=>{var t;ve(null!==(t=e)&&void 0!==t?t:v)},events:e=>{const t=null==e?void 0:e.split(" ");pe(null!=t?t:p)},"position-strategy":e=>{var t;ge(null!==(t=e)&&void 0!==t?t:u)},"delay-show":e=>{se(null===e?z:Number(e))},"delay-hide":e=>{ae(null===e?f:Number(e))},float:e=>{oe(null===e?b:"true"===e)},hidden:e=>{ne(null===e?C:"true"===e)},"class-name":e=>{we(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,c])=>{var s;null===(s=t[e])||void 0===s||s.call(t,c)}))};(0,g.useEffect)((()=>{G(s)}),[s]),(0,g.useEffect)((()=>{W(l)}),[l]),(0,g.useEffect)((()=>{X(n)}),[n]),(0,g.useEffect)((()=>{K(i)}),[i]),(0,g.useEffect)((()=>{te(h)}),[h]),(0,g.useEffect)((()=>{se(z)}),[z]),(0,g.useEffect)((()=>{ae(f)}),[f]),(0,g.useEffect)((()=>{oe(b)}),[b]),(0,g.useEffect)((()=>{ne(C)}),[C]),(0,g.useEffect)((()=>{ge(u)}),[u]),(0,g.useEffect)((()=>{be.current!==O&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[O]),(0,g.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===O,disableBase:O}}))}),[]),(0,g.useEffect)((()=>{var s;const l=new Set(Ce);let a=c;if(!a&&e&&(a=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),a)try{document.querySelectorAll(a).forEach((e=>{l.add({current:e})}))}catch(s){console.warn(`[react-tooltip] "${a}" is not a valid CSS selector`)}const r=document.querySelector(`[id='${t}']`);if(r&&l.add({current:r}),!l.size)return()=>null;const o=null!==(s=null!=ze?ze:r)&&void 0!==s?s:Me.current,i=new MutationObserver((e=>{e.forEach((e=>{var t;if(!o||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const c=xe(o);ye(c)}))})),n={attributes:!0,childList:!1,subtree:!1};if(o){const e=xe(o);ye(e),i.observe(o,n)}return()=>{i.disconnect()}}),[Ce,Me,ze,t,c]),(0,g.useEffect)((()=>{(null==S?void 0:S.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),N&&!Dr("border",`${N}`)&&console.warn(`[react-tooltip] "${N}" is not a valid \`border\`.`),(null==S?void 0:S.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),T&&!Dr("opacity",`${T}`)&&console.warn(`[react-tooltip] "${T}" is not a valid \`opacity\`.`)}),[]);let He=d;const Ve=(0,g.useRef)(null);if(a){const e=a({content:(null==ze?void 0:ze.getAttribute("data-tooltip-content"))||Q||null,activeAnchor:ze});He=e?g.createElement("div",{ref:Ve,className:"react-tooltip-content-wrapper"},e):null}else Q&&(He=Q);$&&(He=g.createElement($r,{content:$}));const Le={forwardRef:U,id:e,anchorId:t,anchorSelect:c,className:y(r,ue),classNameArrow:o,content:He,contentWrapperRef:Ve,place:Y,variant:J,offset:ee,wrapper:he,events:de,openOnClick:m,positionStrategy:me,middlewares:w,delayShow:ce,delayHide:le,float:re,hidden:ie,noArrow:M,clickable:x,closeOnEsc:H,closeOnScroll:V,closeOnResize:L,openEvents:B,closeEvents:E,globalCloseEvents:A,imperativeModeOnly:k,style:S,position:_,isOpen:D,defaultIsOpen:Z,border:N,opacity:T,arrowColor:P,setIsOpen:j,afterShow:q,afterHide:R,disableTooltip:I,activeAnchor:ze,setActiveAnchor:e=>fe(e),role:F};return g.createElement(Gr,{...Le})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||Sr({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||Sr({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const{ButtonGroup:Yr,Dashicon:Xr,Popover:Jr,Button:Kr}=wp.components,{Fragment:eo}=wp.element,to=e=>{const c=(0,g.useRef)(null),[s,l]=(0,g.useState)({isVisible:!1,tooltipContent:"",showShadow:!1}),{controlParams:a,location:r,choices:o,row:i,column:n,id:h}=e;let v=0,d=Object.keys(o).length;s.isVisible&&a.rows.forEach((t=>{Object.keys(e.settings[t]).forEach((c=>{"astra-settings[header-desktop-items]"!==a.group||astra.customizer.is_pro||"popup"!==t?v+=e.settings[t][c].length:(v-=e.settings[t][c].length,d-=e.settings[t][c].length)}))}));const p=()=>{if(c.current){const{scrollTop:e}=c.current;l(0===e?e=>({...e,showShadow:!1}):e=>({...e,showShadow:!0}))}};return(0,g.useEffect)((()=>{const e=c.current;if(s.isVisible&&e)return e.addEventListener("scroll",p),()=>{e.removeEventListener("scroll",p)}}),[s.isVisible]),(0,t.createElement)("div",{className:H()("ahfb-builder-add-item","astra-settings[header-desktop-items]"!==a.group&&"astra-settings[footer-desktop-items]"!==a.group||"right"!==r?null:"center-on-left","astra-settings[header-desktop-items]"!==a.group&&"astra-settings[footer-desktop-items]"!==a.group||"left"!==r?null:"center-on-right","astra-settings[header-desktop-items]"!==a.group&&"astra-settings[footer-desktop-items]"!==a.group||"left_center"!==r?null:"right-center-on-right","astra-settings[header-desktop-items]"!==a.group&&"astra-settings[footer-desktop-items]"!==a.group||"right_center"!==r?null:"left-center-on-left"),key:h},s.isVisible&&(0,t.createElement)(Jr,{position:"top",className:"ahfb-popover-add-builder",onClose:()=>{!0===s.isVisible&&l((e=>({...e,isVisible:!1})))}},(0,t.createElement)("div",{className:"ahfb-popover-builder-list testingg"},(0,t.createElement)("div",{className:H()("hfb-widgets",s.showShadow?"bottom-shadow":"")},(0,t.createElement)("span",{className:"elements-title"},(0,b.__)("INSERT ELEMENTS","astra")),!AstraBuilderCustomizerData.pro_active&&(0,t.createElement)("a",{className:"elements-utm",tabIndex:"-1",href:AstraBuilderCustomizerData?.upgradeUrl?.["hfb-pro-widget"]||AstraBuilderCustomizerData?.upgradeUrl?.default,target:"_blank",rel:"noopener noreferrer"},(0,b.__)("Unlock Pro Widgets","astra"))),(0,t.createElement)(Yr,{className:"ahfb-radio-container-control",ref:c},(0,t.createElement)(Wr,{id:"element-tooltip",className:"custom-tooltip",style:{zIndex:99999,backgroundColor:"#111827",color:"#fff",borderRadius:"8px"},place:"right-start",clickable:!0,render:({activeAnchor:e})=>(0,t.createElement)("div",{style:{padding:"10px 5px"}},e?.getAttribute("data-name")&&(0,t.createElement)("p",{style:{margin:"0 0 10px 0"}},(0,b.__)("Add","astra")," ",e?.getAttribute("data-name")," ",(0,t.createElement)("br",null)," ",(0,b.__)("Available in Astra Pro","astra")),(0,t.createElement)("a",{className:"tooltip-button",style:{cursor:"pointer",display:"inline-block"},onClick:()=>window.open(AstraBuilderCustomizerData?.upgradeUrl?.["hfb-pro-widget"]||AstraBuilderCustomizerData?.upgradeUrl?.default,"_blank")},(0,b.__)("Click to unlock","astra")))}),Object.keys(o).sort().map((c=>((c,s)=>{let r=!0;a.rows.forEach((t=>{Object.keys(e.settings[t]).forEach((s=>{e.settings[t][s].includes(c)&&(r=!1)}))}));let i=c.includes("menu");return"popup"===s&&(i&&"mobile-menu"!==c||"mobile-trigger"===c)&&(r=!1),"popup"!==s&&"mobile-menu"===c&&(r=!1),(0,t.createElement)(eo,{key:c},r&&(0,t.createElement)(Kr,{"data-tooltip-id":o[c]?.pro?"element-tooltip":"","data-name":o[c].name,"data-description":o[c].description,isTertiary:!0,className:H()("builder-add-btn",{"pro-feature":o[c]?.pro}),onClick:t=>{o[c]?.pro?t.preventDefault():(t=>{const{setList:c,list:s}=e;l((e=>({...e,isVisible:!1})));let a=s;a.push({id:t}),c(a)})(c)}},(0,t.createElement)("span",{className:"add-btn-icon"},(0,t.createElement)(Xr,{icon:o[c]?.icon||""})),(0,t.createElement)("span",{className:"add-btn-title"},o[c]?.name||""),o[c]?.pro&&(0,t.createElement)("span",{className:"pro-icon"},(0,t.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"16",height:"16",rx:"4",fill:"#F5F5F5"}),(0,t.createElement)("path",{d:"M10.9984 7.39922H10.3984V5.59922C10.3984 4.27922 9.31844 3.19922 7.99844 3.19922C6.67844 3.19922 5.59844 4.27922 5.59844 5.59922V7.39922H4.99844C4.69844 7.39922 4.39844 7.69922 4.39844 7.99922V12.1992C4.39844 12.4992 4.69844 12.7992 4.99844 12.7992H10.9984C11.2984 12.7992 11.5984 12.4992 11.5984 12.1992V7.99922C11.5984 7.69922 11.2984 7.39922 10.9984 7.39922ZM8.59844 11.5992H7.39844L7.63844 10.2792C7.33844 10.1592 7.09844 9.79922 7.09844 9.49922C7.09844 9.01922 7.51844 8.59922 7.99844 8.59922C8.47844 8.59922 8.89844 9.01922 8.89844 9.49922C8.89844 9.85922 8.71844 10.1592 8.35844 10.2792L8.59844 11.5992ZM9.19844 7.39922H6.79844V5.59922C6.79844 4.93922 7.33844 4.39922 7.99844 4.39922C8.65844 4.39922 9.19844 4.93922 9.19844 5.59922V7.39922Z",fill:"#64748B"})))))})(c,i))),d===v&&(0,t.createElement)("p",{className:"ahfb-all-coponents-used"}," ",(0,b.__)("Hurray! All Components Are Being Used.","astra")," ")))),(0,t.createElement)(Kr,{className:"ahfb-builder-item-add-icon dashicon dashicons-plus-alt2",onClick:()=>{l((e=>({...e,isVisible:!0})))}}))},{Fragment:co}=wp.element,so=e=>{const c=e.zone.replace(e.row+"_","");let s=void 0!==e.items&&null!=e.items&&null!=e.items.length&&e.items.length>0?e.items:[],l=e.choices,a=Object.keys(l),r=[];{const e=[...s];s.length>0&&s.forEach((t=>{if(a.includes(t))r.push({id:t});else{const c=e.indexOf(t);c>-1&&e.splice(c,1)}})),s=e}let o=void 0!==e.centerItems&&null!=e.centerItems&&null!=e.centerItems.length&&e.centerItems.length>0?e.centerItems:[],i=[];{let e=[...o];o.length>0&&o.forEach((t=>{if(a.includes(t))i.push({id:t});else{const c=e.indexOf(t);c>-1&&e.splice(c,1)}})),o=e}const n=(s,l,a)=>{let r=a.replace(/_/g,"-");return(0,t.createElement)(co,null,(0,t.createElement)(ja.ReactSortable,{animation:100,onStart:()=>e.showDrop(),onEnd:()=>e.hideDrop(),group:e.controlParams.group,className:"ahfb-builder-drop ahfb-builder-sortable-panel ahfb-builder-drop-"+c+a,list:s,setList:t=>e.onUpdate(e.row,e.zone+a,t)},l.length>0&&l.map(((c,s)=>(0,t.createElement)(Ar,{removeItem:t=>e.removeItem(t,e.row,e.zone+a),cloneItem:t=>e.cloneItem(t,e.row,e.zone+a),focusItem:t=>e.focusItem(t),key:c,index:s,item:c,controlParams:e.controlParams})))),(0,t.createElement)(to,{row:e.row,list:s,settings:e.settings,column:e.zone+a,setList:t=>e.onAddItem(e.row,e.zone+a,t),key:c,location:c+a,id:"add"+r+"-"+c,controlParams:e.controlParams,choices:e.choices}))};return"footer"===e.mode?(0,t.createElement)("div",{className:`ahfb-builder-area ahfb-builder-area-${c}`,"data-location":e.zone},n(r,s,"")):(0,t.createElement)("div",{className:`ahfb-builder-area ahfb-builder-area-${c}`,"data-location":e.zone},"astra-settings[header-desktop-items]"===e.controlParams.group&&"right"===c&&n(i,o,"_center"),n(r,s,""),"astra-settings[header-desktop-items]"===e.controlParams.group&&"left"===c&&n(i,o,"_center"))},{__:lo}=wp.i18n,{Dashicon:ao,Button:ro}=wp.components,oo=e=>{let c="no-center-items",s=-1!==e.controlParams.group.indexOf("header")?"header":"footer",l=[],a="",r=0,o=!0;if("footer"===s&&(a=`ast-grid-row-layout-${e.layout[e.row].layout.desktop}`,r=e.layout[e.row].column-1,Object.keys(e.controlParams.zones[e.row]).forEach(((t,c)=>{r0&&(c="has-center-items"),"popup"===e.row&&(c="popup-vertical-group"),e.controlParams.hasOwnProperty("status"))switch(e.row){case"above":e.controlParams.status.above||(o=!1);break;case"primary":e.controlParams.status.primary||(o=!1);break;case"below":e.controlParams.status.below||(o=!1)}return(0,t.createElement)("div",{className:`ahfb-builder-areas ahfb-builder-mode-${s} ${c}`,"data-row":e.row,"data-row-section":"section-"+e.row+"-"+s+"-builder"},(0,t.createElement)(ro,{className:"ahfb-row-actions",title:"popup"===e.row?lo("Off Canvas","astra"):(e.row+" "+s).charAt(0).toUpperCase()+(e.row+" "+s).slice(1).toLowerCase(),onClick:()=>e.focusPanel(e.row+"-"+s)},(0,t.createElement)(ao,{icon:"admin-generic"}),"popup"===e.row&&(0,t.createElement)(t.Fragment,null,lo("Off Canvas","astra"))),(0,t.createElement)("div",{className:`ahfb-builder-group ahfb-builder-group-horizontal ${a}`,"data-setting":e.row},Object.keys(e.controlParams.zones[e.row]).map(((c,a)=>{if(!("footer"===s&&re.removeItem(t,c,s),cloneItem:(t,c,s)=>e.cloneItem(t,c,s),focusItem:t=>e.focusItem(t),hideDrop:()=>e.hideDrop(),showDrop:()=>e.showDrop(),onUpdate:(t,c,s)=>e.onUpdate(t,c,s),zone:c,row:e.row,choices:e.choices,key:c,items:e.items[c],centerItems:l,controlParams:e.controlParams,onAddItem:(t,c,s)=>e.onAddItem(t,c,s),settings:e.settings,mode:s})}))))},io=e=>{let c=e.control.setting.get(),s={},l={},a=e.control.params.default?{...l,...e.control.params.default}:l;c=c?{...a,...c}:a;let r={},o=e.control.params.input_attrs?{...r,...e.control.params.input_attrs}:r,i=AstraBuilderCustomizerData&&AstraBuilderCustomizerData.choices&&AstraBuilderCustomizerData.choices[o.group]?AstraBuilderCustomizerData.choices[o.group]:[];const n=e.customizer.control("astra-settings[cloned-component-track]").setting,h=[];h.revertDrag=!1;const[v,d]=(0,g.useState)({value:c,layout:o.layouts,isPopup:!1,prevItems:h});let p=!1;e.control.container&&(p=e.control.container[0].getAttribute("isPopup")),"astra-settings[header-desktop-items]"!==o.group&&"astra-settings[header-mobile-items]"!==o.group||(s=JSON.parse(JSON.stringify(v.value)));const m=(t,c="")=>{let s=e.control.setting;if("popup"===c){let t=e.customizer("astra-settings[header-mobile-popup-items]");t.set(!t.get())}s.set({...s.get(),...t,flag:!s.get().flag})};(0,g.useEffect)((()=>{document.addEventListener("AstraBuilderPresetSettingsUpdate",(function(e){o.group===e.detail.id&&(d((t=>({...t,value:e.detail.grid_layout}))),m(e.detail.grid_layout))})),document.addEventListener("AstRemoteUpdateHeaderPresetState",(function(e){"astra-settings["+e.detail.type+"]"===o.group&&(d((t=>({...t,value:e.detail.options}))),m(e.detail.options))})),document.addEventListener("AstraBuilderChangeRowLayout",(function(e){if("astra-settings[footer-desktop-items]"!==o.group)return;if(""===e.detail.type)return;let t=o;t.layouts[e.detail.type]&&(t.layouts[e.detail.type]={column:e.detail.columns,layout:e.detail.layout},d((e=>({...e,layout:t.layouts}))),m(t))}))}),[]);const u=()=>{let e=document.querySelectorAll(".ahfb-builder-area");for(let t=0;t{if(v.prevItems.revertDrag){let e=v.prevItems.row,t=v.prevItems.zone,c=v.prevItems.restrictRow,s=v.prevItems.restrictZone,l=v.value,a=l[e],r=v.prevItems.staleValue[e][t],o=l[c],i=v.prevItems.staleValue[c][s];a[t]=r,o[s]=i,l[e][t]=r,l[c][s]=i,H(!0),d((e=>({...e,value:l}))),m(l,e);let n=[];n.revertDrag=!1,d((e=>({...e,prevItems:n})))}let e=document.querySelectorAll(".ahfb-builder-area");for(let t=0;t{if(sessionStorage.getItem("astra-builder-clone-in-progress"))return;let s,l=n.get(),a=Object.assign({},i[e]),r=a.section.replace(/[0-9]+/g,""),h=l["removed-items"],p=h.findIndex((e=>e.includes(r))),g=a.builder+"-"+a.type,u={};if(-1!=p?(r=h[p],s=parseInt(r.match(/\d+$/)[0]),h.splice(p,1),u["removed-items"]=h):(s=l[g]+1,r=a.section.replace(/[0-9]+/g,s),u[g]=s),parseInt(s)>parseInt(AstraBuilderCustomizerData.component_limit))return;let w=a.type+"-"+s;a=function(e,t){if("menu"===e.type)switch(t){case 1:e.name="Primary Menu";break;case 2:e.name="Secondary Menu";break;default:e.name=e.type.slice(0,1).toUpperCase()+e.type.substring(1)+" "+t}else{let c=e.name.replace(/[0-9]+/g,"");e.name=c+" "+t}return e.section=e.section.replace(/[0-9]+/g,t),e}(a,s),AstraBuilderCustomizerData.choices[o.group][w]=a,sessionStorage.setItem("astra-builder-clone-in-progress",!0);var z=new CustomEvent("AstraBuilderCloneSectionControls",{detail:{clone_to_section:r,clone_from_section:i[e].section}});document.dispatchEvent(z),n.set({...l,...u,flag:!l.flag});let f=v.value,b=f[t][c];b.push(w);let C=[];b.forEach((function(e){C.push({id:e})})),d((e=>({...e,value:f}))),m(f,t)},f=(e,t,c)=>{let s=v.value,l=s[t],a=[];l[c].length>0&&l[c].forEach((t=>{e!==t&&a.push(t)})),"astra-settings[header-desktop-items]"===o.group&&t+"_center"===c&&0===a.length&&(l[t+"_left_center"].length>0&&(l[t+"_left_center"].forEach((e=>{s[t][t+"_left"].push(e)})),s[t][t+"_left_center"]=[]),l[t+"_right_center"].length>0&&(l[t+"_right_center"].forEach((e=>{s[t][t+"_right"].push(e)})),s[t][t+"_right_center"]=[])),l[c]=a,s[t][c]=a,H(!0),d((e=>({...e,value:s}))),m(s,t);let r=new CustomEvent("AstraBuilderRemovedBuilderItem",{detail:o.group});document.dispatchEvent(r)},b=(e,t,c)=>{let l=v.value,a=l[e],r=[],i=!1,n=[];c.length>0&&c.forEach((c=>{i=c.id.includes("menu"),("popup"===e&&("astra-settings[header-desktop-items]"===o.group&&i&&"mobile-menu"!==c.id||"mobile-trigger"===c.id)||"popup"!==e&&"mobile-menu"===c.id)&&(n=((e,t,c)=>{let l=[];l.restrictRow=t,l.restrictZone=c;for(const[t,c]of Object.entries(s))for(const[a,r]of Object.entries(c))for(let c of r)c===e.id&&(l.row=t,l.zone=a,l.revertDrag=!0,l.staleValue=s);return l})(c,e,t),d((e=>({...e,prevItems:n})))),r.push(c.id)})),M(a[t],r)||("astra-settings[header-desktop-items]"===o.group&&e+"_center"===t&&0===r.length&&(a[e+"_left_center"].length>0&&(a[e+"_left_center"].forEach((t=>{l[e][e+"_left"].push(t)})),l[e][e+"_left_center"]=[]),a[e+"_right_center"].length>0&&(a[e+"_right_center"].forEach((t=>{l[e][e+"_right"].push(t)})),l[e][e+"_right_center"]=[])),a[t]=r,l[e][t]=r,H(!0),d((e=>({...e,value:l}))),m(l,e))},C=(e,t,c)=>{b(e,t,c);let s=new CustomEvent("AstraBuilderRemovedBuilderItem",{detail:o.group});document.dispatchEvent(s)},M=(e,t)=>{if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!=t.length)return!1;for(let c=0;c{t="section-"+t+"-builder",void 0!==e.customizer.section(t)&&e.customizer.section(t).focus()},y=t=>{void 0!==e.customizer.section(t)&&e.customizer.section(t).focus()},H=t=>{let c=!1;"astra-settings[header-desktop-items]"===e.control.id&&o.rows.map((e=>{var t=v.value[e];for(const[e,s]of Object.entries(t))if(s.includes("mobile-trigger"))return void(c=!0)})),"astra-settings[header-mobile-items]"===e.control.id&&o.rows.map((e=>{var t=v.value[e];for(const[e,s]of Object.entries(t))if(s.includes("mobile-trigger"))return void(c=!0)})),t&&d((e=>({...e,isPopup:c}))),e.control.container&&(e.control.container[0].setAttribute("isPopup",c),p=c)};return H(!1),(()=>{if(!astra.customizer.is_pro)return;let e=n.get();AstraBuilderCustomizerData.component_limit=parseInt(AstraBuilderCustomizerData.component_limit);const t=AstraBuilderCustomizerData&&AstraBuilderCustomizerData.choices&&AstraBuilderCustomizerData.choices[o.group]?AstraBuilderCustomizerData.choices[o.group]:[];Object.keys(t).forEach((function(c){let s=t[c];if(s.hasOwnProperty("builder")&&s.hasOwnProperty("type")){let t=!s.hasOwnProperty("clone")||s.clone,c=!s.hasOwnProperty("delete")||s.delete,l=s.builder+"-"+s.type;if(e[l]e.startsWith(c)));t=-1!==l}switch(s.clone=t,e[l]){case 1:c=!1;break;case 2:c=-1==e["removed-items"]?.indexOf(s.section.replace(/[0-9]+/g,1))}s.delete=c}}))})(),(0,t.createElement)("div",{className:"ahfb-control-field ahfb-builder-items"},(!0===v.isPopup||!0===p)&&o.rows.includes("popup")&&(0,t.createElement)(oo,{showDrop:()=>u(),focusPanel:e=>x(e),focusItem:e=>y(e),removeItem:(e,t,c)=>f(e,t,c),cloneItem:(e,t,c)=>z(e,t,c),onAddItem:(e,t,c)=>C(e,t,c),hideDrop:()=>w(),onUpdate:(e,t,c)=>b(e,t,c),key:"popup",row:"popup",controlParams:o,choices:i,items:v.value.popup,settings:v.value,layout:v.layout}),(0,t.createElement)("div",{className:"ahfb-builder-row-items"},o.rows.map((c=>{if("popup"!==c)return(0,t.createElement)(oo,{showDrop:()=>u(),focusPanel:e=>x(e),focusItem:e=>y(e),removeItem:(e,t,c)=>f(e,t,c),cloneItem:(e,t,c)=>z(e,t,c),hideDrop:()=>w(),onUpdate:(e,t,c)=>b(e,t,c),onAddItem:(e,t,c)=>C(e,t,c),key:c,row:c,controlParams:o,choices:i,customizer:e.customizer,items:v.value[c],settings:v.value,layout:v.layout})}))))};io.propTypes={control:l().object.isRequired,customizer:l().func.isRequired};const no=React.memo(io),ho=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(no,{control:this,customizer:wp.customize}),this.container[0])}}),{__:vo}=wp.i18n,{Dashicon:po,Tooltip:mo,TextControl:go,Button:uo}=wp.components;let wo=Object.keys(Ia);const zo=e=>{const c=window.svgIcons,[s,l]=(0,g.useState)({open:!1}),a=(e.item.id.replace(/[\d_]+$/g,""),"phone"===e.item.id||"phone_2"===e.item.id?vo("Number","astra"):vo("URL","astra")),[r,o]=(0,g.useState)(e.item.icon);return(0,g.useEffect)((()=>{o(c[e.item.icon])}),[]),(0,t.createElement)("div",{className:"ahfb-sorter-item","data-id":e.item.id,key:e.item.id},(0,t.createElement)("div",{className:"ahfb-sorter-item-panel-header",onClick:()=>{l((e=>({...e,open:!s.open})))}},(0,t.createElement)(uo,{className:"ahfb-sorter-visiblity"},(0,t.createElement)("span",{dangerouslySetInnerHTML:{__html:r}})),(0,t.createElement)("span",{className:"ahfb-sorter-title"},void 0!==e.item.label&&""!==e.item.label?e.item.label:vo("Social Item","astra")),(0,t.createElement)(uo,{className:"ahfb-sorter-item-expand",onClick:()=>{l((e=>({...e,open:!s.open})))}},s.open?(0,t.createElement)(po,{icon:"arrow-up-alt2"}):(0,t.createElement)(po,{icon:"arrow-down-alt2"})),(0,t.createElement)(mo,{text:vo("Toggle Item Visiblity","astra")},(0,t.createElement)(uo,{className:"ahfb-sorter-item-expand ahfb-sorter-item-visibility "+(e.item.enabled?"item-is-visible":"item-is-hidden"),onClick:t=>{t.stopPropagation(),e.toggleEnabled(!e.item.enabled,e.index)}},(0,t.createElement)(po,{icon:"visibility"}))),(0,t.createElement)(uo,{className:"ahfb-sorter-item-remove",isDestructive:!0,onClick:()=>{e.removeItem(e.index)}},(0,t.createElement)(po,{icon:"no-alt"}))),s.open&&(0,t.createElement)("div",{className:"ahfb-sorter-item-panel-content"},(0,t.createElement)(go,{label:vo("Label","astra"),value:e.item.label?e.item.label:"",onChange:t=>{e.onChangeLabel(t,e.index)}}),!e.is_sharing_mode&&(0,t.createElement)(go,{label:`${a}`,value:e.item.url?e.item.url:"",onChange:t=>{e.onChangeURL(t,e.index)}}),(0,t.createElement)("p",{className:"ast-social-icon-picker-label"},vo("Icon")),(0,t.createElement)(Ra(),{icons:wo,renderFunc:Fa,theme:"default",value:e.item.icon,onChange:t=>{e.onChangeIcon(t,e.index),o(c[t])},isMulti:!1,noSelectedPlaceholder:vo("Select Icon","astra")})))},{__:fo}=wp.i18n,{Button:bo,SelectControl:Co}=wp.components,Mo=e=>{let c=e.control.setting.get();const s=e?.control?.params?.share_mode?e.control.params.share_mode:"";let l={items:[{id:"facebook",enabled:!0,url:"",color:"#557dbc",background:"transparent",icon:"facebook",label:"Facebook"},{id:"twitter",enabled:!0,url:"",color:"#7acdee",background:"transparent",icon:"twitter",label:"Twitter"}]},a=e.control.params.default?{...l,...e.control.params.default}:l;c=c?{...a,...c}:a;const r=[{value:"facebook",label:fo("Facebook","astra"),color:"#557dbc",background:"transparent"},{value:"twitter",label:fo("Twitter","astra"),color:"#7acdee",background:"transparent"},{value:"instagram",label:fo("Instagram","astra"),color:"#8a3ab9",background:"transparent"},{value:"youtube",label:fo("YouTube","astra"),color:"#e96651",background:"transparent"},{value:"facebook_group",label:fo("Facebook Group","astra"),color:"#3D87FB",background:"transparent"},{value:"vimeo",label:fo("Vimeo","astra"),color:"#8ecfde",background:"transparent"},{value:"pinterest",label:fo("Pinterest","astra"),color:"#ea575a",background:"transparent"},{value:"wechat",label:fo("WeChat","astra"),color:"#2DC100",background:"transparent"},{value:"nextdoor",label:fo("Nextdoor","astra"),color:"#73CD0E",background:"transparent"},{value:"linkedin",label:fo("Linkedin","astra"),color:"#1c86c6",background:"transparent"},{value:"medium",label:fo("Medium","astra"),color:"#292929",background:"transparent"},{value:"wordpress",label:fo("WordPress","astra"),color:"#464646",background:"transparent"},{value:"reddit",label:fo("Reddit","astra"),color:"#FC471E",background:"transparent"},{value:"patreon",label:fo("Patreon","astra"),color:"#e65c4b",background:"transparent"},{value:"github",label:fo("GitHub","astra"),color:"#24292e",background:"transparent"},{value:"dribbble",label:fo("Dribbble","astra"),color:"#d77ea6",background:"transparent"},{value:"behance",label:fo("Behance","astra"),color:"#1B64F6",background:"transparent"},{value:"vk",label:fo("VK","astra"),color:"#5382b6",background:"transparent"},{value:"xing",label:fo("Xing","astra"),color:"#0A5C5D",background:"transparent"},{value:"rss",label:fo("RSS","astra"),color:"#f09124",background:"transparent"},{value:"email",label:fo("Email 1","astra"),color:"#ea4335",background:"transparent"},{value:"phone",label:fo("Phone 1","astra"),color:"inherit",background:"transparent"},{value:"email_2",label:fo("Email 2","astra"),color:"#ea4335",background:"transparent"},{value:"phone_2",label:fo("Phone 2","astra"),color:"inherit",background:"transparent"},{value:"whatsapp",label:fo("WhatsApp","astra"),color:"#5BBA67",background:"transparent"},{value:"google_reviews",label:fo("Google Reviews","astra"),color:"#dc4e41",background:"transparent"},{value:"telegram",label:fo("Telegram","astra"),color:"#229CCE",background:"transparent"},{value:"yelp",label:fo("Yelp","astra"),color:"#af0606",background:"transparent"},{value:"trip_advisor",label:fo("Trip Advisor","astra"),color:"#00aa6c",background:"transparent"},{value:"imdb",label:fo("IMDB","astra"),color:"#000000",background:"transparent"},{value:"tiktok",label:fo("TikTok","astra"),color:"#000000",background:"transparent"},{value:"threads",label:fo("Threads","astra"),color:"#000000",background:"transparent"},{value:"twitter-x",label:fo("Twitter / X","astra"),color:"#000000",background:"transparent"},{value:"bluesky",label:fo("Bluesky","astra"),color:"#1285fe",background:"transparent"}],o=[{value:"facebook",label:fo("Facebook","astra"),color:"#557dbc",background:"transparent"},{value:"twitter",label:fo("Twitter","astra"),color:"#7acdee",background:"transparent"},{value:"pinterest",label:fo("Pinterest","astra"),color:"#E60023",background:"transparent"},{value:"wechat",label:fo("WeChat","astra"),color:"#2BBB00",background:"transparent"},{value:"telegram",label:fo("Telegram","astra"),color:"#54A9E9",background:"transparent"},{value:"linkedin",label:fo("Linkedin","astra"),color:"#1c86c6",background:"transparent"},{value:"tumblr",label:fo("Tumblr","astra"),color:"#34526f",background:"transparent"},{value:"reddit",label:fo("Reddit","astra"),color:"#FC471E",background:"transparent"},{value:"vk",label:fo("VK","astra"),color:"#5382b6",background:"transparent"},{value:"whatsapp",label:fo("WhatsApp","astra"),color:"#5BBA67",background:"transparent"},{value:"sms",label:fo("SMS","astra"),color:"inherit",background:"transparent"},{value:"twitter-x",label:fo("Twitter / X","astra"),color:"inherit",background:"transparent"}];let i={group:"social_item_group",options:(s?o:r).sort(((e,t)=>e.valuet.value?1:0))},n=e.control.params.input_attrs?{...i,...e.control.params.input_attrs}:i,h=[];Array.isArray(n.options)&&n.options.forEach((e=>{Array.isArray(c.items)&&!c.items.some((t=>t.id===e.value))&&h.push(e)}));const[v,d]=(0,g.useState)({value:c,isVisible:!1,control:void 0!==h[0]&&void 0!==h[0].value?h[0].value:"",icon:""});(0,g.useEffect)((()=>{d((t=>({...t,value:e.control.setting.get()})))}),[e]);const p=t=>{e.control.setting.set({...e.control.setting.get(),...t,flag:!e.control.setting.get().flag})},m=()=>{let e,t=document.querySelectorAll(".ahfb-builder-area");for(e=0;e{let c=v.value;const s=c.items.map(((c,s)=>(t===s&&(c={...c,...e}),c)));c.items=s,d((e=>({...e,value:c}))),p(c)},w=void 0!==v.value&&null!=v.value.items&&null!=v.value.items.length&&v.value.items.length>0?v.value.items:[];let z=[];return w.length>0&&w.forEach((e=>{z.push({id:e.id})})),(0,t.createElement)("div",{className:"ahfb-control-field ahfb-sorter-items"},(0,t.createElement)("div",{className:"ahfb-sorter-row"},(0,t.createElement)(ja.ReactSortable,{animation:100,onStart:()=>m(),onEnd:()=>m(),group:n.group,className:`ahfb-sorter-drop ahfb-sorter-sortable-panel ahfb-sorter-drop-${n.group}`,handle:".ahfb-sorter-item-panel-header",list:z,setList:e=>(e=>{let t=v.value,c=t.items,s=[];e.length>0&&e.forEach((e=>{c.forEach((t=>{t.id===e.id&&s.push(t)}))})),((e,t)=>{if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!=t.length)return!1;for(let c=0;c({...e,value:t}))),p(t))})(e)},w.length>0&&w.map(((e,c)=>(0,t.createElement)(zo,{removeItem:e=>(e=>{let t=v.value,c=t.items,s=[];c.length>0&&c.forEach(((t,c)=>{e!==c&&s.push(t)})),t.items=s,d((e=>({...e,value:t}))),p(t)})(e),toggleEnabled:(e,t)=>((e,t)=>{u({enabled:e},t)})(e,t),onChangeLabel:(e,t)=>((e,t)=>{u({label:e},t)})(e,t),onChangeIcon:(e,t)=>((e,t)=>{u({icon:e},t)})(e,t),onChangeURL:(e,t)=>((e,t)=>{u({url:e},t)})(e,t),key:e.id,index:c,item:e,controlParams:n,is_sharing_mode:s}))))),void 0!==h[0]&&void 0!==h[0].value&&(0,t.createElement)("div",{className:"ahfb-social-add-area"},(0,t.createElement)(Co,{value:v.control,options:h,onChange:e=>{d((t=>({...t,control:e})))}}),(0,t.createElement)(bo,{className:"ahfb-sorter-add-item",isPrimary:!0,onClick:()=>{(()=>{const e=v.control;if(d((e=>({...e,isVisible:!1}))),e){let t=v.value,c=t.items,s=e.replace(/[\d_]+$/g,"");const l=Array.isArray(n.options)?n.options.filter((function(t){return t.value===e})):[];let a={id:e,enabled:!0,url:"",color:l[0].color,background:l[0].background,icon:s,label:l[0].label};c.push(a),t.items=c;let r=[];Array.isArray(n.options)&&n.options.forEach((e=>{c.some((t=>t.id===e.value))||r.push(e)})),d((e=>({...e,control:void 0!==r[0]&&void 0!==r[0].value?r[0].value:""}))),d((e=>({...e,value:t}))),p(t)}})()}},fo("Add Social Icon","astra"))))};Mo.propTypes={control:l().object.isRequired};const xo=Mo,yo=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(xo,{control:this}),this.container[0])}}),Ho=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(er,{control:this}),this.container[0])}});var Vo=c(8221),Lo=c.n(Vo);const Bo=e=>{let c=e.control.setting.get();const[s,l]=(0,g.useState)({value:c,editor:{},restoreTextMode:!1});let a={id:"header_html",toolbar1:"formatselect | styleselect | bold italic strikethrough | forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | insert ast_placeholders | fontsizeselect",toolbar2:""},r=e.control.params.input_attrs?{...a,...e.control.params.input_attrs}:a;const o=t=>{l((e=>({...e,value:t}))),e.control.setting.set(t)};(0,g.useEffect)((()=>{window.tinymce.get(r.id)&&(l((e=>({...e,restoreTextMode:window.tinymce.get(r.id).isHidden()}))),window.wp.oldEditor.remove(r.id)),window.wp.oldEditor.initialize(r.id,{tinymce:{wpautop:!0,height:200,menubar:!1,toolbar1:r.toolbar1,toolbar2:r.toolbar2,fontsize_formats:"8pt 9pt 10pt 11pt 12pt 14pt 18pt 24pt 30pt 36pt 48pt 60pt 72pt 96pt"},quicktags:!0,mediaButtons:!0});const e=window.tinymce.get(r.id);e.initialized?i():e.on("init",i),e.addButton("ast_placeholders",{type:"menubutton",text:"Tags",icon:!1,menu:[{text:"Copyright",icon:!1,value:"[copyright]",onclick:function(){e.insertContent(this.value())}},{text:"Current Year",icon:!1,value:"[current_year]",onclick:function(){e.insertContent(this.value())}},{text:"Site Title",icon:!1,value:"[site_title]",onclick:function(){e.insertContent(this.value())}},{text:"Theme Author",icon:!1,value:"[theme_author]",onclick:function(){e.insertContent(this.value())}}]})}),[]);const i=()=>{const e=window.tinymce.get(r.id);s.restoreTextMode&&window.switchEditors.go(r.id,"html"),e.on("NodeChange",Lo()(n,250)),l((t=>({...t,editor:e})))},n=()=>{o(window.wp.oldEditor.getContent(r.id))};return(0,t.createElement)("div",{className:"ahfb-control-field ast-html-editor"},e.control.params.label&&(0,t.createElement)("span",{className:"customize-control-title"},e.control.params.label),(0,t.createElement)("textarea",{className:"ahfb-control-tinymce-editor wp-editor-area",id:r.id,value:s.value,onChange:({target:{value:e}})=>{o(e)}}),e.control.params.description&&(0,t.createElement)("span",{className:"customize-control-description"},e.control.params.description))};Bo.propTypes={control:l().object.isRequired,customizer:l().func.isRequired};const Eo=React.memo(Bo),Ao=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(Eo,{control:this,customizer:wp.customize}),this.container[0])}}),{Dashicon:ko,Button:So}=wp.components,{Fragment:_o}=wp.element,Do=e=>{let c={},s={},l=e.control.params.input_attrs?{...s,...e.control.params.input_attrs}:s;e.customizer.control(l.group)&&(c=e.customizer.control(l.group).setting.get());let a=AstraBuilderCustomizerData&&AstraBuilderCustomizerData.choices&&AstraBuilderCustomizerData.choices[l.group]?AstraBuilderCustomizerData.choices[l.group]:[];const[r,o]=(0,g.useState)({settings:c});document.addEventListener("AstraBuilderRemovedBuilderItem",(function(e){e.detail===l.group&&i()}));const i=()=>{if(e.customizer.control(l.group)){const t=e.customizer.control(l.group).setting.get();o((e=>({...e,settings:t})))}};let n=0;return l.zones.forEach((e=>{r.settings[e]&&Object.keys(r.settings[e]).forEach((t=>{n+=r.settings[e][t].length}))})),(0,t.createElement)("div",{className:"ahfb-control-field ahfb-available-items"},(0,t.createElement)("div",{className:"ast-builder-elements-section"},Object.keys(a).map((c=>((c,s)=>{let o=!0;return l.zones.forEach((e=>{r.settings[e]&&Object.keys(r.settings[e]).forEach((t=>{r.settings[e][t].includes(c)&&(o=!1)}))})),(0,t.createElement)(_o,{key:c},!o&&"links"===s&&(0,t.createElement)("div",{className:"ahfb-builder-item-start"},(0,t.createElement)(So,{className:"ahfb-builder-item","data-id":c,onClick:()=>(t=>{e.customizer.section(a[t].section)&&e.customizer.section(a[t].section).focus()})(c),"data-section":a[c]&&a[c].section?a[c].section:"",key:c},a[c]&&a[c].name?a[c].name:"",(0,t.createElement)("span",{className:"ahfb-builder-item-icon"},(0,t.createElement)(ko,{icon:"arrow-right-alt2"})))))})(c,"links"))),!n&&(0,t.createElement)("span",{className:"ast-builder-elements-notice"}," ",(0,b.__)("Elements used in the builder will be visible here.","astra")," ")))};Do.propTypes={control:l().object.isRequired,customizer:l().func.isRequired};const Zo=React.memo(Do),Oo=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(Zo,{control:this,customizer:wp.customize}),this.container[0])}}),{Dashicon:No,Button:To}=wp.components,Po=e=>{let c={section:""},s=e.control.params.input_attrs?{...c,...e.control.params.input_attrs}:c;return(0,t.createElement)("div",{className:"ahfb-control-field ahfb-available-items"},(0,t.createElement)("div",{className:"ahfb-builder-item-start"},(0,t.createElement)(To,{className:"ahfb-builder-item",onClick:()=>{return t=s.section,void(void 0!==e.customizer.section(t)&&e.customizer.section(t).focus());var t},"data-section":s.section},s.label?s.label:"",(0,t.createElement)("span",{className:"ahfb-builder-item-icon"},(0,t.createElement)(No,{icon:"arrow-right-alt2"})))))};Po.propTypes={control:l().object.isRequired,customizer:l().func.isRequired};const jo=React.memo(Po),qo=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(jo,{control:this,customizer:wp.customize}),this.container[0])}}),{__:Ro}=wp.i18n,{Fragment:Io}=wp.element,{Button:Fo}=wp.components,Uo=c=>{const[s,l]=(0,g.useState)({view:c.device});let{view:a}=s;(0,g.useEffect)((()=>{document.addEventListener("AstraChangedRepsonsivePreview",(function(e){(e=>{let t="";switch(e){case"desktop":t="tablet";break;case"tablet":t="mobile";break;case"mobile":t="desktop"}l((e=>({...e,view:t}))),wp.customize.previewedDevice(t),c.onChange(t)})(e.detail)}))}),[]);const r=G(e["desktop-responsive"]),o=G(e["tablet-responsive"]),i=G(e["mobile-responsive"]);return(0,t.createElement)(Io,null,(0,t.createElement)("div",{className:"ahfb-responsive-control-bar"},c.controlLabel&&(0,t.createElement)("span",{className:"customize-control-title"},c.controlLabel),!c.hideResponsive&&(0,t.createElement)("div",{className:"floating-controls"},(0,t.createElement)("ul",{key:"ast-resp-ul",className:"ast-responsive-btns"},Object.keys({desktop:{icon:"desktop"},tablet:{icon:"tablet"},mobile:{icon:"smartphone"}}).map((e=>(0,t.createElement)("li",{key:e,className:(e===a?"active ":"")+`${e}`},(0,t.createElement)(Fo,{type:"button","data-device":e,className:(e===a?"active ":"")+`preview-${e}`,onClick:()=>{let t=new CustomEvent("AstraChangedRepsonsivePreview",{detail:e});document.dispatchEvent(t)}},"desktop"===e?r:"","tablet"===e?o:"","mobile"===e?i:""))))))),(0,t.createElement)("div",{className:"ahfb-responsive-controls-content"},c.children))};Uo.propTypes={onChange:l().func,controlLabel:l().object};const Qo=React.memo(Uo),{ButtonGroup:Go,Dashicon:$o,Button:Wo}=wp.components,{Component:Yo}=wp.element;class Xo extends Yo{constructor(){super(...arguments),this.counter=0,this.updateValues=this.updateValues.bind(this),this.onFooterUpdate=this.onFooterUpdate.bind(this),this.onColumnUpdate();let e=this.props.control.setting.get(),t=this.props.control.params.input_attrs.layout;this.controlParams=this.props.control.params.input_attrs?{...t,...this.props.control.params.input_attrs}:t;let c,s=this.props.control.id.replace("astra-settings[","").replace("-footer-layout]","");this.type=s,this.footer_type=this.props.control.params.input_attrs.footer?this.props.control.params.input_attrs.footer:"hb"===this.type?"primary":"hba"===this.type?"above":"below",this.controlParams.responsive?(c={mobile:"row",tablet:"",desktop:"equal"},this.defaultValue=this.props.control.params.default?{...c,...this.props.control.params.default}:c):(c="equal",this.defaultValue=this.props.control.params.default?this.props.control.params.default:c),e=this.controlParams.responsive?e?{...JSON.parse(JSON.stringify(this.defaultValue)),...e}:JSON.parse(JSON.stringify(this.defaultValue)):e||this.defaultValue;let l=0;l=parseInt(this.props.customizer.control("astra-settings["+this.type+"-footer-column]").setting.get(),10),this.state={currentDevice:"desktop",columns:l,value:e,is_updated:!1}}render(){const e=window.svgIcons,c=(0,t.createElement)(t.Fragment,null,this.props.control.params.label);let s={};return s="desktop"!==this.state.currentDevice?this.controlParams.mobile[this.state.columns]:this.controlParams.desktop[this.state.columns],(0,t.createElement)("div",{className:"ahfb-control-field ahfb-radio-icon-control ahfb-row-layout-control"},this.controlParams.responsive&&(0,t.createElement)(Qo,{onChange:e=>this.setState({currentDevice:e}),controlLabel:c,device:this.props.device},(0,t.createElement)(Go,{className:"ahfb-radio-container-control"},Object.keys(s).map(((c,l)=>(0,t.createElement)(Wo,{key:l,isTertiary:!0,className:(c===this.state.value[this.state.currentDevice]?"active-radio ":"")+"ast-radio-img-svg ahfb-btn-item-"+l,onClick:()=>{let e=this.state.value;e[this.state.currentDevice]=c,this.setState({value:e}),this.updateValues()}},s[c].icon&&(0,t.createElement)("span",{className:"ahfb-radio-icon",dangerouslySetInnerHTML:{__html:e[s[c].icon]}}),s[c].dashicon&&(0,t.createElement)("span",{className:"ahfb-radio-icon ahfb-radio-dashicon"},(0,t.createElement)($o,{icon:s[c].dashicon})),s[c]?.name))))))}onFooterUpdate(){const e=parseInt(this.props.customizer.control("astra-settings["+this.type+"-footer-column]").setting.get(),10);let t=this.state.value;if(this.state.columns!==e){this.setState({columns:e});let c={1:"full",2:"2-equal",3:"3-equal",4:"4-equal",5:"5-equal",6:"6-equal"};t.desktop=c[e],t.tablet=c[e],t.mobile="full",this.setState({value:t}),this.updateValues()}}onColumnUpdate(){let e=this;document.addEventListener("AstraBuilderChangeRowLayout",(function(t){t.detail.columns&&e.onFooterUpdate()}))}updateValues(){if(this.counter+=1,this.counter>1)return void(this.counter=0);let e=new CustomEvent("AstraBuilderChangeRowLayout",{detail:{columns:parseInt(wp.customize.value("astra-settings["+this.type+"-footer-column]").get(),10),layout:this.state.value,type:this.footer_type}}),t=this.state.value;document.dispatchEvent(e),this.props.control.setting.set({...this.props.control.setting.get(),...t,flag:!this.props.control.setting.get().flag})}}Xo.propTypes={control:l().object.isRequired};const Jo=Xo,Ko=wp.customize.astraControl.extend({renderContent:function(){let e=jQuery(".wp-full-overlay-footer .devices button.active").attr("data-device");ReactDOM.render((0,t.createElement)(Jo,{control:this,customizer:wp.customize,device:e}),this.container[0])},ready:function(){jQuery(".wp-full-overlay-footer .devices button").on("click",(function(){var e="";switch(jQuery(this).attr("data-device")){case"desktop":e="mobile";break;case"tablet":e="desktop";break;case"mobile":e="tablet"}jQuery(".customize-control-ast-row-layout .ahfb-responsive-control-bar .ast-responsive-btns button.preview-"+e).trigger("click")}))}}),ei=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(Pa,{control:this}),this.container[0])}}),ti=c=>{let s=null,l=null,a=null,r=null,o=null;const{label:i,help:n,name:h,responsive:v}=c.control.params,d=AstraBuilderCustomizerData.js_configs.sub_controls[h],p=[],m=[],u=[],w=[];document.addEventListener("AstRemoteUpdateState",(function(e){"btn-preset"===e.detail&&(Object.entries(d).forEach((([e,t])=>{p[t.name]=wp.customize.control(t.name).setting.get(),m[t.name]=t.default,u[t.name]=t.title,w[t.name]=t.control_type})),f(p),x(1))})),Object.entries(d).forEach((([e,t])=>{p[t.name]=wp.customize.control(t.name).setting.get(),m[t.name]=t.default,u[t.name]=t.title,w[t.name]=t.control_type}));const[z,f]=(0,g.useState)(p),[M,x]=(0,g.useState)(0),y=(e,t="",c="",s="")=>{let l,a={...z};if(l="string"==typeof t?t:void 0!==t.rgb&&void 0!==t.rgb.a&&1!==t.rgb.a?`rgba(${t.rgb.r},${t.rgb.g},${t.rgb.b},${t.rgb.a})`:t.hex,""!==c){let t={...a[e]};if(""!==s){let r={...t[c]};r["background-color"]=l,r["background-type"]=s,t[c]=r,a[e]=t,wp.customize.control(e).setting.set(t)}else t[c]=l,a[e]=t,wp.customize.control(e).setting.set(t)}else if(""!==s){let t={...a[e]};t["background-color"]=l,t["background-type"]=s,a[e]=t,wp.customize.control(e).setting.set(t)}else a[e]=l,wp.customize.control(e).setting.set(l);f(a)},H=(e,t,c)=>{wp.customize.control(c).setting.set(e),f(t)},V=(e,t,c="",s)=>{let l={...z},a={...l[e]};if(""!==c){let r={...a[c]};r["background-image"]=t.url,r["background-media"]=t.id,r["background-type"]=s,a[c]=r,l[e]=a,H(a,l,e)}else a["background-image"]=t.url,a["background-media"]=t.id,a["background-type"]=s,l[e]=a,H(a,l,e)},L=(e,t,c="",s,l)=>{let a={...z},r={...a[l]};if(""!==c){let o={...r[c]};o[e]=t,o["background-type"]=s,r[c]=o,a[l]=r,H(r,a,l)}else r[e]=t,r["background-type"]=s,a[l]=r,H(r,a,l)};if((0,g.useEffect)((()=>{Object.entries(z).forEach((([e,t])=>{"ast-responsive-background"===w[e]&&["desktop","mobile","tablet"].forEach((t=>((e,t)=>{let c={...z};if(!c[t][e]["background-type"]){let s={...c[t]},l={...s[e]};c[t][e]["background-color"]&&(l["background-type"]="color",s[e]=l,c[t]=s,wp.customize.control(t).setting.set(s),f(c),c[t][e]["background-color"].includes("gradient")&&(l["background-type"]="gradient",s[e]=l,c[t]=s,wp.customize.control(t).setting.set(s),f(c))),c[t][e]["background-image"]&&(l["background-type"]="image",s[e]=l,c[t]=s,wp.customize.control(t).setting.set(s),f(c))}})(t,e)))}))}),[z,w]),i){s=(0,t.createElement)("span",null,i);let c=Object.entries(z).length>2?"ast-multiple-colors-group":"";if(v){const s=G(e["desktop-responsive"]),l=G(e["tablet-responsive"]),r=G(e["mobile-responsive"]);a=(0,t.createElement)("ul",{key:"ast-resp-ul",className:`ast-responsive-btns ${c} `},(0,t.createElement)("li",{key:"desktop",className:"desktop active"},(0,t.createElement)("button",{type:"button",className:"preview-desktop","data-device":"desktop"},s)),(0,t.createElement)("li",{key:"tablet",className:"tablet"},(0,t.createElement)("button",{type:"button",className:"preview-tablet","data-device":"tablet"},l)),(0,t.createElement)("li",{key:"mobile",className:"mobile"},(0,t.createElement)("button",{type:"button",className:"preview-mobile","data-device":"mobile"},r)))}}n&&(l=(0,t.createElement)("span",{className:"ast-description"},n));const B=e=>v?(o=Object.entries(z).map((([c,s])=>{let l=u[c]||(0,b.__)("Color","astra");return"ast-responsive-background"===w[c]?(0,t.createElement)(C.Tooltip,{key:c,text:l,position:"top center"},(0,t.createElement)("div",{className:"color-group-item",id:c},(0,t.createElement)(re,{color:void 0!==s[e]["background-color"]&&s[e]["background-color"]?s[e]["background-color"]:"",onChangeComplete:(t,s)=>y(c,t,e,s),media:void 0!==s[e]["background-media"]&&s[e]["background-media"]?s[e]["background-media"]:"",backgroundImage:void 0!==s[e]["background-image"]&&s[e]["background-image"]?s[e]["background-image"]:"",backgroundAttachment:void 0!==s[e]["background-attachment"]&&s[e]["background-attachment"]?s[e]["background-attachment"]:"",backgroundPosition:void 0!==s[e]["background-position"]&&s[e]["background-position"]?s[e]["background-position"]:"",backgroundRepeat:void 0!==s[e]["background-repeat"]&&s[e]["background-repeat"]?s[e]["background-repeat"]:"",backgroundSize:void 0!==s[e]["background-size"]&&s[e]["background-size"]?s[e]["background-size"]:"",onSelectImage:(t,s)=>V(c,t,e,s),onChangeImageOptions:(t,s,l)=>L(t,s,e,l,c),backgroundType:void 0!==s[e]["background-type"]&&s[e]["background-type"]?s[e]["background-type"]:"color",overlayType:void 0!==s[e]["overlay-type"]&&s[e]["overlay-type"]?s[e]["overlay-type"]:"none",overlayColor:void 0!==s[e]["overlay-color"]&&s[e]["overlay-color"]?s[e]["overlay-color"]:"",overlayOpacity:void 0!==s[e]["overlay-opacity"]&&s[e]["overlay-opacity"]?s[e]["overlay-opacity"]:"",overlayGradient:void 0!==s[e]["overlay-gradient"]&&s[e]["overlay-gradient"]?s[e]["overlay-gradient"]:"",allowGradient:!0,allowImage:!0}))):(0,t.createElement)(C.Tooltip,{key:c,text:l,position:"top center"},(0,t.createElement)("div",{className:"color-group-item",id:c},(0,t.createElement)(re,{color:s?s[e]:"",onChangeComplete:(t,s)=>y(c,t,e),backgroundType:"color",allowGradient:!1,allowImage:!1})))})),o):(o=Object.entries(z).map((([e,c])=>{let s=u[e]||(0,b.__)("Color","astra");return"ast-background"===w[e]?(0,t.createElement)(C.Tooltip,{key:e,text:s,position:"top center"},(0,t.createElement)("div",{className:"color-group-item",id:e},(0,t.createElement)(re,{color:void 0!==c["background-color"]&&c["background-color"]?c["background-color"]:"",onChangeComplete:(t,c)=>y(e,t,c),media:void 0!==c["background-media"]&&c["background-media"]?c["background-media"]:"",backgroundImage:void 0!==c["background-image"]&&c["background-image"]?c["background-image"]:"",backgroundAttachment:void 0!==c["background-attachment"]&&c["background-attachment"]?c["background-attachment"]:"",backgroundPosition:void 0!==c["background-position"]&&c["background-position"]?c["background-position"]:"",backgroundRepeat:void 0!==c["background-repeat"]&&c["background-repeat"]?c["background-repeat"]:"",backgroundSize:void 0!==c["background-size"]&&c["background-size"]?c["background-size"]:"",onSelectImage:(t,c)=>V(e,t,c),onChangeImageOptions:(t,c,s)=>L(t,c,s,e),backgroundType:void 0!==c["background-type"]&&c["background-type"]?c["background-type"]:"color",overlayType:void 0!==c["overlay-type"]&&c["overlay-type"]?c["overlay-type"]:"none",overlayColor:void 0!==c["overlay-color"]&&c["overlay-color"]?c["overlay-color"]:"",overlayOpacity:void 0!==c["overlay-opacity"]&&c["overlay-opacity"]?c["overlay-opacity"]:"",overlayGradient:void 0!==c["overlay-gradient"]&&c["overlay-gradient"]?c["overlay-gradient"]:"",allowGradient:!0,allowImage:!0}))):(0,t.createElement)(C.Tooltip,{key:e,text:s,position:"top center"},(0,t.createElement)("div",{className:"color-group-item",id:e},(0,t.createElement)(re,{color:c||"",onChangeComplete:(t,c)=>y(e,t),backgroundType:"color",allowGradient:!1,allowImage:!1})))})),o);return r=v?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"ast-color-group-responsive-wrap desktop active"},B("desktop")),(0,t.createElement)("div",{className:"ast-color-group-responsive-wrap tablet"},B("tablet")),(0,t.createElement)("div",{className:"ast-color-group-responsive-wrap mobile"},B("mobile"))):(0,t.createElement)(t.Fragment,null,B()),(0,t.createElement)("div",{className:"ast-control-wrap"},(0,t.createElement)("div",{className:"ast-toggle-desc-wrap"},(0,t.createElement)("label",{className:"customizer-text"},s,l),a),(()=>{let e=!0;for(let t in z)JSON.stringify(z[t])!==JSON.stringify(m[t])&&(e=!1);const c=Object.entries(z).length>2?"ast-color-multiple-group-reset":"",s=v?"ast-responsive-colors-group-set":"ast-single-color-group-set";return(0,t.createElement)("div",{className:`ast-color-btn-reset-wrap ${c} ast-color-group-reset ${s} `},(0,t.createElement)("button",{className:"ast-reset-btn components-button components-circular-option-picker__clear is-secondary is-small",disabled:e,onClick:e=>{e.preventDefault();let t={...z};for(let e in z)t[e]=m[e],wp.customize.control(e).setting.set(m[e]),f(t)}},(0,t.createElement)(C.Dashicon,{icon:"image-rotate"})))})(),(0,t.createElement)("div",{className:"ast-field-color-group-wrap"},r))};ti.propTypes={control:l().object.isRequired};const ci=React.memo(ti),si=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(ci,{control:this}),this.container[0])},ready:function(){let e=this;!function(e){let t=jQuery(".wp-full-overlay-footer .devices button.active").attr("data-device");jQuery(".customize-control-ast-color-group .ast-field-color-group-wrap .ast-color-group-responsive-wrap").removeClass("active"),jQuery(".customize-control-ast-color-group .ast-field-color-group-wrap .ast-color-group-responsive-wrap."+t).addClass("active"),jQuery(".customize-control-ast-color-group .ast-responsive-btns li").removeClass("active"),jQuery(".customize-control-ast-color-group .ast-responsive-btns li."+t).addClass("active"),jQuery(".wp-full-overlay-footer .devices button").on("click",(function(){let e=jQuery(this).attr("data-device");jQuery(".customize-control-ast-color-group .ast-field-color-group-wrap .ast-color-group-responsive-wrap").removeClass("active"),jQuery(".customize-control-ast-color-group .ast-field-color-group-wrap .ast-color-group-responsive-wrap."+e).addClass("active"),jQuery(".customize-control-ast-color-group .ast-responsive-btns li").removeClass("active"),jQuery(".customize-control-ast-color-group .ast-responsive-btns li."+e).addClass("active")})),e.container.find(".ast-responsive-btns button").on("click",(function(e){e.preventDefault();let t=jQuery(this).attr("data-device");t="desktop"==t?"tablet":"tablet"==t?"mobile":"desktop",jQuery('.wp-full-overlay-footer .devices button[data-device="'+t+'"]').trigger("click")}))}(this),jQuery(document).mouseup((function(t){let c=jQuery(e.container),s=c.find(".astra-color-picker-wrap"),l=c.find(".ast-color-btn-reset-wrap");s.is(t.target)||l.is(t.target)||0!==s.has(t.target).length||0!==l.has(t.target).length||c.find(".components-button.astra-color-icon-indicate.open").click()}))}}),li=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(Ce,{control:this}),this.container[0])},ready:function(){Ha(this)}}),ai=e=>{const{title:c,options:s}=e.control.params,l=e.control.params.default,a=e.control.setting.get(),r=e.control.params.name,[o,i]=a?(0,g.useState)(a):(0,g.useState)(l);let n="";return void 0!==r&&r.includes("secondary")&&(n="secondary-"),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("label",null,(0,t.createElement)("span",{className:"customize-control-title"},c)),(0,t.createElement)("div",{className:"ast-btn-preset-wrap"},Object.entries(s).map((([c,l])=>(0,t.createElement)("div",{className:"ast-btn-style-item "+(o===c?"active":""),key:c,dangerouslySetInnerHTML:{__html:window.svgIcons[l.src]},onClick:()=>(t=>{const c=s[t]["button-radius-fields"],l=s[t]["border-size"],a=s[t]["button-padding"];e.customizer.control("astra-settings["+n+"theme-button-padding]").setting.set(a),e.customizer.control("astra-settings["+n+"theme-button-padding]").renderContent(),e.customizer.control("astra-settings["+n+"button-radius-fields]").setting.set(c),e.customizer.control("astra-settings["+n+"button-radius-fields]").renderContent(),e.customizer.control("astra-settings["+n+"theme-button-border-group-border-size]").renderContent(),e.customizer.control("astra-settings["+n+"theme-button-border-group-border-size]").setting.set(l),i(t),e.control.setting.set(t);const r=new CustomEvent("AstRemoteUpdateState",{detail:"btn-preset"});document.dispatchEvent(r)})(c)})))),(0,t.createElement)("div",{className:"ast-reset-btn-preset-wrap"},(()=>{let c=""==e.control.setting.get();return(0,t.createElement)("button",{className:"ast-reset-btn components-button components-circular-option-picker__clear is-secondary is-small",disabled:c,onClick:t=>{t.preventDefault(),(()=>{[n+"button-radius-fields",n+"theme-button-border-group-border-size",n+"theme-button-padding",n+"button-bg-color",n+"button-color",n+"button-h-color",n+"button-bg-h-color"].forEach((function(t){const c=e.customizer.control("astra-settings["+t+"]").params.default;e.customizer.control("astra-settings["+t+"]").setting.set(c)})),i(""),e.control.setting.set("");const t=new CustomEvent("AstRemoteUpdateState",{detail:"btn-preset"});document.dispatchEvent(t)})()}},(0,t.createElement)(C.Dashicon,{icon:"image-rotate"}))})()))};ai.propTypes={control:l().object.isRequired};const ri=React.memo(ai),oi=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(ri,{control:this,customizer:wp.customize}),this.container[0])}}),ii=e=>{const{title:c,options:s}=e.control.params,[l,a]=(0,g.useState)(e.control.setting.get()),r=t=>{const c=s[t]["body-font-weight"],l=s[t]["headings-font-weight"];["body-font-family","headings-font-family","body-font-variant","headings-font-variant","font-family-h1","font-family-h2","font-family-h3","font-family-h4","font-family-h5","font-family-h6","font-weight-h1","font-weight-h2","font-weight-h3","font-weight-h4","font-weight-h5","font-weight-h6"].forEach((function(c){let l=c.includes("text-transform")?"":"inherit";void 0!==s[t][c]&&(l=s[t][c]);let a="astra-settings["+c+"]";"body-font-family"!==c&&"headings-font-family"!==c&&"body-font-variant"!==c&&"headings-font-variant"!==c||(a=c),AstTypography.setOption(a,l,!0),e.customizer.control("astra-settings["+c+"]").setting.set(l)})),["body-font-family","headings-font-family","font-size-body","font-size-h1","font-size-h2","font-size-h3","font-size-h4","font-size-h5","font-size-h6","font-size-page-title"].forEach((function(c){((t,c)=>{void 0!==e.customizer.control("astra-settings["+t+"]")&&e.customizer.control("astra-settings["+t+"]").setting.set(s[c][t])})(c,t)}));const r=new CustomEvent("AstRemoteUpdateState",{detail:"typography"});document.dispatchEvent(r),AstTypography.setOption("body-font-weight",c,!1),AstTypography.setOption("headings-font-weight",l,!1),a(t),e.control.setting.set(t)},o=e=>{let t=s[e]["headings-font-family"]+" / "+s[e]["body-font-family"];return t=t.replace(/, sans-serif/g,""),t=t.replace(/, serif/g,""),t=t.replace(/['"]+/g,""),t},i=e=>(0,t.createElement)("li",{className:"ast-typo-preset-item "+(l===e.preset?"active":""),key:e.preset,onClick:()=>r(e.preset)},G(window.svgIcons[e.preset]),(0,t.createElement)("span",{className:"ast-typopreset-custom-tooltip","data-title":o(e.preset)}));return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("label",null,(0,t.createElement)("span",{className:"customize-control-title"},c)),(0,t.createElement)((({className:e,options:c,selected:s})=>(0,t.createElement)("ul",{className:`ast-font-selector ${e}`},Object.entries(c).map((([e,c],s)=>(0,t.createElement)(i,{preset:e,key:s}))))),{className:"ast-typo-presets",options:s,selected:l}),(0,t.createElement)("div",{className:"ast-reset-btn-preset-wrap"},(()=>{const c=""===e.control.setting.get();return(0,t.createElement)("button",{className:"ast-reset-btn components-button components-circular-option-picker__clear is-secondary is-small",disabled:c,onClick:t=>{t.preventDefault(),(()=>{const t=e.customizer.control("astra-settings[headings-font-family]").params.default;AstTypography.setOption("astra-settings[headings-font-family]",t,!0);const c=e.customizer.control("astra-settings[body-font-family]").params.default;AstTypography.setOption("astra-settings[body-font-family]",c,!0),["body-font-family","headings-font-family","font-size-body","font-size-h1","font-size-h2","font-size-h3","font-size-h4","font-size-h5","font-size-h6","font-size-page-title"].forEach((function(t){const c=e.customizer.control("astra-settings["+t+"]").params.default;e.customizer.control("astra-settings["+t+"]").setting.set(c)})),a(""),e.control.setting.set("")})()}},(0,t.createElement)(C.Dashicon,{icon:"image-rotate"}))})()))};ii.propTypes={control:l().object.isRequired};const ni=React.memo(ii),hi=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(ni,{control:this,customizer:wp.customize}),this.container[0])}}),vi=e=>{const c=e.control.setting.get(),s=e.control.params.default;let l=null;const{label:a,name:r}=e.control.params;let o;const[i,n]=c?(0,g.useState)(c):(0,g.useState)(s);(0,g.useEffect)((()=>{i!==c&&n(c)}),[e]),a&&(l=(0,t.createElement)("span",{className:"customize-control-title"},a));const h=(e,t)=>{let c,s={...i};c="string"==typeof t?t:void 0!==t.rgb&&void 0!==t.rgb.a&&1!==t.rgb.a?`rgba(${t.rgb.r},${t.rgb.g},${t.rgb.b},${t.rgb.a})`:t.hex,s.palettes[s.currentPalette][e]=c,v(s)},v=t=>{n(t),e.control.setting.set({...t,flag:!e.control.setting.get().flag});let c=e.customizer.control("astra-settings[global-color-palette]");var s=c.setting.get();s.palette=t.palettes[t.currentPalette],c.setting.set({...s,flag:!c.setting.get().flag})};var d=(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"ast-single-palette-wrap"},i.palettes[i.currentPalette].map(((e,c)=>{const l=astra.customizer.globalPaletteLabels;return(0,t.createElement)("div",{className:`ast-color-${c}`,key:c},(0,t.createElement)("div",{className:"ast-color-picker-wrap"},(0,t.createElement)(re,{color:e||"",onChangeComplete:(e,t)=>h(c,e),backgroundType:"color",allowGradient:!1,allowImage:!1,disablePalette:!0,onColorResetClick:(e,t)=>(e=>{let t={...i};const c=s.palettes[t.currentPalette][e];t.palettes[t.currentPalette][e]=c,v(t)})(c)})),(0,t.createElement)("div",{className:"ast-color-picker-custom-tooltip-wrapper"},(0,t.createElement)("span",{className:"ast-color-picker-custom-tooltip","data-title":l[c]})))}))));let p=(0,t.createElement)(t.Fragment,null,Object.keys(i.palettes).map(((e,c)=>(0,t.createElement)("div",{className:"ast-color-palette-wrap "+(e===i.currentPalette?"active":""),key:c},(0,t.createElement)("section",{onClick:()=>(e=>{let t={...i};t.currentPalette=e,v(t)})(e)},i.palettes[e].map(((e,c)=>c<5?(0,t.createElement)("div",{className:"ast-single-color-container",style:{backgroundColor:e},key:c}):"")),(0,t.createElement)("span",{className:"ast-palette-label-wrap"},(0,b.__)("Style","astra")+" "+(c+1)))))));let m=(0,t.createElement)(t.Fragment,null,i.presets&&Object.keys(i.presets).map(((e,c)=>(0,t.createElement)("section",{className:"ast-palette-presets-inner-wrap",key:c},(0,t.createElement)("span",{className:"ast-preset-label-wrap"},(0,b.__)("Color Preset","astra")+" "+(c+1)),(0,t.createElement)(C.Button,{onClick:()=>(e=>{i.presets&&i.presets[e]&&(i.presets[e].forEach(((e,t)=>{h(t,{hex:e})})),(()=>{let e=jQuery(".customize-control-ast-color-palette");e.find(".ast-field-settings-modal").hide(),e.find(".ast-adv-toggle-icon.open").removeClass("open")})())})(e),className:"ast-preset-palette-item"},i.presets[e].map(((e,c)=>(0,t.createElement)("div",{className:"ast-palette-individual-item-wrap",key:c},(0,t.createElement)("span",{className:"ast-palette-individual-item",style:{color:e}})))))))));return document.addEventListener("AstPaletteUpdated",(e=>{clearTimeout(o),o=setTimeout((function(){document.dispatchEvent(new CustomEvent("AstUpdatePaletteVariables",{}))}),200)}),!1),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"ast-toggle-desc-wrap"},(0,t.createElement)("label",{className:"customizer-text"},l),(0,t.createElement)("span",{className:"ast-adv-toggle-icon dashicons","data-control":r})),(0,t.createElement)("div",{className:"ast-field-settings-wrap"},(0,t.createElement)("div",{className:"ast-field-settings-modal"},(0,t.createElement)("div",{className:"ast-color-preset-container"},m))),(0,t.createElement)("div",{className:"ast-color-palette-container"},p),(0,t.createElement)("div",{className:"ast-color-palette-wrapper"},d))};vi.propTypes={control:l().object.isRequired};const di=vi,pi=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(di,{control:this,customizer:wp.customize}),this.container[0])},ready:function(){let e=this;e.registerToggleEvents(),jQuery(document).mouseup((function(t){var c=jQuery(e.container),s=c.find(".astra-color-picker-wrap");s.is(t.target)||0!==s.has(t.target).length||c.find(".components-button.astra-color-icon-indicate.open").click()})),document.dispatchEvent(new CustomEvent("AstUpdatePaletteVariables",{}))},registerToggleEvents:function(){jQuery(".wp-full-overlay-sidebar-content, .wp-picker-container").click((function(e){jQuery(e.target).closest(".ast-field-settings-modal").length||jQuery(".ast-adv-toggle-icon.open").trigger("click")})),this.container.on("click",".ast-toggle-desc-wrap .ast-adv-toggle-icon",(function(e){e.preventDefault(),e.stopPropagation();var t=jQuery(this),c=t.closest(".customize-control-ast-color-palette"),s=c.find(".ast-field-settings-modal"),l=c.parents(".control-section");if(t.hasClass("open"))c.find(".ast-field-settings-modal").hide();else{var a=l.find(".ast-adv-toggle-icon.open");a.length>0&&a.trigger("click"),s&&c.find(".ast-field-settings-modal").show()}t.toggleClass("open")})),this.container.on("click",".ast-toggle-desc-wrap > .customizer-text",(function(e){e.preventDefault(),e.stopPropagation(),jQuery(this).find(".ast-adv-toggle-icon").trigger("click")}))}}),mi=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(fe,{control:this}),this.container[0])}}),gi=c=>{let s=null,l=null;const[a,r]=(0,g.useState)(c.control.setting.get());if(c.control.params.title){const a=G(e["desktop-responsive"]),r=G(e["tablet-responsive"]),o=G(e["mobile-responsive"]);s=(0,t.createElement)("span",{className:"toggle-control-label"},c.control.params.title),l=(0,t.createElement)("ul",{className:"ast-responsive-toggle-btns"},(0,t.createElement)("li",{className:"desktop active"},(0,t.createElement)("button",{type:"button",className:"preview-desktop active","data-device":"desktop"},a)),(0,t.createElement)("li",{className:"tablet"},(0,t.createElement)("button",{type:"button",className:"preview-tablet","data-device":"tablet"},r)),(0,t.createElement)("li",{className:"mobile"},(0,t.createElement)("button",{type:"button",className:"preview-mobile","data-device":"mobile"},o)))}const o=(e,l="")=>(0,t.createElement)("div",{className:`ast-responsive-toggle-control ${e} ${l}`},(0,t.createElement)(S,{label:s,checked:a[e],onChange:()=>(e=>{let t={...a};t[e]=!a[e],r(t),c.control.setting.set(t)})(e)})),i=(0,t.createElement)(t.Fragment,null,o("desktop","active"),o("tablet"),o("mobile"));return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"ast-responsive-toggle-control-wrapper"},i,l))};gi.propTypes={control:l().object.isRequired};const ui=React.memo(gi),wi=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(ui,{control:this}),this.container[0])},ready:function(){!function(e){let t=jQuery(".wp-full-overlay-footer .devices button.active").attr("data-device");jQuery(".customize-control-ast-responsive-toggle-control .ast-responsive-toggle-control").removeClass("active"),jQuery(".customize-control-ast-responsive-toggle-control .ast-responsive-toggle-control."+t).addClass("active"),jQuery(".customize-control-ast-responsive-toggle-control .ast-responsive-toggle-btns li").removeClass("active"),jQuery(".customize-control-ast-responsive-toggle-control .ast-responsive-toggle-btns li."+t).addClass("active"),jQuery(".wp-full-overlay-footer .devices button").on("click",(function(){let e=jQuery(this).attr("data-device");jQuery(".customize-control-ast-responsive-toggle-control .ast-responsive-toggle-control, .customize-control .ast-responsive-toggle-btns > li").removeClass("active"),jQuery(".customize-control-ast-responsive-toggle-control .ast-responsive-toggle-control."+e+", .customize-control .ast-responsive-toggle-btns > li."+e).addClass("active")})),e.container.find(".ast-responsive-toggle-btns button svg").on("click",(function(e){e.preventDefault();let t=jQuery(this).parent("button").attr("data-device");t="desktop"==t?"tablet":"tablet"==t?"mobile":"desktop",jQuery('.wp-full-overlay-footer .devices button[data-device="'+t+'"]').trigger("click")}))}(this),function(e){if("astra-settings[display-site-title-responsive]"===e.id){La(e);var t=jQuery(e.container).find(".ast-responsive-toggle-control.desktop .components-form-toggle__input"),c=jQuery(e.container).find(".ast-responsive-toggle-control.tablet .components-form-toggle__input"),s=jQuery(e.container).find(".ast-responsive-toggle-control.mobile .components-form-toggle__input");jQuery(t).change((function(){La(e)})),jQuery(c).change((function(){La(e)})),jQuery(s).change((function(){La(e)}))}"astra-settings[display-site-tagline-responsive]"===e.id&&(Ba(e),t=jQuery(e.container).find(".ast-responsive-toggle-control.desktop .components-form-toggle__input"),c=jQuery(e.container).find(".ast-responsive-toggle-control.tablet .components-form-toggle__input"),s=jQuery(e.container).find(".ast-responsive-toggle-control.mobile .components-form-toggle__input"),jQuery(t).change((function(){Ba(e)})),jQuery(c).change((function(){Ba(e)})),jQuery(s).change((function(){Ba(e)}))),jQuery(document).ready((function(){var e;e=document.querySelector("#sub-accordion-section-title_tagline .ahfb-general-tab"),jQuery(e).click((function(){var e=[];e.push(document.querySelector("#customize-control-blogname")),e.push(document.querySelector("#customize-control-astra-settings-logo-title-inline")),e.push(document.querySelector("#customize-control-blogdescription")),e.push(document.querySelector("#customize-control-astra-settings-ast-site-title-tagline-divider")),jQuery(document).ready((function(){e.forEach((e=>{null!==e&&"list-item"===e.style.getPropertyValue("display")&&e.style.removeProperty("display")}))}))}))})),jQuery(document).ready((function(){var e;e=document.querySelector("#sub-accordion-section-title_tagline .ahfb-design-tab"),jQuery(e).click((function(){var e=[];e.push(document.querySelector("#customize-control-astra-settings-site-identity-title-color-group")),e.push(document.querySelector("#customize-control-astra-settings-site-title-typography")),e.push(document.querySelector("#customize-control-astra-settings-header-color-site-tagline")),e.push(document.querySelector("#customize-control-astra-settings-site-tagline-typography"));var t=[];t.push(document.querySelector("#customize-control-blogname")),t.push(document.querySelector("#customize-control-astra-settings-logo-title-inline")),t.push(document.querySelector("#customize-control-blogdescription")),t.push(document.querySelector("#customize-control-astra-settings-ast-site-title-tagline-divider")),jQuery(document).ready((function(){e.forEach((e=>{null!==e&&"list-item"===e.style.getPropertyValue("display")&&e.style.removeProperty("display")})),t.forEach((e=>{null!==e&&jQuery(e).hide()}))}))}))}))}(this)}}),zi=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(N,{control:this}),this.container[0])}}),fi=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(ga,{control:this}),this.container[0])}}),bi=c=>{const{label:s,responsive:l=!1}=c.control.params;let a=null;const r=G(e["desktop-responsive"]),o=G(e["tablet-responsive"]),i=G(e["mobile-responsive"]);s&&(a=(0,t.createElement)("span",{className:"customize-control-title ast-group-section-title"},s));const n=(0,t.createElement)("ul",{key:"ast-resp-ul",className:"ast-responsive-btns"},(0,t.createElement)("li",{key:"desktop",className:"desktop active"},(0,t.createElement)("button",{type:"button",className:"preview-desktop","data-device":"desktop"},r)),(0,t.createElement)("li",{key:"tablet",className:"tablet"},(0,t.createElement)("button",{type:"button",className:"preview-tablet","data-device":"tablet"},o)),(0,t.createElement)("li",{key:"mobile",className:"mobile"},(0,t.createElement)("button",{type:"button",className:"preview-mobile","data-device":"mobile"},i)));return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("label",{className:"customizer-text"},a),l&&n,(0,t.createElement)("div",{className:"ast-reset-btn-preset-wrap"},(0,t.createElement)("button",{className:"ast-reset-btn components-button components-circular-option-picker__clear is-secondary is-small",onClick:e=>{e.preventDefault(),c.control.params.input_attrs.reset_linked_controls.forEach((function(e){const t=wp.customize.control("astra-settings["+e+"]").params.default;wp.customize.control("astra-settings["+e+"]").setting.set(t)})),document.dispatchEvent(new CustomEvent("AstUpdatePaletteVariables",{}))}},(0,t.createElement)(C.Dashicon,{icon:"image-rotate"}))))};bi.propTypes={control:l().object.isRequired};const Ci=React.memo(bi),Mi=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(Ci,{control:this}),this.container[0])},ready:function(){let e=jQuery(".wp-full-overlay-footer .devices button.active").attr("data-device");jQuery(".customize-control-ast-group-title .ast-responsive-btns li").removeClass("active"),jQuery(".customize-control-ast-group-title .ast-responsive-btns li."+e).addClass("active"),jQuery(".wp-full-overlay-footer .devices button").on("click",(function(){let e=jQuery(this).attr("data-device");jQuery(".customize-control-ast-group-title .ast-responsive-btns li").removeClass("active"),jQuery(".customize-control-ast-group-title .ast-responsive-btns li."+e).addClass("active")})),this.container.find(".ast-responsive-btns button").on("click",(function(e){let t=jQuery(this).attr("data-device");t="desktop"==t?"tablet":"tablet"==t?"mobile":"desktop",jQuery('.wp-full-overlay-footer .devices button[data-device="'+t+'"]').trigger("click")}))}}),xi=e=>{const{title:c,url:s}=e.control.params;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("a",{href:s,target:"_blank",rel:"noopener",className:"button ast-button-link"},c))};xi.propTypes={control:l().object.isRequired};const yi=React.memo(xi),Hi=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(yi,{control:this}),this.container[0])}}),Vi=e=>{const[c,s]=(0,g.useState)(e.control.setting.get()),l=window.svgIcons,a=t=>{let l={...c};l[t]=l[t]?0:1,e.control.setting.set(l),s(l)},{description:r,label:o,input_attrs:i}=e.control.params;let n=null,h=null,v=null,d="";return o&&(n=(0,t.createElement)("span",{className:"customize-control-title"},o)),r&&(h=(0,t.createElement)("span",{className:"description customize-control-description"},r)),i&&(d=i.stack_after?"stack-after-"+i.stack_after:""),v=(0,t.createElement)(t.Fragment,null,(()=>{const{choices:s,renderAs:r}=e.control.params;if(s)return Object.entries(s).map((([e,s])=>{if("text"!==r)var o=(0,t.createElement)("div",{className:"ast-multiselector-inner-wrap "+(c[e]?"active":""),key:e,onClick:()=>a(e)},(0,t.createElement)("span",{className:"ahfb-icon-set",key:e,dangerouslySetInnerHTML:{__html:l[s]}}));else o=(0,t.createElement)("div",{className:"ast-multiselector-inner-wrap "+(c[e]?"active":""),key:e,onClick:()=>a(e)},(0,t.createElement)("span",{key:e,label:s},s));return o}))})()),(0,t.createElement)("div",null,(0,t.createElement)("label",{key:"customizer-text",className:"customizer-text"}),n,null,h,(0,t.createElement)("div",{className:`input-wrapper ast-alignment-wrapper ${d}`},v))};Vi.propTypes={control:l().object.isRequired};const Li=React.memo(Vi),Bi=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(Li,{control:this}),this.container[0])},ready:function(){Ha(this)}}),Ei=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(ua,{control:this}),this.container[0])}}),Ai=c=>{const{title:s,svg:l="",choices:a={},renderAs:r="block",campaign:o="default"}=c.control.params,i=window.AstraBuilderCustomizerData.upgradeUrl[o]||window.AstraBuilderCustomizerData.upgradeUrl?.default,n=""!=l?G(e[l]):"",h=G(e.upgradeLock),v=G(e.astraLogo),d=G(e.upgradeListCheck);let p=null;s&&(p=(0,t.createElement)("span",{className:"ast-upgrade-section-title"},s));const m=(e,t)=>null!=e[t]&&e[t]?e[t]:"";return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"ast-upgrade-pro-wrap"},"block"===r&&(0,t.createElement)("a",{href:i,target:"_blank",className:"ast-upgrade-trigger"},(0,t.createElement)("span",{className:"ast-upgrade-pro-innerwrap"},n,(0,t.createElement)("span",{className:"ast-upgrade-cta"},h,p))),"list"===r&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"ast-upgrade-list-wrapper"},(0,t.createElement)("p",{className:"ast-brand-logo"},v),(0,t.createElement)("p",{className:"ast-upgrade-list-section-title"},s)),(0,t.createElement)("ul",{className:"ast-upgrade-list-items"},Object.entries(a).map((([e,c])=>(0,t.createElement)("li",{key:e,className:"ast-pro-upgrade-item"},(0,t.createElement)("p",null,d,(0,t.createElement)("span",{className:"ast-upgrade-list-title"}," ",m(c,"title")," "),""!=m(c,"description")&&(0,t.createElement)("span",{className:"ast-upgrade-list-description"}," ",m(c,"description")," ")))))),(0,t.createElement)("p",null,(0,t.createElement)("a",{href:i,target:"_blank",rel:"noopener",className:"button ast-button-link"},(0,b.__)("Upgrade Now","astra"))))))};Ai.propTypes={control:l().object.isRequired};const ki=React.memo(Ai),Si=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(ki,{control:this}),this.container[0])}}),_i=e=>{const{label:c,name:s,description:l,choices:a}=e.control.params;let r=null,o=null,i=null;const[n,h]=(0,g.useState)();return(0,g.useEffect)((()=>{h(e.control.setting.get())}),[e]),c&&(r=(0,t.createElement)("span",{className:"customize-control-title"},c)),l&&(o=(0,t.createElement)("span",{className:"description customize-control-description"},l)),i=Object.entries(a).map((([c,s])=>(0,t.createElement)("li",{key:c,onClick:()=>{return h(t=c),void e.control.setting.set(t);var t},className:"ast-single-option "+(c===n?"active":"")},(0,t.createElement)(C.Dashicon,{icon:s.path})))),(0,t.createElement)("div",{className:"ast-control-wrap"},r,o,(0,t.createElement)("ul",{className:"ast-options"},i))};_i.propTypes={control:l().object.isRequired};const Di=React.memo(_i),Zi=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(Di,{control:this}),this.container[0])}}),Oi=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(za,{control:this}),this.container[0])},ready:function(){Va(this)}}),Ni=e=>{const{help:c,label:s,name:l,choices:a}=e.control.params,[r,o]=(0,g.useState)(e.control.setting.get()||[]),[i,n]=(0,g.useState)(a||[]);let h=s?(0,t.createElement)("span",null,s):"",v=c?(0,t.createElement)("span",{className:"description customize-control-variant-description"},c):null;const d=Object.entries(i).map((([e,t])=>({label:t.name,value:e}))),p="string"==typeof r?r.split(","):r;let m=null;return p&&p.length&&(m=Object.entries(p).map((([e,t])=>void 0===i[t]?null:{label:i[t]?.name,value:t})).filter((e=>e))),(0,t.createElement)(t.Fragment,null,""!==h&&(0,t.createElement)("label",{className:"customize-control-title"},h),(0,t.createElement)("div",{className:"ast-customizer-select-multi"},(0,t.createElement)(pa,{name:l,value:m,options:d,isMulti:!0,onChange:t=>(t=>{if(!t.length)return o([]),void e.control.setting.set([]);(t=>{let c=Object.entries(t).map((([e,t])=>"string"==typeof t?t:t.value)),s=[...new Set(c)].join(",");o(s),e.control.setting.set(s)})(t)})(t),onFocus:()=>{document.querySelectorAll(".ast-multi-select__value-container").forEach((e=>{e&&e.addEventListener("wheel",(t=>{t.preventDefault(),e.scrollLeft+=t.deltaY}))}))},className:"ast-variant-select",classNamePrefix:"ast-multi-select",components:{DropdownIndicator:()=>null,IndicatorSeparator:()=>null,ClearIndicator:()=>null}}),v))};Ni.propTypes={control:l().object.isRequired};const Ti=React.memo(Ni),Pi=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(Ti,{control:this}),this.container[0])}}),ji=e=>{const{title:c,options:s,name:l}=e.control.params,a=e.control.params.default,r=e.control.setting.get(),[o,i]=r?(0,g.useState)(r):(0,g.useState)(a);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"ast-toggle-desc-wrap"},(0,t.createElement)("span",{className:"customizer-text"},c),(0,t.createElement)("span",{className:"ast-adv-toggle-icon dashicons","data-control":l})),(0,t.createElement)("div",{className:"ast-field-settings-wrap"},(0,t.createElement)("div",{className:"ast-field-settings-modal"},(0,t.createElement)("div",{className:"ast-header-preset-container"},Object.entries(s).map((([c,l])=>(0,t.createElement)("div",{className:"ast-header-preset-item "+(o===c?"active":""),key:c,dangerouslySetInnerHTML:{__html:window.svgIcons[l.src]},onClick:()=>(t=>{const c=s[t].options;Object.entries(c).forEach((([t,s])=>{if(e.customizer.control("astra-settings["+t+"]").setting.set(s),"header-desktop-items"===t||"header-mobile-items"===t){let e=c[t],s=new CustomEvent("AstRemoteUpdateHeaderPresetState",{detail:{options:e,type:t}});document.dispatchEvent(s)}})),i(t),e.control.setting.set(t)})(c)})))))))};ji.propTypes={control:l().object.isRequired};const qi=React.memo(ji),Ri=wp.customize.astraControl.extend({renderContent:function(){ReactDOM.render((0,t.createElement)(qi,{control:this,customizer:wp.customize}),this.container[0])},ready:function(){this.registerToggleEvents(),document.dispatchEvent(new CustomEvent("AstUpdateHeaderPreset",{}))},registerToggleEvents:function(){jQuery(".wp-full-overlay-sidebar-content, .wp-picker-container").click((function(e){jQuery(e.target).closest(".ast-field-settings-modal").length||jQuery(".ast-adv-toggle-icon.open").trigger("click")})),this.container.on("click",".ast-toggle-desc-wrap .ast-adv-toggle-icon",(function(e){e.preventDefault(),e.stopPropagation();var t=jQuery(this),c=t.closest(".customize-control-ast-header-presets"),s=c.find(".ast-field-settings-modal"),l=c.parents(".control-section");if(t.hasClass("open"))c.find(".ast-field-settings-modal").hide();else{var a=l.find(".ast-adv-toggle-icon.open");a.length>0&&a.trigger("click"),s&&c.find(".ast-field-settings-modal").show()}t.toggleClass("open")})),this.container.on("click",".ast-toggle-desc-wrap > .customizer-text",(function(e){e.preventDefault(),e.stopPropagation(),jQuery(this).find(".ast-adv-toggle-icon").trigger("click")}))}}),Ii=(e,t=[])=>e?[...t,"selected"].join(" "):t.join(" "),Fi=()=>(0,t.createElement)("div",{className:"no-icons-found"},(0,t.createElement)("div",{className:"icon-not-available"},(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,t.createElement)("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"})),(0,t.createElement)("span",null,(0,b.__)("No Icons Found","astra")))),Ui=({icons:e,setSVG:c,iconKey:s})=>{const{astra_icon_category_list:l}=e,[a,r]=(0,t.useState)(""),[o,i]=(0,t.useState)(""),[n,h]=(0,t.useState)(s),[v,d]=(0,t.useState)(!1),p=(0,t.useCallback)((e=>{i(""),r(e)}),[]),m=(0,t.useCallback)((e=>e?e.length<11?e:`${e.slice(0,10)}..`:""),[]),g=(0,t.useMemo)((()=>Object.keys(e).filter((e=>"astra_icon_category_list"!==e)).filter((t=>{const c=e[t];return(!a||c.custom_categories.includes(a))&&(!o||c.label.toLowerCase().includes(o.toLowerCase()))}))),[e,a,o]),u=((e,t)=>{if(!t)return"";let c="";return Object.keys(e).forEach((s=>{s===t&&(c=e[s].rendered)})),c||""})(e,s),w=()=>d(!1);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"ast-logo-svg-icon-icon-library-default"},u?(0,t.createElement)("div",{className:"ast-logo-svg-icon-icon-library-default-icon-selected"},(0,t.createElement)("p",{dangerouslySetInnerHTML:{__html:u}}),(0,t.createElement)("div",{className:"btn-group-icon-selected"},(0,t.createElement)("button",{type:"button",className:"button",onClick:e=>{e.preventDefault(),c("icon-library","")}},(0,b.__)("Remove","astra")),(0,t.createElement)("button",{type:"button",className:"button",onClick:e=>{e.preventDefault(),d(!0)}},(0,b.__)("Change Icon","astra")))):(0,t.createElement)("button",{className:"btn-select-icon",onClick:e=>{e.preventDefault(),d(!0)}},(0,b.__)("Select Icon","astra"))),v?(0,t.createElement)(C.Modal,{onRequestClose:w,className:"ast-logo-svg-icon-icon-library-modal"},(0,t.createElement)("div",{className:"ast-logo-svg-icon-icon-library"},(0,t.createElement)("section",{className:"ast-logo-svg-icon-icon-library-header"},(0,t.createElement)("h2",null,(0,b.__)("Icon Library","astra")),(0,t.createElement)("div",{className:"ast-logo-svg-icon-search-container"},(0,t.createElement)("div",{className:"ast-logo-svg-icon-search-bar"},(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},(0,t.createElement)("path",{d:"M448 449L301.2 300.2c20-27.9 31.9-62.2 31.9-99.2 0-93.1-74.7-168.9-166.5-168.9C74.7 32 0 107.8 0 200.9s74.7 168.9 166.5 168.9c39.8 0 76.3-14.2 105-37.9l146 148.1 30.5-31zM166.5 330.8c-70.6 0-128.1-58.3-128.1-129.9S95.9 71 166.5 71s128.1 58.3 128.1 129.9-57.4 129.9-128.1 129.9z"})),(0,t.createElement)("input",{type:"text",onChange:e=>{r(""),i(e.target.value)},placeholder:(0,b.__)("Search","astra"),value:o})))),(0,t.createElement)("section",{className:"ast-logo-svg-icon-icon-library-container"},(0,t.createElement)(C.Flex,{align:"start"},(0,t.createElement)(C.FlexBlock,{style:{maxWidth:"165px"}},(0,t.createElement)("div",{className:"svg-icons-categories"},(0,t.createElement)("button",{className:Ii(!a,["svg-icon-category-item"]),onClick:()=>p("")},(0,b.__)("All Icons","astra")),l.map((e=>(0,t.createElement)("button",{className:Ii(e.slug===a,["svg-icon-category-item"]),key:e.slug,onClick:()=>p(e.slug)},e.title))))),(0,t.createElement)(C.FlexBlock,{className:"svg-icons-list-flexbox"},(0,t.createElement)("div",{className:"svg-icons-list"},g.length>0?g.map((c=>(0,t.createElement)(C.Tooltip,{text:e[c].label,key:c},(0,t.createElement)("button",{className:Ii(n===c,["svg-icon"]),onClick:()=>h(c)},(0,t.createElement)("span",{dangerouslySetInnerHTML:{__html:e[c].rendered}}),(0,t.createElement)("span",null,m(e[c].label)))))):(0,t.createElement)(Fi,null))))),(0,t.createElement)("section",{className:"ast-logo-svg-icon-icon-library-footer"},(0,t.createElement)(C.Button,{variant:"secondary",onClick:w},(0,b.__)("Close","astra")),(0,t.createElement)(C.Button,{variant:"primary",disabled:n===s,onClick:()=>{c("icon-library",n),w()}},(0,b.__)("Insert Icon","astra"))))):null)},Qi=({setSVG:e,type:c,value:s})=>(0,t.createElement)("div",{className:"ast-logo-svg-icon-element-custom"},(0,t.createElement)("textarea",{value:"custom"===c?s:"",onChange:t=>{e("custom",t.target.value)}})),Gi=e=>{const{params:c,setting:s}=e.control,{label:l,description:a,value:r,ast_all_svg_icons:o}=c,[i,n]=(0,t.useState)(s.get()?.type?s.get().type:"icon-library"),[h,v]=(0,t.useState)(r);(0,t.useEffect)((()=>{v(s.get())}),[e]);const d=e=>(e.preventDefault(),e=>n(e===i?null:e)),p=(e,t)=>{v({type:e,value:t}),s.set({type:e,value:t})},m=e=>i?e===i?"primary":"":e===h?.type?"primary":"";return(0,t.createElement)("div",{className:"ast-logo-svg-icon"},l?(0,t.createElement)("label",null,(0,t.createElement)("span",{className:"customize-control-title"},l)):null,a?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("i",{className:"ast-control-tooltip dashicons dashicons-editor-help","data-title":a})," ",(0,t.createElement)("span",{className:"ast-dashicons-custom-tooltip","data-title":a},(0,t.createElement)("span",null))):null,!AstraBuilderCustomizerData.is_woo_market_zip&&(0,t.createElement)("div",{className:"ast-logo-svg-icon-btn-wrapper"},(0,t.createElement)("div",{className:"ast-logo-svg-icon-btn"},(0,t.createElement)(C.Button,{type:"button",variant:m("icon-library"),onClick:e=>d(e)("icon-library")},(0,b.__)("Icon Library","astra"))),(0,t.createElement)("div",{className:"ast-logo-svg-icon-btn"},(0,t.createElement)(C.Button,{type:"button",variant:m("custom"),onClick:e=>d(e)("custom")},(0,b.__)("Custom","astra")))),(0,t.createElement)((()=>{if(AstraBuilderCustomizerData.is_woo_market_zip)return(0,t.createElement)(Ui,{icons:o,setSVG:p,iconKey:h?.value});switch(i){case"icon-library":return(0,t.createElement)(Ui,{icons:o,setSVG:p,iconKey:h?.value});case"custom":return(0,t.createElement)(Qi,{setSVG:p,type:h?.type,value:h?.value});default:return null}}),null))};Gi.propTypes={control:l().object.isRequired};const $i=React.memo(Gi),Wi=wp.customize.Control.extend({renderContent:function(){ReactDOM.render((0,t.createElement)($i,{control:this}),this.container[0])},ready:function(){const e=this?.params?.divider?.ast_class||"";this.container[0].classList.add(e)}});c(7261),c(3025),window.svgIcons=e,wp.customize.controlConstructor["ast-heading"]=o,wp.customize.controlConstructor["ast-hidden"]=h,wp.customize.controlConstructor["ast-description"]=m,wp.customize.controlConstructor["ast-text-input"]=f,wp.customize.controlConstructor["ast-link"]=j,wp.customize.controlConstructor["ast-divider"]=I,wp.customize.controlConstructor["ast-settings-group"]=ka,wp.customize.controlConstructor["ast-color"]=Sa,wp.customize.controlConstructor["ast-customizer-link"]=rr,wp.customize.controlConstructor["ast-section-toggle"]=hr,wp.customize.controlConstructor["ast-slider"]=dr,wp.customize.controlConstructor["ast-radio-image"]=gr,wp.customize.controlConstructor["ast-select"]=wr,wp.customize.controlConstructor["ast-header-type-button"]=qo,wp.customize.controlConstructor["ast-builder-header-control"]=Vr,wp.customize.controlConstructor["ast-sortable"]=tr,wp.customize.controlConstructor["ast-font-family"]=br,wp.customize.controlConstructor["ast-font-weight"]=xr,wp.customize.controlConstructor["ast-responsive-slider"]=vr,wp.customize.controlConstructor["ast-responsive-spacing"]=ur,wp.customize.controlConstructor["ast-border"]=cr,wp.customize.controlConstructor["ast-responsive-color"]=_a,wp.customize.controlConstructor["ast-responsive-background"]=Da,wp.customize.controlConstructor["ast-background"]=Za,wp.customize.controlConstructor["ast-social-icons"]=yo,wp.customize.controlConstructor["ast-list-icons"]=Ho,wp.customize.controlConstructor["ast-html-editor"]=Ao,wp.customize.controlConstructor["ast-builder"]=ho,wp.customize.controlConstructor["ast-draggable-items"]=Oo,wp.customize.controlConstructor["ast-row-layout"]=Ko,wp.customize.controlConstructor["ast-toggle-control"]=ei,wp.customize.controlConstructor["ast-color-group"]=si,wp.customize.controlConstructor["ast-selector"]=li,wp.customize.controlConstructor["ast-button-presets"]=oi,wp.customize.controlConstructor["ast-typography-presets"]=hi,wp.customize.controlConstructor["ast-color-palette"]=pi,wp.customize.controlConstructor["ast-responsive-toggle-control"]=wi,wp.customize.controlConstructor["ast-input-with-dropdown"]=zi,wp.customize.controlConstructor["ast-font-variant"]=fi,wp.customize.controlConstructor["ast-group-title"]=Mi,wp.customize.controlConstructor["ast-button-link"]=Hi,wp.customize.controlConstructor["ast-multi-selector"]=Bi,wp.customize.controlConstructor["ast-upgrade"]=Si,wp.customize.controlConstructor["ast-font-extras"]=Ei,wp.customize.controlConstructor["ast-box-shadow"]=mi,wp.customize.controlConstructor["ast-radio-icon"]=Zi,wp.customize.controlConstructor["ast-number"]=Oi,wp.customize.controlConstructor["ast-select-multi"]=Pi,wp.customize.controlConstructor["ast-header-presets"]=Ri,wp.customize.controlConstructor["ast-logo-svg-icon"]=Wi})()})();PK Zb} } 5 configurations/class-astra-customizer-config-base.phpnu [ ';
$content .= wp_kses_post( astra_get_prop( $args, 'description' ) );
// Links.
if ( astra_get_prop( $args, 'links' ) ) {
$content .= '';
foreach ( $args['links'] as $index => $link ) {
if ( astra_get_prop( $link, 'attrs' ) ) {
$content .= '- ';
// Attribute mapping.
$attributes = ' target="_blank" ';
foreach ( astra_get_prop( $link, 'attrs' ) as $attr => $attr_value ) {
$attributes .= ' ' . $attr . '="' . esc_attr( $attr_value ) . '" ';
}
$content .= '' . esc_html( astra_get_prop( $link, 'text' ) ) . '
';
$content .= '';
}
}
$content .= '
';
}
$content .= ' ';
return $content;
}
}
}
/**
* Kicking this off by calling 'get_instance()' method
*/
new Astra_Customizer_Config_Base();
PK Zج > configurations/global-misc/class-astra-global-misc-configs.phpnu [ ASTRA_THEME_SETTINGS . '[enable-scroll-to-id]',
'default' => astra_get_option( 'enable-scroll-to-id' ),
'type' => 'control',
'control' => 'ast-toggle-control',
'title' => __( 'Enable Smooth Scroll to ID', 'astra' ),
'section' => 'section-global-misc',
'divider' => array( 'ast_class' => 'ast-section-spacing' ),
'priority' => 10,
),
);
return array_merge( $configurations, $_configs );
}
}
new Astra_Global_Misc_Configs();
PK Z%* B configurations/accessibility/class-astra-accessibility-configs.phpnu [ ASTRA_THEME_SETTINGS . '[site-accessibility-toggle]',
'default' => astra_get_option( 'site-accessibility-toggle' ),
'type' => 'control',
'control' => 'ast-toggle-control',
'title' => __( 'Site Accessibility', 'astra' ),
'section' => 'section-accessibility',
'priority' => 1,
'divider' => array( 'ast_class' => 'ast-section-spacing' ),
),
/**
* Option: Highlight type.
*/
array(
'name' => ASTRA_THEME_SETTINGS . '[site-accessibility-highlight-type]',
'default' => astra_get_option( 'site-accessibility-highlight-type' ),
'type' => 'control',
'control' => 'ast-radio-icon',
'priority' => 1,
'title' => __( 'Global Highlight', 'astra' ),
'section' => 'section-accessibility',
'choices' => array(
'dotted' => array(
'label' => __( 'Dotted', 'astra' ),
'path' => 'ellipsis',
),
'solid' => array(
'label' => __( 'Solid', 'astra' ),
'path' => 'minus',
),
),
'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ),
'context' => array(
array(
'setting' => ASTRA_THEME_SETTINGS . '[site-accessibility-toggle]',
'operator' => '===',
'value' => true,
),
),
),
/**
* Option: Highlight color.
*/
array(
'name' => ASTRA_THEME_SETTINGS . '[site-accessibility-highlight-color]',
'default' => astra_get_option( 'site-accessibility-highlight-color' ),
'type' => 'control',
'control' => 'ast-color',
'priority' => 1,
'title' => __( 'Color', 'astra' ),
'section' => 'section-accessibility',
'divider' => array( 'ast_class' => 'ast-bottom-dotted-divider' ),
'context' => array(
array(
'setting' => ASTRA_THEME_SETTINGS . '[site-accessibility-toggle]',
'operator' => '===',
'value' => true,
),
),
),
/**
* Option: Highlight type.
*/
array(
'name' => ASTRA_THEME_SETTINGS . '[site-accessibility-highlight-input-type]',
'default' => astra_get_option( 'site-accessibility-highlight-input-type' ),
'type' => 'control',
'control' => 'ast-radio-icon',
'priority' => 1,
'title' => __( 'Input Highlight', 'astra' ),
'section' => 'section-accessibility',
'choices' => array(
'disable' => array(
'label' => __( 'Disable', 'astra' ),
'path' => 'remove',
),
'dotted' => array(
'label' => __( 'Dotted', 'astra' ),
'path' => 'ellipsis',
),
'solid' => array(
'label' => __( 'Solid', 'astra' ),
'path' => 'minus',
),
),
'context' => array(
array(
'setting' => ASTRA_THEME_SETTINGS . '[site-accessibility-toggle]',
'operator' => '===',
'value' => true,
),
),
),
/**
* Option: Highlight color.
*/
array(
'name' => ASTRA_THEME_SETTINGS . '[site-accessibility-highlight-input-color]',
'default' => astra_get_option( 'site-accessibility-highlight-input-color' ),
'type' => 'control',
'control' => 'ast-color',
'priority' => 1,
'title' => __( 'Color', 'astra' ),
'section' => 'section-accessibility',
'context' => array(
array(
'setting' => ASTRA_THEME_SETTINGS . '[site-accessibility-toggle]',
'operator' => '===',
'value' => true,
),
),
),
);
return array_merge( $configurations, $_configs );
}
}
new Astra_Accessibility_Configs();
PK Z 3 8 configurations/comments/class-astra-comments-configs.phpnu [ 'comments-section-ast-context-tabs',
'section' => 'ast-sub-section-comments',
'type' => 'control',
'control' => 'ast-builder-header-control',
'priority' => 0,
'description' => '',
'context' => array(),
),
array(
'name' => 'ast-sub-section-comments',
'title' => __( 'Comments', 'astra' ),
'type' => 'section',
'section' => $parent_section,
'panel' => '',
'priority' => 1,
),
array(
'name' => ASTRA_THEME_SETTINGS . '[comments-single-section-heading]',
'section' => $parent_section,
'type' => 'control',
'control' => 'ast-heading',
'title' => __( 'Comments', 'astra' ),
'priority' => 20,
),
array(
'name' => ASTRA_THEME_SETTINGS . '[enable-comments-area]',
'type' => 'control',
'default' => astra_get_option( 'enable-comments-area' ),
'control' => 'ast-section-toggle',
'section' => $parent_section,
'priority' => 20,
'linked' => 'ast-sub-section-comments',
'linkText' => __( 'Comments', 'astra' ),
'divider' => array( 'ast_class' => 'ast-bottom-divider ast-bottom-section-divider' ),
),
array(
'name' => ASTRA_THEME_SETTINGS . '[comments-box-placement]',
'default' => astra_get_option( 'comments-box-placement' ),
'type' => 'control',
'section' => 'ast-sub-section-comments',
'priority' => 20,
'title' => __( 'Section Placement', 'astra' ),
'control' => 'ast-selector',
'description' => __( 'Decide whether to isolate or integrate the module with the entry content area.', 'astra' ),
'choices' => array(
'' => __( 'Default', 'astra' ),
'inside' => __( 'Contained', 'astra' ),
'outside' => __( 'Separated', 'astra' ),
),
'divider' => array( 'ast_class' => 'ast-section-spacing' ),
'context' => Astra_Builder_Helper::$general_tab,
'responsive' => false,
'renderAs' => 'text',
),
array(
'name' => ASTRA_THEME_SETTINGS . '[comments-box-container-width]',
'default' => astra_get_option( 'comments-box-container-width' ),
'type' => 'control',
'section' => 'ast-sub-section-comments',
'priority' => 20,
'title' => __( 'Container Structure', 'astra' ),
'control' => 'ast-selector',
'choices' => array(
'narrow' => __( 'Narrow', 'astra' ),
'' => __( 'Full Width', 'astra' ),
),
'context' => array(
Astra_Builder_Helper::$general_tab_config,
'relation' => 'AND',
array(
'setting' => ASTRA_THEME_SETTINGS . '[comments-box-placement]',
'operator' => '==',
'value' => 'outside',
),
),
'divider' => array( 'ast_class' => 'ast-top-section-spacing' ),
'responsive' => false,
'renderAs' => 'text',
),
array(
'name' => ASTRA_THEME_SETTINGS . '[comment-form-position]',
'default' => astra_get_option( 'comment-form-position' ),
'type' => 'control',
'section' => 'ast-sub-section-comments',
'priority' => 20,
'title' => __( 'Form Position', 'astra' ),
'control' => 'ast-selector',
'choices' => array(
'below' => __( 'Below Comments', 'astra' ),
'above' => __( 'Above Comments', 'astra' ),
),
'context' => Astra_Builder_Helper::$general_tab,
'divider' => array( 'ast_class' => 'ast-top-section-divider' ),
'responsive' => false,
'renderAs' => 'text',
),
);
$_configs = array_merge( $_configs, Astra_Extended_Base_Configuration::prepare_section_spacing_border_options( 'ast-sub-section-comments', true ) );
return array_merge( $configurations, $_configs );
}
}
}
/**
* Kicking this off by creating new instance.
*/
new Astra_Comments_Configs();
PK Z|s̼ = configurations/typography/class-astra-single-typo-configs.phpnu [ ASTRA_THEME_SETTINGS . '[ast-single-post-items]',
'type' => 'control',
'control' => 'ast-upgrade',
'campaign' => 'blog-single',
'renderAs' => 'list',
'choices' => array(
'one' => array(
'title' => __( 'Author Box with Social Share', 'astra' ),
),
'two' => array(
'title' => __( 'Auto load previous posts', 'astra' ),
),
'three' => array(
'title' => __( 'Single post navigation control', 'astra' ),
),
'four' => array(
'title' => __( 'Custom featured images size', 'astra' ),
),
'seven' => array(
'title' => __( 'Single post read time', 'astra' ),
),
'five' => array(
'title' => __( 'Extended typography options', 'astra' ),
),
'six' => array(
'title' => __( 'Extended spacing options', 'astra' ),
),
'eight' => array(
'title' => __( 'Social sharing options', 'astra' ),
),
),
'section' => 'section-blog-single',
'default' => '',
'priority' => 999,
'context' => array(),
'title' => __( 'Extensive range of tools to help blog pages stand out.', 'astra' ),
'divider' => array( 'ast_class' => 'ast-top-section-divider' ),
),
);
}
$configurations = array_merge( $configurations, $_configs );
return $configurations;
}
}
}
new Astra_Single_Typo_Configs();
PK ZBD8 8 > configurations/typography/class-astra-archive-typo-configs.phpnu [ ASTRA_THEME_SETTINGS . '[ast-blog-pro-items]',
'type' => 'control',
'control' => 'ast-upgrade',
'campaign' => 'blog-archive',
'renderAs' => 'list',
'choices' => array(
'one' => array(
'title' => __( 'Posts Filter', 'astra' ),
),
'eleven' => array(
'title' => __( 'Posts Reveal Effect', 'astra' ),
),
'two' => array(
'title' => __( 'Grid, Masonry layout', 'astra' ),
),
'twelve' => array(
'title' => __( 'Extended Meta Style Options', 'astra' ),
),
'three' => array(
'title' => __( 'Custom featured images size', 'astra' ),
),
'four' => array(
'title' => __( 'Archive pagination options', 'astra' ),
),
'six' => array(
'title' => __( 'Extended typography options', 'astra' ),
),
'seven' => array(
'title' => __( 'Extended spacing options', 'astra' ),
),
'eight' => array(
'title' => __( 'Archive read time', 'astra' ),
),
'nine' => array(
'title' => __( 'Archive excerpt options', 'astra' ),
),
),
'section' => 'section-blog',
'default' => '',
'priority' => 999,
'context' => array(),
'title' => __( 'Take your blog to the next level with powerful design features.', 'astra' ),
'divider' => array( 'ast_class' => 'ast-top-section-divider' ),
),
);
}
if ( ! defined( 'ASTRA_EXT_VER' ) || ( defined( 'ASTRA_EXT_VER' ) && ! Astra_Ext_Extension::is_active( 'typography' ) ) ) {
$new_configs = array(
/**
* Option: Blog - Post Title Font Size
*/
array(
'name' => ASTRA_THEME_SETTINGS . '[font-size-page-title]',
'control' => 'ast-responsive-slider',
'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ),
'section' => 'section-blog',
'type' => 'control',
'transport' => 'postMessage',
'title' => __( 'Post Title Size', 'astra' ),
'priority' => 140,
'default' => astra_get_option( 'font-size-page-title' ),
'suffix' => array( 'px', 'em', 'vw', 'rem' ),
'input_attrs' => array(
'px' => array(
'min' => 0,
'step' => 1,
'max' => 200,
),
'em' => array(
'min' => 0,
'step' => 0.01,
'max' => 20,
),
'vw' => array(
'min' => 0,
'step' => 0.1,
'max' => 25,
),
'rem' => array(
'min' => 0,
'step' => 0.1,
'max' => 20,
),
),
'context' => Astra_Builder_Helper::$design_tab,
'divider' => array( 'ast_class' => 'ast-top-section-divider' ),
),
array(
'name' => ASTRA_THEME_SETTINGS . '[font-size-post-meta]',
'control' => 'ast-responsive-slider',
'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ),
'section' => 'section-blog',
'type' => 'control',
'transport' => 'postMessage',
'title' => __( 'Meta Font Size', 'astra' ),
'priority' => 140,
'default' => astra_get_option( 'font-size-post-meta' ),
'suffix' => array( 'px', 'em', 'vw', 'rem' ),
'input_attrs' => array(
'px' => array(
'min' => 0,
'step' => 1,
'max' => 200,
),
'em' => array(
'min' => 0,
'step' => 0.01,
'max' => 20,
),
'vw' => array(
'min' => 0,
'step' => 0.1,
'max' => 25,
),
'rem' => array(
'min' => 0,
'step' => 0.1,
'max' => 20,
),
),
'context' => Astra_Builder_Helper::$design_tab,
'divider' => array( 'ast_class' => 'ast-section-spacing' ),
),
array(
'name' => ASTRA_THEME_SETTINGS . '[font-size-post-tax]',
'control' => 'ast-responsive-slider',
'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ),
'section' => 'section-blog',
'type' => 'control',
'transport' => 'postMessage',
'title' => __( 'Taxonomy Font', 'astra' ),
'priority' => 140,
'default' => astra_get_option( 'font-size-post-tax' ),
'suffix' => array( 'px', 'em', 'vw', 'rem' ),
'input_attrs' => array(
'px' => array(
'min' => 0,
'step' => 1,
'max' => 200,
),
'em' => array(
'min' => 0,
'step' => 0.01,
'max' => 20,
),
'vw' => array(
'min' => 0,
'step' => 0.1,
'max' => 25,
),
'rem' => array(
'min' => 0,
'step' => 0.1,
'max' => 20,
),
),
'context' => array(
Astra_Builder_Helper::$design_tab_config,
array(
'relation' => 'OR',
array(
'setting' => ASTRA_THEME_SETTINGS . '[blog-post-structure]',
'operator' => 'contains',
'value' => 'category',
),
array(
'setting' => ASTRA_THEME_SETTINGS . '[blog-post-structure]',
'operator' => 'contains',
'value' => 'tag',
),
array(
'setting' => ASTRA_THEME_SETTINGS . '[blog-meta]',
'operator' => 'contains',
'value' => 'category',
),
array(
'setting' => ASTRA_THEME_SETTINGS . '[blog-meta]',
'operator' => 'contains',
'value' => 'tag',
),
),
),
'divider' => array( 'ast_class' => 'ast-section-spacing' ),
),
);
$_configs = array_merge( $_configs, $new_configs );
}
$configurations = array_merge( $configurations, $_configs );
return $configurations;
}
}
}
new Astra_Archive_Typo_Configs();
PK Z:9 9 = configurations/typography/class-astra-global-typo-configs.phpnu [ 'astra-typography-presets',
'type' => 'control',
'control' => 'ast-typography-presets',
'default' => astra_get_typography_presets(),
'options' => array(
'typo-preset-01' => array(
'body-font-family' => "'Open Sans', sans-serif",
'body-font-variant' => '400',
'body-font-weight' => '400',
'font-size-body' => array(
'desktop' => 16,
'tablet' => 16,
'mobile' => 16,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h1' => array(
'desktop' => 54,
'tablet' => 45,
'mobile' => 32,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h2' => array(
'desktop' => 42,
'tablet' => 32,
'mobile' => 28,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h3' => array(
'desktop' => 36,
'tablet' => 26,
'mobile' => 22,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h4' => array(
'desktop' => 25,
'tablet' => 22,
'mobile' => 20,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h5' => array(
'desktop' => 20,
'tablet' => 18,
'mobile' => 20,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h6' => array(
'desktop' => 15,
'tablet' => 15,
'mobile' => 15,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'body-line-height' => 1.7,
'headings-font-family' => "'Playfair Display', serif",
'headings-font-weight' => '700',
'headings-line-height' => '',
'headings-font-variant' => '700',
'line-height-h1' => 1.2,
'line-height-h2' => 1.2,
'line-height-h3' => 1.2,
'line-height-h4' => 1.2,
'line-height-h5' => 1.2,
'line-height-h6' => 1.2,
),
'typo-preset-02' => array(
'body-font-family' => "'Lora', serif",
'body-font-variant' => '400',
'body-font-weight' => '400',
'font-size-body' => array(
'desktop' => 16,
'tablet' => 16,
'mobile' => 16,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h1' => array(
'desktop' => 54,
'tablet' => 45,
'mobile' => 32,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h2' => array(
'desktop' => 42,
'tablet' => 32,
'mobile' => 28,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h3' => array(
'desktop' => 32,
'tablet' => 28,
'mobile' => 22,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h4' => array(
'desktop' => 24,
'tablet' => 22,
'mobile' => 20,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h5' => array(
'desktop' => 20,
'tablet' => 18,
'mobile' => 17,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h6' => array(
'desktop' => 15,
'tablet' => 15,
'mobile' => 15,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'body-line-height' => '',
'headings-font-family' => "'Lato', sans-serif",
'headings-font-weight' => '700',
'headings-line-height' => '',
'headings-font-variant' => '700',
'line-height-h1' => 1.2,
'line-height-h2' => 1.2,
'line-height-h3' => 1.2,
'line-height-h4' => 1.2,
'line-height-h5' => 1.2,
'line-height-h6' => 1.2,
),
'typo-preset-03' => array(
'body-font-family' => "'Roboto', sans-serif",
'body-font-variant' => '400',
'body-font-weight' => '400',
'font-size-body' => array(
'desktop' => 17,
'tablet' => 17,
'mobile' => 17,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h1' => array(
'desktop' => 48,
'tablet' => 40,
'mobile' => 32,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h2' => array(
'desktop' => 38,
'tablet' => 32,
'mobile' => 25,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h3' => array(
'desktop' => 30,
'tablet' => 26,
'mobile' => 22,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h4' => array(
'desktop' => 24,
'tablet' => 20,
'mobile' => 18,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h5' => array(
'desktop' => 20,
'tablet' => 17,
'mobile' => 15,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h6' => array(
'desktop' => 17,
'tablet' => 15,
'mobile' => 13,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'body-line-height' => '',
'headings-font-family' => "'Barlow Semi Condensed', sans-serif",
'headings-font-weight' => '600',
'headings-line-height' => '',
'headings-font-variant' => '600',
'line-height-h1' => 1.2,
'line-height-h2' => 1.2,
'line-height-h3' => 1.4,
'line-height-h4' => 1.2,
'line-height-h5' => 1.2,
'line-height-h6' => 1.2,
),
'typo-preset-04' => array(
'body-font-family' => "'Source Sans Pro', sans-serif",
'body-font-variant' => '400',
'body-font-weight' => '400',
'font-size-body' => array(
'desktop' => 17,
'tablet' => 17,
'mobile' => 17,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h1' => array(
'desktop' => 48,
'tablet' => 36,
'mobile' => 32,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h2' => array(
'desktop' => 40,
'tablet' => 30,
'mobile' => 26,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h3' => array(
'desktop' => 32,
'tablet' => 25,
'mobile' => 22,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h4' => array(
'desktop' => 24,
'tablet' => 20,
'mobile' => 18,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h5' => array(
'desktop' => 20,
'tablet' => 17,
'mobile' => 15,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h6' => array(
'desktop' => 17,
'tablet' => 15,
'mobile' => 13,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'body-line-height' => '1.7',
'headings-font-family' => "'Montserrat', sans-serif",
'headings-font-weight' => '700',
'headings-line-height' => '',
'headings-font-variant' => '700',
'line-height-h1' => 1.3,
'line-height-h2' => 1.3,
'line-height-h3' => 1.3,
'line-height-h4' => 1.3,
'line-height-h5' => 1.3,
'line-height-h6' => 1.3,
),
'typo-preset-05' => array(
'body-font-family' => "'Karla', sans-serif",
'body-font-variant' => '400',
'body-font-weight' => '400',
'font-size-body' => array(
'desktop' => 17,
'tablet' => 17,
'mobile' => 17,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h1' => array(
'desktop' => 48,
'tablet' => 40,
'mobile' => 36,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h2' => array(
'desktop' => 38,
'tablet' => 32,
'mobile' => 28,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h3' => array(
'desktop' => 30,
'tablet' => 26,
'mobile' => 22,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h4' => array(
'desktop' => 24,
'tablet' => 20,
'mobile' => 18,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h5' => array(
'desktop' => 21,
'tablet' => 17,
'mobile' => 15,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h6' => array(
'desktop' => 17,
'tablet' => 15,
'mobile' => 14,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'body-line-height' => '',
'headings-font-family' => "'Rubik', sans-serif",
'headings-font-weight' => '500',
'headings-line-height' => '',
'headings-font-variant' => '500',
'line-height-h1' => 1.3,
'line-height-h2' => 1.3,
'line-height-h3' => 1.3,
'line-height-h4' => 1.3,
'line-height-h5' => 1.3,
'line-height-h6' => 1.3,
),
'typo-preset-06' => array(
'body-font-family' => "'Work Sans', sans-serif",
'body-font-variant' => '400',
'body-font-weight' => '400',
'font-size-body' => array(
'desktop' => 16,
'tablet' => 16,
'mobile' => 16,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h1' => array(
'desktop' => 48,
'tablet' => 40,
'mobile' => 36,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h2' => array(
'desktop' => 38,
'tablet' => 32,
'mobile' => 28,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h3' => array(
'desktop' => 30,
'tablet' => 26,
'mobile' => 22,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h4' => array(
'desktop' => 24,
'tablet' => 20,
'mobile' => 18,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h5' => array(
'desktop' => 21,
'tablet' => 17,
'mobile' => 15,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'font-size-h6' => array(
'desktop' => 17,
'tablet' => 15,
'mobile' => 14,
'desktop-unit' => 'px',
'tablet-unit' => 'px',
'mobile-unit' => 'px',
),
'body-line-height' => '',
'headings-font-family' => "'DM Serif Display', serif",
'headings-font-weight' => '400',
'headings-line-height' => '',
'headings-font-variant' => '400',
'line-height-h1' => 1.2,
'line-height-h2' => 1.2,
'line-height-h3' => 1.2,
'line-height-h4' => 1.2,
'line-height-h5' => 1.2,
'line-height-h6' => 1.2,
),
),
'section' => astra_has_gcp_typo_preset_compatibility() ? 'section-typography' : 'section-body-typo',
'transport' => 'postMessage',
'priority' => 5,
'title' => __( 'Presets', 'astra' ),
'divider' => array( 'ast_class' => 'ast-section-spacing' ),
),
);
return array_merge( $configurations, $_configs );
}
}
new Astra_Global_Typo_Configs();
PK ZEcE cE ? configurations/typography/class-astra-headings-typo-configs.phpnu [ Font Family
*/
array(
'name' => 'font-family-h1',
'type' => 'sub-control',
'parent' => ASTRA_THEME_SETTINGS . '[ast-heading-h1-typo]',
'control' => 'ast-font',
'font_type' => 'ast-font-family',
'default' => astra_get_option( 'font-family-h1' ),
'title' => __( 'Font Family', 'astra' ),
'section' => $section,
'priority' => 28,
'connect' => ASTRA_THEME_SETTINGS . '[font-weight-h1]',
'transport' => 'postMessage',
'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ),
),
/**
* Option: Heading ' . __( 'More Options Available in Astra Pro!', 'astra' ) . '
' . __( 'More Options Available in Astra Pro!', 'astra' ) . '